From f59034a3fd0bfc9f9b6dbe7daf92442737e31b7d Mon Sep 17 00:00:00 2001 From: remarkablemark Date: Tue, 9 Apr 2024 03:05:18 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20remarkab?= =?UTF-8?q?legames/phaser-template@973ac2388705d475fa3c67d843a0fa1635403c7?= =?UTF-8?q?e=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/{index-BqbugqKV.js => index-j1qzMphZ.js} | 8 ++++---- index.html | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) rename assets/{index-BqbugqKV.js => index-j1qzMphZ.js} (99%) diff --git a/assets/index-BqbugqKV.js b/assets/index-j1qzMphZ.js similarity index 99% rename from assets/index-BqbugqKV.js rename to assets/index-j1qzMphZ.js index 9b935ed2..308e340c 100644 --- a/assets/index-BqbugqKV.js +++ b/assets/index-j1qzMphZ.js @@ -1,4 +1,4 @@ -(function(){const b=document.createElement("link").relList;if(b&&b.supports&&b.supports("modulepreload"))return;for(const H of document.querySelectorAll('link[rel="modulepreload"]'))U(H);new MutationObserver(H=>{for(const J of H)if(J.type==="childList")for(const p of J.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&U(p)}).observe(document,{childList:!0,subtree:!0});function z(H){const J={};return H.integrity&&(J.integrity=H.integrity),H.referrerPolicy&&(J.referrerPolicy=H.referrerPolicy),H.crossOrigin==="use-credentials"?J.credentials="include":H.crossOrigin==="anonymous"?J.credentials="omit":J.credentials="same-origin",J}function U(H){if(H.ep)return;H.ep=!0;const J=z(H);fetch(H.href,J)}})();var ft=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sn(O){return O&&O.__esModule&&Object.prototype.hasOwnProperty.call(O,"default")?O.default:O}var qi={exports:{}};(function(O,b){(function(U,H){O.exports=H()})(ft,()=>(()=>{var z={50792:p=>{var T=Object.prototype.hasOwnProperty,t="~";function d(){}Object.create&&(d.prototype=Object.create(null),new d().__proto__||(t=!1));function c(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 u=new c(h,i||e,o),l=t?t+s:s;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],u]:e._events[l].push(u):(e._events[l]=u,e._eventsCount++),e}function r(e,s){--e._eventsCount===0?e._events=new d:delete e._events[s]}function n(){this._events=new d,this._eventsCount=0}n.prototype.eventNames=function(){var s=[],h,i;if(this._eventsCount===0)return s;for(i in h=this._events)T.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,u=i.length,l=new Array(u);o{/** +(function(){const b=document.createElement("link").relList;if(b&&b.supports&&b.supports("modulepreload"))return;for(const H of document.querySelectorAll('link[rel="modulepreload"]'))U(H);new MutationObserver(H=>{for(const J of H)if(J.type==="childList")for(const p of J.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&U(p)}).observe(document,{childList:!0,subtree:!0});function z(H){const J={};return H.integrity&&(J.integrity=H.integrity),H.referrerPolicy&&(J.referrerPolicy=H.referrerPolicy),H.crossOrigin==="use-credentials"?J.credentials="include":H.crossOrigin==="anonymous"?J.credentials="omit":J.credentials="same-origin",J}function U(H){if(H.ep)return;H.ep=!0;const J=z(H);fetch(H.href,J)}})();var ft=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nn(O){return O&&O.__esModule&&Object.prototype.hasOwnProperty.call(O,"default")?O.default:O}var _i={exports:{}};(function(O,b){(function(U,H){O.exports=H()})(ft,()=>(()=>{var z={50792:p=>{var T=Object.prototype.hasOwnProperty,t="~";function d(){}Object.create&&(d.prototype=Object.create(null),new d().__proto__||(t=!1));function c(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 u=new c(h,i||e,o),l=t?t+s:s;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],u]:e._events[l].push(u):(e._events[l]=u,e._eventsCount++),e}function r(e,s){--e._eventsCount===0?e._events=new d:delete e._events[s]}function n(){this._events=new d,this._eventsCount=0}n.prototype.eventNames=function(){var s=[],h,i;if(this._eventsCount===0)return s;for(i in h=this._events)T.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,u=i.length,l=new Array(u);o{/** * @author samme * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} @@ -6342,6 +6342,6 @@ return new `+this.key+`(); * @author Richard Davey * @copyright 2013-2024 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} - */p.exports={Format:t(27902),Pad:t(41836),RemoveAt:t(33628),Reverse:t(27671),UppercaseFirst:t(35355),UUID:t(45650)}}},U={};function H(p){var T=U[p];if(T!==void 0)return T.exports;var t=U[p]={exports:{}};return z[p](t,t.exports,H),t.exports}H.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}();var J=H(85454);return J})())})(qi);var Pi=qi.exports;const Wt=sn(Pi),nn="/phaser-template/assets/dude-CTFTQOB2.png",rn="/phaser-template/assets/platform-Bpju0ip4.png",an="/phaser-template/assets/sky-C3FK-69K.png",on="/phaser-template/assets/star-DprScIFb.png",hn={dude:"dude",ground:"ground",sky:"sky",star:"star"},ln={boot:"boot",main:"main"},Mt={image:hn,scene:ln};class un extends Wt.Scene{constructor(){super(Mt.scene.boot)}preload(){this.load.spritesheet(Mt.image.dude,nn,{frameWidth:32,frameHeight:48}),this.load.image(Mt.image.ground,rn),this.load.image(Mt.image.sky,an),this.load.image(Mt.image.star,on)}create(){this.scene.start(Mt.scene.main)}}var _i={},Ze={},ts={},it={};Object.defineProperty(it,"__esModule",{value:!0});it.Zone=it.Video=it.UpdateList=it.Triangle=it.TileSprite=it.TextStyle=it.Text=it.Star=it.Sprite=it.Shape=it.Shader=it.Rope=it.RenderTexture=it.Rectangle=it.Polygon=it.PointLight=it.Plane=it.PathFollower=it.ParticleEmitter=it.NineSlice=it.Mesh=it.Line=it.LightsPlugin=it.LightsManager=it.Light=it.Layer=it.IsoTriangle=it.IsoBox=it.Image=it.Group=it.Grid=it.Graphics=it.GameObjectFactory=it.GameObjectCreator=it.GameObject=it.Extern=it.Ellipse=it.DynamicBitmapText=it.DisplayList=it.DOMElement=it.Curve=it.Container=it.Bob=it.Blitter=it.BitmapText=it.Arc=void 0;var ut=Pi;it.Arc=ut.GameObjects.Arc;it.BitmapText=ut.GameObjects.BitmapText;it.Blitter=ut.GameObjects.Blitter;it.Bob=ut.GameObjects.Bob;it.Container=ut.GameObjects.Container;it.Curve=ut.GameObjects.Curve;it.DOMElement=ut.GameObjects.DOMElement;it.DisplayList=ut.GameObjects.DisplayList;it.DynamicBitmapText=ut.GameObjects.DynamicBitmapText;it.Ellipse=ut.GameObjects.Ellipse;it.Extern=ut.GameObjects.Extern;it.GameObject=ut.GameObjects.GameObject;it.GameObjectCreator=ut.GameObjects.GameObjectCreator;it.GameObjectFactory=ut.GameObjects.GameObjectFactory;it.Graphics=ut.GameObjects.Graphics;it.Grid=ut.GameObjects.Grid;it.Group=ut.GameObjects.Group;it.Image=ut.GameObjects.Image;it.IsoBox=ut.GameObjects.IsoBox;it.IsoTriangle=ut.GameObjects.IsoTriangle;it.Layer=ut.GameObjects.Layer;it.Light=ut.GameObjects.Light;it.LightsManager=ut.GameObjects.LightsManager;it.LightsPlugin=ut.GameObjects.LightsPlugin;it.Line=ut.GameObjects.Line;it.Mesh=ut.GameObjects.Mesh;it.NineSlice=ut.GameObjects.NineSlice;it.ParticleEmitter=ut.GameObjects.Particles.ParticleEmitter;it.PathFollower=ut.GameObjects.PathFollower;it.Plane=ut.GameObjects.Plane;it.PointLight=ut.GameObjects.PointLight;it.Polygon=ut.GameObjects.Polygon;it.Rectangle=ut.GameObjects.Rectangle;it.RenderTexture=ut.GameObjects.RenderTexture;it.Rope=ut.GameObjects.Rope;it.Shader=ut.GameObjects.Shader;it.Shape=ut.GameObjects.Shape;it.Sprite=ut.GameObjects.Sprite;it.Star=ut.GameObjects.Star;it.Text=ut.GameObjects.Text;it.TextStyle=ut.GameObjects.TextStyle;it.TileSprite=ut.GameObjects.TileSprite;it.Triangle=ut.GameObjects.Triangle;it.UpdateList=ut.GameObjects.UpdateList;it.Video=ut.GameObjects.Video;it.Zone=ut.GameObjects.Zone;(function(O){var b=ft&&ft.__createBinding||(Object.create?function(U,H,J,p){p===void 0&&(p=J);var T=Object.getOwnPropertyDescriptor(H,J);(!T||("get"in T?!H.__esModule:T.writable||T.configurable))&&(T={enumerable:!0,get:function(){return H[J]}}),Object.defineProperty(U,p,T)}:function(U,H,J,p){p===void 0&&(p=J),U[p]=H[J]}),z=ft&&ft.__exportStar||function(U,H){for(var J in U)J!=="default"&&!Object.prototype.hasOwnProperty.call(H,J)&&b(H,U,J)};Object.defineProperty(O,"__esModule",{value:!0}),z(it,O)})(ts);var Ai={},Pe={};Object.defineProperty(Pe,"__esModule",{value:!0});Pe.createElement=void 0;function fn(O,b){for(var z=[],U=2;U-1:t=new O.type(b);break;default:return di(new O.type(O.props),b)}return(0,Fn.setProps)(t,T,b),(0,Ln.attachRef)(t,H),Array.isArray(U)&&U.forEach(function(d){var c=di(d,b);c&&(t instanceof ai.default.GameObjects.Container?t.add(c):b.add.existing(c))}),t}}Ae.createGameObject=di;var ke={};Object.defineProperty(ke,"__esModule",{value:!0});ke.render=void 0;var Dn=Mi,wn=Ae;function Bn(O,b){(0,Dn.setScene)(b);var z=(0,wn.createGameObject)(O,b);z&&b.add.existing(z)}ke.render=Bn;(function(O){var b=ft&&ft.__createBinding||(Object.create?function(U,H,J,p){p===void 0&&(p=J);var T=Object.getOwnPropertyDescriptor(H,J);(!T||("get"in T?!H.__esModule:T.writable||T.configurable))&&(T={enumerable:!0,get:function(){return H[J]}}),Object.defineProperty(U,p,T)}:function(U,H,J,p){p===void 0&&(p=J),U[p]=H[J]}),z=ft&&ft.__exportStar||function(U,H){for(var J in U)J!=="default"&&!Object.prototype.hasOwnProperty.call(H,J)&&b(H,U,J)};Object.defineProperty(O,"__esModule",{value:!0}),z(Ae,O),z(Me,O),z(Re,O),z(ke,O)})(rs);(function(O){var b=ft&&ft.__createBinding||(Object.create?function(T,t,d,c){c===void 0&&(c=d);var a=Object.getOwnPropertyDescriptor(t,d);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[d]}}),Object.defineProperty(T,c,a)}:function(T,t,d,c){c===void 0&&(c=d),T[c]=t[d]}),z=ft&&ft.__exportStar||function(T,t){for(var d in T)d!=="default"&&!Object.prototype.hasOwnProperty.call(t,d)&&b(t,T,d)};Object.defineProperty(O,"__esModule",{value:!0}),O.render=O.createRef=O.useScene=O.jsx=O.createElement=void 0,z(ts,O);var U=Ai;Object.defineProperty(O,"createElement",{enumerable:!0,get:function(){return U.createElement}}),Object.defineProperty(O,"jsx",{enumerable:!0,get:function(){return U.jsx}});var H=is;Object.defineProperty(O,"useScene",{enumerable:!0,get:function(){return H.useScene}});var J=ns;Object.defineProperty(O,"createRef",{enumerable:!0,get:function(){return J.createRef}});var p=rs;Object.defineProperty(O,"render",{enumerable:!0,get:function(){return p.render}})})(Ze);(function(O){Object.defineProperty(O,"__esModule",{value:!0}),O.jsxs=O.jsx=O.Fragment=void 0;var b=Ze;Object.defineProperty(O,"Fragment",{enumerable:!0,get:function(){return b.Container}}),Object.defineProperty(O,"jsx",{enumerable:!0,get:function(){return b.jsx}}),Object.defineProperty(O,"jsxs",{enumerable:!0,get:function(){return b.jsx}})})(_i);var os=_i;function In(O){return os.jsx(Ze.Text,{x:16,y:16,text:O.text,style:{fontFamily:'"Lucida Grande", Helvetica, Arial, sans-serif',fontSize:"32px"},ref:O.ref})}class Gn extends Wt.Physics.Arcade.Sprite{constructor(b,z,U,H=Mt.image.dude,J=0){super(b,z,U,H,J),b.add.existing(this),b.physics.world.enable(this),this.cursors=b.input.keyboard.createCursorKeys(),this.createAnimations(),this.body.setBounceY(.2).setCollideWorldBounds(!0)}createAnimations(){const b=this.scene.anims;b.exists("Left")||b.create({key:"Left",frames:b.generateFrameNumbers(Mt.image.dude,{start:0,end:3}),frameRate:10,repeat:-1}),b.exists("Turn")||b.create({key:"Turn",frames:[{key:Mt.image.dude,frame:4}],frameRate:20}),b.exists("Right")||b.create({key:"Right",frames:b.generateFrameNumbers(Mt.image.dude,{start:5,end:8}),frameRate:10,repeat:-1})}update(){switch(!0){case this.cursors.left.isDown:this.body.setVelocityX(-160),this.anims.play("Left",!0);break;case this.cursors.right.isDown:this.body.setVelocityX(160),this.anims.play("Right",!0);break;default:this.body.setVelocityX(0),this.anims.play("Turn");break}this.cursors.up.isDown&&this.body.touching.down&&this.body.setVelocityY(-330)}}class Nn extends Wt.Physics.Arcade.Sprite{constructor(b,z,U,H=Mt.image.star,J){super(b,z,U,H||Mt.image.star,J),this.setOrigin(0)}}function mt(O){for(var b=arguments.length,z=new Array(b>1?b-1:0),U=1;UO.length)&&(b=O.length);for(var z=0,U=new Array(b);z=O.length?{done:!0}:{done:!1,value:O[U++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wn(O,b){if(typeof O!="object"||O===null)return O;var z=O[Symbol.toPrimitive];if(z!==void 0){var U=z.call(O,b||"default");if(typeof U!="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(O)}function Hn(O){var b=Wn(O,"string");return typeof b=="symbol"?b:String(b)}var oe=Symbol("mobx-stored-annotations");function bt(O){function b(z,U){if(Le(U))return O.decorate_20223_(z,U);ce(z,U,O)}return Object.assign(b,O)}function ce(O,b,z){Ht(O,oe)||Ri(O,oe,ue({},O[oe])),qn(z)||(O[oe][b]=z)}function Le(O){return typeof O=="object"&&typeof O.kind=="string"}var lt=Symbol("mobx administration"),Oe=function(){function O(z){z===void 0&&(z="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=gt.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=z}var b=O.prototype;return b.onBO=function(){this.onBOL&&this.onBOL.forEach(function(U){return U()})},b.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(U){return U()})},b.reportObserved=function(){return Is(this)},b.reportChanged=function(){Dt(),Gs(this),wt()},b.toString=function(){return this.name_},O}(),Oi=ee("Atom",Oe);function xs(O,b,z){b===void 0&&(b=re),z===void 0&&(z=re);var U=new Oe(O);return b!==re&&ea(U,b),z!==re&&Xs(U,z),U}function Kn(O,b){return O===b}function Zn(O,b){return Ui(O,b)}function Jn(O,b){return Ui(O,b,1)}function jn(O,b){return Object.is?Object.is(O,b):O===b?O!==0||1/O===1/b:O!==O&&b!==b}var Ve={identity:Kn,structural:Zn,default:jn,shallow:Jn};function _t(O,b,z){return Ws(O)?O:Array.isArray(O)?Pt.array(O,{name:z}):Kt(O)?Pt.object(O,void 0,{name:z}):ve(O)?Pt.map(O,{name:z}):Fe(O)?Pt.set(O,{name:z}):typeof O=="function"&&!ni(O)&&!Te(O)?vs(O)?de(O):ye(z,O):O}function Qn(O,b,z){if(O==null||Se(O)||ri(O)||se(O)||pe(O))return O;if(Array.isArray(O))return Pt.array(O,{name:z,deep:!1});if(Kt(O))return Pt.object(O,void 0,{name:z,deep:!1});if(ve(O))return Pt.map(O,{name:z,deep:!1});if(Fe(O))return Pt.set(O,{name:z,deep:!1})}function ti(O){return O}function $n(O,b){return Ui(O,b)?b:O}var kn="override";function qn(O){return O.annotationType_===kn}function De(O,b){return{annotationType_:O,options_:b,make_:_n,extend_:tr,decorate_20223_:er}}function _n(O,b,z,U){var H;if((H=this.options_)!=null&&H.bound)return this.extend_(O,b,z,!1)===null?0:1;if(U===O.target_)return this.extend_(O,b,z,!1)===null?0:2;if(ni(z.value))return 1;var J=ys(O,this,b,z,!1);return Ut(U,b,J),2}function tr(O,b,z,U){var H=ys(O,this,b,z);return O.defineProperty_(b,H,U)}function er(O,b){var z=b.kind,U=b.name,H=b.addInitializer,J=this,p=function(d){var c,a,r,n;return te((c=(a=J.options_)==null?void 0:a.name)!=null?c:U.toString(),d,(r=(n=J.options_)==null?void 0:n.autoAction)!=null?r:!1)};if(z=="field"){H(function(){ce(this,U,J)});return}if(z=="method"){var T;return ni(O)||(O=p(O)),(T=this.options_)!=null&&T.bound&&H(function(){var t=this,d=t[U].bind(t);d.isMobxAction=!0,t[U]=d}),O}mt("Cannot apply '"+J.annotationType_+"' to '"+String(U)+"' (kind: "+z+"):"+(` -'`+J.annotationType_+"' can only be used on properties with a function value."))}function ir(O,b,z,U){b.annotationType_,U.value}function ys(O,b,z,U,H){var J,p,T,t,d,c,a;H===void 0&&(H=at.safeDescriptors),ir(O,b,z,U);var r=U.value;if((J=b.options_)!=null&&J.bound){var n;r=r.bind((n=O.proxy_)!=null?n:O.target_)}return{value:te((p=(T=b.options_)==null?void 0:T.name)!=null?p:z.toString(),r,(t=(d=b.options_)==null?void 0:d.autoAction)!=null?t:!1,(c=b.options_)!=null&&c.bound?(a=O.proxy_)!=null?a:O.target_:void 0),configurable:H?O.isPlainObject_:!0,enumerable:!1,writable:!H}}function Ts(O,b){return{annotationType_:O,options_:b,make_:sr,extend_:nr,decorate_20223_:rr}}function sr(O,b,z,U){var H;if(U===O.target_)return this.extend_(O,b,z,!1)===null?0:2;if((H=this.options_)!=null&&H.bound&&(!Ht(O.target_,b)||!Te(O.target_[b]))&&this.extend_(O,b,z,!1)===null)return 0;if(Te(z.value))return 1;var J=Ss(O,this,b,z,!1,!1);return Ut(U,b,J),2}function nr(O,b,z,U){var H,J=Ss(O,this,b,z,(H=this.options_)==null?void 0:H.bound);return O.defineProperty_(b,J,U)}function rr(O,b){var z,U=b.name,H=b.addInitializer;return Te(O)||(O=de(O)),(z=this.options_)!=null&&z.bound&&H(function(){var J=this,p=J[U].bind(J);p.isMobXFlow=!0,J[U]=p}),O}function ar(O,b,z,U){b.annotationType_,U.value}function Ss(O,b,z,U,H,J){J===void 0&&(J=at.safeDescriptors),ar(O,b,z,U);var p=U.value;if(Te(p)||(p=de(p)),H){var T;p=p.bind((T=O.proxy_)!=null?T:O.target_),p.isMobXFlow=!0}return{value:p,configurable:J?O.isPlainObject_:!0,enumerable:!1,writable:!J}}function Di(O,b){return{annotationType_:O,options_:b,make_:or,extend_:hr,decorate_20223_:lr}}function or(O,b,z){return this.extend_(O,b,z,!1)===null?0:1}function hr(O,b,z,U){return ur(O,this,b,z),O.defineComputedProperty_(b,ue({},this.options_,{get:z.get,set:z.set}),U)}function lr(O,b){var z=this,U=b.name,H=b.addInitializer;return H(function(){var J=Ie(this)[lt],p=ue({},z.options_,{get:O,context:this});p.name||(p.name="ObservableObject."+U.toString()),J.values_.set(U,new fe(p))}),function(){return this[lt].getObservablePropValue_(U)}}function ur(O,b,z,U){b.annotationType_,U.get}function ei(O,b){return{annotationType_:O,options_:b,make_:fr,extend_:dr,decorate_20223_:vr}}function fr(O,b,z){return this.extend_(O,b,z,!1)===null?0:1}function dr(O,b,z,U){var H,J;return cr(O,this),O.defineObservableProperty_(b,z.value,(H=(J=this.options_)==null?void 0:J.enhancer)!=null?H:_t,U)}function vr(O,b){var z=this,U=b.kind,H=b.name,J=new WeakSet;function p(T,t){var d,c,a=Ie(T)[lt],r=new kt(t,(d=(c=z.options_)==null?void 0:c.enhancer)!=null?d:_t,"ObservableObject."+H.toString(),!1);a.values_.set(H,r),J.add(T)}if(U=="accessor")return{get:function(){return J.has(this)||p(this,O.get.call(this)),this[lt].getObservablePropValue_(H)},set:function(t){return J.has(this)||p(this,t),this[lt].setObservablePropValue_(H,t)},init:function(t){return J.has(this)||p(this,t),t}}}function cr(O,b,z,U){b.annotationType_}var pr="true",gr=Es();function Es(O){return{annotationType_:pr,options_:O,make_:mr,extend_:xr,decorate_20223_:yr}}function mr(O,b,z,U){var H,J;if(z.get)return ii.make_(O,b,z,U);if(z.set){var p=te(b.toString(),z.set);return U===O.target_?O.defineProperty_(b,{configurable:at.safeDescriptors?O.isPlainObject_:!0,set:p})===null?0:2:(Ut(U,b,{configurable:!0,set:p}),2)}if(U!==O.target_&&typeof z.value=="function"){var T;if(vs(z.value)){var t,d=(t=this.options_)!=null&&t.autoBind?de.bound:de;return d.make_(O,b,z,U)}var c=(T=this.options_)!=null&&T.autoBind?ye.bound:ye;return c.make_(O,b,z,U)}var a=((H=this.options_)==null?void 0:H.deep)===!1?Pt.ref:Pt;if(typeof z.value=="function"&&(J=this.options_)!=null&&J.autoBind){var r;z.value=z.value.bind((r=O.proxy_)!=null?r:O.target_)}return a.make_(O,b,z,U)}function xr(O,b,z,U){var H,J;if(z.get)return ii.extend_(O,b,z,U);if(z.set)return O.defineProperty_(b,{configurable:at.safeDescriptors?O.isPlainObject_:!0,set:te(b.toString(),z.set)},U);if(typeof z.value=="function"&&(H=this.options_)!=null&&H.autoBind){var p;z.value=z.value.bind((p=O.proxy_)!=null?p:O.target_)}var T=((J=this.options_)==null?void 0:J.deep)===!1?Pt.ref:Pt;return T.extend_(O,b,z,U)}function yr(O,b){mt("'"+this.annotationType_+"' cannot be used as a decorator")}var Tr="observable",Sr="observable.ref",Er="observable.shallow",Cr="observable.struct",Cs={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(Cs);function Ge(O){return O||Cs}var pi=ei(Tr),Pr=ei(Sr,{enhancer:ti}),Ar=ei(Er,{enhancer:Qn}),Mr=ei(Cr,{enhancer:$n}),Ps=bt(pi);function Ne(O){return O.deep===!0?_t:O.deep===!1?ti:Fr(O.defaultDecorator)}function Rr(O){var b;return O?(b=O.defaultDecorator)!=null?b:Es(O):void 0}function Fr(O){var b,z;return O&&(b=(z=O.options_)==null?void 0:z.enhancer)!=null?b:_t}function As(O,b,z){if(Le(b))return pi.decorate_20223_(O,b);if(qt(b)){ce(O,b,pi);return}return Ws(O)?O:Kt(O)?Pt.object(O,b,z):Array.isArray(O)?Pt.array(O,b):ve(O)?Pt.map(O,b):Fe(O)?Pt.set(O,b):typeof O=="object"&&O!==null?O:Pt.box(O,b)}ls(As,Ps);var Lr={box:function(b,z){var U=Ge(z);return new kt(b,Ne(U),U.name,!0,U.equals)},array:function(b,z){var U=Ge(z);return(at.useProxies===!1||U.proxy===!1?Ta:ua)(b,Ne(U),U.name)},map:function(b,z){var U=Ge(z);return new Js(b,Ne(U),U.name)},set:function(b,z){var U=Ge(z);return new $s(b,Ne(U),U.name)},object:function(b,z,U){return ge(function(){return ia(at.useProxies===!1||(U==null?void 0:U.proxy)===!1?Ie({},U):oa({},U),b,z)})},ref:bt(Pr),shallow:bt(Ar),deep:Ps,struct:bt(Mr)},Pt=ls(As,Lr),Ms="computed",Or="computed.struct",gi=Di(Ms),Dr=Di(Or,{equals:Ve.structural}),ii=function(b,z){if(Le(z))return gi.decorate_20223_(b,z);if(qt(z))return ce(b,z,gi);if(Kt(b))return bt(Di(Ms,b));var U=Kt(z)?z:{};return U.get=b,U.name||(U.name=b.name||""),new fe(U)};Object.assign(ii,gi);ii.struct=bt(Dr);var Xi,zi,Xe=0,wr=1,Br=(Xi=(zi=be(function(){},"name"))==null?void 0:zi.configurable)!=null?Xi:!1,Yi={value:"action",configurable:!0,writable:!1,enumerable:!1};function te(O,b,z,U){z===void 0&&(z=!1);function H(){return Ir(O,z,b,U||this,arguments)}return H.isMobxAction=!0,H.toString=function(){return b.toString()},Br&&(Yi.value=O,Ut(H,"name",Yi)),H}function Ir(O,b,z,U,H){var J=Gr(O,b);try{return z.apply(U,H)}catch(p){throw J.error_=p,p}finally{Nr(J)}}function Gr(O,b,z,U){var H=!1,J=0,p=at.trackingDerivation,T=!b||!p;Dt();var t=at.allowStateChanges;T&&(ie(),t=wi(!0));var d=Ii(!0),c={runAsAction_:T,prevDerivation_:p,prevAllowStateChanges_:t,prevAllowStateReads_:d,notifySpy_:H,startTime_:J,actionId_:wr++,parentActionId_:Xe};return Xe=c.actionId_,c}function Nr(O){Xe!==O.actionId_&&mt(30),Xe=O.parentActionId_,O.error_!==void 0&&(at.suppressReactionErrors=!0),Bi(O.prevAllowStateChanges_),me(O.prevAllowStateReads_),wt(),O.runAsAction_&&zt(O.prevDerivation_),at.suppressReactionErrors=!1}function wi(O){var b=at.allowStateChanges;return at.allowStateChanges=O,b}function Bi(O){at.allowStateChanges=O}var Rs;Rs=Symbol.toPrimitive;var kt=function(O){ms(b,O);function b(U,H,J,p,T){var t;return J===void 0&&(J="ObservableValue"),T===void 0&&(T=Ve.default),t=O.call(this,J)||this,t.enhancer=void 0,t.name_=void 0,t.equals=void 0,t.hasUnreportedChange_=!1,t.interceptors_=void 0,t.changeListeners_=void 0,t.value_=void 0,t.dehancer=void 0,t.enhancer=H,t.name_=J,t.equals=T,t.value_=H(U,void 0,J),t}var z=b.prototype;return z.dehanceValue=function(H){return this.dehancer!==void 0?this.dehancer(H):H},z.set=function(H){this.value_,H=this.prepareNewValue_(H),H!==at.UNCHANGED&&this.setNewValue_(H)},z.prepareNewValue_=function(H){if(Lt(this)){var J=Ot(this,{object:this,type:Vt,newValue:H});if(!J)return at.UNCHANGED;H=J.newValue}return H=this.enhancer(H,this.value_,this.name_),this.equals(this.value_,H)?at.UNCHANGED:H},z.setNewValue_=function(H){var J=this.value_;this.value_=H,this.reportChanged(),Bt(this)&&It(this,{type:Vt,object:this,newValue:H,oldValue:J})},z.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},z.intercept_=function(H){return we(this,H)},z.observe_=function(H,J){return J&&H({observableKind:"value",debugObjectName:this.name_,object:this,type:Vt,newValue:this.value_,oldValue:void 0}),Be(this,H)},z.raw=function(){return this.value_},z.toJSON=function(){return this.get()},z.toString=function(){return this.name_+"["+this.value_+"]"},z.valueOf=function(){return gs(this.get())},z[Rs]=function(){return this.valueOf()},b}(Oe),Fs;Fs=Symbol.toPrimitive;var fe=function(){function O(z){this.dependenciesState_=gt.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=gt.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Ye(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=ze.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,z.get||mt(31),this.derivation=z.get,this.name_=z.name||"ComputedValue",z.set&&(this.setter_=te("ComputedValue-setter",z.set)),this.equals_=z.equals||(z.compareStructural||z.struct?Ve.structural:Ve.default),this.scope_=z.context,this.requiresReaction_=z.requiresReaction,this.keepAlive_=!!z.keepAlive}var b=O.prototype;return b.onBecomeStale_=function(){Xr(this)},b.onBO=function(){this.onBOL&&this.onBOL.forEach(function(U){return U()})},b.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(U){return U()})},b.get=function(){if(this.isComputing_&&mt(32,this.name_,this.derivation),at.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)mi(this)&&(this.warnAboutUntrackedRead_(),Dt(),this.value_=this.computeValue_(!1),wt());else if(Is(this),mi(this)){var U=at.trackingContext;this.keepAlive_&&!U&&(at.trackingContext=this),this.trackAndCompute()&&Vr(this),at.trackingContext=U}var H=this.value_;if(Ue(H))throw H.cause;return H},b.set=function(U){if(this.setter_){this.isRunningSetter_&&mt(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,U)}finally{this.isRunningSetter_=!1}}else mt(34,this.name_)},b.trackAndCompute=function(){var U=this.value_,H=this.dependenciesState_===gt.NOT_TRACKING_,J=this.computeValue_(!0),p=H||Ue(U)||Ue(J)||!this.equals_(U,J);return p&&(this.value_=J),p},b.computeValue_=function(U){this.isComputing_=!0;var H=wi(!1),J;if(U)J=Ls(this,this.derivation,this.scope_);else if(at.disableErrorBoundaries===!0)J=this.derivation.call(this.scope_);else try{J=this.derivation.call(this.scope_)}catch(p){J=new Ye(p)}return Bi(H),this.isComputing_=!1,J},b.suspend_=function(){this.keepAlive_||(xi(this),this.value_=void 0)},b.observe_=function(U,H){var J=this,p=!0,T=void 0;return $r(function(){var t=J.get();if(!p||H){var d=ie();U({observableKind:"computed",debugObjectName:J.name_,type:Vt,object:J,newValue:t,oldValue:T}),zt(d)}p=!1,T=t})},b.warnAboutUntrackedRead_=function(){},b.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},b.valueOf=function(){return gs(this.get())},b[Fs]=function(){return this.valueOf()},O}(),si=ee("ComputedValue",fe),gt;(function(O){O[O.NOT_TRACKING_=-1]="NOT_TRACKING_",O[O.UP_TO_DATE_=0]="UP_TO_DATE_",O[O.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",O[O.STALE_=2]="STALE_"})(gt||(gt={}));var ze;(function(O){O[O.NONE=0]="NONE",O[O.LOG=1]="LOG",O[O.BREAK=2]="BREAK"})(ze||(ze={}));var Ye=function(b){this.cause=void 0,this.cause=b};function Ue(O){return O instanceof Ye}function mi(O){switch(O.dependenciesState_){case gt.UP_TO_DATE_:return!1;case gt.NOT_TRACKING_:case gt.STALE_:return!0;case gt.POSSIBLY_STALE_:{for(var b=Ii(!0),z=ie(),U=O.observing_,H=U.length,J=0;JU&&(U=T.dependenciesState_)}for(z.length=H,O.newObserving_=null,J=b.length;J--;){var t=b[J];t.diffValue_===0&&ws(t,O),t.diffValue_=0}for(;H--;){var d=z[H];d.diffValue_===1&&(d.diffValue_=0,br(d,O))}U!==gt.UP_TO_DATE_&&(O.dependenciesState_=U,O.onBecomeStale_())}function xi(O){var b=O.observing_;O.observing_=[];for(var z=b.length;z--;)ws(b[z],O);O.dependenciesState_=gt.NOT_TRACKING_}function Os(O){var b=ie();try{return O()}finally{zt(b)}}function ie(){var O=at.trackingDerivation;return at.trackingDerivation=null,O}function zt(O){at.trackingDerivation=O}function Ii(O){var b=at.allowStateReads;return at.allowStateReads=O,b}function me(O){at.allowStateReads=O}function Ds(O){if(O.dependenciesState_!==gt.UP_TO_DATE_){O.dependenciesState_=gt.UP_TO_DATE_;for(var b=O.observing_,z=b.length;z--;)b[z].lowestObserverState_=gt.UP_TO_DATE_}}var hi=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},li=!0,at=function(){var O=hs();return O.__mobxInstanceCount>0&&!O.__mobxGlobals&&(li=!1),O.__mobxGlobals&&O.__mobxGlobals.version!==new hi().version&&(li=!1),li?O.__mobxGlobals?(O.__mobxInstanceCount+=1,O.__mobxGlobals.UNCHANGED||(O.__mobxGlobals.UNCHANGED={}),O.__mobxGlobals):(O.__mobxInstanceCount=1,O.__mobxGlobals=new hi):(setTimeout(function(){mt(35)},1),new hi)}();function br(O,b){O.observers_.add(b),O.lowestObserverState_>b.dependenciesState_&&(O.lowestObserverState_=b.dependenciesState_)}function ws(O,b){O.observers_.delete(b),O.observers_.size===0&&Bs(O)}function Bs(O){O.isPendingUnobservation_===!1&&(O.isPendingUnobservation_=!0,at.pendingUnobservations.push(O))}function Dt(){at.inBatch++}function wt(){if(--at.inBatch===0){Ns();for(var O=at.pendingUnobservations,b=0;b0&&Bs(O),!1)}function Gs(O){O.lowestObserverState_!==gt.STALE_&&(O.lowestObserverState_=gt.STALE_,O.observers_.forEach(function(b){b.dependenciesState_===gt.UP_TO_DATE_&&b.onBecomeStale_(),b.dependenciesState_=gt.STALE_}))}function Vr(O){O.lowestObserverState_!==gt.STALE_&&(O.lowestObserverState_=gt.STALE_,O.observers_.forEach(function(b){b.dependenciesState_===gt.POSSIBLY_STALE_?b.dependenciesState_=gt.STALE_:b.dependenciesState_===gt.UP_TO_DATE_&&(O.lowestObserverState_=gt.UP_TO_DATE_)}))}function Xr(O){O.lowestObserverState_===gt.UP_TO_DATE_&&(O.lowestObserverState_=gt.POSSIBLY_STALE_,O.observers_.forEach(function(b){b.dependenciesState_===gt.UP_TO_DATE_&&(b.dependenciesState_=gt.POSSIBLY_STALE_,b.onBecomeStale_())}))}var yi=function(){function O(z,U,H,J){z===void 0&&(z="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=gt.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=ze.NONE,this.name_=z,this.onInvalidate_=U,this.errorHandler_=H,this.requiresObservable_=J}var b=O.prototype;return b.onBecomeStale_=function(){this.schedule_()},b.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,at.pendingReactions.push(this),Ns())},b.isScheduled=function(){return this.isScheduled_},b.runReaction_=function(){if(!this.isDisposed_){Dt(),this.isScheduled_=!1;var U=at.trackingContext;if(at.trackingContext=this,mi(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(H){this.reportExceptionInDerivation_(H)}}at.trackingContext=U,wt()}},b.track=function(U){if(!this.isDisposed_){Dt(),this.isRunning_=!0;var H=at.trackingContext;at.trackingContext=this;var J=Ls(this,U,void 0);at.trackingContext=H,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&xi(this),Ue(J)&&this.reportExceptionInDerivation_(J.cause),wt()}},b.reportExceptionInDerivation_=function(U){var H=this;if(this.errorHandler_){this.errorHandler_(U,this);return}if(at.disableErrorBoundaries)throw U;var J="[mobx] uncaught error in '"+this+"'";at.suppressReactionErrors||console.error(J,U),at.globalReactionErrorHandlers.forEach(function(p){return p(U,H)})},b.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(Dt(),xi(this),wt()))},b.getDisposer_=function(U){var H=this,J=function p(){H.dispose(),U==null||U.removeEventListener==null||U.removeEventListener("abort",p)};return U==null||U.addEventListener==null||U.addEventListener("abort",J),J[lt]=this,J},b.toString=function(){return"Reaction["+this.name_+"]"},b.trace=function(U){},O}(),zr=100,Yr=function(b){return b()};function Ns(){at.inBatch>0||at.isRunningReactions||Yr(Wr)}function Wr(){at.isRunningReactions=!0;for(var O=at.pendingReactions,b=0;O.length>0;){++b===zr&&(console.error("[mobx] cycle in reaction: "+O[0]),O.splice(0));for(var z=O.splice(0),U=0,H=z.length;U",J=function(){var T=this,t=arguments,d=++sa,c=he(H+" - runid: "+d+" - init",U).apply(T,t),a,r=void 0,n=new Promise(function(e,s){var h=0;a=s;function i(l){r=void 0;var f;try{f=he(H+" - runid: "+d+" - yield "+h++,c.next).call(c,l)}catch(v){return s(v)}u(f)}function o(l){r=void 0;var f;try{f=he(H+" - runid: "+d+" - yield "+h++,c.throw).call(c,l)}catch(v){return s(v)}u(f)}function u(l){if(Gt(l==null?void 0:l.then)){l.then(u,s);return}return l.done?e(l.value):(r=Promise.resolve(l.value),r.then(i,o))}i(void 0)});return n.cancel=he(H+" - runid: "+d+" - cancel",function(){try{r&&Wi(r);var e=c.return(void 0),s=Promise.resolve(e.value);s.then(re,re),Wi(s),a(new Ys)}catch(h){a(h)}}),n};return J.isMobXFlow=!0,J},ui);de.bound=bt(na);function Wi(O){Gt(O.cancel)&&O.cancel()}function Te(O){return(O==null?void 0:O.isMobXFlow)===!0}function ra(O,b){return O?b!==void 0?Se(O)?O[lt].values_.has(b):!1:Se(O)||!!O[lt]||Oi(O)||We(O)||si(O):!1}function Ws(O){return ra(O)}function Xt(O,b){b===void 0&&(b=void 0),Dt();try{return O.apply(b)}finally{wt()}}function ne(O){return O[lt]}var aa={has:function(b,z){return ne(b).has_(z)},get:function(b,z){return ne(b).get_(z)},set:function(b,z,U){var H;return qt(z)?(H=ne(b).set_(z,U,!0))!=null?H:!0:!1},deleteProperty:function(b,z){var U;return qt(z)?(U=ne(b).delete_(z,!0))!=null?U:!0:!1},defineProperty:function(b,z,U){var H;return(H=ne(b).defineProperty_(z,U))!=null?H:!0},ownKeys:function(b){return ne(b).ownKeys_()},preventExtensions:function(b){mt(13)}};function oa(O,b){var z,U;return fs(),O=Ie(O,b),(U=(z=O[lt]).proxy_)!=null?U:z.proxy_=new Proxy(O,aa)}function Lt(O){return O.interceptors_!==void 0&&O.interceptors_.length>0}function we(O,b){var z=O.interceptors_||(O.interceptors_=[]);return z.push(b),ds(function(){var U=z.indexOf(b);U!==-1&&z.splice(U,1)})}function Ot(O,b){var z=ie();try{for(var U=[].concat(O.interceptors_||[]),H=0,J=U.length;H0}function Be(O,b){var z=O.changeListeners_||(O.changeListeners_=[]);return z.push(b),ds(function(){var U=z.indexOf(b);U!==-1&&z.splice(U,1)})}function It(O,b){var z=ie(),U=O.changeListeners_;if(U){U=U.slice();for(var H=0,J=U.length;H0?U.map(this.dehancer):U},b.intercept_=function(U){return we(this,U)},b.observe_=function(U,H){return H===void 0&&(H=!1),H&&U({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),Be(this,U)},b.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},b.setArrayLength_=function(U){(typeof U!="number"||isNaN(U)||U<0)&&mt("Out of range: "+U);var H=this.values_.length;if(U!==H)if(U>H){for(var J=new Array(U-H),p=0;p0&&tn(U+H+1)},b.spliceWithArray_=function(U,H,J){var p=this;this.atom_;var T=this.values_.length;if(U===void 0?U=0:U>T?U=T:U<0&&(U=Math.max(0,T+U)),arguments.length===1?H=T-U:H==null?H=0:H=Math.max(0,Math.min(H,T-U)),J===void 0&&(J=vi),Lt(this)){var t=Ot(this,{object:this.proxy_,type:Hi,index:U,removedCount:H,added:J});if(!t)return vi;H=t.removedCount,J=t.added}if(J=J.length===0?J:J.map(function(a){return p.enhancer_(a,void 0)}),this.legacyMode_){var d=J.length-H;this.updateArrayLength_(T,d)}var c=this.spliceItemsIntoValues_(U,H,J);return(H!==0||J.length!==0)&&this.notifyArraySplice_(U,J,c),this.dehanceValues_(c)},b.spliceItemsIntoValues_=function(U,H,J){if(J.length=this.values_.length){console.warn("[mobx] Out of bounds read: "+U);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[U])},b.set_=function(U,H){var J=this.values_;if(this.legacyMode_&&U>J.length&&mt(17,U,J.length),U2?U-2:0),J=2;J-1?(this.splice(U,1),!0):!1}};Tt("at",Ft);Tt("concat",Ft);Tt("flat",Ft);Tt("includes",Ft);Tt("indexOf",Ft);Tt("join",Ft);Tt("lastIndexOf",Ft);Tt("slice",Ft);Tt("toString",Ft);Tt("toLocaleString",Ft);Tt("toSorted",Ft);Tt("toSpliced",Ft);Tt("with",Ft);Tt("every",Nt);Tt("filter",Nt);Tt("find",Nt);Tt("findIndex",Nt);Tt("findLast",Nt);Tt("findLastIndex",Nt);Tt("flatMap",Nt);Tt("forEach",Nt);Tt("map",Nt);Tt("some",Nt);Tt("toReversed",Nt);Tt("reduce",Hs);Tt("reduceRight",Hs);function Tt(O,b){typeof Array.prototype[O]=="function"&&(He[O]=b(O))}function Ft(O){return function(){var b=this[lt];b.atom_.reportObserved();var z=b.dehanceValues_(b.values_);return z[O].apply(z,arguments)}}function Nt(O){return function(b,z){var U=this,H=this[lt];H.atom_.reportObserved();var J=H.dehanceValues_(H.values_);return J[O](function(p,T){return b.call(z,p,T,U)})}}function Hs(O){return function(){var b=this,z=this[lt];z.atom_.reportObserved();var U=z.dehanceValues_(z.values_),H=arguments[0];return arguments[0]=function(J,p,T){return H(J,p,T,b)},U[O].apply(U,arguments)}}var fa=ee("ObservableArrayAdministration",Gi);function ri(O){return _e(O)&&fa(O[lt])}var Ks,Zs,da={},Yt="add",Ke="delete";Ks=Symbol.iterator;Zs=Symbol.toStringTag;var Js=function(){function O(z,U,H){var J=this;U===void 0&&(U=_t),H===void 0&&(H="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[lt]=da,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=U,this.name_=H,Gt(Map)||mt(18),ge(function(){J.keysAtom_=xs("ObservableMap.keys()"),J.data_=new Map,J.hasMap_=new Map,z&&J.merge(z)})}var b=O.prototype;return b.has_=function(U){return this.data_.has(U)},b.has=function(U){var H=this;if(!at.trackingDerivation)return this.has_(U);var J=this.hasMap_.get(U);if(!J){var p=J=new kt(this.has_(U),ti,"ObservableMap.key?",!1);this.hasMap_.set(U,p),Xs(p,function(){return H.hasMap_.delete(U)})}return J.get()},b.set=function(U,H){var J=this.has_(U);if(Lt(this)){var p=Ot(this,{type:J?Vt:Yt,object:this,newValue:H,name:U});if(!p)return this;H=p.newValue}return J?this.updateValue_(U,H):this.addValue_(U,H),this},b.delete=function(U){var H=this;if(this.keysAtom_,Lt(this)){var J=Ot(this,{type:Ke,object:this,name:U});if(!J)return!1}if(this.has_(U)){var p=xe(),T=Bt(this),t=T||p?{observableKind:"map",debugObjectName:this.name_,type:Ke,object:this,oldValue:this.data_.get(U).value_,name:U}:null;return Xt(function(){var d;H.keysAtom_.reportChanged(),(d=H.hasMap_.get(U))==null||d.setNewValue_(!1);var c=H.data_.get(U);c.setNewValue_(void 0),H.data_.delete(U)}),T&&It(this,t),!0}return!1},b.updateValue_=function(U,H){var J=this.data_.get(U);if(H=J.prepareNewValue_(H),H!==at.UNCHANGED){var p=xe(),T=Bt(this),t=T||p?{observableKind:"map",debugObjectName:this.name_,type:Vt,object:this,oldValue:J.value_,name:U,newValue:H}:null;J.setNewValue_(H),T&&It(this,t)}},b.addValue_=function(U,H){var J=this;this.keysAtom_,Xt(function(){var d,c=new kt(H,J.enhancer_,"ObservableMap.key",!1);J.data_.set(U,c),H=c.value_,(d=J.hasMap_.get(U))==null||d.setNewValue_(!0),J.keysAtom_.reportChanged()});var p=xe(),T=Bt(this),t=T||p?{observableKind:"map",debugObjectName:this.name_,type:Yt,object:this,name:U,newValue:H}:null;T&&It(this,t)},b.get=function(U){return this.has(U)?this.dehanceValue_(this.data_.get(U).get()):this.dehanceValue_(void 0)},b.dehanceValue_=function(U){return this.dehancer!==void 0?this.dehancer(U):U},b.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},b.values=function(){var U=this,H=this.keys();return Ce({next:function(){var p=H.next(),T=p.done,t=p.value;return{done:T,value:T?void 0:U.get(t)}}})},b.entries=function(){var U=this,H=this.keys();return Ce({next:function(){var p=H.next(),T=p.done,t=p.value;return{done:T,value:T?void 0:[t,U.get(t)]}}})},b[Ks]=function(){return this.entries()},b.forEach=function(U,H){for(var J=ae(this),p;!(p=J()).done;){var T=p.value,t=T[0],d=T[1];U.call(H,d,t,this)}},b.merge=function(U){var H=this;return se(U)&&(U=new Map(U)),Xt(function(){Kt(U)?Xn(U).forEach(function(J){return H.set(J,U[J])}):Array.isArray(U)?U.forEach(function(J){var p=J[0],T=J[1];return H.set(p,T)}):ve(U)?(U.constructor!==Map&&mt(19,U),U.forEach(function(J,p){return H.set(p,J)})):U!=null&&mt(20,U)}),this},b.clear=function(){var U=this;Xt(function(){Os(function(){for(var H=ae(U.keys()),J;!(J=H()).done;){var p=J.value;U.delete(p)}})})},b.replace=function(U){var H=this;return Xt(function(){for(var J=va(U),p=new Map,T=!1,t=ae(H.data_.keys()),d;!(d=t()).done;){var c=d.value;if(!J.has(c)){var a=H.delete(c);if(a)T=!0;else{var r=H.data_.get(c);p.set(c,r)}}}for(var n=ae(J.entries()),e;!(e=n()).done;){var s=e.value,h=s[0],i=s[1],o=H.data_.has(h);if(H.set(h,i),H.data_.has(h)){var u=H.data_.get(h);p.set(h,u),o||(T=!0)}}if(!T)if(H.data_.size!==p.size)H.keysAtom_.reportChanged();else for(var l=H.data_.keys(),f=p.keys(),v=l.next(),g=f.next();!v.done;){if(v.value!==g.value){H.keysAtom_.reportChanged();break}v=l.next(),g=f.next()}H.data_=p}),this},b.toString=function(){return"[object ObservableMap]"},b.toJSON=function(){return Array.from(this)},b.observe_=function(U,H){return Be(this,U)},b.intercept_=function(U){return we(this,U)},Li(O,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Zs,get:function(){return"Map"}}]),O}(),se=ee("ObservableMap",Js);function va(O){if(ve(O)||se(O))return O;if(Array.isArray(O))return new Map(O);if(Kt(O)){var b=new Map;for(var z in O)b.set(z,O[z]);return b}else return mt(21,O)}var js,Qs,ca={};js=Symbol.iterator;Qs=Symbol.toStringTag;var $s=function(){function O(z,U,H){var J=this;U===void 0&&(U=_t),H===void 0&&(H="ObservableSet"),this.name_=void 0,this[lt]=ca,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=H,Gt(Set)||mt(22),this.enhancer_=function(p,T){return U(p,T,H)},ge(function(){J.atom_=xs(J.name_),z&&J.replace(z)})}var b=O.prototype;return b.dehanceValue_=function(U){return this.dehancer!==void 0?this.dehancer(U):U},b.clear=function(){var U=this;Xt(function(){Os(function(){for(var H=ae(U.data_.values()),J;!(J=H()).done;){var p=J.value;U.delete(p)}})})},b.forEach=function(U,H){for(var J=ae(this),p;!(p=J()).done;){var T=p.value;U.call(H,T,T,this)}},b.add=function(U){var H=this;if(this.atom_,Lt(this)){var J=Ot(this,{type:Yt,object:this,newValue:U});if(!J)return this}if(!this.has(U)){Xt(function(){H.data_.add(H.enhancer_(U,void 0)),H.atom_.reportChanged()});var p=!1,T=Bt(this),t=T||p?{observableKind:"set",debugObjectName:this.name_,type:Yt,object:this,newValue:U}:null;T&&It(this,t)}return this},b.delete=function(U){var H=this;if(Lt(this)){var J=Ot(this,{type:Ke,object:this,oldValue:U});if(!J)return!1}if(this.has(U)){var p=!1,T=Bt(this),t=T||p?{observableKind:"set",debugObjectName:this.name_,type:Ke,object:this,oldValue:U}:null;return Xt(function(){H.atom_.reportChanged(),H.data_.delete(U)}),T&&It(this,t),!0}return!1},b.has=function(U){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(U))},b.entries=function(){var U=0,H=Array.from(this.keys()),J=Array.from(this.values());return Ce({next:function(){var T=U;return U+=1,Tfi){for(var b=fi;b=0&&z++;break}O=$i(O),b=$i(b);var T=p==="[object Array]";if(!T){if(typeof O!="object"||typeof b!="object")return!1;var t=O.constructor,d=b.constructor;if(t!==d&&!(Gt(t)&&t instanceof t&&Gt(d)&&d instanceof d)&&"constructor"in O&&"constructor"in b)return!1}if(z===0)return!1;z<0&&(z=-1),U=U||[],H=H||[];for(var c=U.length;c--;)if(U[c]===O)return H[c]===b;if(U.push(O),H.push(b),T){if(c=O.length,c!==b.length)return!1;for(;c--;)if(!Ci(O[c],b[c],z-1,U,H))return!1}else{var a=Object.keys(O),r;if(c=a.length,Object.keys(b).length!==c)return!1;for(;c--;)if(r=a[c],!(Ht(b,r)&&Ci(O[r],b[r],z-1,U,H)))return!1}return U.pop(),H.pop(),!0}function $i(O){return ri(O)?O.slice():ve(O)||se(O)||Fe(O)||pe(O)?Array.from(O.entries()):O}function Ce(O){return O[Symbol.iterator]=Sa,O}function Sa(){return this}["Symbol","Map","Set"].forEach(function(O){var b=hs();typeof b[O]>"u"&&mt("MobX requires global '"+O+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Hr,extras:{getDebugName:Ei},$mobx:lt});const ki=Pt({score:0});class Ea extends Wt.Scene{constructor(){super(Mt.scene.main)}create(){this.add.image(0,0,Mt.image.sky).setOrigin(0);const b=this.physics.add.staticGroup({defaultKey:Mt.image.ground});b.get(0,Number(this.game.config.height)-64).setOrigin(0).setScale(2).refreshBody(),[[600,400],[50,250],[750,220]].forEach(U=>{b.get(...U)});const z=this.physics.add.group({classType:Nn});for(let U=0;U<12;U++)z.get(U*70,0).body.setBounceY(Wt.Math.FloatBetween(.4,.8));this.physics.add.collider(z,b),this.player=new Gn(this,32,Number(this.game.config.height)-150),this.physics.add.collider(this.player,b),this.physics.add.overlap(this.player,z,(U,H)=>{H.disableBody(!0,!0),ki.score+=10,this.text.setText(this.score)},void 0,this),Ze.render(os.jsx(In,{text:this.score,ref:U=>this.text=U}),this)}get score(){return`Score: ${ki.score}`}update(){this.player.update()}}const Ca=[un,Ea];new Wt.Game({width:800,height:600,title:"Phaser Template",url:"https://remarkablegames.org/phaser-template/",version:"1.0.0-alpha",scene:Ca,physics:{default:"arcade",arcade:{gravity:{x:0,y:300},debug:!1}},disableContextMenu:!0,backgroundColor:"#fff",scale:{mode:Wt.Scale.FIT,autoCenter:Wt.Scale.CENTER_BOTH}}); + */p.exports={Format:t(27902),Pad:t(41836),RemoveAt:t(33628),Reverse:t(27671),UppercaseFirst:t(35355),UUID:t(45650)}}},U={};function H(p){var T=U[p];if(T!==void 0)return T.exports;var t=U[p]={exports:{}};return z[p](t,t.exports,H),t.exports}H.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}();var J=H(85454);return J})())})(_i);var Ai=_i.exports;const Wt=nn(Ai),rn="/phaser-template/assets/dude-CTFTQOB2.png",an="/phaser-template/assets/platform-Bpju0ip4.png",on="/phaser-template/assets/sky-C3FK-69K.png",hn="/phaser-template/assets/star-DprScIFb.png",ln={dude:"dude",ground:"ground",sky:"sky",star:"star"},un={boot:"boot",main:"main"},Mt={image:ln,scene:un};class di extends Wt.Scene{constructor(){super(Mt.scene.boot)}preload(){this.load.spritesheet(Mt.image.dude,rn,{frameWidth:32,frameHeight:48}),this.load.image(Mt.image.ground,an),this.load.image(Mt.image.sky,on),this.load.image(Mt.image.star,hn)}create(){this.scene.start(Mt.scene.main)}}var ts={},Ze={},es={},it={};Object.defineProperty(it,"__esModule",{value:!0});it.Zone=it.Video=it.UpdateList=it.Triangle=it.TileSprite=it.TextStyle=it.Text=it.Star=it.Sprite=it.Shape=it.Shader=it.Rope=it.RenderTexture=it.Rectangle=it.Polygon=it.PointLight=it.Plane=it.PathFollower=it.ParticleEmitter=it.NineSlice=it.Mesh=it.Line=it.LightsPlugin=it.LightsManager=it.Light=it.Layer=it.IsoTriangle=it.IsoBox=it.Image=it.Group=it.Grid=it.Graphics=it.GameObjectFactory=it.GameObjectCreator=it.GameObject=it.Extern=it.Ellipse=it.DynamicBitmapText=it.DisplayList=it.DOMElement=it.Curve=it.Container=it.Bob=it.Blitter=it.BitmapText=it.Arc=void 0;var ut=Ai;it.Arc=ut.GameObjects.Arc;it.BitmapText=ut.GameObjects.BitmapText;it.Blitter=ut.GameObjects.Blitter;it.Bob=ut.GameObjects.Bob;it.Container=ut.GameObjects.Container;it.Curve=ut.GameObjects.Curve;it.DOMElement=ut.GameObjects.DOMElement;it.DisplayList=ut.GameObjects.DisplayList;it.DynamicBitmapText=ut.GameObjects.DynamicBitmapText;it.Ellipse=ut.GameObjects.Ellipse;it.Extern=ut.GameObjects.Extern;it.GameObject=ut.GameObjects.GameObject;it.GameObjectCreator=ut.GameObjects.GameObjectCreator;it.GameObjectFactory=ut.GameObjects.GameObjectFactory;it.Graphics=ut.GameObjects.Graphics;it.Grid=ut.GameObjects.Grid;it.Group=ut.GameObjects.Group;it.Image=ut.GameObjects.Image;it.IsoBox=ut.GameObjects.IsoBox;it.IsoTriangle=ut.GameObjects.IsoTriangle;it.Layer=ut.GameObjects.Layer;it.Light=ut.GameObjects.Light;it.LightsManager=ut.GameObjects.LightsManager;it.LightsPlugin=ut.GameObjects.LightsPlugin;it.Line=ut.GameObjects.Line;it.Mesh=ut.GameObjects.Mesh;it.NineSlice=ut.GameObjects.NineSlice;it.ParticleEmitter=ut.GameObjects.Particles.ParticleEmitter;it.PathFollower=ut.GameObjects.PathFollower;it.Plane=ut.GameObjects.Plane;it.PointLight=ut.GameObjects.PointLight;it.Polygon=ut.GameObjects.Polygon;it.Rectangle=ut.GameObjects.Rectangle;it.RenderTexture=ut.GameObjects.RenderTexture;it.Rope=ut.GameObjects.Rope;it.Shader=ut.GameObjects.Shader;it.Shape=ut.GameObjects.Shape;it.Sprite=ut.GameObjects.Sprite;it.Star=ut.GameObjects.Star;it.Text=ut.GameObjects.Text;it.TextStyle=ut.GameObjects.TextStyle;it.TileSprite=ut.GameObjects.TileSprite;it.Triangle=ut.GameObjects.Triangle;it.UpdateList=ut.GameObjects.UpdateList;it.Video=ut.GameObjects.Video;it.Zone=ut.GameObjects.Zone;(function(O){var b=ft&&ft.__createBinding||(Object.create?function(U,H,J,p){p===void 0&&(p=J);var T=Object.getOwnPropertyDescriptor(H,J);(!T||("get"in T?!H.__esModule:T.writable||T.configurable))&&(T={enumerable:!0,get:function(){return H[J]}}),Object.defineProperty(U,p,T)}:function(U,H,J,p){p===void 0&&(p=J),U[p]=H[J]}),z=ft&&ft.__exportStar||function(U,H){for(var J in U)J!=="default"&&!Object.prototype.hasOwnProperty.call(H,J)&&b(H,U,J)};Object.defineProperty(O,"__esModule",{value:!0}),z(it,O)})(es);var Mi={},Pe={};Object.defineProperty(Pe,"__esModule",{value:!0});Pe.createElement=void 0;function fn(O,b){for(var z=[],U=2;U-1:t=new O.type(b);break;default:return vi(new O.type(O.props),b)}return(0,Fn.setProps)(t,T,b),(0,Ln.attachRef)(t,H),Array.isArray(U)&&U.forEach(function(d){var c=vi(d,b);c&&(t instanceof ai.default.GameObjects.Container?t.add(c):b.add.existing(c))}),t}}Ae.createGameObject=vi;var ke={};Object.defineProperty(ke,"__esModule",{value:!0});ke.render=void 0;var Dn=Ri,wn=Ae;function Bn(O,b){(0,Dn.setScene)(b);var z=(0,wn.createGameObject)(O,b);z&&b.add.existing(z)}ke.render=Bn;(function(O){var b=ft&&ft.__createBinding||(Object.create?function(U,H,J,p){p===void 0&&(p=J);var T=Object.getOwnPropertyDescriptor(H,J);(!T||("get"in T?!H.__esModule:T.writable||T.configurable))&&(T={enumerable:!0,get:function(){return H[J]}}),Object.defineProperty(U,p,T)}:function(U,H,J,p){p===void 0&&(p=J),U[p]=H[J]}),z=ft&&ft.__exportStar||function(U,H){for(var J in U)J!=="default"&&!Object.prototype.hasOwnProperty.call(H,J)&&b(H,U,J)};Object.defineProperty(O,"__esModule",{value:!0}),z(Ae,O),z(Me,O),z(Re,O),z(ke,O)})(as);(function(O){var b=ft&&ft.__createBinding||(Object.create?function(T,t,d,c){c===void 0&&(c=d);var a=Object.getOwnPropertyDescriptor(t,d);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[d]}}),Object.defineProperty(T,c,a)}:function(T,t,d,c){c===void 0&&(c=d),T[c]=t[d]}),z=ft&&ft.__exportStar||function(T,t){for(var d in T)d!=="default"&&!Object.prototype.hasOwnProperty.call(t,d)&&b(t,T,d)};Object.defineProperty(O,"__esModule",{value:!0}),O.render=O.createRef=O.useScene=O.jsx=O.createElement=void 0,z(es,O);var U=Mi;Object.defineProperty(O,"createElement",{enumerable:!0,get:function(){return U.createElement}}),Object.defineProperty(O,"jsx",{enumerable:!0,get:function(){return U.jsx}});var H=ss;Object.defineProperty(O,"useScene",{enumerable:!0,get:function(){return H.useScene}});var J=rs;Object.defineProperty(O,"createRef",{enumerable:!0,get:function(){return J.createRef}});var p=as;Object.defineProperty(O,"render",{enumerable:!0,get:function(){return p.render}})})(Ze);(function(O){Object.defineProperty(O,"__esModule",{value:!0}),O.jsxs=O.jsx=O.Fragment=void 0;var b=Ze;Object.defineProperty(O,"Fragment",{enumerable:!0,get:function(){return b.Container}}),Object.defineProperty(O,"jsx",{enumerable:!0,get:function(){return b.jsx}}),Object.defineProperty(O,"jsxs",{enumerable:!0,get:function(){return b.jsx}})})(ts);var hs=ts;function In(O){return hs.jsx(Ze.Text,{x:16,y:16,text:O.text,style:{fontFamily:'"Lucida Grande", Helvetica, Arial, sans-serif',fontSize:"32px"},ref:O.ref})}class Gn extends Wt.Physics.Arcade.Sprite{constructor(b,z,U,H=Mt.image.dude,J=0){super(b,z,U,H,J),b.add.existing(this),b.physics.world.enable(this),this.cursors=b.input.keyboard.createCursorKeys(),this.createAnimations(),this.body.setBounceY(.2).setCollideWorldBounds(!0)}createAnimations(){const b=this.scene.anims;b.exists("Left")||b.create({key:"Left",frames:b.generateFrameNumbers(Mt.image.dude,{start:0,end:3}),frameRate:10,repeat:-1}),b.exists("Turn")||b.create({key:"Turn",frames:[{key:Mt.image.dude,frame:4}],frameRate:20}),b.exists("Right")||b.create({key:"Right",frames:b.generateFrameNumbers(Mt.image.dude,{start:5,end:8}),frameRate:10,repeat:-1})}update(){switch(!0){case this.cursors.left.isDown:this.body.setVelocityX(-160),this.anims.play("Left",!0);break;case this.cursors.right.isDown:this.body.setVelocityX(160),this.anims.play("Right",!0);break;default:this.body.setVelocityX(0),this.anims.play("Turn");break}this.cursors.up.isDown&&this.body.touching.down&&this.body.setVelocityY(-330)}}class Nn extends Wt.Physics.Arcade.Sprite{constructor(b,z,U,H=Mt.image.star,J){super(b,z,U,H||Mt.image.star,J),this.setOrigin(0)}}function mt(O){for(var b=arguments.length,z=new Array(b>1?b-1:0),U=1;UO.length)&&(b=O.length);for(var z=0,U=new Array(b);z=O.length?{done:!0}:{done:!1,value:O[U++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wn(O,b){if(typeof O!="object"||O===null)return O;var z=O[Symbol.toPrimitive];if(z!==void 0){var U=z.call(O,b||"default");if(typeof U!="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(O)}function Hn(O){var b=Wn(O,"string");return typeof b=="symbol"?b:String(b)}var oe=Symbol("mobx-stored-annotations");function bt(O){function b(z,U){if(Le(U))return O.decorate_20223_(z,U);ce(z,U,O)}return Object.assign(b,O)}function ce(O,b,z){Ht(O,oe)||Fi(O,oe,ue({},O[oe])),qn(z)||(O[oe][b]=z)}function Le(O){return typeof O=="object"&&typeof O.kind=="string"}var lt=Symbol("mobx administration"),Oe=function(){function O(z){z===void 0&&(z="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=gt.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=z}var b=O.prototype;return b.onBO=function(){this.onBOL&&this.onBOL.forEach(function(U){return U()})},b.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(U){return U()})},b.reportObserved=function(){return Gs(this)},b.reportChanged=function(){Dt(),Ns(this),wt()},b.toString=function(){return this.name_},O}(),Di=ee("Atom",Oe);function ys(O,b,z){b===void 0&&(b=re),z===void 0&&(z=re);var U=new Oe(O);return b!==re&&ea(U,b),z!==re&&zs(U,z),U}function Kn(O,b){return O===b}function Zn(O,b){return bi(O,b)}function Jn(O,b){return bi(O,b,1)}function jn(O,b){return Object.is?Object.is(O,b):O===b?O!==0||1/O===1/b:O!==O&&b!==b}var Ve={identity:Kn,structural:Zn,default:jn,shallow:Jn};function _t(O,b,z){return Hs(O)?O:Array.isArray(O)?Pt.array(O,{name:z}):Kt(O)?Pt.object(O,void 0,{name:z}):ve(O)?Pt.map(O,{name:z}):Fe(O)?Pt.set(O,{name:z}):typeof O=="function"&&!ni(O)&&!Te(O)?cs(O)?de(O):ye(z,O):O}function Qn(O,b,z){if(O==null||Se(O)||ri(O)||se(O)||pe(O))return O;if(Array.isArray(O))return Pt.array(O,{name:z,deep:!1});if(Kt(O))return Pt.object(O,void 0,{name:z,deep:!1});if(ve(O))return Pt.map(O,{name:z,deep:!1});if(Fe(O))return Pt.set(O,{name:z,deep:!1})}function ti(O){return O}function $n(O,b){return bi(O,b)?b:O}var kn="override";function qn(O){return O.annotationType_===kn}function De(O,b){return{annotationType_:O,options_:b,make_:_n,extend_:tr,decorate_20223_:er}}function _n(O,b,z,U){var H;if((H=this.options_)!=null&&H.bound)return this.extend_(O,b,z,!1)===null?0:1;if(U===O.target_)return this.extend_(O,b,z,!1)===null?0:2;if(ni(z.value))return 1;var J=Ts(O,this,b,z,!1);return Ut(U,b,J),2}function tr(O,b,z,U){var H=Ts(O,this,b,z);return O.defineProperty_(b,H,U)}function er(O,b){var z=b.kind,U=b.name,H=b.addInitializer,J=this,p=function(d){var c,a,r,n;return te((c=(a=J.options_)==null?void 0:a.name)!=null?c:U.toString(),d,(r=(n=J.options_)==null?void 0:n.autoAction)!=null?r:!1)};if(z=="field"){H(function(){ce(this,U,J)});return}if(z=="method"){var T;return ni(O)||(O=p(O)),(T=this.options_)!=null&&T.bound&&H(function(){var t=this,d=t[U].bind(t);d.isMobxAction=!0,t[U]=d}),O}mt("Cannot apply '"+J.annotationType_+"' to '"+String(U)+"' (kind: "+z+"):"+(` +'`+J.annotationType_+"' can only be used on properties with a function value."))}function ir(O,b,z,U){b.annotationType_,U.value}function Ts(O,b,z,U,H){var J,p,T,t,d,c,a;H===void 0&&(H=at.safeDescriptors),ir(O,b,z,U);var r=U.value;if((J=b.options_)!=null&&J.bound){var n;r=r.bind((n=O.proxy_)!=null?n:O.target_)}return{value:te((p=(T=b.options_)==null?void 0:T.name)!=null?p:z.toString(),r,(t=(d=b.options_)==null?void 0:d.autoAction)!=null?t:!1,(c=b.options_)!=null&&c.bound?(a=O.proxy_)!=null?a:O.target_:void 0),configurable:H?O.isPlainObject_:!0,enumerable:!1,writable:!H}}function Ss(O,b){return{annotationType_:O,options_:b,make_:sr,extend_:nr,decorate_20223_:rr}}function sr(O,b,z,U){var H;if(U===O.target_)return this.extend_(O,b,z,!1)===null?0:2;if((H=this.options_)!=null&&H.bound&&(!Ht(O.target_,b)||!Te(O.target_[b]))&&this.extend_(O,b,z,!1)===null)return 0;if(Te(z.value))return 1;var J=Es(O,this,b,z,!1,!1);return Ut(U,b,J),2}function nr(O,b,z,U){var H,J=Es(O,this,b,z,(H=this.options_)==null?void 0:H.bound);return O.defineProperty_(b,J,U)}function rr(O,b){var z,U=b.name,H=b.addInitializer;return Te(O)||(O=de(O)),(z=this.options_)!=null&&z.bound&&H(function(){var J=this,p=J[U].bind(J);p.isMobXFlow=!0,J[U]=p}),O}function ar(O,b,z,U){b.annotationType_,U.value}function Es(O,b,z,U,H,J){J===void 0&&(J=at.safeDescriptors),ar(O,b,z,U);var p=U.value;if(Te(p)||(p=de(p)),H){var T;p=p.bind((T=O.proxy_)!=null?T:O.target_),p.isMobXFlow=!0}return{value:p,configurable:J?O.isPlainObject_:!0,enumerable:!1,writable:!J}}function wi(O,b){return{annotationType_:O,options_:b,make_:or,extend_:hr,decorate_20223_:lr}}function or(O,b,z){return this.extend_(O,b,z,!1)===null?0:1}function hr(O,b,z,U){return ur(O,this,b,z),O.defineComputedProperty_(b,ue({},this.options_,{get:z.get,set:z.set}),U)}function lr(O,b){var z=this,U=b.name,H=b.addInitializer;return H(function(){var J=Ie(this)[lt],p=ue({},z.options_,{get:O,context:this});p.name||(p.name="ObservableObject."+U.toString()),J.values_.set(U,new fe(p))}),function(){return this[lt].getObservablePropValue_(U)}}function ur(O,b,z,U){b.annotationType_,U.get}function ei(O,b){return{annotationType_:O,options_:b,make_:fr,extend_:dr,decorate_20223_:vr}}function fr(O,b,z){return this.extend_(O,b,z,!1)===null?0:1}function dr(O,b,z,U){var H,J;return cr(O,this),O.defineObservableProperty_(b,z.value,(H=(J=this.options_)==null?void 0:J.enhancer)!=null?H:_t,U)}function vr(O,b){var z=this,U=b.kind,H=b.name,J=new WeakSet;function p(T,t){var d,c,a=Ie(T)[lt],r=new kt(t,(d=(c=z.options_)==null?void 0:c.enhancer)!=null?d:_t,"ObservableObject."+H.toString(),!1);a.values_.set(H,r),J.add(T)}if(U=="accessor")return{get:function(){return J.has(this)||p(this,O.get.call(this)),this[lt].getObservablePropValue_(H)},set:function(t){return J.has(this)||p(this,t),this[lt].setObservablePropValue_(H,t)},init:function(t){return J.has(this)||p(this,t),t}}}function cr(O,b,z,U){b.annotationType_}var pr="true",gr=Cs();function Cs(O){return{annotationType_:pr,options_:O,make_:mr,extend_:xr,decorate_20223_:yr}}function mr(O,b,z,U){var H,J;if(z.get)return ii.make_(O,b,z,U);if(z.set){var p=te(b.toString(),z.set);return U===O.target_?O.defineProperty_(b,{configurable:at.safeDescriptors?O.isPlainObject_:!0,set:p})===null?0:2:(Ut(U,b,{configurable:!0,set:p}),2)}if(U!==O.target_&&typeof z.value=="function"){var T;if(cs(z.value)){var t,d=(t=this.options_)!=null&&t.autoBind?de.bound:de;return d.make_(O,b,z,U)}var c=(T=this.options_)!=null&&T.autoBind?ye.bound:ye;return c.make_(O,b,z,U)}var a=((H=this.options_)==null?void 0:H.deep)===!1?Pt.ref:Pt;if(typeof z.value=="function"&&(J=this.options_)!=null&&J.autoBind){var r;z.value=z.value.bind((r=O.proxy_)!=null?r:O.target_)}return a.make_(O,b,z,U)}function xr(O,b,z,U){var H,J;if(z.get)return ii.extend_(O,b,z,U);if(z.set)return O.defineProperty_(b,{configurable:at.safeDescriptors?O.isPlainObject_:!0,set:te(b.toString(),z.set)},U);if(typeof z.value=="function"&&(H=this.options_)!=null&&H.autoBind){var p;z.value=z.value.bind((p=O.proxy_)!=null?p:O.target_)}var T=((J=this.options_)==null?void 0:J.deep)===!1?Pt.ref:Pt;return T.extend_(O,b,z,U)}function yr(O,b){mt("'"+this.annotationType_+"' cannot be used as a decorator")}var Tr="observable",Sr="observable.ref",Er="observable.shallow",Cr="observable.struct",Ps={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(Ps);function Ge(O){return O||Ps}var gi=ei(Tr),Pr=ei(Sr,{enhancer:ti}),Ar=ei(Er,{enhancer:Qn}),Mr=ei(Cr,{enhancer:$n}),As=bt(gi);function Ne(O){return O.deep===!0?_t:O.deep===!1?ti:Fr(O.defaultDecorator)}function Rr(O){var b;return O?(b=O.defaultDecorator)!=null?b:Cs(O):void 0}function Fr(O){var b,z;return O&&(b=(z=O.options_)==null?void 0:z.enhancer)!=null?b:_t}function Ms(O,b,z){if(Le(b))return gi.decorate_20223_(O,b);if(qt(b)){ce(O,b,gi);return}return Hs(O)?O:Kt(O)?Pt.object(O,b,z):Array.isArray(O)?Pt.array(O,b):ve(O)?Pt.map(O,b):Fe(O)?Pt.set(O,b):typeof O=="object"&&O!==null?O:Pt.box(O,b)}us(Ms,As);var Lr={box:function(b,z){var U=Ge(z);return new kt(b,Ne(U),U.name,!0,U.equals)},array:function(b,z){var U=Ge(z);return(at.useProxies===!1||U.proxy===!1?Ta:ua)(b,Ne(U),U.name)},map:function(b,z){var U=Ge(z);return new js(b,Ne(U),U.name)},set:function(b,z){var U=Ge(z);return new ks(b,Ne(U),U.name)},object:function(b,z,U){return ge(function(){return ia(at.useProxies===!1||(U==null?void 0:U.proxy)===!1?Ie({},U):oa({},U),b,z)})},ref:bt(Pr),shallow:bt(Ar),deep:As,struct:bt(Mr)},Pt=us(Ms,Lr),Rs="computed",Or="computed.struct",mi=wi(Rs),Dr=wi(Or,{equals:Ve.structural}),ii=function(b,z){if(Le(z))return mi.decorate_20223_(b,z);if(qt(z))return ce(b,z,mi);if(Kt(b))return bt(wi(Rs,b));var U=Kt(z)?z:{};return U.get=b,U.name||(U.name=b.name||""),new fe(U)};Object.assign(ii,mi);ii.struct=bt(Dr);var zi,Yi,Xe=0,wr=1,Br=(zi=(Yi=be(function(){},"name"))==null?void 0:Yi.configurable)!=null?zi:!1,Wi={value:"action",configurable:!0,writable:!1,enumerable:!1};function te(O,b,z,U){z===void 0&&(z=!1);function H(){return Ir(O,z,b,U||this,arguments)}return H.isMobxAction=!0,H.toString=function(){return b.toString()},Br&&(Wi.value=O,Ut(H,"name",Wi)),H}function Ir(O,b,z,U,H){var J=Gr(O,b);try{return z.apply(U,H)}catch(p){throw J.error_=p,p}finally{Nr(J)}}function Gr(O,b,z,U){var H=!1,J=0,p=at.trackingDerivation,T=!b||!p;Dt();var t=at.allowStateChanges;T&&(ie(),t=Bi(!0));var d=Gi(!0),c={runAsAction_:T,prevDerivation_:p,prevAllowStateChanges_:t,prevAllowStateReads_:d,notifySpy_:H,startTime_:J,actionId_:wr++,parentActionId_:Xe};return Xe=c.actionId_,c}function Nr(O){Xe!==O.actionId_&&mt(30),Xe=O.parentActionId_,O.error_!==void 0&&(at.suppressReactionErrors=!0),Ii(O.prevAllowStateChanges_),me(O.prevAllowStateReads_),wt(),O.runAsAction_&&zt(O.prevDerivation_),at.suppressReactionErrors=!1}function Bi(O){var b=at.allowStateChanges;return at.allowStateChanges=O,b}function Ii(O){at.allowStateChanges=O}var Fs;Fs=Symbol.toPrimitive;var kt=function(O){xs(b,O);function b(U,H,J,p,T){var t;return J===void 0&&(J="ObservableValue"),T===void 0&&(T=Ve.default),t=O.call(this,J)||this,t.enhancer=void 0,t.name_=void 0,t.equals=void 0,t.hasUnreportedChange_=!1,t.interceptors_=void 0,t.changeListeners_=void 0,t.value_=void 0,t.dehancer=void 0,t.enhancer=H,t.name_=J,t.equals=T,t.value_=H(U,void 0,J),t}var z=b.prototype;return z.dehanceValue=function(H){return this.dehancer!==void 0?this.dehancer(H):H},z.set=function(H){this.value_,H=this.prepareNewValue_(H),H!==at.UNCHANGED&&this.setNewValue_(H)},z.prepareNewValue_=function(H){if(Lt(this)){var J=Ot(this,{object:this,type:Vt,newValue:H});if(!J)return at.UNCHANGED;H=J.newValue}return H=this.enhancer(H,this.value_,this.name_),this.equals(this.value_,H)?at.UNCHANGED:H},z.setNewValue_=function(H){var J=this.value_;this.value_=H,this.reportChanged(),Bt(this)&&It(this,{type:Vt,object:this,newValue:H,oldValue:J})},z.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},z.intercept_=function(H){return we(this,H)},z.observe_=function(H,J){return J&&H({observableKind:"value",debugObjectName:this.name_,object:this,type:Vt,newValue:this.value_,oldValue:void 0}),Be(this,H)},z.raw=function(){return this.value_},z.toJSON=function(){return this.get()},z.toString=function(){return this.name_+"["+this.value_+"]"},z.valueOf=function(){return ms(this.get())},z[Fs]=function(){return this.valueOf()},b}(Oe),Ls;Ls=Symbol.toPrimitive;var fe=function(){function O(z){this.dependenciesState_=gt.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=gt.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Ye(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=ze.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,z.get||mt(31),this.derivation=z.get,this.name_=z.name||"ComputedValue",z.set&&(this.setter_=te("ComputedValue-setter",z.set)),this.equals_=z.equals||(z.compareStructural||z.struct?Ve.structural:Ve.default),this.scope_=z.context,this.requiresReaction_=z.requiresReaction,this.keepAlive_=!!z.keepAlive}var b=O.prototype;return b.onBecomeStale_=function(){Xr(this)},b.onBO=function(){this.onBOL&&this.onBOL.forEach(function(U){return U()})},b.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(U){return U()})},b.get=function(){if(this.isComputing_&&mt(32,this.name_,this.derivation),at.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)xi(this)&&(this.warnAboutUntrackedRead_(),Dt(),this.value_=this.computeValue_(!1),wt());else if(Gs(this),xi(this)){var U=at.trackingContext;this.keepAlive_&&!U&&(at.trackingContext=this),this.trackAndCompute()&&Vr(this),at.trackingContext=U}var H=this.value_;if(Ue(H))throw H.cause;return H},b.set=function(U){if(this.setter_){this.isRunningSetter_&&mt(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,U)}finally{this.isRunningSetter_=!1}}else mt(34,this.name_)},b.trackAndCompute=function(){var U=this.value_,H=this.dependenciesState_===gt.NOT_TRACKING_,J=this.computeValue_(!0),p=H||Ue(U)||Ue(J)||!this.equals_(U,J);return p&&(this.value_=J),p},b.computeValue_=function(U){this.isComputing_=!0;var H=Bi(!1),J;if(U)J=Os(this,this.derivation,this.scope_);else if(at.disableErrorBoundaries===!0)J=this.derivation.call(this.scope_);else try{J=this.derivation.call(this.scope_)}catch(p){J=new Ye(p)}return Ii(H),this.isComputing_=!1,J},b.suspend_=function(){this.keepAlive_||(yi(this),this.value_=void 0)},b.observe_=function(U,H){var J=this,p=!0,T=void 0;return $r(function(){var t=J.get();if(!p||H){var d=ie();U({observableKind:"computed",debugObjectName:J.name_,type:Vt,object:J,newValue:t,oldValue:T}),zt(d)}p=!1,T=t})},b.warnAboutUntrackedRead_=function(){},b.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},b.valueOf=function(){return ms(this.get())},b[Ls]=function(){return this.valueOf()},O}(),si=ee("ComputedValue",fe),gt;(function(O){O[O.NOT_TRACKING_=-1]="NOT_TRACKING_",O[O.UP_TO_DATE_=0]="UP_TO_DATE_",O[O.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",O[O.STALE_=2]="STALE_"})(gt||(gt={}));var ze;(function(O){O[O.NONE=0]="NONE",O[O.LOG=1]="LOG",O[O.BREAK=2]="BREAK"})(ze||(ze={}));var Ye=function(b){this.cause=void 0,this.cause=b};function Ue(O){return O instanceof Ye}function xi(O){switch(O.dependenciesState_){case gt.UP_TO_DATE_:return!1;case gt.NOT_TRACKING_:case gt.STALE_:return!0;case gt.POSSIBLY_STALE_:{for(var b=Gi(!0),z=ie(),U=O.observing_,H=U.length,J=0;JU&&(U=T.dependenciesState_)}for(z.length=H,O.newObserving_=null,J=b.length;J--;){var t=b[J];t.diffValue_===0&&Bs(t,O),t.diffValue_=0}for(;H--;){var d=z[H];d.diffValue_===1&&(d.diffValue_=0,br(d,O))}U!==gt.UP_TO_DATE_&&(O.dependenciesState_=U,O.onBecomeStale_())}function yi(O){var b=O.observing_;O.observing_=[];for(var z=b.length;z--;)Bs(b[z],O);O.dependenciesState_=gt.NOT_TRACKING_}function Ds(O){var b=ie();try{return O()}finally{zt(b)}}function ie(){var O=at.trackingDerivation;return at.trackingDerivation=null,O}function zt(O){at.trackingDerivation=O}function Gi(O){var b=at.allowStateReads;return at.allowStateReads=O,b}function me(O){at.allowStateReads=O}function ws(O){if(O.dependenciesState_!==gt.UP_TO_DATE_){O.dependenciesState_=gt.UP_TO_DATE_;for(var b=O.observing_,z=b.length;z--;)b[z].lowestObserverState_=gt.UP_TO_DATE_}}var hi=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},li=!0,at=function(){var O=ls();return O.__mobxInstanceCount>0&&!O.__mobxGlobals&&(li=!1),O.__mobxGlobals&&O.__mobxGlobals.version!==new hi().version&&(li=!1),li?O.__mobxGlobals?(O.__mobxInstanceCount+=1,O.__mobxGlobals.UNCHANGED||(O.__mobxGlobals.UNCHANGED={}),O.__mobxGlobals):(O.__mobxInstanceCount=1,O.__mobxGlobals=new hi):(setTimeout(function(){mt(35)},1),new hi)}();function br(O,b){O.observers_.add(b),O.lowestObserverState_>b.dependenciesState_&&(O.lowestObserverState_=b.dependenciesState_)}function Bs(O,b){O.observers_.delete(b),O.observers_.size===0&&Is(O)}function Is(O){O.isPendingUnobservation_===!1&&(O.isPendingUnobservation_=!0,at.pendingUnobservations.push(O))}function Dt(){at.inBatch++}function wt(){if(--at.inBatch===0){Us();for(var O=at.pendingUnobservations,b=0;b0&&Is(O),!1)}function Ns(O){O.lowestObserverState_!==gt.STALE_&&(O.lowestObserverState_=gt.STALE_,O.observers_.forEach(function(b){b.dependenciesState_===gt.UP_TO_DATE_&&b.onBecomeStale_(),b.dependenciesState_=gt.STALE_}))}function Vr(O){O.lowestObserverState_!==gt.STALE_&&(O.lowestObserverState_=gt.STALE_,O.observers_.forEach(function(b){b.dependenciesState_===gt.POSSIBLY_STALE_?b.dependenciesState_=gt.STALE_:b.dependenciesState_===gt.UP_TO_DATE_&&(O.lowestObserverState_=gt.UP_TO_DATE_)}))}function Xr(O){O.lowestObserverState_===gt.UP_TO_DATE_&&(O.lowestObserverState_=gt.POSSIBLY_STALE_,O.observers_.forEach(function(b){b.dependenciesState_===gt.UP_TO_DATE_&&(b.dependenciesState_=gt.POSSIBLY_STALE_,b.onBecomeStale_())}))}var Ti=function(){function O(z,U,H,J){z===void 0&&(z="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=gt.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=ze.NONE,this.name_=z,this.onInvalidate_=U,this.errorHandler_=H,this.requiresObservable_=J}var b=O.prototype;return b.onBecomeStale_=function(){this.schedule_()},b.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,at.pendingReactions.push(this),Us())},b.isScheduled=function(){return this.isScheduled_},b.runReaction_=function(){if(!this.isDisposed_){Dt(),this.isScheduled_=!1;var U=at.trackingContext;if(at.trackingContext=this,xi(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(H){this.reportExceptionInDerivation_(H)}}at.trackingContext=U,wt()}},b.track=function(U){if(!this.isDisposed_){Dt(),this.isRunning_=!0;var H=at.trackingContext;at.trackingContext=this;var J=Os(this,U,void 0);at.trackingContext=H,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&yi(this),Ue(J)&&this.reportExceptionInDerivation_(J.cause),wt()}},b.reportExceptionInDerivation_=function(U){var H=this;if(this.errorHandler_){this.errorHandler_(U,this);return}if(at.disableErrorBoundaries)throw U;var J="[mobx] uncaught error in '"+this+"'";at.suppressReactionErrors||console.error(J,U),at.globalReactionErrorHandlers.forEach(function(p){return p(U,H)})},b.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(Dt(),yi(this),wt()))},b.getDisposer_=function(U){var H=this,J=function p(){H.dispose(),U==null||U.removeEventListener==null||U.removeEventListener("abort",p)};return U==null||U.addEventListener==null||U.addEventListener("abort",J),J[lt]=this,J},b.toString=function(){return"Reaction["+this.name_+"]"},b.trace=function(U){},O}(),zr=100,Yr=function(b){return b()};function Us(){at.inBatch>0||at.isRunningReactions||Yr(Wr)}function Wr(){at.isRunningReactions=!0;for(var O=at.pendingReactions,b=0;O.length>0;){++b===zr&&(console.error("[mobx] cycle in reaction: "+O[0]),O.splice(0));for(var z=O.splice(0),U=0,H=z.length;U",J=function(){var T=this,t=arguments,d=++sa,c=he(H+" - runid: "+d+" - init",U).apply(T,t),a,r=void 0,n=new Promise(function(e,s){var h=0;a=s;function i(l){r=void 0;var f;try{f=he(H+" - runid: "+d+" - yield "+h++,c.next).call(c,l)}catch(v){return s(v)}u(f)}function o(l){r=void 0;var f;try{f=he(H+" - runid: "+d+" - yield "+h++,c.throw).call(c,l)}catch(v){return s(v)}u(f)}function u(l){if(Gt(l==null?void 0:l.then)){l.then(u,s);return}return l.done?e(l.value):(r=Promise.resolve(l.value),r.then(i,o))}i(void 0)});return n.cancel=he(H+" - runid: "+d+" - cancel",function(){try{r&&Hi(r);var e=c.return(void 0),s=Promise.resolve(e.value);s.then(re,re),Hi(s),a(new Ws)}catch(h){a(h)}}),n};return J.isMobXFlow=!0,J},ui);de.bound=bt(na);function Hi(O){Gt(O.cancel)&&O.cancel()}function Te(O){return(O==null?void 0:O.isMobXFlow)===!0}function ra(O,b){return O?b!==void 0?Se(O)?O[lt].values_.has(b):!1:Se(O)||!!O[lt]||Di(O)||We(O)||si(O):!1}function Hs(O){return ra(O)}function Xt(O,b){b===void 0&&(b=void 0),Dt();try{return O.apply(b)}finally{wt()}}function ne(O){return O[lt]}var aa={has:function(b,z){return ne(b).has_(z)},get:function(b,z){return ne(b).get_(z)},set:function(b,z,U){var H;return qt(z)?(H=ne(b).set_(z,U,!0))!=null?H:!0:!1},deleteProperty:function(b,z){var U;return qt(z)?(U=ne(b).delete_(z,!0))!=null?U:!0:!1},defineProperty:function(b,z,U){var H;return(H=ne(b).defineProperty_(z,U))!=null?H:!0},ownKeys:function(b){return ne(b).ownKeys_()},preventExtensions:function(b){mt(13)}};function oa(O,b){var z,U;return ds(),O=Ie(O,b),(U=(z=O[lt]).proxy_)!=null?U:z.proxy_=new Proxy(O,aa)}function Lt(O){return O.interceptors_!==void 0&&O.interceptors_.length>0}function we(O,b){var z=O.interceptors_||(O.interceptors_=[]);return z.push(b),vs(function(){var U=z.indexOf(b);U!==-1&&z.splice(U,1)})}function Ot(O,b){var z=ie();try{for(var U=[].concat(O.interceptors_||[]),H=0,J=U.length;H0}function Be(O,b){var z=O.changeListeners_||(O.changeListeners_=[]);return z.push(b),vs(function(){var U=z.indexOf(b);U!==-1&&z.splice(U,1)})}function It(O,b){var z=ie(),U=O.changeListeners_;if(U){U=U.slice();for(var H=0,J=U.length;H0?U.map(this.dehancer):U},b.intercept_=function(U){return we(this,U)},b.observe_=function(U,H){return H===void 0&&(H=!1),H&&U({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),Be(this,U)},b.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},b.setArrayLength_=function(U){(typeof U!="number"||isNaN(U)||U<0)&&mt("Out of range: "+U);var H=this.values_.length;if(U!==H)if(U>H){for(var J=new Array(U-H),p=0;p0&&en(U+H+1)},b.spliceWithArray_=function(U,H,J){var p=this;this.atom_;var T=this.values_.length;if(U===void 0?U=0:U>T?U=T:U<0&&(U=Math.max(0,T+U)),arguments.length===1?H=T-U:H==null?H=0:H=Math.max(0,Math.min(H,T-U)),J===void 0&&(J=ci),Lt(this)){var t=Ot(this,{object:this.proxy_,type:Ki,index:U,removedCount:H,added:J});if(!t)return ci;H=t.removedCount,J=t.added}if(J=J.length===0?J:J.map(function(a){return p.enhancer_(a,void 0)}),this.legacyMode_){var d=J.length-H;this.updateArrayLength_(T,d)}var c=this.spliceItemsIntoValues_(U,H,J);return(H!==0||J.length!==0)&&this.notifyArraySplice_(U,J,c),this.dehanceValues_(c)},b.spliceItemsIntoValues_=function(U,H,J){if(J.length=this.values_.length){console.warn("[mobx] Out of bounds read: "+U);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[U])},b.set_=function(U,H){var J=this.values_;if(this.legacyMode_&&U>J.length&&mt(17,U,J.length),U2?U-2:0),J=2;J-1?(this.splice(U,1),!0):!1}};Tt("at",Ft);Tt("concat",Ft);Tt("flat",Ft);Tt("includes",Ft);Tt("indexOf",Ft);Tt("join",Ft);Tt("lastIndexOf",Ft);Tt("slice",Ft);Tt("toString",Ft);Tt("toLocaleString",Ft);Tt("toSorted",Ft);Tt("toSpliced",Ft);Tt("with",Ft);Tt("every",Nt);Tt("filter",Nt);Tt("find",Nt);Tt("findIndex",Nt);Tt("findLast",Nt);Tt("findLastIndex",Nt);Tt("flatMap",Nt);Tt("forEach",Nt);Tt("map",Nt);Tt("some",Nt);Tt("toReversed",Nt);Tt("reduce",Ks);Tt("reduceRight",Ks);function Tt(O,b){typeof Array.prototype[O]=="function"&&(He[O]=b(O))}function Ft(O){return function(){var b=this[lt];b.atom_.reportObserved();var z=b.dehanceValues_(b.values_);return z[O].apply(z,arguments)}}function Nt(O){return function(b,z){var U=this,H=this[lt];H.atom_.reportObserved();var J=H.dehanceValues_(H.values_);return J[O](function(p,T){return b.call(z,p,T,U)})}}function Ks(O){return function(){var b=this,z=this[lt];z.atom_.reportObserved();var U=z.dehanceValues_(z.values_),H=arguments[0];return arguments[0]=function(J,p,T){return H(J,p,T,b)},U[O].apply(U,arguments)}}var fa=ee("ObservableArrayAdministration",Ni);function ri(O){return _e(O)&&fa(O[lt])}var Zs,Js,da={},Yt="add",Ke="delete";Zs=Symbol.iterator;Js=Symbol.toStringTag;var js=function(){function O(z,U,H){var J=this;U===void 0&&(U=_t),H===void 0&&(H="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[lt]=da,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=U,this.name_=H,Gt(Map)||mt(18),ge(function(){J.keysAtom_=ys("ObservableMap.keys()"),J.data_=new Map,J.hasMap_=new Map,z&&J.merge(z)})}var b=O.prototype;return b.has_=function(U){return this.data_.has(U)},b.has=function(U){var H=this;if(!at.trackingDerivation)return this.has_(U);var J=this.hasMap_.get(U);if(!J){var p=J=new kt(this.has_(U),ti,"ObservableMap.key?",!1);this.hasMap_.set(U,p),zs(p,function(){return H.hasMap_.delete(U)})}return J.get()},b.set=function(U,H){var J=this.has_(U);if(Lt(this)){var p=Ot(this,{type:J?Vt:Yt,object:this,newValue:H,name:U});if(!p)return this;H=p.newValue}return J?this.updateValue_(U,H):this.addValue_(U,H),this},b.delete=function(U){var H=this;if(this.keysAtom_,Lt(this)){var J=Ot(this,{type:Ke,object:this,name:U});if(!J)return!1}if(this.has_(U)){var p=xe(),T=Bt(this),t=T||p?{observableKind:"map",debugObjectName:this.name_,type:Ke,object:this,oldValue:this.data_.get(U).value_,name:U}:null;return Xt(function(){var d;H.keysAtom_.reportChanged(),(d=H.hasMap_.get(U))==null||d.setNewValue_(!1);var c=H.data_.get(U);c.setNewValue_(void 0),H.data_.delete(U)}),T&&It(this,t),!0}return!1},b.updateValue_=function(U,H){var J=this.data_.get(U);if(H=J.prepareNewValue_(H),H!==at.UNCHANGED){var p=xe(),T=Bt(this),t=T||p?{observableKind:"map",debugObjectName:this.name_,type:Vt,object:this,oldValue:J.value_,name:U,newValue:H}:null;J.setNewValue_(H),T&&It(this,t)}},b.addValue_=function(U,H){var J=this;this.keysAtom_,Xt(function(){var d,c=new kt(H,J.enhancer_,"ObservableMap.key",!1);J.data_.set(U,c),H=c.value_,(d=J.hasMap_.get(U))==null||d.setNewValue_(!0),J.keysAtom_.reportChanged()});var p=xe(),T=Bt(this),t=T||p?{observableKind:"map",debugObjectName:this.name_,type:Yt,object:this,name:U,newValue:H}:null;T&&It(this,t)},b.get=function(U){return this.has(U)?this.dehanceValue_(this.data_.get(U).get()):this.dehanceValue_(void 0)},b.dehanceValue_=function(U){return this.dehancer!==void 0?this.dehancer(U):U},b.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},b.values=function(){var U=this,H=this.keys();return Ce({next:function(){var p=H.next(),T=p.done,t=p.value;return{done:T,value:T?void 0:U.get(t)}}})},b.entries=function(){var U=this,H=this.keys();return Ce({next:function(){var p=H.next(),T=p.done,t=p.value;return{done:T,value:T?void 0:[t,U.get(t)]}}})},b[Zs]=function(){return this.entries()},b.forEach=function(U,H){for(var J=ae(this),p;!(p=J()).done;){var T=p.value,t=T[0],d=T[1];U.call(H,d,t,this)}},b.merge=function(U){var H=this;return se(U)&&(U=new Map(U)),Xt(function(){Kt(U)?Xn(U).forEach(function(J){return H.set(J,U[J])}):Array.isArray(U)?U.forEach(function(J){var p=J[0],T=J[1];return H.set(p,T)}):ve(U)?(U.constructor!==Map&&mt(19,U),U.forEach(function(J,p){return H.set(p,J)})):U!=null&&mt(20,U)}),this},b.clear=function(){var U=this;Xt(function(){Ds(function(){for(var H=ae(U.keys()),J;!(J=H()).done;){var p=J.value;U.delete(p)}})})},b.replace=function(U){var H=this;return Xt(function(){for(var J=va(U),p=new Map,T=!1,t=ae(H.data_.keys()),d;!(d=t()).done;){var c=d.value;if(!J.has(c)){var a=H.delete(c);if(a)T=!0;else{var r=H.data_.get(c);p.set(c,r)}}}for(var n=ae(J.entries()),e;!(e=n()).done;){var s=e.value,h=s[0],i=s[1],o=H.data_.has(h);if(H.set(h,i),H.data_.has(h)){var u=H.data_.get(h);p.set(h,u),o||(T=!0)}}if(!T)if(H.data_.size!==p.size)H.keysAtom_.reportChanged();else for(var l=H.data_.keys(),f=p.keys(),v=l.next(),g=f.next();!v.done;){if(v.value!==g.value){H.keysAtom_.reportChanged();break}v=l.next(),g=f.next()}H.data_=p}),this},b.toString=function(){return"[object ObservableMap]"},b.toJSON=function(){return Array.from(this)},b.observe_=function(U,H){return Be(this,U)},b.intercept_=function(U){return we(this,U)},Oi(O,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Js,get:function(){return"Map"}}]),O}(),se=ee("ObservableMap",js);function va(O){if(ve(O)||se(O))return O;if(Array.isArray(O))return new Map(O);if(Kt(O)){var b=new Map;for(var z in O)b.set(z,O[z]);return b}else return mt(21,O)}var Qs,$s,ca={};Qs=Symbol.iterator;$s=Symbol.toStringTag;var ks=function(){function O(z,U,H){var J=this;U===void 0&&(U=_t),H===void 0&&(H="ObservableSet"),this.name_=void 0,this[lt]=ca,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=H,Gt(Set)||mt(22),this.enhancer_=function(p,T){return U(p,T,H)},ge(function(){J.atom_=ys(J.name_),z&&J.replace(z)})}var b=O.prototype;return b.dehanceValue_=function(U){return this.dehancer!==void 0?this.dehancer(U):U},b.clear=function(){var U=this;Xt(function(){Ds(function(){for(var H=ae(U.data_.values()),J;!(J=H()).done;){var p=J.value;U.delete(p)}})})},b.forEach=function(U,H){for(var J=ae(this),p;!(p=J()).done;){var T=p.value;U.call(H,T,T,this)}},b.add=function(U){var H=this;if(this.atom_,Lt(this)){var J=Ot(this,{type:Yt,object:this,newValue:U});if(!J)return this}if(!this.has(U)){Xt(function(){H.data_.add(H.enhancer_(U,void 0)),H.atom_.reportChanged()});var p=!1,T=Bt(this),t=T||p?{observableKind:"set",debugObjectName:this.name_,type:Yt,object:this,newValue:U}:null;T&&It(this,t)}return this},b.delete=function(U){var H=this;if(Lt(this)){var J=Ot(this,{type:Ke,object:this,oldValue:U});if(!J)return!1}if(this.has(U)){var p=!1,T=Bt(this),t=T||p?{observableKind:"set",debugObjectName:this.name_,type:Ke,object:this,oldValue:U}:null;return Xt(function(){H.atom_.reportChanged(),H.data_.delete(U)}),T&&It(this,t),!0}return!1},b.has=function(U){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(U))},b.entries=function(){var U=0,H=Array.from(this.keys()),J=Array.from(this.values());return Ce({next:function(){var T=U;return U+=1,Tfi){for(var b=fi;b=0&&z++;break}O=ki(O),b=ki(b);var T=p==="[object Array]";if(!T){if(typeof O!="object"||typeof b!="object")return!1;var t=O.constructor,d=b.constructor;if(t!==d&&!(Gt(t)&&t instanceof t&&Gt(d)&&d instanceof d)&&"constructor"in O&&"constructor"in b)return!1}if(z===0)return!1;z<0&&(z=-1),U=U||[],H=H||[];for(var c=U.length;c--;)if(U[c]===O)return H[c]===b;if(U.push(O),H.push(b),T){if(c=O.length,c!==b.length)return!1;for(;c--;)if(!Pi(O[c],b[c],z-1,U,H))return!1}else{var a=Object.keys(O),r;if(c=a.length,Object.keys(b).length!==c)return!1;for(;c--;)if(r=a[c],!(Ht(b,r)&&Pi(O[r],b[r],z-1,U,H)))return!1}return U.pop(),H.pop(),!0}function ki(O){return ri(O)?O.slice():ve(O)||se(O)||Fe(O)||pe(O)?Array.from(O.entries()):O}function Ce(O){return O[Symbol.iterator]=Sa,O}function Sa(){return this}["Symbol","Map","Set"].forEach(function(O){var b=ls();typeof b[O]>"u"&&mt("MobX requires global '"+O+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Hr,extras:{getDebugName:Ci},$mobx:lt});const qi=Pt({score:0});class Ea extends Wt.Scene{constructor(){super(Mt.scene.main)}create(){this.add.image(0,0,Mt.image.sky).setOrigin(0);const b=this.physics.add.staticGroup({defaultKey:Mt.image.ground});b.get(0,Number(this.game.config.height)-64).setOrigin(0).setScale(2).refreshBody(),[[600,400],[50,250],[750,220]].forEach(U=>{b.get(...U)});const z=this.physics.add.group({classType:Nn});for(let U=0;U<12;U++)z.get(U*70,0).body.setBounceY(Wt.Math.FloatBetween(.4,.8));this.physics.add.collider(z,b),this.player=new Gn(this,32,Number(this.game.config.height)-150),this.physics.add.collider(this.player,b),this.physics.add.overlap(this.player,z,(U,H)=>{H.disableBody(!0,!0),qi.score+=10,this.text.setText(this.score)},void 0,this),Ze.render(hs.jsx(In,{text:this.score,ref:U=>this.text=U}),this)}get score(){return`Score: ${qi.score}`}update(){this.player.update()}}const Ca=Object.freeze(Object.defineProperty({__proto__:null,Boot:di,Main:Ea},Symbol.toStringTag,{value:"Module"}));new Wt.Game({width:800,height:600,title:"Phaser Template",url:"https://remarkablegames.org/phaser-template/",version:"1.0.0-alpha",scene:[di,...Object.values(Ca).filter(O=>O!==di)],physics:{default:"arcade",arcade:{gravity:{x:0,y:300},debug:!1}},disableContextMenu:!0,backgroundColor:"#fff",scale:{mode:Wt.Scale.FIT,autoCenter:Wt.Scale.CENTER_BOTH}}); diff --git a/index.html b/index.html index e7a1d3e1..d64ab427 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ -Phaser Template | remarkablegamesPhaser Template | remarkablegames