excalibur 0.32.0-alpha.1572 → 0.32.0-alpha.1574

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- /*! excalibur - 0.32.0-alpha.1572+72a3430 - 2025-11-28
1
+ /*! excalibur - 0.32.0-alpha.1574+e3aa0be - 2025-11-28
2
2
  https://github.com/excaliburjs/Excalibur
3
3
  Copyright (c) 2025 Excalibur.js <https://github.com/excaliburjs/Excalibur/graphs/contributors>
4
4
  Licensed BSD-2-Clause
5
5
  @preserve */
6
- function ln() {
6
+ function hn() {
7
7
  if (typeof window == "undefined" && (window = {
8
8
  audioContext: function() {
9
9
  }
@@ -410,7 +410,7 @@ function qt(r, t, e = new ge()) {
410
410
  function Zh(r, t, e = new ge()) {
411
411
  return e ? e.integer(r, t) : Math.round(qt(r, t));
412
412
  }
413
- const cn = class V {
413
+ const ln = class V {
414
414
  /**
415
415
  * @param x X component of the Vector
416
416
  * @param y Y component of the Vector
@@ -735,12 +735,12 @@ const cn = class V {
735
735
  return i.x = this.x + (t.x - this.x) * e, i.y = this.y + (t.y - this.y) * e, i;
736
736
  }
737
737
  };
738
- cn.EQUALS_EPSILON = 1e-3;
739
- let x = cn;
738
+ ln.EQUALS_EPSILON = 1e-3;
739
+ let x = ln;
740
740
  function w(r, t) {
741
741
  return new x(r, t);
742
742
  }
743
- class zs extends x {
743
+ class Us extends x {
744
744
  constructor(t) {
745
745
  super(0, 0), this._getX = t.getX, this._getY = t.getY, this._setX = t.setX, this._setY = t.setY;
746
746
  }
@@ -1161,7 +1161,7 @@ class re {
1161
1161
  constructor() {
1162
1162
  this._parent = null, this._children = [], this._pos = new ie(w(0, 0), () => {
1163
1163
  this.flagDirty();
1164
- }), this._globalPos = new zs({
1164
+ }), this._globalPos = new Us({
1165
1165
  getX: () => this.matrix.data[4],
1166
1166
  getY: () => this.matrix.data[5],
1167
1167
  setX: (t) => {
@@ -1182,7 +1182,7 @@ class re {
1182
1182
  }
1183
1183
  }), this._rotation = 0, this._scale = new ie(w(1, 1), () => {
1184
1184
  this.flagDirty();
1185
- }), this._globalScale = new zs({
1185
+ }), this._globalScale = new Us({
1186
1186
  getX: () => this.parent ? this.matrix.getScaleX() : this.scale.x,
1187
1187
  getY: () => this.parent ? this.matrix.getScaleY() : this.scale.y,
1188
1188
  setX: (t) => {
@@ -1541,7 +1541,7 @@ class Ce {
1541
1541
  function at(r, t, e) {
1542
1542
  return (1 - e) * r + t * e;
1543
1543
  }
1544
- function dn(r, t, e, i) {
1544
+ function cn(r, t, e, i) {
1545
1545
  const s = (r - t + rt) % rt >= Math.PI, n = Math.abs(t - r), o = rt - n;
1546
1546
  let a = 0, h = 0;
1547
1547
  n > o ? (a = o, h = n) : (a = n, h = o);
@@ -1676,7 +1676,7 @@ class Si {
1676
1676
  });
1677
1677
  }
1678
1678
  }
1679
- class un {
1679
+ class dn {
1680
1680
  /**
1681
1681
  * Constructs a new graph data structure.
1682
1682
  *
@@ -1736,9 +1736,9 @@ class un {
1736
1736
  return [];
1737
1737
  let a;
1738
1738
  i ? a = "directed" in i ? i.directed : !1 : a = !1;
1739
- const h = new Hs(t, e, i);
1739
+ const h = new zs(t, e, i);
1740
1740
  if (this._edges.add(h), t.registerNewEdge(h), e.registerNewEdge(h), (s = this.adjacencyList.get(t.id)) == null || s.add(e.id), !a) {
1741
- const l = new Hs(e, t, i);
1741
+ const l = new zs(e, t, i);
1742
1742
  return (n = this.adjacencyList.get(e.id)) == null || n.add(t.id), this._edges.add(l), e.registerNewEdge(l), t.registerNewEdge(l), h.linkWithPartner(l), l.linkWithPartner(h), [h, l];
1743
1743
  }
1744
1744
  return [h];
@@ -1858,7 +1858,7 @@ class un {
1858
1858
  * @returns The newly created graph.
1859
1859
  */
1860
1860
  static createGraphFromNodes(t) {
1861
- const e = new un();
1861
+ const e = new dn();
1862
1862
  return e.addNodes(t), e;
1863
1863
  }
1864
1864
  /**
@@ -2004,7 +2004,7 @@ class un {
2004
2004
  return Math.sqrt((s.x - i.x) ** 2 + (s.y - i.y) ** 2);
2005
2005
  }
2006
2006
  }
2007
- class Hs {
2007
+ class zs {
2008
2008
  // Reference to the opposite direction edge
2009
2009
  constructor(t, e, i) {
2010
2010
  this._id = hs.generateUUID(), this._weight = 0, this._partnerEdge = null, this._source = t, this._target = e, i && i.weight ? this._weight = i.weight : i && i.useEuclidean ? this._weight = t.pos.distance(e.pos) : this._weight = 0;
@@ -2056,16 +2056,16 @@ class ho extends Vi {
2056
2056
  super(t), this.pos = e;
2057
2057
  }
2058
2058
  }
2059
- const _n = class fn {
2059
+ const un = class _n {
2060
2060
  static generateUUID() {
2061
2061
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(i) {
2062
- const s = fn.rng.next() * 16 | 0;
2062
+ const s = _n.rng.next() * 16 | 0;
2063
2063
  return (i === "x" ? s : s & 3 | 8).toString(16);
2064
2064
  });
2065
2065
  }
2066
2066
  };
2067
- _n.rng = new ge();
2068
- let hs = _n;
2067
+ un.rng = new ge();
2068
+ let hs = un;
2069
2069
  function ls(r) {
2070
2070
  return r;
2071
2071
  }
@@ -2100,7 +2100,7 @@ function ol(r) {
2100
2100
  const t = r - 1;
2101
2101
  return t * t * t + 1;
2102
2102
  }
2103
- function Os(r) {
2103
+ function Hs(r) {
2104
2104
  return r < 0.5 ? 4 * r * r * r : (r - 1) * (2 * r - 2) * (2 * r - 2) + 1;
2105
2105
  }
2106
2106
  function al(r) {
@@ -2178,7 +2178,7 @@ function Tl(r, t = 0.65) {
2178
2178
  const e = 1 - t, i = r * 2, s = i - 1, n = e / (2 * Math.PI) * Math.asin(1);
2179
2179
  return i < 1 ? -0.5 * (Math.pow(2, 10 * s) * Math.sin((s - n) * (2 * Math.PI) / e)) : Math.pow(2, -10 * s) * Math.sin((s - n) * (2 * Math.PI) / e) * 0.5 + 1;
2180
2180
  }
2181
- function gn(r) {
2181
+ function fn(r) {
2182
2182
  const t = r / 1;
2183
2183
  if (t < 1 / 2.75)
2184
2184
  return 7.5625 * t * t;
@@ -2194,10 +2194,10 @@ function gn(r) {
2194
2194
  }
2195
2195
  }
2196
2196
  function lo(r) {
2197
- return 1 - gn(1 - r);
2197
+ return 1 - fn(1 - r);
2198
2198
  }
2199
2199
  function Sl(r) {
2200
- return r < 0.5 ? lo(r * 2) * 0.5 : gn(r * 2 - 1) * 0.5 + 0.5;
2200
+ return r < 0.5 ? lo(r * 2) * 0.5 : fn(r * 2 - 1) * 0.5 + 0.5;
2201
2201
  }
2202
2202
  class T {
2203
2203
  /**
@@ -2591,11 +2591,11 @@ class mt {
2591
2591
  }
2592
2592
  }
2593
2593
  var Ze = /* @__PURE__ */ ((r) => (r[r.Debug = 0] = "Debug", r[r.Info = 1] = "Info", r[r.Warn = 2] = "Warn", r[r.Error = 3] = "Error", r[r.Fatal = 4] = "Fatal", r))(Ze || {});
2594
- const pn = class Wt {
2594
+ const gn = class Wt {
2595
2595
  constructor() {
2596
2596
  if (this._appenders = [], this.defaultLevel = 1, this._logOnceSet = /* @__PURE__ */ new Set(), Wt._INSTANCE)
2597
2597
  throw new Error("Logger is a singleton");
2598
- return Wt._INSTANCE = this, Wt._INSTANCE.addAppender(new mn()), Wt._INSTANCE;
2598
+ return Wt._INSTANCE = this, Wt._INSTANCE.addAppender(new pn()), Wt._INSTANCE;
2599
2599
  }
2600
2600
  /**
2601
2601
  * Gets the current static instance of Logger
@@ -2701,9 +2701,9 @@ const pn = class Wt {
2701
2701
  this._logOnce(4, t);
2702
2702
  }
2703
2703
  };
2704
- pn._INSTANCE = null;
2705
- let I = pn;
2706
- class mn {
2704
+ gn._INSTANCE = null;
2705
+ let I = gn;
2706
+ class pn {
2707
2707
  /**
2708
2708
  * Logs a message at the given {@apilink LogLevel}
2709
2709
  * @param level Level to log at
@@ -3043,7 +3043,7 @@ mask: ${(this.mask >>> 0).toString(2).padStart(32, "0")}
3043
3043
  };
3044
3044
  Gi.All = new Gi("Collide with all groups", -1, -1);
3045
3045
  let Ee = Gi;
3046
- var xn = /* @__PURE__ */ ((r) => (r.Kill = "kill", r.PreKill = "prekill", r.PostKill = "postkill", r.PreDraw = "predraw", r.PostDraw = "postdraw", r.PreDebugDraw = "predebugdraw", r.PostDebugDraw = "postdebugdraw", r.PreUpdate = "preupdate", r.PostUpdate = "postupdate", r.PreFrame = "preframe", r.PostFrame = "postframe", r.PreCollision = "precollision", r.CollisionStart = "collisionstart", r.CollisionEnd = "collisionend", r.PostCollision = "postcollision", r.Initialize = "initialize", r.Activate = "activate", r.Deactivate = "deactivate", r.ExitViewport = "exitviewport", r.EnterViewport = "enterviewport", r.ExitTrigger = "exit", r.EnterTrigger = "enter", r.Connect = "connect", r.Disconnect = "disconnect", r.Button = "button", r.Axis = "axis", r.Visible = "visible", r.Hidden = "hidden", r.Start = "start", r.Stop = "stop", r.PointerUp = "pointerup", r.PointerDown = "pointerdown", r.PointerMove = "pointermove", r.PointerEnter = "pointerenter", r.PointerLeave = "pointerleave", r.PointerCancel = "pointercancel", r.PointerWheel = "pointerwheel", r.Up = "up", r.Down = "down", r.Move = "move", r.Enter = "enter", r.Leave = "leave", r.Cancel = "cancel", r.Wheel = "wheel", r.Press = "press", r.Release = "release", r.Hold = "hold", r.PointerDragStart = "pointerdragstart", r.PointerDragEnd = "pointerdragend", r.PointerDragEnter = "pointerdragenter", r.PointerDragLeave = "pointerdragleave", r.PointerDragMove = "pointerdragmove", r.ActionStart = "actionstart", r.ActionComplete = "actioncomplete", r.Add = "add", r.Remove = "remove", r))(xn || {});
3046
+ var mn = /* @__PURE__ */ ((r) => (r.Kill = "kill", r.PreKill = "prekill", r.PostKill = "postkill", r.PreDraw = "predraw", r.PostDraw = "postdraw", r.PreDebugDraw = "predebugdraw", r.PostDebugDraw = "postdebugdraw", r.PreUpdate = "preupdate", r.PostUpdate = "postupdate", r.PreFrame = "preframe", r.PostFrame = "postframe", r.PreCollision = "precollision", r.CollisionStart = "collisionstart", r.CollisionEnd = "collisionend", r.PostCollision = "postcollision", r.Initialize = "initialize", r.Activate = "activate", r.Deactivate = "deactivate", r.ExitViewport = "exitviewport", r.EnterViewport = "enterviewport", r.ExitTrigger = "exit", r.EnterTrigger = "enter", r.Connect = "connect", r.Disconnect = "disconnect", r.Button = "button", r.Axis = "axis", r.Visible = "visible", r.Hidden = "hidden", r.Start = "start", r.Stop = "stop", r.PointerUp = "pointerup", r.PointerDown = "pointerdown", r.PointerMove = "pointermove", r.PointerEnter = "pointerenter", r.PointerLeave = "pointerleave", r.PointerCancel = "pointercancel", r.PointerWheel = "pointerwheel", r.Up = "up", r.Down = "down", r.Move = "move", r.Enter = "enter", r.Leave = "leave", r.Cancel = "cancel", r.Wheel = "wheel", r.Press = "press", r.Release = "release", r.Hold = "hold", r.PointerDragStart = "pointerdragstart", r.PointerDragEnd = "pointerdragend", r.PointerDragEnter = "pointerdragenter", r.PointerDragLeave = "pointerdragleave", r.PointerDragMove = "pointerdragmove", r.ActionStart = "actionstart", r.ActionComplete = "actioncomplete", r.Add = "add", r.Remove = "remove", r))(mn || {});
3047
3047
  class B {
3048
3048
  constructor() {
3049
3049
  this.other = null, this._bubbles = !0;
@@ -3065,7 +3065,7 @@ class B {
3065
3065
  this.bubbles = !1;
3066
3066
  }
3067
3067
  }
3068
- class cs extends B {
3068
+ class xn extends B {
3069
3069
  constructor(t) {
3070
3070
  super(), this.self = t, this.target = t;
3071
3071
  }
@@ -3322,7 +3322,7 @@ const El = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3322
3322
  DeactivateEvent: Ln,
3323
3323
  EnterTriggerEvent: Hn,
3324
3324
  EnterViewPortEvent: zn,
3325
- EventTypes: xn,
3325
+ EventTypes: mn,
3326
3326
  ExitTriggerEvent: On,
3327
3327
  ExitViewPortEvent: Un,
3328
3328
  GameEvent: B,
@@ -3334,7 +3334,7 @@ const El = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3334
3334
  GamepadDisconnectEvent: Rn,
3335
3335
  HiddenEvent: Bn,
3336
3336
  InitializeEvent: Je,
3337
- KillEvent: cs,
3337
+ KillEvent: xn,
3338
3338
  PostCollisionEvent: Re,
3339
3339
  PostDebugDrawEvent: An,
3340
3340
  PostDrawEvent: Qe,
@@ -3464,7 +3464,7 @@ const Dl = {
3464
3464
  * If parented it will be removed from the parent when killed.
3465
3465
  */
3466
3466
  kill() {
3467
- this.isActive && (this.isActive = !1, this.unparent()), this.emit("kill", new cs(this));
3467
+ this.isActive && (this.isActive = !1, this.unparent()), this.emit("kill", new xn(this));
3468
3468
  }
3469
3469
  isKilled() {
3470
3470
  return !this.isActive;
@@ -4582,7 +4582,7 @@ class vt {
4582
4582
  return t.value < e.value ? `#${t.value}+${e.value}` : `#${e.value}+${t.value}`;
4583
4583
  }
4584
4584
  }
4585
- class Ns {
4585
+ class Os {
4586
4586
  constructor(t) {
4587
4587
  this.parent = t, this.parent = t || null, this.data = null, this.bounds = new F(), this.left = null, this.right = null, this.height = 0;
4588
4588
  }
@@ -4616,7 +4616,7 @@ class Jn {
4616
4616
  break;
4617
4617
  p < f ? i = a : i = h;
4618
4618
  }
4619
- const s = i.parent, n = new Ns(s);
4619
+ const s = i.parent, n = new Os(s);
4620
4620
  n.bounds = e.combine(i.bounds), n.height = i.height + 1, s !== null ? (s.left === i ? s.left = n : s.right = n, n.left = i, n.right = t, i.parent = n, t.parent = n) : (n.left = i, n.right = t, i.parent = n, t.parent = n, this.root = n);
4621
4621
  let o = t.parent;
4622
4622
  for (; o; ) {
@@ -4649,7 +4649,7 @@ class Jn {
4649
4649
  * Tracks a body in the dynamic tree
4650
4650
  */
4651
4651
  trackCollider(t) {
4652
- const e = new Ns();
4652
+ const e = new Os();
4653
4653
  e.data = t, e.bounds = t.bounds, e.bounds.left -= 2, e.bounds.top -= 2, e.bounds.right += 2, e.bounds.bottom += 2, this.nodes[t.id.value] = e, this._insert(e);
4654
4654
  }
4655
4655
  /**
@@ -4943,7 +4943,7 @@ const Kn = class tr {
4943
4943
  };
4944
4944
  Kn._ID = 0;
4945
4945
  let Ai = Kn;
4946
- var ds = /* @__PURE__ */ ((r) => (r.Arcade = "arcade", r.Realistic = "realistic", r))(ds || {}), _e = /* @__PURE__ */ ((r) => (r.None = "none", r.VerticalFirst = "vertical-first", r.HorizontalFirst = "horizontal-first", r))(_e || {});
4946
+ var cs = /* @__PURE__ */ ((r) => (r.Arcade = "arcade", r.Realistic = "realistic", r))(cs || {}), _e = /* @__PURE__ */ ((r) => (r.None = "none", r.VerticalFirst = "vertical-first", r.HorizontalFirst = "horizontal-first", r))(_e || {});
4947
4947
  const er = {
4948
4948
  vertical: 1,
4949
4949
  horizontal: 2
@@ -4961,7 +4961,7 @@ const ne = () => ({
4961
4961
  onScreenOnly: !1
4962
4962
  },
4963
4963
  gravity: w(0, 0).clone(),
4964
- solver: ds.Arcade,
4964
+ solver: cs.Arcade,
4965
4965
  substep: 1,
4966
4966
  colliders: {
4967
4967
  compositeStrategy: "together"
@@ -5435,7 +5435,7 @@ class we {
5435
5435
  return this.colliderB = e, this.colliderA = i, this.mtv = this.mtv.negate(), this.normal = this.normal.negate(), this.tangent = this.tangent.negate(), this;
5436
5436
  }
5437
5437
  }
5438
- class us {
5438
+ class ds {
5439
5439
  constructor(t, e, i = 100) {
5440
5440
  this.builder = t, this.recycler = e, this.maxObjects = i, this.totalAllocations = 0, this.index = 0, this.objects = [], this.disableWarnings = !1, this._logger = I.getInstance();
5441
5441
  }
@@ -5533,7 +5533,7 @@ const xe = class Vt {
5533
5533
  };
5534
5534
  }
5535
5535
  };
5536
- xe.SeparationPool = new us(
5536
+ xe.SeparationPool = new ds(
5537
5537
  () => new wo(),
5538
5538
  (r) => r,
5539
5539
  // no recycle
@@ -6752,7 +6752,7 @@ const Bl = {
6752
6752
  }
6753
6753
  };
6754
6754
  ar._LOGGER = I.getInstance();
6755
- let _s = ar;
6755
+ let us = ar;
6756
6756
  class $e extends nt {
6757
6757
  constructor(t) {
6758
6758
  var e;
@@ -6780,7 +6780,7 @@ class $e extends nt {
6780
6780
  return t;
6781
6781
  }
6782
6782
  _isAnimationOrGroup(t) {
6783
- return t instanceof _s || t instanceof $e;
6783
+ return t instanceof us || t instanceof $e;
6784
6784
  }
6785
6785
  tick(t, e) {
6786
6786
  for (const i of this.members) {
@@ -7456,7 +7456,7 @@ class $t {
7456
7456
  this.data = new Image();
7457
7457
  }
7458
7458
  }
7459
- class fs extends nt {
7459
+ class _s extends nt {
7460
7460
  constructor(t) {
7461
7461
  super(t), this._text = "", this.alphabet = "", this.shadow = void 0, this.caseInsensitive = !1, this.spacing = 0, this.lineHeight = void 0, this._logger = I.getInstance();
7462
7462
  const { alphabet: e, spriteSheet: i, caseInsensitive: s, spacing: n, shadow: o, lineHeight: a } = t;
@@ -7496,7 +7496,7 @@ class fs extends nt {
7496
7496
  this.width = a.width, this.height = a.height, this.shadow && (t.save(), t.translate(this.shadow.offset.x, this.shadow.offset.y), this._preDraw(t, s, n), this._drawImage(t, 0, 0, o), this._postDraw(t), t.restore()), this._preDraw(t, s, n), this._drawImage(t, 0, 0, o), this._postDraw(t);
7497
7497
  }
7498
7498
  clone() {
7499
- return new fs({
7499
+ return new _s({
7500
7500
  alphabet: this.alphabet,
7501
7501
  spriteSheet: this.spriteSheet,
7502
7502
  spacing: this.spacing
@@ -7822,7 +7822,7 @@ class fr {
7822
7822
  originOffset: { x: 2, y: 0 },
7823
7823
  margin: { x: 2, y: 0 }
7824
7824
  }
7825
- }), this._spriteFont = new fs({
7825
+ }), this._spriteFont = new _s({
7826
7826
  alphabet: " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~?",
7827
7827
  caseInsensitive: !1,
7828
7828
  spriteSheet: this._spriteSheet,
@@ -8009,12 +8009,12 @@ class gr extends nt {
8009
8009
  });
8010
8010
  }
8011
8011
  }
8012
- class gs extends Bt {
8012
+ class fs extends Bt {
8013
8013
  constructor(t, e = !0) {
8014
8014
  super(), this.draw = t, this.useTransform = e;
8015
8015
  }
8016
8016
  }
8017
- class ps extends Bt {
8017
+ class gs extends Bt {
8018
8018
  constructor(t) {
8019
8019
  super(), this.parallaxFactor = w(1, 1), this.parallaxFactor = t != null ? t : this.parallaxFactor;
8020
8020
  }
@@ -8114,7 +8114,7 @@ class pr extends Ft {
8114
8114
  if (n.hasTag("ex.offscreen") || (e = n.get(tt), !e.isVisible))
8115
8115
  continue;
8116
8116
  e.onPreTransformDraw && e.onPreTransformDraw(this._graphicsContext, t), n.events.emit("pretransformdraw", new Cn(this._graphicsContext, t, n)), s.coordPlane === ht.Screen && this._graphicsContext.restore(), this._graphicsContext.save(), s.coordPlane === ht.Screen && this._graphicsContext.translate(this._engine.screen.contentArea.left, this._engine.screen.contentArea.top), e.update(t, this._token);
8117
- const o = n.get(ps);
8117
+ const o = n.get(gs);
8118
8118
  if (o) {
8119
8119
  const a = x.One.sub(o.parallaxFactor), h = this._camera.drawPos.scale(a);
8120
8120
  this._graphicsContext.translate(h.x, h.y);
@@ -8188,7 +8188,7 @@ class mr extends Ft {
8188
8188
  let t, e, i;
8189
8189
  for (let s = 0; s < this.query.entities.length; s++) {
8190
8190
  const n = this.query.entities[s];
8191
- e = n.get(tt), t = n.get(P), i = n.get(ps);
8191
+ e = n.get(tt), t = n.get(P), i = n.get(gs);
8192
8192
  let o;
8193
8193
  if (i) {
8194
8194
  const h = x.One.sub(i.parallaxFactor);
@@ -8211,7 +8211,7 @@ class mr extends Ft {
8211
8211
  }
8212
8212
  }
8213
8213
  mr.priority = Jt.Higher;
8214
- class ms extends Ke {
8214
+ class ps extends Ke {
8215
8215
  constructor(t) {
8216
8216
  var e, i, s;
8217
8217
  super(t), this._radius = 0;
@@ -8225,7 +8225,7 @@ class ms extends Ke {
8225
8225
  this._radius = t, this.width = this._radius * 2, this.height = this._radius * 2, this.flagDirty();
8226
8226
  }
8227
8227
  clone() {
8228
- return new ms({
8228
+ return new ps({
8229
8229
  radius: this.radius,
8230
8230
  ...this.cloneGraphicOptions(),
8231
8231
  ...this.cloneRasterOptions()
@@ -8284,7 +8284,7 @@ class xr extends Ke {
8284
8284
  }
8285
8285
  }
8286
8286
  }
8287
- class xs extends Ke {
8287
+ class ms extends Ke {
8288
8288
  constructor(t = {}) {
8289
8289
  super(t), this._options = t;
8290
8290
  }
@@ -8295,7 +8295,7 @@ class xs extends Ke {
8295
8295
  return this._ctx;
8296
8296
  }
8297
8297
  clone() {
8298
- return new xs({
8298
+ return new ms({
8299
8299
  ...this._options,
8300
8300
  ...this.cloneGraphicOptions(),
8301
8301
  ...this.cloneRasterOptions()
@@ -8640,7 +8640,7 @@ Read https://excaliburjs.com/docs/imagesource for more information.`
8640
8640
  }
8641
8641
  }
8642
8642
  }
8643
- class wr extends _s {
8643
+ class wr extends us {
8644
8644
  constructor(t) {
8645
8645
  super({
8646
8646
  ...t,
@@ -8720,14 +8720,14 @@ const Ho = {
8720
8720
  multiSampleAntialiasing: !0,
8721
8721
  filtering: wt.Blended,
8722
8722
  canvasImageRendering: "auto"
8723
- }, vs = class es {
8723
+ }, xs = class es {
8724
8724
  static clear() {
8725
8725
  es.DrawCallCount = 0, es.DrawnImagesCount = 0;
8726
8726
  }
8727
8727
  };
8728
- vs.DrawCallCount = 0;
8729
- vs.DrawnImagesCount = 0;
8730
- let j = vs;
8728
+ xs.DrawCallCount = 0;
8729
+ xs.DrawnImagesCount = 0;
8730
+ let j = xs;
8731
8731
  const Y = 1e-4;
8732
8732
  class No {
8733
8733
  constructor(t) {
@@ -9058,7 +9058,7 @@ function Tr(r, t) {
9058
9058
  return r.FLOAT;
9059
9059
  }
9060
9060
  }
9061
- function ws(r, t) {
9061
+ function vs(r, t) {
9062
9062
  const e = (s) => {
9063
9063
  const n = `#version 300 es
9064
9064
  precision mediump float;
@@ -9089,7 +9089,7 @@ const Ll = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9089
9089
  getAttributePointerType: Tr,
9090
9090
  getGLTypeFromSource: yr,
9091
9091
  getGlTypeSizeBytes: ss,
9092
- getMaxShaderComplexity: ws,
9092
+ getMaxShaderComplexity: vs,
9093
9093
  isAttributeInSource: br
9094
9094
  }, Symbol.toStringTag, { value: "Module" }));
9095
9095
  function Vo(r, t) {
@@ -9726,7 +9726,7 @@ ve._VEL = new x(0, 0);
9726
9726
  ve._VEL_ACC = new x(0, 0);
9727
9727
  ve._SCALE_FACTOR = new x(0, 0);
9728
9728
  let Ar = ve;
9729
- class bs extends Rt {
9729
+ class ws extends Rt {
9730
9730
  constructor(t) {
9731
9731
  super(), this.beginColor = T.White, this.endColor = T.White, this.life = 300, this.fade = !1, this._rRate = 1, this._gRate = 1, this._bRate = 1, this._aRate = 0, this._currentColor = T.White, this.size = 5, this.sizeRate = 0, this.visible = !0, this.isOffscreen = !1, this.particleTransform = "global", this.name = `Particle#${this.id}`, this.addComponent(this.transform = new P()), this.addComponent(this.motion = new H()), this.addComponent(this.graphics = new tt()), this.configure(t);
9732
9732
  }
@@ -9756,7 +9756,7 @@ class bs extends Rt {
9756
9756
  this.focus && (i = this.focus.sub(this.transform.pos).normalize().scale(this.focusAccel || 0).scale(e / 1e3)), Ar.integrate(this.transform, this.motion, i, e);
9757
9757
  }
9758
9758
  }
9759
- bs.DefaultConfig = {
9759
+ ws.DefaultConfig = {
9760
9760
  beginColor: T.White,
9761
9761
  endColor: T.White,
9762
9762
  life: 300,
@@ -10705,7 +10705,7 @@ class ca {
10705
10705
  }
10706
10706
  initialize(t, e) {
10707
10707
  this._gl = t, this._context = e;
10708
- const i = t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS), s = ws(t, i);
10708
+ const i = t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS), s = vs(t, i);
10709
10709
  this._maxTextures = Math.min(i, s);
10710
10710
  const n = this._transformFragmentSource(ha, this._maxTextures);
10711
10711
  this._shader = new kt({
@@ -11144,7 +11144,7 @@ class ma {
11144
11144
  }, this.args = new Array(10);
11145
11145
  }
11146
11146
  }
11147
- class Ws {
11147
+ class Ns {
11148
11148
  constructor() {
11149
11149
  this.type = "ex.material", this.priority = 0, this._textures = [];
11150
11150
  }
@@ -11176,10 +11176,10 @@ class Ws {
11176
11176
  const m = this._context.getTransform(), f = this._context.opacity, b = v.getShader(), C = this._layout.vertexBuffer.bufferData;
11177
11177
  let S = 0, E = (t == null ? void 0 : t.width) || s || 0, y = (t == null ? void 0 : t.height) || n || 0, k = [0, 0, (c = s != null ? s : t == null ? void 0 : t.width) != null ? c : 0, (d = n != null ? n : t == null ? void 0 : t.height) != null ? d : 0], L = [e != null ? e : 1, i != null ? i : 1];
11178
11178
  o !== void 0 && a !== void 0 && h !== void 0 && l !== void 0 && (k = [e != null ? e : 1, i != null ? i : 1, (u = s != null ? s : t == null ? void 0 : t.width) != null ? u : 0, (_ = n != null ? n : t == null ? void 0 : t.height) != null ? _ : 0], L = [o, a], E = h, y = l), e = k[0], i = k[1];
11179
- const O = k[2], Q = k[3], st = w(L[0], L[1]), X = w(L[0] + E, L[1]), z = w(L[0], L[1] + y), ot = w(L[0] + E, L[1] + y), ct = t.width || E, A = t.height || y, oe = e / ct, ae = i / A, he = (e + O - 0.01) / ct, Le = (i + Q - 0.01) / A, Bi = m.getPosition(), Fs = Bi.add(ot), Ds = Bi.x / this._context.width, Bs = Bi.y / this._context.height, ks = Fs.x / this._context.width, Ls = Fs.y / this._context.height;
11180
- C[S++] = st.x, C[S++] = st.y, C[S++] = oe, C[S++] = ae, C[S++] = Ds, C[S++] = Bs, C[S++] = z.x, C[S++] = z.y, C[S++] = oe, C[S++] = Le, C[S++] = Ds, C[S++] = Ls, C[S++] = X.x, C[S++] = X.y, C[S++] = he, C[S++] = ae, C[S++] = ks, C[S++] = Bs, C[S++] = ot.x, C[S++] = ot.y, C[S++] = he, C[S++] = Le, C[S++] = ks, C[S++] = Ls;
11181
- let Us = this._addImageAsTexture(t);
11182
- v.use(), this._layout.shader = b, this._layout.use(!0), b.trySetUniformFloat("u_time_ms", performance.now()), b.trySetUniformFloat("u_opacity", f), b.trySetUniformFloatVector("u_resolution", w(this._context.width, this._context.height)), b.trySetUniformFloatVector("u_graphic_resolution", w(ct, A)), b.trySetUniformFloatVector("u_size", w(O, Q)), b.trySetUniformMatrix("u_matrix", this._context.ortho), b.trySetUniformMatrix("u_transform", m.to4x4()), v.isOverridingGraphic && (p = v.images.u_graphic) != null && p.image && (Us = this._addImageAsTexture(v.images.u_graphic.image)), g.activeTexture(g.TEXTURE0 + 0), g.bindTexture(g.TEXTURE_2D, Us), b.trySetUniformInt("u_graphic", 0), v.isUsingScreenTexture && (g.activeTexture(g.TEXTURE0 + 1), g.bindTexture(g.TEXTURE_2D, this._context.materialScreenTexture), b.trySetUniformInt("u_screen_texture", 1)), this._quads.bind(), g.drawElements(g.TRIANGLES, 6, this._quads.bufferGlType, 0), j.DrawnImagesCount++, j.DrawCallCount++;
11179
+ const O = k[2], Q = k[3], st = w(L[0], L[1]), X = w(L[0] + E, L[1]), z = w(L[0], L[1] + y), ot = w(L[0] + E, L[1] + y), ct = t.width || E, A = t.height || y, oe = e / ct, ae = i / A, he = (e + O - 0.01) / ct, Le = (i + Q - 0.01) / A, Bi = m.getPosition(), Ms = Bi.add(ot), Fs = Bi.x / this._context.width, Ds = Bi.y / this._context.height, Bs = Ms.x / this._context.width, ks = Ms.y / this._context.height;
11180
+ C[S++] = st.x, C[S++] = st.y, C[S++] = oe, C[S++] = ae, C[S++] = Fs, C[S++] = Ds, C[S++] = z.x, C[S++] = z.y, C[S++] = oe, C[S++] = Le, C[S++] = Fs, C[S++] = ks, C[S++] = X.x, C[S++] = X.y, C[S++] = he, C[S++] = ae, C[S++] = Bs, C[S++] = Ds, C[S++] = ot.x, C[S++] = ot.y, C[S++] = he, C[S++] = Le, C[S++] = Bs, C[S++] = ks;
11181
+ let Ls = this._addImageAsTexture(t);
11182
+ v.use(), this._layout.shader = b, this._layout.use(!0), b.trySetUniformFloat("u_time_ms", performance.now()), b.trySetUniformFloat("u_opacity", f), b.trySetUniformFloatVector("u_resolution", w(this._context.width, this._context.height)), b.trySetUniformFloatVector("u_graphic_resolution", w(ct, A)), b.trySetUniformFloatVector("u_size", w(O, Q)), b.trySetUniformMatrix("u_matrix", this._context.ortho), b.trySetUniformMatrix("u_transform", m.to4x4()), v.isOverridingGraphic && (p = v.images.u_graphic) != null && p.image && (Ls = this._addImageAsTexture(v.images.u_graphic.image)), g.activeTexture(g.TEXTURE0 + 0), g.bindTexture(g.TEXTURE_2D, Ls), b.trySetUniformInt("u_graphic", 0), v.isUsingScreenTexture && (g.activeTexture(g.TEXTURE0 + 1), g.bindTexture(g.TEXTURE_2D, this._context.materialScreenTexture), b.trySetUniformInt("u_screen_texture", 1)), this._quads.bind(), g.drawElements(g.TRIANGLES, 6, this._quads.bufferGlType, 0), j.DrawnImagesCount++, j.DrawCallCount++;
11183
11183
  }
11184
11184
  _addImageAsTexture(t) {
11185
11185
  const e = t.getAttribute(U.Filtering), i = e ? ti(e) : void 0, s = Ot(t.getAttribute(U.WrappingX)), n = Ot(t.getAttribute(U.WrappingY)), o = t.getAttribute("forceUpload") === "true", a = this._context.textureLoader.load(
@@ -11327,7 +11327,7 @@ class wa {
11327
11327
  }
11328
11328
  initialize(t, e) {
11329
11329
  this._gl = t, this._context = e;
11330
- const i = t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS), s = ws(t, i);
11330
+ const i = t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS), s = vs(t, i);
11331
11331
  this._maxTextures = Math.min(i, s);
11332
11332
  const n = this._transformFragmentSource(xa, this._maxTextures);
11333
11333
  this._shader = new kt({
@@ -11515,7 +11515,7 @@ class ba {
11515
11515
  }
11516
11516
  class jt {
11517
11517
  constructor(t) {
11518
- this._logger = I.getInstance(), this._renderers = /* @__PURE__ */ new Map(), this._lazyRenderersFactory = /* @__PURE__ */ new Map(), this.imageRenderer = Ne.isEnabled("use-legacy-image-renderer") ? "ex.image" : "ex.image-v2", this._isDrawLifecycle = !1, this.useDrawSorting = !0, this._drawCallPool = new us(() => new ma(), void 0, 4e3), this._drawCallIndex = 0, this._drawCalls = new Array(4e3).fill(null), this._postProcessTargets = [], this._postprocessors = [], this._transform = new Mo(), this._state = new _r(), this.snapToPixel = !1, this.smoothing = !1, this.pixelArtSampler = !1, this.uvPadding = 0.01, this.backgroundColor = T.ExcaliburBlue, this.multiSampleAntialiasing = !0, this.transparency = !0, this._isContextLost = !1, this._disposed = !1, this._imageToWidth = /* @__PURE__ */ new Map(), this._imageToHeight = /* @__PURE__ */ new Map(), this._totalPostProcessorTime = 0;
11518
+ this._logger = I.getInstance(), this._renderers = /* @__PURE__ */ new Map(), this._lazyRenderersFactory = /* @__PURE__ */ new Map(), this.imageRenderer = Ne.isEnabled("use-legacy-image-renderer") ? "ex.image" : "ex.image-v2", this._isDrawLifecycle = !1, this.useDrawSorting = !0, this._drawCallPool = new ds(() => new ma(), void 0, 4e3), this._drawCallIndex = 0, this._drawCalls = new Array(4e3).fill(null), this._postProcessTargets = [], this._postprocessors = [], this._transform = new Mo(), this._state = new _r(), this.snapToPixel = !1, this.smoothing = !1, this.pixelArtSampler = !1, this.uvPadding = 0.01, this.backgroundColor = T.ExcaliburBlue, this.multiSampleAntialiasing = !0, this.transparency = !0, this._isContextLost = !1, this._disposed = !1, this._imageToWidth = /* @__PURE__ */ new Map(), this._imageToHeight = /* @__PURE__ */ new Map(), this._totalPostProcessorTime = 0;
11519
11519
  const {
11520
11520
  canvasElement: e,
11521
11521
  context: i,
@@ -11596,7 +11596,7 @@ class jt {
11596
11596
  uvPadding: this.uvPadding,
11597
11597
  pixelArtSampler: this.pixelArtSampler
11598
11598
  })
11599
- ), this.register(new Ws()), this.register(new _a()), this.register(new pa()), this.lazyRegister("ex.debug-circle", () => new na()), this.lazyRegister("ex.debug-point", () => new ea()), this.lazyRegister("ex.debug-line", () => new Jo()), this.lazyRegister("ex.particle", () => new Xo()), this.register(
11599
+ ), this.register(new Ns()), this.register(new _a()), this.register(new pa()), this.lazyRegister("ex.debug-circle", () => new na()), this.lazyRegister("ex.debug-point", () => new ea()), this.lazyRegister("ex.debug-line", () => new Jo()), this.lazyRegister("ex.particle", () => new Xo()), this.register(
11600
11600
  new wa({
11601
11601
  uvPadding: this.uvPadding,
11602
11602
  pixelArtSampler: this.pixelArtSampler
@@ -11814,7 +11814,7 @@ If you want to do custom drawing, use Actor.graphics, or any onPreDraw or onPost
11814
11814
  if (this._drawCalls.length && this._drawCallIndex) {
11815
11815
  let o = this._drawCalls[0].renderer, a = this.get(o);
11816
11816
  for (let h = 0; h < this._drawCallIndex; h++)
11817
- this._transform.current = this._drawCalls[h].transform, this._state.current = this._drawCalls[h].state, this._drawCalls[h].renderer !== o && (a.flush(), o = this._drawCalls[h].renderer, a = this.get(o)), a instanceof Ws && ((t = this.material) != null && t.isUsingScreenTexture) && (e.copyToTexture(this.materialScreenTexture), e.use()), a.draw(...this._drawCalls[h].args);
11817
+ this._transform.current = this._drawCalls[h].transform, this._state.current = this._drawCalls[h].state, this._drawCalls[h].renderer !== o && (a.flush(), o = this._drawCalls[h].renderer, a = this.get(o)), a instanceof Ns && ((t = this.material) != null && t.isUsingScreenTexture) && (e.copyToTexture(this.materialScreenTexture), e.use()), a.draw(...this._drawCalls[h].args);
11818
11818
  a.hasPendingDraws() && a.flush();
11819
11819
  }
11820
11820
  this._transform.current = s, this._state.current = n, this._drawCallPool.done(), this._drawCallIndex = 0, this._imageToHeight.clear(), this._imageToWidth.clear();
@@ -12448,7 +12448,7 @@ class Pa {
12448
12448
  this._currentMs = this._durationMs, this._started = !1, this._stopped = !1;
12449
12449
  }
12450
12450
  }
12451
- class Vs {
12451
+ class Ws {
12452
12452
  constructor(t, e, i, s) {
12453
12453
  if (this.id = W(), this._started = !1, this._stopped = !1, this._entity = t, this._tx = t.get(P), this._motion = t.get(H), this._speed = s, this._offset = new x(e, i), s <= 0)
12454
12454
  throw I.getInstance().error("Attempted to moveBy with speed less than or equal to zero : " + s), new Error("Speed must be greater than 0 pixels per second");
@@ -12496,7 +12496,7 @@ class Ia {
12496
12496
  this._currentMs = this._durationMs, this._started = !1, this._stopped = !1;
12497
12497
  }
12498
12498
  }
12499
- class Gs {
12499
+ class Vs {
12500
12500
  constructor(t, e, i, s) {
12501
12501
  this.entity = t, this.id = W(), this._started = !1, this._stopped = !1, this._tx = t.get(P), this._motion = t.get(H), this._end = new x(e, i), this._speed = s;
12502
12502
  }
@@ -12529,7 +12529,7 @@ class Ra {
12529
12529
  }
12530
12530
  update(t) {
12531
12531
  this._started || (this._startAngle = this._tx.rotation, this._started = !0), this._currentMs -= t;
12532
- const e = D(Qt(0, this._durationMs, 0, 1, this._durationMs - this._currentMs), 0, 1), i = dn(this._startAngle, this._endAngle, this._rotationType, e), s = this._tx.rotation, n = t / 1e3, o = n === 0 ? 0 : (i - s) / n;
12532
+ const e = D(Qt(0, this._durationMs, 0, 1, this._durationMs - this._currentMs), 0, 1), i = cn(this._startAngle, this._endAngle, this._rotationType, e), s = this._tx.rotation, n = t / 1e3, o = n === 0 ? 0 : (i - s) / n;
12533
12533
  this._motion.angularVelocity = o, this.isComplete(this.entity) && (this._tx.rotation = this._endAngle, this._motion.angularVelocity = 0);
12534
12534
  }
12535
12535
  isComplete(t) {
@@ -12591,7 +12591,7 @@ class Fa {
12591
12591
  }
12592
12592
  update(t) {
12593
12593
  this._started || (this._startAngle = this._tx.rotation, this._endAngle = se(this._startAngle + this._offset), this._started = !0), this._currentMs -= t;
12594
- const e = D(Qt(0, this._durationMs, 0, 1, this._durationMs - this._currentMs), 0, 1), i = dn(this._startAngle, this._endAngle, this._rotationType, e), s = this._tx.rotation, n = t / 1e3, o = n === 0 ? 0 : (i - s) / n;
12594
+ const e = D(Qt(0, this._durationMs, 0, 1, this._durationMs - this._currentMs), 0, 1), i = cn(this._startAngle, this._endAngle, this._rotationType, e), s = this._tx.rotation, n = t / 1e3, o = n === 0 ? 0 : (i - s) / n;
12595
12595
  this._motion.angularVelocity = o, this.isComplete() && (this._tx.rotation = this._endAngle, this._motion.angularVelocity = 0);
12596
12596
  }
12597
12597
  isComplete() {
@@ -12734,7 +12734,7 @@ class Ha {
12734
12734
  this._started = !1, this._stopped = !1;
12735
12735
  }
12736
12736
  }
12737
- class qs {
12737
+ class Gs {
12738
12738
  constructor(t) {
12739
12739
  this.id = W(), this._hasBeenCalled = !1, this._method = t;
12740
12740
  }
@@ -12871,7 +12871,7 @@ class qa {
12871
12871
  reset() {
12872
12872
  }
12873
12873
  }
12874
- class Xs {
12874
+ class qs {
12875
12875
  constructor(t, e, i) {
12876
12876
  this.id = W(), this._started = !1, this._stopped = !1, this._tx = t.get(P), this._motion = t.get(H), this._followTx = e.get(P), this._followMotion = e.get(H), this._current = new x(this._tx.pos.x, this._tx.pos.y), this._end = new x(this._followTx.pos.x, this._followTx.pos.y), this._maximumDistance = i !== void 0 ? i : this._current.distance(this._end), this._speed = 0;
12877
12877
  }
@@ -13055,11 +13055,11 @@ class Fi {
13055
13055
  }
13056
13056
  moveTo(t, e, i) {
13057
13057
  let s = 0, n = 0, o = 0;
13058
- return t instanceof x ? (s = t.x, n = t.y, o = +(e != null ? e : 0), this._queue.add(new Gs(this._entity, s, n, o))) : typeof t == "number" && typeof e == "number" && typeof i == "number" ? (s = t, n = e, o = i, this._queue.add(new Gs(this._entity, s, n, o))) : Ea(t) && this._queue.add(new Ia(this._entity, t)), this;
13058
+ return t instanceof x ? (s = t.x, n = t.y, o = +(e != null ? e : 0), this._queue.add(new Vs(this._entity, s, n, o))) : typeof t == "number" && typeof e == "number" && typeof i == "number" ? (s = t, n = e, o = i, this._queue.add(new Vs(this._entity, s, n, o))) : Ea(t) && this._queue.add(new Ia(this._entity, t)), this;
13059
13059
  }
13060
13060
  moveBy(t, e, i) {
13061
13061
  let s = 0, n = 0, o = 0;
13062
- return t instanceof x && typeof e == "number" ? (s = t.x, n = t.y, o = e, this._queue.add(new Vs(this._entity, s, n, o))) : typeof t == "number" && typeof e == "number" && typeof i == "number" ? (s = t, n = e, o = i, this._queue.add(new Vs(this._entity, s, n, o))) : Aa(t) && this._queue.add(new Pa(this._entity, t)), this;
13062
+ return t instanceof x && typeof e == "number" ? (s = t.x, n = t.y, o = e, this._queue.add(new Ws(this._entity, s, n, o))) : typeof t == "number" && typeof e == "number" && typeof i == "number" ? (s = t, n = e, o = i, this._queue.add(new Ws(this._entity, s, n, o))) : Aa(t) && this._queue.add(new Pa(this._entity, t)), this;
13063
13063
  }
13064
13064
  rotateTo(t, e, i) {
13065
13065
  return typeof t == "number" && typeof e == "number" ? this._queue.add(new Ma(this._entity, t, e, i)) : typeof t == "object" && this._queue.add(new Ra(this._entity, t)), this;
@@ -13130,7 +13130,7 @@ class Fi {
13130
13130
  * action, i.e An actor arrives at a destination after traversing a path
13131
13131
  */
13132
13132
  callMethod(t) {
13133
- return this._queue.add(new qs(t)), this;
13133
+ return this._queue.add(new Gs(t)), this;
13134
13134
  }
13135
13135
  /**
13136
13136
  * This method will cause the actor to repeat all of the actions built in
@@ -13176,7 +13176,7 @@ class Fi {
13176
13176
  * @param followDistance The distance to maintain when following, if not specified the actor will follow at the current distance.
13177
13177
  */
13178
13178
  follow(t, e) {
13179
- return e === void 0 ? this._queue.add(new Xs(this._entity, t)) : this._queue.add(new Xs(this._entity, t, e)), this;
13179
+ return e === void 0 ? this._queue.add(new qs(this._entity, t)) : this._queue.add(new qs(this._entity, t, e)), this;
13180
13180
  }
13181
13181
  /**
13182
13182
  * This method will cause the entity to move towards another until they
@@ -13195,7 +13195,7 @@ class Fi {
13195
13195
  toPromise() {
13196
13196
  return new Promise((e) => {
13197
13197
  this._queue.add(
13198
- new qs(() => {
13198
+ new Gs(() => {
13199
13199
  e();
13200
13200
  })
13201
13201
  );
@@ -13490,7 +13490,7 @@ const Nl = {
13490
13490
  offset: this.offset,
13491
13491
  opacity: b
13492
13492
  }), this.addComponent(this.graphics), this.motion = new H(), this.addComponent(this.motion), this.vel = u != null ? u : x.Zero, this.acc = _ != null ? _ : x.Zero, this.angularVelocity = g != null ? g : 0, this.actions = new qe(), this.addComponent(this.actions), this.body = new N(), this.addComponent(this.body), this.body.collisionType = E != null ? E : R.Passive, y && (this.body.group = y), m && (this.color = m), d ? (this.collider = new it(d), this.addComponent(this.collider)) : c ? (this.collider = new it(ft.Circle(c)), this.addComponent(this.collider), m && this.graphics.add(
13493
- new ms({
13493
+ new ps({
13494
13494
  color: m,
13495
13495
  radius: c
13496
13496
  })
@@ -13755,7 +13755,7 @@ const Nl = {
13755
13755
  * it from the scene graph. It will no longer be drawn or updated.
13756
13756
  */
13757
13757
  kill() {
13758
- this.scene ? (this._prekill(this.scene), this.events.emit("kill", new cs(this)), super.kill(), this._postkill(this.scene)) : this.logger.warn(`Cannot kill actor named "${this.name}", it was never added to the Scene`);
13758
+ this.scene ? (this._prekill(this.scene), super.kill(), this._postkill(this.scene)) : this.logger.warn(`Cannot kill actor named "${this.name}", it was never added to the Scene`);
13759
13759
  }
13760
13760
  /**
13761
13761
  * If the current actor is killed, it will now not be killed.
@@ -14125,7 +14125,7 @@ class it extends Bt {
14125
14125
  }
14126
14126
  }
14127
14127
  var le = /* @__PURE__ */ ((r) => (r.Rotation = "rotation", r.X = "x", r.Y = "y", r))(le || {});
14128
- const ys = class ci extends Bt {
14128
+ const bs = class ci extends Bt {
14129
14129
  constructor(t) {
14130
14130
  var e, i, s;
14131
14131
  super(), this.dependencies = [P, H], this.id = Pe("body", ci._ID++), this.events = new $(), this.oldTransform = new re(), this.__oldTransformCaptured = !1, this.enableFixedUpdateInterpolate = !0, this.collisionType = R.PreventCollision, this.group = Ee.All, this._sleeping = !1, this.bounciness = 0.2, this.friction = 0.99, this.useGravity = !0, this.limitDegreeOfFreedom = [], this._oldGlobalPos = x.Zero, this.oldVel = new x(0, 0), this.oldAcc = x.Zero, this._impulseScratch = w(0, 0), this._distanceFromCenterScratch = w(0, 0), t ? (this.collisionType = (e = t.type) != null ? e : this.collisionType, this.group = (i = t.group) != null ? i : this.group, this.useGravity = (s = t.useGravity) != null ? s : this.useGravity, this._bodyConfig = {
@@ -14422,11 +14422,11 @@ const ys = class ci extends Bt {
14422
14422
  return super.clone();
14423
14423
  }
14424
14424
  };
14425
- ys._ID = 0;
14426
- ys._DEFAULT_CONFIG = {
14425
+ bs._ID = 0;
14426
+ bs._DEFAULT_CONFIG = {
14427
14427
  ...ne().bodies
14428
14428
  };
14429
- let N = ys;
14429
+ let N = bs;
14430
14430
  class Mr {
14431
14431
  constructor(t, e) {
14432
14432
  this.object = t, this.id = -1, this.cells = [], this.hasZeroBounds = !1, this.gridSize = e, this.bounds = t.bounds, this.hasZeroBounds = this.bounds.hasZeroDimensions(), this.leftX = Math.floor(this.bounds.left / this.gridSize), this.rightX = Math.floor(this.bounds.right / this.gridSize), this.bottomY = Math.floor(this.bounds.bottom / this.gridSize), this.topY = Math.floor(this.bounds.top / this.gridSize);
@@ -14565,9 +14565,9 @@ class Za extends Mr {
14565
14565
  super.update(), this.body = (t = this.owner) == null ? void 0 : t.get(N), this.collisionType = (i = (e = this.body) == null ? void 0 : e.collisionType) != null ? i : R.PreventCollision, this.hasZeroBounds = this.collider.localBounds.hasZeroDimensions();
14566
14566
  }
14567
14567
  }
14568
- class Ys {
14568
+ class Xs {
14569
14569
  constructor(t) {
14570
- this._pairs = /* @__PURE__ */ new Set(), this._nonPairs = /* @__PURE__ */ new Set(), this._pairPool = new us(
14570
+ this._pairs = /* @__PURE__ */ new Set(), this._nonPairs = /* @__PURE__ */ new Set(), this._pairPool = new ds(
14571
14571
  () => new vt({ id: Pe("collider", 0) }, { id: Pe("collider", 0) }),
14572
14572
  (e) => (e.colliderA = null, e.colliderB = null, e),
14573
14573
  200
@@ -14822,7 +14822,7 @@ class He {
14822
14822
  this.bounds.debug(t, { color: T.Yellow }), this._isDivided && (this.topLeft.bounds.debug(t, { color: T.Yellow }), this.topRight.bounds.debug(t, { color: T.Yellow }), this.bottomLeft.bounds.debug(t, { color: T.Yellow }), this.bottomRight.bounds.debug(t, { color: T.Yellow }));
14823
14823
  }
14824
14824
  }
14825
- class $s {
14825
+ class Ys {
14826
14826
  constructor(t) {
14827
14827
  this.config = t, this.directionMap = /* @__PURE__ */ new Map(), this.distanceMap = /* @__PURE__ */ new Map(), this._compositeContactsIds = /* @__PURE__ */ new Set();
14828
14828
  }
@@ -14957,7 +14957,7 @@ class ja {
14957
14957
  return x.Zero;
14958
14958
  }
14959
14959
  }
14960
- class Zs {
14960
+ class $s {
14961
14961
  constructor(t) {
14962
14962
  this.config = t, this.directionMap = /* @__PURE__ */ new Map(), this.distanceMap = /* @__PURE__ */ new Map(), this.lastFrameContacts = /* @__PURE__ */ new Map(), this.idToContactConstraint = /* @__PURE__ */ new Map();
14963
14963
  }
@@ -15138,7 +15138,7 @@ class Zs {
15138
15138
  }
15139
15139
  }
15140
15140
  }
15141
- class Cs extends Ft {
15141
+ class ys extends Ft {
15142
15142
  constructor(t, e) {
15143
15143
  super(), this.world = t, this.physics = e, this.systemType = Mt.Update, this._physicsConfigDirty = !1, this.query = this.world.query({
15144
15144
  components: {
@@ -15179,10 +15179,10 @@ class Cs extends Ft {
15179
15179
  this.captureOldTransformWithChildren(t.children[i]);
15180
15180
  }
15181
15181
  }
15182
- Cs.priority = Jt.Higher;
15183
- class Ts extends Ft {
15182
+ ys.priority = Jt.Higher;
15183
+ class Cs extends Ft {
15184
15184
  constructor(t, e) {
15185
- super(), this._physics = e, this.systemType = Mt.Update, this._configDirty = !1, this._lastFrameContacts = /* @__PURE__ */ new Map(), this._currentFrameContacts = /* @__PURE__ */ new Map(), this._arcadeSolver = new $s(e.config.arcade), this._realisticSolver = new Zs(e.config.realistic), this._physics.$configUpdate.subscribe(() => this._configDirty = !0), this._trackCollider = (i) => this._processor.track(i), this._untrackCollider = (i) => this._processor.untrack(i), this.query = t.query([P, it]), this.query.entityAdded$.subscribe((i) => {
15185
+ super(), this._physics = e, this.systemType = Mt.Update, this._configDirty = !1, this._lastFrameContacts = /* @__PURE__ */ new Map(), this._currentFrameContacts = /* @__PURE__ */ new Map(), this._arcadeSolver = new Ys(e.config.arcade), this._realisticSolver = new $s(e.config.realistic), this._physics.$configUpdate.subscribe(() => this._configDirty = !0), this._trackCollider = (i) => this._processor.track(i), this._untrackCollider = (i) => this._processor.untrack(i), this.query = t.query([P, it]), this.query.entityAdded$.subscribe((i) => {
15186
15186
  const s = i.get(it);
15187
15187
  s.$colliderAdded.subscribe(this._trackCollider), s.$colliderRemoved.subscribe(this._untrackCollider);
15188
15188
  const n = s.get();
@@ -15190,7 +15190,7 @@ class Ts extends Ft {
15190
15190
  }), this.query.entityRemoved$.subscribe((i) => {
15191
15191
  const s = i.get(it), n = s.get();
15192
15192
  s && n && this._processor.untrack(n);
15193
- }), this._motionSystem = t.get(Cs);
15193
+ }), this._motionSystem = t.get(ys);
15194
15194
  }
15195
15195
  get _processor() {
15196
15196
  return this._physics.collisionProcessor;
@@ -15241,7 +15241,7 @@ class Ts extends Ft {
15241
15241
  We.SeparationPool.done();
15242
15242
  }
15243
15243
  getSolver() {
15244
- return this._configDirty && (this._configDirty = !1, this._arcadeSolver = new $s(this._physics.config.arcade), this._realisticSolver = new Zs(this._physics.config.realistic)), this._physics.config.solver === ds.Realistic ? this._realisticSolver : this._arcadeSolver;
15244
+ return this._configDirty && (this._configDirty = !1, this._arcadeSolver = new Ys(this._physics.config.arcade), this._realisticSolver = new $s(this._physics.config.realistic)), this._physics.config.solver === cs.Realistic ? this._realisticSolver : this._arcadeSolver;
15245
15245
  }
15246
15246
  debug(t) {
15247
15247
  this._processor.debug(t, 0);
@@ -15259,12 +15259,12 @@ class Ts extends Ft {
15259
15259
  }
15260
15260
  }
15261
15261
  }
15262
- Ts.priority = Jt.Higher;
15262
+ Cs.priority = Jt.Higher;
15263
15263
  class Qa {
15264
15264
  constructor(t) {
15265
15265
  this.$configUpdate = new xt(), this._configDirty = !1, this.config = t, this.$configUpdate.subscribe((e) => {
15266
15266
  this._configDirty = !0, N.updateDefaultPhysicsConfig(e.bodies);
15267
- }), this._config.spatialPartition === xi.SparseHashGrid ? this._collisionProcessor = new Ys(this._config.sparseHashGrid) : this._collisionProcessor = new ji(this._config);
15267
+ }), this._config.spatialPartition === xi.SparseHashGrid ? this._collisionProcessor = new Xs(this._config.sparseHashGrid) : this._collisionProcessor = new ji(this._config);
15268
15268
  }
15269
15269
  get config() {
15270
15270
  return To(this._config, (t) => {
@@ -15281,7 +15281,7 @@ class Qa {
15281
15281
  if (this._configDirty) {
15282
15282
  this._configDirty = !1;
15283
15283
  const t = this._collisionProcessor.getColliders();
15284
- this._config.spatialPartition === xi.SparseHashGrid ? this._collisionProcessor = new Ys(this._config.sparseHashGrid) : this._collisionProcessor = new ji(this._config);
15284
+ this._config.spatialPartition === xi.SparseHashGrid ? this._collisionProcessor = new Xs(this._config.sparseHashGrid) : this._collisionProcessor = new ji(this._config);
15285
15285
  for (const e of t)
15286
15286
  this._collisionProcessor.track(e);
15287
15287
  }
@@ -15300,7 +15300,7 @@ class Qa {
15300
15300
  }
15301
15301
  }
15302
15302
  var di = /* @__PURE__ */ ((r) => (r.Fixed = "Fixed", r.FitContainerAndFill = "FitContainerAndFill", r.FitScreenAndFill = "FitScreenAndFill", r.FitContainerAndZoom = "FitContainerAndZoom", r.FitScreenAndZoom = "FitScreenAndZoom", r.FitScreen = "FitScreen", r.FillScreen = "FillScreen", r.FitContainer = "FitContainer", r.FillContainer = "FillContainer", r))(di || {});
15303
- class js {
15303
+ class Zs {
15304
15304
  /* istanbul ignore next */
15305
15305
  static get SVGA() {
15306
15306
  return { width: 800, height: 600 };
@@ -15339,7 +15339,7 @@ const Wl = {
15339
15339
  PixelRatioChange: "pixelratio",
15340
15340
  FullScreenChange: "fullscreen"
15341
15341
  };
15342
- class Qs {
15342
+ class js {
15343
15343
  constructor(t) {
15344
15344
  this.events = new $(), this._antialiasing = !0, this._canvasImageRendering = "auto", this._resolutionStack = [], this._viewportStack = [], this._pixelRatioOverride = null, this._isFullscreen = !1, this._isDisposed = !1, this._logger = I.getInstance(), this._fullscreenChangeHandler = () => {
15345
15345
  this._isDisposed || (this._isFullscreen = !this._isFullscreen, this._logger.debug("Fullscreen Change", this._isFullscreen), this.events.emit("fullscreen", {
@@ -15915,7 +15915,7 @@ Br.type = {
15915
15915
  document: "document",
15916
15916
  arraybuffer: "arraybuffer"
15917
15917
  };
15918
- class Ss {
15918
+ class Ts {
15919
15919
  constructor() {
15920
15920
  this.states = /* @__PURE__ */ new Map();
15921
15921
  }
@@ -15926,7 +15926,7 @@ class Ss {
15926
15926
  this._currentState = t;
15927
15927
  }
15928
15928
  static create(t, e) {
15929
- const i = new Ss();
15929
+ const i = new Ts();
15930
15930
  i.data = e;
15931
15931
  for (const s in t.states)
15932
15932
  i.states.set(s, {
@@ -15971,7 +15971,7 @@ class Ss {
15971
15971
  }
15972
15972
  class th {
15973
15973
  constructor(t) {
15974
- this._src = t, this._audioContext = vi.create(), this._volumeNode = this._audioContext.createGain(), this._playingFuture = new yt(), this._stateMachine = Ss.create(
15974
+ this._src = t, this._audioContext = vi.create(), this._volumeNode = this._audioContext.createGain(), this._playingFuture = new yt(), this._stateMachine = Ts.create(
15975
15975
  {
15976
15976
  start: "STOPPED",
15977
15977
  states: {
@@ -16392,7 +16392,7 @@ const Gl = {
16392
16392
  LoadResourceStart: "loadresourcestart",
16393
16393
  LoadResourceEnd: "loadresourceend"
16394
16394
  };
16395
- function Js(r) {
16395
+ function Qs(r) {
16396
16396
  var t, e;
16397
16397
  return !!(r != null && r.prototype) && !!((e = (t = r == null ? void 0 : r.prototype) == null ? void 0 : t.constructor) != null && e.name);
16398
16398
  }
@@ -16401,7 +16401,7 @@ class wi {
16401
16401
  * @param options Optionally provide the list of resources you want to load at constructor time
16402
16402
  */
16403
16403
  constructor(t) {
16404
- this.events = new $(), this.canvas = new xs({
16404
+ this.events = new $(), this.canvas = new ms({
16405
16405
  filtering: wt.Blended,
16406
16406
  smoothing: !0,
16407
16407
  cache: !1,
@@ -16660,7 +16660,7 @@ Ur._DEFAULT_LOADER_OPTIONS = {
16660
16660
  fullscreenContainer: void 0
16661
16661
  };
16662
16662
  let rs = Ur;
16663
- const Ks = {
16663
+ const Js = {
16664
16664
  webgl: "WebGL",
16665
16665
  webaudio: "WebAudio",
16666
16666
  gamepadapi: "Gamepad API"
@@ -16724,8 +16724,8 @@ class oh {
16724
16724
  ==========================%c
16725
16725
  `;
16726
16726
  const e = ["font-weight: bold; color: navy", "font-weight: normal; color: inherit"], i = this.getBrowserFeatures();
16727
- for (const s of Object.keys(Ks))
16728
- i[s] ? (t += "(%c✓%c)", e.push("font-weight: bold; color: green"), e.push("font-weight: normal; color: inherit")) : (t += "(%c✗%c)", e.push("font-weight: bold; color: red"), e.push("font-weight: normal; color: inherit")), t += " " + Ks[s] + `
16727
+ for (const s of Object.keys(Js))
16728
+ i[s] ? (t += "(%c✓%c)", e.push("font-weight: bold; color: green"), e.push("font-weight: normal; color: inherit")) : (t += "(%c✗%c)", e.push("font-weight: bold; color: red"), e.push("font-weight: normal; color: inherit")), t += " " + Js[s] + `
16729
16729
  `;
16730
16730
  e.unshift(t), console.log.apply(console, e);
16731
16731
  }
@@ -16891,7 +16891,7 @@ const Or = class Nr {
16891
16891
  };
16892
16892
  Or._MAX_ID = 0;
16893
16893
  let Hi = Or;
16894
- function tn(r) {
16894
+ function Ks(r) {
16895
16895
  return r && r._dispatchPointerEvents && r._processPointerToObject;
16896
16896
  }
16897
16897
  class hh {
@@ -16902,7 +16902,7 @@ class hh {
16902
16902
  this.object = t, this.contains = e, this.active = i;
16903
16903
  }
16904
16904
  }
16905
- class As {
16905
+ class Ss {
16906
16906
  constructor() {
16907
16907
  this._proxyPool = new ei(
16908
16908
  () => new hh(),
@@ -16987,7 +16987,7 @@ class As {
16987
16987
  }
16988
16988
  for (let l = 0; l < h.length; l++) {
16989
16989
  const c = h[l];
16990
- if (tn(c.object) && c.object._dispatchPointerEvents(t), i.has(c) || s.has(c)) {
16990
+ if (Ks(c.object) && c.object._dispatchPointerEvents(t), i.has(c) || s.has(c)) {
16991
16991
  a = this._processDownAndEmit(t, c), o = this._processUpAndEmit(t, c), n = this._processMoveAndEmit(t, c);
16992
16992
  const d = [...n.values(), ...a.values(), ...o.values()];
16993
16993
  this._processEnterLeaveAndEmit(t, c, d), this._processCancelAndEmit(t, c), this._processWheelAndEmit(t, c);
@@ -17002,7 +17002,7 @@ class As {
17002
17002
  processPointerToObject(t, e) {
17003
17003
  for (let i = 0; i < e.length; i++) {
17004
17004
  const s = e[i], n = this._getProxy(s);
17005
- tn(s) && s._processPointerToObject(t);
17005
+ Ks(s) && s._processPointerToObject(t);
17006
17006
  for (const [o, a] of t.currentFramePointerCoords.entries())
17007
17007
  n.contains(a) && this._addPointerToProxy(n, o);
17008
17008
  }
@@ -17078,7 +17078,7 @@ class lh extends Rt {
17078
17078
  new tt({
17079
17079
  onPostDraw: (o, a) => this.draw(o, a)
17080
17080
  })
17081
- ), this.addComponent(new gs((o, a) => this.debug(o, a), !1)), this.addComponent(new it()), this.addComponent(new fe()), this.pointer = this.get(fe), this._graphics = this.get(tt), this.transform = this.get(P), this._motion = this.get(H), this.collider = this.get(it), this._composite = this.collider.useCompositeCollider([]), this.transform.pos = (i = t.pos) != null ? i : x.Zero, this._oldPos = this.transform.pos.clone(), this._oldScale = this.transform.scale.clone(), this.renderFromTopOfGraphic = (s = t.renderFromTopOfGraphic) != null ? s : this.renderFromTopOfGraphic, this.tileWidth = t.tileWidth, this.tileHeight = t.tileHeight, this.rows = t.rows, this.columns = t.columns, this._pointerEventDispatcher = new As(), this.tiles = new Array(this.rows * this.columns), this._rows = new Array(this.rows), this._cols = new Array(this.columns);
17081
+ ), this.addComponent(new fs((o, a) => this.debug(o, a), !1)), this.addComponent(new it()), this.addComponent(new fe()), this.pointer = this.get(fe), this._graphics = this.get(tt), this.transform = this.get(P), this._motion = this.get(H), this.collider = this.get(it), this._composite = this.collider.useCompositeCollider([]), this.transform.pos = (i = t.pos) != null ? i : x.Zero, this._oldPos = this.transform.pos.clone(), this._oldScale = this.transform.scale.clone(), this.renderFromTopOfGraphic = (s = t.renderFromTopOfGraphic) != null ? s : this.renderFromTopOfGraphic, this.tileWidth = t.tileWidth, this.tileHeight = t.tileHeight, this.rows = t.rows, this.columns = t.columns, this._pointerEventDispatcher = new Ss(), this.tiles = new Array(this.rows * this.columns), this._rows = new Array(this.rows), this._cols = new Array(this.columns);
17082
17082
  let n = [];
17083
17083
  for (let o = 0; o < this.columns; o++) {
17084
17084
  for (let a = 0; a < this.rows; a++) {
@@ -17285,7 +17285,7 @@ class lh extends Rt {
17285
17285
  getOnScreenTiles() {
17286
17286
  const t = this._engine.screen.getWorldBounds();
17287
17287
  let e = w(0, 0), i = this.transform.coordPlane === ht.Screen ? this._engine.screen.getScreenBounds() : t;
17288
- const s = this.get(ps);
17288
+ const s = this.get(gs);
17289
17289
  if (s && this.isInitialized) {
17290
17290
  const p = x.One.sub(s.parallaxFactor);
17291
17291
  e = this._engine.currentScene.camera.pos.scale(p), i = i.translate(e.negate());
@@ -17636,12 +17636,12 @@ class Xl extends Rt {
17636
17636
  }),
17637
17637
  new it(),
17638
17638
  new fe(),
17639
- new gs((c, d) => this.debug(c, d), !1)
17639
+ new fs((c, d) => this.debug(c, d), !1)
17640
17640
  ],
17641
17641
  t.name
17642
17642
  ), this.elevation = 0, this.isVisible = !0, this.opacity = 1, this.renderFromTopOfGraphic = !1, this.graphicsOffset = w(0, 0), this._collidersDirty = !1, this._originalOffsets = /* @__PURE__ */ new WeakMap();
17643
17643
  const { pos: e, tileWidth: i, tileHeight: s, columns: n, rows: o, renderFromTopOfGraphic: a, graphicsOffset: h, elevation: l } = t;
17644
- this.transform = this.get(P), e && (this.transform.pos = e), this.collider = this.get(it), this.collider && this.collider.set(this._composite = new lt([])), this.pointer = this.get(fe), this.renderFromTopOfGraphic = a != null ? a : this.renderFromTopOfGraphic, this.graphicsOffset = h != null ? h : this.graphicsOffset, this.elevation = l != null ? l : this.elevation, this.tileWidth = i, this.tileHeight = s, this.columns = n, this.rows = o, this._pointerEventDispatcher = new As(), this.tiles = new Array(n * o);
17644
+ this.transform = this.get(P), e && (this.transform.pos = e), this.collider = this.get(it), this.collider && this.collider.set(this._composite = new lt([])), this.pointer = this.get(fe), this.renderFromTopOfGraphic = a != null ? a : this.renderFromTopOfGraphic, this.graphicsOffset = h != null ? h : this.graphicsOffset, this.elevation = l != null ? l : this.elevation, this.tileWidth = i, this.tileHeight = s, this.columns = n, this.rows = o, this._pointerEventDispatcher = new Ss(), this.tiles = new Array(n * o);
17645
17645
  for (let c = 0; c < o; c++)
17646
17646
  for (let d = 0; d < n; d++) {
17647
17647
  const u = new dh(d, c, this.graphicsOffset, this);
@@ -17916,7 +17916,7 @@ class vh {
17916
17916
  constructor() {
17917
17917
  this.events = new $(), this.transform = Z.identity(), this.inverse = Z.identity(), this._cameraStrategies = [], this.strategy = new uh(this), this._z = 1, this.dz = 0, this.az = 0, this.rotation = 0, this._angularVelocity = 0, this._posChanged = !1, this._pos = new ie(x.Zero, () => {
17918
17918
  this._posChanged = !0;
17919
- }), this.drawPos = this.pos.clone(), this._oldPos = this.pos.clone(), this.vel = x.Zero, this.acc = x.Zero, this._cameraMoving = !1, this._currentLerpTime = 0, this._lerpDuration = 1e3, this._lerpStart = null, this._lerpEnd = null, this._isShaking = !1, this._shakeMagnitudeX = 0, this._shakeMagnitudeY = 0, this._shakeDuration = 0, this._elapsedShakeTime = 0, this._xShake = 0, this._yShake = 0, this._isZooming = !1, this._zoomStart = 1, this._zoomEnd = 1, this._currentZoomTime = 0, this._zoomDuration = 0, this._legacyZoomEasing = It.EaseInOutCubic, this._useLegacyZoom = !1, this._zoomEasing = Os, this._legacyEasing = It.EaseInOutCubic, this._useLegacyEasing = !1, this._easing = Os, this._halfWidth = 0, this._halfHeight = 0, this._viewport = null, this._isInitialized = !1, this._snapPos = w(0, 0);
17919
+ }), this.drawPos = this.pos.clone(), this._oldPos = this.pos.clone(), this.vel = x.Zero, this.acc = x.Zero, this._cameraMoving = !1, this._currentLerpTime = 0, this._lerpDuration = 1e3, this._lerpStart = null, this._lerpEnd = null, this._isShaking = !1, this._shakeMagnitudeX = 0, this._shakeMagnitudeY = 0, this._shakeDuration = 0, this._elapsedShakeTime = 0, this._xShake = 0, this._yShake = 0, this._isZooming = !1, this._zoomStart = 1, this._zoomEnd = 1, this._currentZoomTime = 0, this._zoomDuration = 0, this._legacyZoomEasing = It.EaseInOutCubic, this._useLegacyZoom = !1, this._zoomEasing = Hs, this._legacyEasing = It.EaseInOutCubic, this._useLegacyEasing = !1, this._easing = Hs, this._halfWidth = 0, this._halfHeight = 0, this._viewport = null, this._isInitialized = !1, this._snapPos = w(0, 0);
17920
17920
  }
17921
17921
  get strategies() {
17922
17922
  return this._cameraStrategies;
@@ -18252,7 +18252,7 @@ class Vr extends Ft {
18252
18252
  super(), this.world = t, this.systemType = Mt.Draw, this.query = this.world.query([P]);
18253
18253
  }
18254
18254
  initialize(t, e) {
18255
- this._graphicsContext = e.engine.graphicsContext, this._camera = e.camera, this._engine = e.engine, this._collisionSystem = t.systemManager.get(Ts);
18255
+ this._graphicsContext = e.engine.graphicsContext, this._camera = e.camera, this._engine = e.engine, this._collisionSystem = t.systemManager.get(Cs);
18256
18256
  }
18257
18257
  update() {
18258
18258
  var t;
@@ -18271,7 +18271,7 @@ class Vr extends Ft {
18271
18271
  const g = this._engine.debug.body, v = this._engine.debug.camera;
18272
18272
  for (let m = 0; m < this.query.entities.length; m++) {
18273
18273
  const f = this.query.entities[m];
18274
- if (f.hasTag("offscreen") || f instanceof bs || e.useFilter && (!(e.ids.length === 0 || e.ids.includes(f.id)) || !(e.nameQuery === "" || f.name.includes(e.nameQuery))))
18274
+ if (f.hasTag("offscreen") || f instanceof ws || e.useFilter && (!(e.ids.length === 0 || e.ids.includes(f.id)) || !(e.nameQuery === "" || f.name.includes(e.nameQuery))))
18275
18275
  continue;
18276
18276
  let b = x.Zero;
18277
18277
  const C = w(0, 16);
@@ -18280,7 +18280,7 @@ class Vr extends Ft {
18280
18280
  x.fromAngle(o.rotation).scale(50).add(x.Zero),
18281
18281
  a.rotationColor,
18282
18282
  2
18283
- ), this._graphicsContext.debug.drawText(`rot deg(${no(o.rotation).toFixed(2)})`, b), b = b.add(C)), (a.showAll || a.showScale) && this._graphicsContext.drawLine(x.Zero, o.scale.add(x.Zero), a.scaleColor, 2)), _ = f.get(gs), _ && (_.useTransform || this._graphicsContext.restore(), _.draw(this._graphicsContext, this._engine.debug), _.useTransform || (this._graphicsContext.save(), this._applyTransform(f))), p = f.get(N), p && ((g.showAll || g.showCollisionGroup) && (this._graphicsContext.debug.drawText(`collision group(${p.group.name})`, b), b = b.add(C)), (g.showAll || g.showCollisionType) && (this._graphicsContext.debug.drawText(`collision type(${p.collisionType})`, b), b = b.add(C)), (g.showAll || g.showMass) && (this._graphicsContext.debug.drawText(`mass(${p.mass})`, b), b = b.add(C)), (g.showAll || g.showMotion) && (this._graphicsContext.debug.drawText(`motion(${p.sleepMotion})`, b), b = b.add(C)), (g.showAll || g.showSleeping) && (this._graphicsContext.debug.drawText(`sleeping(${p.canSleep ? p.isSleeping : "cant sleep"})`, b), b = b.add(C))), this._graphicsContext.restore(), this._graphicsContext.save(), o.coordPlane === ht.Screen && this._graphicsContext.translate(this._engine.screen.contentArea.left, this._engine.screen.contentArea.top), h = f.get(H), h && ((l.showAll || l.showVelocity) && (this._graphicsContext.debug.drawText(`vel${h.vel.toString(2)}`, b.add(o.globalPos)), this._graphicsContext.drawLine(o.globalPos, o.globalPos.add(h.vel), l.velocityColor, 2), b = b.add(C)), (l.showAll || l.showAcceleration) && this._graphicsContext.drawLine(o.globalPos, o.globalPos.add(h.acc), l.accelerationColor, 2)), c = f.get(it), c) {
18283
+ ), this._graphicsContext.debug.drawText(`rot deg(${no(o.rotation).toFixed(2)})`, b), b = b.add(C)), (a.showAll || a.showScale) && this._graphicsContext.drawLine(x.Zero, o.scale.add(x.Zero), a.scaleColor, 2)), _ = f.get(fs), _ && (_.useTransform || this._graphicsContext.restore(), _.draw(this._graphicsContext, this._engine.debug), _.useTransform || (this._graphicsContext.save(), this._applyTransform(f))), p = f.get(N), p && ((g.showAll || g.showCollisionGroup) && (this._graphicsContext.debug.drawText(`collision group(${p.group.name})`, b), b = b.add(C)), (g.showAll || g.showCollisionType) && (this._graphicsContext.debug.drawText(`collision type(${p.collisionType})`, b), b = b.add(C)), (g.showAll || g.showMass) && (this._graphicsContext.debug.drawText(`mass(${p.mass})`, b), b = b.add(C)), (g.showAll || g.showMotion) && (this._graphicsContext.debug.drawText(`motion(${p.sleepMotion})`, b), b = b.add(C)), (g.showAll || g.showSleeping) && (this._graphicsContext.debug.drawText(`sleeping(${p.canSleep ? p.isSleeping : "cant sleep"})`, b), b = b.add(C))), this._graphicsContext.restore(), this._graphicsContext.save(), o.coordPlane === ht.Screen && this._graphicsContext.translate(this._engine.screen.contentArea.left, this._engine.screen.contentArea.top), h = f.get(H), h && ((l.showAll || l.showVelocity) && (this._graphicsContext.debug.drawText(`vel${h.vel.toString(2)}`, b.add(o.globalPos)), this._graphicsContext.drawLine(o.globalPos, o.globalPos.add(h.vel), l.velocityColor, 2), b = b.add(C)), (l.showAll || l.showAcceleration) && this._graphicsContext.drawLine(o.globalPos, o.globalPos.add(h.acc), l.accelerationColor, 2)), c = f.get(it), c) {
18284
18284
  const S = c.get();
18285
18285
  if ((d.showAll || d.showGeometry) && S && S.debug(this._graphicsContext, d.geometryColor, {
18286
18286
  lineWidth: d.geometryLineWidth,
@@ -18356,9 +18356,9 @@ class Vr extends Ft {
18356
18356
  }
18357
18357
  }
18358
18358
  Vr.priority = Jt.Lowest;
18359
- class Ps extends Ft {
18359
+ class As extends Ft {
18360
18360
  constructor(t) {
18361
- super(), this.world = t, this.systemType = Mt.Update, this._graphicsHashGrid = new Fr({ size: 100 }), this._graphics = [], this._entityToPointer = /* @__PURE__ */ new Map(), this._pointerEventDispatcher = new As(), this.overrideUseColliderShape = !1, this.overrideUseGraphicsBounds = !1, this._sortedTransforms = [], this._sortedEntities = [], this._zHasChanged = !1, this._zIndexUpdate = () => {
18361
+ super(), this.world = t, this.systemType = Mt.Update, this._graphicsHashGrid = new Fr({ size: 100 }), this._graphics = [], this._entityToPointer = /* @__PURE__ */ new Map(), this._pointerEventDispatcher = new Ss(), this.overrideUseColliderShape = !1, this.overrideUseGraphicsBounds = !1, this._sortedTransforms = [], this._sortedEntities = [], this._zHasChanged = !1, this._zIndexUpdate = () => {
18362
18362
  this._zHasChanged = !0;
18363
18363
  }, this.query = this.world.query([P, fe]), this.query.entityAdded$.subscribe((e) => {
18364
18364
  const i = e.get(P), s = e.get(fe);
@@ -18406,7 +18406,7 @@ class Ps extends Ft {
18406
18406
  this._pointerEventDispatcher.processPointerToObject(this._engineReceiver, this._sortedEntities), this._pointerEventDispatcher.dispatchEvents(this._engineReceiver, this._sortedEntities), this._receivers.forEach((t) => t.update()), this._pointerEventDispatcher.clear(), this._receivers.forEach((t) => t.clear());
18407
18407
  }
18408
18408
  }
18409
- Ps.priority = Jt.Higher;
18409
+ As.priority = Jt.Higher;
18410
18410
  class Gr extends Ft {
18411
18411
  constructor(t) {
18412
18412
  super(), this.world = t, this.systemType = Mt.Update, this._actions = [], this.query = this.world.query([qe]), this.query.entityAdded$.subscribe((e) => this._actions.push(e.get(qe))), this.query.entityRemoved$.subscribe((e) => {
@@ -18420,7 +18420,7 @@ class Gr extends Ft {
18420
18420
  }
18421
18421
  }
18422
18422
  Gr.priority = Jt.Higher;
18423
- class Es {
18423
+ class Ps {
18424
18424
  constructor() {
18425
18425
  this.events = new $(), this.enabled = !1, this.supported = !!navigator.getGamepads, this._gamePadTimeStamps = [0, 0, 0, 0], this._oldPads = [], this._pads = [], this._initSuccess = !1, this._navigator = navigator, this._minimumConfiguration = null, this._enabled = !0;
18426
18426
  }
@@ -18557,7 +18557,7 @@ class Es {
18557
18557
  return s;
18558
18558
  }
18559
18559
  }
18560
- Es.MinAxisMoveThreshold = 0.05;
18560
+ Ps.MinAxisMoveThreshold = 0.05;
18561
18561
  class Oi {
18562
18562
  constructor() {
18563
18563
  this.events = new $(), this.connected = !1, this._axes = new Array(4), this._buttons = new Array(16), this._buttonsUp = new Array(16), this._buttonsDown = new Array(16);
@@ -18613,7 +18613,7 @@ class Oi {
18613
18613
  */
18614
18614
  getAxes(t) {
18615
18615
  const e = this._axes[t];
18616
- return Math.abs(e) < Es.MinAxisMoveThreshold ? 0 : e;
18616
+ return Math.abs(e) < Ps.MinAxisMoveThreshold ? 0 : e;
18617
18617
  }
18618
18618
  updateButton(t, e) {
18619
18619
  e === 0 && this._buttons[t] ? this._buttonsUp[t] = 1 : this._buttonsDown[t] = e, this._buttons[t] = e;
@@ -18838,7 +18838,7 @@ class Sh {
18838
18838
  this.active = !1;
18839
18839
  }
18840
18840
  }
18841
- class en {
18841
+ class tn {
18842
18842
  constructor() {
18843
18843
  this.events = new $(), this.lastPagePos = x.Zero, this.lastScreenPos = x.Zero, this.lastWorldPos = x.Zero, this._onPointerMove = (t) => {
18844
18844
  this.lastPagePos = new x(t.pagePos.x, t.pagePos.y), this.lastScreenPos = new x(t.screenPos.x, t.screenPos.y), this.lastWorldPos = new x(t.worldPos.x, t.worldPos.y);
@@ -18875,9 +18875,9 @@ function Ah(r) {
18875
18875
  function Ph(r) {
18876
18876
  return globalThis.PointerEvent && r instanceof globalThis.PointerEvent;
18877
18877
  }
18878
- class Is {
18878
+ class Es {
18879
18879
  constructor(t, e) {
18880
- this.target = t, this.engine = e, this.events = new $(), this.primary = new en(), this._activeNativePointerIdsToNormalized = /* @__PURE__ */ new Map(), this.lastFramePointerCoords = /* @__PURE__ */ new Map(), this.currentFramePointerCoords = /* @__PURE__ */ new Map(), this.currentFramePointerDown = /* @__PURE__ */ new Map(), this.lastFramePointerDown = /* @__PURE__ */ new Map(), this.currentFrameDown = [], this.currentFrameUp = [], this.currentFrameMove = [], this.currentFrameCancel = [], this.currentFrameWheel = [], this._enabled = !0, this._pointers = [this.primary], this._boundHandle = this._handle.bind(this), this._boundWheel = this._handleWheel.bind(this);
18880
+ this.target = t, this.engine = e, this.events = new $(), this.primary = new tn(), this._activeNativePointerIdsToNormalized = /* @__PURE__ */ new Map(), this.lastFramePointerCoords = /* @__PURE__ */ new Map(), this.currentFramePointerCoords = /* @__PURE__ */ new Map(), this.currentFramePointerDown = /* @__PURE__ */ new Map(), this.lastFramePointerDown = /* @__PURE__ */ new Map(), this.currentFrameDown = [], this.currentFrameUp = [], this.currentFrameMove = [], this.currentFrameCancel = [], this.currentFrameWheel = [], this._enabled = !0, this._pointers = [this.primary], this._boundHandle = this._handle.bind(this), this._boundWheel = this._handleWheel.bind(this);
18881
18881
  }
18882
18882
  toggleEnabled(t) {
18883
18883
  this._enabled = t;
@@ -18889,7 +18889,7 @@ class Is {
18889
18889
  * @param engine
18890
18890
  */
18891
18891
  recreate(t, e) {
18892
- const i = new Is(t, e);
18892
+ const i = new Es(t, e);
18893
18893
  return i.primary = this.primary, i._pointers = this._pointers, i;
18894
18894
  }
18895
18895
  /**
@@ -18899,7 +18899,7 @@ class Is {
18899
18899
  at(t) {
18900
18900
  if (t >= this._pointers.length)
18901
18901
  for (let e = this._pointers.length - 1, i = t; e < i; e++)
18902
- this._pointers.push(new en());
18902
+ this._pointers.push(new tn());
18903
18903
  return this._pointers[t];
18904
18904
  }
18905
18905
  /**
@@ -19110,7 +19110,7 @@ class Is {
19110
19110
  clientY: i.y
19111
19111
  })
19112
19112
  );
19113
- const s = this.engine.currentScene.world.get(Ps);
19113
+ const s = this.engine.currentScene.world.get(As);
19114
19114
  s.preupdate(this.engine.currentScene, 1), s.update(1);
19115
19115
  }
19116
19116
  _nativeButtonToPointerButton(t) {
@@ -19146,7 +19146,7 @@ class Zr {
19146
19146
  constructor(t) {
19147
19147
  this._enabled = !0;
19148
19148
  const { pointerTarget: e, grabWindowFocus: i, engine: s, global: n } = t;
19149
- this.keyboard = new Th(), this.pointers = new Is(e, s), this.gamepads = new Es(), this.keyboard.init({ global: n, grabWindowFocus: i }), this.pointers.init({ grabWindowFocus: i }), this.gamepads.init(), this.inputMapper = new yh({
19149
+ this.keyboard = new Th(), this.pointers = new Es(e, s), this.gamepads = new Ps(), this.keyboard.init({ global: n, grabWindowFocus: i }), this.pointers.init({ grabWindowFocus: i }), this.gamepads.init(), this.inputMapper = new yh({
19150
19150
  keyboard: this.keyboard,
19151
19151
  pointers: this.pointers,
19152
19152
  gamepads: this.gamepads
@@ -19187,7 +19187,7 @@ function Gt(r) {
19187
19187
  }
19188
19188
  class Et {
19189
19189
  constructor() {
19190
- this._logger = I.getInstance(), this.events = new $(), this.camera = new vh(), this.world = new vo(this), this.physics = new Qa(ne()), this._isInitialized = !1, this._timers = [], this._cancelQueue = [], this.world.add(Gr), this.world.add(new Cs(this.world, this.physics)), this.world.add(new Ts(this.world, this.physics)), this.world.add(Ps), this.world.add(Wr), this.world.add(mr), this.world.add(pr), this.world.add(Vr);
19190
+ this._logger = I.getInstance(), this.events = new $(), this.camera = new vh(), this.world = new vo(this), this.physics = new Qa(ne()), this._isInitialized = !1, this._timers = [], this._cancelQueue = [], this.world.add(Gr), this.world.add(new ys(this.world, this.physics)), this.world.add(new Cs(this.world, this.physics)), this.world.add(As), this.world.add(Wr), this.world.add(mr), this.world.add(pr), this.world.add(Vr);
19191
19191
  }
19192
19192
  /**
19193
19193
  * The actors in the current scene
@@ -19703,7 +19703,7 @@ class yi {
19703
19703
  get total() {
19704
19704
  return this.update + this.draw;
19705
19705
  }
19706
- }, this._physicsStats = new Rs(), this._graphicsStats = {
19706
+ }, this._physicsStats = new Is(), this._graphicsStats = {
19707
19707
  drawCalls: 0,
19708
19708
  drawnImages: 0
19709
19709
  };
@@ -19785,7 +19785,7 @@ class yi {
19785
19785
  return this._graphicsStats;
19786
19786
  }
19787
19787
  }
19788
- class Rs {
19788
+ class Is {
19789
19789
  constructor() {
19790
19790
  this._pairs = 0, this._collisions = 0, this._contacts = /* @__PURE__ */ new Map(), this._fastBodies = 0, this._fastBodyCollisions = 0, this._broadphase = 0, this._narrowphase = 0;
19791
19791
  }
@@ -19800,7 +19800,7 @@ class Rs {
19800
19800
  * Provides a clone of this instance.
19801
19801
  */
19802
19802
  clone() {
19803
- const t = new Rs();
19803
+ const t = new Is();
19804
19804
  return t.reset(this), t;
19805
19805
  }
19806
19806
  get pairs() {
@@ -19846,7 +19846,7 @@ class Rs {
19846
19846
  this._narrowphase = t;
19847
19847
  }
19848
19848
  }
19849
- class sn {
19849
+ class en {
19850
19850
  constructor(t) {
19851
19851
  this.nativeComponent = t, this._paused = !1, this._nativeHandlers = {};
19852
19852
  }
@@ -19874,7 +19874,7 @@ class sn {
19874
19874
  }
19875
19875
  class Rh {
19876
19876
  constructor(t, e) {
19877
- this._windowGlobal = t, this._documentGlobal = e, this._windowComponent = new sn(this._windowGlobal), this._documentComponent = new sn(this._documentGlobal);
19877
+ this._windowGlobal = t, this._documentGlobal = e, this._windowComponent = new en(this._windowGlobal), this._documentComponent = new en(this._documentGlobal);
19878
19878
  }
19879
19879
  get window() {
19880
19880
  return this._windowComponent;
@@ -20180,7 +20180,7 @@ class Lh {
20180
20180
  configureStart(t, e) {
20181
20181
  var i, s;
20182
20182
  const n = e == null ? void 0 : e.loader;
20183
- n instanceof wi ? this.mainLoader = n : Js(n) ? this.mainLoader = new n() : this.mainLoader = new rs();
20183
+ n instanceof wi ? this.mainLoader = n : Qs(n) ? this.mainLoader = new n() : this.mainLoader = new rs();
20184
20184
  let o;
20185
20185
  if (e != null && e.inTransition) {
20186
20186
  const { inTransition: h } = e;
@@ -20266,7 +20266,7 @@ class Lh {
20266
20266
  add(t, e) {
20267
20267
  if (!(e instanceof Et) && !Gt(e)) {
20268
20268
  const { loader: i, transitions: s } = e, { in: n, out: o } = s != null ? s : {};
20269
- this._sceneToTransition.set(t, { in: n, out: o }), Js(i) ? this._sceneToLoader.set(t, new i()) : i && this._sceneToLoader.set(t, i);
20269
+ this._sceneToTransition.set(t, { in: n, out: o }), Qs(i) ? this._sceneToLoader.set(t, new i()) : i && this._sceneToLoader.set(t, i);
20270
20270
  }
20271
20271
  return this.scenes[t] && this._logger.warn("Scene", t, "already exists overwriting"), this.scenes[t] = e, this.assertAdded(t);
20272
20272
  }
@@ -20419,7 +20419,7 @@ function Jr() {
20419
20419
  function Kr(r) {
20420
20420
  return r.value;
20421
20421
  }
20422
- const nn = {
20422
+ const sn = {
20423
20423
  textureCollectInterval: 6e4
20424
20424
  // TODO future work to integrate the font and text configuration, refactor existing collection mechanism
20425
20425
  // fontCollectInterval: 60_000,
@@ -20491,7 +20491,7 @@ class Uh {
20491
20491
  this._running = !1, cancelIdleCallback(this._collectHandle);
20492
20492
  }
20493
20493
  }
20494
- ln();
20494
+ hn();
20495
20495
  const Ql = {
20496
20496
  FallbackGraphicsContext: "fallbackgraphicscontext",
20497
20497
  Initialize: "initialize",
@@ -20534,7 +20534,7 @@ const Di = class ee {
20534
20534
  * ```
20535
20535
  */
20536
20536
  constructor(t) {
20537
- this.scope = (S) => ee.Context.scope(this, S), this.version = hn, this.events = new $(), this.maxFps = Number.POSITIVE_INFINITY, this._inputEnabled = !0, this._suppressPlayButton = !1, this.pauseAudioWhenHidden = !0, this._isDebug = !1, this.enableCanvasTransparency = !0, this.onFatalException = (S) => {
20537
+ this.scope = (S) => ee.Context.scope(this, S), this.version = an, this.events = new $(), this.maxFps = Number.POSITIVE_INFINITY, this._inputEnabled = !0, this._suppressPlayButton = !1, this.pauseAudioWhenHidden = !0, this._isDebug = !1, this.enableCanvasTransparency = !0, this.onFatalException = (S) => {
20538
20538
  I.getInstance().fatal(S, S.stack);
20539
20539
  }, this._toaster = new Bh(), this._timescale = 1, this._isInitialized = !1, this._hasCreatedCanvas = !1, this._originalOptions = {}, this._handleWebGLContextLost = (S) => {
20540
20540
  var E;
@@ -20580,7 +20580,7 @@ const Di = class ee {
20580
20580
  } else
20581
20581
  this._compatible = !0;
20582
20582
  if (console.log && !t.suppressConsoleBootMessage && (console.log(
20583
- `%cPowered by Excalibur.js (v${hn})`,
20583
+ `%cPowered by Excalibur.js (v${an})`,
20584
20584
  "background: #176BAA; color: white; border-radius: 5px; padding: 15px; font-size: 1.5em; line-height: 80px;"
20585
20585
  ), console.log(
20586
20586
  `
@@ -20588,11 +20588,11 @@ const Di = class ee {
20588
20588
  O|===|* >________________>
20589
20589
  \\|`
20590
20590
  ), console.log("Visit", "http://excaliburjs.com", "for more information")), t.suppressPlayButton && (this._suppressPlayButton = !0), this._logger = I.getInstance(), this.debug = new Ih(this), this._logger.defaultLevel === Ze.Debug && d.logBrowserFeatures(), this._logger.debug("Building engine..."), t.garbageCollection === !0 ? this.garbageCollectorConfig = {
20591
- ...nn
20591
+ ...sn
20592
20592
  } : t.garbageCollection === !1 ? (this._logger.warn(
20593
20593
  "WebGL Garbage Collection Disabled!!! If you leak any images over time your game will crash when GPU memory is exhausted"
20594
20594
  ), this.garbageCollectorConfig = null) : this.garbageCollectorConfig = {
20595
- ...nn,
20595
+ ...sn,
20596
20596
  ...t.garbageCollection
20597
20597
  }, this._garbageCollector = new Uh({ getTimestamp: Date.now }), this.canvasElementId = t.canvasElementId, t.canvasElementId) {
20598
20598
  if (this._logger.debug("Using Canvas element specified: " + t.canvasElementId), document.getElementById(t.canvasElementId) === null)
@@ -20648,13 +20648,13 @@ Read more about this issue at https://excaliburjs.com/docs/performance`
20648
20648
  backgroundColor: t.backgroundColor,
20649
20649
  snapToPixel: t.snapToPixel,
20650
20650
  useDrawSorting: t.useDrawSorting
20651
- })), this.screen = new Qs({
20651
+ })), this.screen = new js({
20652
20652
  canvas: this.canvas,
20653
20653
  context: this.graphicsContext,
20654
20654
  antialiasing: v,
20655
20655
  canvasImageRendering: m,
20656
20656
  browser: this.browser,
20657
- viewport: (o = t.viewport) != null ? o : t.width && t.height ? { width: t.width, height: t.height } : js.SVGA,
20657
+ viewport: (o = t.viewport) != null ? o : t.width && t.height ? { width: t.width, height: t.height } : Zs.SVGA,
20658
20658
  resolution: t.resolution,
20659
20659
  displayMode: u,
20660
20660
  pixelRatio: t.suppressHiDPIScaling ? 1 : (a = t.pixelRatio) != null ? a : null
@@ -20847,12 +20847,12 @@ Read more about this issue at https://excaliburjs.com/docs/performance`
20847
20847
  backgroundColor: n.backgroundColor,
20848
20848
  snapToPixel: n.snapToPixel,
20849
20849
  useDrawSorting: n.useDrawSorting
20850
- }), this.screen && this.screen.dispose(), this.screen = new Qs({
20850
+ }), this.screen && this.screen.dispose(), this.screen = new js({
20851
20851
  canvas: this.canvas,
20852
20852
  context: this.graphicsContext,
20853
20853
  antialiasing: (t = n.antialiasing) != null ? t : !0,
20854
20854
  browser: this.browser,
20855
- viewport: (e = n.viewport) != null ? e : n.width && n.height ? { width: n.width, height: n.height } : js.SVGA,
20855
+ viewport: (e = n.viewport) != null ? e : n.width && n.height ? { width: n.width, height: n.height } : Zs.SVGA,
20856
20856
  resolution: n.resolution,
20857
20857
  displayMode: o,
20858
20858
  pixelRatio: n.suppressHiDPIScaling ? 1 : (i = n.pixelRatio) != null ? i : null
@@ -21301,7 +21301,7 @@ class Kl extends Dt {
21301
21301
  constructor(t) {
21302
21302
  var e, i;
21303
21303
  super({ width: (e = t.width) != null ? e : 0, height: (i = t.height) != null ? i : 0 }), this._particlesToEmit = 0, this._particlePool = new ei(
21304
- () => new bs({}),
21304
+ () => new ws({}),
21305
21305
  (p) => p,
21306
21306
  500
21307
21307
  ), this.numParticles = 0, this.isEmitting = !0, this.deadParticles = [], this.emitRate = 1, this.emitterType = Ae.Rectangle, this.radius = 0, this.particle = {
@@ -21381,7 +21381,7 @@ class Kl extends Dt {
21381
21381
  this.deadParticles.length = 0;
21382
21382
  }
21383
21383
  }
21384
- function rn(r, t) {
21384
+ function nn(r, t) {
21385
21385
  if (!t())
21386
21386
  throw new Error(r);
21387
21387
  }
@@ -21477,7 +21477,7 @@ class os {
21477
21477
  if (this._initialized) {
21478
21478
  if (this._clearRequested ? (t.bindBuffer(t.ARRAY_BUFFER, this._buffers[(this._drawIndex + 1) % 2]), t.bufferSubData(t.ARRAY_BUFFER, 0, this._particleData), t.bindBuffer(t.ARRAY_BUFFER, null), this._clearRequested = !1) : this._uploadEmitted(t), t.bindVertexArray(this._currentVao), t.bindBufferBase(t.TRANSFORM_FEEDBACK_BUFFER, 0, this._currentBuffer), this._wrappedLife && this._emitted[0] && this._emitted[0][1] > 0) {
21479
21479
  const e = this._emitted[0][1] / this._numInputFloats;
21480
- rn(`midpoint greater than 0, actual: ${e}`, () => e > 0), rn(`midpoint is less than max, actual: ${e}`, () => e < this.maxParticles), t.bindBufferRange(
21480
+ nn(`midpoint greater than 0, actual: ${e}`, () => e > 0), nn(`midpoint is less than max, actual: ${e}`, () => e < this.maxParticles), t.bindBufferRange(
21481
21481
  t.TRANSFORM_FEEDBACK_BUFFER,
21482
21482
  0,
21483
21483
  this._currentBuffer,
@@ -21871,7 +21871,7 @@ class gc {
21871
21871
  duration: ((a = this._gif) == null ? void 0 : a.frames[o].delayMs) || void 0
21872
21872
  };
21873
21873
  });
21874
- return this._animation = new _s({
21874
+ return this._animation = new us({
21875
21875
  frames: s,
21876
21876
  frameDuration: t
21877
21877
  }), this._animation;
@@ -22114,16 +22114,16 @@ class pc {
22114
22114
  return new Me({ family: this.family, ...this._options, ...t });
22115
22115
  }
22116
22116
  }
22117
- const on = Jr(), Wh = /^\s*(?:function)?\*/;
22118
- function an(r) {
22117
+ const rn = Jr(), Wh = /^\s*(?:function)?\*/;
22118
+ function on(r) {
22119
22119
  return typeof r != "function" ? !1 : Wh.test(Function.prototype.toString.call(r)) ? !0 : Object.getPrototypeOf ? Object.getPrototypeOf(r) === Object.getPrototypeOf(new Function("return function * () {}")()) : !1;
22120
22120
  }
22121
22121
  function Vh(...r) {
22122
22122
  var t;
22123
22123
  const e = I.getInstance();
22124
22124
  let i, s, n, o;
22125
- an(r[0]) && (s = globalThis, i = r[0], n = r[1]), an(r[1]) && (s = r[0], i = r[1], n = r[2]), r[1] instanceof Ni && (s = r[0], o = r[1], i = r[2], n = r[3]), r[0] instanceof Ni && (s = globalThis, o = r[0], i = r[1], n = r[2]);
22126
- const a = Kr(on), h = n == null ? void 0 : n.timing, l = a ? !1 : (t = n == null ? void 0 : n.autostart) != null ? t : !0;
22125
+ on(r[0]) && (s = globalThis, i = r[0], n = r[1]), on(r[1]) && (s = r[0], i = r[1], n = r[2]), r[1] instanceof Ni && (s = r[0], o = r[1], i = r[2], n = r[3]), r[0] instanceof Ni && (s = globalThis, o = r[0], i = r[1], n = r[2]);
22126
+ const a = Kr(rn), h = n == null ? void 0 : n.timing, l = a ? !1 : (t = n == null ? void 0 : n.autostart) != null ? t : !0;
22127
22127
  let c;
22128
22128
  try {
22129
22129
  c = o != null ? o : Ni.useEngine();
@@ -22143,7 +22143,7 @@ Pass an engine parameter to ex.coroutine(engine, function * {...})`
22143
22143
  u = !0, b();
22144
22144
  return;
22145
22145
  }
22146
- const { done: E, value: y } = on.scope(!0, () => g.next(S));
22146
+ const { done: E, value: y } = rn.scope(!0, () => g.next(S));
22147
22147
  if (E || _) {
22148
22148
  u = !0, b();
22149
22149
  return;
@@ -22174,7 +22174,7 @@ Pass an engine parameter to ex.coroutine(engine, function * {...})`
22174
22174
  };
22175
22175
  return f;
22176
22176
  }
22177
- class Ms extends Rt {
22177
+ class Rs extends Rt {
22178
22178
  constructor(t) {
22179
22179
  var e, i, s, n, o;
22180
22180
  super(), this._logger = I.getInstance(), this.transform = new P(), this.graphics = new tt(), this._completeFuture = new yt(), this.started = !1, this._currentDistance = 0, this._currentProgress = 0, this.done = this._completeFuture.promise, this._useLegacyEasing = !1, this.name = `Transition#${this.id}`, this.duration = t.duration, Fe(t.easing) ? (this.legacyEasing = (e = t.easing) != null ? e : It.Linear, this._useLegacyEasing = !0) : this.easing = (i = t.easing) != null ? i : ls, this.direction = (s = t.direction) != null ? s : "out", this.hideLoader = (n = t.hideLoader) != null ? n : !1, this.blockInput = (o = t.blockInput) != null ? o : !1, this.transform.coordPlane = ht.Screen, this.transform.pos = x.Zero, this.transform.z = 1 / 0, this.graphics.anchor = x.Zero, this.addComponent(this.transform), this.addComponent(this.graphics), this.direction === "out" ? this._currentProgress = 0 : this._currentProgress = 1;
@@ -22286,7 +22286,7 @@ class Ms extends Rt {
22286
22286
  this.isInitialized && (this.started || (this.started = !0, this.onStart(this.progress)), this.onUpdate(this.progress), this.complete && !this._completeFuture.isCompleted && (this.onEnd(this.progress), this._completeFuture.resolve()));
22287
22287
  }
22288
22288
  }
22289
- class mc extends Ms {
22289
+ class mc extends Rs {
22290
22290
  constructor(t) {
22291
22291
  var e, i;
22292
22292
  super({
@@ -22314,7 +22314,7 @@ class mc extends Ms {
22314
22314
  this.graphics.opacity = t;
22315
22315
  }
22316
22316
  }
22317
- class xc extends Ms {
22317
+ class xc extends Rs {
22318
22318
  constructor(t) {
22319
22319
  super({ direction: "in", ...t }), this.name = `CrossFade#${this.id}`;
22320
22320
  }
@@ -22337,7 +22337,7 @@ class xc extends Ms {
22337
22337
  this.graphics.opacity = t;
22338
22338
  }
22339
22339
  }
22340
- class vc extends Ms {
22340
+ class vc extends Rs {
22341
22341
  constructor(t) {
22342
22342
  var e;
22343
22343
  super({ direction: "in", ...t }), this._easing = It.Linear, this._start = x.Zero, this._end = x.Zero, this.name = `Slide#${this.id}`, this.slideDirection = t.slideDirection, this.transform.coordPlane = ht.Screen, this.graphics.forceOnScreen = !0, this._easing = (e = t.easingFunction) != null ? e : this._easing;
@@ -22379,7 +22379,7 @@ class vc extends Ms {
22379
22379
  }
22380
22380
  const wc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22381
22381
  __proto__: null,
22382
- ConsoleAppender: mn,
22382
+ ConsoleAppender: pn,
22383
22383
  DrawUtil: Ro,
22384
22384
  EasingFunctions: It,
22385
22385
  LogLevel: Ze,
@@ -22470,8 +22470,8 @@ class Cc {
22470
22470
  }
22471
22471
  }
22472
22472
  }
22473
- const hn = "0.32.0-alpha.1572+72a3430";
22474
- ln();
22473
+ const an = "0.32.0-alpha.1574+e3aa0be";
22474
+ hn();
22475
22475
  export {
22476
22476
  Wn as ActionCompleteEvent,
22477
22477
  Fi as ActionContext,
@@ -22486,11 +22486,11 @@ export {
22486
22486
  Vn as AddEvent,
22487
22487
  Il as AddedComponent,
22488
22488
  Z as AffineMatrix,
22489
- _s as Animation,
22489
+ us as Animation,
22490
22490
  So as AnimationDirection,
22491
22491
  Bl as AnimationEvents,
22492
22492
  Ao as AnimationStrategy,
22493
- $s as ArcadeSolver,
22493
+ Ys as ArcadeSolver,
22494
22494
  vi as AudioContextFactory,
22495
22495
  bh as Axes,
22496
22496
  _h as Axis,
@@ -22499,14 +22499,14 @@ export {
22499
22499
  Wa as Blink,
22500
22500
  N as BodyComponent,
22501
22501
  F as BoundingBox,
22502
- sn as BrowserComponent,
22502
+ en as BrowserComponent,
22503
22503
  Rh as BrowserEvents,
22504
22504
  qr as Buttons,
22505
22505
  vh as Camera,
22506
22506
  Yl as CameraEvents,
22507
- xs as Canvas,
22507
+ ms as Canvas,
22508
22508
  zh as ChannelCollection,
22509
- ms as Circle,
22509
+ ps as Circle,
22510
22510
  _t as CircleCollider,
22511
22511
  jr as Clock,
22512
22512
  Yt as ClosestLineJumpTable,
@@ -22520,7 +22520,7 @@ export {
22520
22520
  $i as CollisionPostSolveEvent,
22521
22521
  Yi as CollisionPreSolveEvent,
22522
22522
  fi as CollisionStartEvent,
22523
- Ts as CollisionSystem,
22523
+ Cs as CollisionSystem,
22524
22524
  R as CollisionType,
22525
22525
  T as Color,
22526
22526
  Eh as ColorBlindFlags,
@@ -22528,7 +22528,7 @@ export {
22528
22528
  Zo as ColorBlindnessPostProcessor,
22529
22529
  Bt as Component,
22530
22530
  lt as CompositeCollider,
22531
- mn as ConsoleAppender,
22531
+ pn as ConsoleAppender,
22532
22532
  ja as ContactConstraintPoint,
22533
22533
  Xi as ContactEndEvent,
22534
22534
  _e as ContactSolveBias,
@@ -22540,11 +22540,11 @@ export {
22540
22540
  Ln as DeactivateEvent,
22541
22541
  St as Debug,
22542
22542
  Ih as DebugConfig,
22543
- gs as DebugGraphicsComponent,
22543
+ fs as DebugGraphicsComponent,
22544
22544
  Vr as DebugSystem,
22545
22545
  fr as DebugText,
22546
22546
  Ho as DefaultAntialiasOptions,
22547
- nn as DefaultGarbageCollectionOptions,
22547
+ sn as DefaultGarbageCollectionOptions,
22548
22548
  wi as DefaultLoader,
22549
22549
  Oo as DefaultPixelArtOptions,
22550
22550
  le as DegreeOfFreedom,
@@ -22557,11 +22557,11 @@ export {
22557
22557
  di as DisplayMode,
22558
22558
  Jn as DynamicTree,
22559
22559
  ji as DynamicTreeCollisionProcessor,
22560
- hn as EX_VERSION,
22560
+ an as EX_VERSION,
22561
22561
  Na as EaseBy,
22562
22562
  Oa as EaseTo,
22563
22563
  It as EasingFunctions,
22564
- Hs as Edge,
22564
+ zs as Edge,
22565
22565
  At as EdgeCollider,
22566
22566
  ph as ElasticToActorStrategy,
22567
22567
  Ae as EmitterType,
@@ -22573,7 +22573,7 @@ export {
22573
22573
  Dl as EntityEvents,
22574
22574
  go as EntityManager,
22575
22575
  $ as EventEmitter,
22576
- xn as EventTypes,
22576
+ mn as EventTypes,
22577
22577
  El as Events,
22578
22578
  Br as ExResponse,
22579
22579
  is as ExcaliburGraphicsContext2DCanvas,
@@ -22584,7 +22584,7 @@ export {
22584
22584
  mc as FadeInOut,
22585
22585
  Ne as Flags,
22586
22586
  Xa as Flash,
22587
- Xs as Follow,
22587
+ qs as Follow,
22588
22588
  Me as Font,
22589
22589
  ts as FontCache,
22590
22590
  pc as FontSource,
@@ -22601,14 +22601,14 @@ export {
22601
22601
  Mn as GamepadButtonEvent,
22602
22602
  In as GamepadConnectEvent,
22603
22603
  Rn as GamepadDisconnectEvent,
22604
- Es as Gamepads,
22604
+ Ps as Gamepads,
22605
22605
  Uh as GarbageCollector,
22606
22606
  gc as Gif,
22607
22607
  Nh as GifParser,
22608
22608
  Ye as GlobalCoordinates,
22609
22609
  tc as GpuParticleEmitter,
22610
22610
  os as GpuParticleRenderer,
22611
- un as Graph,
22611
+ dn as Graph,
22612
22612
  nt as Graphic,
22613
22613
  tt as GraphicsComponent,
22614
22614
  $e as GraphicsGroup,
@@ -22632,7 +22632,7 @@ export {
22632
22632
  ri as KeyEvent,
22633
22633
  Th as Keyboard,
22634
22634
  Ch as Keys,
22635
- cs as KillEvent,
22635
+ xn as KillEvent,
22636
22636
  Jl as Label,
22637
22637
  xh as LimitCameraBoundsStrategy,
22638
22638
  gr as Line,
@@ -22649,10 +22649,10 @@ export {
22649
22649
  kr as MediaEvent,
22650
22650
  zi as Meet,
22651
22651
  H as MotionComponent,
22652
- Cs as MotionSystem,
22653
- Vs as MoveBy,
22652
+ ys as MotionSystem,
22653
+ Ws as MoveBy,
22654
22654
  Pa as MoveByWithOptions,
22655
- Gs as MoveTo,
22655
+ Vs as MoveTo,
22656
22656
  Ia as MoveToWithOptions,
22657
22657
  ye as NativePointerButton,
22658
22658
  be as NativeSoundEvent,
@@ -22664,25 +22664,25 @@ export {
22664
22664
  xt as Observable,
22665
22665
  mr as OffscreenSystem,
22666
22666
  vt as Pair,
22667
- ps as ParallaxComponent,
22667
+ gs as ParallaxComponent,
22668
22668
  ec as ParallelActions,
22669
- bs as Particle,
22669
+ ws as Particle,
22670
22670
  Kl as ParticleEmitter,
22671
22671
  Xo as ParticleRenderer,
22672
22672
  Zt as ParticleTransform,
22673
- Rs as PhysicsStats,
22673
+ Is as PhysicsStats,
22674
22674
  Qa as PhysicsWorld,
22675
- en as PointerAbstraction,
22675
+ tn as PointerAbstraction,
22676
22676
  ce as PointerButton,
22677
22677
  fe as PointerComponent,
22678
22678
  oi as PointerEvent,
22679
- Is as PointerEventReceiver,
22679
+ Es as PointerEventReceiver,
22680
22680
  Xe as PointerScope,
22681
- Ps as PointerSystem,
22681
+ As as PointerSystem,
22682
22682
  de as PointerType,
22683
22683
  xr as Polygon,
22684
22684
  dt as PolygonCollider,
22685
- us as Pool,
22685
+ ds as Pool,
22686
22686
  ho as PositionNode,
22687
22687
  Re as PostCollisionEvent,
22688
22688
  An as PostDebugDrawEvent,
@@ -22708,14 +22708,14 @@ export {
22708
22708
  ge as Random,
22709
22709
  Ke as Raster,
22710
22710
  Ce as Ray,
22711
- Zs as RealisticSolver,
22711
+ $s as RealisticSolver,
22712
22712
  Ri as Rectangle,
22713
22713
  Gn as RemoveEvent,
22714
22714
  Ml as RemovedComponent,
22715
22715
  ei as RentalPool,
22716
22716
  Ta as Repeat,
22717
22717
  Sa as RepeatForever,
22718
- js as Resolution,
22718
+ Zs as Resolution,
22719
22719
  Pi as Resource,
22720
22720
  kl as ResourceEvents,
22721
22721
  Da as RotateBy,
@@ -22729,7 +22729,7 @@ export {
22729
22729
  ka as ScaleToWithOptions,
22730
22730
  Et as Scene,
22731
22731
  jl as SceneEvents,
22732
- Qs as Screen,
22732
+ js as Screen,
22733
22733
  co as ScreenAppender,
22734
22734
  Hr as ScreenElement,
22735
22735
  Wl as ScreenEvents,
@@ -22742,18 +22742,18 @@ export {
22742
22742
  ft as Shape,
22743
22743
  G as Side,
22744
22744
  vc as Slide,
22745
- ds as SolverStrategy,
22745
+ cs as SolverStrategy,
22746
22746
  Lr as Sound,
22747
22747
  Vl as SoundEvents,
22748
22748
  fc as SoundManager,
22749
22749
  Fr as SparseHashGrid,
22750
- Ys as SparseHashGridCollisionProcessor,
22750
+ Xs as SparseHashGridCollisionProcessor,
22751
22751
  xi as SpatialPartitionStrategy,
22752
22752
  Ht as Sprite,
22753
- fs as SpriteFont,
22753
+ _s as SpriteFont,
22754
22754
  Te as SpriteSheet,
22755
22755
  Qr as StandardClock,
22756
- Ss as StateMachine,
22756
+ Ts as StateMachine,
22757
22757
  uh as StrategyContainer,
22758
22758
  Hh as Stream,
22759
22759
  Ft as System,
@@ -22774,15 +22774,15 @@ export {
22774
22774
  Bh as Toaster,
22775
22775
  re as Transform,
22776
22776
  P as TransformComponent,
22777
- Ms as Transition,
22778
- Ns as TreeNode,
22777
+ Rs as Transition,
22778
+ Os as TreeNode,
22779
22779
  wh as Trigger,
22780
22780
  $l as TriggerEvents,
22781
22781
  rt as TwoPI,
22782
22782
  Wo as UniformBuffer,
22783
22783
  wc as Util,
22784
22784
  x as Vector,
22785
- zs as VectorView,
22785
+ Us as VectorView,
22786
22786
  Nt as VertexBuffer,
22787
22787
  Kt as VertexLayout,
22788
22788
  er as VerticalFirst,
@@ -22793,7 +22793,7 @@ export {
22793
22793
  Sh as WheelEvent,
22794
22794
  vo as World,
22795
22795
  so as approximatelyEqual,
22796
- rn as assert,
22796
+ nn as assert,
22797
22797
  se as canonicalizeAngle,
22798
22798
  D as clamp,
22799
22799
  Vh as coroutine,
@@ -22807,7 +22807,7 @@ export {
22807
22807
  bl as easeInOutBack,
22808
22808
  Sl as easeInOutBounce,
22809
22809
  xl as easeInOutCirc,
22810
- Os as easeInOutCubic,
22810
+ Hs as easeInOutCubic,
22811
22811
  Tl as easeInOutElastic,
22812
22812
  gl as easeInOutExpo,
22813
22813
  nl as easeInOutQuad,
@@ -22819,7 +22819,7 @@ export {
22819
22819
  cl as easeInQuint,
22820
22820
  Kh as easeInSine,
22821
22821
  wl as easeOutBack,
22822
- gn as easeOutBounce,
22822
+ fn as easeOutBounce,
22823
22823
  ml as easeOutCirc,
22824
22824
  ol as easeOutCubic,
22825
22825
  Cl as easeOutElastic,
@@ -22850,7 +22850,7 @@ export {
22850
22850
  Rl as isAddedComponent,
22851
22851
  uo as isComponentCtor,
22852
22852
  Fe as isLegacyEasing,
22853
- Js as isLoaderConstructor,
22853
+ Qs as isLoaderConstructor,
22854
22854
  Aa as isMoveByOptions,
22855
22855
  Ea as isMoveToOptions,
22856
22856
  Fl as isRemovedComponent,
@@ -22862,7 +22862,7 @@ export {
22862
22862
  ah as isScreenElement,
22863
22863
  mo as isSystemConstructor,
22864
22864
  at as lerp,
22865
- dn as lerpAngle,
22865
+ cn as lerpAngle,
22866
22866
  Ti as lerpVector,
22867
22867
  ls as linear,
22868
22868
  Gh as maxMessages,