From 5b6e0e6d16f9729417ff1b64693940ea15a80688 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Mon, 18 Nov 2024 17:43:15 +0000 Subject: [PATCH] build: deploy a22875014f93694f48b32517c14296d8ce7d6477 to gh-pages --- assets/back_001-D7ikWOoG.ogg | Bin 0 -> 6997 bytes assets/back_001-DnN4XDrw.mp3 | Bin 0 -> 1061 bytes assets/confirmation_004-CyrxLF9v.ogg | Bin 0 -> 12391 bytes assets/confirmation_004-DsBfGNcm.mp3 | Bin 0 -> 4405 bytes assets/drop_002-BNFBGB6N.ogg | Bin 0 -> 6411 bytes assets/drop_002-CWurrttm.mp3 | Bin 0 -> 4013 bytes assets/drop_004-B7R8-aZ7.mp3 | Bin 0 -> 5267 bytes assets/drop_004-D5IDGk6q.ogg | Bin 0 -> 7230 bytes assets/index-BpPzPGct.css | 1 + assets/index-C4o_YzEO.js | 6348 ++++++++++++++++++++++++++ index.html | 5 + logo192.png | Bin 0 -> 1281 bytes logo512.png | Bin 0 -> 3370 bytes manifest.json | 20 + robots.txt | 3 + screenshots/level2.png | Bin 0 -> 1807 bytes screenshots/level9.png | Bin 0 -> 12114 bytes screenshots/title.png | Bin 0 -> 18096 bytes 18 files changed, 6377 insertions(+) create mode 100644 assets/back_001-D7ikWOoG.ogg create mode 100644 assets/back_001-DnN4XDrw.mp3 create mode 100644 assets/confirmation_004-CyrxLF9v.ogg create mode 100644 assets/confirmation_004-DsBfGNcm.mp3 create mode 100644 assets/drop_002-BNFBGB6N.ogg create mode 100644 assets/drop_002-CWurrttm.mp3 create mode 100644 assets/drop_004-B7R8-aZ7.mp3 create mode 100644 assets/drop_004-D5IDGk6q.ogg create mode 100644 assets/index-BpPzPGct.css create mode 100644 assets/index-C4o_YzEO.js create mode 100644 index.html create mode 100644 logo192.png create mode 100644 logo512.png create mode 100644 manifest.json create mode 100644 robots.txt create mode 100644 screenshots/level2.png create mode 100644 screenshots/level9.png create mode 100644 screenshots/title.png diff --git a/assets/back_001-D7ikWOoG.ogg b/assets/back_001-D7ikWOoG.ogg new file mode 100644 index 0000000000000000000000000000000000000000..06c5e72c4fd2773438de35ce26bd90caad730031 GIT binary patch literal 6997 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 literal 0 HcmV?d00001 diff --git a/assets/back_001-DnN4XDrw.mp3 b/assets/back_001-DnN4XDrw.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..beebfeab750192f2e666ec4a221a0b8d198282e9 GIT binary patch literal 1061 zcmeZtF=k-^0i}@OU{@f`$H2hslUSB!W}s)RXJ}vmmV^-he>)sN;zF37d1?7T7C#UJ z4PySukc0zF!v#*`0{?LVkj+3hCWGAw;=q6kt38Ct{PXsKn{{CJ|K9;e7#KKm9AiqR zG%&6b%RVgk0qE3_AHpn0lQxx9Em$DTa?rpBLNGHlC~&Z`GPQ6BE_UnPQ1eH?@<)9m zU-_qohU9vO=D+Ut|Cdi^kriO8y{qKHbU};jNWfPHKEaE}m>Jn@n^`47nq>+t)dMbc z2!6h?QD~}>jBM(Ysw->Hr5kf?jVhe~BKq+3{Ll^a?WSpoU0G2S=3M=G)uU@)JDF4; zIoH0;iT?lp<7@fE4?Qoku6i~xF*Q|-{$bnkJWRR0J6^!M!KXU6(nan6@1P@W4cssG zCP^G)V9XNFX%?Emz{kF|N4is?qora>rK}gzCCiU{o0qX93LH4|Fj=1Swnfna{0%^jz)t>(U(2tnW*|%{KOYIeQCVr>m=zhv|o$4;R~F{|8On<|4+z zQ<5-|JFz9V%QIkd6I0iNgT*W_PI$CBZagTrICg_aOVEiqC)UgfXl%*-x9Y@H(QUhI z{~zL*>eLqW;v4TZziN)!f9nhrI0Sf#yVzRRwQ;Fr?tlIK<-Ws879HDsX0Sbx+&Sst zilZP8u{Ut9*_r_IP~(CuX1NOt$0p0ODr=b+FLiX7pt$9m;<}zED-?yj^LG3(+j%~e zWkyPjxjKfH$Rh2@{fBTEzO7<`&$db1_4EQmUj@u8^UCf9;|?f9lSN{2qFEGquruCc<{9 literal 0 HcmV?d00001 diff --git a/assets/confirmation_004-CyrxLF9v.ogg b/assets/confirmation_004-CyrxLF9v.ogg new file mode 100644 index 0000000000000000000000000000000000000000..1586187af48e23a69bcb54f52a12ed7a43a4c30d GIT binary patch literal 12391 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 O_{tVd*Wm%P!2bf8WSxBg literal 0 HcmV?d00001 diff --git a/assets/confirmation_004-DsBfGNcm.mp3 b/assets/confirmation_004-DsBfGNcm.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..83eaa91fb52271603331bcc747c0aa5517aa9193 GIT binary patch literal 4405 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 Uz{4Z|^OpPjZ~yQ0p;hiQUCw| literal 0 HcmV?d00001 diff --git a/assets/drop_004-B7R8-aZ7.mp3 b/assets/drop_004-B7R8-aZ7.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..3bfb960acb47be6c0a2170c6b602635fb151ba4b GIT binary patch literal 5267 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 BuIc~) literal 0 HcmV?d00001 diff --git a/assets/drop_004-D5IDGk6q.ogg b/assets/drop_004-D5IDGk6q.ogg new file mode 100644 index 0000000000000000000000000000000000000000..d9cd3684905cfcbe63cbd8cb30745de7d08c4dd9 GIT binary patch literal 7230 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 literal 0 HcmV?d00001 diff --git a/assets/index-BpPzPGct.css b/assets/index-BpPzPGct.css new file mode 100644 index 0000000..7e35839 --- /dev/null +++ b/assets/index-BpPzPGct.css @@ -0,0 +1 @@ +*{border:0;margin:0;padding:0}html,body{width:100%;height:100%;overflow:hidden}body{background-color:#fff} diff --git a/assets/index-C4o_YzEO.js b/assets/index-C4o_YzEO.js new file mode 100644 index 0000000..1b5a4c9 --- /dev/null +++ b/assets/index-C4o_YzEO.js @@ -0,0 +1,6348 @@ +(function(){const T=document.createElement("link").relList;if(T&&T.supports&&T.supports("modulepreload"))return;for(const z of document.querySelectorAll('link[rel="modulepreload"]'))D(z);new MutationObserver(z=>{for(const H of z)if(H.type==="childList")for(const c of H.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&D(c)}).observe(document,{childList:!0,subtree:!0});function O(z){const H={};return z.integrity&&(H.integrity=z.integrity),z.referrerPolicy&&(H.referrerPolicy=z.referrerPolicy),z.crossOrigin==="use-credentials"?H.credentials="include":z.crossOrigin==="anonymous"?H.credentials="omit":H.credentials="same-origin",H}function D(z){if(z.ep)return;z.ep=!0;const H=O(z);fetch(z.href,H)}})();var pt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sr(F){return F&&F.__esModule&&Object.prototype.hasOwnProperty.call(F,"default")?F.default:F}var En={exports:{}};(function(F,T){(function(D,z){F.exports=z()})(pt,()=>(()=>{var O={50792:c=>{var y=Object.prototype.hasOwnProperty,t="~";function u(){}Object.create&&(u.prototype=Object.create(null),new u().__proto__||(t=!1));function p(e,s,h){this.fn=e,this.context=s,this.once=h||!1}function a(e,s,h,i,o){if(typeof h!="function")throw new TypeError("The listener must be a function");var l=new p(h,i||e,o),f=t?t+s:s;return e._events[f]?e._events[f].fn?e._events[f]=[e._events[f],l]:e._events[f].push(l):(e._events[f]=l,e._eventsCount++),e}function r(e,s){--e._eventsCount===0?e._events=new u:delete e._events[s]}function n(){this._events=new u,this._eventsCount=0}n.prototype.eventNames=function(){var s=[],h,i;if(this._eventsCount===0)return s;for(i in h=this._events)y.call(h,i)&&s.push(t?i.slice(1):i);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(h)):s},n.prototype.listeners=function(s){var h=t?t+s:s,i=this._events[h];if(!i)return[];if(i.fn)return[i.fn];for(var o=0,l=i.length,f=new Array(l);o{/** + * @author samme + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(38829),p=function(a,r,n,e){for(var s=a[0],h=1;h{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(66979),p=function(a,r,n,e,s){return u(a,"angle",r,n,e,s)};c.exports=p},60757:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){for(var a=0;a{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){p===void 0&&(p=0);for(var a=p;a{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){p===void 0&&(p=0);for(var a=t.length-1;a>=p;a--){var r=t[a],n=!0;for(var e in u)r[e]!==u[e]&&(n=!1);if(n)return r}return null};c.exports=y},94420:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(11879),p=t(60461),a=t(95540),r=t(29747),n=t(41481),e=new n({sys:{queueDepthSort:r,events:{once:r}}},0,0,1,1).setOrigin(0,0),s=function(h,i){i===void 0&&(i={});var o=i.hasOwnProperty("width"),l=i.hasOwnProperty("height"),f=a(i,"width",-1),d=a(i,"height",-1),v=a(i,"cellWidth",1),m=a(i,"cellHeight",v),g=a(i,"position",p.TOP_LEFT),x=a(i,"x",0),S=a(i,"y",0),C=0,E=0,P=f*v,R=d*m;e.setPosition(x,S),e.setSize(v,m);for(var M=0;M{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(66979),p=function(a,r,n,e,s){return u(a,"alpha",r,n,e,s)};c.exports=p},67285:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(66979),p=function(a,r,n,e,s){return u(a,"x",r,n,e,s)};c.exports=p},9074:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(66979),p=function(a,r,n,e,s,h,i){return n==null&&(n=r),u(a,"x",r,e,h,i),u(a,"y",n,s,h,i)};c.exports=p},75222:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(66979),p=function(a,r,n,e,s){return u(a,"y",r,n,e,s)};c.exports=p},22983:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){p===void 0&&(p=0),a===void 0&&(a=6.28);for(var r=p,n=(a-p)/t.length,e=u.x,s=u.y,h=u.radius,i=0;i{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){p===void 0&&(p=0),a===void 0&&(a=6.28);for(var r=p,n=(a-p)/t.length,e=u.width/2,s=u.height/2,h=0;h{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(15258),p=t(26708),a=function(r,n,e){var s;e?s=p(n,e,r.length):s=u(n,r.length);for(var h=0;h{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(14649),p=t(86003),a=t(49498),r=function(n,e,s){s===void 0&&(s=0);var h=u(e,!1,n.length);s>0?p(h,s):s<0&&a(h,Math.abs(s));for(var i=0;i{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(84993),p=function(a,r,n){var e=u({x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2},n),s=u({x1:r.x2,y1:r.y2,x2:r.x3,y2:r.y3},n),h=u({x1:r.x3,y1:r.y3,x2:r.x1,y2:r.y1},n);e.pop(),s.pop(),h.pop(),e=e.concat(s,h);for(var i=e.length/a.length,o=0,l=0;l{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){for(var a=0;a{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a,r,n){a===void 0&&(a=0),r===void 0&&(r=0),n===void 0&&(n=1);var e,s=0,h=t.length;if(n===1)for(e=r;e=0;e--)t[e][u]+=p+s*a,s++;return t};c.exports=y},43967:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a,r,n){a===void 0&&(a=0),r===void 0&&(r=0),n===void 0&&(n=1);var e,s=0,h=t.length;if(n===1)for(e=r;e=0;e--)t[e][u]=p+s*a,s++;return t};c.exports=y},88926:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(28176),p=function(a,r){for(var n=0;n{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(24820),p=function(a,r){for(var n=0;n{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(65822),p=function(a,r){for(var n=0;n{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(26597),p=function(a,r){for(var n=0;n{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(90260),p=function(a,r){for(var n=0;n{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(66979),p=function(a,r,n,e,s){return u(a,"rotation",r,n,e,s)};c.exports=p},91051:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(1163),p=t(20339),a=function(r,n,e){for(var s=n.x,h=n.y,i=0;i{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(1163),p=function(a,r,n,e){var s=r.x,h=r.y;if(e===0)return a;for(var i=0;i{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(66979),p=function(a,r,n,e,s){return u(a,"scaleX",r,n,e,s)};c.exports=p},94868:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(66979),p=function(a,r,n,e,s,h,i){return n==null&&(n=r),u(a,"scaleX",r,e,h,i),u(a,"scaleY",n,s,h,i)};c.exports=p},95532:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(66979),p=function(a,r,n,e,s){return u(a,"scaleY",r,n,e,s)};c.exports=p},8689:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(43967),p=function(a,r,n,e,s){return u(a,"alpha",r,n,e,s)};c.exports=p},2645:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(43967),p=function(a,r,n,e){return u(a,"blendMode",r,0,n,e)};c.exports=p},32372:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(43967),p=function(a,r,n,e,s){return u(a,"depth",r,n,e,s)};c.exports=p},85373:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){for(var a=0;a{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(43967),p=function(a,r,n,e,s,h,i){return n==null&&(n=r),u(a,"originX",r,e,h,i),u(a,"originY",n,s,h,i),a.forEach(function(o){o.updateDisplayOrigin()}),a};c.exports=p},79939:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(43967),p=function(a,r,n,e,s){return u(a,"rotation",r,n,e,s)};c.exports=p},2699:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(43967),p=function(a,r,n,e,s,h,i){return n==null&&(n=r),u(a,"scaleX",r,e,h,i),u(a,"scaleY",n,s,h,i)};c.exports=p},98739:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(43967),p=function(a,r,n,e,s){return u(a,"scaleX",r,n,e,s)};c.exports=p},98476:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(43967),p=function(a,r,n,e,s){return u(a,"scaleY",r,n,e,s)};c.exports=p},6207:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(43967),p=function(a,r,n,e,s,h,i){return n==null&&(n=r),u(a,"scrollFactorX",r,e,h,i),u(a,"scrollFactorY",n,s,h,i)};c.exports=p},6607:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(43967),p=function(a,r,n,e,s){return u(a,"scrollFactorX",r,n,e,s)};c.exports=p},72248:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(43967),p=function(a,r,n,e,s){return u(a,"scrollFactorY",r,n,e,s)};c.exports=p},14036:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a,r){for(var n=0;n{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(43967),p=function(a,r,n,e){return u(a,"visible",r,0,n,e)};c.exports=p},77597:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(43967),p=function(a,r,n,e,s){return u(a,"x",r,n,e,s)};c.exports=p},83194:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(43967),p=function(a,r,n,e,s,h,i){return n==null&&(n=r),u(a,"x",r,e,h,i),u(a,"y",n,s,h,i)};c.exports=p},67678:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(43967),p=function(a,r,n,e,s){return u(a,"y",r,n,e,s)};c.exports=p},35850:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(26099),p=function(a,r,n,e,s){e===void 0&&(e=0),s===void 0&&(s=new u);var h,i,o=a.length;if(o===1)h=a[0].x,i=a[0].y,a[0].x=r,a[0].y=n;else{var l=1,f=0;e===0&&(f=o-1,l=o-2),h=a[f].x,i=a[f].y,a[f].x=r,a[f].y=n;for(var d=0;d=o||l===-1)){var v=a[l],m=v.x,g=v.y;v.x=h,v.y=i,h=m,i=g,e===0?l--:l++}}return s.x=h,s.y=i,s};c.exports=p},8628:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(33680),p=function(a){return u(a)};c.exports=p},21837:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(7602),p=function(a,r,n,e,s){s===void 0&&(s=!1);var h=Math.abs(e-n)/a.length,i;if(s)for(i=0;i{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(54261),p=function(a,r,n,e,s){s===void 0&&(s=!1);var h=Math.abs(e-n)/a.length,i;if(s)for(i=0;i{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a,r){if(r===void 0&&(r=!1),t.length===0)return t;if(t.length===1)return r?t[0][u]+=(a+p)/2:t[0][u]=(a+p)/2,t;var n=Math.abs(a-p)/(t.length-1),e;if(r)for(e=0;e{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){for(var u=0;u{/** + * @author Richard Davey + * @author samme + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(15994),p=function(a,r,n){n===void 0&&(n=0);for(var e=0;e{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={AlignTo:t(11517),Angle:t(80318),Call:t(60757),GetFirst:t(69927),GetLast:t(32265),GridAlign:t(94420),IncAlpha:t(41721),IncX:t(67285),IncXY:t(9074),IncY:t(75222),PlaceOnCircle:t(22983),PlaceOnEllipse:t(95253),PlaceOnLine:t(88505),PlaceOnRectangle:t(41346),PlaceOnTriangle:t(11575),PlayAnimation:t(29953),PropertyValueInc:t(66979),PropertyValueSet:t(43967),RandomCircle:t(88926),RandomEllipse:t(33286),RandomLine:t(96e3),RandomRectangle:t(28789),RandomTriangle:t(97154),Rotate:t(20510),RotateAround:t(91051),RotateAroundDistance:t(76332),ScaleX:t(61619),ScaleXY:t(94868),ScaleY:t(95532),SetAlpha:t(8689),SetBlendMode:t(2645),SetDepth:t(32372),SetHitArea:t(85373),SetOrigin:t(81583),SetRotation:t(79939),SetScale:t(2699),SetScaleX:t(98739),SetScaleY:t(98476),SetScrollFactor:t(6207),SetScrollFactorX:t(6607),SetScrollFactorY:t(72248),SetTint:t(14036),SetVisible:t(50159),SetX:t(77597),SetXY:t(83194),SetY:t(67678),ShiftPosition:t(35850),Shuffle:t(8628),SmootherStep:t(21910),SmoothStep:t(21837),Spread:t(62054),ToggleVisible:t(79815),WrapInRectangle:t(39665)}},42099:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(45319),p=t(83419),a=t(74943),r=t(81957),n=t(41138),e=t(35154),s=t(90126),h=new p({initialize:function(o,l,f){this.manager=o,this.key=l,this.type="frame",this.frames=this.getFrames(o.textureManager,e(f,"frames",[]),e(f,"defaultTextureKey",null),e(f,"sortFrames",!0)),this.frameRate=e(f,"frameRate",null),this.duration=e(f,"duration",null),this.msPerFrame,this.skipMissedFrames=e(f,"skipMissedFrames",!0),this.delay=e(f,"delay",0),this.repeat=e(f,"repeat",0),this.repeatDelay=e(f,"repeatDelay",0),this.yoyo=e(f,"yoyo",!1),this.showBeforeDelay=e(f,"showBeforeDelay",!1),this.showOnStart=e(f,"showOnStart",!1),this.hideOnComplete=e(f,"hideOnComplete",!1),this.randomFrame=e(f,"randomFrame",!1),this.paused=!1,this.calculateDuration(this,this.getTotalFrames(),this.duration,this.frameRate),this.manager.on&&(this.manager.on(a.PAUSE_ALL,this.pause,this),this.manager.on(a.RESUME_ALL,this.resume,this))},getTotalFrames:function(){return this.frames.length},calculateDuration:function(i,o,l,f){l===null&&f===null?(i.frameRate=24,i.duration=24/o*1e3):l&&f===null?(i.duration=l,i.frameRate=o/(l/1e3)):(i.frameRate=f,i.duration=o/f*1e3),i.msPerFrame=1e3/i.frameRate},addFrame:function(i){return this.addFrameAt(this.frames.length,i)},addFrameAt:function(i,o){var l=this.getFrames(this.manager.textureManager,o);if(l.length>0){if(i===0)this.frames=l.concat(this.frames);else if(i===this.frames.length)this.frames=this.frames.concat(l);else{var f=this.frames.slice(0,i),d=this.frames.slice(i);this.frames=f.concat(l,d)}this.updateFrameSequence()}return this},checkFrame:function(i){return i>=0&&i0){m.isLast=!0,m.nextFrame=d[0],d[0].prevFrame=m;var L=1/(d.length-1);for(x=0;x0?i.inReverse&&i.forward?i.forward=!1:this.repeatAnimation(i):i.complete():this.updateAndGetNextTick(i,o.nextFrame)},handleYoyoFrame:function(i,o){if(o||(o=!1),i.inReverse===!o&&i.repeatCounter>0){(i.repeatDelay===0||i.pendingRepeat)&&(i.forward=o),this.repeatAnimation(i);return}if(i.inReverse!==o&&i.repeatCounter===0){i.complete();return}i.forward=o;var l=o?i.currentFrame.nextFrame:i.currentFrame.prevFrame;this.updateAndGetNextTick(i,l)},getLastFrame:function(){return this.frames[this.frames.length-1]},previousFrame:function(i){var o=i.currentFrame;o.isFirst?i.yoyo?this.handleYoyoFrame(i,!0):i.repeatCounter>0?i.inReverse&&!i.forward?this.repeatAnimation(i):(i.forward=!0,this.repeatAnimation(i)):i.complete():this.updateAndGetNextTick(i,o.prevFrame)},updateAndGetNextTick:function(i,o){i.setCurrentFrame(o),this.getNextTick(i)},removeFrame:function(i){var o=this.frames.indexOf(i);return o!==-1&&this.removeFrameAt(o),this},removeFrameAt:function(i){return this.frames.splice(i,1),this.updateFrameSequence(),this},repeatAnimation:function(i){if(i._pendingStop===2){if(i._pendingStopValue===0)return i.stop();i._pendingStopValue--}i.repeatDelay>0&&!i.pendingRepeat?(i.pendingRepeat=!0,i.accumulator-=i.nextTick,i.nextTick+=i.repeatDelay):(i.repeatCounter--,i.forward?i.setCurrentFrame(i.currentFrame.nextFrame):i.setCurrentFrame(i.currentFrame.prevFrame),i.isPlaying&&(this.getNextTick(i),i.handleRepeat()))},toJSON:function(){var i={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,showBeforeDelay:this.showBeforeDelay,showOnStart:this.showOnStart,randomFrame:this.randomFrame,hideOnComplete:this.hideOnComplete};return this.frames.forEach(function(o){i.frames.push(o.toJSON())}),i},updateFrameSequence:function(){for(var i=this.frames.length,o=1/(i-1),l,f=0;f1?(l.isLast=!0,l.prevFrame=this.frames[i-2],l.nextFrame=this.frames[0]):i>1&&(l.prevFrame=this.frames[f-1],l.nextFrame=this.frames[f+1]);return this},pause:function(){return this.paused=!0,this},resume:function(){return this.paused=!1,this},destroy:function(){this.manager.off&&(this.manager.off(a.PAUSE_ALL,this.pause,this),this.manager.off(a.RESUME_ALL,this.resume,this)),this.manager.remove(this.key);for(var i=0;i{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=new u({initialize:function(r,n,e,s,h){h===void 0&&(h=!1),this.textureKey=r,this.textureFrame=n,this.index=e,this.frame=s,this.isFirst=!1,this.isLast=!1,this.prevFrame=null,this.nextFrame=null,this.duration=0,this.progress=0,this.isKeyFrame=h},toJSON:function(){return{key:this.textureKey,frame:this.textureFrame,duration:this.duration,keyframe:this.isKeyFrame}},destroy:function(){this.frame=void 0}});c.exports=p},60848:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(42099),p=t(83419),a=t(90330),r=t(50792),n=t(74943),e=t(8443),s=t(95540),h=t(35154),i=t(36383),o=t(20283),l=t(41836),f=new p({Extends:r,initialize:function(v){r.call(this),this.game=v,this.textureManager=null,this.globalTimeScale=1,this.anims=new a,this.mixes=new a,this.paused=!1,this.name="AnimationManager",v.events.once(e.BOOT,this.boot,this)},boot:function(){this.textureManager=this.game.textures,this.game.events.once(e.DESTROY,this.destroy,this)},addMix:function(d,v,m){var g=this.anims,x=this.mixes,S=typeof d=="string"?d:d.key,C=typeof v=="string"?v:v.key;if(g.has(S)&&g.has(C)){var E=x.get(S);E||(E={}),E[C]=m,x.set(S,E)}return this},removeMix:function(d,v){var m=this.mixes,g=typeof d=="string"?d:d.key,x=m.get(g);if(x)if(v){var S=typeof v=="string"?v:v.key;x.hasOwnProperty(S)&&delete x[S]}else v||m.delete(g);return this},getMix:function(d,v){var m=this.mixes,g=typeof d=="string"?d:d.key,x=typeof v=="string"?v:v.key,S=m.get(g);return S&&S.hasOwnProperty(x)?S[x]:0},add:function(d,v){return this.anims.has(d)?(console.warn("Animation key exists: "+d),this):(v.key=d,this.anims.set(d,v),this.emit(n.ADD_ANIMATION,d,v),this)},exists:function(d){return this.anims.has(d)},createFromAseprite:function(d,v,m){var g=[],x=this.game.cache.json.get(d);if(!x)return console.warn("No Aseprite data found for: "+d),g;var S=this,C=h(x,"meta",null),E=h(x,"frames",null);if(C&&E){var P=h(C,"frameTags",[]);P.forEach(function(R){var M=[],A=s(R,"name",null),L=s(R,"from",0),w=s(R,"to",0),N=s(R,"direction","forward");if(A&&(!v||v&&v.indexOf(A)>-1)){for(var b=0,V=L;V<=w;V++){var Y=V.toString(),G=E[Y];if(G){var U=s(G,"duration",i.MAX_SAFE_INTEGER);M.push({key:d,frame:Y,duration:U}),b+=U}}N==="reverse"&&(M=M.reverse());var B={key:A,frames:M,duration:b,yoyo:N==="pingpong"},I;m?m.anims&&(I=m.anims.create(B)):I=S.create(B),I&&g.push(I)}})}return g},create:function(d){var v=d.key,m=!1;return v&&(m=this.get(v),m?console.warn("AnimationManager key already exists: "+v):(m=new u(this,v,d),this.anims.set(v,m),this.emit(n.ADD_ANIMATION,v,m))),m},fromJSON:function(d,v){v===void 0&&(v=!1),v&&this.anims.clear(),typeof d=="string"&&(d=JSON.parse(d));var m=[];if(d.hasOwnProperty("anims")&&Array.isArray(d.anims)){for(var g=0;g{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(42099),p=t(30976),a=t(83419),r=t(90330),n=t(74943),e=t(95540),s=new a({initialize:function(i){this.parent=i,this.animationManager=i.scene.sys.anims,this.animationManager.on(n.REMOVE_ANIMATION,this.globalRemove,this),this.textureManager=this.animationManager.textureManager,this.anims=null,this.isPlaying=!1,this.hasStarted=!1,this.currentAnim=null,this.currentFrame=null,this.nextAnim=null,this.nextAnimsQueue=[],this.timeScale=1,this.frameRate=0,this.duration=0,this.msPerFrame=0,this.skipMissedFrames=!0,this.randomFrame=!1,this.delay=0,this.repeat=0,this.repeatDelay=0,this.yoyo=!1,this.showBeforeDelay=!1,this.showOnStart=!1,this.hideOnComplete=!1,this.forward=!0,this.inReverse=!1,this.accumulator=0,this.nextTick=0,this.delayCounter=0,this.repeatCounter=0,this.pendingRepeat=!1,this._paused=!1,this._wasPlaying=!1,this._pendingStop=0,this._pendingStopValue},chain:function(h){var i=this.parent;if(h===void 0)return this.nextAnimsQueue.length=0,this.nextAnim=null,i;Array.isArray(h)||(h=[h]);for(var o=0;of&&(m=0),this.randomFrame&&(m=p(0,f-1));var g=l.frames[m];m===0&&!this.forward&&(g=l.getLastFrame()),this.currentFrame=g}return this.parent},pause:function(h){return this._paused||(this._paused=!0,this._wasPlaying=this.isPlaying,this.isPlaying=!1),h!==void 0&&this.setCurrentFrame(h),this.parent},resume:function(h){return this._paused&&(this._paused=!1,this.isPlaying=this._wasPlaying),h!==void 0&&this.setCurrentFrame(h),this.parent},playAfterDelay:function(h,i){if(!this.isPlaying)this.delayCounter=i,this.play(h,!0);else{var o=this.nextAnim,l=this.nextAnimsQueue;o&&l.unshift(o),this.nextAnim=h,this._pendingStop=1,this._pendingStopValue=i}return this.parent},playAfterRepeat:function(h,i){if(i===void 0&&(i=1),!this.isPlaying)this.play(h);else{var o=this.nextAnim,l=this.nextAnimsQueue;o&&l.unshift(o),this.repeatCounter!==-1&&i>this.repeatCounter&&(i=this.repeatCounter),this.nextAnim=h,this._pendingStop=2,this._pendingStopValue=i}return this.parent},play:function(h,i){i===void 0&&(i=!1);var o=this.currentAnim,l=this.parent,f=typeof h=="string"?h:h.key;if(i&&this.isPlaying&&o.key===f)return l;if(o&&this.isPlaying){var d=this.animationManager.getMix(o.key,h);if(d>0)return this.playAfterDelay(h,d)}return this.forward=!0,this.inReverse=!1,this._paused=!1,this._wasPlaying=!0,this.startAnimation(h)},playReverse:function(h,i){i===void 0&&(i=!1);var o=typeof h=="string"?h:h.key;return i&&this.isPlaying&&this.currentAnim.key===o?this.parent:(this.forward=!1,this.inReverse=!0,this._paused=!1,this._wasPlaying=!0,this.startAnimation(h))},startAnimation:function(h){this.load(h);var i=this.currentAnim,o=this.parent;return i&&(this.repeatCounter=this.repeat===-1?Number.MAX_VALUE:this.repeat,i.getFirstTick(this),this.isPlaying=!0,this.pendingRepeat=!1,this.hasStarted=!1,this._pendingStop=0,this._pendingStopValue=0,this._paused=!1,this.delayCounter+=this.delay,this.delayCounter===0?this.handleStart():this.showBeforeDelay&&this.setCurrentFrame(this.currentFrame)),o},handleStart:function(){this.showOnStart&&this.parent.setVisible(!0),this.setCurrentFrame(this.currentFrame),this.hasStarted=!0,this.emitEvents(n.ANIMATION_START)},handleRepeat:function(){this.pendingRepeat=!1,this.emitEvents(n.ANIMATION_REPEAT)},handleStop:function(){this._pendingStop=0,this.isPlaying=!1,this.emitEvents(n.ANIMATION_STOP)},handleComplete:function(){this._pendingStop=0,this.isPlaying=!1,this.hideOnComplete&&this.parent.setVisible(!1),this.emitEvents(n.ANIMATION_COMPLETE,n.ANIMATION_COMPLETE_KEY)},emitEvents:function(h,i){var o=this.currentAnim;if(o){var l=this.currentFrame,f=this.parent,d=l.textureFrame;f.emit(h,o,l,f,d),i&&f.emit(i+o.key,o,l,f,d)}},reverse:function(){return this.isPlaying&&(this.inReverse=!this.inReverse,this.forward=!this.forward),this.parent},getProgress:function(){var h=this.currentFrame;if(!h)return 0;var i=h.progress;return this.inReverse&&(i*=-1),i},setProgress:function(h){return this.forward||(h=1-h),this.setCurrentFrame(this.currentAnim.getFrameByProgress(h)),this.parent},setRepeat:function(h){return this.repeatCounter=h===-1?Number.MAX_VALUE:h,this.parent},globalRemove:function(h,i){i===void 0&&(i=this.currentAnim),this.isPlaying&&i.key===this.currentAnim.key&&(this.stop(),this.setCurrentFrame(this.currentAnim.frames[0]))},restart:function(h,i){h===void 0&&(h=!1),i===void 0&&(i=!1);var o=this.currentAnim,l=this.parent;return o?(i&&(this.repeatCounter=this.repeat===-1?Number.MAX_VALUE:this.repeat),o.getFirstTick(this),this.emitEvents(n.ANIMATION_RESTART),this.isPlaying=!0,this.pendingRepeat=!1,this.hasStarted=!h,this._pendingStop=0,this._pendingStopValue=0,this._paused=!1,this.setCurrentFrame(o.frames[0]),this.parent):l},complete:function(){if(this._pendingStop=0,this.isPlaying=!1,this.currentAnim&&this.handleComplete(),this.nextAnim){var h=this.nextAnim;this.nextAnim=this.nextAnimsQueue.length>0?this.nextAnimsQueue.shift():null,this.play(h)}return this.parent},stop:function(){if(this._pendingStop=0,this.isPlaying=!1,this.delayCounter=0,this.currentAnim&&this.handleStop(),this.nextAnim){var h=this.nextAnim;this.nextAnim=this.nextAnimsQueue.shift(),this.play(h)}return this.parent},stopAfterDelay:function(h){return this._pendingStop=1,this._pendingStopValue=h,this.parent},stopAfterRepeat:function(h){return h===void 0&&(h=1),this.repeatCounter!==-1&&h>this.repeatCounter&&(h=this.repeatCounter),this._pendingStop=2,this._pendingStopValue=h,this.parent},stopOnFrame:function(h){return this._pendingStop=3,this._pendingStopValue=h,this.parent},getTotalFrames:function(){return this.currentAnim?this.currentAnim.getTotalFrames():0},update:function(h,i){var o=this.currentAnim;if(!(!this.isPlaying||!o||o.paused)){if(this.accumulator+=i*this.timeScale*this.animationManager.globalTimeScale,this._pendingStop===1&&(this._pendingStopValue-=i,this._pendingStopValue<=0))return this.stop();if(!this.hasStarted)this.accumulator>=this.delayCounter&&(this.accumulator-=this.delayCounter,this.handleStart());else if(this.accumulator>=this.nextTick&&(this.forward?o.nextFrame(this):o.previousFrame(this),this.isPlaying&&this._pendingStop===0&&this.skipMissedFrames&&this.accumulator>this.nextTick)){var l=0;do this.forward?o.nextFrame(this):o.previousFrame(this),l++;while(this.isPlaying&&this.accumulator>this.nextTick&&l<60)}}},setCurrentFrame:function(h){var i=this.parent;return this.currentFrame=h,i.texture=h.frame.texture,i.frame=h.frame,i.isCropped&&i.frame.updateCropUVs(i._crop,i.flipX,i.flipY),h.setAlpha&&(i.alpha=h.alpha),i.setSizeToFrame(),i._originComponent&&(h.frame.customPivot?i.setOrigin(h.frame.pivotX,h.frame.pivotY):i.updateDisplayOrigin()),this.isPlaying&&this.hasStarted&&(this.emitEvents(n.ANIMATION_UPDATE),this._pendingStop===3&&this._pendingStopValue===h&&this.stop()),i},nextFrame:function(){return this.currentAnim&&this.currentAnim.nextFrame(this),this.parent},previousFrame:function(){return this.currentAnim&&this.currentAnim.previousFrame(this),this.parent},get:function(h){return this.anims?this.anims.get(h):null},exists:function(h){return this.anims?this.anims.has(h):!1},create:function(h){var i=h.key,o=!1;return i&&(o=this.get(i),o?console.warn("Animation key already exists: "+i):(o=new u(this,i,h),this.anims||(this.anims=new r),this.anims.set(i,o))),o},createFromAseprite:function(h,i){return this.animationManager.createFromAseprite(h,i,this.parent)},generateFrameNames:function(h,i){return this.animationManager.generateFrameNames(h,i)},generateFrameNumbers:function(h,i){return this.animationManager.generateFrameNumbers(h,i)},remove:function(h){var i=this.get(h);return i&&(this.currentAnim===i&&this.stop(),this.anims.delete(h)),i},destroy:function(){this.animationManager.off(n.REMOVE_ANIMATION,this.globalRemove,this),this.anims&&this.anims.clear(),this.animationManager=null,this.parent=null,this.nextAnim=null,this.nextAnimsQueue.length=0,this.currentAnim=null,this.currentFrame=null},isPaused:{get:function(){return this._paused}}});c.exports=s},57090:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="add"},25312:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="animationcomplete"},89580:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="animationcomplete-"},52860:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="animationrepeat"},63850:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="animationrestart"},99085:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="animationstart"},28087:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="animationstop"},1794:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="animationupdate"},52562:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="pauseall"},57953:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="remove"},68339:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="resumeall"},74943:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={ADD_ANIMATION:t(57090),ANIMATION_COMPLETE:t(25312),ANIMATION_COMPLETE_KEY:t(89580),ANIMATION_REPEAT:t(52860),ANIMATION_RESTART:t(63850),ANIMATION_START:t(99085),ANIMATION_STOP:t(28087),ANIMATION_UPDATE:t(1794),PAUSE_ALL:t(52562),REMOVE_ANIMATION:t(57953),RESUME_ALL:t(68339)}},60421:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={Animation:t(42099),AnimationFrame:t(41138),AnimationManager:t(60848),AnimationState:t(9674),Events:t(74943)}},2161:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(90330),a=t(50792),r=t(24736),n=new u({initialize:function(){this.entries=new p,this.events=new a},add:function(e,s){return this.entries.set(e,s),this.events.emit(r.ADD,this,e,s),this},has:function(e){return this.entries.has(e)},exists:function(e){return this.entries.has(e)},get:function(e){return this.entries.get(e)},remove:function(e){var s=this.get(e);return s&&(this.entries.delete(e),this.events.emit(r.REMOVE,this,e,s.data)),this},getKeys:function(){return this.entries.keys()},destroy:function(){this.entries.clear(),this.events.removeAllListeners(),this.entries=null,this.events=null}});c.exports=n},24047:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(2161),p=t(83419),a=t(8443),r=new p({initialize:function(e){this.game=e,this.binary=new u,this.bitmapFont=new u,this.json=new u,this.physics=new u,this.shader=new u,this.audio=new u,this.video=new u,this.text=new u,this.html=new u,this.obj=new u,this.tilemap=new u,this.xml=new u,this.custom={},this.game.events.once(a.DESTROY,this.destroy,this)},addCustom:function(n){return this.custom.hasOwnProperty(n)||(this.custom[n]=new u),this.custom[n]},destroy:function(){for(var n=["binary","bitmapFont","json","physics","shader","audio","video","text","html","obj","tilemap","xml"],e=0;e{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="add"},59261:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="remove"},24736:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={ADD:t(51464),REMOVE:t(59261)}},83388:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={BaseCache:t(2161),CacheManager:t(24047),Events:t(24736)}},71911:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(31401),a=t(39506),r=t(50792),n=t(19715),e=t(87841),s=t(61340),h=t(80333),i=t(26099),o=new u({Extends:r,Mixins:[p.AlphaSingle,p.Visible],initialize:function(f,d,v,m){f===void 0&&(f=0),d===void 0&&(d=0),v===void 0&&(v=0),m===void 0&&(m=0),r.call(this),this.scene,this.sceneManager,this.scaleManager,this.cameraManager,this.id=0,this.name="",this.roundPixels=!1,this.useBounds=!1,this.worldView=new e,this.dirty=!0,this._x=f,this._y=d,this._width=v,this._height=m,this._bounds=new e,this._scrollX=0,this._scrollY=0,this._zoomX=1,this._zoomY=1,this._rotation=0,this.matrix=new s,this.transparent=!0,this.backgroundColor=h("rgba(0,0,0,0)"),this.disableCull=!1,this.culledObjects=[],this.midPoint=new i(v/2,m/2),this.originX=.5,this.originY=.5,this._customViewport=!1,this.mask=null,this._maskCamera=null,this.renderList=[],this.isSceneCamera=!0,this.renderRoundPixels=!0},addToRenderList:function(l){this.renderList.push(l)},setOrigin:function(l,f){return l===void 0&&(l=.5),f===void 0&&(f=l),this.originX=l,this.originY=f,this},getScroll:function(l,f,d){d===void 0&&(d=new i);var v=this.width*.5,m=this.height*.5;return d.x=l-v,d.y=f-m,this.useBounds&&(d.x=this.clampX(d.x),d.y=this.clampY(d.y)),d},centerOnX:function(l){var f=this.width*.5;return this.midPoint.x=l,this.scrollX=l-f,this.useBounds&&(this.scrollX=this.clampX(this.scrollX)),this},centerOnY:function(l){var f=this.height*.5;return this.midPoint.y=l,this.scrollY=l-f,this.useBounds&&(this.scrollY=this.clampY(this.scrollY)),this},centerOn:function(l,f){return this.centerOnX(l),this.centerOnY(f),this},centerToBounds:function(){if(this.useBounds){var l=this._bounds,f=this.width*.5,d=this.height*.5;this.midPoint.set(l.centerX,l.centerY),this.scrollX=l.centerX-f,this.scrollY=l.centerY-d}return this},centerToSize:function(){return this.scrollX=this.width*.5,this.scrollY=this.height*.5,this},cull:function(l){if(this.disableCull)return l;var f=this.matrix.matrix,d=f[0],v=f[1],m=f[2],g=f[3],x=d*g-v*m;if(!x)return l;var S=f[4],C=f[5],E=this.scrollX,P=this.scrollY,R=this.width,M=this.height,A=this.y,L=A+M,w=this.x,N=w+R,b=this.culledObjects,V=l.length;x=1/x,b.length=0;for(var Y=0;Yw&&KA&&Zm&&(l=m),l},clampY:function(l){var f=this._bounds,d=this.displayHeight,v=f.y+(d-this.height)/2,m=Math.max(v,v+f.height-d);return lm&&(l=m),l},removeBounds:function(){return this.useBounds=!1,this.dirty=!0,this._bounds.setEmpty(),this},setAngle:function(l){return l===void 0&&(l=0),this.rotation=a(l),this},setBackgroundColor:function(l){return l===void 0&&(l="rgba(0,0,0,0)"),this.backgroundColor=h(l),this.transparent=this.backgroundColor.alpha===0,this},setBounds:function(l,f,d,v,m){return m===void 0&&(m=!1),this._bounds.setTo(l,f,d,v),this.dirty=!0,this.useBounds=!0,m?this.centerToBounds():(this.scrollX=this.clampX(this.scrollX),this.scrollY=this.clampY(this.scrollY)),this},getBounds:function(l){l===void 0&&(l=new e);var f=this._bounds;return l.setTo(f.x,f.y,f.width,f.height),l},setName:function(l){return l===void 0&&(l=""),this.name=l,this},setPosition:function(l,f){return f===void 0&&(f=l),this.x=l,this.y=f,this},setRotation:function(l){return l===void 0&&(l=0),this.rotation=l,this},setRoundPixels:function(l){return this.roundPixels=l,this},setScene:function(l,f){f===void 0&&(f=!0),this.scene&&this._customViewport&&this.sceneManager.customViewports--,this.scene=l,this.isSceneCamera=f;var d=l.sys;return this.sceneManager=d.game.scene,this.scaleManager=d.scale,this.cameraManager=d.cameras,this.updateSystem(),this},setScroll:function(l,f){return f===void 0&&(f=l),this.scrollX=l,this.scrollY=f,this},setSize:function(l,f){return f===void 0&&(f=l),this.width=l,this.height=f,this},setViewport:function(l,f,d,v){return this.x=l,this.y=f,this.width=d,this.height=v,this},setZoom:function(l,f){return l===void 0&&(l=1),f===void 0&&(f=l),l===0&&(l=.001),f===0&&(f=.001),this.zoomX=l,this.zoomY=f,this},setMask:function(l,f){return f===void 0&&(f=!0),this.mask=l,this._maskCamera=f?this.cameraManager.default:this,this},clearMask:function(l){return l===void 0&&(l=!1),l&&this.mask&&this.mask.destroy(),this.mask=null,this},toJSON:function(){var l={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&&(l.bounds={x:this._bounds.x,y:this._bounds.y,width:this._bounds.width,height:this._bounds.height}),l},update:function(){},setIsSceneCamera:function(l){return this.isSceneCamera=l,this},updateSystem:function(){if(!(!this.scaleManager||!this.isSceneCamera)){var l=this._x!==0||this._y!==0||this.scaleManager.width!==this._width||this.scaleManager.height!==this._height,f=this.sceneManager;l&&!this._customViewport?f.customViewports++:!l&&this._customViewport&&f.customViewports--,this.dirty=!0,this._customViewport=l}},destroy:function(){this.emit(n.DESTROY,this),this.removeAllListeners(),this.matrix.destroy(),this.culledObjects=[],this._customViewport&&this.sceneManager.customViewports--,this.renderList=[],this._bounds=null,this.scene=null,this.scaleManager=null,this.sceneManager=null,this.cameraManager=null},x:{get:function(){return this._x},set:function(l){this._x=l,this.updateSystem()}},y:{get:function(){return this._y},set:function(l){this._y=l,this.updateSystem()}},width:{get:function(){return this._width},set:function(l){this._width=l,this.updateSystem()}},height:{get:function(){return this._height},set:function(l){this._height=l,this.updateSystem()}},scrollX:{get:function(){return this._scrollX},set:function(l){l!==this._scrollX&&(this._scrollX=l,this.dirty=!0)}},scrollY:{get:function(){return this._scrollY},set:function(l){l!==this._scrollY&&(this._scrollY=l,this.dirty=!0)}},zoom:{get:function(){return(this._zoomX+this._zoomY)/2},set:function(l){this._zoomX=l,this._zoomY=l,this.dirty=!0}},zoomX:{get:function(){return this._zoomX},set:function(l){this._zoomX=l,this.dirty=!0}},zoomY:{get:function(){return this._zoomY},set:function(l){this._zoomY=l,this.dirty=!0}},rotation:{get:function(){return this._rotation},set:function(l){this._rotation=l,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.zoomX}},displayHeight:{get:function(){return this.height/this.zoomY}}});c.exports=o},38058:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(71911),p=t(67502),a=t(45319),r=t(83419),n=t(31401),e=t(20052),s=t(19715),h=t(28915),i=t(87841),o=t(26099),l=new r({Extends:u,Mixins:[n.PostPipeline],initialize:function(d,v,m,g){u.call(this,d,v,m,g),this.initPostPipeline(),this.inputEnabled=!0,this.fadeEffect=new e.Fade(this),this.flashEffect=new e.Flash(this),this.shakeEffect=new e.Shake(this),this.panEffect=new e.Pan(this),this.rotateToEffect=new e.RotateTo(this),this.zoomEffect=new e.Zoom(this),this.lerp=new o(1,1),this.followOffset=new o,this.deadzone=null,this._follow=null},setDeadzone:function(f,d){if(f===void 0)this.deadzone=null;else{if(this.deadzone?(this.deadzone.width=f,this.deadzone.height=d):this.deadzone=new i(0,0,f,d),this._follow){var v=this.width/2,m=this.height/2,g=this._follow.x-this.followOffset.x,x=this._follow.y-this.followOffset.y;this.midPoint.set(g,x),this.scrollX=g-v,this.scrollY=x-m}p(this.deadzone,this.midPoint.x,this.midPoint.y)}return this},fadeIn:function(f,d,v,m,g,x){return this.fadeEffect.start(!1,f,d,v,m,!0,g,x)},fadeOut:function(f,d,v,m,g,x){return this.fadeEffect.start(!0,f,d,v,m,!0,g,x)},fadeFrom:function(f,d,v,m,g,x,S){return this.fadeEffect.start(!1,f,d,v,m,g,x,S)},fade:function(f,d,v,m,g,x,S){return this.fadeEffect.start(!0,f,d,v,m,g,x,S)},flash:function(f,d,v,m,g,x,S){return this.flashEffect.start(f,d,v,m,g,x,S)},shake:function(f,d,v,m,g){return this.shakeEffect.start(f,d,v,m,g)},pan:function(f,d,v,m,g,x,S){return this.panEffect.start(f,d,v,m,g,x,S)},rotateTo:function(f,d,v,m,g,x,S){return this.rotateToEffect.start(f,d,v,m,g,x,S)},zoomTo:function(f,d,v,m,g,x){return this.zoomEffect.start(f,d,v,m,g,x)},preRender:function(){this.renderList.length=0;var f=this.width,d=this.height,v=f*.5,m=d*.5,g=this.zoomX,x=this.zoomY,S=this.matrix;this.renderRoundPixels=this.roundPixels&&Number.isInteger(g)&&Number.isInteger(x);var C=f*this.originX,E=d*this.originY,P=this._follow,R=this.deadzone,M=this.scrollX,A=this.scrollY;R&&p(R,this.midPoint.x,this.midPoint.y);var L=!1;if(P&&!this.panEffect.isRunning){var w=this.lerp,N=P.x-this.followOffset.x,b=P.y-this.followOffset.y;R?(NR.right&&(M=h(M,M+(N-R.right),w.x)),bR.bottom&&(A=h(A,A+(b-R.bottom),w.y))):(M=h(M,N-C,w.x),A=h(A,b-E,w.y)),L=!0}this.roundPixels&&(M=Math.floor(M),A=Math.floor(A)),this.useBounds&&(M=this.clampX(M),A=this.clampY(A)),this.scrollX=M,this.scrollY=A;var V=M+v,Y=A+m;this.midPoint.set(V,Y);var G=Math.floor(f/g+.5),U=Math.floor(d/x+.5),B=Math.floor(V-G/2+.5),I=Math.floor(Y-U/2+.5);this.worldView.setTo(B,I,G,U),S.applyITRS(Math.floor(this.x+C+.5),Math.floor(this.y+E+.5),this.rotation,g,x),S.translate(-C,-E),this.shakeEffect.preRender(),L&&this.emit(s.FOLLOW_UPDATE,this,P)},setLerp:function(f,d){return f===void 0&&(f=1),d===void 0&&(d=f),this.lerp.set(f,d),this},setFollowOffset:function(f,d){return f===void 0&&(f=0),d===void 0&&(d=0),this.followOffset.set(f,d),this},startFollow:function(f,d,v,m,g,x){d===void 0&&(d=!1),v===void 0&&(v=1),m===void 0&&(m=v),g===void 0&&(g=0),x===void 0&&(x=g),this._follow=f,this.roundPixels=d,v=a(v,0,1),m=a(m,0,1),this.lerp.set(v,m),this.followOffset.set(g,x);var S=this.width/2,C=this.height/2,E=f.x-g,P=f.y-x;return this.midPoint.set(E,P),this.scrollX=E-S,this.scrollY=P-C,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.rotateToEffect.reset(),this.panEffect.reset(),this.shakeEffect.reset(),this.flashEffect.reset(),this.fadeEffect.reset(),this},update:function(f,d){this.visible&&(this.rotateToEffect.update(f,d),this.panEffect.update(f,d),this.zoomEffect.update(f,d),this.shakeEffect.update(f,d),this.flashEffect.update(f,d),this.fadeEffect.update(f,d))},destroy:function(){this.resetFX(),u.prototype.destroy.call(this),this._follow=null,this.deadzone=null}});c.exports=l},32743:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(38058),p=t(83419),a=t(95540),r=t(37277),n=t(37303),e=t(97480),s=t(44594),h=new p({initialize:function(o){this.scene=o,this.systems=o.sys,this.roundPixels=o.sys.game.config.roundPixels,this.cameras=[],this.main,this.default,o.sys.events.once(s.BOOT,this.boot,this),o.sys.events.on(s.START,this.start,this)},boot:function(){var i=this.systems;i.settings.cameras?this.fromJSON(i.settings.cameras):this.add(),this.main=this.cameras[0],this.default=new u(0,0,i.scale.width,i.scale.height).setScene(this.scene),i.game.scale.on(e.RESIZE,this.onResize,this),this.systems.events.once(s.DESTROY,this.destroy,this)},start:function(){if(!this.main){var i=this.systems;i.settings.cameras?this.fromJSON(i.settings.cameras):this.add(),this.main=this.cameras[0]}var o=this.systems.events;o.on(s.UPDATE,this.update,this),o.once(s.SHUTDOWN,this.shutdown,this)},add:function(i,o,l,f,d,v){i===void 0&&(i=0),o===void 0&&(o=0),l===void 0&&(l=this.scene.sys.scale.width),f===void 0&&(f=this.scene.sys.scale.height),d===void 0&&(d=!1),v===void 0&&(v="");var m=new u(i,o,l,f);return m.setName(v),m.setScene(this.scene),m.setRoundPixels(this.roundPixels),m.id=this.getNextID(),this.cameras.push(m),d&&(this.main=m),m},addExisting:function(i,o){o===void 0&&(o=!1);var l=this.cameras.indexOf(i);return l===-1?(i.id=this.getNextID(),i.setRoundPixels(this.roundPixels),this.cameras.push(i),o&&(this.main=i),i):null},getNextID:function(){for(var i=this.cameras,o=1,l=0;l<32;l++){for(var f=!1,d=0;d0){v.preRender();var m=this.getVisibleChildren(o.getChildren(),v);i.render(l,m,v)}}},getVisibleChildren:function(i,o){return i.filter(function(l){return l.willRender(o)})},resetAll:function(){for(var i=0;i{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(45319),p=t(83419),a=t(19715),r=new p({initialize:function(e){this.camera=e,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(n,e,s,h,i,o,l,f){if(n===void 0&&(n=!0),e===void 0&&(e=1e3),s===void 0&&(s=0),h===void 0&&(h=0),i===void 0&&(i=0),o===void 0&&(o=!1),l===void 0&&(l=null),f===void 0&&(f=this.camera.scene),!o&&this.isRunning)return this.camera;this.isRunning=!0,this.isComplete=!1,this.duration=e,this.direction=n,this.progress=0,this.red=s,this.green=h,this.blue=i,this.alpha=n?Number.MIN_VALUE:1,this._elapsed=0,this._onUpdate=l,this._onUpdateScope=f;var d=n?a.FADE_OUT_START:a.FADE_IN_START;return this.camera.emit(d,this.camera,this,e,s,h,i),this.camera},update:function(n,e){this.isRunning&&(this._elapsed+=e,this.progress=u(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(45319),p=t(83419),a=t(19715),r=new p({initialize:function(e){this.camera=e,this.isRunning=!1,this.duration=0,this.red=0,this.green=0,this.blue=0,this.alpha=1,this.progress=0,this._elapsed=0,this._alpha,this._onUpdate,this._onUpdateScope},start:function(n,e,s,h,i,o,l){return n===void 0&&(n=250),e===void 0&&(e=255),s===void 0&&(s=255),h===void 0&&(h=255),i===void 0&&(i=!1),o===void 0&&(o=null),l===void 0&&(l=this.camera.scene),!i&&this.isRunning?this.camera:(this.isRunning=!0,this.duration=n,this.progress=0,this.red=e,this.green=s,this.blue=h,this._alpha=this.alpha,this._elapsed=0,this._onUpdate=o,this._onUpdateScope=l,this.camera.emit(a.FLASH_START,this.camera,this,n,e,s,h),this.camera)},update:function(n,e){this.isRunning&&(this._elapsed+=e,this.progress=u(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(45319),p=t(83419),a=t(62640),r=t(19715),n=t(26099),e=new p({initialize:function(h){this.camera=h,this.isRunning=!1,this.duration=0,this.source=new n,this.current=new n,this.destination=new n,this.ease,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},start:function(s,h,i,o,l,f,d){i===void 0&&(i=1e3),o===void 0&&(o=a.Linear),l===void 0&&(l=!1),f===void 0&&(f=null),d===void 0&&(d=this.camera.scene);var v=this.camera;return!l&&this.isRunning||(this.isRunning=!0,this.duration=i,this.progress=0,this.source.set(v.scrollX,v.scrollY),this.destination.set(s,h),v.getScroll(s,h,this.current),typeof o=="string"&&a.hasOwnProperty(o)?this.ease=a[o]:typeof o=="function"&&(this.ease=o),this._elapsed=0,this._onUpdate=f,this._onUpdateScope=d,this.camera.emit(r.PAN_START,this.camera,this,i,s,h)),v},update:function(s,h){if(this.isRunning){this._elapsed+=h;var i=u(this._elapsed/this.duration,0,1);this.progress=i;var o=this.camera;if(this._elapsed{/** + * @author Jason Nicholls + * @copyright 2018 Photon Storm Ltd. + * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} + */var u=t(45319),p=t(83419),a=t(19715),r=t(62640),n=new p({initialize:function(s){this.camera=s,this.isRunning=!1,this.duration=0,this.source=0,this.current=0,this.destination=0,this.ease,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope,this.clockwise=!0,this.shortestPath=!1},start:function(e,s,h,i,o,l,f){h===void 0&&(h=1e3),i===void 0&&(i=r.Linear),o===void 0&&(o=!1),l===void 0&&(l=null),f===void 0&&(f=this.camera.scene),s===void 0&&(s=!1),this.shortestPath=s;var d=e;e<0?(d=-1*e,this.clockwise=!1):this.clockwise=!0;var v=360*Math.PI/180;d=d-Math.floor(d/v)*v;var m=this.camera;if(!o&&this.isRunning)return m;if(this.isRunning=!0,this.duration=h,this.progress=0,this.source=m.rotation,this.destination=d,typeof i=="string"&&r.hasOwnProperty(i)?this.ease=r[i]:typeof i=="function"&&(this.ease=i),this._elapsed=0,this._onUpdate=l,this._onUpdateScope=f,this.shortestPath){var g=0,x=0;this.destination>this.source?g=Math.abs(this.destination-this.source):g=Math.abs(this.destination+v)-this.source,this.source>this.destination?x=Math.abs(this.source-this.destination):x=Math.abs(this.source+v)-this.destination,gx&&(this.clockwise=!1)}return this.camera.emit(a.ROTATE_START,this.camera,this,h,d),m},update:function(e,s){if(this.isRunning){this._elapsed+=s;var h=u(this._elapsed/this.duration,0,1);this.progress=h;var i=this.camera;if(this._elapsed=v?l=Math.abs(d-v):l=Math.abs(d+f)-v;var m=0;this.clockwise?m=i.rotation+l*o:m=i.rotation-l*o,i.rotation=m,this._onUpdate&&this._onUpdate.call(this._onUpdateScope,i,h,m)}else i.rotation=this.destination,this._onUpdate&&this._onUpdate.call(this._onUpdateScope,i,h,this.destination),this.effectComplete()}},effectComplete:function(){this._onUpdate=null,this._onUpdateScope=null,this.isRunning=!1,this.camera.emit(a.ROTATE_COMPLETE,this.camera,this)},reset:function(){this.isRunning=!1,this._onUpdate=null,this._onUpdateScope=null},destroy:function(){this.reset(),this.camera=null,this.source=null,this.destination=null}});c.exports=n},30330:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(45319),p=t(83419),a=t(19715),r=t(26099),n=new p({initialize:function(s){this.camera=s,this.isRunning=!1,this.duration=0,this.intensity=new r,this.progress=0,this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate,this._onUpdateScope},start:function(e,s,h,i,o){return e===void 0&&(e=100),s===void 0&&(s=.05),h===void 0&&(h=!1),i===void 0&&(i=null),o===void 0&&(o=this.camera.scene),!h&&this.isRunning?this.camera:(this.isRunning=!0,this.duration=e,this.progress=0,typeof s=="number"?this.intensity.set(s):this.intensity.set(s.x,s.y),this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate=i,this._onUpdateScope=o,this.camera.emit(a.SHAKE_START,this.camera,this,e,s),this.camera)},preRender:function(){this.isRunning&&this.camera.matrix.translate(this._offsetX,this._offsetY)},update:function(e,s){if(this.isRunning)if(this._elapsed+=s,this.progress=u(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(45319),p=t(83419),a=t(62640),r=t(19715),n=new p({initialize:function(s){this.camera=s,this.isRunning=!1,this.duration=0,this.source=1,this.destination=1,this.ease,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},start:function(e,s,h,i,o,l){s===void 0&&(s=1e3),h===void 0&&(h=a.Linear),i===void 0&&(i=!1),o===void 0&&(o=null),l===void 0&&(l=this.camera.scene);var f=this.camera;return!i&&this.isRunning||(this.isRunning=!0,this.duration=s,this.progress=0,this.source=f.zoom,this.destination=e,typeof h=="string"&&a.hasOwnProperty(h)?this.ease=a[h]:typeof h=="function"&&(this.ease=h),this._elapsed=0,this._onUpdate=o,this._onUpdateScope=l,this.camera.emit(r.ZOOM_START,this.camera,this,s,e)),f},update:function(e,s){this.isRunning&&(this._elapsed+=s,this.progress=u(this._elapsed/this.duration,0,1),this._elapsed{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={Fade:t(5020),Flash:t(10662),Pan:t(20359),Shake:t(30330),RotateTo:t(34208),Zoom:t(45641)}},16438:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="cameradestroy"},32726:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="camerafadeincomplete"},87807:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="camerafadeinstart"},45917:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="camerafadeoutcomplete"},95666:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="camerafadeoutstart"},47056:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="cameraflashcomplete"},91261:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="cameraflashstart"},45047:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="followupdate"},81927:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="camerapancomplete"},74264:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="camerapanstart"},54419:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="postrender"},79330:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="prerender"},93183:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="camerarotatecomplete"},80112:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="camerarotatestart"},62252:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="camerashakecomplete"},86017:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="camerashakestart"},539:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="camerazoomcomplete"},51892:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="camerazoomstart"},19715:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={DESTROY:t(16438),FADE_IN_COMPLETE:t(32726),FADE_IN_START:t(87807),FADE_OUT_COMPLETE:t(45917),FADE_OUT_START:t(95666),FLASH_COMPLETE:t(47056),FLASH_START:t(91261),FOLLOW_UPDATE:t(45047),PAN_COMPLETE:t(81927),PAN_START:t(74264),POST_RENDER:t(54419),PRE_RENDER:t(79330),ROTATE_COMPLETE:t(93183),ROTATE_START:t(80112),SHAKE_COMPLETE:t(62252),SHAKE_START:t(86017),ZOOM_COMPLETE:t(539),ZOOM_START:t(51892)}},87969:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={Camera:t(38058),BaseCamera:t(71911),CameraManager:t(32743),Effects:t(20052),Events:t(19715)}},63091:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(35154),a=new u({initialize:function(n){this.camera=p(n,"camera",null),this.left=p(n,"left",null),this.right=p(n,"right",null),this.up=p(n,"up",null),this.down=p(n,"down",null),this.zoomIn=p(n,"zoomIn",null),this.zoomOut=p(n,"zoomOut",null),this.zoomSpeed=p(n,"zoomSpeed",.01),this.minZoom=p(n,"minZoom",.001),this.maxZoom=p(n,"maxZoom",1e3),this.speedX=0,this.speedY=0;var e=p(n,"speed",null);typeof e=="number"?(this.speedX=e,this.speedY=e):(this.speedX=p(n,"speed.x",0),this.speedY=p(n,"speed.y",0)),this._zoom=0,this.active=this.camera!==null},start:function(){return this.active=this.camera!==null,this},stop:function(){return this.active=!1,this},setCamera:function(r){return this.camera=r,this},update:function(r){if(this.active){r===void 0&&(r=1);var n=this.camera;this.up&&this.up.isDown?n.scrollY-=this.speedY*r|0:this.down&&this.down.isDown&&(n.scrollY+=this.speedY*r|0),this.left&&this.left.isDown?n.scrollX-=this.speedX*r|0:this.right&&this.right.isDown&&(n.scrollX+=this.speedX*r|0),this.zoomIn&&this.zoomIn.isDown?(n.zoom-=this.zoomSpeed,n.zoomthis.maxZoom&&(n.zoom=this.maxZoom))}},destroy:function(){this.camera=null,this.left=null,this.right=null,this.up=null,this.down=null,this.zoomIn=null,this.zoomOut=null}});c.exports=a},58818:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(35154),a=new u({initialize:function(n){this.camera=p(n,"camera",null),this.left=p(n,"left",null),this.right=p(n,"right",null),this.up=p(n,"up",null),this.down=p(n,"down",null),this.zoomIn=p(n,"zoomIn",null),this.zoomOut=p(n,"zoomOut",null),this.zoomSpeed=p(n,"zoomSpeed",.01),this.minZoom=p(n,"minZoom",.001),this.maxZoom=p(n,"maxZoom",1e3),this.accelX=0,this.accelY=0;var e=p(n,"acceleration",null);typeof e=="number"?(this.accelX=e,this.accelY=e):(this.accelX=p(n,"acceleration.x",0),this.accelY=p(n,"acceleration.y",0)),this.dragX=0,this.dragY=0;var s=p(n,"drag",null);typeof s=="number"?(this.dragX=s,this.dragY=s):(this.dragX=p(n,"drag.x",0),this.dragY=p(n,"drag.y",0)),this.maxSpeedX=0,this.maxSpeedY=0;var h=p(n,"maxSpeed",null);typeof h=="number"?(this.maxSpeedX=h,this.maxSpeedY=h):(this.maxSpeedX=p(n,"maxSpeed.x",0),this.maxSpeedY=p(n,"maxSpeed.y",0)),this._speedX=0,this._speedY=0,this._zoom=0,this.active=this.camera!==null},start:function(){return this.active=this.camera!==null,this},stop:function(){return this.active=!1,this},setCamera:function(r){return this.camera=r,this},update:function(r){if(this.active){r===void 0&&(r=1);var n=this.camera;this._speedX>0?(this._speedX-=this.dragX*r,this._speedX<0&&(this._speedX=0)):this._speedX<0&&(this._speedX+=this.dragX*r,this._speedX>0&&(this._speedX=0)),this._speedY>0?(this._speedY-=this.dragY*r,this._speedY<0&&(this._speedY=0)):this._speedY<0&&(this._speedY+=this.dragY*r,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,this._speedX!==0&&(n.scrollX-=this._speedX*r|0),this._speedY!==0&&(n.scrollY-=this._speedY*r|0),this._zoom!==0&&(n.zoom+=this._zoom,n.zoomthis.maxZoom&&(n.zoom=this.maxZoom))}},destroy:function(){this.camera=null,this.left=null,this.right=null,this.up=null,this.down=null,this.zoomIn=null,this.zoomOut=null}});c.exports=a},38865:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={FixedKeyControl:t(63091),SmoothedKeyControl:t(58818)}},26638:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={Controls:t(38865),Scene2D:t(87969)}},8054:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u={VERSION:"3.87",LOG_VERSION:"v387",BlendModes:t(10312),ScaleModes:t(29795),AUTO:0,CANVAS:1,WEBGL:2,HEADLESS:3,FOREVER:-1,NONE:4,UP:5,DOWN:6,LEFT:7,RIGHT:8};c.exports=u},69547:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(8054),a=t(42363),r=t(82264),n=t(95540),e=t(35154),s=t(41212),h=t(29747),i=t(75508),o=t(36060),l=t(80333),f=new u({initialize:function(v){v===void 0&&(v={});var m=["#ff0000","#ffff00","#00ff00","#00ffff","#000000"],g="#ffffff",x=e(v,"scale",null);this.width=e(x,"width",1024,v),this.height=e(x,"height",768,v),this.zoom=e(x,"zoom",1,v),this.parent=e(x,"parent",void 0,v),this.scaleMode=e(x,x?"mode":"scaleMode",0,v),this.expandParent=e(x,"expandParent",!0,v),this.autoRound=e(x,"autoRound",!1,v),this.autoCenter=e(x,"autoCenter",0,v),this.resizeInterval=e(x,"resizeInterval",500,v),this.fullscreenTarget=e(x,"fullscreenTarget",null,v),this.minWidth=e(x,"min.width",0,v),this.maxWidth=e(x,"max.width",0,v),this.minHeight=e(x,"min.height",0,v),this.maxHeight=e(x,"max.height",0,v),this.snapWidth=e(x,"snap.width",0,v),this.snapHeight=e(x,"snap.height",0,v),this.renderType=e(v,"type",p.AUTO),this.canvas=e(v,"canvas",null),this.context=e(v,"context",null),this.canvasStyle=e(v,"canvasStyle",null),this.customEnvironment=e(v,"customEnvironment",!1),this.sceneConfig=e(v,"scene",null),this.seed=e(v,"seed",[(Date.now()*Math.random()).toString()]),i.RND=new i.RandomDataGenerator(this.seed),this.gameTitle=e(v,"title",""),this.gameURL=e(v,"url","https://phaser.io/"+p.LOG_VERSION),this.gameVersion=e(v,"version",""),this.autoFocus=e(v,"autoFocus",!0),this.stableSort=e(v,"stableSort",-1),this.stableSort===-1&&(this.stableSort=r.browser.es2019?1:0),r.features.stableSort=this.stableSort,this.domCreateContainer=e(v,"dom.createContainer",!1),this.domPointerEvents=e(v,"dom.pointerEvents","none"),this.inputKeyboard=e(v,"input.keyboard",!0),this.inputKeyboardEventTarget=e(v,"input.keyboard.target",window),this.inputKeyboardCapture=e(v,"input.keyboard.capture",[]),this.inputMouse=e(v,"input.mouse",!0),this.inputMouseEventTarget=e(v,"input.mouse.target",null),this.inputMousePreventDefaultDown=e(v,"input.mouse.preventDefaultDown",!0),this.inputMousePreventDefaultUp=e(v,"input.mouse.preventDefaultUp",!0),this.inputMousePreventDefaultMove=e(v,"input.mouse.preventDefaultMove",!0),this.inputMousePreventDefaultWheel=e(v,"input.mouse.preventDefaultWheel",!0),this.inputTouch=e(v,"input.touch",r.input.touch),this.inputTouchEventTarget=e(v,"input.touch.target",null),this.inputTouchCapture=e(v,"input.touch.capture",!0),this.inputActivePointers=e(v,"input.activePointers",1),this.inputSmoothFactor=e(v,"input.smoothFactor",0),this.inputWindowEvents=e(v,"input.windowEvents",!0),this.inputGamepad=e(v,"input.gamepad",!1),this.inputGamepadEventTarget=e(v,"input.gamepad.target",window),this.disableContextMenu=e(v,"disableContextMenu",!1),this.audio=e(v,"audio",{}),this.hideBanner=e(v,"banner",null)===!1,this.hidePhaser=e(v,"banner.hidePhaser",!1),this.bannerTextColor=e(v,"banner.text",g),this.bannerBackgroundColor=e(v,"banner.background",m),this.gameTitle===""&&this.hidePhaser&&(this.hideBanner=!0),this.fps=e(v,"fps",null),this.disablePreFX=e(v,"disablePreFX",!1),this.disablePostFX=e(v,"disablePostFX",!1);var S=e(v,"render",null);this.pipeline=e(S,"pipeline",null,v),this.autoMobilePipeline=e(S,"autoMobilePipeline",!0,v),this.defaultPipeline=e(S,"defaultPipeline",o.MULTI_PIPELINE,v),this.antialias=e(S,"antialias",!0,v),this.antialiasGL=e(S,"antialiasGL",!0,v),this.mipmapFilter=e(S,"mipmapFilter","",v),this.desynchronized=e(S,"desynchronized",!1,v),this.roundPixels=e(S,"roundPixels",!1,v),this.pixelArt=e(S,"pixelArt",this.zoom!==1,v),this.pixelArt&&(this.antialias=!1,this.antialiasGL=!1,this.roundPixels=!0),this.transparent=e(S,"transparent",!1,v),this.clearBeforeRender=e(S,"clearBeforeRender",!0,v),this.preserveDrawingBuffer=e(S,"preserveDrawingBuffer",!1,v),this.premultipliedAlpha=e(S,"premultipliedAlpha",!0,v),this.failIfMajorPerformanceCaveat=e(S,"failIfMajorPerformanceCaveat",!1,v),this.powerPreference=e(S,"powerPreference","default",v),this.batchSize=e(S,"batchSize",4096,v),this.maxTextures=e(S,"maxTextures",-1,v),this.maxLights=e(S,"maxLights",10,v);var C=e(v,"backgroundColor",0);this.backgroundColor=l(C),this.transparent&&(this.backgroundColor=l(0),this.backgroundColor.alpha=0),this.preBoot=e(v,"callbacks.preBoot",h),this.postBoot=e(v,"callbacks.postBoot",h),this.physics=e(v,"physics",{}),this.defaultPhysicsSystem=e(this.physics,"default",!1),this.loaderBaseURL=e(v,"loader.baseURL",""),this.loaderPath=e(v,"loader.path",""),this.loaderMaxParallelDownloads=e(v,"loader.maxParallelDownloads",r.os.android?6:32),this.loaderCrossOrigin=e(v,"loader.crossOrigin",void 0),this.loaderResponseType=e(v,"loader.responseType",""),this.loaderAsync=e(v,"loader.async",!0),this.loaderUser=e(v,"loader.user",""),this.loaderPassword=e(v,"loader.password",""),this.loaderTimeout=e(v,"loader.timeout",0),this.loaderMaxRetries=e(v,"loader.maxRetries",2),this.loaderWithCredentials=e(v,"loader.withCredentials",!1),this.loaderImageLoadType=e(v,"loader.imageLoadType","XHR"),this.loaderLocalScheme=e(v,"loader.localScheme",["file://","capacitor://"]),this.glowFXQuality=e(v,"fx.glow.quality",.1),this.glowFXDistance=e(v,"fx.glow.distance",10),this.installGlobalPlugins=[],this.installScenePlugins=[];var E=e(v,"plugins",null),P=a.DefaultScene;E&&(Array.isArray(E)?this.defaultPlugins=E:s(E)&&(this.installGlobalPlugins=n(E,"global",[]),this.installScenePlugins=n(E,"scene",[]),Array.isArray(E.default)?P=E.default:Array.isArray(E.defaultMerge)&&(P=P.concat(E.defaultMerge)))),this.defaultPlugins=P;var R="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAg";this.defaultImage=e(v,"images.default",R+"AQMAAABJtOi3AAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAABVJREFUeF7NwIEAAAAAgKD9qdeocAMAoAABm3DkcAAAAABJRU5ErkJggg=="),this.missingImage=e(v,"images.missing",R+"CAIAAAD8GO2jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJ9JREFUeNq01ssOwyAMRFG46v//Mt1ESmgh+DFmE2GPOBARKb2NVjo+17PXLD8a1+pl5+A+wSgFygymWYHBb0FtsKhJDdZlncG2IzJ4ayoMDv20wTmSMzClEgbWYNTAkQ0Z+OJ+A/eWnAaR9+oxCF4Os0H8htsMUp+pwcgBBiMNnAwF8GqIgL2hAzaGFFgZauDPKABmowZ4GL369/0rwACp2yA/ttmvsQAAAABJRU5ErkJggg=="),this.whiteImage=e(v,"images.white","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAIAAAAmkwkpAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABdJREFUeNpi/P//PwMMMDEgAdwcgAADAJZuAwXJYZOzAAAAAElFTkSuQmCC"),window&&(window.FORCE_WEBGL?this.renderType=p.WEBGL:window.FORCE_CANVAS&&(this.renderType=p.CANVAS))}});c.exports=f},86054:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(20623),p=t(27919),a=t(8054),r=t(89357),n=function(e){var s=e.config;if((s.customEnvironment||s.canvas)&&s.renderType===a.AUTO)throw new Error("Must set explicit renderType in custom environment");if(!s.customEnvironment&&!s.canvas&&s.renderType!==a.HEADLESS)if(s.renderType===a.AUTO&&(s.renderType=r.webGL?a.WEBGL:a.CANVAS),s.renderType===a.WEBGL){if(!r.webGL)throw new Error("Cannot create WebGL context, aborting.")}else if(s.renderType===a.CANVAS){if(!r.canvas)throw new Error("Cannot create Canvas context, aborting.")}else throw new Error("Unknown value for renderer type: "+s.renderType);s.antialias||p.disableSmoothing();var h=e.scale.baseSize,i=h.width,o=h.height;if(s.canvas?(e.canvas=s.canvas,e.canvas.width=i,e.canvas.height=o):e.canvas=p.create(e,i,o,s.renderType),s.canvasStyle&&(e.canvas.style=s.canvasStyle),s.antialias||u.setCrisp(e.canvas),s.renderType!==a.HEADLESS){var l,f;l=t(68627),f=t(74797),s.renderType===a.WEBGL?e.renderer=new f(e):(e.renderer=new l(e),e.context=e.renderer.gameContext)}};c.exports=n},96391:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(8054),p=function(a){var r=a.config;if(!r.hideBanner){var n="WebGL";r.renderType===u.CANVAS?n="Canvas":r.renderType===u.HEADLESS&&(n="Headless");var e=r.audio,s=a.device.audio,h;if(s.webAudio&&!e.disableWebAudio?h="Web Audio":e.noAudio||!s.webAudio&&!s.audioData?h="No Audio":h="HTML5 Audio",a.device.browser.ie)window.console&&console.log("Phaser v"+u.VERSION+" / https://phaser.io");else{var i="",o=[i];if(Array.isArray(r.bannerBackgroundColor)){var l;r.bannerBackgroundColor.forEach(function(d){i=i.concat("%c "),o.push("background: "+d),l=d}),o[o.length-1]="color: "+r.bannerTextColor+"; background: "+l}else i=i.concat("%c "),o.push("color: "+r.bannerTextColor+"; background: "+r.bannerBackgroundColor);o.push("background: transparent"),r.gameTitle&&(i=i.concat(r.gameTitle),r.gameVersion&&(i=i.concat(" v"+r.gameVersion)),r.hidePhaser||(i=i.concat(" / ")));var f="";r.hidePhaser||(i=i.concat("Phaser v"+u.VERSION+f+" ("+n+" | "+h+")")),i=i.concat(" %c "+r.gameURL),o[0]=i,console.log.apply(console,o)}}};c.exports=p},50127:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(40366),p=t(60848),a=t(24047),r=t(27919),n=t(83419),e=t(69547),s=t(83719),h=t(86054),i=t(45893),o=t(96391),l=t(82264),f=t(57264),d=t(50792),v=t(8443),m=t(7003),g=t(37277),x=t(77332),S=t(76531),C=t(60903),E=t(69442),P=t(17130),R=t(65898),M=t(51085),A=t(14747),L=new n({initialize:function(N){this.config=new e(N),this.renderer=null,this.domContainer=null,this.canvas=null,this.context=null,this.isBooted=!1,this.isRunning=!1,this.events=new d,this.anims=new p(this),this.textures=new P(this),this.cache=new a(this),this.registry=new i(this,new d),this.input=new m(this,this.config),this.scene=new C(this,this.config.sceneConfig),this.device=l,this.scale=new S(this,this.config),this.sound=null,this.sound=A.create(this),this.loop=new R(this,this.config.fps),this.plugins=new x(this,this.config),this.pendingDestroy=!1,this.removeCanvas=!1,this.noReturn=!1,this.hasFocus=!1,this.isPaused=!1,f(this.boot.bind(this))},boot:function(){if(!g.hasCore("EventEmitter")){console.warn("Aborting. Core Plugins missing.");return}this.isBooted=!0,this.config.preBoot(this),this.scale.preBoot(),h(this),s(this),o(this),u(this.canvas,this.config.parent),this.textures.once(E.READY,this.texturesReady,this),this.events.emit(v.BOOT)},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)),M(this);var w=this.events;w.on(v.HIDDEN,this.onHidden,this),w.on(v.VISIBLE,this.onVisible,this),w.on(v.BLUR,this.onBlur,this),w.on(v.FOCUS,this.onFocus,this)},step:function(w,N){if(this.pendingDestroy)return this.runDestroy();if(!this.isPaused){var b=this.events;b.emit(v.PRE_STEP,w,N),b.emit(v.STEP,w,N),this.scene.update(w,N),b.emit(v.POST_STEP,w,N);var V=this.renderer;V.preRender(),b.emit(v.PRE_RENDER,V,w,N),this.scene.render(V),V.postRender(),b.emit(v.POST_RENDER,V,w,N)}},headlessStep:function(w,N){if(this.pendingDestroy)return this.runDestroy();if(!this.isPaused){var b=this.events;b.emit(v.PRE_STEP,w,N),b.emit(v.STEP,w,N),this.scene.update(w,N),b.emit(v.POST_STEP,w,N),this.scene.isProcessing=!1,b.emit(v.PRE_RENDER,null,w,N),b.emit(v.POST_RENDER,null,w,N)}},onHidden:function(){this.loop.pause(),this.events.emit(v.PAUSE)},pause:function(){var w=this.isPaused;this.isPaused=!0,w||this.events.emit(v.PAUSE)},onVisible:function(){this.loop.resume(),this.events.emit(v.RESUME,this.loop.pauseDuration)},resume:function(){var w=this.isPaused;this.isPaused=!1,w&&this.events.emit(v.RESUME,0)},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(w,N){N===void 0&&(N=!1),this.pendingDestroy=!0,this.removeCanvas=w,this.noReturn=N},runDestroy:function(){this.scene.destroy(),this.events.emit(v.DESTROY),this.events.removeAllListeners(),this.renderer&&this.renderer.destroy(),this.removeCanvas&&this.canvas&&(r.remove(this.canvas),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas)),this.domContainer&&this.domContainer.parentNode&&this.domContainer.parentNode.removeChild(this.domContainer),this.loop.destroy(),this.pendingDestroy=!1}});c.exports=L},65898:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(35154),a=t(29747),r=t(43092),n=new u({initialize:function(s,h){this.game=s,this.raf=new r,this.started=!1,this.running=!1,this.minFps=p(h,"min",5),this.targetFps=p(h,"target",60),this.fpsLimit=p(h,"limit",0),this.hasFpsLimit=this.fpsLimit>0,this._limitRate=this.hasFpsLimit?1e3/this.fpsLimit:0,this._min=1e3/this.minFps,this._target=1e3/this.targetFps,this.actualFps=this.targetFps,this.nextFpsUpdate=0,this.framesThisSecond=0,this.callback=a,this.forceSetTimeOut=p(h,"forceSetTimeOut",!1),this.time=0,this.startTime=0,this.lastTime=0,this.frame=0,this.inFocus=!0,this.pauseDuration=0,this._pauseTime=0,this._coolDown=0,this.delta=0,this.deltaIndex=0,this.deltaHistory=[],this.deltaSmoothingMax=p(h,"deltaHistory",10),this.panicMax=p(h,"panicMax",120),this.rawDelta=0,this.now=0,this.smoothStep=p(h,"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.pauseDuration=this.time-this._pauseTime,this.startTime+=this.pauseDuration},resetDelta:function(){var e=window.performance.now();this.time=e,this.lastTime=e,this.nextFpsUpdate=e+1e3,this.framesThisSecond=0;for(var s=0;s0||!this.inFocus)&&(this._coolDown--,e=Math.min(e,this._target)),e>this._min&&(e=h[s],e=Math.min(e,this._min)),h[s]=e,this.deltaIndex++,this.deltaIndex>=i&&(this.deltaIndex=0);for(var o=0,l=0;l=this.nextFpsUpdate&&this.updateFPS(e),this.framesThisSecond++,this.delta>=this._limitRate&&(this.callback(e,this.delta),this.delta=0),this.lastTime=e,this.frame++},step:function(e){this.now=e;var s=Math.max(0,e-this.lastTime);this.rawDelta=s,this.time+=this.rawDelta,this.smoothStep&&(s=this.smoothDelta(s)),this.delta=s,e>=this.nextFpsUpdate&&this.updateFPS(e),this.framesThisSecond++,this.callback(e,s),this.lastTime=e,this.frame++},tick:function(){var e=window.performance.now();this.hasFpsLimit?this.stepLimitFPS(e):this.step(e)},sleep:function(){this.running&&(this.raf.stop(),this.running=!1)},wake:function(e){e===void 0&&(e=!1);var s=window.performance.now();if(!this.running){e&&(this.startTime+=-this.lastTime+(this.lastTime+s));var h=this.hasFpsLimit?this.stepLimitFPS.bind(this):this.step.bind(this);this.raf.start(h,this.forceSetTimeOut,this._target),this.running=!0,this.nextFpsUpdate=s+1e3,this.framesThisSecond=0,this.fpsLimitTriggered=!1,this.tick()}},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.raf.destroy(),this.raf=null,this.game=null,this.callback=null}});c.exports=n},51085:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(8443),p=function(a){var r,n=a.events;if(document.hidden!==void 0)r="visibilitychange";else{var e=["webkit","moz","ms"];e.forEach(function(h){document[h+"Hidden"]!==void 0&&(document.hidden=function(){return document[h+"Hidden"]},r=h+"visibilitychange")})}var s=function(h){document.hidden||h.type==="pause"?n.emit(u.HIDDEN):n.emit(u.VISIBLE)};r&&document.addEventListener(r,s,!1),window.onblur=function(){n.emit(u.BLUR)},window.onfocus=function(){n.emit(u.FOCUS)},window.focus&&a.config.autoFocus&&window.focus()};c.exports=p},97217:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="blur"},47548:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="boot"},19814:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="contextlost"},68446:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="destroy"},41700:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="focus"},25432:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="hidden"},65942:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="pause"},59211:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="postrender"},47789:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="poststep"},39066:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="prerender"},460:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="prestep"},16175:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="ready"},42331:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="resume"},11966:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="step"},32969:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="systemready"},94830:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="visible"},8443:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={BLUR:t(97217),BOOT:t(47548),CONTEXT_LOST:t(19814),DESTROY:t(68446),FOCUS:t(41700),HIDDEN:t(25432),PAUSE:t(65942),POST_RENDER:t(59211),POST_STEP:t(47789),PRE_RENDER:t(39066),PRE_STEP:t(460),READY:t(16175),RESUME:t(42331),STEP:t(11966),SYSTEM_READY:t(32969),VISIBLE:t(94830)}},42857:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={Config:t(69547),CreateRenderer:t(86054),DebugHeader:t(96391),Events:t(8443),TimeStep:t(65898),VisibilityHandler:t(51085)}},99584:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(5290),p=t(27919),a=t(35154),r=function(n){var e=a(n,"data",[]),s=a(n,"canvas",null),h=a(n,"palette",u),i=a(n,"pixelWidth",1),o=a(n,"pixelHeight",i),l=a(n,"resizeCanvas",!0),f=a(n,"clearCanvas",!0),d=a(n,"preRender",null),v=a(n,"postRender",null),m=Math.floor(Math.abs(e[0].length*i)),g=Math.floor(Math.abs(e.length*o));s||(s=p.create2D(this,m,g),l=!1,f=!1),l&&(s.width=m,s.height=g);var x=s.getContext("2d",{willReadFrequently:!0});f&&x.clearRect(0,0,m,g),d&&d(s,x);for(var S=0;S{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={GenerateTexture:t(99584),Palettes:t(57763)}},5290:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={0:"#000",1:"#9D9D9D",2:"#FFF",3:"#BE2633",4:"#E06F8B",5:"#493C2B",6:"#A46422",7:"#EB8931",8:"#F7E26B",9:"#2F484E",A:"#44891A",B:"#A3CE27",C:"#1B2632",D:"#005784",E:"#31A2F2",F:"#B2DCEF"}},23816:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.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"}},9866:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.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"}},77552:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.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"}},92259:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.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"}},57763:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={ARNE16:t(5290),C64:t(23816),CGA:t(9866),JMP:t(77552),MSX:t(92259)}},46728:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(36316),a=t(80021),r=t(26099),n=new u({Extends:a,initialize:function(s,h,i,o){a.call(this,"CubicBezierCurve"),Array.isArray(s)&&(o=new r(s[6],s[7]),i=new r(s[4],s[5]),h=new r(s[2],s[3]),s=new r(s[0],s[1])),this.p0=s,this.p1=h,this.p2=i,this.p3=o},getStartPoint:function(e){return e===void 0&&(e=new r),e.copy(this.p0)},getResolution:function(e){return e},getPoint:function(e,s){s===void 0&&(s=new r);var h=this.p0,i=this.p1,o=this.p2,l=this.p3;return s.set(p(e,h.x,i.x,o.x,l.x),p(e,h.y,i.y,o.y,l.y))},draw:function(e,s){s===void 0&&(s=32);var h=this.getPoints(s);e.beginPath(),e.moveTo(this.p0.x,this.p0.y);for(var i=1;i{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(19217),a=t(87841),r=t(26099),n=new u({initialize:function(s){this.type=s,this.defaultDivisions=5,this.arcLengthDivisions=100,this.cacheArcLengths=[],this.needsUpdate=!0,this.active=!0,this._tmpVec2A=new r,this._tmpVec2B=new r},draw:function(e,s){return s===void 0&&(s=32),e.strokePoints(this.getPoints(s))},getBounds:function(e,s){e||(e=new a),s===void 0&&(s=16);var h=this.getLength();s>h&&(s=h/2);var i=Math.max(1,Math.round(h/s));return p(this.getSpacedPoints(i),e)},getDistancePoints:function(e){var s=this.getLength(),h=Math.max(1,s/e);return this.getSpacedPoints(h)},getEndPoint:function(e){return e===void 0&&(e=new r),this.getPointAt(1,e)},getLength:function(){var e=this.getLengths();return e[e.length-1]},getLengths:function(e){if(e===void 0&&(e=this.arcLengthDivisions),this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var s=[],h,i=this.getPoint(0,this._tmpVec2A),o=0;s.push(0);for(var l=1;l<=e;l++)h=this.getPoint(l/e,this._tmpVec2B),o+=h.distance(i),s.push(o),i.copy(h);return this.cacheArcLengths=s,s},getPointAt:function(e,s){var h=this.getUtoTmapping(e);return this.getPoint(h,s)},getPoints:function(e,s,h){h===void 0&&(h=[]),e||(s?e=this.getLength()/s:e=this.defaultDivisions);for(var i=0;i<=e;i++)h.push(this.getPoint(i/e));return h},getRandomPoint:function(e){return e===void 0&&(e=new r),this.getPoint(Math.random(),e)},getSpacedPoints:function(e,s,h){h===void 0&&(h=[]),e||(s?e=this.getLength()/s:e=this.defaultDivisions);for(var i=0;i<=e;i++){var o=this.getUtoTmapping(i/e,null,e);h.push(this.getPoint(o))}return h},getStartPoint:function(e){return e===void 0&&(e=new r),this.getPointAt(0,e)},getTangent:function(e,s){s===void 0&&(s=new r);var h=1e-4,i=e-h,o=e+h;return i<0&&(i=0),o>1&&(o=1),this.getPoint(i,this._tmpVec2A),this.getPoint(o,s),s.subtract(this._tmpVec2A).normalize()},getTangentAt:function(e,s){var h=this.getUtoTmapping(e);return this.getTangent(h,s)},getTFromDistance:function(e,s){return e<=0?0:this.getUtoTmapping(0,e,s)},getUtoTmapping:function(e,s,h){var i=this.getLengths(h),o=0,l=i.length,f;s?f=Math.min(s,i[l-1]):f=e*i[l-1];for(var d=0,v=l-1,m;d<=v;)if(o=Math.floor(d+(v-d)/2),m=i[o]-f,m<0)d=o+1;else if(m>0)v=o-1;else{v=o;break}if(o=v,i[o]===f)return o/(l-1);var g=i[o],x=i[o+1],S=x-g,C=(f-g)/S;return(o+C)/(l-1)},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()}});c.exports=n},73825:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(80021),a=t(39506),r=t(35154),n=t(43396),e=t(26099),s=new u({Extends:p,initialize:function(i,o,l,f,d,v,m,g){if(typeof i=="object"){var x=i;i=r(x,"x",0),o=r(x,"y",0),l=r(x,"xRadius",0),f=r(x,"yRadius",l),d=r(x,"startAngle",0),v=r(x,"endAngle",360),m=r(x,"clockwise",!1),g=r(x,"rotation",0)}else f===void 0&&(f=l),d===void 0&&(d=0),v===void 0&&(v=360),m===void 0&&(m=!1),g===void 0&&(g=0);p.call(this,"EllipseCurve"),this.p0=new e(i,o),this._xRadius=l,this._yRadius=f,this._startAngle=a(d),this._endAngle=a(v),this._clockwise=m,this._rotation=a(g)},getStartPoint:function(h){return h===void 0&&(h=new e),this.getPoint(0,h)},getResolution:function(h){return h*2},getPoint:function(h,i){i===void 0&&(i=new e);for(var o=Math.PI*2,l=this._endAngle-this._startAngle,f=Math.abs(l)o;)l-=o;l{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(80021),a=t(19217),r=t(87841),n=t(26099),e=new u({Extends:p,initialize:function(h,i){p.call(this,"LineCurve"),Array.isArray(h)&&(i=new n(h[2],h[3]),h=new n(h[0],h[1])),this.p0=h,this.p1=i,this.arcLengthDivisions=1},getBounds:function(s){return s===void 0&&(s=new r),a([this.p0,this.p1],s)},getStartPoint:function(s){return s===void 0&&(s=new n),s.copy(this.p0)},getResolution:function(s){return s===void 0&&(s=1),s},getPoint:function(s,h){return h===void 0&&(h=new n),s===1?h.copy(this.p1):(h.copy(this.p1).subtract(this.p0).scale(s).add(this.p0),h)},getPointAt:function(s,h){return this.getPoint(s,h)},getTangent:function(s,h){return h===void 0&&(h=new n),h.copy(this.p1).subtract(this.p0).normalize(),h},getUtoTmapping:function(s,h,i){var o;if(h){var l=this.getLengths(i),f=l[l.length-1],d=Math.min(h,f);o=d/f}else o=s;return o},draw:function(s){return s.lineBetween(this.p0.x,this.p0.y,this.p1.x,this.p1.y),s},toJSON:function(){return{type:this.type,points:[this.p0.x,this.p0.y,this.p1.x,this.p1.y]}}});e.fromJSON=function(s){var h=s.points,i=new n(h[0],h[1]),o=new n(h[2],h[3]);return new e(i,o)},c.exports=e},14744:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(80021),a=t(32112),r=t(26099),n=new u({Extends:p,initialize:function(s,h,i){p.call(this,"QuadraticBezierCurve"),Array.isArray(s)&&(i=new r(s[4],s[5]),h=new r(s[2],s[3]),s=new r(s[0],s[1])),this.p0=s,this.p1=h,this.p2=i},getStartPoint:function(e){return e===void 0&&(e=new r),e.copy(this.p0)},getResolution:function(e){return e},getPoint:function(e,s){s===void 0&&(s=new r);var h=this.p0,i=this.p1,o=this.p2;return s.set(a(e,h.x,i.x,o.x),a(e,h.y,i.y,o.y))},draw:function(e,s){s===void 0&&(s=32);var h=this.getPoints(s);e.beginPath(),e.moveTo(this.p0.x,this.p0.y);for(var i=1;i{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(87842),p=t(83419),a=t(80021),r=t(26099),n=new p({Extends:a,initialize:function(s){s===void 0&&(s=[]),a.call(this,"SplineCurve"),this.points=[],this.addPoints(s)},addPoints:function(e){for(var s=0;sh.length-2?h.length-1:o+1],m=h[o>h.length-3?h.length-1:o+2];return s.set(u(l,f.x,d.x,v.x,m.x),u(l,f.y,d.y,v.y,m.y))},toJSON:function(){for(var e=[],s=0;s{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={Path:t(46669),MoveTo:t(68618),CubicBezier:t(46728),Curve:t(80021),Ellipse:t(73825),Line:t(33951),QuadraticBezier:t(14744),Spline:t(42534)}},68618:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(26099),a=new u({initialize:function(n,e){this.active=!1,this.p0=new p(n,e)},getPoint:function(r,n){return n===void 0&&(n=new p),n.copy(this.p0)},getPointAt:function(r,n){return this.getPoint(r,n)},getResolution:function(){return 1},getLength:function(){return 0},toJSON:function(){return{type:"MoveTo",points:[this.p0.x,this.p0.y]}}});c.exports=a},46669:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(46728),a=t(73825),r=t(39429),n=t(33951),e=t(68618),s=t(14744),h=t(87841),i=t(42534),o=t(26099),l=t(36383),f=new u({initialize:function(v,m){v===void 0&&(v=0),m===void 0&&(m=0),this.name="",this.defaultDivisions=12,this.curves=[],this.cacheLengths=[],this.autoClose=!1,this.startPoint=new o,this._tmpVec2A=new o,this._tmpVec2B=new o,typeof v=="object"?this.fromJSON(v):this.startPoint.set(v,m)},add:function(d){return this.curves.push(d),this},circleTo:function(d,v,m){return v===void 0&&(v=!1),this.ellipseTo(d,d,0,360,v,m)},closePath:function(){var d=this.curves[0].getPoint(0),v=this.curves[this.curves.length-1].getPoint(1);return d.equals(v)||this.curves.push(new n(v,d)),this},cubicBezierTo:function(d,v,m,g,x,S){var C=this.getEndPoint(),E,P,R;return d instanceof o?(E=d,P=v,R=m):(E=new o(m,g),P=new o(x,S),R=new o(d,v)),this.add(new p(C,E,P,R))},quadraticBezierTo:function(d,v,m,g){var x=this.getEndPoint(),S,C;return d instanceof o?(S=d,C=v):(S=new o(m,g),C=new o(d,v)),this.add(new s(x,S,C))},draw:function(d,v){for(var m=0;m=v)return this.curves[g];g++}return null},getEndPoint:function(d){return d===void 0&&(d=new o),this.curves.length>0?this.curves[this.curves.length-1].getPoint(1,d):d.copy(this.startPoint),d},getLength:function(){var d=this.getCurveLengths();return d[d.length-1]},getPoint:function(d,v){v===void 0&&(v=new o);for(var m=d*this.getLength(),g=this.getCurveLengths(),x=0;x=m){var S=g[x]-m,C=this.curves[x],E=C.getLength(),P=E===0?0:1-S/E;return C.getPointAt(P,v)}x++}return null},getPoints:function(d,v){!d&&!v&&(d=this.defaultDivisions);for(var m=[],g,x=0;x1&&!m[m.length-1].equals(m[0])&&m.push(m[0]),m},getRandomPoint:function(d){return d===void 0&&(d=new o),this.getPoint(Math.random(),d)},getSpacedPoints:function(d){d===void 0&&(d=40);for(var v=[],m=0;m<=d;m++)v.push(this.getPoint(m/d));return this.autoClose&&v.push(v[0]),v},getStartPoint:function(d){return d===void 0&&(d=new o),d.copy(this.startPoint)},getTangent:function(d,v){v===void 0&&(v=new o);for(var m=d*this.getLength(),g=this.getCurveLengths(),x=0;x=m){var S=g[x]-m,C=this.curves[x],E=C.getLength(),P=E===0?0:1-S/E;return C.getTangentAt(P,v)}x++}return null},lineTo:function(d,v){d instanceof o?this._tmpVec2B.copy(d):typeof d=="object"?this._tmpVec2B.setFromObject(d):this._tmpVec2B.set(d,v);var m=this.getEndPoint(this._tmpVec2A);return this.add(new n([m.x,m.y,this._tmpVec2B.x,this._tmpVec2B.y]))},splineTo:function(d){return d.unshift(this.getEndPoint()),this.add(new i(d))},moveTo:function(d,v){return d instanceof o?this.add(new e(d.x,d.y)):this.add(new e(d,v))},toJSON:function(){for(var d=[],v=0;v{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(24882),a=new u({initialize:function(n,e){this.parent=n,this.events=e,e||(this.events=n.events?n.events:n),this.list={},this.values={},this._frozen=!1,!n.hasOwnProperty("sys")&&this.events&&this.events.once(p.DESTROY,this.destroy,this)},get:function(r){var n=this.list;if(Array.isArray(r)){for(var e=[],s=0;s{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(45893),a=t(37277),r=t(44594),n=new u({Extends:p,initialize:function(s){p.call(this,s,s.sys.events),this.scene=s,this.systems=s.sys,s.sys.events.once(r.BOOT,this.boot,this),s.sys.events.on(r.START,this.start,this)},boot:function(){this.events=this.systems.events,this.events.once(r.DESTROY,this.destroy,this)},start:function(){this.events.once(r.SHUTDOWN,this.shutdown,this)},shutdown:function(){this.systems.events.off(r.SHUTDOWN,this.shutdown,this)},destroy:function(){p.prototype.destroy.call(this),this.events.off(r.START,this.start,this),this.scene=null,this.systems=null}});a.register("DataManagerPlugin",n,"data"),c.exports=n},10700:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="changedata"},93608:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="changedata-"},60883:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="destroy"},69780:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="removedata"},22166:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="setdata"},24882:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={CHANGE_DATA:t(10700),CHANGE_DATA_KEY:t(93608),DESTROY:t(60883),REMOVE_DATA:t(69780),SET_DATA:t(22166)}},44965:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={DataManager:t(45893),DataManagerPlugin:t(63646),Events:t(24882)}},7098:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(84148),p={flac:!1,aac:!1,audioData:!1,dolby:!1,m4a:!1,mp3:!1,ogg:!1,opus:!1,wav:!1,webAudio:!1,webm:!1};function a(){if(typeof importScripts=="function")return p;p.audioData=!!window.Audio,p.webAudio=!!(window.AudioContext||window.webkitAudioContext);var r=document.createElement("audio"),n=!!r.canPlayType;try{if(n){var e=function(i,o){var l=r.canPlayType("audio/"+i).replace(/^no$/,"");return o?!!(l||r.canPlayType("audio/"+o).replace(/^no$/,"")):!!l};if(p.ogg=e('ogg; codecs="vorbis"'),p.opus=e('ogg; codecs="opus"',"opus"),p.mp3=e("mpeg"),p.wav=e("wav"),p.m4a=e("x-m4a"),p.aac=e("aac"),p.flac=e("flac","x-flac"),p.webm=e('webm; codecs="vorbis"'),r.canPlayType('audio/mp4; codecs="ec-3"')!==""){if(u.edge)p.dolby=!0;else if(u.safari&&u.safariVersion>=9&&/Mac OS X (\d+)_(\d+)/.test(navigator.userAgent)){var s=parseInt(RegExp.$1,10),h=parseInt(RegExp.$2,10);(s===10&&h>=11||s>10)&&(p.dolby=!0)}}}}catch{}return p}c.exports=a()},84148:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(25892),p={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,es2019:!1};function a(){var r=navigator.userAgent;return/Edg\/\d+/.test(r)?(p.edge=!0,p.es2019=!0):/OPR/.test(r)?(p.opera=!0,p.es2019=!0):/Chrome\/(\d+)/.test(r)&&!u.windowsPhone?(p.chrome=!0,p.chromeVersion=parseInt(RegExp.$1,10),p.es2019=p.chromeVersion>69):/Firefox\D+(\d+)/.test(r)?(p.firefox=!0,p.firefoxVersion=parseInt(RegExp.$1,10),p.es2019=p.firefoxVersion>10):/AppleWebKit\/(?!.*CriOS)/.test(r)&&u.iOS?(p.mobileSafari=!0,p.es2019=!0):/MSIE (\d+\.\d+);/.test(r)?(p.ie=!0,p.ieVersion=parseInt(RegExp.$1,10)):/Version\/(\d+\.\d+(\.\d+)?) Safari/.test(r)&&!u.windowsPhone?(p.safari=!0,p.safariVersion=parseInt(RegExp.$1,10),p.es2019=p.safariVersion>10):/Trident\/(\d+\.\d+)(.*)rv:(\d+\.\d+)/.test(r)&&(p.ie=!0,p.trident=!0,p.tridentVersion=parseInt(RegExp.$1,10),p.ieVersion=parseInt(RegExp.$3,10)),/Silk/.test(r)&&(p.silk=!0),p}c.exports=a()},89289:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(27919),p={supportInverseAlpha:!1,supportNewBlendModes:!1};function a(){var e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAABAQMAAADD8p2OAAAAA1BMVEX/",s="AAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==",h=new Image;return h.onload=function(){var i=new Image;i.onload=function(){var o=u.create2D(i,6),l=o.getContext("2d",{willReadFrequently:!0});if(l.globalCompositeOperation="multiply",l.drawImage(h,0,0),l.drawImage(i,2,0),!l.getImageData(2,0,1,1))return!1;var f=l.getImageData(2,0,1,1).data;u.remove(i),p.supportNewBlendModes=f[0]===255&&f[1]===0&&f[2]===0},i.src=e+"/wCKxvRF"+s},h.src=e+"AP804Oa6"+s,!1}function r(){var e=u.create2D(this,2),s=e.getContext("2d",{willReadFrequently:!0});s.fillStyle="rgba(10, 20, 30, 0.5)",s.fillRect(0,0,1,1);var h=s.getImageData(0,0,1,1);if(h===null)return!1;s.putImageData(h,1,0);var i=s.getImageData(1,0,1,1),o=i.data[0]===h.data[0]&&i.data[1]===h.data[1]&&i.data[2]===h.data[2]&&i.data[3]===h.data[3];return u.remove(this),o}function n(){return typeof importScripts!="function"&&document!==void 0&&(p.supportNewBlendModes=a(),p.supportInverseAlpha=r()),p}c.exports=n()},89357:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(25892),p=t(84148),a=t(27919),r={canvas:!1,canvasBitBltShift:null,file:!1,fileSystem:!1,getUserMedia:!0,littleEndian:!1,localStorage:!1,pointerLock:!1,stableSort:!1,support32bit:!1,vibration:!1,webGL:!1,worker:!1};function n(){var s=new ArrayBuffer(4),h=new Uint8Array(s),i=new Uint32Array(s);return h[0]=161,h[1]=178,h[2]=195,h[3]=212,i[0]===3569595041?!0:i[0]===2712847316?!1:null}function e(){if(typeof importScripts=="function")return r;r.canvas=!!window.CanvasRenderingContext2D;try{r.localStorage=!!localStorage.getItem}catch{r.localStorage=!1}r.file=!!window.File&&!!window.FileReader&&!!window.FileList&&!!window.Blob,r.fileSystem=!!window.requestFileSystem;var s=!1,h=function(){if(window.WebGLRenderingContext)try{var i=a.createWebGL(this),o=i.getContext("webgl")||i.getContext("experimental-webgl"),l=a.create2D(this),f=l.getContext("2d",{willReadFrequently:!0}),d=f.createImageData(1,1);return s=d.data instanceof Uint8ClampedArray,a.remove(i),a.remove(l),!!o}catch{return!1}return!1};return r.webGL=h(),r.worker=!!window.Worker,r.pointerLock="pointerLockElement"in document||"mozPointerLockElement"in document||"webkitPointerLockElement"in document,navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia||navigator.oGetUserMedia,window.URL=window.URL||window.webkitURL||window.mozURL||window.msURL,r.getUserMedia=r.getUserMedia&&!!navigator.getUserMedia&&!!window.URL,p.firefox&&p.firefoxVersion<21&&(r.getUserMedia=!1),!u.iOS&&(p.ie||p.firefox||p.chrome)&&(r.canvasBitBltShift=!0),(p.safari||p.mobileSafari)&&(r.canvasBitBltShift=!1),navigator.vibrate=navigator.vibrate||navigator.webkitVibrate||navigator.mozVibrate||navigator.msVibrate,navigator.vibrate&&(r.vibration=!0),typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint32Array<"u"&&(r.littleEndian=n()),r.support32bit=typeof ArrayBuffer<"u"&&typeof Uint8ClampedArray<"u"&&typeof Int32Array<"u"&&r.littleEndian!==null&&s,r}c.exports=e()},91639:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={available:!1,cancel:"",keyboard:!1,request:""};function t(){if(typeof importScripts=="function")return y;var u,p="Fullscreen",a="FullScreen",r=["request"+p,"request"+a,"webkitRequest"+p,"webkitRequest"+a,"msRequest"+p,"msRequest"+a,"mozRequest"+a,"mozRequest"+p];for(u=0;u{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(84148),p={gamepads:!1,mspointer:!1,touch:!1,wheelEvent:null};function a(){return typeof importScripts=="function"||(("ontouchstart"in document.documentElement||navigator.maxTouchPoints&&navigator.maxTouchPoints>=1)&&(p.touch=!0),(navigator.msPointerEnabled||navigator.pointerEnabled)&&(p.mspointer=!0),navigator.getGamepads&&(p.gamepads=!0),"onwheel"in window||u.ie&&"WheelEvent"in window?p.wheelEvent="wheel":"onmousewheel"in window?p.wheelEvent="mousewheel":u.firefox&&"MouseScrollEvent"in window&&(p.wheelEvent="DOMMouseScroll")),p}c.exports=a()},25892:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={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};function t(){if(typeof importScripts=="function")return y;var u=navigator.userAgent;/Windows/.test(u)?y.windows=!0:/Mac OS/.test(u)&&!/like Mac OS/.test(u)?navigator.maxTouchPoints&&navigator.maxTouchPoints>2?(y.iOS=!0,y.iPad=!0,navigator.appVersion.match(/Version\/(\d+)/),y.iOSVersion=parseInt(RegExp.$1,10)):y.macOS=!0:/Android/.test(u)?y.android=!0:/Linux/.test(u)?y.linux=!0:/iP[ao]d|iPhone/i.test(u)?(y.iOS=!0,navigator.appVersion.match(/OS (\d+)/),y.iOSVersion=parseInt(RegExp.$1,10),y.iPhone=u.toLowerCase().indexOf("iphone")!==-1,y.iPad=u.toLowerCase().indexOf("ipad")!==-1):/Kindle/.test(u)||/\bKF[A-Z][A-Z]+/.test(u)||/Silk.*Mobile Safari/.test(u)?y.kindle=!0:/CrOS/.test(u)&&(y.chromeOS=!0),(/Windows Phone/i.test(u)||/IEMobile/i.test(u))&&(y.android=!1,y.iOS=!1,y.macOS=!1,y.windows=!0,y.windowsPhone=!0);var p=/Silk/.test(u);return(y.windows||y.macOS||y.linux&&!p||y.chromeOS)&&(y.desktop=!0),(y.windowsPhone||/Windows NT/i.test(u)&&/Touch/i.test(u))&&(y.desktop=!1),navigator.standalone&&(y.webApp=!0),typeof importScripts!="function"&&(window.cordova!==void 0&&(y.cordova=!0),window.ejecta!==void 0&&(y.ejecta=!0)),typeof process<"u"&&process.versions&&process.versions.node&&(y.node=!0),y.node&&typeof process.versions=="object"&&(y.nodeWebkit=!!process.versions["node-webkit"],y.electron=!!process.versions.electron),/Crosswalk/.test(u)&&(y.crosswalk=!0),y.pixelRatio=window.devicePixelRatio||1,y}c.exports=t()},43267:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(95540),p={h264:!1,hls:!1,mp4:!1,m4v:!1,ogg:!1,vp9:!1,webm:!1,hasRequestVideoFrame:!1};function a(){if(typeof importScripts=="function")return p;var r=document.createElement("video"),n=!!r.canPlayType,e=/^no$/;try{n&&(r.canPlayType('video/ogg; codecs="theora"').replace(e,"")&&(p.ogg=!0),r.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(e,"")&&(p.h264=!0,p.mp4=!0),r.canPlayType("video/x-m4v").replace(e,"")&&(p.m4v=!0),r.canPlayType('video/webm; codecs="vp8, vorbis"').replace(e,"")&&(p.webm=!0),r.canPlayType('video/webm; codecs="vp9"').replace(e,"")&&(p.vp9=!0),r.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(e,"")&&(p.hls=!0))}catch{}return r.parentNode&&r.parentNode.removeChild(r),p.getVideoURL=function(s){Array.isArray(s)||(s=[s]);for(var h=0;h{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={os:t(25892),browser:t(84148),features:t(89357),input:t(31784),audio:t(7098),video:t(43267),fullscreen:t(91639),canvasFeatures:t(89289)}},89422:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=new Float32Array(20),a=new u({initialize:function(){this._matrix=new Float32Array(20),this.alpha=1,this._dirty=!0,this._data=new Float32Array(20),this.reset()},set:function(r){return this._matrix.set(r),this._dirty=!0,this},reset:function(){var r=this._matrix;return r.fill(0),r[0]=1,r[6]=1,r[12]=1,r[18]=1,this.alpha=1,this._dirty=!0,this},getData:function(){var r=this._data;return this._dirty&&(r.set(this._matrix),r[4]/=255,r[9]/=255,r[14]/=255,r[19]/=255,this._dirty=!1),r},brightness:function(r,n){r===void 0&&(r=0),n===void 0&&(n=!1);var e=r;return this.multiply([e,0,0,0,0,0,e,0,0,0,0,0,e,0,0,0,0,0,1,0],n)},saturate:function(r,n){r===void 0&&(r=0),n===void 0&&(n=!1);var e=r*2/3+1,s=(e-1)*-.5;return this.multiply([e,s,s,0,0,s,e,s,0,0,s,s,e,0,0,0,0,0,1,0],n)},desaturate:function(r){return r===void 0&&(r=!1),this.saturate(-1,r)},hue:function(r,n){r===void 0&&(r=0),n===void 0&&(n=!1),r=r/180*Math.PI;var e=Math.cos(r),s=Math.sin(r),h=.213,i=.715,o=.072;return this.multiply([h+e*(1-h)+s*-h,i+e*-i+s*-i,o+e*-o+s*(1-o),0,0,h+e*-h+s*.143,i+e*(1-i)+s*.14,o+e*-o+s*-.283,0,0,h+e*-h+s*-(1-h),i+e*-i+s*i,o+e*(1-o)+s*o,0,0,0,0,0,1,0],n)},grayscale:function(r,n){return r===void 0&&(r=1),n===void 0&&(n=!1),this.saturate(-r,n)},blackWhite:function(r){return r===void 0&&(r=!1),this.multiply(a.BLACK_WHITE,r)},contrast:function(r,n){r===void 0&&(r=0),n===void 0&&(n=!1);var e=r+1,s=-.5*(e-1);return this.multiply([e,0,0,0,s,0,e,0,0,s,0,0,e,0,s,0,0,0,1,0],n)},negative:function(r){return r===void 0&&(r=!1),this.multiply(a.NEGATIVE,r)},desaturateLuminance:function(r){return r===void 0&&(r=!1),this.multiply(a.DESATURATE_LUMINANCE,r)},sepia:function(r){return r===void 0&&(r=!1),this.multiply(a.SEPIA,r)},night:function(r,n){return r===void 0&&(r=.1),n===void 0&&(n=!1),this.multiply([r*-2,-r,0,0,0,-r,0,r,0,0,0,r,r*2,0,0,0,0,0,1,0],n)},lsd:function(r){return r===void 0&&(r=!1),this.multiply(a.LSD,r)},brown:function(r){return r===void 0&&(r=!1),this.multiply(a.BROWN,r)},vintagePinhole:function(r){return r===void 0&&(r=!1),this.multiply(a.VINTAGE,r)},kodachrome:function(r){return r===void 0&&(r=!1),this.multiply(a.KODACHROME,r)},technicolor:function(r){return r===void 0&&(r=!1),this.multiply(a.TECHNICOLOR,r)},polaroid:function(r){return r===void 0&&(r=!1),this.multiply(a.POLAROID,r)},shiftToBGR:function(r){return r===void 0&&(r=!1),this.multiply(a.SHIFT_BGR,r)},multiply:function(r,n){n===void 0&&(n=!1),n||this.reset();var e=this._matrix,s=p;return s.set(e),e.set([s[0]*r[0]+s[1]*r[5]+s[2]*r[10]+s[3]*r[15],s[0]*r[1]+s[1]*r[6]+s[2]*r[11]+s[3]*r[16],s[0]*r[2]+s[1]*r[7]+s[2]*r[12]+s[3]*r[17],s[0]*r[3]+s[1]*r[8]+s[2]*r[13]+s[3]*r[18],s[0]*r[4]+s[1]*r[9]+s[2]*r[14]+s[3]*r[19]+s[4],s[5]*r[0]+s[6]*r[5]+s[7]*r[10]+s[8]*r[15],s[5]*r[1]+s[6]*r[6]+s[7]*r[11]+s[8]*r[16],s[5]*r[2]+s[6]*r[7]+s[7]*r[12]+s[8]*r[17],s[5]*r[3]+s[6]*r[8]+s[7]*r[13]+s[8]*r[18],s[5]*r[4]+s[6]*r[9]+s[7]*r[14]+s[8]*r[19]+s[9],s[10]*r[0]+s[11]*r[5]+s[12]*r[10]+s[13]*r[15],s[10]*r[1]+s[11]*r[6]+s[12]*r[11]+s[13]*r[16],s[10]*r[2]+s[11]*r[7]+s[12]*r[12]+s[13]*r[17],s[10]*r[3]+s[11]*r[8]+s[12]*r[13]+s[13]*r[18],s[10]*r[4]+s[11]*r[9]+s[12]*r[14]+s[13]*r[19]+s[14],s[15]*r[0]+s[16]*r[5]+s[17]*r[10]+s[18]*r[15],s[15]*r[1]+s[16]*r[6]+s[17]*r[11]+s[18]*r[16],s[15]*r[2]+s[16]*r[7]+s[17]*r[12]+s[18]*r[17],s[15]*r[3]+s[16]*r[8]+s[17]*r[13]+s[18]*r[18],s[15]*r[4]+s[16]*r[9]+s[17]*r[14]+s[18]*r[19]+s[19]]),this._dirty=!0,this}});a.BLACK_WHITE=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0],a.NEGATIVE=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0],a.DESATURATE_LUMINANCE=[.2764723,.929708,.0938197,0,-37.1,.2764723,.929708,.0938197,0,-37.1,.2764723,.929708,.0938197,0,-37.1,0,0,0,1,0],a.SEPIA=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0],a.LSD=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0],a.BROWN=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0],a.VINTAGE=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0],a.KODACHROME=[1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0],a.TECHNICOLOR=[1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0],a.POLAROID=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],a.SHIFT_BGR=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0],c.exports=a},51767:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(29747),a=new u({initialize:function(n,e,s){this._rgb=[0,0,0],this.onChangeCallback=p,this.dirty=!1,this.set(n,e,s)},set:function(r,n,e){return r===void 0&&(r=0),n===void 0&&(n=0),e===void 0&&(e=0),this._rgb=[r,n,e],this.onChange(),this},equals:function(r,n,e){var s=this._rgb;return s[0]===r&&s[1]===n&&s[2]===e},onChange:function(){this.dirty=!0;var r=this._rgb;this.onChangeCallback.call(this,r[0],r[1],r[2])},r:{get:function(){return this._rgb[0]},set:function(r){this._rgb[0]=r,this.onChange()}},g:{get:function(){return this._rgb[1]},set:function(r){this._rgb[1]=r,this.onChange()}},b:{get:function(){return this._rgb[2]},set:function(r){this._rgb[2]=r,this.onChange()}},destroy:function(){this.onChangeCallback=null}});c.exports=a},60461:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={TOP_LEFT:0,TOP_CENTER:1,TOP_RIGHT:2,LEFT_TOP:3,LEFT_CENTER:4,LEFT_BOTTOM:5,CENTER:6,RIGHT_TOP:7,RIGHT_CENTER:8,RIGHT_BOTTOM:9,BOTTOM_LEFT:10,BOTTOM_CENTER:11,BOTTOM_RIGHT:12};c.exports=y},54312:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(62235),p=t(35893),a=t(86327),r=t(88417),n=function(e,s,h,i){return h===void 0&&(h=0),i===void 0&&(i=0),r(e,p(s)+h),a(e,u(s)+i),e};c.exports=n},46768:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(62235),p=t(26541),a=t(86327),r=t(385),n=function(e,s,h,i){return h===void 0&&(h=0),i===void 0&&(i=0),r(e,p(s)-h),a(e,u(s)+i),e};c.exports=n},35827:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(62235),p=t(54380),a=t(86327),r=t(40136),n=function(e,s,h,i){return h===void 0&&(h=0),i===void 0&&(i=0),r(e,p(s)+h),a(e,u(s)+i),e};c.exports=n},46871:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(66786),p=t(35893),a=t(7702),r=function(n,e,s,h){return s===void 0&&(s=0),h===void 0&&(h=0),u(n,p(e)+s,a(e)+h),n};c.exports=r},5198:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(7702),p=t(26541),a=t(20786),r=t(385),n=function(e,s,h,i){return h===void 0&&(h=0),i===void 0&&(i=0),r(e,p(s)-h),a(e,u(s)+i),e};c.exports=n},11879:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(60461),p=[];p[u.BOTTOM_CENTER]=t(54312),p[u.BOTTOM_LEFT]=t(46768),p[u.BOTTOM_RIGHT]=t(35827),p[u.CENTER]=t(46871),p[u.LEFT_CENTER]=t(5198),p[u.RIGHT_CENTER]=t(80503),p[u.TOP_CENTER]=t(89698),p[u.TOP_LEFT]=t(922),p[u.TOP_RIGHT]=t(21373),p[u.LEFT_BOTTOM]=p[u.BOTTOM_LEFT],p[u.LEFT_TOP]=p[u.TOP_LEFT],p[u.RIGHT_BOTTOM]=p[u.BOTTOM_RIGHT],p[u.RIGHT_TOP]=p[u.TOP_RIGHT];var a=function(r,n,e,s,h){return p[e](r,n,s,h)};c.exports=a},80503:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(7702),p=t(54380),a=t(20786),r=t(40136),n=function(e,s,h,i){return h===void 0&&(h=0),i===void 0&&(i=0),r(e,p(s)+h),a(e,u(s)+i),e};c.exports=n},89698:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(35893),p=t(17717),a=t(88417),r=t(66737),n=function(e,s,h,i){return h===void 0&&(h=0),i===void 0&&(i=0),a(e,u(s)+h),r(e,p(s)-i),e};c.exports=n},922:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(26541),p=t(17717),a=t(385),r=t(66737),n=function(e,s,h,i){return h===void 0&&(h=0),i===void 0&&(i=0),a(e,u(s)-h),r(e,p(s)-i),e};c.exports=n},21373:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(54380),p=t(17717),a=t(40136),r=t(66737),n=function(e,s,h,i){return h===void 0&&(h=0),i===void 0&&(i=0),a(e,u(s)+h),r(e,p(s)-i),e};c.exports=n},91660:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={BottomCenter:t(54312),BottomLeft:t(46768),BottomRight:t(35827),Center:t(46871),LeftCenter:t(5198),QuickSet:t(11879),RightCenter:t(80503),TopCenter:t(89698),TopLeft:t(922),TopRight:t(21373)}},71926:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(60461),p=t(79291),a={In:t(91660),To:t(16694)};a=p(!1,a,u),c.exports=a},21578:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(62235),p=t(35893),a=t(88417),r=t(66737),n=function(e,s,h,i){return h===void 0&&(h=0),i===void 0&&(i=0),a(e,p(s)+h),r(e,u(s)+i),e};c.exports=n},10210:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(62235),p=t(26541),a=t(385),r=t(66737),n=function(e,s,h,i){return h===void 0&&(h=0),i===void 0&&(i=0),a(e,p(s)-h),r(e,u(s)+i),e};c.exports=n},82341:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(62235),p=t(54380),a=t(40136),r=t(66737),n=function(e,s,h,i){return h===void 0&&(h=0),i===void 0&&(i=0),a(e,p(s)+h),r(e,u(s)+i),e};c.exports=n},87958:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(62235),p=t(26541),a=t(86327),r=t(40136),n=function(e,s,h,i){return h===void 0&&(h=0),i===void 0&&(i=0),r(e,p(s)-h),a(e,u(s)+i),e};c.exports=n},40080:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(7702),p=t(26541),a=t(20786),r=t(40136),n=function(e,s,h,i){return h===void 0&&(h=0),i===void 0&&(i=0),r(e,p(s)-h),a(e,u(s)+i),e};c.exports=n},88466:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(26541),p=t(17717),a=t(40136),r=t(66737),n=function(e,s,h,i){return h===void 0&&(h=0),i===void 0&&(i=0),a(e,u(s)-h),r(e,p(s)-i),e};c.exports=n},38829:(c,y,t)=>{/** + * @author samme + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(60461),p=[];p[u.BOTTOM_CENTER]=t(21578),p[u.BOTTOM_LEFT]=t(10210),p[u.BOTTOM_RIGHT]=t(82341),p[u.LEFT_BOTTOM]=t(87958),p[u.LEFT_CENTER]=t(40080),p[u.LEFT_TOP]=t(88466),p[u.RIGHT_BOTTOM]=t(19211),p[u.RIGHT_CENTER]=t(34609),p[u.RIGHT_TOP]=t(48741),p[u.TOP_CENTER]=t(49440),p[u.TOP_LEFT]=t(81288),p[u.TOP_RIGHT]=t(61323);var a=function(r,n,e,s,h){return p[e](r,n,s,h)};c.exports=a},19211:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(62235),p=t(54380),a=t(86327),r=t(385),n=function(e,s,h,i){return h===void 0&&(h=0),i===void 0&&(i=0),r(e,p(s)+h),a(e,u(s)+i),e};c.exports=n},34609:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(7702),p=t(54380),a=t(20786),r=t(385),n=function(e,s,h,i){return h===void 0&&(h=0),i===void 0&&(i=0),r(e,p(s)+h),a(e,u(s)+i),e};c.exports=n},48741:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(54380),p=t(17717),a=t(385),r=t(66737),n=function(e,s,h,i){return h===void 0&&(h=0),i===void 0&&(i=0),a(e,u(s)+h),r(e,p(s)-i),e};c.exports=n},49440:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(35893),p=t(17717),a=t(86327),r=t(88417),n=function(e,s,h,i){return h===void 0&&(h=0),i===void 0&&(i=0),r(e,u(s)+h),a(e,p(s)-i),e};c.exports=n},81288:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(26541),p=t(17717),a=t(86327),r=t(385),n=function(e,s,h,i){return h===void 0&&(h=0),i===void 0&&(i=0),r(e,u(s)-h),a(e,p(s)-i),e};c.exports=n},61323:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(54380),p=t(17717),a=t(86327),r=t(40136),n=function(e,s,h,i){return h===void 0&&(h=0),i===void 0&&(i=0),r(e,u(s)+h),a(e,p(s)-i),e};c.exports=n},16694:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={BottomCenter:t(21578),BottomLeft:t(10210),BottomRight:t(82341),LeftBottom:t(87958),LeftCenter:t(40080),LeftTop:t(88466),QuickSet:t(38829),RightBottom:t(19211),RightCenter:t(34609),RightTop:t(48741),TopCenter:t(49440),TopLeft:t(81288),TopRight:t(61323)}},66786:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(88417),p=t(20786),a=function(r,n,e){return u(r,n),p(r,e)};c.exports=a},62235:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t.y+t.height-t.height*t.originY};c.exports=y},72873:(c,y,t)=>{/** + * @author samme + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(62235),p=t(26541),a=t(54380),r=t(17717),n=t(87841),e=function(s,h){h===void 0&&(h=new n);var i=p(s),o=r(s);return h.x=i,h.y=o,h.width=a(s)-i,h.height=u(s)-o,h};c.exports=e},35893:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t.x-t.width*t.originX+t.width*.5};c.exports=y},7702:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t.y-t.height*t.originY+t.height*.5};c.exports=y},26541:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t.x-t.width*t.originX};c.exports=y},87431:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t.width*t.originX};c.exports=y},46928:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t.height*t.originY};c.exports=y},54380:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t.x+t.width-t.width*t.originX};c.exports=y},17717:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t.y-t.height*t.originY};c.exports=y},86327:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return t.y=u-t.height+t.height*t.originY,t};c.exports=y},88417:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){var p=t.width*t.originX;return t.x=u+p-t.width*.5,t};c.exports=y},20786:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){var p=t.height*t.originY;return t.y=u+p-t.height*.5,t};c.exports=y},385:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return t.x=u+t.width*t.originX,t};c.exports=y},40136:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return t.x=u-t.width+t.width*t.originX,t};c.exports=y},66737:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return t.y=u+t.height*t.originY,t};c.exports=y},58724:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={CenterOn:t(66786),GetBottom:t(62235),GetBounds:t(72873),GetCenterX:t(35893),GetCenterY:t(7702),GetLeft:t(26541),GetOffsetX:t(87431),GetOffsetY:t(46928),GetRight:t(54380),GetTop:t(17717),SetBottom:t(86327),SetCenterX:t(88417),SetCenterY:t(20786),SetLeft:t(385),SetRight:t(40136),SetTop:t(66737)}},20623:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={setCrisp:function(t){var u=["optimizeSpeed","-moz-crisp-edges","-o-crisp-edges","-webkit-optimize-contrast","optimize-contrast","crisp-edges","pixelated"];return u.forEach(function(p){t.style["image-rendering"]=p}),t.style.msInterpolationMode="nearest-neighbor",t},setBicubic:function(t){return t.style["image-rendering"]="auto",t.style.msInterpolationMode="bicubic",t}};c.exports=y},27919:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(8054),p=t(68703),a=[],r=!1,n=function(){var e=function(m,g,x,S,C){g===void 0&&(g=1),x===void 0&&(x=1),S===void 0&&(S=u.CANVAS),C===void 0&&(C=!1);var E,P=i(S);return P===null?(P={parent:m,canvas:document.createElement("canvas"),type:S},S===u.CANVAS&&a.push(P),E=P.canvas):(P.parent=m,E=P.canvas),C&&(P.parent=E),E.width=g,E.height=x,r&&S===u.CANVAS&&p.disable(E.getContext("2d",{willReadFrequently:!1})),E},s=function(m,g,x){return e(m,g,x,u.CANVAS)},h=function(m,g,x){return e(m,g,x,u.WEBGL)},i=function(m){if(m===void 0&&(m=u.CANVAS),m===u.WEBGL)return null;for(var g=0;g{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y="",t=function(){var u=function(n){for(var e=["i","webkitI","msI","mozI","oI"],s=0;s{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return u===void 0&&(u="none"),t.style.msTouchAction=u,t.style["ms-touch-action"]=u,t.style["touch-action"]=u,t};c.exports=y},91610:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){u===void 0&&(u="none");var p=["-webkit-","-khtml-","-moz-","-ms-",""];return p.forEach(function(a){t.style[a+"user-select"]=u}),t.style["-webkit-touch-callout"]=u,t.style["-webkit-tap-highlight-color"]="rgba(0, 0, 0, 0)",t};c.exports=y},26253:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={CanvasInterpolation:t(20623),CanvasPool:t(27919),Smoothing:t(68703),TouchAction:t(65208),UserSelect:t(91610)}},40987:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(37589),a=t(1e3),r=t(7537),n=t(87837),e=new u({initialize:function(h,i,o,l){h===void 0&&(h=0),i===void 0&&(i=0),o===void 0&&(o=0),l===void 0&&(l=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(h,i,o,l)},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(s,h,i,o,l){return o===void 0&&(o=255),l===void 0&&(l=!0),this._locked=!0,this.red=s,this.green=h,this.blue=i,this.alpha=o,this._locked=!1,this.update(l)},setGLTo:function(s,h,i,o){return o===void 0&&(o=1),this._locked=!0,this.redGL=s,this.greenGL=h,this.blueGL=i,this.alphaGL=o,this._locked=!1,this.update(!0)},setFromRGB:function(s){return this._locked=!0,this.red=s.r,this.green=s.g,this.blue=s.b,s.hasOwnProperty("a")&&(this.alpha=s.a),this._locked=!1,this.update(!0)},setFromHSV:function(s,h,i){return r(s,h,i,this)},update:function(s){if(s===void 0&&(s=!1),this._locked)return this;var h=this.r,i=this.g,o=this.b,l=this.a;return this._color=p(h,i,o),this._color32=a(h,i,o,l),this._rgba="rgba("+h+","+i+","+o+","+l/255+")",s&&n(h,i,o,this),this},updateHSV:function(){var s=this.r,h=this.g,i=this.b;return n(s,h,i,this),this},clone:function(){return new e(this.r,this.g,this.b,this.a)},gray:function(s){return this.setTo(s,s,s)},random:function(s,h){s===void 0&&(s=0),h===void 0&&(h=255);var i=Math.floor(s+Math.random()*(h-s)),o=Math.floor(s+Math.random()*(h-s)),l=Math.floor(s+Math.random()*(h-s));return this.setTo(i,o,l)},randomGray:function(s,h){s===void 0&&(s=0),h===void 0&&(h=255);var i=Math.floor(s+Math.random()*(h-s));return this.setTo(i,i,i)},saturate:function(s){return this.s+=s/100,this},desaturate:function(s){return this.s-=s/100,this},lighten:function(s){return this.v+=s/100,this},darken:function(s){return this.v-=s/100,this},brighten:function(s){var h=this.r,i=this.g,o=this.b;return h=Math.max(0,Math.min(255,h-Math.round(255*-(s/100)))),i=Math.max(0,Math.min(255,i-Math.round(255*-(s/100)))),o=Math.max(0,Math.min(255,o-Math.round(255*-(s/100)))),this.setTo(h,i,o)},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(s){this.gl[0]=Math.min(Math.abs(s),1),this.r=Math.floor(this.gl[0]*255),this.update(!0)}},greenGL:{get:function(){return this.gl[1]},set:function(s){this.gl[1]=Math.min(Math.abs(s),1),this.g=Math.floor(this.gl[1]*255),this.update(!0)}},blueGL:{get:function(){return this.gl[2]},set:function(s){this.gl[2]=Math.min(Math.abs(s),1),this.b=Math.floor(this.gl[2]*255),this.update(!0)}},alphaGL:{get:function(){return this.gl[3]},set:function(s){this.gl[3]=Math.min(Math.abs(s),1),this.a=Math.floor(this.gl[3]*255),this.update()}},red:{get:function(){return this.r},set:function(s){s=Math.floor(Math.abs(s)),this.r=Math.min(s,255),this.gl[0]=s/255,this.update(!0)}},green:{get:function(){return this.g},set:function(s){s=Math.floor(Math.abs(s)),this.g=Math.min(s,255),this.gl[1]=s/255,this.update(!0)}},blue:{get:function(){return this.b},set:function(s){s=Math.floor(Math.abs(s)),this.b=Math.min(s,255),this.gl[2]=s/255,this.update(!0)}},alpha:{get:function(){return this.a},set:function(s){s=Math.floor(Math.abs(s)),this.a=Math.min(s,255),this.gl[3]=s/255,this.update()}},h:{get:function(){return this._h},set:function(s){this._h=s,r(s,this._s,this._v,this)}},s:{get:function(){return this._s},set:function(s){this._s=s,r(this._h,s,this._v,this)}},v:{get:function(){return this._v},set:function(s){this._v=s,r(this._h,this._s,s,this)}}});c.exports=e},92728:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(37589),p=function(a){a===void 0&&(a=1024);var r=[],n=255,e,s=255,h=0,i=0;for(e=0;e<=n;e++)r.push({r:s,g:e,b:i,color:u(s,e,i)});for(h=255,e=n;e>=0;e--)r.push({r:e,g:h,b:i,color:u(e,h,i)});for(s=0,e=0;e<=n;e++,h--)r.push({r:s,g:h,b:e,color:u(s,h,e)});for(h=0,i=255,e=0;e<=n;e++,i--,s++)r.push({r:s,g:h,b:i,color:u(s,h,i)});if(a===1024)return r;var o=[],l=0,f=1024/a;for(e=0;e{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){var u={r:t>>16&255,g:t>>8&255,b:t&255,a:255};return t>16777215&&(u.a=t>>>24),u};c.exports=y},62957:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){var u=t.toString(16);return u.length===1?"0"+u:u};c.exports=y},37589:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){return t<<16|u<<8|p};c.exports=y},1e3:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){return a<<24|t<<16|u<<8|p};c.exports=y},62183:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(40987),p=t(89528),a=function(r,n,e){var s=e,h=e,i=e;if(n!==0){var o=e<.5?e*(1+n):e+n-e*n,l=2*e-o;s=p(l,o,r+1/3),h=p(l,o,r),i=p(l,o,r-1/3)}var f=new u;return f.setGLTo(s,h,i,1)};c.exports=a},27939:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(7537),p=function(a,r){a===void 0&&(a=1),r===void 0&&(r=1);for(var n=[],e=0;e<=359;e++)n.push(u(e/359,a,r));return n};c.exports=p},7537:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(37589);function p(r,n,e,s){var h=(r+n*6)%6,i=Math.min(h,4-h,1);return Math.round(255*(s-s*e*Math.max(0,i)))}var a=function(r,n,e,s){n===void 0&&(n=1),e===void 0&&(e=1);var h=p(5,r,n,e),i=p(3,r,n,e),o=p(1,r,n,e);return s?s.setTo?s.setTo(h,i,o,s.alpha,!0):(s.r=h,s.g=i,s.b=o,s.color=u(h,i,o),s):{r:h,g:i,b:o,color:u(h,i,o)}};c.exports=a},70238:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(40987),p=function(a){var r=new u;a=a.replace(/^(?:#|0x)?([a-f\d])([a-f\d])([a-f\d])$/i,function(i,o,l,f){return o+o+l+l+f+f});var n=/^(?:#|0x)?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);if(n){var e=parseInt(n[1],16),s=parseInt(n[2],16),h=parseInt(n[3],16);r.setTo(e,s,h)}return r};c.exports=p},89528:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){return p<0&&(p+=1),p>1&&(p-=1),p<.16666666666666666?t+(u-t)*6*p:p<.5?u:p<.6666666666666666?t+(u-t)*(.6666666666666666-p)*6:t};c.exports=y},30100:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(40987),p=t(90664),a=function(r){var n=p(r);return new u(n.r,n.g,n.b,n.a)};c.exports=a},90664:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t>16777215?{a:t>>>24,r:t>>16&255,g:t>>8&255,b:t&255}:{a:255,r:t>>16&255,g:t>>8&255,b:t&255}};c.exports=y},13699:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(28915),p=function(n,e,s,h,i,o,l,f){l===void 0&&(l=100),f===void 0&&(f=0);var d=f/l;return{r:u(n,h,d),g:u(e,i,d),b:u(s,o,d)}},a=function(n,e,s,h){return s===void 0&&(s=100),h===void 0&&(h=0),p(n.r,n.g,n.b,e.r,e.g,e.b,s,h)},r=function(n,e,s,h,i,o){return i===void 0&&(i=100),o===void 0&&(o=0),p(n.r,n.g,n.b,e,s,h,i,o)};c.exports={RGBWithRGB:p,ColorWithRGB:r,ColorWithColor:a}},68957:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(40987),p=function(a){return new u(a.r,a.g,a.b,a.a)};c.exports=p},87388:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(40987),p=function(a){var r=new u,n=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d+(?:\.\d+)?))?\s*\)$/.exec(a.toLowerCase());if(n){var e=parseInt(n[1],10),s=parseInt(n[2],10),h=parseInt(n[3],10),i=n[4]!==void 0?parseFloat(n[4]):1;r.setTo(e,s,h,i*255)}return r};c.exports=p},87837:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){a===void 0&&(a={h:0,s:0,v:0}),t/=255,u/=255,p/=255;var r=Math.min(t,u,p),n=Math.max(t,u,p),e=n-r,s=0,h=n===0?0:e/n,i=n;return n!==r&&(n===t?s=(u-p)/e+(u{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(62957),p=function(a,r,n,e,s){return e===void 0&&(e=255),s===void 0&&(s="#"),s==="#"?"#"+((1<<24)+(a<<16)+(r<<8)+n).toString(16).slice(1,7):"0x"+u(e)+u(a)+u(r)+u(n)};c.exports=p},85386:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(30976),p=t(40987),a=function(r,n){return r===void 0&&(r=0),n===void 0&&(n=255),new p(u(r,n),u(r,n),u(r,n))};c.exports=a},80333:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(70238),p=t(30100),a=t(68957),r=t(87388),n=function(e){var s=typeof e;switch(s){case"string":return e.substr(0,3).toLowerCase()==="rgb"?r(e):u(e);case"number":return p(e);case"object":return a(e)}};c.exports=n},3956:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(40987);u.ColorSpectrum=t(92728),u.ColorToRGBA=t(91588),u.ComponentToHex=t(62957),u.GetColor=t(37589),u.GetColor32=t(1e3),u.HexStringToColor=t(70238),u.HSLToColor=t(62183),u.HSVColorWheel=t(27939),u.HSVToRGB=t(7537),u.HueToComponent=t(89528),u.IntegerToColor=t(30100),u.IntegerToRGB=t(90664),u.Interpolate=t(13699),u.ObjectToColor=t(68957),u.RandomRGB=t(85386),u.RGBStringToColor=t(87388),u.RGBToHSV=t(87837),u.RGBToString=t(75723),u.ValueToColor=t(80333),c.exports=u},27460:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={Align:t(71926),BaseShader:t(73894),Bounds:t(58724),Canvas:t(26253),Color:t(3956),ColorMatrix:t(89422),Masks:t(69781),RGB:t(51767)}},6858:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(39429),a=new u({initialize:function(n,e,s,h,i,o){e||(e=n.sys.make.image({x:s,y:h,key:i,frame:o,add:!1})),this.bitmapMask=e,this.invertAlpha=!1,this.isStencil=!1},setBitmap:function(r){this.bitmapMask=r},preRenderWebGL:function(r,n,e){r.pipelines.BITMAPMASK_PIPELINE.beginMask(this,n,e)},postRenderWebGL:function(r,n,e){r.pipelines.BITMAPMASK_PIPELINE.endMask(this,n,e)},preRenderCanvas:function(){},postRenderCanvas:function(){},destroy:function(){this.bitmapMask=null}});p.register("bitmapMask",function(r,n,e,s,h){return new a(this.scene,r,n,e,s,h)}),c.exports=a},80661:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=new u({initialize:function(r,n){this.geometryMask=n,this.invertAlpha=!1,this.isStencil=!0,this.level=0},setShape:function(a){return this.geometryMask=a,this},setInvertAlpha:function(a){return a===void 0&&(a=!0),this.invertAlpha=a,this},preRenderWebGL:function(a,r,n){var e=a.gl;a.flush(),a.maskStack.length===0&&(e.enable(e.STENCIL_TEST),e.clear(e.STENCIL_BUFFER_BIT),a.maskCount=0),a.currentCameraMask.mask!==this&&(a.currentMask.mask=this),a.maskStack.push({mask:this,camera:n}),this.applyStencil(a,n,!0),a.maskCount++},applyStencil:function(a,r,n){var e=a.gl,s=this.geometryMask,h=a.maskCount,i=255;e.colorMask(!1,!1,!1,!1),n?(e.stencilFunc(e.EQUAL,h,i),e.stencilOp(e.KEEP,e.KEEP,e.INCR),h++):(e.stencilFunc(e.EQUAL,h+1,i),e.stencilOp(e.KEEP,e.KEEP,e.DECR)),this.level=h,s.renderWebGL(a,s,r),a.flush(),e.colorMask(!0,!0,!0,!0),e.stencilOp(e.KEEP,e.KEEP,e.KEEP),this.invertAlpha?e.stencilFunc(e.NOTEQUAL,h,i):e.stencilFunc(e.EQUAL,h,i)},postRenderWebGL:function(a){var r=a.gl;a.maskStack.pop(),a.maskCount--,a.flush();var n=a.currentMask;if(a.maskStack.length===0)n.mask=null,r.disable(r.STENCIL_TEST);else{var e=a.maskStack[a.maskStack.length-1];e.mask.applyStencil(a,e.camera,!1),a.currentCameraMask.mask!==e.mask?(n.mask=e.mask,n.camera=e.camera):n.mask=null}},preRenderCanvas:function(a,r,n){var e=this.geometryMask;a.currentContext.save(),e.renderCanvas(a,e,n,null,null,!0),a.currentContext.clip()},postRenderCanvas:function(a){a.currentContext.restore()},destroy:function(){this.geometryMask=null}});c.exports=p},69781:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={BitmapMask:t(6858),GeometryMask:t(80661)}},73894:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=new u({initialize:function(r,n,e,s){(!n||n==="")&&(n=["precision mediump float;","uniform vec2 resolution;","varying vec2 fragCoord;","void main () {"," vec2 uv = fragCoord / resolution.xy;"," gl_FragColor = vec4(uv.xyx, 1.0);","}"].join(` +`)),(!e||e==="")&&(e=["precision mediump float;","uniform mat4 uProjectionMatrix;","uniform mat4 uViewMatrix;","uniform vec2 uResolution;","attribute vec2 inPosition;","varying vec2 fragCoord;","varying vec2 outTexCoord;","void main () {"," gl_Position = uProjectionMatrix * uViewMatrix * vec4(inPosition, 1.0, 1.0);"," fragCoord = vec2(inPosition.x, uResolution.y - inPosition.y);"," outTexCoord = vec2(inPosition.x / uResolution.x, fragCoord.y / uResolution.y);","}"].join(` +`)),s===void 0&&(s=null),this.key=r,this.fragmentSrc=n,this.vertexSrc=e,this.uniforms=s}});c.exports=p},40366:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){var p;if(u)typeof u=="string"?p=document.getElementById(u):typeof u=="object"&&u.nodeType===1&&(p=u);else if(t.parentElement||u===null)return t;return p||(p=document.body),p.appendChild(t),t};c.exports=y},83719:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(40366),p=function(a){var r=a.config;if(!(!r.parent||!r.domCreateContainer)){var n=document.createElement("div");n.style.cssText=["display: block;","width: "+a.scale.width+"px;","height: "+a.scale.height+"px;","padding: 0; margin: 0;","position: absolute;","overflow: hidden;","pointer-events: "+r.domPointerEvents+";","transform: scale(1);","transform-origin: left top;"].join(" "),a.domContainer=n,u(n,r.parent)}};c.exports=p},57264:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(25892),p=function(a){if(document.readyState==="complete"||document.readyState==="interactive"){a();return}var r=function(){document.removeEventListener("deviceready",r,!0),document.removeEventListener("DOMContentLoaded",r,!0),window.removeEventListener("load",r,!0),a()};document.body?u.cordova?document.addEventListener("deviceready",r,!1):(document.addEventListener("DOMContentLoaded",r,!0),window.addEventListener("load",r,!0)):window.setTimeout(r,20)};c.exports=p},57811:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){if(!t)return window.innerHeight;var u=Math.abs(window.orientation),p={w:0,h:0},a=document.createElement("div");return a.setAttribute("style","position: fixed; height: 100vh; width: 0; top: 0"),document.documentElement.appendChild(a),p.w=u===90?a.offsetHeight:window.innerWidth,p.h=u===90?window.innerWidth:a.offsetHeight,document.documentElement.removeChild(a),a=null,Math.abs(window.orientation)!==90?p.h:p.w};c.exports=y},45818:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(13560),p=function(a,r){var n=window.screen,e=n?n.orientation||n.mozOrientation||n.msOrientation:!1;if(e&&typeof e.type=="string")return e.type;if(typeof e=="string")return e;if(typeof window.orientation=="number")return window.orientation===0||window.orientation===180?u.ORIENTATION.PORTRAIT:u.ORIENTATION.LANDSCAPE;if(window.matchMedia){if(window.matchMedia("(orientation: portrait)").matches)return u.ORIENTATION.PORTRAIT;if(window.matchMedia("(orientation: landscape)").matches)return u.ORIENTATION.LANDSCAPE}else return r>a?u.ORIENTATION.PORTRAIT:u.ORIENTATION.LANDSCAPE};c.exports=p},74403:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){var u;return t!==""&&(typeof t=="string"?u=document.getElementById(t):t&&t.nodeType===1&&(u=t)),u||(u=document.body),u};c.exports=y},56836:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){var u="";try{if(window.DOMParser){var p=new DOMParser;u=p.parseFromString(t,"text/xml")}else u=new ActiveXObject("Microsoft.XMLDOM"),u.loadXML(t)}catch{u=null}return!u||!u.documentElement||u.getElementsByTagName("parsererror").length?null:u};c.exports=y},35846:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){t.parentNode&&t.parentNode.removeChild(t)};c.exports=y},43092:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(29747),a=new u({initialize:function(){this.isRunning=!1,this.callback=p,this.isSetTimeOut=!1,this.timeOutID=null,this.delay=0;var n=this;this.step=function e(s){n.callback(s),n.isRunning&&(n.timeOutID=window.requestAnimationFrame(e))},this.stepTimeout=function e(){n.isRunning&&(n.timeOutID=window.setTimeout(e,n.delay)),n.callback(window.performance.now())}},start:function(r,n,e){this.isRunning||(this.callback=r,this.isSetTimeOut=n,this.delay=e,this.isRunning=!0,this.timeOutID=n?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=p}});c.exports=a},84902:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u={AddToDOM:t(40366),DOMContentLoaded:t(57264),GetInnerHeight:t(57811),GetScreenOrientation:t(45818),GetTarget:t(74403),ParseXML:t(56836),RemoveFromDOM:t(35846),RequestAnimationFrame:t(43092)};c.exports=u},47565:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(50792),a=t(37277),r=new u({Extends:p,initialize:function(){p.call(this)},shutdown:function(){this.removeAllListeners()},destroy:function(){this.removeAllListeners()}});a.register("EventEmitter",r,"events"),c.exports=r},93055:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={EventEmitter:t(47565)}},20122:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(72898),a=t(14811),r=new u({Extends:p,initialize:function(e,s){s===void 0&&(s=1),p.call(this,a.BARREL,e),this.amount=s}});c.exports=r},32251:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(72898),a=t(14811),r=new u({Extends:p,initialize:function(e,s,h,i,o,l,f){h===void 0&&(h=1),i===void 0&&(i=1),o===void 0&&(o=1),l===void 0&&(l=1),f===void 0&&(f=4),p.call(this,a.BLOOM,e),this.steps=f,this.offsetX=h,this.offsetY=i,this.blurStrength=o,this.strength=l,this.glcolor=[1,1,1],s!=null&&(this.color=s)},color:{get:function(){var n=this.glcolor;return(n[0]*255<<16)+(n[1]*255<<8)+(n[2]*255|0)},set:function(n){var e=this.glcolor;e[0]=(n>>16&255)/255,e[1]=(n>>8&255)/255,e[2]=(n&255)/255}}});c.exports=r},9047:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(72898),a=t(14811),r=new u({Extends:p,initialize:function(e,s,h,i,o,l,f){s===void 0&&(s=0),h===void 0&&(h=2),i===void 0&&(i=2),o===void 0&&(o=1),f===void 0&&(f=4),p.call(this,a.BLUR,e),this.quality=s,this.x=h,this.y=i,this.steps=f,this.strength=o,this.glcolor=[1,1,1],l!=null&&(this.color=l)},color:{get:function(){var n=this.glcolor;return(n[0]*255<<16)+(n[1]*255<<8)+(n[2]*255|0)},set:function(n){var e=this.glcolor;e[0]=(n>>16&255)/255,e[1]=(n>>8&255)/255,e[2]=(n&255)/255}}});c.exports=r},27885:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(72898),a=t(14811),r=new u({Extends:p,initialize:function(e,s,h,i,o,l,f,d){s===void 0&&(s=.5),h===void 0&&(h=1),i===void 0&&(i=.2),o===void 0&&(o=!1),l===void 0&&(l=1),f===void 0&&(f=1),d===void 0&&(d=1),p.call(this,a.BOKEH,e),this.radius=s,this.amount=h,this.contrast=i,this.isTiltShift=o,this.strength=d,this.blurX=l,this.blurY=f}});c.exports=r},12578:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(72898),a=t(14811),r=new u({Extends:p,initialize:function(e,s,h,i,o,l){s===void 0&&(s=8),o===void 0&&(o=1),l===void 0&&(l=.005),p.call(this,a.CIRCLE,e),this.scale=o,this.feather=l,this.thickness=s,this.glcolor=[1,.2,.7],this.glcolor2=[1,0,0,.4],h!=null&&(this.color=h),i!=null&&(this.backgroundColor=i)},color:{get:function(){var n=this.glcolor;return(n[0]*255<<16)+(n[1]*255<<8)+(n[2]*255|0)},set:function(n){var e=this.glcolor;e[0]=(n>>16&255)/255,e[1]=(n>>8&255)/255,e[2]=(n&255)/255}},backgroundColor:{get:function(){var n=this.glcolor2;return(n[0]*255<<16)+(n[1]*255<<8)+(n[2]*255|0)},set:function(n){var e=this.glcolor2;e[0]=(n>>16&255)/255,e[1]=(n>>8&255)/255,e[2]=(n&255)/255}},backgroundAlpha:{get:function(){return this.glcolor2[3]},set:function(n){this.glcolor2[3]=n}}});c.exports=r},15802:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(89422),a=t(14811),r=new u({Extends:p,initialize:function(e){p.call(this),this.type=a.COLOR_MATRIX,this.gameObject=e,this.active=!0},destroy:function(){this.gameObject=null,this._matrix=null,this._data=null}});c.exports=r},72898:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=new u({initialize:function(r,n){this.type=r,this.gameObject=n,this.active=!0},setActive:function(a){return this.active=a,this},destroy:function(){this.gameObject=null,this.active=!1}});c.exports=p},44553:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(72898),a=t(14811),r=new u({Extends:p,initialize:function(e,s,h,i){s===void 0&&(s="__WHITE"),h===void 0&&(h=.005),i===void 0&&(i=.005),p.call(this,a.DISPLACEMENT,e),this.x=h,this.y=i,this.glTexture,this.setTexture(s)},setTexture:function(n){var e=this.gameObject.scene.sys.textures.getFrame(n);return e&&(this.glTexture=e.glTexture),this}});c.exports=r},68531:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(72898),a=t(14811),r=new u({Extends:p,initialize:function(e,s,h,i,o){h===void 0&&(h=4),i===void 0&&(i=0),o===void 0&&(o=!1),p.call(this,a.GLOW,e),this.outerStrength=h,this.innerStrength=i,this.knockout=o,this.glcolor=[1,1,1,1],s!==void 0&&(this.color=s)},color:{get:function(){var n=this.glcolor;return(n[0]*255<<16)+(n[1]*255<<8)+(n[2]*255|0)},set:function(n){var e=this.glcolor;e[0]=(n>>16&255)/255,e[1]=(n>>8&255)/255,e[2]=(n&255)/255}}});c.exports=r},37102:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(72898),a=t(14811),r=new u({Extends:p,initialize:function(e,s,h,i,o,l,f,d,v){i===void 0&&(i=.2),o===void 0&&(o=0),l===void 0&&(l=0),f===void 0&&(f=0),d===void 0&&(d=1),v===void 0&&(v=0),p.call(this,a.GRADIENT,e),this.alpha=i,this.size=v,this.fromX=o,this.fromY=l,this.toX=f,this.toY=d,this.glcolor1=[255,0,0],this.glcolor2=[0,255,0],s!=null&&(this.color1=s),h!=null&&(this.color2=h)},color1:{get:function(){var n=this.glcolor1;return(n[0]<<16)+(n[1]<<8)+(n[2]|0)},set:function(n){var e=this.glcolor1;e[0]=n>>16&255,e[1]=n>>8&255,e[2]=n&255}},color2:{get:function(){var n=this.glcolor2;return(n[0]<<16)+(n[1]<<8)+(n[2]|0)},set:function(n){var e=this.glcolor2;e[0]=n>>16&255,e[1]=n>>8&255,e[2]=n&255}}});c.exports=r},86886:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(72898),a=t(14811),r=new u({Extends:p,initialize:function(e,s){s===void 0&&(s=1),p.call(this,a.PIXELATE,e),this.amount=s}});c.exports=r},92322:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(72898),a=t(14811),r=new u({Extends:p,initialize:function(e,s,h,i,o,l,f,d){s===void 0&&(s=0),h===void 0&&(h=0),i===void 0&&(i=.1),o===void 0&&(o=1),f===void 0&&(f=6),d===void 0&&(d=1),p.call(this,a.SHADOW,e),this.x=s,this.y=h,this.decay=i,this.power=o,this.glcolor=[0,0,0,1],this.samples=f,this.intensity=d,l!==void 0&&(this.color=l)},color:{get:function(){var n=this.glcolor;return(n[0]*255<<16)+(n[1]*255<<8)+(n[2]*255|0)},set:function(n){var e=this.glcolor;e[0]=(n>>16&255)/255,e[1]=(n>>8&255)/255,e[2]=(n&255)/255}}});c.exports=r},39563:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(72898),a=t(14811),r=new u({Extends:p,initialize:function(e,s,h,i,o){s===void 0&&(s=.5),h===void 0&&(h=.5),i===void 0&&(i=3),o===void 0&&(o=!1),p.call(this,a.SHINE,e),this.speed=s,this.lineWidth=h,this.gradient=i,this.reveal=o}});c.exports=r},56448:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(72898),a=t(14811),r=new u({Extends:p,initialize:function(e,s,h,i,o){s===void 0&&(s=.5),h===void 0&&(h=.5),i===void 0&&(i=.5),o===void 0&&(o=.5),p.call(this,a.VIGNETTE,e),this.x=s,this.y=h,this.radius=i,this.strength=o}});c.exports=r},38433:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(72898),a=t(14811),r=new u({Extends:p,initialize:function(e,s,h,i,o){s===void 0&&(s=.1),h===void 0&&(h=0),i===void 0&&(i=0),o===void 0&&(o=!1),p.call(this,a.WIPE,e),this.progress=0,this.wipeWidth=s,this.direction=h,this.axis=i,this.reveal=o}});c.exports=r},14811:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={GLOW:4,SHADOW:5,PIXELATE:6,VIGNETTE:7,SHINE:8,BLUR:9,GRADIENT:12,BLOOM:13,COLOR_MATRIX:14,CIRCLE:15,BARREL:16,DISPLACEMENT:17,WIPE:18,BOKEH:19};c.exports=y},66064:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(79291),p=t(14811),a={Barrel:t(20122),Controller:t(72898),Bloom:t(32251),Blur:t(9047),Bokeh:t(27885),Circle:t(12578),ColorMatrix:t(15802),Displacement:t(44553),Glow:t(68531),Gradient:t(37102),Pixelate:t(86886),Shadow:t(92322),Shine:t(39563),Vignette:t(56448),Wipe:t(38433)};a=u(!1,a,p),c.exports=a},25305:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(10312),p=t(23568),a=function(r,n,e){n.x=p(e,"x",0),n.y=p(e,"y",0),n.depth=p(e,"depth",0),n.flipX=p(e,"flipX",!1),n.flipY=p(e,"flipY",!1);var s=p(e,"scale",null);typeof s=="number"?n.setScale(s):s!==null&&(n.scaleX=p(s,"x",1),n.scaleY=p(s,"y",1));var h=p(e,"scrollFactor",null);typeof h=="number"?n.setScrollFactor(h):h!==null&&(n.scrollFactorX=p(h,"x",1),n.scrollFactorY=p(h,"y",1)),n.rotation=p(e,"rotation",0);var i=p(e,"angle",null);i!==null&&(n.angle=i),n.alpha=p(e,"alpha",1);var o=p(e,"origin",null);if(typeof o=="number")n.setOrigin(o);else if(o!==null){var l=p(o,"x",.5),f=p(o,"y",.5);n.setOrigin(l,f)}n.blendMode=p(e,"blendMode",u.NORMAL),n.visible=p(e,"visible",!0);var d=p(e,"add",!0);return d&&r.sys.displayList.add(n),n.preUpdate&&r.sys.updateList.add(n),n};c.exports=a},13059:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(23568),p=function(a,r){var n=u(r,"anims",null);if(n===null)return a;if(typeof n=="string")a.anims.play(n);else if(typeof n=="object"){var e=a.anims,s=u(n,"key",void 0);if(s){var h=u(n,"startFrame",void 0),i=u(n,"delay",0),o=u(n,"repeat",0),l=u(n,"repeatDelay",0),f=u(n,"yoyo",!1),d=u(n,"play",!1),v=u(n,"delayedPlay",0),m={key:s,delay:i,repeat:o,repeatDelay:l,yoyo:f,startFrame:h};d?e.play(m):v>0?e.playAfterDelay(m,v):e.load(m)}}return a};c.exports=p},8050:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(73162),a=t(37277),r=t(51708),n=t(44594),e=t(19186),s=new u({Extends:p,initialize:function(i){p.call(this,i),this.sortChildrenFlag=!1,this.scene=i,this.systems=i.sys,this.events=i.sys.events,this.addCallback=this.addChildCallback,this.removeCallback=this.removeChildCallback,this.events.once(n.BOOT,this.boot,this),this.events.on(n.START,this.start,this)},boot:function(){this.events.once(n.DESTROY,this.destroy,this)},addChildCallback:function(h){h.displayList&&h.displayList!==this&&h.removeFromDisplayList(),h.parentContainer&&h.parentContainer.remove(h),h.displayList||(this.queueDepthSort(),h.displayList=this,h.emit(r.ADDED_TO_SCENE,h,this.scene),this.events.emit(n.ADDED_TO_SCENE,h,this.scene))},removeChildCallback:function(h){this.queueDepthSort(),h.displayList=null,h.emit(r.REMOVED_FROM_SCENE,h,this.scene),this.events.emit(n.REMOVED_FROM_SCENE,h,this.scene)},start:function(){this.events.once(n.SHUTDOWN,this.shutdown,this)},queueDepthSort:function(){this.sortChildrenFlag=!0},depthSort:function(){this.sortChildrenFlag&&(e(this.list,this.sortByDepth),this.sortChildrenFlag=!1)},sortByDepth:function(h,i){return h._depth-i._depth},getChildren:function(){return this.list},shutdown:function(){for(var h=this.list;h.length;)h[0].destroy(!0);this.events.off(n.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.events.off(n.START,this.start,this),this.scene=null,this.systems=null,this.events=null}});a.register("DisplayList",s,"displayList"),c.exports=s},95643:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(53774),a=t(45893),r=t(50792),n=t(51708),e=t(44594),s=new u({Extends:r,initialize:function(i,o){r.call(this),this.scene=i,this.displayList=null,this.type=o,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,this.on(n.ADDED_TO_SCENE,this.addedToScene,this),this.on(n.REMOVED_FROM_SCENE,this.removedFromScene,this),i.sys.queueDepthSort()},setActive:function(h){return this.active=h,this},setName:function(h){return this.name=h,this},setState:function(h){return this.state=h,this},setDataEnabled:function(){return this.data||(this.data=new a(this)),this},setData:function(h,i){return this.data||(this.data=new a(this)),this.data.set(h,i),this},incData:function(h,i){return this.data||(this.data=new a(this)),this.data.inc(h,i),this},toggleData:function(h){return this.data||(this.data=new a(this)),this.data.toggle(h),this},getData:function(h){return this.data||(this.data=new a(this)),this.data.get(h)},setInteractive:function(h,i,o){return this.scene.sys.input.enable(this,h,i,o),this},disableInteractive:function(h){return h===void 0&&(h=!1),this.scene.sys.input.disable(this,h),this},removeInteractive:function(h){return h===void 0&&(h=!1),this.scene.sys.input.clear(this),h&&this.scene.sys.input.resetCursor(),this.input=void 0,this},addedToScene:function(){},removedFromScene:function(){},update:function(){},toJSON:function(){return p(this)},willRender:function(h){var i=this.displayList&&this.displayList.active?this.displayList.willRender(h):!0;return!(!i||s.RENDER_MASK!==this.renderFlags||this.cameraFilter!==0&&this.cameraFilter&h.id)},getIndexList:function(){for(var h=this,i=this.parentContainer,o=[];i&&(o.unshift(i.getIndex(h)),h=i,i.parentContainer);)i=i.parentContainer;return this.displayList?o.unshift(this.displayList.getIndex(h)):o.unshift(this.scene.sys.displayList.getIndex(h)),o},addToDisplayList:function(h){return h===void 0&&(h=this.scene.sys.displayList),this.displayList&&this.displayList!==h&&this.removeFromDisplayList(),h.exists(this)||(this.displayList=h,h.add(this,!0),h.queueDepthSort(),this.emit(n.ADDED_TO_SCENE,this,this.scene),h.events.emit(e.ADDED_TO_SCENE,this,this.scene)),this},addToUpdateList:function(){return this.scene&&this.preUpdate&&this.scene.sys.updateList.add(this),this},removeFromDisplayList:function(){var h=this.displayList||this.scene.sys.displayList;return h&&h.exists(this)&&(h.remove(this,!0),h.queueDepthSort(),this.displayList=null,this.emit(n.REMOVED_FROM_SCENE,this,this.scene),h.events.emit(e.REMOVED_FROM_SCENE,this,this.scene)),this},removeFromUpdateList:function(){return this.scene&&this.preUpdate&&this.scene.sys.updateList.remove(this),this},getDisplayList:function(){var h=null;return this.parentContainer?h=this.parentContainer.list:this.displayList&&(h=this.displayList.list),h},destroy:function(h){!this.scene||this.ignoreDestroy||(h===void 0&&(h=!1),this.preDestroy&&this.preDestroy.call(this),this.emit(n.DESTROY,this,h),this.removeAllListeners(),this.postPipelines&&this.resetPostPipeline(!0),this.removeFromDisplayList(),this.removeFromUpdateList(),this.input&&(this.scene.sys.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),this.preFX&&(this.preFX.destroy(),this.preFX=void 0),this.postFX&&(this.postFX.destroy(),this.postFX=void 0),this.active=!1,this.visible=!1,this.scene=void 0,this.parentContainer=void 0)}});s.RENDER_MASK=15,c.exports=s},44603:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(37277),a=t(44594),r=new u({initialize:function(e){this.scene=e,this.systems=e.sys,this.events=e.sys.events,this.displayList,this.updateList,this.events.once(a.BOOT,this.boot,this),this.events.on(a.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.events.once(a.DESTROY,this.destroy,this)},start:function(){this.events.once(a.SHUTDOWN,this.shutdown,this)},shutdown:function(){this.events.off(a.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.events.off(a.START,this.start,this),this.scene=null,this.systems=null,this.events=null,this.displayList=null,this.updateList=null}});r.register=function(n,e){r.prototype.hasOwnProperty(n)||(r.prototype[n]=e)},r.remove=function(n){r.prototype.hasOwnProperty(n)&&delete r.prototype[n]},p.register("GameObjectCreator",r,"make"),c.exports=r},39429:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(37277),a=t(44594),r=new u({initialize:function(e){this.scene=e,this.systems=e.sys,this.events=e.sys.events,this.displayList,this.updateList,this.events.once(a.BOOT,this.boot,this),this.events.on(a.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.events.once(a.DESTROY,this.destroy,this)},start:function(){this.events.once(a.SHUTDOWN,this.shutdown,this)},existing:function(n){return(n.renderCanvas||n.renderWebGL)&&this.displayList.add(n),n.preUpdate&&this.updateList.add(n),n},shutdown:function(){this.events.off(a.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.events.off(a.START,this.start,this),this.scene=null,this.systems=null,this.events=null,this.displayList=null,this.updateList=null}});r.register=function(n,e){r.prototype.hasOwnProperty(n)||(r.prototype[n]=e)},r.remove=function(n){r.prototype.hasOwnProperty(n)&&delete r.prototype[n]},p.register("GameObjectFactory",r,"add"),c.exports=r},91296:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(61340),p=new u,a=new u,r=new u,n={camera:p,sprite:a,calc:r},e=function(s,h,i){var o=p,l=a,f=r;return l.applyITRS(s.x,s.y,s.rotation,s.scaleX,s.scaleY),o.copyFrom(h.matrix),i?(o.multiplyWithOffset(i,-h.scrollX*s.scrollFactorX,-h.scrollY*s.scrollFactorY),l.e=s.x,l.f=s.y):(l.e-=h.scrollX*s.scrollFactorX,l.f-=h.scrollY*s.scrollFactorY),o.multiply(l,f),n};c.exports=e},45027:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(25774),a=t(37277),r=t(44594),n=new u({Extends:p,initialize:function(s){p.call(this),this.checkQueue=!0,this.scene=s,this.systems=s.sys,s.sys.events.once(r.BOOT,this.boot,this),s.sys.events.on(r.START,this.start,this)},boot:function(){this.systems.events.once(r.DESTROY,this.destroy,this)},start:function(){var e=this.systems.events;e.on(r.PRE_UPDATE,this.update,this),e.on(r.UPDATE,this.sceneUpdate,this),e.once(r.SHUTDOWN,this.shutdown,this)},sceneUpdate:function(e,s){for(var h=this._active,i=h.length,o=0;o{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a,r,n,e,s,h,i,o,l,f,d,v){var m=p.x-u.displayOriginX+r,g=p.y-u.displayOriginY+n,x=m+p.w,S=g+p.h,C=e.a,E=e.b,P=e.c,R=e.d,M=e.e,A=e.f,L=m*C+g*P+M,w=m*E+g*R+A,N=m*C+S*P+M,b=m*E+S*R+A,V=x*C+S*P+M,Y=x*E+S*R+A,G=x*C+g*P+M,U=x*E+g*R+A;s&&(L=Math.round(L),w=Math.round(w),N=Math.round(N),b=Math.round(b),V=Math.round(V),Y=Math.round(Y),G=Math.round(G),U=Math.round(U)),t.batchQuad(u,L,w,N,b,V,Y,G,U,a.u0,a.v0,a.u1,a.v1,h,i,o,l,f,d,v)};c.exports=y},53048:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){if(p===void 0&&(p=!1),a===void 0)return a={local:{x:0,y:0,width:0,height:0},global:{x:0,y:0,width:0,height:0},lines:{shortest:0,longest:0,lengths:null,height:0},wrappedText:"",words:[],characters:[],scaleX:0,scaleY:0},a;var r=t.text,n=r.length,e=t.maxWidth,s=t.wordWrapCharCode,h=Number.MAX_VALUE,i=Number.MAX_VALUE,o=0,l=0,f=t.fontData.chars,d=t.fontData.lineHeight,v=t.letterSpacing,m=t.lineSpacing,g=0,x=0,S=0,C=null,E=t._align,P=0,R=0,M=t.fontSize/t.fontData.size,A=M*t.scaleX,L=M*t.scaleY,w=null,N=0,b=[],V=Number.MAX_VALUE,Y=0,G=0,U=0,B,I,X,K=[],Z=[],J=null,Q=function(At,Gt){for(var Ct=0,Rt=0;Rt0){X=r.split(` +`);var $=[];for(B=0;BY&&(Y=U),UP&&(h=P),i>R&&(i=R);var ut=P+C.xAdvance,et=R+d;oY&&(Y=U),U0)for(var at=0;at{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(21859),p=function(a,r,n,e,s,h,i){var o=a.sys.textures.get(n),l=o.get(e),f=a.sys.cache.xml.get(s);if(l&&f){var d=u(f,l,h,i,o);return a.sys.cache.bitmapFont.add(r,{data:d,texture:n,frame:e,fromAtlas:!0}),!0}else return!1};c.exports=p},6925:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(35154),p=function(a,r){var n=r.width,e=r.height,s=Math.floor(n/2),h=Math.floor(e/2),i=u(r,"chars","");if(i!==""){var o=u(r,"image",""),l=a.sys.textures.getFrame(o),f=l.cutX,d=l.cutY,v=l.source.width,m=l.source.height,g=u(r,"offset.x",0),x=u(r,"offset.y",0),S=u(r,"spacing.x",0),C=u(r,"spacing.y",0),E=u(r,"lineSpacing",0),P=u(r,"charsPerRow",null);P===null&&(P=v/n,P>i.length&&(P=i.length));for(var R=g,M=x,A={retroFont:!0,font:o,size:n,lineHeight:e+E,chars:{}},L=0,w=0;w{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */function y(u,p){return parseInt(u.getAttribute(p),10)}var t=function(u,p,a,r,n){a===void 0&&(a=0),r===void 0&&(r=0);var e=p.cutX,s=p.cutY,h=p.source.width,i=p.source.height,o=p.sourceIndex,l={},f=u.getElementsByTagName("info")[0],d=u.getElementsByTagName("common")[0];l.font=f.getAttribute("face"),l.size=y(f,"size"),l.lineHeight=y(d,"lineHeight")+r,l.chars={};var v=u.getElementsByTagName("char"),m=p!==void 0&&p.trimmed;if(m)var g=p.height,x=p.width;for(var S=0;S{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(87662),p=t(79291),a={Parse:t(6925)};a=p(!1,a,u),c.exports=a},87662:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={TEXT_SET1:" !\"#$%&'()*+,-./0123456789:;<=>?@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`};c.exports=y},2638:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(22186),p=t(83419),a=t(12310),r=new p({Extends:u,Mixins:[a],initialize:function(e,s,h,i,o,l,f){u.call(this,e,s,h,i,o,l,f),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(n,e){return this.cropWidth=n,this.cropHeight=e,this},setDisplayCallback:function(n){return this.displayCallback=n,this},setScrollX:function(n){return this.scrollX=n,this},setScrollY:function(n){return this.scrollY=n,this}});c.exports=r},86741:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(20926),p=function(a,r,n,e){var s=r._text,h=s.length,i=a.currentContext;if(!(h===0||!u(a,i,r,n,e))){n.addToRenderList(r);var o=r.fromAtlas?r.frame:r.texture.frames.__BASE,l=r.displayCallback,f=r.callbackData,d=r.fontData.chars,v=r.fontData.lineHeight,m=r._letterSpacing,g=0,x=0,S=0,C=null,E=0,P=0,R=0,M=0,A=0,L=0,w=null,N=0,b=r.frame.source.image,V=o.cutX,Y=o.cutY,G=0,U=0,B=r._fontSize/r.fontData.size,I=r._align,X=0,K=0;r.getTextBounds(!1);var Z=r._bounds.lines;I===1?K=(Z.longest-Z.lengths[0])/2:I===2&&(K=Z.longest-Z.lengths[0]),i.translate(-r.displayOriginX,-r.displayOriginY);var J=n.roundPixels;r.cropWidth>0&&r.cropHeight>0&&(i.beginPath(),i.rect(0,0,r.cropWidth,r.cropHeight),i.clip());for(var Q=0;Q{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(2638),p=t(25305),a=t(44603),r=t(23568);a.register("dynamicBitmapText",function(n,e){n===void 0&&(n={});var s=r(n,"font",""),h=r(n,"text",""),i=r(n,"size",!1),o=new u(this.scene,0,0,s,h,i);return e!==void 0&&(n.add=e),p(this.scene,o,n),o})},72566:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(2638),p=t(39429);p.register("dynamicBitmapText",function(a,r,n,e,s){return this.displayList.add(new u(this.scene,a,r,n,e,s))})},12310:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(29747),p=u,a=u;p=t(73482),a=t(86741),c.exports={renderWebGL:p,renderCanvas:a}},73482:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(91296),p=t(61340),a=t(70554),r=new p,n=function(e,s,h,i){var o=s.text,l=o.length;if(l!==0){h.addToRenderList(s);var f=e.pipelines.set(s.pipeline,s),d=u(s,h,i);e.pipelines.preBatch(s);var v=d.sprite,m=d.calc,g=r,x=s.cropWidth>0||s.cropHeight>0;x&&(f.flush(),e.pushScissor(m.tx,m.ty,s.cropWidth*m.scaleX,s.cropHeight*m.scaleY));var S=s.frame,C=S.glTexture,E=s.tintFill,P=a.getTintAppendFloatAlpha(s.tintTopLeft,h.alpha*s._alphaTL),R=a.getTintAppendFloatAlpha(s.tintTopRight,h.alpha*s._alphaTR),M=a.getTintAppendFloatAlpha(s.tintBottomLeft,h.alpha*s._alphaBL),A=a.getTintAppendFloatAlpha(s.tintBottomRight,h.alpha*s._alphaBR),L=f.setGameObject(s),w=0,N=0,b=0,V=0,Y=s.letterSpacing,G,U=0,B=0,I,X=s.scrollX,K=s.scrollY,Z=s.fontData,J=Z.chars,Q=Z.lineHeight,$=s.fontSize/Z.size,j=0,k=s._align,q=0,tt=0,_=s.getTextBounds(!1);s.maxWidth>0&&(o=_.wrappedText,l=o.length);var it=s._bounds.lines;k===1?tt=(it.longest-it.lengths[0])/2:k===2&&(tt=it.longest-it.lengths[0]);for(var ot=h.roundPixels,ht=s.displayCallback,ut=s.callbackData,et=0;et{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(45319),a=t(31401),r=t(95643),n=t(53048),e=t(61327),s=t(21859),h=t(87841),i=t(18658),o=new u({Extends:r,Mixins:[a.Alpha,a.BlendMode,a.Depth,a.GetBounds,a.Mask,a.Origin,a.Pipeline,a.PostPipeline,a.ScrollFactor,a.Texture,a.Tint,a.Transform,a.Visible,i],initialize:function(f,d,v,m,g,x,S){g===void 0&&(g=""),S===void 0&&(S=0),r.call(this,f,"BitmapText"),this.font=m;var C=this.scene.sys.cache.bitmapFont.get(m);if(!C)throw new Error("Invalid BitmapText key: "+m);this.fontData=C.data,this._text="",this._fontSize=x||this.fontData.size,this._letterSpacing=0,this._lineSpacing=0,this._align=S,this._bounds=n(),this._dirty=!0,this._maxWidth=0,this.wordWrapCharCode=32,this.charColors=[],this.dropShadowX=0,this.dropShadowY=0,this.dropShadowColor=0,this.dropShadowAlpha=.5,this.fromAtlas=C.fromAtlas,this.setTexture(C.texture,C.frame),this.setPosition(d,v),this.setOrigin(0,0),this.initPipeline(),this.initPostPipeline(),this.setText(g)},setLeftAlign:function(){return this._align=o.ALIGN_LEFT,this._dirty=!0,this},setCenterAlign:function(){return this._align=o.ALIGN_CENTER,this._dirty=!0,this},setRightAlign:function(){return this._align=o.ALIGN_RIGHT,this._dirty=!0,this},setFontSize:function(l){return this._fontSize=l,this._dirty=!0,this},setLetterSpacing:function(l){return l===void 0&&(l=0),this._letterSpacing=l,this._dirty=!0,this},setLineSpacing:function(l){return l===void 0&&(l=0),this.lineSpacing=l,this},setText:function(l){return!l&&l!==0&&(l=""),Array.isArray(l)&&(l=l.join(` +`)),l!==this.text&&(this._text=l.toString(),this._dirty=!0,this.updateDisplayOrigin()),this},setDropShadow:function(l,f,d,v){return l===void 0&&(l=0),f===void 0&&(f=0),d===void 0&&(d=0),v===void 0&&(v=.5),this.dropShadowX=l,this.dropShadowY=f,this.dropShadowColor=d,this.dropShadowAlpha=v,this},setCharacterTint:function(l,f,d,v,m,g,x){l===void 0&&(l=0),f===void 0&&(f=1),d===void 0&&(d=!1),v===void 0&&(v=-1),m===void 0&&(m=v,g=v,x=v);var S=this.text.length;f===-1&&(f=S),l<0&&(l=S+l),l=p(l,0,S-1);for(var C=p(l+f,l,S),E=this.charColors,P=l;P{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(20926),p=function(a,r,n,e){var s=r._text,h=s.length,i=a.currentContext;if(!(h===0||!u(a,i,r,n,e))){n.addToRenderList(r);var o=r.fromAtlas?r.frame:r.texture.frames.__BASE,l=r.fontData.chars,f=r.fontData.lineHeight,d=r._letterSpacing,v=r._lineSpacing,m=0,g=0,x=0,S=null,C=0,E=0,P=0,R=0,M=0,A=0,L=null,w=0,N=o.source.image,b=o.cutX,V=o.cutY,Y=r._fontSize/r.fontData.size,G=r._align,U=0,B=0,I=r.getTextBounds(!1);r.maxWidth>0&&(s=I.wrappedText,h=s.length);var X=r._bounds.lines;G===1?B=(X.longest-X.lengths[0])/2:G===2&&(B=X.longest-X.lengths[0]),i.translate(-r.displayOriginX,-r.displayOriginY);for(var K=n.roundPixels,Z=0;Z{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(22186),p=t(25305),a=t(44603),r=t(23568),n=t(35154);a.register("bitmapText",function(e,s){e===void 0&&(e={});var h=n(e,"font",""),i=r(e,"text",""),o=r(e,"size",!1),l=n(e,"align",0),f=new u(this.scene,0,0,h,i,o,l);return s!==void 0&&(e.add=s),p(this.scene,f,e),f})},34914:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(22186),p=t(39429);p.register("bitmapText",function(a,r,n,e,s,h){return this.displayList.add(new u(this.scene,a,r,n,e,s,h))})},18658:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(29747),p=u,a=u;p=t(33590),a=t(37289),c.exports={renderWebGL:p,renderCanvas:a}},33590:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(3217),p=t(91296),a=t(70554),r=function(n,e,s,h){var i=e._text,o=i.length;if(o!==0){s.addToRenderList(e);var l=n.pipelines.set(e.pipeline,e),f=p(e,s,h).calc;n.pipelines.preBatch(e);var d=s.roundPixels,v=s.alpha,m=e.charColors,g=e.tintFill,x=a.getTintAppendFloatAlpha,S=x(e.tintTopLeft,v*e._alphaTL),C=x(e.tintTopRight,v*e._alphaTR),E=x(e.tintBottomLeft,v*e._alphaBL),P=x(e.tintBottomRight,v*e._alphaBR),R=e.frame.glTexture,M=l.setGameObject(e),A=e.getTextBounds(!1),L,w,N,b=A.characters,V=e.dropShadowX,Y=e.dropShadowY,G=V!==0||Y!==0;if(G){var U=e.dropShadowColor,B=e.dropShadowAlpha,I=x(U,v*B*e._alphaTL),X=x(U,v*B*e._alphaTR),K=x(U,v*B*e._alphaBL),Z=x(U,v*B*e._alphaBR);for(L=0;L{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(48011),p=t(46590),a=t(83419),r=t(31401),n=t(4327),e=t(95643),s=t(73162),h=new a({Extends:e,Mixins:[r.Alpha,r.BlendMode,r.Depth,r.Mask,r.Pipeline,r.PostPipeline,r.ScrollFactor,r.Size,r.Texture,r.Transform,r.Visible,u],initialize:function(o,l,f,d,v){e.call(this,o,"Blitter"),this.setTexture(d,v),this.setPosition(l,f),this.initPipeline(),this.initPostPipeline(),this.children=new s,this.renderList=[],this.dirty=!1},create:function(i,o,l,f,d){f===void 0&&(f=!0),d===void 0&&(d=this.children.length),l===void 0?l=this.frame:l instanceof n||(l=this.texture.get(l));var v=new p(this,i,o,l,f);return this.children.addAt(v,d,!1),this.dirty=!0,v},createFromCallback:function(i,o,l,f){for(var d=this.createMultiple(o,l,f),v=0;v0},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=[]}});c.exports=h},72396:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){var r=u.getRenderList();if(r.length!==0){var n=t.currentContext,e=p.alpha*u.alpha;if(e!==0){p.addToRenderList(u),n.globalCompositeOperation=t.blendModes[u.blendMode],n.imageSmoothingEnabled=!u.frame.source.scaleMode;var s=u.x-p.scrollX*u.scrollFactorX,h=u.y-p.scrollY*u.scrollFactorY;n.save(),a&&a.copyToContext(n);for(var i=p.roundPixels,o=0;o0&&v.height>0&&(n.save(),n.translate(l.x+s,l.y+h),n.scale(x,S),n.drawImage(d.source.image,v.x,v.y,v.width,v.height,m,g,v.width,v.height),n.restore())):(i&&(m=Math.round(m),g=Math.round(g)),v.width>0&&v.height>0&&n.drawImage(d.source.image,v.x,v.y,v.width,v.height,m+l.x+s,g+l.y+h,v.width,v.height)))}n.restore()}}};c.exports=y},9403:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(6107),p=t(25305),a=t(44603),r=t(23568);a.register("blitter",function(n,e){n===void 0&&(n={});var s=r(n,"key",null),h=r(n,"frame",null),i=new u(this.scene,0,0,s,h);return e!==void 0&&(n.add=e),p(this.scene,i,n),i})},12709:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(6107),p=t(39429);p.register("blitter",function(a,r,n,e){return this.displayList.add(new u(this.scene,a,r,n,e))})},48011:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(29747),p=u,a=u;p=t(99485),a=t(72396),c.exports={renderWebGL:p,renderCanvas:a}},99485:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(61340),p=t(70554),a=new u,r=function(n,e,s,h){var i=e.getRenderList(),o=s.alpha*e.alpha;if(!(i.length===0||o===0)){s.addToRenderList(e);var l=n.pipelines.set(this.pipeline,e),f=s.scrollX*e.scrollFactorX,d=s.scrollY*e.scrollFactorY,v=a.copyFrom(s.matrix);h&&(v.multiplyWithOffset(h,-f,-d),f=0,d=0);var m=e.x-f,g=e.y-d,x=-1,S=!1,C=s.roundPixels;n.pipelines.preBatch(e);for(var E=0;E{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(4327),a=new u({initialize:function(n,e,s,h,i){this.parent=n,this.x=e,this.y=s,this.frame=h,this.data={},this.tint=16777215,this._visible=i,this._alpha=1,this.flipX=!1,this.flipY=!1,this.hasTransformComponent=!0},setFrame:function(r){return r===void 0?this.frame=this.parent.frame:r instanceof p&&r.texture===this.parent.texture?this.frame=r:this.frame=this.parent.texture.get(r),this},resetFlip:function(){return this.flipX=!1,this.flipY=!1,this},reset:function(r,n,e){return this.x=r,this.y=n,this.flipX=!1,this.flipY=!1,this._alpha=1,this._visible=!0,this.parent.dirty=!0,e&&this.setFrame(e),this},setPosition:function(r,n){return this.x=r,this.y=n,this},setFlipX:function(r){return this.flipX=r,this},setFlipY:function(r){return this.flipY=r,this},setFlip:function(r,n){return this.flipX=r,this.flipY=n,this},setVisible:function(r){return this.visible=r,this},setAlpha:function(r){return this.alpha=r,this},setTint:function(r){return this.tint=r,this},destroy:function(){this.parent.dirty=!0,this.parent.children.remove(this),this.parent=void 0,this.frame=void 0,this.data=void 0},visible:{get:function(){return this._visible},set:function(r){this.parent.dirty|=this._visible!==r,this._visible=r}},alpha:{get:function(){return this._alpha},set:function(r){this.parent.dirty|=this._alpha>0!=r>0,this._alpha=r}}});c.exports=a},16005:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(45319),p=2,a={_alpha:1,_alphaTL:1,_alphaTR:1,_alphaBL:1,_alphaBR:1,clearAlpha:function(){return this.setAlpha(1)},setAlpha:function(r,n,e,s){return r===void 0&&(r=1),n===void 0?this.alpha=r:(this._alphaTL=u(r,0,1),this._alphaTR=u(n,0,1),this._alphaBL=u(e,0,1),this._alphaBR=u(s,0,1)),this},alpha:{get:function(){return this._alpha},set:function(r){var n=u(r,0,1);this._alpha=n,this._alphaTL=n,this._alphaTR=n,this._alphaBL=n,this._alphaBR=n,n===0?this.renderFlags&=~p:this.renderFlags|=p}},alphaTopLeft:{get:function(){return this._alphaTL},set:function(r){var n=u(r,0,1);this._alphaTL=n,n!==0&&(this.renderFlags|=p)}},alphaTopRight:{get:function(){return this._alphaTR},set:function(r){var n=u(r,0,1);this._alphaTR=n,n!==0&&(this.renderFlags|=p)}},alphaBottomLeft:{get:function(){return this._alphaBL},set:function(r){var n=u(r,0,1);this._alphaBL=n,n!==0&&(this.renderFlags|=p)}},alphaBottomRight:{get:function(){return this._alphaBR},set:function(r){var n=u(r,0,1);this._alphaBR=n,n!==0&&(this.renderFlags|=p)}}};c.exports=a},88509:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(45319),p=2,a={_alpha:1,clearAlpha:function(){return this.setAlpha(1)},setAlpha:function(r){return r===void 0&&(r=1),this.alpha=r,this},alpha:{get:function(){return this._alpha},set:function(r){var n=u(r,0,1);this._alpha=n,n===0?this.renderFlags&=~p:this.renderFlags|=p}}};c.exports=a},90065:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(10312),p={_blendMode:u.NORMAL,blendMode:{get:function(){return this._blendMode},set:function(a){typeof a=="string"&&(a=u[a]),a|=0,a>=-1&&(this._blendMode=a)}},setBlendMode:function(a){return this.blendMode=a,this}};c.exports=p},94215:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={width:0,height:0,displayWidth:{get:function(){return this.scaleX*this.width},set:function(t){this.scaleX=t/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(t){this.scaleY=t/this.height}},setSize:function(t,u){return this.width=t,this.height=u,this},setDisplaySize:function(t,u){return this.displayWidth=t,this.displayHeight=u,this}};c.exports=y},61683:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={texture:null,frame:null,isCropped:!1,setCrop:function(t,u,p,a){if(t===void 0)this.isCropped=!1;else if(this.frame){if(typeof t=="number")this.frame.setCropUVs(this._crop,t,u,p,a,this.flipX,this.flipY);else{var r=t;this.frame.setCropUVs(this._crop,r.x,r.y,r.width,r.height,this.flipX,this.flipY)}this.isCropped=!0}return this},resetCropObject:function(){return{u0:0,v0:0,u1:0,v1:0,width:0,height:0,x:0,y:0,flipX:!1,flipY:!1,cx:0,cy:0,cw:0,ch:0}}};c.exports=y},89272:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(37105),p={_depth:0,depth:{get:function(){return this._depth},set:function(a){this.displayList&&this.displayList.queueDepthSort(),this._depth=a}},setDepth:function(a){return a===void 0&&(a=0),this.depth=a,this},setToTop:function(){var a=this.getDisplayList();return a&&u.BringToTop(a,this),this},setToBack:function(){var a=this.getDisplayList();return a&&u.SendToBack(a,this),this},setAbove:function(a){var r=this.getDisplayList();return r&&a&&u.MoveAbove(r,this,a),this},setBelow:function(a){var r=this.getDisplayList();return r&&a&&u.MoveBelow(r,this,a),this}};c.exports=p},47059:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(66064),a=t(19133),r=new u({initialize:function(e,s){this.gameObject=e,this.isPost=s,this.enabled=!1,this.list=[],this.padding=0},setPadding:function(n){return n===void 0&&(n=0),this.padding=n,this.gameObject},onFXCopy:function(){},onFX:function(){},enable:function(n){if(!this.isPost){var e=this.gameObject.scene.sys.renderer;e&&e.pipelines?(this.gameObject.pipeline=e.pipelines.FX_PIPELINE,n!==void 0&&(this.padding=n),this.enabled=!0):this.enabled=!1}},clear:function(){if(this.isPost)this.gameObject.resetPostPipeline(!0);else{for(var n=this.list,e=0;e{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={flipX:!1,flipY:!1,toggleFlipX:function(){return this.flipX=!this.flipX,this},toggleFlipY:function(){return this.flipY=!this.flipY,this},setFlipX:function(t){return this.flipX=t,this},setFlipY:function(t){return this.flipY=t,this},setFlip:function(t,u){return this.flipX=t,this.flipY=u,this},resetFlip:function(){return this.flipX=!1,this.flipY=!1,this}};c.exports=y},8004:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(87841),p=t(11520),a=t(26099),r={prepareBoundsOutput:function(n,e){if(e===void 0&&(e=!1),this.rotation!==0&&p(n,this.x,this.y,this.rotation),e&&this.parentContainer){var s=this.parentContainer.getBoundsTransformMatrix();s.transformPoint(n.x,n.y,n)}return n},getCenter:function(n,e){return n===void 0&&(n=new a),n.x=this.x-this.displayWidth*this.originX+this.displayWidth/2,n.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(n,e)},getTopLeft:function(n,e){return n||(n=new a),n.x=this.x-this.displayWidth*this.originX,n.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(n,e)},getTopCenter:function(n,e){return n||(n=new a),n.x=this.x-this.displayWidth*this.originX+this.displayWidth/2,n.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(n,e)},getTopRight:function(n,e){return n||(n=new a),n.x=this.x-this.displayWidth*this.originX+this.displayWidth,n.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(n,e)},getLeftCenter:function(n,e){return n||(n=new a),n.x=this.x-this.displayWidth*this.originX,n.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(n,e)},getRightCenter:function(n,e){return n||(n=new a),n.x=this.x-this.displayWidth*this.originX+this.displayWidth,n.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(n,e)},getBottomLeft:function(n,e){return n||(n=new a),n.x=this.x-this.displayWidth*this.originX,n.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(n,e)},getBottomCenter:function(n,e){return n||(n=new a),n.x=this.x-this.displayWidth*this.originX+this.displayWidth/2,n.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(n,e)},getBottomRight:function(n,e){return n||(n=new a),n.x=this.x-this.displayWidth*this.originX+this.displayWidth,n.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(n,e)},getBounds:function(n){n===void 0&&(n=new u);var e,s,h,i,o,l,f,d;if(this.parentContainer){var v=this.parentContainer.getBoundsTransformMatrix();this.getTopLeft(n),v.transformPoint(n.x,n.y,n),e=n.x,s=n.y,this.getTopRight(n),v.transformPoint(n.x,n.y,n),h=n.x,i=n.y,this.getBottomLeft(n),v.transformPoint(n.x,n.y,n),o=n.x,l=n.y,this.getBottomRight(n),v.transformPoint(n.x,n.y,n),f=n.x,d=n.y}else this.getTopLeft(n),e=n.x,s=n.y,this.getTopRight(n),h=n.x,i=n.y,this.getBottomLeft(n),o=n.x,l=n.y,this.getBottomRight(n),f=n.x,d=n.y;return n.x=Math.min(e,h,o,f),n.y=Math.min(s,i,l,d),n.width=Math.max(e,h,o,f)-n.x,n.height=Math.max(s,i,l,d)-n.y,n}};c.exports=r},8573:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(6858),p=t(80661),a={mask:null,setMask:function(r){return this.mask=r,this},clearMask:function(r){return r===void 0&&(r=!1),r&&this.mask&&this.mask.destroy(),this.mask=null,this},createBitmapMask:function(r,n,e,s,h){return r===void 0&&(this.texture||this.shader||this.geom)&&(r=this),new u(this.scene,r,n,e,s,h)},createGeometryMask:function(r){return r===void 0&&(this.type==="Graphics"||this.geom)&&(r=this),new p(this.scene,r)}};c.exports=a},27387:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={_originComponent:!0,originX:.5,originY:.5,_displayOriginX:0,_displayOriginY:0,displayOriginX:{get:function(){return this._displayOriginX},set:function(t){this._displayOriginX=t,this.originX=t/this.width}},displayOriginY:{get:function(){return this._displayOriginY},set:function(t){this._displayOriginY=t,this.originY=t/this.height}},setOrigin:function(t,u){return t===void 0&&(t=.5),u===void 0&&(u=t),this.originX=t,this.originY=u,this.updateDisplayOrigin()},setOriginFromFrame:function(){return!this.frame||!this.frame.customPivot?this.setOrigin():(this.originX=this.frame.pivotX,this.originY=this.frame.pivotY,this.updateDisplayOrigin())},setDisplayOrigin:function(t,u){return t===void 0&&(t=0),u===void 0&&(u=t),this.displayOriginX=t,this.displayOriginY=u,this},updateDisplayOrigin:function(){return this._displayOriginX=this.originX*this.width,this._displayOriginY=this.originY*this.height,this}};c.exports=y},37640:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(39506),p=t(57355),a=t(35154),r=t(86353),n=t(26099),e={path:null,rotateToPath:!1,pathRotationOffset:0,pathOffset:null,pathVector:null,pathDelta:null,pathTween:null,pathConfig:null,_prevDirection:r.PLAYING_FORWARD,setPath:function(s,h){h===void 0&&(h=this.pathConfig);var i=this.pathTween;return i&&i.isPlaying()&&i.stop(),this.path=s,h&&this.startFollow(h),this},setRotateToPath:function(s,h){return h===void 0&&(h=0),this.rotateToPath=s,this.pathRotationOffset=h,this},isFollowing:function(){var s=this.pathTween;return s&&s.isPlaying()},startFollow:function(s,h){s===void 0&&(s={}),h===void 0&&(h=0);var i=this.pathTween;i&&i.isPlaying()&&i.stop(),typeof s=="number"&&(s={duration:s}),s.from=a(s,"from",0),s.to=a(s,"to",1);var o=p(s,"positionOnPath",!1);this.rotateToPath=p(s,"rotateToPath",!1),this.pathRotationOffset=a(s,"rotationOffset",0);var l=a(s,"startAt",h);if(l&&(s.onStart=function(d){var v=d.data[0];v.progress=l,v.elapsed=v.duration*l;var m=v.ease(v.progress);v.current=v.start+(v.end-v.start)*m,v.setTargetValue()}),this.pathOffset||(this.pathOffset=new n(this.x,this.y)),this.pathVector||(this.pathVector=new n),this.pathDelta||(this.pathDelta=new n),this.pathDelta.reset(),s.persist=!0,this.pathTween=this.scene.sys.tweens.addCounter(s),this.path.getStartPoint(this.pathOffset),o&&(this.x=this.pathOffset.x,this.y=this.pathOffset.y),this.pathOffset.x=this.x-this.pathOffset.x,this.pathOffset.y=this.y-this.pathOffset.y,this._prevDirection=r.PLAYING_FORWARD,this.rotateToPath){var f=this.path.getPoint(.1);this.rotation=Math.atan2(f.y-this.y,f.x-this.x)+u(this.pathRotationOffset)}return this.pathConfig=s,this},pauseFollow:function(){var s=this.pathTween;return s&&s.isPlaying()&&s.pause(),this},resumeFollow:function(){var s=this.pathTween;return s&&s.isPaused()&&s.resume(),this},stopFollow:function(){var s=this.pathTween;return s&&s.isPlaying()&&s.stop(),this},pathUpdate:function(){var s=this.pathTween;if(s&&s.data){var h=s.data[0],i=this.pathDelta,o=this.pathVector;if(i.copy(o).negate(),h.state===r.COMPLETE){this.path.getPoint(h.end,o),i.add(o),o.add(this.pathOffset),this.setPosition(o.x,o.y);return}else if(h.state!==r.PLAYING_FORWARD&&h.state!==r.PLAYING_BACKWARD)return;this.path.getPoint(s.getValue(),o),i.add(o),o.add(this.pathOffset);var l=this.x,f=this.y;this.setPosition(o.x,o.y);var d=this.x-l,v=this.y-f;if(d===0&&v===0)return;if(h.state!==this._prevDirection){this._prevDirection=h.state;return}this.rotateToPath&&(this.rotation=Math.atan2(v,d)+u(this.pathRotationOffset))}}};c.exports=e},72699:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(62644),p={defaultPipeline:null,pipeline:null,pipelineData:null,initPipeline:function(a){this.pipelineData={};var r=this.scene.sys.renderer;if(!r)return!1;var n=r.pipelines;if(n){a===void 0&&(a=n.default);var e=n.get(a);if(e)return this.defaultPipeline=e,this.pipeline=e,!0}return!1},setPipeline:function(a,r,n){var e=this.scene.sys.renderer;if(!e)return this;var s=e.pipelines;if(s){var h=s.get(a);h&&(this.pipeline=h),r&&(this.pipelineData=n?u(r):r)}return this},setPipelineData:function(a,r){var n=this.pipelineData;return r===void 0?delete n[a]:n[a]=r,this},resetPipeline:function(a){return a===void 0&&(a=!1),this.pipeline=this.defaultPipeline,a&&(this.pipelineData={}),this.pipeline!==null},getPipelineName:function(){return this.pipeline===null?null:this.pipeline.name}};c.exports=p},17581:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(62644),p=t(47059),a=t(19133),r={hasPostPipeline:!1,postPipelines:null,postPipelineData:null,preFX:null,postFX:null,initPostPipeline:function(n){this.postPipelines=[],this.postPipelineData={},this.postFX=new p(this,!0),n&&(this.preFX=new p(this,!1))},setPostPipeline:function(n,e,s){var h=this.scene.sys.renderer;if(!h)return this;var i=h.pipelines;if(i){Array.isArray(n)||(n=[n]);for(var o=0;o0,this},setPostPipelineData:function(n,e){var s=this.postPipelineData;return e===void 0?delete s[n]:s[n]=e,this},getPostPipeline:function(n){for(var e=typeof n=="string",s=this.postPipelines,h=[],i=0;i=0;h--){var i=s[h];(e&&i.name===n||!e&&i===n)&&(i.destroy(),a(s,h))}return this.hasPostPipeline=this.postPipelines.length>0,this},clearFX:function(){return this.preFX&&this.preFX.clear(),this.postFX&&this.postFX.clear(),this}};c.exports=r},80227:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={scrollFactorX:1,scrollFactorY:1,setScrollFactor:function(t,u){return u===void 0&&(u=t),this.scrollFactorX=t,this.scrollFactorY=u,this}};c.exports=y},16736:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={_sizeComponent:!0,width:0,height:0,displayWidth:{get:function(){return Math.abs(this.scaleX*this.frame.realWidth)},set:function(t){this.scaleX=t/this.frame.realWidth}},displayHeight:{get:function(){return Math.abs(this.scaleY*this.frame.realHeight)},set:function(t){this.scaleY=t/this.frame.realHeight}},setSizeToFrame:function(t){t||(t=this.frame),this.width=t.realWidth,this.height=t.realHeight;var u=this.input;return u&&!u.customHitArea&&(u.hitArea.width=this.width,u.hitArea.height=this.height),this},setSize:function(t,u){return this.width=t,this.height=u,this},setDisplaySize:function(t,u){return this.displayWidth=t,this.displayHeight=u,this}};c.exports=y},37726:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(4327),p=8,a={texture:null,frame:null,isCropped:!1,setTexture:function(r,n,e,s){return this.texture=this.scene.sys.textures.get(r),this.setFrame(n,e,s)},setFrame:function(r,n,e){return n===void 0&&(n=!0),e===void 0&&(e=!0),r instanceof u?(this.texture=this.scene.sys.textures.get(r.texture.key),this.frame=r):this.frame=this.texture.get(r),!this.frame.cutWidth||!this.frame.cutHeight?this.renderFlags&=~p:this.renderFlags|=p,this._sizeComponent&&n&&this.setSizeToFrame(),this._originComponent&&e&&(this.frame.customPivot?this.setOrigin(this.frame.pivotX,this.frame.pivotY):this.updateDisplayOrigin()),this}};c.exports=a},79812:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(4327),p=8,a={texture:null,frame:null,isCropped:!1,setCrop:function(r,n,e,s){if(r===void 0)this.isCropped=!1;else if(this.frame){if(typeof r=="number")this.frame.setCropUVs(this._crop,r,n,e,s,this.flipX,this.flipY);else{var h=r;this.frame.setCropUVs(this._crop,h.x,h.y,h.width,h.height,this.flipX,this.flipY)}this.isCropped=!0}return this},setTexture:function(r,n){return this.texture=this.scene.sys.textures.get(r),this.setFrame(n)},setFrame:function(r,n,e){return n===void 0&&(n=!0),e===void 0&&(e=!0),r instanceof u?(this.texture=this.scene.sys.textures.get(r.texture.key),this.frame=r):this.frame=this.texture.get(r),!this.frame.cutWidth||!this.frame.cutHeight?this.renderFlags&=~p:this.renderFlags|=p,this._sizeComponent&&n&&this.setSizeToFrame(),this._originComponent&&e&&(this.frame.customPivot?this.setOrigin(this.frame.pivotX,this.frame.pivotY):this.updateDisplayOrigin()),this.isCropped&&this.frame.updateCropUVs(this._crop,this.flipX,this.flipY),this},resetCropObject:function(){return{u0:0,v0:0,u1:0,v1:0,width:0,height:0,x:0,y:0,flipX:!1,flipY:!1,cx:0,cy:0,cw:0,ch:0}}};c.exports=a},27472:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={tintTopLeft:16777215,tintTopRight:16777215,tintBottomLeft:16777215,tintBottomRight:16777215,tintFill:!1,clearTint:function(){return this.setTint(16777215),this},setTint:function(t,u,p,a){return t===void 0&&(t=16777215),u===void 0&&(u=t,p=t,a=t),this.tintTopLeft=t,this.tintTopRight=u,this.tintBottomLeft=p,this.tintBottomRight=a,this.tintFill=!1,this},setTintFill:function(t,u,p,a){return this.setTint(t,u,p,a),this.tintFill=!0,this},tint:{get:function(){return this.tintTopLeft},set:function(t){this.setTint(t,t,t,t)}},isTinted:{get:function(){var t=16777215;return this.tintFill||this.tintTopLeft!==t||this.tintTopRight!==t||this.tintBottomLeft!==t||this.tintBottomRight!==t}}};c.exports=y},53774:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){var u={name:t.name,type:t.type,x:t.x,y:t.y,depth:t.depth,scale:{x:t.scaleX,y:t.scaleY},origin:{x:t.originX,y:t.originY},flipX:t.flipX,flipY:t.flipY,rotation:t.rotation,alpha:t.alpha,visible:t.visible,blendMode:t.blendMode,textureKey:"",frameKey:"",data:{}};return t.texture&&(u.textureKey=t.texture.key,u.frameKey=t.frame.name),u};c.exports=y},16901:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(36383),p=t(61340),a=t(85955),r=t(86554),n=t(30954),e=t(26099),s=4,h={hasTransformComponent:!0,_scaleX:1,_scaleY:1,_rotation:0,x:0,y:0,z:0,w:0,scale:{get:function(){return(this._scaleX+this._scaleY)/2},set:function(i){this._scaleX=i,this._scaleY=i,i===0?this.renderFlags&=~s:this.renderFlags|=s}},scaleX:{get:function(){return this._scaleX},set:function(i){this._scaleX=i,i===0?this.renderFlags&=~s:this._scaleY!==0&&(this.renderFlags|=s)}},scaleY:{get:function(){return this._scaleY},set:function(i){this._scaleY=i,i===0?this.renderFlags&=~s:this._scaleX!==0&&(this.renderFlags|=s)}},angle:{get:function(){return n(this._rotation*u.RAD_TO_DEG)},set:function(i){this.rotation=n(i)*u.DEG_TO_RAD}},rotation:{get:function(){return this._rotation},set:function(i){this._rotation=r(i)}},setPosition:function(i,o,l,f){return i===void 0&&(i=0),o===void 0&&(o=i),l===void 0&&(l=0),f===void 0&&(f=0),this.x=i,this.y=o,this.z=l,this.w=f,this},copyPosition:function(i){return i.x!==void 0&&(this.x=i.x),i.y!==void 0&&(this.y=i.y),i.z!==void 0&&(this.z=i.z),i.w!==void 0&&(this.w=i.w),this},setRandomPosition:function(i,o,l,f){return i===void 0&&(i=0),o===void 0&&(o=0),l===void 0&&(l=this.scene.sys.scale.width),f===void 0&&(f=this.scene.sys.scale.height),this.x=i+Math.random()*l,this.y=o+Math.random()*f,this},setRotation:function(i){return i===void 0&&(i=0),this.rotation=i,this},setAngle:function(i){return i===void 0&&(i=0),this.angle=i,this},setScale:function(i,o){return i===void 0&&(i=1),o===void 0&&(o=i),this.scaleX=i,this.scaleY=o,this},setX:function(i){return i===void 0&&(i=0),this.x=i,this},setY:function(i){return i===void 0&&(i=0),this.y=i,this},setZ:function(i){return i===void 0&&(i=0),this.z=i,this},setW:function(i){return i===void 0&&(i=0),this.w=i,this},getLocalTransformMatrix:function(i){return i===void 0&&(i=new p),i.applyITRS(this.x,this.y,this._rotation,this._scaleX,this._scaleY)},getWorldTransformMatrix:function(i,o){i===void 0&&(i=new p);var l=this.parentContainer;if(!l)return this.getLocalTransformMatrix(i);for(o||(o=new p),i.applyITRS(this.x,this.y,this._rotation,this._scaleX,this._scaleY);l;)o.applyITRS(l.x,l.y,l._rotation,l._scaleX,l._scaleY),o.multiply(i,i),l=l.parentContainer;return i},getLocalPoint:function(i,o,l,f){l||(l=new e),f||(f=this.scene.sys.cameras.main);var d=f.scrollX,v=f.scrollY,m=i+d*this.scrollFactorX-d,g=o+v*this.scrollFactorY-v;return this.parentContainer?this.getWorldTransformMatrix().applyInverse(m,g,l):a(m,g,this.x,this.y,this.rotation,this.scaleX,this.scaleY,l),this._originComponent&&(l.x+=this._displayOriginX,l.y+=this._displayOriginY),l},getParentRotation:function(){for(var i=0,o=this.parentContainer;o;)i+=o.rotation,o=o.parentContainer;return i}};c.exports=h},61340:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(36383),a=t(26099),r=new u({initialize:function(e,s,h,i,o,l){e===void 0&&(e=1),s===void 0&&(s=0),h===void 0&&(h=0),i===void 0&&(i=1),o===void 0&&(o=0),l===void 0&&(l=0),this.matrix=new Float32Array([e,s,h,i,o,l,0,0,1]),this.decomposedMatrix={translateX:0,translateY:0,scaleX:1,scaleY:1,rotation:0},this.quad=new Float32Array(8)},a:{get:function(){return this.matrix[0]},set:function(n){this.matrix[0]=n}},b:{get:function(){return this.matrix[1]},set:function(n){this.matrix[1]=n}},c:{get:function(){return this.matrix[2]},set:function(n){this.matrix[2]=n}},d:{get:function(){return this.matrix[3]},set:function(n){this.matrix[3]=n}},e:{get:function(){return this.matrix[4]},set:function(n){this.matrix[4]=n}},f:{get:function(){return this.matrix[5]},set:function(n){this.matrix[5]=n}},tx:{get:function(){return this.matrix[4]},set:function(n){this.matrix[4]=n}},ty:{get:function(){return this.matrix[5]},set:function(n){this.matrix[5]=n}},rotation:{get:function(){return Math.acos(this.a/this.scaleX)*(Math.atan(-this.c/this.a)<0?-1:1)}},rotationNormalized:{get:function(){var n=this.matrix,e=n[0],s=n[1],h=n[2],i=n[3];return e||s?s>0?Math.acos(e/this.scaleX):-Math.acos(e/this.scaleX):h||i?p.TAU-(i>0?Math.acos(-h/this.scaleY):-Math.acos(h/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 n=this.matrix;return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,this},translate:function(n,e){var s=this.matrix;return s[4]=s[0]*n+s[2]*e+s[4],s[5]=s[1]*n+s[3]*e+s[5],this},scale:function(n,e){var s=this.matrix;return s[0]*=n,s[1]*=n,s[2]*=e,s[3]*=e,this},rotate:function(n){var e=Math.sin(n),s=Math.cos(n),h=this.matrix,i=h[0],o=h[1],l=h[2],f=h[3];return h[0]=i*s+l*e,h[1]=o*s+f*e,h[2]=i*-e+l*s,h[3]=o*-e+f*s,this},multiply:function(n,e){var s=this.matrix,h=n.matrix,i=s[0],o=s[1],l=s[2],f=s[3],d=s[4],v=s[5],m=h[0],g=h[1],x=h[2],S=h[3],C=h[4],E=h[5],P=e===void 0?s:e.matrix;return P[0]=m*i+g*l,P[1]=m*o+g*f,P[2]=x*i+S*l,P[3]=x*o+S*f,P[4]=C*i+E*l+d,P[5]=C*o+E*f+v,P},multiplyWithOffset:function(n,e,s){var h=this.matrix,i=n.matrix,o=h[0],l=h[1],f=h[2],d=h[3],v=h[4],m=h[5],g=e*o+s*f+v,x=e*l+s*d+m,S=i[0],C=i[1],E=i[2],P=i[3],R=i[4],M=i[5];return h[0]=S*o+C*f,h[1]=S*l+C*d,h[2]=E*o+P*f,h[3]=E*l+P*d,h[4]=R*o+M*f+g,h[5]=R*l+M*d+x,this},transform:function(n,e,s,h,i,o){var l=this.matrix,f=l[0],d=l[1],v=l[2],m=l[3],g=l[4],x=l[5];return l[0]=n*f+e*v,l[1]=n*d+e*m,l[2]=s*f+h*v,l[3]=s*d+h*m,l[4]=i*f+o*v+g,l[5]=i*d+o*m+x,this},transformPoint:function(n,e,s){s===void 0&&(s={x:0,y:0});var h=this.matrix,i=h[0],o=h[1],l=h[2],f=h[3],d=h[4],v=h[5];return s.x=n*i+e*l+d,s.y=n*o+e*f+v,s},invert:function(){var n=this.matrix,e=n[0],s=n[1],h=n[2],i=n[3],o=n[4],l=n[5],f=e*i-s*h;return n[0]=i/f,n[1]=-s/f,n[2]=-h/f,n[3]=e/f,n[4]=(h*l-i*o)/f,n[5]=-(e*l-s*o)/f,this},copyFrom:function(n){var e=this.matrix;return e[0]=n.a,e[1]=n.b,e[2]=n.c,e[3]=n.d,e[4]=n.e,e[5]=n.f,this},copyFromArray:function(n){var e=this.matrix;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],this},copyToContext:function(n){var e=this.matrix;return n.transform(e[0],e[1],e[2],e[3],e[4],e[5]),n},setToContext:function(n){return n.setTransform(this),n},copyToArray:function(n){var e=this.matrix;return n===void 0?n=[e[0],e[1],e[2],e[3],e[4],e[5]]:(n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5]),n},setTransform:function(n,e,s,h,i,o){var l=this.matrix;return l[0]=n,l[1]=e,l[2]=s,l[3]=h,l[4]=i,l[5]=o,this},decomposeMatrix:function(){var n=this.decomposedMatrix,e=this.matrix,s=e[0],h=e[1],i=e[2],o=e[3],l=s*o-h*i;if(n.translateX=e[4],n.translateY=e[5],s||h){var f=Math.sqrt(s*s+h*h);n.rotation=h>0?Math.acos(s/f):-Math.acos(s/f),n.scaleX=f,n.scaleY=l/f}else if(i||o){var d=Math.sqrt(i*i+o*o);n.rotation=Math.PI*.5-(o>0?Math.acos(-i/d):-Math.acos(i/d)),n.scaleX=l/d,n.scaleY=d}else n.rotation=0,n.scaleX=0,n.scaleY=0;return n},applyITRS:function(n,e,s,h,i){var o=this.matrix,l=Math.sin(s),f=Math.cos(s);return o[4]=n,o[5]=e,o[0]=f*h,o[1]=l*h,o[2]=-l*i,o[3]=f*i,this},applyInverse:function(n,e,s){s===void 0&&(s=new a);var h=this.matrix,i=h[0],o=h[1],l=h[2],f=h[3],d=h[4],v=h[5],m=1/(i*f+l*-o);return s.x=f*m*n+-l*m*e+(v*l-d*f)*m,s.y=i*m*e+-o*m*n+(-v*i+d*o)*m,s},setQuad:function(n,e,s,h,i,o){i===void 0&&(i=!1),o===void 0&&(o=this.quad);var l=this.matrix,f=l[0],d=l[1],v=l[2],m=l[3],g=l[4],x=l[5],S=n*f+e*v+g,C=n*d+e*m+x,E=n*f+h*v+g,P=n*d+h*m+x,R=s*f+h*v+g,M=s*d+h*m+x,A=s*f+e*v+g,L=s*d+e*m+x;if(i){var w=Math.floor(S+.5),N=Math.floor(C+.5),b=w-S,V=N-C;o[0]=w,o[1]=N,o[2]=E+b,o[3]=P+V,o[4]=R+b,o[5]=M+V,o[6]=A+b,o[7]=L+V}else o[0]=S,o[1]=C,o[2]=E,o[3]=P,o[4]=R,o[5]=M,o[6]=A,o[7]=L;return o},getX:function(n,e){return n*this.a+e*this.c+this.e},getY:function(n,e){return n*this.b+e*this.d+this.f},getXRound:function(n,e,s){var h=this.getX(n,e);return s&&(h=Math.floor(h+.5)),h},getYRound:function(n,e,s){var h=this.getY(n,e);return s&&(h=Math.floor(h+.5)),h},getCSSMatrix:function(){var n=this.matrix;return"matrix("+n[0]+","+n[1]+","+n[2]+","+n[3]+","+n[4]+","+n[5]+")"},destroy:function(){this.matrix=null,this.quad=null,this.decomposedMatrix=null}});c.exports=r},59715:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=1,t={_visible:!0,visible:{get:function(){return this._visible},set:function(u){u?(this._visible=!0,this.renderFlags|=y):(this._visible=!1,this.renderFlags&=~y)}},setVisible:function(u){return this.visible=u,this}};c.exports=t},31401:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={Alpha:t(16005),AlphaSingle:t(88509),BlendMode:t(90065),ComputedSize:t(94215),Crop:t(61683),Depth:t(89272),Flip:t(54434),FX:t(47059),GetBounds:t(8004),Mask:t(8573),Origin:t(27387),PathFollower:t(37640),Pipeline:t(72699),PostPipeline:t(17581),ScrollFactor:t(80227),Size:t(16736),Texture:t(37726),TextureCrop:t(79812),Tint:t(27472),ToJSON:t(53774),Transform:t(16901),TransformMatrix:t(61340),Visible:t(59715)}},31559:(c,y,t)=>{/** + * @author Richard Davey + * @author Felipe Alfonso <@bitnenfer> + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(37105),p=t(10312),a=t(83419),r=t(31401),n=t(51708),e=t(95643),s=t(87841),h=t(29959),i=t(36899),o=t(26099),l=new r.TransformMatrix,f=new a({Extends:e,Mixins:[r.AlphaSingle,r.BlendMode,r.ComputedSize,r.Depth,r.Mask,r.PostPipeline,r.Transform,r.Visible,h],initialize:function(v,m,g,x){e.call(this,v,"Container"),this.list=[],this.exclusive=!0,this.maxSize=-1,this.position=0,this.localTransform=new r.TransformMatrix,this._sortKey="",this._sysEvents=v.sys.events,this.scrollFactorX=1,this.scrollFactorY=1,this.initPostPipeline(),this.setPosition(m,g),this.setBlendMode(p.SKIP_CHECK),x&&this.add(x)},originX:{get:function(){return .5}},originY:{get:function(){return .5}},displayOriginX:{get:function(){return this.width*.5}},displayOriginY:{get:function(){return this.height*.5}},setExclusive:function(d){return d===void 0&&(d=!0),this.exclusive=d,this},getBounds:function(d){if(d===void 0&&(d=new s),d.setTo(this.x,this.y,0,0),this.parentContainer){var v=this.parentContainer.getBoundsTransformMatrix(),m=v.transformPoint(this.x,this.y);d.setTo(m.x,m.y,0,0)}if(this.list.length>0){var g=this.list,x=new s,S=!1;d.setEmpty();for(var C=0;C-1},setAll:function(d,v,m,g){return u.SetAll(this.list,d,v,m,g),this},each:function(d,v){var m=[null],g,x=this.list.slice(),S=x.length;for(g=2;g0?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.list=[]},onChildDestroyed:function(d){u.Remove(this.list,d),this.exclusive&&(d.parentContainer=null,d.removedFromScene())}});c.exports=f},53584:c=>{/** + * @author Richard Davey + * @author Felipe Alfonso <@bitnenfer> + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){p.addToRenderList(u);var r=u.list;if(r.length!==0){var n=u.localTransform;a?(n.loadIdentity(),n.multiply(a),n.translate(u.x,u.y),n.rotate(u.rotation),n.scale(u.scaleX,u.scaleY)):n.applyITRS(u.x,u.y,u.rotation,u.scaleX,u.scaleY);var e=u.blendMode!==-1;e||t.setBlendMode(0);var s=u._alpha,h=u.scrollFactorX,i=u.scrollFactorY;u.mask&&u.mask.preRenderCanvas(t,null,p);for(var o=0;o{/** + * @author Richard Davey + * @author Felipe Alfonso <@bitnenfer> + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(25305),p=t(31559),a=t(44603),r=t(23568),n=t(95540);a.register("container",function(e,s){e===void 0&&(e={});var h=r(e,"x",0),i=r(e,"y",0),o=n(e,"children",null),l=new p(this.scene,h,i,o);return s!==void 0&&(e.add=s),u(this.scene,l,e),l})},24961:(c,y,t)=>{/** + * @author Richard Davey + * @author Felipe Alfonso <@bitnenfer> + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(31559),p=t(39429);p.register("container",function(a,r,n){return this.displayList.add(new u(this.scene,a,r,n))})},29959:(c,y,t)=>{/** + * @author Richard Davey + * @author Felipe Alfonso <@bitnenfer> + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(29747),p=u,a=u;p=t(72249),a=t(53584),c.exports={renderWebGL:p,renderCanvas:a}},72249:c=>{/** + * @author Richard Davey + * @author Felipe Alfonso <@bitnenfer> + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){p.addToRenderList(u);var r=u.list,n=r.length;if(n!==0){var e=u.localTransform;a?(e.loadIdentity(),e.multiply(a),e.translate(u.x,u.y),e.rotate(u.rotation),e.scale(u.scaleX,u.scaleY)):e.applyITRS(u.x,u.y,u.rotation,u.scaleX,u.scaleY),t.pipelines.preBatch(u);var s=u.blendMode!==-1;s||t.setBlendMode(0);for(var h=u.alpha,i=u.scrollFactorX,o=u.scrollFactorY,l=0;l{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports=["normal","multiply","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]},3069:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(31401),a=t(441),r=t(95643),n=t(41212),e=t(35846),s=t(44594),h=t(61369),i=new u({Extends:r,Mixins:[p.AlphaSingle,p.BlendMode,p.Depth,p.Origin,p.ScrollFactor,p.Transform,p.Visible,a],initialize:function(l,f,d,v,m,g){r.call(this,l,"DOMElement"),this.parent=l.sys.game.domContainer,this.cache=l.sys.cache.html,this.node,this.transformOnly=!1,this.skewX=0,this.skewY=0,this.rotate3d=new h,this.rotate3dAngle="deg",this.pointerEvents="auto",this.width=0,this.height=0,this.displayWidth=0,this.displayHeight=0,this.handler=this.dispatchNativeEvent.bind(this),this.setPosition(f,d),typeof v=="string"?v[0]==="#"?this.setElement(v.substr(1),m,g):this.createElement(v,m,g):v&&this.setElement(v,m,g),l.sys.events.on(s.SLEEP,this.handleSceneEvent,this),l.sys.events.on(s.WAKE,this.handleSceneEvent,this),l.sys.events.on(s.PRE_RENDER,this.preRender,this)},handleSceneEvent:function(o){var l=this.node,f=l.style;l&&(f.display=o.settings.visible?"block":"none")},setSkew:function(o,l){return o===void 0&&(o=0),l===void 0&&(l=o),this.skewX=o,this.skewY=l,this},setPerspective:function(o){return this.parent.style.perspective=o+"px",this},perspective:{get:function(){return parseFloat(this.parent.style.perspective)},set:function(o){this.parent.style.perspective=o+"px"}},addListener:function(o){if(this.node){o=o.split(" ");for(var l=0;l{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(47407),p=t(95643),a=t(61340),r=new a,n=new a,e=new a,s=function(h,i,o,l){if(i.node){var f=i.node.style,d=i.scene.sys.settings;if(!f||!d.visible||p.RENDER_MASK!==i.renderFlags||i.cameraFilter!==0&&i.cameraFilter&o.id||i.parentContainer&&!i.parentContainer.willRender()){f.display="none";return}var v=i.parentContainer,m=o.alpha*i.alpha;v&&(m*=v.alpha);var g=r,x=n,S=e,C=0,E=0,P="0%",R="0%";l?(C=i.width*i.scaleX*i.originX,E=i.height*i.scaleY*i.originY,x.applyITRS(i.x-C,i.y-E,i.rotation,i.scaleX,i.scaleY),g.copyFrom(o.matrix),g.multiplyWithOffset(l,-o.scrollX*i.scrollFactorX,-o.scrollY*i.scrollFactorY),x.e=i.x-C,x.f=i.y-E,g.multiply(x,S)):(C=i.width*i.originX,E=i.height*i.originY,x.applyITRS(i.x,i.y,i.rotation,i.scaleX,i.scaleY),g.copyFrom(o.matrix),P=100*i.originX+"%",R=100*i.originY+"%",x.e-=o.scrollX*i.scrollFactorX,x.f-=o.scrollY*i.scrollFactorY,g.multiply(x,S),S.e-=C,S.f-=E),i.transformOnly||(f.display="block",f.opacity=m,f.zIndex=i._depth,f.pointerEvents=i.pointerEvents,f.mixBlendMode=u[i._blendMode]),f.transform=S.getCSSMatrix()+" skew("+i.skewX+"rad, "+i.skewY+"rad) rotate3d("+i.rotate3d.x+","+i.rotate3d.y+","+i.rotate3d.z+","+i.rotate3d.w+i.rotate3dAngle+")",f.transformOrigin=P+" "+R}};c.exports=s},2611:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(3069),p=t(39429);p.register("dom",function(a,r,n,e,s){var h=new u(this.scene,a,r,n,e,s);return this.displayList.add(h),h})},441:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(29747),p=u,a=u;p=t(49381),a=t(49381),c.exports={renderWebGL:p,renderCanvas:a}},62980:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="addedtoscene"},41337:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="destroy"},44947:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="removedfromscene"},49358:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="complete"},35163:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="created"},97249:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="error"},19483:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="locked"},56059:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="loop"},26772:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="metadata"},64437:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="playing"},83411:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="play"},75780:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="seeked"},67799:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="seeking"},63500:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="stalled"},55541:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="stop"},53208:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="textureready"},4992:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="unlocked"},12:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="unsupported"},51708:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={ADDED_TO_SCENE:t(62980),DESTROY:t(41337),REMOVED_FROM_SCENE:t(44947),VIDEO_COMPLETE:t(49358),VIDEO_CREATED:t(35163),VIDEO_ERROR:t(97249),VIDEO_LOCKED:t(19483),VIDEO_LOOP:t(56059),VIDEO_METADATA:t(26772),VIDEO_PLAY:t(83411),VIDEO_PLAYING:t(64437),VIDEO_SEEKED:t(75780),VIDEO_SEEKING:t(67799),VIDEO_STALLED:t(63500),VIDEO_STOP:t(55541),VIDEO_TEXTURE:t(53208),VIDEO_UNLOCKED:t(4992),VIDEO_UNSUPPORTED:t(12)}},42421:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(31401),a=t(95643),r=t(64993),n=new u({Extends:a,Mixins:[p.Alpha,p.BlendMode,p.Depth,p.Flip,p.Origin,p.ScrollFactor,p.Size,p.Texture,p.Tint,p.Transform,p.Visible,r],initialize:function(s){a.call(this,s,"Extern")},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},preUpdate:function(){},render:function(){}});c.exports=n},70217:()=>{},56315:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(42421),p=t(39429);p.register("extern",function(){var a=new u(this.scene);return this.displayList.add(a),a})},64993:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(29747),p=u,a=u;p=t(80287),a=t(70217),c.exports={renderWebGL:p,renderCanvas:a}},80287:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(91296),p=function(a,r,n,e){a.pipelines.clear();var s=u(r,n,e).calc;r.render.call(r,a,n,s),a.pipelines.rebind()};c.exports=p},85592:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.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,GRADIENT_FILL_STYLE:21,GRADIENT_LINE_STYLE:22}},43831:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(71911),p=t(83419),a=t(85592),r=t(31401),n=t(8497),e=t(95643),s=t(95540),h=t(35154),i=t(36383),o=t(84503),l=new p({Extends:e,Mixins:[r.AlphaSingle,r.BlendMode,r.Depth,r.Mask,r.Pipeline,r.PostPipeline,r.Transform,r.Visible,r.ScrollFactor,o],initialize:function(d,v){var m=h(v,"x",0),g=h(v,"y",0);e.call(this,d,"Graphics"),this.setPosition(m,g),this.initPipeline(),this.initPostPipeline(),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.lineStyle(1,0,0),this.fillStyle(0,0),this.setDefaultStyles(v)},setDefaultStyles:function(f){return h(f,"lineStyle",null)&&(this.defaultStrokeWidth=h(f,"lineStyle.width",1),this.defaultStrokeColor=h(f,"lineStyle.color",16777215),this.defaultStrokeAlpha=h(f,"lineStyle.alpha",1),this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha)),h(f,"fillStyle",null)&&(this.defaultFillColor=h(f,"fillStyle.color",16777215),this.defaultFillAlpha=h(f,"fillStyle.alpha",1),this.fillStyle(this.defaultFillColor,this.defaultFillAlpha)),this},lineStyle:function(f,d,v){return v===void 0&&(v=1),this.commandBuffer.push(a.LINE_STYLE,f,d,v),this._lineWidth=f,this},fillStyle:function(f,d){return d===void 0&&(d=1),this.commandBuffer.push(a.FILL_STYLE,f,d),this},fillGradientStyle:function(f,d,v,m,g,x,S,C){return g===void 0&&(g=1),x===void 0&&(x=g),S===void 0&&(S=g),C===void 0&&(C=g),this.commandBuffer.push(a.GRADIENT_FILL_STYLE,g,x,S,C,f,d,v,m),this},lineGradientStyle:function(f,d,v,m,g,x){return x===void 0&&(x=1),this.commandBuffer.push(a.GRADIENT_LINE_STYLE,f,x,d,v,m,g),this},beginPath:function(){return this.commandBuffer.push(a.BEGIN_PATH),this},closePath:function(){return this.commandBuffer.push(a.CLOSE_PATH),this},fillPath:function(){return this.commandBuffer.push(a.FILL_PATH),this},fill:function(){return this.commandBuffer.push(a.FILL_PATH),this},strokePath:function(){return this.commandBuffer.push(a.STROKE_PATH),this},stroke:function(){return this.commandBuffer.push(a.STROKE_PATH),this},fillCircleShape:function(f){return this.fillCircle(f.x,f.y,f.radius)},strokeCircleShape:function(f){return this.strokeCircle(f.x,f.y,f.radius)},fillCircle:function(f,d,v){return this.beginPath(),this.arc(f,d,v,0,i.PI2),this.fillPath(),this},strokeCircle:function(f,d,v){return this.beginPath(),this.arc(f,d,v,0,i.PI2),this.strokePath(),this},fillRectShape:function(f){return this.fillRect(f.x,f.y,f.width,f.height)},strokeRectShape:function(f){return this.strokeRect(f.x,f.y,f.width,f.height)},fillRect:function(f,d,v,m){return this.commandBuffer.push(a.FILL_RECT,f,d,v,m),this},strokeRect:function(f,d,v,m){var g=this._lineWidth/2,x=f-g,S=f+g;return this.beginPath(),this.moveTo(f,d),this.lineTo(f,d+m),this.strokePath(),this.beginPath(),this.moveTo(f+v,d),this.lineTo(f+v,d+m),this.strokePath(),this.beginPath(),this.moveTo(x,d),this.lineTo(S+v,d),this.strokePath(),this.beginPath(),this.moveTo(x,d+m),this.lineTo(S+v,d+m),this.strokePath(),this},fillRoundedRect:function(f,d,v,m,g){g===void 0&&(g=20);var x=g,S=g,C=g,E=g;typeof g!="number"&&(x=s(g,"tl",20),S=s(g,"tr",20),C=s(g,"bl",20),E=s(g,"br",20));var P=x>=0,R=S>=0,M=C>=0,A=E>=0;return x=Math.abs(x),S=Math.abs(S),C=Math.abs(C),E=Math.abs(E),this.beginPath(),this.moveTo(f+x,d),this.lineTo(f+v-S,d),R?this.arc(f+v-S,d+S,S,-i.TAU,0):this.arc(f+v,d,S,Math.PI,i.TAU,!0),this.lineTo(f+v,d+m-E),A?this.arc(f+v-E,d+m-E,E,0,i.TAU):this.arc(f+v,d+m,E,-i.TAU,Math.PI,!0),this.lineTo(f+C,d+m),M?this.arc(f+C,d+m-C,C,i.TAU,Math.PI):this.arc(f,d+m,C,0,-i.TAU,!0),this.lineTo(f,d+x),P?this.arc(f+x,d+x,x,-Math.PI,-i.TAU):this.arc(f,d,x,i.TAU,0,!0),this.fillPath(),this},strokeRoundedRect:function(f,d,v,m,g){g===void 0&&(g=20);var x=g,S=g,C=g,E=g,P=Math.min(v,m)/2;typeof g!="number"&&(x=s(g,"tl",20),S=s(g,"tr",20),C=s(g,"bl",20),E=s(g,"br",20));var R=x>=0,M=S>=0,A=C>=0,L=E>=0;return x=Math.min(Math.abs(x),P),S=Math.min(Math.abs(S),P),C=Math.min(Math.abs(C),P),E=Math.min(Math.abs(E),P),this.beginPath(),this.moveTo(f+x,d),this.lineTo(f+v-S,d),this.moveTo(f+v-S,d),M?this.arc(f+v-S,d+S,S,-i.TAU,0):this.arc(f+v,d,S,Math.PI,i.TAU,!0),this.lineTo(f+v,d+m-E),this.moveTo(f+v,d+m-E),L?this.arc(f+v-E,d+m-E,E,0,i.TAU):this.arc(f+v,d+m,E,-i.TAU,Math.PI,!0),this.lineTo(f+C,d+m),this.moveTo(f+C,d+m),A?this.arc(f+C,d+m-C,C,i.TAU,Math.PI):this.arc(f,d+m,C,0,-i.TAU,!0),this.lineTo(f,d+x),this.moveTo(f,d+x),R?this.arc(f+x,d+x,x,-Math.PI,-i.TAU):this.arc(f,d,x,i.TAU,0,!0),this.strokePath(),this},fillPointShape:function(f,d){return this.fillPoint(f.x,f.y,d)},fillPoint:function(f,d,v){return!v||v<1?v=1:(f-=v/2,d-=v/2),this.commandBuffer.push(a.FILL_RECT,f,d,v,v),this},fillTriangleShape:function(f){return this.fillTriangle(f.x1,f.y1,f.x2,f.y2,f.x3,f.y3)},strokeTriangleShape:function(f){return this.strokeTriangle(f.x1,f.y1,f.x2,f.y2,f.x3,f.y3)},fillTriangle:function(f,d,v,m,g,x){return this.commandBuffer.push(a.FILL_TRIANGLE,f,d,v,m,g,x),this},strokeTriangle:function(f,d,v,m,g,x){return this.commandBuffer.push(a.STROKE_TRIANGLE,f,d,v,m,g,x),this},strokeLineShape:function(f){return this.lineBetween(f.x1,f.y1,f.x2,f.y2)},lineBetween:function(f,d,v,m){return this.beginPath(),this.moveTo(f,d),this.lineTo(v,m),this.strokePath(),this},lineTo:function(f,d){return this.commandBuffer.push(a.LINE_TO,f,d),this},moveTo:function(f,d){return this.commandBuffer.push(a.MOVE_TO,f,d),this},strokePoints:function(f,d,v,m){d===void 0&&(d=!1),v===void 0&&(v=!1),m===void 0&&(m=f.length),this.beginPath(),this.moveTo(f[0].x,f[0].y);for(var g=1;g-1&&this.fillStyle(this.defaultFillColor,this.defaultFillAlpha),this.defaultStrokeColor>-1&&this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha),this},generateTexture:function(f,d,v){var m=this.scene.sys,g=m.game.renderer;d===void 0&&(d=m.scale.width),v===void 0&&(v=m.scale.height),l.TargetCamera.setScene(this.scene),l.TargetCamera.setViewport(0,0,d,v),l.TargetCamera.scrollX=this.x,l.TargetCamera.scrollY=this.y;var x,S,C={willReadFrequently:!0};if(typeof f=="string")if(m.textures.exists(f)){x=m.textures.get(f);var E=x.getSourceImage();E instanceof HTMLCanvasElement&&(S=E.getContext("2d",C))}else x=m.textures.createCanvas(f,d,v),S=x.getSourceImage().getContext("2d",C);else f instanceof HTMLCanvasElement&&(S=f.getContext("2d",C));return S&&(this.renderCanvas(g,this,l.TargetCamera,null,S,!1),x&&x.refresh()),this},preDestroy:function(){this.commandBuffer=[]}});l.TargetCamera=new u,c.exports=l},32768:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(85592),p=t(20926),a=function(r,n,e,s,h,i){var o=n.commandBuffer,l=o.length,f=h||r.currentContext;if(!(l===0||!p(r,f,n,e,s))){e.addToRenderList(n);var d=1,v=1,m=0,g=0,x=1,S=0,C=0,E=0;f.beginPath();for(var P=0;P>>16,C=(m&65280)>>>8,E=m&255,f.strokeStyle="rgba("+S+","+C+","+E+","+d+")",f.lineWidth=x,P+=3;break;case u.FILL_STYLE:g=o[P+1],v=o[P+2],S=(g&16711680)>>>16,C=(g&65280)>>>8,E=g&255,f.fillStyle="rgba("+S+","+C+","+E+","+v+")",P+=2;break;case u.BEGIN_PATH:f.beginPath();break;case u.CLOSE_PATH:f.closePath();break;case u.FILL_PATH:i||f.fill();break;case u.STROKE_PATH:i||f.stroke();break;case u.FILL_RECT:i?f.rect(o[P+1],o[P+2],o[P+3],o[P+4]):f.fillRect(o[P+1],o[P+2],o[P+3],o[P+4]),P+=4;break;case u.FILL_TRIANGLE:f.beginPath(),f.moveTo(o[P+1],o[P+2]),f.lineTo(o[P+3],o[P+4]),f.lineTo(o[P+5],o[P+6]),f.closePath(),i||f.fill(),P+=6;break;case u.STROKE_TRIANGLE:f.beginPath(),f.moveTo(o[P+1],o[P+2]),f.lineTo(o[P+3],o[P+4]),f.lineTo(o[P+5],o[P+6]),f.closePath(),i||f.stroke(),P+=6;break;case u.LINE_TO:f.lineTo(o[P+1],o[P+2]),P+=2;break;case u.MOVE_TO:f.moveTo(o[P+1],o[P+2]),P+=2;break;case u.LINE_FX_TO:f.lineTo(o[P+1],o[P+2]),P+=5;break;case u.MOVE_FX_TO:f.moveTo(o[P+1],o[P+2]),P+=5;break;case u.SAVE:f.save();break;case u.RESTORE:f.restore();break;case u.TRANSLATE:f.translate(o[P+1],o[P+2]),P+=2;break;case u.SCALE:f.scale(o[P+1],o[P+2]),P+=2;break;case u.ROTATE:f.rotate(o[P+1]),P+=1;break;case u.GRADIENT_FILL_STYLE:P+=5;break;case u.GRADIENT_LINE_STYLE:P+=6;break}}f.restore()}};c.exports=a},87079:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(44603),p=t(43831);u.register("graphics",function(a,r){a===void 0&&(a={}),r!==void 0&&(a.add=r);var n=new p(this.scene,a);return a.add&&this.scene.sys.displayList.add(n),n})},1201:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(43831),p=t(39429);p.register("graphics",function(a){return this.displayList.add(new u(this.scene,a))})},84503:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(29747),p=u,a=u;p=t(77545),a=t(32768),a=t(32768),c.exports={renderWebGL:p,renderCanvas:a}},77545:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(85592),p=t(91296),a=t(61340),r=t(70554),n=function(o,l,f){this.x=o,this.y=l,this.width=f},e=function(o,l,f){this.points=[],this.pointsLength=1,this.points[0]=new n(o,l,f)},s=[],h=new a,i=function(o,l,f,d){if(l.commandBuffer.length!==0){f.addToRenderList(l);var v=o.pipelines.set(l.pipeline,l);o.pipelines.preBatch(l);for(var m=p(l,f,d).calc,g=h.loadIdentity(),x=l.commandBuffer,S=f.alpha*l.alpha,C=1,E=v.fillTint,P=v.strokeTint,R=0,M=0,A=0,L=.01,w=Math.PI*2,N,b=[],V=0,Y=!0,G=null,U=r.getTintAppendFloatAlpha,B=0;B0&&(et=-w+et%w):et>w?et=w:et<0&&(et=w+et%w),G===null&&(G=new e(it+Math.cos(ut)*ht,ot+Math.sin(ut)*ht,C),b.push(G),_+=L);_<1+at;)A=et*_+ut,R=it+Math.cos(A)*ht,M=ot+Math.sin(A)*ht,G.points.push(new n(R,M,C)),_+=L;A=et+ut,R=it+Math.cos(A)*ht,M=ot+Math.sin(A)*ht,G.points.push(new n(R,M,C));break}case u.FILL_RECT:{v.batchFillRect(x[++B],x[++B],x[++B],x[++B],g,m);break}case u.FILL_TRIANGLE:{v.batchFillTriangle(x[++B],x[++B],x[++B],x[++B],x[++B],x[++B],g,m);break}case u.STROKE_TRIANGLE:{v.batchStrokeTriangle(x[++B],x[++B],x[++B],x[++B],x[++B],x[++B],C,g,m);break}case u.LINE_TO:{G!==null?G.points.push(new n(x[++B],x[++B],C)):(G=new e(x[++B],x[++B],C),b.push(G));break}case u.MOVE_TO:{G=new e(x[++B],x[++B],C),b.push(G);break}case u.SAVE:{s.push(g.copyToArray());break}case u.RESTORE:{g.copyFromArray(s.pop());break}case u.TRANSLATE:{it=x[++B],ot=x[++B],g.translate(it,ot);break}case u.SCALE:{it=x[++B],ot=x[++B],g.scale(it,ot);break}case u.ROTATE:{g.rotate(x[++B]);break}}o.pipelines.postBatch(l)}};c.exports=i},26479:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(61061),p=t(83419),a=t(51708),r=t(50792),n=t(46710),e=t(95540),s=t(35154),h=t(97022),i=t(41212),o=t(88492),l=t(35072),f=t(68287),d=new p({Extends:r,initialize:function(m,g,x){r.call(this),x?g&&!Array.isArray(g)&&(g=[g]):Array.isArray(g)?i(g[0])&&(x=g,g=null):i(g)&&(x=g,g=null),this.scene=m,this.children=new l,this.isParent=!0,this.type="Group",this.classType=e(x,"classType",f),this.name=e(x,"name",""),this.active=e(x,"active",!0),this.maxSize=e(x,"maxSize",-1),this.defaultKey=e(x,"defaultKey",null),this.defaultFrame=e(x,"defaultFrame",null),this.runChildUpdate=e(x,"runChildUpdate",!1),this.createCallback=e(x,"createCallback",null),this.removeCallback=e(x,"removeCallback",null),this.createMultipleCallback=e(x,"createMultipleCallback",null),this.internalCreateCallback=e(x,"internalCreateCallback",null),this.internalRemoveCallback=e(x,"internalRemoveCallback",null),g&&this.addMultiple(g),x&&this.createMultiple(x),this.on(a.ADDED_TO_SCENE,this.addedToScene,this),this.on(a.REMOVED_FROM_SCENE,this.removedFromScene,this)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},create:function(v,m,g,x,S,C){if(v===void 0&&(v=0),m===void 0&&(m=0),g===void 0&&(g=this.defaultKey),x===void 0&&(x=this.defaultFrame),S===void 0&&(S=!0),C===void 0&&(C=!0),this.isFull())return null;var E=new this.classType(this.scene,v,m,g,x);return E.addToDisplayList(this.scene.sys.displayList),E.addToUpdateList(),E.visible=S,E.setActive(C),this.add(E),E},createMultiple:function(v){if(this.isFull())return[];Array.isArray(v)||(v=[v]);var m=[];if(v[0].key)for(var g=0;g=0;A--)if(M=w[A],M.active===g){if(L++,L===m)break}else M=null;return M?(typeof S=="number"&&(M.x=S),typeof C=="number"&&(M.y=C),M):x?this.create(S,C,E,P,R):null},get:function(v,m,g,x,S){return this.getFirst(!1,!0,v,m,g,x,S)},getFirstAlive:function(v,m,g,x,S,C){return this.getFirst(!0,v,m,g,x,S,C)},getFirstDead:function(v,m,g,x,S,C){return this.getFirst(!1,v,m,g,x,S,C)},playAnimation:function(v,m){return u.PlayAnimation(this.children.entries,v,m),this},isFull:function(){return this.maxSize===-1?!1:this.children.size>=this.maxSize},countActive:function(v){v===void 0&&(v=!0);for(var m=0,g=0;g{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(44603),p=t(26479);u.register("group",function(a){return new p(this.scene,null,a)})},3385:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(26479),p=t(39429);p.register("group",function(a,r){return this.updateList.add(new u(this.scene,a,r))})},88571:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(31401),a=t(95643),r=t(59819),n=new u({Extends:a,Mixins:[p.Alpha,p.BlendMode,p.Depth,p.Flip,p.GetBounds,p.Mask,p.Origin,p.Pipeline,p.PostPipeline,p.ScrollFactor,p.Size,p.TextureCrop,p.Tint,p.Transform,p.Visible,r],initialize:function(s,h,i,o,l){a.call(this,s,"Image"),this._crop=this.resetCropObject(),this.setTexture(o,l),this.setPosition(h,i),this.setSizeToFrame(),this.setOriginFromFrame(),this.initPipeline(),this.initPostPipeline(!0)}});c.exports=n},40652:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){p.addToRenderList(u),t.batchSprite(u,u.frame,p,a)};c.exports=y},82459:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(25305),p=t(44603),a=t(23568),r=t(88571);p.register("image",function(n,e){n===void 0&&(n={});var s=a(n,"key",null),h=a(n,"frame",null),i=new r(this.scene,0,0,s,h);return e!==void 0&&(n.add=e),u(this.scene,i,n),i})},2117:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(88571),p=t(39429);p.register("image",function(a,r,n,e){return this.displayList.add(new u(this.scene,a,r,n,e))})},59819:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(29747),p=u,a=u;p=t(99517),a=t(40652),c.exports={renderWebGL:p,renderCanvas:a}},99517:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){p.addToRenderList(u),this.pipeline.batchSprite(u,p,a)};c.exports=y},77856:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u={Events:t(51708),DisplayList:t(8050),GameObjectCreator:t(44603),GameObjectFactory:t(39429),UpdateList:t(45027),Components:t(31401),GetCalcMatrix:t(91296),BuildGameObject:t(25305),BuildGameObjectAnimation:t(13059),GameObject:t(95643),BitmapText:t(22186),Blitter:t(6107),Bob:t(46590),Container:t(31559),DOMElement:t(3069),DynamicBitmapText:t(2638),Extern:t(42421),Graphics:t(43831),Group:t(26479),Image:t(88571),Layer:t(93595),Particles:t(18404),PathFollower:t(1159),RenderTexture:t(591),RetroFont:t(196),Rope:t(77757),Sprite:t(68287),Text:t(50171),GetTextSize:t(14220),MeasureText:t(79557),TextStyle:t(35762),TileSprite:t(20839),Zone:t(41481),Video:t(18471),Shape:t(17803),Arc:t(23629),Curve:t(89),Ellipse:t(19921),Grid:t(30479),IsoBox:t(61475),IsoTriangle:t(16933),Line:t(57847),Polygon:t(24949),Rectangle:t(74561),Star:t(55911),Triangle:t(36931),Factories:{Blitter:t(12709),Container:t(24961),DOMElement:t(2611),DynamicBitmapText:t(72566),Extern:t(56315),Graphics:t(1201),Group:t(3385),Image:t(2117),Layer:t(20005),Particles:t(676),PathFollower:t(90145),RenderTexture:t(60505),Rope:t(96819),Sprite:t(46409),StaticBitmapText:t(34914),Text:t(68005),TileSprite:t(91681),Zone:t(84175),Video:t(89025),Arc:t(42563),Curve:t(40511),Ellipse:t(1543),Grid:t(34137),IsoBox:t(3933),IsoTriangle:t(49803),Line:t(2481),Polygon:t(64827),Rectangle:t(87959),Star:t(93697),Triangle:t(45245)},Creators:{Blitter:t(9403),Container:t(77143),DynamicBitmapText:t(11164),Graphics:t(87079),Group:t(94975),Image:t(82459),Layer:t(25179),Particles:t(92730),RenderTexture:t(34495),Rope:t(26209),Sprite:t(15567),StaticBitmapText:t(57336),Text:t(71259),TileSprite:t(14167),Zone:t(95261),Video:t(11511)}};u.Shader=t(20071),u.Mesh=t(4703),u.NineSlice=t(28103),u.PointLight=t(80321),u.Plane=t(33663),u.Factories.Shader=t(74177),u.Factories.Mesh=t(9225),u.Factories.NineSlice=t(47521),u.Factories.PointLight=t(71255),u.Factories.Plane=t(30985),u.Creators.Shader=t(54935),u.Creators.Mesh=t(20527),u.Creators.NineSlice=t(28279),u.Creators.PointLight=t(39829),u.Creators.Plane=t(56015),u.Light=t(41432),u.LightsManager=t(61356),u.LightsPlugin=t(88992),c.exports=u},93595:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(10312),p=t(83419),a=t(31401),r=t(53774),n=t(45893),e=t(50792),s=t(51708),h=t(73162),i=t(33963),o=t(44594),l=t(19186),f=new p({Extends:h,Mixins:[a.AlphaSingle,a.BlendMode,a.Depth,a.Mask,a.PostPipeline,a.Visible,e,i],initialize:function(v,m){h.call(this,v),e.call(this),this.scene=v,this.displayList=null,this.type="Layer",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,this.systems=v.sys,this.events=v.sys.events,this.sortChildrenFlag=!1,this.addCallback=this.addChildCallback,this.removeCallback=this.removeChildCallback,this.initPostPipeline(),this.clearAlpha(),this.setBlendMode(u.SKIP_CHECK),m&&this.add(m),v.sys.queueDepthSort()},setActive:function(d){return this.active=d,this},setName:function(d){return this.name=d,this},setState:function(d){return this.state=d,this},setDataEnabled:function(){return this.data||(this.data=new n(this)),this},setData:function(d,v){return this.data||(this.data=new n(this)),this.data.set(d,v),this},incData:function(d,v){return this.data||(this.data=new n(this)),this.data.inc(d,v),this},toggleData:function(d){return this.data||(this.data=new n(this)),this.data.toggle(d),this},getData:function(d){return this.data||(this.data=new n(this)),this.data.get(d)},setInteractive:function(){return this},disableInteractive:function(){return this},removeInteractive:function(){return this},addedToScene:function(){},removedFromScene:function(){},update:function(){},toJSON:function(){return r(this)},willRender:function(d){return!(this.renderFlags!==15||this.list.length===0||this.cameraFilter!==0&&this.cameraFilter&d.id)},getIndexList:function(){for(var d=this,v=this.parentContainer,m=[];v&&(m.unshift(v.getIndex(d)),d=v,v.parentContainer);)v=v.parentContainer;return m.unshift(this.displayList.getIndex(d)),m},addChildCallback:function(d){var v=d.displayList;v&&v!==this&&d.removeFromDisplayList(),d.displayList||(this.queueDepthSort(),d.displayList=this,d.emit(s.ADDED_TO_SCENE,d,this.scene),this.events.emit(o.ADDED_TO_SCENE,d,this.scene))},removeChildCallback:function(d){this.queueDepthSort(),d.displayList=null,d.emit(s.REMOVED_FROM_SCENE,d,this.scene),this.events.emit(o.REMOVED_FROM_SCENE,d,this.scene)},queueDepthSort:function(){this.sortChildrenFlag=!0},depthSort:function(){this.sortChildrenFlag&&(l(this.list,this.sortByDepth),this.sortChildrenFlag=!1)},sortByDepth:function(d,v){return d._depth-v._depth},getChildren:function(){return this.list},addToDisplayList:function(d){return d===void 0&&(d=this.scene.sys.displayList),this.displayList&&this.displayList!==d&&this.removeFromDisplayList(),d.exists(this)||(this.displayList=d,d.add(this,!0),d.queueDepthSort(),this.emit(s.ADDED_TO_SCENE,this,this.scene),d.events.emit(o.ADDED_TO_SCENE,this,this.scene)),this},removeFromDisplayList:function(){var d=this.displayList||this.scene.sys.displayList;return d.exists(this)&&(d.remove(this,!0),d.queueDepthSort(),this.displayList=null,this.emit(s.REMOVED_FROM_SCENE,this,this.scene),d.events.emit(o.REMOVED_FROM_SCENE,this,this.scene)),this},destroy:function(d){if(!(!this.scene||this.ignoreDestroy)){this.emit(s.DESTROY,this);for(var v=this.list;v.length;)v[0].destroy(d);this.removeAllListeners(),this.resetPostPipeline(!0),this.displayList&&(this.displayList.remove(this,!0,!1),this.displayList.queueDepthSort()),this.data&&(this.data.destroy(),this.data=void 0),this.active=!1,this.visible=!1,this.list=void 0,this.scene=void 0,this.displayList=void 0,this.systems=void 0,this.events=void 0}}});c.exports=f},2956:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){var a=u.list;if(a.length!==0){u.depthSort();var r=u.blendMode!==-1;r||t.setBlendMode(0);var n=u._alpha;u.mask&&u.mask.preRenderCanvas(t,null,p);for(var e=0;e{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(25305),p=t(93595),a=t(44603),r=t(23568);a.register("layer",function(n,e){n===void 0&&(n={});var s=r(n,"children",null),h=new p(this.scene,s);return e!==void 0&&(n.add=e),u(this.scene,h,n),h})},20005:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(93595),p=t(39429);p.register("layer",function(a){return this.displayList.add(new u(this.scene,a))})},33963:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(29747),p=u,a=u;p=t(15869),a=t(2956),c.exports={renderWebGL:p,renderCanvas:a}},15869:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){var a=u.list,r=a.length;if(r!==0){u.depthSort(),t.pipelines.preBatch(u);var n=u.blendMode!==-1;n||t.setBlendMode(0);for(var e=u.alpha,s=0;s{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(96503),p=t(83419),a=t(31401),r=t(51767),n=t(70554),e=new p({Extends:u,Mixins:[a.Origin,a.ScrollFactor,a.Visible],initialize:function(h,i,o,l,f,d,v){u.call(this,h,i,o),this.color=new r(l,f,d),this.intensity=v,this.renderFlags=15,this.cameraFilter=0,this.setScrollFactor(1,1),this.setOrigin(),this.setDisplayOrigin(o)},displayWidth:{get:function(){return this.diameter},set:function(s){this.diameter=s}},displayHeight:{get:function(){return this.diameter},set:function(s){this.diameter=s}},width:{get:function(){return this.diameter},set:function(s){this.diameter=s}},height:{get:function(){return this.diameter},set:function(s){this.diameter=s}},willRender:function(s){return!(e.RENDER_MASK!==this.renderFlags||this.cameraFilter!==0&&this.cameraFilter&s.id)},setColor:function(s){var h=n.getFloatsFromUintRGB(s);return this.color.set(h[0],h[1],h[2]),this},setIntensity:function(s){return this.intensity=s,this},setRadius:function(s){return this.radius=s,this}});e.RENDER_MASK=15,c.exports=e},61356:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(81491),p=t(83419),a=t(20339),r=t(41432),n=t(80321),e=t(51767),s=t(19133),h=t(19186),i=t(70554),o=new p({initialize:function(){this.lights=[],this.ambientColor=new e(.1,.1,.1),this.active=!1,this.maxLights=-1,this.visibleLights=0},addPointLight:function(l,f,d,v,m,g){return this.systems.displayList.add(new n(this.scene,l,f,d,v,m,g))},enable:function(){return this.maxLights===-1&&(this.maxLights=this.systems.renderer.config.maxLights),this.active=!0,this},disable:function(){return this.active=!1,this},getLights:function(l){for(var f=this.lights,d=l.worldView,v=[],m=0;mthis.maxLights&&(h(v,this.sortByDistance),v=v.slice(0,this.maxLights)),this.visibleLights=v.length,v},sortByDistance:function(l,f){return l.distance>=f.distance},setAmbientColor:function(l){var f=i.getFloatsFromUintRGB(l);return this.ambientColor.set(f[0],f[1],f[2]),this},getMaxVisibleLights:function(){return this.maxLights},getLightCount:function(){return this.lights.length},addLight:function(l,f,d,v,m){l===void 0&&(l=0),f===void 0&&(f=0),d===void 0&&(d=128),v===void 0&&(v=16777215),m===void 0&&(m=1);var g=i.getFloatsFromUintRGB(v),x=new r(l,f,d,g[0],g[1],g[2],m);return this.lights.push(x),x},removeLight:function(l){var f=this.lights.indexOf(l);return f>=0&&s(this.lights,f),this},shutdown:function(){this.lights.length=0},destroy:function(){this.shutdown()}});c.exports=o},88992:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(61356),a=t(37277),r=t(44594),n=new u({Extends:p,initialize:function(s){this.scene=s,this.systems=s.sys,s.sys.settings.isBooted||s.sys.events.once(r.BOOT,this.boot,this),p.call(this)},boot:function(){var e=this.systems.events;e.on(r.SHUTDOWN,this.shutdown,this),e.on(r.DESTROY,this.destroy,this)},destroy:function(){this.shutdown(),this.scene=void 0,this.systems=void 0}});a.register("LightsPlugin",n,"lights"),c.exports=n},4703:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(31401),a=t(39506),r=t(83997),n=t(95643),e=t(34684),s=t(92515),h=t(91296),i=t(37867),o=t(29807),l=t(43396),f=t(19186),d=t(25836),v=t(39318),m=new u({Extends:n,Mixins:[p.AlphaSingle,p.BlendMode,p.Depth,p.Mask,p.Pipeline,p.PostPipeline,p.ScrollFactor,p.Size,p.Texture,p.Transform,p.Visible,o],initialize:function(x,S,C,E,P,R,M,A,L,w,N,b){S===void 0&&(S=0),C===void 0&&(C=0),E===void 0&&(E="__WHITE"),n.call(this,x,"Mesh"),this.faces=[],this.vertices=[],this.tintFill=!1,this.debugCallback=null,this.debugGraphic=null,this.hideCCW=!0,this.modelPosition=new d,this.modelScale=new d(1,1,1),this.modelRotation=new d,this.dirtyCache=[0,0,0,0,0,0,0,0,0,0,0,0],this.transformMatrix=new i,this.viewPosition=new d,this.viewMatrix=new i,this.projectionMatrix=new i,this.totalRendered=0,this.totalFrame=0,this.ignoreDirtyCache=!1,this.fov,this.displayOriginX=0,this.displayOriginY=0;var V=x.sys.renderer;this.setPosition(S,C),this.setTexture(E,P),this.setSize(V.width,V.height),this.initPipeline(),this.initPostPipeline(),this.setPerspective(V.width,V.height),R&&this.addVertices(R,M,A,L,w,N,b)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},panX:function(g){return this.viewPosition.addScale(d.LEFT,g),this.dirtyCache[10]=1,this},panY:function(g){return this.viewPosition.y+=d.DOWN.y*g,this.dirtyCache[10]=1,this},panZ:function(g){return this.viewPosition.z+=g,this.dirtyCache[10]=1,this},setPerspective:function(g,x,S,C,E){return S===void 0&&(S=45),C===void 0&&(C=.01),E===void 0&&(E=1e3),this.fov=S,this.projectionMatrix.perspective(a(S),g/x,C,E),this.dirtyCache[10]=1,this.dirtyCache[11]=0,this},setOrtho:function(g,x,S,C){return g===void 0&&(g=this.scene.sys.renderer.getAspectRatio()),x===void 0&&(x=1),S===void 0&&(S=-1e3),C===void 0&&(C=1e3),this.fov=0,this.projectionMatrix.ortho(-g,g,-x,x,S,C),this.dirtyCache[10]=1,this.dirtyCache[11]=1,this},clear:function(){return this.faces.forEach(function(g){g.destroy()}),this.faces=[],this.vertices=[],this},addVerticesFromObj:function(g,x,S,C,E,P,R,M,A){var L=this.scene.sys.cache.obj.get(g),w;return L&&(w=e(L,this,x,S,C,E,P,R,M,A)),(!w||w.verts.length===0)&&console.warn("Mesh.addVerticesFromObj data empty:",g),this},sortByDepth:function(g,x){return g.depth-x.depth},depthSort:function(){return f(this.faces,this.sortByDepth),this},addVertex:function(g,x,S,C,E,P,R){var M=new v(g,x,S,C,E,P,R);return this.vertices.push(M),M},addFace:function(g,x,S){var C=new r(g,x,S);return this.faces.push(C),this.dirtyCache[9]=-1,C},addVertices:function(g,x,S,C,E,P,R){var M=s(g,x,S,C,E,P,R);return M?(this.faces=this.faces.concat(M.faces),this.vertices=this.vertices.concat(M.vertices)):console.warn("Mesh.addVertices data empty or invalid"),this.dirtyCache[9]=-1,this},getFaceCount:function(){return this.faces.length},getVertexCount:function(){return this.vertices.length},getFace:function(g){return this.faces[g]},hasFaceAt:function(g,x,S){S===void 0&&(S=this.scene.sys.cameras.main);for(var C=h(this,S).calc,E=this.faces,P=0;P{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(){};c.exports=y},20527:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(25305),p=t(44603),a=t(23568),r=t(35154),n=t(4703);p.register("mesh",function(e,s){e===void 0&&(e={});var h=a(e,"key",null),i=a(e,"frame",null),o=r(e,"vertices",[]),l=r(e,"uvs",[]),f=r(e,"indicies",[]),d=r(e,"containsZ",!1),v=r(e,"normals",[]),m=r(e,"colors",16777215),g=r(e,"alphas",1),x=new n(this.scene,0,0,h,i,o,l,f,d,v,m,g);return s!==void 0&&(e.add=s),u(this.scene,x,e),x})},9225:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(4703),p=t(39429);p.register("mesh",function(a,r,n,e,s,h,i,o,l,f,d){return this.displayList.add(new u(this.scene,a,r,n,e,s,h,i,o,l,f,d))})},29807:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(29747),p=u,a=u;p=t(48833),a=t(36488),c.exports={renderWebGL:p,renderCanvas:a}},48833:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(91296),p=function(a,r,n,e){var s=r.faces,h=s.length;if(h!==0){n.addToRenderList(r);var i=a.pipelines.set(r.pipeline,r),o=u(r,n,e).calc;a.pipelines.preBatch(r);for(var l=i.setGameObject(r),f=i.vertexViewF32,d=i.vertexViewU32,v=i.vertexCount*i.currentShader.vertexComponentCount-1,m=r.tintFill,g=[],x=r.debugCallback,S=o.a,C=o.b,E=o.c,P=o.d,R=o.e,M=o.f,A=r.viewPosition.z,L=r.hideCCW,w=n.roundPixels,N=n.alpha*r.alpha,b=0,V=0;V{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(31401),a=t(95643),r=t(78023),n=t(39318),e=new u({Extends:a,Mixins:[p.AlphaSingle,p.BlendMode,p.Depth,p.GetBounds,p.Mask,p.Origin,p.Pipeline,p.PostPipeline,p.ScrollFactor,p.Texture,p.Transform,p.Visible,r],initialize:function(h,i,o,l,f,d,v,m,g,x,S){a.call(this,h,"NineSlice"),this._width,this._height,this._originX=.5,this._originY=.5,this._sizeComponent=!0,this.vertices=[],this.leftWidth,this.rightWidth,this.topHeight,this.bottomHeight,this.tint=16777215,this.tintFill=!1;var C=h.textures.getFrame(l,f);this.is3Slice=!x&&!S,C&&C.scale9&&(this.is3Slice=C.is3Slice);for(var E=this.is3Slice?18:54,P=0;P{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(25305),p=t(44603),a=t(23568),r=t(35154),n=t(28103);p.register("nineslice",function(e,s){e===void 0&&(e={});var h=a(e,"key",null),i=a(e,"frame",null),o=r(e,"width",256),l=r(e,"height",256),f=r(e,"leftWidth",10),d=r(e,"rightWidth",10),v=r(e,"topHeight",0),m=r(e,"bottomHeight",0),g=new n(this.scene,0,0,h,i,o,l,f,d,v,m);return s!==void 0&&(e.add=s),u(this.scene,g,e),g})},47521:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(28103),p=t(39429);p.register("nineslice",function(a,r,n,e,s,h,i,o,l,f){return this.displayList.add(new u(this.scene,a,r,n,e,s,h,i,o,l,f))})},78023:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(29747),p=u,a=u;p=t(52230),c.exports={renderWebGL:p,renderCanvas:a}},52230:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(91296),p=t(70554),a=function(r,n,e,s){var h=n.vertices,i=h.length;if(i!==0){e.addToRenderList(n);var o=r.pipelines.set(n.pipeline,n),l=u(n,e,s,!1).calc;r.pipelines.preBatch(n);var f=o.setGameObject(n),d=o.vertexViewF32,v=o.vertexViewU32,m=o.vertexCount*o.currentShader.vertexComponentCount-1,g=e.roundPixels,x=n.tintFill,S=e.alpha*n.alpha,C=p.getTintAppendFloatAlpha(n.tint,S),E=o.vertexAvailable(),P=-1;E{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(44777),a=t(37589),r=t(6113),n=t(91389),e=t(90664),s=new u({Extends:p,initialize:function(i){p.call(this,i,null,!1),this.active=!1,this.easeName="Linear",this.r=[],this.g=[],this.b=[]},getMethod:function(){return this.propertyValue===null?0:9},setMethods:function(){var h=this.propertyValue,i=h,o=this.defaultEmit,l=this.defaultUpdate;if(this.method===9){this.start=h[0],this.ease=r("Linear"),this.interpolation=n("linear"),o=this.easedValueEmit,l=this.easeValueUpdate,i=h[0],this.active=!0;for(var f=0;f{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(30976),p=t(45319),a=t(83419),r=t(99472),n=t(6113),e=t(95540),s=t(91389),h=t(77720),i=t(15994),o=new a({initialize:function(f,d,v){v===void 0&&(v=!1),this.propertyKey=f,this.propertyValue=d,this.defaultValue=d,this.steps=0,this.counter=0,this.yoyo=!1,this.direction=0,this.start=0,this.current=0,this.end=0,this.ease=null,this.interpolation=null,this.emitOnly=v,this.onEmit=this.defaultEmit,this.onUpdate=this.defaultUpdate,this.active=!0,this.method=0,this._onEmit,this._onUpdate},loadConfig:function(l,f){l===void 0&&(l={}),f&&(this.propertyKey=f),this.propertyValue=e(l,this.propertyKey,this.defaultValue),this.method=this.getMethod(),this.setMethods(),this.emitOnly&&(this.onUpdate=this.defaultUpdate)},toJSON:function(){return JSON.stringify(this.propertyValue)},onChange:function(l){var f;switch(this.method){case 1:case 3:case 8:f=l;break;case 2:this.propertyValue.indexOf(l)>=0&&(f=l);break;case 4:var d=(this.end-this.start)/this.steps;f=h(l,d),this.counter=f;break;case 5:case 6:case 7:f=p(l,this.start,this.end);break;case 9:f=this.start[0];break}return this.current=f,this},getMethod:function(){var l=this.propertyValue;if(l===null)return 0;var f=typeof l;if(f==="number")return 1;if(Array.isArray(l))return 2;if(f==="function")return 3;if(f==="object"){if(this.hasBoth(l,"start","end"))return this.has(l,"steps")?4:5;if(this.hasBoth(l,"min","max"))return 6;if(this.has(l,"random"))return 7;if(this.hasEither(l,"onEmit","onUpdate"))return 8;if(this.hasEither(l,"values","interpolation"))return 9}return 0},setMethods:function(){var l=this.propertyValue,f=l,d=this.defaultEmit,v=this.defaultUpdate;switch(this.method){case 1:d=this.staticValueEmit;break;case 2:d=this.randomStaticValueEmit,f=l[0];break;case 3:this._onEmit=l,d=this.proxyEmit;break;case 4:this.start=l.start,this.end=l.end,this.steps=l.steps,this.counter=this.start,this.yoyo=this.has(l,"yoyo")?l.yoyo:!1,this.direction=0,d=this.steppedEmit,f=this.start;break;case 5:this.start=l.start,this.end=l.end;var m=this.has(l,"ease")?l.ease:"Linear";this.ease=n(m,l.easeParams),d=this.has(l,"random")&&l.random?this.randomRangedValueEmit:this.easedValueEmit,v=this.easeValueUpdate,f=this.start;break;case 6:this.start=l.min,this.end=l.max,d=this.has(l,"int")&&l.int?this.randomRangedIntEmit:this.randomRangedValueEmit,f=this.start;break;case 7:var g=l.random;Array.isArray(g)&&(this.start=g[0],this.end=g[1]),d=this.randomRangedIntEmit,f=this.start;break;case 8:this._onEmit=this.has(l,"onEmit")?l.onEmit:this.defaultEmit,this._onUpdate=this.has(l,"onUpdate")?l.onUpdate:this.defaultUpdate,d=this.proxyEmit,v=this.proxyUpdate;break;case 9:this.start=l.values;var x=this.has(l,"ease")?l.ease:"Linear";this.ease=n(x,l.easeParams),this.interpolation=s(l.interpolation),d=this.easedValueEmit,v=this.easeValueUpdate,f=this.start[0];break}return this.onEmit=d,this.onUpdate=v,this.current=f,this},has:function(l,f){return l.hasOwnProperty(f)},hasBoth:function(l,f,d){return l.hasOwnProperty(f)&&l.hasOwnProperty(d)},hasEither:function(l,f,d){return l.hasOwnProperty(f)||l.hasOwnProperty(d)},defaultEmit:function(l,f,d){return d},defaultUpdate:function(l,f,d,v){return v},proxyEmit:function(l,f,d){var v=this._onEmit(l,f,d);return this.current=v,v},proxyUpdate:function(l,f,d,v){var m=this._onUpdate(l,f,d,v);return this.current=m,m},staticValueEmit:function(){return this.current},staticValueUpdate:function(){return this.current},randomStaticValueEmit:function(){var l=Math.floor(Math.random()*this.propertyValue.length);return this.current=this.propertyValue[l],this.current},randomRangedValueEmit:function(l,f){var d=r(this.start,this.end);return l&&l.data[f]&&(l.data[f].min=d,l.data[f].max=this.end),this.current=d,d},randomRangedIntEmit:function(l,f){var d=u(this.start,this.end);return l&&l.data[f]&&(l.data[f].min=d,l.data[f].max=this.end),this.current=d,d},steppedEmit:function(){var l=this.counter,f=l,d=(this.end-this.start)/this.steps;if(this.yoyo){var v;this.direction===0?(f+=d,f>=this.end&&(v=f-this.end,f=this.end-v,this.direction=1)):(f-=d,f<=this.start&&(v=this.start-f,f=this.start+v,this.direction=0)),this.counter=f}else this.counter=i(f+d,this.start,this.end);return this.current=l,l},easedValueEmit:function(l,f){if(l&&l.data[f]){var d=l.data[f];d.min=this.start,d.max=this.end}return this.current=this.start,this.start},easeValueUpdate:function(l,f,d){var v=l.data[f],m,g=this.ease(d);return this.interpolation?m=this.interpolation(this.start,g):m=(v.max-v.min)*g+v.min,this.current=m,m},destroy:function(){this.propertyValue=null,this.defaultValue=null,this.ease=null,this.interpolation=null,this._onEmit=null,this._onUpdate=null}});c.exports=o},24502:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(95540),a=t(20286),r=new u({Extends:a,initialize:function(e,s,h,i,o){if(typeof e=="object"){var l=e;e=p(l,"x",0),s=p(l,"y",0),h=p(l,"power",0),i=p(l,"epsilon",100),o=p(l,"gravity",50)}else e===void 0&&(e=0),s===void 0&&(s=0),h===void 0&&(h=0),i===void 0&&(i=100),o===void 0&&(o=50);a.call(this,e,s,!0),this._gravity=o,this._power=h*o,this._epsilon=i*i},update:function(n,e){var s=this.x-n.x,h=this.y-n.y,i=s*s+h*h;if(i!==0){var o=Math.sqrt(i);i{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(9674),p=t(45319),a=t(83419),r=t(39506),n=t(87841),e=t(11520),s=t(26099),h=new a({initialize:function(o){this.emitter=o,this.texture=null,this.frame=null,this.x=0,this.y=0,this.worldPosition=new s,this.velocityX=0,this.velocityY=0,this.accelerationX=0,this.accelerationY=0,this.maxVelocityX=1e4,this.maxVelocityY=1e4,this.bounce=0,this.scaleX=1,this.scaleY=1,this.alpha=1,this.angle=0,this.rotation=0,this.tint=16777215,this.life=1e3,this.lifeCurrent=1e3,this.delayCurrent=0,this.holdCurrent=0,this.lifeT=0,this.data={tint:{min:16777215,max:16777215},alpha:{min:1,max:1},rotate:{min:0,max:0},scaleX:{min:1,max:1},scaleY:{min:1,max:1},x:{min:0,max:0},y:{min:0,max:0},accelerationX:{min:0,max:0},accelerationY:{min:0,max:0},maxVelocityX:{min:0,max:0},maxVelocityY:{min:0,max:0},moveToX:{min:0,max:0},moveToY:{min:0,max:0},bounce:{min:0,max:0}},this.isCropped=!1,this.scene=o.scene,this.anims=null,this.emitter.anims.length>0&&(this.anims=new u(this)),this.bounds=new n},emit:function(i,o,l,f,d,v){return this.emitter.emit(i,o,l,f,d,v)},isAlive:function(){return this.lifeCurrent>0},kill:function(){this.lifeCurrent=0},setPosition:function(i,o){i===void 0&&(i=0),o===void 0&&(o=0),this.x=i,this.y=o},fire:function(i,o){var l=this.emitter,f=l.ops,d=l.getAnim();if(d?this.anims.play(d):(this.frame=l.getFrame(),this.texture=this.frame.texture),!this.frame)throw new Error("Particle has no texture frame");if(l.getEmitZone(this),i===void 0?this.x+=f.x.onEmit(this,"x"):f.x.steps>0?this.x+=i+f.x.onEmit(this,"x"):this.x+=i,o===void 0?this.y+=f.y.onEmit(this,"y"):f.y.steps>0?this.y+=o+f.y.onEmit(this,"y"):this.y+=o,this.life=f.lifespan.onEmit(this,"lifespan"),this.lifeCurrent=this.life,this.lifeT=0,this.delayCurrent=f.delay.onEmit(this,"delay"),this.holdCurrent=f.hold.onEmit(this,"hold"),this.scaleX=f.scaleX.onEmit(this,"scaleX"),this.scaleY=f.scaleY.active?f.scaleY.onEmit(this,"scaleY"):this.scaleX,this.angle=f.rotate.onEmit(this,"rotate"),this.rotation=r(this.angle),l.worldMatrix.transformPoint(this.x,this.y,this.worldPosition),this.delayCurrent===0&&l.getDeathZone(this))return this.lifeCurrent=0,!1;var v=f.speedX.onEmit(this,"speedX"),m=f.speedY.active?f.speedY.onEmit(this,"speedY"):v;if(l.radial){var g=r(f.angle.onEmit(this,"angle"));this.velocityX=Math.cos(g)*Math.abs(v),this.velocityY=Math.sin(g)*Math.abs(m)}else if(l.moveTo){var x=f.moveToX.onEmit(this,"moveToX"),S=f.moveToY.onEmit(this,"moveToY"),C=this.life/1e3;this.velocityX=(x-this.x)/C,this.velocityY=(S-this.y)/C}else this.velocityX=v,this.velocityY=m;return l.acceleration&&(this.accelerationX=f.accelerationX.onEmit(this,"accelerationX"),this.accelerationY=f.accelerationY.onEmit(this,"accelerationY")),this.maxVelocityX=f.maxVelocityX.onEmit(this,"maxVelocityX"),this.maxVelocityY=f.maxVelocityY.onEmit(this,"maxVelocityY"),this.bounce=f.bounce.onEmit(this,"bounce"),this.alpha=f.alpha.onEmit(this,"alpha"),f.color.active?this.tint=f.color.onEmit(this,"tint"):this.tint=f.tint.onEmit(this,"tint"),!0},update:function(i,o,l){if(this.lifeCurrent<=0)return this.holdCurrent>0?(this.holdCurrent-=i,this.holdCurrent<=0):!0;if(this.delayCurrent>0)return this.delayCurrent-=i,!1;this.anims&&this.anims.update(0,i);var f=this.emitter,d=f.ops,v=1-this.lifeCurrent/this.life;if(this.lifeT=v,this.x=d.x.onUpdate(this,"x",v,this.x),this.y=d.y.onUpdate(this,"y",v,this.y),f.moveTo){var m=d.moveToX.onUpdate(this,"moveToX",v,f.moveToX),g=d.moveToY.onUpdate(this,"moveToY",v,f.moveToY),x=this.lifeCurrent/1e3;this.velocityX=(m-this.x)/x,this.velocityY=(g-this.y)/x}return this.computeVelocity(f,i,o,l,v),this.scaleX=d.scaleX.onUpdate(this,"scaleX",v,this.scaleX),d.scaleY.active?this.scaleY=d.scaleY.onUpdate(this,"scaleY",v,this.scaleY):this.scaleY=this.scaleX,this.angle=d.rotate.onUpdate(this,"rotate",v,this.angle),this.rotation=r(this.angle),f.getDeathZone(this)?(this.lifeCurrent=0,!0):(this.alpha=p(d.alpha.onUpdate(this,"alpha",v,this.alpha),0,1),d.color.active?this.tint=d.color.onUpdate(this,"color",v,this.tint):this.tint=d.tint.onUpdate(this,"tint",v,this.tint),this.lifeCurrent-=i,this.lifeCurrent<=0&&this.holdCurrent<=0)},computeVelocity:function(i,o,l,f,d){var v=i.ops,m=this.velocityX,g=this.velocityY,x=v.accelerationX.onUpdate(this,"accelerationX",d,this.accelerationX),S=v.accelerationY.onUpdate(this,"accelerationY",d,this.accelerationY),C=v.maxVelocityX.onUpdate(this,"maxVelocityX",d,this.maxVelocityX),E=v.maxVelocityY.onUpdate(this,"maxVelocityY",d,this.maxVelocityY);this.bounce=v.bounce.onUpdate(this,"bounce",d,this.bounce),m+=i.gravityX*l+x*l,g+=i.gravityY*l+S*l,m=p(m,-C,C),g=p(g,-E,E),this.velocityX=m,this.velocityY=g,this.x+=m*l,this.y+=g*l,i.worldMatrix.transformPoint(this.x,this.y,this.worldPosition);for(var P=0;P{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(20286),a=t(87841),r=new u({Extends:p,initialize:function(e,s,h,i,o,l,f,d){o===void 0&&(o=!0),l===void 0&&(l=!0),f===void 0&&(f=!0),d===void 0&&(d=!0),p.call(this,e,s,!0),this.bounds=new a(e,s,h,i),this.collideLeft=o,this.collideRight=l,this.collideTop=f,this.collideBottom=d},update:function(n){var e=this.bounds,s=-n.bounce,h=n.worldPosition;h.xe.right&&this.collideRight&&(n.x-=h.x-e.right,n.velocityX*=s),h.ye.bottom&&this.collideBottom&&(n.y-=h.y-e.bottom,n.velocityY*=s)}});c.exports=r},31600:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(31401),a=t(53774),r=t(43459),n=t(26388),e=t(19909),s=t(76472),h=t(44777),i=t(20696),o=t(95643),l=t(95540),f=t(26546),d=t(24502),v=t(1985),m=t(97022),g=t(86091),x=t(73162),S=t(20074),C=t(269),E=t(56480),P=t(69601),R=t(68875),M=t(87841),A=t(59996),L=t(72905),w=t(90668),N=t(19186),b=t(61340),V=t(26099),Y=t(15994),G=["active","advance","blendMode","colorEase","deathCallback","deathCallbackScope","duration","emitCallback","emitCallbackScope","follow","frequency","gravityX","gravityY","maxAliveParticles","maxParticles","name","emitting","particleBringToTop","particleClass","radial","sortCallback","sortOrderAsc","sortProperty","stopAfter","tintFill","timeScale","trackVisible","visible"],U=["accelerationX","accelerationY","alpha","angle","bounce","color","delay","hold","lifespan","maxVelocityX","maxVelocityY","moveToX","moveToY","quantity","rotate","scaleX","scaleY","speedX","speedY","tint","x","y"],B=new u({Extends:o,Mixins:[p.AlphaSingle,p.BlendMode,p.Depth,p.Mask,p.Pipeline,p.PostPipeline,p.ScrollFactor,p.Texture,p.Transform,p.Visible,w],initialize:function(X,K,Z,J,Q){o.call(this,X,"ParticleEmitter"),this.particleClass=E,this.config=null,this.ops={accelerationX:new h("accelerationX",0),accelerationY:new h("accelerationY",0),alpha:new h("alpha",1),angle:new h("angle",{min:0,max:360},!0),bounce:new h("bounce",0),color:new s("color"),delay:new h("delay",0,!0),hold:new h("hold",0,!0),lifespan:new h("lifespan",1e3,!0),maxVelocityX:new h("maxVelocityX",1e4),maxVelocityY:new h("maxVelocityY",1e4),moveToX:new h("moveToX",0),moveToY:new h("moveToY",0),quantity:new h("quantity",1,!0),rotate:new h("rotate",0),scaleX:new h("scaleX",1),scaleY:new h("scaleY",1),speedX:new h("speedX",0,!0),speedY:new h("speedY",0,!0),tint:new h("tint",16777215),x:new h("x",0),y:new h("y",0)},this.radial=!0,this.gravityX=0,this.gravityY=0,this.acceleration=!1,this.moveTo=!1,this.emitCallback=null,this.emitCallbackScope=null,this.deathCallback=null,this.deathCallbackScope=null,this.maxParticles=0,this.maxAliveParticles=0,this.stopAfter=0,this.duration=0,this.frequency=0,this.emitting=!0,this.particleBringToTop=!0,this.timeScale=1,this.emitZones=[],this.deathZones=[],this.viewBounds=null,this.follow=null,this.followOffset=new V,this.trackVisible=!1,this.frames=[],this.randomFrame=!0,this.frameQuantity=1,this.anims=[],this.randomAnim=!0,this.animQuantity=1,this.dead=[],this.alive=[],this.counters=new Float32Array(10),this.skipping=!1,this.worldMatrix=new b,this.sortProperty="",this.sortOrderAsc=!0,this.sortCallback=this.depthSortCallback,this.processors=new x(this),this.tintFill=!1,this.initPipeline(),this.initPostPipeline(),this.setPosition(K,Z),this.setTexture(J),Q&&this.setConfig(Q)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},setConfig:function(I){if(!I)return this;this.config=I;var X=0,K="",Z=this.ops;for(X=0;X=this.animQuantity&&(this.animCounter=0,this.currentAnim=Y(this.currentAnim+1,0,X)),K},setAnim:function(I,X,K){X===void 0&&(X=!0),K===void 0&&(K=1),this.randomAnim=X,this.animQuantity=K,this.currentAnim=0;var Z=typeof I;if(this.anims.length=0,Array.isArray(I))this.anims=this.anims.concat(I);else if(Z==="string")this.anims.push(I);else if(Z==="object"){var J=I;I=l(J,"anims",null),I&&(this.anims=this.anims.concat(I));var Q=l(J,"cycle",!1);this.randomAnim=!Q,this.animQuantity=l(J,"quantity",K)}return this.anims.length===1&&(this.animQuantity=1,this.randomAnim=!1),this},setRadial:function(I){return I===void 0&&(I=!0),this.radial=I,this},addParticleBounds:function(I,X,K,Z,J,Q,$,j){if(typeof I=="object"){var k=I;I=k.x,X=k.y,K=m(k,"w")?k.w:k.width,Z=m(k,"h")?k.h:k.height}return this.addParticleProcessor(new P(I,X,K,Z,J,Q,$,j))},setParticleSpeed:function(I,X){return X===void 0&&(X=I),this.ops.speedX.onChange(I),I===X?this.ops.speedY.active=!1:this.ops.speedY.onChange(X),this.radial=!0,this},setParticleScale:function(I,X){return I===void 0&&(I=1),X===void 0&&(X=I),this.ops.scaleX.onChange(I),this.ops.scaleY.onChange(X),this},setParticleGravity:function(I,X){return this.gravityX=I,this.gravityY=X,this},setParticleAlpha:function(I){return this.ops.alpha.onChange(I),this},setParticleTint:function(I){return this.ops.tint.onChange(I),this},setEmitterAngle:function(I){return this.ops.angle.onChange(I),this},setParticleLifespan:function(I){return this.ops.lifespan.onChange(I),this},setQuantity:function(I){return this.quantity=I,this},setFrequency:function(I,X){return this.frequency=I,this.flowCounter=I>0?I:0,X&&(this.quantity=X),this},addDeathZone:function(I){Array.isArray(I)||(I=[I]);for(var X,K=[],Z=0;Z-1&&(this.zoneTotal++,this.zoneTotal===Z.total&&(this.zoneTotal=0,this.zoneIndex++,this.zoneIndex===K&&(this.zoneIndex=0)))}},getDeathZone:function(I){for(var X=this.deathZones,K=0;K=0&&(this.zoneIndex=X),this},addParticleProcessor:function(I){return this.processors.exists(I)||(I.emitter&&I.emitter.removeParticleProcessor(I),this.processors.add(I),I.emitter=this),I},removeParticleProcessor:function(I){return this.processors.exists(I)&&(this.processors.remove(I,!0),I.emitter=null),I},getProcessors:function(){return this.processors.getAll("active",!0)},createGravityWell:function(I){return this.addParticleProcessor(new d(I))},reserve:function(I){var X=this.dead;if(this.maxParticles>0){var K=this.getParticleCount();K+I>this.maxParticles&&(I=this.maxParticles-(K+I))}for(var Z=0;Z0&&this.getParticleCount()>=this.maxParticles?!0:this.maxAliveParticles>0&&this.getAliveParticleCount()>=this.maxAliveParticles},onParticleEmit:function(I,X){return I===void 0?(this.emitCallback=null,this.emitCallbackScope=null):typeof I=="function"&&(this.emitCallback=I,X&&(this.emitCallbackScope=X)),this},onParticleDeath:function(I,X){return I===void 0?(this.deathCallback=null,this.deathCallbackScope=null):typeof I=="function"&&(this.deathCallback=I,X&&(this.deathCallbackScope=X)),this},killAll:function(){for(var I=this.dead,X=this.alive;X.length>0;)I.push(X.pop());return this},forEachAlive:function(I,X){for(var K=this.alive,Z=K.length,J=0;J0&&this.fastForward(I),this.emitting=!0,this.resetCounters(this.frequency,!0),X!==void 0&&(this.duration=Math.abs(X)),this.emit(i.START,this)),this},stop:function(I){return I===void 0&&(I=!1),this.emitting&&(this.emitting=!1,I&&this.killAll(),this.emit(i.STOP,this)),this},pause:function(){return this.active=!1,this},resume:function(){return this.active=!0,this},setSortProperty:function(I,X){return I===void 0&&(I=""),X===void 0&&(X=this.true),this.sortProperty=I,this.sortOrderAsc=X,this.sortCallback=this.depthSortCallback,this},setSortCallback:function(I){return this.sortProperty!==""?I=this.depthSortCallback:I=null,this.sortCallback=I,this},depthSort:function(){return N(this.alive,this.sortCallback.bind(this)),this},depthSortCallback:function(I,X){var K=this.sortProperty;return this.sortOrderAsc?I[K]-X[K]:X[K]-I[K]},flow:function(I,X,K){return X===void 0&&(X=1),this.emitting=!1,this.frequency=I,this.quantity=X,K!==void 0&&(this.stopAfter=K),this.start()},explode:function(I,X,K){this.frequency=-1,this.resetCounters(-1,!0);var Z=this.emitParticle(I,X,K);return this.emit(i.EXPLODE,this,Z),Z},emitParticleAt:function(I,X,K){return this.emitParticle(K,I,X)},emitParticle:function(I,X,K){if(!this.atLimit()){I===void 0&&(I=this.ops.quantity.onEmit());for(var Z=this.dead,J=this.stopAfter,Q=this.follow?this.follow.x+this.followOffset.x:X,$=this.follow?this.follow.y+this.followOffset.y:K,j=0;j0&&(this.stopCounter++,this.stopCounter>=J)||this.atLimit())break}return k}},fastForward:function(I,X){X===void 0&&(X=1e3/60);var K=0;for(this.skipping=!0;K0){var tt=this.deathCallback,_=this.deathCallbackScope;for($=k-1;$>=0;$--){var it=j[$];J.splice(it.index,1),Q.push(it.particle),tt&&tt.call(_,it.particle),it.particle.setPosition()}}if(!this.emitting&&!this.skipping){this.completeFlag===1&&J.length===0&&(this.completeFlag=0,this.emit(i.COMPLETE,this));return}if(this.frequency===0)this.emitParticle();else if(this.frequency>0)for(this.flowCounter-=X;this.flowCounter<=0;)this.emitParticle(),this.flowCounter+=this.frequency;this.skipping||(this.duration>0&&(this.elapsed+=X,this.elapsed>=this.duration&&this.stop()),this.stopAfter>0&&this.stopCounter>=this.stopAfter&&this.stop())},overlap:function(I){for(var X=this.getWorldTransformMatrix(),K=this.alive,Z=K.length,J=[],Q=0;Q0){var q=0;for(this.skipping=!0;q0&&g(Z,I,I),Z},createEmitter:function(){throw new Error("createEmitter removed. See ParticleEmitter docs for info")},particleX:{get:function(){return this.ops.x.current},set:function(I){this.ops.x.onChange(I)}},particleY:{get:function(){return this.ops.y.current},set:function(I){this.ops.y.onChange(I)}},accelerationX:{get:function(){return this.ops.accelerationX.current},set:function(I){this.ops.accelerationX.onChange(I)}},accelerationY:{get:function(){return this.ops.accelerationY.current},set:function(I){this.ops.accelerationY.onChange(I)}},maxVelocityX:{get:function(){return this.ops.maxVelocityX.current},set:function(I){this.ops.maxVelocityX.onChange(I)}},maxVelocityY:{get:function(){return this.ops.maxVelocityY.current},set:function(I){this.ops.maxVelocityY.onChange(I)}},speed:{get:function(){return this.ops.speedX.current},set:function(I){this.ops.speedX.onChange(I),this.ops.speedY.onChange(I)}},speedX:{get:function(){return this.ops.speedX.current},set:function(I){this.ops.speedX.onChange(I)}},speedY:{get:function(){return this.ops.speedY.current},set:function(I){this.ops.speedY.onChange(I)}},moveToX:{get:function(){return this.ops.moveToX.current},set:function(I){this.ops.moveToX.onChange(I)}},moveToY:{get:function(){return this.ops.moveToY.current},set:function(I){this.ops.moveToY.onChange(I)}},bounce:{get:function(){return this.ops.bounce.current},set:function(I){this.ops.bounce.onChange(I)}},particleScaleX:{get:function(){return this.ops.scaleX.current},set:function(I){this.ops.scaleX.onChange(I)}},particleScaleY:{get:function(){return this.ops.scaleY.current},set:function(I){this.ops.scaleY.onChange(I)}},particleColor:{get:function(){return this.ops.color.current},set:function(I){this.ops.color.onChange(I)}},colorEase:{get:function(){return this.ops.color.easeName},set:function(I){this.ops.color.setEase(I)}},particleTint:{get:function(){return this.ops.tint.current},set:function(I){this.ops.tint.onChange(I)}},particleAlpha:{get:function(){return this.ops.alpha.current},set:function(I){this.ops.alpha.onChange(I)}},lifespan:{get:function(){return this.ops.lifespan.current},set:function(I){this.ops.lifespan.onChange(I)}},particleAngle:{get:function(){return this.ops.angle.current},set:function(I){this.ops.angle.onChange(I)}},particleRotate:{get:function(){return this.ops.rotate.current},set:function(I){this.ops.rotate.onChange(I)}},quantity:{get:function(){return this.ops.quantity.current},set:function(I){this.ops.quantity.onChange(I)}},delay:{get:function(){return this.ops.delay.current},set:function(I){this.ops.delay.onChange(I)}},hold:{get:function(){return this.ops.hold.current},set:function(I){this.ops.hold.onChange(I)}},flowCounter:{get:function(){return this.counters[0]},set:function(I){this.counters[0]=I}},frameCounter:{get:function(){return this.counters[1]},set:function(I){this.counters[1]=I}},animCounter:{get:function(){return this.counters[2]},set:function(I){this.counters[2]=I}},elapsed:{get:function(){return this.counters[3]},set:function(I){this.counters[3]=I}},stopCounter:{get:function(){return this.counters[4]},set:function(I){this.counters[4]=I}},completeFlag:{get:function(){return this.counters[5]},set:function(I){this.counters[5]=I}},zoneIndex:{get:function(){return this.counters[6]},set:function(I){this.counters[6]=I}},zoneTotal:{get:function(){return this.counters[7]},set:function(I){this.counters[7]=I}},currentFrame:{get:function(){return this.counters[8]},set:function(I){this.counters[8]=I}},currentAnim:{get:function(){return this.counters[9]},set:function(I){this.counters[9]=I}},preDestroy:function(){this.texture=null,this.frames=null,this.anims=null,this.emitCallback=null,this.emitCallbackScope=null,this.deathCallback=null,this.deathCallbackScope=null,this.emitZones=null,this.deathZones=null,this.bounds=null,this.follow=null,this.counters=null;var I,X=this.ops;for(I=0;I{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(59996),p=t(61340),a=new p,r=new p,n=new p,e=new p,s=function(h,i,o,l){var f=a,d=r,v=n,m=e;l?(m.loadIdentity(),m.multiply(l),m.translate(i.x,i.y),m.rotate(i.rotation),m.scale(i.scaleX,i.scaleY)):m.applyITRS(i.x,i.y,i.rotation,i.scaleX,i.scaleY);var g=h.currentContext,x=o.roundPixels,S=o.alpha,C=i.alpha,E=i.alive,P=E.length,R=i.viewBounds;if(!(!i.visible||P===0||R&&!u(R,o.worldView))){i.sortCallback&&i.depthSort(),o.addToRenderList(i);var M=i.scrollFactorX,A=i.scrollFactorY;g.save(),g.globalCompositeOperation=h.blendModes[i.blendMode];for(var L=0;L0&&V.height>0){var Y=-b.halfWidth,G=-b.halfHeight;g.globalAlpha=N,g.save(),d.setToContext(g),x&&(Y=Math.round(Y),G=Math.round(G)),g.imageSmoothingEnabled=!b.source.scaleMode,g.drawImage(b.source.image,V.x,V.y,V.width,V.height,Y,G,V.width,V.height),g.restore()}}}g.restore()}};c.exports=s},92730:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(25305),p=t(44603),a=t(23568),r=t(95540),n=t(31600);p.register("particles",function(e,s){e===void 0&&(e={});var h=a(e,"key",null),i=r(e,"config",null),o=new n(this.scene,0,0,h);return s!==void 0&&(e.add=s),u(this.scene,o,e),i&&o.setConfig(i),o})},676:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(39429),p=t(31600);u.register("particles",function(a,r,n,e){return a!==void 0&&typeof a=="string"&&console.warn("ParticleEmitterManager was removed in Phaser 3.60. See documentation for details"),this.displayList.add(new p(this.scene,a,r,n,e))})},90668:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(29747),p=u,a=u;p=t(21188),a=t(9871),c.exports={renderWebGL:p,renderCanvas:a}},21188:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(59996),p=t(61340),a=t(70554),r=new p,n=new p,e=new p,s=new p,h=function(i,o,l,f){var d=i.pipelines.set(o.pipeline),v=r,m=n,g=e,x=s;f?(x.loadIdentity(),x.multiply(f),x.translate(o.x,o.y),x.rotate(o.rotation),x.scale(o.scaleX,o.scaleY)):x.applyITRS(o.x,o.y,o.rotation,o.scaleX,o.scaleY);var S=a.getTintAppendFloatAlpha,C=l.alpha,E=o.alpha;i.pipelines.preBatch(o);var P=o.alive,R=P.length,M=o.viewBounds;if(!(R===0||M&&!u(M,l.worldView))){o.sortCallback&&o.depthSort(),l.addToRenderList(o),v.copyFrom(l.matrix),v.multiplyWithOffset(x,-l.scrollX*o.scrollFactorX,-l.scrollY*o.scrollFactorY),i.setBlendMode(o.blendMode),o.mask&&(o.mask.preRenderWebGL(i,o,l),i.pipelines.set(o.pipeline));for(var A=o.tintFill,L,w,N=0;N{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=new u({initialize:function(r,n,e){r===void 0&&(r=0),n===void 0&&(n=0),e===void 0&&(e=!0),this.emitter,this.x=r,this.y=n,this.active=e},update:function(){},destroy:function(){this.emitter=null}});c.exports=p},9774:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="complete"},812:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="deathzone"},30522:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="explode"},96695:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="start"},18677:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="stop"},20696:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={COMPLETE:t(9774),DEATH_ZONE:t(812),EXPLODE:t(30522),START:t(96695),STOP:t(18677)}},18404:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={EmitterColorOp:t(76472),EmitterOp:t(44777),Events:t(20696),GravityWell:t(24502),Particle:t(56480),ParticleBounds:t(69601),ParticleEmitter:t(31600),ParticleProcessor:t(20286),Zones:t(21024)}},26388:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=new u({initialize:function(r,n){this.source=r,this.killOnEnter=n},willKill:function(a){var r=this.source.contains(a.x,a.y);return r&&this.killOnEnter||!r&&!this.killOnEnter}});c.exports=p},19909:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=new u({initialize:function(r,n,e,s,h,i){s===void 0&&(s=!1),h===void 0&&(h=!0),i===void 0&&(i=-1),this.source=r,this.points=[],this.quantity=n,this.stepRate=e,this.yoyo=s,this.counter=-1,this.seamless=h,this._length=0,this._direction=0,this.total=i,this.updateSource()},updateSource:function(){if(this.points=this.source.getPoints(this.quantity,this.stepRate),this.seamless){var a=this.points[0],r=this.points[this.points.length-1];a.x===r.x&&a.y===r.y&&this.points.pop()}var n=this._length;return this._length=this.points.length,this._lengththis._length&&(this.counter=this._length-1),this},changeSource:function(a){return this.source=a,this.updateSource()},getPoint:function(a){this._direction===0?(this.counter++,this.counter>=this._length&&(this.yoyo?(this._direction=1,this.counter=this._length-1):this.counter=0)):(this.counter--,this.counter===-1&&(this.yoyo?(this._direction=0,this.counter=0):this.counter=this._length-1));var r=this.points[this.counter];r&&(a.x=r.x,a.y=r.y)}});c.exports=p},68875:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(26099),a=new u({initialize:function(n){this.source=n,this._tempVec=new p,this.total=-1},getPoint:function(r){var n=this._tempVec;this.source.getRandomPoint(n),r.x=n.x,r.y=n.y}});c.exports=a},21024:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={DeathZone:t(26388),EdgeZone:t(19909),RandomZone:t(68875)}},1159:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(31401),a=t(68287),r=new u({Extends:a,Mixins:[p.PathFollower],initialize:function(e,s,h,i,o,l){a.call(this,e,h,i,o,l),this.path=s},preUpdate:function(n,e){this.anims.update(n,e),this.pathUpdate(n)}});c.exports=r},90145:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(39429),p=t(1159);u.register("follower",function(a,r,n,e,s){var h=new p(this.scene,a,r,n,e,s);return this.displayList.add(h),this.updateList.add(h),h})},33663:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(9674),p=t(83419),a=t(48803),r=t(90664),n=t(4703),e=t(45650),s=new p({Extends:n,initialize:function(i,o,l,f,d,v,m,g){f||(f="__DEFAULT"),n.call(this,i,o,l,f,d),this.type="Plane",this.anims=new u(this),this.gridWidth,this.gridHeight,this.isTiled,this._checkerboard=null,this.hideCCW=!1,this.setGridSize(v,m,g),this.setSizeToFrame(!1),this.setViewHeight()},originX:{get:function(){return .5}},originY:{get:function(){return .5}},setGridSize:function(h,i,o){h===void 0&&(h=8),i===void 0&&(i=8),o===void 0&&(o=!1);var l=!1;return o&&(l=!0),this.gridWidth=h,this.gridHeight=i,this.isTiled=o,this.clear(),a({mesh:this,widthSegments:h,heightSegments:i,isOrtho:!1,tile:o,flipY:l}),this},setSizeToFrame:function(h){h===void 0&&(h=!0);var i=this.frame;if(this.setPerspective(this.width/i.width,this.height/i.height),this._checkerboard&&this._checkerboard!==this.texture&&this.removeCheckerboard(),!h)return this;var o=this.gridWidth,l=this.gridHeight,f=this.vertices,d=i.u0,v=i.u1,m=i.v0,g=i.v1,x,S,C=0;if(this.isTiled)for(m=i.v1,g=i.v0,S=0;S7&&x>7?m.push(d.r,d.g,d.b,o):m.push(v.r,v.g,v.b,l);var S=this.scene.sys.textures.addUint8Array(e(),new Uint8Array(m),16,16);return this.removeCheckerboard(),this.setTexture(S),this.setSizeToFrame(),this.setViewHeight(f),this},removeCheckerboard:function(){this._checkerboard&&(this._checkerboard.destroy(),this._checkerboard=null)},play:function(h,i){return this.anims.play(h,i)},playReverse:function(h,i){return this.anims.playReverse(h,i)},playAfterDelay:function(h,i){return this.anims.playAfterDelay(h,i)},playAfterRepeat:function(h,i){return this.anims.playAfterRepeat(h,i)},stop:function(){return this.anims.stop()},stopAfterDelay:function(h){return this.anims.stopAfterDelay(h)},stopAfterRepeat:function(h){return this.anims.stopAfterRepeat(h)},stopOnFrame:function(h){return this.anims.stopOnFrame(h)},preUpdate:function(h,i){n.prototype.preUpdate.call(this,h,i),this.anims.update(h,i)},preDestroy:function(){this.clear(),this.removeCheckerboard(),this.anims.destroy(),this.anims=void 0,this.debugCallback=null,this.debugGraphic=null}});c.exports=s},56015:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(25305),p=t(13059),a=t(44603),r=t(23568),n=t(35154),e=t(33663);a.register("plane",function(s,h){s===void 0&&(s={});var i=r(s,"key",null),o=r(s,"frame",null),l=n(s,"width",8),f=n(s,"height",8),d=n(s,"tile",!1),v=new e(this.scene,0,0,i,o,l,f,d);h!==void 0&&(s.add=h);var m=n(s,"checkerboard",null);if(m){var g=n(m,"color1",16777215),x=n(m,"color2",255),S=n(m,"alpha1",255),C=n(m,"alpha2",255),E=n(m,"height",128);v.createCheckerboard(g,x,S,C,E)}return u(this.scene,v,s),p(v,s),v})},30985:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(33663),p=t(39429);p.register("plane",function(a,r,n,e,s,h,i){return this.displayList.add(new u(this.scene,a,r,n,e,s,h,i))})},80321:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(31401),a=t(95643),r=t(30100),n=t(36060),e=t(67277),s=new u({Extends:a,Mixins:[p.AlphaSingle,p.BlendMode,p.Depth,p.Mask,p.Pipeline,p.PostPipeline,p.ScrollFactor,p.Transform,p.Visible,e],initialize:function(i,o,l,f,d,v,m){f===void 0&&(f=16777215),d===void 0&&(d=128),v===void 0&&(v=1),m===void 0&&(m=.1),a.call(this,i,"PointLight"),this.initPipeline(n.POINTLIGHT_PIPELINE),this.initPostPipeline(),this.setPosition(o,l),this.color=r(f),this.intensity=v,this.attenuation=m,this.width=d*2,this.height=d*2,this._radius=d},radius:{get:function(){return this._radius},set:function(h){this._radius=h,this.width=h*2,this.height=h*2}},originX:{get:function(){return .5}},originY:{get:function(){return .5}},displayOriginX:{get:function(){return this._radius}},displayOriginY:{get:function(){return this._radius}}});c.exports=s},39829:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(25305),p=t(44603),a=t(23568),r=t(80321);p.register("pointlight",function(n,e){n===void 0&&(n={});var s=a(n,"color",16777215),h=a(n,"radius",128),i=a(n,"intensity",1),o=a(n,"attenuation",.1),l=new r(this.scene,0,0,s,h,i,o);return e!==void 0&&(n.add=e),u(this.scene,l,n),l})},71255:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(39429),p=t(80321);u.register("pointlight",function(a,r,n,e,s,h){return this.displayList.add(new p(this.scene,a,r,n,e,s,h))})},67277:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(29747),p=u,a=u;p=t(57787),c.exports={renderWebGL:p,renderCanvas:a}},57787:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(91296),p=function(a,r,n,e){n.addToRenderList(r);var s=a.pipelines.set(r.pipeline),h=u(r,n,e).calc,i=r.width,o=r.height,l=-r._radius,f=-r._radius,d=l+i,v=f+o,m=h.getX(0,0),g=h.getY(0,0),x=h.getX(l,f),S=h.getY(l,f),C=h.getX(l,v),E=h.getY(l,v),P=h.getX(d,v),R=h.getY(d,v),M=h.getX(d,f),A=h.getY(d,f);a.pipelines.preBatch(r),s.batchPointLight(r,n,x,S,C,E,P,R,M,A,m,g),a.pipelines.postBatch(r)};c.exports=p},591:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(81320),a=t(88571),r=new u({Extends:a,initialize:function(e,s,h,i,o){s===void 0&&(s=0),h===void 0&&(h=0),i===void 0&&(i=32),o===void 0&&(o=32);var l=new p(e.sys.textures,"",i,o);a.call(this,e,s,h,l),this.type="RenderTexture",this.camera=this.texture.camera,this._saved=!1},setSize:function(n,e){this.width=n,this.height=e,this.texture.setSize(n,e),this.updateDisplayOrigin();var s=this.input;return s&&!s.customHitArea&&(s.hitArea.width=n,s.hitArea.height=e),this},resize:function(n,e){return this.setSize(n,e),this},saveTexture:function(n){var e=this.texture;return e.key=n,e.manager.addDynamicTexture(e)&&(this._saved=!0),e},fill:function(n,e,s,h,i,o){return this.texture.fill(n,e,s,h,i,o),this},clear:function(){return this.texture.clear(),this},stamp:function(n,e,s,h,i){return this.texture.stamp(n,e,s,h,i),this},erase:function(n,e,s){return this.texture.erase(n,e,s),this},draw:function(n,e,s,h,i){return this.texture.draw(n,e,s,h,i),this},drawFrame:function(n,e,s,h,i,o){return this.texture.drawFrame(n,e,s,h,i,o),this},repeat:function(n,e,s,h,i,o,l,f,d){return this.texture.repeat(n,e,s,h,i,o,l,f,d),this},beginDraw:function(){return this.texture.beginDraw(),this},batchDraw:function(n,e,s,h,i){return this.texture.batchDraw(n,e,s,h,i),this},batchDrawFrame:function(n,e,s,h,i,o){return this.texture.batchDrawFrame(n,e,s,h,i,o),this},endDraw:function(n){return this.texture.endDraw(n),this},snapshotArea:function(n,e,s,h,i,o,l){return this.texture.snapshotArea(n,e,s,h,i,o,l),this},snapshot:function(n,e,s){return this.snapshotArea(0,0,this.width,this.height,n,e,s)},snapshotPixel:function(n,e,s){return this.snapshotArea(n,e,1,1,s,"pixel")},preDestroy:function(){this.camera=null,this._saved||this.texture.destroy()}});c.exports=r},34495:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(25305),p=t(44603),a=t(23568),r=t(591);p.register("renderTexture",function(n,e){n===void 0&&(n={});var s=a(n,"x",0),h=a(n,"y",0),i=a(n,"width",32),o=a(n,"height",32),l=new r(this.scene,s,h,i,o);return e!==void 0&&(n.add=e),u(this.scene,l,n),l})},60505:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(39429),p=t(591);u.register("renderTexture",function(a,r,n,e){return this.displayList.add(new p(this.scene,a,r,n,e))})},77757:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(9674),p=t(83419),a=t(31401),r=t(95643),n=t(36060),e=t(38745),s=t(26099),h=new p({Extends:r,Mixins:[a.AlphaSingle,a.BlendMode,a.Depth,a.Flip,a.Mask,a.Pipeline,a.PostPipeline,a.Size,a.Texture,a.Transform,a.Visible,a.ScrollFactor,e],initialize:function(o,l,f,d,v,m,g,x,S){d===void 0&&(d="__DEFAULT"),m===void 0&&(m=2),g===void 0&&(g=!0),r.call(this,o,"Rope"),this.anims=new u(this),this.points=m,this.vertices,this.uv,this.colors,this.alphas,this.tintFill=d==="__DEFAULT",this.dirty=!1,this.horizontal=g,this._flipX=!1,this._flipY=!1,this._perp=new s,this.debugCallback=null,this.debugGraphic=null,this.setTexture(d,v),this.setPosition(l,f),this.setSizeToFrame(),this.initPipeline(n.ROPE_PIPELINE),this.initPostPipeline(),Array.isArray(m)&&this.resizeArrays(m.length),this.setPoints(m,x,S),this.updateVertices()},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},preUpdate:function(i,o){var l=this.anims.currentFrame;this.anims.update(i,o),this.anims.currentFrame!==l&&(this.updateUVs(),this.updateVertices())},play:function(i,o,l){return this.anims.play(i,o,l),this},setDirty:function(){return this.dirty=!0,this},setHorizontal:function(i,o,l){return i===void 0&&(i=this.points.length),this.horizontal?this:(this.horizontal=!0,this.setPoints(i,o,l))},setVertical:function(i,o,l){return i===void 0&&(i=this.points.length),this.horizontal?(this.horizontal=!1,this.setPoints(i,o,l)):this},setTintFill:function(i){return i===void 0&&(i=!1),this.tintFill=i,this},setAlphas:function(i,o){var l=this.points.length;if(l<1)return this;var f=this.alphas;i===void 0?i=[1]:!Array.isArray(i)&&o===void 0&&(i=[i]);var d,v=0;if(o!==void 0)for(d=0;dv&&(m=i[v]),f[v]=m,i.length>v+1&&(m=i[v+1]),f[v+1]=m}return this},setColors:function(i){var o=this.points.length;if(o<1)return this;var l=this.colors;i===void 0?i=[16777215]:Array.isArray(i)||(i=[i]);var f,d=0;if(i.length===o)for(f=0;fd&&(v=i[d]),l[d]=v,i.length>d+1&&(v=i[d+1]),l[d+1]=v}return this},setPoints:function(i,o,l){if(i===void 0&&(i=2),typeof i=="number"){var f=i;f<2&&(f=2),i=[];var d,v,m;if(this.horizontal)for(m=-this.frame.halfWidth,v=this.frame.width/(f-1),d=0;d{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(){};c.exports=y},26209:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(25305),p=t(44603),a=t(23568),r=t(35154),n=t(77757);p.register("rope",function(e,s){e===void 0&&(e={});var h=a(e,"key",null),i=a(e,"frame",null),o=a(e,"horizontal",!0),l=r(e,"points",void 0),f=r(e,"colors",void 0),d=r(e,"alphas",void 0),v=new n(this.scene,0,0,h,i,l,o,f,d);return s!==void 0&&(e.add=s),u(this.scene,v,e),v})},96819:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(77757),p=t(39429);p.register("rope",function(a,r,n,e,s,h,i,o){return this.displayList.add(new u(this.scene,a,r,n,e,s,h,i,o))})},38745:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(29747),p=u,a=u;p=t(20439),a=t(95262),c.exports={renderWebGL:p,renderCanvas:a}},20439:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(91296),p=t(70554),a=function(r,n,e,s){e.addToRenderList(n);var h=r.pipelines.set(n.pipeline,n),i=u(n,e,s).calc,o=n.vertices,l=n.uv,f=n.colors,d=n.alphas,v=n.alpha,m=p.getTintAppendFloatAlpha,g=e.roundPixels,x=o.length,S=Math.floor(x*.5);h.flush(),r.pipelines.preBatch(n);var C=h.setGameObject(n),E=h.vertexViewF32,P=h.vertexViewU32,R=h.vertexCount*h.currentShader.vertexComponentCount-1,M=0,A=n.tintFill;n.dirty&&n.updateVertices();for(var L=n.debugCallback,w=[],N=0;N{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(31401),a=t(95643),r=t(95540),n=t(79291),e=t(61622),s=t(25479),h=t(61340),i=t(95428),o=t(92503),l=new u({Extends:a,Mixins:[p.ComputedSize,p.Depth,p.GetBounds,p.Mask,p.Origin,p.ScrollFactor,p.Transform,p.Visible,s],initialize:function(d,v,m,g,x,S,C,E){m===void 0&&(m=0),g===void 0&&(g=0),x===void 0&&(x=128),S===void 0&&(S=128),a.call(this,d,"Shader"),this.blendMode=-1,this.shader;var P=d.sys.renderer;this.renderer=P,this.gl=P.gl,this.vertexData=new ArrayBuffer(6*(Float32Array.BYTES_PER_ELEMENT*2)),this.vertexBuffer=P.createVertexBuffer(this.vertexData.byteLength,this.gl.STREAM_DRAW),this._deferSetShader=null,this._deferProjOrtho=null,this.program=null,this.bytes=new Uint8Array(this.vertexData),this.vertexViewF32=new Float32Array(this.vertexData),this._tempMatrix1=new h,this._tempMatrix2=new h,this._tempMatrix3=new h,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.uniforms={},this.pointer=null,this._rendererWidth=P.width,this._rendererHeight=P.height,this._textureCount=0,this.framebuffer=null,this.glTexture=null,this.renderToTexture=!1,this.texture=null,this.setPosition(m,g),this.setSize(x,S),this.setOrigin(.5,.5),this.setShader(v,C,E),this.renderer.on(o.RESTORE_WEBGL,this.onContextRestored,this)},willRender:function(f){return this.renderToTexture?!0:!(a.RENDER_MASK!==this.renderFlags||this.cameraFilter!==0&&this.cameraFilter&f.id)},setRenderToTexture:function(f,d){if(!this.renderToTexture){var v=this.width,m=this.height,g=this.renderer;this.glTexture=g.createTextureFromSource(null,v,m,0),this.framebuffer=g.createFramebuffer(v,m,this.glTexture,!1),this._rendererWidth=v,this._rendererHeight=m,this.renderToTexture=!0,this.projOrtho(0,this.width,this.height,0),f&&(this.texture=this.scene.sys.textures.addGLTexture(f,this.glTexture))}return this.shader&&(g.pipelines.clear(),this.load(),this.flush(),g.pipelines.rebind()),this},setShader:function(f,d,v){if(this.renderer.contextLost)return this._deferSetShader={key:f,textures:d,textureData:v},this;if(d===void 0&&(d=[]),typeof f=="string"){var m=this.scene.sys.cache.shader;if(!m.has(f))return console.warn("Shader missing: "+f),this;this.shader=m.get(f)}else this.shader=f;var g=this.gl,x=this.renderer;this.program&&x.deleteProgram(this.program);var S=x.createProgram(this.shader.vertexSrc,this.shader.fragmentSrc);g.uniformMatrix4fv(g.getUniformLocation(S.webGLProgram,"uViewMatrix"),!1,this.viewMatrix),g.uniformMatrix4fv(g.getUniformLocation(S.webGLProgram,"uProjectionMatrix"),!1,this.projectionMatrix),g.uniform2f(g.getUniformLocation(S.webGLProgram,"uResolution"),this.width,this.height),this.program=S;var C=new Date,E={resolution:{type:"2f",value:{x:this.width,y:this.height}},time:{type:"1f",value:0},mouse:{type:"2f",value:{x:this.width/2,y:this.height/2}},date:{type:"4fv",value:[C.getFullYear(),C.getMonth(),C.getDate(),C.getHours()*60*60+C.getMinutes()*60+C.getSeconds()]},sampleRate:{type:"1f",value:44100},iChannel0:{type:"sampler2D",value:null,textureData:{repeat:!0}},iChannel1:{type:"sampler2D",value:null,textureData:{repeat:!0}},iChannel2:{type:"sampler2D",value:null,textureData:{repeat:!0}},iChannel3:{type:"sampler2D",value:null,textureData:{repeat:!0}}};this.shader.uniforms?this.uniforms=n(!0,{},this.shader.uniforms,E):this.uniforms=E;for(var P=0;P<4;P++)d[P]&&this.setSampler2D("iChannel"+P,d[P],P,v);return this.initUniforms(),this.projOrtho(0,this._rendererWidth,this._rendererHeight,0),this},setPointer:function(f){return this.pointer=f,this},projOrtho:function(f,d,v,m){if(this.renderer.contextLost){this._deferProjOrtho={left:f,right:d,bottom:v,top:m};return}var g=-1e3,x=1e3,S=1/(f-d),C=1/(v-m),E=1/(g-x),P=this.projectionMatrix;P[0]=-2*S,P[5]=-2*C,P[10]=2*E,P[12]=(f+d)*S,P[13]=(m+v)*C,P[14]=(x+g)*E;var R=this.program,M=this.gl,A=this.renderer;A.setProgram(R),M.uniformMatrix4fv(M.getUniformLocation(R.webGLProgram,"uProjectionMatrix"),!1,this.projectionMatrix),this._rendererWidth=d,this._rendererHeight=v},initUniforms:function(){var f=this.renderer.glFuncMap,d=this.program;this._textureCount=0;for(var v in this.uniforms){var m=this.uniforms[v],g=m.type,x=f[g];m.uniformLocation=this.renderer.createUniformLocation(d,v),g!=="sampler2D"&&(m.glMatrix=x.matrix,m.glValueLength=x.length,m.glFunc=x.func)}},setSampler2DBuffer:function(f,d,v,m,g,x){g===void 0&&(g=0),x===void 0&&(x={});var S=this.uniforms[f];return S.value=d,x.width=v,x.height=m,S.textureData=x,this._textureCount=g,this.initSampler2D(S),this},setSampler2D:function(f,d,v,m){v===void 0&&(v=0);var g=this.scene.sys.textures;if(g.exists(d)){var x=g.getFrame(d);if(x.glTexture&&x.glTexture.isRenderTexture)return this.setSampler2DBuffer(f,x.glTexture,x.width,x.height,v,m);var S=this.uniforms[f],C=x.source;S.textureKey=d,S.source=C.image,S.value=x.glTexture,C.isGLTexture&&(m||(m={}),m.width=C.width,m.height=C.height),m&&(S.textureData=m),this._textureCount=v,this.initSampler2D(S)}return this},setUniform:function(f,d){return e(this.uniforms,f,d),this},getUniform:function(f){return r(this.uniforms,f,null)},setChannel0:function(f,d){return this.setSampler2D("iChannel0",f,0,d)},setChannel1:function(f,d){return this.setSampler2D("iChannel1",f,1,d)},setChannel2:function(f,d){return this.setSampler2D("iChannel2",f,2,d)},setChannel3:function(f,d){return this.setSampler2D("iChannel3",f,3,d)},initSampler2D:function(f){if(f.value){var d=f.textureData;if(d&&!f.value.isRenderTexture){var v=this.gl,m=f.value,g=v[r(d,"magFilter","linear").toUpperCase()],x=v[r(d,"minFilter","linear").toUpperCase()],S=v[r(d,"wrapS","repeat").toUpperCase()],C=v[r(d,"wrapT","repeat").toUpperCase()],E=v[r(d,"format","rgba").toUpperCase()],P=r(d,"flipY",!1),R=r(d,"width",m.width),M=r(d,"height",m.height),A=r(d,"source",m.pixels);d.repeat&&(S=v.REPEAT,C=v.REPEAT),d.width&&(A=null),m.update(A,R,M,P,S,C,x,g,E)}this.renderer.setProgram(this.program),this._textureCount++}},syncUniforms:function(){var f=this.gl,d=this.uniforms,v,m,g,x,S,C=0;for(var E in d)v=d[E],g=v.glFunc,m=v.glValueLength,x=v.uniformLocation,S=v.value,S!==null&&(m===1?v.glMatrix?g.call(f,x.webGLUniformLocation,v.transpose,S):g.call(f,x.webGLUniformLocation,S):m===2?g.call(f,x.webGLUniformLocation,S.x,S.y):m===3?g.call(f,x.webGLUniformLocation,S.x,S.y,S.z):m===4?g.call(f,x.webGLUniformLocation,S.x,S.y,S.z,S.w):v.type==="sampler2D"&&(f.activeTexture(f.TEXTURE0+C),f.bindTexture(f.TEXTURE_2D,S.webGLTexture),f.uniform1i(x.webGLUniformLocation,C),C++))},load:function(f){var d=this.gl,v=this.width,m=this.height,g=this.renderer,x=this.program,S=this.viewMatrix;if(!this.renderToTexture){var C=-this._displayOriginX,E=-this._displayOriginY;S[0]=f[0],S[1]=f[1],S[4]=f[2],S[5]=f[3],S[8]=f[4],S[9]=f[5],S[12]=S[0]*C+S[4]*E,S[13]=S[1]*C+S[5]*E}d.useProgram(x.webGLProgram),d.uniformMatrix4fv(d.getUniformLocation(x.webGLProgram,"uViewMatrix"),!1,S),d.uniformMatrix4fv(d.getUniformLocation(x.webGLProgram,"uProjectionMatrix"),!1,this.projectionMatrix),d.uniform2f(d.getUniformLocation(x.webGLProgram,"uResolution"),this.width,this.height);var P=this.uniforms,R=P.resolution;R.value.x=v,R.value.y=m,P.time.value=g.game.loop.getDuration();var M=this.pointer;if(M){var A=P.mouse,L=M.x/v,w=1-M.y/m;A.value.x=L.toFixed(2),A.value.y=w.toFixed(2)}this.syncUniforms()},flush:function(){var f=this.width,d=this.height,v=this.program,m=this.gl,g=this.vertexBuffer,x=this.renderer,S=Float32Array.BYTES_PER_ELEMENT*2;this.renderToTexture&&(x.setFramebuffer(this.framebuffer),m.clearColor(0,0,0,0),m.clear(m.COLOR_BUFFER_BIT)),m.bindBuffer(m.ARRAY_BUFFER,g.webGLBuffer);var C=m.getAttribLocation(v.webGLProgram,"inPosition");C!==-1&&(m.enableVertexAttribArray(C),m.vertexAttribPointer(C,2,m.FLOAT,!1,S,0));var E=this.vertexViewF32;E[3]=d,E[4]=f,E[5]=d,E[8]=f,E[9]=d,E[10]=f;var P=6;m.bufferSubData(m.ARRAY_BUFFER,0,this.bytes.subarray(0,P*S)),m.drawArrays(m.TRIANGLES,0,P),this.renderToTexture&&x.setFramebuffer(null,!1)},setAlpha:function(){},setBlendMode:function(){},onContextRestored:function(){if(this._deferSetShader!==null){var f=this._deferSetShader.key,d=this._deferSetShader.textures,v=this._deferSetShader.textureData;this._deferSetShader=null,this.setShader(f,d,v)}if(this._deferProjOrtho!==null){var m=this._deferProjOrtho.left,g=this._deferProjOrtho.right,x=this._deferProjOrtho.bottom,S=this._deferProjOrtho.top;this._deferProjOrtho=null,this.projOrtho(m,g,x,S)}},preDestroy:function(){var f=this.renderer;f.off(o.RESTORE_WEBGL,this.onContextRestored,this),f.deleteProgram(this.program),f.deleteBuffer(this.vertexBuffer),this.renderToTexture&&(f.deleteFramebuffer(this.framebuffer),this.texture.destroy(),this.framebuffer=null,this.glTexture=null,this.texture=null),i(this.uniforms,function(d){f.deleteUniformLocation(d.uniformLocation),d.uniformLocation=null})}});c.exports=l},80464:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(){};c.exports=y},54935:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(25305),p=t(44603),a=t(23568),r=t(20071);p.register("shader",function(n,e){n===void 0&&(n={});var s=a(n,"key",null),h=a(n,"x",0),i=a(n,"y",0),o=a(n,"width",128),l=a(n,"height",128),f=new r(this.scene,s,h,i,o,l);return e!==void 0&&(n.add=e),u(this.scene,f,n),f})},74177:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(20071),p=t(39429);p.register("shader",function(a,r,n,e,s,h,i){return this.displayList.add(new u(this.scene,a,r,n,e,s,h,i))})},25479:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(29747),p=u,a=u;p=t(19257),a=t(80464),c.exports={renderWebGL:p,renderCanvas:a}},19257:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(91296),p=function(a,r,n,e){if(r.shader){if(n.addToRenderList(r),a.pipelines.clear(),r.renderToTexture)r.load(),r.flush();else{var s=u(r,n,e).calc;(a.width!==r._rendererWidth||a.height!==r._rendererHeight)&&r.projOrtho(0,a.width,a.height,0),r.load(s.matrix),r.flush()}a.pipelines.rebind()}};c.exports=p},10441:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(70554),p=function(a,r,n,e,s,h){for(var i=u.getTintAppendFloatAlpha(n.fillColor,n.fillAlpha*e),o=n.pathData,l=n.pathIndexes,f=0;f{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){var r=p||u.fillColor,n=a||u.fillAlpha,e=(r&16711680)>>>16,s=(r&65280)>>>8,h=r&255;t.fillStyle="rgba("+e+","+s+","+h+","+n+")"};c.exports=y},75177:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){var r=p||u.strokeColor,n=a||u.strokeAlpha,e=(r&16711680)>>>16,s=(r&65280)>>>8,h=r&255;t.strokeStyle="rgba("+e+","+s+","+h+","+n+")",t.lineWidth=u.lineWidth};c.exports=y},17803:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(31401),a=t(95643),r=t(23031),n=new u({Extends:a,Mixins:[p.AlphaSingle,p.BlendMode,p.Depth,p.GetBounds,p.Mask,p.Origin,p.Pipeline,p.PostPipeline,p.ScrollFactor,p.Transform,p.Visible],initialize:function(s,h,i){h===void 0&&(h="Shape"),a.call(this,s,h),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 r,this.width=0,this.height=0,this.initPipeline(),this.initPostPipeline()},setFillStyle:function(e,s){return s===void 0&&(s=1),e===void 0?this.isFilled=!1:(this.fillColor=e,this.fillAlpha=s,this.isFilled=!0),this},setStrokeStyle:function(e,s,h){return h===void 0&&(h=1),e===void 0?this.isStroked=!1:(this.lineWidth=e,this.strokeColor=s,this.strokeAlpha=h,this.isStroked=!0),this},setClosePath:function(e){return this.closePath=e,this},setSize:function(e,s){return this.width=e,this.height=s,this},setDisplaySize:function(e,s){return this.displayWidth=e,this.displayHeight=s,this},preDestroy:function(){this.geom=null,this._tempLine=null,this.pathData=[],this.pathIndexes=[]},displayWidth:{get:function(){return this.scaleX*this.width},set:function(e){this.scaleX=e/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(e){this.scaleY=e/this.height}}});c.exports=n},34682:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(70554),p=function(a,r,n,e,s){var h=a.strokeTint,i=u.getTintAppendFloatAlpha(r.strokeColor,r.strokeAlpha*n);h.TL=i,h.TR=i,h.BL=i,h.BR=i;var o=r.pathData,l=o.length-1,f=r.lineWidth,d=f/2,v=o[0]-e,m=o[1]-s;r.closePath||(l-=2);for(var g=2;g{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(13609),p=t(83419),a=t(39506),r=t(94811),n=t(96503),e=t(36383),s=t(17803),h=new p({Extends:s,Mixins:[u],initialize:function(o,l,f,d,v,m,g,x,S){l===void 0&&(l=0),f===void 0&&(f=0),d===void 0&&(d=128),v===void 0&&(v=0),m===void 0&&(m=360),g===void 0&&(g=!1),s.call(this,o,"Arc",new n(0,0,d)),this._startAngle=v,this._endAngle=m,this._anticlockwise=g,this._iterations=.01,this.setPosition(l,f);var C=this.geom.radius*2;this.setSize(C,C),x!==void 0&&this.setFillStyle(x,S),this.updateDisplayOrigin(),this.updateData()},iterations:{get:function(){return this._iterations},set:function(i){this._iterations=i,this.updateData()}},radius:{get:function(){return this.geom.radius},set:function(i){this.geom.radius=i;var o=i*2;this.setSize(o,o),this.updateDisplayOrigin(),this.updateData()}},startAngle:{get:function(){return this._startAngle},set:function(i){this._startAngle=i,this.updateData()}},endAngle:{get:function(){return this._endAngle},set:function(i){this._endAngle=i,this.updateData()}},anticlockwise:{get:function(){return this._anticlockwise},set:function(i){this._anticlockwise=i,this.updateData()}},setRadius:function(i){return this.radius=i,this},setIterations:function(i){return i===void 0&&(i=.01),this.iterations=i,this},setStartAngle:function(i,o){return this._startAngle=i,o!==void 0&&(this._anticlockwise=o),this.updateData()},setEndAngle:function(i,o){return this._endAngle=i,o!==void 0&&(this._anticlockwise=o),this.updateData()},updateData:function(){var i=this._iterations,o=i,l=this.geom.radius,f=a(this._startAngle),d=a(this._endAngle),v=this._anticlockwise,m=l,g=l;d-=f,v?d<-e.PI2?d=-e.PI2:d>0&&(d=-e.PI2+d%e.PI2):d>e.PI2?d=e.PI2:d<0&&(d=e.PI2+d%e.PI2);for(var x=[m+Math.cos(f)*l,g+Math.sin(f)*l],S;o<1;)S=d*o+f,x.push(m+Math.cos(S)*l,g+Math.sin(S)*l),o+=i;return S=d+f,x.push(m+Math.cos(S)*l,g+Math.sin(S)*l),x.push(m+Math.cos(f)*l,g+Math.sin(f)*l),this.pathIndexes=r(x),this.pathData=x,this}});c.exports=h},42542:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(39506),p=t(65960),a=t(75177),r=t(20926),n=function(e,s,h,i){h.addToRenderList(s);var o=e.currentContext;if(r(e,o,s,h,i)){var l=s.radius;o.beginPath(),o.arc(l-s.originX*(l*2),l-s.originY*(l*2),l,u(s._startAngle),u(s._endAngle),s.anticlockwise),s.closePath&&o.closePath(),s.isFilled&&(p(o,s),o.fill()),s.isStroked&&(a(o,s),o.stroke()),o.restore()}};c.exports=n},42563:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(23629),p=t(39429);p.register("arc",function(a,r,n,e,s,h,i,o){return this.displayList.add(new u(this.scene,a,r,n,e,s,h,i,o))}),p.register("circle",function(a,r,n,e,s){return this.displayList.add(new u(this.scene,a,r,n,0,360,!1,e,s))})},13609:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(29747),p=u,a=u;p=t(41447),a=t(42542),c.exports={renderWebGL:p,renderCanvas:a}},41447:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(91296),p=t(10441),a=t(34682),r=function(n,e,s,h){s.addToRenderList(e);var i=n.pipelines.set(e.pipeline),o=u(e,s,h),l=i.calcMatrix.copyFrom(o.calc),f=e._displayOriginX,d=e._displayOriginY,v=s.alpha*e.alpha;n.pipelines.preBatch(e),e.isFilled&&p(i,l,e,v,f,d),e.isStroked&&a(i,e,v,f,d),n.pipelines.postBatch(e)};c.exports=r},89:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(33141),a=t(94811),r=t(87841),n=t(17803),e=new u({Extends:n,Mixins:[p],initialize:function(h,i,o,l,f,d){i===void 0&&(i=0),o===void 0&&(o=0),n.call(this,h,"Curve",l),this._smoothness=32,this._curveBounds=new r,this.closePath=!1,this.setPosition(i,o),f!==void 0&&this.setFillStyle(f,d),this.updateData()},smoothness:{get:function(){return this._smoothness},set:function(s){this._smoothness=s,this.updateData()}},setSmoothness:function(s){return this._smoothness=s,this.updateData()},updateData:function(){var s=this._curveBounds,h=this._smoothness;this.geom.getBounds(s,h),this.setSize(s.width,s.height),this.updateDisplayOrigin();for(var i=[],o=this.geom.getPoints(h),l=0;l{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(65960),p=t(75177),a=t(20926),r=function(n,e,s,h){s.addToRenderList(e);var i=n.currentContext;if(a(n,i,e,s,h)){var o=e._displayOriginX+e._curveBounds.x,l=e._displayOriginY+e._curveBounds.y,f=e.pathData,d=f.length-1,v=f[0]-o,m=f[1]-l;i.beginPath(),i.moveTo(v,m),e.closePath||(d-=2);for(var g=2;g{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(39429),p=t(89);u.register("curve",function(a,r,n,e,s){return this.displayList.add(new p(this.scene,a,r,n,e,s))})},33141:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(29747),p=u,a=u;p=t(53987),a=t(3170),c.exports={renderWebGL:p,renderCanvas:a}},53987:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(10441),p=t(91296),a=t(34682),r=function(n,e,s,h){s.addToRenderList(e);var i=n.pipelines.set(e.pipeline),o=p(e,s,h),l=i.calcMatrix.copyFrom(o.calc),f=e._displayOriginX+e._curveBounds.x,d=e._displayOriginY+e._curveBounds.y,v=s.alpha*e.alpha;n.pipelines.preBatch(e),e.isFilled&&u(i,l,e,v,f,d),e.isStroked&&a(i,e,v,f,d),n.pipelines.postBatch(e)};c.exports=r},19921:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(94811),a=t(54205),r=t(8497),n=t(17803),e=new u({Extends:n,Mixins:[a],initialize:function(h,i,o,l,f,d,v){i===void 0&&(i=0),o===void 0&&(o=0),l===void 0&&(l=128),f===void 0&&(f=128),n.call(this,h,"Ellipse",new r(l/2,f/2,l,f)),this._smoothness=64,this.setPosition(i,o),this.width=l,this.height=f,d!==void 0&&this.setFillStyle(d,v),this.updateDisplayOrigin(),this.updateData()},smoothness:{get:function(){return this._smoothness},set:function(s){this._smoothness=s,this.updateData()}},setSize:function(s,h){return this.width=s,this.height=h,this.geom.setPosition(s/2,h/2),this.geom.setSize(s,h),this.updateDisplayOrigin(),this.updateData()},setSmoothness:function(s){return this._smoothness=s,this.updateData()},updateData:function(){for(var s=[],h=this.geom.getPoints(this._smoothness),i=0;i{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(65960),p=t(75177),a=t(20926),r=function(n,e,s,h){s.addToRenderList(e);var i=n.currentContext;if(a(n,i,e,s,h)){var o=e._displayOriginX,l=e._displayOriginY,f=e.pathData,d=f.length-1,v=f[0]-o,m=f[1]-l;i.beginPath(),i.moveTo(v,m),e.closePath||(d-=2);for(var g=2;g{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(19921),p=t(39429);p.register("ellipse",function(a,r,n,e,s,h){return this.displayList.add(new u(this.scene,a,r,n,e,s,h))})},54205:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(29747),p=u,a=u;p=t(19467),a=t(7930),c.exports={renderWebGL:p,renderCanvas:a}},19467:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(10441),p=t(91296),a=t(34682),r=function(n,e,s,h){s.addToRenderList(e);var i=n.pipelines.set(e.pipeline),o=p(e,s,h),l=i.calcMatrix.copyFrom(o.calc),f=e._displayOriginX,d=e._displayOriginY,v=s.alpha*e.alpha;n.pipelines.preBatch(e),e.isFilled&&u(i,l,e,v,f,d),e.isStroked&&a(i,e,v,f,d),n.pipelines.postBatch(e)};c.exports=r},30479:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(17803),a=t(26015),r=new u({Extends:p,Mixins:[a],initialize:function(e,s,h,i,o,l,f,d,v,m,g){s===void 0&&(s=0),h===void 0&&(h=0),i===void 0&&(i=128),o===void 0&&(o=128),l===void 0&&(l=32),f===void 0&&(f=32),p.call(this,e,"Grid",null),this.cellWidth=l,this.cellHeight=f,this.showCells=!0,this.outlineFillColor=0,this.outlineFillAlpha=0,this.showOutline=!0,this.showAltCells=!1,this.altFillColor,this.altFillAlpha,this.setPosition(s,h),this.setSize(i,o),this.setFillStyle(d,v),m!==void 0&&this.setOutlineStyle(m,g),this.updateDisplayOrigin()},setFillStyle:function(n,e){return e===void 0&&(e=1),n===void 0?this.showCells=!1:(this.fillColor=n,this.fillAlpha=e,this.showCells=!0),this},setAltFillStyle:function(n,e){return e===void 0&&(e=1),n===void 0?this.showAltCells=!1:(this.altFillColor=n,this.altFillAlpha=e,this.showAltCells=!0),this},setOutlineStyle:function(n,e){return e===void 0&&(e=1),n===void 0?this.showOutline=!1:(this.outlineFillColor=n,this.outlineFillAlpha=e,this.showOutline=!0),this}});c.exports=r},49912:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(65960),p=t(75177),a=t(20926),r=function(n,e,s,h){s.addToRenderList(e);var i=n.currentContext;if(a(n,i,e,s,h)){var o=-e._displayOriginX,l=-e._displayOriginY,f=s.alpha*e.alpha,d=e.width,v=e.height,m=e.cellWidth,g=e.cellHeight,x=Math.ceil(d/m),S=Math.ceil(v/g),C=m,E=g,P=m-(x*m-d),R=g-(S*g-v),M=e.showCells,A=e.showAltCells,L=e.showOutline,w=0,N=0,b=0,V=0,Y=0;if(L&&(C--,E--,P===m&&P--,R===g&&R--),M&&e.fillAlpha>0)for(u(i,e),N=0;N0)for(u(i,e,e.altFillColor,e.altFillAlpha*f),N=0;N0){for(p(i,e,e.outlineFillColor,e.outlineFillAlpha*f),w=1;w{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(39429),p=t(30479);u.register("grid",function(a,r,n,e,s,h,i,o,l,f){return this.displayList.add(new p(this.scene,a,r,n,e,s,h,i,o,l,f))})},26015:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(29747),p=u,a=u;p=t(46161),a=t(49912),c.exports={renderWebGL:p,renderCanvas:a}},46161:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(91296),p=t(70554),a=function(r,n,e,s){e.addToRenderList(n);var h=r.pipelines.set(n.pipeline),i=u(n,e,s),o=h.calcMatrix.copyFrom(i.calc);o.translate(-n._displayOriginX,-n._displayOriginY);var l=e.alpha*n.alpha,f=n.width,d=n.height,v=n.cellWidth,m=n.cellHeight,g=Math.ceil(f/v),x=Math.ceil(d/m),S=v,C=m,E=v-(g*v-f),P=m-(x*m-d),R,M,A=n.showCells,L=n.showAltCells,w=n.showOutline,N=0,b=0,V=0,Y=0,G=0;if(w&&(S--,C--,E===v&&E--,P===m&&P--),r.pipelines.preBatch(n),A&&n.fillAlpha>0)for(R=h.fillTint,M=p.getTintAppendFloatAlpha(n.fillColor,n.fillAlpha*l),R.TL=M,R.TR=M,R.BL=M,R.BR=M,b=0;b0)for(R=h.fillTint,M=p.getTintAppendFloatAlpha(n.altFillColor,n.altFillAlpha*l),R.TL=M,R.TR=M,R.BL=M,R.BR=M,b=0;b0){var U=h.strokeTint,B=p.getTintAppendFloatAlpha(n.outlineFillColor,n.outlineFillAlpha*l);for(U.TL=B,U.TR=B,U.BL=B,U.BR=B,N=1;N{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(99651),p=t(83419),a=t(17803),r=new p({Extends:a,Mixins:[u],initialize:function(e,s,h,i,o,l,f,d){s===void 0&&(s=0),h===void 0&&(h=0),i===void 0&&(i=48),o===void 0&&(o=32),l===void 0&&(l=15658734),f===void 0&&(f=10066329),d===void 0&&(d=13421772),a.call(this,e,"IsoBox",null),this.projection=4,this.fillTop=l,this.fillLeft=f,this.fillRight=d,this.showTop=!0,this.showLeft=!0,this.showRight=!0,this.isFilled=!0,this.setPosition(s,h),this.setSize(i,o),this.updateDisplayOrigin()},setProjection:function(n){return this.projection=n,this},setFaces:function(n,e,s){return n===void 0&&(n=!0),e===void 0&&(e=!0),s===void 0&&(s=!0),this.showTop=n,this.showLeft=e,this.showRight=s,this},setFillStyle:function(n,e,s){return this.fillTop=n,this.fillLeft=e,this.fillRight=s,this.isFilled=!0,this}});c.exports=r},11508:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(65960),p=t(20926),a=function(r,n,e,s){e.addToRenderList(n);var h=r.currentContext;if(p(r,h,n,e,s)&&n.isFilled){var i=n.width,o=n.height,l=i/2,f=i/n.projection;n.showTop&&(u(h,n,n.fillTop),h.beginPath(),h.moveTo(-l,-o),h.lineTo(0,-f-o),h.lineTo(l,-o),h.lineTo(l,-1),h.lineTo(0,f-1),h.lineTo(-l,-1),h.lineTo(-l,-o),h.fill()),n.showLeft&&(u(h,n,n.fillLeft),h.beginPath(),h.moveTo(-l,0),h.lineTo(0,f),h.lineTo(0,f-o),h.lineTo(-l,-o),h.lineTo(-l,0),h.fill()),n.showRight&&(u(h,n,n.fillRight),h.beginPath(),h.moveTo(l,0),h.lineTo(0,f),h.lineTo(0,f-o),h.lineTo(l,-o),h.lineTo(l,0),h.fill()),h.restore()}};c.exports=a},3933:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(39429),p=t(61475);u.register("isobox",function(a,r,n,e,s,h,i){return this.displayList.add(new p(this.scene,a,r,n,e,s,h,i))})},99651:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(29747),p=u,a=u;p=t(68149),a=t(11508),c.exports={renderWebGL:p,renderCanvas:a}},68149:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(91296),p=t(70554),a=function(r,n,e,s){e.addToRenderList(n);var h=r.pipelines.set(n.pipeline),i=u(n,e,s),o=h.calcMatrix.copyFrom(i.calc),l=n.width,f=n.height,d=l/2,v=l/n.projection,m=e.alpha*n.alpha;if(n.isFilled){var g,x,S,C,E,P,R,M,A;r.pipelines.preBatch(n),n.showTop&&(g=p.getTintAppendFloatAlpha(n.fillTop,m),x=o.getX(-d,-f),S=o.getY(-d,-f),C=o.getX(0,-v-f),E=o.getY(0,-v-f),P=o.getX(d,-f),R=o.getY(d,-f),M=o.getX(0,v-f),A=o.getY(0,v-f),h.batchQuad(n,x,S,C,E,P,R,M,A,0,0,1,1,g,g,g,g,2)),n.showLeft&&(g=p.getTintAppendFloatAlpha(n.fillLeft,m),x=o.getX(-d,0),S=o.getY(-d,0),C=o.getX(0,v),E=o.getY(0,v),P=o.getX(0,v-f),R=o.getY(0,v-f),M=o.getX(-d,-f),A=o.getY(-d,-f),h.batchQuad(n,x,S,C,E,P,R,M,A,0,0,1,1,g,g,g,g,2)),n.showRight&&(g=p.getTintAppendFloatAlpha(n.fillRight,m),x=o.getX(d,0),S=o.getY(d,0),C=o.getX(0,v),E=o.getY(0,v),P=o.getX(0,v-f),R=o.getY(0,v-f),M=o.getX(d,-f),A=o.getY(d,-f),h.batchQuad(n,x,S,C,E,P,R,M,A,0,0,1,1,g,g,g,g,2)),r.pipelines.postBatch(n)}};c.exports=a},16933:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(60561),a=t(17803),r=new u({Extends:a,Mixins:[p],initialize:function(e,s,h,i,o,l,f,d,v){s===void 0&&(s=0),h===void 0&&(h=0),i===void 0&&(i=48),o===void 0&&(o=32),l===void 0&&(l=!1),f===void 0&&(f=15658734),d===void 0&&(d=10066329),v===void 0&&(v=13421772),a.call(this,e,"IsoTriangle",null),this.projection=4,this.fillTop=f,this.fillLeft=d,this.fillRight=v,this.showTop=!0,this.showLeft=!0,this.showRight=!0,this.isReversed=l,this.isFilled=!0,this.setPosition(s,h),this.setSize(i,o),this.updateDisplayOrigin()},setProjection:function(n){return this.projection=n,this},setReversed:function(n){return this.isReversed=n,this},setFaces:function(n,e,s){return n===void 0&&(n=!0),e===void 0&&(e=!0),s===void 0&&(s=!0),this.showTop=n,this.showLeft=e,this.showRight=s,this},setFillStyle:function(n,e,s){return this.fillTop=n,this.fillLeft=e,this.fillRight=s,this.isFilled=!0,this}});c.exports=r},79590:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(65960),p=t(20926),a=function(r,n,e,s){e.addToRenderList(n);var h=r.currentContext;if(p(r,h,n,e,s)&&n.isFilled){var i=n.width,o=n.height,l=i/2,f=i/n.projection,d=n.isReversed;n.showTop&&d&&(u(h,n,n.fillTop),h.beginPath(),h.moveTo(-l,-o),h.lineTo(0,-f-o),h.lineTo(l,-o),h.lineTo(0,f-o),h.fill()),n.showLeft&&(u(h,n,n.fillLeft),h.beginPath(),d?(h.moveTo(-l,-o),h.lineTo(0,f),h.lineTo(0,f-o)):(h.moveTo(-l,0),h.lineTo(0,f),h.lineTo(0,f-o)),h.fill()),n.showRight&&(u(h,n,n.fillRight),h.beginPath(),d?(h.moveTo(l,-o),h.lineTo(0,f),h.lineTo(0,f-o)):(h.moveTo(l,0),h.lineTo(0,f),h.lineTo(0,f-o)),h.fill()),h.restore()}};c.exports=a},49803:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(39429),p=t(16933);u.register("isotriangle",function(a,r,n,e,s,h,i,o){return this.displayList.add(new p(this.scene,a,r,n,e,s,h,i,o))})},60561:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(29747),p=u,a=u;p=t(51503),a=t(79590),c.exports={renderWebGL:p,renderCanvas:a}},51503:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(91296),p=t(70554),a=function(r,n,e,s){e.addToRenderList(n);var h=r.pipelines.set(n.pipeline),i=u(n,e,s),o=h.calcMatrix.copyFrom(i.calc),l=n.width,f=n.height,d=l/2,v=l/n.projection,m=n.isReversed,g=e.alpha*n.alpha;if(n.isFilled){r.pipelines.preBatch(n);var x,S,C,E,P,R,M;if(n.showTop&&m){x=p.getTintAppendFloatAlpha(n.fillTop,g),S=o.getX(-d,-f),C=o.getY(-d,-f),E=o.getX(0,-v-f),P=o.getY(0,-v-f),R=o.getX(d,-f),M=o.getY(d,-f);var A=o.getX(0,v-f),L=o.getY(0,v-f);h.batchQuad(n,S,C,E,P,R,M,A,L,0,0,1,1,x,x,x,x,2)}n.showLeft&&(x=p.getTintAppendFloatAlpha(n.fillLeft,g),m?(S=o.getX(-d,-f),C=o.getY(-d,-f),E=o.getX(0,v),P=o.getY(0,v),R=o.getX(0,v-f),M=o.getY(0,v-f)):(S=o.getX(-d,0),C=o.getY(-d,0),E=o.getX(0,v),P=o.getY(0,v),R=o.getX(0,v-f),M=o.getY(0,v-f)),h.batchTri(n,S,C,E,P,R,M,0,0,1,1,x,x,x,2)),n.showRight&&(x=p.getTintAppendFloatAlpha(n.fillRight,g),m?(S=o.getX(d,-f),C=o.getY(d,-f),E=o.getX(0,v),P=o.getY(0,v),R=o.getX(0,v-f),M=o.getY(0,v-f)):(S=o.getX(d,0),C=o.getY(d,0),E=o.getX(0,v),P=o.getY(0,v),R=o.getX(0,v-f),M=o.getY(0,v-f)),h.batchTri(n,S,C,E,P,R,M,0,0,1,1,x,x,x,2)),r.pipelines.postBatch(n)}};c.exports=a},57847:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(17803),a=t(23031),r=t(36823),n=new u({Extends:p,Mixins:[r],initialize:function(s,h,i,o,l,f,d,v,m){h===void 0&&(h=0),i===void 0&&(i=0),o===void 0&&(o=0),l===void 0&&(l=0),f===void 0&&(f=128),d===void 0&&(d=0),p.call(this,s,"Line",new a(o,l,f,d));var g=Math.max(1,this.geom.right-this.geom.left),x=Math.max(1,this.geom.bottom-this.geom.top);this.lineWidth=1,this._startWidth=1,this._endWidth=1,this.setPosition(h,i),this.setSize(g,x),v!==void 0&&this.setStrokeStyle(1,v,m),this.updateDisplayOrigin()},setLineWidth:function(e,s){return s===void 0&&(s=e),this._startWidth=e,this._endWidth=s,this.lineWidth=e,this},setTo:function(e,s,h,i){return this.geom.setTo(e,s,h,i),this}});c.exports=n},17440:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(75177),p=t(20926),a=function(r,n,e,s){e.addToRenderList(n);var h=r.currentContext;if(p(r,h,n,e,s)){var i=n._displayOriginX,o=n._displayOriginY;n.isStroked&&(u(h,n),h.beginPath(),h.moveTo(n.geom.x1-i,n.geom.y1-o),h.lineTo(n.geom.x2-i,n.geom.y2-o),h.stroke()),h.restore()}};c.exports=a},2481:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(39429),p=t(57847);u.register("line",function(a,r,n,e,s,h,i,o){return this.displayList.add(new p(this.scene,a,r,n,e,s,h,i,o))})},36823:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(29747),p=u,a=u;p=t(77385),a=t(17440),c.exports={renderWebGL:p,renderCanvas:a}},77385:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(91296),p=t(70554),a=function(r,n,e,s){e.addToRenderList(n);var h=r.pipelines.set(n.pipeline),i=u(n,e,s);h.calcMatrix.copyFrom(i.calc);var o=n._displayOriginX,l=n._displayOriginY,f=e.alpha*n.alpha;if(r.pipelines.preBatch(n),n.isStroked){var d=h.strokeTint,v=p.getTintAppendFloatAlpha(n.strokeColor,n.strokeAlpha*f);d.TL=v,d.TR=v,d.BL=v,d.BR=v,h.batchLine(n.geom.x1-o,n.geom.y1-l,n.geom.x2-o,n.geom.y2-l,n._startWidth/2,n._endWidth/2,1,0,!1,i.sprite,i.camera)}r.pipelines.postBatch(n)};c.exports=a},24949:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(90273),p=t(83419),a=t(94811),r=t(13829),n=t(25717),e=t(17803),s=t(5469),h=new p({Extends:e,Mixins:[u],initialize:function(o,l,f,d,v,m){l===void 0&&(l=0),f===void 0&&(f=0),e.call(this,o,"Polygon",new n(d));var g=r(this.geom);this.setPosition(l,f),this.setSize(g.width,g.height),v!==void 0&&this.setFillStyle(v,m),this.updateDisplayOrigin(),this.updateData()},smooth:function(i){i===void 0&&(i=1);for(var o=0;o{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(65960),p=t(75177),a=t(20926),r=function(n,e,s,h){s.addToRenderList(e);var i=n.currentContext;if(a(n,i,e,s,h)){var o=e._displayOriginX,l=e._displayOriginY,f=e.pathData,d=f.length-1,v=f[0]-o,m=f[1]-l;i.beginPath(),i.moveTo(v,m),e.closePath||(d-=2);for(var g=2;g{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(39429),p=t(24949);u.register("polygon",function(a,r,n,e,s){return this.displayList.add(new p(this.scene,a,r,n,e,s))})},90273:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(29747),p=u,a=u;p=t(73695),a=t(38710),c.exports={renderWebGL:p,renderCanvas:a}},73695:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(10441),p=t(91296),a=t(34682),r=function(n,e,s,h){s.addToRenderList(e);var i=n.pipelines.set(e.pipeline),o=p(e,s,h),l=i.calcMatrix.copyFrom(o.calc),f=e._displayOriginX,d=e._displayOriginY,v=s.alpha*e.alpha;n.pipelines.preBatch(e),e.isFilled&&u(i,l,e,v,f,d),e.isStroked&&a(i,e,v,f,d),n.pipelines.postBatch(e)};c.exports=r},74561:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(87841),a=t(17803),r=t(95597),n=new u({Extends:a,Mixins:[r],initialize:function(s,h,i,o,l,f,d){h===void 0&&(h=0),i===void 0&&(i=0),o===void 0&&(o=128),l===void 0&&(l=128),a.call(this,s,"Rectangle",new p(0,0,o,l)),this.setPosition(h,i),this.setSize(o,l),f!==void 0&&this.setFillStyle(f,d),this.updateDisplayOrigin(),this.updateData()},setSize:function(e,s){this.width=e,this.height=s,this.geom.setSize(e,s),this.updateData(),this.updateDisplayOrigin();var h=this.input;return h&&!h.customHitArea&&(h.hitArea.width=e,h.hitArea.height=s),this},updateData:function(){var e=[],s=this.geom,h=this._tempLine;return s.getLineA(h),e.push(h.x1,h.y1,h.x2,h.y2),s.getLineB(h),e.push(h.x2,h.y2),s.getLineC(h),e.push(h.x2,h.y2),s.getLineD(h),e.push(h.x2,h.y2),this.pathData=e,this}});c.exports=n},48682:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(65960),p=t(75177),a=t(20926),r=function(n,e,s,h){s.addToRenderList(e);var i=n.currentContext;if(a(n,i,e,s,h)){var o=e._displayOriginX,l=e._displayOriginY;e.isFilled&&(u(i,e),i.fillRect(-o,-l,e.width,e.height)),e.isStroked&&(p(i,e),i.beginPath(),i.rect(-o,-l,e.width,e.height),i.stroke()),i.restore()}};c.exports=r},87959:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(39429),p=t(74561);u.register("rectangle",function(a,r,n,e,s,h){return this.displayList.add(new p(this.scene,a,r,n,e,s,h))})},95597:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(29747),p=u,a=u;p=t(52059),a=t(48682),c.exports={renderWebGL:p,renderCanvas:a}},52059:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(91296),p=t(34682),a=t(70554),r=function(n,e,s,h){s.addToRenderList(e);var i=n.pipelines.set(e.pipeline),o=u(e,s,h);i.calcMatrix.copyFrom(o.calc);var l=e._displayOriginX,f=e._displayOriginY,d=s.alpha*e.alpha;if(n.pipelines.preBatch(e),e.isFilled){var v=i.fillTint,m=a.getTintAppendFloatAlpha(e.fillColor,e.fillAlpha*d);v.TL=m,v.TR=m,v.BL=m,v.BR=m,i.batchFillRect(-l,-f,e.width,e.height)}e.isStroked&&p(i,e,d,l,f),n.pipelines.postBatch(e)};c.exports=r},55911:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(81991),p=t(83419),a=t(94811),r=t(17803),n=new p({Extends:r,Mixins:[u],initialize:function(s,h,i,o,l,f,d,v){h===void 0&&(h=0),i===void 0&&(i=0),o===void 0&&(o=5),l===void 0&&(l=32),f===void 0&&(f=64),r.call(this,s,"Star",null),this._points=o,this._innerRadius=l,this._outerRadius=f,this.setPosition(h,i),this.setSize(f*2,f*2),d!==void 0&&this.setFillStyle(d,v),this.updateDisplayOrigin(),this.updateData()},setPoints:function(e){return this._points=e,this.updateData()},setInnerRadius:function(e){return this._innerRadius=e,this.updateData()},setOuterRadius:function(e){return this._outerRadius=e,this.updateData()},points:{get:function(){return this._points},set:function(e){this._points=e,this.updateData()}},innerRadius:{get:function(){return this._innerRadius},set:function(e){this._innerRadius=e,this.updateData()}},outerRadius:{get:function(){return this._outerRadius},set:function(e){this._outerRadius=e,this.updateData()}},updateData:function(){var e=[],s=this._points,h=this._innerRadius,i=this._outerRadius,o=Math.PI/2*3,l=Math.PI/s,f=i,d=i;e.push(f,d+-i);for(var v=0;v{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(65960),p=t(75177),a=t(20926),r=function(n,e,s,h){s.addToRenderList(e);var i=n.currentContext;if(a(n,i,e,s,h)){var o=e._displayOriginX,l=e._displayOriginY,f=e.pathData,d=f.length-1,v=f[0]-o,m=f[1]-l;i.beginPath(),i.moveTo(v,m),e.closePath||(d-=2);for(var g=2;g{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(55911),p=t(39429);p.register("star",function(a,r,n,e,s,h,i){return this.displayList.add(new u(this.scene,a,r,n,e,s,h,i))})},81991:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(29747),p=u,a=u;p=t(57017),a=t(64272),c.exports={renderWebGL:p,renderCanvas:a}},57017:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(10441),p=t(91296),a=t(34682),r=function(n,e,s,h){s.addToRenderList(e);var i=n.pipelines.set(e.pipeline),o=p(e,s,h),l=i.calcMatrix.copyFrom(o.calc),f=e._displayOriginX,d=e._displayOriginY,v=s.alpha*e.alpha;n.pipelines.preBatch(e),e.isFilled&&u(i,l,e,v,f,d),e.isStroked&&a(i,e,v,f,d),n.pipelines.postBatch(e)};c.exports=r},36931:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(17803),a=t(16483),r=t(96195),n=new u({Extends:p,Mixins:[r],initialize:function(s,h,i,o,l,f,d,v,m,g,x){h===void 0&&(h=0),i===void 0&&(i=0),o===void 0&&(o=0),l===void 0&&(l=128),f===void 0&&(f=64),d===void 0&&(d=0),v===void 0&&(v=128),m===void 0&&(m=128),p.call(this,s,"Triangle",new a(o,l,f,d,v,m));var S=this.geom.right-this.geom.left,C=this.geom.bottom-this.geom.top;this.setPosition(h,i),this.setSize(S,C),g!==void 0&&this.setFillStyle(g,x),this.updateDisplayOrigin(),this.updateData()},setTo:function(e,s,h,i,o,l){return this.geom.setTo(e,s,h,i,o,l),this.updateData()},updateData:function(){var e=[],s=this.geom,h=this._tempLine;return s.getLineA(h),e.push(h.x1,h.y1,h.x2,h.y2),s.getLineB(h),e.push(h.x2,h.y2),s.getLineC(h),e.push(h.x2,h.y2),this.pathData=e,this}});c.exports=n},85172:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(65960),p=t(75177),a=t(20926),r=function(n,e,s,h){s.addToRenderList(e);var i=n.currentContext;if(a(n,i,e,s,h)){var o=e._displayOriginX,l=e._displayOriginY,f=e.geom.x1-o,d=e.geom.y1-l,v=e.geom.x2-o,m=e.geom.y2-l,g=e.geom.x3-o,x=e.geom.y3-l;i.beginPath(),i.moveTo(f,d),i.lineTo(v,m),i.lineTo(g,x),i.closePath(),e.isFilled&&(u(i,e),i.fill()),e.isStroked&&(p(i,e),i.stroke()),i.restore()}};c.exports=r},45245:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(39429),p=t(36931);u.register("triangle",function(a,r,n,e,s,h,i,o,l,f){return this.displayList.add(new p(this.scene,a,r,n,e,s,h,i,o,l,f))})},96195:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(29747),p=u,a=u;p=t(83253),a=t(85172),c.exports={renderWebGL:p,renderCanvas:a}},83253:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(91296),p=t(34682),a=t(70554),r=function(n,e,s,h){s.addToRenderList(e);var i=n.pipelines.set(e.pipeline),o=u(e,s,h);i.calcMatrix.copyFrom(o.calc);var l=e._displayOriginX,f=e._displayOriginY,d=s.alpha*e.alpha;if(n.pipelines.preBatch(e),e.isFilled){var v=i.fillTint,m=a.getTintAppendFloatAlpha(e.fillColor,e.fillAlpha*d);v.TL=m,v.TR=m,v.BL=m,v.BR=m;var g=e.geom.x1-l,x=e.geom.y1-f,S=e.geom.x2-l,C=e.geom.y2-f,E=e.geom.x3-l,P=e.geom.y3-f;i.batchFillTriangle(g,x,S,C,E,P,o.sprite,o.camera)}e.isStroked&&p(i,e,d,l,f),n.pipelines.postBatch(e)};c.exports=r},68287:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(9674),p=t(83419),a=t(31401),r=t(95643),n=t(92751),e=new p({Extends:r,Mixins:[a.Alpha,a.BlendMode,a.Depth,a.Flip,a.GetBounds,a.Mask,a.Origin,a.Pipeline,a.PostPipeline,a.ScrollFactor,a.Size,a.TextureCrop,a.Tint,a.Transform,a.Visible,n],initialize:function(h,i,o,l,f){r.call(this,h,"Sprite"),this._crop=this.resetCropObject(),this.anims=new u(this),this.setTexture(l,f),this.setPosition(i,o),this.setSizeToFrame(),this.setOriginFromFrame(),this.initPipeline(),this.initPostPipeline(!0)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},preUpdate:function(s,h){this.anims.update(s,h)},play:function(s,h){return this.anims.play(s,h)},playReverse:function(s,h){return this.anims.playReverse(s,h)},playAfterDelay:function(s,h){return this.anims.playAfterDelay(s,h)},playAfterRepeat:function(s,h){return this.anims.playAfterRepeat(s,h)},chain:function(s){return this.anims.chain(s)},stop:function(){return this.anims.stop()},stopAfterDelay:function(s){return this.anims.stopAfterDelay(s)},stopAfterRepeat:function(s){return this.anims.stopAfterRepeat(s)},stopOnFrame:function(s){return this.anims.stopOnFrame(s)},toJSON:function(){return a.ToJSON(this)},preDestroy:function(){this.anims.destroy(),this.anims=void 0}});c.exports=e},76552:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){p.addToRenderList(u),t.batchSprite(u,u.frame,p,a)};c.exports=y},15567:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(25305),p=t(13059),a=t(44603),r=t(23568),n=t(68287);a.register("sprite",function(e,s){e===void 0&&(e={});var h=r(e,"key",null),i=r(e,"frame",null),o=new n(this.scene,0,0,h,i);return s!==void 0&&(e.add=s),u(this.scene,o,e),p(o,e),o})},46409:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(39429),p=t(68287);u.register("sprite",function(a,r,n,e){return this.displayList.add(new p(this.scene,a,r,n,e))})},92751:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(29747),p=u,a=u;p=t(9409),a=t(76552),c.exports={renderWebGL:p,renderCanvas:a}},9409:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){p.addToRenderList(u),u.pipeline.batchSprite(u,p,a)};c.exports=y},14220:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){var a=t.canvas,r=t.context,n=t.style,e=[],s=0,h=p.length;n.maxLines>0&&n.maxLines1&&(l+=i*(f.length-1))}n.wordWrap&&(l-=r.measureText(" ").width),e[o]=Math.ceil(l),s=Math.max(s,e[o])}var v=u.fontSize+n.strokeThickness,m=v*h,g=t.lineSpacing;return h>1&&(m+=g*(h-1)),{width:s,height:m,lines:h,lineWidths:e,lineSpacing:g,lineHeight:v}};c.exports=y},79557:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(27919),p=function(a){var r=u.create(this),n=r.getContext("2d",{willReadFrequently:!0});a.syncFont(r,n);var e=n.measureText(a.testString);if("actualBoundingBoxAscent"in e){var s=e.actualBoundingBoxAscent,h=e.actualBoundingBoxDescent;return u.remove(r),{ascent:s,descent:h,fontSize:s+h}}var i=Math.ceil(e.width*a.baselineX),o=i,l=2*o;o=o*a.baselineY|0,r.width=i,r.height=l,n.fillStyle="#f00",n.fillRect(0,0,i,l),n.font=a._font,n.textBaseline="alphabetic",n.fillStyle="#000",n.fillText(a.testString,0,o);var f={ascent:0,descent:0,fontSize:0},d=n.getImageData(0,0,i,l);if(!d)return f.ascent=o,f.descent=o+6,f.fontSize=f.ascent+f.descent,u.remove(r),f;var v=d.data,m=v.length,g=i*4,x,S,C=0,E=!1;for(x=0;xo;x--){for(S=0;S{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(40366),p=t(27919),a=t(83419),r=t(31401),n=t(95643),e=t(14220),s=t(35154),h=t(35846),i=t(61771),o=t(35762),l=t(45650),f=new a({Extends:n,Mixins:[r.Alpha,r.BlendMode,r.ComputedSize,r.Crop,r.Depth,r.Flip,r.GetBounds,r.Mask,r.Origin,r.Pipeline,r.PostPipeline,r.ScrollFactor,r.Tint,r.Transform,r.Visible,i],initialize:function(v,m,g,x,S){m===void 0&&(m=0),g===void 0&&(g=0),n.call(this,v,"Text"),this.renderer=v.sys.renderer,this.setPosition(m,g),this.setOrigin(0,0),this.initPipeline(),this.initPostPipeline(!0),this.canvas=p.create(this),this.context,this.style=new o(this,S),this.autoRound=!0,this.splitRegExp=/(?:\r\n|\r|\n)/,this._text=void 0,this.padding={left:0,right:0,top:0,bottom:0},this.width=1,this.height=1,this.lineSpacing=0,this.letterSpacing=0,this.style.resolution===0&&(this.style.resolution=1),this._crop=this.resetCropObject(),this._textureKey=l(),this.texture=v.sys.textures.addCanvas(this._textureKey,this.canvas),this.context=this.texture.context,this.frame=this.texture.get(),this.frame.source.resolution=this.style.resolution,this.renderer&&this.renderer.gl&&(this.renderer.deleteTexture(this.frame.source.glTexture),this.frame.source.glTexture=null),this.initRTL(),this.setText(x),S&&S.padding&&this.setPadding(S.padding),S&&S.lineSpacing&&this.setLineSpacing(S.lineSpacing)},initRTL:function(){this.style.rtl&&(this.canvas.dir="rtl",this.context.direction="rtl",this.canvas.style.display="none",u(this.canvas,this.scene.sys.canvas),this.originX=1)},runWordWrap:function(d){var v=this.style;if(v.wordWrapCallback){var m=v.wordWrapCallback.call(v.wordWrapCallbackScope,d,this);return Array.isArray(m)&&(m=m.join(` +`)),m}else return v.wordWrapWidth?v.wordWrapUseAdvanced?this.advancedWordWrap(d,this.context,this.style.wordWrapWidth):this.basicWordWrap(d,this.context,this.style.wordWrapWidth):d},advancedWordWrap:function(d,v,m){for(var g="",x=d.replace(/ +/gi," ").split(this.splitRegExp),S=x.length,C=0;CM){if(L===0){for(var V=N;V.length&&(V=V.slice(0,-1),b=v.measureText(V).width,!(b<=M)););if(!V.length)throw new Error("wordWrapWidth < a single character");var Y=w.substr(V.length);A[L]=Y,P+=V}var G=A[L].length?L:L+1,U=A.slice(G).join(" ").replace(/[ \n]*$/gi,"");x.splice(C+1,0,U),S=x.length;break}else P+=N,M-=b}g+=P.replace(/[ \n]*$/gi,"")+` +`}return g=g.replace(/[\s|\n]*$/gi,""),g},basicWordWrap:function(d,v,m){for(var g="",x=d.split(this.splitRegExp),S=x.length-1,C=v.measureText(" ").width,E=0;E<=S;E++){for(var P=m,R=x[E].split(" "),M=R.length-1,A=0;A<=M;A++){var L=R[A],w=v.measureText(L).width,N=w;AP&&A>0&&(g+=` +`,P=m),g+=L,A0&&(w+=E.lineSpacing*N),m.rtl)L=M-L-P.left-P.right;else if(m.align==="right")L+=R-E.lineWidths[N];else if(m.align==="center")L+=(R-E.lineWidths[N])/2;else if(m.align==="justify"){var b=.85;if(E.lineWidths[N]/E.width>=b){var V=E.width-E.lineWidths[N],Y=v.measureText(" ").width,G=C[N].trim(),U=G.split(" ");V+=(C[N].length-G.length)*Y;for(var B=Math.floor(V/Y),I=0;B>0;)U[I]+=" ",I=(I+1)%(U.length-1||1),--B;C[N]=U.join(" ")}}this.autoRound&&(L=Math.round(L),w=Math.round(w));var X=this.letterSpacing;if(m.strokeThickness&&X===0&&(m.syncShadow(v,m.shadowStroke),v.strokeText(C[N],L,w)),m.color)if(m.syncShadow(v,m.shadowFill),X!==0)for(var K=0,Z=C[N].split(""),J=0;J{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){u.width===0||u.height===0||(p.addToRenderList(u),t.batchSprite(u,u.frame,p,a))};c.exports=y},71259:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(25305),p=t(44603),a=t(23568),r=t(50171);p.register("text",function(n,e){n===void 0&&(n={});var s=a(n,"text",""),h=a(n,"style",null),i=a(n,"padding",null);i!==null&&(h.padding=i);var o=new r(this.scene,0,0,s,h);return e!==void 0&&(n.add=e),u(this.scene,o,n),o.autoRound=a(n,"autoRound",!0),o.resolution=a(n,"resolution",1),o})},68005:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(50171),p=t(39429);p.register("text",function(a,r,n,e){return this.displayList.add(new u(this.scene,a,r,n,e))})},61771:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(29747),p=u,a=u;p=t(34397),a=t(79724),c.exports={renderWebGL:p,renderCanvas:a}},35762:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(23568),a=t(35154),r=t(79557),n={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]},e=new u({initialize:function(h,i){this.parent=h,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.wordWrapWidth,this.wordWrapCallback,this.wordWrapCallbackScope,this.wordWrapUseAdvanced,this._font,this.setStyle(i,!1,!0)},setStyle:function(s,h,i){h===void 0&&(h=!0),i===void 0&&(i=!1);for(var o in n){var l=i?n[o][1]:this[o];o==="wordWrapCallback"||o==="wordWrapCallbackScope"?this[o]=a(s,n[o][0],l):s&&o==="fontSize"&&typeof s.fontSize=="number"?this[o]=s.fontSize.toString()+"px":this[o]=p(s,n[o][0],l)}var f=a(s,"font",null);f!==null&&this.setFont(f,!1),this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim();var d=a(s,"fill",null);d!==null&&(this.color=d);var v=a(s,"metrics",!1);return v?this.metrics={ascent:a(v,"ascent",0),descent:a(v,"descent",0),fontSize:a(v,"fontSize",0)}:(h||!this.metrics)&&(this.metrics=r(this)),h?this.parent.updateText():this.parent},syncFont:function(s,h){h.font=this._font},syncStyle:function(s,h){h.textBaseline="alphabetic",h.fillStyle=this.color,h.strokeStyle=this.stroke,h.lineWidth=this.strokeThickness,h.lineCap="round",h.lineJoin="round"},syncShadow:function(s,h){h?(s.shadowOffsetX=this.shadowOffsetX,s.shadowOffsetY=this.shadowOffsetY,s.shadowColor=this.shadowColor,s.shadowBlur=this.shadowBlur):(s.shadowOffsetX=0,s.shadowOffsetY=0,s.shadowColor=0,s.shadowBlur=0)},update:function(s){return s&&(this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim(),this.metrics=r(this)),this.parent.updateText()},setFont:function(s,h){h===void 0&&(h=!0);var i=s,o="",l="";if(typeof s!="string")i=a(s,"fontFamily","Courier"),o=a(s,"fontSize","16px"),l=a(s,"fontStyle","");else{var f=s.split(" "),d=0;l=f.length>2?f[d++]:"",o=f[d++]||"16px",i=f[d++]||"Courier"}return(i!==this.fontFamily||o!==this.fontSize||l!==this.fontStyle)&&(this.fontFamily=i,this.fontSize=o,this.fontStyle=l,h&&this.update(!0)),this.parent},setFontFamily:function(s){return this.fontFamily!==s&&(this.fontFamily=s,this.update(!0)),this.parent},setFontStyle:function(s){return this.fontStyle!==s&&(this.fontStyle=s,this.update(!0)),this.parent},setFontSize:function(s){return typeof s=="number"&&(s=s.toString()+"px"),this.fontSize!==s&&(this.fontSize=s,this.update(!0)),this.parent},setTestString:function(s){return this.testString=s,this.update(!0)},setFixedSize:function(s,h){return this.fixedWidth=s,this.fixedHeight=h,s&&(this.parent.width=s),h&&(this.parent.height=h),this.update(!1)},setBackgroundColor:function(s){return this.backgroundColor=s,this.update(!1)},setFill:function(s){return this.color=s,this.update(!1)},setColor:function(s){return this.color=s,this.update(!1)},setResolution:function(s){return this.resolution=s,this.update(!1)},setStroke:function(s,h){return h===void 0&&(h=this.strokeThickness),s===void 0&&this.strokeThickness!==0?(this.strokeThickness=0,this.update(!0)):(this.stroke!==s||this.strokeThickness!==h)&&(this.stroke=s,this.strokeThickness=h,this.update(!0)),this.parent},setShadow:function(s,h,i,o,l,f){return s===void 0&&(s=0),h===void 0&&(h=0),i===void 0&&(i="#000"),o===void 0&&(o=0),l===void 0&&(l=!1),f===void 0&&(f=!0),this.shadowOffsetX=s,this.shadowOffsetY=h,this.shadowColor=i,this.shadowBlur=o,this.shadowStroke=l,this.shadowFill=f,this.update(!1)},setShadowOffset:function(s,h){return s===void 0&&(s=0),h===void 0&&(h=s),this.shadowOffsetX=s,this.shadowOffsetY=h,this.update(!1)},setShadowColor:function(s){return s===void 0&&(s="#000"),this.shadowColor=s,this.update(!1)},setShadowBlur:function(s){return s===void 0&&(s=0),this.shadowBlur=s,this.update(!1)},setShadowStroke:function(s){return this.shadowStroke=s,this.update(!1)},setShadowFill:function(s){return this.shadowFill=s,this.update(!1)},setWordWrapWidth:function(s,h){return h===void 0&&(h=!1),this.wordWrapWidth=s,this.wordWrapUseAdvanced=h,this.update(!1)},setWordWrapCallback:function(s,h){return h===void 0&&(h=null),this.wordWrapCallback=s,this.wordWrapCallbackScope=h,this.update(!1)},setAlign:function(s){return s===void 0&&(s="left"),this.align=s,this.update(!1)},setMaxLines:function(s){return s===void 0&&(s=0),this.maxLines=s,this.update(!1)},getTextMetrics:function(){var s=this.metrics;return{ascent:s.ascent,descent:s.descent,fontSize:s.fontSize}},toJSON:function(){var s={};for(var h in n)s[h]=this[h];return s.metrics=this.getTextMetrics(),s},destroy:function(){this.parent=void 0}});c.exports=e},34397:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(70554),p=function(a,r,n,e){if(!(r.width===0||r.height===0)){n.addToRenderList(r);var s=r.frame,h=s.width,i=s.height,o=u.getTintAppendFloatAlpha,l=a.pipelines.set(r.pipeline,r),f=l.setTexture2D(s.glTexture,r);l.batchTexture(r,s.glTexture,h,i,r.x,r.y,h/r.style.resolution,i/r.style.resolution,r.scaleX,r.scaleY,r.rotation,r.flipX,r.flipY,r.scrollFactorX,r.scrollFactorY,r.displayOriginX,r.displayOriginY,0,0,h,i,o(r.tintTopLeft,n.alpha*r._alphaTL),o(r.tintTopRight,n.alpha*r._alphaTR),o(r.tintBottomLeft,n.alpha*r._alphaBL),o(r.tintBottomRight,n.alpha*r._alphaBR),r.tintFill,0,0,n,e,!1,f)}};c.exports=p},20839:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(27919),p=t(83419),a=t(31401),r=t(95643),n=t(98439),e=t(68703),s=t(56295),h=t(45650),i=t(26099),o=8,l=new p({Extends:r,Mixins:[a.Alpha,a.BlendMode,a.ComputedSize,a.Crop,a.Depth,a.Flip,a.GetBounds,a.Mask,a.Origin,a.Pipeline,a.PostPipeline,a.ScrollFactor,a.Tint,a.Transform,a.Visible,s],initialize:function(d,v,m,g,x,S,C){var E=d.sys.renderer;r.call(this,d,"TileSprite");var P=d.sys.textures.get(S),R=P.get(C);R.source.compressionAlgorithm&&(console.warn("TileSprite cannot use compressed texture"),P=d.sys.textures.get("__MISSING"),R=P.get()),P.type==="DynamicTexture"&&(console.warn("TileSprite cannot use Dynamic Texture"),P=d.sys.textures.get("__MISSING"),R=P.get()),!g||!x?(g=g||R.width,x=x||R.height):(g=Math.floor(g),x=Math.floor(x)),this._tilePosition=new i,this._tileScale=new i(1,1),this.dirty=!1,this.renderer=E,this.canvas=u.create(this,g,x),this.context=this.canvas.getContext("2d",{willReadFrequently:!1}),this.displayTexture=P,this.displayFrame=R,this._crop=this.resetCropObject(),this._textureKey=h(),this.texture=d.sys.textures.addCanvas(this._textureKey,this.canvas),this.frame=this.texture.get(),this.potWidth=n(R.width),this.potHeight=n(R.height),this.fillCanvas=u.create2D(this,this.potWidth,this.potHeight),this.fillContext=this.fillCanvas.getContext("2d",{willReadFrequently:!1}),this.fillPattern=null,this.setPosition(v,m),this.setSize(g,x),this.setFrame(C),this.setOriginFromFrame(),this.initPipeline(),this.initPostPipeline(!0)},setTexture:function(f,d){return this.displayTexture=this.scene.sys.textures.get(f),this.setFrame(d)},setFrame:function(f){var d=this.displayTexture.get(f);return this.potWidth=n(d.width),this.potHeight=n(d.height),this.canvas.width=0,!d.cutWidth||!d.cutHeight?this.renderFlags&=~o:this.renderFlags|=o,this.displayFrame=d,this.dirty=!0,this.updateTileTexture(),this},setTilePosition:function(f,d){return f!==void 0&&(this.tilePositionX=f),d!==void 0&&(this.tilePositionY=d),this},setTileScale:function(f,d){return f===void 0&&(f=this.tileScaleX),d===void 0&&(d=f),this.tileScaleX=f,this.tileScaleY=d,this},updateTileTexture:function(){if(!(!this.dirty||!this.renderer)){var f=this.displayFrame;if(f.source.isRenderTexture||f.source.isGLTexture){console.warn("TileSprites can only use Image or Canvas based textures"),this.dirty=!1;return}var d=this.fillContext,v=this.fillCanvas,m=this.potWidth,g=this.potHeight;(!this.renderer||!this.renderer.gl)&&(m=f.cutWidth,g=f.cutHeight),d.clearRect(0,0,m,g),v.width=m,v.height=g,d.drawImage(f.source.image,f.cutX,f.cutY,f.cutWidth,f.cutHeight,0,0,m,g),this.renderer&&this.renderer.gl?this.fillPattern=this.renderer.canvasToTexture(v,this.fillPattern):this.fillPattern=d.createPattern(v,"repeat"),this.updateCanvas(),this.dirty=!1}},updateCanvas:function(){var f=this.canvas;if((f.width!==this.width||f.height!==this.height)&&(f.width=this.width,f.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;return}var d=this.context;this.scene.sys.game.config.antialias||e.disable(d);var v=this._tileScale.x,m=this._tileScale.y,g=this._tilePosition.x,x=this._tilePosition.y;d.clearRect(0,0,this.width,this.height),d.save(),d.scale(v,m),d.translate(-g,-x),d.fillStyle=this.fillPattern,d.fillRect(g,x,this.width/v,this.height/m),d.restore(),this.dirty=!1},preDestroy:function(){this.renderer&&this.renderer.gl&&this.renderer.deleteTexture(this.fillPattern),u.remove(this.canvas),u.remove(this.fillCanvas),this.fillPattern=null,this.fillContext=null,this.fillCanvas=null,this.displayTexture=null,this.displayFrame=null;var f=this.texture;f&&f.destroy(),this.renderer=null},tilePositionX:{get:function(){return this._tilePosition.x},set:function(f){this._tilePosition.x=f,this.dirty=!0}},tilePositionY:{get:function(){return this._tilePosition.y},set:function(f){this._tilePosition.y=f,this.dirty=!0}},tileScaleX:{get:function(){return this._tileScale.x},set:function(f){this._tileScale.x=f,this.dirty=!0}},tileScaleY:{get:function(){return this._tileScale.y},set:function(f){this._tileScale.y=f,this.dirty=!0}}});c.exports=l},46992:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){u.updateCanvas(),p.addToRenderList(u),t.batchSprite(u,u.frame,p,a)};c.exports=y},14167:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(25305),p=t(44603),a=t(23568),r=t(20839);p.register("tileSprite",function(n,e){n===void 0&&(n={});var s=a(n,"x",0),h=a(n,"y",0),i=a(n,"width",512),o=a(n,"height",512),l=a(n,"key",""),f=a(n,"frame",""),d=new r(this.scene,s,h,i,o,l,f);return e!==void 0&&(n.add=e),u(this.scene,d,n),d})},91681:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(20839),p=t(39429);p.register("tileSprite",function(a,r,n,e,s,h){return this.displayList.add(new u(this.scene,a,r,n,e,s,h))})},56295:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(29747),p=u,a=u;p=t(18553),a=t(46992),c.exports={renderWebGL:p,renderCanvas:a}},18553:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(70554),p=function(a,r,n,e){r.updateCanvas();var s=r.width,h=r.height;if(!(s===0||h===0)){n.addToRenderList(r);var i=u.getTintAppendFloatAlpha,o=a.pipelines.set(r.pipeline,r),l=o.setTexture2D(r.fillPattern,r);o.batchTexture(r,r.fillPattern,r.displayFrame.width*r.tileScaleX,r.displayFrame.height*r.tileScaleY,r.x,r.y,s,h,r.scaleX,r.scaleY,r.rotation,r.flipX,r.flipY,r.scrollFactorX,r.scrollFactorY,r.originX*s,r.originY*h,0,0,s,h,i(r.tintTopLeft,n.alpha*r._alphaTL),i(r.tintTopRight,n.alpha*r._alphaTR),i(r.tintBottomLeft,n.alpha*r._alphaBL),i(r.tintBottomRight,n.alpha*r._alphaBR),r.tintFill,r.tilePositionX%r.displayFrame.width/r.displayFrame.width,r.tilePositionY%r.displayFrame.height/r.displayFrame.height,n,e,!1,l)}};c.exports=p},18471:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(45319),p=t(83419),a=t(31401),r=t(51708),n=t(8443),e=t(95643),s=t(36383),h=t(14463),i=t(45650),o=t(10247),l=new p({Extends:e,Mixins:[a.Alpha,a.BlendMode,a.ComputedSize,a.Depth,a.Flip,a.GetBounds,a.Mask,a.Origin,a.Pipeline,a.PostPipeline,a.ScrollFactor,a.TextureCrop,a.Tint,a.Transform,a.Visible,o],initialize:function(d,v,m,g){e.call(this,d,"Video"),this.video,this.videoTexture,this.videoTextureSource,this.snapshotTexture,this.flipY=!1,this._key=i(),this.touchLocked=!1,this.playWhenUnlocked=!1,this.frameReady=!1,this.isStalled=!1,this.failedPlayAttempts=0,this.metadata,this.retry=0,this.retryInterval=500,this._systemMuted=!1,this._codeMuted=!1,this._systemPaused=!1,this._codePaused=!1,this._callbacks={ended:this.completeHandler.bind(this),legacy:this.legacyPlayHandler.bind(this),playing:this.playingHandler.bind(this),seeked:this.seekedHandler.bind(this),seeking:this.seekingHandler.bind(this),stalled:this.stalledHandler.bind(this),suspend:this.stalledHandler.bind(this),waiting:this.stalledHandler.bind(this)},this._loadCallbackHandler=this.loadErrorHandler.bind(this),this._metadataCallbackHandler=this.metadataHandler.bind(this),this._crop=this.resetCropObject(),this.markers={},this._markerIn=0,this._markerOut=0,this._playingMarker=!1,this._lastUpdate=0,this.cacheKey="",this.isSeeking=!1,this._playCalled=!1,this._getFrame=!1,this._rfvCallbackId=0;var x=d.sys.game;this._device=x.device.video,this.setPosition(v,m),this.setSize(256,256),this.initPipeline(),this.initPostPipeline(!0),x.events.on(n.PAUSE,this.globalPause,this),x.events.on(n.RESUME,this.globalResume,this);var S=d.sys.sound;S&&S.on(h.GLOBAL_MUTE,this.globalMute,this),g&&this.load(g)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},load:function(f){var d=this.scene.sys.cache.video.get(f);return d?(this.cacheKey=f,this.loadHandler(d.url,d.noAudio,d.crossOrigin)):console.warn("No video in cache for key: "+f),this},changeSource:function(f,d,v,m,g){d===void 0&&(d=!0),v===void 0&&(v=!1),this.cacheKey!==f&&(this.load(f),d&&this.play(v,m,g))},getVideoKey:function(){return this.cacheKey},loadURL:function(f,d,v){d===void 0&&(d=!1);var m=this._device.getVideoURL(f);return m?(this.cacheKey="",this.loadHandler(m.url,d,v)):console.warn("No supported video format found for "+f),this},loadMediaStream:function(f,d,v){return this.loadHandler(null,d,v,f)},loadHandler:function(f,d,v,m){d||(d=!1);var g=this.video;if(g?(this.removeLoadEventHandlers(),this.stop()):(g=document.createElement("video"),g.controls=!1,g.setAttribute("playsinline","playsinline"),g.setAttribute("preload","auto"),g.setAttribute("disablePictureInPicture","true")),d?(g.muted=!0,g.defaultMuted=!0,g.setAttribute("autoplay","autoplay")):(g.muted=!1,g.defaultMuted=!1,g.removeAttribute("autoplay")),v?g.setAttribute("crossorigin",v):g.removeAttribute("crossorigin"),m)if("srcObject"in g)try{g.srcObject=m}catch(S){if(S.name!=="TypeError")throw S;g.src=URL.createObjectURL(m)}else g.src=URL.createObjectURL(m);else g.src=f;this.retry=0,this.video=g,this._playCalled=!1,g.load(),this.addLoadEventHandlers();var x=this.scene.sys.textures.get(this._key);return this.setTexture(x),this},requestVideoFrame:function(f,d){var v=this.video;if(v){var m=d.width,g=d.height,x=this.videoTexture,S=this.videoTextureSource,C=!x||S.source!==v;C?(this._codePaused=v.paused,this._codeMuted=v.muted,x?(S.source=v,S.width=m,S.height=g,x.get().setSize(m,g)):(x=this.scene.sys.textures.create(this._key,v,m,g),x.add("__BASE",0,0,0,m,g),this.setTexture(x),this.videoTexture=x,this.videoTextureSource=x.source[0],this.videoTextureSource.setFlipY(this.flipY),this.emit(r.VIDEO_TEXTURE,this,x)),this.setSizeToFrame(),this.updateDisplayOrigin()):S.update(),this.isStalled=!1,this.metadata=d;var E=d.mediaTime;C&&(this._lastUpdate=E,this.emit(r.VIDEO_CREATED,this,m,g),this.frameReady||(this.frameReady=!0,this.emit(r.VIDEO_PLAY,this))),this._playingMarker?E>=this._markerOut&&(v.loop?(v.currentTime=this._markerIn,this.emit(r.VIDEO_LOOP,this)):(this.stop(!1),this.emit(r.VIDEO_COMPLETE,this))):E-1&&v>d&&v=0&&!isNaN(v)&&v>d&&(this.markers[f]=[d,v]),this},playMarker:function(f,d){var v=this.markers[f];return v&&this.play(d,v[0],v[1]),this},removeMarker:function(f){return delete this.markers[f],this},snapshot:function(f,d){return f===void 0&&(f=this.width),d===void 0&&(d=this.height),this.snapshotArea(0,0,this.width,this.height,f,d)},snapshotArea:function(f,d,v,m,g,x){f===void 0&&(f=0),d===void 0&&(d=0),v===void 0&&(v=this.width),m===void 0&&(m=this.height),g===void 0&&(g=v),x===void 0&&(x=m);var S=this.video,C=this.snapshotTexture;return C?(C.setSize(g,x),S&&C.context.drawImage(S,f,d,v,m,0,0,g,x)):(C=this.scene.sys.textures.createCanvas(i(),g,x),this.snapshotTexture=C,S&&C.context.drawImage(S,f,d,v,m,0,0,g,x)),C.update()},saveSnapshotTexture:function(f){return this.snapshotTexture?this.scene.sys.textures.renameTexture(this.snapshotTexture.key,f):this.snapshotTexture=this.scene.sys.textures.createCanvas(f,this.width,this.height),this.snapshotTexture},playSuccess:function(){if(this._playCalled){this.addEventHandlers(),this._codePaused=!1,this.touchLocked&&(this.touchLocked=!1,this.emit(r.VIDEO_UNLOCKED,this));var f=this.scene.sys.sound;f&&f.mute&&this.setMute(!0),this._markerIn>-1&&(this.video.currentTime=this._markerIn)}},playError:function(f){var d=f.name;d==="NotAllowedError"?(this.touchLocked=!0,this.playWhenUnlocked=!0,this.failedPlayAttempts=1,this.emit(r.VIDEO_LOCKED,this)):d==="NotSupportedError"?(this.stop(!1),this.emit(r.VIDEO_UNSUPPORTED,this,f)):(this.stop(!1),this.emit(r.VIDEO_ERROR,this,f))},legacyPlayHandler:function(){var f=this.video;f&&(this.playSuccess(),f.removeEventListener("playing",this._callbacks.legacy))},playingHandler:function(){this.isStalled=!1,this.emit(r.VIDEO_PLAYING,this)},loadErrorHandler:function(f){this.stop(!1),this.emit(r.VIDEO_ERROR,this,f)},metadataHandler:function(f){this.emit(r.VIDEO_METADATA,this,f)},setSizeToFrame:function(f){f||(f=this.frame),this.width=f.realWidth,this.height=f.realHeight,this.scaleX!==1&&(this.scaleX=this.displayWidth/this.width),this.scaleY!==1&&(this.scaleY=this.displayHeight/this.height);var d=this.input;return d&&!d.customHitArea&&(d.hitArea.width=this.width,d.hitArea.height=this.height),this},stalledHandler:function(f){this.isStalled=!0,this.emit(r.VIDEO_STALLED,this,f)},completeHandler:function(){this._playCalled=!1,this.emit(r.VIDEO_COMPLETE,this)},preUpdate:function(f,d){var v=this.video;!v||!this._playCalled||this.touchLocked&&this.playWhenUnlocked&&(this.retry+=d,this.retry>=this.retryInterval&&(this.createPlayPromise(!1),this.retry=0))},seekTo:function(f){var d=this.video;if(d){var v=d.duration;if(v!==1/0&&!isNaN(v)){var m=v*f;this.setCurrentTime(m)}}return this},getCurrentTime:function(){return this.video?this.video.currentTime:0},setCurrentTime:function(f){var d=this.video;if(d){if(typeof f=="string"){var v=f[0],m=parseFloat(f.substr(1));v==="+"?f=d.currentTime+m:v==="-"&&(f=d.currentTime-m)}d.currentTime=f}return this},seekingHandler:function(){this.isSeeking=!0,this.emit(r.VIDEO_SEEKING,this)},seekedHandler:function(){this.isSeeking=!1,this.emit(r.VIDEO_SEEKED,this)},getProgress:function(){var f=this.video;if(f){var d=f.duration;if(d!==1/0&&!isNaN(d))return f.currentTime/d}return-1},getDuration:function(){return this.video?this.video.duration:0},setMute:function(f){f===void 0&&(f=!0),this._codeMuted=f;var d=this.video;return d&&(d.muted=this._systemMuted?!0:f),this},isMuted:function(){return this._codeMuted},globalMute:function(f,d){this._systemMuted=d;var v=this.video;v&&(v.muted=this._codeMuted?!0:d)},globalPause:function(){this._systemPaused=!0,this.video&&!this.video.ended&&(this.removeEventHandlers(),this.video.pause())},globalResume:function(){this._systemPaused=!1,this.video&&!this._codePaused&&!this.video.ended&&this.createPlayPromise()},setPaused:function(f){f===void 0&&(f=!0);var d=this.video;return this._codePaused=f,d&&!d.ended&&(f?d.paused||(this.removeEventHandlers(),d.pause()):f||(this._playCalled?d.paused&&!this._systemPaused&&this.createPlayPromise():this.play())),this},pause:function(){return this.setPaused(!0)},resume:function(){return this.setPaused(!1)},getVolume:function(){return this.video?this.video.volume:1},setVolume:function(f){return f===void 0&&(f=1),this.video&&(this.video.volume=u(f,0,1)),this},getPlaybackRate:function(){return this.video?this.video.playbackRate:1},setPlaybackRate:function(f){return this.video&&(this.video.playbackRate=f),this},getLoop:function(){return this.video?this.video.loop:!1},setLoop:function(f){return f===void 0&&(f=!0),this.video&&(this.video.loop=f),this},isPlaying:function(){return this.video?!(this.video.paused||this.video.ended):!1},isPaused:function(){return this.video&&this._playCalled&&this.video.paused||this._codePaused||this._systemPaused},saveTexture:function(f,d){return d===void 0&&(d=!1),this.videoTexture&&(this.scene.sys.textures.renameTexture(this._key,f),this.videoTextureSource.setFlipY(d)),this._key=f,this.flipY=d,!!this.videoTexture},stop:function(f){f===void 0&&(f=!0);var d=this.video;return d&&(this.removeEventHandlers(),d.cancelVideoFrameCallback(this._rfvCallbackId),d.pause()),this.retry=0,this._playCalled=!1,f&&this.emit(r.VIDEO_STOP,this),this},removeVideoElement:function(){var f=this.video;if(f){for(f.parentNode&&f.parentNode.removeChild(f);f.hasChildNodes();)f.removeChild(f.firstChild);f.removeAttribute("autoplay"),f.removeAttribute("src"),this.video=null}},preDestroy:function(){this.stop(!1),this.removeLoadEventHandlers(),this.removeVideoElement();var f=this.scene.sys.game.events;f.off(n.PAUSE,this.globalPause,this),f.off(n.RESUME,this.globalResume,this);var d=this.scene.sys.sound;d&&d.off(h.GLOBAL_MUTE,this.globalMute,this)}});c.exports=l},58352:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){u.videoTexture&&(p.addToRenderList(u),t.batchSprite(u,u.frame,p,a))};c.exports=y},11511:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(25305),p=t(44603),a=t(23568),r=t(18471);p.register("video",function(n,e){n===void 0&&(n={});var s=a(n,"key",null),h=new r(this.scene,0,0,s);return e!==void 0&&(n.add=e),u(this.scene,h,n),h})},89025:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(18471),p=t(39429);p.register("video",function(a,r,n){return this.displayList.add(new u(this.scene,a,r,n))})},10247:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(29747),p=u,a=u;p=t(29849),a=t(58352),c.exports={renderWebGL:p,renderCanvas:a}},29849:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){u.videoTexture&&(p.addToRenderList(u),u.pipeline.batchSprite(u,p,a))};c.exports=y},41481:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(10312),p=t(96503),a=t(87902),r=t(83419),n=t(31401),e=t(95643),s=t(87841),h=t(37303),i=new r({Extends:e,Mixins:[n.Depth,n.GetBounds,n.Origin,n.Transform,n.ScrollFactor,n.Visible],initialize:function(l,f,d,v,m){v===void 0&&(v=1),m===void 0&&(m=v),e.call(this,l,"Zone"),this.setPosition(f,d),this.width=v,this.height=m,this.blendMode=u.NORMAL,this.updateDisplayOrigin()},displayWidth:{get:function(){return this.scaleX*this.width},set:function(o){this.scaleX=o/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(o){this.scaleY=o/this.height}},setSize:function(o,l,f){f===void 0&&(f=!0),this.width=o,this.height=l,this.updateDisplayOrigin();var d=this.input;return f&&d&&!d.customHitArea&&(d.hitArea.width=o,d.hitArea.height=l),this},setDisplaySize:function(o,l){return this.displayWidth=o,this.displayHeight=l,this},setCircleDropZone:function(o){return this.setDropZone(new p(0,0,o),a)},setRectangleDropZone:function(o,l){return this.setDropZone(new s(0,0,o,l),h)},setDropZone:function(o,l){return this.input||this.setInteractive(o,l,!0),this},setAlpha:function(){},setBlendMode:function(){},renderCanvas:function(o,l,f){f.addToRenderList(l)},renderWebGL:function(o,l,f){f.addToRenderList(l)}});c.exports=i},95261:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(44603),p=t(23568),a=t(41481);u.register("zone",function(r){var n=p(r,"x",0),e=p(r,"y",0),s=p(r,"width",1),h=p(r,"height",s);return new a(this.scene,n,e,s,h)})},84175:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(41481),p=t(39429);p.register("zone",function(a,r,n,e){return this.displayList.add(new u(this.scene,a,r,n,e))})},95166:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t.radius>0?Math.PI*t.radius*t.radius:0};c.exports=y},96503:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(87902),a=t(26241),r=t(79124),n=t(23777),e=t(28176),s=new u({initialize:function(i,o,l){i===void 0&&(i=0),o===void 0&&(o=0),l===void 0&&(l=0),this.type=n.CIRCLE,this.x=i,this.y=o,this._radius=l,this._diameter=l*2},contains:function(h,i){return p(this,h,i)},getPoint:function(h,i){return a(this,h,i)},getPoints:function(h,i,o){return r(this,h,i,o)},getRandomPoint:function(h){return e(this,h)},setTo:function(h,i,o){return this.x=h,this.y=i,this._radius=o,this._diameter=o*2,this},setEmpty:function(){return this._radius=0,this._diameter=0,this},setPosition:function(h,i){return i===void 0&&(i=h),this.x=h,this.y=i,this},isEmpty:function(){return this._radius<=0},radius:{get:function(){return this._radius},set:function(h){this._radius=h,this._diameter=h*2}},diameter:{get:function(){return this._diameter},set:function(h){this._diameter=h,this._radius=h*.5}},left:{get:function(){return this.x-this._radius},set:function(h){this.x=h+this._radius}},right:{get:function(){return this.x+this._radius},set:function(h){this.x=h-this._radius}},top:{get:function(){return this.y-this._radius},set:function(h){this.y=h+this._radius}},bottom:{get:function(){return this.y+this._radius},set:function(h){this.y=h-this._radius}}});c.exports=s},71562:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return 2*(Math.PI*t.radius)};c.exports=y},92110:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(2141),p=function(a,r,n){return n===void 0&&(n=new u),n.x=a.x+a.radius*Math.cos(r),n.y=a.y+a.radius*Math.sin(r),n};c.exports=p},42250:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(96503),p=function(a){return new u(a.x,a.y,a.radius)};c.exports=p},87902:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){if(t.radius>0&&u>=t.left&&u<=t.right&&p>=t.top&&p<=t.bottom){var a=(t.x-u)*(t.x-u),r=(t.y-p)*(t.y-p);return a+r<=t.radius*t.radius}else return!1};c.exports=y},5698:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(87902),p=function(a,r){return u(a,r.x,r.y)};c.exports=p},70588:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(87902),p=function(a,r){return u(a,r.x,r.y)&&u(a,r.right,r.y)&&u(a,r.x,r.bottom)&&u(a,r.right,r.bottom)};c.exports=p},26394:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return u.setTo(t.x,t.y,t.radius)};c.exports=y},76278:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return t.x===u.x&&t.y===u.y&&t.radius===u.radius};c.exports=y},2074:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(87841),p=function(a,r){return r===void 0&&(r=new u),r.x=a.left,r.y=a.top,r.width=a.diameter,r.height=a.diameter,r};c.exports=p},26241:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(92110),p=t(62945),a=t(36383),r=t(2141),n=function(e,s,h){h===void 0&&(h=new r);var i=p(s,0,a.PI2);return u(e,i,h)};c.exports=n},79124:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(71562),p=t(92110),a=t(62945),r=t(36383),n=function(e,s,h,i){i===void 0&&(i=[]),!s&&h>0&&(s=u(e)/h);for(var o=0;o{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){return t.x+=u,t.y+=p,t};c.exports=y},39212:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return t.x+=u.x,t.y+=u.y,t};c.exports=y},28176:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(2141),p=function(a,r){r===void 0&&(r=new u);var n=2*Math.PI*Math.random(),e=Math.random()+Math.random(),s=e>1?2-e:e,h=s*Math.cos(n),i=s*Math.sin(n);return r.x=a.x+h*a.radius,r.y=a.y+i*a.radius,r};c.exports=p},88911:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(96503);u.Area=t(95166),u.Circumference=t(71562),u.CircumferencePoint=t(92110),u.Clone=t(42250),u.Contains=t(87902),u.ContainsPoint=t(5698),u.ContainsRect=t(70588),u.CopyFrom=t(26394),u.Equals=t(76278),u.GetBounds=t(2074),u.GetPoint=t(26241),u.GetPoints=t(79124),u.Offset=t(50884),u.OffsetPoint=t(39212),u.Random=t(28176),c.exports=u},23777:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={CIRCLE:0,ELLIPSE:1,LINE:2,POINT:3,POLYGON:4,RECTANGLE:5,TRIANGLE:6};c.exports=y},78874:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t.isEmpty()?0:t.getMajorRadius()*t.getMinorRadius()*Math.PI};c.exports=y},92990:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){var u=t.width/2,p=t.height/2,a=Math.pow(u-p,2)/Math.pow(u+p,2);return Math.PI*(u+p)*(1+3*a/(10+Math.sqrt(4-3*a)))};c.exports=y},79522:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(2141),p=function(a,r,n){n===void 0&&(n=new u);var e=a.width/2,s=a.height/2;return n.x=a.x+e*Math.cos(r),n.y=a.y+s*Math.sin(r),n};c.exports=p},58102:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(8497),p=function(a){return new u(a.x,a.y,a.width,a.height)};c.exports=p},81154:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){if(t.width<=0||t.height<=0)return!1;var a=(u-t.x)/t.width,r=(p-t.y)/t.height;return a*=a,r*=r,a+r<.25};c.exports=y},46662:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(81154),p=function(a,r){return u(a,r.x,r.y)};c.exports=p},1632:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(81154),p=function(a,r){return u(a,r.x,r.y)&&u(a,r.right,r.y)&&u(a,r.x,r.bottom)&&u(a,r.right,r.bottom)};c.exports=p},65534:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return u.setTo(t.x,t.y,t.width,t.height)};c.exports=y},8497:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(81154),a=t(90549),r=t(48320),n=t(23777),e=t(24820),s=new u({initialize:function(i,o,l,f){i===void 0&&(i=0),o===void 0&&(o=0),l===void 0&&(l=0),f===void 0&&(f=0),this.type=n.ELLIPSE,this.x=i,this.y=o,this.width=l,this.height=f},contains:function(h,i){return p(this,h,i)},getPoint:function(h,i){return a(this,h,i)},getPoints:function(h,i,o){return r(this,h,i,o)},getRandomPoint:function(h){return e(this,h)},setTo:function(h,i,o,l){return this.x=h,this.y=i,this.width=o,this.height=l,this},setEmpty:function(){return this.width=0,this.height=0,this},setPosition:function(h,i){return i===void 0&&(i=h),this.x=h,this.y=i,this},setSize:function(h,i){return i===void 0&&(i=h),this.width=h,this.height=i,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(h){this.x=h+this.width/2}},right:{get:function(){return this.x+this.width/2},set:function(h){this.x=h-this.width/2}},top:{get:function(){return this.y-this.height/2},set:function(h){this.y=h+this.height/2}},bottom:{get:function(){return this.y+this.height/2},set:function(h){this.y=h-this.height/2}}});c.exports=s},36146:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return t.x===u.x&&t.y===u.y&&t.width===u.width&&t.height===u.height};c.exports=y},23694:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(87841),p=function(a,r){return r===void 0&&(r=new u),r.x=a.left,r.y=a.top,r.width=a.width,r.height=a.height,r};c.exports=p},90549:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(79522),p=t(62945),a=t(36383),r=t(2141),n=function(e,s,h){h===void 0&&(h=new r);var i=p(s,0,a.PI2);return u(e,i,h)};c.exports=n},48320:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(92990),p=t(79522),a=t(62945),r=t(36383),n=function(e,s,h,i){i===void 0&&(i=[]),!s&&h>0&&(s=u(e)/h);for(var o=0;o{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){return t.x+=u,t.y+=p,t};c.exports=y},44808:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return t.x+=u.x,t.y+=u.y,t};c.exports=y},24820:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(2141),p=function(a,r){r===void 0&&(r=new u);var n=Math.random()*Math.PI*2,e=Math.sqrt(Math.random());return r.x=a.x+e*Math.cos(n)*a.width/2,r.y=a.y+e*Math.sin(n)*a.height/2,r};c.exports=p},49203:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(8497);u.Area=t(78874),u.Circumference=t(92990),u.CircumferencePoint=t(79522),u.Clone=t(58102),u.Contains=t(81154),u.ContainsPoint=t(46662),u.ContainsRect=t(1632),u.CopyFrom=t(65534),u.Equals=t(36146),u.GetBounds=t(23694),u.GetPoint=t(90549),u.GetPoints=t(48320),u.Offset=t(73424),u.OffsetPoint=t(44808),u.Random=t(24820),c.exports=u},55738:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(23777),p=t(79291),a={Circle:t(88911),Ellipse:t(49203),Intersects:t(91865),Line:t(2529),Mesh:t(73090),Point:t(43711),Polygon:t(58423),Rectangle:t(93232),Triangle:t(84435)};a=p(!1,a,u),c.exports=a},2044:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(20339),p=function(a,r){return u(a.x,a.y,r.x,r.y)<=a.radius+r.radius};c.exports=p},81491:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){var p=u.width/2,a=u.height/2,r=Math.abs(t.x-u.x-p),n=Math.abs(t.y-u.y-a),e=p+t.radius,s=a+t.radius;if(r>e||n>s)return!1;if(r<=p||n<=a)return!0;var h=r-p,i=n-a,o=h*h,l=i*i,f=t.radius*t.radius;return o+l<=f};c.exports=y},63376:(c,y,t)=>{/** + * @author Florian Vazelle + * @author Geoffrey Glaive + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(2141),p=t(2044),a=function(r,n,e){if(e===void 0&&(e=[]),p(r,n)){var s=r.x,h=r.y,i=r.radius,o=n.x,l=n.y,f=n.radius,d,v,m,g,x;if(h===l)x=(f*f-i*i-o*o+s*s)/(2*(s-o)),d=1,v=-2*l,m=o*o+x*x-2*o*x+l*l-f*f,g=v*v-4*d*m,g===0?e.push(new u(x,-v/(2*d))):g>0&&(e.push(new u(x,(-v+Math.sqrt(g))/(2*d))),e.push(new u(x,(-v-Math.sqrt(g))/(2*d))));else{var S=(s-o)/(h-l),C=(f*f-i*i-o*o+s*s-l*l+h*h)/(2*(h-l));d=S*S+1,v=2*h*S-2*C*S-2*s,m=s*s+h*h+C*C-i*i-2*h*C,g=v*v-4*d*m,g===0?(x=-v/(2*d),e.push(new u(x,C-x*S))):g>0&&(x=(-v+Math.sqrt(g))/(2*d),e.push(new u(x,C-x*S)),x=(-v-Math.sqrt(g))/(2*d),e.push(new u(x,C-x*S)))}}return e};c.exports=a},97439:(c,y,t)=>{/** + * @author Florian Vazelle + * @author Geoffrey Glaive + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(4042),p=t(81491),a=function(r,n,e){if(e===void 0&&(e=[]),p(r,n)){var s=n.getLineA(),h=n.getLineB(),i=n.getLineC(),o=n.getLineD();u(s,r,e),u(h,r,e),u(i,r,e),u(o,r,e)}return e};c.exports=a},4042:(c,y,t)=>{/** + * @author Florian Vazelle + * @author Geoffrey Glaive + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(2141),p=t(80462),a=function(r,n,e){if(e===void 0&&(e=[]),p(r,n)){var s=r.x1,h=r.y1,i=r.x2,o=r.y2,l=n.x,f=n.y,d=n.radius,v=i-s,m=o-h,g=s-l,x=h-f,S=v*v+m*m,C=2*(v*g+m*x),E=g*g+x*x-d*d,P=C*C-4*S*E,R,M;if(P===0){var A=-C/(2*S);R=s+A*v,M=h+A*m,A>=0&&A<=1&&e.push(new u(R,M))}else if(P>0){var L=(-C-Math.sqrt(P))/(2*S);R=s+L*v,M=h+L*m,L>=0&&L<=1&&e.push(new u(R,M));var w=(-C+Math.sqrt(P))/(2*S);R=s+w*v,M=h+w*m,w>=0&&w<=1&&e.push(new u(R,M))}}return e};c.exports=a},36100:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(25836),p=function(a,r,n,e){n===void 0&&(n=!1);var s=a.x1,h=a.y1,i=a.x2,o=a.y2,l=r.x1,f=r.y1,d=r.x2,v=r.y2,m=i-s,g=o-h,x=d-l,S=v-f,C=m*S-g*x;if(C===0)return null;var E,P,R;if(n){if(E=(m*(f-h)+g*(s-l))/(x*g-S*m),m!==0)P=(l+x*E-s)/m;else if(g!==0)P=(f+S*E-h)/g;else return null;if(P<0||E<0||E>1)return null;R=P}else{if(E=((l-s)*S-(f-h)*x)/C,P=((h-f)*m-(s-l)*g)/C,E<0||E>1||P<0||P>1)return null;R=E}return e===void 0&&(e=new u),e.set(s+m*R,h+g*R,R)};c.exports=p},3073:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(36100),p=t(23031),a=t(25836),r=new p,n=new a,e=function(s,h,i,o){i===void 0&&(i=!1),o===void 0&&(o=new a);var l=!1;o.set(),n.set();for(var f=h[h.length-1],d=0;d{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(25836),p=t(61369),a=t(3073),r=new u,n=function(e,s,h,i){i===void 0&&(i=new p),Array.isArray(s)||(s=[s]);var o=!1;i.set(),r.set();for(var l=0;l{/** + * @author Florian Vazelle + * @author Geoffrey Glaive + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(2141),p=t(76112),a=t(92773),r=function(n,e,s){if(s===void 0&&(s=[]),a(n,e))for(var h=e.getLineA(),i=e.getLineB(),o=e.getLineC(),l=e.getLineD(),f=[new u,new u,new u,new u],d=[p(h,n,f[0]),p(i,n,f[1]),p(o,n,f[2]),p(l,n,f[3])],v=0;v<4;v++)d[v]&&s.push(f[v]);return s};c.exports=r},71147:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(61369),p=t(56362),a=t(23031),r=new a;function n(h,i,o,l,f){var d=Math.cos(h),v=Math.sin(h);r.setTo(i,o,i+d,o+v);var m=p(r,l,!0);m&&f.push(new u(m.x,m.y,h,m.w))}function e(h,i){return h.z-i.z}var s=function(h,i,o){Array.isArray(o)||(o=[o]);for(var l=[],f=[],d=0;d{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(87841),p=t(59996),a=function(r,n,e){return e===void 0&&(e=new u),p(r,n)&&(e.x=Math.max(r.x,n.x),e.y=Math.max(r.y,n.y),e.width=Math.min(r.right,n.right)-e.x,e.height=Math.min(r.bottom,n.bottom)-e.y),e};c.exports=a},52784:(c,y,t)=>{/** + * @author Florian Vazelle + * @author Geoffrey Glaive + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(60646),p=t(59996),a=function(r,n,e){if(e===void 0&&(e=[]),p(r,n)){var s=r.getLineA(),h=r.getLineB(),i=r.getLineC(),o=r.getLineD();u(s,n,e),u(h,n,e),u(i,n,e),u(o,n,e)}return e};c.exports=a},26341:(c,y,t)=>{/** + * @author Florian Vazelle + * @author Geoffrey Glaive + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(89265),p=t(60646),a=function(r,n,e){if(e===void 0&&(e=[]),u(r,n)){var s=n.getLineA(),h=n.getLineB(),i=n.getLineC();p(s,r,e),p(h,r,e),p(i,r,e)}return e};c.exports=a},38720:(c,y,t)=>{/** + * @author Florian Vazelle + * @author Geoffrey Glaive + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(4042),p=t(67636),a=function(r,n,e){if(e===void 0&&(e=[]),p(r,n)){var s=r.getLineA(),h=r.getLineB(),i=r.getLineC();u(s,n,e),u(h,n,e),u(i,n,e)}return e};c.exports=a},13882:(c,y,t)=>{/** + * @author Florian Vazelle + * @author Geoffrey Glaive + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(2141),p=t(2822),a=t(76112),r=function(n,e,s){if(s===void 0&&(s=[]),p(n,e))for(var h=n.getLineA(),i=n.getLineB(),o=n.getLineC(),l=[new u,new u,new u],f=[a(h,e,l[0]),a(i,e,l[1]),a(o,e,l[2])],d=0;d<3;d++)f[d]&&s.push(l[d]);return s};c.exports=r},75636:(c,y,t)=>{/** + * @author Florian Vazelle + * @author Geoffrey Glaive + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(82944),p=t(13882),a=function(r,n,e){if(e===void 0&&(e=[]),u(r,n)){var s=n.getLineA(),h=n.getLineB(),i=n.getLineC();p(r,s,e),p(r,h,e),p(r,i,e)}return e};c.exports=a},80462:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(87902),p=t(2141),a=new p,r=function(n,e,s){if(s===void 0&&(s=a),u(e,n.x1,n.y1))return s.x=n.x1,s.y=n.y1,!0;if(u(e,n.x2,n.y2))return s.x=n.x2,s.y=n.y2,!0;var h=n.x2-n.x1,i=n.y2-n.y1,o=e.x-n.x1,l=e.y-n.y1,f=h*h+i*i,d=h,v=i;if(f>0){var m=(o*h+l*i)/f;d*=m,v*=m}s.x=n.x1+d,s.y=n.y1+v;var g=d*d+v*v;return g<=f&&d*h+v*i>=0&&u(e,s.x,s.y)};c.exports=r},76112:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){var a=t.x1,r=t.y1,n=t.x2,e=t.y2,s=u.x1,h=u.y1,i=u.x2,o=u.y2;if(a===n&&r===e||s===i&&h===o)return!1;var l=(o-h)*(n-a)-(i-s)*(e-r);if(l===0)return!1;var f=((i-s)*(r-h)-(o-h)*(a-s))/l,d=((n-a)*(r-h)-(e-r)*(a-s))/l;return f<0||f>1||d<0||d>1?!1:(p&&(p.x=a+f*(n-a),p.y=r+f*(e-r)),!0)};c.exports=y},92773:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){var p=t.x1,a=t.y1,r=t.x2,n=t.y2,e=u.x,s=u.y,h=u.right,i=u.bottom,o=0;if(p>=e&&p<=h&&a>=s&&a<=i||r>=e&&r<=h&&n>=s&&n<=i)return!0;if(p=e){if(o=a+(n-a)*(e-p)/(r-p),o>s&&o<=i)return!0}else if(p>h&&r<=h&&(o=a+(n-a)*(h-p)/(r-p),o>=s&&o<=i))return!0;if(a=s){if(o=p+(r-p)*(s-a)/(n-a),o>=e&&o<=h)return!0}else if(a>i&&n<=i&&(o=p+(r-p)*(i-a)/(n-a),o>=e&&o<=h))return!0;return!1};c.exports=y},16204:c=>{/** + * @author Richard Davey + * @author Florian Mertens + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){p===void 0&&(p=1);var a=u.x1,r=u.y1,n=u.x2,e=u.y2,s=t.x,h=t.y,i=(n-a)*(n-a)+(e-r)*(e-r);if(i===0)return!1;var o=((s-a)*(n-a)+(h-r)*(e-r))/i;if(o<0)return Math.sqrt((a-s)*(a-s)+(r-h)*(r-h))<=p;if(o>=0&&o<=1){var l=((r-h)*(n-a)-(a-s)*(e-r))/i;return Math.abs(l)*Math.sqrt(i)<=p}else return Math.sqrt((n-s)*(n-s)+(e-h)*(e-h))<=p};c.exports=y},14199:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(16204),p=function(a,r){if(!u(a,r))return!1;var n=Math.min(r.x1,r.x2),e=Math.max(r.x1,r.x2),s=Math.min(r.y1,r.y2),h=Math.max(r.y1,r.y2);return a.x>=n&&a.x<=e&&a.y>=s&&a.y<=h};c.exports=p},59996:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return t.width<=0||t.height<=0||u.width<=0||u.height<=0?!1:!(t.rightu.right||t.y>u.bottom)};c.exports=y},89265:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(76112),p=t(37303),a=t(48653),r=t(77493),n=function(e,s){if(s.left>e.right||s.righte.bottom||s.bottom0};c.exports=n},84411:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a,r,n){return n===void 0&&(n=0),!(u>t.right+n||pt.bottom+n||r{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(80462),p=t(10690),a=function(r,n){return r.left>n.right||r.rightn.bottom||r.bottom{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(76112),p=function(a,r){return!!(a.contains(r.x1,r.y1)||a.contains(r.x2,r.y2)||u(a.getLineA(),r)||u(a.getLineB(),r)||u(a.getLineC(),r))};c.exports=p},82944:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(48653),p=t(71694),a=t(76112),r=function(n,e){if(n.left>e.right||n.righte.bottom||n.bottom0||(d=p(e),v=u(n,d,!0),v.length>0)};c.exports=r},91865:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={CircleToCircle:t(2044),CircleToRectangle:t(81491),GetCircleToCircle:t(63376),GetCircleToRectangle:t(97439),GetLineToCircle:t(4042),GetLineToLine:t(36100),GetLineToPoints:t(3073),GetLineToPolygon:t(56362),GetLineToRectangle:t(60646),GetRaysFromPointToPolygon:t(71147),GetRectangleIntersection:t(68389),GetRectangleToRectangle:t(52784),GetRectangleToTriangle:t(26341),GetTriangleToCircle:t(38720),GetTriangleToLine:t(13882),GetTriangleToTriangle:t(75636),LineToCircle:t(80462),LineToLine:t(76112),LineToRectangle:t(92773),PointToLine:t(16204),PointToLineSegment:t(14199),RectangleToRectangle:t(59996),RectangleToTriangle:t(89265),RectangleToValues:t(84411),TriangleToCircle:t(67636),TriangleToLine:t(2822),TriangleToTriangle:t(82944)}},91938:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return Math.atan2(t.y2-t.y1,t.x2-t.x1)};c.exports=y},84993:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){u===void 0&&(u=1),p===void 0&&(p=[]);var a=Math.round(t.x1),r=Math.round(t.y1),n=Math.round(t.x2),e=Math.round(t.y2),s=Math.abs(n-a),h=Math.abs(e-r),i=a-h&&(l-=h,a+=i),d{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){var a=u-(t.x1+t.x2)/2,r=p-(t.y1+t.y2)/2;return t.x1+=a,t.y1+=r,t.x2+=a,t.y2+=r,t};c.exports=y},31116:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(23031),p=function(a){return new u(a.x1,a.y1,a.x2,a.y2)};c.exports=p},59944:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return u.setTo(t.x1,t.y1,t.x2,t.y2)};c.exports=y},59220:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return t.x1===u.x1&&t.y1===u.y1&&t.x2===u.x2&&t.y2===u.y2};c.exports=y},78177:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(35001),p=function(a,r,n){n===void 0&&(n=r);var e=u(a),s=a.x2-a.x1,h=a.y2-a.y1;return r&&(a.x1=a.x1-s/e*r,a.y1=a.y1-h/e*r),n&&(a.x2=a.x2+s/e*n,a.y2=a.y2+h/e*n),a};c.exports=p},26708:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(52816),p=t(6113),a=t(2141),r=function(n,e,s,h,i){h===void 0&&(h=0),i===void 0&&(i=[]);var o=[],l=n.x1,f=n.y1,d=n.x2-l,v=n.y2-f,m=p(e,i),g,x,S=s-1;for(g=0;g0){var C=o[0],E=[C];for(g=1;g=h&&(E.push(P),C=P)}var R=o[o.length-1];return u(C,R){/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(2141),p=function(a,r){return r===void 0&&(r=new u),r.x=(a.x1+a.x2)/2,r.y=(a.y1+a.y2)/2,r};c.exports=p},99569:(c,y,t)=>{/** + * @author Richard Davey + * @author Florian Mertens + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(2141),p=function(a,r,n){n===void 0&&(n=new u);var e=a.x1,s=a.y1,h=a.x2,i=a.y2,o=(h-e)*(h-e)+(i-s)*(i-s);if(o===0)return n;var l=((r.x-e)*(h-e)+(r.y-s)*(i-s))/o;return n.x=e+l*(h-e),n.y=s+l*(i-s),n};c.exports=p},34638:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(36383),p=t(91938),a=t(2141),r=function(n,e){e===void 0&&(e=new a);var s=p(n)-u.TAU;return e.x=Math.cos(s),e.y=Math.sin(s),e};c.exports=r},13151:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(2141),p=function(a,r,n){return n===void 0&&(n=new u),n.x=a.x1+(a.x2-a.x1)*r,n.y=a.y1+(a.y2-a.y1)*r,n};c.exports=p},15258:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(35001),p=t(2141),a=function(r,n,e,s){s===void 0&&(s=[]),!n&&e>0&&(n=u(r)/e);for(var h=r.x1,i=r.y1,o=r.x2,l=r.y2,f=0;f{/** + * @author Richard Davey + * @author Florian Mertens + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){var p=t.x1,a=t.y1,r=t.x2,n=t.y2,e=(r-p)*(r-p)+(n-a)*(n-a);if(e===0)return!1;var s=((a-u.y)*(r-p)-(p-u.x)*(n-a))/e;return Math.abs(s)*Math.sqrt(e)};c.exports=y},98770:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return Math.abs(t.y1-t.y2)};c.exports=y},35001:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return Math.sqrt((t.x2-t.x1)*(t.x2-t.x1)+(t.y2-t.y1)*(t.y2-t.y1))};c.exports=y},23031:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(13151),a=t(15258),r=t(23777),n=t(65822),e=t(26099),s=new u({initialize:function(i,o,l,f){i===void 0&&(i=0),o===void 0&&(o=0),l===void 0&&(l=0),f===void 0&&(f=0),this.type=r.LINE,this.x1=i,this.y1=o,this.x2=l,this.y2=f},getPoint:function(h,i){return p(this,h,i)},getPoints:function(h,i,o){return a(this,h,i,o)},getRandomPoint:function(h){return n(this,h)},setTo:function(h,i,o,l){return h===void 0&&(h=0),i===void 0&&(i=0),o===void 0&&(o=0),l===void 0&&(l=0),this.x1=h,this.y1=i,this.x2=o,this.y2=l,this},setFromObjects:function(h,i){return this.x1=h.x,this.y1=h.y,this.x2=i.x,this.y2=i.y,this},getPointA:function(h){return h===void 0&&(h=new e),h.set(this.x1,this.y1),h},getPointB:function(h){return h===void 0&&(h=new e),h.set(this.x2,this.y2),h},left:{get:function(){return Math.min(this.x1,this.x2)},set:function(h){this.x1<=this.x2?this.x1=h:this.x2=h}},right:{get:function(){return Math.max(this.x1,this.x2)},set:function(h){this.x1>this.x2?this.x1=h:this.x2=h}},top:{get:function(){return Math.min(this.y1,this.y2)},set:function(h){this.y1<=this.y2?this.y1=h:this.y2=h}},bottom:{get:function(){return Math.max(this.y1,this.y2)},set:function(h){this.y1>this.y2?this.y1=h:this.y2=h}}});c.exports=s},64795:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(36383),p=t(15994),a=t(91938),r=function(n){var e=a(n)-u.TAU;return p(e,-Math.PI,Math.PI)};c.exports=r},52616:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(36383),p=t(91938),a=function(r){return Math.cos(p(r)-u.TAU)};c.exports=a},87231:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(36383),p=t(91938),a=function(r){return Math.sin(p(r)-u.TAU)};c.exports=a},89662:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){return t.x1+=u,t.y1+=p,t.x2+=u,t.y2+=p,t};c.exports=y},71165:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return-((t.x2-t.x1)/(t.y2-t.y1))};c.exports=y},65822:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(2141),p=function(a,r){r===void 0&&(r=new u);var n=Math.random();return r.x=a.x1+n*(a.x2-a.x1),r.y=a.y1+n*(a.y2-a.y1),r};c.exports=p},69777:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(91938),p=t(64795),a=function(r,n){return 2*p(n)-Math.PI-u(r)};c.exports=a},39706:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(64400),p=function(a,r){var n=(a.x1+a.x2)/2,e=(a.y1+a.y2)/2;return u(a,n,e,r)};c.exports=p},82585:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(64400),p=function(a,r,n){return u(a,r.x,r.y,n)};c.exports=p},64400:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){var r=Math.cos(a),n=Math.sin(a),e=t.x1-u,s=t.y1-p;return t.x1=e*r-s*n+u,t.y1=e*n+s*r+p,e=t.x2-u,s=t.y2-p,t.x2=e*r-s*n+u,t.y2=e*n+s*r+p,t};c.exports=y},62377:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a,r){return t.x1=u,t.y1=p,t.x2=u+Math.cos(a)*r,t.y2=p+Math.sin(a)*r,t};c.exports=y},71366:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return(t.y2-t.y1)/(t.x2-t.x1)};c.exports=y},10809:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return Math.abs(t.x1-t.x2)};c.exports=y},2529:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(23031);u.Angle=t(91938),u.BresenhamPoints=t(84993),u.CenterOn=t(36469),u.Clone=t(31116),u.CopyFrom=t(59944),u.Equals=t(59220),u.Extend=t(78177),u.GetEasedPoints=t(26708),u.GetMidPoint=t(32125),u.GetNearestPoint=t(99569),u.GetNormal=t(34638),u.GetPoint=t(13151),u.GetPoints=t(15258),u.GetShortestDistance=t(26408),u.Height=t(98770),u.Length=t(35001),u.NormalAngle=t(64795),u.NormalX=t(52616),u.NormalY=t(87231),u.Offset=t(89662),u.PerpSlope=t(71165),u.Random=t(65822),u.ReflectAngle=t(69777),u.Rotate=t(39706),u.RotateAroundPoint=t(82585),u.RotateAroundXY=t(64400),u.SetToAngle=t(62377),u.Slope=t(71366),u.Width=t(10809),c.exports=u},83997:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(87841),a=t(26099);function r(e,s,h,i){var o=e-h,l=s-i,f=o*o+l*l;return Math.sqrt(f)}var n=new u({initialize:function(s,h,i){this.vertex1=s,this.vertex2=h,this.vertex3=i,this.bounds=new p,this._inCenter=new a},getInCenter:function(e){e===void 0&&(e=!0);var s=this.vertex1,h=this.vertex2,i=this.vertex3,o,l,f,d,v,m;e?(o=s.x,l=s.y,f=h.x,d=h.y,v=i.x,m=i.y):(o=s.vx,l=s.vy,f=h.vx,d=h.vy,v=i.vx,m=i.vy);var g=r(v,m,f,d),x=r(o,l,v,m),S=r(f,d,o,l),C=g+x+S;return this._inCenter.set((o*g+f*x+v*S)/C,(l*g+d*x+m*S)/C)},contains:function(e,s,h){var i=this.vertex1,o=this.vertex2,l=this.vertex3,f=i.vx,d=i.vy,v=o.vx,m=o.vy,g=l.vx,x=l.vy;if(h){var S=h.a,C=h.b,E=h.c,P=h.d,R=h.e,M=h.f;f=i.vx*S+i.vy*E+R,d=i.vx*C+i.vy*P+M,v=o.vx*S+o.vy*E+R,m=o.vx*C+o.vy*P+M,g=l.vx*S+l.vy*E+R,x=l.vx*C+l.vy*P+M}var A=g-f,L=x-d,w=v-f,N=m-d,b=e-f,V=s-d,Y=A*A+L*L,G=A*w+L*N,U=A*b+L*V,B=w*w+N*N,I=w*b+N*V,X=Y*B-G*G,K=X===0?0:1/X,Z=(B*U-G*I)*K,J=(Y*I-G*U)*K;return Z>=0&&J>=0&&Z+J<1},isCounterClockwise:function(e){var s=this.vertex1,h=this.vertex2,i=this.vertex3,o=(h.vx-s.vx)*(i.vy-s.vy)-(h.vy-s.vy)*(i.vx-s.vx);return e<=0?o>=0:o<0},load:function(e,s,h,i,o){return h=this.vertex1.load(e,s,h,i,o),h=this.vertex2.load(e,s,h,i,o),h=this.vertex3.load(e,s,h,i,o),h},transformCoordinatesLocal:function(e,s,h,i){return this.vertex1.transformCoordinatesLocal(e,s,h,i),this.vertex2.transformCoordinatesLocal(e,s,h,i),this.vertex3.transformCoordinatesLocal(e,s,h,i),this},updateBounds:function(){var e=this.vertex1,s=this.vertex2,h=this.vertex3,i=this.bounds;return i.x=Math.min(e.vx,s.vx,h.vx),i.y=Math.min(e.vy,s.vy,h.vy),i.width=Math.max(e.vx,s.vx,h.vx)-i.x,i.height=Math.max(e.vy,s.vy,h.vy)-i.y,this},isInView:function(e,s,h,i,o,l,f,d,v,m,g){this.update(i,o,l,f,d,v,m,g);var x=this.vertex1,S=this.vertex2,C=this.vertex3;if(x.ta<=0&&S.ta<=0&&C.ta<=0||s&&!this.isCounterClockwise(h))return!1;var E=this.bounds;E.x=Math.min(x.tx,S.tx,C.tx),E.y=Math.min(x.ty,S.ty,C.ty),E.width=Math.max(x.tx,S.tx,C.tx)-E.x,E.height=Math.max(x.ty,S.ty,C.ty)-E.y;var P=e.x+e.width,R=e.y+e.height;return E.width<=0||E.height<=0||e.width<=0||e.height<=0?!1:!(E.rightP||E.y>R)},scrollUV:function(e,s){return this.vertex1.scrollUV(e,s),this.vertex2.scrollUV(e,s),this.vertex3.scrollUV(e,s),this},scaleUV:function(e,s){return this.vertex1.scaleUV(e,s),this.vertex2.scaleUV(e,s),this.vertex3.scaleUV(e,s),this},setColor:function(e){return this.vertex1.color=e,this.vertex2.color=e,this.vertex3.color=e,this},update:function(e,s,h,i,o,l,f,d){return this.vertex1.update(s,h,i,o,l,f,d,e),this.vertex2.update(s,h,i,o,l,f,d,e),this.vertex3.update(s,h,i,o,l,f,d,e),this},translate:function(e,s){s===void 0&&(s=0);var h=this.vertex1,i=this.vertex2,o=this.vertex3;return h.x+=e,h.y+=s,i.x+=e,i.y+=s,o.x+=e,o.y+=s,this},x:{get:function(){return this.getInCenter().x},set:function(e){var s=this.getInCenter();this.translate(e-s.x,0)}},y:{get:function(){return this.getInCenter().y},set:function(e){var s=this.getInCenter();this.translate(0,e-s.y)}},alpha:{get:function(){var e=this.vertex1,s=this.vertex2,h=this.vertex3;return(e.alpha+s.alpha+h.alpha)/3},set:function(e){this.vertex1.alpha=e,this.vertex2.alpha=e,this.vertex3.alpha=e}},depth:{get:function(){var e=this.vertex1,s=this.vertex2,h=this.vertex3;return(e.vz+s.vz+h.vz)/3}},destroy:function(){this.vertex1=null,this.vertex2=null,this.vertex3=null}});c.exports=n},48803:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83997),p=t(95540),a=t(37867),r=t(25836),n=t(39318),e=new r,s=new r,h=new a,i=function(o){var l=p(o,"mesh"),f=p(o,"texture",null),d=p(o,"frame"),v=p(o,"width",1),m=p(o,"height",v),g=p(o,"widthSegments",1),x=p(o,"heightSegments",g),S=p(o,"x",0),C=p(o,"y",0),E=p(o,"z",0),P=p(o,"rotateX",0),R=p(o,"rotateY",0),M=p(o,"rotateZ",0),A=p(o,"zIsUp",!0),L=p(o,"isOrtho",l?l.dirtyCache[11]:!1),w=p(o,"colors",[16777215]),N=p(o,"alphas",[1]),b=p(o,"tile",!1),V=p(o,"flipY",!1),Y=p(o,"width",null),G={faces:[],verts:[]};e.set(S,C,E),s.set(P,R,M),h.fromRotationXYTranslation(s,e,A);var U;if(!f&&l)f=l.texture,d||(U=l.frame);else if(l&&typeof f=="string")f=l.scene.sys.textures.get(f);else if(!f)return G;U||(U=f.get(d)),!Y&&L&&f&&l&&(v=U.width/l.height,m=U.height/l.height);var B=v/2,I=m/2,X=Math.floor(g),K=Math.floor(x),Z=X+1,J=K+1,Q=v/X,$=m/K,j=[],k=[],q,tt,_=0,it=1,ot=0,ht=1;U&&(_=U.u0,it=U.u1,V?(ot=U.v1,ht=U.v0):(ot=U.v0,ht=U.v1));var ut=it-_,et=ht-ot;for(tt=0;tt{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83997),p=t(37867),a=t(25836),r=t(39318),n=new a,e=new a,s=new p,h=function(i,o,l,f,d,v,m,g,x,S){l===void 0&&(l=1),f===void 0&&(f=0),d===void 0&&(d=0),v===void 0&&(v=0),m===void 0&&(m=0),g===void 0&&(g=0),x===void 0&&(x=0),S===void 0&&(S=!0);var C={faces:[],verts:[]},E=i.materials;n.set(f,d,v),e.set(m,g,x),s.fromRotationXYTranslation(e,n,S);for(var P=0;P{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83997),p=t(39318),a=function(r,n,e,s,h,i,o,l){if(s===void 0&&(s=!1),i===void 0&&(i=16777215),o===void 0&&(o=1),l===void 0&&(l=!1),r.length!==n.length&&!s){console.warn("GenerateVerts: vertices and uvs count not equal");return}var f={faces:[],vertices:[]},d,v,m,g,x,S,C,E,P,R,M,A=s?3:2,L=Array.isArray(i),w=Array.isArray(o);if(Array.isArray(e)&&e.length>0)for(d=0;d{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=!0,t="untitled",u="",p="";function a(v){var m=v.indexOf("#");return m>-1?v.substring(0,m):v}function r(v){return v.models.length===0&&v.models.push({faces:[],name:t,textureCoords:[],vertexNormals:[],vertices:[]}),u="",v.models[v.models.length-1]}function n(v,m){var g=v.length>=2?v[1]:t;m.models.push({faces:[],name:g,textureCoords:[],vertexNormals:[],vertices:[]}),u=""}function e(v){v.length===2&&(u=v[1])}function s(v,m){var g=v.length,x=g>=2?parseFloat(v[1]):0,S=g>=3?parseFloat(v[2]):0,C=g>=4?parseFloat(v[3]):0;r(m).vertices.push({x,y:S,z:C})}function h(v,m){var g=v.length,x=g>=2?parseFloat(v[1]):0,S=g>=3?parseFloat(v[2]):0,C=g>=4?parseFloat(v[3]):0;isNaN(x)&&(x=0),isNaN(S)&&(S=0),isNaN(C)&&(C=0),y&&(S=1-S),r(m).textureCoords.push({u:x,v:S,w:C})}function i(v,m){var g=v.length,x=g>=2?parseFloat(v[1]):0,S=g>=3?parseFloat(v[2]):0,C=g>=4?parseFloat(v[3]):0;r(m).vertexNormals.push({x,y:S,z:C})}function o(v,m){var g=v.length-1;if(!(g<3)){for(var x={group:u,material:p,vertices:[]},S=0;S3)){var R=0,M=0,A=0;R=parseInt(E[0],10),P>1&&E[1]!==""&&(M=parseInt(E[1],10)),P>2&&(A=parseInt(E[2],10)),R!==0&&(R<0&&(R=r(m).vertices.length+1+R),M-=1,R-=1,A-=1,x.vertices.push({textureCoordsIndex:M,vertexIndex:R,vertexNormalIndex:A}))}}r(m).faces.push(x)}}function l(v,m){v.length>=2&&m.materialLibraries.push(v[1])}function f(v){v.length>=2&&(p=v[1])}var d=function(v,m){m===void 0&&(m=!0),y=m;var g={materials:{},materialLibraries:[],models:[]};u="",p="";for(var x=v.split(` +`),S=0;S{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(37589),p=function(a){for(var r={},n=a.split(` +`),e="",s=0;s=2?Math.floor(i[2]*255):o,f=i.length>=3?Math.floor(i[3]*255):o;r[e]=u(o,l,f);break}}}}return r};c.exports=p},92570:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){var r,n;if(p===void 0&&a===void 0){var e=t.getInCenter();r=e.x,n=e.y}var s=Math.cos(u),h=Math.sin(u),i=t.vertex1,o=t.vertex2,l=t.vertex3,f=i.x-r,d=i.y-n;i.set(f*s-d*h+r,f*h+d*s+n),f=o.x-r,d=o.y-n,o.set(f*s-d*h+r,f*h+d*s+n),f=l.x-r,d=l.y-n,l.set(f*s-d*h+r,f*h+d*s+n)};c.exports=y},39318:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(70554),a=t(25836),r=new u({Extends:a,initialize:function(e,s,h,i,o,l,f,d,v,m){l===void 0&&(l=16777215),f===void 0&&(f=1),d===void 0&&(d=0),v===void 0&&(v=0),m===void 0&&(m=0),a.call(this,e,s,h),this.vx=0,this.vy=0,this.vz=0,this.nx=d,this.ny=v,this.nz=m,this.u=i,this.v=o,this.color=l,this.alpha=f,this.tx=0,this.ty=0,this.ta=0,this.tu=i,this.tv=o},setUVs:function(n,e){return this.u=n,this.v=e,this.tu=n,this.tv=e,this},scrollUV:function(n,e){return this.tu+=n,this.tv+=e,this},scaleUV:function(n,e){return this.tu=this.u*n,this.tv=this.v*e,this},transformCoordinatesLocal:function(n,e,s,h){var i=this.x,o=this.y,l=this.z,f=n.val,d=i*f[0]+o*f[4]+l*f[8]+f[12],v=i*f[1]+o*f[5]+l*f[9]+f[13],m=i*f[2]+o*f[6]+l*f[10]+f[14],g=i*f[3]+o*f[7]+l*f[11]+f[15];this.vx=d/g*e,this.vy=-(v/g)*s,h<=0?this.vz=m/g:this.vz=-(m/g)},resize:function(n,e,s,h,i,o){return this.x=n,this.y=e,this.vx=this.x*s,this.vy=-this.y*h,this.vz=0,i<.5?this.vx+=s*(.5-i):i>.5&&(this.vx-=s*(i-.5)),o<.5?this.vy+=h*(.5-o):o>.5&&(this.vy-=h*(o-.5)),this},update:function(n,e,s,h,i,o,l,f){var d=this.vx*n+this.vy*s+i,v=this.vx*e+this.vy*h+o;return l&&(d=Math.round(d),v=Math.round(v)),this.tx=d,this.ty=v,this.ta=this.alpha*f,this},load:function(n,e,s,h,i){return n[++s]=this.tx,n[++s]=this.ty,n[++s]=this.tu,n[++s]=this.tv,n[++s]=h,n[++s]=i,e[++s]=p.getTintAppendFloatAlpha(this.color,this.ta),s}});c.exports=r},73090:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u={Face:t(83997),GenerateGridVerts:t(48803),GenerateObjVerts:t(34684),GenerateVerts:t(92515),ParseObj:t(85048),ParseObjMaterial:t(61485),RotateFace:t(92570),Vertex:t(39318)};c.exports=u},96550:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t.setTo(Math.ceil(t.x),Math.ceil(t.y))};c.exports=y},99706:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(2141),p=function(a){return new u(a.x,a.y)};c.exports=p},68010:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return u.setTo(t.x,t.y)};c.exports=y},27814:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return t.x===u.x&&t.y===u.y};c.exports=y},73565:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t.setTo(Math.floor(t.x),Math.floor(t.y))};c.exports=y},87555:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(2141),p=function(a,r){if(r===void 0&&(r=new u),!Array.isArray(a))throw new Error("GetCentroid points argument must be an array");var n=a.length;if(n<1)throw new Error("GetCentroid points array must not be empty");if(n===1)r.x=a[0].x,r.y=a[0].y;else{for(var e=0;e{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)};c.exports=y},44405:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t.x*t.x+t.y*t.y};c.exports=y},20873:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(87841),p=function(a,r){r===void 0&&(r=new u);for(var n=Number.NEGATIVE_INFINITY,e=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY,h=Number.POSITIVE_INFINITY,i=0;in&&(n=o.x),o.xs&&(s=o.y),o.y{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(2141),p=function(a,r,n,e){return n===void 0&&(n=0),e===void 0&&(e=new u),e.x=a.x+(r.x-a.x)*n,e.y=a.y+(r.y-a.y)*n,e};c.exports=p},55767:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t.setTo(t.y,t.x)};c.exports=y},79432:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(2141),p=function(a,r){return r===void 0&&(r=new u),r.setTo(-a.x,-a.y)};c.exports=p},2141:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(23777),a=new u({initialize:function(n,e){n===void 0&&(n=0),e===void 0&&(e=n),this.type=p.POINT,this.x=n,this.y=e},setTo:function(r,n){return r===void 0&&(r=0),n===void 0&&(n=r),this.x=r,this.y=n,this}});c.exports=a},72930:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(2141),p=t(44405),a=function(r,n,e){e===void 0&&(e=new u);var s=r.x*n.x+r.y*n.y,h=s/p(n);return h!==0&&(e.x=h*n.x,e.y=h*n.y),e};c.exports=a},62880:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(2141),p=function(a,r,n){n===void 0&&(n=new u);var e=a.x*r.x+a.y*r.y;return e!==0&&(n.x=e*r.x,n.y=e*r.y),n};c.exports=p},15093:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(28793),p=function(a,r){if(a.x!==0||a.y!==0){var n=u(a);a.x/=n,a.y/=n}return a.x*=r,a.y*=r,a};c.exports=p},43711:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(2141);u.Ceil=t(96550),u.Clone=t(99706),u.CopyFrom=t(68010),u.Equals=t(27814),u.Floor=t(73565),u.GetCentroid=t(87555),u.GetMagnitude=t(28793),u.GetMagnitudeSq=t(44405),u.GetRectangleFromPoints=t(20873),u.Interpolate=t(26152),u.Invert=t(55767),u.Negative=t(79432),u.Project=t(72930),u.ProjectUnit=t(62880),u.SetMagnitude=t(15093),c.exports=u},12306:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(25717),p=function(a){return new u(a.points)};c.exports=p},63814:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){for(var a=!1,r=-1,n=t.points.length-1;++r{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(63814),p=function(a,r){return u(a,r.x,r.y)};c.exports=p},94811:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */function y(G,U,B){B=B||2;var I=U&&U.length,X=I?U[0]*B:G.length,K=t(G,0,X,B,!0),Z=[];if(!K||K.next===K.prev)return Z;var J,Q,$,j,k,q,tt;if(I&&(K=s(G,U,K,B)),G.length>80*B){J=$=G[0],Q=j=G[1];for(var _=B;_$&&($=k),q>j&&(j=q);tt=Math.max($-J,j-Q),tt=tt!==0?32767/tt:0}return p(K,Z,B,J,Q,tt,0),Z}function t(G,U,B,I,X){var K,Z;if(X===Y(G,U,B,I)>0)for(K=U;K=U;K-=I)Z=N(K,G[K],G[K+1],Z);return Z&&C(Z,Z.next)&&(b(Z),Z=Z.next),Z}function u(G,U){if(!G)return G;U||(U=G);var B=G,I;do if(I=!1,!B.steiner&&(C(B,B.next)||S(B.prev,B,B.next)===0)){if(b(B),B=U=B.prev,B===B.next)break;I=!0}else B=B.next;while(I||B!==U);return U}function p(G,U,B,I,X,K,Z){if(G){!Z&&K&&f(G,I,X,K);for(var J=G,Q,$;G.prev!==G.next;){if(Q=G.prev,$=G.next,K?r(G,I,X,K):a(G)){U.push(Q.i/B|0),U.push(G.i/B|0),U.push($.i/B|0),b(G),G=$.next,J=$.next;continue}if(G=$,G===J){Z?Z===1?(G=n(u(G),U,B),p(G,U,B,I,X,K,2)):Z===2&&e(G,U,B,I,X,K):p(u(G),U,B,I,X,K,1);break}}}}function a(G){var U=G.prev,B=G,I=G.next;if(S(U,B,I)>=0)return!1;for(var X=U.x,K=B.x,Z=I.x,J=U.y,Q=B.y,$=I.y,j=XK?X>Z?X:Z:K>Z?K:Z,tt=J>Q?J>$?J:$:Q>$?Q:$,_=I.next;_!==U;){if(_.x>=j&&_.x<=q&&_.y>=k&&_.y<=tt&&g(X,J,K,Q,Z,$,_.x,_.y)&&S(_.prev,_,_.next)>=0)return!1;_=_.next}return!0}function r(G,U,B,I){var X=G.prev,K=G,Z=G.next;if(S(X,K,Z)>=0)return!1;for(var J=X.x,Q=K.x,$=Z.x,j=X.y,k=K.y,q=Z.y,tt=JQ?J>$?J:$:Q>$?Q:$,ot=j>k?j>q?j:q:k>q?k:q,ht=v(tt,_,U,B,I),ut=v(it,ot,U,B,I),et=G.prevZ,rt=G.nextZ;et&&et.z>=ht&&rt&&rt.z<=ut;){if(et.x>=tt&&et.x<=it&&et.y>=_&&et.y<=ot&&et!==X&&et!==Z&&g(J,j,Q,k,$,q,et.x,et.y)&&S(et.prev,et,et.next)>=0||(et=et.prevZ,rt.x>=tt&&rt.x<=it&&rt.y>=_&&rt.y<=ot&&rt!==X&&rt!==Z&&g(J,j,Q,k,$,q,rt.x,rt.y)&&S(rt.prev,rt,rt.next)>=0))return!1;rt=rt.nextZ}for(;et&&et.z>=ht;){if(et.x>=tt&&et.x<=it&&et.y>=_&&et.y<=ot&&et!==X&&et!==Z&&g(J,j,Q,k,$,q,et.x,et.y)&&S(et.prev,et,et.next)>=0)return!1;et=et.prevZ}for(;rt&&rt.z<=ut;){if(rt.x>=tt&&rt.x<=it&&rt.y>=_&&rt.y<=ot&&rt!==X&&rt!==Z&&g(J,j,Q,k,$,q,rt.x,rt.y)&&S(rt.prev,rt,rt.next)>=0)return!1;rt=rt.nextZ}return!0}function n(G,U,B){var I=G;do{var X=I.prev,K=I.next.next;!C(X,K)&&E(X,I,I.next,K)&&A(X,K)&&A(K,X)&&(U.push(X.i/B|0),U.push(I.i/B|0),U.push(K.i/B|0),b(I),b(I.next),I=G=K),I=I.next}while(I!==G);return u(I)}function e(G,U,B,I,X,K){var Z=G;do{for(var J=Z.next.next;J!==Z.prev;){if(Z.i!==J.i&&x(Z,J)){var Q=w(Z,J);Z=u(Z,Z.next),Q=u(Q,Q.next),p(Z,U,B,I,X,K,0),p(Q,U,B,I,X,K,0);return}J=J.next}Z=Z.next}while(Z!==G)}function s(G,U,B,I){var X=[],K,Z,J,Q,$;for(K=0,Z=U.length;K=B.next.y&&B.next.y!==B.y){var J=B.x+(X-B.y)*(B.next.x-B.x)/(B.next.y-B.y);if(J<=I&&J>K&&(K=J,Z=B.x=B.x&&B.x>=$&&I!==B.x&&g(XZ.x||B.x===Z.x&&l(Z,B)))&&(Z=B,k=q)),B=B.next;while(B!==Q);return Z}function l(G,U){return S(G.prev,G,U.prev)<0&&S(U.next,G,G.next)<0}function f(G,U,B,I){var X=G;do X.z===0&&(X.z=v(X.x,X.y,U,B,I)),X.prevZ=X.prev,X.nextZ=X.next,X=X.next;while(X!==G);X.prevZ.nextZ=null,X.prevZ=null,d(X)}function d(G){var U,B,I,X,K,Z,J,Q,$=1;do{for(B=G,G=null,K=null,Z=0;B;){for(Z++,I=B,J=0,U=0;U<$&&(J++,I=I.nextZ,!!I);U++);for(Q=$;J>0||Q>0&&I;)J!==0&&(Q===0||!I||B.z<=I.z)?(X=B,B=B.nextZ,J--):(X=I,I=I.nextZ,Q--),K?K.nextZ=X:G=X,X.prevZ=K,K=X;B=I}K.nextZ=null,$*=2}while(Z>1);return G}function v(G,U,B,I,X){return G=(G-B)*X|0,U=(U-I)*X|0,G=(G|G<<8)&16711935,G=(G|G<<4)&252645135,G=(G|G<<2)&858993459,G=(G|G<<1)&1431655765,U=(U|U<<8)&16711935,U=(U|U<<4)&252645135,U=(U|U<<2)&858993459,U=(U|U<<1)&1431655765,G|U<<1}function m(G){var U=G,B=G;do(U.x=(G-Z)*(K-J)&&(G-Z)*(I-J)>=(B-Z)*(U-J)&&(B-Z)*(K-J)>=(X-Z)*(I-J)}function x(G,U){return G.next.i!==U.i&&G.prev.i!==U.i&&!M(G,U)&&(A(G,U)&&A(U,G)&&L(G,U)&&(S(G.prev,G,U.prev)||S(G,U.prev,U))||C(G,U)&&S(G.prev,G,G.next)>0&&S(U.prev,U,U.next)>0)}function S(G,U,B){return(U.y-G.y)*(B.x-U.x)-(U.x-G.x)*(B.y-U.y)}function C(G,U){return G.x===U.x&&G.y===U.y}function E(G,U,B,I){var X=R(S(G,U,B)),K=R(S(G,U,I)),Z=R(S(B,I,G)),J=R(S(B,I,U));return!!(X!==K&&Z!==J||X===0&&P(G,B,U)||K===0&&P(G,I,U)||Z===0&&P(B,G,I)||J===0&&P(B,U,I))}function P(G,U,B){return U.x<=Math.max(G.x,B.x)&&U.x>=Math.min(G.x,B.x)&&U.y<=Math.max(G.y,B.y)&&U.y>=Math.min(G.y,B.y)}function R(G){return G>0?1:G<0?-1:0}function M(G,U){var B=G;do{if(B.i!==G.i&&B.next.i!==G.i&&B.i!==U.i&&B.next.i!==U.i&&E(B,B.next,G,U))return!0;B=B.next}while(B!==G);return!1}function A(G,U){return S(G.prev,G,G.next)<0?S(G,U,G.next)>=0&&S(G,G.prev,U)>=0:S(G,U,G.prev)<0||S(G,G.next,U)<0}function L(G,U){var B=G,I=!1,X=(G.x+U.x)/2,K=(G.y+U.y)/2;do B.y>K!=B.next.y>K&&B.next.y!==B.y&&X<(B.next.x-B.x)*(K-B.y)/(B.next.y-B.y)+B.x&&(I=!I),B=B.next;while(B!==G);return I}function w(G,U){var B=new V(G.i,G.x,G.y),I=new V(U.i,U.x,U.y),X=G.next,K=U.prev;return G.next=U,U.prev=G,B.next=X,X.prev=B,I.next=B,B.prev=I,K.next=I,I.prev=K,I}function N(G,U,B,I){var X=new V(G,U,B);return I?(X.next=I.next,X.prev=I,I.next.prev=X,I.next=X):(X.prev=X,X.next=X),X}function b(G){G.next.prev=G.prev,G.prev.next=G.next,G.prevZ&&(G.prevZ.nextZ=G.nextZ),G.nextZ&&(G.nextZ.prevZ=G.prevZ)}function V(G,U,B){this.i=G,this.x=U,this.y=B,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}y.deviation=function(G,U,B,I){var X=U&&U.length,K=X?U[0]*B:G.length,Z=Math.abs(Y(G,0,K,B));if(X)for(var J=0,Q=U.length;J0&&(I+=G[X-1].length,B.holes.push(I))}return B},c.exports=y},13829:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(87841),p=function(a,r){r===void 0&&(r=new u);for(var n=1/0,e=1/0,s=-n,h=-e,i,o=0;o{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){u===void 0&&(u=[]);for(var p=0;p{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(35001),p=t(23031),a=t(30052),r=function(n,e,s,h){h===void 0&&(h=[]);var i=n.points,o=a(n);!e&&s>0&&(e=o/s);for(var l=0;ld+S){d+=S;continue}var C=x.getPoint((f-d)/S);h.push(C);break}return h};c.exports=r},30052:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(35001),p=t(23031),a=function(r){for(var n=r.points,e=0,s=0;s{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(63814),a=t(9564),r=t(23777),n=new u({initialize:function(s){this.type=r.POLYGON,this.area=0,this.points=[],s&&this.setTo(s)},contains:function(e,s){return p(this,e,s)},setTo:function(e){if(this.area=0,this.points=[],typeof e=="string"&&(e=e.split(" ")),!Array.isArray(e))return this;for(var s,h=0;h{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t.points.reverse(),t};c.exports=y},29524:c=>{function y(n,e){var s=n.x-e.x,h=n.y-e.y;return s*s+h*h}function t(n,e,s){var h=e.x,i=e.y,o=s.x-h,l=s.y-i;if(o!==0||l!==0){var f=((n.x-h)*o+(n.y-i)*l)/(o*o+l*l);f>1?(h=s.x,i=s.y):f>0&&(h+=o*f,i+=l*f)}return o=n.x-h,l=n.y-i,o*o+l*l}function u(n,e){for(var s=n[0],h=[s],i,o=1,l=n.length;oe&&(h.push(i),s=i);return s!==i&&h.push(i),h}function p(n,e,s,h,i){for(var o=h,l,f=e+1;fo&&(l=f,o=d)}o>h&&(l-e>1&&p(n,e,l,h,i),i.push(n[l]),s-l>1&&p(n,l,s,h,i))}function a(n,e){var s=n.length-1,h=[n[0]];return p(n,0,s,e,h),h.push(n[s]),h}var r=function(n,e,s){e===void 0&&(e=1),s===void 0&&(s=!1);var h=n.points;if(h.length>2){var i=e*e;s||(h=u(h,i)),n.setTo(a(h,i))}return n};c.exports=r},5469:c=>{/** + * @author Richard Davey + * @author Igor Ognichenko + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(u,p){return u[0]=p[0],u[1]=p[1],u},t=function(u){var p,a=[],r=u.points;for(p=0;p0&&n.push(y([0,0],a[0])),p=0;p1&&n.push(y([0,0],a[a.length-1])),u.setTo(n)};c.exports=t},24709:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){for(var a=t.points,r=0;r{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(25717);u.Clone=t(12306),u.Contains=t(63814),u.ContainsPoint=t(99338),u.Earcut=t(94811),u.GetAABB=t(13829),u.GetNumberArray=t(26173),u.GetPoints=t(9564),u.Perimeter=t(30052),u.Reverse=t(8133),u.Simplify=t(29524),u.Smooth=t(5469),u.Translate=t(24709),c.exports=u},62224:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t.width*t.height};c.exports=y},98615:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t.x=Math.ceil(t.x),t.y=Math.ceil(t.y),t};c.exports=y},31688:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t.x=Math.ceil(t.x),t.y=Math.ceil(t.y),t.width=Math.ceil(t.width),t.height=Math.ceil(t.height),t};c.exports=y},67502:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){return t.x=u-t.width/2,t.y=p-t.height/2,t};c.exports=y},65085:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(87841),p=function(a){return new u(a.x,a.y,a.width,a.height)};c.exports=p},37303:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){return t.width<=0||t.height<=0?!1:t.x<=u&&t.x+t.width>=u&&t.y<=p&&t.y+t.height>=p};c.exports=y},96553:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(37303),p=function(a,r){return u(a,r.x,r.y)};c.exports=p},70273:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return u.width*u.height>t.width*t.height?!1:u.x>t.x&&u.xt.x&&u.rightt.y&&u.yt.y&&u.bottom{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return u.setTo(t.x,t.y,t.width,t.height)};c.exports=y},77493:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return u===void 0&&(u=[]),u.push({x:t.x,y:t.y}),u.push({x:t.right,y:t.y}),u.push({x:t.right,y:t.bottom}),u.push({x:t.x,y:t.bottom}),u};c.exports=y},9219:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return t.x===u.x&&t.y===u.y&&t.width===u.width&&t.height===u.height};c.exports=y},53751:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(8249),p=function(a,r){var n=u(a);return n{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(8249),p=function(a,r){var n=u(a);return n>u(r)?a.setSize(r.height*n,r.height):a.setSize(r.width,r.width/n),a.setPosition(r.centerX-a.width/2,r.centerY-a.height/2)};c.exports=p},80774:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t.x=Math.floor(t.x),t.y=Math.floor(t.y),t};c.exports=y},83859:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=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};c.exports=y},19217:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(87841),p=t(36383),a=function(r,n){if(n===void 0&&(n=new u),r.length===0)return n;for(var e=Number.MAX_VALUE,s=Number.MAX_VALUE,h=p.MIN_SAFE_INTEGER,i=p.MIN_SAFE_INTEGER,o,l,f,d=0;d{/** + * @author samme + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(87841),p=function(a,r,n,e,s){return s===void 0&&(s=new u),s.setTo(Math.min(a,n),Math.min(r,e),Math.abs(a-n),Math.abs(r-e))};c.exports=p},8249:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t.height===0?NaN:t.width/t.height};c.exports=y},27165:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(2141),p=function(a,r){return r===void 0&&(r=new u),r.x=a.centerX,r.y=a.centerY,r};c.exports=p},20812:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(13019),p=t(2141),a=function(r,n,e){if(e===void 0&&(e=new p),n<=0||n>=1)return e.x=r.x,e.y=r.y,e;var s=u(r)*n;return n>.5?(s-=r.width+r.height,s<=r.width?(e.x=r.right-s,e.y=r.bottom):(e.x=r.x,e.y=r.bottom-(s-r.width))):s<=r.width?(e.x=r.x+s,e.y=r.y):(e.x=r.right,e.y=r.y+(s-r.width)),e};c.exports=a},34819:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(20812),p=t(13019),a=function(r,n,e,s){s===void 0&&(s=[]),!n&&e>0&&(n=p(r)/e);for(var h=0;h{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(2141),p=function(a,r){return r===void 0&&(r=new u),r.x=a.width,r.y=a.height,r};c.exports=p},86091:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(67502),p=function(a,r,n){var e=a.centerX,s=a.centerY;return a.setSize(a.width+r*2,a.height+n*2),u(a,e,s)};c.exports=p},53951:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(87841),p=t(59996),a=function(r,n,e){return e===void 0&&(e=new u),p(r,n)?(e.x=Math.max(r.x,n.x),e.y=Math.max(r.y,n.y),e.width=Math.min(r.right,n.right)-e.x,e.height=Math.min(r.bottom,n.bottom)-e.y):e.setEmpty(),e};c.exports=a},14649:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(13019),p=t(2141),a=function(r,n,e,s){if(s===void 0&&(s=[]),!n&&!e)return s;n?e=Math.round(u(r)/n):n=u(r)/e;for(var h=r.x,i=r.y,o=0,l=0;l=r.right&&(o=1,i+=h-r.right,h=r.right);break;case 1:i+=n,i>=r.bottom&&(o=2,h-=i-r.bottom,i=r.bottom);break;case 2:h-=n,h<=r.left&&(o=3,i-=r.left-h,h=r.left);break;case 3:i-=n,i<=r.top&&(o=0,i=r.top);break}return s};c.exports=a},33595:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){for(var p=t.x,a=t.right,r=t.y,n=t.bottom,e=0;e{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){var p=Math.min(t.x,u.x),a=Math.max(t.right,u.right);t.x=p,t.width=a-p;var r=Math.min(t.y,u.y),n=Math.max(t.bottom,u.bottom);return t.y=r,t.height=n-r,t};c.exports=y},92171:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){var a=Math.min(t.x,u),r=Math.max(t.right,u);t.x=a,t.width=r-a;var n=Math.min(t.y,p),e=Math.max(t.bottom,p);return t.y=n,t.height=e-n,t};c.exports=y},42981:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){return t.x+=u,t.y+=p,t};c.exports=y},46907:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return t.x+=u.x,t.y+=u.y,t};c.exports=y},60170:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return t.xu.x&&t.yu.y};c.exports=y},13019:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return 2*(t.width+t.height)};c.exports=y},85133:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(2141),p=t(39506),a=function(r,n,e){e===void 0&&(e=new u),n=p(n);var s=Math.sin(n),h=Math.cos(n),i=h>0?r.width/2:r.width/-2,o=s>0?r.height/2:r.height/-2;return Math.abs(i*s){/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(2141),p=function(a,r){return r===void 0&&(r=new u),r.x=a.x+Math.random()*a.width,r.y=a.y+Math.random()*a.height,r};c.exports=p},86470:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(30976),p=t(70273),a=t(2141),r=function(n,e,s){if(s===void 0&&(s=new a),p(n,e))switch(u(0,3)){case 0:s.x=n.x+Math.random()*(e.right-n.x),s.y=n.y+Math.random()*(e.top-n.y);break;case 1:s.x=e.x+Math.random()*(n.right-e.x),s.y=e.bottom+Math.random()*(n.bottom-e.bottom);break;case 2:s.x=n.x+Math.random()*(e.x-n.x),s.y=e.y+Math.random()*(n.bottom-e.y);break;case 3:s.x=e.right+Math.random()*(n.right-e.right),s.y=n.y+Math.random()*(e.bottom-n.y);break}return s};c.exports=r},87841:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(37303),a=t(20812),r=t(34819),n=t(23777),e=t(23031),s=t(26597),h=new u({initialize:function(o,l,f,d){o===void 0&&(o=0),l===void 0&&(l=0),f===void 0&&(f=0),d===void 0&&(d=0),this.type=n.RECTANGLE,this.x=o,this.y=l,this.width=f,this.height=d},contains:function(i,o){return p(this,i,o)},getPoint:function(i,o){return a(this,i,o)},getPoints:function(i,o,l){return r(this,i,o,l)},getRandomPoint:function(i){return s(this,i)},setTo:function(i,o,l,f){return this.x=i,this.y=o,this.width=l,this.height=f,this},setEmpty:function(){return this.setTo(0,0,0,0)},setPosition:function(i,o){return o===void 0&&(o=i),this.x=i,this.y=o,this},setSize:function(i,o){return o===void 0&&(o=i),this.width=i,this.height=o,this},isEmpty:function(){return this.width<=0||this.height<=0},getLineA:function(i){return i===void 0&&(i=new e),i.setTo(this.x,this.y,this.right,this.y),i},getLineB:function(i){return i===void 0&&(i=new e),i.setTo(this.right,this.y,this.right,this.bottom),i},getLineC:function(i){return i===void 0&&(i=new e),i.setTo(this.right,this.bottom,this.x,this.bottom),i},getLineD:function(i){return i===void 0&&(i=new e),i.setTo(this.x,this.bottom,this.x,this.y),i},left:{get:function(){return this.x},set:function(i){i>=this.right?this.width=0:this.width=this.right-i,this.x=i}},right:{get:function(){return this.x+this.width},set:function(i){i<=this.x?this.width=0:this.width=i-this.x}},top:{get:function(){return this.y},set:function(i){i>=this.bottom?this.height=0:this.height=this.bottom-i,this.y=i}},bottom:{get:function(){return this.y+this.height},set:function(i){i<=this.y?this.height=0:this.height=i-this.y}},centerX:{get:function(){return this.x+this.width/2},set:function(i){this.x=i-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(i){this.y=i-this.height/2}}});c.exports=h},94845:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return t.width===u.width&&t.height===u.height};c.exports=y},31730:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){return p===void 0&&(p=u),t.width*=u,t.height*=p,t};c.exports=y},36899:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(87841),p=function(a,r,n){n===void 0&&(n=new u);var e=Math.min(a.x,r.x),s=Math.min(a.y,r.y),h=Math.max(a.right,r.right)-e,i=Math.max(a.bottom,r.bottom)-s;return n.setTo(e,s,h,i)};c.exports=p},93232:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(87841);u.Area=t(62224),u.Ceil=t(98615),u.CeilAll=t(31688),u.CenterOn=t(67502),u.Clone=t(65085),u.Contains=t(37303),u.ContainsPoint=t(96553),u.ContainsRect=t(70273),u.CopyFrom=t(43459),u.Decompose=t(77493),u.Equals=t(9219),u.FitInside=t(53751),u.FitOutside=t(16088),u.Floor=t(80774),u.FloorAll=t(83859),u.FromPoints=t(19217),u.FromXY=t(9477),u.GetAspectRatio=t(8249),u.GetCenter=t(27165),u.GetPoint=t(20812),u.GetPoints=t(34819),u.GetSize=t(51313),u.Inflate=t(86091),u.Intersection=t(53951),u.MarchingAnts=t(14649),u.MergePoints=t(33595),u.MergeRect=t(20074),u.MergeXY=t(92171),u.Offset=t(42981),u.OffsetPoint=t(46907),u.Overlaps=t(60170),u.Perimeter=t(13019),u.PerimeterPoint=t(85133),u.Random=t(26597),u.RandomOutside=t(86470),u.SameDimensions=t(94845),u.Scale=t(31730),u.Union=t(36899),c.exports=u},41658:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){var u=t.x1,p=t.y1,a=t.x2,r=t.y2,n=t.x3,e=t.y3;return Math.abs(((n-u)*(r-p)-(a-u)*(e-p))/2)};c.exports=y},39208:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(16483),p=function(a,r,n){var e=n*(Math.sqrt(3)/2),s=a,h=r,i=a+n/2,o=r+e,l=a-n/2,f=r+e;return new u(s,h,i,o,l,f)};c.exports=p},39545:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(94811),p=t(16483),a=function(r,n,e,s,h){n===void 0&&(n=null),e===void 0&&(e=1),s===void 0&&(s=1),h===void 0&&(h=[]);for(var i=u(r,n),o,l,f,d,v,m,g,x,S,C=0;C{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(16483),p=function(a,r,n,e){e===void 0&&(e=n);var s=a,h=r,i=a,o=r-e,l=a+n,f=r;return new u(s,h,i,o,l,f)};c.exports=p},23707:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(97523),p=t(13584),a=function(r,n,e,s){s===void 0&&(s=u);var h=s(r),i=n-h.x,o=e-h.y;return p(r,i,o)};c.exports=a},97523:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(2141),p=function(a,r){return r===void 0&&(r=new u),r.x=(a.x1+a.x2+a.x3)/3,r.y=(a.y1+a.y2+a.y3)/3,r};c.exports=p},24951:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(26099);function p(r,n,e,s){return r*s-n*e}var a=function(r,n){n===void 0&&(n=new u);var e=r.x3,s=r.y3,h=r.x1-e,i=r.y1-s,o=r.x2-e,l=r.y2-s,f=2*p(h,i,o,l),d=p(i,h*h+i*i,l,o*o+l*l),v=p(h,h*h+i*i,o,o*o+l*l);return n.x=e-d/f,n.y=s+v/f,n};c.exports=a},85614:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(96503),p=function(a,r){r===void 0&&(r=new u);var n=a.x1,e=a.y1,s=a.x2,h=a.y2,i=a.x3,o=a.y3,l=s-n,f=h-e,d=i-n,v=o-e,m=l*(n+s)+f*(e+h),g=d*(n+i)+v*(e+o),x=2*(l*(o-h)-f*(i-s)),S,C;if(Math.abs(x)<1e-6){var E=Math.min(n,s,i),P=Math.min(e,h,o);S=(Math.max(n,s,i)-E)*.5,C=(Math.max(e,h,o)-P)*.5,r.x=E+S,r.y=P+C,r.radius=Math.sqrt(S*S+C*C)}else r.x=(v*m-f*g)/x,r.y=(l*g-d*m)/x,S=r.x-n,C=r.y-e,r.radius=Math.sqrt(S*S+C*C);return r};c.exports=p},74422:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(16483),p=function(a){return new u(a.x1,a.y1,a.x2,a.y2,a.x3,a.y3)};c.exports=p},10690:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){var a=t.x3-t.x1,r=t.y3-t.y1,n=t.x2-t.x1,e=t.y2-t.y1,s=u-t.x1,h=p-t.y1,i=a*a+r*r,o=a*n+r*e,l=a*s+r*h,f=n*n+e*e,d=n*s+e*h,v=i*f-o*o,m=v===0?0:1/v,g=(f*l-o*d)*m,x=(i*d-o*l)*m;return g>=0&&x>=0&&g+x<1};c.exports=y},48653:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){p===void 0&&(p=!1),a===void 0&&(a=[]);for(var r=t.x3-t.x1,n=t.y3-t.y1,e=t.x2-t.x1,s=t.y2-t.y1,h=r*r+n*n,i=r*e+n*s,o=e*e+s*s,l=h*o-i*i,f=l===0?0:1/l,d,v,m,g,x,S,C=t.x1,E=t.y1,P=0;P=0&&v>=0&&d+v<1&&(a.push({x:u[P].x,y:u[P].y}),p)));P++);return a};c.exports=y},96006:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(10690),p=function(a,r){return u(a,r.x,r.y)};c.exports=p},71326:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return u.setTo(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)};c.exports=y},71694:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return u===void 0&&(u=[]),u.push({x:t.x1,y:t.y1}),u.push({x:t.x2,y:t.y2}),u.push({x:t.x3,y:t.y3}),u};c.exports=y},33522:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return t.x1===u.x1&&t.y1===u.y1&&t.x2===u.x2&&t.y2===u.y2&&t.x3===u.x3&&t.y3===u.y3};c.exports=y},20437:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(2141),p=t(35001),a=function(r,n,e){e===void 0&&(e=new u);var s=r.getLineA(),h=r.getLineB(),i=r.getLineC();if(n<=0||n>=1)return e.x=s.x1,e.y=s.y1,e;var o=p(s),l=p(h),f=p(i),d=o+l+f,v=d*n,m=0;return vo+l?(v-=o+l,m=v/f,e.x=i.x1+(i.x2-i.x1)*m,e.y=i.y1+(i.y2-i.y1)*m):(v-=o,m=v/l,e.x=h.x1+(h.x2-h.x1)*m,e.y=h.y1+(h.y2-h.y1)*m),e};c.exports=a},80672:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(35001),p=t(2141),a=function(r,n,e,s){s===void 0&&(s=[]);var h=r.getLineA(),i=r.getLineB(),o=r.getLineC(),l=u(h),f=u(i),d=u(o),v=l+f+d;!n&&e>0&&(n=v/e);for(var m=0;ml+f?(g-=l+f,x=g/d,S.x=o.x1+(o.x2-o.x1)*x,S.y=o.y1+(o.y2-o.y1)*x):(g-=l,x=g/f,S.x=i.x1+(i.x2-i.x1)*x,S.y=i.y1+(i.y2-i.y1)*x),s.push(S)}return s};c.exports=a},39757:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(2141);function p(r,n,e,s){var h=r-e,i=n-s,o=h*h+i*i;return Math.sqrt(o)}var a=function(r,n){n===void 0&&(n=new u);var e=r.x1,s=r.y1,h=r.x2,i=r.y2,o=r.x3,l=r.y3,f=p(o,l,h,i),d=p(e,s,o,l),v=p(h,i,e,s),m=f+d+v;return n.x=(e*f+h*d+o*v)/m,n.y=(s*f+i*d+l*v)/m,n};c.exports=a},13584:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){return t.x1+=u,t.y1+=p,t.x2+=u,t.y2+=p,t.x3+=u,t.y3+=p,t};c.exports=y},1376:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(35001),p=function(a){var r=a.getLineA(),n=a.getLineB(),e=a.getLineC();return u(r)+u(n)+u(e)};c.exports=p},90260:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(2141),p=function(a,r){r===void 0&&(r=new u);var n=a.x2-a.x1,e=a.y2-a.y1,s=a.x3-a.x1,h=a.y3-a.y1,i=Math.random(),o=Math.random();return i+o>=1&&(i=1-i,o=1-o),r.x=a.x1+(n*i+s*o),r.y=a.y1+(e*i+h*o),r};c.exports=p},52172:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(99614),p=t(39757),a=function(r,n){var e=p(r);return u(r,e.x,e.y,n)};c.exports=a},49907:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(99614),p=function(a,r,n){return u(a,r.x,r.y,n)};c.exports=p},99614:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){var r=Math.cos(a),n=Math.sin(a),e=t.x1-u,s=t.y1-p;return t.x1=e*r-s*n+u,t.y1=e*n+s*r+p,e=t.x2-u,s=t.y2-p,t.x2=e*r-s*n+u,t.y2=e*n+s*r+p,e=t.x3-u,s=t.y3-p,t.x3=e*r-s*n+u,t.y3=e*n+s*r+p,t};c.exports=y},16483:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(10690),a=t(20437),r=t(80672),n=t(23777),e=t(23031),s=t(90260),h=new u({initialize:function(o,l,f,d,v,m){o===void 0&&(o=0),l===void 0&&(l=0),f===void 0&&(f=0),d===void 0&&(d=0),v===void 0&&(v=0),m===void 0&&(m=0),this.type=n.TRIANGLE,this.x1=o,this.y1=l,this.x2=f,this.y2=d,this.x3=v,this.y3=m},contains:function(i,o){return p(this,i,o)},getPoint:function(i,o){return a(this,i,o)},getPoints:function(i,o,l){return r(this,i,o,l)},getRandomPoint:function(i){return s(this,i)},setTo:function(i,o,l,f,d,v){return i===void 0&&(i=0),o===void 0&&(o=0),l===void 0&&(l=0),f===void 0&&(f=0),d===void 0&&(d=0),v===void 0&&(v=0),this.x1=i,this.y1=o,this.x2=l,this.y2=f,this.x3=d,this.y3=v,this},getLineA:function(i){return i===void 0&&(i=new e),i.setTo(this.x1,this.y1,this.x2,this.y2),i},getLineB:function(i){return i===void 0&&(i=new e),i.setTo(this.x2,this.y2,this.x3,this.y3),i},getLineC:function(i){return i===void 0&&(i=new e),i.setTo(this.x3,this.y3,this.x1,this.y1),i},left:{get:function(){return Math.min(this.x1,this.x2,this.x3)},set:function(i){var o=0;this.x1<=this.x2&&this.x1<=this.x3?o=this.x1-i:this.x2<=this.x1&&this.x2<=this.x3?o=this.x2-i:o=this.x3-i,this.x1-=o,this.x2-=o,this.x3-=o}},right:{get:function(){return Math.max(this.x1,this.x2,this.x3)},set:function(i){var o=0;this.x1>=this.x2&&this.x1>=this.x3?o=this.x1-i:this.x2>=this.x1&&this.x2>=this.x3?o=this.x2-i:o=this.x3-i,this.x1-=o,this.x2-=o,this.x3-=o}},top:{get:function(){return Math.min(this.y1,this.y2,this.y3)},set:function(i){var o=0;this.y1<=this.y2&&this.y1<=this.y3?o=this.y1-i:this.y2<=this.y1&&this.y2<=this.y3?o=this.y2-i:o=this.y3-i,this.y1-=o,this.y2-=o,this.y3-=o}},bottom:{get:function(){return Math.max(this.y1,this.y2,this.y3)},set:function(i){var o=0;this.y1>=this.y2&&this.y1>=this.y3?o=this.y1-i:this.y2>=this.y1&&this.y2>=this.y3?o=this.y2-i:o=this.y3-i,this.y1-=o,this.y2-=o,this.y3-=o}}});c.exports=h},84435:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(16483);u.Area=t(41658),u.BuildEquilateral=t(39208),u.BuildFromPolygon=t(39545),u.BuildRight=t(90301),u.CenterOn=t(23707),u.Centroid=t(97523),u.CircumCenter=t(24951),u.CircumCircle=t(85614),u.Clone=t(74422),u.Contains=t(10690),u.ContainsArray=t(48653),u.ContainsPoint=t(96006),u.CopyFrom=t(71326),u.Decompose=t(71694),u.Equals=t(33522),u.GetPoint=t(20437),u.GetPoints=t(80672),u.InCenter=t(39757),u.Perimeter=t(1376),u.Offset=t(13584),u.Random=t(90260),u.Rotate=t(52172),u.RotateAroundPoint=t(49907),u.RotateAroundXY=t(99614),c.exports=u},74457:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){return{gameObject:t,enabled:!0,draggable:!1,dropZone:!1,cursor:!1,target:null,camera:null,hitArea:u,hitAreaCallback:p,hitAreaDebug:null,customHitArea:!1,localX:0,localY:0,dragState:0,dragStartX:0,dragStartY:0,dragStartXGlobal:0,dragStartYGlobal:0,dragStartCamera:null,dragX:0,dragY:0}};c.exports=y},84409:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return function(p,a,r,n){var e=t.getPixelAlpha(a,r,n.texture.key,n.frame.name);return e&&e>=u}};c.exports=y},7003:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(93301),a=t(50792),r=t(8214),n=t(8443),e=t(78970),s=t(85098),h=t(42515),i=t(36210),o=t(61340),l=t(85955),f=new u({initialize:function(v,m){this.game=v,this.scaleManager,this.canvas,this.config=m,this.enabled=!0,this.events=new a,this.isOver=!0,this.defaultCursor="",this.keyboard=m.inputKeyboard?new e(this):null,this.mouse=m.inputMouse?new s(this):null,this.touch=m.inputTouch?new i(this):null,this.pointers=[],this.pointersTotal=m.inputActivePointers;for(var g=0;g<=this.pointersTotal;g++){var x=new h(this,g);x.smoothFactor=m.inputSmoothFactor,this.pointers.push(x)}this.mousePointer=m.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 o,this._tempMatrix2=new o,this._tempSkip=!1,this.mousePointerContainer=[this.mousePointer],v.events.once(n.BOOT,this.boot,this)},boot:function(){var d=this.game,v=d.events;this.canvas=d.canvas,this.scaleManager=d.scale,this.events.emit(r.MANAGER_BOOT),v.on(n.PRE_RENDER,this.preRender,this),v.once(n.DESTROY,this.destroy,this)},setCanvasOver:function(d){this.isOver=!0,this.events.emit(r.GAME_OVER,d)},setCanvasOut:function(d){this.isOver=!1,this.events.emit(r.GAME_OUT,d)},preRender:function(){var d=this.game.loop.now,v=this.game.loop.delta,m=this.game.scene.getScenes(!0,!0);this.time=d,this.events.emit(r.MANAGER_UPDATE);for(var g=0;g10&&(d=10-this.pointersTotal);for(var m=0;m{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(96503),p=t(87902),a=t(83419),r=t(93301),n=t(74457),e=t(84409),s=t(20339),h=t(8497),i=t(81154),o=t(8214),l=t(50792),f=t(95540),d=t(23777),v=t(89639),m=t(41212),g=t(37277),x=t(87841),S=t(37303),C=t(44594),E=t(16483),P=t(10690),R=new a({Extends:l,initialize:function(A){l.call(this),this.scene=A,this.systems=A.sys,this.settings=A.sys.settings,this.manager=A.sys.game.input,this.pluginEvents=new l,this.enabled=!0,this.displayList,this.cameras,v.install(this),this.mouse=this.manager.mouse,this.topOnly=!0,this.pollRate=-1,this._pollTimer=0;var L={cancelled:!1};this._eventContainer={stopPropagation:function(){L.cancelled=!0}},this._eventData=L,this.dragDistanceThreshold=0,this.dragTimeThreshold=0,this._temp=[],this._tempZones=[],this._list=[],this._pendingInsertion=[],this._pendingRemoval=[],this._draggable=[],this._drag={0:[],1:[],2:[],3:[],4:[],5:[],6:[],7:[],8:[],9:[],10:[]},this._dragState=[],this._over={0:[],1:[],2:[],3:[],4:[],5:[],6:[],7:[],8:[],9:[],10:[]},this._validTypes=["onDown","onUp","onOver","onOut","onMove","onDragStart","onDrag","onDragEnd","onDragEnter","onDragLeave","onDragOver","onDrop"],this._updatedThisFrame=!1,A.sys.events.once(C.BOOT,this.boot,this),A.sys.events.on(C.START,this.start,this)},boot:function(){this.cameras=this.systems.cameras,this.displayList=this.systems.displayList,this.systems.events.once(C.DESTROY,this.destroy,this),this.pluginEvents.emit(o.BOOT)},start:function(){var M=this.systems.events;M.on(C.TRANSITION_START,this.transitionIn,this),M.on(C.TRANSITION_OUT,this.transitionOut,this),M.on(C.TRANSITION_COMPLETE,this.transitionComplete,this),M.on(C.PRE_UPDATE,this.preUpdate,this),M.once(C.SHUTDOWN,this.shutdown,this),this.manager.events.on(o.GAME_OUT,this.onGameOut,this),this.manager.events.on(o.GAME_OVER,this.onGameOver,this),this.enabled=!0,this._dragState=[0,0,0,0,0,0,0,0,0,0],this.pluginEvents.emit(o.START)},onGameOver:function(M){this.isActive()&&this.emit(o.GAME_OVER,M.timeStamp,M)},onGameOut:function(M){this.isActive()&&this.emit(o.GAME_OUT,M.timeStamp,M)},preUpdate:function(){this.pluginEvents.emit(o.PRE_UPDATE);var M=this._pendingRemoval,A=this._pendingInsertion,L=M.length,w=A.length;if(!(L===0&&w===0)){for(var N=this._list,b=0;b-1&&(N.splice(Y,1),this.clear(V,!0))}this._pendingRemoval.length=0,this._list=N.concat(A.splice(0))}},isActive:function(){return this.manager&&this.manager.enabled&&this.enabled&&this.scene.sys.canInput()},setCursor:function(M){this.manager&&this.manager.setCursor(M)},resetCursor:function(){this.manager&&this.manager.resetCursor(null,!0)},updatePoll:function(M,A){if(!this.isActive())return!1;if(this.pluginEvents.emit(o.UPDATE,M,A),this._updatedThisFrame)return this._updatedThisFrame=!1,!1;var L,w=this.manager,N=w.pointers;for(L=0;L0)if(this._pollTimer-=A,this._pollTimer<0)this._pollTimer=this.pollRate;else return!1;var V=!1;for(L=0;L0&&(V=!0)}return V},update:function(M,A){if(!this.isActive())return!1;for(var L=!1,w=0;w0&&(L=!0)}return this._updatedThisFrame=!0,L},clear:function(M,A){A===void 0&&(A=!1),this.disable(M);var L=M.input;L&&(this.removeDebug(M),this.manager.resetCursor(L),L.gameObject=void 0,L.target=void 0,L.hitArea=void 0,L.hitAreaCallback=void 0,L.callbackContext=void 0,M.input=null),A||this.queueForRemoval(M);var w=this._draggable.indexOf(M);return w>-1&&this._draggable.splice(w,1),M},disable:function(M,A){A===void 0&&(A=!1);var L=M.input;L&&(L.enabled=!1,L.dragState=0);for(var w=this._drag,N=this._over,b=this.manager,V=0,Y;V-1&&w[V].splice(Y,1),Y=N[V].indexOf(M),Y>-1&&N[V].splice(Y,1);return A&&this.resetCursor(),this},enable:function(M,A,L,w){return w===void 0&&(w=!1),M.input?M.input.enabled=!0:this.setHitArea(M,A,L),M.input&&w&&!M.input.dropZone&&(M.input.dropZone=w),this},hitTestPointer:function(M){for(var A=this.cameras.getCamerasBelowPointer(M),L=0;L0)return M.camera=w,N}return M.camera=A[0],[]},processDownEvents:function(M){var A=0,L=this._temp,w=this._eventData,N=this._eventContainer;w.cancelled=!1;for(var b=0;b0&&s(M.x,M.y,M.downX,M.downY)>=N||w>0&&A>=M.downTime+w)&&(L=!0),L)return this.setDragState(M,3),this.processDragStartList(M)},processDragStartList:function(M){if(this.getDragState(M)!==3)return 0;var A=this._drag[M.id];A.length>1&&(A=A.slice(0));for(var L=0;L1&&(this.sortGameObjects(L,M),this.topOnly&&L.splice(1)),this._drag[M.id]=L,this.dragDistanceThreshold===0&&this.dragTimeThreshold===0?(this.setDragState(M,3),this.processDragStartList(M)):(this.setDragState(M,2),0))},processDragMoveEvent:function(M){if(this.getDragState(M)===2&&this.processDragThresholdEvent(M,this.manager.game.loop.now),this.getDragState(M)!==4)return 0;var A=this._tempZones,L=this._drag[M.id];L.length>1&&(L=L.slice(0));for(var w=0;w0?(N.emit(o.GAMEOBJECT_DRAG_LEAVE,M,V),this.emit(o.DRAG_LEAVE,M,N,V),b.target=A[0],V=b.target,N.emit(o.GAMEOBJECT_DRAG_ENTER,M,V),this.emit(o.DRAG_ENTER,M,N,V)):(N.emit(o.GAMEOBJECT_DRAG_LEAVE,M,V),this.emit(o.DRAG_LEAVE,M,N,V),A[0]?(b.target=A[0],V=b.target,N.emit(o.GAMEOBJECT_DRAG_ENTER,M,V),this.emit(o.DRAG_ENTER,M,N,V)):b.target=null)}else!V&&A[0]&&(b.target=A[0],V=b.target,N.emit(o.GAMEOBJECT_DRAG_ENTER,M,V),this.emit(o.DRAG_ENTER,M,N,V));var G,U,B=M.positionToCamera(b.dragStartCamera);if(!N.parentContainer)G=B.x-b.dragX,U=B.y-b.dragY;else{var I=B.x-b.dragStartXGlobal,X=B.y-b.dragStartYGlobal,K=N.getParentRotation(),Z=I*Math.cos(K)+X*Math.sin(K),J=X*Math.cos(K)-I*Math.sin(K);Z*=1/N.parentContainer.scaleX,J*=1/N.parentContainer.scaleY,G=Z+b.dragStartX,U=J+b.dragStartY}N.emit(o.GAMEOBJECT_DRAG,M,G,U),this.emit(o.DRAG,M,N,G,U)}return L.length},processDragUpEvent:function(M){var A=this._drag[M.id];A.length>1&&(A=A.slice(0));for(var L=0;L0){var b=this.manager,V=this._eventData,Y=this._eventContainer;V.cancelled=!1;for(var G=0;G0){var N=this.manager,b=this._eventData,V=this._eventContainer;b.cancelled=!1,this.sortGameObjects(A,M);for(var Y=0;Y0){for(this.sortGameObjects(N,M),L=0;L0){for(this.sortGameObjects(b,M),L=0;L-1&&this._draggable.splice(N,1)}return this},makePixelPerfect:function(M){M===void 0&&(M=1);var A=this.systems.textures;return e(A,M)},setHitArea:function(M,A,L){if(A===void 0)return this.setHitAreaFromTexture(M);Array.isArray(M)||(M=[M]);var w=!1,N=!1,b=!1,V=!1,Y=!1,G=!0;if(m(A)&&Object.keys(A).length){var U=A,B=M.some(function(J){return J.hasOwnProperty("faces")});if(!B){A=f(U,"hitArea",null),L=f(U,"hitAreaCallback",null),Y=f(U,"pixelPerfect",!1);var I=f(U,"alphaTolerance",1);Y&&(A={},L=this.makePixelPerfect(I))}w=f(U,"draggable",!1),N=f(U,"dropZone",!1),b=f(U,"cursor",!1),V=f(U,"useHandCursor",!1),(!A||!L)&&(this.setHitAreaFromTexture(M),G=!1)}else typeof A=="function"&&!L&&(L=A,A={});for(var X=0;X{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(35154),p={},a={};a.register=function(r,n,e,s,h){p[r]={plugin:n,mapping:e,settingsKey:s,configKey:h}},a.getPlugin=function(r){return p[r]},a.install=function(r){var n=r.scene.sys,e=n.settings.input,s=n.game.config;for(var h in p){var i=p[h].plugin,o=p[h].mapping,l=p[h].settingsKey,f=p[h].configKey;u(e,l,s[f])&&(r[o]=new i(r))}},a.remove=function(r){p.hasOwnProperty(r)&&delete p[r]},c.exports=a},42515:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(31040),p=t(83419),a=t(20339),r=t(43855),n=t(47235),e=t(26099),s=t(25892),h=new p({initialize:function(o,l){this.manager=o,this.id=l,this.event,this.downElement,this.upElement,this.camera=null,this.button=0,this.buttons=0,this.position=new e,this.prevPosition=new e,this.midPoint=new e(-1,-1),this.velocity=new e,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=l===0,this.locked=!1,this.deltaX=0,this.deltaY=0,this.deltaZ=0},updateWorldPoint:function(i){var o=i.getWorldPoint(this.x,this.y);return this.worldX=o.x,this.worldY=o.y,this},positionToCamera:function(i,o){return i.getWorldPoint(this.x,this.y,o)},updateMotion:function(){var i=this.position.x,o=this.position.y,l=this.midPoint.x,f=this.midPoint.y;if(!(i===l&&o===f)){var d=n(this.motionFactor,l,i),v=n(this.motionFactor,f,o);r(d,i,.1)&&(d=i),r(v,o,.1)&&(v=o),this.midPoint.set(d,v);var m=i-d,g=o-v;this.velocity.set(m,g),this.angle=u(d,v,i,o),this.distance=Math.sqrt(m*m+g*g)}},up:function(i){"buttons"in i&&(this.buttons=i.buttons),this.event=i,this.button=i.button,this.upElement=i.target,this.manager.transformPointer(this,i.pageX,i.pageY,!1),i.button===0&&(this.primaryDown=!1,this.upX=this.x,this.upY=this.y),this.buttons===0&&(this.isDown=!1,this.upTime=i.timeStamp,this.wasTouch=!1)},down:function(i){"buttons"in i&&(this.buttons=i.buttons),this.event=i,this.button=i.button,this.downElement=i.target,this.manager.transformPointer(this,i.pageX,i.pageY,!1),i.button===0&&(this.primaryDown=!0,this.downX=this.x,this.downY=this.y),s.macOS&&i.ctrlKey&&(this.buttons=2,this.primaryDown=!1),this.isDown||(this.isDown=!0,this.downTime=i.timeStamp),this.wasTouch=!1},move:function(i){"buttons"in i&&(this.buttons=i.buttons),this.event=i,this.manager.transformPointer(this,i.pageX,i.pageY,!0),this.locked&&(this.movementX=i.movementX||i.mozMovementX||i.webkitMovementX||0,this.movementY=i.movementY||i.mozMovementY||i.webkitMovementY||0),this.moveTime=i.timeStamp,this.wasTouch=!1},wheel:function(i){"buttons"in i&&(this.buttons=i.buttons),this.event=i,this.manager.transformPointer(this,i.pageX,i.pageY,!1),this.deltaX=i.deltaX,this.deltaY=i.deltaY,this.deltaZ=i.deltaZ,this.wasTouch=!1},touchstart:function(i,o){i.pointerId&&(this.pointerId=i.pointerId),this.identifier=i.identifier,this.target=i.target,this.active=!0,this.buttons=1,this.event=o,this.downElement=i.target,this.manager.transformPointer(this,i.pageX,i.pageY,!1),this.primaryDown=!0,this.downX=this.x,this.downY=this.y,this.downTime=o.timeStamp,this.isDown=!0,this.wasTouch=!0,this.wasCanceled=!1,this.updateMotion()},touchmove:function(i,o){this.event=o,this.manager.transformPointer(this,i.pageX,i.pageY,!0),this.moveTime=o.timeStamp,this.wasTouch=!0,this.updateMotion()},touchend:function(i,o){this.buttons=0,this.event=o,this.upElement=i.target,this.manager.transformPointer(this,i.pageX,i.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=o.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!1,this.active=!1,this.updateMotion()},touchcancel:function(i,o){this.buttons=0,this.event=o,this.upElement=i.target,this.manager.transformPointer(this,i.pageX,i.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=o.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!0,this.active=!1},noButtonDown:function(){return this.buttons===0},leftButtonDown:function(){return!!(this.buttons&1)},rightButtonDown:function(){return!!(this.buttons&2)},middleButtonDown:function(){return!!(this.buttons&4)},backButtonDown:function(){return!!(this.buttons&8)},forwardButtonDown:function(){return!!(this.buttons&16)},leftButtonReleased:function(){return this.buttons===0?this.button===0&&!this.isDown:this.button===0},rightButtonReleased:function(){return this.buttons===0?this.button===2&&!this.isDown:this.button===2},middleButtonReleased:function(){return this.buttons===0?this.button===1&&!this.isDown:this.button===1},backButtonReleased:function(){return this.buttons===0?this.button===3&&!this.isDown:this.button===3},forwardButtonReleased:function(){return this.buttons===0?this.button===4&&!this.isDown:this.button===4},getDistance:function(){return this.isDown?a(this.downX,this.downY,this.x,this.y):a(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?u(this.downX,this.downY,this.x,this.y):u(this.downX,this.downY,this.upX,this.upY)},getInterpolatedPosition:function(i,o){i===void 0&&(i=10),o===void 0&&(o=[]);for(var l=this.prevPosition.x,f=this.prevPosition.y,d=this.position.x,v=this.position.y,m=0;m{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={MOUSE_DOWN:0,MOUSE_MOVE:1,MOUSE_UP:2,TOUCH_START:3,TOUCH_MOVE:4,TOUCH_END:5,POINTER_LOCK_CHANGE:6,TOUCH_CANCEL:7,MOUSE_WHEEL:8};c.exports=y},7179:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="boot"},85375:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="destroy"},39843:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="dragend"},23388:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="dragenter"},16133:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="drag"},27829:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="dragleave"},53904:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="dragover"},56058:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="dragstart"},2642:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="drop"},88171:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="gameobjectdown"},36147:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="dragend"},71692:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="dragenter"},96149:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="drag"},81285:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="dragleave"},74048:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="dragover"},21322:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="dragstart"},49378:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="drop"},86754:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="gameobjectmove"},86433:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="gameobjectout"},60709:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="gameobjectover"},24081:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="pointerdown"},11172:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="pointermove"},18907:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="pointerout"},95579:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="pointerover"},35368:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="pointerup"},26972:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="wheel"},47078:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="gameobjectup"},73802:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="gameobjectwheel"},56718:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="gameout"},25936:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="gameover"},27503:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="boot"},50852:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="process"},96438:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="update"},59152:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="pointerlockchange"},47777:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="pointerdown"},27957:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="pointerdownoutside"},19444:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="pointermove"},54251:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="pointerout"},18667:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="pointerover"},27192:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="pointerup"},24652:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="pointerupoutside"},45132:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="wheel"},44512:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="preupdate"},15757:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="shutdown"},41637:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="start"},93802:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="update"},8214:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={BOOT:t(7179),DESTROY:t(85375),DRAG_END:t(39843),DRAG_ENTER:t(23388),DRAG:t(16133),DRAG_LEAVE:t(27829),DRAG_OVER:t(53904),DRAG_START:t(56058),DROP:t(2642),GAME_OUT:t(56718),GAME_OVER:t(25936),GAMEOBJECT_DOWN:t(88171),GAMEOBJECT_DRAG_END:t(36147),GAMEOBJECT_DRAG_ENTER:t(71692),GAMEOBJECT_DRAG:t(96149),GAMEOBJECT_DRAG_LEAVE:t(81285),GAMEOBJECT_DRAG_OVER:t(74048),GAMEOBJECT_DRAG_START:t(21322),GAMEOBJECT_DROP:t(49378),GAMEOBJECT_MOVE:t(86754),GAMEOBJECT_OUT:t(86433),GAMEOBJECT_OVER:t(60709),GAMEOBJECT_POINTER_DOWN:t(24081),GAMEOBJECT_POINTER_MOVE:t(11172),GAMEOBJECT_POINTER_OUT:t(18907),GAMEOBJECT_POINTER_OVER:t(95579),GAMEOBJECT_POINTER_UP:t(35368),GAMEOBJECT_POINTER_WHEEL:t(26972),GAMEOBJECT_UP:t(47078),GAMEOBJECT_WHEEL:t(73802),MANAGER_BOOT:t(27503),MANAGER_PROCESS:t(50852),MANAGER_UPDATE:t(96438),POINTER_DOWN:t(47777),POINTER_DOWN_OUTSIDE:t(27957),POINTER_MOVE:t(19444),POINTER_OUT:t(54251),POINTER_OVER:t(18667),POINTER_UP:t(27192),POINTER_UP_OUTSIDE:t(24652),POINTER_WHEEL:t(45132),POINTERLOCK_CHANGE:t(59152),PRE_UPDATE:t(44512),SHUTDOWN:t(15757),START:t(41637),UPDATE:t(93802)}},97421:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=new u({initialize:function(r,n){this.pad=r,this.events=r.events,this.index=n,this.value=0,this.threshold=.1},update:function(a){this.value=a},getValue:function(){return Math.abs(this.value){/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(92734),a=new u({initialize:function(n,e){this.pad=n,this.events=n.manager,this.index=e,this.value=0,this.threshold=1,this.pressed=!1},update:function(r){this.value=r;var n=this.pad,e=this.index;r>=this.threshold?this.pressed||(this.pressed=!0,this.events.emit(p.BUTTON_DOWN,n,this,r),this.pad.emit(p.GAMEPAD_BUTTON_DOWN,e,r,this)):this.pressed&&(this.pressed=!1,this.events.emit(p.BUTTON_UP,n,this,r),this.pad.emit(p.GAMEPAD_BUTTON_UP,e,r,this))},destroy:function(){this.pad=null,this.events=null}});c.exports=a},99125:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(97421),p=t(28884),a=t(83419),r=t(50792),n=t(26099),e=new a({Extends:r,initialize:function(h,i){r.call(this),this.manager=h,this.pad=i,this.id=i.id,this.index=i.index;for(var o=[],l=0;l=2&&(this.leftStick.set(f[0].getValue(),f[1].getValue()),l>=4&&this.rightStick.set(f[2].getValue(),f[3].getValue()))}},destroy:function(){this.removeAllListeners(),this.manager=null,this.pad=null;var s;for(s=0;s{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(50792),a=t(92734),r=t(99125),n=t(35154),e=t(89639),s=t(8214),h=new u({Extends:p,initialize:function(o){p.call(this),this.scene=o.scene,this.settings=this.scene.sys.settings,this.sceneInputPlugin=o,this.enabled=!0,this.target,this.gamepads=[],this.queue=[],this.onGamepadHandler,this._pad1,this._pad2,this._pad3,this._pad4,o.pluginEvents.once(s.BOOT,this.boot,this),o.pluginEvents.on(s.START,this.start,this)},boot:function(){var i=this.scene.sys.game,o=this.settings.input,l=i.config;this.enabled=n(o,"gamepad",l.inputGamepad)&&i.device.input.gamepads,this.target=n(o,"gamepad.target",l.inputGamepadEventTarget),this.sceneInputPlugin.pluginEvents.once(s.DESTROY,this.destroy,this)},start:function(){this.enabled&&(this.startListeners(),this.refreshPads()),this.sceneInputPlugin.pluginEvents.once(s.SHUTDOWN,this.shutdown,this)},isActive:function(){return this.enabled&&this.scene.sys.isActive()},startListeners:function(){var i=this,o=this.target,l=function(f){f.defaultPrevented||!i.isActive()||(i.refreshPads(),i.queue.push(f))};this.onGamepadHandler=l,o.addEventListener("gamepadconnected",l,!1),o.addEventListener("gamepaddisconnected",l,!1),this.sceneInputPlugin.pluginEvents.on(s.UPDATE,this.update,this)},stopListeners:function(){this.target.removeEventListener("gamepadconnected",this.onGamepadHandler),this.target.removeEventListener("gamepaddisconnected",this.onGamepadHandler),this.sceneInputPlugin.pluginEvents.off(s.UPDATE,this.update);for(var i=0;i{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={UP:12,DOWN:13,LEFT:14,RIGHT:15,SELECT:8,START:9,B:0,A:1,Y:2,X:3,LEFT_SHOULDER:4,RIGHT_SHOULDER:5}},65294:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={UP:12,DOWN:13,LEFT:14,RIGHT:15,SHARE:8,OPTIONS:9,PS:16,TOUCHBAR:17,X:0,CIRCLE:1,SQUARE:2,TRIANGLE:3,L1:4,R1:5,L2:6,R2:7,L3:10,R3:11,LEFT_STICK_H:0,LEFT_STICK_V:1,RIGHT_STICK_H:2,RIGHT_STICK_V:3}},90089:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={UP:12,DOWN:13,LEFT:14,RIGHT:15,MENU:16,A:0,B:1,X:2,Y:3,LB:4,RB:5,LT:6,RT:7,BACK:8,START:9,LS:10,RS:11,LEFT_STICK_H:0,LEFT_STICK_V:1,RIGHT_STICK_H:2,RIGHT_STICK_V:3}},64894:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={DUALSHOCK_4:t(65294),SNES_USB:t(89651),XBOX_360:t(90089)}},46008:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="down"},7629:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="up"},42206:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="connected"},86544:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="disconnected"},94784:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="down"},14325:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="up"},92734:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={BUTTON_DOWN:t(46008),BUTTON_UP:t(7629),CONNECTED:t(42206),DISCONNECTED:t(86544),GAMEPAD_BUTTON_DOWN:t(94784),GAMEPAD_BUTTON_UP:t(14325)}},48646:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={Axis:t(97421),Button:t(28884),Events:t(92734),Gamepad:t(99125),GamepadPlugin:t(56654),Configs:t(64894)}},14350:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(93301),p=t(79291),a={CreatePixelPerfectHandler:t(84409),CreateInteractiveObject:t(74457),Events:t(8214),Gamepad:t(48646),InputManager:t(7003),InputPlugin:t(48205),InputPluginCache:t(89639),Keyboard:t(51442),Mouse:t(87078),Pointer:t(42515),Touch:t(95618)};a=p(!1,a,u),c.exports=a},78970:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(72905),p=t(83419),a=t(8443),r=t(8214),n=t(46032),e=t(29747),s=new p({initialize:function(i){this.manager=i,this.queue=[],this.preventDefault=!0,this.captures=[],this.enabled=!1,this.target,this.onKeyDown=e,this.onKeyUp=e,i.events.once(r.MANAGER_BOOT,this.boot,this)},boot:function(){var h=this.manager.config;this.enabled=h.inputKeyboard,this.target=h.inputKeyboardEventTarget,this.addCapture(h.inputKeyboardCapture),!this.target&&window&&(this.target=window),this.enabled&&this.target&&this.startListeners(),this.manager.game.events.on(a.POST_STEP,this.postUpdate,this)},startListeners:function(){var h=this;this.onKeyDown=function(o){if(!(o.defaultPrevented||!h.enabled||!h.manager)){h.queue.push(o),h.manager.events.emit(r.MANAGER_PROCESS);var l=o.altKey||o.ctrlKey||o.shiftKey||o.metaKey;h.preventDefault&&!l&&h.captures.indexOf(o.keyCode)>-1&&o.preventDefault()}},this.onKeyUp=function(o){if(!(o.defaultPrevented||!h.enabled||!h.manager)){h.queue.push(o),h.manager.events.emit(r.MANAGER_PROCESS);var l=o.altKey||o.ctrlKey||o.shiftKey||o.metaKey;h.preventDefault&&!l&&h.captures.indexOf(o.keyCode)>-1&&o.preventDefault()}};var i=this.target;i&&(i.addEventListener("keydown",this.onKeyDown,!1),i.addEventListener("keyup",this.onKeyUp,!1),this.enabled=!0)},stopListeners:function(){var h=this.target;h.removeEventListener("keydown",this.onKeyDown,!1),h.removeEventListener("keyup",this.onKeyUp,!1),this.enabled=!1},postUpdate:function(){this.queue=[]},addCapture:function(h){typeof h=="string"&&(h=h.split(",")),Array.isArray(h)||(h=[h]);for(var i=this.captures,o=0;o0},removeCapture:function(h){typeof h=="string"&&(h=h.split(",")),Array.isArray(h)||(h=[h]);for(var i=this.captures,o=0;o0},clearCaptures:function(){this.captures=[],this.preventDefault=!1},destroy:function(){this.stopListeners(),this.clearCaptures(),this.queue=[],this.manager.game.events.off(a.POST_RENDER,this.postUpdate,this),this.target=null,this.enabled=!1,this.manager=null}});c.exports=s},28846:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(50792),a=t(95922),r=t(8443),n=t(35154),e=t(8214),s=t(89639),h=t(30472),i=t(46032),o=t(87960),l=t(74600),f=t(44594),d=t(56583),v=new u({Extends:p,initialize:function(g){p.call(this),this.game=g.systems.game,this.scene=g.scene,this.settings=this.scene.sys.settings,this.sceneInputPlugin=g,this.manager=g.manager.keyboard,this.enabled=!0,this.keys=[],this.combos=[],this.prevCode=null,this.prevTime=0,this.prevType=null,g.pluginEvents.once(e.BOOT,this.boot,this),g.pluginEvents.on(e.START,this.start,this)},boot:function(){var m=this.settings.input;this.enabled=n(m,"keyboard",!0);var g=n(m,"keyboard.capture",null);g&&this.addCaptures(g),this.sceneInputPlugin.pluginEvents.once(e.DESTROY,this.destroy,this)},start:function(){this.sceneInputPlugin.manager.events.on(e.MANAGER_PROCESS,this.update,this),this.sceneInputPlugin.pluginEvents.once(e.SHUTDOWN,this.shutdown,this),this.game.events.on(r.BLUR,this.resetKeys,this),this.scene.sys.events.on(f.PAUSE,this.resetKeys,this),this.scene.sys.events.on(f.SLEEP,this.resetKeys,this)},isActive:function(){return this.enabled&&this.scene.sys.canInput()},addCapture:function(m){return this.manager.addCapture(m),this},removeCapture:function(m){return this.manager.removeCapture(m),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:i.UP,down:i.DOWN,left:i.LEFT,right:i.RIGHT,space:i.SPACE,shift:i.SHIFT})},addKeys:function(m,g,x){g===void 0&&(g=!0),x===void 0&&(x=!1);var S={};if(typeof m=="string"){m=m.split(",");for(var C=0;C-1?S[C]=m:S[m.keyCode]=m,g&&this.addCapture(m.keyCode),m.setEmitOnRepeat(x),m}return typeof m=="string"&&(m=i[m.toUpperCase()]),S[m]||(S[m]=new h(this,m),g&&this.addCapture(m),S[m].setEmitOnRepeat(x)),S[m]},removeKey:function(m,g,x){g===void 0&&(g=!1),x===void 0&&(x=!1);var S=this.keys,C;if(m instanceof h){var E=S.indexOf(m);E>-1&&(C=this.keys[E],this.keys[E]=void 0)}else typeof m=="string"&&(m=i[m.toUpperCase()]);return S[m]&&(C=S[m],S[m]=void 0),C&&(C.plugin=null,x&&this.removeCapture(C.keyCode),g&&C.destroy()),this},removeAllKeys:function(m,g){m===void 0&&(m=!1),g===void 0&&(g=!1);for(var x=this.keys,S=0;Sm._tick)return m._tick=x,!0}return!1},update:function(){var m=this.manager.queue,g=m.length;if(!(!this.isActive()||g===0))for(var x=this.keys,S=0;S{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return u.timeLastMatched=t.timeStamp,u.index++,u.index===u.size?!0:(u.current=u.keyCodes[u.index],!1)};c.exports=y},87960:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(95922),a=t(95540),r=t(68769),n=t(92803),e=new u({initialize:function(h,i,o){if(o===void 0&&(o={}),i.length<2)return!1;this.manager=h,this.enabled=!0,this.keyCodes=[];for(var l=0;l{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(66970),p=function(a,r){if(r.matched)return!0;var n=!1,e=!1;if(a.keyCode===r.current)if(r.index>0&&r.maxKeyDelay>0){var s=r.timeLastMatched+r.maxKeyDelay;a.timeStamp<=s&&(e=!0,n=u(a,r))}else e=!0,n=u(a,r);return!e&&r.resetOnWrongKey&&(r.index=0,r.current=r.keyCodes[0]),n&&(r.timeLastMatched=a.timeStamp,r.matched=!0,r.timeMatched=a.timeStamp),n};c.exports=p},92803:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t.current=t.keyCodes[0],t.index=0,t.timeLastMatched=0,t.matched=!1,t.timeMatched=0,t};c.exports=y},92612:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="keydown"},23345:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="keyup"},21957:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="keycombomatch"},44743:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="down"},3771:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="keydown-"},46358:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="keyup-"},75674:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="up"},95922:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={ANY_KEY_DOWN:t(92612),ANY_KEY_UP:t(23345),COMBO_MATCH:t(21957),DOWN:t(44743),KEY_DOWN:t(3771),KEY_UP:t(46358),UP:t(75674)}},51442:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={Events:t(95922),KeyboardManager:t(78970),KeyboardPlugin:t(28846),Key:t(30472),KeyCodes:t(46032),KeyCombo:t(87960),AdvanceKeyCombo:t(66970),ProcessKeyCombo:t(68769),ResetKeyCombo:t(92803),JustDown:t(90229),JustUp:t(38796),DownDuration:t(37015),UpDuration:t(41170)}},37015:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){u===void 0&&(u=50);var p=t.plugin.game.loop.time-t.timeDown;return t.isDown&&p{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t._justDown?(t._justDown=!1,!0):!1};c.exports=y},38796:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t._justUp?(t._justUp=!1,!0):!1};c.exports=y},30472:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(50792),a=t(95922),r=new u({Extends:p,initialize:function(e,s){p.call(this),this.plugin=e,this.keyCode=s,this.originalEvent=void 0,this.enabled=!0,this.isDown=!1,this.isUp=!0,this.altKey=!1,this.ctrlKey=!1,this.shiftKey=!1,this.metaKey=!1,this.location=0,this.timeDown=0,this.duration=0,this.timeUp=0,this.emitOnRepeat=!1,this.repeats=0,this._justDown=!1,this._justUp=!1,this._tick=-1},setEmitOnRepeat:function(n){return this.emitOnRepeat=n,this},onDown:function(n){this.originalEvent=n,this.enabled&&(this.altKey=n.altKey,this.ctrlKey=n.ctrlKey,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.location=n.location,this.repeats++,this.isDown?this.emitOnRepeat&&this.emit(a.DOWN,this,n):(this.isDown=!0,this.isUp=!1,this.timeDown=n.timeStamp,this.duration=0,this._justDown=!0,this._justUp=!1,this.emit(a.DOWN,this,n)))},onUp:function(n){this.originalEvent=n,this.enabled&&(this.isDown=!1,this.isUp=!0,this.timeUp=n.timeStamp,this.duration=this.timeUp-this.timeDown,this.repeats=0,this._justDown=!1,this._justUp=!0,this._tick=-1,this.emit(a.UP,this,n))},reset:function(){return this.isDown=!1,this.isUp=!0,this.altKey=!1,this.ctrlKey=!1,this.shiftKey=!1,this.metaKey=!1,this.timeDown=0,this.duration=0,this.timeUp=0,this.repeats=0,this._justDown=!1,this._justUp=!1,this._tick=-1,this},getDuration:function(){return this.isDown?this.plugin.game.loop.time-this.timeDown:0},destroy:function(){this.removeAllListeners(),this.originalEvent=null,this.plugin=null}});c.exports=r},46032:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={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};c.exports=y},74600:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(46032),p={};for(var a in u)p[u[a]]=a;c.exports=p},41170:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){u===void 0&&(u=50);var p=t.plugin.game.loop.time-t.timeUp;return t.isUp&&p{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(89357),a=t(8214),r=t(29747),n=new u({initialize:function(s){this.manager=s,this.preventDefaultDown=!0,this.preventDefaultUp=!0,this.preventDefaultMove=!0,this.preventDefaultWheel=!1,this.enabled=!1,this.target,this.locked=!1,this.onMouseMove=r,this.onMouseDown=r,this.onMouseUp=r,this.onMouseDownWindow=r,this.onMouseUpWindow=r,this.onMouseOver=r,this.onMouseOut=r,this.onMouseWheel=r,this.pointerLockChange=r,this.isTop=!0,s.events.once(a.MANAGER_BOOT,this.boot,this)},boot:function(){var e=this.manager.config;this.enabled=e.inputMouse,this.target=e.inputMouseEventTarget,this.passive=e.inputMousePassive,this.preventDefaultDown=e.inputMousePreventDefaultDown,this.preventDefaultUp=e.inputMousePreventDefaultUp,this.preventDefaultMove=e.inputMousePreventDefaultMove,this.preventDefaultWheel=e.inputMousePreventDefaultWheel,this.target?typeof this.target=="string"&&(this.target=document.getElementById(this.target)):this.target=this.manager.game.canvas,e.disableContextMenu&&this.disableContextMenu(),this.enabled&&this.target&&this.startListeners()},disableContextMenu:function(){return this.target.addEventListener("contextmenu",function(e){return e.preventDefault(),!1}),this},requestPointerLock:function(){if(p.pointerLock){var e=this.target;e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock||e.webkitRequestPointerLock,e.requestPointerLock()}},releasePointerLock:function(){p.pointerLock&&(document.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock,document.exitPointerLock())},startListeners:function(){var e=this.target;if(e){var s=this,h=this.manager,i=h.canvas,o=window&&window.focus&&h.game.config.autoFocus;this.onMouseMove=function(f){!f.defaultPrevented&&s.enabled&&h&&h.enabled&&(h.onMouseMove(f),s.preventDefaultMove&&f.preventDefault())},this.onMouseDown=function(f){o&&window.focus(),!f.defaultPrevented&&s.enabled&&h&&h.enabled&&(h.onMouseDown(f),s.preventDefaultDown&&f.target===i&&f.preventDefault())},this.onMouseDownWindow=function(f){f.sourceCapabilities&&f.sourceCapabilities.firesTouchEvents||!f.defaultPrevented&&s.enabled&&h&&h.enabled&&f.target!==i&&h.onMouseDown(f)},this.onMouseUp=function(f){!f.defaultPrevented&&s.enabled&&h&&h.enabled&&(h.onMouseUp(f),s.preventDefaultUp&&f.target===i&&f.preventDefault())},this.onMouseUpWindow=function(f){f.sourceCapabilities&&f.sourceCapabilities.firesTouchEvents||!f.defaultPrevented&&s.enabled&&h&&h.enabled&&f.target!==i&&h.onMouseUp(f)},this.onMouseOver=function(f){!f.defaultPrevented&&s.enabled&&h&&h.enabled&&h.setCanvasOver(f)},this.onMouseOut=function(f){!f.defaultPrevented&&s.enabled&&h&&h.enabled&&h.setCanvasOut(f)},this.onMouseWheel=function(f){!f.defaultPrevented&&s.enabled&&h&&h.enabled&&h.onMouseWheel(f),s.preventDefaultWheel&&f.target===i&&f.preventDefault()};var l={passive:!0};if(e.addEventListener("mousemove",this.onMouseMove),e.addEventListener("mousedown",this.onMouseDown),e.addEventListener("mouseup",this.onMouseUp),e.addEventListener("mouseover",this.onMouseOver,l),e.addEventListener("mouseout",this.onMouseOut,l),this.preventDefaultWheel?e.addEventListener("wheel",this.onMouseWheel,{passive:!1}):e.addEventListener("wheel",this.onMouseWheel,l),window&&h.game.config.inputWindowEvents)try{window.top.addEventListener("mousedown",this.onMouseDownWindow,l),window.top.addEventListener("mouseup",this.onMouseUpWindow,l)}catch{window.addEventListener("mousedown",this.onMouseDownWindow,l),window.addEventListener("mouseup",this.onMouseUpWindow,l),this.isTop=!1}p.pointerLock&&(this.pointerLockChange=function(f){var d=s.target;s.locked=document.pointerLockElement===d||document.mozPointerLockElement===d||document.webkitPointerLockElement===d,h.onPointerLockChange(f)},document.addEventListener("pointerlockchange",this.pointerLockChange,!0),document.addEventListener("mozpointerlockchange",this.pointerLockChange,!0),document.addEventListener("webkitpointerlockchange",this.pointerLockChange,!0)),this.enabled=!0}},stopListeners:function(){var e=this.target;e.removeEventListener("mousemove",this.onMouseMove),e.removeEventListener("mousedown",this.onMouseDown),e.removeEventListener("mouseup",this.onMouseUp),e.removeEventListener("mouseover",this.onMouseOver),e.removeEventListener("mouseout",this.onMouseOut),window&&(e=this.isTop?window.top:window,e.removeEventListener("mousedown",this.onMouseDownWindow),e.removeEventListener("mouseup",this.onMouseUpWindow)),p.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}});c.exports=n},87078:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={MouseManager:t(85098)}},36210:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(8214),a=t(29747),r=new u({initialize:function(e){this.manager=e,this.capture=!0,this.enabled=!1,this.target,this.onTouchStart=a,this.onTouchStartWindow=a,this.onTouchMove=a,this.onTouchEnd=a,this.onTouchEndWindow=a,this.onTouchCancel=a,this.onTouchCancelWindow=a,this.isTop=!0,e.events.once(p.MANAGER_BOOT,this.boot,this)},boot:function(){var n=this.manager.config;this.enabled=n.inputTouch,this.target=n.inputTouchEventTarget,this.capture=n.inputTouchCapture,this.target?typeof this.target=="string"&&(this.target=document.getElementById(this.target)):this.target=this.manager.game.canvas,n.disableContextMenu&&this.disableContextMenu(),this.enabled&&this.target&&this.startListeners()},disableContextMenu:function(){return this.target.addEventListener("contextmenu",function(n){return n.preventDefault(),!1}),this},startListeners:function(){var n=this.target;if(n){var e=this,s=this.manager,h=s.canvas,i=window&&window.focus&&s.game.config.autoFocus;this.onTouchMove=function(d){!d.defaultPrevented&&e.enabled&&s&&s.enabled&&(s.onTouchMove(d),e.capture&&d.cancelable&&d.preventDefault())},this.onTouchStart=function(d){i&&window.focus(),!d.defaultPrevented&&e.enabled&&s&&s.enabled&&(s.onTouchStart(d),e.capture&&d.cancelable&&d.target===h&&d.preventDefault())},this.onTouchStartWindow=function(d){!d.defaultPrevented&&e.enabled&&s&&s.enabled&&d.target!==h&&s.onTouchStart(d)},this.onTouchEnd=function(d){!d.defaultPrevented&&e.enabled&&s&&s.enabled&&(s.onTouchEnd(d),e.capture&&d.cancelable&&d.target===h&&d.preventDefault())},this.onTouchEndWindow=function(d){!d.defaultPrevented&&e.enabled&&s&&s.enabled&&d.target!==h&&s.onTouchEnd(d)},this.onTouchCancel=function(d){!d.defaultPrevented&&e.enabled&&s&&s.enabled&&(s.onTouchCancel(d),e.capture&&d.preventDefault())},this.onTouchCancelWindow=function(d){!d.defaultPrevented&&e.enabled&&s&&s.enabled&&s.onTouchCancel(d)};var o=this.capture,l={passive:!0},f={passive:!1};if(n.addEventListener("touchstart",this.onTouchStart,o?f:l),n.addEventListener("touchmove",this.onTouchMove,o?f:l),n.addEventListener("touchend",this.onTouchEnd,o?f:l),n.addEventListener("touchcancel",this.onTouchCancel,o?f:l),window&&s.game.config.inputWindowEvents)try{window.top.addEventListener("touchstart",this.onTouchStartWindow,f),window.top.addEventListener("touchend",this.onTouchEndWindow,f),window.top.addEventListener("touchcancel",this.onTouchCancelWindow,f)}catch{window.addEventListener("touchstart",this.onTouchStartWindow,f),window.addEventListener("touchend",this.onTouchEndWindow,f),window.addEventListener("touchcancel",this.onTouchCancelWindow,f),this.isTop=!1}this.enabled=!0}},stopListeners:function(){var n=this.target;n.removeEventListener("touchstart",this.onTouchStart),n.removeEventListener("touchmove",this.onTouchMove),n.removeEventListener("touchend",this.onTouchEnd),n.removeEventListener("touchcancel",this.onTouchCancel),window&&(n=this.isTop?window.top:window,n.removeEventListener("touchstart",this.onTouchStartWindow),n.removeEventListener("touchend",this.onTouchEndWindow),n.removeEventListener("touchcancel",this.onTouchCancelWindow))},destroy:function(){this.stopListeners(),this.target=null,this.enabled=!1,this.manager=null}});c.exports=r},95618:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={TouchManager:t(36210)}},41299:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(23906),a=t(54899),r=t(95540),n=t(98356),e=t(3374),s=t(84376),h=t(92638),i=new u({initialize:function(l,f){if(this.loader=l,this.cache=r(f,"cache",!1),this.type=r(f,"type",!1),!this.type)throw new Error("Invalid File type: "+this.type);this.key=r(f,"key",!1);var d=this.key;if(l.prefix&&l.prefix!==""&&(this.key=l.prefix+d),!this.key)throw new Error("Invalid File key: "+this.key);var v=r(f,"url");v===void 0?v=l.path+d+"."+r(f,"extension",""):typeof v=="string"&&!v.match(/^(?:blob:|data:|capacitor:\/\/|http:\/\/|https:\/\/|\/\/)/)&&(v=l.path+v),this.url=v,this.src="",this.xhrSettings=h(r(f,"responseType",void 0)),r(f,"xhrSettings",!1)&&(this.xhrSettings=e(this.xhrSettings,r(f,"xhrSettings",{}))),this.xhrLoader=null,this.state=typeof this.url=="function"?p.FILE_POPULATED:p.FILE_PENDING,this.bytesTotal=0,this.bytesLoaded=-1,this.percentComplete=-1,this.crossOrigin=void 0,this.data=void 0,this.config=r(f,"config",{}),this.multiFile,this.linkFile,this.base64=typeof v=="string"&&v.indexOf("data:")===0,this.retryAttempts=r(f,"maxRetries",l.maxRetries)},setLink:function(o){this.linkFile=o,o.linkFile=this},resetXHR:function(){this.xhrLoader&&(this.xhrLoader.onload=void 0,this.xhrLoader.onerror=void 0,this.xhrLoader.onprogress=void 0)},load:function(){if(this.state===p.FILE_POPULATED)this.loader.nextFile(this,!0);else{if(this.state=p.FILE_LOADING,this.src=n(this,this.loader.baseURL),!this.src)throw new Error("URL Error in File: "+this.key+" from: "+this.url);this.src.indexOf("data:")===0&&(this.base64=!0),this.xhrLoader=s(this,this.loader.xhr)}},onLoad:function(o,l){var f=o.responseURL&&this.loader.localSchemes.some(function(m){return o.responseURL.indexOf(m)===0}),d=f&&l.target.status===0,v=!(l.target&&l.target.status!==200)||d;o.readyState===4&&o.status>=400&&o.status<=599&&(v=!1),this.state=p.FILE_LOADED,this.resetXHR(),this.loader.nextFile(this,v)},onBase64Load:function(o){this.xhrLoader=o,this.state=p.FILE_LOADED,this.percentComplete=1,this.loader.emit(a.FILE_PROGRESS,this,this.percentComplete),this.loader.nextFile(this,!0)},onError:function(){this.resetXHR(),this.retryAttempts>0?(this.retryAttempts--,this.load()):this.loader.nextFile(this,!1)},onProgress:function(o){o.lengthComputable&&(this.bytesLoaded=o.loaded,this.bytesTotal=o.total,this.percentComplete=Math.min(this.bytesLoaded/this.bytesTotal,1),this.loader.emit(a.FILE_PROGRESS,this,this.percentComplete))},onProcess:function(){this.state=p.FILE_PROCESSING,this.onProcessComplete()},onProcessComplete:function(){this.state=p.FILE_COMPLETE,this.multiFile&&this.multiFile.onFileComplete(this),this.loader.fileProcessComplete(this)},onProcessError:function(){console.error('Failed to process file: %s "%s"',this.type,this.key),this.state=p.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.data&&this.cache.add(this.key,this.data)},pendingDestroy:function(o){if(this.state!==p.FILE_PENDING_DESTROY){o===void 0&&(o=this.data);var l=this.key,f=this.type;this.loader.emit(a.FILE_COMPLETE,l,f,o),this.loader.emit(a.FILE_KEY_COMPLETE+f+"-"+l,l,f,o),this.loader.flagForRemoval(this),this.state=p.FILE_PENDING_DESTROY}},destroy:function(){this.loader=null,this.cache=null,this.xhrSettings=null,this.multiFile=null,this.linkFile=null,this.data=null}});i.createObjectURL=function(o,l,f){if(typeof URL=="function")o.src=URL.createObjectURL(l);else{var d=new FileReader;d.onload=function(){o.removeAttribute("crossOrigin"),o.src="data:"+(l.type||f)+";base64,"+d.result.split(",")[1]},d.onerror=o.onerror,d.readAsDataURL(l)}},i.revokeObjectURL=function(o){typeof URL=="function"&&URL.revokeObjectURL(o.src)},c.exports=i},74099:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={},t={install:function(u){for(var p in y)u[p]=y[p]},register:function(u,p){y[u]=p},destroy:function(){y={}}};c.exports=t},98356:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return t.url?t.url.match(/^(?:blob:|data:|capacitor:\/\/|http:\/\/|https:\/\/|\/\/)/)?t.url:u+t.url:!1};c.exports=y},74261:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(23906),a=t(35072),r=t(50792),n=t(54899),e=t(74099),s=t(95540),h=t(35154),i=t(41212),o=t(37277),l=t(44594),f=t(92638),d=new u({Extends:r,initialize:function(m){r.call(this);var g=m.sys.game.config,x=m.sys.settings.loader;this.scene=m,this.systems=m.sys,this.cacheManager=m.sys.cache,this.textureManager=m.sys.textures,this.sceneManager=m.sys.game.scene,e.install(this),this.prefix="",this.path="",this.baseURL="",this.setBaseURL(s(x,"baseURL",g.loaderBaseURL)),this.setPath(s(x,"path",g.loaderPath)),this.setPrefix(s(x,"prefix",g.loaderPrefix)),this.maxParallelDownloads=s(x,"maxParallelDownloads",g.loaderMaxParallelDownloads),this.xhr=f(s(x,"responseType",g.loaderResponseType),s(x,"async",g.loaderAsync),s(x,"user",g.loaderUser),s(x,"password",g.loaderPassword),s(x,"timeout",g.loaderTimeout),s(x,"withCredentials",g.loaderWithCredentials)),this.crossOrigin=s(x,"crossOrigin",g.loaderCrossOrigin),this.imageLoadType=s(x,"imageLoadType",g.loaderImageLoadType),this.localSchemes=s(x,"localScheme",g.loaderLocalScheme),this.totalToLoad=0,this.progress=0,this.list=new a,this.inflight=new a,this.queue=new a,this._deleteQueue=new a,this.totalFailed=0,this.totalComplete=0,this.state=p.LOADER_IDLE,this.multiKeyIndex=0,this.maxRetries=s(x,"maxRetries",g.loaderMaxRetries),m.sys.events.once(l.BOOT,this.boot,this),m.sys.events.on(l.START,this.pluginStart,this)},boot:function(){this.systems.events.once(l.DESTROY,this.destroy,this)},pluginStart:function(){this.systems.events.once(l.SHUTDOWN,this.shutdown,this)},setBaseURL:function(v){return v===void 0&&(v=""),v!==""&&v.substr(-1)!=="/"&&(v=v.concat("/")),this.baseURL=v,this},setPath:function(v){return v===void 0&&(v=""),v!==""&&v.substr(-1)!=="/"&&(v=v.concat("/")),this.path=v,this},setPrefix:function(v){return v===void 0&&(v=""),this.prefix=v,this},setCORS:function(v){return this.crossOrigin=v,this},addFile:function(v){Array.isArray(v)||(v=[v]);for(var m=0;m0},removePack:function(v,m){var g=this.systems.anims,x=this.cacheManager,S=this.textureManager,C={animation:"json",aseprite:"json",audio:"audio",audioSprite:"audio",binary:"binary",bitmapFont:"bitmapFont",css:null,glsl:"shader",html:"html",json:"json",obj:"obj",plugin:null,scenePlugin:null,script:null,spine:"json",text:"text",tilemapCSV:"tilemap",tilemapImpact:"tilemap",tilemapTiledJSON:"tilemap",video:"video",xml:"xml"},E;if(i(v))E=v;else if(E=x.json.get(v),!E){console.warn("Asset Pack not found in JSON cache:",v);return}m&&(E={_:E[m]});for(var P in E){var R=E[P],M=s(R,"prefix",""),A=s(R,"files"),L=s(R,"defaultType");if(Array.isArray(A))for(var w=0;w0&&this.inflight.size{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(79291),p=t(92638),a=function(r,n){var e=r===void 0?p():u({},r);if(n)for(var s in n)n[s]!==void 0&&(e[s]=n[s]);return e};c.exports=a},26430:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(23906),a=t(54899),r=new u({initialize:function(e,s,h,i){var o=[];i.forEach(function(d){d&&o.push(d)}),this.loader=e,this.type=s,this.key=h;var l=this.key;e.prefix&&e.prefix!==""&&(this.key=e.prefix+l),this.multiKeyIndex=e.multiKeyIndex++,this.files=o,this.state=p.FILE_PENDING,this.complete=!1,this.pending=o.length,this.failed=0,this.config={},this.baseURL=e.baseURL,this.path=e.path,this.prefix=e.prefix;for(var f=0;f{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(3374),p=function(a,r){var n=u(r,a.xhrSettings);if(a.base64){var e=a.url.split(";base64,").pop()||a.url.split(",").pop(),s={responseText:atob(e)};a.onBase64Load(s);return}var h=new XMLHttpRequest;if(h.open("GET",a.src,n.async,n.user,n.password),h.responseType=a.xhrSettings.responseType,h.timeout=n.timeout,n.headers)for(var i in n.headers)h.setRequestHeader(i,n.headers[i]);return n.header&&n.headerValue&&h.setRequestHeader(n.header,n.headerValue),n.requestedWith&&h.setRequestHeader("X-Requested-With",n.requestedWith),n.overrideMimeType&&h.overrideMimeType(n.overrideMimeType),n.withCredentials&&(h.withCredentials=!0),h.onload=a.onLoad.bind(a,h),h.onerror=a.onError.bind(a,h),h.onprogress=a.onProgress.bind(a),h.ontimeout=a.onError.bind(a,h),h.send(),h};c.exports=p},92638:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a,r,n){return t===void 0&&(t=""),u===void 0&&(u=!0),p===void 0&&(p=""),a===void 0&&(a=""),r===void 0&&(r=0),n===void 0&&(n=!1),{responseType:t,async:u,user:p,password:a,timeout:r,headers:void 0,header:void 0,headerValue:void 0,requestedWith:!1,overrideMimeType:void 0,withCredentials:n}};c.exports=y},23906:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={LOADER_IDLE:0,LOADER_LOADING:1,LOADER_PROCESSING:2,LOADER_COMPLETE:3,LOADER_SHUTDOWN:4,LOADER_DESTROYED:5,FILE_PENDING:10,FILE_LOADING:11,FILE_LOADED:12,FILE_FAILED:13,FILE_PROCESSING:14,FILE_ERRORED:16,FILE_COMPLETE:17,FILE_DESTROYED:18,FILE_POPULATED:19,FILE_PENDING_DESTROY:20};c.exports=y},42155:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="addfile"},38991:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="complete"},27540:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="filecomplete"},87464:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="filecomplete-"},94486:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="loaderror"},13035:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="load"},38144:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="fileprogress"},97520:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="postprocess"},85595:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="progress"},55680:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="start"},54899:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={ADD:t(42155),COMPLETE:t(38991),FILE_COMPLETE:t(27540),FILE_KEY_COMPLETE:t(87464),FILE_LOAD_ERROR:t(94486),FILE_LOAD:t(13035),FILE_PROGRESS:t(38144),POST_PROCESS:t(97520),PROGRESS:t(85595),START:t(55680)}},14135:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(74099),a=t(518),r=t(54899),n=new u({Extends:a,initialize:function(s,h,i,o,l){a.call(this,s,h,i,o,l),this.type="animationJSON"},onProcess:function(){this.loader.once(r.POST_PROCESS,this.onLoadComplete,this),a.prototype.onProcess.call(this)},onLoadComplete:function(){this.loader.systems.anims.fromJSON(this.data)}});p.register("animation",function(e,s,h,i){if(Array.isArray(e))for(var o=0;o{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(74099),a=t(95540),r=t(19550),n=t(41212),e=t(518),s=t(26430),h=new u({Extends:s,initialize:function(o,l,f,d,v,m){var g,x;if(n(l)){var S=l;l=a(S,"key"),g=new r(o,{key:l,url:a(S,"textureURL"),extension:a(S,"textureExtension","png"),normalMap:a(S,"normalMap"),xhrSettings:a(S,"textureXhrSettings")}),x=new e(o,{key:l,url:a(S,"atlasURL"),extension:a(S,"atlasExtension","json"),xhrSettings:a(S,"atlasXhrSettings")})}else g=new r(o,l,f,v),x=new e(o,l,d,m);g.linkFile?s.call(this,o,"atlasjson",l,[g,x,g.linkFile]):s.call(this,o,"atlasjson",l,[g,x])},addToCache:function(){if(this.isReadyToProcess()){var i=this.files[0],o=this.files[1],l=this.files[2]?this.files[2].data:null;this.loader.textureManager.addAtlas(i.key,i.data,o.data,l),o.addToCache(),this.complete=!0}}});p.register("aseprite",function(i,o,l,f,d){var v;if(Array.isArray(i))for(var m=0;m{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(74099),a=t(95540),r=t(19550),n=t(41212),e=t(518),s=t(26430),h=new u({Extends:s,initialize:function(o,l,f,d,v,m){var g,x;if(n(l)){var S=l;l=a(S,"key"),g=new r(o,{key:l,url:a(S,"textureURL"),extension:a(S,"textureExtension","png"),normalMap:a(S,"normalMap"),xhrSettings:a(S,"textureXhrSettings")}),x=new e(o,{key:l,url:a(S,"atlasURL"),extension:a(S,"atlasExtension","json"),xhrSettings:a(S,"atlasXhrSettings")})}else g=new r(o,l,f,v),x=new e(o,l,d,m);g.linkFile?s.call(this,o,"atlasjson",l,[g,x,g.linkFile]):s.call(this,o,"atlasjson",l,[g,x])},addToCache:function(){if(this.isReadyToProcess()){var i=this.files[0],o=this.files[1],l=this.files[2]?this.files[2].data:null;this.loader.textureManager.addAtlas(i.key,i.data,o.data,l),this.complete=!0}}});p.register("atlas",function(i,o,l,f,d){var v;if(Array.isArray(i))for(var m=0;m{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(74099),a=t(95540),r=t(19550),n=t(41212),e=t(26430),s=t(57318),h=new u({Extends:e,initialize:function(o,l,f,d,v,m){var g,x;if(n(l)){var S=l;l=a(S,"key"),g=new r(o,{key:l,url:a(S,"textureURL"),extension:a(S,"textureExtension","png"),normalMap:a(S,"normalMap"),xhrSettings:a(S,"textureXhrSettings")}),x=new s(o,{key:l,url:a(S,"atlasURL"),extension:a(S,"atlasExtension","xml"),xhrSettings:a(S,"atlasXhrSettings")})}else g=new r(o,l,f,v),x=new s(o,l,d,m);g.linkFile?e.call(this,o,"atlasxml",l,[g,x,g.linkFile]):e.call(this,o,"atlasxml",l,[g,x])},addToCache:function(){if(this.isReadyToProcess()){var i=this.files[0],o=this.files[1],l=this.files[2]?this.files[2].data:null;this.loader.textureManager.addAtlasXML(i.key,i.data,o.data,l),this.complete=!0}}});p.register("atlasXML",function(i,o,l,f,d){var v;if(Array.isArray(i))for(var m=0;m{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(95540),e=t(89749),s=t(41212),h=new u({Extends:a,initialize:function(o,l,f,d,v){if(s(l)){var m=l;l=n(m,"key"),d=n(m,"xhrSettings"),v=n(m,"context",v)}var g={type:"audio",cache:o.cacheManager.audio,extension:f.type,responseType:"arraybuffer",key:l,url:f.url,xhrSettings:d,config:{context:v}};a.call(this,o,g)},onProcess:function(){this.state=p.FILE_PROCESSING;var i=this;this.config.context.decodeAudioData(this.xhrLoader.response,function(o){i.data=o,i.onProcessComplete()},function(o){console.error("Error decoding audio: "+i.key+" - ",o?o.message:null),i.onProcessError()}),this.config.context=null}});h.create=function(i,o,l,f,d){var v=i.systems.game,m=v.config.audio,g=v.device.audio;s(o)&&(l=n(o,"url",[]),f=n(o,"config",{}));var x=h.getAudioURL(v,l);return x?g.webAudio&&!m.disableWebAudio?new h(i,o,x,d,v.sound.context):new e(i,o,x,f):(console.warn('No audio URLs for "%s" can play on this device',o),null)},h.getAudioURL=function(i,o){Array.isArray(o)||(o=[o]);for(var l=0;l{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(21097),p=t(83419),a=t(74099),r=t(95540),n=t(41212),e=t(518),s=t(26430),h=new p({Extends:s,initialize:function(o,l,f,d,v,m,g){if(n(l)){var x=l;l=r(x,"key"),f=r(x,"jsonURL"),d=r(x,"audioURL"),v=r(x,"audioConfig"),m=r(x,"audioXhrSettings"),g=r(x,"jsonXhrSettings")}var S;if(!d)S=new e(o,l,f,g),s.call(this,o,"audiosprite",l,[S]),this.config.resourceLoad=!0,this.config.audioConfig=v,this.config.audioXhrSettings=m;else{var C=u.create(o,l,d,v,m);C&&(S=new e(o,l,f,g),s.call(this,o,"audiosprite",l,[C,S]),this.config.resourceLoad=!1)}},onFileComplete:function(i){var o=this.files.indexOf(i);if(o!==-1&&(this.pending--,this.config.resourceLoad&&i.type==="json"&&i.data.hasOwnProperty("resources"))){var l=i.data.resources,f=r(this.config,"audioConfig"),d=r(this.config,"audioXhrSettings"),v=u.create(this.loader,i.key,l,f,d);v&&(this.addToMultiFile(v),this.loader.addFile(v))}},addToCache:function(){if(this.isReadyToProcess()){var i=this.files[0],o=this.files[1];i.addToCache(),o.addToCache(),this.complete=!0}}});a.register("audioSprite",function(i,o,l,f,d,v){var m=this.systems.game,g=m.config.audio,x=m.device.audio;if(g&&g.noAudio||!x.webAudio&&!x.audioData)return this;var S;if(Array.isArray(i))for(var C=0;C{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new u({Extends:a,initialize:function(i,o,l,f,d){var v="bin";if(e(o)){var m=o;o=n(m,"key"),l=n(m,"url"),f=n(m,"xhrSettings"),v=n(m,"extension",v),d=n(m,"dataType",d)}var g={type:"binary",cache:i.cacheManager.binary,extension:v,responseType:"arraybuffer",key:o,url:l,xhrSettings:f,config:{dataType:d}};a.call(this,i,g)},onProcess:function(){this.state=p.FILE_PROCESSING;var h=this.config.dataType;this.data=h?new h(this.xhrLoader.response):this.xhrLoader.response,this.onProcessComplete()}});r.register("binary",function(h,i,o,l){if(Array.isArray(h))for(var f=0;f{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(74099),a=t(95540),r=t(19550),n=t(41212),e=t(26430),s=t(21859),h=t(57318),i=new u({Extends:e,initialize:function(l,f,d,v,m,g){var x,S;if(n(f)){var C=f;f=a(C,"key"),x=new r(l,{key:f,url:a(C,"textureURL"),extension:a(C,"textureExtension","png"),normalMap:a(C,"normalMap"),xhrSettings:a(C,"textureXhrSettings")}),S=new h(l,{key:f,url:a(C,"fontDataURL"),extension:a(C,"fontDataExtension","xml"),xhrSettings:a(C,"fontDataXhrSettings")})}else x=new r(l,f,d,m),S=new h(l,f,v,g);x.linkFile?e.call(this,l,"bitmapfont",f,[x,S,x.linkFile]):e.call(this,l,"bitmapfont",f,[x,S])},addToCache:function(){if(this.isReadyToProcess()){var o=this.files[0],l=this.files[1];o.addToCache();var f=o.cache.get(o.key),d=s(l.data,o.cache.getFrame(o.key),0,0,f);this.loader.cacheManager.bitmapFont.add(o.key,{data:d,texture:o.key,frame:null}),this.complete=!0}}});p.register("bitmapFont",function(o,l,f,d,v){var m;if(Array.isArray(o))for(var g=0;g{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new u({Extends:a,initialize:function(i,o,l,f){var d="css";if(e(o)){var v=o;o=n(v,"key"),l=n(v,"url"),f=n(v,"xhrSettings"),d=n(v,"extension",d)}var m={type:"script",cache:!1,extension:d,responseType:"text",key:o,url:l,xhrSettings:f};a.call(this,i,m)},onProcess:function(){this.state=p.FILE_PROCESSING,this.data=document.createElement("style"),this.data.defer=!1,this.data.innerHTML=this.xhrLoader.responseText,document.head.appendChild(this.data),this.onProcessComplete()}});r.register("css",function(h,i,o){if(Array.isArray(h))for(var l=0;l{/** + * @author Richard Davey + * @copyright 2021 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(38734),p=t(85722),a=t(83419),r=t(74099),n=t(95540),e=t(19550),s=t(41212),h=t(518),i=t(31403),o=t(46975),l=t(59327),f=t(26430),d=t(82038),v=t(55222),m=new a({Extends:f,initialize:function(x,S,C,E){if(C.multiAtlasURL){var P=new h(x,{key:S,url:C.multiAtlasURL,xhrSettings:E,config:C});f.call(this,x,"texture",S,[P])}else{var R=C.textureURL.substr(C.textureURL.length-3);C.type||(C.type=R.toLowerCase()==="ktx"?"KTX":"PVR");var M=new p(x,{key:S,url:C.textureURL,extension:R,xhrSettings:E,config:C});if(C.atlasURL){var A=new h(x,{key:S,url:C.atlasURL,xhrSettings:E,config:C});f.call(this,x,"texture",S,[M,A])}else f.call(this,x,"texture",S,[M])}this.config=C},onFileComplete:function(g){var x=this.files.indexOf(g);if(x!==-1){if(this.pending--,!this.config.multiAtlasURL)return;if(g.type==="json"&&g.data.hasOwnProperty("textures")){var S=g.data.textures,C=this.config,E=this.loader,P=E.baseURL,R=E.path,M=E.prefix,A=n(C,"multiBaseURL",this.baseURL),L=n(C,"multiPath",this.path),w=n(C,"prefix",this.prefix),N=n(C,"textureXhrSettings");A&&E.setBaseURL(A),L&&E.setPath(L),w&&E.setPrefix(w);for(var b=0;b{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(95540),e=t(98356),s=t(41212),h=new u({Extends:a,initialize:function(o,l,f,d,v,m){var g="ttf";if(s(l)){var x=l;l=n(x,"key"),f=n(x,"url"),d=n(x,"format","truetype"),v=n(x,"descriptors",null),m=n(x,"xhrSettings"),g=n(x,"extension",g)}else d===void 0&&(d="truetype");var S={type:"font",cache:!1,extension:g,responseType:"text",key:l,url:f,xhrSettings:m};a.call(this,o,S),this.data={format:d,descriptors:v},this.state=p.FILE_POPULATED},onProcess:function(){this.state=p.FILE_PROCESSING,this.src=e(this,this.loader.baseURL);var i,o=this.key,l="url("+this.src+') format("'+this.data.format+'")';this.data.descriptors?i=new FontFace(o,l,this.data.descriptors):i=new FontFace(o,l);var f=this;i.load().then(function(){document.fonts.add(i),document.body.classList.add("fonts-loaded"),f.onProcessComplete()}).catch(function(){console.warn("Font failed to load",l),f.onProcessComplete()})}});r.register("font",function(i,o,l,f,d){if(Array.isArray(i))for(var v=0;v{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(95540),e=t(41212),s=t(73894),h=new u({Extends:a,initialize:function(o,l,f,d,v){var m="glsl";if(e(l)){var g=l;l=n(g,"key"),f=n(g,"url"),d=n(g,"shaderType","fragment"),v=n(g,"xhrSettings"),m=n(g,"extension",m)}else d===void 0&&(d="fragment");var x={type:"glsl",cache:o.cacheManager.shader,extension:m,responseType:"text",key:l,url:f,config:{shaderType:d},xhrSettings:v};a.call(this,o,x)},onProcess:function(){this.state=p.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()},addToCache:function(){var i=this.data.split(` +`),o=this.extractBlock(i,0);if(o)for(;o;){var l=this.getShaderName(o.header),f=this.getShaderType(o.header),d=this.getShaderUniforms(o.header),v=o.shader;if(this.cache.has(l)){var m=this.cache.get(l);f==="fragment"?m.fragmentSrc=v:m.vertexSrc=v,m.uniforms||(m.uniforms=d)}else f==="fragment"?this.cache.add(l,new s(l,v,"",d)):this.cache.add(l,new s(l,"",v,d));o=this.extractBlock(i,o.offset)}else this.config.shaderType==="fragment"?this.cache.add(this.key,new s(this.key,this.data)):this.cache.add(this.key,new s(this.key,"",this.data))},getShaderName:function(i){for(var o=0;o{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(54899),a=t(41299),r=t(95540),n=t(98356),e=t(41212),s=new u({Extends:a,initialize:function(i,o,l,f){if(e(o)){var d=o;o=r(d,"key"),f=r(d,"config",f)}var v={type:"audio",cache:i.cacheManager.audio,extension:l.type,key:o,url:l.url,config:f};a.call(this,i,v),this.locked="ontouchstart"in window,this.loaded=!1,this.filesLoaded=0,this.filesTotal=0},onLoad:function(){this.loaded||(this.loaded=!0,this.loader.nextFile(this,!0))},onError:function(){for(var h=0;h{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new u({Extends:a,initialize:function(i,o,l,f){var d="html";if(e(o)){var v=o;o=n(v,"key"),l=n(v,"url"),f=n(v,"xhrSettings"),d=n(v,"extension",d)}var m={type:"text",cache:i.cacheManager.html,extension:d,responseType:"text",key:o,url:l,xhrSettings:f};a.call(this,i,m)},onProcess:function(){this.state=p.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()}});r.register("html",function(h,i,o){if(Array.isArray(h))for(var l=0;l{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new u({Extends:a,initialize:function(i,o,l,f,d,v){f===void 0&&(f=512),d===void 0&&(d=512);var m="html";if(e(o)){var g=o;o=n(g,"key"),l=n(g,"url"),v=n(g,"xhrSettings"),m=n(g,"extension",m),f=n(g,"width",f),d=n(g,"height",d)}var x={type:"html",cache:i.textureManager,extension:m,responseType:"text",key:o,url:l,xhrSettings:v,config:{width:f,height:d}};a.call(this,i,x)},onProcess:function(){this.state=p.FILE_PROCESSING;var h=this.config.width,i=this.config.height,o=[];o.push(''),o.push(''),o.push(''),o.push(this.xhrLoader.responseText),o.push(""),o.push(""),o.push("");var l=[o.join(` +`)],f=this;try{var d=new window.Blob(l,{type:"image/svg+xml;charset=utf-8"})}catch{f.state=p.FILE_ERRORED,f.onProcessComplete();return}this.data=new Image,this.data.crossOrigin=this.crossOrigin,this.data.onload=function(){a.revokeObjectURL(f.data),f.onProcessComplete()},this.data.onerror=function(){a.revokeObjectURL(f.data),f.onProcessError()},a.createObjectURL(this.data,d,"image/svg+xml")},addToCache:function(){this.cache.addImage(this.key,this.data)}});r.register("htmlTexture",function(h,i,o,l,f){if(Array.isArray(h))for(var d=0;d{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(95540),e=t(41212),s=t(98356),h=new u({Extends:a,initialize:function i(o,l,f,d,v){var m="png",g;if(e(l)){var x=l;l=n(x,"key"),f=n(x,"url"),g=n(x,"normalMap"),d=n(x,"xhrSettings"),m=n(x,"extension",m),v=n(x,"frameConfig")}Array.isArray(f)&&(g=f[1],f=f[0]);var S={type:"image",cache:o.textureManager,extension:m,responseType:"blob",key:l,url:f,xhrSettings:d,config:v};if(a.call(this,o,S),g){var C=new i(o,this.key,g,d,v);C.type="normalMap",this.setLink(C),o.addFile(C)}this.useImageElementLoad=o.imageLoadType==="HTMLImageElement"||this.base64,this.useImageElementLoad&&(this.load=this.loadImage,this.onProcess=this.onProcessImage)},onProcess:function(){this.state=p.FILE_PROCESSING,this.data=new Image,this.data.crossOrigin=this.crossOrigin;var i=this;this.data.onload=function(){a.revokeObjectURL(i.data),i.onProcessComplete()},this.data.onerror=function(){a.revokeObjectURL(i.data),i.onProcessError()},a.createObjectURL(this.data,this.xhrLoader.response,"image/png")},onProcessImage:function(){var i=this.state;this.state=p.FILE_PROCESSING,i===p.FILE_LOADED?this.onProcessComplete():this.onProcessError()},loadImage:function(){this.state=p.FILE_LOADING,this.src=s(this,this.loader.baseURL),this.data=new Image,this.data.crossOrigin=this.crossOrigin;var i=this;this.data.onload=function(){i.state=p.FILE_LOADED,i.loader.nextFile(i,!0)},this.data.onerror=function(){i.loader.nextFile(i,!1)},this.data.src=this.src},addToCache:function(){var i=this.linkFile;i?i.state>=p.FILE_COMPLETE&&(i.type==="spritesheet"?i.addToCache():this.type==="normalMap"?this.cache.addImage(this.key,i.data,this.data):this.cache.addImage(this.key,this.data,i.data)):this.cache.addImage(this.key,this.data)}});r.register("image",function(i,o,l){if(Array.isArray(i))for(var f=0;f{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(95540),e=t(35154),s=t(41212),h=new u({Extends:a,initialize:function(o,l,f,d,v){var m="json";if(s(l)){var g=l;l=n(g,"key"),f=n(g,"url"),d=n(g,"xhrSettings"),m=n(g,"extension",m),v=n(g,"dataKey",v)}var x={type:"json",cache:o.cacheManager.json,extension:m,responseType:"text",key:l,url:f,xhrSettings:d,config:v};a.call(this,o,x),s(f)&&(v?this.data=e(f,v):this.data=f,this.state=p.FILE_POPULATED)},onProcess:function(){if(this.state!==p.FILE_POPULATED){this.state=p.FILE_PROCESSING;try{var i=JSON.parse(this.xhrLoader.responseText)}catch(l){throw this.onProcessError(),l}var o=this.config;typeof o=="string"?this.data=e(i,o,i):this.data=i}this.onProcessComplete()}});r.register("json",function(i,o,l,f){if(Array.isArray(i))for(var d=0;d{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(74099),a=t(95540),r=t(19550),n=t(41212),e=t(518),s=t(26430),h=new u({Extends:s,initialize:function(o,l,f,d,v,m,g){if(n(l)){var x=l;l=a(x,"key"),a(x,"url",!1)?f=a(x,"url"):f=a(x,"atlasURL"),m=a(x,"xhrSettings"),d=a(x,"path"),v=a(x,"baseURL"),g=a(x,"textureXhrSettings")}var S=new e(o,l,f,m);s.call(this,o,"multiatlas",l,[S]),this.config.path=d,this.config.baseURL=v,this.config.textureXhrSettings=g},onFileComplete:function(i){var o=this.files.indexOf(i);if(o!==-1&&(this.pending--,i.type==="json"&&i.data.hasOwnProperty("textures"))){var l=i.data.textures,f=this.config,d=this.loader,v=d.baseURL,m=d.path,g=d.prefix,x=a(f,"baseURL",this.baseURL),S=a(f,"path",this.path),C=a(f,"prefix",this.prefix),E=a(f,"textureXhrSettings");d.setBaseURL(x),d.setPath(S),d.setPrefix(C);for(var P=0;P{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(74099),a=t(95540),r=t(41212),n=t(26430),e=t(34328),s=new u({Extends:n,initialize:function(i,o,l,f){var d="js",v=[];if(r(o)){var m=o;o=a(m,"key"),l=a(m,"url"),f=a(m,"xhrSettings"),d=a(m,"extension",d)}Array.isArray(l)||(l=[l]);for(var g=0;g{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(74099),a=t(95540),r=t(41212),n=t(26430),e=t(85048),s=t(61485),h=t(78776),i=new u({Extends:n,initialize:function(l,f,d,v,m,g){var x,S,C=l.cacheManager.obj;if(r(f)){var E=f;f=a(E,"key"),x=new h(l,{key:f,type:"obj",cache:C,url:a(E,"url"),extension:a(E,"extension","obj"),xhrSettings:a(E,"xhrSettings"),config:{flipUV:a(E,"flipUV",m)}}),v=a(E,"matURL"),v&&(S=new h(l,{key:f,type:"mat",cache:C,url:v,extension:a(E,"matExtension","mat"),xhrSettings:a(E,"xhrSettings")}))}else x=new h(l,{key:f,url:d,type:"obj",cache:C,extension:"obj",xhrSettings:g,config:{flipUV:m}}),v&&(S=new h(l,{key:f,url:v,type:"mat",cache:C,extension:"mat",xhrSettings:g}));n.call(this,l,"obj",f,[x,S])},addToCache:function(){if(this.isReadyToProcess()){var o=this.files[0],l=this.files[1],f=e(o.data,o.config.flipUV);l&&(f.materials=s(l.data)),o.cache.add(o.key,f),this.complete=!0}}});p.register("obj",function(o,l,f,d,v){var m;if(Array.isArray(o))for(var g=0;g{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(23906),a=t(74099),r=t(518),n=new u({Extends:r,initialize:function(s,h,i,o,l){r.call(this,s,h,i,o,l),this.type="packfile"},onProcess:function(){if(this.state!==p.FILE_POPULATED&&(this.state=p.FILE_PROCESSING,this.data=JSON.parse(this.xhrLoader.responseText)),this.data.hasOwnProperty("files")&&this.config){var e={};e[this.config]=this.data,this.data=e}this.loader.addPack(this.data,this.config),this.onProcessComplete()}});a.register("pack",function(e,s,h,i){if(Array.isArray(e))for(var o=0;o{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new u({Extends:a,initialize:function(i,o,l,f,d,v){var m="js";if(e(o)){var g=o;o=n(g,"key"),l=n(g,"url"),v=n(g,"xhrSettings"),m=n(g,"extension",m),f=n(g,"start"),d=n(g,"mapping")}var x={type:"plugin",cache:!1,extension:m,responseType:"text",key:o,url:l,xhrSettings:v,config:{start:f,mapping:d}};a.call(this,i,x),typeof l=="function"&&(this.data=l,this.state=p.FILE_POPULATED)},onProcess:function(){var h=this.loader.systems.plugins,i=this.config,o=n(i,"start",!1),l=n(i,"mapping",null);if(this.state===p.FILE_POPULATED)h.install(this.key,this.data,o,l);else{this.state=p.FILE_PROCESSING,this.data=document.createElement("script"),this.data.language="javascript",this.data.type="text/javascript",this.data.defer=!1,this.data.text=this.xhrLoader.responseText,document.head.appendChild(this.data);var f=h.install(this.key,window[this.key],o,l);(o||l)&&(this.loader.systems[l]=f,this.loader.scene[l]=f)}this.onProcessComplete()}});r.register("plugin",function(h,i,o,l,f){if(Array.isArray(h))for(var d=0;d{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new u({Extends:a,initialize:function(i,o,l,f,d){var v="svg";if(e(o)){var m=o;o=n(m,"key"),l=n(m,"url"),f=n(m,"svgConfig",{}),d=n(m,"xhrSettings"),v=n(m,"extension",v)}var g={type:"svg",cache:i.textureManager,extension:v,responseType:"text",key:o,url:l,xhrSettings:d,config:{width:n(f,"width"),height:n(f,"height"),scale:n(f,"scale")}};a.call(this,i,g)},onProcess:function(){this.state=p.FILE_PROCESSING;var h=this.xhrLoader.responseText,i=[h],o=this.config.width,l=this.config.height,f=this.config.scale;t:if(o&&l||f){var d=null,v=new DOMParser;d=v.parseFromString(h,"text/xml");var m=d.getElementsByTagName("svg")[0],g=m.hasAttribute("viewBox"),x=parseFloat(m.getAttribute("width")),S=parseFloat(m.getAttribute("height"));if(!g&&x&&S)m.setAttribute("viewBox","0 0 "+x+" "+S);else if(g&&!x&&!S){var C=m.getAttribute("viewBox").split(/\s+|,/);x=C[2],S=C[3]}if(f)if(x&&S)o=x*f,l=S*f;else break t;m.setAttribute("width",o.toString()+"px"),m.setAttribute("height",l.toString()+"px"),i=[new XMLSerializer().serializeToString(m)]}try{var E=new window.Blob(i,{type:"image/svg+xml;charset=utf-8"})}catch{this.onProcessError();return}this.data=new Image,this.data.crossOrigin=this.crossOrigin;var P=this,R=!1;this.data.onload=function(){R||a.revokeObjectURL(P.data),P.onProcessComplete()},this.data.onerror=function(){R?P.onProcessError():(R=!0,a.revokeObjectURL(P.data),P.data.src="data:image/svg+xml,"+encodeURIComponent(i.join("")))},a.createObjectURL(this.data,E,"image/svg+xml")},addToCache:function(){this.cache.addImage(this.key,this.data)}});r.register("svg",function(h,i,o,l){if(Array.isArray(h))for(var f=0;f{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new u({Extends:a,initialize:function(i,o,l,f){var d="js";if(e(o)){var v=o;o=n(v,"key"),l=n(v,"url"),f=n(v,"xhrSettings"),d=n(v,"extension",d)}var m={type:"text",extension:d,responseType:"text",key:o,url:l,xhrSettings:f};a.call(this,i,m)},onProcess:function(){this.state=p.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()},addToCache:function(){var h=this.data.concat(`(function(){ +return new `+this.key+`(); +}).call(this);`),i=eval;this.loader.sceneManager.add(this.key,i(h)),this.complete=!0}});r.register("sceneFile",function(h,i,o){if(Array.isArray(h))for(var l=0;l{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new u({Extends:a,initialize:function(i,o,l,f,d,v){var m="js";if(e(o)){var g=o;o=n(g,"key"),l=n(g,"url"),v=n(g,"xhrSettings"),m=n(g,"extension",m),f=n(g,"systemKey"),d=n(g,"sceneKey")}var x={type:"scenePlugin",cache:!1,extension:m,responseType:"text",key:o,url:l,xhrSettings:v,config:{systemKey:f,sceneKey:d}};a.call(this,i,x),typeof l=="function"&&(this.data=l,this.state=p.FILE_POPULATED)},onProcess:function(){var h=this.loader.systems.plugins,i=this.config,o=this.key,l=n(i,"systemKey",o),f=n(i,"sceneKey",o);this.state===p.FILE_POPULATED?h.installScenePlugin(l,this.data,f,this.loader.scene,!0):(this.state=p.FILE_PROCESSING,this.data=document.createElement("script"),this.data.language="javascript",this.data.type="text/javascript",this.data.defer=!1,this.data.text=this.xhrLoader.responseText,document.head.appendChild(this.data),h.installScenePlugin(l,window[this.key],f,this.loader.scene,!0)),this.onProcessComplete()}});r.register("scenePlugin",function(h,i,o,l,f){if(Array.isArray(h))for(var d=0;d{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new u({Extends:a,initialize:function(i,o,l,f,d){var v="js";if(e(o)){var m=o;o=n(m,"key"),l=n(m,"url"),f=n(m,"type","script"),d=n(m,"xhrSettings"),v=n(m,"extension",v)}else f===void 0&&(f="script");var g={type:f,cache:!1,extension:v,responseType:"text",key:o,url:l,xhrSettings:d};a.call(this,i,g)},onProcess:function(){this.state=p.FILE_PROCESSING,this.data=document.createElement("script"),this.data.language="javascript",this.data.type="text/javascript",this.data.defer=!1,this.data.text=this.xhrLoader.responseText,document.head.appendChild(this.data),this.onProcessComplete()}});r.register("script",function(h,i,o,l){if(Array.isArray(h))for(var f=0;f{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(23906),a=t(74099),r=t(19550),n=new u({Extends:r,initialize:function(s,h,i,o,l){r.call(this,s,h,i,l,o),this.type="spritesheet"},addToCache:function(){var e=this.linkFile;e?e.state>=p.FILE_COMPLETE&&(this.type==="normalMap"?this.cache.addSpriteSheet(this.key,e.data,this.config,this.data):this.cache.addSpriteSheet(this.key,this.data,this.config,e.data)):this.cache.addSpriteSheet(this.key,this.data,this.config)}});a.register("spritesheet",function(e,s,h,i){if(Array.isArray(e))for(var o=0;o{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(95540),e=t(41212),s=new u({Extends:a,initialize:function(i,o,l,f){var d="text",v="txt",m=i.cacheManager.text;if(e(o)){var g=o;o=n(g,"key"),l=n(g,"url"),f=n(g,"xhrSettings"),v=n(g,"extension",v),d=n(g,"type",d),m=n(g,"cache",m)}var x={type:d,cache:m,extension:v,responseType:"text",key:o,url:l,xhrSettings:f};a.call(this,i,x)},onProcess:function(){this.state=p.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()}});r.register("text",function(h,i,o){if(Array.isArray(h))for(var l=0;l{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(95540),e=t(41212),s=t(80341),h=new u({Extends:a,initialize:function(o,l,f,d){var v="csv";if(e(l)){var m=l;l=n(m,"key"),f=n(m,"url"),d=n(m,"xhrSettings"),v=n(m,"extension",v)}var g={type:"tilemapCSV",cache:o.cacheManager.tilemap,extension:v,responseType:"text",key:l,url:f,xhrSettings:d};a.call(this,o,g),this.tilemapFormat=s.CSV},onProcess:function(){this.state=p.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()},addToCache:function(){var i={format:this.tilemapFormat,data:this.data};this.cache.add(this.key,i)}});r.register("tilemapCSV",function(i,o,l){if(Array.isArray(i))for(var f=0;f{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(74099),a=t(518),r=t(80341),n=new u({Extends:a,initialize:function(s,h,i,o){a.call(this,s,h,i,o),this.type="tilemapJSON",this.cache=s.cacheManager.tilemap},addToCache:function(){var e={format:r.WELTMEISTER,data:this.data};this.cache.add(this.key,e)}});p.register("tilemapImpact",function(e,s,h){if(Array.isArray(e))for(var i=0;i{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(74099),a=t(518),r=t(80341),n=new u({Extends:a,initialize:function(s,h,i,o){a.call(this,s,h,i,o),this.type="tilemapJSON",this.cache=s.cacheManager.tilemap},addToCache:function(){var e={format:r.TILED_JSON,data:this.data};this.cache.add(this.key,e)}});p.register("tilemapTiledJSON",function(e,s,h){if(Array.isArray(e))for(var i=0;i{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(74099),a=t(95540),r=t(19550),n=t(41212),e=t(26430),s=t(78776),h=new u({Extends:e,initialize:function(o,l,f,d,v,m){var g,x;if(n(l)){var S=l;l=a(S,"key"),g=new r(o,{key:l,url:a(S,"textureURL"),extension:a(S,"textureExtension","png"),normalMap:a(S,"normalMap"),xhrSettings:a(S,"textureXhrSettings")}),x=new s(o,{key:l,url:a(S,"atlasURL"),extension:a(S,"atlasExtension","txt"),xhrSettings:a(S,"atlasXhrSettings")})}else g=new r(o,l,f,v),x=new s(o,l,d,m);g.linkFile?e.call(this,o,"unityatlas",l,[g,x,g.linkFile]):e.call(this,o,"unityatlas",l,[g,x])},addToCache:function(){if(this.isReadyToProcess()){var i=this.files[0],o=this.files[1],l=this.files[2]?this.files[2].data:null;this.loader.textureManager.addUnityAtlas(i.key,i.data,o.data,l),this.complete=!0}}});p.register("unityAtlas",function(i,o,l,f,d){var v;if(Array.isArray(i))for(var m=0;m{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(98356),e=t(95540),s=t(41212),h=new u({Extends:a,initialize:function(o,l,f,d){if(d===void 0&&(d=!1),s(l)){var v=l;l=e(v,"key"),f=e(v,"url",[]),d=e(v,"noAudio",!1)}var m=o.systems.game.device.video.getVideoURL(f);m||console.warn("VideoFile: No supported format for "+l);var g={type:"video",cache:o.cacheManager.video,extension:m.type,key:l,url:m.url,config:{noAudio:d}};a.call(this,o,g)},onProcess:function(){this.data={url:this.src,noAudio:this.config.noAudio,crossOrigin:this.crossOrigin},this.onProcessComplete()},load:function(){this.src=n(this,this.loader.baseURL),this.state=p.FILE_LOADED,this.loader.nextFile(this,!0)}});r.register("video",function(i,o,l){if(Array.isArray(i))for(var f=0;f{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(23906),a=t(41299),r=t(74099),n=t(95540),e=t(41212),s=t(56836),h=new u({Extends:a,initialize:function(o,l,f,d){var v="xml";if(e(l)){var m=l;l=n(m,"key"),f=n(m,"url"),d=n(m,"xhrSettings"),v=n(m,"extension",v)}var g={type:"xml",cache:o.cacheManager.xml,extension:v,responseType:"text",key:l,url:f,xhrSettings:d};a.call(this,o,g)},onProcess:function(){this.state=p.FILE_PROCESSING,this.data=s(this.xhrLoader.responseText),this.data?this.onProcessComplete():this.onProcessError()}});r.register("xml",function(i,o,l){if(Array.isArray(i))for(var f=0;f{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={AnimationJSONFile:t(14135),AsepriteFile:t(76272),AtlasJSONFile:t(38734),AtlasXMLFile:t(74599),AudioFile:t(21097),AudioSpriteFile:t(89524),BinaryFile:t(85722),BitmapFontFile:t(97025),CompressedTextureFile:t(69559),CSSFile:t(16024),FontFile:t(87674),GLSLFile:t(47931),HTML5AudioFile:t(89749),HTMLFile:t(88470),HTMLTextureFile:t(14643),ImageFile:t(19550),JSONFile:t(518),MultiAtlasFile:t(59327),MultiScriptFile:t(99297),OBJFile:t(41846),PackFile:t(58610),PluginFile:t(48988),SceneFile:t(88423),ScenePluginFile:t(56812),ScriptFile:t(34328),SpriteSheetFile:t(85035),SVGFile:t(67397),TextFile:t(78776),TilemapCSVFile:t(49477),TilemapImpactFile:t(40807),TilemapJSONFile:t(56775),UnityAtlasFile:t(25771),VideoFile:t(33720),XMLFile:t(57318)}},57777:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(23906),p=t(79291),a={Events:t(54899),FileTypes:t(64589),File:t(41299),FileTypesManager:t(74099),GetURL:t(98356),LoaderPlugin:t(74261),MergeXHRSettings:t(3374),MultiFile:t(26430),XHRLoader:t(84376),XHRSettings:t(92638)};a=p(!1,a,u),c.exports=a},53307:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){for(var u=0,p=0;p{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(6411),p=function(a,r){return u(a)/u(r)/u(a-r)};c.exports=p},30976:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return Math.floor(Math.random()*(u-t+1)+t)};c.exports=y},87842:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a,r){var n=(a-u)*.5,e=(r-p)*.5,s=t*t,h=t*s;return(2*p-2*a+n+e)*h+(-3*p+3*a-2*n-e)*s+n*t+p};c.exports=y},26302:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){u===void 0&&(u=0),p===void 0&&(p=10);var a=Math.pow(p,-u);return Math.ceil(t*a)/a};c.exports=y},45319:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){return Math.max(u,Math.min(p,t))};c.exports=y},39506:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(36383),p=function(a){return a*u.DEG_TO_RAD};c.exports=p},61241:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return Math.abs(t-u)};c.exports=y},38857:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(45319),p=t(83419),a=t(37867),r=t(29747),n=new a,e=new p({initialize:function s(h,i,o,l){h===void 0&&(h=0),i===void 0&&(i=0),o===void 0&&(o=0),l===void 0&&(l=s.DefaultOrder),this._x=h,this._y=i,this._z=o,this._order=l,this.onChangeCallback=r},x:{get:function(){return this._x},set:function(s){this._x=s,this.onChangeCallback(this)}},y:{get:function(){return this._y},set:function(s){this._y=s,this.onChangeCallback(this)}},z:{get:function(){return this._z},set:function(s){this._z=s,this.onChangeCallback(this)}},order:{get:function(){return this._order},set:function(s){this._order=s,this.onChangeCallback(this)}},set:function(s,h,i,o){return o===void 0&&(o=this._order),this._x=s,this._y=h,this._z=i,this._order=o,this.onChangeCallback(this),this},copy:function(s){return this.set(s.x,s.y,s.z,s.order)},setFromQuaternion:function(s,h,i){return h===void 0&&(h=this._order),i===void 0&&(i=!1),n.fromQuat(s),this.setFromRotationMatrix(n,h,i)},setFromRotationMatrix:function(s,h,i){h===void 0&&(h=this._order),i===void 0&&(i=!1);var o=s.val,l=o[0],f=o[4],d=o[8],v=o[1],m=o[5],g=o[9],x=o[2],S=o[6],C=o[10],E=0,P=0,R=0,M=.99999;switch(h){case"XYZ":{P=Math.asin(u(d,-1,1)),Math.abs(d){/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){if(t===0)return 1;for(var u=t;--t;)u*=t;return u};c.exports=y},99472:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return Math.random()*(u-t)+t};c.exports=y},77623:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){u===void 0&&(u=0),p===void 0&&(p=10);var a=Math.pow(p,-u);return Math.floor(t*a)/a};c.exports=y},62945:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(45319),p=function(a,r,n){return a=u(a,0,1),(n-r)*a+r};c.exports=p},38265:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return t/u/1e3};c.exports=y},78702:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t==parseFloat(t)?!(t%2):void 0};c.exports=y},94883:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t===parseFloat(t)?!(t%2):void 0};c.exports=y},28915:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){return(u-t)*p+t};c.exports=y},94908:c=>{/** + * @author Greg McLean + * @copyright 2021 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){return p===void 0&&(p=0),t.clone().lerp(u,p)};c.exports=y},94434:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=new u({initialize:function(r){this.val=new Float32Array(9),r?this.copy(r):this.identity()},clone:function(){return new p(this)},set:function(a){return this.copy(a)},copy:function(a){var r=this.val,n=a.val;return r[0]=n[0],r[1]=n[1],r[2]=n[2],r[3]=n[3],r[4]=n[4],r[5]=n[5],r[6]=n[6],r[7]=n[7],r[8]=n[8],this},fromMat4:function(a){var r=a.val,n=this.val;return n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[4],n[4]=r[5],n[5]=r[6],n[6]=r[8],n[7]=r[9],n[8]=r[10],this},fromArray:function(a){var r=this.val;return r[0]=a[0],r[1]=a[1],r[2]=a[2],r[3]=a[3],r[4]=a[4],r[5]=a[5],r[6]=a[6],r[7]=a[7],r[8]=a[8],this},identity:function(){var a=this.val;return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=1,a[5]=0,a[6]=0,a[7]=0,a[8]=1,this},transpose:function(){var a=this.val,r=a[1],n=a[2],e=a[5];return a[1]=a[3],a[2]=a[6],a[3]=r,a[5]=a[7],a[6]=n,a[7]=e,this},invert:function(){var a=this.val,r=a[0],n=a[1],e=a[2],s=a[3],h=a[4],i=a[5],o=a[6],l=a[7],f=a[8],d=f*h-i*l,v=-f*s+i*o,m=l*s-h*o,g=r*d+n*v+e*m;return g?(g=1/g,a[0]=d*g,a[1]=(-f*n+e*l)*g,a[2]=(i*n-e*h)*g,a[3]=v*g,a[4]=(f*r-e*o)*g,a[5]=(-i*r+e*s)*g,a[6]=m*g,a[7]=(-l*r+n*o)*g,a[8]=(h*r-n*s)*g,this):null},adjoint:function(){var a=this.val,r=a[0],n=a[1],e=a[2],s=a[3],h=a[4],i=a[5],o=a[6],l=a[7],f=a[8];return a[0]=h*f-i*l,a[1]=e*l-n*f,a[2]=n*i-e*h,a[3]=i*o-s*f,a[4]=r*f-e*o,a[5]=e*s-r*i,a[6]=s*l-h*o,a[7]=n*o-r*l,a[8]=r*h-n*s,this},determinant:function(){var a=this.val,r=a[0],n=a[1],e=a[2],s=a[3],h=a[4],i=a[5],o=a[6],l=a[7],f=a[8];return r*(f*h-i*l)+n*(-f*s+i*o)+e*(l*s-h*o)},multiply:function(a){var r=this.val,n=r[0],e=r[1],s=r[2],h=r[3],i=r[4],o=r[5],l=r[6],f=r[7],d=r[8],v=a.val,m=v[0],g=v[1],x=v[2],S=v[3],C=v[4],E=v[5],P=v[6],R=v[7],M=v[8];return r[0]=m*n+g*h+x*l,r[1]=m*e+g*i+x*f,r[2]=m*s+g*o+x*d,r[3]=S*n+C*h+E*l,r[4]=S*e+C*i+E*f,r[5]=S*s+C*o+E*d,r[6]=P*n+R*h+M*l,r[7]=P*e+R*i+M*f,r[8]=P*s+R*o+M*d,this},translate:function(a){var r=this.val,n=a.x,e=a.y;return r[6]=n*r[0]+e*r[3]+r[6],r[7]=n*r[1]+e*r[4]+r[7],r[8]=n*r[2]+e*r[5]+r[8],this},rotate:function(a){var r=this.val,n=r[0],e=r[1],s=r[2],h=r[3],i=r[4],o=r[5],l=Math.sin(a),f=Math.cos(a);return r[0]=f*n+l*h,r[1]=f*e+l*i,r[2]=f*s+l*o,r[3]=f*h-l*n,r[4]=f*i-l*e,r[5]=f*o-l*s,this},scale:function(a){var r=this.val,n=a.x,e=a.y;return r[0]=n*r[0],r[1]=n*r[1],r[2]=n*r[2],r[3]=e*r[3],r[4]=e*r[4],r[5]=e*r[5],this},fromQuat:function(a){var r=a.x,n=a.y,e=a.z,s=a.w,h=r+r,i=n+n,o=e+e,l=r*h,f=r*i,d=r*o,v=n*i,m=n*o,g=e*o,x=s*h,S=s*i,C=s*o,E=this.val;return E[0]=1-(v+g),E[3]=f+C,E[6]=d-S,E[1]=f-C,E[4]=1-(l+g),E[7]=m+x,E[2]=d+S,E[5]=m-x,E[8]=1-(l+v),this},normalFromMat4:function(a){var r=a.val,n=this.val,e=r[0],s=r[1],h=r[2],i=r[3],o=r[4],l=r[5],f=r[6],d=r[7],v=r[8],m=r[9],g=r[10],x=r[11],S=r[12],C=r[13],E=r[14],P=r[15],R=e*l-s*o,M=e*f-h*o,A=e*d-i*o,L=s*f-h*l,w=s*d-i*l,N=h*d-i*f,b=v*C-m*S,V=v*E-g*S,Y=v*P-x*S,G=m*E-g*C,U=m*P-x*C,B=g*P-x*E,I=R*B-M*U+A*G+L*Y-w*V+N*b;return I?(I=1/I,n[0]=(l*B-f*U+d*G)*I,n[1]=(f*Y-o*B-d*V)*I,n[2]=(o*U-l*Y+d*b)*I,n[3]=(h*U-s*B-i*G)*I,n[4]=(e*B-h*Y+i*V)*I,n[5]=(s*Y-e*U-i*b)*I,n[6]=(C*N-E*w+P*L)*I,n[7]=(E*A-S*N-P*M)*I,n[8]=(S*w-C*A+P*R)*I,this):null}});c.exports=p},37867:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(25836),a=1e-6,r=new u({initialize:function(l){this.val=new Float32Array(16),l?this.copy(l):this.identity()},clone:function(){return new r(this)},set:function(o){return this.copy(o)},setValues:function(o,l,f,d,v,m,g,x,S,C,E,P,R,M,A,L){var w=this.val;return w[0]=o,w[1]=l,w[2]=f,w[3]=d,w[4]=v,w[5]=m,w[6]=g,w[7]=x,w[8]=S,w[9]=C,w[10]=E,w[11]=P,w[12]=R,w[13]=M,w[14]=A,w[15]=L,this},copy:function(o){var l=o.val;return this.setValues(l[0],l[1],l[2],l[3],l[4],l[5],l[6],l[7],l[8],l[9],l[10],l[11],l[12],l[13],l[14],l[15])},fromArray:function(o){return this.setValues(o[0],o[1],o[2],o[3],o[4],o[5],o[6],o[7],o[8],o[9],o[10],o[11],o[12],o[13],o[14],o[15])},zero:function(){return this.setValues(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)},transform:function(o,l,f){var d=n.fromQuat(f),v=d.val,m=l.x,g=l.y,x=l.z;return this.setValues(v[0]*m,v[1]*m,v[2]*m,0,v[4]*g,v[5]*g,v[6]*g,0,v[8]*x,v[9]*x,v[10]*x,0,o.x,o.y,o.z,1)},xyz:function(o,l,f){this.identity();var d=this.val;return d[12]=o,d[13]=l,d[14]=f,this},scaling:function(o,l,f){this.zero();var d=this.val;return d[0]=o,d[5]=l,d[10]=f,d[15]=1,this},identity:function(){return this.setValues(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)},transpose:function(){var o=this.val,l=o[1],f=o[2],d=o[3],v=o[6],m=o[7],g=o[11];return o[1]=o[4],o[2]=o[8],o[3]=o[12],o[4]=l,o[6]=o[9],o[7]=o[13],o[8]=f,o[9]=v,o[11]=o[14],o[12]=d,o[13]=m,o[14]=g,this},getInverse:function(o){return this.copy(o),this.invert()},invert:function(){var o=this.val,l=o[0],f=o[1],d=o[2],v=o[3],m=o[4],g=o[5],x=o[6],S=o[7],C=o[8],E=o[9],P=o[10],R=o[11],M=o[12],A=o[13],L=o[14],w=o[15],N=l*g-f*m,b=l*x-d*m,V=l*S-v*m,Y=f*x-d*g,G=f*S-v*g,U=d*S-v*x,B=C*A-E*M,I=C*L-P*M,X=C*w-R*M,K=E*L-P*A,Z=E*w-R*A,J=P*w-R*L,Q=N*J-b*Z+V*K+Y*X-G*I+U*B;return Q?(Q=1/Q,this.setValues((g*J-x*Z+S*K)*Q,(d*Z-f*J-v*K)*Q,(A*U-L*G+w*Y)*Q,(P*G-E*U-R*Y)*Q,(x*X-m*J-S*I)*Q,(l*J-d*X+v*I)*Q,(L*V-M*U-w*b)*Q,(C*U-P*V+R*b)*Q,(m*Z-g*X+S*B)*Q,(f*X-l*Z-v*B)*Q,(M*G-A*V+w*N)*Q,(E*V-C*G-R*N)*Q,(g*I-m*K-x*B)*Q,(l*K-f*I+d*B)*Q,(A*b-M*Y-L*N)*Q,(C*Y-E*b+P*N)*Q)):this},adjoint:function(){var o=this.val,l=o[0],f=o[1],d=o[2],v=o[3],m=o[4],g=o[5],x=o[6],S=o[7],C=o[8],E=o[9],P=o[10],R=o[11],M=o[12],A=o[13],L=o[14],w=o[15];return this.setValues(g*(P*w-R*L)-E*(x*w-S*L)+A*(x*R-S*P),-(f*(P*w-R*L)-E*(d*w-v*L)+A*(d*R-v*P)),f*(x*w-S*L)-g*(d*w-v*L)+A*(d*S-v*x),-(f*(x*R-S*P)-g*(d*R-v*P)+E*(d*S-v*x)),-(m*(P*w-R*L)-C*(x*w-S*L)+M*(x*R-S*P)),l*(P*w-R*L)-C*(d*w-v*L)+M*(d*R-v*P),-(l*(x*w-S*L)-m*(d*w-v*L)+M*(d*S-v*x)),l*(x*R-S*P)-m*(d*R-v*P)+C*(d*S-v*x),m*(E*w-R*A)-C*(g*w-S*A)+M*(g*R-S*E),-(l*(E*w-R*A)-C*(f*w-v*A)+M*(f*R-v*E)),l*(g*w-S*A)-m*(f*w-v*A)+M*(f*S-v*g),-(l*(g*R-S*E)-m*(f*R-v*E)+C*(f*S-v*g)),-(m*(E*L-P*A)-C*(g*L-x*A)+M*(g*P-x*E)),l*(E*L-P*A)-C*(f*L-d*A)+M*(f*P-d*E),-(l*(g*L-x*A)-m*(f*L-d*A)+M*(f*x-d*g)),l*(g*P-x*E)-m*(f*P-d*E)+C*(f*x-d*g))},determinant:function(){var o=this.val,l=o[0],f=o[1],d=o[2],v=o[3],m=o[4],g=o[5],x=o[6],S=o[7],C=o[8],E=o[9],P=o[10],R=o[11],M=o[12],A=o[13],L=o[14],w=o[15],N=l*g-f*m,b=l*x-d*m,V=l*S-v*m,Y=f*x-d*g,G=f*S-v*g,U=d*S-v*x,B=C*A-E*M,I=C*L-P*M,X=C*w-R*M,K=E*L-P*A,Z=E*w-R*A,J=P*w-R*L;return N*J-b*Z+V*K+Y*X-G*I+U*B},multiply:function(o){var l=this.val,f=l[0],d=l[1],v=l[2],m=l[3],g=l[4],x=l[5],S=l[6],C=l[7],E=l[8],P=l[9],R=l[10],M=l[11],A=l[12],L=l[13],w=l[14],N=l[15],b=o.val,V=b[0],Y=b[1],G=b[2],U=b[3];return l[0]=V*f+Y*g+G*E+U*A,l[1]=V*d+Y*x+G*P+U*L,l[2]=V*v+Y*S+G*R+U*w,l[3]=V*m+Y*C+G*M+U*N,V=b[4],Y=b[5],G=b[6],U=b[7],l[4]=V*f+Y*g+G*E+U*A,l[5]=V*d+Y*x+G*P+U*L,l[6]=V*v+Y*S+G*R+U*w,l[7]=V*m+Y*C+G*M+U*N,V=b[8],Y=b[9],G=b[10],U=b[11],l[8]=V*f+Y*g+G*E+U*A,l[9]=V*d+Y*x+G*P+U*L,l[10]=V*v+Y*S+G*R+U*w,l[11]=V*m+Y*C+G*M+U*N,V=b[12],Y=b[13],G=b[14],U=b[15],l[12]=V*f+Y*g+G*E+U*A,l[13]=V*d+Y*x+G*P+U*L,l[14]=V*v+Y*S+G*R+U*w,l[15]=V*m+Y*C+G*M+U*N,this},multiplyLocal:function(o){var l=this.val,f=o.val;return this.setValues(l[0]*f[0]+l[1]*f[4]+l[2]*f[8]+l[3]*f[12],l[0]*f[1]+l[1]*f[5]+l[2]*f[9]+l[3]*f[13],l[0]*f[2]+l[1]*f[6]+l[2]*f[10]+l[3]*f[14],l[0]*f[3]+l[1]*f[7]+l[2]*f[11]+l[3]*f[15],l[4]*f[0]+l[5]*f[4]+l[6]*f[8]+l[7]*f[12],l[4]*f[1]+l[5]*f[5]+l[6]*f[9]+l[7]*f[13],l[4]*f[2]+l[5]*f[6]+l[6]*f[10]+l[7]*f[14],l[4]*f[3]+l[5]*f[7]+l[6]*f[11]+l[7]*f[15],l[8]*f[0]+l[9]*f[4]+l[10]*f[8]+l[11]*f[12],l[8]*f[1]+l[9]*f[5]+l[10]*f[9]+l[11]*f[13],l[8]*f[2]+l[9]*f[6]+l[10]*f[10]+l[11]*f[14],l[8]*f[3]+l[9]*f[7]+l[10]*f[11]+l[11]*f[15],l[12]*f[0]+l[13]*f[4]+l[14]*f[8]+l[15]*f[12],l[12]*f[1]+l[13]*f[5]+l[14]*f[9]+l[15]*f[13],l[12]*f[2]+l[13]*f[6]+l[14]*f[10]+l[15]*f[14],l[12]*f[3]+l[13]*f[7]+l[14]*f[11]+l[15]*f[15])},premultiply:function(o){return this.multiplyMatrices(o,this)},multiplyMatrices:function(o,l){var f=o.val,d=l.val,v=f[0],m=f[4],g=f[8],x=f[12],S=f[1],C=f[5],E=f[9],P=f[13],R=f[2],M=f[6],A=f[10],L=f[14],w=f[3],N=f[7],b=f[11],V=f[15],Y=d[0],G=d[4],U=d[8],B=d[12],I=d[1],X=d[5],K=d[9],Z=d[13],J=d[2],Q=d[6],$=d[10],j=d[14],k=d[3],q=d[7],tt=d[11],_=d[15];return this.setValues(v*Y+m*I+g*J+x*k,S*Y+C*I+E*J+P*k,R*Y+M*I+A*J+L*k,w*Y+N*I+b*J+V*k,v*G+m*X+g*Q+x*q,S*G+C*X+E*Q+P*q,R*G+M*X+A*Q+L*q,w*G+N*X+b*Q+V*q,v*U+m*K+g*$+x*tt,S*U+C*K+E*$+P*tt,R*U+M*K+A*$+L*tt,w*U+N*K+b*$+V*tt,v*B+m*Z+g*j+x*_,S*B+C*Z+E*j+P*_,R*B+M*Z+A*j+L*_,w*B+N*Z+b*j+V*_)},translate:function(o){return this.translateXYZ(o.x,o.y,o.z)},translateXYZ:function(o,l,f){var d=this.val;return d[12]=d[0]*o+d[4]*l+d[8]*f+d[12],d[13]=d[1]*o+d[5]*l+d[9]*f+d[13],d[14]=d[2]*o+d[6]*l+d[10]*f+d[14],d[15]=d[3]*o+d[7]*l+d[11]*f+d[15],this},scale:function(o){return this.scaleXYZ(o.x,o.y,o.z)},scaleXYZ:function(o,l,f){var d=this.val;return d[0]=d[0]*o,d[1]=d[1]*o,d[2]=d[2]*o,d[3]=d[3]*o,d[4]=d[4]*l,d[5]=d[5]*l,d[6]=d[6]*l,d[7]=d[7]*l,d[8]=d[8]*f,d[9]=d[9]*f,d[10]=d[10]*f,d[11]=d[11]*f,this},makeRotationAxis:function(o,l){var f=Math.cos(l),d=Math.sin(l),v=1-f,m=o.x,g=o.y,x=o.z,S=v*m,C=v*g;return this.setValues(S*m+f,S*g-d*x,S*x+d*g,0,S*g+d*x,C*g+f,C*x-d*m,0,S*x-d*g,C*x+d*m,v*x*x+f,0,0,0,0,1)},rotate:function(o,l){var f=this.val,d=l.x,v=l.y,m=l.z,g=Math.sqrt(d*d+v*v+m*m);if(Math.abs(g){/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){return Math.min(t+u,p)};c.exports=y},50040:c=>{/** + * @author Vladislav Forsh + * @copyright 2021 RoboWhale + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){var u=t.length;if(u===0)return 0;t.sort(function(a,r){return a-r});var p=Math.floor(u/2);return u%2===0?(t[p]+t[p-1])/2:t[p]};c.exports=y},37204:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){return Math.max(t-u,p)};c.exports=y},65201:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){p===void 0&&(p=u+1);var r=(t-u)/(p-u);return r>1?a!==void 0?(r=(a-t)/(a-p),r<0&&(r=0)):r=1:r<0&&(r=0),r};c.exports=y},15746:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(94434),a=t(29747),r=t(25836),n=1e-6,e=new Int8Array([1,2,0]),s=new Float32Array([0,0,0]),h=new r(1,0,0),i=new r(0,1,0),o=new r,l=new p,f=new u({initialize:function(v,m,g,x){this.onChangeCallback=a,this.set(v,m,g,x)},x:{get:function(){return this._x},set:function(d){this._x=d,this.onChangeCallback(this)}},y:{get:function(){return this._y},set:function(d){this._y=d,this.onChangeCallback(this)}},z:{get:function(){return this._z},set:function(d){this._z=d,this.onChangeCallback(this)}},w:{get:function(){return this._w},set:function(d){this._w=d,this.onChangeCallback(this)}},copy:function(d){return this.set(d)},set:function(d,v,m,g,x){return x===void 0&&(x=!0),typeof d=="object"?(this._x=d.x||0,this._y=d.y||0,this._z=d.z||0,this._w=d.w||0):(this._x=d||0,this._y=v||0,this._z=m||0,this._w=g||0),x&&this.onChangeCallback(this),this},add:function(d){return this._x+=d.x,this._y+=d.y,this._z+=d.z,this._w+=d.w,this.onChangeCallback(this),this},subtract:function(d){return this._x-=d.x,this._y-=d.y,this._z-=d.z,this._w-=d.w,this.onChangeCallback(this),this},scale:function(d){return this._x*=d,this._y*=d,this._z*=d,this._w*=d,this.onChangeCallback(this),this},length:function(){var d=this.x,v=this.y,m=this.z,g=this.w;return Math.sqrt(d*d+v*v+m*m+g*g)},lengthSq:function(){var d=this.x,v=this.y,m=this.z,g=this.w;return d*d+v*v+m*m+g*g},normalize:function(){var d=this.x,v=this.y,m=this.z,g=this.w,x=d*d+v*v+m*m+g*g;return x>0&&(x=1/Math.sqrt(x),this._x=d*x,this._y=v*x,this._z=m*x,this._w=g*x),this.onChangeCallback(this),this},dot:function(d){return this.x*d.x+this.y*d.y+this.z*d.z+this.w*d.w},lerp:function(d,v){v===void 0&&(v=0);var m=this.x,g=this.y,x=this.z,S=this.w;return this.set(m+v*(d.x-m),g+v*(d.y-g),x+v*(d.z-x),S+v*(d.w-S))},rotationTo:function(d,v){var m=d.x*v.x+d.y*v.y+d.z*v.z;return m<-.999999?(o.copy(h).cross(d).length().999999?this.set(0,0,0,1):(o.copy(d).cross(v),this._x=o.x,this._y=o.y,this._z=o.z,this._w=1+m,this.normalize())},setAxes:function(d,v,m){var g=l.val;return g[0]=v.x,g[3]=v.y,g[6]=v.z,g[1]=m.x,g[4]=m.y,g[7]=m.z,g[2]=-d.x,g[5]=-d.y,g[8]=-d.z,this.fromMat3(l).normalize()},identity:function(){return this.set(0,0,0,1)},setAxisAngle:function(d,v){v=v*.5;var m=Math.sin(v);return this.set(m*d.x,m*d.y,m*d.z,Math.cos(v))},multiply:function(d){var v=this.x,m=this.y,g=this.z,x=this.w,S=d.x,C=d.y,E=d.z,P=d.w;return this.set(v*P+x*S+m*E-g*C,m*P+x*C+g*S-v*E,g*P+x*E+v*C-m*S,x*P-v*S-m*C-g*E)},slerp:function(d,v){var m=this.x,g=this.y,x=this.z,S=this.w,C=d.x,E=d.y,P=d.z,R=d.w,M=m*C+g*E+x*P+S*R;M<0&&(M=-M,C=-C,E=-E,P=-P,R=-R);var A=1-v,L=v;if(1-M>n){var w=Math.acos(M),N=Math.sin(w);A=Math.sin((1-v)*w)/N,L=Math.sin(v*w)/N}return this.set(A*m+L*C,A*g+L*E,A*x+L*P,A*S+L*R)},invert:function(){var d=this.x,v=this.y,m=this.z,g=this.w,x=d*d+v*v+m*m+g*g,S=x?1/x:0;return this.set(-d*S,-v*S,-m*S,g*S)},conjugate:function(){return this._x=-this.x,this._y=-this.y,this._z=-this.z,this.onChangeCallback(this),this},rotateX:function(d){d*=.5;var v=this.x,m=this.y,g=this.z,x=this.w,S=Math.sin(d),C=Math.cos(d);return this.set(v*C+x*S,m*C+g*S,g*C-m*S,x*C-v*S)},rotateY:function(d){d*=.5;var v=this.x,m=this.y,g=this.z,x=this.w,S=Math.sin(d),C=Math.cos(d);return this.set(v*C-g*S,m*C+x*S,g*C+v*S,x*C-m*S)},rotateZ:function(d){d*=.5;var v=this.x,m=this.y,g=this.z,x=this.w,S=Math.sin(d),C=Math.cos(d);return this.set(v*C+m*S,m*C-v*S,g*C+x*S,x*C-g*S)},calculateW:function(){var d=this.x,v=this.y,m=this.z;return this.w=-Math.sqrt(1-d*d-v*v-m*m),this},setFromEuler:function(d,v){var m=d.x/2,g=d.y/2,x=d.z/2,S=Math.cos(m),C=Math.cos(g),E=Math.cos(x),P=Math.sin(m),R=Math.sin(g),M=Math.sin(x);switch(d.order){case"XYZ":{this.set(P*C*E+S*R*M,S*R*E-P*C*M,S*C*M+P*R*E,S*C*E-P*R*M,v);break}case"YXZ":{this.set(P*C*E+S*R*M,S*R*E-P*C*M,S*C*M-P*R*E,S*C*E+P*R*M,v);break}case"ZXY":{this.set(P*C*E-S*R*M,S*R*E+P*C*M,S*C*M+P*R*E,S*C*E-P*R*M,v);break}case"ZYX":{this.set(P*C*E-S*R*M,S*R*E+P*C*M,S*C*M-P*R*E,S*C*E+P*R*M,v);break}case"YZX":{this.set(P*C*E+S*R*M,S*R*E+P*C*M,S*C*M-P*R*E,S*C*E-P*R*M,v);break}case"XZY":{this.set(P*C*E-S*R*M,S*R*E-P*C*M,S*C*M+P*R*E,S*C*E+P*R*M,v);break}}return this},setFromRotationMatrix:function(d){var v=d.val,m=v[0],g=v[4],x=v[8],S=v[1],C=v[5],E=v[9],P=v[2],R=v[6],M=v[10],A=m+C+M,L;return A>0?(L=.5/Math.sqrt(A+1),this.set((R-E)*L,(x-P)*L,(S-g)*L,.25/L)):m>C&&m>M?(L=2*Math.sqrt(1+m-C-M),this.set(.25*L,(g+S)/L,(x+P)/L,(R-E)/L)):C>M?(L=2*Math.sqrt(1+C-m-M),this.set((g+S)/L,.25*L,(E+R)/L,(x-P)/L)):(L=2*Math.sqrt(1+M-m-C),this.set((x+P)/L,(E+R)/L,.25*L,(S-g)/L)),this},fromMat3:function(d){var v=d.val,m=v[0]+v[4]+v[8],g;if(m>0)g=Math.sqrt(m+1),this.w=.5*g,g=.5/g,this._x=(v[7]-v[5])*g,this._y=(v[2]-v[6])*g,this._z=(v[3]-v[1])*g;else{var x=0;v[4]>v[0]&&(x=1),v[8]>v[x*3+x]&&(x=2);var S=e[x],C=e[S];g=Math.sqrt(v[x*3+x]-v[S*3+S]-v[C*3+C]+1),s[x]=.5*g,g=.5/g,s[S]=(v[S*3+x]+v[x*3+S])*g,s[C]=(v[C*3+x]+v[x*3+C])*g,this._x=s[0],this._y=s[1],this._z=s[2],this._w=(v[C*3+S]-v[S*3+C])*g}return this.onChangeCallback(this),this}});c.exports=f},43396:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(36383),p=function(a){return a*u.RAD_TO_DEG};c.exports=p},74362:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){u===void 0&&(u=1);var p=Math.random()*2*Math.PI;return t.x=Math.cos(p)*u,t.y=Math.sin(p)*u,t};c.exports=y},60706:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){u===void 0&&(u=1);var p=Math.random()*2*Math.PI,a=Math.random()*2-1,r=Math.sqrt(1-a*a)*u;return t.x=Math.cos(p)*r,t.y=Math.sin(p)*r,t.z=a*u,t};c.exports=y},67421:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return u===void 0&&(u=1),t.x=(Math.random()*2-1)*u,t.y=(Math.random()*2-1)*u,t.z=(Math.random()*2-1)*u,t.w=(Math.random()*2-1)*u,t};c.exports=y},36305:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){var p=t.x,a=t.y;return t.x=p*Math.cos(u)-a*Math.sin(u),t.y=p*Math.sin(u)+a*Math.cos(u),t};c.exports=y},11520:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){var r=Math.cos(a),n=Math.sin(a),e=t.x-u,s=t.y-p;return t.x=e*r-s*n+u,t.y=e*n+s*r+p,t};c.exports=y},1163:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a,r){var n=a+Math.atan2(t.y-p,t.x-u);return t.x=u+r*Math.cos(n),t.y=p+r*Math.sin(n),t};c.exports=y},70336:c=>{/** + * @author samme + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a,r){return t.x=u+r*Math.cos(a),t.y=p+r*Math.sin(a),t};c.exports=y},72678:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(25836),p=t(37867),a=t(15746),r=new p,n=new a,e=new u,s=function(h,i,o){return n.setAxisAngle(i,o),r.fromRotationTranslation(n,e.set(0,0,0)),h.transformMat4(r)};c.exports=s},2284:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t>0?Math.ceil(t):Math.floor(t)};c.exports=y},41013:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){u===void 0&&(u=0),p===void 0&&(p=10);var a=Math.pow(p,-u);return Math.round(t*a)/a};c.exports=y},16922:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){u===void 0&&(u=1),p===void 0&&(p=1),a===void 0&&(a=1),a*=Math.PI/t;for(var r=[],n=[],e=0;e{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){return t<=u?0:t>=p?1:(t=(t-u)/(p-u),t*t*(3-2*t))};c.exports=y},54261:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){return t=Math.max(0,Math.min(1,(t-u)/(p-u))),t*t*t*(t*(t*6-15)+10)};c.exports=y},44408:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(26099),p=function(a,r,n,e){e===void 0&&(e=new u);var s=0,h=0,i=r*n;return a>0&&a<=i&&(a>r-1?(h=Math.floor(a/r),s=a-h*r):s=a),e.set(s,h)};c.exports=p},85955:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(26099),p=function(a,r,n,e,s,h,i,o){o===void 0&&(o=new u);var l=Math.sin(s),f=Math.cos(s),d=f*h,v=l*h,m=-l*i,g=f*i,x=1/(d*g+m*-v);return o.x=g*x*a+-m*x*r+(e*m-n*g)*x,o.y=d*x*r+-v*x*a+(-e*d+n*v)*x,o};c.exports=p},26099:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(43855),a=new u({initialize:function(n,e){this.x=0,this.y=0,typeof n=="object"?(this.x=n.x||0,this.y=n.y||0):(e===void 0&&(e=n),this.x=n||0,this.y=e||0)},clone:function(){return new a(this.x,this.y)},copy:function(r){return this.x=r.x||0,this.y=r.y||0,this},setFromObject:function(r){return this.x=r.x||0,this.y=r.y||0,this},set:function(r,n){return n===void 0&&(n=r),this.x=r,this.y=n,this},setTo:function(r,n){return this.set(r,n)},setToPolar:function(r,n){return n==null&&(n=1),this.x=Math.cos(r)*n,this.y=Math.sin(r)*n,this},equals:function(r){return this.x===r.x&&this.y===r.y},fuzzyEquals:function(r,n){return p(this.x,r.x,n)&&p(this.y,r.y,n)},angle:function(){var r=Math.atan2(this.y,this.x);return r<0&&(r+=2*Math.PI),r},setAngle:function(r){return this.setToPolar(r,this.length())},add:function(r){return this.x+=r.x,this.y+=r.y,this},subtract:function(r){return this.x-=r.x,this.y-=r.y,this},multiply:function(r){return this.x*=r.x,this.y*=r.y,this},scale:function(r){return isFinite(r)?(this.x*=r,this.y*=r):(this.x=0,this.y=0),this},divide:function(r){return this.x/=r.x,this.y/=r.y,this},negate:function(){return this.x=-this.x,this.y=-this.y,this},distance:function(r){var n=r.x-this.x,e=r.y-this.y;return Math.sqrt(n*n+e*e)},distanceSq:function(r){var n=r.x-this.x,e=r.y-this.y;return n*n+e*e},length:function(){var r=this.x,n=this.y;return Math.sqrt(r*r+n*n)},setLength:function(r){return this.normalize().scale(r)},lengthSq:function(){var r=this.x,n=this.y;return r*r+n*n},normalize:function(){var r=this.x,n=this.y,e=r*r+n*n;return e>0&&(e=1/Math.sqrt(e),this.x=r*e,this.y=n*e),this},normalizeRightHand:function(){var r=this.x;return this.x=this.y*-1,this.y=r,this},normalizeLeftHand:function(){var r=this.x;return this.x=this.y,this.y=r*-1,this},dot:function(r){return this.x*r.x+this.y*r.y},cross:function(r){return this.x*r.y-this.y*r.x},lerp:function(r,n){n===void 0&&(n=0);var e=this.x,s=this.y;return this.x=e+n*(r.x-e),this.y=s+n*(r.y-s),this},transformMat3:function(r){var n=this.x,e=this.y,s=r.val;return this.x=s[0]*n+s[3]*e+s[6],this.y=s[1]*n+s[4]*e+s[7],this},transformMat4:function(r){var n=this.x,e=this.y,s=r.val;return this.x=s[0]*n+s[4]*e+s[12],this.y=s[1]*n+s[5]*e+s[13],this},reset:function(){return this.x=0,this.y=0,this},limit:function(r){var n=this.length();return n&&n>r&&this.scale(r/n),this},reflect:function(r){return r=r.clone().normalize(),this.subtract(r.scale(2*this.dot(r)))},mirror:function(r){return this.reflect(r).negate()},rotate:function(r){var n=Math.cos(r),e=Math.sin(r);return this.set(n*this.x-e*this.y,e*this.x+n*this.y)},project:function(r){var n=this.dot(r)/r.dot(r);return this.copy(r).scale(n)}});a.ZERO=new a,a.RIGHT=new a(1,0),a.LEFT=new a(-1,0),a.UP=new a(0,-1),a.DOWN=new a(0,1),a.ONE=new a(1,1),c.exports=a},25836:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=new u({initialize:function(r,n,e){this.x=0,this.y=0,this.z=0,typeof r=="object"?(this.x=r.x||0,this.y=r.y||0,this.z=r.z||0):(this.x=r||0,this.y=n||0,this.z=e||0)},up:function(){return this.x=0,this.y=1,this.z=0,this},min:function(a){return this.x=Math.min(this.x,a.x),this.y=Math.min(this.y,a.y),this.z=Math.min(this.z,a.z),this},max:function(a){return this.x=Math.max(this.x,a.x),this.y=Math.max(this.y,a.y),this.z=Math.max(this.z,a.z),this},clone:function(){return new p(this.x,this.y,this.z)},addVectors:function(a,r){return this.x=a.x+r.x,this.y=a.y+r.y,this.z=a.z+r.z,this},subVectors:function(a,r){return this.x=a.x-r.x,this.y=a.y-r.y,this.z=a.z-r.z,this},crossVectors:function(a,r){var n=a.x,e=a.y,s=a.z,h=r.x,i=r.y,o=r.z;return this.x=e*o-s*i,this.y=s*h-n*o,this.z=n*i-e*h,this},equals:function(a){return this.x===a.x&&this.y===a.y&&this.z===a.z},copy:function(a){return this.x=a.x,this.y=a.y,this.z=a.z||0,this},set:function(a,r,n){return typeof a=="object"?(this.x=a.x||0,this.y=a.y||0,this.z=a.z||0):(this.x=a||0,this.y=r||0,this.z=n||0),this},setFromMatrixPosition:function(a){return this.fromArray(a.val,12)},setFromMatrixColumn:function(a,r){return this.fromArray(a.val,r*4)},fromArray:function(a,r){return r===void 0&&(r=0),this.x=a[r],this.y=a[r+1],this.z=a[r+2],this},add:function(a){return this.x+=a.x,this.y+=a.y,this.z+=a.z||0,this},addScalar:function(a){return this.x+=a,this.y+=a,this.z+=a,this},addScale:function(a,r){return this.x+=a.x*r,this.y+=a.y*r,this.z+=a.z*r||0,this},subtract:function(a){return this.x-=a.x,this.y-=a.y,this.z-=a.z||0,this},multiply:function(a){return this.x*=a.x,this.y*=a.y,this.z*=a.z||1,this},scale:function(a){return isFinite(a)?(this.x*=a,this.y*=a,this.z*=a):(this.x=0,this.y=0,this.z=0),this},divide:function(a){return this.x/=a.x,this.y/=a.y,this.z/=a.z||1,this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},distance:function(a){var r=a.x-this.x,n=a.y-this.y,e=a.z-this.z||0;return Math.sqrt(r*r+n*n+e*e)},distanceSq:function(a){var r=a.x-this.x,n=a.y-this.y,e=a.z-this.z||0;return r*r+n*n+e*e},length:function(){var a=this.x,r=this.y,n=this.z;return Math.sqrt(a*a+r*r+n*n)},lengthSq:function(){var a=this.x,r=this.y,n=this.z;return a*a+r*r+n*n},normalize:function(){var a=this.x,r=this.y,n=this.z,e=a*a+r*r+n*n;return e>0&&(e=1/Math.sqrt(e),this.x=a*e,this.y=r*e,this.z=n*e),this},dot:function(a){return this.x*a.x+this.y*a.y+this.z*a.z},cross:function(a){var r=this.x,n=this.y,e=this.z,s=a.x,h=a.y,i=a.z;return this.x=n*i-e*h,this.y=e*s-r*i,this.z=r*h-n*s,this},lerp:function(a,r){r===void 0&&(r=0);var n=this.x,e=this.y,s=this.z;return this.x=n+r*(a.x-n),this.y=e+r*(a.y-e),this.z=s+r*(a.z-s),this},applyMatrix3:function(a){var r=this.x,n=this.y,e=this.z,s=a.val;return this.x=s[0]*r+s[3]*n+s[6]*e,this.y=s[1]*r+s[4]*n+s[7]*e,this.z=s[2]*r+s[5]*n+s[8]*e,this},applyMatrix4:function(a){var r=this.x,n=this.y,e=this.z,s=a.val,h=1/(s[3]*r+s[7]*n+s[11]*e+s[15]);return this.x=(s[0]*r+s[4]*n+s[8]*e+s[12])*h,this.y=(s[1]*r+s[5]*n+s[9]*e+s[13])*h,this.z=(s[2]*r+s[6]*n+s[10]*e+s[14])*h,this},transformMat3:function(a){var r=this.x,n=this.y,e=this.z,s=a.val;return this.x=r*s[0]+n*s[3]+e*s[6],this.y=r*s[1]+n*s[4]+e*s[7],this.z=r*s[2]+n*s[5]+e*s[8],this},transformMat4:function(a){var r=this.x,n=this.y,e=this.z,s=a.val;return this.x=s[0]*r+s[4]*n+s[8]*e+s[12],this.y=s[1]*r+s[5]*n+s[9]*e+s[13],this.z=s[2]*r+s[6]*n+s[10]*e+s[14],this},transformCoordinates:function(a){var r=this.x,n=this.y,e=this.z,s=a.val,h=r*s[0]+n*s[4]+e*s[8]+s[12],i=r*s[1]+n*s[5]+e*s[9]+s[13],o=r*s[2]+n*s[6]+e*s[10]+s[14],l=r*s[3]+n*s[7]+e*s[11]+s[15];return this.x=h/l,this.y=i/l,this.z=o/l,this},transformQuat:function(a){var r=this.x,n=this.y,e=this.z,s=a.x,h=a.y,i=a.z,o=a.w,l=o*r+h*e-i*n,f=o*n+i*r-s*e,d=o*e+s*n-h*r,v=-s*r-h*n-i*e;return this.x=l*o+v*-s+f*-i-d*-h,this.y=f*o+v*-h+d*-s-l*-i,this.z=d*o+v*-i+l*-h-f*-s,this},project:function(a){var r=this.x,n=this.y,e=this.z,s=a.val,h=s[0],i=s[1],o=s[2],l=s[3],f=s[4],d=s[5],v=s[6],m=s[7],g=s[8],x=s[9],S=s[10],C=s[11],E=s[12],P=s[13],R=s[14],M=s[15],A=1/(r*l+n*m+e*C+M);return this.x=(r*h+n*f+e*g+E)*A,this.y=(r*i+n*d+e*x+P)*A,this.z=(r*o+n*v+e*S+R)*A,this},projectViewMatrix:function(a,r){return this.applyMatrix4(a).applyMatrix4(r)},unprojectViewMatrix:function(a,r){return this.applyMatrix4(a).applyMatrix4(r)},unproject:function(a,r){var n=a.x,e=a.y,s=a.z,h=a.w,i=this.x-n,o=h-this.y-1-e,l=this.z;return this.x=2*i/s-1,this.y=2*o/h-1,this.z=2*l-1,this.project(r)},reset:function(){return this.x=0,this.y=0,this.z=0,this}});p.ZERO=new p,p.RIGHT=new p(1,0,0),p.LEFT=new p(-1,0,0),p.UP=new p(0,-1,0),p.DOWN=new p(0,1,0),p.FORWARD=new p(0,0,1),p.BACK=new p(0,0,-1),p.ONE=new p(1,1,1),c.exports=p},61369:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=new u({initialize:function(r,n,e,s){this.x=0,this.y=0,this.z=0,this.w=0,typeof r=="object"?(this.x=r.x||0,this.y=r.y||0,this.z=r.z||0,this.w=r.w||0):(this.x=r||0,this.y=n||0,this.z=e||0,this.w=s||0)},clone:function(){return new p(this.x,this.y,this.z,this.w)},copy:function(a){return this.x=a.x,this.y=a.y,this.z=a.z||0,this.w=a.w||0,this},equals:function(a){return this.x===a.x&&this.y===a.y&&this.z===a.z&&this.w===a.w},set:function(a,r,n,e){return typeof a=="object"?(this.x=a.x||0,this.y=a.y||0,this.z=a.z||0,this.w=a.w||0):(this.x=a||0,this.y=r||0,this.z=n||0,this.w=e||0),this},add:function(a){return this.x+=a.x,this.y+=a.y,this.z+=a.z||0,this.w+=a.w||0,this},subtract:function(a){return this.x-=a.x,this.y-=a.y,this.z-=a.z||0,this.w-=a.w||0,this},scale:function(a){return this.x*=a,this.y*=a,this.z*=a,this.w*=a,this},length:function(){var a=this.x,r=this.y,n=this.z,e=this.w;return Math.sqrt(a*a+r*r+n*n+e*e)},lengthSq:function(){var a=this.x,r=this.y,n=this.z,e=this.w;return a*a+r*r+n*n+e*e},normalize:function(){var a=this.x,r=this.y,n=this.z,e=this.w,s=a*a+r*r+n*n+e*e;return s>0&&(s=1/Math.sqrt(s),this.x=a*s,this.y=r*s,this.z=n*s,this.w=e*s),this},dot:function(a){return this.x*a.x+this.y*a.y+this.z*a.z+this.w*a.w},lerp:function(a,r){r===void 0&&(r=0);var n=this.x,e=this.y,s=this.z,h=this.w;return this.x=n+r*(a.x-n),this.y=e+r*(a.y-e),this.z=s+r*(a.z-s),this.w=h+r*(a.w-h),this},multiply:function(a){return this.x*=a.x,this.y*=a.y,this.z*=a.z||1,this.w*=a.w||1,this},divide:function(a){return this.x/=a.x,this.y/=a.y,this.z/=a.z||1,this.w/=a.w||1,this},distance:function(a){var r=a.x-this.x,n=a.y-this.y,e=a.z-this.z||0,s=a.w-this.w||0;return Math.sqrt(r*r+n*n+e*e+s*s)},distanceSq:function(a){var r=a.x-this.x,n=a.y-this.y,e=a.z-this.z||0,s=a.w-this.w||0;return r*r+n*n+e*e+s*s},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this},transformMat4:function(a){var r=this.x,n=this.y,e=this.z,s=this.w,h=a.val;return this.x=h[0]*r+h[4]*n+h[8]*e+h[12]*s,this.y=h[1]*r+h[5]*n+h[9]*e+h[13]*s,this.z=h[2]*r+h[6]*n+h[10]*e+h[14]*s,this.w=h[3]*r+h[7]*n+h[11]*e+h[15]*s,this},transformQuat:function(a){var r=this.x,n=this.y,e=this.z,s=a.x,h=a.y,i=a.z,o=a.w,l=o*r+h*e-i*n,f=o*n+i*r-s*e,d=o*e+s*n-h*r,v=-s*r-h*n-i*e;return this.x=l*o+v*-s+f*-i-d*-h,this.y=f*o+v*-h+d*-s-l*-i,this.z=d*o+v*-i+l*-h-f*-s,this},reset:function(){return this.x=0,this.y=0,this.z=0,this.w=0,this}});p.prototype.sub=p.prototype.subtract,p.prototype.mul=p.prototype.multiply,p.prototype.div=p.prototype.divide,p.prototype.dist=p.prototype.distance,p.prototype.distSq=p.prototype.distanceSq,p.prototype.len=p.prototype.length,p.prototype.lenSq=p.prototype.lengthSq,c.exports=p},60417:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){return Math.abs(t-u)<=p};c.exports=y},15994:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){var a=p-u;return u+((t-u)%a+a)%a};c.exports=y},31040:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){return Math.atan2(a-u,p-t)};c.exports=y},55495:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return Math.atan2(u.y-t.y,u.x-t.x)};c.exports=y},128:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return Math.atan2(u.x-t.x,u.y-t.y)};c.exports=y},41273:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){return Math.atan2(p-t,a-u)};c.exports=y},1432:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(36383),p=function(a){return a>Math.PI&&(a-=u.PI2),Math.abs(((a+u.TAU)%u.PI2-u.PI2)%u.PI2)};c.exports=p},12407:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t=t%(2*Math.PI),t>=0?t:t+2*Math.PI};c.exports=y},53993:(c,y,t)=>{/** + * @author Richard Davey + * @author @samme + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(99472),p=function(){return u(-Math.PI,Math.PI)};c.exports=p},86564:(c,y,t)=>{/** + * @author Richard Davey + * @author @samme + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(99472),p=function(){return u(-180,180)};c.exports=p},90154:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(12407),p=function(a){return u(a+Math.PI)};c.exports=p},48736:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(36383),p=function(a,r,n){return n===void 0&&(n=.05),a===r||(Math.abs(r-a)<=n||Math.abs(r-a)>=u.PI2-n?a=r:(Math.abs(r-a)>Math.PI&&(ra?a+=n:r{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){var p=u-t;if(p===0)return 0;var a=Math.floor((p- -180)/360);return p-a*360};c.exports=y},86554:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(15994),p=function(a){return u(a,-Math.PI,Math.PI)};c.exports=p},30954:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(15994),p=function(a){return u(a,-180,180)};c.exports=p},25588:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={Between:t(31040),BetweenPoints:t(55495),BetweenPointsY:t(128),BetweenY:t(41273),CounterClockwise:t(1432),Normalize:t(12407),Random:t(53993),RandomDegrees:t(86564),Reverse:t(90154),RotateTo:t(48736),ShortestBetween:t(61430),Wrap:t(86554),WrapDegrees:t(30954)}},36383:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={PI2:Math.PI*2,TAU:Math.PI*.5,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};c.exports=y},20339:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){var r=t-p,n=u-a;return Math.sqrt(r*r+n*n)};c.exports=y},52816:c=>{/** + * @author samme + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){var p=t.x-u.x,a=t.y-u.y;return Math.sqrt(p*p+a*a)};c.exports=y},64559:c=>{/** + * @author samme + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){var p=t.x-u.x,a=t.y-u.y;return p*p+a*a};c.exports=y},82340:c=>{/** + * @author samme + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){return Math.max(Math.abs(t-p),Math.abs(u-a))};c.exports=y},14390:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a,r){return r===void 0&&(r=2),Math.sqrt(Math.pow(p-t,r)+Math.pow(a-u,r))};c.exports=y},2243:c=>{/** + * @author samme + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){return Math.abs(t-p)+Math.abs(u-a)};c.exports=y},89774:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){var r=t-p,n=u-a;return r*r+n*n};c.exports=y},50994:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={Between:t(20339),BetweenPoints:t(52816),BetweenPointsSquared:t(64559),Chebyshev:t(82340),Power:t(14390),Snake:t(2243),Squared:t(89774)}},62640:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(54178),p=t(41521),a=t(79980),r=t(85433),n=t(99140),e=t(48857),s=t(81596),h=t(59133),i=t(98516),o=t(35248),l=t(82500),f=t(49752);c.exports={Power0:s,Power1:h.Out,Power2:r.Out,Power3:i.Out,Power4:o.Out,Linear:s,Quad:h.Out,Cubic:r.Out,Quart:i.Out,Quint:o.Out,Sine:l.Out,Expo:e.Out,Circ:a.Out,Elastic:n.Out,Back:u.Out,Bounce:p.Out,Stepped:f,"Quad.easeIn":h.In,"Cubic.easeIn":r.In,"Quart.easeIn":i.In,"Quint.easeIn":o.In,"Sine.easeIn":l.In,"Expo.easeIn":e.In,"Circ.easeIn":a.In,"Elastic.easeIn":n.In,"Back.easeIn":u.In,"Bounce.easeIn":p.In,"Quad.easeOut":h.Out,"Cubic.easeOut":r.Out,"Quart.easeOut":i.Out,"Quint.easeOut":o.Out,"Sine.easeOut":l.Out,"Expo.easeOut":e.Out,"Circ.easeOut":a.Out,"Elastic.easeOut":n.Out,"Back.easeOut":u.Out,"Bounce.easeOut":p.Out,"Quad.easeInOut":h.InOut,"Cubic.easeInOut":r.InOut,"Quart.easeInOut":i.InOut,"Quint.easeInOut":o.InOut,"Sine.easeInOut":l.InOut,"Expo.easeInOut":e.InOut,"Circ.easeInOut":a.InOut,"Elastic.easeInOut":n.InOut,"Back.easeInOut":u.InOut,"Bounce.easeInOut":p.InOut}},1639:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return u===void 0&&(u=1.70158),t*t*((u+1)*t-u)};c.exports=y},50099:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){u===void 0&&(u=1.70158);var p=u*1.525;return(t*=2)<1?.5*(t*t*((p+1)*t-p)):.5*((t-=2)*t*((p+1)*t+p)+2)};c.exports=y},41286:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return u===void 0&&(u=1.70158),--t*t*((u+1)*t+u)+1};c.exports=y},54178:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={In:t(1639),Out:t(41286),InOut:t(50099)}},59590:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t=1-t,t<.36363636363636365?1-7.5625*t*t:t<.7272727272727273?1-(7.5625*(t-=.5454545454545454)*t+.75):t<.9090909090909091?1-(7.5625*(t-=.8181818181818182)*t+.9375):1-(7.5625*(t-=.9545454545454546)*t+.984375)};c.exports=y},41788:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){var u=!1;return t<.5?(t=1-t*2,u=!0):t=t*2-1,t<.36363636363636365?t=7.5625*t*t:t<.7272727272727273?t=7.5625*(t-=.5454545454545454)*t+.75:t<.9090909090909091?t=7.5625*(t-=.8181818181818182)*t+.9375:t=7.5625*(t-=.9545454545454546)*t+.984375,u?(1-t)*.5:t*.5+.5};c.exports=y},69905:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t<.36363636363636365?7.5625*t*t:t<.7272727272727273?7.5625*(t-=.5454545454545454)*t+.75:t<.9090909090909091?7.5625*(t-=.8181818181818182)*t+.9375:7.5625*(t-=.9545454545454546)*t+.984375};c.exports=y},41521:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={In:t(59590),Out:t(69905),InOut:t(41788)}},91861:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return 1-Math.sqrt(1-t*t)};c.exports=y},4177:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)};c.exports=y},57512:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return Math.sqrt(1- --t*t)};c.exports=y},79980:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={In:t(91861),Out:t(57512),InOut:t(4177)}},51150:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t*t*t};c.exports=y},82820:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)};c.exports=y},35033:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return--t*t*t+1};c.exports=y},85433:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={In:t(51150),Out:t(35033),InOut:t(82820)}},69965:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){if(u===void 0&&(u=.1),p===void 0&&(p=.1),t===0)return 0;if(t===1)return 1;var a=p/4;return u<1?u=1:a=p*Math.asin(1/u)/(2*Math.PI),-(u*Math.pow(2,10*(t-=1))*Math.sin((t-a)*(2*Math.PI)/p))};c.exports=y},50665:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){if(u===void 0&&(u=.1),p===void 0&&(p=.1),t===0)return 0;if(t===1)return 1;var a=p/4;return u<1?u=1:a=p*Math.asin(1/u)/(2*Math.PI),(t*=2)<1?-.5*(u*Math.pow(2,10*(t-=1))*Math.sin((t-a)*(2*Math.PI)/p)):u*Math.pow(2,-10*(t-=1))*Math.sin((t-a)*(2*Math.PI)/p)*.5+1};c.exports=y},7744:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){if(u===void 0&&(u=.1),p===void 0&&(p=.1),t===0)return 0;if(t===1)return 1;var a=p/4;return u<1?u=1:a=p*Math.asin(1/u)/(2*Math.PI),u*Math.pow(2,-10*t)*Math.sin((t-a)*(2*Math.PI)/p)+1};c.exports=y},99140:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={In:t(69965),Out:t(7744),InOut:t(50665)}},24590:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return Math.pow(2,10*(t-1))-.001};c.exports=y},87844:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))};c.exports=y},89433:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return 1-Math.pow(2,-10*t)};c.exports=y},48857:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={In:t(24590),Out:t(89433),InOut:t(87844)}},48820:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={Back:t(54178),Bounce:t(41521),Circular:t(79980),Cubic:t(85433),Elastic:t(99140),Expo:t(48857),Linear:t(81596),Quadratic:t(59133),Quartic:t(98516),Quintic:t(35248),Sine:t(82500),Stepped:t(49752)}},7147:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t};c.exports=y},81596:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports=t(7147)},34826:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t*t};c.exports=y},20544:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)};c.exports=y},92029:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t*(2-t)};c.exports=y},59133:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={In:t(34826),Out:t(92029),InOut:t(20544)}},64413:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t*t*t*t};c.exports=y},78137:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)};c.exports=y},45840:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return 1- --t*t*t*t};c.exports=y},98516:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={In:t(64413),Out:t(45840),InOut:t(78137)}},87745:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t*t*t*t*t};c.exports=y},16509:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)};c.exports=y},17868:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return--t*t*t*t*t+1};c.exports=y},35248:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={In:t(87745),Out:t(17868),InOut:t(16509)}},80461:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t===0?0:t===1?1:1-Math.cos(t*Math.PI/2)};c.exports=y},34025:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t===0?0:t===1?1:.5*(1-Math.cos(Math.PI*t))};c.exports=y},52768:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t===0?0:t===1?1:Math.sin(t*Math.PI/2)};c.exports=y},82500:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={In:t(80461),Out:t(52768),InOut:t(34025)}},72251:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return u===void 0&&(u=1),t<=0?0:t>=1?1:((u*t|0)+1)*(1/u)};c.exports=y},49752:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports=t(72251)},75698:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return u===void 0&&(u=1e-4),Math.ceil(t-u)};c.exports=y},43855:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){return p===void 0&&(p=1e-4),Math.abs(t-u){/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return u===void 0&&(u=1e-4),Math.floor(t+u)};c.exports=y},5470:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){return p===void 0&&(p=1e-4),t>u-p};c.exports=y},94977:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){return p===void 0&&(p=1e-4),t{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={Ceil:t(75698),Equal:t(43855),Floor:t(25777),GreaterThan:t(5470),LessThan:t(94977)}},75508:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(36383),p=t(79291),a={Angle:t(25588),Distance:t(50994),Easing:t(48820),Fuzzy:t(48379),Interpolation:t(38289),Pow2:t(49001),Snap:t(73697),RandomDataGenerator:t(28453),Average:t(53307),Bernstein:t(85710),Between:t(30976),CatmullRom:t(87842),CeilTo:t(26302),Clamp:t(45319),DegToRad:t(39506),Difference:t(61241),Euler:t(38857),Factorial:t(6411),FloatBetween:t(99472),FloorTo:t(77623),FromPercent:t(62945),GetSpeed:t(38265),IsEven:t(78702),IsEvenStrict:t(94883),Linear:t(28915),LinearXY:t(94908),MaxAdd:t(86883),Median:t(50040),MinSub:t(37204),Percent:t(65201),RadToDeg:t(43396),RandomXY:t(74362),RandomXYZ:t(60706),RandomXYZW:t(67421),Rotate:t(36305),RotateAround:t(11520),RotateAroundDistance:t(1163),RotateTo:t(70336),RoundAwayFromZero:t(2284),RoundTo:t(41013),SinCosTableGenerator:t(16922),SmootherStep:t(54261),SmoothStep:t(7602),ToXY:t(44408),TransformXY:t(85955),Within:t(60417),Wrap:t(15994),Vector2:t(26099),Vector3:t(25836),Vector4:t(61369),Matrix3:t(94434),Matrix4:t(37867),Quaternion:t(15746),RotateVec3:t(72678)};a=p(!1,a,u),c.exports=a},89318:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(85710),p=function(a,r){for(var n=0,e=a.length-1,s=0;s<=e;s++)n+=Math.pow(1-r,e-s)*Math.pow(r,s)*a[s]*u(e,s);return n};c.exports=p},77259:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(87842),p=function(a,r){var n=a.length-1,e=n*r,s=Math.floor(e);return a[0]===a[n]?(r<0&&(s=Math.floor(e=n*(1+r))),u(e-s,a[(s-1+n)%n],a[s],a[(s+1)%n],a[(s+2)%n])):r<0?a[0]-(u(-e,a[0],a[0],a[1],a[1])-a[0]):r>1?a[n]-(u(e-n,a[n],a[n],a[n-1],a[n-1])-a[n]):u(e-s,a[s?s-1:0],a[s],a[n{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */function y(r,n){var e=1-r;return e*e*e*n}function t(r,n){var e=1-r;return 3*e*e*r*n}function u(r,n){return 3*(1-r)*r*r*n}function p(r,n){return r*r*r*n}var a=function(r,n,e,s,h){return y(r,n)+t(r,e)+u(r,s)+p(r,h)};c.exports=a},28392:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(28915),p=function(a,r){var n=a.length-1,e=n*r,s=Math.floor(e);return r<0?u(a[0],a[1],e):r>1?u(a[n],a[n-1],n-e):u(a[s],a[s+1>n?n:s+1],e-s)};c.exports=p},32112:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */function y(a,r){var n=1-a;return n*n*r}function t(a,r){return 2*(1-a)*a*r}function u(a,r){return a*a*r}var p=function(a,r,n,e){return y(a,r)+t(a,n)+u(a,e)};c.exports=p},47235:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(7602),p=function(a,r,n){return r+(n-r)*u(a,0,1)};c.exports=p},50178:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(54261),p=function(a,r,n){return r+(n-r)*u(a,0,1)};c.exports=p},38289:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={Bezier:t(89318),CatmullRom:t(77259),CubicBezier:t(36316),Linear:t(28392),QuadraticBezier:t(32112),SmoothStep:t(47235),SmootherStep:t(50178)}},98439:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){var u=Math.log(t)/.6931471805599453;return 1<{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return t>0&&(t&t-1)===0&&u>0&&(u&u-1)===0};c.exports=y},81230:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t>0&&(t&t-1)===0};c.exports=y},49001:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={GetNext:t(98439),IsSize:t(50030),IsValue:t(81230)}},28453:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=new u({initialize:function(r){r===void 0&&(r=[(Date.now()*Math.random()).toString()]),this.c=1,this.s0=0,this.s1=0,this.s2=0,this.n=0,this.signs=[-1,1],r&&this.init(r)},rnd:function(){var a=2091639*this.s0+this.c*23283064365386963e-26;return this.c=a|0,this.s0=this.s1,this.s1=this.s2,this.s2=a-this.c,this.s2},hash:function(a){var r,n=this.n;a=a.toString();for(var e=0;e>>0,r-=n,r*=n,n=r>>>0,r-=n,n+=r*4294967296;return this.n=n,(n>>>0)*23283064365386963e-26},init:function(a){typeof a=="string"?this.state(a):this.sow(a)},sow:function(a){if(this.n=4022871197,this.s0=this.hash(" "),this.s1=this.hash(" "),this.s2=this.hash(" "),this.c=1,!!a)for(var r=0;r0;n--){var e=Math.floor(this.frac()*(n+1)),s=a[e];a[e]=a[n],a[n]=s}return a}});c.exports=p},63448:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){return p===void 0&&(p=0),u===0?t:(t-=p,t=u*Math.ceil(t/u),a?(p+t)/u:p+t)};c.exports=y},56583:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){return p===void 0&&(p=0),u===0?t:(t-=p,t=u*Math.floor(t/u),a?(p+t)/u:p+t)};c.exports=y},77720:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){return p===void 0&&(p=0),u===0?t:(t-=p,t=u*Math.round(t/u),a?(p+t)/u:p+t)};c.exports=y},73697:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={Ceil:t(63448),Floor:t(56583),To:t(77720)}},85454:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */t(63595);var u=t(8054),p=t(79291),a={Actions:t(61061),Animations:t(60421),BlendModes:t(10312),Cache:t(83388),Cameras:t(26638),Core:t(42857),Class:t(83419),Create:t(15822),Curves:t(25410),Data:t(44965),Display:t(27460),DOM:t(84902),Events:t(93055),FX:t(66064),Game:t(50127),GameObjects:t(77856),Geom:t(55738),Input:t(14350),Loader:t(57777),Math:t(75508),Physics:t(44563),Plugins:t(18922),Renderer:t(36909),Scale:t(93364),ScaleModes:t(29795),Scene:t(97482),Scenes:t(62194),Structs:t(41392),Textures:t(27458),Tilemaps:t(62501),Time:t(90291),Tweens:t(43066),Utils:t(91799)};a.Sound=t(23717),a=p(!1,a,u),c.exports=a,t.g.Phaser=a},71289:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(92209),a=t(88571),r=new u({Extends:a,Mixins:[p.Acceleration,p.Angular,p.Bounce,p.Collision,p.Debug,p.Drag,p.Enable,p.Friction,p.Gravity,p.Immovable,p.Mass,p.Pushable,p.Size,p.Velocity],initialize:function(e,s,h,i,o){a.call(this,e,s,h,i,o),this.body=null}});c.exports=r},86689:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(39506),a=t(20339),r=t(89774),n=t(66022),e=t(95540),s=t(46975),h=t(72441),i=t(47956),o=t(37277),l=t(44594),f=t(26099),d=t(82248),v=new u({initialize:function(g){this.scene=g,this.systems=g.sys,this.config=this.getConfig(),this.world,this.add,this._category=1,g.sys.events.once(l.BOOT,this.boot,this),g.sys.events.on(l.START,this.start,this)},boot:function(){this.world=new d(this.scene,this.config),this.add=new n(this.world),this.systems.events.once(l.DESTROY,this.destroy,this)},start:function(){this.world||(this.world=new d(this.scene,this.config),this.add=new n(this.world));var m=this.systems.events;e(this.config,"customUpdate",!1)||m.on(l.UPDATE,this.world.update,this.world),m.on(l.POST_UPDATE,this.world.postUpdate,this.world),m.once(l.SHUTDOWN,this.shutdown,this)},enableUpdate:function(){this.systems.events.on(l.UPDATE,this.world.update,this.world)},disableUpdate:function(){this.systems.events.off(l.UPDATE,this.world.update,this.world)},getConfig:function(){var m=this.systems.game.config.physics,g=this.systems.settings.physics,x=s(e(g,"arcade",{}),e(m,"arcade",{}));return x},nextCategory:function(){return this._category=this._category<<1,this._category},overlap:function(m,g,x,S,C){return x===void 0&&(x=null),S===void 0&&(S=null),C===void 0&&(C=x),this.world.collideObjects(m,g,x,S,C,!0)},collide:function(m,g,x,S,C){return x===void 0&&(x=null),S===void 0&&(S=null),C===void 0&&(C=x),this.world.collideObjects(m,g,x,S,C,!1)},collideTiles:function(m,g,x,S,C){return this.world.collideTiles(m,g,x,S,C)},overlapTiles:function(m,g,x,S,C){return this.world.overlapTiles(m,g,x,S,C)},pause:function(){return this.world.pause()},resume:function(){return this.world.resume()},accelerateTo:function(m,g,x,S,C,E){S===void 0&&(S=60);var P=Math.atan2(x-m.y,g-m.x);return m.body.acceleration.setToPolar(P,S),C!==void 0&&E!==void 0&&m.body.maxVelocity.set(C,E),P},accelerateToObject:function(m,g,x,S,C){return this.accelerateTo(m,g.x,g.y,x,S,C)},closest:function(m,g){g||(g=this.world.bodies.entries);for(var x=Number.MAX_VALUE,S=null,C=m.x,E=m.y,P=g.length,R=0;Rx&&(S=M,x=L)}}return S},moveTo:function(m,g,x,S,C){S===void 0&&(S=60),C===void 0&&(C=0);var E=Math.atan2(x-m.y,g-m.x);return C>0&&(S=a(m.x,m.y,g,x)/(C/1e3)),m.body.velocity.setToPolar(E,S),E},moveToObject:function(m,g,x,S){return this.moveTo(m,g.x,g.y,x,S)},velocityFromAngle:function(m,g,x){return g===void 0&&(g=60),x===void 0&&(x=new f),x.setToPolar(p(m),g)},velocityFromRotation:function(m,g,x){return g===void 0&&(g=60),x===void 0&&(x=new f),x.setToPolar(m,g)},overlapRect:function(m,g,x,S,C,E){return i(this.world,m,g,x,S,C,E)},overlapCirc:function(m,g,x,S,C){return h(this.world,m,g,x,S,C)},shutdown:function(){if(this.world){var m=this.systems.events;m.off(l.UPDATE,this.world.update,this.world),m.off(l.POST_UPDATE,this.world.postUpdate,this.world),m.off(l.SHUTDOWN,this.shutdown,this),this.add.destroy(),this.world.destroy(),this.add=null,this.world=null,this._category=1}},destroy:function(){this.shutdown(),this.scene.sys.events.off(l.START,this.start,this),this.scene=null,this.systems=null}});o.register("ArcadePhysics",v,"arcadePhysics"),c.exports=v},13759:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(92209),a=t(68287),r=new u({Extends:a,Mixins:[p.Acceleration,p.Angular,p.Bounce,p.Collision,p.Debug,p.Drag,p.Enable,p.Friction,p.Gravity,p.Immovable,p.Mass,p.Pushable,p.Size,p.Velocity],initialize:function(e,s,h,i,o){a.call(this,e,s,h,i,o),this.body=null}});c.exports=r},37742:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(78389),a=t(37747),r=t(63012),n=t(43396),e=t(87841),s=t(37303),h=t(95829),i=t(26099),o=new u({Mixins:[p],initialize:function(f,d){var v=64,m=64,g={x:0,y:0,angle:0,rotation:0,scaleX:1,scaleY:1,displayOriginX:0,displayOriginY:0},x=d!==void 0;x&&d.displayWidth&&(v=d.displayWidth,m=d.displayHeight),x||(d=g),this.world=f,this.gameObject=x?d:void 0,this.isBody=!0,this.transform={x:d.x,y:d.y,rotation:d.angle,scaleX:d.scaleX,scaleY:d.scaleY,displayOriginX:d.displayOriginX,displayOriginY:d.displayOriginY},this.debugShowBody=f.defaults.debugShowBody,this.debugShowVelocity=f.defaults.debugShowVelocity,this.debugBodyColor=f.defaults.bodyDebugColor,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new i,this.position=new i(d.x-d.scaleX*d.displayOriginX,d.y-d.scaleY*d.displayOriginY),this.prev=this.position.clone(),this.prevFrame=this.position.clone(),this.allowRotation=!0,this.rotation=d.angle,this.preRotation=d.angle,this.width=v,this.height=m,this.sourceWidth=v,this.sourceHeight=m,d.frame&&(this.sourceWidth=d.frame.realWidth,this.sourceHeight=d.frame.realHeight),this.halfWidth=Math.abs(v/2),this.halfHeight=Math.abs(m/2),this.center=new i(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.velocity=new i,this.newVelocity=new i,this.deltaMax=new i,this.acceleration=new i,this.allowDrag=!0,this.drag=new i,this.allowGravity=!0,this.gravity=new i,this.bounce=new i,this.worldBounce=null,this.customBoundsRectangle=f.bounds,this.onWorldBounds=!1,this.onCollide=!1,this.onOverlap=!1,this.maxVelocity=new i(1e4,1e4),this.maxSpeed=-1,this.friction=new i(1,0),this.useDamping=!1,this.angularVelocity=0,this.angularAcceleration=0,this.angularDrag=0,this.maxAngular=1e3,this.mass=1,this.angle=0,this.speed=0,this.facing=a.FACING_NONE,this.immovable=!1,this.pushable=!0,this.slideFactor=new i(1,1),this.moves=!0,this.customSeparateX=!1,this.customSeparateY=!1,this.overlapX=0,this.overlapY=0,this.overlapR=0,this.embedded=!1,this.collideWorldBounds=!1,this.checkCollision=h(!1),this.touching=h(!0),this.wasTouching=h(!0),this.blocked=h(!0),this.syncBounds=!1,this.physicsType=a.DYNAMIC_BODY,this.collisionCategory=1,this.collisionMask=1,this._sx=d.scaleX,this._sy=d.scaleY,this._dx=0,this._dy=0,this._tx=0,this._ty=0,this._bounds=new e,this.directControl=!1,this.autoFrame=this.position.clone()},updateBounds:function(){var l=this.gameObject,f=this.transform;if(l.parentContainer){var d=l.getWorldTransformMatrix(this.world._tempMatrix,this.world._tempMatrix2);f.x=d.tx,f.y=d.ty,f.rotation=n(d.rotation),f.scaleX=d.scaleX,f.scaleY=d.scaleY,f.displayOriginX=l.displayOriginX,f.displayOriginY=l.displayOriginY}else f.x=l.x,f.y=l.y,f.rotation=l.angle,f.scaleX=l.scaleX,f.scaleY=l.scaleY,f.displayOriginX=l.displayOriginX,f.displayOriginY=l.displayOriginY;var v=!1;if(this.syncBounds){var m=l.getBounds(this._bounds);this.width=m.width,this.height=m.height,v=!0}else{var g=Math.abs(f.scaleX),x=Math.abs(f.scaleY);(this._sx!==g||this._sy!==x)&&(this.width=this.sourceWidth*g,this.height=this.sourceHeight*x,this._sx=g,this._sy=x,v=!0)}v&&(this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.updateCenter())},updateCenter:function(){this.center.set(this.position.x+this.halfWidth,this.position.y+this.halfHeight)},updateFromGameObject:function(){this.updateBounds();var l=this.transform;this.position.x=l.x+l.scaleX*(this.offset.x-l.displayOriginX),this.position.y=l.y+l.scaleY*(this.offset.y-l.displayOriginY),this.updateCenter()},resetFlags:function(l){l===void 0&&(l=!1);var f=this.wasTouching,d=this.touching,v=this.blocked;l?h(!0,f):(f.none=d.none,f.up=d.up,f.down=d.down,f.left=d.left,f.right=d.right),h(!0,d),h(!0,v),this.overlapR=0,this.overlapX=0,this.overlapY=0,this.embedded=!1},preUpdate:function(l,f){if(l&&this.resetFlags(),this.gameObject&&this.updateFromGameObject(),this.rotation=this.transform.rotation,this.preRotation=this.rotation,this.moves){var d=this.position;this.prev.x=d.x,this.prev.y=d.y,this.prevFrame.x=d.x,this.prevFrame.y=d.y}l&&this.update(f)},update:function(l){var f=this.prev,d=this.position,v=this.velocity;if(f.set(d.x,d.y),!this.moves){this._dx=d.x-f.x,this._dy=d.y-f.y;return}if(this.directControl){var m=this.autoFrame;v.set((d.x-m.x)/l,(d.y-m.y)/l),this.world.updateMotion(this,l),this._dx=d.x-m.x,this._dy=d.y-m.y}else this.world.updateMotion(this,l),this.newVelocity.set(v.x*l,v.y*l),d.add(this.newVelocity),this._dx=d.x-f.x,this._dy=d.y-f.y;var g=v.x,x=v.y;if(this.updateCenter(),this.angle=Math.atan2(x,g),this.speed=Math.sqrt(g*g+x*x),this.collideWorldBounds&&this.checkWorldBounds()&&this.onWorldBounds){var S=this.blocked;this.world.emit(r.WORLD_BOUNDS,this,S.up,S.down,S.left,S.right)}},postUpdate:function(){var l=this.position,f=l.x-this.prevFrame.x,d=l.y-this.prevFrame.y,v=this.gameObject;if(this.moves){var m=this.deltaMax.x,g=this.deltaMax.y;m!==0&&f!==0&&(f<0&&f<-m?f=-m:f>0&&f>m&&(f=m)),g!==0&&d!==0&&(d<0&&d<-g?d=-g:d>0&&d>g&&(d=g)),v&&(v.x+=f,v.y+=d)}f<0?this.facing=a.FACING_LEFT:f>0&&(this.facing=a.FACING_RIGHT),d<0?this.facing=a.FACING_UP:d>0&&(this.facing=a.FACING_DOWN),this.allowRotation&&v&&(v.angle+=this.deltaZ()),this._tx=f,this._ty=d,this.autoFrame.set(l.x,l.y)},setBoundsRectangle:function(l){return this.customBoundsRectangle=l||this.world.bounds,this},checkWorldBounds:function(){var l=this.position,f=this.velocity,d=this.blocked,v=this.customBoundsRectangle,m=this.world.checkCollision,g=this.worldBounce?-this.worldBounce.x:-this.bounce.x,x=this.worldBounce?-this.worldBounce.y:-this.bounce.y,S=!1;return l.xv.right&&m.right&&(l.x=v.right-this.width,f.x*=g,d.right=!0,S=!0),l.yv.bottom&&m.down&&(l.y=v.bottom-this.height,f.y*=x,d.down=!0,S=!0),S&&(this.blocked.none=!1,this.updateCenter()),S},setOffset:function(l,f){return f===void 0&&(f=l),this.offset.set(l,f),this},setGameObject:function(l,f){return f===void 0&&(f=!0),this.world.remove(this),this.gameObject&&this.gameObject.body&&(this.gameObject.body=null),this.gameObject=l,l.body&&(l.body=this),this.setSize(),this.world.add(this),this.enable=f,this},setSize:function(l,f,d){d===void 0&&(d=!0);var v=this.gameObject;if(v&&(!l&&v.frame&&(l=v.frame.realWidth),!f&&v.frame&&(f=v.frame.realHeight)),this.sourceWidth=l,this.sourceHeight=f,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(),d&&v&&v.getCenter){var m=(v.width-l)/2,g=(v.height-f)/2;this.offset.set(m,g)}return this.isCircle=!1,this.radius=0,this},setCircle:function(l,f,d){return f===void 0&&(f=this.offset.x),d===void 0&&(d=this.offset.y),l>0?(this.isCircle=!0,this.radius=l,this.sourceWidth=l*2,this.sourceHeight=l*2,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(f,d),this.updateCenter()):this.isCircle=!1,this},reset:function(l,f){this.stop();var d=this.gameObject;d&&(d.setPosition(l,f),this.rotation=d.angle,this.preRotation=d.angle);var v=this.position;d&&d.getTopLeft?d.getTopLeft(v):v.set(l,f),this.prev.copy(v),this.prevFrame.copy(v),this.autoFrame.copy(v),d&&this.updateBounds(),this.updateCenter(),this.collideWorldBounds&&this.checkWorldBounds(),this.resetFlags(!0)},stop:function(){return this.velocity.set(0),this.acceleration.set(0),this.speed=0,this.angularVelocity=0,this.angularAcceleration=0,this},getBounds:function(l){return l.x=this.x,l.y=this.y,l.right=this.right,l.bottom=this.bottom,l},hitTest:function(l,f){if(!this.isCircle)return s(this,l,f);if(this.radius>0&&l>=this.left&&l<=this.right&&f>=this.top&&f<=this.bottom){var d=(this.center.x-l)*(this.center.x-l),v=(this.center.y-f)*(this.center.y-f);return d+v<=this.radius*this.radius}return!1},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(l){var f=this.position,d=f.x+this.halfWidth,v=f.y+this.halfHeight;this.debugShowBody&&(l.lineStyle(l.defaultStrokeWidth,this.debugBodyColor),this.isCircle?l.strokeCircle(d,v,this.width/2):(this.checkCollision.up&&l.lineBetween(f.x,f.y,f.x+this.width,f.y),this.checkCollision.right&&l.lineBetween(f.x+this.width,f.y,f.x+this.width,f.y+this.height),this.checkCollision.down&&l.lineBetween(f.x,f.y+this.height,f.x+this.width,f.y+this.height),this.checkCollision.left&&l.lineBetween(f.x,f.y,f.x,f.y+this.height))),this.debugShowVelocity&&(l.lineStyle(l.defaultStrokeWidth,this.world.defaults.velocityDebugColor,1),l.lineBetween(d,v,d+this.velocity.x/2,v+this.velocity.y/2))},willDrawDebug:function(){return this.debugShowBody||this.debugShowVelocity},setDirectControl:function(l){return l===void 0&&(l=!0),this.directControl=l,this},setCollideWorldBounds:function(l,f,d,v){l===void 0&&(l=!0),this.collideWorldBounds=l;var m=f!==void 0,g=d!==void 0;return(m||g)&&(this.worldBounce||(this.worldBounce=new i),m&&(this.worldBounce.x=f),g&&(this.worldBounce.y=d)),v!==void 0&&(this.onWorldBounds=v),this},setVelocity:function(l,f){return this.velocity.set(l,f),l=this.velocity.x,f=this.velocity.y,this.speed=Math.sqrt(l*l+f*f),this},setVelocityX:function(l){return this.setVelocity(l,this.velocity.y)},setVelocityY:function(l){return this.setVelocity(this.velocity.x,l)},setMaxVelocity:function(l,f){return this.maxVelocity.set(l,f),this},setMaxVelocityX:function(l){return this.maxVelocity.x=l,this},setMaxVelocityY:function(l){return this.maxVelocity.y=l,this},setMaxSpeed:function(l){return this.maxSpeed=l,this},setSlideFactor:function(l,f){return this.slideFactor.set(l,f),this},setBounce:function(l,f){return this.bounce.set(l,f),this},setBounceX:function(l){return this.bounce.x=l,this},setBounceY:function(l){return this.bounce.y=l,this},setAcceleration:function(l,f){return this.acceleration.set(l,f),this},setAccelerationX:function(l){return this.acceleration.x=l,this},setAccelerationY:function(l){return this.acceleration.y=l,this},setAllowDrag:function(l){return l===void 0&&(l=!0),this.allowDrag=l,this},setAllowGravity:function(l){return l===void 0&&(l=!0),this.allowGravity=l,this},setAllowRotation:function(l){return l===void 0&&(l=!0),this.allowRotation=l,this},setDrag:function(l,f){return this.drag.set(l,f),this},setDamping:function(l){return this.useDamping=l,this},setDragX:function(l){return this.drag.x=l,this},setDragY:function(l){return this.drag.y=l,this},setGravity:function(l,f){return this.gravity.set(l,f),this},setGravityX:function(l){return this.gravity.x=l,this},setGravityY:function(l){return this.gravity.y=l,this},setFriction:function(l,f){return this.friction.set(l,f),this},setFrictionX:function(l){return this.friction.x=l,this},setFrictionY:function(l){return this.friction.y=l,this},setAngularVelocity:function(l){return this.angularVelocity=l,this},setAngularAcceleration:function(l){return this.angularAcceleration=l,this},setAngularDrag:function(l){return this.angularDrag=l,this},setMass:function(l){return this.mass=l,this},setImmovable:function(l){return l===void 0&&(l=!0),this.immovable=l,this},setEnable:function(l){return l===void 0&&(l=!0),this.enable=l,this},processX:function(l,f,d,v){this.x+=l,this.updateCenter(),f!==null&&(this.velocity.x=f*this.slideFactor.x);var m=this.blocked;d&&(m.left=!0,m.none=!1),v&&(m.right=!0,m.none=!1)},processY:function(l,f,d,v){this.y+=l,this.updateCenter(),f!==null&&(this.velocity.y=f*this.slideFactor.y);var m=this.blocked;d&&(m.up=!0,m.none=!1),v&&(m.down=!0,m.none=!1)},x:{get:function(){return this.position.x},set:function(l){this.position.x=l}},y:{get:function(){return this.position.y},set:function(l){this.position.y=l}},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}}});c.exports=o},79342:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=new u({initialize:function(r,n,e,s,h,i,o){this.world=r,this.name="",this.active=!0,this.overlapOnly=n,this.object1=e,this.object2=s,this.collideCallback=h,this.processCallback=i,this.callbackContext=o},setName:function(a){return this.name=a,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}});c.exports=p},66022:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(71289),p=t(13759),a=t(37742),r=t(83419),n=t(37747),e=t(60758),s=t(72624),h=t(71464),i=new r({initialize:function(l){this.world=l,this.scene=l.scene,this.sys=l.scene.sys},collider:function(o,l,f,d,v){return this.world.addCollider(o,l,f,d,v)},overlap:function(o,l,f,d,v){return this.world.addOverlap(o,l,f,d,v)},existing:function(o,l){var f=l?n.STATIC_BODY:n.DYNAMIC_BODY;return this.world.enableBody(o,f),o},staticImage:function(o,l,f,d){var v=new u(this.scene,o,l,f,d);return this.sys.displayList.add(v),this.world.enableBody(v,n.STATIC_BODY),v},image:function(o,l,f,d){var v=new u(this.scene,o,l,f,d);return this.sys.displayList.add(v),this.world.enableBody(v,n.DYNAMIC_BODY),v},staticSprite:function(o,l,f,d){var v=new p(this.scene,o,l,f,d);return this.sys.displayList.add(v),this.sys.updateList.add(v),this.world.enableBody(v,n.STATIC_BODY),v},sprite:function(o,l,f,d){var v=new p(this.scene,o,l,f,d);return this.sys.displayList.add(v),this.sys.updateList.add(v),this.world.enableBody(v,n.DYNAMIC_BODY),v},staticGroup:function(o,l){return this.sys.updateList.add(new h(this.world,this.world.scene,o,l))},group:function(o,l){return this.sys.updateList.add(new e(this.world,this.world.scene,o,l))},body:function(o,l,f,d){var v=new a(this.world);return v.position.set(o,l),f&&d&&v.setSize(f,d),this.world.add(v,n.DYNAMIC_BODY),v},staticBody:function(o,l,f,d){var v=new s(this.world);return v.position.set(o,l),f&&d&&v.setSize(f,d),this.world.add(v,n.STATIC_BODY),v},destroy:function(){this.world=null,this.scene=null,this.sys=null}});c.exports=i},79599:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){var u=0;if(!Array.isArray(t))u=t;else for(var p=0;p{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(37747),p=function(a,r,n,e){var s=0,h=a.deltaAbsX()+r.deltaAbsX()+e;return a._dx===0&&r._dx===0?(a.embedded=!0,r.embedded=!0):a._dx>r._dx?(s=a.right-r.x,s>h&&!n||a.checkCollision.right===!1||r.checkCollision.left===!1?s=0:(a.touching.none=!1,a.touching.right=!0,r.touching.none=!1,r.touching.left=!0,r.physicsType===u.STATIC_BODY&&!n&&(a.blocked.none=!1,a.blocked.right=!0),a.physicsType===u.STATIC_BODY&&!n&&(r.blocked.none=!1,r.blocked.left=!0))):a._dxh&&!n||a.checkCollision.left===!1||r.checkCollision.right===!1?s=0:(a.touching.none=!1,a.touching.left=!0,r.touching.none=!1,r.touching.right=!0,r.physicsType===u.STATIC_BODY&&!n&&(a.blocked.none=!1,a.blocked.left=!0),a.physicsType===u.STATIC_BODY&&!n&&(r.blocked.none=!1,r.blocked.right=!0))),a.overlapX=s,r.overlapX=s,s};c.exports=p},45170:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(37747),p=function(a,r,n,e){var s=0,h=a.deltaAbsY()+r.deltaAbsY()+e;return a._dy===0&&r._dy===0?(a.embedded=!0,r.embedded=!0):a._dy>r._dy?(s=a.bottom-r.y,s>h&&!n||a.checkCollision.down===!1||r.checkCollision.up===!1?s=0:(a.touching.none=!1,a.touching.down=!0,r.touching.none=!1,r.touching.up=!0,r.physicsType===u.STATIC_BODY&&!n&&(a.blocked.none=!1,a.blocked.down=!0),a.physicsType===u.STATIC_BODY&&!n&&(r.blocked.none=!1,r.blocked.up=!0))):a._dyh&&!n||a.checkCollision.up===!1||r.checkCollision.down===!1?s=0:(a.touching.none=!1,a.touching.up=!0,r.touching.none=!1,r.touching.down=!0,r.physicsType===u.STATIC_BODY&&!n&&(a.blocked.none=!1,a.blocked.up=!0),a.physicsType===u.STATIC_BODY&&!n&&(r.blocked.none=!1,r.blocked.down=!0))),a.overlapY=s,r.overlapY=s,s};c.exports=p},60758:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(13759),p=t(83419),a=t(78389),r=t(37747),n=t(95540),e=t(26479),s=t(41212),h=new p({Extends:e,Mixins:[a],initialize:function(o,l,f,d){if(!f&&!d)d={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler};else if(s(f))d=f,f=null,d.internalCreateCallback=this.createCallbackHandler,d.internalRemoveCallback=this.removeCallbackHandler;else if(Array.isArray(f)&&s(f[0])){var v=this;f.forEach(function(m){m.internalCreateCallback=v.createCallbackHandler,m.internalRemoveCallback=v.removeCallbackHandler,m.classType=n(m,"classType",u)}),d=null}else d={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler};this.world=o,d&&(d.classType=n(d,"classType",u)),this.physicsType=r.DYNAMIC_BODY,this.collisionCategory=1,this.collisionMask=2147483647,this.defaults={setCollideWorldBounds:n(d,"collideWorldBounds",!1),setBoundsRectangle:n(d,"customBoundsRectangle",null),setAccelerationX:n(d,"accelerationX",0),setAccelerationY:n(d,"accelerationY",0),setAllowDrag:n(d,"allowDrag",!0),setAllowGravity:n(d,"allowGravity",!0),setAllowRotation:n(d,"allowRotation",!0),setDamping:n(d,"useDamping",!1),setBounceX:n(d,"bounceX",0),setBounceY:n(d,"bounceY",0),setDragX:n(d,"dragX",0),setDragY:n(d,"dragY",0),setEnable:n(d,"enable",!0),setGravityX:n(d,"gravityX",0),setGravityY:n(d,"gravityY",0),setFrictionX:n(d,"frictionX",0),setFrictionY:n(d,"frictionY",0),setMaxSpeed:n(d,"maxSpeed",-1),setMaxVelocityX:n(d,"maxVelocityX",1e4),setMaxVelocityY:n(d,"maxVelocityY",1e4),setVelocityX:n(d,"velocityX",0),setVelocityY:n(d,"velocityY",0),setAngularVelocity:n(d,"angularVelocity",0),setAngularAcceleration:n(d,"angularAcceleration",0),setAngularDrag:n(d,"angularDrag",0),setMass:n(d,"mass",1),setImmovable:n(d,"immovable",!1)},e.call(this,l,f,d),this.type="PhysicsGroup"},createCallbackHandler:function(i){i.body||this.world.enableBody(i,r.DYNAMIC_BODY);var o=i.body;for(var l in this.defaults)o[l](this.defaults[l])},removeCallbackHandler:function(i){i.body&&this.world.disableBody(i)},setVelocity:function(i,o,l){l===void 0&&(l=0);for(var f=this.getChildren(),d=0;d{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y,t,u,p,a,r,n,e,s,h,i,o,l,f,d,v,m,g=function(R,M,A){y=R,t=M;var L=y.velocity.x,w=t.velocity.x;return u=y.pushable,s=y._dx<0,h=y._dx>0,i=y._dx===0,d=Math.abs(y.right-t.x)<=Math.abs(t.right-y.x),n=w-L*y.bounce.x,p=t.pushable,o=t._dx<0,l=t._dx>0,f=t._dx===0,v=!d,e=L-w*t.bounce.x,m=Math.abs(A),x()},x=function(){return h&&d&&t.blocked.right?(y.processX(-m,n,!1,!0),1):s&&v&&t.blocked.left?(y.processX(m,n,!0),1):l&&v&&y.blocked.right?(t.processX(-m,e,!1,!0),2):o&&d&&y.blocked.left?(t.processX(m,e,!0),2):0},S=function(){var R=y.velocity.x,M=t.velocity.x,A=Math.sqrt(M*M*t.mass/y.mass)*(M>0?1:-1),L=Math.sqrt(R*R*y.mass/t.mass)*(R>0?1:-1),w=(A+L)*.5;return A-=w,L-=w,a=w+A*y.bounce.x,r=w+L*t.bounce.x,s&&v?C(0):o&&d?C(1):h&&d?C(2):l&&v?C(3):!1},C=function(R){if(u&&p)m*=.5,R===0||R===3?(y.processX(m,a),t.processX(-m,r)):(y.processX(-m,a),t.processX(m,r));else if(u&&!p)R===0||R===3?y.processX(m,n,!0):y.processX(-m,n,!1,!0);else if(!u&&p)R===0||R===3?t.processX(-m,e,!1,!0):t.processX(m,e,!0);else{var M=m*.5;R===0?f?(y.processX(m,0,!0),t.processX(0,null,!1,!0)):l?(y.processX(M,0,!0),t.processX(-M,0,!1,!0)):(y.processX(M,t.velocity.x,!0),t.processX(-M,null,!1,!0)):R===1?i?(y.processX(0,null,!1,!0),t.processX(m,0,!0)):h?(y.processX(-M,0,!1,!0),t.processX(M,0,!0)):(y.processX(-M,null,!1,!0),t.processX(M,y.velocity.x,!0)):R===2?f?(y.processX(-m,0,!1,!0),t.processX(0,null,!0)):o?(y.processX(-M,0,!1,!0),t.processX(M,0,!0)):(y.processX(-M,t.velocity.x,!1,!0),t.processX(M,null,!0)):R===3&&(i?(y.processX(0,null,!0),t.processX(-m,0,!1,!0)):s?(y.processX(M,0,!0),t.processX(-M,0,!1,!0)):(y.processX(M,t.velocity.y,!0),t.processX(-M,null,!1,!0)))}return!0},E=function(R){if(R===1?t.velocity.x=0:d?t.processX(m,e,!0):t.processX(-m,e,!1,!0),y.moves){var M=y.directControl?y.y-y.autoFrame.y:y.y-y.prev.y;t.y+=M*y.friction.y,t._dy=t.y-t.prev.y}},P=function(R){if(R===2?y.velocity.x=0:v?y.processX(m,n,!0):y.processX(-m,n,!1,!0),t.moves){var M=t.directControl?t.y-t.autoFrame.y:t.y-t.prev.y;y.y+=M*t.friction.y,y._dy=y.y-y.prev.y}};c.exports={BlockCheck:x,Check:S,Set:g,Run:C,RunImmovableBody1:E,RunImmovableBody2:P}},47962:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y,t,u,p,a,r,n,e,s,h,i,o,l,f,d,v,m,g=function(R,M,A){y=R,t=M;var L=y.velocity.y,w=t.velocity.y;return u=y.pushable,s=y._dy<0,h=y._dy>0,i=y._dy===0,d=Math.abs(y.bottom-t.y)<=Math.abs(t.bottom-y.y),n=w-L*y.bounce.y,p=t.pushable,o=t._dy<0,l=t._dy>0,f=t._dy===0,v=!d,e=L-w*t.bounce.y,m=Math.abs(A),x()},x=function(){return h&&d&&t.blocked.down?(y.processY(-m,n,!1,!0),1):s&&v&&t.blocked.up?(y.processY(m,n,!0),1):l&&v&&y.blocked.down?(t.processY(-m,e,!1,!0),2):o&&d&&y.blocked.up?(t.processY(m,e,!0),2):0},S=function(){var R=y.velocity.y,M=t.velocity.y,A=Math.sqrt(M*M*t.mass/y.mass)*(M>0?1:-1),L=Math.sqrt(R*R*y.mass/t.mass)*(R>0?1:-1),w=(A+L)*.5;return A-=w,L-=w,a=w+A*y.bounce.y,r=w+L*t.bounce.y,s&&v?C(0):o&&d?C(1):h&&d?C(2):l&&v?C(3):!1},C=function(R){if(u&&p)m*=.5,R===0||R===3?(y.processY(m,a),t.processY(-m,r)):(y.processY(-m,a),t.processY(m,r));else if(u&&!p)R===0||R===3?y.processY(m,n,!0):y.processY(-m,n,!1,!0);else if(!u&&p)R===0||R===3?t.processY(-m,e,!1,!0):t.processY(m,e,!0);else{var M=m*.5;R===0?f?(y.processY(m,0,!0),t.processY(0,null,!1,!0)):l?(y.processY(M,0,!0),t.processY(-M,0,!1,!0)):(y.processY(M,t.velocity.y,!0),t.processY(-M,null,!1,!0)):R===1?i?(y.processY(0,null,!1,!0),t.processY(m,0,!0)):h?(y.processY(-M,0,!1,!0),t.processY(M,0,!0)):(y.processY(-M,null,!1,!0),t.processY(M,y.velocity.y,!0)):R===2?f?(y.processY(-m,0,!1,!0),t.processY(0,null,!0)):o?(y.processY(-M,0,!1,!0),t.processY(M,0,!0)):(y.processY(-M,t.velocity.y,!1,!0),t.processY(M,null,!0)):R===3&&(i?(y.processY(0,null,!0),t.processY(-m,0,!1,!0)):s?(y.processY(M,0,!0),t.processY(-M,0,!1,!0)):(y.processY(M,t.velocity.y,!0),t.processY(-M,null,!1,!0)))}return!0},E=function(R){if(R===1?t.velocity.y=0:d?t.processY(m,e,!0):t.processY(-m,e,!1,!0),y.moves){var M=y.directControl?y.x-y.autoFrame.x:y.x-y.prev.x;t.x+=M*y.friction.x,t._dx=t.x-t.prev.x}},P=function(R){if(R===2?y.velocity.y=0:v?y.processY(m,n,!0):y.processY(-m,n,!1,!0),t.moves){var M=t.directControl?t.x-t.autoFrame.x:t.x-t.prev.x;y.x+=M*t.friction.x,y._dx=y.x-y.prev.x}};c.exports={BlockCheck:x,Check:S,Set:g,Run:C,RunImmovableBody1:E,RunImmovableBody2:P}},14087:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(64897),p=t(3017),a=function(r,n,e,s,h){h===void 0&&(h=u(r,n,e,s));var i=r.immovable,o=n.immovable;if(e||h===0||i&&o||r.customSeparateX||n.customSeparateX)return h!==0||r.embedded&&n.embedded;var l=p.Set(r,n,h);return!i&&!o?l>0?!0:p.Check():(i?p.RunImmovableBody1(l):o&&p.RunImmovableBody2(l),!0)};c.exports=a},89936:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(45170),p=t(47962),a=function(r,n,e,s,h){h===void 0&&(h=u(r,n,e,s));var i=r.immovable,o=n.immovable;if(e||h===0||i&&o||r.customSeparateY||n.customSeparateY)return h!==0||r.embedded&&n.embedded;var l=p.Set(r,n,h);return!i&&!o?l>0?!0:p.Check():(i?p.RunImmovableBody1(l):o&&p.RunImmovableBody2(l),!0)};c.exports=a},95829:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return u===void 0&&(u={}),u.none=t,u.up=!1,u.down=!1,u.left=!1,u.right=!1,t||(u.up=!0,u.down=!0,u.left=!0,u.right=!0),u};c.exports=y},72624:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(87902),p=t(83419),a=t(78389),r=t(37747),n=t(37303),e=t(95829),s=t(26099),h=new p({Mixins:[a],initialize:function(o,l){var f=64,d=64,v={x:0,y:0,angle:0,rotation:0,scaleX:1,scaleY:1,displayOriginX:0,displayOriginY:0},m=l!==void 0;m&&l.displayWidth&&(f=l.displayWidth,d=l.displayHeight),m||(l=v),this.world=o,this.gameObject=m?l:void 0,this.isBody=!0,this.debugShowBody=o.defaults.debugShowStaticBody,this.debugBodyColor=o.defaults.staticBodyDebugColor,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new s,this.position=new s(l.x-f*l.originX,l.y-d*l.originY),this.width=f,this.height=d,this.halfWidth=Math.abs(this.width/2),this.halfHeight=Math.abs(this.height/2),this.center=new s(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.velocity=s.ZERO,this.allowGravity=!1,this.gravity=s.ZERO,this.bounce=s.ZERO,this.onWorldBounds=!1,this.onCollide=!1,this.onOverlap=!1,this.mass=1,this.immovable=!0,this.pushable=!1,this.customSeparateX=!1,this.customSeparateY=!1,this.overlapX=0,this.overlapY=0,this.overlapR=0,this.embedded=!1,this.collideWorldBounds=!1,this.checkCollision=e(!1),this.touching=e(!0),this.wasTouching=e(!0),this.blocked=e(!0),this.physicsType=r.STATIC_BODY,this.collisionCategory=1,this.collisionMask=1,this._dx=0,this._dy=0},setGameObject:function(i,o){return i&&i!==this.gameObject&&(this.gameObject.body=null,i.body=this,this.gameObject=i),o&&this.updateFromGameObject(),this},updateFromGameObject:function(){this.world.staticTree.remove(this);var i=this.gameObject;return i.getTopLeft(this.position),this.width=i.displayWidth,this.height=i.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(i,o){return o===void 0&&(o=i),this.world.staticTree.remove(this),this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(i,o),this.position.x+=this.offset.x,this.position.y+=this.offset.y,this.updateCenter(),this.world.staticTree.insert(this),this},setSize:function(i,o,l){l===void 0&&(l=!0);var f=this.gameObject;if(f&&f.frame&&(i||(i=f.frame.realWidth),o||(o=f.frame.realHeight)),this.world.staticTree.remove(this),this.width=i,this.height=o,this.halfWidth=Math.floor(i/2),this.halfHeight=Math.floor(o/2),l&&f&&f.getCenter){var d=f.displayWidth/2,v=f.displayHeight/2;this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(d-this.halfWidth,v-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(i,o,l){return o===void 0&&(o=this.offset.x),l===void 0&&(l=this.offset.y),i>0?(this.world.staticTree.remove(this),this.isCircle=!0,this.radius=i,this.width=i*2,this.height=i*2,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.offset.set(o,l),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(i,o){var l=this.gameObject;i===void 0&&(i=l.x),o===void 0&&(o=l.y),this.world.staticTree.remove(this),l.setPosition(i,o),l.getTopLeft(this.position),this.position.x+=this.offset.x,this.position.y+=this.offset.y,this.updateCenter(),this.world.staticTree.insert(this)},stop:function(){return this},getBounds:function(i){return i.x=this.x,i.y=this.y,i.right=this.right,i.bottom=this.bottom,i},hitTest:function(i,o){return this.isCircle?u(this,i,o):n(this,i,o)},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(i){var o=this.position,l=o.x+this.halfWidth,f=o.y+this.halfHeight;this.debugShowBody&&(i.lineStyle(i.defaultStrokeWidth,this.debugBodyColor,1),this.isCircle?i.strokeCircle(l,f,this.width/2):i.strokeRect(o.x,o.y,this.width,this.height))},willDrawDebug:function(){return this.debugShowBody},setMass:function(i){return i<=0&&(i=.1),this.mass=i,this},x:{get:function(){return this.position.x},set:function(i){this.world.staticTree.remove(this),this.position.x=i,this.world.staticTree.insert(this)}},y:{get:function(){return this.position.y},set:function(i){this.world.staticTree.remove(this),this.position.y=i,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}}});c.exports=h},71464:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(13759),p=t(83419),a=t(78389),r=t(37747),n=t(95540),e=t(26479),s=t(41212),h=new p({Extends:e,Mixins:[a],initialize:function(o,l,f,d){!f&&!d?d={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler,createMultipleCallback:this.createMultipleCallbackHandler,classType:u}:s(f)?(d=f,f=null,d.internalCreateCallback=this.createCallbackHandler,d.internalRemoveCallback=this.removeCallbackHandler,d.createMultipleCallback=this.createMultipleCallbackHandler,d.classType=n(d,"classType",u)):Array.isArray(f)&&s(f[0])?(d=f,f=null,d.forEach(function(v){v.internalCreateCallback=this.createCallbackHandler,v.internalRemoveCallback=this.removeCallbackHandler,v.createMultipleCallback=this.createMultipleCallbackHandler,v.classType=n(v,"classType",u)})):d={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler},this.world=o,this.physicsType=r.STATIC_BODY,this.collisionCategory=1,this.collisionMask=1,e.call(this,l,f,d),this.type="StaticPhysicsGroup"},createCallbackHandler:function(i){i.body||this.world.enableBody(i,r.STATIC_BODY)},removeCallbackHandler:function(i){i.body&&this.world.disableBody(i)},createMultipleCallbackHandler:function(){this.refresh()},refresh:function(){for(var i=this.children.entries,o=0;o{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(55495),p=t(37742),a=t(45319),r=t(83419),n=t(79342),e=t(37747),s=t(20339),h=t(52816),i=t(50792),o=t(63012),l=t(43855),f=t(5470),d=t(94977),v=t(64897),m=t(45170),g=t(96523),x=t(35154),S=t(36383),C=t(25774),E=t(96602),P=t(87841),R=t(59542),M=t(40012),A=t(14087),L=t(89936),w=t(35072),N=t(72624),b=t(2483),V=t(61340),Y=t(26099),G=t(15994),U=new r({Extends:i,initialize:function(I,X){i.call(this),this.scene=I,this.bodies=new w,this.staticBodies=new w,this.pendingDestroy=new w,this.colliders=new C,this.gravity=new Y(x(X,"gravity.x",0),x(X,"gravity.y",0)),this.bounds=new P(x(X,"x",0),x(X,"y",0),x(X,"width",I.sys.scale.width),x(X,"height",I.sys.scale.height)),this.checkCollision={up:x(X,"checkCollision.up",!0),down:x(X,"checkCollision.down",!0),left:x(X,"checkCollision.left",!0),right:x(X,"checkCollision.right",!0)},this.fps=x(X,"fps",60),this.fixedStep=x(X,"fixedStep",!0),this._elapsed=0,this._frameTime=1/this.fps,this._frameTimeMS=1e3*this._frameTime,this.stepsLastFrame=0,this.timeScale=x(X,"timeScale",1),this.OVERLAP_BIAS=x(X,"overlapBias",4),this.TILE_BIAS=x(X,"tileBias",16),this.forceX=x(X,"forceX",!1),this.isPaused=x(X,"isPaused",!1),this._total=0,this.drawDebug=x(X,"debug",!1),this.debugGraphic,this.defaults={debugShowBody:x(X,"debugShowBody",!0),debugShowStaticBody:x(X,"debugShowStaticBody",!0),debugShowVelocity:x(X,"debugShowVelocity",!0),bodyDebugColor:x(X,"debugBodyColor",16711935),staticBodyDebugColor:x(X,"debugStaticBodyColor",255),velocityDebugColor:x(X,"debugVelocityColor",65280)},this.maxEntries=x(X,"maxEntries",16),this.useTree=x(X,"useTree",!0),this.tree=new R(this.maxEntries),this.staticTree=new R(this.maxEntries),this.treeMinMax={minX:0,minY:0,maxX:0,maxY:0},this._tempMatrix=new V,this._tempMatrix2=new V,this.tileFilterOptions={isColliding:!0,isNotEmpty:!0,hasInterestingFace:!0},this.drawDebug&&this.createDebugGraphic()},enable:function(B,I){I===void 0&&(I=e.DYNAMIC_BODY),Array.isArray(B)||(B=[B]);for(var X=0;X=Z;for(this.fixedStep||(K=I*.001,$=!0,this._elapsed=0),X=0;X=Z;)this._elapsed-=Z,this.step(K)}},step:function(B){var I,X,K=this.bodies.entries,Z=K.length;for(I=0;I0){var j=this.tree,k=this.staticTree;for(X=$.entries,K=X.length,B=0;B-1&&B.velocity.length()>tt&&(B.velocity.normalize().scale(tt),q=tt),B.speed=q},separate:function(B,I,X,K,Z){var J,Q,$=!1,j=!0;if(!B.enable||!I.enable||B.checkCollision.none||I.checkCollision.none||!this.intersects(B,I)||X&&X.call(K,B.gameObject||B,I.gameObject||I)===!1)return $;if(B.isCircle||I.isCircle){var k=this.separateCircle(B,I,Z);k.result?($=!0,j=!1):(J=k.x,Q=k.y,j=!0)}if(j){var q=!1,tt=!1,_=this.OVERLAP_BIAS;Z?(q=A(B,I,Z,_,J),tt=L(B,I,Z,_,Q)):this.forceX||Math.abs(this.gravity.y+B.gravity.y)rt&&(tt=s(it,ot,rt,et)-ht):ot>at&&(itrt&&(tt=s(it,ot,rt,at)-ht)),tt*=-1}else tt=B.halfWidth+I.halfWidth-h(J,Q);B.overlapR=tt,I.overlapR=tt;var vt=u(J,Q),yt=(tt+S.EPSILON)*Math.cos(vt),Mt=(tt+S.EPSILON)*Math.sin(vt),gt={overlap:tt,result:!1,x:yt,y:Mt};if(X&&(!_||_&&tt!==0))return gt.result=!0,gt;if(!_&&tt===0||$&&j||B.customSeparateX||I.customSeparateX)return gt.x=void 0,gt.y=void 0,gt;var xt=!B.pushable&&!I.pushable;if(_){var At=J.x-Q.x,Gt=J.y-Q.y,Ct=Math.sqrt(Math.pow(At,2)+Math.pow(Gt,2)),Rt=(Q.x-J.x)/Ct||0,Ft=(Q.y-J.y)/Ct||0,bt=2*(k.x*Rt+k.y*Ft-q.x*Rt-q.y*Ft)/(B.mass+I.mass);($||j||!B.pushable||!I.pushable)&&(bt*=2),!$&&B.pushable&&(k.x=k.x-bt/B.mass*Rt,k.y=k.y-bt/B.mass*Ft,k.multiply(B.bounce)),!j&&I.pushable&&(q.x=q.x+bt/I.mass*Rt,q.y=q.y+bt/I.mass*Ft,q.multiply(I.bounce)),!$&&!j&&(yt*=.5,Mt*=.5),!$||B.pushable||xt?(B.x-=yt,B.y-=Mt,B.updateCenter()):(!j||I.pushable||xt)&&(I.x+=yt,I.y+=Mt,I.updateCenter()),gt.result=!0}else!$||B.pushable||xt?(B.x-=yt,B.y-=Mt,B.updateCenter()):(!j||I.pushable||xt)&&(I.x+=yt,I.y+=Mt,I.updateCenter()),gt.x=void 0,gt.y=void 0;return gt},intersects:function(B,I){return B===I?!1:!B.isCircle&&!I.isCircle?!(B.right<=I.left||B.bottom<=I.top||B.left>=I.right||B.top>=I.bottom):B.isCircle?I.isCircle?h(B.center,I.center)<=B.halfWidth+I.halfWidth:this.circleBodyIntersects(B,I):this.circleBodyIntersects(I,B)},circleBodyIntersects:function(B,I){var X=a(B.center.x,I.left,I.right),K=a(B.center.y,I.top,I.bottom),Z=(B.center.x-X)*(B.center.x-X),J=(B.center.y-K)*(B.center.y-K);return Z+J<=B.halfWidth*B.halfWidth},overlap:function(B,I,X,K,Z){return X===void 0&&(X=null),K===void 0&&(K=null),Z===void 0&&(Z=X),this.collideObjects(B,I,X,K,Z,!0)},collide:function(B,I,X,K,Z){return X===void 0&&(X=null),K===void 0&&(K=null),Z===void 0&&(Z=X),this.collideObjects(B,I,X,K,Z,!1)},collideObjects:function(B,I,X,K,Z,J){var Q,$;B.isParent&&(B.physicsType===void 0||I===void 0||B===I)&&(B=B.children.entries),I&&I.isParent&&I.physicsType===void 0&&(I=I.children.entries);var j=Array.isArray(B),k=Array.isArray(I);if(this._total=0,!j&&!k)this.collideHandler(B,I,X,K,Z,J);else if(!j&&k)for(Q=0;Q0},collideHandler:function(B,I,X,K,Z,J){if(I===void 0&&B.isParent)return this.collideGroupVsGroup(B,B,X,K,Z,J);if(!B||!I)return!1;if(B.body||B.isBody){if(I.body||I.isBody)return this.collideSpriteVsSprite(B,I,X,K,Z,J);if(I.isParent)return this.collideSpriteVsGroup(B,I,X,K,Z,J);if(I.isTilemap)return this.collideSpriteVsTilemapLayer(B,I,X,K,Z,J)}else if(B.isParent){if(I.body||I.isBody)return this.collideSpriteVsGroup(I,B,X,K,Z,J);if(I.isParent)return this.collideGroupVsGroup(B,I,X,K,Z,J);if(I.isTilemap)return this.collideGroupVsTilemapLayer(B,I,X,K,Z,J)}else if(B.isTilemap){if(I.body||I.isBody)return this.collideSpriteVsTilemapLayer(I,B,X,K,Z,J);if(I.isParent)return this.collideGroupVsTilemapLayer(I,B,X,K,Z,J)}},canCollide:function(B,I){return B&&I&&(B.collisionMask&I.collisionCategory)!==0&&(I.collisionMask&B.collisionCategory)!==0},collideSpriteVsSprite:function(B,I,X,K,Z,J){var Q=B.isBody?B:B.body,$=I.isBody?I:I.body;return this.canCollide(Q,$)?(this.separate(Q,$,K,Z,J)&&(X&&X.call(Z,B,I),this._total++),!0):!1},collideSpriteVsGroup:function(B,I,X,K,Z,J){var Q=B.isBody?B:B.body;if(!(I.getLength()===0||!Q||!Q.enable||Q.checkCollision.none||!this.canCollide(Q,I))){var $,j,k;if(this.useTree||I.physicsType===e.STATIC_BODY){var q=this.treeMinMax;q.minX=Q.left,q.minY=Q.top,q.maxX=Q.right,q.maxY=Q.bottom;var tt=I.physicsType===e.DYNAMIC_BODY?this.tree.search(q):this.staticTree.search(q);for(j=tt.length,$=0;${/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={setAcceleration:function(t,u){return this.body.acceleration.set(t,u),this},setAccelerationX:function(t){return this.body.acceleration.x=t,this},setAccelerationY:function(t){return this.body.acceleration.y=t,this}};c.exports=y},59023:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={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}};c.exports=y},62069:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={setBounce:function(t,u){return this.body.bounce.set(t,u),this},setBounceX:function(t){return this.body.bounce.x=t,this},setBounceY:function(t){return this.body.bounce.y=t,this},setCollideWorldBounds:function(t,u,p,a){return this.body.setCollideWorldBounds(t,u,p,a),this}};c.exports=y},78389:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(79599),p={setCollisionCategory:function(a){var r=this.body?this.body:this;return r.collisionCategory=a,this},willCollideWith:function(a){var r=this.body?this.body:this;return(r.collisionMask&a)!==0},addCollidesWith:function(a){var r=this.body?this.body:this;return r.collisionMask=r.collisionMask|a,this},removeCollidesWith:function(a){var r=this.body?this.body:this;return r.collisionMask=r.collisionMask&~a,this},setCollidesWith:function(a){var r=this.body?this.body:this;return r.collisionMask=u(a),this},resetCollisionCategory:function(){var a=this.body?this.body:this;return a.collisionCategory=1,a.collisionMask=2147483647,this}};c.exports=p},87118:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={setDebug:function(t,u,p){return this.debugShowBody=t,this.debugShowVelocity=u,this.debugBodyColor=p,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}}};c.exports=y},52819:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={setDrag:function(t,u){return this.body.drag.set(t,u),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}};c.exports=y},4074:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={setDirectControl:function(t){return this.body.setDirectControl(t),this},enableBody:function(t,u,p,a,r){return t&&this.body.reset(u,p),a&&(this.body.gameObject.active=!0),r&&(this.body.gameObject.visible=!0),this.body.enable=!0,this},disableBody:function(t,u){return t===void 0&&(t=!1),u===void 0&&(u=!1),this.body.stop(),this.body.enable=!1,t&&(this.body.gameObject.active=!1),u&&(this.body.gameObject.visible=!1),this},refreshBody:function(){return this.body.updateFromGameObject(),this}};c.exports=y},40831:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={setFriction:function(t,u){return this.body.friction.set(t,u),this},setFrictionX:function(t){return this.body.friction.x=t,this},setFrictionY:function(t){return this.body.friction.y=t,this}};c.exports=y},26775:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={setGravity:function(t,u){return this.body.gravity.set(t,u),this},setGravityX:function(t){return this.body.gravity.x=t,this},setGravityY:function(t){return this.body.gravity.y=t,this}};c.exports=y},9437:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={setImmovable:function(t){return t===void 0&&(t=!0),this.body.immovable=t,this}};c.exports=y},30621:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={setMass:function(t){return this.body.mass=t,this}};c.exports=y},72441:(c,y,t)=>{var u=t(47956),p=t(96503),a=t(2044),r=t(81491),n=function(e,s,h,i,o,l){var f=u(e,s-i,h-i,2*i,2*i,o,l);if(f.length===0)return f;for(var d=new p(s,h,i),v=new p,m=[],g=0;g{var y=function(t,u,p,a,r,n,e){n===void 0&&(n=!0),e===void 0&&(e=!1);var s=[],h=[],i=t.treeMinMax;if(i.minX=u,i.minY=p,i.maxX=u+a,i.maxY=p+r,e&&(h=t.staticTree.search(i)),n&&t.useTree)s=t.tree.search(i);else if(n){var o=t.bodies,l={position:{x:u,y:p},left:u,top:p,right:u+a,bottom:p+r,isCircle:!1},f=t.intersects;o.iterate(function(d){f(d,l)&&s.push(d)})}return h.concat(s)};c.exports=y},62121:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={setPushable:function(t){return t===void 0&&(t=!0),this.body.pushable=t,this}};c.exports=y},29384:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={setOffset:function(t,u){return this.body.setOffset(t,u),this},setSize:function(t,u,p){return this.body.setSize(t,u,p),this},setBodySize:function(t,u,p){return this.body.setSize(t,u,p),this},setCircle:function(t,u,p){return this.body.setCircle(t,u,p),this}};c.exports=y},15098:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={setVelocity:function(t,u){return this.body.setVelocity(t,u),this},setVelocityX:function(t){return this.body.setVelocityX(t),this},setVelocityY:function(t){return this.body.setVelocityY(t),this},setMaxVelocity:function(t,u){return this.body.maxVelocity.set(t,u),this}};c.exports=y},92209:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={Acceleration:t(1093),Angular:t(59023),Bounce:t(62069),Collision:t(78389),Debug:t(87118),Drag:t(52819),Enable:t(4074),Friction:t(40831),Gravity:t(26775),Immovable:t(9437),Mass:t(30621),OverlapCirc:t(72441),OverlapRect:t(47956),Pushable:t(62121),Size:t(29384),Velocity:t(15098)}},37747:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={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};c.exports=y},20009:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="collide"},36768:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="overlap"},60473:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="pause"},89954:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="resume"},61804:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="tilecollide"},7161:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="tileoverlap"},34689:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="worldbounds"},16006:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="worldstep"},63012:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={COLLIDE:t(20009),OVERLAP:t(36768),PAUSE:t(60473),RESUME:t(89954),TILE_COLLIDE:t(61804),TILE_OVERLAP:t(7161),WORLD_BOUNDS:t(34689),WORLD_STEP:t(16006)}},27064:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(37747),p=t(79291),a={ArcadePhysics:t(86689),Body:t(37742),Collider:t(79342),Components:t(92209),Events:t(63012),Factory:t(66022),GetCollidesWith:t(79599),GetOverlapX:t(64897),GetOverlapY:t(45170),SeparateX:t(14087),SeparateY:t(89936),Group:t(60758),Image:t(71289),Sprite:t(13759),StaticBody:t(72624),StaticGroup:t(71464),Tilemap:t(55173),World:t(82248)};a=p(!1,a,u),c.exports=a},96602:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return t.collisionCallback?!t.collisionCallback.call(t.collisionCallbackContext,u,t):t.layer.callbacks[t.index]?!t.layer.callbacks[t.index].callback.call(t.layer.callbacks[t.index].callbackContext,u,t):!0};c.exports=y},36294:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){u<0?(t.blocked.none=!1,t.blocked.left=!0):u>0&&(t.blocked.none=!1,t.blocked.right=!0),t.position.x-=u,t.updateCenter(),t.bounce.x===0?t.velocity.x=0:t.velocity.x=-t.velocity.x*t.bounce.x};c.exports=y},67013:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){u<0?(t.blocked.none=!1,t.blocked.up=!0):u>0&&(t.blocked.none=!1,t.blocked.down=!0),t.position.y-=u,t.updateCenter(),t.bounce.y===0?t.velocity.y=0:t.velocity.y=-t.velocity.y*t.bounce.y};c.exports=y},40012:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(21329),p=t(53442),a=t(2483),r=function(n,e,s,h,i,o,l){var f=h.left,d=h.top,v=h.right,m=h.bottom,g=s.faceLeft||s.faceRight,x=s.faceTop||s.faceBottom;if(l||(g=!0,x=!0),!g&&!x)return!1;var S=0,C=0,E=0,P=1;if(e.deltaAbsX()>e.deltaAbsY()?E=-1:e.deltaAbsX(){/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(36294),p=function(a,r,n,e,s,h){var i=0,o=r.faceLeft,l=r.faceRight,f=r.collideLeft,d=r.collideRight;return h||(o=!0,l=!0,f=!0,d=!0),a.deltaX()<0&&d&&a.checkCollision.left?l&&a.x0&&f&&a.checkCollision.right&&o&&a.right>n&&(i=a.right-n,i>s&&(i=0)),i!==0&&(a.customSeparateX?a.overlapX=i:u(a,i)),i};c.exports=p},53442:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(67013),p=function(a,r,n,e,s,h){var i=0,o=r.faceTop,l=r.faceBottom,f=r.collideUp,d=r.collideDown;return h||(o=!0,l=!0,f=!0,d=!0),a.deltaY()<0&&d&&a.checkCollision.up?l&&a.y0&&f&&a.checkCollision.down&&o&&a.bottom>n&&(i=a.bottom-n,i>s&&(i=0)),i!==0&&(a.customSeparateY?a.overlapY=i:u(a,i)),i};c.exports=p},2483:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return!(u.right<=t.left||u.bottom<=t.top||u.position.x>=t.right||u.position.y>=t.bottom)};c.exports=y},55173:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u={ProcessTileCallbacks:t(96602),ProcessTileSeparationX:t(36294),ProcessTileSeparationY:t(67013),SeparateTile:t(40012),TileCheckX:t(21329),TileCheckY:t(53442),TileIntersectsBody:t(2483)};c.exports=u},44563:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={Arcade:t(27064),Matter:t(3875)}},68174:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(26099),a=new u({initialize:function(){this.boundsCenter=new p,this.centerDiff=new p},parseBody:function(r){if(r=r.hasOwnProperty("body")?r.body:r,!r.hasOwnProperty("bounds")||!r.hasOwnProperty("centerOfMass"))return!1;var n=this.boundsCenter,e=this.centerDiff,s=r.bounds.max.x-r.bounds.min.x,h=r.bounds.max.y-r.bounds.min.y,i=s*r.centerOfMass.x,o=h*r.centerOfMass.y;return n.set(s/2,h/2),e.set(i-n.x,o-n.y),!0},getTopLeft:function(r,n,e){if(n===void 0&&(n=0),e===void 0&&(e=0),this.parseBody(r)){var s=this.boundsCenter,h=this.centerDiff;return new p(n+s.x+h.x,e+s.y+h.y)}return!1},getTopCenter:function(r,n,e){if(n===void 0&&(n=0),e===void 0&&(e=0),this.parseBody(r)){var s=this.boundsCenter,h=this.centerDiff;return new p(n+h.x,e+s.y+h.y)}return!1},getTopRight:function(r,n,e){if(n===void 0&&(n=0),e===void 0&&(e=0),this.parseBody(r)){var s=this.boundsCenter,h=this.centerDiff;return new p(n-(s.x-h.x),e+s.y+h.y)}return!1},getLeftCenter:function(r,n,e){if(n===void 0&&(n=0),e===void 0&&(e=0),this.parseBody(r)){var s=this.boundsCenter,h=this.centerDiff;return new p(n+s.x+h.x,e+h.y)}return!1},getCenter:function(r,n,e){if(n===void 0&&(n=0),e===void 0&&(e=0),this.parseBody(r)){var s=this.centerDiff;return new p(n+s.x,e+s.y)}return!1},getRightCenter:function(r,n,e){if(n===void 0&&(n=0),e===void 0&&(e=0),this.parseBody(r)){var s=this.boundsCenter,h=this.centerDiff;return new p(n-(s.x-h.x),e+h.y)}return!1},getBottomLeft:function(r,n,e){if(n===void 0&&(n=0),e===void 0&&(e=0),this.parseBody(r)){var s=this.boundsCenter,h=this.centerDiff;return new p(n+s.x+h.x,e-(s.y-h.y))}return!1},getBottomCenter:function(r,n,e){if(n===void 0&&(n=0),e===void 0&&(e=0),this.parseBody(r)){var s=this.boundsCenter,h=this.centerDiff;return new p(n+h.x,e-(s.y-h.y))}return!1},getBottomRight:function(r,n,e){if(n===void 0&&(n=0),e===void 0&&(e=0),this.parseBody(r)){var s=this.boundsCenter,h=this.centerDiff;return new p(n-(s.x-h.x),e-(s.y-h.y))}return!1}});c.exports=a},19933:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(6790);u.Body=t(22562),u.Composite=t(69351),u.World=t(4372),u.Collision=t(52284),u.Detector=t(81388),u.Pairs=t(99561),u.Pair=t(4506),u.Query=t(73296),u.Resolver=t(66272),u.Constraint=t(48140),u.Common=t(53402),u.Engine=t(48413),u.Events=t(35810),u.Sleeping=t(53614),u.Plugin=t(73832),u.Bodies=t(66280),u.Composites=t(74116),u.Axes=t(66615),u.Bounds=t(15647),u.Svg=t(74058),u.Vector=t(31725),u.Vertices=t(41598),u.World.add=u.Composite.add,u.World.remove=u.Composite.remove,u.World.addComposite=u.Composite.addComposite,u.World.addBody=u.Composite.addBody,u.World.addConstraint=u.Composite.addConstraint,u.World.clear=u.Composite.clear,c.exports=u},28137:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(66280),p=t(83419),a=t(74116),r=t(48140),n=t(74058),e=t(75803),s=t(23181),h=t(34803),i=t(73834),o=t(19496),l=t(85791),f=t(98713),d=t(41598),v=new p({initialize:function(g){this.world=g,this.scene=g.scene,this.sys=g.scene.sys},rectangle:function(m,g,x,S,C){var E=u.rectangle(m,g,x,S,C);return this.world.add(E),E},trapezoid:function(m,g,x,S,C,E){var P=u.trapezoid(m,g,x,S,C,E);return this.world.add(P),P},circle:function(m,g,x,S,C){var E=u.circle(m,g,x,S,C);return this.world.add(E),E},polygon:function(m,g,x,S,C){var E=u.polygon(m,g,x,S,C);return this.world.add(E),E},fromVertices:function(m,g,x,S,C,E,P){typeof x=="string"&&(x=d.fromPath(x));var R=u.fromVertices(m,g,x,S,C,E,P);return this.world.add(R),R},fromPhysicsEditor:function(m,g,x,S,C){C===void 0&&(C=!0);var E=o.parseBody(m,g,x,S);return C&&!this.world.has(E)&&this.world.add(E),E},fromSVG:function(m,g,x,S,C,E){S===void 0&&(S=1),C===void 0&&(C={}),E===void 0&&(E=!0);for(var P=x.getElementsByTagName("path"),R=[],M=0;M{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(31884),p=t(95540),a=t(26099);function r(e){return!!e.get&&typeof e.get=="function"||!!e.set&&typeof e.set=="function"}var n=function(e,s,h,i){h===void 0&&(h={}),i===void 0&&(i=!0);var o=s.x,l=s.y;s.body={temp:!0,position:{x:o,y:l}};var f=[u.Bounce,u.Collision,u.Force,u.Friction,u.Gravity,u.Mass,u.Sensor,u.SetBody,u.Sleep,u.Static,u.Transform,u.Velocity];if(f.forEach(function(v){for(var m in v)r(v[m])?Object.defineProperty(s,m,{get:v[m].get,set:v[m].set}):Object.defineProperty(s,m,{value:v[m]})}),s.world=e,s._tempVec2=new a(o,l),h.hasOwnProperty("type")&&h.type==="body")s.setExistingBody(h,i);else{var d=p(h,"shape",null);d||(d="rectangle"),h.addToWorld=i,s.setBody(d,h)}return s};c.exports=n},23181:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(31884),a=t(95643),r=t(95540),n=t(88571),e=t(72699),s=t(26099),h=new u({Extends:n,Mixins:[p.Bounce,p.Collision,p.Force,p.Friction,p.Gravity,p.Mass,p.Sensor,p.SetBody,p.Sleep,p.Static,p.Transform,p.Velocity,e],initialize:function(o,l,f,d,v,m){a.call(this,o.scene,"Image"),this._crop=this.resetCropObject(),this.setTexture(d,v),this.setSizeToFrame(),this.setOrigin(),this.world=o,this._tempVec2=new s(l,f);var g=r(m,"shape",null);g?this.setBody(g,m):this.setRectangle(this.width,this.height,m),this.setPosition(l,f),this.initPipeline(),this.initPostPipeline(!0)}});c.exports=h},42045:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(60461),p=t(66615),a=t(66280),r=t(22562),n=t(68174),e=t(15647),s=t(83419),h=t(52284),i=t(53402),o=t(69351),l=t(74116),f=t(48140),d=t(81388),v=t(20339),m=t(28137),g=t(95540),x=t(35154),S=t(46975),C=t(4506),E=t(99561),P=t(37277),R=t(73296),M=t(66272),A=t(44594),L=t(74058),w=t(31725),N=t(41598),b=t(68243);i.setDecomp(t(55973));var V=new s({initialize:function(G){this.scene=G,this.systems=G.sys,this.config=this.getConfig(),this.world,this.add,this.bodyBounds,this.body=r,this.composite=o,this.collision=h,this.detector=d,this.pair=C,this.pairs=E,this.query=R,this.resolver=M,this.constraint=f,this.bodies=a,this.composites=l,this.axes=p,this.bounds=e,this.svg=L,this.vector=w,this.vertices=N,this.verts=N,this._tempVec2=w.create(),M._restingThresh=x(this.config,"restingThresh",4),M._restingThreshTangent=x(this.config,"restingThreshTangent",6),M._positionDampen=x(this.config,"positionDampen",.9),M._positionWarming=x(this.config,"positionWarming",.8),M._frictionNormalMultiplier=x(this.config,"frictionNormalMultiplier",5),G.sys.events.once(A.BOOT,this.boot,this),G.sys.events.on(A.START,this.start,this)},boot:function(){this.world=new b(this.scene,this.config),this.add=new m(this.world),this.bodyBounds=new n,this.systems.events.once(A.DESTROY,this.destroy,this)},start:function(){this.world||(this.world=new b(this.scene,this.config),this.add=new m(this.world));var Y=this.systems.events;Y.on(A.UPDATE,this.world.update,this.world),Y.on(A.POST_UPDATE,this.world.postUpdate,this.world),Y.once(A.SHUTDOWN,this.shutdown,this)},getConfig:function(){var Y=this.systems.game.config.physics,G=this.systems.settings.physics,U=S(g(G,"matter",{}),g(Y,"matter",{}));return U},pause:function(){return this.world.pause()},resume:function(){return this.world.resume()},set60Hz:function(){return this.world.getDelta=this.world.update60Hz,this.world.autoUpdate=!0,this},set30Hz:function(){return this.world.getDelta=this.world.update30Hz,this.world.autoUpdate=!0,this},step:function(Y,G){this.world.step(Y,G)},containsPoint:function(Y,G,U){Y=this.getMatterBodies(Y);var B=w.create(G,U),I=R.point(Y,B);return I.length>0},intersectPoint:function(Y,G,U){U=this.getMatterBodies(U);var B=w.create(Y,G),I=[],X=R.point(U,B);return X.forEach(function(K){I.indexOf(K)===-1&&I.push(K)}),I},intersectRect:function(Y,G,U,B,I,X){I===void 0&&(I=!1),X=this.getMatterBodies(X);var K={min:{x:Y,y:G},max:{x:Y+U,y:G+B}},Z=[],J=R.region(X,K,I);return J.forEach(function(Q){Z.indexOf(Q)===-1&&Z.push(Q)}),Z},intersectRay:function(Y,G,U,B,I,X){I===void 0&&(I=1),X=this.getMatterBodies(X);for(var K=[],Z=R.ray(X,w.create(Y,G),w.create(U,B),I),J=0;J{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(9674),p=t(83419),a=t(31884),r=t(95643),n=t(95540),e=t(72699),s=t(68287),h=t(26099),i=new p({Extends:s,Mixins:[a.Bounce,a.Collision,a.Force,a.Friction,a.Gravity,a.Mass,a.Sensor,a.SetBody,a.Sleep,a.Static,a.Transform,a.Velocity,e],initialize:function(l,f,d,v,m,g){r.call(this,l.scene,"Sprite"),this._crop=this.resetCropObject(),this.anims=new u(this),this.setTexture(v,m),this.setSizeToFrame(),this.setOrigin(),this.world=l,this._tempVec2=new h(f,d);var x=n(g,"shape",null);x?this.setBody(x,g):this.setRectangle(this.width,this.height,g),this.setPosition(f,d),this.initPipeline(),this.initPostPipeline(!0)}});c.exports=i},73834:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(66280),p=t(22562),a=t(83419),r=t(31884),n=t(62644),e=t(50792),s=t(95540),h=t(97022),i=t(41598),o=new a({Extends:e,Mixins:[r.Bounce,r.Collision,r.Friction,r.Gravity,r.Mass,r.Sensor,r.Sleep,r.Static],initialize:function(f,d,v){e.call(this),this.tile=d,this.world=f,d.physics.matterBody&&d.physics.matterBody.destroy(),d.physics.matterBody=this;var m=s(v,"body",null),g=s(v,"addToWorld",!0);if(m)this.setBody(m,g);else{var x=d.getCollisionGroup(),S=s(x,"objects",[]);S.length>0?this.setFromTileCollision(v):this.setFromTileRectangle(v)}if(d.flipX||d.flipY){var C={x:d.getCenterX(),y:d.getCenterY()},E=d.flipX?-1:1,P=d.flipY?-1:1;p.scale(m,E,P,C)}},setFromTileRectangle:function(l){l===void 0&&(l={}),h(l,"isStatic")||(l.isStatic=!0),h(l,"addToWorld")||(l.addToWorld=!0);var f=this.tile.getBounds(),d=f.x+f.width/2,v=f.y+f.height/2,m=u.rectangle(d,v,f.width,f.height,l);return this.setBody(m,l.addToWorld),this},setFromTileCollision:function(l){l===void 0&&(l={}),h(l,"isStatic")||(l.isStatic=!0),h(l,"addToWorld")||(l.addToWorld=!0);for(var f=this.tile.tilemapLayer.scaleX,d=this.tile.tilemapLayer.scaleY,v=this.tile.getLeft(),m=this.tile.getTop(),g=this.tile.getCollisionGroup(),x=s(g,"objects",[]),S=[],C=0;C1){var Y=n(l);Y.parts=S,this.setBody(p.create(Y),Y.addToWorld)}return this},setBody:function(l,f){return f===void 0&&(f=!0),this.body&&this.removeBody(),this.body=l,this.body.gameObject=this,f&&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()}});c.exports=o},19496:(c,y,t)=>{/** + * @author Joachim Grill + * @author Richard Davey + * @copyright 2018 CodeAndWeb GmbH + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(66280),p=t(22562),a=t(53402),r=t(95540),n=t(41598),e={parseBody:function(s,h,i,o){o===void 0&&(o={});for(var l=r(i,"fixtures",[]),f=[],d=0;d{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(66280),p=t(22562),a={parseBody:function(r,n,e,s){s===void 0&&(s={});var h,i=e.vertices;if(i.length===1)s.vertices=i[0],h=p.create(s),u.flagCoincidentParts(h.parts);else{for(var o=[],l=0;l{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(15647),p=t(83419),a=t(69351),r=t(48140),n=t(81388),e=t(1121),s=t(8214),h=t(46975),i=t(53614),o=t(26099),l=t(41598),f=new p({initialize:function(v,m,g){g===void 0&&(g={});var x={label:"Pointer Constraint",pointA:{x:0,y:0},pointB:{x:0,y:0},length:.01,stiffness:.1,angularStiffness:1,collisionFilter:{category:1,mask:4294967295,group:0}};this.scene=v,this.world=m,this.camera=null,this.pointer=null,this.active=!0,this.position=new o,this.body=null,this.part=null,this.constraint=r.create(h(g,x)),this.world.on(e.BEFORE_UPDATE,this.update,this),v.sys.input.on(s.POINTER_DOWN,this.onDown,this),v.sys.input.on(s.POINTER_UP,this.onUp,this)},onDown:function(d){this.pointer||(this.pointer=d,this.camera=d.camera)},onUp:function(d){d===this.pointer&&(this.pointer=null)},getBody:function(d){var v=this.position,m=this.constraint;this.camera.getWorldPoint(d.x,d.y,v);for(var g=a.allBodies(this.world.localWorld),x=0;x1?1:0,S=x;S{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(66280),p=t(22562),a=t(83419),r=t(53402),n=t(69351),e=t(48413),s=t(50792),h=t(1121),i=t(95540),o=t(35154),l=t(22562),f=t(35810),d=t(73834),v=t(4372),m=t(13037),g=t(31725),x=new a({Extends:s,initialize:function(C,E){s.call(this),this.scene=C,this.engine=e.create(E),this.localWorld=this.engine.world;var P=o(E,"gravity",null);P?this.setGravity(P.x,P.y,P.scale):P===!1&&this.setGravity(0,0,0),this.walls={left:null,right:null,top:null,bottom:null},this.enabled=o(E,"enabled",!0),this.getDelta=o(E,"getDelta",this.update60Hz);var R=i(E,"runner",{}),M=i(R,"fps",!1),A=i(R,"fps",60),L=i(R,"delta",1e3/A),w=i(R,"deltaMin",1e3/A),N=i(R,"deltaMax",1e3/(A*.5));M||(A=1e3/L),this.runner={fps:A,deltaSampleSize:i(R,"deltaSampleSize",60),counterTimestamp:0,frameCounter:0,deltaHistory:[],timePrev:null,timeScalePrev:1,frameRequestId:null,timeBuffer:0,isFixed:i(R,"isFixed",!1),delta:L,deltaMin:w,deltaMax:N},this.autoUpdate=o(E,"autoUpdate",!0);var b=o(E,"debug",!1);if(this.drawDebug=typeof b=="object"?!0:b,this.debugGraphic,this.debugConfig={showAxes:i(b,"showAxes",!1),showAngleIndicator:i(b,"showAngleIndicator",!1),angleColor:i(b,"angleColor",15208787),showBroadphase:i(b,"showBroadphase",!1),broadphaseColor:i(b,"broadphaseColor",16757760),showBounds:i(b,"showBounds",!1),boundsColor:i(b,"boundsColor",16777215),showVelocity:i(b,"showVelocity",!1),velocityColor:i(b,"velocityColor",44783),showCollisions:i(b,"showCollisions",!1),collisionColor:i(b,"collisionColor",16094476),showSeparations:i(b,"showSeparations",!1),separationColor:i(b,"separationColor",16753920),showBody:i(b,"showBody",!0),showStaticBody:i(b,"showStaticBody",!0),showInternalEdges:i(b,"showInternalEdges",!1),renderFill:i(b,"renderFill",!1),renderLine:i(b,"renderLine",!0),fillColor:i(b,"fillColor",1075465),fillOpacity:i(b,"fillOpacity",1),lineColor:i(b,"lineColor",2678297),lineOpacity:i(b,"lineOpacity",1),lineThickness:i(b,"lineThickness",1),staticFillColor:i(b,"staticFillColor",857979),staticLineColor:i(b,"staticLineColor",1255396),showSleeping:i(b,"showSleeping",!1),staticBodySleepOpacity:i(b,"staticBodySleepOpacity",.7),sleepFillColor:i(b,"sleepFillColor",4605510),sleepLineColor:i(b,"sleepLineColor",10066585),showSensors:i(b,"showSensors",!0),sensorFillColor:i(b,"sensorFillColor",857979),sensorLineColor:i(b,"sensorLineColor",1255396),showPositions:i(b,"showPositions",!0),positionSize:i(b,"positionSize",4),positionColor:i(b,"positionColor",14697178),showJoint:i(b,"showJoint",!0),jointColor:i(b,"jointColor",14737474),jointLineOpacity:i(b,"jointLineOpacity",1),jointLineThickness:i(b,"jointLineThickness",2),pinSize:i(b,"pinSize",4),pinColor:i(b,"pinColor",4382944),springColor:i(b,"springColor",14697184),anchorColor:i(b,"anchorColor",15724527),anchorSize:i(b,"anchorSize",4),showConvexHulls:i(b,"showConvexHulls",!1),hullColor:i(b,"hullColor",14091216)},this.drawDebug&&this.createDebugGraphic(),this.setEventsProxy(),i(E,"setBounds",!1)){var V=E.setBounds;if(typeof V=="boolean")this.setBounds();else{var Y=i(V,"x",0),G=i(V,"y",0),U=i(V,"width",C.sys.scale.width),B=i(V,"height",C.sys.scale.height),I=i(V,"thickness",64),X=i(V,"left",!0),K=i(V,"right",!0),Z=i(V,"top",!0),J=i(V,"bottom",!0);this.setBounds(Y,G,U,B,I,X,K,Z,J)}}},setCompositeRenderStyle:function(S){var C=S.bodies,E=S.constraints,P=S.composites,R,M,A;for(R=0;R0&&R.map(function(L){M=L.bodyA,A=L.bodyB,M.gameObject&&M.gameObject.emit("collide",M,A,L),A.gameObject&&A.gameObject.emit("collide",A,M,L),f.trigger(M,"onCollide",{pair:L}),f.trigger(A,"onCollide",{pair:L}),M.onCollideCallback&&M.onCollideCallback(L),A.onCollideCallback&&A.onCollideCallback(L),M.onCollideWith[A.id]&&M.onCollideWith[A.id](A,L),A.onCollideWith[M.id]&&A.onCollideWith[M.id](M,L)}),S.emit(h.COLLISION_START,P,M,A)}),f.on(C,"collisionActive",function(P){var R=P.pairs,M,A;R.length>0&&R.map(function(L){M=L.bodyA,A=L.bodyB,M.gameObject&&M.gameObject.emit("collideActive",M,A,L),A.gameObject&&A.gameObject.emit("collideActive",A,M,L),f.trigger(M,"onCollideActive",{pair:L}),f.trigger(A,"onCollideActive",{pair:L}),M.onCollideActiveCallback&&M.onCollideActiveCallback(L),A.onCollideActiveCallback&&A.onCollideActiveCallback(L)}),S.emit(h.COLLISION_ACTIVE,P,M,A)}),f.on(C,"collisionEnd",function(P){var R=P.pairs,M,A;R.length>0&&R.map(function(L){M=L.bodyA,A=L.bodyB,M.gameObject&&M.gameObject.emit("collideEnd",M,A,L),A.gameObject&&A.gameObject.emit("collideEnd",A,M,L),f.trigger(M,"onCollideEnd",{pair:L}),f.trigger(A,"onCollideEnd",{pair:L}),M.onCollideEndCallback&&M.onCollideEndCallback(L),A.onCollideEndCallback&&A.onCollideEndCallback(L)}),S.emit(h.COLLISION_END,P,M,A)})},setBounds:function(S,C,E,P,R,M,A,L,w){return S===void 0&&(S=0),C===void 0&&(C=0),E===void 0&&(E=this.scene.sys.scale.width),P===void 0&&(P=this.scene.sys.scale.height),R===void 0&&(R=64),M===void 0&&(M=!0),A===void 0&&(A=!0),L===void 0&&(L=!0),w===void 0&&(w=!0),this.updateWall(M,"left",S-R,C-R,R,P+R*2),this.updateWall(A,"right",S+E,C-R,R,P+R*2),this.updateWall(L,"top",S,C-R,E,R),this.updateWall(w,"bottom",S,C+P,E,R),this},updateWall:function(S,C,E,P,R,M){var A=this.walls[C];S?(A&&v.remove(this.localWorld,A),E+=R/2,P+=M/2,this.walls[C]=this.create(E,P,R,M,{isStatic:!0,friction:0,frictionStatic:0})):(A&&v.remove(this.localWorld,A),this.walls[C]=null)},createDebugGraphic:function(){var S=this.scene.sys.add.graphics({x:0,y:0});return S.setDepth(Number.MAX_VALUE),this.debugGraphic=S,this.drawDebug=!0,S},disableGravity:function(){return this.localWorld.gravity.x=0,this.localWorld.gravity.y=0,this.localWorld.gravity.scale=0,this},setGravity:function(S,C,E){return S===void 0&&(S=0),C===void 0&&(C=1),E===void 0&&(E=.001),this.localWorld.gravity.x=S,this.localWorld.gravity.y=C,this.localWorld.gravity.scale=E,this},create:function(S,C,E,P,R){var M=u.rectangle(S,C,E,P,R);return v.add(this.localWorld,M),M},add:function(S){return v.add(this.localWorld,S),this},remove:function(S,C){Array.isArray(S)||(S=[S]);for(var E=0;EMath.max(m._maxFrameDelta,E.maxFrameTime))&&(A=E.frameDelta||m._frameDeltaFallback),E.frameDeltaSmoothing){E.frameDeltaHistory.push(A),E.frameDeltaHistory=E.frameDeltaHistory.slice(-E.frameDeltaHistorySize);var L=E.frameDeltaHistory.slice(0).sort(),w=E.frameDeltaHistory.slice(L.length*m._smoothingLowerBound,L.length*m._smoothingUpperBound),N=m._mean(w);A=N||A}E.frameDeltaSnapping&&(A=1e3/Math.round(1e3/A)),E.frameDelta=A,E.timeLastTick=S,E.timeBuffer+=E.frameDelta,E.timeBuffer=r.clamp(E.timeBuffer,0,E.frameDelta+R*m._timeBufferMargin),E.lastUpdatesDeferred=0;for(var b=E.maxUpdates||Math.ceil(E.maxFrameTime/R),V=r.now();R>0&&E.timeBuffer>=R*m._timeBufferMargin;){e.update(C,R),E.timeBuffer-=R,M+=1;var Y=r.now()-P,G=r.now()-V,U=Y+m._elapsedNextEstimate*G/M;if(M>=b||U>E.maxFrameTime){E.lastUpdatesDeferred=Math.round(Math.max(0,E.timeBuffer/R-m._timeBufferMargin));break}}}},step:function(S){e.update(this.engine,S)},update60Hz:function(){return 1e3/60},update30Hz:function(){return 1e3/30},has:function(S){var C=S.hasOwnProperty("body")?S.body:S;return n.get(this.localWorld,C.id,C.type)!==null},getAllBodies:function(){return n.allBodies(this.localWorld)},getAllConstraints:function(){return n.allConstraints(this.localWorld)},getAllComposites:function(){return n.allComposites(this.localWorld)},postUpdate:function(){if(this.drawDebug){var S=this.debugConfig,C=this.engine,E=this.debugGraphic,P=n.allBodies(this.localWorld);this.debugGraphic.clear(),S.showBroadphase&&C.broadphase.controller&&this.renderGrid(C.broadphase,E,S.broadphaseColor,.5),S.showBounds&&this.renderBodyBounds(P,E,S.boundsColor,.5),(S.showBody||S.showStaticBody)&&this.renderBodies(P),S.showJoint&&this.renderJoints(),(S.showAxes||S.showAngleIndicator)&&this.renderBodyAxes(P,E,S.showAxes,S.angleColor,.5),S.showVelocity&&this.renderBodyVelocity(P,E,S.velocityColor,1,2),S.showSeparations&&this.renderSeparations(C.pairs.list,E,S.separationColor),S.showCollisions&&this.renderCollisions(C.pairs.list,E,S.collisionColor)}},renderGrid:function(S,C,E,P){C.lineStyle(1,E,P);for(var R=r.keys(S.buckets),M=0;M0){var b=N[0].vertex.x,V=N[0].vertex.y;R.contactCount===2&&(b=(N[0].vertex.x+N[1].vertex.x)/2,V=(N[0].vertex.y+N[1].vertex.y)/2),w.bodyB===w.supports[0].body||w.bodyA.isStatic?C.lineBetween(b-w.normal.x*8,V-w.normal.y*8,b,V):C.lineBetween(b+w.normal.x*8,V+w.normal.y*8,b,V)}}return this},renderBodyBounds:function(S,C,E,P){C.lineStyle(1,E,P);for(var R=0;R1?1:0;w1?1:0;N1?1:0;N1&&this.renderConvexHull(B,C,G,K)}}},renderBody:function(S,C,E,P,R,M,A,L){P===void 0&&(P=null),R===void 0&&(R=null),M===void 0&&(M=1),A===void 0&&(A=null),L===void 0&&(L=null);for(var w=this.debugConfig,N=w.sensorFillColor,b=w.sensorLineColor,V=S.parts,Y=V.length,G=Y>1?1:0;G1){var A=S.vertices;C.lineStyle(P,E),C.beginPath(),C.moveTo(A[0].x,A[0].y);for(var L=1;L0&&(C.fillStyle(A),C.fillCircle(V.x,V.y,L),C.fillCircle(Y.x,Y.y,L)),this},resetCollisionIDs:function(){return p._nextCollidingGroupId=1,p._nextNonCollidingGroupId=-1,p._nextCategory=1,this},shutdown:function(){f.off(this.engine),this.removeAllListeners(),v.clear(this.localWorld,!1),e.clear(this.engine),this.drawDebug&&this.debugGraphic.destroy()},destroy:function(){this.shutdown()}});c.exports=x},70410:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={setBounce:function(t){return this.body.restitution=t,this}};c.exports=y},66968:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={setCollisionCategory:function(t){return this.body.collisionFilter.category=t,this},setCollisionGroup:function(t){return this.body.collisionFilter.group=t,this},setCollidesWith:function(t){var u=0;if(!Array.isArray(t))u=t;else for(var p=0;p{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(22562),p={applyForce:function(a){return this._tempVec2.set(this.body.position.x,this.body.position.y),u.applyForce(this.body,this._tempVec2,a),this},applyForceFrom:function(a,r){return u.applyForce(this.body,a,r),this},thrust:function(a){var r=this.body.angle;return this._tempVec2.set(a*Math.cos(r),a*Math.sin(r)),u.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this},thrustLeft:function(a){var r=this.body.angle-Math.PI/2;return this._tempVec2.set(a*Math.cos(r),a*Math.sin(r)),u.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this},thrustRight:function(a){var r=this.body.angle+Math.PI/2;return this._tempVec2.set(a*Math.cos(r),a*Math.sin(r)),u.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this},thrustBack:function(a){var r=this.body.angle-Math.PI;return this._tempVec2.set(a*Math.cos(r),a*Math.sin(r)),u.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this}};c.exports=p},5436:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={setFriction:function(t,u,p){return this.body.friction=t,u!==void 0&&(this.body.frictionAir=u),p!==void 0&&(this.body.frictionStatic=p),this},setFrictionAir:function(t){return this.body.frictionAir=t,this},setFrictionStatic:function(t){return this.body.frictionStatic=t,this}};c.exports=y},39858:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={setIgnoreGravity:function(t){return this.body.ignoreGravity=t,this}};c.exports=y},37302:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(22562),p=t(26099),a={setMass:function(r){return u.setMass(this.body,r),this},setDensity:function(r){return u.setDensity(this.body,r),this},centerOfMass:{get:function(){return new p(this.body.centerOfMass.x,this.body.centerOfMass.y)}}};c.exports=a},39132:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={setSensor:function(t){return this.body.isSensor=t,this},isSensor:function(){return this.body.isSensor}};c.exports=y},57772:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(66280),p=t(22562),a=t(43855),r=t(95540),n=t(19496),e=t(85791),s=t(41598),h={setRectangle:function(i,o,l){return this.setBody({type:"rectangle",width:i,height:o},l)},setCircle:function(i,o){return this.setBody({type:"circle",radius:i},o)},setPolygon:function(i,o,l){return this.setBody({type:"polygon",sides:o,radius:i},l)},setTrapezoid:function(i,o,l,f){return this.setBody({type:"trapezoid",width:i,height:o,slope:l},f)},setExistingBody:function(i,o){o===void 0&&(o=!0),this.body&&this.world.remove(this.body,!0),this.body=i;for(var l=0;l{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(1121),p=t(53614),a=t(35810),r={setToSleep:function(){return p.set(this.body,!0),this},setAwake:function(){return p.set(this.body,!1),this},setSleepThreshold:function(n){return n===void 0&&(n=60),this.body.sleepThreshold=n,this},setSleepEvents:function(n,e){return this.setSleepStartEvent(n),this.setSleepEndEvent(e),this},setSleepStartEvent:function(n){if(n){var e=this.world;a.on(this.body,"sleepStart",function(s){e.emit(u.SLEEP_START,s,this)})}else a.off(this.body,"sleepStart");return this},setSleepEndEvent:function(n){if(n){var e=this.world;a.on(this.body,"sleepEnd",function(s){e.emit(u.SLEEP_END,s,this)})}else a.off(this.body,"sleepEnd");return this}};c.exports=r},90556:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(22562),p={setStatic:function(a){return u.setStatic(this.body,a),this},isStatic:function(){return this.body.isStatic}};c.exports=p},85436:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(22562),p=t(36383),a=t(86554),r=t(30954),n=4,e={x:{get:function(){return this.body.position.x},set:function(s){this._tempVec2.set(s,this.y),u.setPosition(this.body,this._tempVec2)}},y:{get:function(){return this.body.position.y},set:function(s){this._tempVec2.set(this.x,s),u.setPosition(this.body,this._tempVec2)}},scaleX:{get:function(){return this._scaleX},set:function(s){var h=1/this._scaleX,i=1/this._scaleY;this._scaleX=s,this._scaleX===0?this.renderFlags&=~n:this.renderFlags|=n,u.scale(this.body,h,i),u.scale(this.body,s,this._scaleY)}},scaleY:{get:function(){return this._scaleY},set:function(s){var h=1/this._scaleX,i=1/this._scaleY;this._scaleY=s,this._scaleY===0?this.renderFlags&=~n:this.renderFlags|=n,u.scale(this.body,h,i),u.scale(this.body,this._scaleX,s)}},angle:{get:function(){return r(this.body.angle*p.RAD_TO_DEG)},set:function(s){this.rotation=r(s)*p.DEG_TO_RAD}},rotation:{get:function(){return this.body.angle},set:function(s){this._rotation=a(s),u.setAngle(this.body,this._rotation)}},setPosition:function(s,h){return s===void 0&&(s=0),h===void 0&&(h=s),this._tempVec2.set(s,h),u.setPosition(this.body,this._tempVec2),this},setRotation:function(s){return s===void 0&&(s=0),this._rotation=a(s),u.setAngle(this.body,s),this},setFixedRotation:function(){return u.setInertia(this.body,1/0),this},setAngle:function(s){return s===void 0&&(s=0),this.angle=s,u.setAngle(this.body,this.rotation),this},setScale:function(s,h,i){s===void 0&&(s=1),h===void 0&&(h=s);var o=1/this._scaleX,l=1/this._scaleY;return this._scaleX=s,this._scaleY=h,u.scale(this.body,o,l,i),u.scale(this.body,s,h,i),this}};c.exports=e},42081:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(22562),p={setVelocityX:function(a){return this._tempVec2.set(a,this.body.velocity.y),u.setVelocity(this.body,this._tempVec2),this},setVelocityY:function(a){return this._tempVec2.set(this.body.velocity.x,a),u.setVelocity(this.body,this._tempVec2),this},setVelocity:function(a,r){return this._tempVec2.set(a,r),u.setVelocity(this.body,this._tempVec2),this},getVelocity:function(){return u.getVelocity(this.body)},setAngularVelocity:function(a){return u.setAngularVelocity(this.body,a),this},getAngularVelocity:function(){return u.getAngularVelocity(this.body)},setAngularSpeed:function(a){return u.setAngularSpeed(this.body,a),this},getAngularSpeed:function(){return u.getAngularSpeed(this.body)}};c.exports=p},31884:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={Bounce:t(70410),Collision:t(66968),Force:t(51607),Friction:t(5436),Gravity:t(39858),Mass:t(37302),Sensor:t(39132),SetBody:t(57772),Sleep:t(38083),Static:t(90556),Transform:t(85436),Velocity:t(42081)}},85608:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="afteradd"},1213:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="afterremove"},25968:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="afterupdate"},67205:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="beforeadd"},39438:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="beforeremove"},44823:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="beforeupdate"},92593:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="collisionactive"},60128:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="collisionend"},76861:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="collisionstart"},92362:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="dragend"},76408:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="drag"},93971:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="dragstart"},5656:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="pause"},47861:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="resume"},79099:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="sleepend"},35906:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="sleepstart"},1121:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={AFTER_ADD:t(85608),AFTER_REMOVE:t(1213),AFTER_UPDATE:t(25968),BEFORE_ADD:t(67205),BEFORE_REMOVE:t(39438),BEFORE_UPDATE:t(44823),COLLISION_ACTIVE:t(92593),COLLISION_END:t(60128),COLLISION_START:t(76861),DRAG_END:t(92362),DRAG:t(76408),DRAG_START:t(93971),PAUSE:t(5656),RESUME:t(47861),SLEEP_END:t(79099),SLEEP_START:t(35906)}},3875:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={BodyBounds:t(68174),Components:t(31884),Events:t(1121),Factory:t(28137),MatterGameObject:t(75803),Image:t(23181),Matter:t(19933),MatterPhysics:t(42045),PolyDecomp:t(55973),Sprite:t(34803),TileBody:t(73834),PhysicsEditorParser:t(19496),PhysicsJSONParser:t(85791),PointerConstraint:t(98713),World:t(68243)}},22562:(c,y,t)=>{var u={};c.exports=u;var p=t(41598),a=t(31725),r=t(53614),n=t(53402),e=t(15647),s=t(66615);(function(){u._timeCorrection=!0,u._inertiaScale=4,u._nextCollidingGroupId=1,u._nextNonCollidingGroupId=-1,u._nextCategory=1,u._baseDelta=16.666666666666668,u.create=function(i){var o={id:n.nextId(),type:"body",label:"Body",parts:[],plugin:{},attractors:i.attractors||[],wrapBounds:null,angle:0,vertices:null,position:{x:0,y:0},force:{x:0,y:0},torque:0,positionImpulse:{x:0,y:0},constraintImpulse:{x:0,y:0,angle:0},totalContacts:0,speed:0,angularSpeed:0,velocity:{x:0,y:0},angularVelocity:0,isSensor:!1,isStatic:!1,isSleeping:!1,motion:0,sleepThreshold:60,density:.001,restitution:0,friction:.1,frictionStatic:.5,frictionAir:.01,collisionFilter:{category:1,mask:4294967295,group:0},slop:.05,timeScale:1,events:null,bounds:null,chamfer:null,circleRadius:0,positionPrev:null,anglePrev:0,parent:null,axes:null,area:0,mass:0,inverseMass:0,inertia:0,deltaTime:16.666666666666668,inverseInertia:0,_original:null,render:{visible:!0,opacity:1,sprite:{xOffset:0,yOffset:0},fillColor:null,fillOpacity:null,lineColor:null,lineOpacity:null,lineThickness:null},gameObject:null,scale:{x:1,y:1},centerOfMass:{x:0,y:0},centerOffset:{x:0,y:0},gravityScale:{x:1,y:1},ignoreGravity:!1,ignorePointer:!1,onCollideCallback:null,onCollideEndCallback:null,onCollideActiveCallback:null,onCollideWith:{}};!i.hasOwnProperty("position")&&i.hasOwnProperty("vertices")?i.position=p.centre(i.vertices):i.hasOwnProperty("vertices")||(o.vertices=p.fromPath("L 0 0 L 40 0 L 40 40 L 0 40"));var l=n.extend(o,i);return h(l,i),l.setOnCollideWith=function(f,d){return d?this.onCollideWith[f.id]=d:delete this.onCollideWith[f.id],this},l},u.nextGroup=function(i){return i?u._nextNonCollidingGroupId--:u._nextCollidingGroupId++},u.nextCategory=function(){return u._nextCategory=u._nextCategory<<1,u._nextCategory};var h=function(i,o){if(o=o||{},u.set(i,{bounds:i.bounds||e.create(i.vertices),positionPrev:i.positionPrev||a.clone(i.position),anglePrev:i.anglePrev||i.angle,vertices:i.vertices,parts:i.parts||[i],isStatic:i.isStatic,isSleeping:i.isSleeping,parent:i.parent||i}),p.rotate(i.vertices,i.angle,i.position),s.rotate(i.axes,i.angle),e.update(i.bounds,i.vertices,i.velocity),u.set(i,{axes:o.axes||i.axes,area:o.area||i.area,mass:o.mass||i.mass,inertia:o.inertia||i.inertia}),i.parts.length===1){var l=i.bounds,f=i.centerOfMass,d=i.centerOffset,v=l.max.x-l.min.x,m=l.max.y-l.min.y;f.x=-(l.min.x-i.position.x)/v,f.y=-(l.min.y-i.position.y)/m,d.x=v*f.x,d.y=m*f.y}};u.set=function(i,o,l){var f;typeof o=="string"&&(f=o,o={},o[f]=l);for(f in o)if(Object.prototype.hasOwnProperty.call(o,f))switch(l=o[f],f){case"isStatic":u.setStatic(i,l);break;case"isSleeping":r.set(i,l);break;case"mass":u.setMass(i,l);break;case"density":u.setDensity(i,l);break;case"inertia":u.setInertia(i,l);break;case"vertices":u.setVertices(i,l);break;case"position":u.setPosition(i,l);break;case"angle":u.setAngle(i,l);break;case"velocity":u.setVelocity(i,l);break;case"angularVelocity":u.setAngularVelocity(i,l);break;case"speed":u.setSpeed(i,l);break;case"angularSpeed":u.setAngularSpeed(i,l);break;case"parts":u.setParts(i,l);break;case"centre":u.setCentre(i,l);break;default:i[f]=l}},u.setStatic=function(i,o){for(var l=0;l0&&a.rotateAbout(v.position,f,i.position,v.position)}},u.setVelocity=function(i,o){var l=i.deltaTime/u._baseDelta;i.positionPrev.x=i.position.x-o.x*l,i.positionPrev.y=i.position.y-o.y*l,i.velocity.x=(i.position.x-i.positionPrev.x)/l,i.velocity.y=(i.position.y-i.positionPrev.y)/l,i.speed=a.magnitude(i.velocity)},u.getVelocity=function(i){var o=u._baseDelta/i.deltaTime;return{x:(i.position.x-i.positionPrev.x)*o,y:(i.position.y-i.positionPrev.y)*o}},u.getSpeed=function(i){return a.magnitude(u.getVelocity(i))},u.setSpeed=function(i,o){u.setVelocity(i,a.mult(a.normalise(u.getVelocity(i)),o))},u.setAngularVelocity=function(i,o){var l=i.deltaTime/u._baseDelta;i.anglePrev=i.angle-o*l,i.angularVelocity=(i.angle-i.anglePrev)/l,i.angularSpeed=Math.abs(i.angularVelocity)},u.getAngularVelocity=function(i){return(i.angle-i.anglePrev)*u._baseDelta/i.deltaTime},u.getAngularSpeed=function(i){return Math.abs(u.getAngularVelocity(i))},u.setAngularSpeed=function(i,o){u.setAngularVelocity(i,n.sign(u.getAngularVelocity(i))*o)},u.translate=function(i,o,l){u.setPosition(i,a.add(i.position,o),l)},u.rotate=function(i,o,l,f){if(!l)u.setAngle(i,i.angle+o,f);else{var d=Math.cos(o),v=Math.sin(o),m=i.position.x-l.x,g=i.position.y-l.y;u.setPosition(i,{x:l.x+(m*d-g*v),y:l.y+(m*v+g*d)},f),u.setAngle(i,i.angle+o,f)}},u.scale=function(i,o,l,f){var d=0,v=0;f=f||i.position;for(var m=i.inertia===1/0,g=0;g0&&(d+=x.area,v+=x.inertia),x.position.x=f.x+(x.position.x-f.x)*o,x.position.y=f.y+(x.position.y-f.y)*l,e.update(x.bounds,x.vertices,i.velocity)}i.parts.length>1&&(i.area=d,i.isStatic||(u.setMass(i,i.density*d),u.setInertia(i,v))),i.circleRadius&&(o===l?i.circleRadius*=o:i.circleRadius=null),m&&u.setInertia(i,1/0)},u.update=function(i,o){o=(typeof o<"u"?o:16.666666666666668)*i.timeScale;var l=o*o,f=u._timeCorrection?o/(i.deltaTime||o):1,d=1-i.frictionAir*(o/n._baseDelta),v=(i.position.x-i.positionPrev.x)*f,m=(i.position.y-i.positionPrev.y)*f;i.velocity.x=v*d+i.force.x/i.mass*l,i.velocity.y=m*d+i.force.y/i.mass*l,i.positionPrev.x=i.position.x,i.positionPrev.y=i.position.y,i.position.x+=i.velocity.x,i.position.y+=i.velocity.y,i.deltaTime=o,i.angularVelocity=(i.angle-i.anglePrev)*d*f+i.torque/i.inertia*l,i.anglePrev=i.angle,i.angle+=i.angularVelocity,i.speed=a.magnitude(i.velocity),i.angularSpeed=Math.abs(i.angularVelocity);for(var g=0;g0&&(x.position.x+=i.velocity.x,x.position.y+=i.velocity.y),i.angularVelocity!==0&&(p.rotate(x.vertices,i.angularVelocity,i.position),s.rotate(x.axes,i.angularVelocity),g>0&&a.rotateAbout(x.position,i.angularVelocity,i.position,x.position)),e.update(x.bounds,x.vertices,i.velocity)}},u.updateVelocities=function(i){var o=u._baseDelta/i.deltaTime,l=i.velocity;l.x=(i.position.x-i.positionPrev.x)*o,l.y=(i.position.y-i.positionPrev.y)*o,i.speed=Math.sqrt(l.x*l.x+l.y*l.y),i.angularVelocity=(i.angle-i.anglePrev)*o,i.angularSpeed=Math.abs(i.angularVelocity)},u.applyForce=function(i,o,l){var f={x:o.x-i.position.x,y:o.y-i.position.y};i.force.x+=l.x,i.force.y+=l.y,i.torque+=f.x*l.y-f.y*l.x},u._totalProperties=function(i){for(var o={mass:0,area:0,inertia:0,centre:{x:0,y:0}},l=i.parts.length===1?0:1;l{var u={};c.exports=u;var p=t(35810),a=t(53402),r=t(15647),n=t(22562);(function(){u.create=function(e){return a.extend({id:a.nextId(),type:"composite",parent:null,isModified:!1,bodies:[],constraints:[],composites:[],label:"Composite",plugin:{},wrapBounds:null,cache:{allBodies:null,allConstraints:null,allComposites:null}},e)},u.setModified=function(e,s,h,i){if(p.trigger(e,"compositeModified",e),e.isModified=s,s&&e.cache&&(e.cache.allBodies=null,e.cache.allConstraints=null,e.cache.allComposites=null),h&&e.parent&&u.setModified(e.parent,s,h,i),i)for(var o=0;o{var u={};c.exports=u;var p=t(69351);(function(){u.create=p.create,u.add=p.add,u.remove=p.remove,u.clear=p.clear,u.addComposite=p.addComposite,u.addBody=p.addBody,u.addConstraint=p.addConstraint})()},52284:(c,y,t)=>{var u={};c.exports=u;var p=t(41598),a=t(4506);(function(){var r=[],n={overlap:0,axis:null},e={overlap:0,axis:null};u.create=function(s,h){return{pair:null,collided:!1,bodyA:s,bodyB:h,parentA:s.parent,parentB:h.parent,depth:0,normal:{x:0,y:0},tangent:{x:0,y:0},penetration:{x:0,y:0},supports:[null,null],supportCount:0}},u.collides=function(s,h,i){if(u._overlapAxes(n,s.vertices,h.vertices,s.axes),n.overlap<=0||(u._overlapAxes(e,h.vertices,s.vertices,h.axes),e.overlap<=0))return null;var o=i&&i.table[a.id(s,h)],l;o?l=o.collision:(l=u.create(s,h),l.collided=!0,l.bodyA=s.id=0&&(C=-C,E=-E),d.x=C,d.y=E,v.x=-E,v.y=C,m.x=C*x,m.y=E*x,l.depth=x;var M=u._findSupports(s,h,d,1),A=0;if(p.contains(s.vertices,M[0])&&(g[A++]=M[0]),p.contains(s.vertices,M[1])&&(g[A++]=M[1]),A<2){var L=u._findSupports(h,s,d,-1);p.contains(h.vertices,L[0])&&(g[A++]=L[0]),A<2&&p.contains(h.vertices,L[1])&&(g[A++]=L[1])}return A===0&&(g[A++]=M[0]),l.supportCount=A,l},u._overlapAxes=function(s,h,i,o){var l=h.length,f=i.length,d=h[0].x,v=h[0].y,m=i[0].x,g=i[0].y,x=o.length,S=Number.MAX_VALUE,C=0,E,P,R,M,A,L;for(A=0;AG?G=M:MU?U=M:M{var y={};c.exports=y,function(){y.create=function(t){return{vertex:t,normalImpulse:0,tangentImpulse:0}}}()},81388:(c,y,t)=>{var u={};c.exports=u;var p=t(53402),a=t(52284);(function(){u.create=function(r){var n={bodies:[],collisions:[],pairs:null};return p.extend(n,r)},u.setBodies=function(r,n){r.bodies=n.slice(0)},u.clear=function(r){r.bodies=[],r.collisions=[]},u.collisions=function(r){var n=r.pairs,e=r.bodies,s=e.length,h=u.canCollide,i=a.collides,o=r.collisions,l=0,f,d;for(e.sort(u._compareBoundsX),f=0;fg)break;if(!(xM.max.y)&&!(C&&(R.isStatic||R.isSleeping))&&h(v.collisionFilter,R.collisionFilter)){var A=R.parts.length;if(P&&A===1){var L=i(v,R,n);L&&(o[l++]=L)}else for(var w=E>1?1:0,N=A>1?1:0,b=w;bM.max.x||m.max.xM.max.y)){var L=i(V,G,n);L&&(o[l++]=L)}}}}}return o.length!==l&&(o.length=l),o},u.canCollide=function(r,n){return r.group===n.group&&r.group!==0?r.group>0:(r.mask&n.category)!==0&&(n.mask&r.category)!==0},u._compareBoundsX=function(r,n){return r.bounds.min.x-n.bounds.min.x}})()},4506:(c,y,t)=>{var u={};c.exports=u;var p=t(43424);(function(){u.create=function(a,r){var n=a.bodyA,e=a.bodyB,s={id:u.id(n,e),bodyA:n,bodyB:e,collision:a,contacts:[p.create(),p.create()],contactCount:0,separation:0,isActive:!0,isSensor:n.isSensor||e.isSensor,timeCreated:r,timeUpdated:r,inverseMass:0,friction:0,frictionStatic:0,restitution:0,slop:0};return u.update(s,a,r),s},u.update=function(a,r,n){var e=r.supports,s=r.supportCount,h=a.contacts,i=r.parentA,o=r.parentB;a.isActive=!0,a.timeUpdated=n,a.collision=r,a.separation=r.depth,a.inverseMass=i.inverseMass+o.inverseMass,a.friction=i.frictiono.frictionStatic?i.frictionStatic:o.frictionStatic,a.restitution=i.restitution>o.restitution?i.restitution:o.restitution,a.slop=i.slop>o.slop?i.slop:o.slop,a.contactCount=s,r.pair=a;var l=e[0],f=h[0],d=e[1],v=h[1];(v.vertex===l||f.vertex===d)&&(h[1]=f,h[0]=f=v,v=h[1]),f.vertex=l,v.vertex=d},u.setActive=function(a,r,n){r?(a.isActive=!0,a.timeUpdated=n):(a.isActive=!1,a.contactCount=0)},u.id=function(a,r){return a.id{var u={};c.exports=u;var p=t(4506),a=t(53402);(function(){u.create=function(r){return a.extend({table:{},list:[],collisionStart:[],collisionActive:[],collisionEnd:[]},r)},u.update=function(r,n,e){var s=p.update,h=p.create,i=p.setActive,o=r.table,l=r.list,f=l.length,d=f,v=r.collisionStart,m=r.collisionEnd,g=r.collisionActive,x=n.length,S=0,C=0,E=0,P,R,M;for(M=0;M=e?l[d++]=R:(i(R,!1,e),R.collision.bodyA.sleepCounter>0&&R.collision.bodyB.sleepCounter>0?l[d++]=R:(m[C++]=R,delete o[R.id]));l.length!==d&&(l.length=d),v.length!==S&&(v.length=S),m.length!==C&&(m.length=C),g.length!==E&&(g.length=E)},u.clear=function(r){return r.table={},r.list.length=0,r.collisionStart.length=0,r.collisionActive.length=0,r.collisionEnd.length=0,r}})()},73296:(c,y,t)=>{var u={};c.exports=u;var p=t(31725),a=t(52284),r=t(15647),n=t(66280),e=t(41598);(function(){u.collides=function(s,h){for(var i=[],o=h.length,l=s.bounds,f=a.collides,d=r.overlaps,v=0;v{var u={};c.exports=u;var p=t(41598),a=t(53402),r=t(15647);(function(){u._restingThresh=2,u._restingThreshTangent=Math.sqrt(6),u._positionDampen=.9,u._positionWarming=.8,u._frictionNormalMultiplier=5,u._frictionMaxStatic=Number.MAX_VALUE,u.preSolvePosition=function(n){var e,s,h,i=n.length;for(e=0;eyt?(g=rt>0?rt:-rt,m=C.friction*(rt>0?1:-1)*i,m<-g?m=-g:m>g&&(m=g)):(m=rt,g=d);var Mt=$*A-j*M,gt=k*A-q*M,xt=G/(N+P.inverseInertia*Mt*Mt+R.inverseInertia*gt*gt),At=(1+C.restitution)*et*xt;if(m*=xt,et0&&(J.normalImpulse=0),At=J.normalImpulse-Gt}if(rt<-l||rt>l)J.tangentImpulse=0;else{var Ct=J.tangentImpulse;J.tangentImpulse+=m,J.tangentImpulse<-g&&(J.tangentImpulse=-g),J.tangentImpulse>g&&(J.tangentImpulse=g),m=J.tangentImpulse-Ct}var Rt=M*At+L*m,Ft=A*At+w*m;P.isStatic||P.isSleeping||(P.positionPrev.x+=Rt*P.inverseMass,P.positionPrev.y+=Ft*P.inverseMass,P.anglePrev+=($*Ft-j*Rt)*P.inverseInertia),R.isStatic||R.isSleeping||(R.positionPrev.x-=Rt*R.inverseMass,R.positionPrev.y-=Ft*R.inverseMass,R.anglePrev-=(k*Ft-q*Rt)*R.inverseInertia)}}}}})()},48140:(c,y,t)=>{var u={};c.exports=u;var p=t(41598),a=t(31725),r=t(53614),n=t(15647),e=t(66615),s=t(53402);(function(){u._warming=.4,u._torqueDampen=1,u._minLength=1e-6,u.create=function(h){var i=h;i.bodyA&&!i.pointA&&(i.pointA={x:0,y:0}),i.bodyB&&!i.pointB&&(i.pointB={x:0,y:0});var o=i.bodyA?a.add(i.bodyA.position,i.pointA):i.pointA,l=i.bodyB?a.add(i.bodyB.position,i.pointB):i.pointB,f=a.magnitude(a.sub(o,l));i.length=typeof i.length<"u"?i.length:f,i.id=i.id||s.nextId(),i.label=i.label||"Constraint",i.type="constraint",i.stiffness=i.stiffness||(i.length>0?1:.7),i.damping=i.damping||0,i.angularStiffness=i.angularStiffness||0,i.angleA=i.bodyA?i.bodyA.angle:i.angleA,i.angleB=i.bodyB?i.bodyB.angle:i.angleB,i.plugin={};var d={visible:!0,type:"line",anchors:!0,lineColor:null,lineOpacity:null,lineThickness:null,pinSize:null,anchorColor:null,anchorSize:null};return i.length===0&&i.stiffness>.1?(d.type="pin",d.anchors=!1):i.stiffness<.9&&(d.type="spring"),i.render=s.extend(d,i.render),i},u.preSolveAll=function(h){for(var i=0;i=1||h.length===0,E=C?h.stiffness*i:h.stiffness*i*i,P=h.damping*i,R=a.mult(g,S*E),M=(o?o.inverseMass:0)+(l?l.inverseMass:0),A=(o?o.inverseInertia:0)+(l?l.inverseInertia:0),L=M+A,w,N,b,V,Y;if(P>0){var G=a.create();b=a.div(g,x),Y=a.sub(l&&a.sub(l.position,l.positionPrev)||G,o&&a.sub(o.position,o.positionPrev)||G),V=a.dot(b,Y)}o&&!o.isStatic&&(N=o.inverseMass/M,o.constraintImpulse.x-=R.x*N,o.constraintImpulse.y-=R.y*N,o.position.x-=R.x*N,o.position.y-=R.y*N,P>0&&(o.positionPrev.x-=P*b.x*V*N,o.positionPrev.y-=P*b.y*V*N),w=a.cross(f,R)/L*u._torqueDampen*o.inverseInertia*(1-h.angularStiffness),o.constraintImpulse.angle-=w,o.angle-=w),l&&!l.isStatic&&(N=l.inverseMass/M,l.constraintImpulse.x+=R.x*N,l.constraintImpulse.y+=R.y*N,l.position.x+=R.x*N,l.position.y+=R.y*N,P>0&&(l.positionPrev.x+=P*b.x*V*N,l.positionPrev.y+=P*b.y*V*N),w=a.cross(d,R)/L*u._torqueDampen*l.inverseInertia*(1-h.angularStiffness),l.constraintImpulse.angle+=w,l.angle+=w)}}},u.postSolveAll=function(h){for(var i=0;i0&&(d.position.x+=l.x,d.position.y+=l.y),l.angle!==0&&(p.rotate(d.vertices,l.angle,o.position),e.rotate(d.axes,l.angle),f>0&&a.rotateAbout(d.position,l.angle,o.position,d.position)),n.update(d.bounds,d.vertices,o.velocity)}l.angle*=u._warming,l.x*=u._warming,l.y*=u._warming}}},u.pointAWorld=function(h){return{x:(h.bodyA?h.bodyA.position.x:0)+(h.pointA?h.pointA.x:0),y:(h.bodyA?h.bodyA.position.y:0)+(h.pointA?h.pointA.y:0)}},u.pointBWorld=function(h){return{x:(h.bodyB?h.bodyB.position.x:0)+(h.pointB?h.pointB.x:0),y:(h.bodyB?h.bodyB.position.y:0)+(h.pointB?h.pointB.y:0)}},u.currentLength=function(h){var i=(h.bodyA?h.bodyA.position.x:0)+(h.pointA?h.pointA.x:0),o=(h.bodyA?h.bodyA.position.y:0)+(h.pointA?h.pointA.y:0),l=(h.bodyB?h.bodyB.position.x:0)+(h.pointB?h.pointB.x:0),f=(h.bodyB?h.bodyB.position.y:0)+(h.pointB?h.pointB.y:0),d=i-l,v=o-f;return Math.sqrt(d*d+v*v)}})()},53402:(c,y,t)=>{var u={};c.exports=u,function(){u._baseDelta=16.666666666666668,u._nextId=0,u._seed=0,u._nowStartTime=+new Date,u._warnedOnce={},u._decomp=null,u.extend=function(a,r){var n,e;typeof r=="boolean"?(n=2,e=r):(n=1,e=!0);for(var s=n;s0;r--){var n=Math.floor(u.random()*(r+1)),e=a[r];a[r]=a[n],a[n]=e}return a},u.choose=function(a){return a[Math.floor(u.random()*a.length)]},u.isElement=function(a){return typeof HTMLElement<"u"?a instanceof HTMLElement:!!(a&&a.nodeType&&a.nodeName)},u.isArray=function(a){return Object.prototype.toString.call(a)==="[object Array]"},u.isFunction=function(a){return typeof a=="function"},u.isPlainObject=function(a){return typeof a=="object"&&a.constructor===Object},u.isString=function(a){return toString.call(a)==="[object String]"},u.clamp=function(a,r,n){return an?n:a},u.sign=function(a){return a<0?-1:1},u.now=function(){if(typeof window<"u"&&window.performance){if(window.performance.now)return window.performance.now();if(window.performance.webkitNow)return window.performance.webkitNow()}return Date.now?Date.now():new Date-u._nowStartTime},u.random=function(a,r){return a=typeof a<"u"?a:0,r=typeof r<"u"?r:1,a+p()*(r-a)};var p=function(){return u._seed=(u._seed*9301+49297)%233280,u._seed/233280};u.colorToNumber=function(a){return a=a.replace("#",""),a.length==3&&(a=a.charAt(0)+a.charAt(0)+a.charAt(1)+a.charAt(1)+a.charAt(2)+a.charAt(2)),parseInt(a,16)},u.logLevel=1,u.log=function(){console&&u.logLevel>0&&u.logLevel<=3&&console.log.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},u.info=function(){console&&u.logLevel>0&&u.logLevel<=2&&console.info.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},u.warn=function(){console&&u.logLevel>0&&u.logLevel<=3&&console.warn.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},u.warnOnce=function(){var a=Array.prototype.slice.call(arguments).join(" ");u._warnedOnce[a]||(u.warn(a),u._warnedOnce[a]=!0)},u.deprecated=function(a,r,n){a[r]=u.chain(function(){u.warnOnce("🔅 deprecated 🔅",n)},a[r])},u.nextId=function(){return u._nextId++},u.indexOf=function(a,r){if(a.indexOf)return a.indexOf(r);for(var n=0;n{var u={};c.exports=u;var p=t(53614),a=t(66272),r=t(81388),n=t(99561),e=t(35810),s=t(69351),h=t(48140),i=t(53402),o=t(22562);(function(){u._deltaMax=16.666666666666668,u.create=function(l){l=l||{};var f={positionIterations:6,velocityIterations:4,constraintIterations:2,enableSleeping:!1,events:[],plugin:{},gravity:{x:0,y:1,scale:.001},timing:{timestamp:0,timeScale:1,lastDelta:0,lastElapsed:0,lastUpdatesPerFrame:0}},d=i.extend(f,l);return d.world=l.world||s.create({label:"World"}),d.pairs=l.pairs||n.create(),d.detector=l.detector||r.create(),d.detector.pairs=d.pairs,d.grid={buckets:[]},d.world.gravity=d.gravity,d.broadphase=d.grid,d.metrics={},d},u.update=function(l,f){var d=i.now(),v=l.world,m=l.detector,g=l.pairs,x=l.timing,S=x.timestamp,C;f>u._deltaMax&&i.warnOnce("Matter.Engine.update: delta argument is recommended to be less than or equal to",u._deltaMax.toFixed(3),"ms."),f=typeof f<"u"?f:i._baseDelta,f*=x.timeScale,x.timestamp+=f,x.lastDelta=f;var E={timestamp:x.timestamp,delta:f};e.trigger(l,"beforeUpdate",E);var P=s.allBodies(v),R=s.allConstraints(v),M=s.allComposites(v);for(v.isModified&&(r.setBodies(m,P),s.setModified(v,!1,!1,!0)),l.enableSleeping&&p.update(P,f),u._bodiesApplyGravity(P,l.gravity),u.wrap(P,M),u.attractors(P),f>0&&u._bodiesUpdate(P,f),e.trigger(l,"beforeSolve",E),h.preSolveAll(P),C=0;C0&&e.trigger(l,"collisionStart",{pairs:g.collisionStart,timestamp:x.timestamp,delta:f});var L=i.clamp(20/l.positionIterations,0,1);for(a.preSolvePosition(g.list),C=0;C0&&e.trigger(l,"collisionActive",{pairs:g.collisionActive,timestamp:x.timestamp,delta:f}),g.collisionEnd.length>0&&e.trigger(l,"collisionEnd",{pairs:g.collisionEnd,timestamp:x.timestamp,delta:f}),u._bodiesClearForces(P),e.trigger(l,"afterUpdate",E),l.timing.lastElapsed=i.now()-d,l},u.merge=function(l,f){if(i.extend(l,f),f.world){l.world=f.world,u.clear(l);for(var d=s.allBodies(l.world),v=0;v0)for(var m=0;m{var u={};c.exports=u;var p=t(53402);(function(){u.on=function(a,r,n){for(var e=r.split(" "),s,h=0;h0){n||(n={}),e=r.split(" ");for(var l=0;l{var u={};c.exports=u;var p=t(73832),a=t(53402);(function(){u.name="matter-js",u.version="0.20.0",u.uses=[],u.used=[],u.use=function(){p.use(u,Array.prototype.slice.call(arguments))},u.before=function(r,n){return r=r.replace(/^Matter./,""),a.chainPathBefore(u,r,n)},u.after=function(r,n){return r=r.replace(/^Matter./,""),a.chainPathAfter(u,r,n)}})()},73832:(c,y,t)=>{var u={};c.exports=u;var p=t(53402);(function(){u._registry={},u.register=function(a){if(u.isPlugin(a)||p.warn("Plugin.register:",u.toString(a),"does not implement all required fields."),a.name in u._registry){var r=u._registry[a.name],n=u.versionParse(a.version).number,e=u.versionParse(r.version).number;n>e?(p.warn("Plugin.register:",u.toString(r),"was upgraded to",u.toString(a)),u._registry[a.name]=a):n-1},u.isFor=function(a,r){var n=a.for&&u.dependencyParse(a.for);return!a.for||r.name===n.name&&u.versionSatisfies(r.version,n.range)},u.use=function(a,r){if(a.uses=(a.uses||[]).concat(r||[]),a.uses.length===0){p.warn("Plugin.use:",u.toString(a),"does not specify any dependencies to install.");return}for(var n=u.dependencies(a),e=p.topologicalSort(n),s=[],h=0;h0&&!i.silent&&p.info(s.join(" "))},u.dependencies=function(a,r){var n=u.dependencyParse(a),e=n.name;if(r=r||{},!(e in r)){a=u.resolve(a)||a,r[e]=p.map(a.uses||[],function(h){u.isPlugin(h)&&u.register(h);var i=u.dependencyParse(h),o=u.resolve(h);return o&&!u.versionSatisfies(o.version,i.range)?(p.warn("Plugin.dependencies:",u.toString(o),"does not satisfy",u.toString(i),"used by",u.toString(n)+"."),o._warned=!0,a._warned=!0):o||(p.warn("Plugin.dependencies:",u.toString(h),"used by",u.toString(n),"could not be resolved."),a._warned=!0),i.name});for(var s=0;s=|>)?\s*((\d+)\.(\d+)\.(\d+))(-[0-9A-Za-z-+]+)?$/;r.test(a)||p.warn("Plugin.versionParse:",a,"is not a valid version or range.");var n=r.exec(a),e=Number(n[4]),s=Number(n[5]),h=Number(n[6]);return{isRange:!!(n[1]||n[2]),version:n[3],range:a,operator:n[1]||n[2]||"",major:e,minor:s,patch:h,parts:[e,s,h],prerelease:n[7],number:e*1e8+s*1e4+h}},u.versionSatisfies=function(a,r){r=r||"*";var n=u.versionParse(r),e=u.versionParse(a);if(n.isRange){if(n.operator==="*"||a==="*")return!0;if(n.operator===">")return e.number>n.number;if(n.operator===">=")return e.number>=n.number;if(n.operator==="~")return e.major===n.major&&e.minor===n.minor&&e.patch>=n.patch;if(n.operator==="^")return n.major>0?e.major===n.major&&e.number>=n.number:n.minor>0?e.minor===n.minor&&e.patch>=n.patch:e.patch===n.patch}return a===r||a==="*"}})()},13037:(c,y,t)=>{var u={};c.exports=u;var p=t(35810),a=t(48413),r=t(53402);(function(){u._maxFrameDelta=66.66666666666667,u._frameDeltaFallback=16.666666666666668,u._timeBufferMargin=1.5,u._elapsedNextEstimate=1,u._smoothingLowerBound=.1,u._smoothingUpperBound=.9,u.create=function(e){var s={delta:16.666666666666668,frameDelta:null,frameDeltaSmoothing:!0,frameDeltaSnapping:!0,frameDeltaHistory:[],frameDeltaHistorySize:100,frameRequestId:null,timeBuffer:0,timeLastTick:null,maxUpdates:null,maxFrameTime:33.333333333333336,lastUpdatesDeferred:0,enabled:!0},h=r.extend(s,e);return h.fps=0,h},u.run=function(e,s){return e.timeBuffer=u._frameDeltaFallback,function h(i){e.frameRequestId=u._onNextFrame(e,h),i&&e.enabled&&u.tick(e,s,i)}(),e},u.tick=function(e,s,h){var i=r.now(),o=e.delta,l=0,f=h-e.timeLastTick;if((!f||!e.timeLastTick||f>Math.max(u._maxFrameDelta,e.maxFrameTime))&&(f=e.frameDelta||u._frameDeltaFallback),e.frameDeltaSmoothing){e.frameDeltaHistory.push(f),e.frameDeltaHistory=e.frameDeltaHistory.slice(-e.frameDeltaHistorySize);var d=e.frameDeltaHistory.slice(0).sort(),v=e.frameDeltaHistory.slice(d.length*u._smoothingLowerBound,d.length*u._smoothingUpperBound),m=n(v);f=m||f}e.frameDeltaSnapping&&(f=1e3/Math.round(1e3/f)),e.frameDelta=f,e.timeLastTick=h,e.timeBuffer+=e.frameDelta,e.timeBuffer=r.clamp(e.timeBuffer,0,e.frameDelta+o*u._timeBufferMargin),e.lastUpdatesDeferred=0;var g=e.maxUpdates||Math.ceil(e.maxFrameTime/o),x={timestamp:s.timing.timestamp};p.trigger(e,"beforeTick",x),p.trigger(e,"tick",x);for(var S=r.now();o>0&&e.timeBuffer>=o*u._timeBufferMargin;){p.trigger(e,"beforeUpdate",x),a.update(s,o),p.trigger(e,"afterUpdate",x),e.timeBuffer-=o,l+=1;var C=r.now()-i,E=r.now()-S,P=C+u._elapsedNextEstimate*E/l;if(l>=g||P>e.maxFrameTime){e.lastUpdatesDeferred=Math.round(Math.max(0,e.timeBuffer/o-u._timeBufferMargin));break}}s.timing.lastUpdatesPerFrame=l,p.trigger(e,"afterTick",x),e.frameDeltaHistory.length>=100&&(e.lastUpdatesDeferred&&Math.round(e.frameDelta/o)>g?r.warnOnce("Matter.Runner: runner reached runner.maxUpdates, see docs."):e.lastUpdatesDeferred&&r.warnOnce("Matter.Runner: runner reached runner.maxFrameTime, see docs."),typeof e.isFixed<"u"&&r.warnOnce("Matter.Runner: runner.isFixed is now redundant, see docs."),(e.deltaMin||e.deltaMax)&&r.warnOnce("Matter.Runner: runner.deltaMin and runner.deltaMax were removed, see docs."),e.fps!==0&&r.warnOnce("Matter.Runner: runner.fps was replaced by runner.delta, see docs."))},u.stop=function(e){u._cancelNextFrame(e)},u._onNextFrame=function(e,s){if(typeof window<"u"&&window.requestAnimationFrame)e.frameRequestId=window.requestAnimationFrame(s);else throw new Error("Matter.Runner: missing required global window.requestAnimationFrame.");return e.frameRequestId},u._cancelNextFrame=function(e){if(typeof window<"u"&&window.cancelAnimationFrame)window.cancelAnimationFrame(e.frameRequestId);else throw new Error("Matter.Runner: missing required global window.cancelAnimationFrame.")};var n=function(e){for(var s=0,h=e.length,i=0;i{var u={};c.exports=u;var p=t(22562),a=t(35810),r=t(53402);(function(){u._motionWakeThreshold=.18,u._motionSleepThreshold=.08,u._minBias=.9,u.update=function(n,e){for(var s=e/r._baseDelta,h=u._motionSleepThreshold,i=0;i0&&o.motion=o.sleepThreshold/s&&u.set(o,!0)):o.sleepCounter>0&&(o.sleepCounter-=1)}},u.afterCollisions=function(n){for(var e=u._motionSleepThreshold,s=0;se&&u.set(f,!1)}}}},u.set=function(n,e){var s=n.isSleeping;e?(n.isSleeping=!0,n.sleepCounter=n.sleepThreshold,n.positionImpulse.x=0,n.positionImpulse.y=0,n.positionPrev.x=n.position.x,n.positionPrev.y=n.position.y,n.anglePrev=n.angle,n.speed=0,n.angularSpeed=0,n.motion=0,s||a.trigger(n,"sleepStart")):(n.isSleeping=!1,n.sleepCounter=0,s&&a.trigger(n,"sleepEnd"))}})()},66280:(c,y,t)=>{var u={};c.exports=u;var p=t(41598),a=t(53402),r=t(22562),n=t(15647),e=t(31725);(function(){u.rectangle=function(s,h,i,o,l){l=l||{};var f={label:"Rectangle Body",position:{x:s,y:h},vertices:p.fromPath("L 0 0 L "+i+" 0 L "+i+" "+o+" L 0 "+o)};if(l.chamfer){var d=l.chamfer;f.vertices=p.chamfer(f.vertices,d.radius,d.quality,d.qualityMin,d.qualityMax),delete l.chamfer}return r.create(a.extend({},f,l))},u.trapezoid=function(s,h,i,o,l,f){f=f||{},l>=1&&a.warn("Bodies.trapezoid: slope parameter must be < 1."),l*=.5;var d=(1-l*2)*i,v=i*l,m=v+d,g=m+v,x;l<.5?x="L 0 0 L "+v+" "+-o+" L "+m+" "+-o+" L "+g+" 0":x="L 0 0 L "+m+" "+-o+" L "+g+" 0";var S={label:"Trapezoid Body",position:{x:s,y:h},vertices:p.fromPath(x)};if(f.chamfer){var C=f.chamfer;S.vertices=p.chamfer(S.vertices,C.radius,C.quality,C.qualityMin,C.qualityMax),delete f.chamfer}return r.create(a.extend({},S,f))},u.circle=function(s,h,i,o,l){o=o||{};var f={label:"Circle Body",circleRadius:i};l=l||25;var d=Math.ceil(Math.max(10,Math.min(l,i)));return d%2===1&&(d+=1),u.polygon(s,h,d,i,a.extend({},f,o))},u.polygon=function(s,h,i,o,l){if(l=l||{},i<3)return u.circle(s,h,o,l);for(var f=2*Math.PI/i,d="",v=f*.5,m=0;m0&&p.area(Y)1?(x=r.create(a.extend({parts:S.slice(0)},o)),r.setPosition(x,{x:s,y:h}),x):S[0]},u.flagCoincidentParts=function(s,h){h===void 0&&(h=5);for(var i=0;i{var u={};c.exports=u;var p=t(69351),a=t(48140),r=t(53402),n=t(22562),e=t(66280);(function(){u.stack=function(s,h,i,o,l,f,d){for(var v=p.create({label:"Stack"}),m=s,g=h,x,S=0,C=0;CE&&(E=M),n.translate(R,{x:A*.5,y:M*.5}),m=R.bounds.max.x+l,p.addBody(v,R),x=R,S+=1}else m+=l}g+=E+f,m=s}return v},u.chain=function(s,h,i,o,l,f){for(var d=s.bodies,v=1;v0)for(v=0;v0&&(x=f[v-1+(d-1)*h],p.addConstraint(s,a.create(r.extend({bodyA:x,bodyB:g},l)))),o&&vE)){x=E-x;var R=x,M=i-1-x;if(!(gM)){C===1&&n.translate(S,{x:(g+(i%2===1?1:-1))*P,y:0});var A=S?g*P:0;return d(s+A+g*l,m,g,x,S,C)}}})},u.newtonsCradle=function(s,h,i,o,l){for(var f=p.create({label:"Newtons Cradle"}),d=0;d{var u={};c.exports=u;var p=t(31725),a=t(53402);(function(){u.fromVertices=function(r){for(var n={},e=0;e{var y={};c.exports=y,function(){y.create=function(t){var u={min:{x:0,y:0},max:{x:0,y:0}};return t&&y.update(u,t),u},y.update=function(t,u,p){t.min.x=1/0,t.max.x=-1/0,t.min.y=1/0,t.max.y=-1/0;for(var a=0;at.max.x&&(t.max.x=r.x),r.xt.max.y&&(t.max.y=r.y),r.y0?t.max.x+=p.x:t.min.x+=p.x,p.y>0?t.max.y+=p.y:t.min.y+=p.y)},y.contains=function(t,u){return u.x>=t.min.x&&u.x<=t.max.x&&u.y>=t.min.y&&u.y<=t.max.y},y.overlaps=function(t,u){return t.min.x<=u.max.x&&t.max.x>=u.min.x&&t.max.y>=u.min.y&&t.min.y<=u.max.y},y.translate=function(t,u){t.min.x+=u.x,t.max.x+=u.x,t.min.y+=u.y,t.max.y+=u.y},y.shift=function(t,u){var p=t.max.x-t.min.x,a=t.max.y-t.min.y;t.min.x=u.x,t.max.x=u.x+p,t.min.y=u.y,t.max.y=u.y+a},y.wrap=function(t,u,p){var a=null,r=null;if(typeof u.min.x<"u"&&typeof u.max.x<"u"&&(t.min.x>u.max.x?a=u.min.x-t.max.x:t.max.xu.max.y?r=u.min.y-t.max.y:t.max.y{var u={};c.exports=u,t(15647);var p=t(53402);(function(){u.pathToVertices=function(a,r){typeof window<"u"&&!("SVGPathSeg"in window)&&p.warn("Svg.pathToVertices: SVGPathSeg not defined, a polyfill is required.");var n,e,s,h,i,o,l,f,d,v,m=[],g,x,S=0,C=0,E=0;r=r||15;var P=function(M,A,L){var w=L%2===1&&L>1;if(!d||M!=d.x||A!=d.y){d&&w?(g=d.x,x=d.y):(g=0,x=0);var N={x:g+M,y:x+A};(w||!d)&&(d=N),m.push(N),C=g+M,E=x+A}},R=function(M){var A=M.pathSegTypeAsLetter.toUpperCase();if(A!=="Z"){switch(A){case"M":case"L":case"T":case"C":case"S":case"Q":C=M.x,E=M.y;break;case"H":C=M.x;break;case"V":E=M.y;break}P(C,E,M.pathSegType)}};for(u._svgPathToAbsolute(a),s=a.getTotalLength(),o=[],n=0;n{var y={};c.exports=y,function(){y.create=function(t,u){return{x:t||0,y:u||0}},y.clone=function(t){return{x:t.x,y:t.y}},y.magnitude=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},y.magnitudeSquared=function(t){return t.x*t.x+t.y*t.y},y.rotate=function(t,u,p){var a=Math.cos(u),r=Math.sin(u);p||(p={});var n=t.x*a-t.y*r;return p.y=t.x*r+t.y*a,p.x=n,p},y.rotateAbout=function(t,u,p,a){var r=Math.cos(u),n=Math.sin(u);a||(a={});var e=p.x+((t.x-p.x)*r-(t.y-p.y)*n);return a.y=p.y+((t.x-p.x)*n+(t.y-p.y)*r),a.x=e,a},y.normalise=function(t){var u=y.magnitude(t);return u===0?{x:0,y:0}:{x:t.x/u,y:t.y/u}},y.dot=function(t,u){return t.x*u.x+t.y*u.y},y.cross=function(t,u){return t.x*u.y-t.y*u.x},y.cross3=function(t,u,p){return(u.x-t.x)*(p.y-t.y)-(u.y-t.y)*(p.x-t.x)},y.add=function(t,u,p){return p||(p={}),p.x=t.x+u.x,p.y=t.y+u.y,p},y.sub=function(t,u,p){return p||(p={}),p.x=t.x-u.x,p.y=t.y-u.y,p},y.mult=function(t,u){return{x:t.x*u,y:t.y*u}},y.div=function(t,u){return{x:t.x/u,y:t.y/u}},y.perp=function(t,u){return u=u===!0?-1:1,{x:u*-t.y,y:u*t.x}},y.neg=function(t){return{x:-t.x,y:-t.y}},y.angle=function(t,u){return Math.atan2(u.y-t.y,u.x-t.x)},y._temp=[y.create(),y.create(),y.create(),y.create(),y.create(),y.create()]}()},41598:(c,y,t)=>{var u={};c.exports=u;var p=t(31725),a=t(53402);(function(){u.create=function(r,n){for(var e=[],s=0;s0)return!1;i=o}return!0},u.scale=function(r,n,e,s){if(n===1&&e===1)return r;s=s||u.centre(r);for(var h,i,o=0;o=0?o-1:r.length-1],f=r[o],d=r[(o+1)%r.length],v=n[o0&&(n|=2),n===3)return!1;return n!==0?!0:null},u.hull=function(r){var n=[],e=[],s,h;for(r=r.slice(0),r.sort(function(i,o){var l=i.x-o.x;return l!==0?l:i.y-o.y}),h=0;h=2&&p.cross3(e[e.length-2],e[e.length-1],s)<=0;)e.pop();e.push(s)}for(h=r.length-1;h>=0;h-=1){for(s=r[h];n.length>=2&&p.cross3(n[n.length-2],n[n.length-1],s)<=0;)n.pop();n.push(s)}return n.pop(),e.pop(),n.concat(e)}})()},55973:c=>{/** + * @author Stefan Hedman (http://steffe.se) + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={decomp:R,quickDecomp:w,isSimple:A,removeCollinearPoints:N,removeDuplicatePoints:b,makeCCW:d};function y(G,U,B){B=B||0;var I=[0,0],X,K,Z,J,Q,$,j;return X=G[1][1]-G[0][1],K=G[0][0]-G[1][0],Z=X*G[0][0]+K*G[0][1],J=U[1][1]-U[0][1],Q=U[0][0]-U[1][0],$=J*U[0][0]+Q*U[0][1],j=X*Q-J*K,V(j,0,B)||(I[0]=(Q*Z-K*$)/j,I[1]=(X*$-J*Z)/j),I}function t(G,U,B,I){var X=U[0]-G[0],K=U[1]-G[1],Z=I[0]-B[0],J=I[1]-B[1];if(Z*K-J*X===0)return!1;var Q=(X*(B[1]-G[1])+K*(G[0]-B[0]))/(Z*K-J*X),$=(Z*(G[1]-B[1])+J*(B[0]-G[0]))/(J*X-Z*K);return Q>=0&&Q<=1&&$>=0&&$<=1}function u(G,U,B){return(U[0]-G[0])*(B[1]-G[1])-(B[0]-G[0])*(U[1]-G[1])}function p(G,U,B){return u(G,U,B)>0}function a(G,U,B){return u(G,U,B)>=0}function r(G,U,B){return u(G,U,B)<0}function n(G,U,B){return u(G,U,B)<=0}var e=[],s=[];function h(G,U,B,I){if(I){var X=e,K=s;X[0]=U[0]-G[0],X[1]=U[1]-G[1],K[0]=B[0]-U[0],K[1]=B[1]-U[1];var Z=X[0]*K[0]+X[1]*K[1],J=Math.sqrt(X[0]*X[0]+X[1]*X[1]),Q=Math.sqrt(K[0]*K[0]+K[1]*K[1]),$=Math.acos(Z/(J*Q));return $B[U][0])&&(U=I);return p(o(G,U-1),o(G,U),o(G,U+1))?!1:(v(G),!0)}function v(G){for(var U=[],B=G.length,I=0;I!==B;I++)U.push(G.pop());for(var I=0;I!==B;I++)G[I]=U[I]}function m(G,U){return r(o(G,U-1),o(G,U),o(G,U+1))}var g=[],x=[];function S(G,U,B){var I,X,K=g,Z=x;if(a(o(G,U+1),o(G,U),o(G,B))&&n(o(G,U-1),o(G,U),o(G,B)))return!1;X=i(o(G,U),o(G,B));for(var J=0;J!==G.length;++J)if(!((J+1)%G.length===U||J===U)&&a(o(G,U),o(G,B),o(G,J+1))&&n(o(G,U),o(G,B),o(G,J))&&(K[0]=o(G,U),K[1]=o(G,B),Z[0]=o(G,J),Z[1]=o(G,J+1),I=y(K,Z),i(o(G,U),I)0?M(G,U):[G]}function M(G,U){if(U.length===0)return[G];if(U instanceof Array&&U.length&&U[0]instanceof Array&&U[0].length===2&&U[0][0]instanceof Array){for(var B=[G],I=0;IK)return console.warn("quickDecomp: max level ("+K+") reached."),U;for(var at=0;at_&&(_+=G.length),tt=Number.MAX_VALUE,_3&&I>=0;--I)h(o(G,I-1),o(G,I),o(G,I+1),U)&&(G.splice(I%G.length,1),B++);return B}function b(G,U){for(var B=G.length-1;B>=1;--B)for(var I=G[B],X=B-1;X>=0;--X)if(Y(I,G[X],U)){G.splice(B,1);continue}}function V(G,U,B){return B=B||0,Math.abs(G-U)<=B}function Y(G,U,B){return V(G[0],U[0],B)&&V(G[1],U[1],B)}},52018:(c,y,t)=>{/** +* @author Richard Davey +* @copyright 2013-2024 Phaser Studio Inc. +* @license {@link https://github.com/photonstorm/phaser3-plugin-template/blob/master/LICENSE|MIT License} +*/var u=t(83419),p=new u({initialize:function(r){this.pluginManager=r,this.game=r.game},init:function(){},start:function(){},stop:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});c.exports=p},42363:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={Global:["game","anims","cache","plugins","registry","scale","sound","textures","renderer"],CoreScene:["EventEmitter","CameraManager","GameObjectCreator","GameObjectFactory","ScenePlugin","DisplayList","UpdateList"],DefaultScene:["Clock","DataManagerPlugin","InputPlugin","Loader","TweenManager","LightsPlugin"]};c.exports=y},37277:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={},t={},u={};u.register=function(p,a,r,n){n===void 0&&(n=!1),y[p]={plugin:a,mapping:r,custom:n}},u.registerCustom=function(p,a,r,n){t[p]={plugin:a,mapping:r,data:n}},u.hasCore=function(p){return y.hasOwnProperty(p)},u.hasCustom=function(p){return t.hasOwnProperty(p)},u.getCore=function(p){return y[p]},u.getCustom=function(p){return t[p]},u.getCustomClass=function(p){return t.hasOwnProperty(p)?t[p].plugin:null},u.remove=function(p){y.hasOwnProperty(p)&&delete y[p]},u.removeCustom=function(p){t.hasOwnProperty(p)&&delete t[p]},u.destroyCorePlugins=function(){for(var p in y)y.hasOwnProperty(p)&&delete y[p]},u.destroyCustomPlugins=function(){for(var p in t)t.hasOwnProperty(p)&&delete t[p]},c.exports=u},77332:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(8443),a=t(50792),r=t(74099),n=t(44603),e=t(39429),s=t(95540),h=t(37277),i=t(72905),o=new u({Extends:a,initialize:function(f){a.call(this),this.game=f,this.plugins=[],this.scenePlugins=[],this._pendingGlobal=[],this._pendingScene=[],f.isBooted?this.boot():f.events.once(p.BOOT,this.boot,this)},boot:function(){var l,f,d,v,m,g,x,S=this.game.config,C=S.installGlobalPlugins;for(C=C.concat(this._pendingGlobal),l=0;l{/** +* @author Richard Davey +* @copyright 2013-2024 Phaser Studio Inc. +* @license {@link https://github.com/photonstorm/phaser3-plugin-template/blob/master/LICENSE|MIT License} +*/var u=t(52018),p=t(83419),a=t(44594),r=new p({Extends:u,initialize:function(e,s,h){u.call(this,s),this.scene=e,this.systems=e.sys,this.pluginKey=h,e.sys.events.once(a.BOOT,this.boot,this)},boot:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});c.exports=r},18922:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={BasePlugin:t(52018),DefaultPlugins:t(42363),PluginCache:t(37277),PluginManager:t(77332),ScenePlugin:t(45145)}},63595:()=>{typeof HTMLVideoElement<"u"&&!("requestVideoFrameCallback"in HTMLVideoElement.prototype)&&"getVideoPlaybackQuality"in HTMLVideoElement.prototype&&(HTMLVideoElement.prototype._rvfcpolyfillmap={},HTMLVideoElement.prototype.requestVideoFrameCallback=function(c){const y=performance.now(),t=this.getVideoPlaybackQuality(),u=this.mozPresentedFrames||this.mozPaintedFrames||t.totalVideoFrames-t.droppedVideoFrames,p=(a,r)=>{const n=this.getVideoPlaybackQuality(),e=this.mozPresentedFrames||this.mozPaintedFrames||n.totalVideoFrames-n.droppedVideoFrames;if(e>u){const s=this.mozFrameDelay||n.totalFrameDelay-t.totalFrameDelay||0,h=r-a;c(r,{presentationTime:r+s*1e3,expectedDisplayTime:r+h,width:this.videoWidth,height:this.videoHeight,mediaTime:Math.max(0,this.currentTime||0)+h/1e3,presentedFrames:e,processingDuration:s}),delete this._rvfcpolyfillmap[y]}else this._rvfcpolyfillmap[y]=requestAnimationFrame(s=>p(r,s))};return this._rvfcpolyfillmap[y]=requestAnimationFrame(a=>p(y,a)),y},HTMLVideoElement.prototype.cancelVideoFrameCallback=function(c){cancelAnimationFrame(this._rvfcpolyfillmap[c]),delete this._rvfcpolyfillmap[c]})},10312:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={SKIP_CHECK:-1,NORMAL:0,ADD:1,MULTIPLY:2,SCREEN:3,OVERLAY:4,DARKEN:5,LIGHTEN:6,COLOR_DODGE:7,COLOR_BURN:8,HARD_LIGHT:9,SOFT_LIGHT:10,DIFFERENCE:11,EXCLUSION:12,HUE:13,SATURATION:14,COLOR:15,LUMINOSITY:16,ERASE:17,SOURCE_IN:18,SOURCE_OUT:19,SOURCE_ATOP:20,DESTINATION_OVER:21,DESTINATION_IN:22,DESTINATION_OUT:23,DESTINATION_ATOP:24,LIGHTER:25,COPY:26,XOR:27}},29795:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={DEFAULT:0,LINEAR:0,NEAREST:1};c.exports=y},68627:(c,y,t)=>{/** + * @author Richard Davey + * @author Felipe Alfonso <@bitnenfer> + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(19715),p=t(32880),a=t(83419),r=t(8054),n=t(50792),e=t(92503),s=t(56373),h=t(97480),i=t(69442),o=t(61340),l=new a({Extends:n,initialize:function(d){n.call(this);var v=d.config;this.config={clearBeforeRender:v.clearBeforeRender,backgroundColor:v.backgroundColor,antialias:v.antialias,roundPixels:v.roundPixels},this.game=d,this.type=r.CANVAS,this.drawCount=0,this.width=0,this.height=0,this.gameCanvas=d.canvas;var m={alpha:d.config.transparent,desynchronized:d.config.desynchronized,willReadFrequently:!1};this.gameContext=v.context?v.context:this.gameCanvas.getContext("2d",m),this.currentContext=this.gameContext,this.antialias=d.config.antialias,this.blendModes=s(),this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:"image/png",encoder:.92},this._tempMatrix1=new o,this._tempMatrix2=new o,this._tempMatrix3=new o,this.isBooted=!1,this.init()},init:function(){this.game.textures.once(i.READY,this.boot,this)},boot:function(){var f=this.game,d=f.scale.baseSize;this.width=d.width,this.height=d.height,this.isBooted=!0,f.scale.on(h.RESIZE,this.onResize,this),this.resize(d.width,d.height)},onResize:function(f,d){(d.width!==this.width||d.height!==this.height)&&this.resize(d.width,d.height)},resize:function(f,d){this.width=f,this.height=d,this.emit(e.RESIZE,f,d)},resetTransform:function(){this.currentContext.setTransform(1,0,0,1,0,0)},setBlendMode:function(f){return this.currentContext.globalCompositeOperation=f,this},setContext:function(f){return this.currentContext=f||this.gameContext,this},setAlpha:function(f){return this.currentContext.globalAlpha=f,this},preRender:function(){var f=this.gameContext,d=this.config,v=this.width,m=this.height;f.globalAlpha=1,f.globalCompositeOperation="source-over",f.setTransform(1,0,0,1,0,0),this.emit(e.PRE_RENDER_CLEAR),d.clearBeforeRender&&(f.clearRect(0,0,v,m),d.transparent||(f.fillStyle=d.backgroundColor.rgba,f.fillRect(0,0,v,m))),f.save(),this.drawCount=0,this.emit(e.PRE_RENDER)},render:function(f,d,v){var m=d.length;this.emit(e.RENDER,f,v);var g=v.x,x=v.y,S=v.width,C=v.height,E=v.renderToTexture?v.context:f.sys.context;E.save(),this.game.scene.customViewports&&(E.beginPath(),E.rect(g,x,S,C),E.clip()),v.emit(u.PRE_RENDER,v),this.currentContext=E;var P=v.mask;P&&P.preRenderCanvas(this,null,v._maskCamera),v.transparent||(E.fillStyle=v.backgroundColor.rgba,E.fillRect(g,x,S,C)),E.globalAlpha=v.alpha,E.globalCompositeOperation="source-over",this.drawCount+=m,v.renderToTexture&&v.emit(u.PRE_RENDER,v),v.matrix.copyToContext(E);for(var R=0;R=0?V=-(V+M):V<0&&(V=Math.abs(V)-M)),f.flipY&&(Y>=0?Y=-(Y+A):Y<0&&(Y=Math.abs(Y)-A))}var U=1,B=1;f.flipX&&(L||(V+=-d.realWidth+N*2),U=-1),f.flipY&&(L||(Y+=-d.realHeight+b*2),B=-1);var I=f.x,X=f.y;if(v.roundPixels&&(I=Math.floor(I),X=Math.floor(X)),C.applyITRS(I,X,f.rotation,f.scaleX*U,f.scaleY*B),S.copyFrom(v.matrix),m?(S.multiplyWithOffset(m,-v.scrollX*f.scrollFactorX,-v.scrollY*f.scrollFactorY),C.e=I,C.f=X):(C.e-=v.scrollX*f.scrollFactorX,C.f-=v.scrollY*f.scrollFactorY),S.multiply(C),v.renderRoundPixels&&(S.e=Math.floor(S.e+.5),S.f=Math.floor(S.f+.5)),x.save(),S.setToContext(x),x.globalCompositeOperation=this.blendModes[f.blendMode],x.globalAlpha=g,x.imageSmoothingEnabled=!d.source.scaleMode,f.mask&&f.mask.preRenderCanvas(this,f,v),M>0&&A>0){var K=M/w,Z=A/w;v.roundPixels&&(V=Math.floor(V+.5),Y=Math.floor(Y+.5),K+=.5,Z+=.5),x.drawImage(d.source.image,P,R,M,A,V,Y,K,Z)}f.mask&&f.mask.postRenderCanvas(this,f,v),x.restore()}},destroy:function(){this.removeAllListeners(),this.game=null,this.gameCanvas=null,this.gameContext=null}});c.exports=l},55830:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={CanvasRenderer:t(68627),GetBlendModes:t(56373),SetTransform:t(20926)}},56373:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(10312),p=t(89289),a=function(){var r=[],n=p.supportNewBlendModes,e="source-over";return r[u.NORMAL]=e,r[u.ADD]="lighter",r[u.MULTIPLY]=n?"multiply":e,r[u.SCREEN]=n?"screen":e,r[u.OVERLAY]=n?"overlay":e,r[u.DARKEN]=n?"darken":e,r[u.LIGHTEN]=n?"lighten":e,r[u.COLOR_DODGE]=n?"color-dodge":e,r[u.COLOR_BURN]=n?"color-burn":e,r[u.HARD_LIGHT]=n?"hard-light":e,r[u.SOFT_LIGHT]=n?"soft-light":e,r[u.DIFFERENCE]=n?"difference":e,r[u.EXCLUSION]=n?"exclusion":e,r[u.HUE]=n?"hue":e,r[u.SATURATION]=n?"saturation":e,r[u.COLOR]=n?"color":e,r[u.LUMINOSITY]=n?"luminosity":e,r[u.ERASE]="destination-out",r[u.SOURCE_IN]="source-in",r[u.SOURCE_OUT]="source-out",r[u.SOURCE_ATOP]="source-atop",r[u.DESTINATION_OVER]="destination-over",r[u.DESTINATION_IN]="destination-in",r[u.DESTINATION_OUT]="destination-out",r[u.DESTINATION_ATOP]="destination-atop",r[u.LIGHTER]="lighter",r[u.COPY]="copy",r[u.XOR]="xor",r};c.exports=a},20926:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(91296),p=function(a,r,n,e,s){var h=e.alpha*n.alpha;if(h<=0)return!1;var i=u(n,e,s).calc;return r.globalCompositeOperation=a.blendModes[n.blendMode],r.globalAlpha=h,r.save(),i.setToContext(r),r.imageSmoothingEnabled=n.frame?!n.frame.source.scaleMode:a.antialias,!0};c.exports=p},63899:c=>{/** + * @author Benjamin D. Richards + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="losewebgl"},6119:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="postrender"},48070:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="prerender"},15640:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="render"},8912:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="resize"},87124:c=>{/** + * @author Benjamin D. Richards + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="restorewebgl"},92503:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={LOSE_WEBGL:t(63899),POST_RENDER:t(6119),PRE_RENDER:t(48070),RENDER:t(15640),RESIZE:t(8912),RESTORE_WEBGL:t(87124)}},36909:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={Events:t(92503),Snapshot:t(89966)},c.exports.Canvas=t(55830),c.exports.WebGL=t(4159)},32880:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(27919),p=t(40987),a=t(95540),r=function(n,e){var s=a(e,"callback"),h=a(e,"type","image/png"),i=a(e,"encoder",.92),o=Math.abs(Math.round(a(e,"x",0))),l=Math.abs(Math.round(a(e,"y",0))),f=Math.floor(a(e,"width",n.width)),d=Math.floor(a(e,"height",n.height)),v=a(e,"getPixel",!1);if(v){var m=n.getContext("2d",{willReadFrequently:!1}),g=m.getImageData(o,l,1,1),x=g.data;s.call(null,new p(x[0],x[1],x[2],x[3]))}else if(o!==0||l!==0||f!==n.width||d!==n.height){var S=u.createWebGL(this,f,d),C=S.getContext("2d",{willReadFrequently:!0});f>0&&d>0&&C.drawImage(n,o,l,f,d,0,0,f,d);var E=new Image;E.onerror=function(){s.call(null),u.remove(S)},E.onload=function(){s.call(null,E),u.remove(S)},E.src=S.toDataURL(h,i)}else{var P=new Image;P.onerror=function(){s.call(null)},P.onload=function(){s.call(null,P)},P.src=n.toDataURL(h,i)}};c.exports=r},88815:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(27919),p=t(40987),a=t(95540),r=function(n,e){var s=n,h=a(e,"callback"),i=a(e,"type","image/png"),o=a(e,"encoder",.92),l=Math.abs(Math.round(a(e,"x",0))),f=Math.abs(Math.round(a(e,"y",0))),d=a(e,"getPixel",!1),v=a(e,"isFramebuffer",!1),m=v?a(e,"bufferWidth",1):s.drawingBufferWidth,g=v?a(e,"bufferHeight",1):s.drawingBufferHeight;if(d){var x=new Uint8Array(4),S=v?f:g-f;s.readPixels(l,S,1,1,s.RGBA,s.UNSIGNED_BYTE,x),h.call(null,new p(x[0],x[1],x[2],x[3]))}else{var C=Math.floor(a(e,"width",m)),E=Math.floor(a(e,"height",g)),P=C*E*4,R=new Uint8Array(P);s.readPixels(l,g-f-E,C,E,s.RGBA,s.UNSIGNED_BYTE,R);for(var M=u.createWebGL(this,C,E),A=M.getContext("2d",{willReadFrequently:!0}),L=A.getImageData(0,0,C,E),w=L.data,N=0;N{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={Canvas:t(32880),WebGL:t(88815)}},7530:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(36060),a=t(90330),r=t(82264),n=t(95540),e=t(32302),s=t(63448),h=t(31302),i=t(58918),o=t(14811),l=t(92651),f=t(96569),d=t(56527),v=t(57516),m=t(43439),g=t(81041),x=t(12385),S=t(7589),C=t(95428),E=t(72905),P=new u({initialize:function(M){this.game=M.game,this.renderer=M,this.classes=new a([[p.UTILITY_PIPELINE,S],[p.MULTI_PIPELINE,v],[p.BITMAPMASK_PIPELINE,h],[p.SINGLE_PIPELINE,x],[p.ROPE_PIPELINE,g],[p.LIGHT_PIPELINE,f],[p.POINTLIGHT_PIPELINE,m],[p.MOBILE_PIPELINE,d]]),this.postPipelineClasses=new a,this.pipelines=new a,this.postPipelineInstances=[],this.default=null,this.current=null,this.previous=null,this.MULTI_PIPELINE=null,this.BITMAPMASK_PIPELINE=null,this.UTILITY_PIPELINE=null,this.MOBILE_PIPELINE=null,this.FX_PIPELINE=null,this.fullFrame1,this.fullFrame2,this.halfFrame1,this.halfFrame2,this.renderTargets=[],this.maxDimension=0,this.frameInc=32,this.targetIndex=0},boot:function(R,M,A){var L=this.renderer,w=this.renderTargets;this.frameInc=Math.floor(n(R,"frameInc",32));var N=L.width,b=L.height,V=this.game.config.disablePreFX,Y=this.game.config.disablePostFX;if(Y||this.postPipelineClasses.setAll([[String(o.BARREL),i.Barrel],[String(o.BLOOM),i.Bloom],[String(o.BLUR),i.Blur],[String(o.BOKEH),i.Bokeh],[String(o.CIRCLE),i.Circle],[String(o.COLOR_MATRIX),i.ColorMatrix],[String(o.DISPLACEMENT),i.Displacement],[String(o.GLOW),i.Glow],[String(o.GRADIENT),i.Gradient],[String(o.PIXELATE),i.Pixelate],[String(o.SHADOW),i.Shadow],[String(o.SHINE),i.Shine],[String(o.VIGNETTE),i.Vignette],[String(o.WIPE),i.Wipe]]),!V){this.classes.set(p.FX_PIPELINE,l);for(var G=Math.min(N,b),U=Math.ceil(G/this.frameInc),B=1;B=0;A--){var L=M[A];L.active&&L.preBatch(R)}}},postBatch:function(R){if(R.hasPostPipeline){this.flush();for(var M=R.postPipelines,A=0;A=0;A--){var L=M[A];L.active&&L.preBatch(R)}}},postBatchCamera:function(R){if(R.hasPostPipeline){this.flush();for(var M=R.postPipelines,A=0;Athis.maxDimension)return this.targetIndex=M.length-A,M[this.targetIndex];var L=(s(R,this.frameInc,0,!0)-1)*A;return this.targetIndex=L,M[L]},getSwapRenderTarget:function(){return this.renderTargets[this.targetIndex+1]},getAltSwapRenderTarget:function(){return this.renderTargets[this.targetIndex+2]},destroy:function(){this.flush(),this.classes.clear(),this.postPipelineClasses.clear(),this.pipelines.clear(),this.renderer=null,this.game=null,this.classes=null,this.postPipelineClasses=null,this.pipelines=null,this.default=null,this.current=null,this.previous=null}});c.exports=P},32302:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(92503),a=new u({initialize:function(n,e,s,h,i,o,l,f,d){h===void 0&&(h=1),i===void 0&&(i=0),o===void 0&&(o=!0),l===void 0&&(l=!1),f===void 0&&(f=!0),d===void 0&&(d=!0),this.renderer=n,this.framebuffer=null,this.texture=null,this.width=0,this.height=0,this.scale=h,this.minFilter=i,this.autoClear=o,this.autoResize=!0,this.hasDepthBuffer=f,this.forceClamp=d,this.init(e,s),l?this.renderer.on(p.RESIZE,this.resize,this):this.autoResize=!1},init:function(r,n){var e=this.renderer;this.texture=e.createTextureFromSource(null,r,n,this.minFilter,this.forceClamp),this.framebuffer=e.createFramebuffer(r,n,this.texture,this.hasDepthBuffer),this.width=r,this.height=n},setAutoResize:function(r){return r&&!this.autoResize?(this.renderer.on(p.RESIZE,this.resize,this),this.autoResize=!0):!r&&this.autoResize&&(this.renderer.off(p.RESIZE,this.resize,this),this.autoResize=!1),this},resize:function(r,n){if(this.autoResize&&this.willResize(r,n)){var e=this.renderer;e.deleteFramebuffer(this.framebuffer),e.deleteTexture(this.texture),this.texture=e.createTextureFromSource(null,r,n,this.minFilter,this.forceClamp),this.framebuffer=e.createFramebuffer(r,n,this.texture,this.hasDepthBuffer),this.width=r,this.height=n}return this},willResize:function(r,n){return typeof r!="number"||typeof n!="number"?!1:(r=Math.round(r*this.scale),n=Math.round(n*this.scale),r=Math.max(r,1),n=Math.max(n,1),r!==this.width||n!==this.height)},bind:function(r,n,e){r===void 0&&(r=!1);var s=this.renderer;if(r&&s.flush(),n&&e&&this.resize(n,e),s.pushFramebuffer(this.framebuffer,!1,!1),r&&this.adjustViewport(),this.autoClear){var h=this.renderer.gl;h.clearColor(0,0,0,0),h.clear(h.COLOR_BUFFER_BIT)}s.clearStencilMask()},adjustViewport:function(){var r=this.renderer.gl;r.viewport(0,0,this.width,this.height),r.disable(r.SCISSOR_TEST)},clear:function(r,n,e,s){var h=this.renderer,i=h.gl;h.pushFramebuffer(this.framebuffer),r!==void 0&&n!==void 0&&e!==void 0&&s!==void 0?(i.enable(i.SCISSOR_TEST),i.scissor(r,n,e,s)):i.disable(i.SCISSOR_TEST),i.clearColor(0,0,0,0),i.clear(i.COLOR_BUFFER_BIT),h.popFramebuffer(),h.resetScissor()},unbind:function(r){r===void 0&&(r=!1);var n=this.renderer;return r&&n.flush(),n.popFramebuffer()},destroy:function(){var r=this.renderer;r.off(p.RESIZE,this.resize,this),r.deleteFramebuffer(this.framebuffer),r.deleteTexture(this.texture),this.renderer=null,this.framebuffer=null,this.texture=null}});c.exports=a},70554:c=>{/** + * @author Richard Davey + * @author Felipe Alfonso <@bitnenfer> + * @author Matthew Groves <@doormat> + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={getTintFromFloats:function(y,t,u,p){var a=(y*255|0)&255,r=(t*255|0)&255,n=(u*255|0)&255,e=(p*255|0)&255;return(e<<24|a<<16|r<<8|n)>>>0},getTintAppendFloatAlpha:function(y,t){var u=(t*255|0)&255;return(u<<24|y)>>>0},getTintAppendFloatAlphaAndSwap:function(y,t){var u=(y>>16|0)&255,p=(y>>8|0)&255,a=(y|0)&255,r=(t*255|0)&255;return(r<<24|a<<16|p<<8|u)>>>0},getFloatsFromUintRGB:function(y){var t=(y>>16|0)&255,u=(y>>8|0)&255,p=(y|0)&255;return[t/255,u/255,p/255]},checkShaderMax:function(y,t){var u=Math.min(16,y.getParameter(y.MAX_TEXTURE_IMAGE_UNITS));return!t||t===-1?u:Math.min(u,t)},parseFragmentShaderMaxTextures:function(y,t){if(!y)return"";for(var u="",p=0;p0&&(u+=` + else `),p{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(62644),a=t(50792),r=t(77085),n=t(95540),e=t(37867),s=t(92503),h=t(32302),i=t(70554),o=t(38683),l=new u({Extends:a,initialize:function(d){a.call(this);var v=d.game,m=v.renderer,g=m.gl;this.name=n(d,"name","WebGLPipeline"),this.game=v,this.renderer=m,this.manager,this.gl=g,this.view=v.canvas,this.width=0,this.height=0,this.vertexCount=0,this.vertexCapacity=0,this.vertexData,this.vertexBuffer,this.activeBuffer,this.topology=n(d,"topology",g.TRIANGLES),this.bytes,this.vertexViewF32,this.vertexViewU32,this.active=!0,this.forceZero=n(d,"forceZero",!1),this.hasBooted=!1,this.isPostFX=!1,this.isPreFX=!1,this.renderTargets=[],this.currentRenderTarget,this.shaders=[],this.currentShader,this.projectionMatrix,this.projectionWidth=0,this.projectionHeight=0,this.config=d,this.glReset=!1,this.batch=[],this.currentBatch=null,this.currentTexture=null,this.currentUnit=0,this.activeTextures=[],this.resizeUniform=n(d,"resizeUniform","")},boot:function(){var f,d=this.gl,v=this.config,m=this.renderer;this.isPostFX||(this.projectionMatrix=new e().identity());var g=this.renderTargets,x=n(v,"renderTarget",!1);typeof x=="boolean"&&x&&(x=1);var S=m.width,C=m.height;if(typeof x=="number")for(f=0;fN&&(N=w[f].vertexSize);var b=n(v,"batchSize",m.config.batchSize);this.vertexCapacity=b*6;var V=new ArrayBuffer(this.vertexCapacity*N);this.vertexData=V,this.bytes=new Uint8Array(V),this.vertexViewF32=new Float32Array(V),this.vertexViewU32=new Uint32Array(V);var Y=n(v,"vertices",null);for(Y?(this.vertexViewF32.set(Y),this.vertexBuffer=m.createVertexBuffer(V,d.STATIC_DRAW)):this.vertexBuffer=m.createVertexBuffer(V.byteLength,d.DYNAMIC_DRAW),this.setVertexBuffer(),f=w.length-1;f>=0;f--)w[f].rebind();this.hasBooted=!0,m.on(s.RESIZE,this.resize,this),m.on(s.PRE_RENDER,this.onPreRender,this),m.on(s.RENDER,this.onRender,this),m.on(s.POST_RENDER,this.onPostRender,this),this.emit(r.BOOT,this),this.onBoot()},onBoot:function(){},onResize:function(){},setShader:function(f,d,v){var m=this.renderer;if(f!==this.currentShader||m.currentProgram!==this.currentShader.program){this.flush();var g=this.setVertexBuffer(v);g&&!d&&(d=!0),f.bind(d,!1),this.currentShader=f}return this},getShaderByName:function(f){for(var d=this.shaders,v=0;v-1&&(w=G.substring(20))}N&&b&&A.push(new o(this,w,N,b,p(V)))}this.shaders=A}return this.shaders.length===0?console.warn("Pipeline: "+this.name+" - Invalid shader config"):this.currentShader=this.shaders[0],this},createBatch:function(f){return this.currentBatch={start:this.vertexCount,count:0,texture:[f],unit:0,maxUnit:0},this.currentUnit=0,this.currentTexture=f,this.batch.push(this.currentBatch),0},addTextureToBatch:function(f){var d=this.currentBatch;d&&(d.texture.push(f),d.unit++,d.maxUnit++)},pushBatch:function(f){if(!this.currentBatch||this.forceZero&&f!==this.currentTexture)return this.createBatch(f);if(f===this.currentTexture)return this.currentUnit;var d=this.currentBatch,v=d.texture.indexOf(f);return v===-1?d.texture.length===this.renderer.maxTextures?this.createBatch(f):(d.unit++,d.maxUnit++,d.texture.push(f),this.currentUnit=d.unit,this.currentTexture=f,d.unit):(this.currentUnit=v,this.currentTexture=f,v)},setGameObject:function(f,d){return d===void 0&&(d=f.frame),this.pushBatch(d.source.glTexture)},shouldFlush:function(f){return f===void 0&&(f=0),this.vertexCount+f>this.vertexCapacity},vertexAvailable:function(){return this.vertexCapacity-this.vertexCount},resize:function(f,d){(f!==this.width||d!==this.height)&&this.flush(),this.width=f,this.height=d;for(var v=this.renderTargets,m=0;m=0;v--){var m=d[v].rebind();(!f||m===f)&&(this.currentShader=m)}return this.activeTextures.length=0,this.emit(r.REBIND,this.currentShader),this.onActive(this.currentShader),this.onRebind(),this.glReset=!1,this},restoreContext:function(){var f=this.shaders,d=!!this.vertexBuffer;this.activeBuffer=null,this.activeTextures.length=0,this.batch.length=0,this.currentBatch=null,this.currentTexture=null,this.currentUnit=0,d&&this.setVertexBuffer();for(var v=0;v0){this.emit(r.BEFORE_FLUSH,this,f),this.onBeforeFlush(f);var d=this.gl,v=this.vertexCount,m=this.currentShader.vertexSize,g=this.topology;if(this.active){this.setVertexBuffer(),v===this.vertexCapacity?d.bufferData(d.ARRAY_BUFFER,this.vertexData,d.DYNAMIC_DRAW):d.bufferSubData(d.ARRAY_BUFFER,0,this.bytes.subarray(0,v*m));var x,S,C,E=this.batch,P=this.activeTextures;if(this.forceZero)for(P[0]||d.activeTexture(d.TEXTURE0),x=0;x{/** + * @author Richard Davey + * @author Felipe Alfonso <@bitnenfer> + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(95428),p=t(72905),a=t(19715),r=t(83419),n=t(8054),e=t(50792),s=t(92503),h=t(50030),i=t(37867),o=t(29747),l=t(7530),f=t(32302),d=t(97480),v=t(69442),m=t(70554),g=t(88815),x=t(26128),S=t(1482),C=t(82751),E=t(84387),P=t(93567),R=t(57183),M=new r({Extends:e,initialize:function(L){e.call(this);var w=L.config,N={alpha:w.transparent,desynchronized:w.desynchronized,depth:!0,antialias:w.antialiasGL,premultipliedAlpha:w.premultipliedAlpha,stencil:!0,failIfMajorPerformanceCaveat:w.failIfMajorPerformanceCaveat,powerPreference:w.powerPreference,preserveDrawingBuffer:w.preserveDrawingBuffer,willReadFrequently:!1};this.config={clearBeforeRender:w.clearBeforeRender,antialias:w.antialias,backgroundColor:w.backgroundColor,contextCreation:N,roundPixels:w.roundPixels,maxTextures:w.maxTextures,maxTextureSize:w.maxTextureSize,batchSize:w.batchSize,maxLights:w.maxLights,mipmapFilter:w.mipmapFilter},this.game=L,this.type=n.WEBGL,this.pipelines=null,this.width=0,this.height=0,this.canvas=L.canvas,this.blendModes=[],this.contextLost=!1,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.maxTextures=0,this.textureIndexes,this.glBufferWrappers=[],this.glProgramWrappers=[],this.glTextureWrappers=[],this.glFramebufferWrappers=[],this.glAttribLocationWrappers=[],this.glUniformLocationWrappers=[],this.currentFramebuffer=null,this.fboStack=[],this.currentProgram=null,this.currentBlendMode=1/0,this.currentScissorEnabled=!1,this.currentScissor=null,this.scissorStack=[],this.contextLostHandler=o,this.contextRestoredHandler=o,this.previousContextLostHandler=o,this.previousContextRestoredHandler=o,this.gl=null,this.supportedExtensions=null,this.instancedArraysExtension=null,this.vaoExtension=null,this.extensions={},this.glFormats,this.compression,this.drawingBufferHeight=0,this.blankTexture=null,this.normalTexture=null,this.whiteTexture=null,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.finalType=!1,this.mipmapFilter=null,this.defaultScissor=[0,0,0,0],this.isBooted=!1,this.renderTarget=null,this.projectionMatrix,this.projectionWidth=0,this.projectionHeight=0,this.maskSource=null,this.maskTarget=null,this.spector=null,this._debugCapture=!1,this.init(this.config)},init:function(A){var L,w=this.game,N=this.canvas,b=A.backgroundColor;if(w.config.context?L=w.config.context:L=N.getContext("webgl",A.contextCreation)||N.getContext("experimental-webgl",A.contextCreation),!L||L.isContextLost())throw this.contextLost=!0,new Error("WebGL unsupported");this.gl=L,this.setExtensions(),this.setContextHandlers(),w.context=L;for(var V=0;V<=27;V++)this.blendModes.push({func:[L.ONE,L.ONE_MINUS_SRC_ALPHA],equation:L.FUNC_ADD});this.blendModes[1].func=[L.ONE,L.DST_ALPHA],this.blendModes[2].func=[L.DST_COLOR,L.ONE_MINUS_SRC_ALPHA],this.blendModes[3].func=[L.ONE,L.ONE_MINUS_SRC_COLOR],this.blendModes[17]={func:[L.ZERO,L.ONE_MINUS_SRC_ALPHA],equation:L.FUNC_REVERSE_SUBTRACT},this.glFormats=[L.BYTE,L.SHORT,L.UNSIGNED_BYTE,L.UNSIGNED_SHORT,L.FLOAT],this.glFuncMap={mat2:{func:L.uniformMatrix2fv,length:1,matrix:!0},mat3:{func:L.uniformMatrix3fv,length:1,matrix:!0},mat4:{func:L.uniformMatrix4fv,length:1,matrix:!0},"1f":{func:L.uniform1f,length:1},"1fv":{func:L.uniform1fv,length:1},"1i":{func:L.uniform1i,length:1},"1iv":{func:L.uniform1iv,length:1},"2f":{func:L.uniform2f,length:2},"2fv":{func:L.uniform2fv,length:1},"2i":{func:L.uniform2i,length:2},"2iv":{func:L.uniform2iv,length:1},"3f":{func:L.uniform3f,length:3},"3fv":{func:L.uniform3fv,length:1},"3i":{func:L.uniform3i,length:3},"3iv":{func:L.uniform3iv,length:1},"4f":{func:L.uniform4f,length:4},"4fv":{func:L.uniform4fv,length:1},"4i":{func:L.uniform4i,length:4},"4iv":{func:L.uniform4iv,length:1}},(!A.maxTextures||A.maxTextures===-1)&&(A.maxTextures=L.getParameter(L.MAX_TEXTURE_IMAGE_UNITS)),A.maxTextureSize||(A.maxTextureSize=L.getParameter(L.MAX_TEXTURE_SIZE)),this.compression=this.getCompressedTextures(),L.disable(L.DEPTH_TEST),L.disable(L.CULL_FACE),L.enable(L.BLEND),L.clearColor(b.redGL,b.greenGL,b.blueGL,b.alphaGL);var Y=["NEAREST","LINEAR","NEAREST_MIPMAP_NEAREST","LINEAR_MIPMAP_NEAREST","NEAREST_MIPMAP_LINEAR","LINEAR_MIPMAP_LINEAR"];return Y.indexOf(A.mipmapFilter)!==-1&&(this.mipmapFilter=L[A.mipmapFilter]),this.maxTextures=m.checkShaderMax(L,A.maxTextures),this.textureIndexes=[],this.createTemporaryTextures(),this.pipelines=new l(this),this.setBlendMode(n.BlendModes.NORMAL),this.projectionMatrix=new i().identity(),w.textures.once(v.READY,this.boot,this),this},boot:function(){var A=this.game,L=this.pipelines,w=A.scale.baseSize,N=w.width,b=w.height;this.width=N,this.height=b,this.isBooted=!0,this.renderTarget=new f(this,N,b,1,0,!0,!0),this.maskTarget=new f(this,N,b,1,0,!0,!0),this.maskSource=new f(this,N,b,1,0,!0,!0);var V=A.config;L.boot(V.pipeline,V.defaultPipeline,V.autoMobilePipeline),this.blankTexture=A.textures.getFrame("__DEFAULT").glTexture,this.normalTexture=A.textures.getFrame("__NORMAL").glTexture,this.whiteTexture=A.textures.getFrame("__WHITE").glTexture;var Y=this.gl;Y.bindFramebuffer(Y.FRAMEBUFFER,null),Y.enable(Y.SCISSOR_TEST),A.scale.on(d.RESIZE,this.onResize,this),this.resize(N,b)},setExtensions:function(){var A=this.gl,L=A.getSupportedExtensions();this.supportedExtensions=L;var w="ANGLE_instanced_arrays";this.instancedArraysExtension=L.indexOf(w)>-1?A.getExtension(w):null;var N="OES_vertex_array_object";this.vaoExtension=L.indexOf(N)>-1?A.getExtension(N):null},setContextHandlers:function(A,L){this.previousContextLostHandler&&this.canvas.removeEventListener("webglcontextlost",this.previousContextLostHandler,!1),this.previousContextRestoredHandler&&this.canvas.removeEventListener("webglcontextlost",this.previousContextRestoredHandler,!1),typeof A=="function"?this.contextLostHandler=A.bind(this):this.contextLostHandler=this.dispatchContextLost.bind(this),typeof L=="function"?this.contextRestoredHandler=L.bind(this):this.contextRestoredHandler=this.dispatchContextRestored.bind(this),this.canvas.addEventListener("webglcontextlost",this.contextLostHandler,!1),this.canvas.addEventListener("webglcontextrestored",this.contextRestoredHandler,!1),this.previousContextLostHandler=this.contextLostHandler,this.previousContextRestoredHandler=this.contextRestoredHandler},dispatchContextLost:function(A){this.contextLost=!0,console&&console.warn("WebGL Context lost. Renderer disabled"),this.emit(s.LOSE_WEBGL,this),A.preventDefault()},dispatchContextRestored:function(A){var L=this.gl;if(L.isContextLost()){console&&console.log("WebGL Context restored, but context is still lost");return}this.currentProgram=null,this.currentFramebuffer=null,this.setBlendMode(n.BlendModes.NORMAL),L.disable(L.BLEND),L.disable(L.DEPTH_TEST),L.enable(L.CULL_FACE),this.compression=this.getCompressedTextures();var w=function(N){N.createResource()};u(this.glTextureWrappers,w),u(this.glBufferWrappers,w),u(this.glFramebufferWrappers,w),u(this.glProgramWrappers,w),u(this.glAttribLocationWrappers,w),u(this.glUniformLocationWrappers,w),this.createTemporaryTextures(),this.pipelines.restoreContext(),this.resize(this.game.scale.baseSize.width,this.game.scale.baseSize.height),this.setExtensions(),this.contextLost=!1,console&&console.warn("WebGL Context restored. Renderer running again."),this.emit(s.RESTORE_WEBGL,this),A.preventDefault()},createTemporaryTextures:function(){for(var A=this.gl,L=0;L0&&N>0;if(Y&&G){var U=Y[0],B=Y[1],I=Y[2],X=Y[3];G=U!==A||B!==L||I!==w||X!==N}G&&(this.flush(),V.scissor(A,b-L-N,w,N))},resetScissor:function(){var A=this.gl;A.enable(A.SCISSOR_TEST);var L=this.currentScissor;if(L){var w=L[0],N=L[1],b=L[2],V=L[3];b>0&&V>0&&A.scissor(w,this.drawingBufferHeight-N-V,b,V)}},popScissor:function(){var A=this.scissorStack;A.pop();var L=A[A.length-1];L&&this.setScissor(L[0],L[1],L[2],L[3]),this.currentScissor=L},hasActiveStencilMask:function(){var A=this.currentMask.mask,L=this.currentCameraMask.mask;return A&&A.isStencil||L&&L.isStencil},resetViewport:function(){var A=this.gl;A.viewport(0,0,this.width,this.height),this.drawingBufferHeight=A.drawingBufferHeight},setBlendMode:function(A,L){L===void 0&&(L=!1);var w=this.gl,N=this.blendModes[A];return L||A!==n.BlendModes.SKIP_CHECK&&this.currentBlendMode!==A?(this.flush(),w.enable(w.BLEND),w.blendEquation(N.equation),N.func.length>2?w.blendFuncSeparate(N.func[0],N.func[1],N.func[2],N.func[3]):w.blendFunc(N.func[0],N.func[1]),this.currentBlendMode=A,!0):!1},addBlendMode:function(A,L){var w=this.blendModes.push({func:A,equation:L});return w-1},updateBlendMode:function(A,L,w){return this.blendModes[A]&&(this.blendModes[A].func=L,w&&(this.blendModes[A].equation=w)),this},removeBlendMode:function(A){return A>17&&this.blendModes[A]&&this.blendModes.splice(A,1),this},pushFramebuffer:function(A,L,w,N,b){return A===this.currentFramebuffer?this:(this.fboStack.push(A),this.setFramebuffer(A,L,w,N,b))},setFramebuffer:function(A,L,w,N,b){if(L===void 0&&(L=!1),w===void 0&&(w=!0),N===void 0&&(N=null),b===void 0&&(b=!1),A===this.currentFramebuffer)return this;var V=this.gl,Y=this.width,G=this.height;return A&&A.renderTexture&&w?(Y=A.renderTexture.width,G=A.renderTexture.height):this.flush(),A?V.bindFramebuffer(V.FRAMEBUFFER,A.webGLFramebuffer):V.bindFramebuffer(V.FRAMEBUFFER,null),w&&V.viewport(0,0,Y,G),N&&V.framebufferTexture2D(V.FRAMEBUFFER,V.COLOR_ATTACHMENT0,V.TEXTURE_2D,N.webGLTexture,0),b&&(V.clearColor(0,0,0,0),V.clear(V.COLOR_BUFFER_BIT)),L&&(A?(this.drawingBufferHeight=G,this.pushScissor(0,0,Y,G)):(this.drawingBufferHeight=this.height,this.popScissor())),this.currentFramebuffer=A,this},popFramebuffer:function(A,L){A===void 0&&(A=!1),L===void 0&&(L=!0);var w=this.fboStack;w.pop();var N=w[w.length-1];return N||(N=null),this.setFramebuffer(N,A,L),N},restoreFramebuffer:function(A,L){A===void 0&&(A=!1),L===void 0&&(L=!0);var w=this.fboStack,N=w[w.length-1];N||(N=null),this.currentFramebuffer=null,this.setFramebuffer(N,A,L)},setProgram:function(A){return A!==this.currentProgram?(this.flush(),this.gl.useProgram(A.webGLProgram),this.currentProgram=A,!0):!1},resetProgram:function(){return this.gl.useProgram(this.currentProgram.webGLProgramWrapper),this},createTextureFromSource:function(A,L,w,N,b){b===void 0&&(b=!1);var V=this.gl,Y=V.NEAREST,G=V.NEAREST,U=V.CLAMP_TO_EDGE,B=null;L=A?A.width:L,w=A?A.height:w;var I=h(L,w);if(I&&!b&&(U=V.REPEAT),N===n.ScaleModes.LINEAR&&this.config.antialias){var X=A&&A.compressed,K=!X&&I||X&&A.mipmaps.length>1;Y=this.mipmapFilter&&K?this.mipmapFilter:V.LINEAR,G=V.LINEAR}return!A&&typeof L=="number"&&typeof w=="number"?B=this.createTexture2D(0,Y,G,U,U,V.RGBA,null,L,w):B=this.createTexture2D(0,Y,G,U,U,V.RGBA,A),B},createTexture2D:function(A,L,w,N,b,V,Y,G,U,B,I,X){typeof G!="number"&&(G=Y?Y.width:1),typeof U!="number"&&(U=Y?Y.height:1);var K=new C(this.gl,A,L,w,N,b,V,Y,G,U,B,I,X);return this.glTextureWrappers.push(K),K},createFramebuffer:function(A,L,w,N){this.currentFramebuffer=null;var b=new E(this.gl,A,L,w,N);return this.glFramebufferWrappers.push(b),b},beginBitmapMask:function(A,L){var w=this.gl;w&&(this.flush(),this.maskTarget.bind(!0),this.currentCameraMask.mask!==A&&(this.currentMask.mask=A,this.currentMask.camera=L))},drawBitmapMask:function(A,L,w){this.flush(),this.maskSource.bind(),this.setBlendMode(0,!0),A.renderWebGL(this,A,L),this.maskSource.unbind(!0),this.maskTarget.unbind();var N=this.gl,b=this.getCurrentStencilMask();b?(N.enable(N.STENCIL_TEST),b.mask.applyStencil(this,b.camera,!0)):this.currentMask.mask=null,this.pipelines.set(w),N.activeTexture(N.TEXTURE0),N.bindTexture(N.TEXTURE_2D,this.maskTarget.texture.webGLTexture),N.activeTexture(N.TEXTURE1),N.bindTexture(N.TEXTURE_2D,this.maskSource.texture.webGLTexture)},createProgram:function(A,L){var w=new S(this.gl,A,L);return this.glProgramWrappers.push(w),w},createVertexBuffer:function(A,L){var w=this.gl,N=new x(w,A,w.ARRAY_BUFFER,L);return this.glBufferWrappers.push(N),N},createAttribLocation:function(A,L){var w=new P(this.gl,A,L);return this.glAttribLocationWrappers.push(w),w},createUniformLocation:function(A,L){var w=new R(this.gl,A,L);return this.glUniformLocationWrappers.push(w),w},createIndexBuffer:function(A,L){var w=this.gl,N=new x(w,A,w.ELEMENT_ARRAY_BUFFER,L);return this.glBufferWrappers.push(N),N},deleteTexture:function(A){if(A)return p(this.glTextureWrappers,A),A.destroy(),this},deleteFramebuffer:function(A){return A?(p(this.fboStack,A),p(this.glFramebufferWrappers,A),A.destroy(),this):this},deleteProgram:function(A){return A&&(p(this.glProgramWrappers,A),A.destroy()),this},deleteAttribLocation:function(A){return A&&(p(this.glAttribLocationWrappers,A),A.destroy()),this},deleteUniformLocation:function(A){return A&&(p(this.glUniformLocationWrappers,A),A.destroy()),this},deleteBuffer:function(A){return A?(p(this.glBufferWrappers,A),A.destroy(),this):this},preRenderCamera:function(A){var L=A.x,w=A.y,N=A.width,b=A.height,V=A.backgroundColor;if(A.emit(a.PRE_RENDER,A),this.pipelines.preBatchCamera(A),this.pushScissor(L,w,N,b),A.mask&&(this.currentCameraMask.mask=A.mask,this.currentCameraMask.camera=A._maskCamera,A.mask.preRenderWebGL(this,A,A._maskCamera)),V.alphaGL>0){var Y=this.pipelines.setMulti();Y.drawFillRect(L,w,N,b,m.getTintFromFloats(V.blueGL,V.greenGL,V.redGL,1),V.alphaGL)}},getCurrentStencilMask:function(){var A=null,L=this.maskStack,w=this.currentCameraMask;return L.length>0?A=L[L.length-1]:w.mask&&w.mask.isStencil&&(A=w),A},postRenderCamera:function(A){var L=A.flashEffect,w=A.fadeEffect;if(L.isRunning||w.isRunning||w.isComplete){var N=this.pipelines.setMulti();L.postRenderWebGL(N,m.getTintFromFloats),w.postRenderWebGL(N,m.getTintFromFloats)}A.dirty=!1,this.popScissor(),A.mask&&(this.currentCameraMask.mask=null,A.mask.postRenderWebGL(this,A._maskCamera)),this.pipelines.postBatchCamera(A),A.emit(a.POST_RENDER,A)},preRender:function(){if(!this.contextLost){var A=this.gl;if(A.bindFramebuffer(A.FRAMEBUFFER,null),this.emit(s.PRE_RENDER_CLEAR),this.config.clearBeforeRender){var L=this.config.backgroundColor;A.clearColor(L.redGL,L.greenGL,L.blueGL,L.alphaGL),A.clear(A.COLOR_BUFFER_BIT|A.DEPTH_BUFFER_BIT|A.STENCIL_BUFFER_BIT)}A.enable(A.SCISSOR_TEST),this.currentScissor=this.defaultScissor,this.scissorStack.length=0,this.scissorStack.push(this.currentScissor),this.game.scene.customViewports&&A.scissor(0,this.drawingBufferHeight-this.height,this.width,this.height),this.currentMask.mask=null,this.currentCameraMask.mask=null,this.maskStack.length=0,this.emit(s.PRE_RENDER)}},render:function(A,L,w){if(!this.contextLost){var N=L.length;if(this.emit(s.RENDER,A,w),this.preRenderCamera(w),N===0){this.setBlendMode(n.BlendModes.NORMAL),this.postRenderCamera(w);return}this.currentType="";for(var b=this.currentMask,V=0;V{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(95428),a=t(95540),r=t(14500),n=new u({initialize:function(s,h,i,o,l){this.pipeline=s,this.name=h,this.renderer=s.renderer,this.gl=this.renderer.gl,this.fragSrc=o,this.vertSrc=i,this.program=this.renderer.createProgram(i,o),this.attributes,this.vertexComponentCount=0,this.vertexSize=0,this.uniforms={},this.createAttributes(l),this.createUniforms()},createAttributes:function(e){var s=0,h=0,i=[];this.vertexComponentCount=0;for(var o=0;o=0?(s.enableVertexAttribArray(E.webGLAttribLocation),s.vertexAttribPointer(E.webGLAttribLocation,v,m,C,i,g),d.enabled=!0,d.location=E):E.webGLAttribLocation!==-1&&s.disableVertexAttribArray(E.webGLAttribLocation)}else x?s.vertexAttribPointer(S.webGLAttribLocation,v,m,C,i,g):!x&&S!==-1&&S.webGLAttribLocation>-1&&(s.disableVertexAttribArray(S.webGLAttribLocation),d.location=-1)}return this},createUniforms:function(){var e=this.gl,s=this.program,h=this.uniforms,i,o,l,f=e.getProgramParameter(s.webGLProgram,e.ACTIVE_UNIFORMS);for(i=0;i0&&(o=o.substr(0,v),h.hasOwnProperty(o)||(l=this.renderer.createUniformLocation(s,o),l!==null&&(h[o]={name:o,location:l,setter:null,value1:null,value2:null,value3:null,value4:null})))}}return this},syncUniforms:function(){var e=this.gl;this.renderer.setProgram(this.program);for(var s in this.uniforms){var h=this.uniforms[s];h.setter&&h.setter.call(e,h.location.webGLUniformLocation,h.value1,h.value2,h.value3,h.value4)}},hasUniform:function(e){return this.uniforms.hasOwnProperty(e)},resetUniform:function(e){var s=this.uniforms[e];return s&&(s.value1=null,s.value2=null,s.value3=null,s.value4=null),this},setUniform1:function(e,s,h,i){var o=this.uniforms[s];return o?((i||o.value1!==h)&&(o.setter||(o.setter=e),o.value1=h,this.renderer.setProgram(this.program),e.call(this.gl,o.location.webGLUniformLocation,h),this.pipeline.currentShader=this),this):this},setUniform2:function(e,s,h,i,o){var l=this.uniforms[s];return l?((o||l.value1!==h||l.value2!==i)&&(l.setter||(l.setter=e),l.value1=h,l.value2=i,this.renderer.setProgram(this.program),e.call(this.gl,l.location.webGLUniformLocation,h,i),this.pipeline.currentShader=this),this):this},setUniform3:function(e,s,h,i,o,l){var f=this.uniforms[s];return f?((l||f.value1!==h||f.value2!==i||f.value3!==o)&&(f.setter||(f.setter=e),f.value1=h,f.value2=i,f.value3=o,this.renderer.setProgram(this.program),e.call(this.gl,f.location.webGLUniformLocation,h,i,o),this.pipeline.currentShader=this),this):this},setUniform4:function(e,s,h,i,o,l,f){var d=this.uniforms[s];return d?((f||d.value1!==h||d.value2!==i||d.value3!==o||d.value4!==l)&&(d.setter||(d.setter=e),d.value1=h,d.value2=i,d.value3=o,d.value4=l,this.renderer.setProgram(this.program),e.call(this.gl,d.location.webGLUniformLocation,h,i,o,l),this.pipeline.currentShader=this),this):this},setBoolean:function(e,s){return this.setUniform1(this.gl.uniform1i,e,Number(s))},set1f:function(e,s){return this.setUniform1(this.gl.uniform1f,e,s)},set2f:function(e,s,h){return this.setUniform2(this.gl.uniform2f,e,s,h)},set3f:function(e,s,h,i){return this.setUniform3(this.gl.uniform3f,e,s,h,i)},set4f:function(e,s,h,i,o){return this.setUniform4(this.gl.uniform4f,e,s,h,i,o)},set1fv:function(e,s){return this.setUniform1(this.gl.uniform1fv,e,s,!0)},set2fv:function(e,s){return this.setUniform1(this.gl.uniform2fv,e,s,!0)},set3fv:function(e,s){return this.setUniform1(this.gl.uniform3fv,e,s,!0)},set4fv:function(e,s){return this.setUniform1(this.gl.uniform4fv,e,s,!0)},set1iv:function(e,s){return this.setUniform1(this.gl.uniform1iv,e,s,!0)},set2iv:function(e,s){return this.setUniform1(this.gl.uniform2iv,e,s,!0)},set3iv:function(e,s){return this.setUniform1(this.gl.uniform3iv,e,s,!0)},set4iv:function(e,s){return this.setUniform1(this.gl.uniform4iv,e,s,!0)},set1i:function(e,s){return this.setUniform1(this.gl.uniform1i,e,s)},set2i:function(e,s,h){return this.setUniform2(this.gl.uniform2i,e,s,h)},set3i:function(e,s,h,i){return this.setUniform3(this.gl.uniform3i,e,s,h,i)},set4i:function(e,s,h,i,o){return this.setUniform4(this.gl.uniform4i,e,s,h,i,o)},setMatrix2fv:function(e,s,h){return this.setUniform2(this.gl.uniformMatrix2fv,e,s,h,!0)},setMatrix3fv:function(e,s,h){return this.setUniform2(this.gl.uniformMatrix3fv,e,s,h,!0)},setMatrix4fv:function(e,s,h){return this.setUniform2(this.gl.uniformMatrix4fv,e,s,h,!0)},createProgram:function(e,s){return e===void 0&&(e=this.vertSrc),s===void 0&&(s=this.fragSrc),this.program&&this.renderer.deleteProgram(this.program),this.vertSrc=e,this.fragSrc=s,this.program=this.renderer.createProgram(e,s),this.createUniforms(),this.rebind()},destroy:function(){var e=this.renderer;p(this.uniforms,function(s){e.deleteUniformLocation(s.location)}),this.uniforms=null,p(this.attributes,function(s){e.deleteAttribLocation(s.location)}),this.attributes=null,e.deleteProgram(this.program),this.pipeline=null,this.renderer=null,this.gl=null,this.program=null}});c.exports=n},14500:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={BYTE:{enum:5120,size:1},UNSIGNED_BYTE:{enum:5121,size:1},SHORT:{enum:5122,size:2},UNSIGNED_SHORT:{enum:5123,size:2},INT:{enum:5124,size:4},UNSIGNED_INT:{enum:5125,size:4},FLOAT:{enum:5126,size:4}};c.exports=y},4159:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(14500),p=t(79291),a={PipelineManager:t(7530),Pipelines:t(96615),RenderTarget:t(32302),Utils:t(70554),WebGLPipeline:t(29100),WebGLRenderer:t(74797),WebGLShader:t(38683),Wrappers:t(9503)};a=p(!1,a,u),c.exports=a},31302:(c,y,t)=>{/** + * @author Richard Davey + * @author Felipe Alfonso <@bitnenfer> + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(95540),a=t(78908),r=t(85191),n=t(14500),e=t(29100),s=new u({Extends:e,initialize:function(i){i.fragShader=p(i,"fragShader",a),i.vertShader=p(i,"vertShader",r),i.batchSize=p(i,"batchSize",1),i.vertices=p(i,"vertices",[-1,1,-1,-7,7,1]),i.attributes=p(i,"attributes",[{name:"inPosition",size:2,type:n.FLOAT}]),e.call(this,i)},boot:function(){e.prototype.boot.call(this),this.set1i("uMainSampler",0),this.set1i("uMaskSampler",1)},resize:function(h,i){e.prototype.resize.call(this,h,i),this.set2f("uResolution",h,i)},beginMask:function(h,i,o){this.renderer.beginBitmapMask(h,o)},endMask:function(h,i,o){var l=this.gl,f=this.renderer,d=h.bitmapMask;d&&l&&(f.drawBitmapMask(d,i,this),o&&this.set2f("uResolution",o.width,o.height),this.set1i("uInvertMaskAlpha",h.invertAlpha),l.drawArrays(this.topology,0,3),o&&this.set2f("uResolution",this.width,this.height),l.bindTexture(l.TEXTURE_2D,null))}});c.exports=s},92651:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(58918),a=t(14811),r=t(95540),n=t(43558),e=t(89350),s=t(70554),h=new u({Extends:n,initialize:function(o){o.shaders=[s.setGlowQuality(e.FXGlowFrag,o.game),e.FXShadowFrag,e.FXPixelateFrag,e.FXVignetteFrag,e.FXShineFrag,e.FXBlurLowFrag,e.FXBlurMedFrag,e.FXBlurHighFrag,e.FXGradientFrag,e.FXBloomFrag,e.ColorMatrixFrag,e.FXCircleFrag,e.FXBarrelFrag,e.FXDisplacementFrag,e.FXWipeFrag,e.FXBokehFrag],n.call(this,o);var l=this.game;this.glow=new p.Glow(l),this.shadow=new p.Shadow(l),this.pixelate=new p.Pixelate(l),this.vignette=new p.Vignette(l),this.shine=new p.Shine(l),this.gradient=new p.Gradient(l),this.circle=new p.Circle(l),this.barrel=new p.Barrel(l),this.wipe=new p.Wipe(l),this.bokeh=new p.Bokeh(l);var f=[];f[a.GLOW]=this.onGlow,f[a.SHADOW]=this.onShadow,f[a.PIXELATE]=this.onPixelate,f[a.VIGNETTE]=this.onVignette,f[a.SHINE]=this.onShine,f[a.BLUR]=this.onBlur,f[a.GRADIENT]=this.onGradient,f[a.BLOOM]=this.onBloom,f[a.COLOR_MATRIX]=this.onColorMatrix,f[a.CIRCLE]=this.onCircle,f[a.BARREL]=this.onBarrel,f[a.DISPLACEMENT]=this.onDisplacement,f[a.WIPE]=this.onWipe,f[a.BOKEH]=this.onBokeh,this.fxHandlers=f,this.source,this.target,this.swap},onDraw:function(i,o,l){this.source=i,this.target=o,this.swap=l;var f=i.width,d=i.height,v=this.tempSprite,m=this.fxHandlers;if(v&&v.preFX)for(var g=v.preFX.list,x=0;x{/** + * @author Richard Davey + * @author Felipe Alfonso <@bitnenfer> + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(95540),a=t(31063),r=t(57516),n=t(61340),e=t(26099),s=t(29100),h=new u({Extends:r,initialize:function(o){var l=p(o,"fragShader",a);o.fragShader=l.replace("%LIGHT_COUNT%",o.game.renderer.config.maxLights),r.call(this,o),this.inverseRotationMatrix=new Float32Array([1,0,0,0,1,0,0,0,1]),this.currentNormalMap,this.lightsActive=!0,this.tempVec2=new e,this._tempMatrix=new n,this._tempMatrix2=new n},boot:function(){s.prototype.boot.call(this)},onRender:function(i,o){var l=i.sys.lights;if(this.lightsActive=!1,!(!l||!l.active)){var f=l.getLights(o),d=f.length;this.lightsActive=!0;var v,m=this.renderer,g=m.height,x=o.matrix,S=this.tempVec2;for(this.set1i("uMainSampler",0),this.set1i("uNormSampler",1),this.set2f("uResolution",this.width/2,this.height/2),this.set4f("uCamera",o.x,o.y,o.rotation,o.zoom),this.set3f("uAmbientLightColor",l.ambientColor.r,l.ambientColor.g,l.ambientColor.b),this.set1i("uLightCount",d),v=0;v0&&this.flush();var o=this.inverseRotationMatrix;if(i){var l=-i,f=Math.cos(l),d=Math.sin(l);o[1]=d,o[3]=-d,o[0]=o[4]=f}else o[0]=o[4]=1,o[1]=o[3]=0;this.setMatrix3fv("uInverseRotationMatrix",!1,o),this.currentNormalMapRotation=i}},setTexture2D:function(i,o){var l=this.renderer;i===void 0&&(i=l.whiteTexture);var f=this.getNormalMap(o);this.isNewNormalMap(i,f)&&(this.flush(),this.createBatch(i),this.addTextureToBatch(f),this.currentNormalMap=f);var d=0;if(o&&o.parentContainer){var v=o.getWorldTransformMatrix(this._tempMatrix,this._tempMatrix2);d=v.rotationNormalized}else o&&(d=o.rotation);return this.currentBatch===null&&(this.createBatch(i),this.addTextureToBatch(f)),this.setNormalMapRotation(d),0},setGameObject:function(i,o){o===void 0&&(o=i.frame);var l=o.glTexture,f=this.getNormalMap(i);if(this.isNewNormalMap(l,f)&&(this.flush(),this.createBatch(l),this.addTextureToBatch(f),this.currentNormalMap=f),i.parentContainer){var d=i.getWorldTransformMatrix(this._tempMatrix,this._tempMatrix2);this.setNormalMapRotation(d.rotationNormalized)}else this.setNormalMapRotation(i.rotation);return this.currentBatch===null&&(this.createBatch(l),this.addTextureToBatch(f)),0},isNewNormalMap:function(i,o){return this.currentTexture!==i||this.currentNormalMap!==o},getNormalMap:function(i){var o;if(i)i.displayTexture?o=i.displayTexture.dataSource[i.displayFrame.sourceIndex]:i.texture?o=i.texture.dataSource[i.frame.sourceIndex]:i.tileset&&(Array.isArray(i.tileset)?o=i.tileset[0].image.dataSource[0]:o=i.tileset.image.dataSource[0]);else return this.renderer.normalTexture;return o?o.glTexture:this.renderer.normalTexture},batchSprite:function(i,o,l){this.lightsActive&&r.prototype.batchSprite.call(this,i,o,l)},batchTexture:function(i,o,l,f,d,v,m,g,x,S,C,E,P,R,M,A,L,w,N,b,V,Y,G,U,B,I,X,K,Z,J,Q,$){this.lightsActive&&r.prototype.batchTexture.call(this,i,o,l,f,d,v,m,g,x,S,C,E,P,R,M,A,L,w,N,b,V,Y,G,U,B,I,X,K,Z,J,Q,$)},batchTextureFrame:function(i,o,l,f,d,v,m){this.lightsActive&&r.prototype.batchTextureFrame.call(this,i,o,l,f,d,v,m)}});c.exports=h},56527:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(95540),a=t(57516),r=t(45561),n=t(60722),e=t(14500),s=t(29100),h=new u({Extends:a,initialize:function(o){o.fragShader=p(o,"fragShader",r),o.vertShader=p(o,"vertShader",n),o.attributes=p(o,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2},{name:"inTexId"},{name:"inTintEffect"},{name:"inTint",size:4,type:e.UNSIGNED_BYTE,normalized:!0}]),o.forceZero=!0,o.resizeUniform="uResolution",a.call(this,o)},boot:function(){s.prototype.boot.call(this);var i=this.renderer;this.set1i("uMainSampler",0),this.set2f("uResolution",i.width,i.height)}});c.exports=h},57516:(c,y,t)=>{/** + * @author Richard Davey + * @author Felipe Alfonso <@bitnenfer> + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(94811),a=t(95540),r=t(98840),n=t(44667),e=t(61340),s=t(70554),h=t(14500),i=t(29100),o=new u({Extends:i,initialize:function(f){var d=f.game.renderer,v=a(f,"fragShader",r);f.fragShader=s.parseFragmentShaderMaxTextures(v,d.maxTextures),f.vertShader=a(f,"vertShader",n),f.attributes=a(f,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2},{name:"inTexId"},{name:"inTintEffect"},{name:"inTint",size:4,type:h.UNSIGNED_BYTE,normalized:!0}]),f.resizeUniform="uResolution",i.call(this,f),this._tempMatrix1=new e,this._tempMatrix2=new e,this._tempMatrix3=new e,this.calcMatrix=new e,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.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=[]},boot:function(){i.prototype.boot.call(this);var l=this.renderer;this.set1iv("uMainSampler",l.textureIndexes),this.set2f("uResolution",l.width,l.height)},batchSprite:function(l,f,d){this.manager.set(this,l);var v=this._tempMatrix1,m=this._tempMatrix2,g=this._tempMatrix3,x=l.frame,S=x.glTexture,C=x.u0,E=x.v0,P=x.u1,R=x.v1,M=x.x,A=x.y,L=x.cutWidth,w=x.cutHeight,N=x.customPivot,b=l.displayOriginX,V=l.displayOriginY,Y=-b+M,G=-V+A;if(l.isCropped){var U=l._crop;(U.flipX!==l.flipX||U.flipY!==l.flipY)&&x.updateCropUVs(U,l.flipX,l.flipY),C=U.u0,E=U.v0,P=U.u1,R=U.v1,L=U.width,w=U.height,M=U.x,A=U.y,Y=-b+M,G=-V+A}var B=1,I=1;l.flipX&&(N||(Y+=-x.realWidth+b*2),B=-1),l.flipY&&(N||(G+=-x.realHeight+V*2),I=-1);var X=l.x,K=l.y;f.roundPixels&&(X=Math.floor(X),K=Math.floor(K)),m.applyITRS(X,K,l.rotation,l.scaleX*B,l.scaleY*I),v.copyFrom(f.matrix),d?(v.multiplyWithOffset(d,-f.scrollX*l.scrollFactorX,-f.scrollY*l.scrollFactorY),m.e=X,m.f=K):(m.e-=f.scrollX*l.scrollFactorX,m.f-=f.scrollY*l.scrollFactorY),v.multiply(m,g);var Z=g.setQuad(Y,G,Y+L,G+w,f.renderRoundPixels),J=s.getTintAppendFloatAlpha,Q=f.alpha,$=J(l.tintTopLeft,Q*l._alphaTL),j=J(l.tintTopRight,Q*l._alphaTR),k=J(l.tintBottomLeft,Q*l._alphaBL),q=J(l.tintBottomRight,Q*l._alphaBR);this.shouldFlush(6)&&this.flush();var tt=this.setGameObject(l,x);this.manager.preBatch(l),this.batchQuad(l,Z[0],Z[1],Z[2],Z[3],Z[4],Z[5],Z[6],Z[7],C,E,P,R,$,j,k,q,l.tintFill,S,tt),this.manager.postBatch(l)},batchTexture:function(l,f,d,v,m,g,x,S,C,E,P,R,M,A,L,w,N,b,V,Y,G,U,B,I,X,K,Z,J,Q,$,j,k,q){q===void 0&&(q=!1),this.manager.set(this,l);var tt=this._tempMatrix1,_=this._tempMatrix2,it=this._tempMatrix3,ot=b/d+Z,ht=V/v+J,ut=(b+Y)/d+Z,et=(V+G)/v+J,rt=x,at=S,vt=-w,yt=-N;if(l.isCropped){var Mt=l._crop,gt=Mt.width,xt=Mt.height;rt=gt,at=xt,x=gt,S=xt,b=Mt.x,V=Mt.y;var At=b,Gt=V;R&&(At=Y-Mt.x-gt),M&&(Gt=G-Mt.y-xt),ot=At/d+Z,ht=Gt/v+J,ut=(At+gt)/d+Z,et=(Gt+xt)/v+J,vt=-w+b,yt=-N+V}M=M^(!j&&f.isRenderTexture?1:0),R&&(rt*=-1,vt+=x),M&&(at*=-1,yt+=S),Q.roundPixels&&(m=Math.floor(m),g=Math.floor(g)),_.applyITRS(m,g,P,C,E),tt.copyFrom(Q.matrix),$?(tt.multiplyWithOffset($,-Q.scrollX*A,-Q.scrollY*L),_.e=m,_.f=g):(_.e-=Q.scrollX*A,_.f-=Q.scrollY*L),tt.multiply(_,it);var Ct=it.setQuad(vt,yt,vt+rt,yt+at,Q.renderRoundPixels);k==null&&(k=this.setTexture2D(f)),l&&!q&&this.manager.preBatch(l),this.batchQuad(l,Ct[0],Ct[1],Ct[2],Ct[3],Ct[4],Ct[5],Ct[6],Ct[7],ot,ht,ut,et,U,B,I,X,K,f,k),l&&!q&&this.manager.postBatch(l)},batchTextureFrame:function(l,f,d,v,m,g,x){this.manager.set(this);var S=this._tempMatrix1.copyFrom(g),C=this._tempMatrix2;x?S.multiply(x,C):C=S;var E=C.setQuad(f,d,f+l.width,d+l.height),P=this.setTexture2D(l.source.glTexture);v=s.getTintAppendFloatAlpha(v,m),this.batchQuad(null,E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],l.u0,l.v0,l.u1,l.v1,v,v,v,v,0,l.glTexture,P)},batchFillRect:function(l,f,d,v,m,g){this.renderer.pipelines.set(this);var x=this.calcMatrix;g&&g.multiply(m,x);var S=x.setQuad(l,f,l+d,f+v),C=this.fillTint;this.batchQuad(null,S[0],S[1],S[2],S[3],S[4],S[5],S[6],S[7],0,0,1,1,C.TL,C.TR,C.BL,C.BR,2)},batchFillTriangle:function(l,f,d,v,m,g,x,S){this.renderer.pipelines.set(this);var C=this.calcMatrix;S&&S.multiply(x,C);var E=C.getX(l,f),P=C.getY(l,f),R=C.getX(d,v),M=C.getY(d,v),A=C.getX(m,g),L=C.getY(m,g),w=this.fillTint;this.batchTri(null,E,P,R,M,A,L,0,0,1,1,w.TL,w.TR,w.BL,2)},batchStrokeTriangle:function(l,f,d,v,m,g,x,S,C){var E=this.tempTriangle;E[0].x=l,E[0].y=f,E[0].width=x,E[1].x=d,E[1].y=v,E[1].width=x,E[2].x=m,E[2].y=g,E[2].width=x,E[3].x=l,E[3].y=f,E[3].width=x,this.batchStrokePath(E,x,!1,S,C)},batchFillPath:function(l,f,d){this.renderer.pipelines.set(this);var v=this.calcMatrix;d&&d.multiply(f,v);for(var m=l.length,g=this.polygonCache,x,S,C=this.fillTint.TL,E=this.fillTint.TR,P=this.fillTint.BL,R=0;R0&&rt[4]?this.batchQuad(null,tt,_,$,j,rt[0],rt[1],rt[2],rt[3],0,0,1,1,ot,ht,ut,et,2):(at[0]=tt,at[1]=_,at[2]=$,at[3]=j,at[4]=1),C&&at[4]?this.batchQuad(null,J,Q,k,q,at[0],at[1],at[2],at[3],0,0,1,1,ot,ht,ut,et,2):(rt[0]=J,rt[1]=Q,rt[2]=k,rt[3]=q,rt[4]=1)}}},destroy:function(){return this._tempMatrix1.destroy(),this._tempMatrix2.destroy(),this._tempMatrix3.destroy(),this._tempMatrix1=null,this._tempMatrix1=null,this._tempMatrix1=null,i.prototype.destroy.call(this),this}});c.exports=o},43439:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(95540),a=t(4127),r=t(89924),n=t(29100),e=new u({Extends:n,initialize:function(h){h.vertShader=p(h,"vertShader",r),h.fragShader=p(h,"fragShader",a),h.attributes=p(h,"attributes",[{name:"inPosition",size:2},{name:"inLightPosition",size:2},{name:"inLightRadius"},{name:"inLightAttenuation"},{name:"inLightColor",size:4}]),n.call(this,h)},onRender:function(s,h){this.set2f("uResolution",this.width,this.height),this.set1f("uCameraZoom",h.zoom)},batchPointLight:function(s,h,i,o,l,f,d,v,m,g,x,S){var C=s.color,E=s.intensity,P=s.radius,R=s.attenuation,M=C.r*E,A=C.g*E,L=C.b*E,w=h.alpha*s.alpha;this.shouldFlush(6)&&this.flush(),this.currentBatch||this.setTexture2D(),this.batchLightVert(i,o,x,S,P,R,M,A,L,w),this.batchLightVert(l,f,x,S,P,R,M,A,L,w),this.batchLightVert(d,v,x,S,P,R,M,A,L,w),this.batchLightVert(i,o,x,S,P,R,M,A,L,w),this.batchLightVert(d,v,x,S,P,R,M,A,L,w),this.batchLightVert(m,g,x,S,P,R,M,A,L,w),this.currentBatch.count=this.vertexCount-this.currentBatch.start},batchLightVert:function(s,h,i,o,l,f,d,v,m,g){var x=this.vertexViewF32,S=this.vertexCount*this.currentShader.vertexComponentCount-1;x[++S]=s,x[++S]=h,x[++S]=i,x[++S]=o,x[++S]=l,x[++S]=f,x[++S]=d,x[++S]=v,x[++S]=m,x[++S]=g,this.vertexCount++}});c.exports=e},84057:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(89422),a=t(95540),r=t(27681),n=t(49627),e=t(29100),s=new u({Extends:e,initialize:function(i){i.renderTarget=a(i,"renderTarget",1),i.fragShader=a(i,"fragShader",r),i.vertShader=a(i,"vertShader",n),i.attributes=a(i,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2}]),i.batchSize=1,i.vertices=[-1,-1,0,0,-1,1,0,1,1,1,1,1,-1,-1,0,0,1,1,1,1,1,-1,1,0],e.call(this,i),this.isPostFX=!0,this.gameObject,this.controller,this.colorMatrix=new p,this.fullFrame1,this.fullFrame2,this.halfFrame1,this.halfFrame2,this.renderer.isBooted&&(this.manager=this.renderer.pipelines)},bootFX:function(){e.prototype.boot.call(this);var h=this.manager.UTILITY_PIPELINE;this.fullFrame1=h.fullFrame1,this.fullFrame2=h.fullFrame2,this.halfFrame1=h.halfFrame1,this.halfFrame2=h.halfFrame2;var i=this.renderer;this.set1i("uMainSampler",0),this.set2f("uResolution",i.width,i.height);for(var o=this.renderTargets,l=0;l{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(10312),p=t(67502),a=t(83419),r=t(96293),n=t(95540),e=t(57516),s=t(27681),h=t(87841),i=t(32302),o=t(45561),l=t(60722),f=t(29100),d=new a({Extends:e,initialize:function(m){var g=n(m,"fragShader",s),x=n(m,"vertShader",l),S=n(m,"drawShader",s),C=[{name:"DrawSprite",fragShader:o,vertShader:l},{name:"CopySprite",fragShader:g,vertShader:x},{name:"DrawGame",fragShader:S,vertShader:l},{name:"ColorMatrix",fragShader:r}],E=n(m,"shaders",[]);m.shaders=C.concat(E),m.vertShader||(m.vertShader=x),m.batchSize=1,e.call(this,m),this.isPreFX=!0,this.customMainSampler=null,this.drawSpriteShader,this.copyShader,this.gameShader,this.colorMatrixShader,this.quadVertexData,this.quadVertexBuffer,this.quadVertexViewF32,this.spriteBounds=new h,this.targetBounds=new h,this.fsTarget,this.tempSprite,this.renderer.isBooted&&(this.manager=this.renderer.pipelines,this.boot())},boot:function(){f.prototype.boot.call(this);var v=this.shaders,m=this.renderer;this.drawSpriteShader=v[0],this.copyShader=v[1],this.gameShader=v[2],this.colorMatrixShader=v[3],this.fsTarget=new i(m,m.width,m.height,1,0,!0,!0),this.renderTargets=this.manager.renderTargets.concat(this.fsTarget);var g=new ArrayBuffer(168);this.quadVertexData=g,this.quadVertexViewF32=new Float32Array(g),this.quadVertexBuffer=m.createVertexBuffer(g,this.gl.STATIC_DRAW),this.onResize(m.width,m.height),this.currentShader=this.copyShader,this.set2f("uResolution",m.width,m.height)},onResize:function(v,m){var g=this.quadVertexViewF32;g[1]=m,g[22]=m,g[14]=v,g[28]=v,g[35]=v,g[36]=m},batchQuad:function(v,m,g,x,S,C,E,P,R,M,A,L,w,N,b,V,Y,G,U){var B=Math.min(m,x,C,P),I=Math.min(g,S,E,R),X=Math.max(m,x,C,P),K=Math.max(g,S,E,R),Z=X-B,J=K-I,Q=this.spriteBounds.setTo(B,I,Z,J),$=v?v.preFX.padding:0,j=Z+$*2,k=J+$*2,q=Math.abs(Math.max(j,k)),tt=this.manager.getRenderTarget(q),_=this.targetBounds.setTo(0,0,tt.width,tt.height);p(_,Math.round(Q.centerX),Math.round(Q.centerY)),this.tempSprite=v;var it=this.gl,ot=this.renderer;ot.clearStencilMask(),this.setShader(this.drawSpriteShader),this.set1i("uMainSampler",0),this.set2f("uResolution",ot.width,ot.height),this.flipProjectionMatrix(!0),v&&(this.onDrawSprite(v,tt),v.preFX.onFX(this));var ht=this.fsTarget;return this.flush(),it.viewport(0,0,ot.width,ot.height),it.bindFramebuffer(it.FRAMEBUFFER,ht.framebuffer.webGLFramebuffer),it.framebufferTexture2D(it.FRAMEBUFFER,it.COLOR_ATTACHMENT0,it.TEXTURE_2D,ht.texture.webGLTexture,0),it.clearColor(0,0,0,0),it.clear(it.COLOR_BUFFER_BIT),this.setTexture2D(U),this.batchVert(m,g,M,A,0,G,N),this.batchVert(x,S,M,w,0,G,V),this.batchVert(C,E,L,w,0,G,Y),this.batchVert(m,g,M,A,0,G,N),this.batchVert(C,E,L,w,0,G,Y),this.batchVert(P,R,L,A,0,G,b),this.flush(),this.flipProjectionMatrix(!1),it.activeTexture(it.TEXTURE0),it.bindTexture(it.TEXTURE_2D,tt.texture.webGLTexture),it.copyTexSubImage2D(it.TEXTURE_2D,0,0,0,_.x,_.y,_.width,_.height),it.bindFramebuffer(it.FRAMEBUFFER,null),it.bindTexture(it.TEXTURE_2D,null),this.onBatch(v),this.currentShader=this.copyShader,this.onDraw(tt,this.manager.getSwapRenderTarget(),this.manager.getAltSwapRenderTarget()),!0},onDrawSprite:function(){},onCopySprite:function(){},copySprite:function(v,m,g,x,S,C,E){g===void 0&&(g=!0),x===void 0&&(x=!0),S===void 0&&(S=!1),E===void 0&&(E=this.copyShader);var P=this.gl,R=this.tempSprite;C&&(E=this.colorMatrixShader),this.currentShader=E;var M=this.setVertexBuffer(this.quadVertexBuffer);E.bind(M,!1);var A=this.renderer;if(this.set1i("uMainSampler",0),this.set2f("uResolution",A.width,A.height),R.preFX.onFXCopy(this),this.onCopySprite(v,m,R),C&&(this.set1fv("uColorMatrix",C.getData()),this.set1f("uAlpha",C.alpha)),P.activeTexture(P.TEXTURE0),P.bindTexture(P.TEXTURE_2D,v.texture.webGLTexture),v.height>m.height)P.viewport(0,0,v.width,v.height),this.setTargetUVs(v,m);else{var L=m.height-v.height;P.viewport(0,L,v.width,v.height),this.resetUVs()}if(P.bindFramebuffer(P.FRAMEBUFFER,m.framebuffer.webGLFramebuffer),P.framebufferTexture2D(P.FRAMEBUFFER,P.COLOR_ATTACHMENT0,P.TEXTURE_2D,m.texture.webGLTexture,0),g&&(P.clearColor(0,0,0,+!x),P.clear(P.COLOR_BUFFER_BIT)),S){var w=this.renderer.currentBlendMode;this.renderer.setBlendMode(u.ERASE)}P.bufferData(P.ARRAY_BUFFER,this.quadVertexData,P.STATIC_DRAW),P.drawArrays(P.TRIANGLES,0,6),S&&this.renderer.setBlendMode(w),P.bindFramebuffer(P.FRAMEBUFFER,null)},copy:function(v,m){var g=this.gl;this.set1i("uMainSampler",0),g.activeTexture(g.TEXTURE0),g.bindTexture(g.TEXTURE_2D,v.texture.webGLTexture),g.viewport(0,0,v.width,v.height),this.setUVs(0,0,0,1,1,1,1,0),g.bindFramebuffer(g.FRAMEBUFFER,m.framebuffer.webGLFramebuffer),g.framebufferTexture2D(g.FRAMEBUFFER,g.COLOR_ATTACHMENT0,g.TEXTURE_2D,m.texture.webGLTexture,0),g.clearColor(0,0,0,0),g.clear(g.COLOR_BUFFER_BIT),g.bufferData(g.ARRAY_BUFFER,this.quadVertexData,g.STATIC_DRAW),g.drawArrays(g.TRIANGLES,0,6),g.bindFramebuffer(g.FRAMEBUFFER,null)},blendFrames:function(v,m,g,x,S){this.manager.blendFrames(v,m,g,x,S)},blendFramesAdditive:function(v,m,g,x,S){this.manager.blendFramesAdditive(v,m,g,x,S)},drawToGame:function(v){this.currentShader=null,this.setShader(this.copyShader),this.bindAndDraw(v)},copyToGame:function(v){this.currentShader=null,this.setShader(this.gameShader),this.bindAndDraw(v)},bindAndDraw:function(v){var m=this.gl,g=this.renderer;this.set1i("uMainSampler",0),this.customMainSampler?this.setTexture2D(this.customMainSampler):this.setTexture2D(v.texture);var x=this._tempMatrix1.loadIdentity(),S=this.targetBounds.x,C=this.targetBounds.y,E=S+v.width,P=C+v.height,R=x.getX(S,C),M=x.getX(S,P),A=x.getX(E,P),L=x.getX(E,C),w=x.getY(S,C),N=x.getY(S,P),b=x.getY(E,P),V=x.getY(E,C),Y=16777215;this.batchVert(R,w,0,0,0,0,Y),this.batchVert(M,N,0,1,0,0,Y),this.batchVert(A,b,1,1,0,0,Y),this.batchVert(R,w,0,0,0,0,Y),this.batchVert(A,b,1,1,0,0,Y),this.batchVert(L,V,1,0,0,0,Y),g.restoreFramebuffer(!1,!0),g.currentFramebuffer||m.viewport(0,0,g.width,g.height),g.restoreStencilMask(),this.flush(),this.tempSprite=null},onDraw:function(v){this.drawToGame(v)},setUVs:function(v,m,g,x,S,C,E,P){var R=this.quadVertexViewF32;R[2]=v,R[3]=m,R[9]=g,R[10]=x,R[16]=S,R[17]=C,R[23]=v,R[24]=m,R[30]=S,R[31]=C,R[37]=E,R[38]=P},setTargetUVs:function(v,m){var g=m.height/v.height;g>.5?g=.5-(g-.5):g=.5+(.5-g),this.setUVs(0,g,0,1+g,1,1+g,1,g)},resetUVs:function(){this.setUVs(0,0,0,1,1,1,1,0)},destroy:function(){return this.renderer.deleteBuffer(this.quadVertexBuffer),this.drawSpriteShader=null,this.copyShader=null,this.gameShader=null,this.colorMatrixShader=null,this.quadVertexData=null,this.quadVertexBuffer=null,this.quadVertexViewF32=null,this.fsTarget=null,this.tempSprite=null,e.prototype.destroy.call(this),this}});c.exports=d},81041:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(95540),a=t(57516),r=new u({Extends:a,initialize:function(e){e.topology=5,e.batchSize=p(e,"batchSize",256),a.call(this,e)}});c.exports=r},12385:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(95540),a=t(57516),r=t(45561),n=t(60722),e=t(29100),s=new u({Extends:a,initialize:function(i){i.fragShader=p(i,"fragShader",r),i.vertShader=p(i,"vertShader",n),i.forceZero=!0,a.call(this,i)},boot:function(){e.prototype.boot.call(this);var h=this.renderer;this.set1i("uMainSampler",0),this.set2f("uResolution",h.width,h.height)}});c.exports=s},7589:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(35407),p=t(10312),a=t(83419),r=t(89422),n=t(96293),e=t(36682),s=t(95540),h=t(48247),i=t(49627),o=t(29100),l=new a({Extends:o,initialize:function(d){d.renderTarget=s(d,"renderTarget",[{scale:1,autoResize:!0},{scale:1,autoResize:!0},{scale:.5,autoResize:!0},{scale:.5,autoResize:!0}]),d.vertShader=s(d,"vertShader",i),d.shaders=s(d,"shaders",[{name:"Copy",fragShader:e},{name:"AddBlend",fragShader:u},{name:"LinearBlend",fragShader:h},{name:"ColorMatrix",fragShader:n}]),d.attributes=s(d,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2}]),d.vertices=[-1,-1,0,0,-1,1,0,1,1,1,1,1,-1,-1,0,0,1,1,1,1,1,-1,1,0],d.batchSize=1,o.call(this,d),this.colorMatrix=new r,this.copyShader,this.addShader,this.linearShader,this.colorMatrixShader,this.fullFrame1,this.fullFrame2,this.halfFrame1,this.halfFrame2},boot:function(){o.prototype.boot.call(this);var f=this.shaders,d=this.renderTargets;this.copyShader=f[0],this.addShader=f[1],this.linearShader=f[2],this.colorMatrixShader=f[3],this.fullFrame1=d[0],this.fullFrame2=d[1],this.halfFrame1=d[2],this.halfFrame2=d[3]},copyFrame:function(f,d,v,m,g){v===void 0&&(v=1),m===void 0&&(m=!0),g===void 0&&(g=!0);var x=this.gl;this.setShader(this.copyShader),this.set1i("uMainSampler",0),this.set1f("uBrightness",v),x.activeTexture(x.TEXTURE0),x.bindTexture(x.TEXTURE_2D,f.texture.webGLTexture),d?(x.viewport(0,0,d.width,d.height),x.bindFramebuffer(x.FRAMEBUFFER,d.framebuffer.webGLFramebuffer),x.framebufferTexture2D(x.FRAMEBUFFER,x.COLOR_ATTACHMENT0,x.TEXTURE_2D,d.texture.webGLTexture,0)):x.viewport(0,0,f.width,f.height),m&&(g?x.clearColor(0,0,0,0):x.clearColor(0,0,0,1),x.clear(x.COLOR_BUFFER_BIT)),x.bufferData(x.ARRAY_BUFFER,this.vertexData,x.STATIC_DRAW),x.drawArrays(x.TRIANGLES,0,6),x.bindFramebuffer(x.FRAMEBUFFER,null),x.bindTexture(x.TEXTURE_2D,null)},blitFrame:function(f,d,v,m,g,x,S){v===void 0&&(v=1),m===void 0&&(m=!0),g===void 0&&(g=!0),x===void 0&&(x=!1),S===void 0&&(S=!1);var C=this.gl;if(this.setShader(this.copyShader),this.set1i("uMainSampler",0),this.set1f("uBrightness",v),C.activeTexture(C.TEXTURE0),C.bindTexture(C.TEXTURE_2D,f.texture.webGLTexture),f.height>d.height)C.viewport(0,0,f.width,f.height),this.setTargetUVs(f,d);else{var E=d.height-f.height;C.viewport(0,E,f.width,f.height)}if(C.bindFramebuffer(C.FRAMEBUFFER,d.framebuffer.webGLFramebuffer),C.framebufferTexture2D(C.FRAMEBUFFER,C.COLOR_ATTACHMENT0,C.TEXTURE_2D,d.texture.webGLTexture,0),m&&(g?C.clearColor(0,0,0,0):C.clearColor(0,0,0,1),C.clear(C.COLOR_BUFFER_BIT)),x){var P=this.renderer.currentBlendMode;this.renderer.setBlendMode(p.ERASE)}S&&this.flipY(),C.bufferData(C.ARRAY_BUFFER,this.vertexData,C.STATIC_DRAW),C.drawArrays(C.TRIANGLES,0,6),x&&this.renderer.setBlendMode(P),C.bindFramebuffer(C.FRAMEBUFFER,null),C.bindTexture(C.TEXTURE_2D,null),this.resetUVs()},copyFrameRect:function(f,d,v,m,g,x,S,C){S===void 0&&(S=!0),C===void 0&&(C=!0);var E=this.gl;E.bindFramebuffer(E.FRAMEBUFFER,f.framebuffer.webGLFramebuffer),E.framebufferTexture2D(E.FRAMEBUFFER,E.COLOR_ATTACHMENT0,E.TEXTURE_2D,f.texture.webGLTexture,0),S&&(C?E.clearColor(0,0,0,0):E.clearColor(0,0,0,1),E.clear(E.COLOR_BUFFER_BIT)),E.activeTexture(E.TEXTURE0),E.bindTexture(E.TEXTURE_2D,d.texture.webGLTexture),E.copyTexSubImage2D(E.TEXTURE_2D,0,0,0,v,m,g,x),E.bindFramebuffer(E.FRAMEBUFFER,null),E.bindTexture(E.TEXTURE_2D,null)},copyToGame:function(f){var d=this.gl;this.setShader(this.copyShader),this.set1i("uMainSampler",0),this.set1f("uBrightness",1),this.renderer.popFramebuffer(),d.activeTexture(d.TEXTURE0),d.bindTexture(d.TEXTURE_2D,f.texture.webGLTexture),d.bufferData(d.ARRAY_BUFFER,this.vertexData,d.STATIC_DRAW),d.drawArrays(d.TRIANGLES,0,6)},drawFrame:function(f,d,v,m){v===void 0&&(v=!0),m===void 0&&(m=this.colorMatrix);var g=this.gl;this.setShader(this.colorMatrixShader),this.set1i("uMainSampler",0),this.set1fv("uColorMatrix",m.getData()),this.set1f("uAlpha",m.alpha),g.activeTexture(g.TEXTURE0),g.bindTexture(g.TEXTURE_2D,f.texture.webGLTexture),d?(g.viewport(0,0,d.width,d.height),g.bindFramebuffer(g.FRAMEBUFFER,d.framebuffer.webGLFramebuffer),g.framebufferTexture2D(g.FRAMEBUFFER,g.COLOR_ATTACHMENT0,g.TEXTURE_2D,d.texture.webGLTexture,0)):g.viewport(0,0,f.width,f.height),v?g.clearColor(0,0,0,0):g.clearColor(0,0,0,1),g.clear(g.COLOR_BUFFER_BIT),g.bufferData(g.ARRAY_BUFFER,this.vertexData,g.STATIC_DRAW),g.drawArrays(g.TRIANGLES,0,6),g.bindFramebuffer(g.FRAMEBUFFER,null),g.bindTexture(g.TEXTURE_2D,null)},blendFrames:function(f,d,v,m,g,x){m===void 0&&(m=1),g===void 0&&(g=!0),x===void 0&&(x=this.linearShader);var S=this.gl;this.setShader(x),this.set1i("uMainSampler1",0),this.set1i("uMainSampler2",1),this.set1f("uStrength",m),S.activeTexture(S.TEXTURE0),S.bindTexture(S.TEXTURE_2D,f.texture.webGLTexture),S.activeTexture(S.TEXTURE1),S.bindTexture(S.TEXTURE_2D,d.texture.webGLTexture),v?(S.bindFramebuffer(S.FRAMEBUFFER,v.framebuffer.webGLFramebuffer),S.framebufferTexture2D(S.FRAMEBUFFER,S.COLOR_ATTACHMENT0,S.TEXTURE_2D,v.texture.webGLTexture,0),S.viewport(0,0,v.width,v.height)):S.viewport(0,0,f.width,f.height),g?S.clearColor(0,0,0,0):S.clearColor(0,0,0,1),S.clear(S.COLOR_BUFFER_BIT),S.bufferData(S.ARRAY_BUFFER,this.vertexData,S.STATIC_DRAW),S.drawArrays(S.TRIANGLES,0,6),S.bindFramebuffer(S.FRAMEBUFFER,null),S.bindTexture(S.TEXTURE_2D,null)},blendFramesAdditive:function(f,d,v,m,g){this.blendFrames(f,d,v,m,g,this.addShader)},clearFrame:function(f,d){d===void 0&&(d=!0);var v=this.gl;v.viewport(0,0,f.width,f.height),v.bindFramebuffer(v.FRAMEBUFFER,f.framebuffer.webGLFramebuffer),d?v.clearColor(0,0,0,0):v.clearColor(0,0,0,1),v.clear(v.COLOR_BUFFER_BIT);var m=this.renderer.currentFramebuffer;v.bindFramebuffer(v.FRAMEBUFFER,m.webGLFramebuffer)},setUVs:function(f,d,v,m,g,x,S,C){var E=this.vertexViewF32;E[2]=f,E[3]=d,E[6]=v,E[7]=m,E[10]=g,E[11]=x,E[14]=f,E[15]=d,E[18]=g,E[19]=x,E[22]=S,E[23]=C},setTargetUVs:function(f,d){var v=d.height/f.height;v>.5?v=.5-(v-.5):v=.5+(.5-v),this.setUVs(0,v,0,1+v,1,1+v,1,v)},flipX:function(){this.setUVs(1,0,1,1,0,1,0,0)},flipY:function(){this.setUVs(0,1,0,0,1,0,1,1)},resetUVs:function(){this.setUVs(0,0,0,1,1,1,1,0)}});c.exports=l},36060:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={BITMAPMASK_PIPELINE:"BitmapMaskPipeline",LIGHT_PIPELINE:"Light2D",POINTLIGHT_PIPELINE:"PointLightPipeline",SINGLE_PIPELINE:"SinglePipeline",MULTI_PIPELINE:"MultiPipeline",ROPE_PIPELINE:"RopePipeline",GRAPHICS_PIPELINE:"GraphicsPipeline",POSTFX_PIPELINE:"PostFXPipeline",UTILITY_PIPELINE:"UtilityPipeline",MOBILE_PIPELINE:"MobilePipeline",FX_PIPELINE:"FxPipeline"};c.exports=y},84817:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="pipelineafterflush"},36712:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="pipelinebeforeflush"},40285:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="pipelinebind"},65918:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="pipelineboot"},92852:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="pipelinedestroy"},56072:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="pipelinerebind"},57566:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="pipelineresize"},77085:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={AFTER_FLUSH:t(84817),BEFORE_FLUSH:t(36712),BIND:t(40285),BOOT:t(65918),DESTROY:t(92852),REBIND:t(56072),RESIZE:t(57566)}},54812:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(99155),a=t(84057),r=new u({Extends:a,initialize:function(e){a.call(this,{game:e,fragShader:p}),this.amount=1},onPreRender:function(n,e){n=this.getController(n),this.set1f("amount",n.amount,e)}});c.exports=r},67329:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(24400),a=t(84057),r=new u({Extends:a,initialize:function(e){a.call(this,{game:e,fragShader:p}),this.steps=4,this.offsetX=1,this.offsetY=1,this.blurStrength=1,this.strength=1,this.glcolor=[1,1,1]},onPreRender:function(n){n=this.getController(n),this.set1f("strength",n.blurStrength),this.set3fv("color",n.glcolor)},onDraw:function(n){var e=this.getController(),s=this.fullFrame1,h=this.fullFrame2;this.copyFrame(n,h);for(var i=2/n.width*e.offsetX,o=2/n.height*e.offsetY,l=0;l{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(41514),a=t(51078),r=t(94328),n=t(84057),e=new u({Extends:n,initialize:function(h){n.call(this,{game:h,shaders:[{name:"Gaussian5",fragShader:p},{name:"Gaussian9",fragShader:a},{name:"Gaussian13",fragShader:r}]}),this.activeShader=this.shaders[0],this.x=2,this.y=2,this.steps=4,this.strength=1,this.glcolor=[1,1,1]},setQualityLow:function(){return this.activeShader=this.shaders[0],this},setQualityMedium:function(){return this.activeShader=this.shaders[1],this},setQualityHigh:function(){return this.activeShader=this.shaders[2],this},onDraw:function(s){var h=this.getController(),i=this.gl,o=this.fullFrame1,l=i.getParameter(i.FRAMEBUFFER_BINDING);this.bind(this.shaders[h.quality]),i.activeTexture(i.TEXTURE0),i.viewport(0,0,s.width,s.height),this.set1i("uMainSampler",0),this.set2f("resolution",s.width,s.height),this.set1f("strength",h.strength),this.set3fv("color",h.glcolor);for(var f=0;f{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(90610),a=t(84057),r=new u({Extends:a,initialize:function(e){a.call(this,{game:e,fragShader:p}),this.isTiltShift=!1,this.strength=1,this.blurX=1,this.blurY=1,this.radius=.5,this.amount=1,this.contrast=.2},onPreRender:function(n,e,s,h){n=this.getController(n),this.set1f("radius",n.radius,e),this.set1f("amount",n.amount,e),this.set1f("contrast",n.contrast,e),this.set1f("strength",n.strength,e),this.set2f("blur",n.blurX,n.blurY,e),this.setBoolean("isTiltShift",n.isTiltShift,e),s&&h&&this.set2f("resolution",s,h,e)},onDraw:function(n){this.set2f("resolution",n.width,n.height),this.bindAndDraw(n)}});c.exports=r},89428:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(91899),a=t(84057),r=new u({Extends:a,initialize:function(e){a.call(this,{game:e,fragShader:p}),this.scale=1,this.feather=.005,this.thickness=8,this.glcolor=[1,.2,.7],this.glcolor2=[1,0,0,.4]},onPreRender:function(n,e,s,h){n=this.getController(n),this.set1f("scale",n.scale,e),this.set1f("feather",n.feather,e),this.set1f("thickness",n.thickness,e),this.set3fv("color",n.glcolor,e),this.set4fv("backgroundColor",n.glcolor2,e),s&&h&&this.set2f("resolution",s,h,e)},onDraw:function(n){this.set2f("resolution",n.width,n.height),this.bindAndDraw(n)}});c.exports=r},88904:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(84057),a=new u({Extends:p,initialize:function(n){p.call(this,{game:n})},onDraw:function(r){var n=this.fullFrame1;this.controller?this.manager.drawFrame(r,n,!0,this.controller):this.drawFrame(r,n),this.copyToGame(n)}});c.exports=a},63563:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(47838),a=t(84057),r=new u({Extends:a,initialize:function(e){a.call(this,{game:e,fragShader:p}),this.x=.005,this.y=.005,this.glTexture},onBoot:function(){this.setTexture("__WHITE")},setTexture:function(n){var e=this.game.textures.getFrame(n);e&&(this.glTexture=e.glTexture)},onDraw:function(n){var e=this.getController(),s=this.fullFrame1;this.bind(),this.set1i("uMainSampler",0),this.set1i("uDisplacementSampler",1),this.set2f("amount",e.x,e.y),this.bindTexture(e.glTexture,1),this.copySprite(n,s),this.copyToGame(s)}});c.exports=r},94045:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(95540),a=t(98656),r=t(84057),n=t(70554),e=new u({Extends:r,initialize:function(h,i){var o=p(i,"quality",.1),l=p(i,"distance",10);r.call(this,{game:h,fragShader:n.setGlowQuality(a,h,o,l)}),this.outerStrength=4,this.innerStrength=0,this.knockout=!1,this.glcolor=[1,1,1,1]},onPreRender:function(s,h,i,o){s=this.getController(s),this.set1f("outerStrength",s.outerStrength,h),this.set1f("innerStrength",s.innerStrength,h),this.set4fv("glowColor",s.glcolor,h),this.setBoolean("knockout",s.knockout,h),i&&o&&this.set2f("resolution",i,o,h)},onDraw:function(s){this.set2f("resolution",s.width,s.height),this.bindAndDraw(s)}});c.exports=e},74088:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(70463),a=t(84057),r=new u({Extends:a,initialize:function(e){a.call(this,{game:e,fragShader:p}),this.alpha=.2,this.size=0,this.fromX=0,this.fromY=0,this.toX=0,this.toY=1,this.glcolor1=[255,0,0],this.glcolor2=[0,255,0]},onPreRender:function(n,e){n=this.getController(n),this.set1f("alpha",n.alpha,e),this.set1i("size",n.size,e),this.set3fv("color1",n.glcolor1,e),this.set3fv("color2",n.glcolor2,e),this.set2f("positionFrom",n.fromX,n.fromY,e),this.set2f("positionTo",n.toX,n.toY,e)}});c.exports=r},99636:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(50831),a=t(84057),r=new u({Extends:a,initialize:function(e){a.call(this,{game:e,fragShader:p}),this.amount=1},onPreRender:function(n,e,s,h){n=this.getController(n),this.set1f("amount",n.amount,e),s&&h&&this.set2f("resolution",s,h,e)},onDraw:function(n){this.set2f("resolution",n.width,n.height),this.bindAndDraw(n)}});c.exports=r},34700:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(92595),a=t(84057),r=new u({Extends:a,initialize:function(e){a.call(this,{game:e,fragShader:p}),this.x=0,this.y=0,this.decay=.1,this.power=1,this.glcolor=[0,0,0,1],this.samples=6,this.intensity=1},onPreRender:function(n,e){n=this.getController(n);var s=n.samples;this.set1i("samples",s,e),this.set1f("intensity",n.intensity,e),this.set1f("decay",n.decay,e),this.set1f("power",n.power/s,e),this.set2f("lightPosition",n.x,n.y,e),this.set4fv("color",n.glcolor,e)}});c.exports=r},91157:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(72464),a=t(84057),r=new u({Extends:a,initialize:function(e){a.call(this,{game:e,fragShader:p}),this.speed=.5,this.lineWidth=.5,this.gradient=3,this.reveal=!1},onPreRender:function(n,e,s,h){n=this.getController(n),this.setTime("time",e),this.set1f("speed",n.speed,e),this.set1f("lineWidth",n.lineWidth,e),this.set1f("gradient",n.gradient,e),this.setBoolean("reveal",n.reveal,e),s&&h&&this.set2f("resolution",s,h,e)},onDraw:function(n){this.set2f("resolution",n.width,n.height),this.bindAndDraw(n)}});c.exports=r},27797:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(39249),a=t(84057),r=new u({Extends:a,initialize:function(e){a.call(this,{game:e,fragShader:p}),this.x=.5,this.y=.5,this.radius=.5,this.strength=.5},onPreRender:function(n,e){n=this.getController(n),this.set1f("radius",n.radius,e),this.set1f("strength",n.strength,e),this.set2f("position",n.x,n.y,e)}});c.exports=r},67603:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(2878),a=t(84057),r=new u({Extends:a,initialize:function(e){a.call(this,{game:e,fragShader:p}),this.progress=0,this.wipeWidth=.1,this.direction=0,this.axis=0,this.reveal=!1},onPreRender:function(n,e){n=this.getController(n);var s=n.progress,h=n.wipeWidth,i=n.direction,o=n.axis;this.set4f("config",s,h,i,o,e),this.setBoolean("reveal",n.reveal,e)}});c.exports=r},58918:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u={Barrel:t(54812),Bloom:t(67329),Blur:t(8861),Bokeh:t(51051),Circle:t(89428),ColorMatrix:t(88904),Displacement:t(63563),Glow:t(94045),Gradient:t(74088),Pixelate:t(99636),Shadow:t(34700),Shine:t(91157),Vignette:t(27797),Wipe:t(67603)};c.exports=u},96615:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(36060),p=t(79291),a={FX:t(58918),BitmapMaskPipeline:t(31302),Events:t(77085),FXPipeline:t(92651),LightPipeline:t(96569),MobilePipeline:t(56527),MultiPipeline:t(57516),PointLightPipeline:t(43439),PostFXPipeline:t(84057),PreFXPipeline:t(43558),RopePipeline:t(81041),SinglePipeline:t(12385),UtilityPipeline:t(7589)};a=p(!1,a,u),c.exports=a},35407:c=>{c.exports=["#define SHADER_NAME PHASER_ADD_BLEND_FS","precision mediump float;","uniform sampler2D uMainSampler1;","uniform sampler2D uMainSampler2;","uniform float uStrength;","varying vec2 outTexCoord;","void main ()","{"," vec4 frame1 = texture2D(uMainSampler1, outTexCoord);"," vec4 frame2 = texture2D(uMainSampler2, outTexCoord);"," gl_FragColor = frame1 + frame2 * uStrength;","}"].join(` +`)},78908:c=>{c.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);"," if (!uInvertMaskAlpha)"," {"," mainColor *= maskColor.a;"," }"," else"," {"," mainColor *= (1.0 - maskColor.a);"," }"," gl_FragColor = mainColor;","}"].join(` +`)},85191:c=>{c.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(` +`)},96293:c=>{c.exports=["#define SHADER_NAME PHASER_COLORMATRIX_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform float uColorMatrix[20];","uniform float uAlpha;","varying vec2 outTexCoord;","void main ()","{"," vec4 c = texture2D(uMainSampler, outTexCoord);"," if (uAlpha == 0.0)"," {"," gl_FragColor = c;"," return;"," }"," if (c.a > 0.0)"," {"," c.rgb /= c.a;"," }"," vec4 result;"," result.r = (uColorMatrix[0] * c.r) + (uColorMatrix[1] * c.g) + (uColorMatrix[2] * c.b) + (uColorMatrix[3] * c.a) + uColorMatrix[4];"," result.g = (uColorMatrix[5] * c.r) + (uColorMatrix[6] * c.g) + (uColorMatrix[7] * c.b) + (uColorMatrix[8] * c.a) + uColorMatrix[9];"," result.b = (uColorMatrix[10] * c.r) + (uColorMatrix[11] * c.g) + (uColorMatrix[12] * c.b) + (uColorMatrix[13] * c.a) + uColorMatrix[14];"," result.a = (uColorMatrix[15] * c.r) + (uColorMatrix[16] * c.g) + (uColorMatrix[17] * c.b) + (uColorMatrix[18] * c.a) + uColorMatrix[19];"," vec3 rgb = mix(c.rgb, result.rgb, uAlpha);"," rgb *= result.a;"," gl_FragColor = vec4(rgb, result.a);","}"].join(` +`)},36682:c=>{c.exports=["#define SHADER_NAME PHASER_COPY_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform float uBrightness;","varying vec2 outTexCoord;","void main ()","{"," gl_FragColor = texture2D(uMainSampler, outTexCoord) * uBrightness;","}"].join(` +`)},99155:c=>{c.exports=["#define SHADER_NAME BARREL_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform float amount;","varying vec2 outTexCoord;","vec2 Distort(vec2 p)","{"," float theta = atan(p.y, p.x);"," float radius = length(p);"," radius = pow(radius, amount);"," p.x = radius * cos(theta);"," p.y = radius * sin(theta);"," return 0.5 * (p + 1.0);","}","void main()","{"," vec2 xy = 2.0 * outTexCoord - 1.0;"," vec2 texCoord = outTexCoord;"," if (length(xy) < 1.0)"," {"," texCoord = Distort(xy);"," }"," gl_FragColor = texture2D(uMainSampler, texCoord);","}"].join(` +`)},24400:c=>{c.exports=["#define SHADER_NAME BLOOM_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 offset;","uniform float strength;","uniform vec3 color;","varying vec2 outTexCoord;","void main ()","{"," vec4 sum = texture2D(uMainSampler, outTexCoord) * 0.204164 * strength;"," sum = sum + texture2D(uMainSampler, outTexCoord + offset * 1.407333) * 0.304005;"," sum = sum + texture2D(uMainSampler, outTexCoord - offset * 1.407333) * 0.304005;"," sum = sum + texture2D(uMainSampler, outTexCoord + offset * 3.294215) * 0.093913;"," gl_FragColor = (sum + texture2D(uMainSampler, outTexCoord - offset * 3.294215) * 0.093913) * vec4(color, 1);","}"].join(` +`)},94328:c=>{c.exports=["#define SHADER_NAME BLUR_HIGH_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform vec2 offset;","uniform float strength;","uniform vec3 color;","varying vec2 outTexCoord;","void main ()","{"," vec2 uv = outTexCoord;"," vec4 col = vec4(0.0);"," vec2 off1 = vec2(1.411764705882353) * offset * strength;"," vec2 off2 = vec2(3.2941176470588234) * offset * strength;"," vec2 off3 = vec2(5.176470588235294) * offset * strength;"," col += texture2D(uMainSampler, uv) * 0.1964825501511404;"," col += texture2D(uMainSampler, uv + (off1 / resolution)) * 0.2969069646728344;"," col += texture2D(uMainSampler, uv - (off1 / resolution)) * 0.2969069646728344;"," col += texture2D(uMainSampler, uv + (off2 / resolution)) * 0.09447039785044732;"," col += texture2D(uMainSampler, uv - (off2 / resolution)) * 0.09447039785044732;"," col += texture2D(uMainSampler, uv + (off3 / resolution)) * 0.010381362401148057;"," col += texture2D(uMainSampler, uv - (off3 / resolution)) * 0.010381362401148057;"," gl_FragColor = col * vec4(color, 1.0);","}"].join(` +`)},41514:c=>{c.exports=["#define SHADER_NAME BLUR_LOW_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform vec2 offset;","uniform float strength;","uniform vec3 color;","varying vec2 outTexCoord;","void main ()","{"," vec2 uv = outTexCoord;"," vec4 col = vec4(0.0);"," vec2 offset = vec2(1.333) * offset * strength;"," col += texture2D(uMainSampler, uv) * 0.29411764705882354;"," col += texture2D(uMainSampler, uv + (offset / resolution)) * 0.35294117647058826;"," col += texture2D(uMainSampler, uv - (offset / resolution)) * 0.35294117647058826;"," gl_FragColor = col * vec4(color, 1.0);","}"].join(` +`)},51078:c=>{c.exports=["#define SHADER_NAME BLUR_MED_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform vec2 offset;","uniform float strength;","uniform vec3 color;","varying vec2 outTexCoord;","void main ()","{"," vec2 uv = outTexCoord;"," vec4 col = vec4(0.0);"," vec2 off1 = vec2(1.3846153846) * offset * strength;"," vec2 off2 = vec2(3.2307692308) * offset * strength;"," col += texture2D(uMainSampler, uv) * 0.2270270270;"," col += texture2D(uMainSampler, uv + (off1 / resolution)) * 0.3162162162;"," col += texture2D(uMainSampler, uv - (off1 / resolution)) * 0.3162162162;"," col += texture2D(uMainSampler, uv + (off2 / resolution)) * 0.0702702703;"," col += texture2D(uMainSampler, uv - (off2 / resolution)) * 0.0702702703;"," gl_FragColor = col * vec4(color, 1.0);","}"].join(` +`)},90610:c=>{c.exports=["#define SHADER_NAME BOKEH_FS","precision mediump float;","#define ITERATIONS 100.0","#define ONEOVER_ITR 1.0 / ITERATIONS","#define PI 3.141596","#define GOLDEN_ANGLE 2.39996323","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform float radius;","uniform float amount;","uniform float contrast;","uniform bool isTiltShift;","uniform float strength;","uniform vec2 blur;","varying vec2 outTexCoord;","vec2 Sample (in float theta, inout float r)","{"," r += 1.0 / r;"," return (r - 1.0) * vec2(cos(theta), sin(theta)) * 0.06;","}","vec3 Bokeh (sampler2D tex, vec2 uv, float radius)","{"," vec3 acc = vec3(0.0);"," vec3 div = vec3(0.0);"," vec2 pixel = vec2(resolution.y / resolution.x, 1.0) * radius * .025;"," float r = 1.0;"," for (float j = 0.0; j < GOLDEN_ANGLE * ITERATIONS; j += GOLDEN_ANGLE)"," {"," vec3 col = texture2D(tex, uv + pixel * Sample(j, r)).xyz;"," col = contrast > 0.0 ? col * col * (1.0 + contrast) : col;"," vec3 bokeh = vec3(0.5) + pow(col, vec3(10.0)) * amount;"," acc += col * bokeh;"," div += bokeh;"," }"," return acc / div;","}","void main ()","{"," float shift = 1.0;"," if (isTiltShift)"," {"," vec2 uv = vec2(gl_FragCoord.xy / resolution + vec2(-0.5, -0.5)) * 2.0;"," float centerStrength = 1.0;"," shift = length(uv * blur * strength) * centerStrength;"," }"," gl_FragColor = vec4(Bokeh(uMainSampler, outTexCoord * vec2(1.0, 1.0), radius * shift), 0.0);","}"].join(` +`)},91899:c=>{c.exports=["#define SHADER_NAME CIRCLE_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform vec3 color;","uniform vec4 backgroundColor;","uniform float thickness;","uniform float scale;","uniform float feather;","varying vec2 outTexCoord;","void main ()","{"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec2 position = (gl_FragCoord.xy / resolution.xy) * 2.0 - 1.0;"," float aspectRatio = resolution.x / resolution.y;"," position.x *= aspectRatio;"," float grad = length(position);"," float outer = aspectRatio;"," float inner = outer - (thickness * 2.0 / resolution.y);"," if (aspectRatio >= 1.0)"," {"," float f = 2.0 + (resolution.y / resolution.x);"," outer = 1.0;"," inner = 1.0 - (thickness * f / resolution.x);"," }"," outer *= scale;"," inner *= scale;"," float circle = smoothstep(outer, outer - 0.01, grad);"," float ring = circle - smoothstep(inner, inner - feather, grad);"," texture = mix(backgroundColor * backgroundColor.a, texture, texture.a);"," texture = (texture * (circle - ring));"," gl_FragColor = vec4(texture.rgb + (ring * color), texture.a);","}"].join(` +`)},47838:c=>{c.exports=["#define SHADER_NAME DISPLACEMENT_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform sampler2D uDisplacementSampler;","uniform vec2 amount;","varying vec2 outTexCoord;","void main ()","{"," vec2 disp = (-vec2(0.5, 0.5) + texture2D(uDisplacementSampler, outTexCoord).rr) * amount;"," gl_FragColor = texture2D(uMainSampler, outTexCoord + disp).rgba;","}"].join(` +`)},98656:c=>{c.exports=["#define SHADER_NAME GLOW_FS","precision mediump float;","uniform sampler2D uMainSampler;","varying vec2 outTexCoord;","uniform float outerStrength;","uniform float innerStrength;","uniform vec2 resolution;","uniform vec4 glowColor;","uniform bool knockout;","const float PI = 3.14159265358979323846264;","const float DIST = __DIST__;","const float SIZE = min(__SIZE__, PI * 2.0);","const float STEP = ceil(PI * 2.0 / SIZE);","const float MAX_ALPHA = STEP * DIST * (DIST + 1.0) / 2.0;","void main ()","{"," vec2 px = vec2(1.0 / resolution.x, 1.0 / resolution.y);"," float totalAlpha = 0.0;"," vec2 direction;"," vec2 displaced;"," vec4 color;"," for (float angle = 0.0; angle < PI * 2.0; angle += SIZE)"," {"," direction = vec2(cos(angle), sin(angle)) * px;"," for (float curDistance = 0.0; curDistance < DIST; curDistance++)"," {"," displaced = outTexCoord + direction * (curDistance + 1.0);"," color = texture2D(uMainSampler, displaced);"," totalAlpha += (DIST - curDistance) * color.a;"," }"," }"," color = texture2D(uMainSampler, outTexCoord);"," float alphaRatio = (totalAlpha / MAX_ALPHA);"," float innerGlowAlpha = (1.0 - alphaRatio) * innerStrength * color.a;"," float innerGlowStrength = min(1.0, innerGlowAlpha);"," vec4 innerColor = mix(color, glowColor, innerGlowStrength);"," float outerGlowAlpha = alphaRatio * outerStrength * (1.0 - color.a);"," float outerGlowStrength = min(1.0 - innerColor.a, outerGlowAlpha);"," vec4 outerGlowColor = outerGlowStrength * glowColor.rgba;"," if (knockout)"," {"," float resultAlpha = outerGlowAlpha + innerGlowAlpha;"," gl_FragColor = vec4(glowColor.rgb * resultAlpha, resultAlpha);"," }"," else"," {"," gl_FragColor = innerColor + outerGlowColor;"," }","}"].join(` +`)},70463:c=>{c.exports=["#define SHADER_NAME GRADIENT_FS","#define SRGB_TO_LINEAR(c) pow((c), vec3(2.2))","#define LINEAR_TO_SRGB(c) pow((c), vec3(1.0 / 2.2))","#define SRGB(r, g, b) SRGB_TO_LINEAR(vec3(float(r), float(g), float(b)) / 255.0)","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 positionFrom;","uniform vec2 positionTo;","uniform vec3 color1;","uniform vec3 color2;","uniform float alpha;","uniform int size;","varying vec2 outTexCoord;","float gradientNoise(in vec2 uv)","{"," const vec3 magic = vec3(0.06711056, 0.00583715, 52.9829189);"," return fract(magic.z * fract(dot(uv, magic.xy)));","}","float stepped (in float s, in float scale, in int steps)","{"," return steps > 0 ? floor( s / ((1.0 * scale) / float(steps))) * 1.0 / float(steps - 1) : s;","}","void main ()","{"," vec2 a = positionFrom;"," vec2 b = positionTo;"," vec2 ba = b - a;"," float d = dot(outTexCoord - a, ba) / dot(ba, ba);"," float t = size > 0 ? stepped(d, 1.0, size) : d;"," t = smoothstep(0.0, 1.0, clamp(t, 0.0, 1.0));"," vec3 color = mix(SRGB(color1.r, color1.g, color1.b), SRGB(color2.r, color2.g, color2.b), t);"," color = LINEAR_TO_SRGB(color);"," color += (1.0 / 255.0) * gradientNoise(outTexCoord) - (0.5 / 255.0);"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," gl_FragColor = vec4(mix(color.rgb, texture.rgb, alpha), 1.0) * texture.a;","}"].join(` +`)},50831:c=>{c.exports=["#define SHADER_NAME PIXELATE_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform float amount;","varying vec2 outTexCoord;","void main ()","{"," float pixelSize = floor(2.0 + amount);"," vec2 center = pixelSize * floor(outTexCoord * resolution / pixelSize) + pixelSize * vec2(0.5, 0.5);"," vec2 corner1 = center + pixelSize * vec2(-0.5, -0.5);"," vec2 corner2 = center + pixelSize * vec2(+0.5, -0.5);"," vec2 corner3 = center + pixelSize * vec2(+0.5, +0.5);"," vec2 corner4 = center + pixelSize * vec2(-0.5, +0.5);"," vec4 pixel = 0.4 * texture2D(uMainSampler, center / resolution);"," pixel += 0.15 * texture2D(uMainSampler, corner1 / resolution);"," pixel += 0.15 * texture2D(uMainSampler, corner2 / resolution);"," pixel += 0.15 * texture2D(uMainSampler, corner3 / resolution);"," pixel += 0.15 * texture2D(uMainSampler, corner4 / resolution);"," gl_FragColor = pixel;","}"].join(` +`)},92595:c=>{c.exports=["#define SHADER_NAME SHADOW_FS","precision mediump float;","uniform sampler2D uMainSampler;","varying vec2 outTexCoord;","uniform vec2 lightPosition;","uniform vec4 color;","uniform float decay;","uniform float power;","uniform float intensity;","uniform int samples;","const int MAX = 12;","void main ()","{"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec2 pc = (lightPosition - outTexCoord) * intensity;"," float shadow = 0.0;"," float limit = max(float(MAX), float(samples));"," for (int i = 0; i < MAX; ++i)"," {"," if (i >= samples)"," {"," break;"," }"," shadow += texture2D(uMainSampler, outTexCoord + float(i) * decay / limit * pc).a * power;"," }"," float mask = 1.0 - texture.a;"," gl_FragColor = mix(texture, color, shadow * mask);","}"].join(` +`)},72464:c=>{c.exports=["#define SHADER_NAME SHINE_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform bool reveal;","uniform float speed;","uniform float time;","uniform float lineWidth;","uniform float gradient;","varying vec2 outTexCoord;","void main ()","{"," vec2 uv = gl_FragCoord.xy / resolution.xy;"," vec4 tex = texture2D(uMainSampler, outTexCoord);"," vec4 col1 = vec4(0.3, 0.0, 0.0, 1.0);"," vec4 col2 = vec4(0.85, 0.85, 0.85, 1.0);"," uv.x = uv.x - mod(time * speed, 2.0) + 0.5;"," float y = uv.x * gradient;"," float s = smoothstep(y - lineWidth, y, uv.y) - smoothstep(y, y + lineWidth, uv.y);"," gl_FragColor = (((s * col1) + (s * col2)) * tex);"," if (!reveal)"," {"," gl_FragColor += tex;"," }","}"].join(` +`)},39249:c=>{c.exports=["#define SHADER_NAME VIGNETTE_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform float radius;","uniform float strength;","uniform vec2 position;","varying vec2 outTexCoord;","void main ()","{"," vec4 col = vec4(1.0);"," float d = length(outTexCoord - position);"," if (d <= radius)"," {"," float g = d / radius;"," g = sin(g * 3.14 * strength);"," col = vec4(g * g * g);"," }"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," gl_FragColor = texture * (1.0 - col);","}"].join(` +`)},2878:c=>{c.exports=["#define SHADER_NAME WIPE_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec4 config;","uniform bool reveal;","varying vec2 outTexCoord;","void main ()","{"," vec2 uv = outTexCoord;"," vec4 color0;"," vec4 color1;"," if (reveal)"," {"," color0 = vec4(0);"," color1 = texture2D(uMainSampler, uv);"," }"," else"," {"," color0 = texture2D(uMainSampler, uv);"," color1 = vec4(0);"," }"," float distance = config.x;"," float width = config.y;"," float direction = config.z;"," float axis = uv.x;"," if (config.w == 1.0)"," {"," axis = uv.y;"," }"," float adjust = mix(width, -width, distance);"," float value = smoothstep(distance - width, distance + width, abs(direction - axis) + adjust);"," gl_FragColor = mix(color1, color0, value);","}"].join(` +`)},31063:c=>{c.exports=["#define SHADER_NAME PHASER_LIGHT_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;","uniform int uLightCount;","varying vec2 outTexCoord;","varying float outTexId;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," vec3 finalColor = vec3(0.0, 0.0, 0.0);"," vec4 texel = vec4(outTint.bgr * outTint.a, outTint.a);"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec4 color = texture * texel;"," if (outTintEffect == 1.0)"," {"," color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);"," }"," else if (outTintEffect == 2.0)"," {"," color = texel;"," }"," 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)"," {"," if (index < uLightCount)"," {"," 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(` +`)},48247:c=>{c.exports=["#define SHADER_NAME PHASER_LINEAR_BLEND_FS","precision mediump float;","uniform sampler2D uMainSampler1;","uniform sampler2D uMainSampler2;","uniform float uStrength;","varying vec2 outTexCoord;","void main ()","{"," vec4 frame1 = texture2D(uMainSampler1, outTexCoord);"," vec4 frame2 = texture2D(uMainSampler2, outTexCoord);"," gl_FragColor = mix(frame1, frame2 * uStrength, 0.5);","}"].join(` +`)},41214:c=>{c.exports=["#define SHADER_NAME PHASER_MESH_FS","precision mediump float;","uniform vec3 uLightPosition;","uniform vec3 uLightAmbient;","uniform vec3 uLightDiffuse;","uniform vec3 uLightSpecular;","uniform vec3 uFogColor;","uniform float uFogNear;","uniform float uFogFar;","uniform vec3 uMaterialAmbient;","uniform vec3 uMaterialDiffuse;","uniform vec3 uMaterialSpecular;","uniform float uMaterialShine;","uniform vec3 uCameraPosition;","uniform sampler2D uTexture;","varying vec2 vTextureCoord;","varying vec3 vNormal;","varying vec3 vPosition;","void main (void)","{"," vec4 color = texture2D(uTexture, vTextureCoord);"," vec3 ambient = uLightAmbient * uMaterialAmbient;"," vec3 norm = normalize(vNormal);"," vec3 lightDir = normalize(uLightPosition - vPosition);"," float diff = max(dot(norm, lightDir), 0.0);"," vec3 diffuse = uLightDiffuse * (diff * uMaterialDiffuse);"," vec3 viewDir = normalize(uCameraPosition - vPosition);"," vec3 reflectDir = reflect(-lightDir, norm);"," float spec = pow(max(dot(viewDir, reflectDir), 0.0), uMaterialShine);"," vec3 specular = uLightSpecular * (spec * uMaterialSpecular);"," vec3 result = (ambient + diffuse + specular) * color.rgb;"," float depth = gl_FragCoord.z / gl_FragCoord.w;"," float fogFactor = smoothstep(uFogNear, uFogFar, depth);"," gl_FragColor.rgb = mix(result.rgb, uFogColor, fogFactor);"," gl_FragColor.a = color.a;","}"].join(` +`)},39653:c=>{c.exports=["#define SHADER_NAME PHASER_MESH_VS","precision mediump float;","attribute vec3 aVertexPosition;","attribute vec3 aVertexNormal;","attribute vec2 aTextureCoord;","uniform mat4 uViewProjectionMatrix;","uniform mat4 uModelMatrix;","uniform mat4 uNormalMatrix;","varying vec2 vTextureCoord;","varying vec3 vNormal;","varying vec3 vPosition;","void main ()","{"," vTextureCoord = aTextureCoord;"," vPosition = vec3(uModelMatrix * vec4(aVertexPosition, 1.0));"," vNormal = vec3(uNormalMatrix * vec4(aVertexNormal, 1.0));"," gl_Position = uViewProjectionMatrix * uModelMatrix * vec4(aVertexPosition, 1.0);","}"].join(` +`)},62143:c=>{c.exports=["#define SHADER_NAME PHASER_MOBILE_FS","#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","#else","precision mediump float;","#endif","uniform sampler2D uMainSampler;","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," vec4 texel = vec4(outTint.bgr * outTint.a, outTint.a);"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec4 color = texture * texel;"," if (outTintEffect == 1.0)"," {"," color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);"," }"," else if (outTintEffect == 2.0)"," {"," color = texel;"," }"," gl_FragColor = color;","}"].join(` +`)},47940:c=>{c.exports=["#define SHADER_NAME PHASER_MOBILE_VS","precision mediump float;","uniform mat4 uProjectionMatrix;","uniform vec2 uResolution;","attribute vec2 inPosition;","attribute vec2 inTexCoord;","attribute float inTexId;","attribute float inTintEffect;","attribute vec4 inTint;","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);"," outTexCoord = inTexCoord;"," outTint = inTint;"," outTintEffect = inTintEffect;","}"].join(` +`)},98840:c=>{c.exports=["#define SHADER_NAME PHASER_MULTI_FS","#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","#else","precision mediump float;","#endif","uniform sampler2D uMainSampler[%count%];","varying vec2 outTexCoord;","varying float outTexId;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," vec4 texture;"," %forloop%"," vec4 texel = vec4(outTint.bgr * outTint.a, outTint.a);"," vec4 color = texture * texel;"," if (outTintEffect == 1.0)"," {"," color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);"," }"," else if (outTintEffect == 2.0)"," {"," color = texel;"," }"," gl_FragColor = color;","}"].join(` +`)},44667:c=>{c.exports=["#define SHADER_NAME PHASER_MULTI_VS","precision mediump float;","uniform mat4 uProjectionMatrix;","uniform vec2 uResolution;","attribute vec2 inPosition;","attribute vec2 inTexCoord;","attribute float inTexId;","attribute float inTintEffect;","attribute vec4 inTint;","varying vec2 outTexCoord;","varying float outTexId;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);"," outTexCoord = inTexCoord;"," outTexId = inTexId;"," outTint = inTint;"," outTintEffect = inTintEffect;","}"].join(` +`)},4127:c=>{c.exports=["#define SHADER_NAME PHASER_POINTLIGHT_FS","precision mediump float;","uniform vec2 uResolution;","uniform float uCameraZoom;","varying vec4 lightPosition;","varying vec4 lightColor;","varying float lightRadius;","varying float lightAttenuation;","void main ()","{"," vec2 center = (lightPosition.xy + 1.0) * (uResolution.xy * 0.5);"," float distToSurf = length(center - gl_FragCoord.xy);"," float radius = 1.0 - distToSurf / (lightRadius * uCameraZoom);"," float intensity = smoothstep(0.0, 1.0, radius * lightAttenuation);"," vec4 color = vec4(intensity, intensity, intensity, 0.0) * lightColor;"," gl_FragColor = vec4(color.rgb * lightColor.a, color.a);","}"].join(` +`)},89924:c=>{c.exports=["#define SHADER_NAME PHASER_POINTLIGHT_VS","precision mediump float;","uniform mat4 uProjectionMatrix;","attribute vec2 inPosition;","attribute vec2 inLightPosition;","attribute vec4 inLightColor;","attribute float inLightRadius;","attribute float inLightAttenuation;","varying vec4 lightPosition;","varying vec4 lightColor;","varying float lightRadius;","varying float lightAttenuation;","void main ()","{"," lightColor = inLightColor;"," lightRadius = inLightRadius;"," lightAttenuation = inLightAttenuation;"," lightPosition = uProjectionMatrix * vec4(inLightPosition, 1.0, 1.0);"," gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);","}"].join(` +`)},27681:c=>{c.exports=["#define SHADER_NAME PHASER_POSTFX_FS","precision mediump float;","uniform sampler2D uMainSampler;","varying vec2 outTexCoord;","void main ()","{"," gl_FragColor = texture2D(uMainSampler, outTexCoord);","}"].join(` +`)},49627:c=>{c.exports=["#define SHADER_NAME PHASER_QUAD_VS","precision mediump float;","attribute vec2 inPosition;","attribute vec2 inTexCoord;","varying vec2 outFragCoord;","varying vec2 outTexCoord;","void main ()","{"," outFragCoord = inPosition.xy * 0.5 + 0.5;"," outTexCoord = inTexCoord;"," gl_Position = vec4(inPosition, 0, 1);","}"].join(` +`)},45561:c=>{c.exports=["#define SHADER_NAME PHASER_SINGLE_FS","#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","#else","precision mediump float;","#endif","uniform sampler2D uMainSampler;","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec4 texel = vec4(outTint.bgr * outTint.a, outTint.a);"," vec4 color = texture * texel;"," if (outTintEffect == 1.0)"," {"," color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);"," }"," else if (outTintEffect == 2.0)"," {"," color = texel;"," }"," gl_FragColor = color;","}"].join(` +`)},60722:c=>{c.exports=["#define SHADER_NAME PHASER_SINGLE_VS","precision mediump float;","uniform mat4 uProjectionMatrix;","uniform vec2 uResolution;","attribute vec2 inPosition;","attribute vec2 inTexCoord;","attribute float inTexId;","attribute float inTintEffect;","attribute vec4 inTint;","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);"," outTexCoord = inTexCoord;"," outTint = inTint;"," outTintEffect = inTintEffect;","}"].join(` +`)},89350:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2023 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={AddBlendFrag:t(35407),BitmapMaskFrag:t(78908),BitmapMaskVert:t(85191),ColorMatrixFrag:t(96293),CopyFrag:t(36682),FXBarrelFrag:t(99155),FXBloomFrag:t(24400),FXBlurHighFrag:t(94328),FXBlurLowFrag:t(41514),FXBlurMedFrag:t(51078),FXBokehFrag:t(90610),FXCircleFrag:t(91899),FXDisplacementFrag:t(47838),FXGlowFrag:t(98656),FXGradientFrag:t(70463),FXPixelateFrag:t(50831),FXShadowFrag:t(92595),FXShineFrag:t(72464),FXVignetteFrag:t(39249),FXWipeFrag:t(2878),LightFrag:t(31063),LinearBlendFrag:t(48247),MeshFrag:t(41214),MeshVert:t(39653),MobileFrag:t(62143),MobileVert:t(47940),MultiFrag:t(98840),MultiVert:t(44667),PointLightFrag:t(4127),PointLightVert:t(89924),PostFXFrag:t(27681),QuadVert:t(49627),SingleFrag:t(45561),SingleVert:t(60722)}},93567:(c,y,t)=>{/** + * @author Benjamin D. Richards + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=new u({initialize:function(r,n,e){this.webGLAttribLocation=-1,this.gl=r,this.program=n,this.name=e,this.createResource()},createResource:function(){if(this.program.webGLProgram===null){this.webGLAttribLocation=-1;return}var a=this.gl;a.isContextLost()||(this.webGLAttribLocation=a.getAttribLocation(this.program.webGLProgram,this.name))},destroy:function(){this.gl=null,this.program=null,this.name=null,this.webGLAttribLocation=-1}});c.exports=p},26128:(c,y,t)=>{/** + * @author Benjamin D. Richards + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=new u({initialize:function(r,n,e,s){this.webGLBuffer=null,this.gl=r,this.initialDataOrSize=n,this.bufferType=e,this.bufferUsage=s,this.createResource()},createResource:function(){if(this.initialDataOrSize!==null){var a=this.gl;if(!a.isContextLost()){var r=this.bufferType,n=a.createBuffer();this.webGLBuffer=n,a.bindBuffer(r,this.webGLBuffer),a.bufferData(r,this.initialDataOrSize,this.bufferUsage),a.bindBuffer(r,null)}}},destroy:function(){var a=this.gl;a.isContextLost()||a.deleteBuffer(this.webGLBuffer),this.webGLBuffer=null,this.initialDataOrSize=null,this.gl=null}});c.exports=p},84387:(c,y,t)=>{/** + * @author Benjamin D. Richards + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p={36054:"Incomplete Attachment",36055:"Missing Attachment",36057:"Incomplete Dimensions",36061:"Framebuffer Unsupported"},a=new u({initialize:function(n,e,s,h,i){this.webGLFramebuffer=null,this.gl=n,this.width=e,this.height=s,this.renderTexture=h,this.addDepthStencilBuffer=!!i,this.createResource()},createResource:function(){var r=this.gl;if(!r.isContextLost()){var n=this.renderTexture,e=0,s=r.createFramebuffer();if(this.webGLFramebuffer=s,r.bindFramebuffer(r.FRAMEBUFFER,s),n.isRenderTexture=!0,n.isAlphaPremultiplied=!1,r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,n.webGLTexture,0),e=r.checkFramebufferStatus(r.FRAMEBUFFER),e!==r.FRAMEBUFFER_COMPLETE)throw new Error("Framebuffer status: "+(p[e]||e));if(this.addDepthStencilBuffer){var h=r.createRenderbuffer();r.bindRenderbuffer(r.RENDERBUFFER,h),r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,this.width,this.height),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.RENDERBUFFER,h)}r.bindFramebuffer(r.FRAMEBUFFER,null)}},destroy:function(){if(this.webGLFramebuffer!==null){var r=this.gl;if(!r.isContextLost()){r.bindFramebuffer(r.FRAMEBUFFER,this.webGLFramebuffer);var n=r.getFramebufferAttachmentParameter(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME);n!==null&&(r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,null,0),r.deleteTexture(n));var e=r.getFramebufferAttachmentParameter(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME);e!==null&&r.deleteRenderbuffer(e),r.bindFramebuffer(r.FRAMEBUFFER,null),r.deleteFramebuffer(this.webGLFramebuffer)}this.renderTexture=null,this.webGLFramebuffer=null,this.gl=null}}});c.exports=a},1482:(c,y,t)=>{/** + * @author Benjamin D. Richards + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=new u({initialize:function(r,n,e){this.webGLProgram=null,this.gl=r,this.vertexSource=n,this.fragmentSource=e,this.createResource()},createResource:function(){var a=this.gl;if(!a.isContextLost()){var r=a.createProgram(),n=a.createShader(a.VERTEX_SHADER),e=a.createShader(a.FRAGMENT_SHADER);a.shaderSource(n,this.vertexSource),a.shaderSource(e,this.fragmentSource),a.compileShader(n),a.compileShader(e);var s=`Shader failed: +`;if(!a.getShaderParameter(n,a.COMPILE_STATUS))throw new Error("Vertex "+s+a.getShaderInfoLog(n));if(!a.getShaderParameter(e,a.COMPILE_STATUS))throw new Error("Fragment "+s+a.getShaderInfoLog(e));if(a.attachShader(r,n),a.attachShader(r,e),a.linkProgram(r),!a.getProgramParameter(r,a.LINK_STATUS))throw new Error("Link "+s+a.getProgramInfoLog(r));a.useProgram(r),this.webGLProgram=r}},destroy:function(){this.webGLProgram&&(this.gl.isContextLost()||this.gl.deleteProgram(this.webGLProgram),this.webGLProgram=null,this.gl=null)}});c.exports=p},82751:(c,y,t)=>{/** + * @author Benjamin D. Richards + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(50030),a=new u({initialize:function(n,e,s,h,i,o,l,f,d,v,m,g,x){this.webGLTexture=null,this.isRenderTexture=!1,this.gl=n,this.mipLevel=e,this.minFilter=s,this.magFilter=h,this.wrapT=i,this.wrapS=o,this.format=l,this.pixels=f,this.width=d,this.height=v,this.pma=m??!0,this.forceSize=!!g,this.flipY=!!x,this.__SPECTOR_Metadata={},this.createResource()},createResource:function(){var r=this.gl;if(!r.isContextLost()){if(this.pixels instanceof a){this.webGLTexture=this.pixels.webGLTexture;return}var n=r.createTexture();n.__SPECTOR_Metadata=this.__SPECTOR_Metadata,this.webGLTexture=n,this._processTexture()}},update:function(r,n,e,s,h,i,o,l,f){if(!(n===0||e===0)){this.pixels=r,this.width=n,this.height=e,this.flipY=s,this.wrapS=h,this.wrapT=i,this.minFilter=o,this.magFilter=l,this.format=f;var d=this.gl;d.isContextLost()||this._processTexture()}},_processTexture:function(){var r=this.gl;r.activeTexture(r.TEXTURE0);var n=r.getParameter(r.TEXTURE_BINDING_2D);r.bindTexture(r.TEXTURE_2D,this.webGLTexture),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.minFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,this.magFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,this.wrapS),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,this.wrapT),r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.pma),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,this.flipY);var e=this.pixels,s=this.mipLevel,h=this.width,i=this.height,o=this.format,l=!1;if(e==null)r.texImage2D(r.TEXTURE_2D,s,o,h,i,0,o,r.UNSIGNED_BYTE,null),l=p(h,i);else if(e.compressed){h=e.width,i=e.height,l=e.generateMipmap;for(var f=0;f{/** + * @author Benjamin D. Richards + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=new u({initialize:function(r,n,e){this.webGLUniformLocation=null,this.gl=r,this.program=n,this.name=e,this.createResource()},createResource:function(){if(this.program.webGLProgram===null){this.webGLUniformLocation=null;return}var a=this.gl;a.isContextLost()||(this.webGLUniformLocation=a.getUniformLocation(this.program.webGLProgram,this.name))},destroy:function(){this.gl=null,this.program=null,this.name=null,this.webGLUniformLocation=null}});c.exports=p},9503:(c,y,t)=>{/** + * @author Benjamin D. Richards + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u={WebGLAttribLocationWrapper:t(93567),WebGLBufferWrapper:t(26128),WebGLProgramWrapper:t(1482),WebGLTextureWrapper:t(82751),WebGLFramebufferWrapper:t(84387),WebGLUniformLocationWrapper:t(57183)};c.exports=u},76531:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(13560),p=t(83419),a=t(50792),r=t(97480),n=t(8443),e=t(57811),s=t(74403),h=t(45818),i=t(29747),o=t(87841),l=t(86555),f=t(56583),d=t(26099),v=t(38058),m=new p({Extends:a,initialize:function(x){a.call(this),this.game=x,this.canvas,this.canvasBounds=new o,this.parent=null,this.parentIsWindow=!1,this.parentSize=new l,this.gameSize=new l,this.baseSize=new l,this.displaySize=new l,this.scaleMode=u.SCALE_MODE.NONE,this.zoom=1,this._resetZoom=!1,this.displayScale=new d(1,1),this.autoRound=!1,this.autoCenter=u.CENTER.NO_CENTER,this.orientation=u.ORIENTATION.LANDSCAPE,this.fullscreen,this.fullscreenTarget=null,this._createdFullscreenTarget=!1,this.dirty=!1,this.resizeInterval=500,this._lastCheck=0,this._checkOrientation=!1,this.domlisteners={orientationChange:i,windowResize:i,fullScreenChange:i,fullScreenError:i}},preBoot:function(){this.parseConfig(this.game.config),this.game.events.once(n.BOOT,this.boot,this)},boot:function(){var g=this.game;this.canvas=g.canvas,this.fullscreen=g.device.fullscreen;var x=this.scaleMode;x!==u.SCALE_MODE.RESIZE&&x!==u.SCALE_MODE.EXPAND&&this.displaySize.setAspectMode(x),x===u.SCALE_MODE.NONE?this.resize(this.width,this.height):(this.getParentBounds(),this.parentSize.width>0&&this.parentSize.height>0&&this.displaySize.setParent(this.parentSize),this.refresh()),g.events.on(n.PRE_STEP,this.step,this),g.events.once(n.READY,this.refresh,this),g.events.once(n.DESTROY,this.destroy,this),this.startListeners()},parseConfig:function(g){this.getParent(g),this.getParentBounds();var x=g.width,S=g.height,C=g.scaleMode,E=g.zoom,P=g.autoRound;if(typeof x=="string")if(x.substr(-1)!=="%")x=parseInt(x,10);else{var R=this.parentSize.width;R===0&&(R=window.innerWidth);var M=parseInt(x,10)/100;x=Math.floor(R*M)}if(typeof S=="string")if(S.substr(-1)!=="%")S=parseInt(S,10);else{var A=this.parentSize.height;A===0&&(A=window.innerHeight);var L=parseInt(S,10)/100;S=Math.floor(A*L)}this.scaleMode=C,this.autoRound=P,this.autoCenter=g.autoCenter,this.resizeInterval=g.resizeInterval,P&&(x=Math.floor(x),S=Math.floor(S)),this.gameSize.setSize(x,S),E===u.ZOOM.MAX_ZOOM&&(E=this.getMaxZoom()),this.zoom=E,E!==1&&(this._resetZoom=!0),this.baseSize.setSize(x,S),P&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),g.minWidth>0&&this.displaySize.setMin(g.minWidth*E,g.minHeight*E),g.maxWidth>0&&this.displaySize.setMax(g.maxWidth*E,g.maxHeight*E),this.displaySize.setSize(x,S),(g.snapWidth>0||g.snapHeight>0)&&this.displaySize.setSnap(g.snapWidth,g.snapHeight),this.orientation=h(x,S)},getParent:function(g){var x=g.parent;if(x!==null){if(this.parent=s(x),this.parentIsWindow=this.parent===document.body,g.expandParent&&g.scaleMode!==u.SCALE_MODE.NONE){var S=this.parent.getBoundingClientRect();(this.parentIsWindow||S.height===0)&&(document.documentElement.style.height="100%",document.body.style.height="100%",S=this.parent.getBoundingClientRect(),!this.parentIsWindow&&S.height===0&&(this.parent.style.overflow="hidden",this.parent.style.width="100%",this.parent.style.height="100%"))}g.fullscreenTarget&&!this.fullscreenTarget&&(this.fullscreenTarget=s(g.fullscreenTarget))}},getParentBounds:function(){if(!this.parent)return!1;var g=this.parentSize,x=this.parent.getBoundingClientRect();this.parentIsWindow&&this.game.device.os.iOS&&(x.height=e(!0));var S=x.width,C=x.height;if(g.width!==S||g.height!==C)return g.setSize(S,C),!0;if(this.canvas){var E=this.canvasBounds,P=this.canvas.getBoundingClientRect();if(P.x!==E.x||P.y!==E.y)return!0}return!1},lockOrientation:function(g){var x=screen.lockOrientation||screen.mozLockOrientation||screen.msLockOrientation;return x?x.call(screen,g):!1},setParentSize:function(g,x){return this.parentSize.setSize(g,x),this.refresh()},setGameSize:function(g,x){var S=this.autoRound;S&&(g=Math.floor(g),x=Math.floor(x));var C=this.width,E=this.height;return this.gameSize.resize(g,x),this.baseSize.resize(g,x),S&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setAspectRatio(g/x),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height,this.refresh(C,E)},resize:function(g,x){var S=this.zoom,C=this.autoRound;C&&(g=Math.floor(g),x=Math.floor(x));var E=this.width,P=this.height;this.gameSize.resize(g,x),this.baseSize.resize(g,x),C&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setSize(g*S,x*S),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height;var R=this.canvas.style,M=g*S,A=x*S;return C&&(M=Math.floor(M),A=Math.floor(A)),(M!==g||A!==x)&&(R.width=M+"px",R.height=A+"px"),this.refresh(E,P)},setZoom:function(g){return this.zoom=g,this._resetZoom=!0,this.refresh()},setMaxZoom:function(){return this.zoom=this.getMaxZoom(),this._resetZoom=!0,this.refresh()},setSnap:function(g,x){return g===void 0&&(g=0),x===void 0&&(x=g),this.displaySize.setSnap(g,x),this.refresh()},refresh:function(g,x){g===void 0&&(g=this.width),x===void 0&&(x=this.height),this.updateScale(),this.updateBounds(),this.updateOrientation(),this.displayScale.set(this.baseSize.width/this.canvasBounds.width,this.baseSize.height/this.canvasBounds.height);var S=this.game.domContainer;if(S){this.baseSize.setCSS(S);var C=this.canvas.style,E=S.style;E.transform="scale("+this.displaySize.width/this.baseSize.width+","+this.displaySize.height/this.baseSize.height+")",E.marginLeft=C.marginLeft,E.marginTop=C.marginTop}return this.emit(r.RESIZE,this.gameSize,this.baseSize,this.displaySize,g,x),this},updateOrientation:function(){if(this._checkOrientation){this._checkOrientation=!1;var g=h(this.width,this.height);g!==this.orientation&&(this.orientation=g,this.emit(r.ORIENTATION_CHANGE,g))}},updateScale:function(){var g=this.canvas.style,x=this.gameSize.width,S=this.gameSize.height,C,E,P=this.zoom,R=this.autoRound;if(this.scaleMode===u.SCALE_MODE.NONE)this.displaySize.setSize(x*P,S*P),C=this.displaySize.width,E=this.displaySize.height,R&&(C=Math.floor(C),E=Math.floor(E)),this._resetZoom&&(g.width=C+"px",g.height=E+"px",this._resetZoom=!1);else if(this.scaleMode===u.SCALE_MODE.RESIZE)this.displaySize.setSize(this.parentSize.width,this.parentSize.height),this.gameSize.setSize(this.displaySize.width,this.displaySize.height),this.baseSize.setSize(this.displaySize.width,this.displaySize.height),C=this.displaySize.width,E=this.displaySize.height,R&&(C=Math.floor(C),E=Math.floor(E)),this.canvas.width=C,this.canvas.height=E;else if(this.scaleMode===u.SCALE_MODE.EXPAND){var M=this.game.config.width,A=this.game.config.height;this.displaySize.setSize(this.parentSize.width,this.parentSize.height),C=this.displaySize.width,E=this.displaySize.height,R&&(C=Math.floor(C),E=Math.floor(E)),g.width=C+"px",g.height=E+"px";var L=this.parentSize.width/M,w=this.parentSize.height/A;L=0?0:-(E.x*P.x),M=E.y>=0?0:-(E.y*P.y),A;C.width>=E.width?A=S.width:A=S.width-(E.width-C.width)*P.x;var L;return C.height>=E.height?L=S.height:L=S.height-(E.height-C.height)*P.y,x.setTo(R,M,A,L),g&&(x.width/=g.zoomX,x.height/=g.zoomY,x.centerX=g.centerX+g.scrollX,x.centerY=g.centerY+g.scrollY),x},step:function(g,x){this.parent&&(this._lastCheck+=x,(this.dirty||this._lastCheck>this.resizeInterval)&&(this.getParentBounds()&&this.refresh(),this.dirty=!1,this._lastCheck=0))},stopListeners:function(){var g=this.domlisteners;screen.orientation&&screen.orientation.addEventListener?screen.orientation.removeEventListener("change",g.orientationChange,!1):window.removeEventListener("orientationchange",g.orientationChange,!1),window.removeEventListener("resize",g.windowResize,!1);var x=["webkit","moz",""];x.forEach(function(S){document.removeEventListener(S+"fullscreenchange",g.fullScreenChange,!1),document.removeEventListener(S+"fullscreenerror",g.fullScreenError,!1)}),document.removeEventListener("MSFullscreenChange",g.fullScreenChange,!1),document.removeEventListener("MSFullscreenError",g.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===u.ORIENTATION.PORTRAIT}},isLandscape:{get:function(){return this.orientation===u.ORIENTATION.LANDSCAPE}},isGamePortrait:{get:function(){return this.height>this.width}},isGameLandscape:{get:function(){return this.width>this.height}}});c.exports=m},64743:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={NO_CENTER:0,CENTER_BOTH:1,CENTER_HORIZONTALLY:2,CENTER_VERTICALLY:3}},39218:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={LANDSCAPE:"landscape-primary",LANDSCAPE_SECONDARY:"landscape-secondary",PORTRAIT:"portrait-primary",PORTRAIT_SECONDARY:"portrait-secondary"}},81050:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={NONE:0,WIDTH_CONTROLS_HEIGHT:1,HEIGHT_CONTROLS_WIDTH:2,FIT:3,ENVELOP:4,RESIZE:5,EXPAND:6}},80805:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={NO_ZOOM:1,ZOOM_2X:2,ZOOM_4X:4,MAX_ZOOM:-1}},13560:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u={CENTER:t(64743),ORIENTATION:t(39218),SCALE_MODE:t(81050),ZOOM:t(80805)};c.exports=u},56139:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="enterfullscreen"},2336:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="fullscreenfailed"},47412:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="fullscreenunsupported"},51452:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="leavefullscreen"},20666:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="orientationchange"},47945:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="resize"},97480:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={ENTER_FULLSCREEN:t(56139),FULLSCREEN_FAILED:t(2336),FULLSCREEN_UNSUPPORTED:t(47412),LEAVE_FULLSCREEN:t(51452),ORIENTATION_CHANGE:t(20666),RESIZE:t(47945)}},93364:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(79291),p=t(13560),a={Center:t(64743),Events:t(97480),Orientation:t(39218),ScaleManager:t(76531),ScaleModes:t(81050),Zoom:t(80805)};a=u(!1,a,p.CENTER),a=u(!1,a,p.ORIENTATION),a=u(!1,a,p.SCALE_MODE),a=u(!1,a,p.ZOOM),c.exports=a},27397:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(95540),p=t(35355),a=function(r){var n=r.game.config.defaultPhysicsSystem,e=u(r.settings,"physics",!1);if(!(!n&&!e)){var s=[];if(n&&s.push(p(n+"Physics")),e)for(var h in e)h=p(h.concat("Physics")),s.indexOf(h)===-1&&s.push(h);return s}};c.exports=a},52106:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(95540),p=function(a){var r=a.plugins.getDefaultScenePlugins(),n=u(a.settings,"plugins",!1);return Array.isArray(n)?n:r||[]};c.exports=p},87033:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={game:"game",renderer:"renderer",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"};c.exports=y},97482:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(2368),a=new u({initialize:function(n){this.sys=new p(this,n),this.game,this.anims,this.cache,this.registry,this.sound,this.textures,this.events,this.cameras,this.add,this.make,this.scene,this.children,this.lights,this.data,this.input,this.load,this.time,this.tweens,this.physics,this.matter,this.scale,this.plugins,this.renderer},update:function(){}});c.exports=a},60903:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(89993),a=t(44594),r=t(8443),n=t(35154),e=t(54899),s=t(29747),h=t(97482),i=t(2368),o=new u({initialize:function(f,d){if(this.game=f,this.keys={},this.scenes=[],this._pending=[],this._start=[],this._queue=[],this._data={},this.isProcessing=!1,this.isBooted=!1,this.customViewports=0,this.systemScene,d){Array.isArray(d)||(d=[d]);for(var v=0;v-1&&(delete this.keys[v],this.scenes.splice(d,1),this._start.indexOf(v)>-1&&(d=this._start.indexOf(v),this._start.splice(d,1)),f.sys.destroy()),this},bootScene:function(l){var f=l.sys,d=f.settings;f.sceneUpdate=s,l.init&&(l.init.call(l,d.data),d.status=p.INIT,d.isTransition&&f.events.emit(a.TRANSITION_INIT,d.transitionFrom,d.transitionDuration));var v;f.load&&(v=f.load,v.reset()),v&&l.preload?(l.preload.call(l),d.status=p.LOADING,v.once(e.COMPLETE,this.loadComplete,this),v.start()):this.create(l)},loadComplete:function(l){this.create(l.scene)},payloadComplete:function(l){this.bootScene(l.scene)},update:function(l,f){this.processQueue(),this.isProcessing=!0;for(var d=this.scenes.length-1;d>=0;d--){var v=this.scenes[d].sys;v.settings.status>p.START&&v.settings.status<=p.RUNNING&&v.step(l,f),v.scenePlugin&&v.scenePlugin._target&&v.scenePlugin.step(l,f)}},render:function(l){for(var f=0;f=p.LOADING&&d.settings.status=p.START&&m<=p.CREATING)return this;if(m>=p.RUNNING&&m<=p.SLEEPING)v.shutdown(),v.sceneUpdate=s,v.start(f);else{v.sceneUpdate=s,v.start(f);var g;if(v.load&&(g=v.load),g&&v.settings.hasOwnProperty("pack")&&(g.reset(),g.addPack({payload:v.settings.pack})))return v.settings.status=p.LOADING,g.once(e.COMPLETE,this.payloadComplete,this),g.start(),this}return this.bootScene(d),this},stop:function(l,f){var d=this.getScene(l);if(d&&!d.sys.isTransitioning()&&d.sys.settings.status!==p.SHUTDOWN){var v=d.sys.load;v&&(v.off(e.COMPLETE,this.loadComplete,this),v.off(e.COMPLETE,this.payloadComplete,this)),d.sys.shutdown(f)}return this},switch:function(l,f,d){var v=this.getScene(l),m=this.getScene(f);return v&&m&&v!==m&&(this.sleep(l),this.isSleeping(f)?this.wake(f,d):this.start(f,d)),this},getAt:function(l){return this.scenes[l]},getIndex:function(l){var f=this.getScene(l);return this.scenes.indexOf(f)},bringToTop:function(l){if(this.isProcessing)return this.queueOp("bringToTop",l);var f=this.getIndex(l),d=this.scenes;if(f!==-1&&f0){var d=this.getScene(l);this.scenes.splice(f,1),this.scenes.unshift(d)}return this},moveDown:function(l){if(this.isProcessing)return this.queueOp("moveDown",l);var f=this.getIndex(l);if(f>0){var d=f-1,v=this.getScene(l),m=this.getAt(d);this.scenes[f]=m,this.scenes[d]=v}return this},moveUp:function(l){if(this.isProcessing)return this.queueOp("moveUp",l);var f=this.getIndex(l);if(fd),0,m)}return this},moveBelow:function(l,f){if(l===f)return this;if(this.isProcessing)return this.queueOp("moveBelow",l,f);var d=this.getIndex(l),v=this.getIndex(f);if(d!==-1&&v!==-1&&v>d){var m=this.getAt(v);this.scenes.splice(v,1),d===0?this.scenes.unshift(m):this.scenes.splice(d-(v{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(45319),p=t(83419),a=t(44594),r=t(95540),n=t(37277),e=new p({initialize:function(h){this.scene=h,this.systems=h.sys,this.settings=h.sys.settings,this.key=h.sys.settings.key,this.manager=h.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,h.sys.events.once(a.BOOT,this.boot,this),h.sys.events.on(a.START,this.pluginStart,this)},boot:function(){this.systems.events.once(a.DESTROY,this.destroy,this)},pluginStart:function(){this._target=null,this.systems.events.once(a.SHUTDOWN,this.shutdown,this)},start:function(s,h){return s===void 0&&(s=this.key),this.manager.queueOp("stop",this.key),this.manager.queueOp("start",s,h),this},restart:function(s){var h=this.key;return this.manager.queueOp("stop",h),this.manager.queueOp("start",h,s),this},transition:function(s){s===void 0&&(s={});var h=r(s,"target",!1),i=this.manager.getScene(h);if(!h||!this.checkValidTransition(i))return!1;var o=r(s,"duration",1e3);this._elapsed=0,this._target=i,this._duration=o,this._willSleep=r(s,"sleep",!1),this._willRemove=r(s,"remove",!1);var l=r(s,"onUpdate",null);l&&(this._onUpdate=l,this._onUpdateScope=r(s,"onUpdateScope",this.scene));var f=r(s,"allowInput",!1);this.settings.transitionAllowInput=f;var d=i.sys.settings;d.isTransition=!0,d.transitionFrom=this.scene,d.transitionDuration=o,d.transitionAllowInput=f,r(s,"moveAbove",!1)?this.manager.moveAbove(this.key,h):r(s,"moveBelow",!1)&&this.manager.moveBelow(this.key,h),i.sys.isSleeping()?i.sys.wake(r(s,"data")):this.manager.start(h,r(s,"data"));var v=r(s,"onStart",null),m=r(s,"onStartScope",this.scene);return v&&v.call(m,this.scene,i,o),this.systems.events.emit(a.TRANSITION_OUT,i,o),!0},checkValidTransition:function(s){return!(!s||s.sys.isActive()||s.sys.isTransitioning()||s===this.scene||this.systems.isTransitioning())},step:function(s,h){this._elapsed+=h,this.transitionProgress=u(this._elapsed/this._duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.transitionProgress),this._elapsed>=this._duration&&this.transitionComplete()},transitionComplete:function(){var s=this._target.sys,h=this._target.sys.settings;s.events.emit(a.TRANSITION_COMPLETE,this.scene),h.isTransition=!1,h.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(s,h,i,o){return this.manager.add(s,h,i,o)},launch:function(s,h){return s&&s!==this.key&&this.manager.queueOp("start",s,h),this},run:function(s,h){return s&&s!==this.key&&this.manager.queueOp("run",s,h),this},pause:function(s,h){return s===void 0&&(s=this.key),this.manager.queueOp("pause",s,h),this},resume:function(s,h){return s===void 0&&(s=this.key),this.manager.queueOp("resume",s,h),this},sleep:function(s,h){return s===void 0&&(s=this.key),this.manager.queueOp("sleep",s,h),this},wake:function(s,h){return s===void 0&&(s=this.key),this.manager.queueOp("wake",s,h),this},switch:function(s,h){return s!==this.key&&this.manager.queueOp("switch",this.key,s,h),this},stop:function(s,h){return s===void 0&&(s=this.key),this.manager.queueOp("stop",s,h),this},setActive:function(s,h,i){h===void 0&&(h=this.key);var o=this.manager.getScene(h);return o&&o.sys.setActive(s,i),this},setVisible:function(s,h){h===void 0&&(h=this.key);var i=this.manager.getScene(h);return i&&i.sys.setVisible(s),this},isSleeping:function(s){return s===void 0&&(s=this.key),this.manager.isSleeping(s)},isActive:function(s){return s===void 0&&(s=this.key),this.manager.isActive(s)},isPaused:function(s){return s===void 0&&(s=this.key),this.manager.isPaused(s)},isVisible:function(s){return s===void 0&&(s=this.key),this.manager.isVisible(s)},swapPosition:function(s,h){return h===void 0&&(h=this.key),s!==h&&this.manager.swapPosition(s,h),this},moveAbove:function(s,h){return h===void 0&&(h=this.key),s!==h&&this.manager.moveAbove(s,h),this},moveBelow:function(s,h){return h===void 0&&(h=this.key),s!==h&&this.manager.moveBelow(s,h),this},remove:function(s){return s===void 0&&(s=this.key),this.manager.remove(s),this},moveUp:function(s){return s===void 0&&(s=this.key),this.manager.moveUp(s),this},moveDown:function(s){return s===void 0&&(s=this.key),this.manager.moveDown(s),this},bringToTop:function(s){return s===void 0&&(s=this.key),this.manager.bringToTop(s),this},sendToBack:function(s){return s===void 0&&(s=this.key),this.manager.sendToBack(s),this},get:function(s){return this.manager.getScene(s)},getStatus:function(s){var h=this.manager.getScene(s);if(h)return h.sys.getStatus()},getIndex:function(s){return s===void 0&&(s=this.key),this.manager.getIndex(s)},shutdown:function(){var s=this.systems.events;s.off(a.SHUTDOWN,this.shutdown,this),s.off(a.TRANSITION_OUT)},destroy:function(){this.shutdown(),this.scene.sys.events.off(a.START,this.start,this),this.scene=null,this.systems=null,this.settings=null,this.manager=null}});n.register("ScenePlugin",e,"scenePlugin"),c.exports=e},55681:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(89993),p=t(35154),a=t(46975),r=t(87033),n={create:function(e){return typeof e=="string"?e={key:e}:e===void 0&&(e={}),{status:u.PENDING,key:p(e,"key",""),active:p(e,"active",!1),visible:p(e,"visible",!0),isBooted:!1,isTransition:!1,transitionFrom:null,transitionDuration:0,transitionAllowInput:!0,data:{},pack:p(e,"pack",!1),cameras:p(e,"cameras",null),map:p(e,"map",a(r,p(e,"mapAdd",{}))),physics:p(e,"physics",{}),loader:p(e,"loader",{}),plugins:p(e,"plugins",!1),input:p(e,"input",{})}}};c.exports=n},2368:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(89993),a=t(42363),r=t(44594),n=t(27397),e=t(52106),s=t(29747),h=t(55681),i=new u({initialize:function(l,f){this.scene=l,this.game,this.renderer,this.config=f,this.settings=h.create(f),this.canvas,this.context,this.anims,this.cache,this.plugins,this.registry,this.scale,this.sound,this.textures,this.add,this.cameras,this.displayList,this.events,this.make,this.scenePlugin,this.updateList,this.sceneUpdate=s},init:function(o){this.settings.status=p.INIT,this.sceneUpdate=s,this.game=o,this.renderer=o.renderer,this.canvas=o.canvas,this.context=o.context;var l=o.plugins;this.plugins=l,l.addToScene(this,a.Global,[a.CoreScene,e(this),n(this)]),this.events.emit(r.BOOT,this),this.settings.isBooted=!0},step:function(o,l){var f=this.events;f.emit(r.PRE_UPDATE,o,l),f.emit(r.UPDATE,o,l),this.sceneUpdate.call(this.scene,o,l),f.emit(r.POST_UPDATE,o,l)},render:function(o){var l=this.displayList;l.depthSort(),this.events.emit(r.PRE_RENDER,o),this.cameras.render(o,l),this.events.emit(r.RENDER,o)},queueDepthSort:function(){this.displayList.queueDepthSort()},depthSort:function(){this.displayList.depthSort()},pause:function(o){var l=this.settings,f=this.getStatus();return f!==p.CREATING&&f!==p.RUNNING?console.warn("Cannot pause non-running Scene",l.key):this.settings.active&&(l.status=p.PAUSED,l.active=!1,this.events.emit(r.PAUSE,this,o)),this},resume:function(o){var l=this.events,f=this.settings;return this.settings.active||(f.status=p.RUNNING,f.active=!0,l.emit(r.RESUME,this,o)),this},sleep:function(o){var l=this.settings,f=this.getStatus();return f!==p.CREATING&&f!==p.RUNNING?console.warn("Cannot sleep non-running Scene",l.key):(l.status=p.SLEEPING,l.active=!1,l.visible=!1,this.events.emit(r.SLEEP,this,o)),this},wake:function(o){var l=this.events,f=this.settings;return f.status=p.RUNNING,f.active=!0,f.visible=!0,l.emit(r.WAKE,this,o),f.isTransition&&l.emit(r.TRANSITION_WAKE,f.transitionFrom,f.transitionDuration),this},getData:function(){return this.settings.data},getStatus:function(){return this.settings.status},canInput:function(){var o=this.settings.status;return o>p.PENDING&&o<=p.RUNNING},isSleeping:function(){return this.settings.status===p.SLEEPING},isActive:function(){return this.settings.status===p.RUNNING},isPaused:function(){return this.settings.status===p.PAUSED},isTransitioning:function(){return this.settings.isTransition||this.scenePlugin._target!==null},isTransitionOut:function(){return this.scenePlugin._target!==null&&this.scenePlugin._duration>0},isTransitionIn:function(){return this.settings.isTransition},isVisible:function(){return this.settings.visible},setVisible:function(o){return this.settings.visible=o,this},setActive:function(o,l){return o?this.resume(l):this.pause(l)},start:function(o){var l=this.events,f=this.settings;o&&(f.data=o),f.status=p.START,f.active=!0,f.visible=!0,l.emit(r.START,this),l.emit(r.READY,this,o)},shutdown:function(o){var l=this.events,f=this.settings;l.off(r.TRANSITION_INIT),l.off(r.TRANSITION_START),l.off(r.TRANSITION_COMPLETE),l.off(r.TRANSITION_OUT),f.status=p.SHUTDOWN,f.active=!1,f.visible=!1,l.emit(r.SHUTDOWN,this,o)},destroy:function(){var o=this.events,l=this.settings;l.status=p.DESTROYED,l.active=!1,l.visible=!1,o.emit(r.DESTROY,this),o.removeAllListeners();for(var f=["scene","game","anims","cache","plugins","registry","sound","textures","add","camera","displayList","events","make","scenePlugin","updateList"],d=0;d{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={PENDING:0,INIT:1,START:2,LOADING:3,CREATING:4,RUNNING:5,PAUSED:6,SLEEPING:7,SHUTDOWN:8,DESTROYED:9};c.exports=y},69830:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="addedtoscene"},7919:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="boot"},46763:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="create"},11763:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="destroy"},71555:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="pause"},36735:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="postupdate"},3809:c=>{/** + * @author samme + * @copyright 2021 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="prerender"},90716:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="preupdate"},58262:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="ready"},91633:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="removedfromscene"},10319:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="render"},87132:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="resume"},81961:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="shutdown"},90194:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="sleep"},6265:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="start"},33178:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="transitioncomplete"},43063:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="transitioninit"},11259:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="transitionout"},61611:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="transitionstart"},45209:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="transitionwake"},22966:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="update"},21747:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="wake"},44594:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={ADDED_TO_SCENE:t(69830),BOOT:t(7919),CREATE:t(46763),DESTROY:t(11763),PAUSE:t(71555),POST_UPDATE:t(36735),PRE_RENDER:t(3809),PRE_UPDATE:t(90716),READY:t(58262),REMOVED_FROM_SCENE:t(91633),RENDER:t(10319),RESUME:t(87132),SHUTDOWN:t(81961),SLEEP:t(90194),START:t(6265),TRANSITION_COMPLETE:t(33178),TRANSITION_INIT:t(43063),TRANSITION_OUT:t(11259),TRANSITION_START:t(61611),TRANSITION_WAKE:t(45209),UPDATE:t(22966),WAKE:t(21747)}},62194:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(89993),p=t(79291),a={Events:t(44594),GetPhysicsPlugins:t(27397),GetScenePlugins:t(52106),SceneManager:t(60903),ScenePlugin:t(52209),Settings:t(55681),Systems:t(2368)};a=p(!1,a,u),c.exports=a},30341:(c,y,t)=>{/** + * @author Richard Davey + * @author Pavle Goloskokovic (http://prunegames.com) + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(50792),a=t(14463),r=t(79291),n=t(29747),e=new u({Extends:p,initialize:function(h,i,o){p.call(this),this.manager=h,this.key=i,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,pan:0},this.currentConfig=this.config,this.config=r(this.config,o),this.markers={},this.currentMarker=null,this.pendingRemove=!1},addMarker:function(s){return!s||!s.name||typeof s.name!="string"?!1:this.markers[s.name]?(console.error("addMarker "+s.name+" already exists in Sound"),!1):(s=r(!0,{name:"",start:0,duration:this.totalDuration-(s.start||0),config:{mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0,pan:0}},s),this.markers[s.name]=s,!0)},updateMarker:function(s){return!s||!s.name||typeof s.name!="string"?!1:this.markers[s.name]?(this.markers[s.name]=r(!0,this.markers[s.name],s),!0):(console.warn("Audio Marker: "+s.name+" missing in Sound: "+this.key),!1)},removeMarker:function(s){var h=this.markers[s];return h?(this.markers[s]=null,h):null},play:function(s,h){if(s===void 0&&(s=""),typeof s=="object"&&(h=s,s=""),typeof s!="string")return!1;if(!s)this.currentMarker=null,this.currentConfig=this.config,this.duration=this.totalDuration;else{if(!this.markers[s])return console.warn("Marker: "+s+" missing in Sound: "+this.key),!1;this.currentMarker=this.markers[s],this.currentConfig=this.currentMarker.config,this.duration=this.currentMarker.duration}return this.resetConfig(),this.currentConfig=r(this.currentConfig,h),this.isPlaying=!0,this.isPaused=!1,!0},pause:function(){return this.isPaused||!this.isPlaying?!1:(this.isPlaying=!1,this.isPaused=!0,!0)},resume:function(){return!this.isPaused||this.isPlaying?!1:(this.isPlaying=!0,this.isPaused=!1,!0)},stop:function(){return!this.isPaused&&!this.isPlaying?!1:(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,this.pan=this.currentConfig.pan},resetConfig:function(){this.currentConfig.seek=0,this.currentConfig.delay=0},update:n,calculateRate:function(){var s=1.0005777895065548,h=this.currentConfig.detune+this.manager.detune,i=Math.pow(s,h);this.totalRate=this.currentConfig.rate*this.manager.rate*i},destroy:function(){this.pendingRemove||(this.stop(),this.emit(a.DESTROY,this),this.removeAllListeners(),this.pendingRemove=!0,this.manager=null,this.config=null,this.currentConfig=null,this.markers=null,this.currentMarker=null)}});c.exports=e},85034:(c,y,t)=>{/** + * @author Richard Davey + * @author Pavle Goloskokovic (http://prunegames.com) + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(41786),a=t(50792),r=t(14463),n=t(8443),e=t(46710),s=t(58731),h=t(29747),i=t(26099),o=new u({Extends:a,initialize:function(f){a.call(this),this.game=f,this.jsonCache=f.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,this.gameLostFocus=!1,this.listenerPosition=new i,f.events.on(n.BLUR,this.onGameBlur,this),f.events.on(n.FOCUS,this.onGameFocus,this),f.events.on(n.PRE_STEP,this.update,this),f.events.once(n.DESTROY,this.destroy,this)},add:h,addAudioSprite:function(l,f){f===void 0&&(f={});var d=this.add(l,f);d.spritemap=this.jsonCache.get(l).spritemap;for(var v in d.spritemap)if(d.spritemap.hasOwnProperty(v)){var m=p(f),g=d.spritemap[v];m.loop=g.hasOwnProperty("loop")?g.loop:!1,d.addMarker({name:v,start:g.start,duration:g.end-g.start,config:m})}return d},get:function(l){return s(this.sounds,"key",l)},getAll:function(l){return l?e(this.sounds,"key",l):e(this.sounds)},getAllPlaying:function(){return e(this.sounds,"isPlaying",!0)},play:function(l,f){var d=this.add(l);return d.once(r.COMPLETE,d.destroy,d),f?f.name?(d.addMarker(f),d.play(f.name)):d.play(f):d.play()},playAudioSprite:function(l,f,d){var v=this.addAudioSprite(l);return v.once(r.COMPLETE,v.destroy,v),v.play(f,d)},remove:function(l){var f=this.sounds.indexOf(l);return f!==-1?(l.destroy(),this.sounds.splice(f,1),!0):!1},removeAll:function(){this.sounds.forEach(function(l){l.destroy()}),this.sounds.length=0},removeByKey:function(l){for(var f=0,d=this.sounds.length-1;d>=0;d--){var v=this.sounds[d];v.key===l&&(v.destroy(),this.sounds.splice(d,1),f++)}return f},pauseAll:function(){this.forEachActiveSound(function(l){l.pause()}),this.emit(r.PAUSE_ALL,this)},resumeAll:function(){this.forEachActiveSound(function(l){l.resume()}),this.emit(r.RESUME_ALL,this)},setListenerPosition:h,stopAll:function(){this.forEachActiveSound(function(l){l.stop()}),this.emit(r.STOP_ALL,this)},stopByKey:function(l){var f=0;return this.getAll(l).forEach(function(d){d.stop()&&f++}),f},isPlaying:function(l){var f=this.sounds,d=f.length-1,v;if(l===void 0){for(;d>=0;d--)if(v=this.sounds[d],v.isPlaying)return!0}else for(;d>=0;d--)if(v=this.sounds[d],v.key===l&&v.isPlaying)return!0;return!1},unlock:h,onBlur:h,onFocus:h,onGameBlur:function(){this.gameLostFocus=!0,this.pauseOnBlur&&this.onBlur()},onGameFocus:function(){this.gameLostFocus=!1,this.pauseOnBlur&&this.onFocus()},update:function(l,f){this.unlocked&&(this.unlocked=!1,this.locked=!1,this.emit(r.UNLOCKED,this));for(var d=this.sounds.length-1;d>=0;d--)this.sounds[d].pendingRemove&&this.sounds.splice(d,1);this.sounds.forEach(function(v){v.update(l,f)})},destroy:function(){this.game.events.off(n.BLUR,this.onGameBlur,this),this.game.events.off(n.FOCUS,this.onGameFocus,this),this.game.events.off(n.PRE_STEP,this.update,this),this.removeAllListeners(),this.removeAll(),this.sounds.length=0,this.sounds=null,this.listenerPosition=null,this.game=null},forEachActiveSound:function(l,f){var d=this;this.sounds.forEach(function(v,m){v&&!v.pendingRemove&&l.call(f||d,v,m,d.sounds)})},setRate:function(l){return this.rate=l,this},rate:{get:function(){return this._rate},set:function(l){this._rate=l,this.forEachActiveSound(function(f){f.calculateRate()}),this.emit(r.GLOBAL_RATE,this,l)}},setDetune:function(l){return this.detune=l,this},detune:{get:function(){return this._detune},set:function(l){this._detune=l,this.forEachActiveSound(function(f){f.calculateRate()}),this.emit(r.GLOBAL_DETUNE,this,l)}}});c.exports=o},14747:(c,y,t)=>{/** + * @author Richard Davey + * @author Pavle Goloskokovic (http://prunegames.com) + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(33684),p=t(25960),a=t(57490),r={create:function(n){var e=n.config.audio,s=n.device.audio;return e.noAudio||!s.webAudio&&!s.audioData?new p(n):s.webAudio&&!e.disableWebAudio?new a(n):new u(n)}};c.exports=r},19723:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="complete"},98882:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="decodedall"},57506:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="decoded"},73146:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="destroy"},11305:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="detune"},40577:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="detune"},30333:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="mute"},20394:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="rate"},21802:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="volume"},1299:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="looped"},99190:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="loop"},97125:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="mute"},89259:c=>{/** + * @author pi-kei + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="pan"},79986:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="pauseall"},17586:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="pause"},19618:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="play"},42306:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="rate"},10387:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="resumeall"},48959:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="resume"},9960:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="seek"},19180:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="stopall"},98328:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="stop"},50401:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="unlocked"},52498:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="volume"},14463:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={COMPLETE:t(19723),DECODED:t(57506),DECODED_ALL:t(98882),DESTROY:t(73146),DETUNE:t(11305),GLOBAL_DETUNE:t(40577),GLOBAL_MUTE:t(30333),GLOBAL_RATE:t(20394),GLOBAL_VOLUME:t(21802),LOOP:t(99190),LOOPED:t(1299),MUTE:t(97125),PAN:t(89259),PAUSE_ALL:t(79986),PAUSE:t(17586),PLAY:t(19618),RATE:t(42306),RESUME_ALL:t(10387),RESUME:t(48959),SEEK:t(9960),STOP_ALL:t(19180),STOP:t(98328),UNLOCKED:t(50401),VOLUME:t(52498)}},64895:(c,y,t)=>{/** + * @author Richard Davey + * @author Pavle Goloskokovic (http://prunegames.com) + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(30341),p=t(83419),a=t(14463),r=t(45319),n=new p({Extends:u,initialize:function(s,h,i){if(i===void 0&&(i={}),this.tags=s.game.cache.audio.get(h),!this.tags)throw new Error('No cached audio asset with key "'+h);this.audio=null,this.startTime=0,this.previousTime=0,this.duration=this.tags[0].duration,this.totalDuration=this.tags[0].duration,u.call(this,s,h,i)},play:function(e,s){return this.manager.isLocked(this,"play",[e,s])||!u.prototype.play.call(this,e,s)||!this.pickAndPlayAudioTag()?!1:(this.emit(a.PLAY,this),!0)},pause:function(){return this.manager.isLocked(this,"pause")||this.startTime>0||!u.prototype.pause.call(this)?!1:(this.currentConfig.seek=this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0),this.stopAndReleaseAudioTag(),this.emit(a.PAUSE,this),!0)},resume:function(){return this.manager.isLocked(this,"resume")||this.startTime>0||!u.prototype.resume.call(this)||!this.pickAndPlayAudioTag()?!1:(this.emit(a.RESUME,this),!0)},stop:function(){return this.manager.isLocked(this,"stop")||!u.prototype.stop.call(this)?!1:(this.stopAndReleaseAudioTag(),this.emit(a.STOP,this),!0)},pickAndPlayAudioTag:function(){if(!this.pickAudioTag())return this.reset(),!1;var e=this.currentConfig.seek,s=this.currentConfig.delay,h=(this.currentMarker?this.currentMarker.start:0)+e;return this.previousTime=h,this.audio.currentTime=h,this.applyConfig(),s===0?(this.startTime=0,this.audio.paused&&this.playCatchPromise()):(this.startTime=window.performance.now()+s*1e3,this.audio.paused||this.audio.pause()),this.resetConfig(),!0},pickAudioTag:function(){if(this.audio)return!0;for(var e=0;e0){this.startTime=h-this.manager.loopEndOffset?(this.audio.currentTime=s+Math.max(0,i-h),i=this.audio.currentTime):i=h){this.reset(),this.stopAndReleaseAudioTag(),this.emit(a.COMPLETE,this);return}this.previousTime=i}},destroy:function(){u.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=r(this.currentConfig.volume*this.manager.volume,0,1))},calculateRate:function(){u.prototype.calculateRate.call(this),this.audio&&(this.audio.playbackRate=this.totalRate)},mute:{get:function(){return this.currentConfig.mute},set:function(e){this.currentConfig.mute=e,!this.manager.isLocked(this,"mute",e)&&(this.updateMute(),this.emit(a.MUTE,this,e))}},setMute:function(e){return this.mute=e,this},volume:{get:function(){return this.currentConfig.volume},set:function(e){this.currentConfig.volume=e,!this.manager.isLocked(this,"volume",e)&&(this.updateVolume(),this.emit(a.VOLUME,this,e))}},setVolume:function(e){return this.volume=e,this},rate:{get:function(){return this.currentConfig.rate},set:function(e){this.currentConfig.rate=e,!this.manager.isLocked(this,a.RATE,e)&&(this.calculateRate(),this.emit(a.RATE,this,e))}},setRate:function(e){return this.rate=e,this},detune:{get:function(){return this.currentConfig.detune},set:function(e){this.currentConfig.detune=e,!this.manager.isLocked(this,a.DETUNE,e)&&(this.calculateRate(),this.emit(a.DETUNE,this,e))}},setDetune:function(e){return this.detune=e,this},seek:{get:function(){return this.isPlaying?this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0):this.isPaused?this.currentConfig.seek:0},set:function(e){this.manager.isLocked(this,"seek",e)||this.startTime>0||(this.isPlaying||this.isPaused)&&(e=Math.min(Math.max(0,e),this.duration),this.isPlaying?(this.previousTime=e,this.audio.currentTime=e):this.isPaused&&(this.currentConfig.seek=e),this.emit(a.SEEK,this,e))}},setSeek:function(e){return this.seek=e,this},loop:{get:function(){return this.currentConfig.loop},set:function(e){this.currentConfig.loop=e,!this.manager.isLocked(this,"loop",e)&&(this.audio&&(this.audio.loop=e),this.emit(a.LOOP,this,e))}},setLoop:function(e){return this.loop=e,this},pan:{get:function(){return this.currentConfig.pan},set:function(e){this.currentConfig.pan=e,this.emit(a.PAN,this,e)}},setPan:function(e){return this.pan=e,this}});c.exports=n},33684:(c,y,t)=>{/** + * @author Richard Davey + * @author Pavle Goloskokovic (http://prunegames.com) + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(85034),p=t(83419),a=t(14463),r=t(64895),n=new p({Extends:u,initialize:function(s){this.override=!0,this.audioPlayDelay=.1,this.loopEndOffset=.05,this.onBlurPausedSounds=[],this.locked="ontouchstart"in window,this.lockedActionsQueue=this.locked?[]:null,this._mute=!1,this._volume=1,u.call(this,s)},add:function(e,s){var h=new r(this,e,s);return this.sounds.push(h),h},unlock:function(){this.locked=!1;var e=this;if(this.game.cache.audio.entries.each(function(o,l){for(var f=0;f{/** + * @author Richard Davey + * @author Pavle Goloskokovic (http://prunegames.com) + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={SoundManagerCreator:t(14747),Events:t(14463),BaseSound:t(30341),BaseSoundManager:t(85034),WebAudioSound:t(71741),WebAudioSoundManager:t(57490),HTML5AudioSound:t(64895),HTML5AudioSoundManager:t(33684),NoAudioSound:t(4603),NoAudioSoundManager:t(25960)}},4603:(c,y,t)=>{/** + * @author Richard Davey + * @author Pavle Goloskokovic (http://prunegames.com) + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(30341),p=t(83419),a=t(50792),r=t(79291),n=t(29747),e=function(){return!1},s=function(){return null},h=function(){return this},i=new p({Extends:a,initialize:function(l,f,d){d===void 0&&(d={}),a.call(this),this.manager=l,this.key=f,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=0,this.totalDuration=0,this.config=r({mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0,pan:0},d),this.currentConfig=this.config,this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.seek=0,this.loop=!1,this.pan=0,this.markers={},this.currentMarker=null,this.pendingRemove=!1},addMarker:e,updateMarker:e,removeMarker:s,play:e,pause:e,resume:e,stop:e,setMute:h,setVolume:h,setRate:h,setDetune:h,setSeek:h,setLoop:h,setPan:h,applyConfig:s,resetConfig:s,update:n,calculateRate:s,destroy:function(){u.prototype.destroy.call(this)}});c.exports=i},25960:(c,y,t)=>{/** + * @author Richard Davey + * @author Pavle Goloskokovic (http://prunegames.com) + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(85034),p=t(83419),a=t(50792),r=t(4603),n=t(29747),e=new p({Extends:a,initialize:function(h){a.call(this),this.game=h,this.sounds=[],this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.pauseOnBlur=!0,this.locked=!1},add:function(s,h){var i=new r(this,s,h);return this.sounds.push(i),i},addAudioSprite:function(s,h){var i=this.add(s,h);return i.spritemap={},i},get:function(s){return u.prototype.get.call(this,s)},getAll:function(s){return u.prototype.getAll.call(this,s)},play:function(s,h){return!1},playAudioSprite:function(s,h,i){return!1},remove:function(s){return u.prototype.remove.call(this,s)},removeAll:function(){return u.prototype.removeAll.call(this)},removeByKey:function(s){return u.prototype.removeByKey.call(this,s)},stopByKey:function(s){return u.prototype.stopByKey.call(this,s)},onBlur:n,onFocus:n,onGameBlur:n,onGameFocus:n,pauseAll:n,resumeAll:n,stopAll:n,update:n,setRate:n,setDetune:n,setMute:n,setVolume:n,unlock:n,forEachActiveSound:function(s,h){u.prototype.forEachActiveSound.call(this,s,h)},destroy:function(){u.prototype.destroy.call(this)}});c.exports=e},71741:(c,y,t)=>{/** + * @author Richard Davey + * @author Pavle Goloskokovic (http://prunegames.com) + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(30341),p=t(83419),a=t(14463),r=t(95540),n=new p({Extends:u,initialize:function(s,h,i){if(i===void 0&&(i={}),this.audioBuffer=s.game.cache.audio.get(h),!this.audioBuffer)throw new Error('Audio key "'+h+'" not found in cache');this.source=null,this.loopSource=null,this.muteNode=s.context.createGain(),this.volumeNode=s.context.createGain(),this.pannerNode=null,this.spatialNode=null,this.spatialSource=null,this.playTime=0,this.startTime=0,this.loopTime=0,this.rateUpdates=[],this.hasEnded=!1,this.hasLooped=!1,this.muteNode.connect(this.volumeNode),s.context.createPanner&&(this.spatialNode=s.context.createPanner(),this.volumeNode.connect(this.spatialNode)),s.context.createStereoPanner?(this.pannerNode=s.context.createStereoPanner(),s.context.createPanner?this.spatialNode.connect(this.pannerNode):this.volumeNode.connect(this.pannerNode),this.pannerNode.connect(s.destination)):s.context.createPanner?this.spatialNode.connect(s.destination):this.volumeNode.connect(s.destination),this.duration=this.audioBuffer.duration,this.totalDuration=this.audioBuffer.duration,u.call(this,s,h,i)},play:function(e,s){return u.prototype.play.call(this,e,s)?(this.stopAndRemoveBufferSource(),this.createAndStartBufferSource(),this.emit(a.PLAY,this),!0):!1},pause:function(){return this.manager.context.currentTime{/** + * @author Richard Davey + * @author Pavle Goloskokovic (http://prunegames.com) + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(53134),p=t(85034),a=t(83419),r=t(14463),n=t(8443),e=t(71741),s=t(95540),h=new a({Extends:p,initialize:function(o){this.context=this.createAudioContext(o),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=this.context.state==="suspended"&&("ontouchstart"in window||"onclick"in window),p.call(this,o),this.locked&&o.isBooted?this.unlock():o.events.once(n.BOOT,this.unlock,this)},createAudioContext:function(i){var o=i.config.audio;if(o.context)return o.context.resume(),o.context;if(window.hasOwnProperty("AudioContext"))return new AudioContext;if(window.hasOwnProperty("webkitAudioContext"))return new window.webkitAudioContext},setAudioContext:function(i){return this.context&&this.context.close(),this.masterMuteNode&&this.masterMuteNode.disconnect(),this.masterVolumeNode&&this.masterVolumeNode.disconnect(),this.context=i,this.masterMuteNode=i.createGain(),this.masterVolumeNode=i.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(i.destination),this.destination=this.masterMuteNode,this},add:function(i,o){var l=new e(this,i,o);return this.sounds.push(l),l},decodeAudio:function(i,o){var l;Array.isArray(i)?l=i:l=[{key:i,data:o}];for(var f=this.game.cache.audio,d=l.length,v=0;v{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(37105),p=t(83419),a=t(29747),r=t(19186),n=new p({initialize:function(s){this.parent=s,this.list=[],this.position=0,this.addCallback=a,this.removeCallback=a,this._sortKey=""},add:function(e,s){return s?u.Add(this.list,e):u.Add(this.list,e,0,this.addCallback,this)},addAt:function(e,s,h){return h?u.AddAt(this.list,e,s):u.AddAt(this.list,e,s,0,this.addCallback,this)},getAt:function(e){return this.list[e]},getIndex:function(e){return this.list.indexOf(e)},sort:function(e,s){return e?(s===void 0&&(s=function(h,i){return h[e]-i[e]}),r(this.list,s),this):this},getByName:function(e){return u.GetFirst(this.list,"name",e)},getRandom:function(e,s){return u.GetRandom(this.list,e,s)},getFirst:function(e,s,h,i){return u.GetFirst(this.list,e,s,h,i)},getAll:function(e,s,h,i){return u.GetAll(this.list,e,s,h,i)},count:function(e,s){return u.CountAllMatching(this.list,e,s)},swap:function(e,s){u.Swap(this.list,e,s)},moveTo:function(e,s){return u.MoveTo(this.list,e,s)},moveAbove:function(e,s){return u.MoveAbove(this.list,e,s)},moveBelow:function(e,s){return u.MoveBelow(this.list,e,s)},remove:function(e,s){return s?u.Remove(this.list,e):u.Remove(this.list,e,this.removeCallback,this)},removeAt:function(e,s){return s?u.RemoveAt(this.list,e):u.RemoveAt(this.list,e,this.removeCallback,this)},removeBetween:function(e,s,h){return h?u.RemoveBetween(this.list,e,s):u.RemoveBetween(this.list,e,s,this.removeCallback,this)},removeAll:function(e){for(var s=this.list.length;s--;)this.remove(this.list[s],e);return this},bringToTop:function(e){return u.BringToTop(this.list,e)},sendToBack:function(e){return u.SendToBack(this.list,e)},moveUp:function(e){return u.MoveUp(this.list,e),e},moveDown:function(e){return u.MoveDown(this.list,e),e},reverse:function(){return this.list.reverse(),this},shuffle:function(){return u.Shuffle(this.list),this},replace:function(e,s){return u.Replace(this.list,e,s)},exists:function(e){return this.list.indexOf(e)>-1},setAll:function(e,s,h,i){return u.SetAll(this.list,e,s,h,i),this},each:function(e,s){for(var h=[null],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}}});c.exports=n},90330:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=new u({initialize:function(r){this.entries={},this.size=0,this.setAll(r)},setAll:function(a){if(Array.isArray(a))for(var r=0;r{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(50792),a=t(82348),r=new u({Extends:p,initialize:function(){p.call(this),this._pending=[],this._active=[],this._destroy=[],this._toProcess=0,this.checkQueue=!1},isActive:function(n){return this._active.indexOf(n)>-1},isPending:function(n){return this._toProcess>0&&this._pending.indexOf(n)>-1},isDestroying:function(n){return this._destroy.indexOf(n)>-1},add:function(n){return this.checkQueue&&this.isActive(n)&&!this.isDestroying(n)||this.isPending(n)||(this._pending.push(n),this._toProcess++),n},remove:function(n){if(this.isPending(n)){var e=this._pending,s=e.indexOf(n);s!==-1&&e.splice(s,1)}else this.isActive(n)&&(this._destroy.push(n),this._toProcess++);return n},removeAll:function(){for(var n=this._active,e=this._destroy,s=n.length;s--;)e.push(n[s]),this._toProcess++;return this},update:function(){if(this._toProcess===0)return this._active;var n=this._destroy,e=this._active,s,h;for(s=0;s{/** + * @author Vladimir Agafonkin + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(43886);function p(x){if(!(this instanceof p))return new p(x);this._maxEntries=Math.max(4,x||9),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}p.prototype={all:function(){return this._all(this.data,[])},search:function(x){var S=this.data,C=[],E=this.toBBox;if(!v(x,S))return C;for(var P=[],R,M,A,L;S;){for(R=0,M=S.children.length;R=0&&R[S].children.length>this._maxEntries;)this._split(R,S),S--;this._adjustParentBBoxes(P,R,S)},_split:function(x,S){var C=x[S],E=C.children.length,P=this._minEntries;this._chooseSplitAxis(C,P,E);var R=this._chooseSplitIndex(C,P,E),M=m(C.children.splice(R,C.children.length-R));M.height=C.height,M.leaf=C.leaf,r(C,this.toBBox),r(M,this.toBBox),S?x[S-1].children.push(M):this._splitRoot(C,M)},_splitRoot:function(x,S){this.data=m([x,S]),this.data.height=x.height+1,this.data.leaf=!1,r(this.data,this.toBBox)},_chooseSplitIndex:function(x,S,C){var E,P,R,M,A,L,w,N;for(L=w=1/0,E=S;E<=C-S;E++)P=n(x,0,E,this.toBBox),R=n(x,E,C,this.toBBox),M=f(P,R),A=i(P)+i(R),M=S;L--)w=x.children[L],e(M,x.leaf?P(w):w),A+=o(M);return A},_adjustParentBBoxes:function(x,S,C){for(var E=C;E>=0;E--)e(S[E],x)},_condense:function(x){for(var S=x.length-1,C;S>=0;S--)x[S].children.length===0?S>0?(C=x[S-1].children,C.splice(C.indexOf(x[S]),1)):this.clear():r(x[S],this.toBBox)},compareMinX:function(x,S){return x.left-S.left},compareMinY:function(x,S){return x.top-S.top},toBBox:function(x){return{minX:x.left,minY:x.top,maxX:x.right,maxY:x.bottom}}};function a(x,S,C){if(!C)return S.indexOf(x);for(var E=0;E=x.minX&&S.maxY>=x.minY}function m(x){return{children:x,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function g(x,S,C,E,P){for(var R=[S,C],M;R.length;)C=R.pop(),S=R.pop(),!(C-S<=E)&&(M=S+Math.ceil((C-S)/E/2)*E,u(x,M,S,C,P),R.push(S,M,M,C))}c.exports=p},35072:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=new u({initialize:function(r){if(this.entries=[],Array.isArray(r))for(var n=0;n-1&&this.entries.splice(r,1),this},dump:function(){console.group("Set");for(var a=0;a-1},union:function(a){var r=new p;return a.entries.forEach(function(n){r.set(n)}),this.entries.forEach(function(n){r.set(n)}),r},intersect:function(a){var r=new p;return this.entries.forEach(function(n){a.contains(n)&&r.set(n)}),r},difference:function(a){var r=new p;return this.entries.forEach(function(n){a.contains(n)||r.set(n)}),r},size:{get:function(){return this.entries.length},set:function(a){return a{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(45319),p=t(83419),a=t(56583),r=t(26099),n=new p({initialize:function(s,h,i,o){s===void 0&&(s=0),h===void 0&&(h=s),i===void 0&&(i=0),o===void 0&&(o=null),this._width=s,this._height=h,this._parent=o,this.aspectMode=i,this.aspectRatio=h===0?1:s/h,this.minWidth=0,this.minHeight=0,this.maxWidth=Number.MAX_VALUE,this.maxHeight=Number.MAX_VALUE,this.snapTo=new r},setAspectMode:function(e){return e===void 0&&(e=0),this.aspectMode=e,this.setSize(this._width,this._height)},setSnap:function(e,s){return e===void 0&&(e=0),s===void 0&&(s=e),this.snapTo.set(e,s),this.setSize(this._width,this._height)},setParent:function(e){return this._parent=e,this.setSize(this._width,this._height)},setMin:function(e,s){return e===void 0&&(e=0),s===void 0&&(s=e),this.minWidth=u(e,0,this.maxWidth),this.minHeight=u(s,0,this.maxHeight),this.setSize(this._width,this._height)},setMax:function(e,s){return e===void 0&&(e=Number.MAX_VALUE),s===void 0&&(s=e),this.maxWidth=u(e,this.minWidth,Number.MAX_VALUE),this.maxHeight=u(s,this.minHeight,Number.MAX_VALUE),this.setSize(this._width,this._height)},setSize:function(e,s){switch(e===void 0&&(e=0),s===void 0&&(s=e),this.aspectMode){case n.NONE:this._width=this.getNewWidth(a(e,this.snapTo.x)),this._height=this.getNewHeight(a(s,this.snapTo.y)),this.aspectRatio=this._height===0?1:this._width/this._height;break;case n.WIDTH_CONTROLS_HEIGHT:this._width=this.getNewWidth(a(e,this.snapTo.x)),this._height=this.getNewHeight(this._width*(1/this.aspectRatio),!1);break;case n.HEIGHT_CONTROLS_WIDTH:this._height=this.getNewHeight(a(s,this.snapTo.y)),this._width=this.getNewWidth(this._height*this.aspectRatio,!1);break;case n.FIT:this.constrain(e,s,!0);break;case n.ENVELOP:this.constrain(e,s,!1);break}return this},setAspectRatio:function(e){return this.aspectRatio=e,this.setSize(this._width,this._height)},resize:function(e,s){return this._width=this.getNewWidth(a(e,this.snapTo.x)),this._height=this.getNewHeight(a(s,this.snapTo.y)),this.aspectRatio=this._height===0?1:this._width/this._height,this},getNewWidth:function(e,s){return s===void 0&&(s=!0),e=u(e,this.minWidth,this.maxWidth),s&&this._parent&&e>this._parent.width&&(e=Math.max(this.minWidth,this._parent.width)),e},getNewHeight:function(e,s){return s===void 0&&(s=!0),e=u(e,this.minHeight,this.maxHeight),s&&this._parent&&e>this._parent.height&&(e=Math.max(this.minHeight,this._parent.height)),e},constrain:function(e,s,h){e===void 0&&(e=0),s===void 0&&(s=e),h===void 0&&(h=!0),e=this.getNewWidth(e),s=this.getNewHeight(s);var i=this.snapTo,o=s===0?1:e/s;return h&&this.aspectRatio>o||!h&&this.aspectRatio0&&(s=a(s,i.y),e=s*this.aspectRatio)):(h&&this.aspectRatioo)&&(s=a(s,i.y),e=s*this.aspectRatio,i.x>0&&(e=a(e,i.x),s=e*(1/this.aspectRatio))),this._width=e,this._height=s,this},fitTo:function(e,s){return this.constrain(e,s,!0)},envelop:function(e,s){return this.constrain(e,s,!1)},setWidth:function(e){return this.setSize(e,this._height)},setHeight:function(e){return this.setSize(this._width,e)},toString:function(){return"[{ Size (width="+this._width+" height="+this._height+" aspectRatio="+this.aspectRatio+" aspectMode="+this.aspectMode+") }]"},setCSS:function(e){e&&e.style&&(e.style.width=this._width+"px",e.style.height=this._height+"px")},copy:function(e){return e.setAspectMode(this.aspectMode),e.aspectRatio=this.aspectRatio,e.setSize(this.width,this.height)},destroy:function(){this._parent=null,this.snapTo=null},width:{get:function(){return this._width},set:function(e){this.setSize(e,this._height)}},height:{get:function(){return this._height},set:function(e){this.setSize(this._width,e)}}});n.NONE=0,n.WIDTH_CONTROLS_HEIGHT=1,n.HEIGHT_CONTROLS_WIDTH=2,n.FIT=3,n.ENVELOP=4,c.exports=n},15238:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="add"},56187:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="remove"},82348:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={PROCESS_QUEUE_ADD:t(15238),PROCESS_QUEUE_REMOVE:t(56187)}},41392:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={Events:t(82348),List:t(73162),Map:t(90330),ProcessQueue:t(25774),RTree:t(59542),Set:t(35072),Size:t(86555)}},57382:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(45319),a=t(40987),r=t(8054),n=t(50030),e=t(79237),s=new u({Extends:e,initialize:function(i,o,l,f,d){e.call(this,i,o,l,f,d),this.add("__BASE",0,0,0,f,d),this._source=this.frames.__BASE.source,this.canvas=this._source.image,this.context=this.canvas.getContext("2d",{willReadFrequently:!0}),this.width=f,this.height=d,this.imageData=this.context.getImageData(0,0,f,d),this.data=null,this.imageData&&(this.data=this.imageData.data),this.pixels=null,this.buffer,this.data&&(this.imageData.data.buffer?(this.buffer=this.imageData.data.buffer,this.pixels=new Uint32Array(this.buffer)):window.ArrayBuffer?(this.buffer=new ArrayBuffer(this.imageData.data.length),this.pixels=new Uint32Array(this.buffer)):this.pixels=this.imageData.data)},update:function(){return this.imageData=this.context.getImageData(0,0,this.width,this.height),this.data=this.imageData.data,this.imageData.data.buffer?(this.buffer=this.imageData.data.buffer,this.pixels=new Uint32Array(this.buffer)):window.ArrayBuffer?(this.buffer=new ArrayBuffer(this.imageData.data.length),this.pixels=new Uint32Array(this.buffer)):this.pixels=this.imageData.data,this.manager.game.config.renderType===r.WEBGL&&this.refresh(),this},draw:function(h,i,o,l){return l===void 0&&(l=!0),this.context.drawImage(o,h,i),l&&this.update(),this},drawFrame:function(h,i,o,l,f){o===void 0&&(o=0),l===void 0&&(l=0),f===void 0&&(f=!0);var d=this.manager.getFrame(h,i);if(d){var v=d.canvasData,m=d.cutWidth,g=d.cutHeight,x=d.source.resolution;this.context.drawImage(d.source.image,v.x,v.y,m,g,o,l,m/x,g/x),f&&this.update()}return this},setPixel:function(h,i,o,l,f,d){d===void 0&&(d=255),h=Math.abs(Math.floor(h)),i=Math.abs(Math.floor(i));var v=this.getIndex(h,i);if(v>-1){var m=this.context.getImageData(h,i,1,1);m.data[0]=o,m.data[1]=l,m.data[2]=f,m.data[3]=d,this.context.putImageData(m,h,i)}return this},putData:function(h,i,o,l,f,d,v){return l===void 0&&(l=0),f===void 0&&(f=0),d===void 0&&(d=h.width),v===void 0&&(v=h.height),this.context.putImageData(h,i,o,l,f,d,v),this},getData:function(h,i,o,l){h=p(Math.floor(h),0,this.width-1),i=p(Math.floor(i),0,this.height-1),o=p(o,1,this.width-h),l=p(l,1,this.height-i);var f=this.context.getImageData(h,i,o,l);return f},getPixel:function(h,i,o){o||(o=new a);var l=this.getIndex(h,i);if(l>-1){var f=this.data,d=f[l+0],v=f[l+1],m=f[l+2],g=f[l+3];o.setTo(d,v,m,g)}return o},getPixels:function(h,i,o,l){h===void 0&&(h=0),i===void 0&&(i=0),o===void 0&&(o=this.width),l===void 0&&(l=o),h=Math.abs(Math.round(h)),i=Math.abs(Math.round(i));for(var f=p(h,0,this.width),d=p(h+o,0,this.width),v=p(i,0,this.height),m=p(i+l,0,this.height),g=new a,x=[],S=v;S{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(10312),p=t(38058),a=t(27919),r=t(83419),n=t(8054),e=t(4327),s=t(95540),h=t(36060),i=t(32302),o=t(79237),l=t(70554),f=new r({Extends:o,initialize:function(v,m,g,x){g===void 0&&(g=256),x===void 0&&(x=256),this.type="DynamicTexture";var S=v.game.renderer,C=S&&S.type===n.CANVAS,E=C?a.create2D(this,g,x):[this];o.call(this,v,m,E,g,x),this.add("__BASE",0,0,0,g,x),this.renderer=S,this.width=-1,this.height=-1,this.isDrawing=!1,this.canvas=C?E:null,this.context=C?E.getContext("2d",{willReadFrequently:!0}):null,this.dirty=!1,this.isSpriteTexture=!0,this._eraseMode=!1,this.camera=new p(0,0,g,x).setScene(v.game.scene.systemScene,!1),this.renderTarget=C?null:new i(S,g,x,1,0,!1,!1,!0,!1),this.pipeline=C?null:S.pipelines.get(h.SINGLE_PIPELINE),this.setSize(g,x)},setSize:function(d,v){v===void 0&&(v=d);var m=this.get(),g=m.source;if(d!==this.width||v!==this.height){this.canvas&&(this.canvas.width=d,this.canvas.height=v);var x=this.renderTarget;x&&(x.willResize(d,v)&&x.resize(d,v),x.texture!==g.glTexture&&this.renderer.deleteTexture(g.glTexture),this.setFromRenderTarget()),this.camera.setSize(d,v),g.width=d,g.height=v,m.setSize(d,v),this.width=d,this.height=v}else{var S=this.getSourceImage();m.cutX+d>S.width&&(d=S.width-m.cutX),m.cutY+v>S.height&&(v=S.height-m.cutY),m.setSize(d,v,m.cutX,m.cutY)}return this},setFromRenderTarget:function(){var d=this.get(),v=d.source,m=this.renderTarget;return v.isRenderTexture=!0,v.isGLTexture=!0,v.glTexture=m.texture,this},setIsSpriteTexture:function(d){return this.isSpriteTexture=d,this},fill:function(d,v,m,g,x,S){var C=this.camera,E=this.renderer;v===void 0&&(v=1),m===void 0&&(m=0),g===void 0&&(g=0),x===void 0&&(x=this.width),S===void 0&&(S=this.height);var P=d>>16&255,R=d>>8&255,M=d&255,A=this.renderTarget;if(C.preRender(),A){A.bind(!0);var L=this.pipeline.manager.set(this.pipeline),w=E.width/A.width,N=E.height/A.height,b=A.height-(g+S);L.drawFillRect(m*w,b*N,x*w,S*N,l.getTintFromFloats(M/255,R/255,P/255,1),v),A.unbind(!0)}else{var V=this.context;E.setContext(V),V.globalCompositeOperation="source-over",V.fillStyle="rgba("+P+","+R+","+M+","+v+")",V.fillRect(m,g,x,S),E.setContext()}return this.dirty=!0,this},clear:function(d,v,m,g){if(this.dirty){var x=this.context,S=this.renderTarget;S?S.clear(d,v,m,g):x&&(d!==void 0&&v!==void 0&&m!==void 0&&g!==void 0?x.clearRect(d,v,m,g):(x.save(),x.setTransform(1,0,0,1,0,0),x.clearRect(0,0,this.width,this.height),x.restore())),this.dirty=!1}return this},stamp:function(d,v,m,g,x){m===void 0&&(m=0),g===void 0&&(g=0);var S=s(x,"alpha",1),C=s(x,"tint",16777215),E=s(x,"angle",0),P=s(x,"rotation",0),R=s(x,"scale",1),M=s(x,"scaleX",R),A=s(x,"scaleY",R),L=s(x,"originX",.5),w=s(x,"originY",.5),N=s(x,"blendMode",0),b=s(x,"erase",!1),V=s(x,"skipBatch",!1),Y=this.manager.resetStamp(S,C);return Y.setAngle(0),E!==0?Y.setAngle(E):P!==0&&Y.setRotation(P),Y.setScale(M,A),Y.setTexture(d,v),Y.setOrigin(L,w),Y.setBlendMode(N),b&&(this._eraseMode=!0),V?this.batchGameObject(Y,m,g):this.draw(Y,m,g),b&&(this._eraseMode=!1),this},erase:function(d,v,m){return this._eraseMode=!0,this.draw(d,v,m),this._eraseMode=!1,this},draw:function(d,v,m,g,x){return this.beginDraw(),this.batchDraw(d,v,m,g,x),this.endDraw(),this},drawFrame:function(d,v,m,g,x,S){return this.beginDraw(),this.batchDrawFrame(d,v,m,g,x,S),this.endDraw(),this},repeat:function(d,v,m,g,x,S,C,E,P){if(m===void 0&&(m=0),g===void 0&&(g=0),x===void 0&&(x=this.width),S===void 0&&(S=this.height),C===void 0&&(C=1),E===void 0&&(E=16777215),P===void 0&&(P=!1),d instanceof e?v=d:v=this.manager.getFrame(d,v),!v)return this;var R=this.manager.resetStamp(C,E);R.setFrame(v),R.setOrigin(0);var M=v.width,A=v.height;x=Math.floor(x),S=Math.floor(S);var L=Math.ceil(x/M),w=Math.ceil(S/A),N=L*M-x,b=w*A-S;N>0&&(N=M-N),b>0&&(b=A-b),m<0&&(L+=Math.ceil(Math.abs(m)/M)),g<0&&(w+=Math.ceil(Math.abs(g)/A));var V=m,Y=g,G=!1,U=this.manager.stampCrop.setTo(0,0,M,A);P||this.beginDraw();for(var B=0;B0&&I===L-1&&(G=!0,U.width=N),b>0&&B===w-1&&(G=!0,U.height=b),G&&R.setCrop(U),this.batchGameObject(R,V,Y),R.isCropped=!1,U.setTo(0,0,M,A),V+=M}V=m,Y+=A}return P||this.endDraw(),this},beginDraw:function(){if(!this.isDrawing){var d=this.camera,v=this.renderer,m=this.renderTarget;d.preRender(),m?v.beginCapture(m.width,m.height):v.setContext(this.context),this.isDrawing=!0}return this},batchDraw:function(d,v,m,g,x){return Array.isArray(d)||(d=[d]),this.batchList(d,v,m,g,x),this},batchDrawFrame:function(d,v,m,g,x,S){m===void 0&&(m=0),g===void 0&&(g=0),x===void 0&&(x=1),S===void 0&&(S=16777215);var C=this.manager.getFrame(d,v);return C&&(this.renderTarget?this.pipeline.batchTextureFrame(C,m,g,S,x,this.camera.matrix,null):this.batchTextureFrame(C,m,g,x,S)),this},endDraw:function(d){if(d===void 0&&(d=this._eraseMode),this.isDrawing){var v=this.renderer,m=this.renderTarget;if(m){var g=v.endCapture(),x=v.pipelines.setUtility();x.blitFrame(g,m,1,!1,!1,d,this.isSpriteTexture),v.resetScissor(),v.resetViewport()}else v.setContext();this.dirty=!0,this.isDrawing=!1}return this},batchList:function(d,v,m,g,x){var S=d.length;if(S!==0)for(var C=0;C0&&P.height>0&&E.drawImage(R,P.x,P.y,P.width,P.height,v,m,P.width,P.height),E.restore()}},snapshotArea:function(d,v,m,g,x,S,C){return this.renderTarget?this.renderer.snapshotFramebuffer(this.renderTarget.framebuffer,this.width,this.height,x,!1,d,v,m,g,S,C):this.renderer.snapshotCanvas(this.canvas,x,!1,d,v,m,g,S,C),this},snapshot:function(d,v,m){return this.snapshotArea(0,0,this.width,this.height,d,v,m)},snapshotPixel:function(d,v,m){return this.snapshotArea(d,v,1,1,m,"pixel")},getWebGLTexture:function(){if(this.renderTarget)return this.renderTarget.texture},renderWebGL:function(d,v,m,g){var x=this.manager.resetStamp();x.setTexture(this),x.setOrigin(0),x.renderWebGL(d,x,m,g)},renderCanvas:function(){},destroy:function(){var d=this.manager.stamp;d&&d.texture===this&&this.manager.resetStamp(),o.prototype.destroy.call(this),a.remove(this.canvas),this.renderTarget&&this.renderTarget.destroy(),this.camera.destroy(),this.canvas=null,this.context=null,this.renderer=null}});c.exports=f},4327:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(45319),a=t(79291),r=new u({initialize:function(e,s,h,i,o,l,f){this.texture=e,this.name=s,this.source=e.source[h],this.sourceIndex=h,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},is3Slice:!1,scale9:!1,scale9Borders:{x:0,y:0,w:0,h:0}},this.setSize(l,f,i,o)},setCutPosition:function(n,e){return n===void 0&&(n=0),e===void 0&&(e=0),this.cutX=n,this.cutY=e,this.updateUVs()},setCutSize:function(n,e){return this.cutWidth=n,this.cutHeight=e,this.updateUVs()},setSize:function(n,e,s,h){s===void 0&&(s=0),h===void 0&&(h=0),this.setCutPosition(s,h),this.setCutSize(n,e),this.width=n,this.height=e,this.halfWidth=Math.floor(n*.5),this.halfHeight=Math.floor(e*.5),this.centerX=Math.floor(n/2),this.centerY=Math.floor(e/2);var i=this.data,o=i.cut;o.x=s,o.y=h,o.w=n,o.h=e,o.r=s+n,o.b=h+e,i.sourceSize.w=n,i.sourceSize.h=e,i.spriteSourceSize.w=n,i.spriteSourceSize.h=e,i.radius=.5*Math.sqrt(n*n+e*e);var l=i.drawImage;return l.x=s,l.y=h,l.width=n,l.height=e,this.updateUVs()},setTrim:function(n,e,s,h,i,o){var l=this.data,f=l.spriteSourceSize;return l.trim=!0,l.sourceSize.w=n,l.sourceSize.h=e,f.x=s,f.y=h,f.w=i,f.h=o,f.r=s+i,f.b=h+o,this.x=s,this.y=h,this.width=i,this.height=o,this.halfWidth=i*.5,this.halfHeight=o*.5,this.centerX=Math.floor(i/2),this.centerY=Math.floor(o/2),this.updateUVs()},setScale9:function(n,e,s,h){var i=this.data;return i.scale9=!0,i.is3Slice=e===0&&h===this.height,i.scale9Borders.x=n,i.scale9Borders.y=e,i.scale9Borders.w=s,i.scale9Borders.h=h,this},setCropUVs:function(n,e,s,h,i,o,l){var f=this.cutX,d=this.cutY,v=this.cutWidth,m=this.cutHeight,g=this.realWidth,x=this.realHeight;e=p(e,0,g),s=p(s,0,x),h=p(h,0,g-e),i=p(i,0,x-s);var S=f+e,C=d+s,E=h,P=i,R=this.data;if(R.trim){var M=R.spriteSourceSize;h=p(h,0,v-e),i=p(i,0,m-s);var A=e+h,L=s+i,w=!(M.rA||M.y>L);if(w){var N=Math.max(M.x,e),b=Math.max(M.y,s),V=Math.min(M.r,A)-N,Y=Math.min(M.b,L)-b;E=V,P=Y,o?S=f+(v-(N-M.x)-V):S=f+(N-M.x),l?C=d+(m-(b-M.y)-Y):C=d+(b-M.y),e=N,s=b,h=V,i=Y}else S=0,C=0,E=0,P=0}else o&&(S=f+(v-e-h)),l&&(C=d+(m-s-i));var G=this.source.width,U=this.source.height;return n.u0=Math.max(0,S/G),n.v0=Math.max(0,C/U),n.u1=Math.min(1,(S+E)/G),n.v1=Math.min(1,(C+P)/U),n.x=e,n.y=s,n.cx=S,n.cy=C,n.cw=E,n.ch=P,n.width=h,n.height=i,n.flipX=o,n.flipY=l,n},updateCropUVs:function(n,e,s){return this.setCropUVs(n,n.x,n.y,n.width,n.height,e,s)},setUVs:function(n,e,s,h,i,o){var l=this.data.drawImage;return l.width=n,l.height=e,this.u0=s,this.v0=h,this.u1=i,this.v1=o,this},updateUVs:function(){var n=this.cutX,e=this.cutY,s=this.cutWidth,h=this.cutHeight,i=this.data.drawImage;i.width=s,i.height=h;var o=this.source.width,l=this.source.height;return this.u0=n/o,this.v0=e/l,this.u1=(n+s)/o,this.v1=(e+h)/l,this},updateUVsInverted:function(){var n=this.source.width,e=this.source.height;return this.u0=(this.cutX+this.cutHeight)/n,this.v0=this.cutY/e,this.u1=this.cutX/n,this.v1=(this.cutY+this.cutWidth)/e,this},clone:function(){var n=new r(this.texture,this.name,this.sourceIndex);return n.cutX=this.cutX,n.cutY=this.cutY,n.cutWidth=this.cutWidth,n.cutHeight=this.cutHeight,n.x=this.x,n.y=this.y,n.width=this.width,n.height=this.height,n.halfWidth=this.halfWidth,n.halfHeight=this.halfHeight,n.centerX=this.centerX,n.centerY=this.centerY,n.rotated=this.rotated,n.data=a(!0,n.data,this.data),n.updateUVs(),n},destroy:function(){this.texture=null,this.source=null,this.customData=null,this.data=null},glTexture:{get:function(){return this.source.glTexture}},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}},scale9:{get:function(){return this.data.scale9}},is3Slice:{get:function(){return this.data.is3Slice}},canvasData:{get:function(){return this.data.drawImage}}});c.exports=r},79237:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(4327),a=t(11876),r='Texture "%s" has no frame "%s"',n=new u({initialize:function(s,h,i,o,l){Array.isArray(i)||(i=[i]),this.manager=s,this.key=h,this.source=[],this.dataSource=[],this.frames={},this.customData={},this.firstFrame="__BASE",this.frameTotal=0;for(var f=0;fl&&(l=v.cutX+v.cutWidth),v.cutY+v.cutHeight>f&&(f=v.cutY+v.cutHeight)}return{x:i,y:o,width:l-i,height:f-o}},getFrameNames:function(e){e===void 0&&(e=!1);var s=Object.keys(this.frames);if(!e){var h=s.indexOf("__BASE");h!==-1&&s.splice(h,1)}return s},getSourceImage:function(e){(e==null||this.frameTotal===1)&&(e="__BASE");var s=this.frames[e];return s?s.source.image:(console.warn(r,this.key,e),this.frames.__BASE.source.image)},getDataSourceImage:function(e){(e==null||this.frameTotal===1)&&(e="__BASE");var s=this.frames[e],h;return s?h=s.sourceIndex:(console.warn(r,this.key,e),h=this.frames.__BASE.sourceIndex),this.dataSource[h].image},setDataSource:function(e){Array.isArray(e)||(e=[e]);for(var s=0;s{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(27919),p=t(57382),a=t(83419),r=t(40987),n=t(8054),e=t(81320),s=t(50792),h=t(69442),i=t(4327),o=t(8443),l=t(99584),f=t(35154),d=t(88571),v=t(41212),m=t(61309),g=t(87841),x=t(79237),S=new a({Extends:s,initialize:function(E){s.call(this),this.game=E,this.name="TextureManager",this.list={},this._tempCanvas=u.create2D(this),this._tempContext=this._tempCanvas.getContext("2d",{willReadFrequently:!0}),this._pending=0,this.stamp,this.stampCrop=new g,this.silentWarnings=!1,E.events.once(o.BOOT,this.boot,this)},boot:function(){this._pending=3,this.on(h.LOAD,this.updatePending,this),this.on(h.ERROR,this.updatePending,this);var C=this.game.config;C.defaultImage!==null&&this.addBase64("__DEFAULT",C.defaultImage),C.missingImage!==null&&this.addBase64("__MISSING",C.missingImage),C.whiteImage!==null&&this.addBase64("__WHITE",C.whiteImage),this.game.renderer&&this.game.renderer.gl&&this.addUint8Array("__NORMAL",new Uint8Array([127,127,255,255]),1,1),this.game.events.once(o.DESTROY,this.destroy,this),this.game.events.once(o.SYSTEM_READY,function(E){this.stamp=new d(E).setOrigin(0)},this)},updatePending:function(){this._pending--,this._pending===0&&(this.off(h.LOAD),this.off(h.ERROR),this.emit(h.READY))},checkKey:function(C){return!C||typeof C!="string"||this.exists(C)?(this.silentWarnings||console.error("Texture key already in use: "+C),!1):!0},remove:function(C){if(typeof C=="string")if(this.exists(C))C=this.get(C);else return this.silentWarnings||console.warn("No texture found matching key: "+C),this;var E=C.key;return this.list.hasOwnProperty(E)&&(C.destroy(),this.emit(h.REMOVE,E),this.emit(h.REMOVE_KEY+E)),this},removeKey:function(C){return this.list.hasOwnProperty(C)&&delete this.list[C],this},addBase64:function(C,E){if(this.checkKey(C)){var P=this,R=new Image;R.onerror=function(){P.emit(h.ERROR,C)},R.onload=function(){var M=P.create(C,R);m.Image(M,0),P.emit(h.ADD,C,M),P.emit(h.ADD_KEY+C,M),P.emit(h.LOAD,C,M)},R.src=E}return this},getBase64:function(C,E,P,R){P===void 0&&(P="image/png"),R===void 0&&(R=.92);var M="",A=this.getFrame(C,E);if(A&&(A.source.isRenderTexture||A.source.isGLTexture))this.silentWarnings||console.warn("Cannot getBase64 from WebGL Texture");else if(A){var L=A.canvasData,w=u.create2D(this,L.width,L.height),N=w.getContext("2d",{willReadFrequently:!0});L.width>0&&L.height>0&&N.drawImage(A.source.image,L.x,L.y,L.width,L.height,0,0,L.width,L.height),M=w.toDataURL(P,R),u.remove(w)}return M},addImage:function(C,E,P){var R=null;return this.checkKey(C)&&(R=this.create(C,E),m.Image(R,0),P&&R.setDataSource(P),this.emit(h.ADD,C,R),this.emit(h.ADD_KEY+C,R)),R},addGLTexture:function(C,E){var P=null;if(this.checkKey(C)){var R=E.width,M=E.height;P=this.create(C,E,R,M),P.add("__BASE",0,0,0,R,M),this.emit(h.ADD,C,P),this.emit(h.ADD_KEY+C,P)}return P},addCompressedTexture:function(C,E,P){var R=null;if(this.checkKey(C)){if(R=this.create(C,E),R.add("__BASE",0,0,0,E.width,E.height),P){var M=function(L,w,N){Array.isArray(N.textures)||Array.isArray(N.frames)?m.JSONArray(L,w,N):m.JSONHash(L,w,N)};if(Array.isArray(P))for(var A=0;A=A.x&&C=A.y&&E=A.x&&C=A.y&&E{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(27919),p=t(83419),a=t(50030),r=t(29795),n=t(82751),e=new p({initialize:function(h,i,o,l,f){f===void 0&&(f=!1);var d=h.manager.game;this.renderer=d.renderer,this.texture=h,this.source=i,this.image=i.compressed?null:i,this.compressionAlgorithm=i.compressed?i.format:null,this.resolution=1,this.width=o||i.naturalWidth||i.videoWidth||i.width||0,this.height=l||i.naturalHeight||i.videoHeight||i.height||0,this.scaleMode=r.DEFAULT,this.isCanvas=i instanceof HTMLCanvasElement,this.isVideo=window.hasOwnProperty("HTMLVideoElement")&&i instanceof HTMLVideoElement,this.isRenderTexture=i.type==="RenderTexture"||i.type==="DynamicTexture",this.isGLTexture=i instanceof n,this.isPowerOf2=a(this.width,this.height),this.glTexture=null,this.flipY=f,this.init(d)},init:function(s){var h=this.renderer;if(h){var i=this.source;if(h.gl){var o=this.image,l=this.flipY,f=this.width,d=this.height,v=this.scaleMode;this.isCanvas?this.glTexture=h.createCanvasTexture(o,!1,l):this.isVideo?this.glTexture=h.createVideoTexture(o,!1,l):this.isRenderTexture?this.glTexture=h.createTextureFromSource(null,f,d,v):this.isGLTexture?this.glTexture=i:this.compressionAlgorithm?this.glTexture=h.createTextureFromSource(i,void 0,void 0,v):i instanceof Uint8Array?this.glTexture=h.createUint8ArrayTexture(i,f,d,v):this.glTexture=h.createTextureFromSource(o,f,d,v)}else this.isRenderTexture&&(this.image=i.canvas)}s.config.antialias||this.setFilter(1)},setFilter:function(s){this.renderer&&this.renderer.gl&&this.renderer.setTextureFilter(this.glTexture,s),this.scaleMode=s},setFlipY:function(s){return s===void 0&&(s=!0),s===this.flipY?this:(this.flipY=s,this.update(),this)},update:function(){var s=this.renderer,h=this.image,i=this.flipY,o=s.gl;o&&this.isCanvas?s.updateCanvasTexture(h,this.glTexture,i):o&&this.isVideo&&s.updateVideoTexture(h,this.glTexture,i)},destroy:function(){this.glTexture&&this.renderer.deleteTexture(this.glTexture),this.isCanvas&&u.remove(this.image),this.renderer=null,this.texture=null,this.source=null,this.image=null,this.glTexture=null}});c.exports=e},19673:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={LINEAR:0,NEAREST:1};c.exports=y},44538:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="addtexture"},63486:c=>{/** + * @author samme + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="addtexture-"},94851:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="onerror"},29099:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="onload"},8678:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="ready"},86415:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="removetexture"},30879:c=>{/** + * @author samme + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="removetexture-"},69442:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={ADD:t(44538),ADD_KEY:t(63486),ERROR:t(94851),LOAD:t(29099),READY:t(8678),REMOVE:t(86415),REMOVE_KEY:t(30879)}},27458:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(79291),p=t(19673),a={CanvasTexture:t(57382),DynamicTexture:t(81320),Events:t(69442),FilterMode:p,Frame:t(4327),Parsers:t(61309),Texture:t(79237),TextureManager:t(17130),TextureSource:t(11876)};a=u(!1,a,p),c.exports=a},89905:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){if(!p.getElementsByTagName("TextureAtlas")){console.warn("Invalid Texture Atlas XML given");return}var a=t.source[u];t.add("__BASE",u,0,0,a.width,a.height);for(var r=p.getElementsByTagName("SubTexture"),n,e=0;e{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){var p=t.source[u];return t.add("__BASE",u,0,0,p.width,p.height),t};c.exports=y},4832:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){var p=t.source[u];return t.add("__BASE",u,0,0,p.width,p.height),t};c.exports=y},78566:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(41786),p=function(a,r,n){if(!n.frames&&!n.textures){console.warn("Invalid Texture Atlas JSON Array");return}var e=a.source[r];a.add("__BASE",r,0,0,e.width,e.height);for(var s=Array.isArray(n.textures)?n.textures[r].frames:n.frames,h,i=0;i{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(41786),p=function(a,r,n){if(!n.frames){console.warn("Invalid Texture Atlas JSON Hash given, missing 'frames' Object");return}var e=a.source[r];a.add("__BASE",r,0,0,e.width,e.height);var s=n.frames,h;for(var i in s)if(s.hasOwnProperty(i)){var o=s[i];if(h=a.add(i,r,o.frame.x,o.frame.y,o.frame.w,o.frame.h),!h){console.warn("Invalid atlas json, frame already exists: "+i);continue}o.trimmed&&h.setTrim(o.sourceSize.w,o.sourceSize.h,o.spriteSourceSize.x,o.spriteSourceSize.y,o.spriteSourceSize.w,o.spriteSourceSize.h),o.rotated&&(h.rotated=!0,h.updateUVsInverted());var l=o.anchor||o.pivot;l&&(h.customPivot=!0,h.pivotX=l.x,h.pivotY=l.y),o.scale9Borders&&h.setScale9(o.scale9Borders.x,o.scale9Borders.y,o.scale9Borders.w,o.scale9Borders.h),h.customData=u(o)}for(var f in n)f!=="frames"&&(Array.isArray(n[f])?a.customData[f]=n[f].slice(0):a.customData[f]=n[f]);return a};c.exports=p},31403:c=>{/** + * @author Richard Davey + * @copyright 2021 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){var u=[171,75,84,88,32,49,49,187,13,10,26,10],p,a=new Uint8Array(t,0,12);for(p=0;p>1),g=Math.max(1,g>>1),v+=x}return{mipmaps:d,width:i,height:o,internalFormat:h,compressed:!0,generateMipmap:!1}};c.exports=y},82038:c=>{/** + * @author Richard Davey + * @copyright 2021 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */function y(E,P,R,M,A,L,w){return w===void 0&&(w=16),Math.floor((E+R)/A)*Math.floor((P+M)/L)*w}function t(E,P){return E=Math.max(E,16),P=Math.max(P,8),E*P/4}function u(E,P){return E=Math.max(E,8),P=Math.max(P,8),E*P/2}function p(E,P){return Math.ceil(E/4)*Math.ceil(P/4)*16}function a(E,P){return y(E,P,3,3,4,4,8)}function r(E,P){return y(E,P,3,3,4,4)}function n(E,P){return y(E,P,4,3,5,4)}function e(E,P){return y(E,P,4,4,5,5)}function s(E,P){return y(E,P,5,4,6,5)}function h(E,P){return y(E,P,5,5,6,6)}function i(E,P){return y(E,P,7,4,8,5)}function o(E,P){return y(E,P,7,5,8,6)}function l(E,P){return y(E,P,7,7,8,8)}function f(E,P){return y(E,P,9,4,10,5)}function d(E,P){return y(E,P,9,5,10,6)}function v(E,P){return y(E,P,9,7,10,8)}function m(E,P){return y(E,P,9,9,10,10)}function g(E,P){return y(E,P,11,9,12,10)}function x(E,P){return y(E,P,11,11,12,12)}var S={0:{sizeFunc:t,glFormat:[35841]},1:{sizeFunc:t,glFormat:[35843]},2:{sizeFunc:u,glFormat:[35840]},3:{sizeFunc:u,glFormat:[35842]},6:{sizeFunc:a,glFormat:[36196]},7:{sizeFunc:a,glFormat:[33776,35916]},8:{sizeFunc:r,glFormat:[33777,35917]},9:{sizeFunc:r,glFormat:[33778,35918]},11:{sizeFunc:r,glFormat:[33779,35919]},14:{sizeFunc:p,glFormat:[36494,36495]},15:{sizeFunc:p,glFormat:[36492,36493]},22:{sizeFunc:a,glFormat:[37492,37493]},23:{sizeFunc:r,glFormat:[37496,37497]},24:{sizeFunc:a,glFormat:[37494,37495]},25:{sizeFunc:a,glFormat:[37488]},26:{sizeFunc:r,glFormat:[37490]},27:{sizeFunc:r,glFormat:[37808,37840]},28:{sizeFunc:n,glFormat:[37809,37841]},29:{sizeFunc:e,glFormat:[37810,37842]},30:{sizeFunc:s,glFormat:[37811,37843]},31:{sizeFunc:h,glFormat:[37812,37844]},32:{sizeFunc:i,glFormat:[37813,37845]},33:{sizeFunc:o,glFormat:[37814,37846]},34:{sizeFunc:l,glFormat:[37815,37847]},35:{sizeFunc:f,glFormat:[37816,37848]},36:{sizeFunc:d,glFormat:[37817,37849]},37:{sizeFunc:v,glFormat:[37818,37850]},38:{sizeFunc:m,glFormat:[37819,37851]},39:{sizeFunc:g,glFormat:[37820,37852]},40:{sizeFunc:x,glFormat:[37821,37853]}},C=function(E){for(var P=new Uint32Array(E,0,13),R=P[0],M=R===55727696,A=M?P[2]:P[3],L=P[4],w=S[A].glFormat[L],N=S[A].sizeFunc,b=P[11],V=P[7],Y=P[6],G=52+P[12],U=new Uint8Array(E,G),B=new Array(b),I=0,X=V,K=Y,Z=0;Z>1),K=Math.max(1,K>>1),I+=J}return{mipmaps:B,width:V,height:Y,internalFormat:w,compressed:!0,generateMipmap:!1}};c.exports=C},75549:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(95540),p=function(a,r,n,e,s,h,i){var o=u(i,"frameWidth",null),l=u(i,"frameHeight",o);if(o===null)throw new Error("TextureManager.SpriteSheet: Invalid frameWidth given.");var f=a.source[r];a.add("__BASE",r,0,0,f.width,f.height);var d=u(i,"startFrame",0),v=u(i,"endFrame",-1),m=u(i,"margin",0),g=u(i,"spacing",0),x=Math.floor((s-m+g)/(o+g)),S=Math.floor((h-m+g)/(l+g)),C=x*S;C===0&&console.warn("SpriteSheet frame dimensions will result in zero frames for texture:",a.key),(d>C||d<-C)&&(d=0),d<0&&(d=C+d),(v===-1||v>C||vs&&(R=w-s),N>h&&(M=N-h),L>=d&&L<=v&&(a.add(A,r,n+E,e+P,o-R,l-M),A++),E+=o+g,E+o>s&&(E=m,P+=l+g)}return a};c.exports=p},47534:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(95540),p=function(a,r,n){var e=u(n,"frameWidth",null),s=u(n,"frameHeight",e);if(!e)throw new Error("TextureManager.SpriteSheetFromAtlas: Invalid frameWidth given.");var h=a.source[0];a.add("__BASE",0,0,0,h.width,h.height),u(n,"startFrame",0),u(n,"endFrame",-1);for(var i=u(n,"margin",0),o=u(n,"spacing",0),l=r.cutX,f=r.cutY,d=r.cutWidth,v=r.cutHeight,m=r.realWidth,g=r.realHeight,x=Math.floor((m-i+o)/(e+o)),S=Math.floor((g-i+o)/(s+o)),C=r.x,E=e-C,P=e-(m-d-C),R=r.y,M=s-R,A=s-(g-v-R),L,w=i,N=i,b=0,V=0,Y=0;Y{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=0,t=function(p,a,r,n){var e=y-n.y-n.height;p.add(r,a,n.x,e,n.width,n.height)},u=function(p,a,r){var n=p.source[a];p.add("__BASE",a,0,0,n.width,n.height),y=n.height;for(var e=r.split(` +`),s=/^[ ]*(- )*(\w+)+[: ]+(.*)/,h="",i="",o={x:0,y:0,width:0,height:0},l=0;l{/** + * @author Ben Richards + * @copyright 2024 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(50030),p=function(h){for(var i=h.mipmaps,o=1;o{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={AtlasXML:t(89905),Canvas:t(72893),Image:t(4832),JSONArray:t(78566),JSONHash:t(39711),KTXParser:t(31403),PVRParser:t(82038),SpriteSheet:t(75549),SpriteSheetFromAtlas:t(47534),UnityYAML:t(86147)}},80341:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={CSV:0,TILED_JSON:1,ARRAY_2D:2,WELTMEISTER:3}},16536:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=new u({initialize:function(r,n,e,s,h,i,o){(e===void 0||e<=0)&&(e=32),(s===void 0||s<=0)&&(s=32),h===void 0&&(h=0),i===void 0&&(i=0),this.name=r,this.firstgid=n|0,this.imageWidth=e|0,this.imageHeight=s|0,this.imageMargin=h|0,this.imageSpacing=i|0,this.properties=o||{},this.images=[],this.total=0},containsImageIndex:function(a){return a>=this.firstgid&&a{/** + * @author Richard Davey + * @copyright 2021 Photon Storm Ltd. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=new u({initialize:function(r){if(this.gids=[],r!==void 0)for(var n=0;n{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(80341),p=t(87010),a=t(46177),r=t(49075),n=function(e,s,h,i,o,l,f,d){h===void 0&&(h=32),i===void 0&&(i=32),o===void 0&&(o=10),l===void 0&&(l=10),d===void 0&&(d=!1);var v=null;if(Array.isArray(f)){var m=s!==void 0?s:"map";v=a(m,u.ARRAY_2D,f,h,i,d)}else if(s!==void 0){var g=e.cache.tilemap.get(s);g?v=a(s,g.format,g.data,h,i,d):console.warn("No map data found for key "+s)}return v===null&&(v=new p({tileWidth:h,tileHeight:i,width:o,height:l})),new r(e,v)};c.exports=n},23029:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(31401),a=t(91907),r=t(62644),n=t(93232),e=new u({Mixins:[p.AlphaSingle,p.Flip,p.Visible],initialize:function(h,i,o,l,f,d,v,m){this.layer=h,this.index=i,this.x=o,this.y=l,this.width=f,this.height=d,this.right,this.bottom,this.baseWidth=v!==void 0?v:f,this.baseHeight=m!==void 0?m:d,this.pixelX=0,this.pixelY=0,this.updatePixelXY(),this.properties={},this.rotation=0,this.collideLeft=!1,this.collideRight=!1,this.collideUp=!1,this.collideDown=!1,this.faceLeft=!1,this.faceRight=!1,this.faceTop=!1,this.faceBottom=!1,this.collisionCallback=void 0,this.collisionCallbackContext=this,this.tint=16777215,this.tintFill=!1,this.physics={}},containsPoint:function(s,h){return!(sthis.right||h>this.bottom)},copy:function(s){return this.index=s.index,this.alpha=s.alpha,this.properties=r(s.properties),this.visible=s.visible,this.setFlip(s.flipX,s.flipY),this.tint=s.tint,this.rotation=s.rotation,this.collideUp=s.collideUp,this.collideDown=s.collideDown,this.collideLeft=s.collideLeft,this.collideRight=s.collideRight,this.collisionCallback=s.collisionCallback,this.collisionCallbackContext=s.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(s){var h=this.tilemapLayer;if(h){var i=h.tileToWorldXY(this.x,this.y,void 0,s);return i.x}return this.x*this.baseWidth},getRight:function(s){var h=this.tilemapLayer;return h?this.getLeft(s)+this.width*h.scaleX:this.getLeft(s)+this.width},getTop:function(s){var h=this.tilemapLayer;if(h){var i=h.tileToWorldXY(this.x,this.y,void 0,s);return i.y}return this.y*this.baseWidth-(this.height-this.baseHeight)},getBottom:function(s){var h=this.tilemapLayer;return h?this.getTop(s)+this.height*h.scaleY:this.getTop(s)+this.height},getBounds:function(s,h){return h===void 0&&(h=new n),h.x=this.getLeft(s),h.y=this.getTop(s),h.width=this.getRight(s)-h.x,h.height=this.getBottom(s)-h.y,h},getCenterX:function(s){return(this.getLeft(s)+this.getRight(s))/2},getCenterY:function(s){return(this.getTop(s)+this.getBottom(s))/2},intersects:function(s,h,i,o){return!(i<=this.pixelX||o<=this.pixelY||s>=this.right||h>=this.bottom)},isInteresting:function(s,h){return s&&h?this.canCollide||this.hasInterestingFace:s?this.collides:h?this.hasInterestingFace:!1},resetCollision:function(s){if(s===void 0&&(s=!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,s){var h=this.tilemapLayer;h&&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(s,h,i,o,l){if(h===void 0&&(h=s),i===void 0&&(i=s),o===void 0&&(o=s),l===void 0&&(l=!0),this.collideLeft=s,this.collideRight=h,this.collideUp=i,this.collideDown=o,this.faceLeft=s,this.faceRight=h,this.faceTop=i,this.faceBottom=o,l){var f=this.tilemapLayer;f&&this.tilemapLayer.calculateFacesAt(this.x,this.y)}return this},setCollisionCallback:function(s,h){return s===null?(this.collisionCallback=void 0,this.collisionCallbackContext=void 0):(this.collisionCallback=s,this.collisionCallbackContext=h),this},setSize:function(s,h,i,o){return s!==void 0&&(this.width=s),h!==void 0&&(this.height=h),i!==void 0&&(this.baseWidth=i),o!==void 0&&(this.baseHeight=o),this.updatePixelXY(),this},updatePixelXY:function(){var s=this.layer.orientation;if(s===a.ORTHOGONAL)this.pixelX=this.x*this.baseWidth,this.pixelY=this.y*this.baseHeight;else if(s===a.ISOMETRIC)this.pixelX=(this.x-this.y)*this.baseWidth*.5,this.pixelY=(this.x+this.y)*this.baseHeight*.5;else if(s===a.STAGGERED)this.pixelX=this.x*this.baseWidth+this.y%2*(this.baseWidth/2),this.pixelY=this.y*(this.baseHeight/2);else if(s===a.HEXAGONAL){var h=this.layer.staggerAxis,i=this.layer.staggerIndex,o=this.layer.hexSideLength,l,f;h==="y"?(f=(this.baseHeight-o)/2+o,i==="odd"?this.pixelX=this.x*this.baseWidth+this.y%2*(this.baseWidth/2):this.pixelX=this.x*this.baseWidth-this.y%2*(this.baseWidth/2),this.pixelY=this.y*f):h==="x"&&(l=(this.baseWidth-o)/2+o,this.pixelX=this.x*l,i==="odd"?this.pixelY=this.y*this.baseHeight+this.x%2*(this.baseHeight/2):this.pixelY=this.y*this.baseHeight-this.x%2*(this.baseHeight/2))}return this.right=this.pixelX+this.baseWidth,this.bottom=this.pixelY+this.baseHeight,this},destroy:function(){this.collisionCallback=void 0,this.collisionCallbackContext=void 0,this.properties=void 0},canCollide:{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown||this.collisionCallback!==void 0}},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 s=this.layer.tilemapLayer;if(s){var h=s.gidMap[this.index];if(h)return h}return null}},tilemapLayer:{get:function(){return this.layer.tilemapLayer}},tilemap:{get:function(){var s=this.tilemapLayer;return s?s.tilemap:null}}});c.exports=e},49075:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(84101),p=t(83419),a=t(39506),r=t(80341),n=t(95540),e=t(14977),s=t(27462),h=t(91907),i=t(36305),o=t(19133),l=t(68287),f=t(23029),d=t(81086),v=t(20442),m=t(33629),g=new p({initialize:function(S,C){this.scene=S,this.tileWidth=C.tileWidth,this.tileHeight=C.tileHeight,this.width=C.width,this.height=C.height,this.orientation=C.orientation,this.renderOrder=C.renderOrder,this.format=C.format,this.version=C.version,this.properties=C.properties,this.widthInPixels=C.widthInPixels,this.heightInPixels=C.heightInPixels,this.imageCollections=C.imageCollections,this.images=C.images,this.layers=C.layers,this.tiles=C.tiles,this.tilesets=C.tilesets,this.objects=C.objects,this.currentLayerIndex=0,this.hexSideLength=C.hexSideLength;var E=this.orientation;this._convert={WorldToTileXY:d.GetWorldToTileXYFunction(E),WorldToTileX:d.GetWorldToTileXFunction(E),WorldToTileY:d.GetWorldToTileYFunction(E),TileToWorldXY:d.GetTileToWorldXYFunction(E),TileToWorldX:d.GetTileToWorldXFunction(E),TileToWorldY:d.GetTileToWorldYFunction(E),GetTileCorners:d.GetTileCornersFunction(E)}},setRenderOrder:function(x){var S=["right-down","left-down","right-up","left-up"];return typeof x=="number"&&(x=S[x]),S.indexOf(x)>-1&&(this.renderOrder=x),this},addTilesetImage:function(x,S,C,E,P,R,M,A){if(x===void 0)return null;S==null&&(S=x);var L=this.scene.sys.textures;if(!L.exists(S))return console.warn('Texture key "%s" not found',S),null;var w=L.get(S),N=this.getTilesetIndex(x);if(N===null&&this.format===r.TILED_JSON)return console.warn('Tilemap has no tileset "%s". Its tilesets are %o',x,this.tilesets),null;var b=this.tilesets[N];return b?((C||E)&&b.setTileSize(C,E),(P||R)&&b.setSpacing(P,R),b.setImage(w),b):(C===void 0&&(C=this.tileWidth),E===void 0&&(E=this.tileHeight),P===void 0&&(P=0),R===void 0&&(R=0),M===void 0&&(M=0),A===void 0&&(A={x:0,y:0}),b=new m(x,M,C,E,P,R,void 0,void 0,A),b.setImage(w),this.tilesets.push(b),this.tiles=u(this),b)},copy:function(x,S,C,E,P,R,M,A){return A=this.getLayer(A),A!==null?(d.Copy(x,S,C,E,P,R,M,A),this):null},createBlankLayer:function(x,S,C,E,P,R,M,A){C===void 0&&(C=0),E===void 0&&(E=0),P===void 0&&(P=this.width),R===void 0&&(R=this.height),M===void 0&&(M=this.tileWidth),A===void 0&&(A=this.tileHeight);var L=this.getLayerIndex(x);if(L!==null)return console.warn("Invalid Tilemap Layer ID: "+x),null;for(var w=new e({name:x,tileWidth:M,tileHeight:A,width:P,height:R,orientation:this.orientation}),N,b=0;b-1&&this.putTileAt(S,R.x,R.y,C,R.tilemapLayer)}return E},removeTileAt:function(x,S,C,E,P){return C===void 0&&(C=!0),E===void 0&&(E=!0),P=this.getLayer(P),P===null?null:d.RemoveTileAt(x,S,C,E,P)},removeTileAtWorldXY:function(x,S,C,E,P,R){return C===void 0&&(C=!0),E===void 0&&(E=!0),R=this.getLayer(R),R===null?null:d.RemoveTileAtWorldXY(x,S,C,E,P,R)},renderDebug:function(x,S,C){return C=this.getLayer(C),C===null?null:(this.orientation===h.ORTHOGONAL&&d.RenderDebug(x,S,C),this)},renderDebugFull:function(x,S){for(var C=this.layers,E=0;E{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(44603),p=t(31989);u.register("tilemap",function(a){var r=a!==void 0?a:{};return p(this.scene,r.key,r.tileWidth,r.tileHeight,r.width,r.height,r.data,r.insertNull)})},46029:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(39429),p=t(31989);u.register("tilemap",function(a,r,n,e,s,h,i){return a===null&&(a=void 0),r===null&&(r=void 0),n===null&&(n=void 0),e===null&&(e=void 0),s===null&&(s=void 0),p(this.scene,a,r,n,e,s,h,i)})},20442:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(78389),a=t(31401),r=t(95643),n=t(81086),e=t(19218),s=t(26099),h=new u({Extends:r,Mixins:[a.Alpha,a.BlendMode,a.ComputedSize,a.Depth,a.Flip,a.GetBounds,a.Mask,a.Origin,a.Pipeline,a.PostPipeline,a.Transform,a.Visible,a.ScrollFactor,p,e],initialize:function(o,l,f,d,v,m){r.call(this,o,"TilemapLayer"),this.isTilemap=!0,this.tilemap=l,this.layerIndex=f,this.layer=l.layers[f],this.layer.tilemapLayer=this,this.tileset=[],this.tilesDrawn=0,this.tilesTotal=this.layer.width*this.layer.height,this.culledTiles=[],this.skipCull=!1,this.cullPaddingX=1,this.cullPaddingY=1,this.cullCallback=n.GetCullTilesFunction(this.layer.orientation),this._renderOrder=0,this.gidMap=[],this.tempVec=new s,this.collisionCategory=1,this.collisionMask=1,this.setTilesets(d),this.setAlpha(this.layer.alpha),this.setPosition(v,m),this.setOrigin(0,0),this.setSize(l.tileWidth*this.layer.width,l.tileHeight*this.layer.height),this.initPipeline(),this.initPostPipeline(!1)},setTilesets:function(i){var o=[],l=[],f=this.tilemap;Array.isArray(i)||(i=[i]);for(var d=0;d=0&&i<4&&(this._renderOrder=i),this},calculateFacesAt:function(i,o){return n.CalculateFacesAt(i,o,this.layer),this},calculateFacesWithin:function(i,o,l,f){return n.CalculateFacesWithin(i,o,l,f,this.layer),this},createFromTiles:function(i,o,l,f,d){return n.CreateFromTiles(i,o,l,f,d,this.layer)},cull:function(i){return this.cullCallback(this.layer,i,this.culledTiles,this._renderOrder)},copy:function(i,o,l,f,d,v,m){return n.Copy(i,o,l,f,d,v,m,this.layer),this},fill:function(i,o,l,f,d,v){return n.Fill(i,o,l,f,d,v,this.layer),this},filterTiles:function(i,o,l,f,d,v,m){return n.FilterTiles(i,o,l,f,d,v,m,this.layer)},findByIndex:function(i,o,l){return n.FindByIndex(i,o,l,this.layer)},findTile:function(i,o,l,f,d,v,m){return n.FindTile(i,o,l,f,d,v,m,this.layer)},forEachTile:function(i,o,l,f,d,v,m){return n.ForEachTile(i,o,l,f,d,v,m,this.layer),this},setTint:function(i,o,l,f,d,v){i===void 0&&(i=16777215);var m=function(g){g.tint=i,g.tintFill=!1};return this.forEachTile(m,this,o,l,f,d,v)},setTintFill:function(i,o,l,f,d,v){i===void 0&&(i=16777215);var m=function(g){g.tint=i,g.tintFill=!0};return this.forEachTile(m,this,o,l,f,d,v)},getTileAt:function(i,o,l){return n.GetTileAt(i,o,l,this.layer)},getTileAtWorldXY:function(i,o,l,f){return n.GetTileAtWorldXY(i,o,l,f,this.layer)},getIsoTileAtWorldXY:function(i,o,l,f,d){l===void 0&&(l=!0);var v=this.tempVec;return n.IsometricWorldToTileXY(i,o,!0,v,d,this.layer,l),this.getTileAt(v.x,v.y,f)},getTilesWithin:function(i,o,l,f,d){return n.GetTilesWithin(i,o,l,f,d,this.layer)},getTilesWithinShape:function(i,o,l){return n.GetTilesWithinShape(i,o,l,this.layer)},getTilesWithinWorldXY:function(i,o,l,f,d,v){return n.GetTilesWithinWorldXY(i,o,l,f,d,v,this.layer)},hasTileAt:function(i,o){return n.HasTileAt(i,o,this.layer)},hasTileAtWorldXY:function(i,o,l){return n.HasTileAtWorldXY(i,o,l,this.layer)},putTileAt:function(i,o,l,f){return n.PutTileAt(i,o,l,f,this.layer)},putTileAtWorldXY:function(i,o,l,f,d){return n.PutTileAtWorldXY(i,o,l,f,d,this.layer)},putTilesAt:function(i,o,l,f){return n.PutTilesAt(i,o,l,f,this.layer),this},randomize:function(i,o,l,f,d){return n.Randomize(i,o,l,f,d,this.layer),this},removeTileAt:function(i,o,l,f){return n.RemoveTileAt(i,o,l,f,this.layer)},removeTileAtWorldXY:function(i,o,l,f,d){return n.RemoveTileAtWorldXY(i,o,l,f,d,this.layer)},renderDebug:function(i,o){return n.RenderDebug(i,o,this.layer),this},replaceByIndex:function(i,o,l,f,d,v){return n.ReplaceByIndex(i,o,l,f,d,v,this.layer),this},setSkipCull:function(i){return i===void 0&&(i=!0),this.skipCull=i,this},setCullPadding:function(i,o){return i===void 0&&(i=1),o===void 0&&(o=1),this.cullPaddingX=i,this.cullPaddingY=o,this},setCollision:function(i,o,l,f){return n.SetCollision(i,o,l,this.layer,f),this},setCollisionBetween:function(i,o,l,f){return n.SetCollisionBetween(i,o,l,f,this.layer),this},setCollisionByProperty:function(i,o,l){return n.SetCollisionByProperty(i,o,l,this.layer),this},setCollisionByExclusion:function(i,o,l){return n.SetCollisionByExclusion(i,o,l,this.layer),this},setCollisionFromCollisionGroup:function(i,o){return n.SetCollisionFromCollisionGroup(i,o,this.layer),this},setTileIndexCallback:function(i,o,l){return n.SetTileIndexCallback(i,o,l,this.layer),this},setTileLocationCallback:function(i,o,l,f,d,v){return n.SetTileLocationCallback(i,o,l,f,d,v,this.layer),this},shuffle:function(i,o,l,f){return n.Shuffle(i,o,l,f,this.layer),this},swapByIndex:function(i,o,l,f,d,v){return n.SwapByIndex(i,o,l,f,d,v,this.layer),this},tileToWorldX:function(i,o){return this.tilemap.tileToWorldX(i,o,this)},tileToWorldY:function(i,o){return this.tilemap.tileToWorldY(i,o,this)},tileToWorldXY:function(i,o,l,f){return this.tilemap.tileToWorldXY(i,o,l,f,this)},getTileCorners:function(i,o,l){return this.tilemap.getTileCorners(i,o,l,this)},weightedRandomize:function(i,o,l,f,d){return n.WeightedRandomize(o,l,f,d,i,this.layer),this},worldToTileX:function(i,o,l){return this.tilemap.worldToTileX(i,o,l,this)},worldToTileY:function(i,o,l){return this.tilemap.worldToTileY(i,o,l,this)},worldToTileXY:function(i,o,l,f,d){return this.tilemap.worldToTileXY(i,o,l,f,d,this)},destroy:function(i){i===void 0&&(i=!0),this.tilemap&&(this.layer.tilemapLayer===this&&(this.layer.tilemapLayer=void 0),i&&this.tilemap.removeLayer(this),this.tilemap=void 0,this.layer=void 0,this.culledTiles.length=0,this.cullCallback=null,this.gidMap=[],this.tileset=[],r.prototype.destroy.call(this))}});c.exports=h},16153:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(61340),p=new u,a=new u,r=new u,n=function(e,s,h,i){var o=s.cull(h),l=o.length,f=h.alpha*s.alpha;if(!(l===0||f<=0)){var d=p,v=a,m=r;v.applyITRS(s.x,s.y,s.rotation,s.scaleX,s.scaleY),d.copyFrom(h.matrix);var g=e.currentContext,x=s.gidMap;g.save(),i?(d.multiplyWithOffset(i,-h.scrollX*s.scrollFactorX,-h.scrollY*s.scrollFactorY),v.e=s.x,v.f=s.y,d.multiply(v,m),m.copyToContext(g)):(v.e-=h.scrollX*s.scrollFactorX,v.f-=h.scrollY*s.scrollFactorY,v.copyToContext(g)),(!e.antialias||s.scaleX>1||s.scaleY>1)&&(g.imageSmoothingEnabled=!1);for(var S=0;S{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(29747),p=u,a=u;p=t(99558),a=t(16153),c.exports={renderWebGL:p,renderCanvas:a}},99558:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(70554),p=function(a,r,n){var e=r.cull(n),s=e.length,h=n.alpha*r.alpha;if(!(s===0||h<=0)){var i=r.gidMap,o=a.pipelines.set(r.pipeline,r),l=u.getTintAppendFloatAlpha,f=r.scrollFactorX,d=r.scrollFactorY,v=r.x,m=r.y,g=r.scaleX,x=r.scaleY;a.pipelines.preBatch(r);for(var S=0;S{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(26099),a=new u({initialize:function(n,e,s,h,i,o,l,f,d){(s===void 0||s<=0)&&(s=32),(h===void 0||h<=0)&&(h=32),i===void 0&&(i=0),o===void 0&&(o=0),l===void 0&&(l={}),f===void 0&&(f={}),this.name=n,this.firstgid=e,this.tileWidth=s,this.tileHeight=h,this.tileMargin=i,this.tileSpacing=o,this.tileProperties=l,this.tileData=f,this.tileOffset=new p,d!==void 0&&this.tileOffset.set(d.x,d.y),this.image=null,this.glTexture=null,this.rows=0,this.columns=0,this.total=0,this.texCoordinates=[]},getTileProperties:function(r){return this.containsTileIndex(r)?this.tileProperties[r-this.firstgid]:null},getTileData:function(r){return this.containsTileIndex(r)?this.tileData[r-this.firstgid]:null},getTileCollisionGroup:function(r){var n=this.getTileData(r);return n&&n.objectgroup?n.objectgroup:null},containsTileIndex:function(r){return r>=this.firstgid&&re.width||n.height>e.height?this.updateTileData(n.width,n.height):this.updateTileData(e.width,e.height,e.x,e.y),this},setTileSize:function(r,n){return r!==void 0&&(this.tileWidth=r),n!==void 0&&(this.tileHeight=n),this.image&&this.updateTileData(this.image.source[0].width,this.image.source[0].height),this},setSpacing:function(r,n){return r!==void 0&&(this.tileMargin=r),n!==void 0&&(this.tileSpacing=n),this.image&&this.updateTileData(this.image.source[0].width,this.image.source[0].height),this},updateTileData:function(r,n,e,s){e===void 0&&(e=0),s===void 0&&(s=0);var h=(n-this.tileMargin*2+this.tileSpacing)/(this.tileHeight+this.tileSpacing),i=(r-this.tileMargin*2+this.tileSpacing)/(this.tileWidth+this.tileSpacing);(h%1!==0||i%1!==0)&&console.warn("Image tile area not tile size multiple in: "+this.name),h=Math.floor(h),i=Math.floor(i),this.rows=h,this.columns=i,this.total=h*i,this.texCoordinates.length=0;for(var o=this.tileMargin+e,l=this.tileMargin+s,f=0;f{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(7423),p=function(a,r,n){var e=u(a,r,!0,n),s=u(a,r-1,!0,n),h=u(a,r+1,!0,n),i=u(a-1,r,!0,n),o=u(a+1,r,!0,n),l=e&&e.collides;return l&&(e.faceTop=!0,e.faceBottom=!0,e.faceLeft=!0,e.faceRight=!0),s&&s.collides&&(l&&(e.faceTop=!1),s.faceBottom=!l),h&&h.collides&&(l&&(e.faceBottom=!1),h.faceTop=!l),i&&i.collides&&(l&&(e.faceLeft=!1),i.faceRight=!l),o&&o.collides&&(l&&(e.faceRight=!1),o.faceLeft=!l),e&&!e.collides&&e.resetFaces(),e};c.exports=p},42573:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(7423),p=t(7386),a=function(r,n,e,s,h){for(var i=null,o=null,l=null,f=null,d=p(r,n,e,s,null,h),v=0;v{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(26099),p=new u,a=function(r,n,e,s){var h=e.tilemapLayer,i=h.cullPaddingX,o=h.cullPaddingY,l=h.tilemap.tileToWorldXY(r,n,p,s,h);return l.x>s.worldView.x+h.scaleX*e.tileWidth*(-i-.5)&&l.xs.worldView.y+h.scaleY*e.tileHeight*(-o-1)&&l.y{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(42573),p=t(7386),a=t(62991),r=t(23029),n=function(e,s,h,i,o,l,f,d){f===void 0&&(f=!0);var v=p(e,s,h,i,null,d),m=[];v.forEach(function(R){var M=new r(R.layer,R.index,R.x,R.y,R.width,R.height,R.baseWidth,R.baseHeight);M.copy(R),m.push(M)});for(var g=o-e,x=l-s,S=0;S{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(62644),p=t(7386),a=t(27987),r=function(n,e,s,h,i,o){s||(s={}),Array.isArray(n)||(n=[n]);var l=o.tilemapLayer;h||(h=l.scene),i||(i=h.cameras.main);var f=o.width,d=o.height,v=p(0,0,f,d,null,o),m=[],g,x=function(P,R,M){for(var A=0;A{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(87841),p=t(63448),a=t(56583),r=new u,n=function(e,s){var h=e.tilemapLayer.tilemap,i=e.tilemapLayer,o=Math.floor(h.tileWidth*i.scaleX),l=Math.floor(h.tileHeight*i.scaleY),f=a(s.worldView.x-i.x,o,0,!0)-i.cullPaddingX,d=p(s.worldView.right-i.x,o,0,!0)+i.cullPaddingX,v=a(s.worldView.y-i.y,l,0,!0)-i.cullPaddingY,m=p(s.worldView.bottom-i.y,l,0,!0)+i.cullPaddingY;return r.setTo(f,v,d-f,m-v)};c.exports=n},30003:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(19545),p=t(32483),a=function(r,n,e,s){e===void 0&&(e=[]),s===void 0&&(s=0),e.length=0;var h=r.tilemapLayer,i=u(r,n);return(h.skipCull||h.scrollFactorX!==1||h.scrollFactorY!==1)&&(i.left=0,i.right=r.width,i.top=0,i.bottom=r.height),p(r,i,s,e),e};c.exports=a},35137:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(7386),p=t(42573),a=t(20576),r=function(n,e,s,h,i,o,l){for(var f=l.collideIndexes.indexOf(n)!==-1,d=u(e,s,h,i,null,l),v=0;v{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(7386),p=function(a,r,n,e,s,h,i,o){var l=u(n,e,s,h,i,o);return l.filter(a,r)};c.exports=p},52692:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){u===void 0&&(u=0),p===void 0&&(p=!1);var r=0,n,e,s;if(p){for(e=a.height-1;e>=0;e--)for(n=a.width-1;n>=0;n--)if(s=a.data[e][n],s&&s.index===t){if(r===u)return s;r+=1}}else for(e=0;e{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(7386),p=function(a,r,n,e,s,h,i,o){var l=u(n,e,s,h,i,o);return l.find(a,r)||null};c.exports=p},97560:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(7386),p=function(a,r,n,e,s,h,i,o){var l=u(n,e,s,h,i,o);l.forEach(a,r)};c.exports=p},43305:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(91907),p=t(30003),a=t(9474),r=t(14018),n=t(29747),e=t(54503),s=function(h){return h===u.ORTHOGONAL?p:h===u.HEXAGONAL?a:h===u.STAGGERED?e:h===u.ISOMETRIC?r:n};c.exports=s},7423:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(62991),p=function(a,r,n,e){if(u(a,r,e)){var s=e.data[r][a]||null;return s?s.index===-1?n?s:null:s:null}else return null};c.exports=p},60540:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(7423),p=t(26099),a=new p,r=function(n,e,s,h,i){return i.tilemapLayer.worldToTileXY(n,e,!0,a,h),u(a.x,a.y,s,i)};c.exports=r},55826:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(26099),p=function(a,r,n,e){var s=e.baseTileWidth,h=e.baseTileHeight,i=e.tilemapLayer,o=0,l=0;i&&(n||(n=i.scene.cameras.main),o=i.x+n.scrollX*(1-i.scrollFactorX),l=i.y+n.scrollY*(1-i.scrollFactorY),s*=i.scaleX,h*=i.scaleY);var f=o+a*s,d=l+r*h;return[new u(f,d),new u(f+s,d),new u(f+s,d+h),new u(f,d+h)]};c.exports=p},11758:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(91907),p=t(27229),a=t(29747),r=t(55826),n=function(e){return e===u.ORTHOGONAL?r:e===u.ISOMETRIC?a:e===u.HEXAGONAL?p:(e===u.STAGGERED,a)};c.exports=n},39167:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(91907),p=t(29747),a=t(97281),r=function(n){return n===u.ORTHOGONAL?a:p};c.exports=r},62e3:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(91907),p=t(19951),a=t(14127),r=t(29747),n=t(97202),e=t(70326),s=function(h){return h===u.ORTHOGONAL?e:h===u.ISOMETRIC?a:h===u.HEXAGONAL?p:h===u.STAGGERED?n:r};c.exports=s},5984:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(91907),p=t(29747),a=t(28054),r=t(29650),n=function(e){return e===u.ORTHOGONAL?r:e===u.STAGGERED?a:p};c.exports=n},7386:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(95540),p=function(a,r,n,e,s,h){a===void 0&&(a=0),r===void 0&&(r=0),n===void 0&&(n=h.width),e===void 0&&(e=h.height),s||(s={});var i=u(s,"isNotEmpty",!1),o=u(s,"isColliding",!1),l=u(s,"hasInterestingFace",!1);a<0&&(n+=a,a=0),r<0&&(e+=r,r=0),a+n>h.width&&(n=Math.max(h.width-a,0)),r+e>h.height&&(e=Math.max(h.height-r,0));for(var f=[],d=r;d{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(55738),p=t(7386),a=t(91865),r=t(29747),n=t(26099),e=function(l,f){return a.RectangleToTriangle(f,l)},s=new n,h=new n,i=new n,o=function(l,f,d,v){if(l===void 0)return[];var m=r;l instanceof u.Circle?m=a.CircleToRectangle:l instanceof u.Rectangle?m=a.RectangleToRectangle:l instanceof u.Triangle?m=e:l instanceof u.Line&&(m=a.LineToRectangle),v.tilemapLayer.worldToTileXY(l.left,l.top,!0,h,d);var g=h.x,x=h.y;v.tilemapLayer.worldToTileXY(l.right,l.bottom,!1,i,d);var S=Math.ceil(i.x),C=Math.ceil(i.y),E=Math.max(S-g,1),P=Math.max(C-x,1),R=p(g,x,E,P,f,v),M=v.tileWidth,A=v.tileHeight;v.tilemapLayer&&(M*=v.tilemapLayer.scaleX,A*=v.tilemapLayer.scaleY);for(var L=[],w=new u.Rectangle(0,0,M,A),N=0;N{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(7386),p=t(26099),a=new p,r=new p,n=function(e,s,h,i,o,l,f){var d=f.tilemapLayer.tilemap._convert.WorldToTileXY;d(e,s,!0,a,l,f);var v=a.x,m=a.y;d(e+h,s+i,!1,r,l,f);var g=Math.ceil(r.x),x=Math.ceil(r.y);return u(v,m,g-v,x-m,o,f)};c.exports=n},96113:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(91907),p=t(20242),a=t(10095),r=function(n){return n===u.ORTHOGONAL?a:p};c.exports=r},16926:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(91907),p=t(86625),a=t(96897),r=t(29747),n=t(15108),e=t(85896),s=function(h){return h===u.ORTHOGONAL?e:h===u.ISOMETRIC?a:h===u.HEXAGONAL?p:h===u.STAGGERED?n:r};c.exports=s},55762:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(91907),p=t(20242),a=t(51900),r=t(63288),n=function(e){return e===u.ORTHOGONAL?r:e===u.STAGGERED?a:p};c.exports=n},45091:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(62991),p=function(a,r,n){if(u(a,r,n)){var e=n.data[r][a];return e!==null&&e.index>-1}else return!1};c.exports=p},24152:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(45091),p=t(26099),a=new p,r=function(n,e,s,h){h.tilemapLayer.worldToTileXY(n,e,!0,a,s);var i=a.x,o=a.y;return u(i,o,h)};c.exports=r},90454:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(63448),p=t(56583),a=function(r,n){var e=r.tilemapLayer.tilemap,s=r.tilemapLayer,h=Math.floor(e.tileWidth*s.scaleX),i=Math.floor(e.tileHeight*s.scaleY),o=r.hexSideLength,l,f,d,v;if(r.staggerAxis==="y"){var m=(i-o)/2+o;l=p(n.worldView.x-s.x,h,0,!0)-s.cullPaddingX,f=u(n.worldView.right-s.x,h,0,!0)+s.cullPaddingX,d=p(n.worldView.y-s.y,m,0,!0)-s.cullPaddingY,v=u(n.worldView.bottom-s.y,m,0,!0)+s.cullPaddingY}else{var g=(h-o)/2+o;l=p(n.worldView.x-s.x,g,0,!0)-s.cullPaddingX,f=u(n.worldView.right-s.x,g,0,!0)+s.cullPaddingX,d=p(n.worldView.y-s.y,i,0,!0)-s.cullPaddingY,v=u(n.worldView.bottom-s.y,i,0,!0)+s.cullPaddingY}return{left:l,right:f,top:d,bottom:v}};c.exports=a},9474:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(90454),p=t(32483),a=function(r,n,e,s){e===void 0&&(e=[]),s===void 0&&(s=0),e.length=0;var h=r.tilemapLayer,i=u(r,n);return h.skipCull&&h.scrollFactorX===1&&h.scrollFactorY===1&&(i.left=0,i.right=r.width,i.top=0,i.bottom=r.height),p(r,i,s,e),e};c.exports=a},27229:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(19951),p=t(26099),a=new p,r=function(n,e,s,h){var i=h.baseTileWidth,o=h.baseTileHeight,l=h.tilemapLayer;l&&(i*=l.scaleX,o*=l.scaleY);var f=u(n,e,a,s,h),d=[],v=.5773502691896257,m,g;h.staggerAxis==="y"?(m=v*i,g=o/2):(m=i/2,g=v*o);for(var x=0;x<6;x++){var S=2*Math.PI*(.5-x)/6;d.push(new p(f.x+m*Math.cos(S),f.y+g*Math.sin(S)))}return d};c.exports=r},19951:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(26099),p=function(a,r,n,e,s){n||(n=new u);var h=s.baseTileWidth,i=s.baseTileHeight,o=s.tilemapLayer,l=0,f=0;o&&(e||(e=o.scene.cameras.main),l=o.x+e.scrollX*(1-o.scrollFactorX),f=o.y+e.scrollY*(1-o.scrollFactorY),h*=o.scaleX,i*=o.scaleY);var d=h/2,v=i/2,m,g,x=s.staggerAxis,S=s.staggerIndex;return x==="y"?(m=l+h*a+h,g=f+1.5*r*v+v,r%2===0&&(S==="odd"?m-=d:m+=d)):x==="x"&&S==="odd"&&(m=l+1.5*a*d+d,g=f+i*a+i,a%2===0&&(S==="odd"?g-=v:g+=v)),n.set(m,g)};c.exports=p},86625:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(26099),p=function(a,r,n,e,s,h){e||(e=new u);var i=h.baseTileWidth,o=h.baseTileHeight,l=h.tilemapLayer;l&&(s||(s=l.scene.cameras.main),a=a-(l.x+s.scrollX*(1-l.scrollFactorX)),r=r-(l.y+s.scrollY*(1-l.scrollFactorY)),i*=l.scaleX,o*=l.scaleY);var f=.5773502691896257,d=-.3333333333333333,v=0,m=.6666666666666666,g=i/2,x=o/2,S,C,E,P,R;h.staggerAxis==="y"?(S=(a-g)/(f*i),C=(r-x)/x,E=f*S+d*C,P=v*S+m*C):(S=(a-g)/g,C=(r-x)/(f*o),E=d*S+f*C,P=m*S+v*C),R=-E-P;var M=Math.round(E),A=Math.round(P),L=Math.round(R),w=Math.abs(M-E),N=Math.abs(A-P),b=Math.abs(L-R);w>N&&w>b?M=-A-L:N>b&&(A=-M-L);var V,Y=A;return h.staggerIndex==="odd"?V=Y%2===0?A/2+M:A/2+M-.5:V=Y%2===0?A/2+M:A/2+M+.5,e.set(V,Y)};c.exports=p},62991:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){return t>=0&&t=0&&u{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(33528),p=function(a,r,n,e){n===void 0&&(n=[]),e===void 0&&(e=0),n.length=0;var s=a.tilemapLayer,h=a.data,i=a.width,o=a.height,l=s.skipCull,f=0,d=i,v=0,m=o,g,x,S;if(e===0)for(x=v;x=f;g--)S=h[x][g],!(!S||S.index===-1||!S.visible||S.alpha===0)&&(!l&&!u(g,x,a,r)||n.push(S));else if(e===2)for(x=m;x>=v;x--)for(g=f;g=v;x--)for(g=d;g>=f;g--)S=h[x][g],!(!S||S.index===-1||!S.visible||S.alpha===0)&&(!l&&!u(g,x,a,r)||n.push(S));return s.tilesDrawn=n.length,s.tilesTotal=i*o,n};c.exports=p},14127:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(26099),p=function(a,r,n,e,s){n||(n=new u);var h=s.baseTileWidth,i=s.baseTileHeight,o=s.tilemapLayer,l=0,f=0;o&&(e||(e=o.scene.cameras.main),l=o.x+e.scrollX*(1-o.scrollFactorX),h*=o.scaleX,f=o.y+e.scrollY*(1-o.scrollFactorY),i*=o.scaleY);var d=l+(a-r)*(h/2),v=f+(a+r)*(i/2);return n.set(d,v)};c.exports=p},96897:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(26099),p=function(a,r,n,e,s,h,i){e||(e=new u);var o=h.baseTileWidth,l=h.baseTileHeight,f=h.tilemapLayer;f&&(s||(s=f.scene.cameras.main),r=r-(f.y+s.scrollY*(1-f.scrollFactorY)),l*=f.scaleY,a=a-(f.x+s.scrollX*(1-f.scrollFactorX)),o*=f.scaleX);var d=o/2,v=l/2;a=a-d,i||(r=r-l);var m=.5*(a/d+r/v),g=.5*(-a/d+r/v);return n&&(m=Math.floor(m),g=Math.floor(g)),e.set(m,g)};c.exports=p},71558:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(23029),p=t(62991),a=t(72023),r=t(20576),n=function(e,s,h,i,o){if(i===void 0&&(i=!0),!p(s,h,o))return null;var l,f=o.data[h][s],d=f&&f.collides;e instanceof u?(o.data[h][s]===null&&(o.data[h][s]=new u(o,e.index,s,h,o.tileWidth,o.tileHeight)),o.data[h][s].copy(e)):(l=e,o.data[h][s]===null?o.data[h][s]=new u(o,l,s,h,o.tileWidth,o.tileHeight):o.data[h][s].index=l);var v=o.data[h][s],m=o.collideIndexes.indexOf(v.index)!==-1;if(l=e instanceof u?e.index:e,l===-1)v.width=o.tileWidth,v.height=o.tileHeight;else{var g=o.tilemapLayer.tilemap,x=g.tiles,S=x[l][2],C=g.tilesets[S];v.width=C.tileWidth,v.height=C.tileHeight}return r(v,m),i&&d!==v.collides&&a(s,h,o),v};c.exports=n},26303:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(71558),p=t(26099),a=new p,r=function(n,e,s,h,i,o){return o.tilemapLayer.worldToTileXY(e,s,!0,a,i,o),u(n,a.x,a.y,h,o)};c.exports=r},14051:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(42573),p=t(71558),a=function(r,n,e,s,h){if(s===void 0&&(s=!0),!Array.isArray(r))return null;Array.isArray(r[0])||(r=[r]);for(var i=r.length,o=r[0].length,l=0;l{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(7386),p=t(26546),a=function(r,n,e,s,h,i){var o,l=u(r,n,e,s,{},i);if(!h)for(h=[],o=0;o{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(23029),p=t(62991),a=t(72023),r=function(n,e,s,h,i){if(s===void 0&&(s=!0),h===void 0&&(h=!0),!p(n,e,i))return null;var o=i.data[e][n];if(o)i.data[e][n]=s?null:new u(i,-1,n,e,i.tileWidth,i.tileHeight);else return null;return h&&o&&o.collides&&a(n,e,i),o};c.exports=r},94178:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(63557),p=t(26099),a=new p,r=function(n,e,s,h,i,o){return o.tilemapLayer.worldToTileXY(n,e,!0,a,i,o),u(a.x,a.y,s,h,o)};c.exports=r},15533:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(7386),p=t(3956),a=new p(105,210,231,150),r=new p(243,134,48,200),n=new p(40,39,37,150),e=function(s,h,i){h===void 0&&(h={});var o=h.tileColor!==void 0?h.tileColor:a,l=h.collidingTileColor!==void 0?h.collidingTileColor:r,f=h.faceColor!==void 0?h.faceColor:n,d=u(0,0,i.width,i.height,null,i);s.translateCanvas(i.tilemapLayer.x,i.tilemapLayer.y),s.scaleCanvas(i.tilemapLayer.scaleX,i.tilemapLayer.scaleY);for(var v=0;v{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(7386),p=function(a,r,n,e,s,h,i){for(var o=u(n,e,s,h,null,i),l=0;l{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){var r=t.data,n=t.width,e=t.height,s=t.tilemapLayer,h=Math.max(0,u.left),i=Math.min(n,u.right),o=Math.max(0,u.top),l=Math.min(e,u.bottom),f,d,v;if(p===0)for(d=o;d=h;f--)v=r[d][f],!(!v||v.index===-1||!v.visible||v.alpha===0)&&a.push(v);else if(p===2)for(d=l;d>=o;d--)for(f=h;r[d]&&f=o;d--)for(f=i;r[d]&&f>=h;f--)v=r[d][f],!(!v||v.index===-1||!v.visible||v.alpha===0)&&a.push(v);return s.tilesDrawn=a.length,s.tilesTotal=n*e,a};c.exports=y},57068:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(20576),p=t(42573),a=t(9589),r=function(n,e,s,h,i){e===void 0&&(e=!0),s===void 0&&(s=!0),i===void 0&&(i=!0),Array.isArray(n)||(n=[n]);for(var o=0;o{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(20576),p=t(42573),a=t(9589),r=function(n,e,s,h,i,o){if(s===void 0&&(s=!0),h===void 0&&(h=!0),o===void 0&&(o=!0),!(n>e)){for(var l=n;l<=e;l++)a(l,s,i);if(o)for(var f=0;f=n&&v.index<=e&&u(v,s)}h&&p(0,0,i.width,i.height,i)}};c.exports=r},75661:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(20576),p=t(42573),a=t(9589),r=function(n,e,s,h){e===void 0&&(e=!0),s===void 0&&(s=!0),Array.isArray(n)||(n=[n]);for(var i=0;i{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(20576),p=t(42573),a=t(97022),r=function(n,e,s,h){e===void 0&&(e=!0),s===void 0&&(s=!0);for(var i=0;i{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(20576),p=t(42573),a=function(r,n,e){r===void 0&&(r=!0),n===void 0&&(n=!0);for(var s=0;s0&&u(i,r)}}n&&p(0,0,e.width,e.height,e)};c.exports=a},9589:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){var a=p.collideIndexes.indexOf(t);u&&a===-1?p.collideIndexes.push(t):!u&&a!==-1&&p.collideIndexes.splice(a,1)};c.exports=y},20576:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){u?t.setCollision(!0,!0,!0,!0,!1):t.resetCollision(!1)};c.exports=y},79583:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){if(typeof t=="number")a.callbacks[t]=u!==null?{callback:u,callbackContext:p}:void 0;else for(var r=0,n=t.length;r{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(7386),p=function(a,r,n,e,s,h,i){for(var o=u(a,r,n,e,null,i),l=0;l{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(7386),p=t(33680),a=function(r,n,e,s,h){var i=u(r,n,e,s,null,h),o=i.map(function(f){return f.index});p(o);for(var l=0;l{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(63448),p=t(56583),a=function(r,n){var e=r.tilemapLayer.tilemap,s=r.tilemapLayer,h=Math.floor(e.tileWidth*s.scaleX),i=Math.floor(e.tileHeight*s.scaleY),o=p(n.worldView.x-s.x,h,0,!0)-s.cullPaddingX,l=u(n.worldView.right-s.x,h,0,!0)+s.cullPaddingX,f=p(n.worldView.y-s.y,i/2,0,!0)-s.cullPaddingY,d=u(n.worldView.bottom-s.y,i/2,0,!0)+s.cullPaddingY;return{left:o,right:l,top:f,bottom:d}};c.exports=a},54503:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(61325),p=t(32483),a=function(r,n,e,s){e===void 0&&(e=[]),s===void 0&&(s=0),e.length=0;var h=r.tilemapLayer,i=u(r,n);return h.skipCull&&h.scrollFactorX===1&&h.scrollFactorY===1&&(i.left=0,i.right=r.width,i.top=0,i.bottom=r.height),p(r,i,s,e),e};c.exports=a},97202:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(26099),p=function(a,r,n,e,s){n||(n=new u);var h=s.baseTileWidth,i=s.baseTileHeight,o=s.tilemapLayer,l=0,f=0;o&&(e||(e=o.scene.cameras.main),l=o.x+e.scrollX*(1-o.scrollFactorX),h*=o.scaleX,f=o.y+e.scrollY*(1-o.scrollFactorY),i*=o.scaleY);var d=l+a*h+r%2*(h/2),v=f+r*(i/2);return n.set(d,v)};c.exports=p},28054:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){var a=p.baseTileHeight,r=p.tilemapLayer,n=0;return r&&(u===void 0&&(u=r.scene.cameras.main),n=r.y+u.scrollY*(1-r.scrollFactorY),a*=r.scaleY),n+t*(a/2)+a};c.exports=y},15108:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(26099),p=function(a,r,n,e,s,h){e||(e=new u);var i=h.baseTileWidth,o=h.baseTileHeight,l=h.tilemapLayer;l&&(s||(s=l.scene.cameras.main),r=r-(l.y+s.scrollY*(1-l.scrollFactorY)),o*=l.scaleY,a=a-(l.x+s.scrollX*(1-l.scrollFactorX)),i*=l.scaleX);var f=n?Math.floor(r/(o/2)):r/(o/2),d=n?Math.floor((a+f%2*.5*i)/i):(a+f%2*.5*i)/i;return e.set(d,f)};c.exports=p},51900:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){var r=a.baseTileHeight,n=a.tilemapLayer;return n&&(p||(p=n.scene.cameras.main),t=t-(n.y+p.scrollY*(1-n.scrollFactorY)),r*=n.scaleY),u?Math.floor(t/(r/2)):t/(r/2)};c.exports=y},86560:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(7386),p=function(a,r,n,e,s,h,i){for(var o=u(n,e,s,h,null,i),l=0;l{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){var a=p.baseTileWidth,r=p.tilemapLayer,n=0;return r&&(u||(u=r.scene.cameras.main),n=r.x+u.scrollX*(1-r.scrollFactorX),a*=r.scaleX),n+t*a};c.exports=y},70326:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(97281),p=t(29650),a=t(26099),r=function(n,e,s,h,i){return s||(s=new a(0,0)),s.x=u(n,h,i),s.y=p(e,h,i),s};c.exports=r},29650:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){var a=p.baseTileHeight,r=p.tilemapLayer,n=0;return r&&(u||(u=r.scene.cameras.main),n=r.y+u.scrollY*(1-r.scrollFactorY),a*=r.scaleY),n+t*a};c.exports=y},77366:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(7386),p=t(75508),a=function(r,n,e,s,h,i){if(h){var o,l=u(r,n,e,s,null,i),f=0;for(o=0;o{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(85896),p=t(26099),a=new p,r=function(n,e,s,h){return u(n,0,e,a,s,h),a.x};c.exports=r},85896:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(26099),p=function(a,r,n,e,s,h){n===void 0&&(n=!0),e||(e=new u);var i=h.baseTileWidth,o=h.baseTileHeight,l=h.tilemapLayer;l&&(s||(s=l.scene.cameras.main),a=a-(l.x+s.scrollX*(1-l.scrollFactorX)),r=r-(l.y+s.scrollY*(1-l.scrollFactorY)),i*=l.scaleX,o*=l.scaleY);var f=a/i,d=r/o;return n&&(f=Math.floor(f),d=Math.floor(d)),e.set(f,d)};c.exports=p},63288:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(85896),p=t(26099),a=new p,r=function(n,e,s,h){return u(0,n,e,a,s,h),a.y};c.exports=r},81086:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={CalculateFacesAt:t(72023),CalculateFacesWithin:t(42573),CheckIsoBounds:t(33528),Copy:t(1785),CreateFromTiles:t(78419),CullBounds:t(19545),CullTiles:t(30003),Fill:t(35137),FilterTiles:t(40253),FindByIndex:t(52692),FindTile:t(66151),ForEachTile:t(97560),GetCullTilesFunction:t(43305),GetTileAt:t(7423),GetTileAtWorldXY:t(60540),GetTileCorners:t(55826),GetTileCornersFunction:t(11758),GetTilesWithin:t(7386),GetTilesWithinShape:t(91141),GetTilesWithinWorldXY:t(96523),GetTileToWorldXFunction:t(39167),GetTileToWorldXYFunction:t(62e3),GetTileToWorldYFunction:t(5984),GetWorldToTileXFunction:t(96113),GetWorldToTileXYFunction:t(16926),GetWorldToTileYFunction:t(55762),HasTileAt:t(45091),HasTileAtWorldXY:t(24152),HexagonalCullBounds:t(90454),HexagonalCullTiles:t(9474),HexagonalGetTileCorners:t(27229),HexagonalTileToWorldXY:t(19951),HexagonalWorldToTileXY:t(86625),IsInLayerBounds:t(62991),IsometricCullTiles:t(14018),IsometricTileToWorldXY:t(14127),IsometricWorldToTileXY:t(96897),PutTileAt:t(71558),PutTileAtWorldXY:t(26303),PutTilesAt:t(14051),Randomize:t(77389),RemoveTileAt:t(63557),RemoveTileAtWorldXY:t(94178),RenderDebug:t(15533),ReplaceByIndex:t(27987),RunCull:t(32483),SetCollision:t(57068),SetCollisionBetween:t(37266),SetCollisionByExclusion:t(75661),SetCollisionByProperty:t(64740),SetCollisionFromCollisionGroup:t(63307),SetLayerCollisionIndex:t(9589),SetTileCollision:t(20576),SetTileIndexCallback:t(79583),SetTileLocationCallback:t(93254),Shuffle:t(32903),StaggeredCullBounds:t(61325),StaggeredCullTiles:t(54503),StaggeredTileToWorldXY:t(97202),StaggeredTileToWorldY:t(28054),StaggeredWorldToTileXY:t(15108),StaggeredWorldToTileY:t(51900),SwapByIndex:t(86560),TileToWorldX:t(97281),TileToWorldXY:t(70326),TileToWorldY:t(29650),WeightedRandomize:t(77366),WorldToTileX:t(10095),WorldToTileXY:t(85896),WorldToTileY:t(63288)}},91907:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={ORTHOGONAL:0,ISOMETRIC:1,STAGGERED:2,HEXAGONAL:3}},21829:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u={ORIENTATION:t(91907)};c.exports=u},62501:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(79291),p=t(21829),a={Components:t(81086),Parsers:t(57442),Formats:t(80341),ImageCollection:t(16536),ParseToTilemap:t(31989),Tile:t(23029),Tilemap:t(49075),TilemapCreator:t(45939),TilemapFactory:t(46029),Tileset:t(33629),TilemapLayer:t(20442),Orientation:t(91907),LayerData:t(14977),MapData:t(87010),ObjectLayer:t(48700)};a=u(!1,a,p.ORIENTATION),c.exports=a},14977:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(91907),a=t(95540),r=new u({initialize:function(e){e===void 0&&(e={}),this.name=a(e,"name","layer"),this.id=a(e,"id",0),this.x=a(e,"x",0),this.y=a(e,"y",0),this.width=a(e,"width",0),this.height=a(e,"height",0),this.tileWidth=a(e,"tileWidth",0),this.tileHeight=a(e,"tileHeight",0),this.baseTileWidth=a(e,"baseTileWidth",this.tileWidth),this.baseTileHeight=a(e,"baseTileHeight",this.tileHeight),this.orientation=a(e,"orientation",p.ORTHOGONAL),this.widthInPixels=a(e,"widthInPixels",this.width*this.baseTileWidth),this.heightInPixels=a(e,"heightInPixels",this.height*this.baseTileHeight),this.alpha=a(e,"alpha",1),this.visible=a(e,"visible",!0),this.properties=a(e,"properties",[]),this.indexes=a(e,"indexes",[]),this.collideIndexes=a(e,"collideIndexes",[]),this.callbacks=a(e,"callbacks",[]),this.bodies=a(e,"bodies",[]),this.data=a(e,"data",[]),this.tilemapLayer=a(e,"tilemapLayer",null),this.hexSideLength=a(e,"hexSideLength",0),this.staggerAxis=a(e,"staggerAxis","y"),this.staggerIndex=a(e,"staggerIndex","odd")}});c.exports=r},87010:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(91907),a=t(95540),r=new u({initialize:function(e){e===void 0&&(e={}),this.name=a(e,"name","map"),this.width=a(e,"width",0),this.height=a(e,"height",0),this.infinite=a(e,"infinite",!1),this.tileWidth=a(e,"tileWidth",0),this.tileHeight=a(e,"tileHeight",0),this.widthInPixels=a(e,"widthInPixels",this.width*this.tileWidth),this.heightInPixels=a(e,"heightInPixels",this.height*this.tileHeight),this.format=a(e,"format",null),this.orientation=a(e,"orientation",p.ORTHOGONAL),this.renderOrder=a(e,"renderOrder","right-down"),this.version=a(e,"version","1"),this.properties=a(e,"properties",{}),this.layers=a(e,"layers",[]),this.images=a(e,"images",[]),this.objects=a(e,"objects",[]),Array.isArray(this.objects)||(this.objects=[]),this.collision=a(e,"collision",{}),this.tilesets=a(e,"tilesets",[]),this.imageCollections=a(e,"imageCollections",[]),this.tiles=a(e,"tiles",[]),this.hexSideLength=a(e,"hexSideLength",0),this.staggerAxis=a(e,"staggerAxis","y"),this.staggerIndex=a(e,"staggerIndex","odd")}});c.exports=r},48700:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(95540),a=new u({initialize:function(n){n===void 0&&(n={}),this.name=p(n,"name","object layer"),this.id=p(n,"id",0),this.opacity=p(n,"opacity",1),this.properties=p(n,"properties",{}),this.propertyTypes=p(n,"propertytypes",{}),this.type=p(n,"type","objectgroup"),this.visible=p(n,"visible",!0),this.objects=p(n,"objects",[]),Array.isArray(this.objects)||(this.objects=[])}});c.exports=a},6641:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(91907),p=function(a){return a=a.toLowerCase(),a==="isometric"?u.ISOMETRIC:a==="staggered"?u.STAGGERED:a==="hexagonal"?u.HEXAGONAL:u.ORTHOGONAL};c.exports=p},46177:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(80341),p=t(2342),a=t(82593),r=t(46594),n=t(87021),e=function(s,h,i,o,l,f){var d;switch(h){case u.ARRAY_2D:d=p(s,i,o,l,f);break;case u.CSV:d=a(s,i,o,l,f);break;case u.TILED_JSON:d=r(s,i,f);break;case u.WELTMEISTER:d=n(s,i,f);break;default:console.warn("Unrecognized tilemap data format: "+h),d=null}return d};c.exports=e},2342:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(80341),p=t(14977),a=t(87010),r=t(23029),n=function(e,s,h,i,o){for(var l=new p({tileWidth:h,tileHeight:i}),f=new a({name:e,tileWidth:h,tileHeight:i,format:u.ARRAY_2D,layers:[l]}),d=[],v=s.length,m=0,g=0;g{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(80341),p=t(2342),a=function(r,n,e,s,h){var i=n.trim().split(` +`).map(function(l){return l.split(",")}),o=p(r,i,e,s,h);return o.format=u.CSV,o};c.exports=a},6656:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(14977),p=t(23029),a=function(r,n){for(var e=[],s=0;s-1?m=new p(i,v,d,f,h.tilesize,h.tilesize):m=n?null:new p(i,-1,d,f,h.tilesize,h.tilesize),o.push(m)}l.push(o),o=[]}i.data=l,e.push(i)}return e};c.exports=a},96483:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(33629),p=function(a){for(var r=[],n=[],e=0;e{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(80341),p=t(87010),a=t(6656),r=t(96483),n=function(e,s,h){if(s.layer.length===0)return console.warn("No layers found in the Weltmeister map: "+e),null;for(var i=0,o=0,l=0;li&&(i=s.layer[l].width),s.layer[l].height>o&&(o=s.layer[l].height);var f=new p({width:i,height:o,name:e,tileWidth:s.layer[0].tilesize,tileHeight:s.layer[0].tilesize,format:u.WELTMEISTER});return f.layers=a(s,h),f.tilesets=r(s),f};c.exports=n},52833:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={ParseTileLayers:t(6656),ParseTilesets:t(96483),ParseWeltmeister:t(87021)}},57442:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={FromOrientationString:t(6641),Parse:t(46177),Parse2DArray:t(2342),ParseCSV:t(82593),Impact:t(52833),Tiled:t(96761)}},51233:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(79291),p=function(a){for(var r,n,e,s,h,i=0;i{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){for(var u=window.atob(t),p=u.length,a=new Array(p/4),r=0;r>>0;return a};c.exports=y},84101:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(33629),p=function(a){var r,n,e=[];for(r=0;r{/** + * @author Seth Berrier + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(95540),p=function(a,r,n){if(!r)return{i:0,layers:a.layers,name:"",opacity:1,visible:!0,x:0,y:0};var e=r.x+u(r,"startx",0)*a.tilewidth+u(r,"offsetx",0),s=r.y+u(r,"starty",0)*a.tileheight+u(r,"offsety",0);return{i:0,layers:r.layers,name:n.name+r.name+"/",opacity:n.opacity*r.opacity,visible:n.visible&&r.visible,x:n.x+e,y:n.y+s}};c.exports=p},29920:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=2147483648,t=1073741824,u=536870912,p=function(a){var r=!!(a&y),n=!!(a&t),e=!!(a&u);a=a&~(y|t|u);var s=0,h=!1;return r&&n&&e?(s=Math.PI/2,h=!0):r&&n&&!e?(s=Math.PI,h=!1):r&&!n&&e?(s=Math.PI/2,h=!1):r&&!n&&!e?(s=0,h=!0):!r&&n&&e?(s=3*Math.PI/2,h=!1):!r&&n&&!e?(s=Math.PI,h=!0):!r&&!n&&e?(s=3*Math.PI/2,h=!0):!r&&!n&&!e&&(s=0,h=!1),{gid:a,flippedHorizontal:r,flippedVertical:n,flippedAntiDiagonal:e,rotation:s,flipped:h}};c.exports=p},12635:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(95540),p=t(79677),a=function(r){for(var n=[],e=[],s=p(r);s.i0;){if(s.i>=s.layers.length){if(e.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}s=e.pop();continue}var h=s.layers[s.i];if(s.i++,h.type!=="imagelayer"){if(h.type==="group"){var i=p(r,h,s);e.push(s),s=i}continue}var o=u(h,"offsetx",0)+u(h,"startx",0),l=u(h,"offsety",0)+u(h,"starty",0);n.push({name:s.name+h.name,image:h.image,x:s.x+o+h.x,y:s.y+l+h.y,alpha:s.opacity*h.opacity,visible:s.visible&&h.visible,properties:u(h,"properties",{})})}return n};c.exports=a},46594:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(51233),p=t(84101),a=t(91907),r=t(62644),n=t(80341),e=t(6641),s=t(87010),h=t(12635),i=t(22611),o=t(28200),l=t(24619),f=function(d,v,m){var g=r(v),x=new s({width:g.width,height:g.height,name:d,tileWidth:g.tilewidth,tileHeight:g.tileheight,orientation:e(g.orientation),format:n.TILED_JSON,version:g.version,properties:g.properties,renderOrder:g.renderorder,infinite:g.infinite});x.orientation===a.HEXAGONAL&&(x.hexSideLength=g.hexsidelength,x.staggerAxis=g.staggeraxis,x.staggerIndex=g.staggerindex),x.layers=o(g,m),x.images=h(g);var S=l(g);return x.tilesets=S.tilesets,x.imageCollections=S.imageCollections,x.objects=i(g),x.tiles=p(x),u(x),x};c.exports=f},52205:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(18254),p=t(29920),a=function(e){return{x:e.x,y:e.y}},r=["id","name","type","rotation","properties","visible","x","y","width","height"],n=function(e,s,h){s===void 0&&(s=0),h===void 0&&(h=0);var i=u(e,r);if(i.x+=s,i.y+=h,e.gid){var o=p(e.gid);i.gid=o.gid,i.flippedHorizontal=o.flippedHorizontal,i.flippedVertical=o.flippedVertical,i.flippedAntiDiagonal=o.flippedAntiDiagonal}else e.polyline?i.polyline=e.polyline.map(a):e.polygon?i.polygon=e.polygon.map(a):e.ellipse?i.ellipse=e.ellipse:e.text?i.text=e.text:e.point?i.point=!0:i.rectangle=!0;return i};c.exports=n},22611:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(95540),p=t(52205),a=t(48700),r=t(79677),n=function(e){for(var s=[],h=[],i=r(e);i.i0;){if(i.i>=i.layers.length){if(h.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}i=h.pop();continue}var o=i.layers[i.i];if(i.i++,o.opacity*=i.opacity,o.visible=i.visible&&o.visible,o.type!=="objectgroup"){if(o.type==="group"){var l=r(e,o,i);h.push(i),i=l}continue}o.name=i.name+o.name;for(var f=i.x+u(o,"startx",0)+u(o,"offsetx",0),d=i.y+u(o,"starty",0)+u(o,"offsety",0),v=[],m=0;m{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(41868),p=t(91907),a=t(79677),r=t(6641),n=t(95540),e=t(14977),s=t(29920),h=t(23029),i=function(o,l){for(var f=n(o,"infinite",!1),d=[],v=[],m=a(o);m.i0;){if(m.i>=m.layers.length){if(v.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}m=v.pop();continue}var g=m.layers[m.i];if(m.i++,g.type!=="tilelayer"){if(g.type==="group"){var x=a(o,g,m);v.push(m),m=x}continue}if(g.compression){console.warn("TilemapParser.parseTiledJSON - Layer compression is unsupported, skipping layer '"+g.name+"'");continue}else if(g.encoding&&g.encoding==="base64"){if(g.chunks)for(var S=0;S0?(P=new h(C,E.gid,X,K,o.tilewidth,o.tileheight),P.rotation=E.rotation,P.flipX=E.flipped,M[K][X]=P):(R=l?null:new h(C,-1,X,K,o.tilewidth,o.tileheight),M[K][X]=R),A++,A===V.width&&(U++,A=0)}}else{C=new e({name:m.name+g.name,id:g.id,x:m.x+n(g,"offsetx",0)+g.x,y:m.y+n(g,"offsety",0)+g.y,width:g.width,height:g.height,tileWidth:o.tilewidth,tileHeight:o.tileheight,alpha:m.opacity*g.opacity,visible:m.visible&&g.visible,properties:n(g,"properties",[]),orientation:r(o.orientation)}),C.orientation===p.HEXAGONAL&&(C.hexSideLength=o.hexsidelength,C.staggerAxis=o.staggeraxis,C.staggerIndex=o.staggerindex);for(var Z=[],J=0,Q=g.data.length;J0?(P=new h(C,E.gid,A,M.length,o.tilewidth,o.tileheight),P.rotation=E.rotation,P.flipX=E.flipped,Z.push(P)):(R=l?null:new h(C,-1,A,M.length,o.tilewidth,o.tileheight),Z.push(R)),A++,A===g.width&&(M.push(Z),A=0,Z=[])}C.data=M,d.push(C)}return d};c.exports=i},24619:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(33629),p=t(16536),a=t(52205),r=t(57880),n=function(e){for(var s=[],h=[],i=null,o,l=0;l1){var v=void 0,m=void 0;if(Array.isArray(f.tiles)){v=v||{},m=m||{};for(var g=0;g{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){for(var p=0;p0){var n={},e={},s,h,i;if(Array.isArray(a.edgecolors))for(s=0;s{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={AssignTileProperties:t(51233),Base64Decode:t(41868),BuildTilesetIndex:t(84101),CreateGroupLayer:t(79677),ParseGID:t(29920),ParseImageLayers:t(12635),ParseJSONTiled:t(46594),ParseObject:t(52205),ParseObjectLayers:t(22611),ParseTileLayers:t(28200),ParseTilesets:t(24619)}},33385:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(37277),a=t(44594),r=t(94880),n=t(72905),e=new u({initialize:function(h){this.scene=h,this.systems=h.sys,this.now=0,this.startTime=0,this.timeScale=1,this.paused=!1,this._active=[],this._pendingInsertion=[],this._pendingRemoval=[],h.sys.events.once(a.BOOT,this.boot,this),h.sys.events.on(a.START,this.start,this)},boot:function(){this.now=this.systems.game.loop.time,this.systems.events.once(a.DESTROY,this.destroy,this)},start:function(){this.startTime=this.systems.game.loop.time;var s=this.systems.events;s.on(a.PRE_UPDATE,this.preUpdate,this),s.on(a.UPDATE,this.update,this),s.once(a.SHUTDOWN,this.shutdown,this)},addEvent:function(s){var h;return s instanceof r?(h=s,this.removeEvent(h),h.elapsed=h.startAt,h.hasDispatched=!1,h.repeatCount=h.repeat===-1||h.loop?999999999999:h.repeat):h=new r(s),this._pendingInsertion.push(h),h},delayedCall:function(s,h,i,o){return this.addEvent({delay:s,callback:h,args:i,callbackScope:o})},clearPendingEvents:function(){return this._pendingInsertion=[],this},removeEvent:function(s){Array.isArray(s)||(s=[s]);for(var h=0;h-1&&this._active.splice(l,1),o.destroy()}for(i=0;i=o.delay)){var l=o.elapsed-o.delay;if(o.elapsed=o.delay,!o.hasDispatched&&o.callback&&(o.hasDispatched=!0,o.callback.apply(o.callbackScope,o.args)),o.repeatCount>0){if(o.repeatCount--,l>=o.delay)for(;l>=o.delay&&o.repeatCount>0;)o.callback&&o.callback.apply(o.callbackScope,o.args),l-=o.delay,o.repeatCount--;o.elapsed=l,o.hasDispatched=!1}else o.hasDispatched&&this._pendingRemoval.push(o)}}}},shutdown:function(){var s;for(s=0;s{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(50792),a=t(39429),r=t(95540),n=t(44594),e=t(89809),s=new u({Extends:p,initialize:function(i,o){p.call(this),this.scene=i,this.systems=i.sys,this.elapsed=0,this.timeScale=1,this.paused=!0,this.complete=!1,this.totalComplete=0,this.loop=0,this.iteration=0,this.events=[];var l=this.systems.events;l.on(n.PRE_UPDATE,this.preUpdate,this),l.on(n.UPDATE,this.update,this),l.once(n.SHUTDOWN,this.destroy,this),o&&this.add(o)},preUpdate:function(h,i){this.paused||(this.elapsed+=i*this.timeScale)},update:function(){if(!(this.paused||this.complete)){var h,i=this.events,o=!1,l=this.systems,f;for(h=0;h=i.length&&(this.loop!==0&&(this.loop===-1||this.loop>this.iteration)?(this.iteration++,this.reset(!0)):this.complete=!0),this.complete&&this.emit(e.COMPLETE,this)}},play:function(h){return h===void 0&&(h=!0),this.paused=!1,this.complete=!1,this.totalComplete=0,h&&this.reset(),this},pause:function(){this.paused=!0;for(var h=this.events,i=0;i0&&(o=i[i.length-1].time);for(var l=0;l{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(95540),a=new u({initialize:function(n){this.delay=0,this.repeat=0,this.repeatCount=0,this.loop=!1,this.callback,this.callbackScope,this.args,this.timeScale=1,this.startAt=0,this.elapsed=0,this.paused=!1,this.hasDispatched=!1,this.reset(n)},reset:function(r){if(this.delay=p(r,"delay",0),this.repeat=p(r,"repeat",0),this.loop=p(r,"loop",!1),this.callback=p(r,"callback",void 0),this.callbackScope=p(r,"callbackScope",this),this.args=p(r,"args",[]),this.timeScale=p(r,"timeScale",1),this.startAt=p(r,"startAt",0),this.paused=p(r,"paused",!1),this.elapsed=this.startAt,this.hasDispatched=!1,this.repeatCount=this.repeat===-1||this.loop?999999999999:this.repeat,this.delay===0&&(this.repeat>0||this.loop))throw new Error("TimerEvent infinite loop created via zero delay");return this},getProgress:function(){return this.elapsed/this.delay},getOverallProgress:function(){if(this.repeat>0){var r=this.delay+this.delay*this.repeat,n=this.elapsed+this.delay*(this.repeat-this.repeatCount);return n/r}else return this.getProgress()},getRepeatCount:function(){return this.repeatCount},getElapsed:function(){return this.elapsed},getElapsedSeconds:function(){return this.elapsed*.001},getRemaining:function(){return this.delay-this.elapsed},getRemainingSeconds:function(){return this.getRemaining()*.001},getOverallRemaining:function(){return this.delay*(1+this.repeatCount)-this.elapsed},getOverallRemainingSeconds:function(){return this.getOverallRemaining()*.001},remove:function(r){r===void 0&&(r=!1),this.elapsed=this.delay,this.hasDispatched=!r,this.repeatCount=0},destroy:function(){this.callback=void 0,this.callbackScope=void 0,this.args=[]}});c.exports=a},35945:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="complete"},89809:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={COMPLETE:t(35945)}},90291:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={Clock:t(33385),Events:t(89809),Timeline:t(96120),TimerEvent:t(94880)}},40382:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(72905),p=t(83419),a=t(43491),r=t(88032),n=t(37277),e=t(44594),s=t(93109),h=t(86081),i=t(8357),o=t(43960),l=t(26012),f=new p({initialize:function(v){this.scene=v,this.events=v.sys.events,this.timeScale=1,this.paused=!1,this.processing=!1,this.tweens=[],this.time=0,this.startTime=0,this.nextTime=0,this.prevTime=0,this.maxLag=500,this.lagSkip=33,this.gap=1e3/240,this.events.once(e.BOOT,this.boot,this),this.events.on(e.START,this.start,this)},boot:function(){this.events.once(e.DESTROY,this.destroy,this)},start:function(){this.timeScale=1,this.paused=!1,this.startTime=Date.now(),this.prevTime=this.startTime,this.nextTime=this.gap,this.events.on(e.UPDATE,this.update,this),this.events.once(e.SHUTDOWN,this.shutdown,this)},create:function(d){Array.isArray(d)||(d=[d]);for(var v=[],m=0;m-1},existing:function(d){return this.has(d)||this.tweens.push(d.reset()),this},addCounter:function(d){var v=r(this,d);return this.tweens.push(v.reset()),v},stagger:function(d,v){return s(d,v)},setLagSmooth:function(d,v){return d===void 0&&(d=1/1e-8),v===void 0&&(v=0),this.maxLag=d,this.lagSkip=Math.min(v,this.maxLag),this},setFps:function(d){return d===void 0&&(d=240),this.gap=1e3/d,this.nextTime=this.time*1e3+this.gap,this},getDelta:function(d){var v=Date.now()-this.prevTime;v>this.maxLag&&(this.startTime+=v-this.lagSkip),this.prevTime+=v;var m=this.prevTime-this.startTime,g=m-this.nextTime,x=m-this.time*1e3;return g>0||d?(m/=1e3,this.time=m,this.nextTime+=g+(g>=this.gap?4:this.gap-g)):x=0,x},tick:function(){return this.step(!0),this},update:function(){this.paused||this.step(!1)},step:function(d){d===void 0&&(d=!1);var v=this.getDelta(d);if(!(v<=0)){this.processing=!0;var m,g,x=[],S=this.tweens;for(m=0;m0){for(m=0;m-1&&(g.isPendingRemove()||g.isDestroyed())&&(S.splice(E,1),g.destroy())}x.length=0}this.processing=!1}},remove:function(d){return this.processing?d.setPendingRemoveState():(u(this.tweens,d),d.setRemovedState()),this},reset:function(d){return this.existing(d),d.seek(),d.setActiveState(),this},makeActive:function(d){return this.existing(d),d.setActiveState(),this},each:function(d,v){var m,g=[null];for(m=1;m{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){return t&&t.hasOwnProperty(u)?t[u]:p};c.exports=y},6113:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(62640),p=t(35355),a=function(r,n){var e=u.Power0;if(typeof r=="string")if(u.hasOwnProperty(r))e=u[r];else{var s="";if(r.indexOf(".")){s=r.substring(r.indexOf(".")+1);var h=s.toLowerCase();h==="in"?s="easeIn":h==="out"?s="easeOut":h==="inout"&&(s="easeInOut")}r=p(r.substring(0,r.indexOf(".")+1)+s),u.hasOwnProperty(r)&&(e=u[r])}else typeof r=="function"&&(e=r);if(!n)return e;var i=n.slice(0);return i.unshift(0),function(o){return i[0]=o,e.apply(this,i)}};c.exports=a},91389:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(89318),p=t(77259),a=t(28392),r={bezier:u,catmull:p,catmullrom:p,linear:a},n=function(e){if(e===null)return null;var s=r.linear;return typeof e=="string"?r.hasOwnProperty(e)&&(s=r[e]):typeof e=="function"&&(s=e),s};c.exports=n},55292:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){var a;if(t.hasOwnProperty(u)){var r=typeof t[u];r==="function"?a=function(n,e,s,h,i,o){return t[u](n,e,s,h,i,o)}:a=function(){return t[u]}}else typeof p=="function"?a=p:a=function(){return p};return a};c.exports=y},82985:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(81076),p=function(a){var r,n=[];if(a.hasOwnProperty("props"))for(r in a.props)r.substring(0,1)!=="_"&&n.push({key:r,value:a.props[r]});else for(r in a)u.indexOf(r)===-1&&r.substring(0,1)!=="_"&&n.push({key:r,value:a[r]});return n};c.exports=p},62329:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(35154),p=function(a){var r=u(a,"targets",null);return r===null||(typeof r=="function"&&(r=r.call()),Array.isArray(r)||(r=[r])),r};c.exports=p},17777:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(30976),p=t(99472);function a(h){return!!h.getActive&&typeof h.getActive=="function"}function r(h){return!!h.getStart&&typeof h.getStart=="function"}function n(h){return!!h.getEnd&&typeof h.getEnd=="function"}function e(h){return r(h)||n(h)||a(h)}var s=function(h,i){var o,l=function(V,Y,G){return G},f=function(V,Y,G){return G},d=null,v=typeof i;if(v==="number")l=function(){return i};else if(Array.isArray(i))f=function(){return i[0]},l=function(){return i[i.length-1]};else if(v==="string"){var m=i.toLowerCase(),g=m.substring(0,6)==="random",x=m.substring(0,3)==="int";if(g||x){var S=m.indexOf("("),C=m.indexOf(")"),E=m.indexOf(",");if(S&&C&&E){var P=parseFloat(m.substring(S+1,E)),R=parseFloat(m.substring(E+1,C));g?l=function(){return p(P,R)}:l=function(){return u(P,R)}}else throw new Error("invalid random() format")}else{m=m[0];var M=parseFloat(i.substr(2));switch(m){case"+":l=function(V,Y,G){return G+M};break;case"-":l=function(V,Y,G){return G-M};break;case"*":l=function(V,Y,G){return G*M};break;case"/":l=function(V,Y,G){return G/M};break;default:l=function(){return parseFloat(i)}}}}else if(v==="function")l=i;else if(v==="object")if(e(i))a(i)&&(d=i.getActive),n(i)&&(l=i.getEnd),r(i)&&(f=i.getStart);else if(i.hasOwnProperty("value"))o=s(h,i.value);else{var A=i.hasOwnProperty("to"),L=i.hasOwnProperty("from"),w=i.hasOwnProperty("start");if(A&&(L||w)){if(o=s(h,i.to),w){var N=s(h,i.start);o.getActive=N.getEnd}if(L){var b=s(h,i.from);o.getStart=b.getEnd}}}return o||(o={getActive:d,getEnd:l,getStart:f}),o};c.exports=s},88032:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(70402),p=t(69902),a=t(23568),r=t(57355),n=t(6113),e=t(55292),s=t(35154),h=t(17777),i=t(269),o=t(86081),l=function(f,d,v){if(d instanceof o)return d.parent=f,d;v===void 0?v=p:v=i(p,v);var m=s(d,"from",0),g=s(d,"to",1),x=[{value:m}],S=s(d,"delay",v.delay),C=s(d,"easeParams",v.easeParams),E=s(d,"ease",v.ease),P=h("value",g),R=new o(f,x),M=R.add(0,"value",P.getEnd,P.getStart,P.getActive,n(s(d,"ease",E),s(d,"easeParams",C)),e(d,"delay",S),s(d,"duration",v.duration),r(d,"yoyo",v.yoyo),s(d,"hold",v.hold),s(d,"repeat",v.repeat),s(d,"repeatDelay",v.repeatDelay),!1,!1);M.start=m,M.current=m,R.completeDelay=a(d,"completeDelay",0),R.loop=Math.round(a(d,"loop",0)),R.loopDelay=Math.round(a(d,"loopDelay",0)),R.paused=r(d,"paused",!1),R.persist=r(d,"persist",!1),R.callbackScope=s(d,"callbackScope",R);for(var A=u.TYPES,L=0;L{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(6113),p=t(35154),a=t(36383),r=function(n,e){e===void 0&&(e={});var s,h=p(e,"start",0),i=p(e,"ease",null),o=p(e,"grid",null),l=p(e,"from",0),f=l==="first",d=l==="center",v=l==="last",m=typeof l=="number",g=Array.isArray(n),x=parseFloat(g?n[0]:n),S=g?parseFloat(n[1]):0,C=Math.max(x,S);if(g&&(h+=x),o){var E=o[0],P=o[1],R=0,M=0,A=0,L=0,w=[];v?(R=E-1,M=P-1):m?(R=l%E,M=Math.floor(l/E)):d&&(R=(E-1)/2,M=(P-1)/2);for(var N=a.MIN_SAFE_INTEGER,b=0;bN&&(N=Y),w[b][V]=Y}}}var G=i?u(i):null;return o?s=function(U,B,I,X){var K=0,Z=X%E,J=Math.floor(X/E);Z>=0&&Z=0&&J{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(70402),p=t(69902),a=t(23568),r=t(57355),n=t(6113),e=t(91389),s=t(55292),h=t(82985),i=t(62329),o=t(35154),l=t(17777),f=t(269),d=t(86081),v=function(m,g,x){if(g instanceof d)return g.parent=m,g;x===void 0?x=p:x=f(p,x);var S=i(g);!S&&x.targets&&(S=x.targets);for(var C=h(g),E=o(g,"delay",x.delay),P=o(g,"duration",x.duration),R=o(g,"easeParams",x.easeParams),M=o(g,"ease",x.ease),A=o(g,"hold",x.hold),L=o(g,"repeat",x.repeat),w=o(g,"repeatDelay",x.repeatDelay),N=r(g,"yoyo",x.yoyo),b=r(g,"flipX",x.flipX),V=r(g,"flipY",x.flipY),Y=o(g,"interpolation",x.interpolation),G=function(k,q,tt,_){if(tt==="texture"){var it=_,ot=void 0;Array.isArray(_)?(it=_[0],ot=_[1]):_.hasOwnProperty("value")?(it=_.value,Array.isArray(_.value)?(it=_.value[0],ot=_.value[1]):typeof _.value=="string"&&(it=_.value)):typeof _=="string"&&(it=_),k.addFrame(q,it,ot,s(_,"delay",E),o(_,"duration",P),o(_,"hold",A),o(_,"repeat",L),o(_,"repeatDelay",w),r(_,"flipX",b),r(_,"flipY",V))}else{var ht=l(tt,_),ut=e(o(_,"interpolation",Y));k.add(q,tt,ht.getEnd,ht.getStart,ht.getActive,n(o(_,"ease",M),o(_,"easeParams",R)),s(_,"delay",E),o(_,"duration",P),r(_,"yoyo",N),o(_,"hold",A),o(_,"repeat",L),o(_,"repeatDelay",w),r(_,"flipX",b),r(_,"flipY",V),ut,ut?_:null)}},U=new d(m,S),B=0;B{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(70402),p=t(23568),a=t(57355),r=t(62329),n=t(35154),e=t(8357),s=t(43960),h=function(i,o){if(o instanceof s)return o.parent=i,o;var l=new s(i);l.startDelay=n(o,"delay",0),l.completeDelay=p(o,"completeDelay",0),l.loop=Math.round(p(o,"loop",n(o,"repeat",0))),l.loopDelay=Math.round(p(o,"loopDelay",n(o,"repeatDelay",0))),l.paused=a(o,"paused",!1),l.persist=a(o,"persist",!1),l.callbackScope=n(o,"callbackScope",l);var f,d=u.TYPES;for(f=0;f{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={GetBoolean:t(57355),GetEaseFunction:t(6113),GetInterpolationFunction:t(91389),GetNewValue:t(55292),GetProps:t(82985),GetTargets:t(62329),GetValueOp:t(17777),NumberTweenBuilder:t(88032),StaggerBuilder:t(93109),TweenBuilder:t(8357)}},73685:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="active"},98540:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="complete"},67233:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="loop"},2859:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="pause"},98336:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="repeat"},25764:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="resume"},32193:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="start"},84371:c=>{/** + * @author samme + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="stop"},70766:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="update"},55659:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports="yoyo"},842:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={TWEEN_ACTIVE:t(73685),TWEEN_COMPLETE:t(98540),TWEEN_LOOP:t(67233),TWEEN_PAUSE:t(2859),TWEEN_RESUME:t(25764),TWEEN_REPEAT:t(98336),TWEEN_START:t(32193),TWEEN_STOP:t(84371),TWEEN_UPDATE:t(70766),TWEEN_YOYO:t(55659)}},43066:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u={States:t(86353),Builders:t(30231),Events:t(842),TweenManager:t(40382),Tween:t(86081),TweenData:t(48177),TweenFrameData:t(42220),BaseTween:t(70402),TweenChain:t(43960)};c.exports=u},70402:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(50792),a=t(842),r=t(86353),n=new u({Extends:p,initialize:function(s){p.call(this),this.parent=s,this.data=[],this.totalData=0,this.startDelay=0,this.hasStarted=!1,this.timeScale=1,this.loop=0,this.loopDelay=0,this.loopCounter=0,this.completeDelay=0,this.countdown=0,this.state=r.PENDING,this.paused=!1,this.callbacks={onActive:null,onComplete:null,onLoop:null,onPause:null,onRepeat:null,onResume:null,onStart:null,onStop:null,onUpdate:null,onYoyo:null},this.callbackScope,this.persist=!1},setTimeScale:function(e){return this.timeScale=e,this},getTimeScale:function(){return this.timeScale},isPlaying:function(){return!this.paused&&this.isActive()},isPaused:function(){return this.paused},pause:function(){return this.paused||(this.paused=!0,this.dispatchEvent(a.TWEEN_PAUSE,"onPause")),this},resume:function(){return this.paused&&(this.paused=!1,this.dispatchEvent(a.TWEEN_RESUME,"onResume")),this},makeActive:function(){this.parent.makeActive(this),this.dispatchEvent(a.TWEEN_ACTIVE,"onActive")},onCompleteHandler:function(){this.setPendingRemoveState(),this.dispatchEvent(a.TWEEN_COMPLETE,"onComplete")},complete:function(e){return e===void 0&&(e=0),e?(this.setCompleteDelayState(),this.countdown=e):this.onCompleteHandler(),this},completeAfterLoop:function(e){return e===void 0&&(e=0),this.loopCounter>e&&(this.loopCounter=e),this},remove:function(){return this.parent&&this.parent.remove(this),this},stop:function(){return this.parent&&!this.isRemoved()&&!this.isPendingRemove()&&!this.isDestroyed()&&(this.dispatchEvent(a.TWEEN_STOP,"onStop"),this.setPendingRemoveState()),this},updateLoopCountdown:function(e){this.countdown-=e,this.countdown<=0&&(this.setActiveState(),this.dispatchEvent(a.TWEEN_LOOP,"onLoop"))},updateStartCountdown:function(e){return this.countdown-=e,this.countdown<=0&&(this.hasStarted=!0,this.setActiveState(),this.dispatchEvent(a.TWEEN_START,"onStart"),e=0),e},updateCompleteDelay:function(e){this.countdown-=e,this.countdown<=0&&this.onCompleteHandler()},setCallback:function(e,s,h){return h===void 0&&(h=[]),this.callbacks.hasOwnProperty(e)&&(this.callbacks[e]={func:s,params:h}),this},setPendingState:function(){this.state=r.PENDING},setActiveState:function(){this.state=r.ACTIVE,this.hasStarted=!1},setLoopDelayState:function(){this.state=r.LOOP_DELAY},setCompleteDelayState:function(){this.state=r.COMPLETE_DELAY},setStartDelayState:function(){this.state=r.START_DELAY,this.countdown=this.startDelay,this.hasStarted=!1},setPendingRemoveState:function(){this.state=r.PENDING_REMOVE},setRemovedState:function(){this.state=r.REMOVED},setFinishedState:function(){this.state=r.FINISHED},setDestroyedState:function(){this.state=r.DESTROYED},isPending:function(){return this.state===r.PENDING},isActive:function(){return this.state===r.ACTIVE},isLoopDelayed:function(){return this.state===r.LOOP_DELAY},isCompleteDelayed:function(){return this.state===r.COMPLETE_DELAY},isStartDelayed:function(){return this.state===r.START_DELAY},isPendingRemove:function(){return this.state===r.PENDING_REMOVE},isRemoved:function(){return this.state===r.REMOVED},isFinished:function(){return this.state===r.FINISHED},isDestroyed:function(){return this.state===r.DESTROYED},destroy:function(){this.data&&this.data.forEach(function(e){e.destroy()}),this.removeAllListeners(),this.callbacks=null,this.data=null,this.parent=null,this.setDestroyedState()}});n.TYPES=["onActive","onComplete","onLoop","onPause","onRepeat","onResume","onStart","onStop","onUpdate","onYoyo"],c.exports=n},95042:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(83419),p=t(842),a=t(86353),r=new u({initialize:function(e,s,h,i,o,l,f,d,v,m){this.tween=e,this.targetIndex=s,this.duration=i,this.totalDuration=0,this.delay=0,this.getDelay=h,this.yoyo=o,this.hold=l,this.repeat=f,this.repeatDelay=d,this.repeatCounter=0,this.flipX=v,this.flipY=m,this.progress=0,this.elapsed=0,this.state=0,this.isCountdown=!1},getTarget:function(){return this.tween.targets[this.targetIndex]},setTargetValue:function(n){n===void 0&&(n=this.current),this.tween.targets[this.targetIndex][this.key]=n},setCreatedState:function(){this.state=a.CREATED,this.isCountdown=!1},setDelayState:function(){this.state=a.DELAY,this.isCountdown=!0},setPendingRenderState:function(){this.state=a.PENDING_RENDER,this.isCountdown=!1},setPlayingForwardState:function(){this.state=a.PLAYING_FORWARD,this.isCountdown=!1},setPlayingBackwardState:function(){this.state=a.PLAYING_BACKWARD,this.isCountdown=!1},setHoldState:function(){this.state=a.HOLD_DELAY,this.isCountdown=!0},setRepeatState:function(){this.state=a.REPEAT_DELAY,this.isCountdown=!0},setCompleteState:function(){this.state=a.COMPLETE,this.isCountdown=!1},isCreated:function(){return this.state===a.CREATED},isDelayed:function(){return this.state===a.DELAY},isPendingRender:function(){return this.state===a.PENDING_RENDER},isPlayingForward:function(){return this.state===a.PLAYING_FORWARD},isPlayingBackward:function(){return this.state===a.PLAYING_BACKWARD},isHolding:function(){return this.state===a.HOLD_DELAY},isRepeating:function(){return this.state===a.REPEAT_DELAY},isComplete:function(){return this.state===a.COMPLETE},setStateFromEnd:function(n){this.yoyo?this.onRepeat(n,!0,!0):this.repeatCounter>0?this.onRepeat(n,!0,!1):this.setCompleteState()},setStateFromStart:function(n){this.repeatCounter>0?this.onRepeat(n,!1):this.setCompleteState()},reset:function(){var n=this.tween,e=n.totalTargets,s=this.targetIndex,h=n.targets[s],i=this.key;this.progress=0,this.elapsed=0,this.delay=this.getDelay(h,i,0,s,e,n),this.repeatCounter=this.repeat===-1?a.MAX:this.repeat,this.setPendingRenderState();var o=this.duration+this.hold;this.yoyo&&(o+=this.duration);var l=o+this.repeatDelay;this.totalDuration=this.delay+o,this.repeat===-1?(this.totalDuration+=l*a.MAX,n.isInfinite=!0):this.repeat>0&&(this.totalDuration+=l*this.repeat),this.totalDuration>n.duration&&(n.duration=this.totalDuration),this.delay0&&(this.elapsed=this.delay,this.setDelayState())},onRepeat:function(n,e,s){var h=this.tween,i=h.totalTargets,o=this.targetIndex,l=h.targets[o],f=this.key,d=f!=="texture";if(this.elapsed=n,this.progress=n/this.duration,this.flipX&&l.toggleFlipX(),this.flipY&&l.toggleFlipY(),d&&(e||s)&&(this.start=this.getStartValue(l,f,this.start,o,i,h)),s){this.setPlayingBackwardState(),this.dispatchEvent(p.TWEEN_YOYO,"onYoyo");return}this.repeatCounter--,d&&(this.end=this.getEndValue(l,f,this.start,o,i,h)),this.repeatDelay>0?(this.elapsed=this.repeatDelay-n,d&&(this.current=this.start,l[f]=this.current),this.setRepeatState()):(this.setPlayingForwardState(),this.dispatchEvent(p.TWEEN_REPEAT,"onRepeat"))},destroy:function(){this.tween=null,this.getDelay=null,this.setCompleteState()}});c.exports=r},69902:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={targets:null,delay:0,duration:1e3,ease:"Power0",easeParams:null,hold:0,repeat:0,repeatDelay:0,yoyo:!1,flipX:!1,flipY:!1,persist:!1,interpolation:null};c.exports=y},81076:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports=["callbackScope","completeDelay","delay","duration","ease","easeParams","flipX","flipY","hold","interpolation","loop","loopDelay","onActive","onActiveParams","onComplete","onCompleteParams","onLoop","onLoopParams","onPause","onPauseParams","onRepeat","onRepeatParams","onResume","onResumeParams","onStart","onStartParams","onStop","onStopParams","onUpdate","onUpdateParams","onYoyo","onYoyoParams","paused","persist","props","repeat","repeatDelay","targets","yoyo"]},86081:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(70402),p=t(83419),a=t(842),r=t(44603),n=t(39429),e=t(36383),s=t(86353),h=t(48177),i=t(42220),o=new p({Extends:u,initialize:function(f,d){u.call(this,f),this.targets=d,this.totalTargets=d.length,this.isSeeking=!1,this.isInfinite=!1,this.elapsed=0,this.totalElapsed=0,this.duration=0,this.progress=0,this.totalDuration=0,this.totalProgress=0},add:function(l,f,d,v,m,g,x,S,C,E,P,R,M,A,L,w){var N=new h(this,l,f,d,v,m,g,x,S,C,E,P,R,M,A,L,w);return this.totalData=this.data.push(N),N},addFrame:function(l,f,d,v,m,g,x,S,C,E){var P=new i(this,l,f,d,v,m,g,x,S,C,E);return this.totalData=this.data.push(P),P},getValue:function(l){l===void 0&&(l=0);var f=null;return this.data&&(f=this.data[l].current),f},hasTarget:function(l){return this.targets&&this.targets.indexOf(l)!==-1},updateTo:function(l,f,d){if(d===void 0&&(d=!1),l!=="texture")for(var v=0;v0)this.elapsed=0,this.progress=0,this.loopCounter--,this.initTweenData(!0),this.loopDelay>0?(this.countdown=this.loopDelay,this.setLoopDelayState()):(this.setActiveState(),this.dispatchEvent(a.TWEEN_LOOP,"onLoop"));else if(this.completeDelay>0)this.countdown=this.completeDelay,this.setCompleteDelayState();else return this.onCompleteHandler(),!0;return!1},onCompleteHandler:function(){this.progress=1,this.totalProgress=1,u.prototype.onCompleteHandler.call(this)},play:function(){return this.isDestroyed()?(console.warn("Cannot play destroyed Tween",this),this):((this.isPendingRemove()||this.isFinished())&&this.seek(),this.paused=!1,this.setActiveState(),this)},seek:function(l,f,d){if(l===void 0&&(l=0),f===void 0&&(f=16.6),d===void 0&&(d=!1),this.isDestroyed())return console.warn("Cannot seek destroyed Tween",this),this;d||(this.isSeeking=!0),this.reset(!0),this.initTweenData(!0),this.setActiveState(),this.dispatchEvent(a.TWEEN_ACTIVE,"onActive");var v=this.paused;if(this.paused=!1,l>0){for(var m=Math.floor(l/f),g=l-m*f,x=0;x0&&this.update(g)}return this.paused=v,this.isSeeking=!1,this},initTweenData:function(l){l===void 0&&(l=!1),this.duration=0,this.startDelay=e.MAX_SAFE_INTEGER;for(var f=this.data,d=0;d0?this.totalDuration=v+m+(v+x)*g:this.totalDuration=v+m},reset:function(l){return l===void 0&&(l=!1),this.elapsed=0,this.totalElapsed=0,this.progress=0,this.totalProgress=0,this.loopCounter=this.loop,this.loop===-1&&(this.isInfinite=!0,this.loopCounter=s.MAX),l||(this.initTweenData(),this.setActiveState(),this.dispatchEvent(a.TWEEN_ACTIVE,"onActive")),this},update:function(l){if(this.isPendingRemove()||this.isDestroyed())return!0;if(this.paused||this.isFinished())return!1;if(l*=this.timeScale*this.parent.timeScale,this.isLoopDelayed())return this.updateLoopCountdown(l),!1;if(this.isCompleteDelayed())return this.updateCompleteDelay(l),!1;this.hasStarted||(this.startDelay-=l,this.startDelay<=0&&(this.hasStarted=!0,this.dispatchEvent(a.TWEEN_START,"onStart"),l=0));var f=!1;if(this.isActive())for(var d=this.data,v=0;v{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(72905),p=t(70402),a=t(83419),r=t(842),n=t(44603),e=t(39429),s=t(86353),h=new a({Extends:p,initialize:function(o){p.call(this,o),this.currentTween=null,this.currentIndex=0},init:function(){return this.loopCounter=this.loop===-1?s.MAX:this.loop,this.setCurrentTween(0),this.startDelay>0&&!this.isStartDelayed()?this.setStartDelayState():this.setActiveState(),this},add:function(i){var o=this.parent.create(i);Array.isArray(o)||(o=[o]);for(var l=this.data,f=0;f0)this.loopCounter--,this.resetTweens(),this.loopDelay>0?(this.countdown=this.loopDelay,this.setLoopDelayState()):(this.setActiveState(),this.dispatchEvent(r.TWEEN_LOOP,"onLoop"));else if(this.completeDelay>0)this.countdown=this.completeDelay,this.setCompleteDelayState();else return this.onCompleteHandler(),!0;return!1},play:function(){return this.isDestroyed()?(console.warn("Cannot play destroyed TweenChain",this),this):((this.isPendingRemove()||this.isPending())&&this.resetTweens(),this.paused=!1,this.startDelay>0&&!this.isStartDelayed()?this.setStartDelayState():this.setActiveState(),this)},resetTweens:function(){for(var i=this.data,o=this.totalData,l=0;l{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(95042),p=t(45319),a=t(83419),r=t(842),n=new a({Extends:u,initialize:function(s,h,i,o,l,f,d,v,m,g,x,S,C,E,P,R,M){u.call(this,s,h,v,m,g,x,S,C,E,P),this.key=i,this.getActiveValue=f,this.getEndValue=o,this.getStartValue=l,this.ease=d,this.start=0,this.previous=0,this.current=0,this.end=0,this.interpolation=R,this.interpolationData=M},reset:function(e){u.prototype.reset.call(this);var s=this.tween.targets[this.targetIndex],h=this.key;e&&(s[h]=this.start),this.start=0,this.previous=0,this.current=0,this.end=0,this.getActiveValue&&(s[h]=this.getActiveValue(s,h,0))},update:function(e){var s=this.tween,h=s.totalTargets,i=this.targetIndex,o=s.targets[i],l=this.key;if(!o)return this.setCompleteState(),!1;if(this.isCountdown&&(this.elapsed-=e,this.elapsed<=0&&(this.elapsed=0,e=0,this.isDelayed()?this.setPendingRenderState():this.isRepeating()?(this.setPlayingForwardState(),this.dispatchEvent(r.TWEEN_REPEAT,"onRepeat")):this.isHolding()&&this.setStateFromEnd(0))),this.isPendingRender())return this.start=this.getStartValue(o,l,o[l],i,h,s),this.end=this.getEndValue(o,l,this.start,i,h,s),this.current=this.start,o[l]=this.start,this.setPlayingForwardState(),!0;var f=this.isPlayingForward(),d=this.isPlayingBackward();if(f||d){var v=this.elapsed,m=this.duration,g=0,x=!1;v+=e,v>=m?(g=v-m,v=m,x=!0):v<0&&(v=0);var S=p(v/m,0,1);this.elapsed=v,this.progress=S,this.previous=this.current,f||(S=1-S);var C=this.ease(S);this.interpolation?this.current=this.interpolation(this.interpolationData,C):this.current=this.start+(this.end-this.start)*C,o[l]=this.current,x&&(f?this.hold>0?(this.elapsed=this.hold,this.setHoldState()):this.setStateFromEnd(g):this.setStateFromStart(g)),this.dispatchEvent(r.TWEEN_UPDATE,"onUpdate")}return!this.isComplete()},dispatchEvent:function(e,s){var h=this.tween;if(!h.isSeeking){var i=h.targets[this.targetIndex],o=this.key,l=this.current,f=this.previous;h.emit(e,h,o,i,l,f);var d=h.callbacks[s];d&&d.func.apply(h.callbackScope,[h,i,o,l,f].concat(d.params))}},destroy:function(){u.prototype.destroy.call(this),this.getActiveValue=null,this.getEndValue=null,this.getStartValue=null,this.ease=null}});c.exports=n},42220:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(95042),p=t(45319),a=t(83419),r=t(842),n=new a({Extends:u,initialize:function(s,h,i,o,l,f,d,v,m,g,x){u.call(this,s,h,l,f,!1,d,v,m,g,x),this.key="texture",this.startTexture=null,this.endTexture=i,this.startFrame=null,this.endFrame=o,this.yoyo=v!==0},reset:function(e){u.prototype.reset.call(this);var s=this.tween.targets[this.targetIndex];this.startTexture||(this.startTexture=s.texture.key,this.startFrame=s.frame.name),e&&s.setTexture(this.startTexture,this.startFrame)},update:function(e){var s=this.tween,h=this.targetIndex,i=s.targets[h];if(!i)return this.setCompleteState(),!1;if(this.isCountdown&&(this.elapsed-=e,this.elapsed<=0&&(this.elapsed=0,e=0,this.isDelayed()?this.setPendingRenderState():this.isRepeating()?(this.setPlayingForwardState(),this.dispatchEvent(r.TWEEN_REPEAT,"onRepeat")):this.isHolding()&&this.setStateFromEnd(0))),this.isPendingRender())return this.startTexture&&i.setTexture(this.startTexture,this.startFrame),this.setPlayingForwardState(),!0;var o=this.isPlayingForward(),l=this.isPlayingBackward();if(o||l){var f=this.elapsed,d=this.duration,v=0,m=!1;f+=e,f>=d?(v=f-d,f=d,m=!0):f<0&&(f=0);var g=p(f/d,0,1);this.elapsed=f,this.progress=g,m&&(o?(i.setTexture(this.endTexture,this.endFrame),this.hold>0?(this.elapsed=this.hold,this.setHoldState()):this.setStateFromEnd(v)):(i.setTexture(this.startTexture,this.startFrame),this.setStateFromStart(v))),this.dispatchEvent(r.TWEEN_UPDATE,"onUpdate")}return!this.isComplete()},dispatchEvent:function(e,s){var h=this.tween;if(!h.isSeeking){var i=h.targets[this.targetIndex],o=this.key;h.emit(e,h,o,i);var l=h.callbacks[s];l&&l.func.apply(h.callbackScope,[h,i,o].concat(l.params))}},destroy:function(){u.prototype.destroy.call(this),this.startTexture=null,this.endTexture=null,this.startFrame=null,this.endFrame=null}});c.exports=n},86353:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y={CREATED:0,DELAY:2,PENDING_RENDER:4,PLAYING_FORWARD:5,PLAYING_BACKWARD:6,HOLD_DELAY:7,REPEAT_DELAY:8,COMPLETE:9,PENDING:20,ACTIVE:21,LOOP_DELAY:22,COMPLETE_DELAY:23,START_DELAY:24,PENDING_REMOVE:25,REMOVED:26,FINISHED:27,DESTROYED:28,MAX:999999999999};c.exports=y},83419:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */function y(n){return!!n.get&&typeof n.get=="function"||!!n.set&&typeof n.set=="function"}function t(n,e,s){var h=s?n[e]:Object.getOwnPropertyDescriptor(n,e);return!s&&h.value&&typeof h.value=="object"&&(h=h.value),h&&y(h)?(typeof h.enumerable>"u"&&(h.enumerable=!0),typeof h.configurable>"u"&&(h.configurable=!0),h):!1}function u(n,e){var s=Object.getOwnPropertyDescriptor(n,e);return s?(s.value&&typeof s.value=="object"&&(s=s.value),s.configurable===!1):!1}function p(n,e,s,h){for(var i in e)if(e.hasOwnProperty(i)){var o=t(e,i,s);if(o!==!1){var l=h||n;if(u(l.prototype,i)){if(r.ignoreFinals)continue;throw new Error("cannot override final property '"+i+"', set Class.ignoreFinals = true to skip")}Object.defineProperty(n.prototype,i,o)}else n.prototype[i]=e[i]}}function a(n,e){if(e){Array.isArray(e)||(e=[e]);for(var s=0;s{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(){};c.exports=y},20242:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(){return null};c.exports=y},71146:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a,r){if(r===void 0&&(r=t),p>0){var n=p-t.length;if(n<=0)return null}if(!Array.isArray(u))return t.indexOf(u)===-1?(t.push(u),a&&a.call(r,u),u):null;for(var e=u.length-1;e>=0;)t.indexOf(u[e])!==-1&&u.splice(e,1),e--;if(e=u.length,e===0)return null;p>0&&e>n&&(u.splice(n),e=n);for(var s=0;s{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a,r,n){if(p===void 0&&(p=0),n===void 0&&(n=t),a>0){var e=a-t.length;if(e<=0)return null}if(!Array.isArray(u))return t.indexOf(u)===-1?(t.splice(p,0,u),r&&r.call(n,u),u):null;for(var s=u.length-1;s>=0;)t.indexOf(u[s])!==-1&&u.pop(),s--;if(s=u.length,s===0)return null;a>0&&s>e&&(u.splice(e),s=e);for(var h=s-1;h>=0;h--){var i=u[h];t.splice(p,0,i),r&&r.call(n,i)}return u};c.exports=y},66905:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){var p=t.indexOf(u);return p!==-1&&p{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(82011),p=function(a,r,n,e,s){e===void 0&&(e=0),s===void 0&&(s=a.length);var h=0;if(u(a,e,s))for(var i=e;i{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){var a,r=[null];for(a=3;a{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(82011),p=function(a,r,n,e,s){if(e===void 0&&(e=0),s===void 0&&(s=a.length),u(a,e,s)){var h,i=[null];for(h=5;h{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){if(u.length){if(u.length===1)return u[0]}else return NaN;var a=1,r,n;if(p){if(tu.length&&(a=u.length),p?(r=u[a-1][p],n=u[a][p],n-t<=t-r?u[a]:u[a-1]):(r=u[a-1],n=u[a],n-t<=t-r?n:r)};c.exports=y},43491:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){u===void 0&&(u=[]);for(var p=0;p{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(82011),p=function(a,r,n,e,s){e===void 0&&(e=0),s===void 0&&(s=a.length);var h=[];if(u(a,e,s))for(var i=e;i{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(82011),p=function(a,r,n,e,s){if(e===void 0&&(e=0),s===void 0&&(s=a.length),u(a,e,s))for(var h=e;h{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){u===void 0&&(u=0),p===void 0&&(p=t.length);var a=u+Math.floor(Math.random()*p);return t[a]===void 0?null:t[a]};c.exports=y},85835:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){if(u===p)return t;var a=t.indexOf(u),r=t.indexOf(p);if(a<0||r<0)throw new Error("Supplied items must be elements of the same array");return a>r||(t.splice(a,1),r=t.indexOf(p),t.splice(r+1,0,u)),t};c.exports=y},83371:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){if(u===p)return t;var a=t.indexOf(u),r=t.indexOf(p);if(a<0||r<0)throw new Error("Supplied items must be elements of the same array");return a{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){var p=t.indexOf(u);if(p>0){var a=t[p-1],r=t.indexOf(a);t[p]=a,t[r]=u}return t};c.exports=y},69693:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){var a=t.indexOf(u);if(a===-1||p<0||p>=t.length)throw new Error("Supplied index out of bounds");return a!==p&&(t.splice(a,1),t.splice(p,0,u)),u};c.exports=y},40853:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){var p=t.indexOf(u);if(p!==-1&&p{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){var r=[],n,e=!1;if((p||a)&&(e=!0,p||(p=""),a||(a="")),u=u;n--)e?r.push(p+n.toString()+a):r.push(n);else for(n=t;n<=u;n++)e?r.push(p+n.toString()+a):r.push(n);return r};c.exports=y},593:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(2284),p=function(a,r,n){a===void 0&&(a=0),r===void 0&&(r=null),n===void 0&&(n=1),r===null&&(r=a,a=0);for(var e=[],s=Math.max(u((r-a)/(n||1)),0),h=0;h{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */function y(p,a,r){var n=p[a];p[a]=p[r],p[r]=n}function t(p,a){return pa?1:0}var u=function(p,a,r,n,e){for(r===void 0&&(r=0),n===void 0&&(n=p.length-1),e===void 0&&(e=t);n>r;){if(n-r>600){var s=n-r+1,h=a-r+1,i=Math.log(s),o=.5*Math.exp(2*i/3),l=.5*Math.sqrt(i*o*(s-o)/s)*(h-s/2<0?-1:1),f=Math.max(r,Math.floor(a-h*o/s+l)),d=Math.min(n,Math.floor(a+(s-h)*o/s+l));u(p,a,f,d,e)}var v=p[a],m=r,g=n;for(y(p,r,a),e(p[n],v)>0&&y(p,r,n);m0;)g--}e(p[r],v)===0?y(p,r,g):(g++,y(p,g,n)),g<=a&&(r=g+1),a<=g&&(n=g-1)}};c.exports=u},88492:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(35154),p=t(33680),a=function(n,e,s){for(var h=[],i=0;i{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(19133),p=function(a,r,n,e){e===void 0&&(e=a);var s;if(!Array.isArray(r))return s=a.indexOf(r),s!==-1?(u(a,s),n&&n.call(e,r),r):null;for(var h=r.length-1,i=[];h>=0;){var o=r[h];s=a.indexOf(o),s!==-1&&(u(a,s),i.push(o),n&&n.call(e,o)),h--}return i};c.exports=p},60248:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(19133),p=function(a,r,n,e){if(e===void 0&&(e=a),r<0||r>a.length-1)throw new Error("Index out of bounds");var s=u(a,r);return n&&n.call(e,s),s};c.exports=p},81409:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(82011),p=function(a,r,n,e,s){if(r===void 0&&(r=0),n===void 0&&(n=a.length),s===void 0&&(s=a),u(a,r,n)){var h=n-r,i=a.splice(r,h);if(e)for(var o=0;o{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(19133),p=function(a,r,n){r===void 0&&(r=0),n===void 0&&(n=a.length);var e=r+Math.floor(Math.random()*n);return u(a,e)};c.exports=p},42169:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){var a=t.indexOf(u),r=t.indexOf(p);return a!==-1&&r===-1?(t[a]=p,!0):!1};c.exports=y},86003:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){u===void 0&&(u=1);for(var p=null,a=0;a{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){u===void 0&&(u=1);for(var p=null,a=0;a{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){var r=t.length;if(u<0||u>r||u>=p||p>r){if(a)throw new Error("Range Error: Values outside acceptable range");return!1}else return!0};c.exports=y},89545:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){var p=t.indexOf(u);return p!==-1&&p>0&&(t.splice(p,1),t.unshift(u)),u};c.exports=y},17810:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(82011),p=function(a,r,n,e,s){if(e===void 0&&(e=0),s===void 0&&(s=a.length),u(a,e,s))for(var h=e;h{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){for(var u=t.length-1;u>0;u--){var p=Math.floor(Math.random()*(u+1)),a=t[u];t[u]=t[p],t[p]=a}return t};c.exports=y},90126:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){var u=/\D/g;return t.sort(function(p,a){return parseInt(p.replace(u,""),10)-parseInt(a.replace(u,""),10)}),t};c.exports=y},19133:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){if(!(u>=t.length)){for(var p=t.length-1,a=t[u],r=u;r{/** + * @author Richard Davey + * @author Angry Bytes (and contributors) + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(82264);function p(e,s){return String(e).localeCompare(s)}function a(e,s){var h=e.length;if(h<=1)return e;for(var i=new Array(h),o=1;oo&&(v=o),m>o&&(m=o),g=d,x=v;;)if(g{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){if(u===p)return t;var a=t.indexOf(u),r=t.indexOf(p);if(a<0||r<0)throw new Error("Supplied items must be elements of the same array");return t[a]=p,t[r]=u,t};c.exports=y},37105:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={Matrix:t(54915),Add:t(71146),AddAt:t(51067),BringToTop:t(66905),CountAllMatching:t(21612),Each:t(95428),EachInRange:t(36914),FindClosestInSorted:t(81957),Flatten:t(43491),GetAll:t(46710),GetFirst:t(58731),GetRandom:t(26546),MoveDown:t(70864),MoveTo:t(69693),MoveUp:t(40853),MoveAbove:t(85835),MoveBelow:t(83371),NumberArray:t(20283),NumberArrayStep:t(593),QuickSelect:t(43886),Range:t(88492),Remove:t(72905),RemoveAt:t(60248),RemoveBetween:t(81409),RemoveRandomElement:t(31856),Replace:t(42169),RotateLeft:t(86003),RotateRight:t(49498),SafeRange:t(82011),SendToBack:t(89545),SetAll:t(17810),Shuffle:t(33680),SortByDigits:t(90126),SpliceOne:t(19133),StableSort:t(19186),Swap:t(25630)}},86922:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){if(!Array.isArray(t)||!Array.isArray(t[0]))return!1;for(var u=t[0].length,p=1;p{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(41836),p=t(86922),a=function(r){var n="";if(!p(r))return n;for(var e=0;e{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t.reverse()};c.exports=y},21224:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){for(var u=0;u{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(37829),p=function(a){return u(a,180)};c.exports=p},44657:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(37829),p=function(a,r){r===void 0&&(r=1);for(var n=0;n{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(86922),p=t(2429),a=function(r,n){if(n===void 0&&(n=90),!u(r))return null;if(typeof n!="string"&&(n=(n%360+360)%360),n===90||n===-270||n==="rotateLeft")r=p(r),r.reverse();else if(n===-90||n===270||n==="rotateRight")r.reverse(),r=p(r);else if(Math.abs(n)===180||n==="rotate180"){for(var e=0;e{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(37829),p=function(a,r){r===void 0&&(r=1);for(var n=0;n{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(86003),p=t(49498),a=function(r,n,e){if(n===void 0&&(n=0),e===void 0&&(e=0),e!==0&&(e<0?u(r,Math.abs(e)):p(r,e)),n!==0)for(var s=0;s{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){for(var u=t.length,p=t[0].length,a=new Array(p),r=0;r-1;n--)a[r][n]=t[n][r]}return a};c.exports=y},54915:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={CheckMatrix:t(86922),MatrixToString:t(63362),ReverseColumns:t(92598),ReverseRows:t(21224),Rotate180:t(98717),RotateLeft:t(44657),RotateMatrix:t(37829),RotateRight:t(92632),Translate:t(69512),TransposeMatrix:t(2429)}},71334:c=>{/** + * @author Niklas von Hertzen (https://github.com/niklasvh/base64-arraybuffer) + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=function(u,p){for(var a=new Uint8Array(u),r=a.length,n=p?"data:"+p+";base64,":"",e=0;e>2],n+=y[(a[e]&3)<<4|a[e+1]>>4],n+=y[(a[e+1]&15)<<2|a[e+2]>>6],n+=y[a[e+2]&63];return r%3===2?n=n.substring(0,n.length-1)+"=":r%3===1&&(n=n.substring(0,n.length-2)+"=="),n};c.exports=t},53134:c=>{/** + * @author Niklas von Hertzen (https://github.com/niklasvh/base64-arraybuffer) + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */for(var y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=new Uint8Array(256),u=0;u>4,f[e++]=(h&15)<<4|i>>2,f[e++]=(i&3)<<6|o&63;return l};c.exports=p},65839:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={ArrayBufferToBase64:t(71334),Base64ToArrayBuffer:t(53134)}},91799:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={Array:t(37105),Base64:t(65839),Objects:t(1183),String:t(31749),NOOP:t(29747),NULL:t(20242)}},41786:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){var u={};for(var p in t)Array.isArray(t[p])?u[p]=t[p].slice(0):u[p]=t[p];return u};c.exports=y},62644:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){var u,p,a;if(typeof t!="object"||t===null)return t;u=Array.isArray(t)?[]:{};for(a in t)p=t[a],u[a]=y(p);return u};c.exports=y},79291:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(41212),p=function(){var a,r,n,e,s,h,i=arguments[0]||{},o=1,l=arguments.length,f=!1;for(typeof i=="boolean"&&(f=i,i=arguments[1]||{},o=2),l===o&&(i=this,--o);o{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(75508),p=t(35154),a=function(r,n,e){var s=p(r,n,null);if(s===null)return e;if(Array.isArray(s))return u.RND.pick(s);if(typeof s=="object"){if(s.hasOwnProperty("randInt"))return u.RND.integerInRange(s.randInt[0],s.randInt[1]);if(s.hasOwnProperty("randFloat"))return u.RND.realInRange(s.randFloat[0],s.randFloat[1])}else if(typeof s=="function")return s(n);return s};c.exports=a},95540:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){var a=typeof t;return!t||a==="number"||a==="string"?p:t.hasOwnProperty(u)&&t[u]!==void 0?t[u]:p};c.exports=y},82840:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(35154),p=t(45319),a=function(r,n,e,s,h){h===void 0&&(h=e);var i=u(r,n,h);return p(i,e,s)};c.exports=a},35154:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){if(!t&&!a||typeof t=="number")return p;if(t&&t.hasOwnProperty(u))return t[u];if(a&&a.hasOwnProperty(u))return a[u];if(u.indexOf(".")!==-1){for(var r=u.split("."),n=t,e=a,s=p,h=p,i=!0,o=!0,l=0;l{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){for(var p=0;p{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){for(var p=0;p{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return t.hasOwnProperty(u)};c.exports=y},41212:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){if(!t||typeof t!="object"||t.nodeType||t===t.window)return!1;try{if(t.constructor&&!{}.hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch{return!1}return!0};c.exports=y},46975:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(41786),p=function(a,r){var n=u(a);for(var e in r)n.hasOwnProperty(e)||(n[e]=r[e]);return n};c.exports=p},269:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(41786),p=function(a,r){var n=u(a);for(var e in r)n.hasOwnProperty(e)&&(n[e]=r[e]);return n};c.exports=p},18254:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var u=t(97022),p=function(a,r){for(var n={},e=0;e{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p){if(!t||typeof t=="number")return!1;if(t.hasOwnProperty(u))return t[u]=p,!0;if(u.indexOf(".")!==-1){for(var a=u.split("."),r=t,n=t,e=0;e{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={Clone:t(41786),DeepCopy:t(62644),Extend:t(79291),GetAdvancedValue:t(23568),GetFastValue:t(95540),GetMinMaxValue:t(82840),GetValue:t(35154),HasAll:t(69036),HasAny:t(1985),HasValue:t(97022),IsPlainObject:t(41212),Merge:t(46975),MergeRight:t(269),Pick:t(18254),SetValue:t(61622)}},27902:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return t.replace(/%([0-9]+)/g,function(p,a){return u[Number(a)-1]})};c.exports=y},41836:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u,p,a){u===void 0&&(u=0),p===void 0&&(p=" "),a===void 0&&(a=3),t=t.toString();var r=0;if(u+1>=t.length)switch(a){case 1:t=new Array(u+1-t.length).join(p)+t;break;case 3:var n=Math.ceil((r=u-t.length)/2),e=r-n;t=new Array(e+1).join(p)+t+new Array(n+1).join(p);break;default:t=t+new Array(u+1-t.length).join(p);break}return t};c.exports=y},33628:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t,u){return u===0?t.slice(1):t.slice(0,u)+t.slice(u+1)};c.exports=y},27671:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t.split("").reverse().join("")};c.exports=y},45650:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var u=Math.random()*16|0,p=t==="x"?u:u&3|8;return p.toString(16)})};c.exports=y},35355:c=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */var y=function(t){return t&&t[0].toUpperCase()+t.slice(1)};c.exports=y},31749:(c,y,t)=>{/** + * @author Richard Davey + * @copyright 2013-2024 Phaser Studio Inc. + * @license {@link https://opensource.org/licenses/MIT|MIT License} + */c.exports={Format:t(27902),Pad:t(41836),RemoveAt:t(33628),Reverse:t(27671),UppercaseFirst:t(35355),UUID:t(45650)}}},D={};function z(c){var y=D[c];if(y!==void 0)return y.exports;var t=D[c]={exports:{}};return O[c](t,t.exports,z),t.exports}z.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}();var H=z(85454);return H})())})(En);var fs=En.exports;const kt=sr(fs),W=-1,ft=14423100,vi=16716947,Ut=16744272,fe=14524637,de=16711935,Ge=9109643,Et=32768,dt=49151,ci=13789470,Pt=0,Kt=7833753,nr={click:"click",drop:"drop",error:"error",success:"success"},rr={boot:"boot",end:"end",main:"main",intro:"intro"},wt={audio:nr,scene:rr},ar=window.gtag,ds="UA-59233605-5";ar("config",ds);window[`ga-disable-${ds}`]=!1;const vs=document.createElement("script");vs.async=!0;vs.src=`https://www.googletagmanager.com/gtag/js?id=${ds}`;document.head.appendChild(vs);const or=["#FFFAFA","#F0FFF0","#F5FFFA","#F0FFFF","#F0F8FF","#F8F8FF","#F5F5F5","#FFF5EE","#F5F5DC","#FDF5E6","#FFFAF0","#FFFFF0","#FAEBD7","#FAF0E6","#FFF0F5","#FFE4E1"];function hr(){return Phaser.Utils.Array.GetRandom(or)}function lr(F){if(!Array.isArray(F))throw new TypeError("First argument must be an array");return F.length<3?[F]:F.reduce((T,O,D)=>T.concat(F.slice(D+1).map(z=>[O,z])),[])}function ur(F){return lr(F).some(O=>{if(O.length<2)return!1;const D=O[0].position,z=O[1].position,H=new Phaser.Geom.Line(D==null?void 0:D.x1,D==null?void 0:D.y1,D==null?void 0:D.x2,D==null?void 0:D.y2),c=new Phaser.Geom.Line(z==null?void 0:z.x1,z==null?void 0:z.y1,z==null?void 0:z.x2,z==null?void 0:z.y2);return Phaser.Geom.Intersects.LineToLine(H,c)})}const fr=new URLSearchParams(location.search);function ve(F,T){try{T.sound.play(F)}catch(O){console.error(O)}}class is extends kt.Scene{constructor(){super(wt.scene.boot)}preload(){this.load.audio(wt.audio.click,[new URL("/linkit/assets/drop_004-D5IDGk6q.ogg",import.meta.url).href,new URL("/linkit/assets/drop_004-B7R8-aZ7.mp3",import.meta.url).href]),this.load.audio(wt.audio.drop,[new URL("/linkit/assets/drop_002-BNFBGB6N.ogg",import.meta.url).href,new URL("/linkit/assets/drop_002-CWurrttm.mp3",import.meta.url).href]),this.load.audio(wt.audio.error,[new URL("/linkit/assets/back_001-D7ikWOoG.ogg",import.meta.url).href,new URL("/linkit/assets/back_001-DnN4XDrw.mp3",import.meta.url).href]),this.load.audio(wt.audio.success,[new URL("/linkit/assets/confirmation_004-CyrxLF9v.ogg",import.meta.url).href,new URL("/linkit/assets/confirmation_004-DsBfGNcm.mp3",import.meta.url).href])}create(){const T={level:Number(fr.get("level"))};T.level?this.scene.start(wt.scene.main,T):this.scene.start(wt.scene.intro)}}var Pn={},se={},Mn={},nt={};Object.defineProperty(nt,"__esModule",{value:!0});nt.Zone=nt.Video=nt.UpdateList=nt.Triangle=nt.TileSprite=nt.TextStyle=nt.Text=nt.Star=nt.Sprite=nt.Shape=nt.Shader=nt.Rope=nt.RenderTexture=nt.Rectangle=nt.Polygon=nt.PointLight=nt.Plane=nt.PathFollower=nt.ParticleEmitter=nt.NineSlice=nt.Mesh=nt.Line=nt.LightsPlugin=nt.LightsManager=nt.Light=nt.Layer=nt.IsoTriangle=nt.IsoBox=nt.Image=nt.Group=nt.Grid=nt.Graphics=nt.GameObjectFactory=nt.GameObjectCreator=nt.GameObject=nt.Extern=nt.Ellipse=nt.DynamicBitmapText=nt.DisplayList=nt.DOMElement=nt.Curve=nt.Container=nt.Bob=nt.Blitter=nt.BitmapText=nt.Arc=void 0;var ct=fs;nt.Arc=ct.GameObjects.Arc;nt.BitmapText=ct.GameObjects.BitmapText;nt.Blitter=ct.GameObjects.Blitter;nt.Bob=ct.GameObjects.Bob;nt.Container=ct.GameObjects.Container;nt.Curve=ct.GameObjects.Curve;nt.DOMElement=ct.GameObjects.DOMElement;nt.DisplayList=ct.GameObjects.DisplayList;nt.DynamicBitmapText=ct.GameObjects.DynamicBitmapText;nt.Ellipse=ct.GameObjects.Ellipse;nt.Extern=ct.GameObjects.Extern;nt.GameObject=ct.GameObjects.GameObject;nt.GameObjectCreator=ct.GameObjects.GameObjectCreator;nt.GameObjectFactory=ct.GameObjects.GameObjectFactory;nt.Graphics=ct.GameObjects.Graphics;nt.Grid=ct.GameObjects.Grid;nt.Group=ct.GameObjects.Group;nt.Image=ct.GameObjects.Image;nt.IsoBox=ct.GameObjects.IsoBox;nt.IsoTriangle=ct.GameObjects.IsoTriangle;nt.Layer=ct.GameObjects.Layer;nt.Light=ct.GameObjects.Light;nt.LightsManager=ct.GameObjects.LightsManager;nt.LightsPlugin=ct.GameObjects.LightsPlugin;nt.Line=ct.GameObjects.Line;nt.Mesh=ct.GameObjects.Mesh;nt.NineSlice=ct.GameObjects.NineSlice;nt.ParticleEmitter=ct.GameObjects.Particles.ParticleEmitter;nt.PathFollower=ct.GameObjects.PathFollower;nt.Plane=ct.GameObjects.Plane;nt.PointLight=ct.GameObjects.PointLight;nt.Polygon=ct.GameObjects.Polygon;nt.Rectangle=ct.GameObjects.Rectangle;nt.RenderTexture=ct.GameObjects.RenderTexture;nt.Rope=ct.GameObjects.Rope;nt.Shader=ct.GameObjects.Shader;nt.Shape=ct.GameObjects.Shape;nt.Sprite=ct.GameObjects.Sprite;nt.Star=ct.GameObjects.Star;nt.Text=ct.GameObjects.Text;nt.TextStyle=ct.GameObjects.TextStyle;nt.TileSprite=ct.GameObjects.TileSprite;nt.Triangle=ct.GameObjects.Triangle;nt.UpdateList=ct.GameObjects.UpdateList;nt.Video=ct.GameObjects.Video;nt.Zone=ct.GameObjects.Zone;(function(F){var T=pt&&pt.__createBinding||(Object.create?function(D,z,H,c){c===void 0&&(c=H);var y=Object.getOwnPropertyDescriptor(z,H);(!y||("get"in y?!z.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return z[H]}}),Object.defineProperty(D,c,y)}:function(D,z,H,c){c===void 0&&(c=H),D[c]=z[H]}),O=pt&&pt.__exportStar||function(D,z){for(var H in D)H!=="default"&&!Object.prototype.hasOwnProperty.call(z,H)&&T(z,D,H)};Object.defineProperty(F,"__esModule",{value:!0}),O(nt,F)})(Mn);var cs={},ui={};Object.defineProperty(ui,"__esModule",{value:!0});ui.createElement=void 0;function dr(F,T){for(var O=[],D=2;D-1:t=new F.type(T);break;default:return ss(new F.type(F.props),T)}return(0,Ar.setProps)(t,y,T),(0,Rr.attachRef)(t,z),Array.isArray(D)&&D.forEach(function(u){var p=ss(u,T);p&&(t instanceof Wi.default.GameObjects.Container?t.add(p):T.add.existing(p))}),t}}fi.createGameObject=ss;var Ii={};Object.defineProperty(Ii,"__esModule",{value:!0});Ii.render=void 0;var Lr=ps,Or=fi;function wr(F,T){(0,Lr.setScene)(T);var O=(0,Or.createGameObject)(F,T);O&&T.add.existing(O)}Ii.render=wr;(function(F){var T=pt&&pt.__createBinding||(Object.create?function(D,z,H,c){c===void 0&&(c=H);var y=Object.getOwnPropertyDescriptor(z,H);(!y||("get"in y?!z.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return z[H]}}),Object.defineProperty(D,c,y)}:function(D,z,H,c){c===void 0&&(c=H),D[c]=z[H]}),O=pt&&pt.__exportStar||function(D,z){for(var H in D)H!=="default"&&!Object.prototype.hasOwnProperty.call(z,H)&&T(z,D,H)};Object.defineProperty(F,"__esModule",{value:!0}),O(fi,F),O(ms,F),O(di,F),O(Ii,F)})(On);(function(F){var T=pt&&pt.__createBinding||(Object.create?function(y,t,u,p){p===void 0&&(p=u);var a=Object.getOwnPropertyDescriptor(t,u);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[u]}}),Object.defineProperty(y,p,a)}:function(y,t,u,p){p===void 0&&(p=u),y[p]=t[u]}),O=pt&&pt.__exportStar||function(y,t){for(var u in y)u!=="default"&&!Object.prototype.hasOwnProperty.call(t,u)&&T(t,y,u)};Object.defineProperty(F,"__esModule",{value:!0}),F.render=F.createRef=F.useScene=F.jsx=F.createElement=void 0,O(Mn,F);var D=cs;Object.defineProperty(F,"createElement",{enumerable:!0,get:function(){return D.createElement}}),Object.defineProperty(F,"jsx",{enumerable:!0,get:function(){return D.jsx}});var z=Rn;Object.defineProperty(F,"useScene",{enumerable:!0,get:function(){return z.useScene}});var H=Ln;Object.defineProperty(F,"createRef",{enumerable:!0,get:function(){return H.createRef}});var c=On;Object.defineProperty(F,"render",{enumerable:!0,get:function(){return c.render}})})(se);(function(F){Object.defineProperty(F,"__esModule",{value:!0}),F.jsxs=F.jsx=F.Fragment=void 0;var T=se;Object.defineProperty(F,"Fragment",{enumerable:!0,get:function(){return T.Container}}),Object.defineProperty(F,"jsx",{enumerable:!0,get:function(){return T.jsx}}),Object.defineProperty(F,"jsxs",{enumerable:!0,get:function(){return T.jsx}})})(Pn);var ee=Pn;const Fe="generated",Dr="pointerdown",Ir="pointerup",Ps="pointerleave",Br="pointerout",Ms="pointermove",Gr="touchstart",As="touchend",Nr="touchmove",zr="touchcancel",br="resize",Ur="visibilitychange",$t="tsParticles - Error",Nt=100,oi=.5,Dt=1e3;var zt;(function(F){F.bottom="bottom",F.bottomLeft="bottom-left",F.bottomRight="bottom-right",F.left="left",F.none="none",F.right="right",F.top="top",F.topLeft="top-left",F.topRight="top-right",F.outside="outside",F.inside="inside"})(zt||(zt={}));function Dn(F){return typeof F=="boolean"}function he(F){return typeof F=="string"}function ne(F){return typeof F=="number"}function Ue(F){return typeof F=="object"&&F!==null}function Wt(F){return Array.isArray(F)}const te={x:0,y:0,z:0},Rs=2,Xr=1;class Ht{constructor(T,O,D){if(this._updateFromAngle=(z,H)=>{this.x=Math.cos(z)*H,this.y=Math.sin(z)*H},!ne(T)&&T){this.x=T.x,this.y=T.y;const z=T;this.z=z.z?z.z:te.z}else if(T!==void 0&&O!==void 0)this.x=T,this.y=O,this.z=D??te.z;else throw new Error(`${$t} Vector3d not initialized correctly`)}static get origin(){return Ht.create(te.x,te.y,te.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(T){this._updateFromAngle(T,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(T){this._updateFromAngle(this.angle,T)}static clone(T){return Ht.create(T.x,T.y,T.z)}static create(T,O,D){return new Ht(T,O,D)}add(T){return Ht.create(this.x+T.x,this.y+T.y,this.z+T.z)}addTo(T){this.x+=T.x,this.y+=T.y,this.z+=T.z}copy(){return Ht.clone(this)}distanceTo(T){return this.sub(T).length}distanceToSq(T){return this.sub(T).getLengthSq()}div(T){return Ht.create(this.x/T,this.y/T,this.z/T)}divTo(T){this.x/=T,this.y/=T,this.z/=T}getLengthSq(){return this.x**Rs+this.y**Rs}mult(T){return Ht.create(this.x*T,this.y*T,this.z*T)}multTo(T){this.x*=T,this.y*=T,this.z*=T}normalize(){const T=this.length;T!=0&&this.multTo(Xr/T)}rotate(T){return Ht.create(this.x*Math.cos(T)-this.y*Math.sin(T),this.x*Math.sin(T)+this.y*Math.cos(T),te.z)}setTo(T){this.x=T.x,this.y=T.y;const O=T;this.z=O.z?O.z:te.z}sub(T){return Ht.create(this.x-T.x,this.y-T.y,this.z-T.z)}subFrom(T){this.x-=T.x,this.y-=T.y,this.z-=T.z}}class Qt extends Ht{constructor(T,O){super(T,O,te.z)}static get origin(){return Qt.create(te.x,te.y)}static clone(T){return Qt.create(T.x,T.y)}static create(T,O){return new Qt(T,O)}}let Vr=Math.random;const In={nextFrame:F=>requestAnimationFrame(F),cancel:F=>cancelAnimationFrame(F)},Yr=2,Wr=Math.PI*Yr;function St(){return ke(Vr(),0,1-Number.EPSILON)}function Hr(F){return In.nextFrame(F)}function Kr(F){In.cancel(F)}function ke(F,T,O){return Math.min(Math.max(F,T),O)}function Yt(F){const T=Ie(F),O=0;let D=Bi(F);return T===D&&(D=O),St()*(T-D)+D}function lt(F){return ne(F)?F:Yt(F)}function Bi(F){return ne(F)?F:F.min}function Ie(F){return ne(F)?F:F.max}function mt(F,T){if(F===T||T===void 0&&ne(F))return F;const O=Bi(F),D=Ie(F);return T!==void 0?{min:Math.min(O,T),max:Math.max(D,T)}:mt(O,D)}function We(F,T){const O=F.x-T.x,D=F.y-T.y,z=2;return{dx:O,dy:D,distance:Math.sqrt(O**z+D**z)}}function Gi(F,T){return We(F,T).distance}function oe(F){return F*Math.PI/180}function Zr(F,T,O){if(ne(F))return oe(F);const D=0,z=.5,H=.25,c=z+H;switch(F){case zt.top:return-Math.PI*z;case zt.topRight:return-Math.PI*H;case zt.right:return D;case zt.bottomRight:return Math.PI*H;case zt.bottom:return Math.PI*z;case zt.bottomLeft:return Math.PI*c;case zt.left:return Math.PI;case zt.topLeft:return-Math.PI*c;case zt.inside:return Math.atan2(O.y-T.y,O.x-T.x);case zt.outside:return Math.atan2(T.y-O.y,T.x-O.x);default:return St()*Wr}}function Jr(F){const T=Qt.origin;return T.length=1,T.angle=F,T}function Qr(F){var T,O;return{x:(((T=F.position)==null?void 0:T.x)??St()*Nt)*F.size.width/Nt,y:(((O=F.position)==null?void 0:O.y)??St()*Nt)*F.size.height/Nt}}function $r(F){var O,D;const T={x:((O=F.position)==null?void 0:O.x)!==void 0?lt(F.position.x):void 0,y:((D=F.position)==null?void 0:D.y)!==void 0?lt(F.position.y):void 0};return Qr({size:F.size,position:T})}function jr(F){var T,O;return{x:((T=F.position)==null?void 0:T.x)??St()*F.size.width,y:((O=F.position)==null?void 0:O.y)??St()*F.size.height}}function Bn(F){return F?F.endsWith("%")?parseFloat(F)/Nt:parseFloat(F):1}var Le;(function(F){F.auto="auto",F.increase="increase",F.decrease="decrease",F.random="random"})(Le||(Le={}));var Ot;(function(F){F.increasing="increasing",F.decreasing="decreasing"})(Ot||(Ot={}));var xe;(function(F){F.none="none",F.max="max",F.min="min"})(xe||(xe={}));var Tt;(function(F){F.bottom="bottom",F.left="left",F.right="right",F.top="top"})(Tt||(Tt={}));var le;(function(F){F.precise="precise",F.percent="percent"})(le||(le={}));var He;(function(F){F.max="max",F.min="min",F.random="random"})(He||(He={}));const kr={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn};function Be(){return kr}function ii(){return typeof window>"u"||!window||typeof window.document>"u"||!window.document}function qr(){return!ii()&&typeof matchMedia<"u"}function gs(F){if(qr())return matchMedia(F)}function _r(F){if(!(ii()||typeof IntersectionObserver>"u"))return new IntersectionObserver(F)}function ta(F){if(!(ii()||typeof MutationObserver>"u"))return new MutationObserver(F)}function xs(F,T){return F===T||Wt(T)&&T.indexOf(F)>-1}async function Fs(F,T){try{await document.fonts.load(`${T??"400"} 36px '${F??"Verdana"}'`)}catch{}}function Gn(F){return Math.floor(St()*F.length)}function Ni(F,T,O=!0){return F[T!==void 0&&O?T%F.length:Gn(F)]}function zi(F,T,O,D,z){return ea(ys(F,D??0),T,O,z)}function ea(F,T,O,D){let z=!0;return(!D||D===Tt.bottom)&&(z=F.topO.x),z&&(!D||D===Tt.right)&&(z=F.leftO.y),z}function ys(F,T){return{bottom:F.y+T,left:F.x-T,right:F.x+T,top:F.y-T}}function It(F,...T){for(const O of T){if(O==null)continue;if(!Ue(O)){F=O;continue}const D=Array.isArray(O);D&&(Ue(F)||!F||!Array.isArray(F))?F=[]:!D&&(Ue(F)||!F||Array.isArray(F))&&(F={});for(const z in O){if(z==="__proto__")continue;const H=O,c=H[z],y=F;y[z]=Ue(c)&&Array.isArray(c)?c.map(t=>It(y[z],t)):It(y[z],c)}}return F}function ue(F,T){return Wt(F)?F.map((D,z)=>T(D,z)):T(F,0)}function ie(F,T,O){return Wt(F)?Ni(F,T,O):F}function Nn(F,T){const O=F.value,D=F.animation,z={delayTime:lt(D.delay)*Dt,enable:D.enable,value:lt(F.value)*T,max:Ie(O)*T,min:Bi(O)*T,loops:0,maxLoops:lt(D.count),time:0},H=1;if(D.enable){switch(z.decay=H-lt(D.decay),D.mode){case Le.increase:z.status=Ot.increasing;break;case Le.decrease:z.status=Ot.decreasing;break;case Le.random:z.status=St()>=oi?Ot.increasing:Ot.decreasing;break}const c=D.mode===Le.auto;switch(D.startValue){case He.min:z.value=z.min,c&&(z.status=Ot.increasing);break;case He.max:z.value=z.max,c&&(z.status=Ot.decreasing);break;case He.random:default:z.value=Yt(z),c&&(z.status=St()>=oi?Ot.increasing:Ot.decreasing);break}}return z.initialValue=z.value,z}function zn(F,T){if(!(F.mode===le.percent)){const{mode:z,...H}=F;return H}return"x"in F?{x:F.x/Nt*T.width,y:F.y/Nt*T.height}:{width:F.width/Nt*T.width,height:F.height/Nt*T.height}}function bn(F,T){return zn(F,T)}function Ls(F,T){return zn(F,T)}function ia(F,T,O,D,z){switch(T){case xe.max:O>=z&&F.destroy();break;case xe.min:O<=D&&F.destroy();break}}function bi(F,T,O,D,z){if(F.destroyed||!T||!T.enable||(T.maxLoops??0)>0&&(T.loops??0)>(T.maxLoops??0))return;const p=(T.velocity??0)*z.factor,a=T.min,r=T.max,n=T.decay??1;if(T.time||(T.time=0),(T.delayTime??0)>0&&T.time<(T.delayTime??0)&&(T.time+=z.value),!((T.delayTime??0)>0&&T.time<(T.delayTime??0))){switch(T.status){case Ot.increasing:T.value>=r?(O?T.status=Ot.decreasing:T.value-=r,T.loops||(T.loops=0),T.loops++):T.value+=p;break;case Ot.decreasing:T.value<=a?(O?T.status=Ot.increasing:T.value+=r,T.loops||(T.loops=0),T.loops++):T.value-=p}T.velocity&&n!==1&&(T.velocity*=n),ia(F,D,T.value,a,r),F.destroyed||(T.value=ke(T.value,a,r))}}var ce;(function(F){F.darken="darken",F.enlighten="enlighten"})(ce||(ce={}));var Re;(function(F){F[F.r=1]="r",F[F.g=2]="g",F[F.b=3]="b",F[F.a=4]="a"})(Re||(Re={}));const sa="random",Ui=new Map;function Os(F){Ui.set(F.key,F)}function na(F){for(const[,t]of Ui)if(F.startsWith(t.stringPrefix))return t.parseString(F);const T=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,O=F.replace(T,(t,u,p,a,r)=>u+u+p+p+a+a+(r!==void 0?r+r:"")),D=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,z=D.exec(O),H=16;return z?{a:z[Re.a]!==void 0?parseInt(z[Re.a],H)/255:1,b:parseInt(z[Re.b],H),g:parseInt(z[Re.g],H),r:parseInt(z[Re.r],H)}:void 0}function Ke(F,T,O=!0){if(!F)return;const D=he(F)?{value:F}:F;if(he(D.value))return Un(D.value,T,O);if(Wt(D.value))return Ke({value:Ni(D.value,T,O)});for(const[,z]of Ui){const H=z.handleRangeColor(D);if(H)return H}}function Un(F,T,O=!0){if(!F)return;const D=he(F)?{value:F}:F;if(he(D.value))return D.value===sa?ha():aa(D.value);if(Wt(D.value))return Un({value:Ni(D.value,T,O)});for(const[,z]of Ui){const H=z.handleColor(D);if(H)return H}}function hi(F,T,O=!0){const D=Ke(F,T,O);return D?ra(D):void 0}function ra(F){const p=F.r/255,a=F.g/255,r=F.b/255,n=Math.max(p,a,r),e=Math.min(p,a,r),s={h:0,l:(n+e)*.5,s:0};return n!==e&&(s.s=s.l<.5?(n-e)/(n+e):(n-e)/(2-n-e),s.h=p===n?(a-r)/(n-e):s.h=a===n?2+(r-p)/(n-e):2*2+(p-a)/(n-e)),s.l*=100,s.s*=100,s.h*=60,s.h<0&&(s.h+=360),s.h>=360&&(s.h-=360),s}function aa(F){return na(F)}function ns(F){const c=(F.h%360+360)%360,y=Math.max(0,Math.min(100,F.s)),t=Math.max(0,Math.min(100,F.l)),u=c/360,p=y/100,a=t/100,r=255,n=3;if(y===0){const x=Math.round(a*r);return{r:x,g:x,b:x}}const e=.5,s=2,h=(x,S,C)=>{if(C<0&&C++,C>1&&C--,C*6<1)return x+(S-x)*6*C;if(C*s<1)return S;if(C*n<1*s){const M=s/n;return x+(S-x)*(M-C)*6}return x},i=1,o=a0&&(F.loops??0)>(F.maxLoops??0)||(F.time||(F.time=0),(F.delayTime??0)>0&&F.time<(F.delayTime??0)&&(F.time+=D.value),(F.delayTime??0)>0&&F.time<(F.delayTime??0)))return;const p=F.offset?Yt(F.offset):0,a=(F.velocity??0)*D.factor+p*3.6,r=F.decay??1,n=Ie(T),e=Bi(T);!O||F.status===Ot.increasing?(F.value+=a,F.value>n&&(F.loops||(F.loops=0),F.loops++,O?F.status=Ot.decreasing:F.value-=n)):(F.value-=a,F.value<0&&(F.loops||(F.loops=0),F.loops++,F.status=Ot.increasing)),F.velocity&&r!==1&&(F.velocity*=r),F.value=ke(F.value,e,n)}function ua(F,T){if(!F)return;const{h:O,s:D,l:z}=F,H={h:{min:0,max:360},s:{min:0,max:100},l:{min:0,max:100}};O&&Ki(O,H.h,!1,T),D&&Ki(D,H.s,!0,T),z&&Ki(z,H.l,!0,T)}const qe={x:0,y:0},pi={a:1,b:0,c:0,d:1};function fa(F,T,O){F.fillStyle=O??"rgba(0,0,0,0)",F.fillRect(qe.x,qe.y,T.width,T.height)}function da(F,T,O,D){O&&(F.globalAlpha=D,F.drawImage(O,qe.x,qe.y,T.width,T.height),F.globalAlpha=1)}function Zi(F,T){F.clearRect(qe.x,qe.y,T.width,T.height)}function va(F){const{container:T,context:O,particle:D,delta:z,colorStyles:H,backgroundMask:c,composite:y,radius:t,opacity:u,shadow:p,transform:a}=F,r=D.getPosition(),n=0,e=D.rotation+(D.pathRotation?D.velocity.angle:n),s={sin:Math.sin(e),cos:Math.cos(e)},h=!!e,i=1,o={a:s.cos*(a.a??pi.a),b:h?s.sin*(a.b??i):a.b??pi.b,c:h?-s.sin*(a.c??i):a.c??pi.c,d:s.cos*(a.d??pi.d)};O.setTransform(o.a,o.b,o.c,o.d,r.x,r.y),c&&(O.globalCompositeOperation=y);const l=D.shadowColor;p.enable&&l&&(O.shadowBlur=p.blur,O.shadowColor=Pi(l),O.shadowOffsetX=p.offset.x,O.shadowOffsetY=p.offset.y),H.fill&&(O.fillStyle=H.fill);const f=0,d=D.strokeWidth??f;O.lineWidth=d,H.stroke&&(O.strokeStyle=H.stroke);const v={container:T,context:O,particle:D,radius:t,opacity:u,delta:z,transformData:o,strokeWidth:d};pa(v),ma(v),ca(v),O.globalCompositeOperation="source-over",O.resetTransform()}function ca(F){const{container:T,context:O,particle:D,radius:z,opacity:H,delta:c,transformData:y}=F;if(!D.effect)return;const t=T.effectDrawers.get(D.effect);t&&t.draw({context:O,particle:D,radius:z,opacity:H,delta:c,pixelRatio:T.retina.pixelRatio,transformData:{...y}})}function pa(F){const{container:T,context:O,particle:D,radius:z,opacity:H,delta:c,strokeWidth:y,transformData:t}=F,u=0;if(!D.shape)return;const p=T.shapeDrawers.get(D.shape);p&&(O.beginPath(),p.draw({context:O,particle:D,radius:z,opacity:H,delta:c,pixelRatio:T.retina.pixelRatio,transformData:{...t}}),D.shapeClose&&O.closePath(),y>u&&O.stroke(),D.shapeFill&&O.fill())}function ma(F){const{container:T,context:O,particle:D,radius:z,opacity:H,delta:c,transformData:y}=F;if(!D.shape)return;const t=T.shapeDrawers.get(D.shape);t!=null&&t.afterDraw&&t.afterDraw({context:O,particle:D,radius:z,opacity:H,delta:c,pixelRatio:T.retina.pixelRatio,transformData:{...y}})}function ga(F,T,O){T.draw&&T.draw(F,O)}function xa(F,T,O,D){T.drawParticle&&T.drawParticle(F,O,D)}function ya(F,T,O){return{h:F.h,s:F.s,l:F.l+(T===ce.darken?-1:1)*O}}function Ta(F,T,O){const D=T[O],z=1;D!==void 0&&(F[O]=(F[O]??z)*D)}function Ds(F,T,O=!1){if(!T)return;const D=F;if(!D)return;const z=D.style;if(z)for(const H in T){const c=T[H];c&&z.setProperty(H,c,O?"important":"")}}class Sa{constructor(T){this.container=T,this._applyPostDrawUpdaters=O=>{var D;for(const z of this._postDrawUpdaters)(D=z.afterDraw)==null||D.call(z,O)},this._applyPreDrawUpdaters=(O,D,z,H,c,y)=>{var t;for(const u of this._preDrawUpdaters){if(u.getColorStyles){const{fill:p,stroke:a}=u.getColorStyles(D,O,z,H);p&&(c.fill=p),a&&(c.stroke=a)}if(u.getTransformValues){const p=u.getTransformValues(D);for(const a in p)Ta(y,p,a)}(t=u.beforeDraw)==null||t.call(u,D)}},this._applyResizePlugins=()=>{var O;for(const D of this._resizePlugins)(O=D.resize)==null||O.call(D)},this._getPluginParticleColors=O=>{let D,z;for(const H of this._colorPlugins)if(!D&&H.particleFillColor&&(D=hi(H.particleFillColor(O))),!z&&H.particleStrokeColor&&(z=hi(H.particleStrokeColor(O))),D&&z)break;return[D,z]},this._initCover=async()=>{const O=this.container.actualOptions,D=O.backgroundMask.cover,z=D.color;if(z){const H=Ke(z);if(H){const c={...H,a:D.opacity};this._coverColorStyle=Pi(c,c.a)}}else await new Promise((H,c)=>{if(!D.image)return;const y=document.createElement("img");y.addEventListener("load",()=>{this._coverImage={image:y,opacity:D.opacity},H()}),y.addEventListener("error",t=>{c(t.error)}),y.src=D.image})},this._initStyle=()=>{const O=this.element,D=this.container.actualOptions;if(O){this._fullScreen?(this._originalStyle=It({},O.style),this._setFullScreenStyle()):this._resetOriginalStyle();for(const z in D.style){if(!z||!D.style)continue;const H=D.style[z];H&&O.style.setProperty(z,H,"important")}}},this._initTrail=async()=>{const O=this.container.actualOptions,D=O.particles.move.trail,z=D.fill;if(!D.enable)return;const H=1,c=H/D.length;if(z.color){const y=Ke(z.color);if(!y)return;this._trailFill={color:{...y},opacity:c}}else await new Promise((y,t)=>{if(!z.image)return;const u=document.createElement("img");u.addEventListener("load",()=>{this._trailFill={image:u,opacity:c},y()}),u.addEventListener("error",p=>{t(p.error)}),u.src=z.image})},this._paintBase=O=>{this.draw(D=>fa(D,this.size,O))},this._paintImage=(O,D)=>{this.draw(z=>da(z,this.size,O,D))},this._repairStyle=()=>{const O=this.element;O&&(this._safeMutationObserver(D=>D.disconnect()),this._initStyle(),this.initBackground(),this._safeMutationObserver(D=>{!O||!(O instanceof Node)||D.observe(O,{attributes:!0})}))},this._resetOriginalStyle=()=>{const O=this.element,D=this._originalStyle;O&&D&&Ds(O,D)},this._safeMutationObserver=O=>{this._mutationObserver&&O(this._mutationObserver)},this._setFullScreenStyle=()=>{const O=this.element;if(!O)return;Ds(O,{position:"fixed",zIndex:this.container.actualOptions.fullScreen.zIndex.toString(10),top:"0",left:"0",width:"100%",height:"100%"},!0)},this.size={height:0,width:0},this._context=null,this._generated=!1,this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}get _fullScreen(){return this.container.actualOptions.fullScreen.enable}clear(){const T=this.container.actualOptions,O=T.particles.move.trail,D=this._trailFill;T.backgroundMask.enable?this.paint():O.enable&&O.length>0&&D?D.color?this._paintBase(Pi(D.color,D.opacity)):D.image&&this._paintImage(D.image,D.opacity):T.clear&&this.draw(H=>{Zi(H,this.size)})}destroy(){if(this.stop(),this._generated){const T=this.element;T==null||T.remove()}else this._resetOriginalStyle();this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(T){const O=this._context;if(O)return T(O)}drawAsync(T){const O=this._context;if(O)return T(O)}drawParticle(T,O){if(T.spawning||T.destroyed)return;const D=T.getRadius();if(D<=0)return;const H=T.getFillColor(),c=T.getStrokeColor()??H;let[y,t]=this._getPluginParticleColors(T);y||(y=H),t||(t=c),!(!y&&!t)&&this.draw(u=>{var m;const p=this.container,a=p.actualOptions,r=T.options.zIndex,n=1,e=n-T.zIndexFactor,s=e**r.opacityRate,h=1,i=T.bubble.opacity??((m=T.opacity)==null?void 0:m.value)??h,o=T.strokeOpacity??i,l=i*s,f=o*s,d={},v={fill:y?rs(y,l):void 0};v.stroke=t?rs(t,f):v.fill,this._applyPreDrawUpdaters(u,T,D,l,v,d),va({container:p,context:u,particle:T,delta:O,colorStyles:v,backgroundMask:a.backgroundMask.enable,composite:a.backgroundMask.composite,radius:D*e**r.sizeRate,opacity:l,shadow:T.options.shadow,transform:d}),this._applyPostDrawUpdaters(T)})}drawParticlePlugin(T,O,D){this.draw(z=>xa(z,T,O,D))}drawPlugin(T,O){this.draw(D=>ga(D,T,O))}async init(){this._safeMutationObserver(T=>T.disconnect()),this._mutationObserver=ta(T=>{for(const O of T)O.type==="attributes"&&O.attributeName==="style"&&this._repairStyle()}),this.resize(),this._initStyle(),await this._initCover();try{await this._initTrail()}catch(T){Be().error(T)}this.initBackground(),this._safeMutationObserver(T=>{!this.element||!(this.element instanceof Node)||T.observe(this.element,{attributes:!0})}),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){const T=this.container.actualOptions,O=T.background,D=this.element;if(!D)return;const z=D.style;if(z){if(O.color){const H=Ke(O.color);z.backgroundColor=H?Pi(H,O.opacity):""}else z.backgroundColor="";z.backgroundImage=O.image||"",z.backgroundPosition=O.position||"",z.backgroundRepeat=O.repeat||"",z.backgroundSize=O.size||""}}initPlugins(){this._resizePlugins=[];for(const[,T]of this.container.plugins)T.resize&&this._resizePlugins.push(T),(T.particleFillColor??T.particleStrokeColor)&&this._colorPlugins.push(T)}initUpdaters(){this._preDrawUpdaters=[],this._postDrawUpdaters=[];for(const T of this.container.particles.updaters)T.afterDraw&&this._postDrawUpdaters.push(T),(T.getColorStyles??T.getTransformValues??T.beforeDraw)&&this._preDrawUpdaters.push(T)}loadCanvas(T){this._generated&&this.element&&this.element.remove(),this._generated=T.dataset&&Fe in T.dataset?T.dataset[Fe]==="true":this._generated,this.element=T,this.element.ariaHidden="true",this._originalStyle=It({},this.element.style),this.size.height=T.offsetHeight,this.size.width=T.offsetWidth,this._context=this.element.getContext("2d"),this._safeMutationObserver(O=>{!this.element||!(this.element instanceof Node)||O.observe(this.element,{attributes:!0})}),this.container.retina.init(),this.initBackground()}paint(){const T=this.container.actualOptions;this.draw(O=>{T.backgroundMask.enable&&T.backgroundMask.cover?(Zi(O,this.size),this._coverImage?this._paintImage(this._coverImage.image,this._coverImage.opacity):this._coverColorStyle?this._paintBase(this._coverColorStyle):this._paintBase()):this._paintBase()})}resize(){if(!this.element)return!1;const T=this.container,O=T.retina.pixelRatio,D=T.canvas.size,z={width:this.element.offsetWidth*O,height:this.element.offsetHeight*O};if(z.height===D.height&&z.width===D.width&&z.height===this.element.height&&z.width===this.element.width)return!1;const H={...D};return this.element.width=D.width=this.element.offsetWidth*O,this.element.height=D.height=this.element.offsetHeight*O,this.container.started&&T.particles.setResizeFactor({width:D.width/H.width,height:D.height/H.height}),!0}stop(){this._safeMutationObserver(T=>T.disconnect()),this._mutationObserver=void 0,this.draw(T=>Zi(T,this.size))}async windowResize(){if(!this.element||!this.resize())return;const T=this.container,O=T.updateActualOptions();T.particles.setDensity(),this._applyResizePlugins(),O&&await T.refresh()}}var Ze;(function(F){F.canvas="canvas",F.parent="parent",F.window="window"})(Ze||(Ze={}));const Is=2;function Zt(F,T,O,D,z){if(D){let H={passive:!0};Dn(z)?H.capture=z:z!==void 0&&(H=z),F.addEventListener(T,O,H)}else{const H=z;F.removeEventListener(T,O,H)}}class Ca{constructor(T){this.container=T,this._doMouseTouchClick=O=>{const D=this.container,z=D.actualOptions;if(this._canPush){const H=D.interactivity.mouse,c=H.position;if(!c)return;H.clickPosition={...c},H.clickTime=new Date().getTime();const y=z.interactivity.events.onClick;ue(y.mode,t=>this.container.handleClickMode(t))}O.type==="touchend"&&setTimeout(()=>this._mouseTouchFinish(),500)},this._handleThemeChange=O=>{const D=O,z=this.container,H=z.options,c=H.defaultThemes,y=D.matches?c.dark:c.light,t=H.themes.find(u=>u.name===y);t!=null&&t.default.auto&&z.loadTheme(y)},this._handleVisibilityChange=()=>{const O=this.container,D=O.actualOptions;this._mouseTouchFinish(),D.pauseOnBlur&&(document!=null&&document.hidden?(O.pageHidden=!0,O.pause()):(O.pageHidden=!1,O.animationStatus?O.play(!0):O.draw(!0)))},this._handleWindowResize=()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout);const O=async()=>{const D=this.container.canvas;await(D==null?void 0:D.windowResize())};this._resizeTimeout=setTimeout(()=>void O(),this.container.actualOptions.interactivity.events.resize.delay*Dt)},this._manageInteractivityListeners=(O,D)=>{const z=this._handlers,H=this.container,c=H.actualOptions,y=H.interactivity.element;if(!y)return;const t=y,u=H.canvas.element;u&&(u.style.pointerEvents=t===u?"initial":"none"),(c.interactivity.events.onHover.enable||c.interactivity.events.onClick.enable)&&(Zt(y,Ms,z.mouseMove,D),Zt(y,Gr,z.touchStart,D),Zt(y,Nr,z.touchMove,D),c.interactivity.events.onClick.enable?(Zt(y,As,z.touchEndClick,D),Zt(y,Ir,z.mouseUp,D),Zt(y,Dr,z.mouseDown,D)):Zt(y,As,z.touchEnd,D),Zt(y,O,z.mouseLeave,D),Zt(y,zr,z.touchCancel,D))},this._manageListeners=O=>{const D=this._handlers,z=this.container,H=z.actualOptions,c=H.interactivity.detectsOn,y=z.canvas.element;let t=Ps;c===Ze.window?(z.interactivity.element=window,t=Br):c===Ze.parent&&y?z.interactivity.element=y.parentElement??y.parentNode:z.interactivity.element=y,this._manageMediaMatch(O),this._manageResize(O),this._manageInteractivityListeners(t,O),document&&Zt(document,Ur,D.visibilityChange,O,!1)},this._manageMediaMatch=O=>{const D=this._handlers,z=gs("(prefers-color-scheme: dark)");if(z){if(z.addEventListener!==void 0){Zt(z,"change",D.themeChange,O);return}z.addListener!==void 0&&(O?z.addListener(D.oldThemeChange):z.removeListener(D.oldThemeChange))}},this._manageResize=O=>{const D=this._handlers,z=this.container;if(!z.actualOptions.interactivity.events.resize)return;if(typeof ResizeObserver>"u"){Zt(window,br,D.resize,O);return}const c=z.canvas.element;this._resizeObserver&&!O?(c&&this._resizeObserver.unobserve(c),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&O&&c&&(this._resizeObserver=new ResizeObserver(y=>{y.find(u=>u.target===c)&&this._handleWindowResize()}),this._resizeObserver.observe(c))},this._mouseDown=()=>{const{interactivity:O}=this.container;if(!O)return;const{mouse:D}=O;D.clicking=!0,D.downPosition=D.position},this._mouseTouchClick=O=>{const D=this.container,z=D.actualOptions,{mouse:H}=D.interactivity;H.inside=!0;let c=!1;const y=H.position;if(!(!y||!z.interactivity.events.onClick.enable)){for(const[,t]of D.plugins)if(t.clickPositionValid&&(c=t.clickPositionValid(y),c))break;c||this._doMouseTouchClick(O),H.clicking=!1}},this._mouseTouchFinish=()=>{const O=this.container.interactivity;if(!O)return;const D=O.mouse;delete D.position,delete D.clickPosition,delete D.downPosition,O.status=Ps,D.inside=!1,D.clicking=!1},this._mouseTouchMove=O=>{const D=this.container,z=D.actualOptions,H=D.interactivity,c=D.canvas.element;if(!(H!=null&&H.element))return;H.mouse.inside=!0;let y;if(O.type.startsWith("pointer")){this._canPush=!0;const u=O;if(H.element===window){if(c){const p=c.getBoundingClientRect();y={x:u.clientX-p.left,y:u.clientY-p.top}}}else if(z.interactivity.detectsOn===Ze.parent){const p=u.target,a=u.currentTarget;if(p&&a&&c){const r=p.getBoundingClientRect(),n=a.getBoundingClientRect(),e=c.getBoundingClientRect();y={x:u.offsetX+Is*r.left-(n.left+e.left),y:u.offsetY+Is*r.top-(n.top+e.top)}}else y={x:u.offsetX??u.clientX,y:u.offsetY??u.clientY}}else u.target===c&&(y={x:u.offsetX??u.clientX,y:u.offsetY??u.clientY})}else if(this._canPush=O.type!=="touchmove",c){const u=O,p=1,a=u.touches[u.touches.length-p],r=c.getBoundingClientRect(),n=0;y={x:a.clientX-(r.left??n),y:a.clientY-(r.top??n)}}const t=D.retina.pixelRatio;y&&(y.x*=t,y.y*=t),H.mouse.position=y,H.status=Ms},this._touchEnd=O=>{const D=O,z=Array.from(D.changedTouches);for(const H of z)this._touches.delete(H.identifier);this._mouseTouchFinish()},this._touchEndClick=O=>{const D=O,z=Array.from(D.changedTouches);for(const H of z)this._touches.delete(H.identifier);this._mouseTouchClick(O)},this._touchStart=O=>{const D=O,z=Array.from(D.changedTouches);for(const H of z)this._touches.set(H.identifier,performance.now());this._mouseTouchMove(O)},this._canPush=!0,this._touches=new Map,this._handlers={mouseDown:()=>this._mouseDown(),mouseLeave:()=>this._mouseTouchFinish(),mouseMove:O=>this._mouseTouchMove(O),mouseUp:O=>this._mouseTouchClick(O),touchStart:O=>this._touchStart(O),touchMove:O=>this._mouseTouchMove(O),touchEnd:O=>this._touchEnd(O),touchCancel:O=>this._touchEnd(O),touchEndClick:O=>this._touchEndClick(O),visibilityChange:()=>this._handleVisibilityChange(),themeChange:O=>this._handleThemeChange(O),oldThemeChange:O=>this._handleThemeChange(O),resize:()=>{this._handleWindowResize()}}}addListeners(){this._manageListeners(!0)}removeListeners(){this._manageListeners(!1)}}var Xt;(function(F){F.configAdded="configAdded",F.containerInit="containerInit",F.particlesSetup="particlesSetup",F.containerStarted="containerStarted",F.containerStopped="containerStopped",F.containerDestroyed="containerDestroyed",F.containerPaused="containerPaused",F.containerPlay="containerPlay",F.containerBuilt="containerBuilt",F.particleAdded="particleAdded",F.particleDestroyed="particleDestroyed",F.particleRemoved="particleRemoved"})(Xt||(Xt={}));class re{constructor(){this.value=""}static create(T,O){const D=new re;return D.load(T),O!==void 0&&(he(O)||Wt(O)?D.load({value:O}):D.load(O)),D}load(T){(T==null?void 0:T.value)!==void 0&&(this.value=T.value)}}class Ea{constructor(){this.color=new re,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(T){T&&(T.color!==void 0&&(this.color=re.create(this.color,T.color)),T.image!==void 0&&(this.image=T.image),T.position!==void 0&&(this.position=T.position),T.repeat!==void 0&&(this.repeat=T.repeat),T.size!==void 0&&(this.size=T.size),T.opacity!==void 0&&(this.opacity=T.opacity))}}class Pa{constructor(){this.opacity=1}load(T){T&&(T.color!==void 0&&(this.color=re.create(this.color,T.color)),T.image!==void 0&&(this.image=T.image),T.opacity!==void 0&&(this.opacity=T.opacity))}}class Ma{constructor(){this.composite="destination-out",this.cover=new Pa,this.enable=!1}load(T){if(T){if(T.composite!==void 0&&(this.composite=T.composite),T.cover!==void 0){const O=T.cover,D=he(T.cover)?{color:T.cover}:T.cover;this.cover.load(O.color!==void 0||O.image!==void 0?O:{color:D})}T.enable!==void 0&&(this.enable=T.enable)}}}class Aa{constructor(){this.enable=!0,this.zIndex=0}load(T){T&&(T.enable!==void 0&&(this.enable=T.enable),T.zIndex!==void 0&&(this.zIndex=T.zIndex))}}class Ra{constructor(){this.enable=!1,this.mode=[]}load(T){T&&(T.enable!==void 0&&(this.enable=T.enable),T.mode!==void 0&&(this.mode=T.mode))}}var as;(function(F){F.circle="circle",F.rectangle="rectangle"})(as||(as={}));class Bs{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type=as.circle}load(T){T&&(T.selectors!==void 0&&(this.selectors=T.selectors),T.enable!==void 0&&(this.enable=T.enable),T.mode!==void 0&&(this.mode=T.mode),T.type!==void 0&&(this.type=T.type))}}class Fa{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(T){T&&(T.enable!==void 0&&(this.enable=T.enable),T.force!==void 0&&(this.force=T.force),T.smooth!==void 0&&(this.smooth=T.smooth))}}class La{constructor(){this.enable=!1,this.mode=[],this.parallax=new Fa}load(T){T&&(T.enable!==void 0&&(this.enable=T.enable),T.mode!==void 0&&(this.mode=T.mode),this.parallax.load(T.parallax))}}class Oa{constructor(){this.delay=.5,this.enable=!0}load(T){T!==void 0&&(T.delay!==void 0&&(this.delay=T.delay),T.enable!==void 0&&(this.enable=T.enable))}}class wa{constructor(){this.onClick=new Ra,this.onDiv=new Bs,this.onHover=new La,this.resize=new Oa}load(T){if(!T)return;this.onClick.load(T.onClick);const O=T.onDiv;O!==void 0&&(this.onDiv=ue(O,D=>{const z=new Bs;return z.load(D),z})),this.onHover.load(T.onHover),this.resize.load(T.resize)}}class Da{constructor(T,O){this._engine=T,this._container=O}load(T){if(!T||!this._container)return;const O=this._engine.interactors.get(this._container);if(O)for(const D of O)D.loadModeOptions&&D.loadModeOptions(this,T)}}class Xn{constructor(T,O){this.detectsOn=Ze.window,this.events=new wa,this.modes=new Da(T,O)}load(T){if(!T)return;const O=T.detectsOn;O!==void 0&&(this.detectsOn=O),this.events.load(T.events),this.modes.load(T.modes)}}const Gs=50;class Ia{load(T){T&&(T.position&&(this.position={x:T.position.x??Gs,y:T.position.y??Gs,mode:T.position.mode??le.percent}),T.options&&(this.options=It({},T.options)))}}var Oe;(function(F){F.screen="screen",F.canvas="canvas"})(Oe||(Oe={}));class Ba{constructor(){this.maxWidth=1/0,this.options={},this.mode=Oe.canvas}load(T){T&&(T.maxWidth!==void 0&&(this.maxWidth=T.maxWidth),T.mode!==void 0&&(T.mode===Oe.screen?this.mode=Oe.screen:this.mode=Oe.canvas),T.options!==void 0&&(this.options=It({},T.options)))}}var pe;(function(F){F.any="any",F.dark="dark",F.light="light"})(pe||(pe={}));class Ga{constructor(){this.auto=!1,this.mode=pe.any,this.value=!1}load(T){T&&(T.auto!==void 0&&(this.auto=T.auto),T.mode!==void 0&&(this.mode=T.mode),T.value!==void 0&&(this.value=T.value))}}class Na{constructor(){this.name="",this.default=new Ga}load(T){T&&(T.name!==void 0&&(this.name=T.name),this.default.load(T.default),T.options!==void 0&&(this.options=It({},T.options)))}}class Ts{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(T){T&&(T.count!==void 0&&(this.count=mt(T.count)),T.enable!==void 0&&(this.enable=T.enable),T.speed!==void 0&&(this.speed=mt(T.speed)),T.decay!==void 0&&(this.decay=mt(T.decay)),T.delay!==void 0&&(this.delay=mt(T.delay)),T.sync!==void 0&&(this.sync=T.sync))}}class Ss extends Ts{constructor(){super(),this.mode=Le.auto,this.startValue=He.random}load(T){super.load(T),T&&(T.mode!==void 0&&(this.mode=T.mode),T.startValue!==void 0&&(this.startValue=T.startValue))}}class Ji extends Ts{constructor(){super(),this.offset=0,this.sync=!0}load(T){super.load(T),T&&T.offset!==void 0&&(this.offset=mt(T.offset))}}class za{constructor(){this.h=new Ji,this.s=new Ji,this.l=new Ji}load(T){T&&(this.h.load(T.h),this.s.load(T.s),this.l.load(T.l))}}class _e extends re{constructor(){super(),this.animation=new za}static create(T,O){const D=new _e;return D.load(T),O!==void 0&&(he(O)||Wt(O)?D.load({value:O}):D.load(O)),D}load(T){if(super.load(T),!T)return;const O=T.animation;O!==void 0&&(O.enable!==void 0?this.animation.h.load(O):this.animation.load(T.animation))}}var os;(function(F){F.absorb="absorb",F.bounce="bounce",F.destroy="destroy"})(os||(os={}));class ba{constructor(){this.speed=2}load(T){T&&T.speed!==void 0&&(this.speed=T.speed)}}class Ua{constructor(){this.enable=!0,this.retries=0}load(T){T&&(T.enable!==void 0&&(this.enable=T.enable),T.retries!==void 0&&(this.retries=T.retries))}}class ye{constructor(){this.value=0}load(T){T&&T.value!==void 0&&(this.value=mt(T.value))}}class Xa extends ye{constructor(){super(),this.animation=new Ts}load(T){if(super.load(T),!T)return;const O=T.animation;O!==void 0&&this.animation.load(O)}}class Vn extends Xa{constructor(){super(),this.animation=new Ss}load(T){super.load(T)}}class Ns extends ye{constructor(){super(),this.value=1}}class Yn{constructor(){this.horizontal=new Ns,this.vertical=new Ns}load(T){T&&(this.horizontal.load(T.horizontal),this.vertical.load(T.vertical))}}class Va{constructor(){this.absorb=new ba,this.bounce=new Yn,this.enable=!1,this.maxSpeed=50,this.mode=os.bounce,this.overlap=new Ua}load(T){T&&(this.absorb.load(T.absorb),this.bounce.load(T.bounce),T.enable!==void 0&&(this.enable=T.enable),T.maxSpeed!==void 0&&(this.maxSpeed=mt(T.maxSpeed)),T.mode!==void 0&&(this.mode=T.mode),this.overlap.load(T.overlap))}}class Ya{constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(T){if(!T)return;const O=T.options;if(O!==void 0)for(const D in O){const z=O[D];z&&(this.options[D]=It(this.options[D]??{},z))}T.close!==void 0&&(this.close=T.close),T.fill!==void 0&&(this.fill=T.fill),T.type!==void 0&&(this.type=T.type)}}class Wa{constructor(){this.offset=0,this.value=90}load(T){T&&(T.offset!==void 0&&(this.offset=mt(T.offset)),T.value!==void 0&&(this.value=mt(T.value)))}}class Ha{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(T){if(T&&(T.distance!==void 0&&(this.distance=mt(T.distance)),T.enable!==void 0&&(this.enable=T.enable),T.rotate)){const O=T.rotate.x;O!==void 0&&(this.rotate.x=O);const D=T.rotate.y;D!==void 0&&(this.rotate.y=D)}}}class Ka{constructor(){this.x=50,this.y=50,this.mode=le.percent,this.radius=0}load(T){T&&(T.x!==void 0&&(this.x=T.x),T.y!==void 0&&(this.y=T.y),T.mode!==void 0&&(this.mode=T.mode),T.radius!==void 0&&(this.radius=T.radius))}}class Za{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(T){T&&(T.acceleration!==void 0&&(this.acceleration=mt(T.acceleration)),T.enable!==void 0&&(this.enable=T.enable),T.inverse!==void 0&&(this.inverse=T.inverse),T.maxSpeed!==void 0&&(this.maxSpeed=mt(T.maxSpeed)))}}class Ja{constructor(){this.clamp=!0,this.delay=new ye,this.enable=!1,this.options={}}load(T){T&&(T.clamp!==void 0&&(this.clamp=T.clamp),this.delay.load(T.delay),T.enable!==void 0&&(this.enable=T.enable),this.generator=T.generator,T.options&&(this.options=It(this.options,T.options)))}}class Qa{load(T){T&&(T.color!==void 0&&(this.color=re.create(this.color,T.color)),T.image!==void 0&&(this.image=T.image))}}class $a{constructor(){this.enable=!1,this.length=10,this.fill=new Qa}load(T){T&&(T.enable!==void 0&&(this.enable=T.enable),T.fill!==void 0&&this.fill.load(T.fill),T.length!==void 0&&(this.length=T.length))}}var Bt;(function(F){F.bounce="bounce",F.none="none",F.out="out",F.destroy="destroy",F.split="split"})(Bt||(Bt={}));class ja{constructor(){this.default=Bt.out}load(T){T&&(T.default!==void 0&&(this.default=T.default),this.bottom=T.bottom??T.default,this.left=T.left??T.default,this.right=T.right??T.default,this.top=T.top??T.default)}}class ka{constructor(){this.acceleration=0,this.enable=!1}load(T){T&&(T.acceleration!==void 0&&(this.acceleration=mt(T.acceleration)),T.enable!==void 0&&(this.enable=T.enable),T.position&&(this.position=It({},T.position)))}}class qa{constructor(){this.angle=new Wa,this.attract=new Ha,this.center=new Ka,this.decay=0,this.distance={},this.direction=zt.none,this.drift=0,this.enable=!1,this.gravity=new Za,this.path=new Ja,this.outModes=new ja,this.random=!1,this.size=!1,this.speed=2,this.spin=new ka,this.straight=!1,this.trail=new $a,this.vibrate=!1,this.warp=!1}load(T){if(!T)return;this.angle.load(ne(T.angle)?{value:T.angle}:T.angle),this.attract.load(T.attract),this.center.load(T.center),T.decay!==void 0&&(this.decay=mt(T.decay)),T.direction!==void 0&&(this.direction=T.direction),T.distance!==void 0&&(this.distance=ne(T.distance)?{horizontal:T.distance,vertical:T.distance}:{...T.distance}),T.drift!==void 0&&(this.drift=mt(T.drift)),T.enable!==void 0&&(this.enable=T.enable),this.gravity.load(T.gravity);const O=T.outModes;O!==void 0&&(Ue(O)?this.outModes.load(O):this.outModes.load({default:O})),this.path.load(T.path),T.random!==void 0&&(this.random=T.random),T.size!==void 0&&(this.size=T.size),T.speed!==void 0&&(this.speed=mt(T.speed)),this.spin.load(T.spin),T.straight!==void 0&&(this.straight=T.straight),this.trail.load(T.trail),T.vibrate!==void 0&&(this.vibrate=T.vibrate),T.warp!==void 0&&(this.warp=T.warp)}}class _a extends Ss{constructor(){super(),this.destroy=xe.none,this.speed=2}load(T){super.load(T),T&&T.destroy!==void 0&&(this.destroy=T.destroy)}}class to extends Vn{constructor(){super(),this.animation=new _a,this.value=1}load(T){if(!T)return;super.load(T);const O=T.animation;O!==void 0&&this.animation.load(O)}}class eo{constructor(){this.enable=!1,this.width=1920,this.height=1080}load(T){if(!T)return;T.enable!==void 0&&(this.enable=T.enable);const O=T.width;O!==void 0&&(this.width=O);const D=T.height;D!==void 0&&(this.height=D)}}var li;(function(F){F.delete="delete",F.wait="wait"})(li||(li={}));class io{constructor(){this.mode=li.delete,this.value=0}load(T){T&&(T.mode!==void 0&&(this.mode=T.mode),T.value!==void 0&&(this.value=T.value))}}class so{constructor(){this.density=new eo,this.limit=new io,this.value=0}load(T){T&&(this.density.load(T.density),this.limit.load(T.limit),T.value!==void 0&&(this.value=T.value))}}class no{constructor(){this.blur=0,this.color=new re,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(T){T&&(T.blur!==void 0&&(this.blur=T.blur),this.color=re.create(this.color,T.color),T.enable!==void 0&&(this.enable=T.enable),T.offset!==void 0&&(T.offset.x!==void 0&&(this.offset.x=T.offset.x),T.offset.y!==void 0&&(this.offset.y=T.offset.y)))}}class ro{constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(T){if(!T)return;const O=T.options;if(O!==void 0)for(const D in O){const z=O[D];z&&(this.options[D]=It(this.options[D]??{},z))}T.close!==void 0&&(this.close=T.close),T.fill!==void 0&&(this.fill=T.fill),T.type!==void 0&&(this.type=T.type)}}class ao extends Ss{constructor(){super(),this.destroy=xe.none,this.speed=5}load(T){super.load(T),T&&T.destroy!==void 0&&(this.destroy=T.destroy)}}class oo extends Vn{constructor(){super(),this.animation=new ao,this.value=3}load(T){if(super.load(T),!T)return;const O=T.animation;O!==void 0&&this.animation.load(O)}}class zs{constructor(){this.width=0}load(T){T&&(T.color!==void 0&&(this.color=_e.create(this.color,T.color)),T.width!==void 0&&(this.width=mt(T.width)),T.opacity!==void 0&&(this.opacity=mt(T.opacity)))}}class ho extends ye{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(T){super.load(T),T&&(T.opacityRate!==void 0&&(this.opacityRate=T.opacityRate),T.sizeRate!==void 0&&(this.sizeRate=T.sizeRate),T.velocityRate!==void 0&&(this.velocityRate=T.velocityRate))}}class lo{constructor(T,O){this._engine=T,this._container=O,this.bounce=new Yn,this.collisions=new Va,this.color=new _e,this.color.value="#fff",this.effect=new Ya,this.groups={},this.move=new qa,this.number=new so,this.opacity=new to,this.reduceDuplicates=!1,this.shadow=new no,this.shape=new ro,this.size=new oo,this.stroke=new zs,this.zIndex=new ho}load(T){if(!T)return;if(T.groups!==void 0)for(const D of Object.keys(T.groups)){if(!Object.hasOwn(T.groups,D))continue;const z=T.groups[D];z!==void 0&&(this.groups[D]=It(this.groups[D]??{},z))}T.reduceDuplicates!==void 0&&(this.reduceDuplicates=T.reduceDuplicates),this.bounce.load(T.bounce),this.color.load(_e.create(this.color,T.color)),this.effect.load(T.effect),this.move.load(T.move),this.number.load(T.number),this.opacity.load(T.opacity),this.shape.load(T.shape),this.size.load(T.size),this.shadow.load(T.shadow),this.zIndex.load(T.zIndex),this.collisions.load(T.collisions),T.interactivity!==void 0&&(this.interactivity=It({},T.interactivity));const O=T.stroke;if(O&&(this.stroke=ue(O,D=>{const z=new zs;return z.load(D),z})),this._container){const D=this._engine.updaters.get(this._container);if(D)for(const H of D)H.loadOptions&&H.loadOptions(this,T);const z=this._engine.interactors.get(this._container);if(z)for(const H of z)H.loadParticlesOptions&&H.loadParticlesOptions(this,T)}}}function Wn(F,...T){for(const O of T)F.load(O)}function Hn(F,T,...O){const D=new lo(F,T);return Wn(D,...O),D}class uo{constructor(T,O){this._findDefaultTheme=D=>this.themes.find(z=>z.default.value&&z.default.mode===D)??this.themes.find(z=>z.default.value&&z.default.mode===pe.any),this._importPreset=D=>{this.load(this._engine.getPreset(D))},this._engine=T,this._container=O,this.autoPlay=!0,this.background=new Ea,this.backgroundMask=new Ma,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new Aa,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new Xn(T,O),this.manualParticles=[],this.particles=Hn(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}load(T){var c,y;if(!T)return;T.preset!==void 0&&ue(T.preset,t=>this._importPreset(t)),T.autoPlay!==void 0&&(this.autoPlay=T.autoPlay),T.clear!==void 0&&(this.clear=T.clear),T.key!==void 0&&(this.key=T.key),T.name!==void 0&&(this.name=T.name),T.delay!==void 0&&(this.delay=mt(T.delay));const O=T.detectRetina;O!==void 0&&(this.detectRetina=O),T.duration!==void 0&&(this.duration=mt(T.duration));const D=T.fpsLimit;D!==void 0&&(this.fpsLimit=D),T.pauseOnBlur!==void 0&&(this.pauseOnBlur=T.pauseOnBlur),T.pauseOnOutsideViewport!==void 0&&(this.pauseOnOutsideViewport=T.pauseOnOutsideViewport),T.zLayers!==void 0&&(this.zLayers=T.zLayers),this.background.load(T.background);const z=T.fullScreen;Dn(z)?this.fullScreen.enable=z:this.fullScreen.load(z),this.backgroundMask.load(T.backgroundMask),this.interactivity.load(T.interactivity),T.manualParticles&&(this.manualParticles=T.manualParticles.map(t=>{const u=new Ia;return u.load(t),u})),this.particles.load(T.particles),this.style=It(this.style,T.style),this._engine.loadOptions(this,T),T.smooth!==void 0&&(this.smooth=T.smooth);const H=this._engine.interactors.get(this._container);if(H)for(const t of H)t.loadOptions&&t.loadOptions(this,T);if(T.responsive!==void 0)for(const t of T.responsive){const u=new Ba;u.load(t),this.responsive.push(u)}if(this.responsive.sort((t,u)=>t.maxWidth-u.maxWidth),T.themes!==void 0)for(const t of T.themes){const u=this.themes.find(p=>p.name===t.name);if(u)u.load(t);else{const p=new Na;p.load(t),this.themes.push(p)}}this.defaultThemes.dark=(c=this._findDefaultTheme(pe.dark))==null?void 0:c.name,this.defaultThemes.light=(y=this._findDefaultTheme(pe.light))==null?void 0:y.name}setResponsive(T,O,D){this.load(D);const z=this.responsive.find(H=>H.mode===Oe.screen&&screen?H.maxWidth>screen.availWidth:H.maxWidth*O>T);return this.load(z==null?void 0:z.options),z==null?void 0:z.maxWidth}setTheme(T){if(T){const O=this.themes.find(D=>D.name===T);O&&this.load(O.options)}else{const O=gs("(prefers-color-scheme: dark)"),D=O==null?void 0:O.matches,z=this._findDefaultTheme(D?pe.dark:pe.light);z&&this.load(z.options)}}}var Mi;(function(F){F.external="external",F.particles="particles"})(Mi||(Mi={}));class fo{constructor(T,O){this.container=O,this._engine=T,this._interactors=[],this._externalInteractors=[],this._particleInteractors=[]}externalInteract(T){for(const O of this._externalInteractors)O.isEnabled()&&O.interact(T)}handleClickMode(T){var O;for(const D of this._externalInteractors)(O=D.handleClickMode)==null||O.call(D,T)}async init(){this._interactors=await this._engine.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[];for(const T of this._interactors){switch(T.type){case Mi.external:this._externalInteractors.push(T);break;case Mi.particles:this._particleInteractors.push(T);break}T.init()}}particlesInteract(T,O){for(const D of this._externalInteractors)D.clear(T,O);for(const D of this._particleInteractors)D.isEnabled(T)&&D.interact(T,O)}reset(T){for(const O of this._externalInteractors)O.isEnabled()&&O.reset(T);for(const O of this._particleInteractors)O.isEnabled(T)&&O.reset(T)}}var _t;(function(F){F.normal="normal",F.inside="inside",F.outside="outside"})(_t||(_t={}));const bs=0,hs=2,mi=.5,vo=2,Us="random";function co(F,T,O,D){const z=T.options[F];if(z)return It({close:T.close,fill:T.fill},ie(z,O,D))}function po(F,T,O,D){const z=T.options[F];if(z)return It({close:T.close,fill:T.fill},ie(z,O,D))}function Xs(F){if(!xs(F.outMode,F.checkModes))return;const T=F.radius*hs;F.coord>F.maxCoord-T?F.setCb(-F.radius):F.coord{for(const[,e]of D.plugins){const s=e.particlePosition!==void 0?e.particlePosition(z,this):void 0;if(s)return Ht.create(s.x,s.y,H)}const y=D.canvas.size,t=jr({size:y,position:z}),u=Ht.create(t.x,t.y,H),p=this.getRadius(),a=this.options.move.outModes,r=e=>{Xs({outMode:e,checkModes:[Bt.bounce],coord:u.x,maxCoord:D.canvas.size.width,setCb:s=>u.x+=s,radius:p})},n=e=>{Xs({outMode:e,checkModes:[Bt.bounce],coord:u.y,maxCoord:D.canvas.size.height,setCb:s=>u.y+=s,radius:p})};return r(a.left??a.default),r(a.right??a.default),n(a.top??a.default),n(a.bottom??a.default),this._checkOverlap(u,c)?this._calcPosition(D,void 0,H,c+1):u},this._calculateVelocity=()=>{const D=Jr(this.direction),z=D.copy(),H=this.options.move;if(H.direction===zt.inside||H.direction===zt.outside)return z;const c=oe(lt(H.angle.value)),y=oe(lt(H.angle.offset)),t={left:y-c*mi,right:y+c*mi};return H.straight||(z.angle+=Yt(mt(t.left,t.right))),H.random&&typeof H.speed=="number"&&(z.length*=St()),z},this._checkOverlap=(D,z=bs)=>{const H=this.options.collisions,c=this.getRadius();if(!H.enable)return!1;const y=H.overlap;if(y.enable)return!1;const t=y.retries;if(t>=0&&z>t)throw new Error(`${$t} particle is overlapping and can't be placed`);return!!this.container.particles.find(p=>Gi(D,p.position){if(!D||!this.roll||!this.backColor&&!this.roll.alter)return D;const z=1,H=0,c=this.roll.horizontal&&this.roll.vertical?hs*z:z,y=this.roll.horizontal?Math.PI*mi:H;return Math.floor(((this.roll.angle??H)+y)/(Math.PI/c))%hs?this.backColor?this.backColor:this.roll.alter?ya(D,this.roll.alter.type,this.roll.alter.value):D:D},this._initPosition=D=>{const z=this.container,H=lt(this.options.zIndex.value),c=0;this.position=this._calcPosition(z,D,ke(H,c,z.zLayers)),this.initialPosition=this.position.copy();const y=z.canvas.size,t=0;switch(this.moveCenter={...bn(this.options.move.center,y),radius:this.options.move.center.radius??t,mode:this.options.move.center.mode??le.percent},this.direction=Zr(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case zt.inside:this.outType=_t.inside;break;case zt.outside:this.outType=_t.outside;break}this.offset=Qt.origin},this._engine=T}destroy(T){var H,c,y;if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;const O=this.container,D=this.pathGenerator,z=O.shapeDrawers.get(this.shape);(H=z==null?void 0:z.particleDestroy)==null||H.call(z,this);for(const[,t]of O.plugins)(c=t.particleDestroyed)==null||c.call(t,this,T);for(const t of O.particles.updaters)(y=t.particleDestroyed)==null||y.call(t,this,T);D==null||D.reset(this),this._engine.dispatchEvent(Xt.particleDestroyed,{container:this.container,data:{particle:this}})}draw(T){const O=this.container,D=O.canvas;for(const[,z]of O.plugins)D.drawParticlePlugin(z,this,T);D.drawParticle(this,T)}getFillColor(){return this._getRollColor(this.bubble.color??ws(this.color))}getMass(){return this.getRadius()**vo*Math.PI*mi}getPosition(){return{x:this.position.x+this.offset.x,y:this.position.y+this.offset.y,z:this.position.z}}getRadius(){return this.bubble.radius??this.size.value}getStrokeColor(){return this._getRollColor(this.bubble.color??ws(this.strokeColor))}init(T,O,D,z){var g,x,S,C,E,P;const H=this.container,c=this._engine;this.id=T,this.group=z,this.effectClose=!0,this.effectFill=!0,this.shapeClose=!0,this.shapeFill=!0,this.pathRotation=!1,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.isRotating=!1,this.rotation=0,this.misplaced=!1,this.retina={maxDistance:{}},this.outType=_t.normal,this.ignoresResizeRatio=!0;const y=H.retina.pixelRatio,t=H.actualOptions,u=Hn(this._engine,H,t.particles),{reduceDuplicates:p}=u,a=u.effect.type,r=u.shape.type;this.effect=ie(a,this.id,p),this.shape=ie(r,this.id,p);const n=u.effect,e=u.shape;if(D){if((g=D.effect)!=null&&g.type){const R=D.effect.type,M=ie(R,this.id,p);M&&(this.effect=M,n.load(D.effect))}if((x=D.shape)!=null&&x.type){const R=D.shape.type,M=ie(R,this.id,p);M&&(this.shape=M,e.load(D.shape))}}if(this.effect===Us){const R=[...this.container.effectDrawers.keys()];this.effect=R[Math.floor(Math.random()*R.length)]}if(this.shape===Us){const R=[...this.container.shapeDrawers.keys()];this.shape=R[Math.floor(Math.random()*R.length)]}this.effectData=co(this.effect,n,this.id,p),this.shapeData=po(this.shape,e,this.id,p),u.load(D);const s=this.effectData;s&&u.load(s.particles);const h=this.shapeData;h&&u.load(h.particles);const i=new Xn(c,H);i.load(H.actualOptions.interactivity),i.load(u.interactivity),this.interactivity=i,this.effectFill=(s==null?void 0:s.fill)??u.effect.fill,this.effectClose=(s==null?void 0:s.close)??u.effect.close,this.shapeFill=(h==null?void 0:h.fill)??u.shape.fill,this.shapeClose=(h==null?void 0:h.close)??u.shape.close,this.options=u;const o=this.options.move.path;this.pathDelay=lt(o.delay.value)*Dt,o.generator&&(this.pathGenerator=this._engine.getPathGenerator(o.generator),this.pathGenerator&&H.addPath(o.generator,this.pathGenerator)&&this.pathGenerator.init(H)),H.retina.initParticle(this),this.size=Nn(this.options.size,y),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(O),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy();const l=1;this.moveDecay=l-lt(this.options.move.decay);const f=H.particles;f.setLastZIndex(this.position.z),this.zIndexFactor=this.position.z/H.zLayers,this.sides=24;let d=H.effectDrawers.get(this.effect);d||(d=this._engine.getEffectDrawer(this.effect),d&&H.effectDrawers.set(this.effect,d)),d!=null&&d.loadEffect&&d.loadEffect(this);let v=H.shapeDrawers.get(this.shape);v||(v=this._engine.getShapeDrawer(this.shape),v&&H.shapeDrawers.set(this.shape,v)),v!=null&&v.loadShape&&v.loadShape(this);const m=v==null?void 0:v.getSidesCount;m&&(this.sides=m(this)),this.spawning=!1,this.shadowColor=Ke(this.options.shadow.color);for(const R of f.updaters)R.init(this);for(const R of f.movers)(S=R.init)==null||S.call(R,this);(C=d==null?void 0:d.particleInit)==null||C.call(d,H,this),(E=v==null?void 0:v.particleInit)==null||E.call(v,H,this);for(const[,R]of H.plugins)(P=R.particleCreated)==null||P.call(R,this)}isInsideCanvas(){const T=this.getRadius(),O=this.container.canvas.size,D=this.position;return D.x>=-T&&D.y>=-T&&D.y<=O.height+T&&D.x<=O.width+T}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){var T;for(const O of this.container.particles.updaters)(T=O.reset)==null||T.call(O,this)}}class go{constructor(T,O){this.position=T,this.particle=O}}var Je;(function(F){F.circle="circle",F.rectangle="rectangle"})(Je||(Je={}));const ni=2;class Kn{constructor(T,O,D){this.position={x:T,y:O},this.type=D}}let Zn=class Jn extends Kn{constructor(T,O,D){super(T,O,Je.circle),this.radius=D}contains(T){return Gi(T,this.position)<=this.radius}intersects(T){const O=this.position,D=T.position,z={x:Math.abs(D.x-O.x),y:Math.abs(D.y-O.y)},H=this.radius;if(T instanceof Jn||T.type===Je.circle){const c=T,y=H+c.radius,t=Math.sqrt(z.x**ni+z.y**ni);return y>t}else if(T instanceof ti||T.type===Je.rectangle){const c=T,{width:y,height:t}=c.size;return Math.pow(z.x-y,ni)+Math.pow(z.y-t,ni)<=H**ni||z.x<=H+y&&z.y<=H+t||z.x<=y||z.y<=t}return!1}};class ti extends Kn{constructor(T,O,D,z){super(T,O,Je.rectangle),this.size={height:z,width:D}}contains(T){const O=this.size.width,D=this.size.height,z=this.position;return T.x>=z.x&&T.x<=z.x+O&&T.y>=z.y&&T.y<=z.y+D}intersects(T){if(T instanceof Zn)return T.intersects(this);const O=this.size.width,D=this.size.height,z=this.position,H=T.position,c=T instanceof ti?T.size:{width:0,height:0},y=c.width,t=c.height;return H.xz.x&&H.yz.y}}const ri=.5,xo=2,yo=4;class Ai{constructor(T,O){this.rectangle=T,this.capacity=O,this._subdivide=()=>{const{x:D,y:z}=this.rectangle.position,{width:H,height:c}=this.rectangle.size,{capacity:y}=this;for(let t=0;tO.insert(T))):!1}query(T,O){const D=[];if(!T.intersects(this.rectangle))return[];for(const z of this._points)!T.contains(z.position)&&Gi(T.position,z.position)>z.particle.getRadius()&&(!O||O(z.particle))||D.push(z.particle);if(this._divided)for(const z of this._subs)D.push(...z.query(T,O));return D}queryCircle(T,O,D){return this.query(new Zn(T.x,T.y,O),D)}queryRectangle(T,O,D){return this.query(new ti(T.x,T.y,O.width,O.height),D)}}const Vs=4,To=2,So=1,Ys=F=>{const{height:T,width:O}=F,D=-.25,z=1.5;return new ti(D*O,D*T,z*O,z*T)};class Co{constructor(T,O){this._addToPool=(...z)=>{this._pool.push(...z)},this._applyDensity=(z,H,c)=>{var e;const y=z.number;if(!((e=z.number.density)!=null&&e.enable)){c===void 0?this._limit=y.limit.value:y.limit&&this._groupLimits.set(c,y.limit.value);return}const t=this._initDensityFactor(y.density),u=y.value,p=0,a=y.limit.value>p?y.limit.value:u,r=Math.min(u,a)*t+H,n=Math.min(this.count,this.filter(s=>s.group===c).length);c===void 0?this._limit=y.limit.value*t:this._groupLimits.set(c,y.limit.value*t),nr&&this.removeQuantity(n-r,c)},this._initDensityFactor=z=>{const H=this._container,c=1;if(!H.canvas.element||!z.enable)return c;const y=H.canvas.element,t=H.retina.pixelRatio;return y.width*y.height/(z.height*z.width*t**To)},this._pushParticle=(z,H,c,y)=>{try{let t=this._pool.pop();t||(t=new mo(this._engine,this._container)),t.init(this._nextId,z,H,c);let u=!0;return y&&(u=y(t)),u?(this._array.push(t),this._zArray.push(t),this._nextId++,this._engine.dispatchEvent(Xt.particleAdded,{container:this._container,data:{particle:t}}),t):void 0}catch(t){Be().warning(`${$t} adding particle: ${t}`)}},this._removeParticle=(z,H,c)=>{const y=this._array[z];if(!y||y.group!==H)return!1;const t=this._zArray.indexOf(y),u=1;return this._array.splice(z,u),this._zArray.splice(t,u),y.destroy(c),this._engine.dispatchEvent(Xt.particleRemoved,{container:this._container,data:{particle:y}}),this._addToPool(y),!0},this._engine=T,this._container=O,this._nextId=0,this._array=[],this._zArray=[],this._pool=[],this._limit=0,this._groupLimits=new Map,this._needsSort=!1,this._lastZIndex=0,this._interactionManager=new fo(T,O),this._pluginsInitialized=!1;const D=O.canvas.size;this.quadTree=new Ai(Ys(D),Vs),this.movers=[],this.updaters=[]}get count(){return this._array.length}addManualParticles(){const T=this._container;T.actualOptions.manualParticles.forEach(D=>this.addParticle(D.position?bn(D.position,T.canvas.size):void 0,D.options))}addParticle(T,O,D,z){const H=this._container.actualOptions.particles.number.limit.mode,c=D===void 0?this._limit:this._groupLimits.get(D)??this._limit,y=this.count;if(c>0)switch(H){case li.delete:{const a=y+1-c;a>0&&this.removeQuantity(a);break}case li.wait:if(y>=c)return;break}return this._pushParticle(T,O,D,z)}clear(){this._array=[],this._zArray=[],this._pluginsInitialized=!1}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}draw(T){const O=this._container,D=O.canvas;D.clear(),this.update(T);for(const[,z]of O.plugins)D.drawPlugin(z,T);for(const z of this._zArray)z.draw(T)}filter(T){return this._array.filter(T)}find(T){return this._array.find(T)}get(T){return this._array[T]}handleClickMode(T){this._interactionManager.handleClickMode(T)}async init(){var z,H;const T=this._container,O=T.actualOptions;this._lastZIndex=0,this._needsSort=!1,await this.initPlugins();let D=!1;for(const[,c]of T.plugins)if(D=((z=c.particlesInitialization)==null?void 0:z.call(c))??D,D)break;if(this.addManualParticles(),!D){const c=O.particles,y=c.groups;for(const t in y){const u=y[t];for(let p=this.count,a=0;a<((H=u.number)==null?void 0:H.value)&&pthis.count)return;let c=0;for(let y=T;c!D.has(t);this._array=this.filter(y),this._zArray=this._zArray.filter(y);for(const t of D)this._engine.dispatchEvent(Xt.particleRemoved,{container:this._container,data:{particle:t}});this._addToPool(...D)}this._interactionManager.externalInteract(T);for(const y of this._array){for(const t of this.updaters)t.update(y,T);!y.destroyed&&!y.spawning&&this._interactionManager.particlesInteract(y,T)}if(delete this._resizeFactor,this._needsSort){const y=this._zArray;y.sort((u,p)=>p.position.z-u.position.z||u.id-p.id);const t=1;this._lastZIndex=y[y.length-t].position.z,this._needsSort=!1}}}const Ws=1,Hs=1;class Eo{constructor(T){this.container=T,this.pixelRatio=Ws,this.reduceFactor=Hs}init(){const T=this.container,O=T.actualOptions;this.pixelRatio=!O.detectRetina||ii()?Ws:window.devicePixelRatio,this.reduceFactor=Hs;const D=this.pixelRatio,z=T.canvas;if(z.element){const y=z.element;z.size.width=y.offsetWidth*D,z.size.height=y.offsetHeight*D}const H=O.particles,c=H.move;this.maxSpeed=lt(c.gravity.maxSpeed)*D,this.sizeAnimationSpeed=lt(H.size.animation.speed)*D}initParticle(T){const O=T.options,D=this.pixelRatio,z=O.move,H=z.distance,c=T.retina;c.moveDrift=lt(z.drift)*D,c.moveSpeed=lt(z.speed)*D,c.sizeAnimationSpeed=lt(O.size.animation.speed)*D;const y=c.maxDistance;y.horizontal=H.horizontal!==void 0?H.horizontal*D:void 0,y.vertical=H.vertical!==void 0?H.vertical*D:void 0,c.maxSpeed=lt(z.gravity.maxSpeed)*D}}function Lt(F){return F&&!F.destroyed}const Qi=60;function Po(F,T=Qi,O=!1){return{value:F,factor:O?Qi/T:Qi*F/Dt}}function Ne(F,T,...O){const D=new uo(F,T);return Wn(D,...O),D}class Mo{constructor(T,O,D){this._intersectionManager=z=>{if(!(!Lt(this)||!this.actualOptions.pauseOnOutsideViewport))for(const H of z)H.target===this.interactivity.element&&(H.isIntersecting?this.play():this.pause())},this._nextFrame=z=>{try{if(!this._smooth&&this._lastFrameTime!==void 0&&zDt){this.draw(!1);return}if(this.particles.draw(H),!this.alive()){this.destroy();return}this.animationStatus&&this.draw(!1)}catch(H){Be().error(`${$t} in animation loop`,H)}},this._engine=T,this.id=Symbol(O),this.fpsLimit=120,this._smooth=!1,this._delay=0,this._duration=0,this._lifeTime=0,this._firstStart=!0,this.started=!1,this.destroyed=!1,this._paused=!0,this._lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._clickHandlers=new Map,this._sourceOptions=D,this._initialSourceOptions=D,this.retina=new Eo(this),this.canvas=new Sa(this),this.particles=new Co(this._engine,this),this.pathGenerators=new Map,this.interactivity={mouse:{clicking:!1,inside:!1}},this.plugins=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this._options=Ne(this._engine,this),this.actualOptions=Ne(this._engine,this),this._eventListeners=new Ca(this),this._intersectionObserver=_r(z=>this._intersectionManager(z)),this._engine.dispatchEvent(Xt.containerBuilt,{container:this})}get animationStatus(){return!this._paused&&!this.pageHidden&&Lt(this)}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(T){if(!Lt(this))return;const O=this.interactivity.element;if(!O)return;const D=(a,r,n)=>{if(!Lt(this))return;const e=this.retina.pixelRatio,s={x:r.x*e,y:r.y*e},h=this.particles.quadTree.queryCircle(s,n*e);T(a,h)},z=a=>{if(!Lt(this))return;const r=a,n={x:r.offsetX||r.clientX,y:r.offsetY||r.clientY};D(a,n,1)},H=()=>{Lt(this)&&(u=!0,p=!1)},c=()=>{Lt(this)&&(p=!0)},y=a=>{if(Lt(this)){if(u&&!p){const r=a,n=1;let e=r.touches[r.touches.length-n];if(!e&&(e=r.changedTouches[r.changedTouches.length-n],!e))return;const s=this.canvas.element,h=s?s.getBoundingClientRect():void 0,i=0,o={x:e.clientX-(h?h.left:i),y:e.clientY-(h?h.top:i)};D(a,o,Math.max(e.radiusX,e.radiusY))}u=!1,p=!1}},t=()=>{Lt(this)&&(u=!1,p=!1)};let u=!1,p=!1;this._clickHandlers.set("click",z),this._clickHandlers.set("touchstart",H),this._clickHandlers.set("touchmove",c),this._clickHandlers.set("touchend",y),this._clickHandlers.set("touchcancel",t);for(const[a,r]of this._clickHandlers)O.addEventListener(a,r)}addLifeTime(T){this._lifeTime+=T}addPath(T,O,D=!1){return!Lt(this)||!D&&this.pathGenerators.has(T)?!1:(this.pathGenerators.set(T,O),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}clearClickHandlers(){var T;if(Lt(this)){for(const[O,D]of this._clickHandlers)(T=this.interactivity.element)==null||T.removeEventListener(O,D);this._clickHandlers.clear()}}destroy(T=!0){var O,D;if(Lt(this)){this.stop(),this.clearClickHandlers(),this.particles.destroy(),this.canvas.destroy();for(const[,z]of this.effectDrawers)(O=z.destroy)==null||O.call(z,this);for(const[,z]of this.shapeDrawers)(D=z.destroy)==null||D.call(z,this);for(const z of this.effectDrawers.keys())this.effectDrawers.delete(z);for(const z of this.shapeDrawers.keys())this.shapeDrawers.delete(z);if(this._engine.clearPlugins(this),this.destroyed=!0,T){const z=this._engine.items,H=z.findIndex(y=>y===this);H>=0&&z.splice(H,1)}this._engine.dispatchEvent(Xt.containerDestroyed,{container:this})}}draw(T){if(!Lt(this))return;let O=T;const D=z=>{O&&(this._lastFrameTime=void 0,O=!1),this._nextFrame(z)};this._drawAnimationFrame=Hr(z=>D(z))}async export(T,O={}){for(const[,D]of this.plugins){if(!D.export)continue;const z=await D.export(T,O);if(z.supported)return z.blob}Be().error(`${$t} - Export plugin with type ${T} not found`)}handleClickMode(T){var O;if(Lt(this)){this.particles.handleClickMode(T);for(const[,D]of this.plugins)(O=D.handleClickMode)==null||O.call(D,T)}}async init(){var a,r,n,e;if(!Lt(this))return;const T=this._engine.getSupportedEffects();for(const s of T){const h=this._engine.getEffectDrawer(s);h&&this.effectDrawers.set(s,h)}const O=this._engine.getSupportedShapes();for(const s of O){const h=this._engine.getShapeDrawer(s);h&&this.shapeDrawers.set(s,h)}await this.particles.initPlugins(),this._options=Ne(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=Ne(this._engine,this,this._options);const D=await this._engine.getAvailablePlugins(this);for(const[s,h]of D)this.plugins.set(s,h);this.retina.init(),await this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize();const{zLayers:z,duration:H,delay:c,fpsLimit:y,smooth:t}=this.actualOptions;this.zLayers=z,this._duration=lt(H)*Dt,this._delay=lt(c)*Dt,this._lifeTime=0;const u=120,p=0;this.fpsLimit=y>p?y:u,this._smooth=t;for(const[,s]of this.effectDrawers)await((a=s.init)==null?void 0:a.call(s,this));for(const[,s]of this.shapeDrawers)await((r=s.init)==null?void 0:r.call(s,this));for(const[,s]of this.plugins)await((n=s.init)==null?void 0:n.call(s));this._engine.dispatchEvent(Xt.containerInit,{container:this}),await this.particles.init(),this.particles.setDensity();for(const[,s]of this.plugins)(e=s.particlesSetup)==null||e.call(s);this._engine.dispatchEvent(Xt.particlesSetup,{container:this})}async loadTheme(T){Lt(this)&&(this._currentTheme=T,await this.refresh())}pause(){var T;if(Lt(this)&&(this._drawAnimationFrame!==void 0&&(Kr(this._drawAnimationFrame),delete this._drawAnimationFrame),!this._paused)){for(const[,O]of this.plugins)(T=O.pause)==null||T.call(O);this.pageHidden||(this._paused=!0),this._engine.dispatchEvent(Xt.containerPaused,{container:this})}}play(T){if(!Lt(this))return;const O=this._paused||T;if(this._firstStart&&!this.actualOptions.autoPlay){this._firstStart=!1;return}if(this._paused&&(this._paused=!1),O)for(const[,D]of this.plugins)D.play&&D.play();this._engine.dispatchEvent(Xt.containerPlay,{container:this}),this.draw(O??!1)}async refresh(){if(Lt(this))return this.stop(),this.start()}async reset(T){if(Lt(this))return this._initialSourceOptions=T,this._sourceOptions=T,this._options=Ne(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=Ne(this._engine,this,this._options),this.refresh()}async start(){!Lt(this)||this.started||(await this.init(),this.started=!0,await new Promise(T=>{const O=async()=>{var D;this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element);for(const[,z]of this.plugins)await((D=z.start)==null?void 0:D.call(z));this._engine.dispatchEvent(Xt.containerStarted,{container:this}),this.play(),T()};this._delayTimeout=setTimeout(()=>void O(),this._delay)}))}stop(){var T;if(!(!Lt(this)||!this.started)){this._delayTimeout&&(clearTimeout(this._delayTimeout),delete this._delayTimeout),this._firstStart=!0,this.started=!1,this._eventListeners.removeListeners(),this.pause(),this.particles.clear(),this.canvas.stop(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.unobserve(this.interactivity.element);for(const[,O]of this.plugins)(T=O.stop)==null||T.call(O);for(const O of this.plugins.keys())this.plugins.delete(O);this._sourceOptions=this._options,this._engine.dispatchEvent(Xt.containerStopped,{container:this})}}updateActualOptions(){this.actualOptions.responsive=[];const T=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this._currentTheme),this._responsiveMaxWidth===T?!1:(this._responsiveMaxWidth=T,!0)}}class Ao{constructor(){this._listeners=new Map}addEventListener(T,O){this.removeEventListener(T,O);let D=this._listeners.get(T);D||(D=[],this._listeners.set(T,D)),D.push(O)}dispatchEvent(T,O){const D=this._listeners.get(T);D==null||D.forEach(z=>z(O))}hasEventListener(T){return!!this._listeners.get(T)}removeAllEventListeners(T){T?this._listeners.delete(T):this._listeners=new Map}removeEventListener(T,O){const D=this._listeners.get(T);if(!D)return;const z=D.length,H=D.indexOf(O);if(H<0)return;const y=1;z===y?this._listeners.delete(T):D.splice(H,y)}}async function $i(F,T,O,D=!1){let z=T.get(F);return(!z||D)&&(z=await Promise.all([...O.values()].map(H=>H(F))),T.set(F,z)),z}async function Ro(F){const T=ie(F.url,F.index);if(!T)return F.fallback;const O=await fetch(T);return O.ok?await O.json():(Be().error(`${$t} ${O.status} while retrieving config file`),F.fallback)}const Qn="true",Ks="false",ji="canvas",Fo=F=>{let T;if(F instanceof HTMLCanvasElement||F.tagName.toLowerCase()===ji)T=F,T.dataset[Fe]||(T.dataset[Fe]=Ks);else{const D=F.getElementsByTagName(ji);D.length?(T=D[0],T.dataset[Fe]=Ks):(T=document.createElement(ji),T.dataset[Fe]=Qn,F.appendChild(T))}const O="100%";return T.style.width||(T.style.width=O),T.style.height||(T.style.height=O),T},Lo=(F,T)=>{let O=T??document.getElementById(F);return O||(O=document.createElement("div"),O.id=F,O.dataset[Fe]=Qn,document.body.append(O),O)};class Oo{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new Ao,this._initialized=!1,this.plugins=[],this._initializers={interactors:new Map,movers:new Map,updaters:new Map},this.interactors=new Map,this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.pathGenerators=new Map}get configs(){const T={};for(const[O,D]of this._configs)T[O]=D;return T}get items(){return this._domArray}get version(){return"3.5.0"}addConfig(T){const O=T.key??T.name??"default";this._configs.set(O,T),this._eventDispatcher.dispatchEvent(Xt.configAdded,{data:{name:O,config:T}})}async addEffect(T,O,D=!0){ue(T,z=>{this.getEffectDrawer(z)||this.effectDrawers.set(z,O)}),await this.refresh(D)}addEventListener(T,O){this._eventDispatcher.addEventListener(T,O)}async addInteractor(T,O,D=!0){this._initializers.interactors.set(T,O),await this.refresh(D)}async addMover(T,O,D=!0){this._initializers.movers.set(T,O),await this.refresh(D)}async addParticleUpdater(T,O,D=!0){this._initializers.updaters.set(T,O),await this.refresh(D)}async addPathGenerator(T,O,D=!0){this.getPathGenerator(T)||this.pathGenerators.set(T,O),await this.refresh(D)}async addPlugin(T,O=!0){this.getPlugin(T.id)||this.plugins.push(T),await this.refresh(O)}async addPreset(T,O,D=!1,z=!0){(D||!this.getPreset(T))&&this.presets.set(T,O),await this.refresh(z)}async addShape(T,O=!0){for(const D of T.validTypes)this.getShapeDrawer(D)||this.shapeDrawers.set(D,T);await this.refresh(O)}clearPlugins(T){this.updaters.delete(T),this.movers.delete(T),this.interactors.delete(T)}dispatchEvent(T,O){this._eventDispatcher.dispatchEvent(T,O)}dom(){return this.items}domItem(T){return this.item(T)}async getAvailablePlugins(T){const O=new Map;for(const D of this.plugins)D.needsPlugin(T.actualOptions)&&O.set(D.id,await D.getPlugin(T));return O}getEffectDrawer(T){return this.effectDrawers.get(T)}async getInteractors(T,O=!1){return $i(T,this.interactors,this._initializers.interactors,O)}async getMovers(T,O=!1){return $i(T,this.movers,this._initializers.movers,O)}getPathGenerator(T){return this.pathGenerators.get(T)}getPlugin(T){return this.plugins.find(O=>O.id===T)}getPreset(T){return this.presets.get(T)}getShapeDrawer(T){return this.shapeDrawers.get(T)}getSupportedEffects(){return this.effectDrawers.keys()}getSupportedShapes(){return this.shapeDrawers.keys()}async getUpdaters(T,O=!1){return $i(T,this.updaters,this._initializers.updaters,O)}init(){this._initialized||(this._initialized=!0)}item(T){const{items:O}=this,D=O[T];if(!D||D.destroyed){O.splice(T,1);return}return D}async load(T){var e;const D=T.id??((e=T.element)==null?void 0:e.id)??`tsparticles${Math.floor(St()*1e4)}`,{index:z,url:H}=T,c=H?await Ro({fallback:T.options,url:H,index:z}):T.options,y=ie(c,z),{items:t}=this,u=t.findIndex(s=>s.id.description===D),p=0,a=new Mo(this,D,y);if(u>=p){const s=this.item(u),h=1,i=0,o=s?h:i;s&&!s.destroyed&&s.destroy(!1),t.splice(u,o,a)}else t.push(a);const r=Lo(D,T.element),n=Fo(r);return a.canvas.loadCanvas(n),await a.start(),a}loadOptions(T,O){this.plugins.forEach(D=>{var z;return(z=D.loadOptions)==null?void 0:z.call(D,T,O)})}loadParticlesOptions(T,O,...D){const z=this.updaters.get(T);z&&z.forEach(H=>{var c;return(c=H.loadOptions)==null?void 0:c.call(H,O,...D)})}async refresh(T=!0){T&&await Promise.all(this.items.map(O=>O.refresh()))}removeEventListener(T,O){this._eventDispatcher.removeEventListener(T,O)}setOnClickHandler(T){const{items:O}=this;if(!O.length)throw new Error(`${$t} can only set click handlers after calling tsParticles.load()`);O.forEach(D=>D.addClickHandler(T))}}var Xe;(function(F){F[F.h=1]="h",F[F.s=2]="s",F[F.l=3]="l",F[F.a=5]="a"})(Xe||(Xe={}));class wo{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(T){const O=T.value,D=O.hsl??T.value;if(D.h!==void 0&&D.s!==void 0&&D.l!==void 0)return ns(D)}handleRangeColor(T){const O=T.value,D=O.hsl??T.value;if(D.h!==void 0&&D.l!==void 0)return ns({h:lt(D.h),l:lt(D.l),s:lt(D.s)})}parseString(T){if(!T.startsWith("hsl"))return;const O=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.%]+)\s*)?\)/i,D=O.exec(T),z=4,H=1,c=10;return D?oa({a:D.length>z?Bn(D[Xe.a]):H,h:parseInt(D[Xe.h],c),l:parseInt(D[Xe.l],c),s:parseInt(D[Xe.s],c)}):void 0}}var Ve;(function(F){F[F.r=1]="r",F[F.g=2]="g",F[F.b=3]="b",F[F.a=5]="a"})(Ve||(Ve={}));class Do{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(T){const O=T.value,D=O.rgb??T.value;if(D.r!==void 0)return D}handleRangeColor(T){const O=T.value,D=O.rgb??T.value;if(D.r!==void 0)return{r:lt(D.r),g:lt(D.g),b:lt(D.b)}}parseString(T){if(!T.startsWith(this.stringPrefix))return;const O=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.%]+)\s*)?\)/i,D=O.exec(T),z=10;return D?{a:D.length>4?Bn(D[Ve.a]):1,b:parseInt(D[Ve.b],z),g:parseInt(D[Ve.g],z),r:parseInt(D[Ve.r],z)}:void 0}}function Io(){const F=new Do,T=new wo;Os(F),Os(T);const O=new Oo;return O.init(),O}var Jt;(function(F){F.clockwise="clockwise",F.counterClockwise="counter-clockwise",F.random="random"})(Jt||(Jt={}));var Zs;(function(F){F.linear="linear",F.radial="radial",F.random="random"})(Zs||(Zs={}));var Js;(function(F){F.easeInBack="ease-in-back",F.easeInCirc="ease-in-circ",F.easeInCubic="ease-in-cubic",F.easeInLinear="ease-in-linear",F.easeInQuad="ease-in-quad",F.easeInQuart="ease-in-quart",F.easeInQuint="ease-in-quint",F.easeInExpo="ease-in-expo",F.easeInSine="ease-in-sine",F.easeOutBack="ease-out-back",F.easeOutCirc="ease-out-circ",F.easeOutCubic="ease-out-cubic",F.easeOutLinear="ease-out-linear",F.easeOutQuad="ease-out-quad",F.easeOutQuart="ease-out-quart",F.easeOutQuint="ease-out-quint",F.easeOutExpo="ease-out-expo",F.easeOutSine="ease-out-sine",F.easeInOutBack="ease-in-out-back",F.easeInOutCirc="ease-in-out-circ",F.easeInOutCubic="ease-in-out-cubic",F.easeInOutLinear="ease-in-out-linear",F.easeInOutQuad="ease-in-out-quad",F.easeInOutQuart="ease-in-out-quart",F.easeInOutQuint="ease-in-out-quint",F.easeInOutExpo="ease-in-out-expo",F.easeInOutSine="ease-in-out-sine"})(Js||(Js={}));const si=Io();ii()||(window.tsParticles=si);class Bo{constructor(){this.wait=!1}load(T){T&&(T.count!==void 0&&(this.count=T.count),T.delay!==void 0&&(this.delay=mt(T.delay)),T.duration!==void 0&&(this.duration=mt(T.duration)),T.wait!==void 0&&(this.wait=T.wait))}}class Go{constructor(){this.quantity=1,this.delay=.1}load(T){T!==void 0&&(T.quantity!==void 0&&(this.quantity=mt(T.quantity)),T.delay!==void 0&&(this.delay=mt(T.delay)))}}class No{constructor(){this.color=!1,this.opacity=!1}load(T){T&&(T.color!==void 0&&(this.color=T.color),T.opacity!==void 0&&(this.opacity=T.opacity))}}class zo{constructor(){this.options={},this.replace=new No,this.type="square"}load(T){T&&(T.options!==void 0&&(this.options=It({},T.options??{})),this.replace.load(T.replace),T.type!==void 0&&(this.type=T.type))}}class $n{constructor(){this.mode=le.percent,this.height=0,this.width=0}load(T){T!==void 0&&(T.mode!==void 0&&(this.mode=T.mode),T.height!==void 0&&(this.height=T.height),T.width!==void 0&&(this.width=T.width))}}class me{constructor(){this.autoPlay=!0,this.fill=!0,this.life=new Bo,this.rate=new Go,this.shape=new zo,this.startCount=0}load(T){T&&(T.autoPlay!==void 0&&(this.autoPlay=T.autoPlay),T.size!==void 0&&(this.size||(this.size=new $n),this.size.load(T.size)),T.direction!==void 0&&(this.direction=T.direction),this.domId=T.domId,T.fill!==void 0&&(this.fill=T.fill),this.life.load(T.life),this.name=T.name,this.particles=ue(T.particles,O=>It({},O)),this.rate.load(T.rate),this.shape.load(T.shape),T.position!==void 0&&(this.position={},T.position.x!==void 0&&(this.position.x=mt(T.position.x)),T.position.y!==void 0&&(this.position.y=mt(T.position.y))),T.spawnColor!==void 0&&(this.spawnColor===void 0&&(this.spawnColor=new _e),this.spawnColor.load(T.spawnColor)),T.startCount!==void 0&&(this.startCount=T.startCount))}}var Ri;(function(F){F.emitter="emitter"})(Ri||(Ri={}));const Qs=.5,$s=0,gi=0,js=0,bo=0,Uo=-1,Xo=1;function ks(F,T){F.color?F.color.value=T:F.color={value:T}}class Vo{constructor(T,O,D,z,H){var u,p;this.emitters=O,this.container=D,this._destroy=()=>{var a,r;(a=this._mutationObserver)==null||a.disconnect(),this._mutationObserver=void 0,(r=this._resizeObserver)==null||r.disconnect(),this._resizeObserver=void 0,this.emitters.removeEmitter(this),this._engine.dispatchEvent("emitterDestroyed",{container:this.container,data:{emitter:this}})},this._prepareToDie=()=>{var e;if(this._paused)return;const a=((e=this.options.life)==null?void 0:e.duration)!==void 0?lt(this.options.life.duration):void 0;this.container.retina.reduceFactor&&(this._lifeCount>0||this._immortal)&&a!==void 0&&a>0&&(this._duration=a*Dt)},this._setColorAnimation=(a,r,n,e=Xo)=>{const s=this.container;if(!a.enable)return r;const h=Yt(a.offset),i=lt(this.options.rate.delay),o=i*Dt/s.retina.reduceFactor,l=0,f=lt(a.speed??l);return(r+f*s.fpsLimit/o+h*e)%n},this._engine=T,this._currentDuration=0,this._currentEmitDelay=0,this._currentSpawnDelay=0,this._initialPosition=H,z instanceof me?this.options=z:(this.options=new me,this.options.load(z)),this._spawnDelay=lt(this.options.life.delay??$s)*Dt/this.container.retina.reduceFactor,this.position=this._initialPosition??this._calcPosition(),this.name=this.options.name,this.fill=this.options.fill,this._firstSpawn=!this.options.life.wait,this._startParticlesAdded=!1;let c=It({},this.options.particles);if(c??(c={}),c.move??(c.move={}),(u=c.move).direction??(u.direction=this.options.direction),this.options.spawnColor&&(this.spawnColor=hi(this.options.spawnColor)),this._paused=!this.options.autoPlay,this._particlesOptions=c,this._size=this._calcSize(),this.size=Ls(this._size,this.container.canvas.size),this._lifeCount=this.options.life.count??Uo,this._immortal=this._lifeCount<=gi,this.options.domId){const a=document.getElementById(this.options.domId);a&&(this._mutationObserver=new MutationObserver(()=>{this.resize()}),this._resizeObserver=new ResizeObserver(()=>{this.resize()}),this._mutationObserver.observe(a,{attributes:!0,attributeFilter:["style","width","height"]}),this._resizeObserver.observe(a))}const y=this.options.shape,t=(p=this._engine.emitterShapeManager)==null?void 0:p.getShapeGenerator(y.type);t&&(this._shape=t.generate(this.position,this.size,this.fill,y.options)),this._engine.dispatchEvent("emitterCreated",{container:D,data:{emitter:this}}),this.play()}externalPause(){this._paused=!0,this.pause()}externalPlay(){this._paused=!1,this.play()}async init(){var T;await((T=this._shape)==null?void 0:T.init())}pause(){this._paused||delete this._emitDelay}play(){if(!this._paused&&this.container.retina.reduceFactor&&(this._lifeCount>gi||this._immortal||!this.options.life.count)&&(this._firstSpawn||this._currentSpawnDelay>=(this._spawnDelay??js))){if(this._emitDelay===void 0){const T=lt(this.options.rate.delay);this._emitDelay=T*Dt/this.container.retina.reduceFactor}(this._lifeCount>gi||this._immortal)&&this._prepareToDie()}}resize(){var O;const T=this._initialPosition;this.position=T&&zi(T,this.container.canvas.size,Qt.origin)?T:this._calcPosition(),this._size=this._calcSize(),this.size=Ls(this._size,this.container.canvas.size),(O=this._shape)==null||O.resize(this.position,this.size)}update(T){var O;this._paused||(this._firstSpawn&&(this._firstSpawn=!1,this._currentSpawnDelay=this._spawnDelay??js,this._currentEmitDelay=this._emitDelay??bo),this._startParticlesAdded||(this._startParticlesAdded=!0,this._emitParticles(this.options.startCount)),this._duration!==void 0&&(this._currentDuration+=T.value,this._currentDuration>=this._duration&&(this.pause(),this._spawnDelay!==void 0&&delete this._spawnDelay,this._immortal||this._lifeCount--,this._lifeCount>gi||this._immortal?(this.position=this._calcPosition(),(O=this._shape)==null||O.resize(this.position,this.size),this._spawnDelay=lt(this.options.life.delay??$s)*Dt/this.container.retina.reduceFactor):this._destroy(),this._currentDuration-=this._duration,delete this._duration)),this._spawnDelay!==void 0&&(this._currentSpawnDelay+=T.value,this._currentSpawnDelay>=this._spawnDelay&&(this._engine.dispatchEvent("emitterPlay",{container:this.container}),this.play(),this._currentSpawnDelay-=this._currentSpawnDelay,delete this._spawnDelay)),this._emitDelay!==void 0&&(this._currentEmitDelay+=T.value,this._currentEmitDelay>=this._emitDelay&&(this._emit(),this._currentEmitDelay-=this._emitDelay)))}_calcPosition(){if(this.options.domId){const T=document.getElementById(this.options.domId);if(T){const O=T.getBoundingClientRect(),D=this.container.retina.pixelRatio;return{x:(O.x+O.width*Qs)*D,y:(O.y+O.height*Qs)*D}}}return $r({size:this.container.canvas.size,position:this.options.position})}_calcSize(){const T=this.container;if(this.options.domId){const O=document.getElementById(this.options.domId);if(O){const D=O.getBoundingClientRect();return{width:D.width*T.retina.pixelRatio,height:D.height*T.retina.pixelRatio,mode:le.precise}}}return this.options.size??(()=>{const O=new $n;return O.load({height:0,mode:le.percent,width:0}),O})()}_emit(){if(this._paused)return;const T=lt(this.options.rate.quantity);this._emitParticles(T)}_emitParticles(T){var D;const O=ie(this._particlesOptions);for(let z=0;zz===void 0||ne(z)?this.array[z??D]:this.array.find(H=>H.name===z),O.addEmitter=async(z,H)=>this.addEmitter(z,H),O.removeEmitter=z=>{const H=O.getEmitter(z);H&&this.removeEmitter(H)},O.playEmitter=z=>{const H=O.getEmitter(z);H&&H.externalPlay()},O.pauseEmitter=z=>{const H=O.getEmitter(z);H&&H.externalPause()}}async addEmitter(T,O){const D=new me;D.load(T);const z=new Vo(this._engine,this,this.container,D,O);return await z.init(),this.array.push(z),z}handleClickMode(T){const O=this.emitters,D=this.interactivityEmitters;if(T!==Ri.emitter)return;let z;if(D&&Wt(D.value))if(D.value.length>0&&D.random.enable){z=[];const t=[];for(let u=0;u{await this.addEmitter(y,c)})}async init(){if(this.emitters=this.container.actualOptions.emitters,this.interactivityEmitters=this.container.actualOptions.interactivity.modes.emitters,!!this.emitters)if(Wt(this.emitters))for(const T of this.emitters)await this.addEmitter(T);else await this.addEmitter(this.emitters)}pause(){for(const T of this.array)T.pause()}play(){for(const T of this.array)T.play()}removeEmitter(T){const O=this.array.indexOf(T);O>=0&&this.array.splice(O,1)}resize(){for(const T of this.array)T.resize()}stop(){this.array=[]}update(T){for(const O of this.array)O.update(T)}}class Wo{constructor(T){this._engine=T,this.id="emitters"}getPlugin(T){return Promise.resolve(new Yo(this._engine,T))}loadOptions(T,O){var z,H;if(!this.needsPlugin(T)&&!this.needsPlugin(O))return;O!=null&&O.emitters&&(T.emitters=ue(O.emitters,c=>{const y=new me;return y.load(c),y}));const D=(H=(z=O==null?void 0:O.interactivity)==null?void 0:z.modes)==null?void 0:H.emitters;if(D)if(Wt(D))T.interactivity.modes.emitters={random:{count:1,enable:!0},value:D.map(c=>{const y=new me;return y.load(c),y})};else{const c=D;if(c.value!==void 0)if(Wt(c.value))T.interactivity.modes.emitters={random:{count:c.random.count??1,enable:c.random.enable??!1},value:c.value.map(t=>{const u=new me;return u.load(t),u})};else{const t=new me;t.load(c.value),T.interactivity.modes.emitters={random:{count:c.random.count??1,enable:c.random.enable??!1},value:t}}else(T.interactivity.modes.emitters={random:{count:1,enable:!1},value:new me}).value.load(D)}}needsPlugin(T){var D,z,H;if(!T)return!1;const O=T.emitters;return Wt(O)&&!!O.length||O!==void 0||!!((H=(z=(D=T.interactivity)==null?void 0:D.events)==null?void 0:z.onClick)!=null&&H.mode)&&xs(Ri.emitter,T.interactivity.events.onClick.mode)}}const ki=new Map;class Ho{constructor(T){this._engine=T}addShapeGenerator(T,O){this.getShapeGenerator(T)||ki.set(T,O)}getShapeGenerator(T){return ki.get(T)}getSupportedShapeGenerators(){return ki.keys()}}async function Ko(F,T=!0){F.emitterShapeManager||(F.emitterShapeManager=new Ho(F)),F.addEmitterShapeGenerator||(F.addEmitterShapeGenerator=(D,z)=>{var H;(H=F.emitterShapeManager)==null||H.addShapeGenerator(D,z)});const O=new Wo(F);await F.addPlugin(O,T)}class Zo{constructor(){this.angle=90,this.count=50,this.spread=45,this.startVelocity=45,this.decay=.9,this.gravity=1,this.drift=0,this.ticks=200,this.position={x:50,y:50},this.colors=["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],this.shapes=["square","circle"],this.scalar=1,this.zIndex=100,this.disableForReducedMotion=!0,this.flat=!1,this.shapeOptions={}}get origin(){return{x:this.position.x/Nt,y:this.position.y/Nt}}set origin(T){this.position.x=T.x*Nt,this.position.y=T.y*Nt}get particleCount(){return this.count}set particleCount(T){this.count=T}load(T){if(!T)return;T.angle!==void 0&&(this.angle=T.angle);const O=T.count??T.particleCount;O!==void 0&&(this.count=O),T.spread!==void 0&&(this.spread=T.spread),T.startVelocity!==void 0&&(this.startVelocity=T.startVelocity),T.decay!==void 0&&(this.decay=T.decay),T.flat!==void 0&&(this.flat=T.flat),T.gravity!==void 0&&(this.gravity=T.gravity),T.drift!==void 0&&(this.drift=T.drift),T.ticks!==void 0&&(this.ticks=T.ticks);const D=T.origin;D&&!T.position&&(T.position={x:D.x!==void 0?D.x*Nt:void 0,y:D.y!==void 0?D.y*Nt:void 0});const z=T.position;z&&(z.x!==void 0&&(this.position.x=z.x),z.y!==void 0&&(this.position.y=z.y)),T.colors!==void 0&&(Wt(T.colors)?this.colors=[...T.colors]:this.colors=T.colors);const H=T.shapeOptions;if(H!==void 0)for(const c in H){const y=H[c];y&&(this.shapeOptions[c]=It(this.shapeOptions[c]??{},y))}T.shapes!==void 0&&(Wt(T.shapes)?this.shapes=[...T.shapes]:this.shapes=T.shapes),T.scalar!==void 0&&(this.scalar=T.scalar),T.zIndex!==void 0&&(this.zIndex=T.zIndex),T.disableForReducedMotion!==void 0&&(this.disableForReducedMotion=T.disableForReducedMotion)}}const ls=.5,we=0,qt=1,qs=60,_s=0,Jo=.01;function Qo(F){const T=F.initialPosition,{dx:O,dy:D}=We(T,F.position),z=Math.abs(O),H=Math.abs(D),{maxDistance:c}=F.retina,y=c.horizontal,t=c.vertical;if(!y&&!t)return;const u=(y&&z>=y)??!1,p=(t&&H>=t)??!1;if((u||p)&&!F.misplaced)F.misplaced=!!y&&z>y||!!t&&H>t,y&&(F.velocity.x=F.velocity.y*ls-F.velocity.x),t&&(F.velocity.y=F.velocity.x*ls-F.velocity.y);else if((!y||zT.x&&r.x>we)&&(r.x*=-St()),t&&(a.yT.y&&r.y>we)&&(r.y*=-St())}}function $o(F,T,O,D,z,H){ko(F,H);const c=F.gravity,y=c!=null&&c.enable&&c.inverse?-qt:qt;z&&O&&(F.velocity.x+=z*H.factor/(qs*O)),c!=null&&c.enable&&O&&(F.velocity.y+=y*(c.acceleration*H.factor)/(qs*O));const t=F.moveDecay;F.velocity.multTo(t);const u=F.velocity.mult(O);c!=null&&c.enable&&D>we&&(!c.inverse&&u.y>=we&&u.y>=D||c.inverse&&u.y<=we&&u.y<=-D)&&(u.y=y*D,O&&(F.velocity.y=u.y/O));const p=F.options.zIndex,a=(qt-F.zIndexFactor)**p.velocityRate;u.multTo(a);const{position:r}=F;r.addTo(u),T.vibrate&&(r.x+=Math.sin(r.x*Math.cos(r.y)),r.y+=Math.cos(r.y*Math.sin(r.x)))}function jo(F,T){const O=F.container;if(!F.spin)return;const D={x:F.spin.direction===Jt.clockwise?Math.cos:Math.sin,y:F.spin.direction===Jt.clockwise?Math.sin:Math.cos};F.position.x=F.spin.center.x+F.spin.radius*D.x(F.spin.angle),F.position.y=F.spin.center.y+F.spin.radius*D.y(F.spin.angle),F.spin.radius+=F.spin.acceleration;const z=Math.max(O.canvas.size.width,O.canvas.size.height),H=z*ls;F.spin.radius>H?(F.spin.radius=H,F.spin.acceleration*=-qt):F.spin.radius<_s&&(F.spin.radius=_s,F.spin.acceleration*=-qt),F.spin.angle+=T*Jo*(qt-F.spin.radius/z)}function ko(F,T){var c;const O=F.options,D=O.move.path;if(!D.enable)return;if(F.lastPathTime<=F.pathDelay){F.lastPathTime+=T.value;return}const H=(c=F.pathGenerator)==null?void 0:c.generate(F,T);H&&F.velocity.addTo(H),D.clamp&&(F.velocity.x=ke(F.velocity.x,-qt,qt),F.velocity.y=ke(F.velocity.y,-qt,qt)),F.lastPathTime-=F.pathDelay}function qo(F){return F.slow.inRange?F.slow.factor:qt}function _o(F){const T=F.container,O=F.options,D=O.move.spin;if(!D.enable)return;const z=D.position??{x:50,y:50},H=.01,c={x:z.x*H*T.canvas.size.width,y:z.y*H*T.canvas.size.height},y=F.getPosition(),t=Gi(y,c),u=lt(D.acceleration);F.retina.spinAcceleration=u*T.retina.pixelRatio;const p=0;F.spin={center:c,direction:F.velocity.x>=p?Jt.clockwise:Jt.counterClockwise,angle:F.velocity.angle,radius:t,acceleration:F.retina.spinAcceleration}}const th=2,eh=1,ih=1;class sh{init(T){const O=T.options,D=O.move.gravity;T.gravity={enable:D.enable,acceleration:lt(D.acceleration),inverse:D.inverse},_o(T)}isEnabled(T){return!T.destroyed&&T.options.move.enable}move(T,O){var s,h;const D=T.options,z=D.move;if(!z.enable)return;const H=T.container,c=H.retina.pixelRatio;(s=T.retina).moveSpeed??(s.moveSpeed=lt(z.speed)*c),(h=T.retina).moveDrift??(h.moveDrift=lt(T.options.move.drift)*c);const y=qo(T),t=T.retina.moveSpeed*H.retina.reduceFactor,u=T.retina.moveDrift,p=Ie(D.size.value)*c,a=z.size?T.getRadius()/p:eh,r=O.factor||ih,n=t*a*y*r/th,e=T.retina.maxSpeed??H.retina.maxSpeed;z.spin.enable?jo(T,n):$o(T,z,n,e,u,O),Qo(T)}}async function nh(F,T=!0){await F.addMover("base",()=>Promise.resolve(new sh),T)}const rh=2,ah=Math.PI*rh,oh=0,tn={x:0,y:0};function hh(F){const{context:T,particle:O,radius:D}=F;O.circleRange||(O.circleRange={min:oh,max:ah});const z=O.circleRange;T.arc(tn.x,tn.y,D,z.min,z.max,!1)}const lh=12,uh=360,en=0;class fh{constructor(){this.validTypes=["circle"]}draw(T){hh(T)}getSidesCount(){return lh}particleInit(T,O){const D=O.shapeData,z=(D==null?void 0:D.angle)??{max:uh,min:en};O.circleRange=Ue(z)?{min:oe(z.min),max:oe(z.max)}:{min:en,max:oe(z)}}}async function dh(F,T=!0){await F.addShape(new fh,T)}class vh{constructor(T){this.container=T}init(T){const O=hi(T.options.color,T.id,T.options.reduceDuplicates);O&&(T.color=la(O,T.options.color.animation,this.container.retina.reduceFactor))}isEnabled(T){const{h:O,s:D,l:z}=T.options.color.animation,{color:H}=T;return!T.destroyed&&!T.spawning&&((H==null?void 0:H.h.value)!==void 0&&O.enable||(H==null?void 0:H.s.value)!==void 0&&D.enable||(H==null?void 0:H.l.value)!==void 0&&z.enable)}update(T,O){ua(T.color,O)}}async function ch(F,T=!0){await F.addParticleUpdater("color",O=>Promise.resolve(new vh(O)),T)}class ph{constructor(T){this.container=T}init(T){const O=T.options.opacity,D=1;T.opacity=Nn(O,D);const z=O.animation;z.enable&&(T.opacity.velocity=lt(z.speed)/Nt*this.container.retina.reduceFactor,z.sync||(T.opacity.velocity*=St()))}isEnabled(T){return!T.destroyed&&!T.spawning&&!!T.opacity&&T.opacity.enable&&((T.opacity.maxLoops??0)<=0||(T.opacity.maxLoops??0)>0&&(T.opacity.loops??0)<(T.opacity.maxLoops??0))}reset(T){T.opacity&&(T.opacity.time=0,T.opacity.loops=0)}update(T,O){!this.isEnabled(T)||!T.opacity||bi(T,T.opacity,!0,T.options.opacity.animation.destroy,O)}}async function mh(F,T=!0){await F.addParticleUpdater("opacity",O=>Promise.resolve(new ph(O)),T)}const Fi=0,Qe=0;function gh(F){if(F.outMode!==Bt.bounce&&F.outMode!==Bt.split||F.direction!==Tt.left&&F.direction!==Tt.right)return;F.bounds.rightF.canvasSize.width&&F.direction===Tt.right&&(F.particle.position.x=F.canvasSize.width-F.size-F.offset.x);const T=F.particle.velocity.x;let O=!1;if(F.direction===Tt.right&&F.bounds.right>=F.canvasSize.width&&T>Fi||F.direction===Tt.left&&F.bounds.left<=Qe&&T=F.canvasSize.width&&F.direction===Tt.right?F.particle.position.x=F.canvasSize.width-D:F.bounds.left<=Qe&&F.direction===Tt.left&&(F.particle.position.x=D),F.outMode===Bt.split&&F.particle.destroy()}function xh(F){if(F.outMode!==Bt.bounce&&F.outMode!==Bt.split||F.direction!==Tt.bottom&&F.direction!==Tt.top)return;F.bounds.bottomF.canvasSize.height&&F.direction===Tt.bottom&&(F.particle.position.y=F.canvasSize.height-F.size-F.offset.y);const T=F.particle.velocity.y;let O=!1;if(F.direction===Tt.bottom&&F.bounds.bottom>=F.canvasSize.height&&T>Fi||F.direction===Tt.top&&F.bounds.top<=Qe&&T=F.canvasSize.height&&F.direction===Tt.bottom?F.particle.position.y=F.canvasSize.height-D:F.bounds.top<=Qe&&F.direction===Tt.top&&(F.particle.position.y=D),F.outMode===Bt.split&&F.particle.destroy()}class yh{constructor(T){this.container=T,this.modes=[Bt.bounce,Bt.split]}update(T,O,D,z){if(!this.modes.includes(z))return;const H=this.container;let c=!1;for(const[,r]of H.plugins)if(r.particleBounce!==void 0&&(c=r.particleBounce(T,D,O)),c)break;if(c)return;const y=T.getPosition(),t=T.offset,u=T.getRadius(),p=ys(y,u),a=H.canvas.size;gh({particle:T,outMode:z,direction:O,bounds:p,canvasSize:a,offset:t,size:u}),xh({particle:T,outMode:z,direction:O,bounds:p,canvasSize:a,offset:t,size:u})}}const xi=0;class Th{constructor(T){this.container=T,this.modes=[Bt.destroy]}update(T,O,D,z){if(!this.modes.includes(z))return;const H=this.container;switch(T.outType){case _t.normal:case _t.outside:if(zi(T.position,H.canvas.size,Qt.origin,T.getRadius(),O))return;break;case _t.inside:{const{dx:c,dy:y}=We(T.position,T.moveCenter),{x:t,y:u}=T.velocity;if(tT.moveCenter.radius||uT.moveCenter.radius||t>=xi&&c<-T.moveCenter.radius||u>=xi&&y<-T.moveCenter.radius)return;break}}H.particles.remove(T,void 0,!0)}}const yi=0;class Sh{constructor(T){this.container=T,this.modes=[Bt.none]}update(T,O,D,z){if(!this.modes.includes(z)||((T.options.move.distance.horizontal&&(O===Tt.left||O===Tt.right))??(T.options.move.distance.vertical&&(O===Tt.top||O===Tt.bottom))))return;const H=T.options.move.gravity,c=this.container,y=c.canvas.size,t=T.getRadius();if(H.enable){const u=T.position;(!H.inverse&&u.y>y.height+t&&O===Tt.bottom||H.inverse&&u.y<-t&&O===Tt.top)&&c.particles.remove(T)}else{if(T.velocity.y>yi&&T.position.y<=y.height+t||T.velocity.y=-t||T.velocity.x>yi&&T.position.x<=y.width+t||T.velocity.x=-t)return;zi(T.position,c.canvas.size,Qt.origin,t,O)||c.particles.remove(T)}}}const Ti=0,Si=0;class Ch{constructor(T){this.container=T,this.modes=[Bt.out]}update(T,O,D,z){if(!this.modes.includes(z))return;const H=this.container;switch(T.outType){case _t.inside:{const{x:c,y}=T.velocity,t=Qt.origin;t.length=T.moveCenter.radius,t.angle=T.velocity.angle+Math.PI,t.addTo(Qt.create(T.moveCenter));const{dx:u,dy:p}=We(T.position,t);if(c<=Ti&&u>=Si||y<=Ti&&p>=Si||c>=Ti&&u<=Si||y>=Ti&&p<=Si)return;T.position.x=Math.floor(Yt({min:0,max:H.canvas.size.width})),T.position.y=Math.floor(Yt({min:0,max:H.canvas.size.height}));const{dx:a,dy:r}=We(T.position,T.moveCenter);T.direction=Math.atan2(-r,-a),T.velocity.angle=T.direction;break}default:{if(zi(T.position,H.canvas.size,Qt.origin,T.getRadius(),O))return;switch(T.outType){case _t.outside:{T.position.x=Math.floor(Yt({min:-T.moveCenter.radius,max:T.moveCenter.radius}))+T.moveCenter.x,T.position.y=Math.floor(Yt({min:-T.moveCenter.radius,max:T.moveCenter.radius}))+T.moveCenter.y;const{dx:c,dy:y}=We(T.position,T.moveCenter);T.moveCenter.radius&&(T.direction=Math.atan2(y,c),T.velocity.angle=T.direction);break}case _t.normal:{const c=T.options.move.warp,y=H.canvas.size,t={bottom:y.height+T.getRadius()+T.offset.y,left:-T.getRadius()-T.offset.x,right:y.width+T.getRadius()+T.offset.x,top:-T.getRadius()-T.offset.y},u=T.getRadius(),p=ys(T.position,u);O===Tt.right&&p.left>y.width+T.offset.x?(T.position.x=t.left,T.initialPosition.x=T.position.x,c||(T.position.y=St()*y.height,T.initialPosition.y=T.position.y)):O===Tt.left&&p.right<-T.offset.x&&(T.position.x=t.right,T.initialPosition.x=T.position.x,c||(T.position.y=St()*y.height,T.initialPosition.y=T.position.y)),O===Tt.bottom&&p.top>y.height+T.offset.y?(c||(T.position.x=St()*y.width,T.initialPosition.x=T.position.x),T.position.y=t.top,T.initialPosition.y=T.position.y):O===Tt.top&&p.bottom<-T.offset.y&&(c||(T.position.x=St()*y.width,T.initialPosition.x=T.position.x),T.position.y=t.bottom,T.initialPosition.y=T.position.y);break}}break}}}}const Ci=(F,T)=>F.default===T||F.bottom===T||F.left===T||F.right===T||F.top===T;class Eh{constructor(T){this._updateOutMode=(O,D,z,H)=>{for(const c of this.updaters)c.update(O,H,D,z)},this.container=T,this.updaters=[]}init(T){this.updaters=[];const O=T.options.move.outModes;Ci(O,Bt.bounce)?this.updaters.push(new yh(this.container)):Ci(O,Bt.out)?this.updaters.push(new Ch(this.container)):Ci(O,Bt.destroy)?this.updaters.push(new Th(this.container)):Ci(O,Bt.none)&&this.updaters.push(new Sh(this.container))}isEnabled(T){return!T.destroyed&&!T.spawning}update(T,O){const D=T.options.move.outModes;this._updateOutMode(T,O,D.bottom??D.default,Tt.bottom),this._updateOutMode(T,O,D.left??D.default,Tt.left),this._updateOutMode(T,O,D.right??D.default,Tt.right),this._updateOutMode(T,O,D.top??D.default,Tt.top)}}async function Ph(F,T=!0){await F.addParticleUpdater("outModes",O=>Promise.resolve(new Eh(O)),T)}const Me=0;class Mh{init(T){const O=T.container,D=T.options.size,z=D.animation;z.enable&&(T.size.velocity=(T.retina.sizeAnimationSpeed??O.retina.sizeAnimationSpeed)/Nt*O.retina.reduceFactor,z.sync||(T.size.velocity*=St()))}isEnabled(T){return!T.destroyed&&!T.spawning&&T.size.enable&&((T.size.maxLoops??Me)<=Me||(T.size.maxLoops??Me)>Me&&(T.size.loops??Me)<(T.size.maxLoops??Me))}reset(T){T.size.loops=Me}update(T,O){this.isEnabled(T)&&bi(T,T.size,!0,T.options.size.animation.destroy,O)}}async function Ah(F,T=!0){await F.addParticleUpdater("size",()=>Promise.resolve(new Mh),T)}async function Rh(F,T=!0){await nh(F,!1),await dh(F,!1),await ch(F,!1),await mh(F,!1),await Ph(F,!1),await Ah(F,!1),await F.refresh(T)}function Xi(F,T){if(!T.segments.length||!T.segments[0].values.length)return;const{context:O,radius:D}=F;O.moveTo(T.segments[0].values[0].x*D,T.segments[0].values[0].y*D);for(const z of T.segments)O.bezierCurveTo(z.values[1].x*D,z.values[1].y*D,z.values[2].x*D,z.values[2].y*D,z.values[3].x*D,z.values[3].y*D);for(let z=T.segments.length-1;z>=0;z--){const H=T.segments[z];O.bezierCurveTo(-H.values[2].x*D,H.values[2].y*D,-H.values[1].x*D,H.values[1].y*D,-H.values[0].x*D,H.values[0].y*D)}}const st=1/2,Vi={heart:{segments:[{values:[{x:0,y:st},{x:0,y:st},{x:st,y:0},{x:st,y:-st/2}]},{values:[{x:st,y:-st/2},{x:st,y:-st/2},{x:st,y:-st},{x:st/2,y:-st}]},{values:[{x:st/2,y:-st},{x:st/2,y:-st},{x:0,y:-st},{x:0,y:-st/2}]}]},diamond:{segments:[{values:[{x:0,y:st},{x:0,y:st},{x:3*st/4,y:0},{x:3*st/4,y:0}]},{values:[{x:3*st/4,y:0},{x:3*st/4,y:0},{x:0,y:-st},{x:0,y:-st}]}]},club:{segments:[{values:[{x:0,y:-st},{x:0,y:-st},{x:st/2,y:-st},{x:st/2,y:-st/2}]},{values:[{x:st/2,y:-st/2},{x:st/2,y:-st/2},{x:st,y:-st/2},{x:st,y:0}]},{values:[{x:st,y:0},{x:st,y:0},{x:st,y:st/2},{x:st/2,y:st/2}]},{values:[{x:st/2,y:st/2},{x:st/2,y:st/2},{x:st/8,y:st/2},{x:st/8,y:st/8}]},{values:[{x:st/8,y:st/8},{x:st/8,y:st/2},{x:st/2,y:st},{x:st/2,y:st}]},{values:[{x:st/2,y:st},{x:st/2,y:st},{x:0,y:st},{x:0,y:st}]}]},spade:{segments:[{values:[{x:0,y:-st},{x:0,y:-st},{x:st,y:-st/2},{x:st,y:0}]},{values:[{x:st,y:0},{x:st,y:0},{x:st,y:st/2},{x:st/2,y:st/2}]},{values:[{x:st/2,y:st/2},{x:st/2,y:st/2},{x:st/8,y:st/2},{x:st/8,y:st/8}]},{values:[{x:st/8,y:st/8},{x:st/8,y:st/2},{x:st/2,y:st},{x:st/2,y:st}]},{values:[{x:st/2,y:st},{x:st/2,y:st},{x:0,y:st},{x:0,y:st}]}]}};class Fh{constructor(){this.validTypes=["club","clubs"]}draw(T){Xi(T,Vi.club)}}class Lh{constructor(){this.validTypes=["diamond","diamonds"]}draw(T){Xi(T,Vi.diamond)}}let Oh=class{constructor(){this.validTypes=["heart","hearts"]}draw(T){Xi(T,Vi.heart)}};class wh{constructor(){this.validTypes=["spade","spades"]}draw(T){Xi(T,Vi.spade)}}async function Dh(F,T=!0){await F.addShape(new wh,T),await F.addShape(new Oh,T),await F.addShape(new Lh,T),await F.addShape(new Fh,T)}function Ih(F){const{context:T,particle:O,radius:D,opacity:z}=F,H=O.emojiData,c=2,y=D*c,t=T.globalAlpha;H&&(T.globalAlpha=z,T.drawImage(H,-D,-D,y,y),T.globalAlpha=t)}const sn='"Twemoji Mozilla", Apple Color Emoji, "Segoe UI Emoji", "Noto Color Emoji", "EmojiOne Color"';class Bh{constructor(){this.validTypes=["emoji"],this._emojiShapeDict=new Map}destroy(){for(const[T,O]of this._emojiShapeDict)O instanceof ImageBitmap&&(O==null||O.close(),this._emojiShapeDict.delete(T))}draw(T){Ih(T)}async init(T){const O=T.actualOptions,{validTypes:D}=this;if(!D.find(c=>xs(c,O.particles.shape.type)))return;const z=[Fs(sn)],H=D.map(c=>O.particles.shape.options[c]).find(c=>!!c);H&&ue(H,c=>{c.font&&z.push(Fs(c.font))}),await Promise.all(z)}particleDestroy(T){delete T.emojiData}particleInit(T,O){const z=O.shapeData;if(!(z!=null&&z.value))return;const H=ie(z.value,O.randomIndexData),c=z.font??sn;if(!H)return;const y=`${H}_${c}`,t=this._emojiShapeDict.get(y);if(t){O.emojiData=t;return}const u=Ie(O.size.value)*2;let p;const a=Ie(O.size.value);if(typeof OffscreenCanvas<"u"){const r=new OffscreenCanvas(u,u),n=r.getContext("2d");if(!n)return;n.font=`400 ${a*2}px ${c}`,n.textBaseline="middle",n.textAlign="center",n.fillText(H,a,a),p=r.transferToImageBitmap()}else{const r=document.createElement("canvas");r.width=u,r.height=u;const n=r.getContext("2d");if(!n)return;n.font=`400 ${a*2}px ${c}`,n.textBaseline="middle",n.textAlign="center",n.fillText(H,a,a),p=r}this._emojiShapeDict.set(y,p),O.emojiData=p}}async function Gh(F,T=!0){await F.addShape(new Bh,T)}const Nh=.5,zh=2;function bh(F){const{context:T,radius:O}=F,D=O*zh,z=O*Nh,H=O+z,c=-O,y=-O;T.moveTo(c,y+z),T.quadraticCurveTo(c,y,c+z,y),T.quadraticCurveTo(c+O,y,c+O,y+z),T.quadraticCurveTo(c+O,y,c+H,y),T.quadraticCurveTo(c+D,y,c+D,y+z),T.quadraticCurveTo(c+D,y+O,c+H,y+H),T.lineTo(c+O,y+D),T.lineTo(c+z,y+H),T.quadraticCurveTo(c,y+O,c,y+z)}class Uh{constructor(){this.validTypes=["heart"]}draw(T){bh(T)}}async function Xh(F,T=!0){await F.addShape(new Uh,T)}const Vh=0,Yh=1,Wh=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi;function Hh(F,T,O){const{svgData:D}=F;if(!D)return"";const z=rs(T,O);if(D.includes("fill"))return D.replace(Wh,()=>z);const H=D.indexOf(">");return`${D.substring(Vh,H)} fill="${z}"${D.substring(H)}`}async function Yi(F){return new Promise(T=>{F.loading=!0;const O=new Image;F.element=O,O.addEventListener("load",()=>{F.loading=!1,T()}),O.addEventListener("error",()=>{F.element=void 0,F.error=!0,F.loading=!1,Be().error(`${$t} loading image: ${F.source}`),T()}),O.src=F.source})}async function Kh(F){if(F.type!=="svg"){await Yi(F);return}F.loading=!0;const T=await fetch(F.source);T.ok?F.svgData=await T.text():(Be().error(`${$t} Image not found`),F.error=!0),F.loading=!1}function Zh(F,T,O,D){var c;const z=Hh(F,O,((c=D.opacity)==null?void 0:c.value)??Yh),H={color:O,gif:T.gif,data:{...F,svgData:z},loaded:!1,ratio:T.width/T.height,replaceColor:T.replaceColor,source:T.src};return new Promise(y=>{const t=new Blob([z],{type:"image/svg+xml"}),u=URL||window.URL||window.webkitURL||window,p=u.createObjectURL(t),a=new Image;a.addEventListener("load",()=>{H.loaded=!0,H.element=a,y(H),u.revokeObjectURL(p)});const r=async()=>{u.revokeObjectURL(p);const n={...F,error:!1,loading:!0};await Yi(n),H.loaded=!0,H.element=n.element,y(H)};a.addEventListener("error",()=>void r()),a.src=p})}const qi=[0,4,2,1],nn=[8,8,4,2];class Jh{constructor(T){this.pos=0,this.data=new Uint8ClampedArray(T)}getString(T){const O=this.data.slice(this.pos,this.pos+T);return this.pos+=O.length,O.reduce((D,z)=>D+String.fromCharCode(z),"")}nextByte(){return this.data[this.pos++]}nextTwoBytes(){return this.pos+=2,this.data[this.pos-2]+(this.data[this.pos-1]<<8)}readSubBlocks(){let T="",O=0;const D=0,z=0;do{O=this.data[this.pos++];for(let H=O;--H>=D;T+=String.fromCharCode(this.data[this.pos++]));}while(O!==z);return T}readSubBlocksBin(){let T=this.data[this.pos],O=0;const D=0,z=1;for(let c=0;T!==D;c+=T+z,T=this.data[this.pos+c])O+=T;const H=new Uint8Array(O);T=this.data[this.pos++];for(let c=0;T!==D;T=this.data[this.pos++])for(let y=T;--y>=D;H[c++]=this.data[this.pos++]);return H}skipSubBlocks(){for(const T=1,O=0;this.data[this.pos]!==O;this.pos+=this.data[this.pos]+T);this.pos++}}var jt;(function(F){F[F.Replace=0]="Replace",F[F.Combine=1]="Combine",F[F.RestoreBackground=2]="RestoreBackground",F[F.RestorePrevious=3]="RestorePrevious",F[F.UndefinedA=4]="UndefinedA",F[F.UndefinedB=5]="UndefinedB",F[F.UndefinedC=6]="UndefinedC",F[F.UndefinedD=7]="UndefinedD"})(jt||(jt={}));var ae;(function(F){F[F.Extension=33]="Extension",F[F.ApplicationExtension=255]="ApplicationExtension",F[F.GraphicsControlExtension=249]="GraphicsControlExtension",F[F.PlainTextExtension=1]="PlainTextExtension",F[F.CommentExtension=254]="CommentExtension",F[F.Image=44]="Image",F[F.EndOfFile=59]="EndOfFile"})(ae||(ae={}));const Vt={x:0,y:0},Qh=0,rn=.5,$h=0,an=0,us=0;function jn(F,T){const O=[];for(let D=0;D>>5,z.disposalMethod=(H&28)>>>2,z.userInputDelayFlag=(H&2)===2;const c=(H&1)===1;z.delayTime=F.nextTwoBytes()*10;const y=F.nextByte();c&&D(y),F.pos++;break}case ae.ApplicationExtension:{F.pos++;const z={identifier:F.getString(8),authenticationCode:F.getString(3),data:F.readSubBlocksBin()};T.applicationExtensions.push(z);break}case ae.CommentExtension:{T.comments.push([O(!1),F.readSubBlocks()]);break}case ae.PlainTextExtension:{if(T.globalColorTable.length===0)throw new EvalError("plain text extension without global color table");F.pos++,T.frames[O(!1)].plainTextData={left:F.nextTwoBytes(),top:F.nextTwoBytes(),width:F.nextTwoBytes(),height:F.nextTwoBytes(),charSize:{width:F.nextTwoBytes(),height:F.nextTwoBytes()},foregroundColor:F.nextByte(),backgroundColor:F.nextByte(),text:F.readSubBlocks()};break}default:F.skipSubBlocks();break}}async function kh(F,T,O,D,z,H){const c=T.frames[D(!0)];c.left=F.nextTwoBytes(),c.top=F.nextTwoBytes(),c.width=F.nextTwoBytes(),c.height=F.nextTwoBytes();const y=F.nextByte(),t=(y&128)===128,u=(y&64)===64;c.sortFlag=(y&32)===32,c.reserved=(y&24)>>>3;const p=1<<(y&7)+1;t&&(c.localColorTable=jn(F,p));const a=i=>{const{r:o,g:l,b:f}=(t?c.localColorTable:T.globalColorTable)[i];return i!==z(null)?{r:o,g:l,b:f,a:255}:{r:o,g:l,b:f,a:O?~~((o+l+f)/3):0}},r=(()=>{try{return new ImageData(c.width,c.height,{colorSpace:"srgb"})}catch(i){if(i instanceof DOMException&&i.name==="IndexSizeError")return null;throw i}})();if(r==null)throw new EvalError("GIF frame size is to large");const n=F.nextByte(),e=F.readSubBlocksBin(),s=1<{const l=i>>>3,f=i&7;return(e[l]+(e[l+1]<<8)+(e[l+2]<<16)&(1<>>f};if(u){for(let i=0,o=n+1,l=0,f=[[0]],d=0;d<4;d++)if(qi[d]=f.length?f.push(f[x].concat(f[x][0])):x!==s&&f.push(f[x].concat(f[i][0]));for(const S of f[i]){const{r:C,g:E,b:P,a:R}=a(S);r.data.set([C,E,P,R],qi[d]*c.width+nn[d]*m+v%(c.width*4)),v+=4}f.length===1<=c.height&&(g=!0))}}c.image=r,c.bitmap=await createImageBitmap(r)}else{let i=0,o=n+1,l=0,f=-4,d=!1;const v=[[0]];for(;!d;){const m=i;if(i=h(l,o),l+=o,i===s){o=n+1,v.length=s+2;for(let g=0;g=v.length?v.push(v[m].concat(v[m][0])):m!==s&&v.push(v[m].concat(v[i][0]));for(const g of v[i]){const{r:x,g:S,b:C,a:E}=a(g);r.data.set([x,S,C,E],f+=4)}v.length>=1<>>4,H.sortFlag=(y&8)===8;const u=1<<(y&7)+1,p=c.nextByte();H.pixelAspectRatio=c.nextByte(),H.pixelAspectRatio!==0&&(H.pixelAspectRatio=(H.pixelAspectRatio+15)/64),t&&(H.globalColorTable=jn(c,u));const a=(()=>{try{return new ImageData(H.width,H.height,{colorSpace:"srgb"})}catch(f){if(f instanceof DOMException&&f.name==="IndexSizeError")return null;throw f}})();if(a==null)throw new Error("GIF frame size is to large");const{r,g:n,b:e}=H.globalColorTable[p];a.data.set(t?[r,n,e,255]:[0,0,0,0]);for(let f=4;f(f&&(h=!0),s),l=f=>(f!=null&&(i=f),i);try{do h&&(H.frames.push({left:0,top:0,width:0,height:0,disposalMethod:jt.Replace,image:new ImageData(1,1,{colorSpace:"srgb"}),plainTextData:null,userInputDelayFlag:!1,delayTime:0,sortFlag:!1,localColorTable:[],reserved:0,GCreserved:0}),s++,i=-1,h=!1);while(!await qh(c,H,O,o,l,T));H.frames.length--;for(const f of H.frames){if(f.userInputDelayFlag&&f.delayTime===0){H.totalTime=1/0;break}H.totalTime+=f.delayTime}return H}catch(f){throw f instanceof EvalError?new Error(`error while parsing frame ${s} "${f.message}"`):f}}function el(F){const{context:T,radius:O,particle:D,delta:z}=F,H=D.image;if(!(H!=null&&H.gifData)||!H.gif)return;const c=new OffscreenCanvas(H.gifData.width,H.gifData.height),y=c.getContext("2d");if(!y)throw new Error("could not create offscreen canvas context");y.imageSmoothingQuality="low",y.imageSmoothingEnabled=!1,y.clearRect(Vt.x,Vt.y,c.width,c.height),D.gifLoopCount===void 0&&(D.gifLoopCount=H.gifLoopCount??us);let t=D.gifFrame??Qh;const u={x:-H.gifData.width*rn,y:-H.gifData.height*rn},p=H.gifData.frames[t];if(D.gifTime===void 0&&(D.gifTime=$h),!!p.bitmap){switch(T.scale(O/H.gifData.width,O/H.gifData.height),p.disposalMethod){case jt.UndefinedA:case jt.UndefinedB:case jt.UndefinedC:case jt.UndefinedD:case jt.Replace:y.drawImage(p.bitmap,p.left,p.top),T.drawImage(c,u.x,u.y),y.clearRect(Vt.x,Vt.y,c.width,c.height);break;case jt.Combine:y.drawImage(p.bitmap,p.left,p.top),T.drawImage(c,u.x,u.y);break;case jt.RestoreBackground:y.drawImage(p.bitmap,p.left,p.top),T.drawImage(c,u.x,u.y),y.clearRect(Vt.x,Vt.y,c.width,c.height),H.gifData.globalColorTable.length?y.putImageData(H.gifData.backgroundImage,u.x,u.y):y.putImageData(H.gifData.frames[an].image,u.x+p.left,u.y+p.top);break;case jt.RestorePrevious:{const a=y.getImageData(Vt.x,Vt.y,c.width,c.height);y.drawImage(p.bitmap,p.left,p.top),T.drawImage(c,u.x,u.y),y.clearRect(Vt.x,Vt.y,c.width,c.height),y.putImageData(a,Vt.x,Vt.y)}break}if(D.gifTime+=z.value,D.gifTime>p.delayTime){if(D.gifTime-=p.delayTime,++t>=H.gifData.frames.length){if(--D.gifLoopCount<=us)return;t=an,y.clearRect(Vt.x,Vt.y,c.width,c.height)}D.gifFrame=t}T.scale(H.gifData.width/O,H.gifData.height/O)}}async function il(F){if(F.type!=="gif"){await Yi(F);return}F.loading=!0;try{F.gifData=await tl(F.source),F.gifLoopCount=_h(F.gifData)??us,F.gifLoopCount||(F.gifLoopCount=1/0)}catch{F.error=!0}F.loading=!1}const sl=2,nl=1,rl=12,al=1;class ol{constructor(T){this.validTypes=["image","images"],this.loadImageShape=async O=>{if(!this._engine.loadImage)throw new Error(`${$t} image shape not initialized`);await this._engine.loadImage({gif:O.gif,name:O.name,replaceColor:O.replaceColor??!1,src:O.src})},this._engine=T}addImage(T){this._engine.images||(this._engine.images=[]),this._engine.images.push(T)}draw(T){const{context:O,radius:D,particle:z,opacity:H}=T,c=z.image,y=c==null?void 0:c.element;if(c){if(O.globalAlpha=H,c.gif&&c.gifData)el(T);else if(y){const t=c.ratio,u={x:-D,y:-D},p=D*sl;O.drawImage(y,u.x,u.y,p,p/t)}O.globalAlpha=nl}}getSidesCount(){return rl}async init(T){const O=T.actualOptions;if(!(!O.preload||!this._engine.loadImage))for(const D of O.preload)await this._engine.loadImage(D)}loadShape(T){if(T.shape!=="image"&&T.shape!=="images")return;this._engine.images||(this._engine.images=[]);const O=T.shapeData;if(!O)return;this._engine.images.find(z=>z.name===O.name||z.source===O.src)||this.loadImageShape(O).then(()=>{this.loadShape(T)})}particleInit(T,O){if(O.shape!=="image"&&O.shape!=="images")return;this._engine.images||(this._engine.images=[]);const D=this._engine.images,z=O.shapeData;if(!z)return;const H=O.getFillColor(),c=D.find(t=>t.name===z.name||t.source===z.src);if(!c)return;const y=z.replaceColor??c.replaceColor;if(c.loading){setTimeout(()=>{this.particleInit(T,O)});return}(async()=>{let t;c.svgData&&H?t=await Zh(c,z,H,O):t={color:H,data:c,element:c.element,gif:c.gif,gifData:c.gifData,gifLoopCount:c.gifLoopCount,loaded:!0,ratio:z.width&&z.height?z.width/z.height:c.ratio??al,replaceColor:y,source:z.src},t.ratio||(t.ratio=1);const u=z.fill??O.shapeFill,p=z.close??O.shapeClose,a={image:t,fill:u,close:p};O.image=a.image,O.shapeFill=a.fill,O.shapeClose=a.close})()}}class hl{constructor(){this.src="",this.gif=!1}load(T){T&&(T.gif!==void 0&&(this.gif=T.gif),T.height!==void 0&&(this.height=T.height),T.name!==void 0&&(this.name=T.name),T.replaceColor!==void 0&&(this.replaceColor=T.replaceColor),T.src!==void 0&&(this.src=T.src),T.width!==void 0&&(this.width=T.width))}}class ll{constructor(T){this.id="imagePreloader",this._engine=T}async getPlugin(){return await Promise.resolve(),{}}loadOptions(T,O){if(!(O!=null&&O.preload))return;T.preload||(T.preload=[]);const D=T.preload;for(const z of O.preload){const H=D.find(c=>c.name===z.name||c.src===z.src);if(H)H.load(z);else{const c=new hl;c.load(z),D.push(c)}}}needsPlugin(){return!0}}const ul=3;function fl(F){F.loadImage||(F.loadImage=async T=>{if(!T.name&&!T.src)throw new Error(`${$t} no image source provided`);if(F.images||(F.images=[]),!F.images.find(O=>O.name===T.name||O.source===T.src))try{const O={gif:T.gif??!1,name:T.name??T.src,source:T.src,type:T.src.substring(T.src.length-ul),error:!1,loading:!0,replaceColor:T.replaceColor,ratio:T.width&&T.height?T.width/T.height:void 0};F.images.push(O);let D;T.gif?D=il:D=T.replaceColor?Kh:Yi,await D(O)}catch{throw new Error(`${$t} ${T.name??T.src} not found`)}})}async function dl(F,T=!0){fl(F);const O=new ll(F);await F.addPlugin(O,T),await F.addShape(new ol(F),T)}class vl extends ye{constructor(){super(),this.sync=!1}load(T){T&&(super.load(T),T.sync!==void 0&&(this.sync=T.sync))}}class cl extends ye{constructor(){super(),this.sync=!1}load(T){T&&(super.load(T),T.sync!==void 0&&(this.sync=T.sync))}}class pl{constructor(){this.count=0,this.delay=new vl,this.duration=new cl}load(T){T&&(T.count!==void 0&&(this.count=T.count),this.delay.load(T.delay),this.duration.load(T.duration))}}const ze=0,ml=-1,on=0,hn=0;function gl(F,T,O){if(!F.life)return;const D=F.life;let z=!1;if(F.spawning)if(D.delayTime+=T.value,D.delayTime>=F.life.delay)z=!0,F.spawning=!1,D.delayTime=ze,D.time=ze;else return;if(D.duration===ml||F.spawning||(z?D.time=ze:D.time+=T.value,D.timeon&&F.life.count--,F.life.count===on){F.destroy();return}const H=mt(hn,O.width),c=mt(hn,O.width);F.position.x=Yt(H),F.position.y=Yt(c),F.spawning=!0,D.delayTime=ze,D.time=ze,F.reset();const y=F.options.life;y&&(D.delay=lt(y.delay.value)*Dt,D.duration=lt(y.duration.value)*Dt)}const Ae=0,ln=1,un=-1;class xl{constructor(T){this.container=T}init(T){const O=this.container,D=T.options,z=D.life;z&&(T.life={delay:O.retina.reduceFactor?lt(z.delay.value)*(z.delay.sync?ln:St())/O.retina.reduceFactor*Dt:Ae,delayTime:Ae,duration:O.retina.reduceFactor?lt(z.duration.value)*(z.duration.sync?ln:St())/O.retina.reduceFactor*Dt:Ae,time:Ae,count:z.count},T.life.duration<=Ae&&(T.life.duration=un),T.life.count<=Ae&&(T.life.count=un),T.life&&(T.spawning=T.life.delay>Ae))}isEnabled(T){return!T.destroyed}loadOptions(T,...O){T.life||(T.life=new pl);for(const D of O)T.life.load(D==null?void 0:D.life)}update(T,O){!this.isEnabled(T)||!T.life||gl(T,O,this.container.canvas.size)}}async function yl(F,T=!0){await F.addParticleUpdater("life",async O=>Promise.resolve(new xl(O)),T)}class Tl{constructor(){this.factor=4,this.value=!0}load(T){T&&(T.factor!==void 0&&(this.factor=T.factor),T.value!==void 0&&(this.value=T.value))}}class Sl{constructor(){this.disable=!1,this.reduce=new Tl}load(T){T&&(T.disable!==void 0&&(this.disable=T.disable),this.reduce.load(T.reduce))}}const fn=1,Cl=0,El=1;class Pl{constructor(T,O){this._handleMotionChange=D=>{const z=this._container,H=z.actualOptions.motion;H&&(D.matches?H.disable?z.retina.reduceFactor=Cl:z.retina.reduceFactor=H.reduce.value?El/H.reduce.factor:fn:z.retina.reduceFactor=1)},this._container=T,this._engine=O}async init(){const T=this._container,O=T.actualOptions.motion;if(!(O&&(O.disable||O.reduce.value))){T.retina.reduceFactor=1;return}const D=gs("(prefers-reduced-motion: reduce)");if(!D){T.retina.reduceFactor=fn;return}this._handleMotionChange(D);const z=()=>{(async()=>{this._handleMotionChange(D);try{await T.refresh()}catch{}})()};D.addEventListener!==void 0?D.addEventListener("change",z):D.addListener!==void 0&&D.addListener(z),await Promise.resolve()}}class Ml{constructor(T){this.id="motion",this._engine=T}getPlugin(T){return Promise.resolve(new Pl(T,this._engine))}loadOptions(T,O){if(!this.needsPlugin())return;let D=T.motion;D!=null&&D.load||(T.motion=D=new Sl),D.load(O==null?void 0:O.motion)}needsPlugin(){return!0}}async function Al(F,T=!0){await F.addPlugin(new Ml(F),T)}const Rl=180,Ei={x:0,y:0},Fl=2;function Ll(F,T,O){const{context:D}=F,z=O.count.numerator*O.count.denominator,H=O.count.numerator/O.count.denominator,c=Rl*(H-Fl)/H,y=Math.PI-oe(c);if(D){D.beginPath(),D.translate(T.x,T.y),D.moveTo(Ei.x,Ei.y);for(let t=0;t=oi?ce.darken:ce.enlighten;F.roll.alter={type:O,value:lt(O===ce.darken?T.darken.value:T.enlighten.value)}}else T.darken.enable?F.roll.alter={type:ce.darken,value:lt(T.darken.value)}:T.enlighten.enable&&(F.roll.alter={type:ce.enlighten,value:lt(T.enlighten.value)})}function Wl(F,T){const O=F.options.roll,D=F.roll;if(!D||!(O!=null&&O.enable))return;const z=D.speed*T.factor,H=qn;D.angle+=z,D.angle>H&&(D.angle-=H)}class cn{constructor(){this.enable=!1,this.value=0}load(T){T&&(T.enable!==void 0&&(this.enable=T.enable),T.value!==void 0&&(this.value=mt(T.value)))}}class Hl{constructor(){this.darken=new cn,this.enable=!1,this.enlighten=new cn,this.mode=De.vertical,this.speed=25}load(T){T&&(T.backColor!==void 0&&(this.backColor=re.create(this.backColor,T.backColor)),this.darken.load(T.darken),T.enable!==void 0&&(this.enable=T.enable),this.enlighten.load(T.enlighten),T.mode!==void 0&&(this.mode=T.mode),T.speed!==void 0&&(this.speed=mt(T.speed)))}}class Kl{getTransformValues(T){var H;const O=((H=T.roll)==null?void 0:H.enable)&&T.roll,D=O&&O.horizontal,z=O&&O.vertical;return{a:D?Math.cos(O.angle):void 0,d:z?Math.sin(O.angle):void 0}}init(T){Yl(T)}isEnabled(T){const O=T.options.roll;return!T.destroyed&&!T.spawning&&!!(O!=null&&O.enable)}loadOptions(T,...O){T.roll||(T.roll=new Hl);for(const D of O)T.roll.load(D==null?void 0:D.roll)}update(T,O){this.isEnabled(T)&&Wl(T,O)}}async function Zl(F,T=!0){await F.addParticleUpdater("roll",()=>Promise.resolve(new Kl),T)}class Jl{constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(T){T&&(T.enable!==void 0&&(this.enable=T.enable),T.speed!==void 0&&(this.speed=mt(T.speed)),T.decay!==void 0&&(this.decay=mt(T.decay)),T.sync!==void 0&&(this.sync=T.sync))}}class Ql extends ye{constructor(){super(),this.animation=new Jl,this.direction=Jt.clockwise,this.path=!1,this.value=0}load(T){T&&(super.load(T),T.direction!==void 0&&(this.direction=T.direction),this.animation.load(T.animation),T.path!==void 0&&(this.path=T.path))}}const _n=2,$l=Math.PI*_n,jl=1,kl=360;class ql{constructor(T){this.container=T}init(T){const O=T.options.rotate;if(!O)return;T.rotate={enable:O.animation.enable,value:oe(lt(O.value)),min:0,max:$l},T.pathRotation=O.path;let D=O.direction;switch(D===Jt.random&&(D=Math.floor(St()*_n)>0?Jt.counterClockwise:Jt.clockwise),D){case Jt.counterClockwise:case"counterClockwise":T.rotate.status=Ot.decreasing;break;case Jt.clockwise:T.rotate.status=Ot.increasing;break}const z=O.animation;z.enable&&(T.rotate.decay=jl-lt(z.decay),T.rotate.velocity=lt(z.speed)/kl*this.container.retina.reduceFactor,z.sync||(T.rotate.velocity*=St())),T.rotation=T.rotate.value}isEnabled(T){const O=T.options.rotate;return O?!T.destroyed&&!T.spawning&&(!!O.value||O.animation.enable||O.path):!1}loadOptions(T,...O){T.rotate||(T.rotate=new Ql);for(const D of O)T.rotate.load(D==null?void 0:D.rotate)}update(T,O){this.isEnabled(T)&&(T.isRotating=!!T.rotate,T.rotate&&(bi(T,T.rotate,!1,xe.none,O),T.rotation=T.rotate.value))}}async function _l(F,T=!0){await F.addParticleUpdater("rotate",O=>Promise.resolve(new ql(O)),T)}const tu=2,eu=Math.sqrt(tu),iu=2;function su(F){const{context:T,radius:O}=F,D=O/eu,z=D*iu;T.rect(-D,-D,z,z)}const nu=4;class ru{constructor(){this.validTypes=["edge","square"]}draw(T){su(T)}getSidesCount(){return nu}}async function au(F,T=!0){await F.addShape(new ru,T)}const ou=2,be={x:0,y:0};function hu(F){const{context:T,particle:O,radius:D}=F,z=O.sides,H=O.starInset??ou;T.moveTo(be.x,be.y-D);for(let c=0;c=oi?ai:-ai,cosDirection:St()>=oi?ai:-ai,min:0,max:pu};let D=O.direction;switch(D===ge.random&&(D=Math.floor(St()*tr)>0?ge.counterClockwise:ge.clockwise),D){case ge.counterClockwise:case"counterClockwise":T.tilt.status=Ot.decreasing;break;case ge.clockwise:T.tilt.status=Ot.increasing;break}const z=(H=T.options.tilt)==null?void 0:H.animation;z!=null&&z.enable&&(T.tilt.decay=ai-lt(z.decay),T.tilt.velocity=lt(z.speed)/mu*this.container.retina.reduceFactor,z.sync||(T.tilt.velocity*=St()))}isEnabled(T){var D;const O=(D=T.options.tilt)==null?void 0:D.animation;return!T.destroyed&&!T.spawning&&!!(O!=null&&O.enable)}loadOptions(T,...O){T.tilt||(T.tilt=new cu);for(const D of O)T.tilt.load(D==null?void 0:D.tilt)}async update(T,O){!this.isEnabled(T)||!T.tilt||(bi(T,T.tilt,!1,xe.none,O),await Promise.resolve())}}async function xu(F,T=!0){await F.addParticleUpdater("tilt",O=>Promise.resolve(new gu(O)),T)}class yu{constructor(){this.angle=50,this.move=10}load(T){T&&(T.angle!==void 0&&(this.angle=mt(T.angle)),T.move!==void 0&&(this.move=mt(T.move)))}}class Tu{constructor(){this.distance=5,this.enable=!1,this.speed=new yu}load(T){if(T&&(T.distance!==void 0&&(this.distance=mt(T.distance)),T.enable!==void 0&&(this.enable=T.enable),T.speed!==void 0))if(ne(T.speed))this.speed.load({angle:T.speed});else{const O=T.speed;O.min!==void 0?this.speed.load({angle:O}):this.speed.load(T.speed)}}}const Su=0,Cu=2,Eu=Math.PI*Cu,Pu=60;function Mu(F,T){const{wobble:O}=F.options,{wobble:D}=F;if(!(O!=null&&O.enable)||!D)return;const z=D.angleSpeed*T.factor,H=D.moveSpeed*T.factor,c=H*((F.retina.wobbleDistance??Su)*T.factor)/(Dt/Pu),y=Eu,{position:t}=F;D.angle+=z,D.angle>y&&(D.angle-=y),t.x+=c*Math.cos(D.angle),t.y+=c*Math.abs(Math.sin(D.angle))}const Au=2,Ru=Math.PI*Au,Fu=360,Lu=10,Ou=0;class wu{constructor(T){this.container=T}init(T){const O=T.options.wobble;O!=null&&O.enable?T.wobble={angle:St()*Ru,angleSpeed:lt(O.speed.angle)/Fu,moveSpeed:lt(O.speed.move)/Lu}:T.wobble={angle:0,angleSpeed:0,moveSpeed:0},T.retina.wobbleDistance=lt((O==null?void 0:O.distance)??Ou)*this.container.retina.pixelRatio}isEnabled(T){var O;return!T.destroyed&&!T.spawning&&!!((O=T.options.wobble)!=null&&O.enable)}loadOptions(T,...O){T.wobble||(T.wobble=new Tu);for(const D of O)T.wobble.load(D==null?void 0:D.wobble)}update(T,O){this.isEnabled(T)&&Mu(T,O)}}async function Du(F,T=!0){await F.addParticleUpdater("wobble",O=>Promise.resolve(new wu(O)),T)}const pn=9.81,mn=5,gn=3,xn=1,yn=0,Tn=0;let _i=!1,ts=!1;const es=new Map;async function Cs(F){if(!_i){if(ts)return new Promise(T=>{const D=setInterval(()=>{_i&&(clearInterval(D),T())},100)});ts=!0,await Ko(F,!1),await Al(F,!1),await Dh(F,!1),await Xh(F,!1),await dl(F,!1),await Ul(F,!1),await au(F,!1),await du(F,!1),await Gh(F,!1),await _l(F,!1),await yl(F,!1),await Zl(F,!1),await xu(F,!1),await Du(F,!1),await Rh(F),ts=!1,_i=!0}}async function er(F){const T=new Zo;T.load(F.options);let O;const D=120,z=3.6,H=T.ticks*Dt/(z*Dt*D);if(es.has(F.id)&&(O=es.get(F.id),O&&!O.destroyed)){const y=O;if(y.addEmitter){await y.addEmitter({startCount:T.count,position:T.position,size:{width:0,height:0},rate:{delay:0,quantity:0},life:{duration:.1,count:1},particles:{color:{value:T.colors},shape:{type:T.shapes,options:T.shapeOptions},life:{count:1},opacity:{value:{min:0,max:1},animation:{enable:!0,sync:!0,speed:H,startValue:"max",destroy:"min"}},size:{value:mn*T.scalar},move:{angle:{value:T.spread,offset:0},drift:{min:-T.drift,max:T.drift},gravity:{acceleration:T.gravity*pn},speed:T.startVelocity*gn,decay:xn-T.decay,direction:-T.angle},rotate:{value:T.flat?yn:{min:0,max:360},direction:"random",animation:{enable:!T.flat,speed:60}},tilt:{direction:"random",enable:!T.flat,value:T.flat?Tn:{min:0,max:360},animation:{enable:!0,speed:60}},roll:{darken:{enable:!0,value:25},enable:!T.flat,speed:{min:15,max:25}},wobble:{distance:30,enable:!T.flat,speed:{min:-15,max:15}}}});return}}const c={fullScreen:{enable:!F.canvas,zIndex:T.zIndex},fpsLimit:120,particles:{number:{value:0},color:{value:T.colors},shape:{type:T.shapes,options:T.shapeOptions},opacity:{value:{min:0,max:1},animation:{enable:!0,sync:!0,speed:H,startValue:"max",destroy:"min"}},size:{value:mn*T.scalar},links:{enable:!1},life:{count:1},move:{angle:{value:T.spread,offset:0},drift:{min:-T.drift,max:T.drift},enable:!0,gravity:{enable:!0,acceleration:T.gravity*pn},speed:T.startVelocity*gn,decay:xn-T.decay,direction:-T.angle,random:!0,straight:!1,outModes:{default:"none",bottom:"destroy"}},rotate:{value:T.flat?yn:{min:0,max:360},direction:"random",animation:{enable:!T.flat,speed:60}},tilt:{direction:"random",enable:!T.flat,value:T.flat?Tn:{min:0,max:360},animation:{enable:!0,speed:60}},roll:{darken:{enable:!0,value:25},enable:!T.flat,speed:{min:15,max:25}},wobble:{distance:30,enable:!T.flat,speed:{min:-15,max:15}}},detectRetina:!0,motion:{disable:T.disableForReducedMotion},emitters:{name:"confetti",startCount:T.count,position:T.position,size:{width:0,height:0},rate:{delay:0,quantity:0},life:{duration:.1,count:1}}};return O=await si.load({id:F.id,element:F.canvas,options:c}),es.set(F.id,O),O}async function ei(F,T){await Cs(si);let O,D;return he(F)?(D=F,O=T??{}):(D="confetti",O=F),er({id:D,options:O})}ei.create=async(F,T)=>{if(!F)return ei;await Cs(si);const O=F.getAttribute("id")??"confetti";return F.setAttribute("id",O),async(D,z)=>{let H,c;return he(D)?(c=D,H=z??T):(c=O,H=D),er({id:c,canvas:F,options:H})}};ei.init=async()=>{await Cs(si)};ei.version=si.version;ii()||(window.confetti=ei);function ir(F){const{children:T,onClick:O,...D}=F,z=se.createRef();function H(){const y=z.current;y.setColor("#2f4f4f"),y.setBackgroundColor("#fffff0")}function c(){const y=z.current;y.setColor("#fffff0"),y.setBackgroundColor("#2f4f4f")}return ee.jsx(se.Text,{...D,input:{cursor:"pointer"},onPointerDown:O,onPointerOver:H,onPointerOut:c,originX:.5,originY:.5,ref:z,style:{color:"#fffff0",fontFamily:"monospace",fontSize:"20px",backgroundColor:"#2f4f4f",padding:{x:20,y:10}},text:T})}class Iu extends kt.Scene{constructor(){super(wt.scene.end)}create(){const{centerX:T,centerY:O}=this.cameras.main;se.render(ee.jsxs(ee.Fragment,{children:[ee.jsx(se.Text,{text:"You Win!",x:T,y:O-100,style:{color:"black",fontSize:"36px"},originX:.5,originY:.5}),ee.jsx(ir,{x:T,y:O+100,onClick:this.restart,children:"Restart"})]}),this),ei("confetti")}restart(){ve(wt.audio.success,this);const T={level:0};this.scene.start(wt.scene.main,T)}}class Bu extends kt.Scene{constructor(){super(wt.scene.intro)}create(){const{centerX:T,centerY:O}=this.cameras.main;se.render(ee.jsxs(ee.Fragment,{children:[ee.jsx(se.Text,{text:"Linkit",x:T,y:O-100,style:{color:"black",fontSize:"48px"},originX:.5,originY:.5}),ee.jsx(ir,{x:T,y:O+100,onClick:this.startGame,children:"Start"})]}),this)}startGame(){ve(wt.audio.success,this);const T={level:0};this.scene.start(wt.scene.main,T)}}const Sn="CIRCLE_CONTAINER",Gu=0,Nu=0,zu=16,bu=0,Uu=360,Xu=!1;class Ye extends kt.GameObjects.Arc{constructor(T,O){super(T,Gu,Nu,zu,bu,Uu,Xu,O),T.add.existing(this),this.color=O;const D=O!==W;this.setOrigin(.5).setInteractive({useHandCursor:!0}).setActive(D).setVisible(D),Ye.getContainer(T).add(this),this.scene.game.device.os.desktop&&(this.on("pointerover",()=>{this.setScale(1.25)}),this.on("pointerout",()=>{this.setScale(1)}))}remove(){this.off("pointerover"),this.off("pointerout")}get absoluteX(){return this.parentContainer.x+this.x}get absoluteY(){return this.parentContainer.y+this.y}static setContainer(T){const O=T.add.container();return T.data.set(Sn,O),O}static getContainer(T){return T.data.get(Sn)}}const Cn="LINE_GROUP",Vu=0,Yu=0,Wu=0,Hu=0,Ku=0,Zu=0;class $e extends kt.GameObjects.Line{constructor(T,O){super(T,Vu,Yu,Wu,Hu,Ku,Zu,O),T.add.existing(this),this.setLineWidth(2),$e.getGroup(T).add(this)}remove(){$e.getGroup(this.scene).remove(this),["start","end"].forEach(T=>{const O=this[T];O&&delete O.line}),this.destroy()}static setGroup(T){const O=T.add.group();return T.data.set(Cn,O),O}static getGroup(T){return T.data.get(Cn)}}const Ju=[{cellWidth:200,cellHeight:200,puzzle:[[ft,ft]]},{cellWidth:200,cellHeight:200,puzzle:[[ft,Pt],[ft,Pt]]},{cellWidth:100,cellHeight:100,puzzle:[[W,Pt,W],[ft,W,ft],[ft,W,ft],[W,Pt,W]]},{cellWidth:75,cellHeight:75,puzzle:[[Ut,W,W,W,W],[W,W,dt,W,W],[W,dt,W,dt,W],[W,W,dt,W,W],[W,W,W,W,Ut]]},{cellWidth:75,cellHeight:75,puzzle:[[dt,dt,dt,ft],[ft,dt,dt,ft],[ft,ft,ft,dt],[dt,dt,ft,ft]]},{cellWidth:75,cellHeight:75,puzzle:[[dt,W,W,W,W,W],[W,W,ft,W,dt,W],[W,W,W,ft,ft,W],[W,dt,ft,W,W,W],[W,ft,W,dt,W,W],[W,W,W,W,ft,W]]},{cellWidth:75,cellHeight:75,puzzle:[[Et,W,W,W,W,Et],[W,W,ft,Et,W,W],[Et,W,W,W,W,ft],[W,W,Et,ft,W,W],[ft,W,W,W,W,Et]]},{cellWidth:65,cellHeight:65,puzzle:[[ft,W,W,W,W,W,W,W,W],[W,W,ft,W,W,W,W,W,ft],[W,Et,W,W,W,W,ft,W,W],[W,W,W,W,dt,Et,W,W,W],[ft,W,dt,W,W,W,dt,W,W],[W,W,W,W,Et,W,W,W,W],[W,W,Et,W,ft,W,W,W,dt]]},{cellWidth:75,cellHeight:70,puzzle:[[Pt,W,Pt,W,W,Pt,ci],[ft,dt,Et,Pt,W,W,W],[W,Pt,W,Et,W,W,W],[W,ci,W,ft,Pt,W,ci],[W,W,W,dt,W,W,W],[W,W,W,dt,W,W,ft],[ft,ci,Et,W,dt,W,W],[W,W,W,W,W,W,Et]]},{cellWidth:75,cellHeight:70,puzzle:[[ft,W,W,ft,ft,W,dt],[Et,W,dt,Pt,W,ft,W],[W,W,Et,dt,W,W,dt],[dt,ft,W,W,W,Pt,W],[W,W,dt,W,ft,W,ft],[Et,W,W,Et,W,W,W],[W,W,Pt,W,ft,W,Pt],[Pt,W,W,W,W,Pt,W]]},{cellWidth:50,cellHeight:50,puzzle:[[dt,W,W,W,de,W,W,W,de,W,W,de],[W,W,W,W,W,W,W,W,W,W,W,W],[W,W,dt,W,W,Et,W,W,W,Et,W,W],[W,W,de,W,W,vi,W,W,W,W,W,W],[W,W,W,W,W,W,fe,W,Ut,W,W,W],[dt,W,W,W,W,W,dt,W,W,W,Ut,W],[W,Ut,W,W,W,W,W,W,W,W,W,W],[W,W,W,W,W,vi,dt,fe,ft,W,W,fe],[Kt,W,Ut,W,W,W,W,W,W,W,W,W],[W,W,W,W,W,W,W,W,W,W,W,ft],[W,W,dt,W,W,W,W,W,W,W,W,W],[W,W,W,W,W,Kt,W,W,Ge,W,Ge,W],[W,W,fe,W,W,W,W,W,W,W,W,W],[Kt,W,W,Pt,W,W,W,Pt,W,Kt,W,W]]},{cellWidth:50,cellHeight:50,puzzle:[[W,W,W,W,de,W,W,W,de,W,W,de],[W,W,W,W,W,W,W,W,W,W,W,W],[W,W,dt,W,W,Et,W,W,W,Et,W,W],[W,W,de,W,W,Pt,W,W,W,W,W,W],[W,W,W,W,W,W,fe,W,Ut,W,W,W],[dt,W,W,W,dt,W,dt,W,W,W,Ut,W],[W,Ut,W,W,W,W,W,W,W,W,W,W],[W,W,W,W,W,Pt,dt,fe,ft,W,W,fe],[Kt,W,Ut,W,W,W,W,W,W,W,W,W],[W,W,W,W,W,W,W,W,W,W,Ge,ft],[W,W,dt,W,W,W,Ge,W,W,W,W,W],[W,W,W,W,W,Kt,W,W,Ge,W,Ge,W],[W,W,fe,W,W,W,W,W,W,W,W,W],[Kt,W,W,Pt,W,W,W,Pt,W,Kt,W,W]]},{cellWidth:50,cellHeight:50,puzzle:[[Pt,W,Et,W,W,W,W,W,W,Pt,W,W],[W,W,W,Pt,W,W,vi,W,W,W,W,W],[Pt,W,W,W,W,W,W,W,Et,W,W,W],[W,W,W,Ut,W,W,W,W,dt,W,Et,W],[W,W,W,W,W,Kt,W,W,W,W,W,W],[W,Et,W,W,W,W,vi,W,W,W,W,Ut],[ft,W,W,W,Ut,W,W,W,W,W,W,W],[W,dt,W,W,W,dt,ft,Ut,W,W,W,Et],[ft,W,W,W,Kt,W,W,W,W,W,W,W],[W,W,W,dt,W,W,W,W,W,Kt,W,Pt],[W,W,ft,Ut,W,dt,Et,W,W,W,W,W],[W,W,Pt,Et,W,W,W,Kt,W,W,W,W],[Pt,W,W,W,W,W,W,W,W,W,W,W],[W,W,Ut,W,W,Et,W,W,dt,W,W,Pt]]}];function Qu(F){const T=Ju[F];if(T)return{...T,level:F}}class $u extends kt.Scene{constructor(){super(wt.scene.main)}init(T){const O=Qu(T.level);O?this.level=O:this.scene.start(wt.scene.end)}create(){this.setBackgroundColor(),this.renderLevelTitle(),this.renderCircles(),$e.setGroup(this),this.input.on("pointerdown",this.pointerdown,this),this.game.device.os.desktop&&this.input.on("pointermove",this.pointermove,this)}destroy(){this.input.off("pointerdown"),this.input.off("pointermove")}pointerdown(T,O){var z,H;const D=O[0];if(D)if((z=this.start)!=null&&z.line){if(this.start.color!==D.color||D.line){this.start.setScale(1),this.start.line.remove(),ve(wt.audio.drop,this),delete this.start;return}if(this.start.line.end=D,this.start.line.setTo(this.start.absoluteX,this.start.absoluteY,D.absoluteX,D.absoluteY),this.start.line.position={x1:this.start.absoluteX,y1:this.start.absoluteY,x2:D.absoluteX,y2:D.absoluteY},D.line=this.start.line,ve(wt.audio.click,this),this.checkSolution()){ve(wt.audio.success,this),delete this.start,this.destroy();const c={level:this.level.level+1};this.scene.restart(c);return}this.start.setScale(1),delete this.start}else{let c=D.line;c&&c.remove(),c=new $e(this,D.color),c.start=D,this.start=D,this.start.setScale(1.5),this.start.line=c,ve(wt.audio.click,this)}else this.start&&((H=this.start.line)==null||H.remove(),ve(wt.audio.drop,this),this.start.setScale(1),delete this.start)}pointermove(T){var O;(O=this.start)!=null&&O.line&&this.start.line.setTo(this.start.absoluteX,this.start.absoluteY,T.x,T.y)}setBackgroundColor(){const T=hr();this.cameras.main.setBackgroundColor(T),document.body.style.backgroundColor=T}renderLevelTitle(){se.render(ee.jsx(se.Text,{text:String(this.level.level),x:this.cameras.main.centerX,y:32,style:{color:"black",fontSize:"36px"},originX:.5,originY:.5}),this)}renderCircles(){Ye.setContainer(this),this.level.puzzle.forEach(c=>{c.forEach(y=>new Ye(this,y))});const T=Ye.getContainer(this);kt.Actions.GridAlign(T.getAll(),this.getGridOptions());const{centerX:O,centerY:D}=this.cameras.main,{height:z,width:H}=T.getBounds();T.setX(O-H/2),T.setY(D-z/2)}getGridOptions(){const{cellWidth:T,cellHeight:O,puzzle:D}=this.level,z=D[0].length,H=D.length;return{width:z,height:H,cellWidth:T,cellHeight:O}}checkSolution(){return ur($e.getGroup(this).getChildren())?(ve(wt.audio.error,this),alert("Lines must not intersect."),!1):!Ye.getContainer(this).getAll().filter(O=>O.active).some(O=>!O.line)}}const ju=Object.freeze(Object.defineProperty({__proto__:null,Boot:is,End:Iu,Intro:Bu,Main:$u},Symbol.toStringTag,{value:"Module"}));new kt.Game({width:600,height:800,title:"Linkit",url:"https://remarkablegames.org/linkit/",version:"1.3.2",scene:[is,...Object.values(ju).filter(F=>F!==is)],transparent:!0,scale:{mode:window.innerWidth<600?kt.Scale.FIT:kt.Scale.NONE,autoCenter:kt.Scale.CENTER_BOTH}}); diff --git a/index.html b/index.html new file mode 100644 index 0000000..2a94999 --- /dev/null +++ b/index.html @@ -0,0 +1,5 @@ +Linkit | remarkablegames \ No newline at end of file diff --git a/logo192.png b/logo192.png new file mode 100644 index 0000000000000000000000000000000000000000..38dcae868d64c194c3334e0d0656b628de256c9e GIT binary patch literal 1281 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 literal 0 HcmV?d00001 diff --git a/screenshots/level9.png b/screenshots/level9.png new file mode 100644 index 0000000000000000000000000000000000000000..8627624e7fab69885435ab18c63b5cc25cd0156b GIT binary patch literal 12114 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%0A; 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

S2*M@khO?z`@ zSF-{3uP3|^RtqGe$*4WV88xp6m~XrTDe7rf&$HzDH|B)I#+hFJLV$vE{H4Sg`3!sW zdzS>Y^%H(gdp8u$!XP{lX6(7h$QKWxp#5RXVC0QJ|Ce{U0CwmvV6DyJZJQwLzCw{} zIm6#b+D5apm%aPnK)FP1B3BP=+~MoRRN`M`Nq4ZXPoL*V%4EK4NI@^-88G7ToH*$z zJ(a=7wEl4K3Xb!-+(~%c}>;wGmqsf#70OqSI#%oySDfj5iDb;${$mjG` zeW@80M_eigt$GuhAvsF3-`O#xBbi$bE|nt&Z%L;Ckb5Qi75g3B3&?Hx`ZRNZ2>U-E zYb!|P5+5J+fiV;S;0-1zqT^%kwxY2~Pb1no?ZTE0EIR_EYi|8ikY#4VU~fuACbyD# zE$;>$^sQT&IN6sx7VeMrlJ==kn!6&Q7xq z^&5ms0Qv?Daz4Q;HIleCU=)nngJ-XBHeot2=l@g%kmEno^ndi0fM1`m64Xcc?=B9m z7dzKDT|=GN6~e&;Ge@IiSb?q@&!&3`h`>{rVBN)UBi|Br9M3$sdEXfmZ4<>~Tn_>)H+ZZ{TW zj|>FXrBmQ8Q*rOew+ba&wvv^x8+5lDoSShwLNSED3%o|)3k0SB6n*5$t(NDSASkpy zTh&o`7;;pNoInVQaHz^POwg4_cp zYVymGt`)YW{Of*E{RbCRip4vT)z$mnYC1O(qU!)H#7{nG6e{LH>c1##D=MeIaJPS8 z{k3FdIv_L}cjFeaursi!_M~-pf1O}bu2(nk0nO@yfm`nZtq_?mwdF+3)lUocVL7*W zFr2vKL)Wm=km*Rpij>^QOv)iKNfFPROAoAddR|>*#hLg+CqRE_67D{m^xe--__FH` zqs))rQOfZLY6D0N0;%X|#_Mi7-U|#dbqfD}&`K`W-}zStxxozmbgSlP0L|RN#ENy6 z%10X|i_T24PX-75!OiRpk6Q7WAQgce)ybn5^_8sV-;N3HDq(?X${LCx( zk!gVO5j!U57eV83{e+yCf>JK zXKIy*X=sdPML2DDe?NSlo<4Ji)PlDgtM13UJfODqp{Pap^?tE z)_MxrDe&M*Oz0ZoVreu||HgF_wehzTfksF<2|N0nwm8aA55@PV5F|zUcBM$g+8&d^ zRn2hoy$UrA^rT0v($bfF_P27|)`AD@S!4NYn+laG;!XL02Eo=lXND9pQx6|)o&B2n znW4|7O;7!kN#X^Ie!*gERUF%lM}5}TytTw<%-RsaPy0R?u=habx}?O3dKldVvtS{>czZ$ebi``jJiQsOX@_QnfhgL? zfLe$CM%vhIjDW*2loz4;kjdZ2Sxkax>?mxQIdk|3n(P_HfK*Tb4FXTz6;Du5MU4=e zYfw(8uB!qwm%(7|aJT3RU(1h`b7(YPTYi4~fyUcF@SBU}8~UE=qHCF5G{o;x8=1!p z@I_y$cr35-y|}=!V2X_IxRSbNX9DBmU8FwGUR{r>SX8<@~ zRhqFBjtM8&4fmW^+lGxJ#py;6H7YZbiC7>^fT|+)lfU&H`?D{~-x0D`q5)ki0@@I+ z>GqK(N7n+}X2J8EO1(c=+Lq?Tf(k4|3QY6`vu*F{r2Ddj2OU7t%5)6AHdf3(AZ_g;|u=n;=`MOpLPz<1!k zk#tLnQ4lp)SMrH~&|4jK6>Z5qG-fSLfK@9=;q;i-C&0HTHn^X^NA1?P-Aj12NMQDb z;fMXk)RwQGsJ~6gBmt(Oh(e0#3PxM#As;iV19U#(EfS!!*V!Y9?18mh=>HfeMqjiL zTTjtgro|{ET0ZjSmV(`l1MfFL!sr{o-NV0h-8$X79%QOux3jw^VC|PnR0LQ;wi|E5 zFriKb5maFmvPbx9YLW%I7L7hoYspLgdWE`(Uw}CeXQOFB>Z9D|-6n5=4N$8Y7U+VS z#yhiOoORhz+trD#0rGN|T@w3F1vkMI#9&>Mfg=y@VJ9|OGsg8V?jOtbcD|>iBb8fj z$b2dq9(f4hXi|Z?$WlKByDV2Q>Yhjc?re_YADTLbUV2e+8giZroI-VRJho|(>lOSZ zp|lOm8-&@_&w!=CyY!9p6iONE^^}RM5ZCNnKxjys$w~$lj+H-*{paDEHCl`DvGV zW!+BbCtt2`ukYP{XE4cDe0qRoe`hBL?RKy;{530IB4FMaQ(xz!TjFc}>zUmzr3&-H zmr8fvD_rDg?@uuv5`%1T<*5X@y?4MGgZ;um)oZ5PtOI*A4~ETrdrk!)6=MG~%xmAT z;P&aF*G+#HV5KIJi={R=|AoblWgX;YHj9FZ-=gTnCk4j?u2k|nKxdgO+T`CExqO70 zi)0}Gbp2ivbCll;5?w9cSE52yX@K_T)rwVR2L~rZb1pwzJ8- z%xQ;kM*t(AH*uyV|@)x~|^9cb(zsxsuGq)@JeE>*L79@#L z*RIa@2Oun!`ll*3?LX7>fAp3RH~+S1;?|6tP#0IH_N3oXDbp;1@hC#ZBjQx|1(p01 zl}sx`0%h&^@wVZ}Kv@6zp4`|^M82K3_cOQX(?Gc>WVU)$0QKcBVG!4nx9{Vm2Wf!i zE}?Vtm$C4$+4Sw%^v2q)9i)PWtSAE3cHB=V^4T)r{{n@(?%|z*FBrUZ*rSQDSe?`V zEnWSG)lM<$eDZ%!K+?4bhQ{6PAG+{gEpN4~>v=oJE?Dg6A5)wO?r{>dM>qle7Y4&r zmB&f>O-WBpNDzY|&X*~sNTY6ZP{6jnE9CdBHYF6WrG zx0rnY*0i^TLH7%32u#76?PR`_-^WF8$|ACix;DAYWC%}*(`&hXo-`uWsPls(29P9t zL;KnvEJ0>?@>A6W+3{7+RzwRx(G*!)90QDWRCf{$B&D5@_7lt|4p;fT_TcxM6{PG=N%d?5>i6w>wx~U}=mUz`u_6{U_~+ zj>0(mk)CwxG73@oC#_404yYY5KXZ6F?;vm>Gxd@R*>_|VzG<^V_%fk40Cb0Z9C1iCyxC>tO)X1?WfKG29>_f31qHj~+i(6KaZtXD-DU-2O2!SG%@KZ6no+ zA6Si>wrj(;wqIEOSy(#S4W$-3H6mK-noq-da0(;7q3G0(4TMG^Jo(T+3X)q%7ZkVd zP}W;t9!N#?#zsad^&TmiDX)<&-BRi=%2g>k8Ts5_GC%?)Nn2|6mVznS6}rBkIY0ni zL!qQ+be=72JeQmN7zZdzXij(FHSMh+2=(<>9N&R7=?6TzsLyOaPxC}{o;9~#@Ub{Y z^nCfVMV0E+A<|K4H2dSS0$;-lWzvRz%Sh7y$VmQ!hGbnUSo%0{cs>hYr;{AslxitP z2Twl#4YRFS(mpt{>s1>x9TE>ETvFbHnIde-3r5N)RSv-IRdcE0{06RN01XApXtnxH z2mgsJz9#ySW_$Rg$bEPY8=t(Qx{dcooyoytEyGCw8+DQBxOoM$=zjI%-(`>R_sg8R+tNI1TQEkL&XwsK?Bq6{R69`t=%-pZ* z{Z~2jz_e%fagvw67)yQ&3{fLQ&_w#`@+!W|n@S*McOfp%PAv-L4!Q-7FEHPKyx&z+ z->&a|1BO|6!=$r%O z{t5%vTu#~27R>cf8u5U;G?R5`So>D;Os0Uw^-|qgm_7Qz8nC`!fPx^3+8H}JT+SxmS=uGW0y@J=a}NIg^tv6ex7Q`{y%Q*+3V_9) z6adM+q;B>*_Ptd0iJs2=7e&b*v;1#zk^t5;BE2ru&k|rkdP|CmY0*y|e68#9dDG*j zxbma|ju)Mo??ZCB<@0A9eyoiw7Jf+(h_cnQk{C+|Bqu4G6tK^{J9TqP{$Z^_hP$Qa zJGr$@Hl?bZn-Dt@>}D;0N_WU#Tdm~OkB!rJzn?Q26sMbRg$%ScCFk@-V+7W)3w+OR6aVfqY70*0x3We zN^Be%%z*y)SDF$g9RPZhuq%3ASs8U@;K;m?Fz>p$BnH%QDrExecdl~(5&)@ydp+?E z-PL6oa2kjN2iZr8QUwp6z4%`;U?~Lv literal 0 HcmV?d00001