!function(t,e){"object"==typeofexports&&"object"==typeofmodule?module.exports=e():"function"==typeofdefine&&define.amd?define("Phaser",[],e):"object"==typeofexports?exports.Phaser=e():t.Phaser=e()}(this,(function(){return(()=>{vart={6659:t=>{"use strict";vare=Object.prototype.hasOwnProperty,i="~";functions(){}functionr(t,e,i){this.fn=t,this.context=e,this.once=i||!1}functionn(t,e,s,n,a){if("function"!=typeofs)thrownewTypeError("The listener must be a function");varo=newr(s,n||t,a),h=i?i+e:e;returnt._events[h]?t._events[h].fn?t._events[h]=[t._events[h],o]:t._events[h].push(o):(t._events[h]=o,t._eventsCount++),t}functiona(t,e){0==--t._eventsCount?t._events=news:deletet._events[e]}functiono(){this._events=news,this._eventsCount=0}Object.create&&(s.prototype=Object.create(null),(news).__proto__||(i=!1)),o.prototype.eventNames=function(){vart,s,r=[];if(0===this._eventsCount)returnr;for(sint=this._events)e.call(t,s)&&r.push(i?s.slice(1):s);returnObject.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},o.prototype.listeners=function(t){vare=i?i+t:t,s=this._events[e];if(!s)return[];if(s.fn)return[s.fn];for(varr=0,n=s.length,a=newArray(n);r<n;r++)a[r]=s[r].fn;returna},o.prototype.listenerCount=function(t){vare=i?i+t:t,s=this._events[e];returns?s.fn?1:s.length:0},o.prototype.emit=function(t,e,s,r,n,a){varo=i?i+t:t;if(!this._events[o])return!1;varh,l,u=this._events[o],c=arguments.length;if(u.fn){switch(u.once&&this.removeListener(t,u.fn,void0,!0),c){case1:returnu.fn.call(u.context),!0;case2:returnu.fn.call(u.context,e),!0;case3:returnu.fn.call(u.context,e,s),!0;case4:returnu.fn.call(u.context,e,s,r),!0;case5:returnu.fn.call(u.context,e,s,r,n),!0;case6:returnu.fn.call(u.context,e,s,r,n,a),!0}for(l=1,h=newArray(c-1);l<c;l++)h[l-1]=arguments[l];u.fn.apply(u.context,h)}else{vard,f=u.length;for(l=0;l<f;l++)switch(u[l].once&&this.removeListener(t,u[l].fn,void0,!0),c){case1:u[l].fn.call(u[l].context);break;case2:u[l].fn.call(u[l].context,e);break;case3:u[l].fn.call(u[l].context,e,s);break;case4:u[l].fn.call(u[l].context,e,s,r);break;default:if(!h)for(d=1,h=newArray(c-1);d<c;d++)h[d-1]=arguments[d];u[l].fn.apply(u[l].context,h)}}return!0},o.prototype.on=function(t,e,i){returnn(this,t,e,i,!1)},o.prototype.once=function(t,e,i){returnn(this,t,e,i,!0)},o.prototype.removeListener=function(t,e,s,r){varn=i?i+t:t;if(!this._events[n])returnthis;if(!e)returna(this,n),this;varo=this._events[n];if(o.fn)o.fn!==e||r&&!o.once||s&&o.context!==s||a(this,n);else{for(varh=0,l=[],u=o.length;h<u;h++)(o[h].fn!==e||r&&!o[h].once||s&&o[h].context!==s)&&l.push(o[h]);l.length?this._events[n]=1===l.length?l[0]:l:a(this,n)}returnthis},o.prototype.removeAllListeners=function(t){vare;returnt?(e=i?i+t:t,this._events[e]&&a(this,e)):(this._events=news,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=i,o.EventEmitter=o,t.exports=o},62270:(t,e,i)=>{vars=i(82590);t.exports=function(t,e,i,r){for(varn=t[0],a=1;a<t.length;a++){varo=t[a];s(o,n,e,i,r),n=o}returnt}},61148:(t,e,i)=>{vars=i(6124);t.exports=function(t,e,i,r,n){returns(t,"angle",e,i,r,n)}},22015:t=>{t.exports=function(t,e,i){for(vars=0;s<t.length;s++){varr=t[s];e.call(i,r)}returnt}},31060:t=>{t.exports=function(t,e,i){void0===i&&(i=0);for(vars=i;s<t.length;s++){varr=t[s],n=!0;for(varaine)r[a]!==e[a]&&(n=!1);if(n)returnr}returnnull}},52367:t=>{t.exports=function(t,e,i){void0===i&&(i=0);for(vars=i;s<t.length;s++){varr=t[s],n=!0;for(varaine)r[a]!==e[a]&&(n=!1);if(n)returnr}returnnull}},12673:(t,e,i)=>{vars=i(40327),r=i(84093),n=i(72632),a=i(72283),o=new(i(71030))({sys:{queueDepthSort:a,events:{once:a}}},0,0,1,1);t.exports=function(t,e){void0===e&&(e={});vari=e.hasOwnProperty("width"),a=e.hasOwnProperty("height"),h=n(e,"width",-1),l=n(e,"height",-1),u=n(e,"cellWidth",1),c=n(e,"cellHeight",u),d=n(e,"position",r.TOP_LEFT),f=n(e,"x",0),p=n(e,"y",0),v=0,g=0,m=h*u,y=l*c;o.setPosition(f,p),o.setSize(u,c);for(varx=0;x<t.length;x++)if(s(t[x],o,d),i&