evotars 0.0.18 → 0.0.21

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,7 +1,7 @@
1
1
  var bn = Object.defineProperty;
2
2
  var wn = (i, t, e) => t in i ? bn(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
3
  var w = (i, t, e) => (wn(i, typeof t != "symbol" ? t + "" : t, e), e);
4
- var B = /* @__PURE__ */ ((i) => (i.Application = "application", i.WebGLPipes = "webgl-pipes", i.WebGLPipesAdaptor = "webgl-pipes-adaptor", i.WebGLSystem = "webgl-system", i.WebGPUPipes = "webgpu-pipes", i.WebGPUPipesAdaptor = "webgpu-pipes-adaptor", i.WebGPUSystem = "webgpu-system", i.CanvasSystem = "canvas-system", i.CanvasPipesAdaptor = "canvas-pipes-adaptor", i.CanvasPipes = "canvas-pipes", i.Asset = "asset", i.LoadParser = "load-parser", i.ResolveParser = "resolve-parser", i.CacheParser = "cache-parser", i.DetectionParser = "detection-parser", i.MaskEffect = "mask-effect", i.BlendMode = "blend-mode", i.TextureSource = "texture-source", i.Environment = "environment", i))(B || {});
4
+ var R = /* @__PURE__ */ ((i) => (i.Application = "application", i.WebGLPipes = "webgl-pipes", i.WebGLPipesAdaptor = "webgl-pipes-adaptor", i.WebGLSystem = "webgl-system", i.WebGPUPipes = "webgpu-pipes", i.WebGPUPipesAdaptor = "webgpu-pipes-adaptor", i.WebGPUSystem = "webgpu-system", i.CanvasSystem = "canvas-system", i.CanvasPipesAdaptor = "canvas-pipes-adaptor", i.CanvasPipes = "canvas-pipes", i.Asset = "asset", i.LoadParser = "load-parser", i.ResolveParser = "resolve-parser", i.CacheParser = "cache-parser", i.DetectionParser = "detection-parser", i.MaskEffect = "mask-effect", i.BlendMode = "blend-mode", i.TextureSource = "texture-source", i.Environment = "environment", i))(R || {});
5
5
  const Pi = (i) => {
6
6
  if (typeof i == "function" || typeof i == "object" && i.extension) {
7
7
  if (!i.extension)
@@ -120,23 +120,23 @@ const Pi = (i) => {
120
120
  }
121
121
  }, vn = {
122
122
  extension: {
123
- type: B.Environment,
123
+ type: R.Environment,
124
124
  name: "browser",
125
125
  priority: -1
126
126
  },
127
127
  test: () => !0,
128
128
  load: async () => {
129
- await import("./browserAll-Djz7wsJX.js");
129
+ await import("./browserAll-MP0lBGOe.js");
130
130
  }
131
131
  }, An = {
132
132
  extension: {
133
- type: B.Environment,
133
+ type: R.Environment,
134
134
  name: "webworker",
135
135
  priority: 0
136
136
  },
137
137
  test: () => typeof self < "u" && self.WorkerGlobalScope !== void 0,
138
138
  load: async () => {
139
- await import("./webworkerAll-Bj2vcYLu.js");
139
+ await import("./webworkerAll-DxPHEgin.js");
140
140
  }
141
141
  };
142
142
  class nt {
@@ -324,7 +324,7 @@ var rr = { exports: {} };
324
324
  }, o.prototype.off = o.prototype.removeListener, o.prototype.addListener = o.prototype.on, o.prefixed = e, o.EventEmitter = o, i.exports = o;
325
325
  })(rr);
326
326
  var Sn = rr.exports;
327
- const Bt = /* @__PURE__ */ Xi(Sn), Cn = Math.PI * 2, Mn = 180 / Math.PI, Tn = Math.PI / 180;
327
+ const Rt = /* @__PURE__ */ Xi(Sn), Cn = Math.PI * 2, Mn = 180 / Math.PI, Tn = Math.PI / 180;
328
328
  class st {
329
329
  /**
330
330
  * Creates a new `Point`
@@ -618,15 +618,15 @@ class D {
618
618
  return Pn.identity();
619
619
  }
620
620
  }
621
- const Pn = new D(), kn = new D(), Yt = [1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1, 0, 1], Vt = [0, 1, 1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1], jt = [0, -1, -1, -1, 0, 1, 1, 1, 0, 1, 1, 1, 0, -1, -1, -1], Xt = [1, 1, 0, -1, -1, -1, 0, 1, -1, -1, 0, 1, 1, 1, 0, -1], ki = [], nr = [], Oe = Math.sign;
621
+ const Pn = new D(), kn = new D(), Vt = [1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1, 0, 1], Yt = [0, 1, 1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1], jt = [0, -1, -1, -1, 0, 1, 1, 1, 0, 1, 1, 1, 0, -1, -1, -1], Xt = [1, 1, 0, -1, -1, -1, 0, 1, -1, -1, 0, 1, 1, 1, 0, -1], ki = [], nr = [], Oe = Math.sign;
622
622
  function In() {
623
623
  for (let i = 0; i < 16; i++) {
624
624
  const t = [];
625
625
  ki.push(t);
626
626
  for (let e = 0; e < 16; e++) {
627
- const s = Oe(Yt[i] * Yt[e] + jt[i] * Vt[e]), r = Oe(Vt[i] * Yt[e] + Xt[i] * Vt[e]), n = Oe(Yt[i] * jt[e] + jt[i] * Xt[e]), a = Oe(Vt[i] * jt[e] + Xt[i] * Xt[e]);
627
+ const s = Oe(Vt[i] * Vt[e] + jt[i] * Yt[e]), r = Oe(Yt[i] * Vt[e] + Xt[i] * Yt[e]), n = Oe(Vt[i] * jt[e] + jt[i] * Xt[e]), a = Oe(Yt[i] * jt[e] + Xt[i] * Xt[e]);
628
628
  for (let o = 0; o < 16; o++)
629
- if (Yt[o] === s && Vt[o] === r && jt[o] === n && Xt[o] === a) {
629
+ if (Vt[o] === s && Yt[o] === r && jt[o] === n && Xt[o] === a) {
630
630
  t.push(o);
631
631
  break;
632
632
  }
@@ -634,7 +634,7 @@ function In() {
634
634
  }
635
635
  for (let i = 0; i < 16; i++) {
636
636
  const t = new D();
637
- t.set(Yt[i], Vt[i], jt[i], Xt[i], 0, 0), nr.push(t);
637
+ t.set(Vt[i], Yt[i], jt[i], Xt[i], 0, 0), nr.push(t);
638
638
  }
639
639
  }
640
640
  In();
@@ -733,14 +733,14 @@ const H = {
733
733
  * @returns {GD8Symmetry} The X-component of the U-axis
734
734
  * after rotating the axes.
735
735
  */
736
- uX: (i) => Yt[i],
736
+ uX: (i) => Vt[i],
737
737
  /**
738
738
  * @memberof maths.groupD8
739
739
  * @param {GD8Symmetry} ind - sprite rotation angle.
740
740
  * @returns {GD8Symmetry} The Y-component of the U-axis
741
741
  * after rotating the axes.
742
742
  */
743
- uY: (i) => Vt[i],
743
+ uY: (i) => Yt[i],
744
744
  /**
745
745
  * @memberof maths.groupD8
746
746
  * @param {GD8Symmetry} ind - sprite rotation angle.
@@ -1044,11 +1044,11 @@ function En(i) {
1044
1044
  return t;
1045
1045
  }
1046
1046
  const ms = /* @__PURE__ */ Object.create(null);
1047
- function Rn(i) {
1047
+ function Bn(i) {
1048
1048
  const t = ms[i];
1049
1049
  return t === void 0 && (ms[i] = et("resource")), t;
1050
1050
  }
1051
- const or = class hr extends Bt {
1051
+ const or = class hr extends Rt {
1052
1052
  /**
1053
1053
  * @param options - options for the style
1054
1054
  */
@@ -1091,7 +1091,7 @@ const or = class hr extends Bt {
1091
1091
  }
1092
1092
  _generateResourceId() {
1093
1093
  const t = `${this.addressModeU}-${this.addressModeV}-${this.addressModeW}-${this.magFilter}-${this.minFilter}-${this.mipmapFilter}-${this.lodMinClamp}-${this.lodMaxClamp}-${this.compare}-${this._maxAnisotropy}`;
1094
- return this._sharedResourceId = Rn(t), this._resourceId;
1094
+ return this._sharedResourceId = Bn(t), this._resourceId;
1095
1095
  }
1096
1096
  /** Destroys the style */
1097
1097
  destroy() {
@@ -1102,13 +1102,13 @@ or.defaultOptions = {
1102
1102
  addressMode: "clamp-to-edge",
1103
1103
  scaleMode: "linear"
1104
1104
  };
1105
- let Bn = or;
1106
- const lr = class cr extends Bt {
1105
+ let Rn = or;
1106
+ const lr = class cr extends Rt {
1107
1107
  /**
1108
1108
  * @param options - options for creating a new TextureSource
1109
1109
  */
1110
1110
  constructor(t = {}) {
1111
- super(), this.options = t, this.uid = et("textureSource"), this._resourceType = "textureSource", this._resourceId = et("resource"), this.uploadMethodId = "unknown", this._resolution = 1, this.pixelWidth = 1, this.pixelHeight = 1, this.width = 1, this.height = 1, this.sampleCount = 1, this.mipLevelCount = 1, this.autoGenerateMipmaps = !1, this.format = "rgba8unorm", this.dimension = "2d", this.antialias = !1, this._touched = 0, this._batchTick = -1, this._textureBindLocation = -1, t = { ...cr.defaultOptions, ...t }, this.label = t.label ?? "", this.resource = t.resource, this.autoGarbageCollect = t.autoGarbageCollect, this._resolution = t.resolution, t.width ? this.pixelWidth = t.width * this._resolution : this.pixelWidth = this.resource ? this.resourceWidth ?? 1 : 1, t.height ? this.pixelHeight = t.height * this._resolution : this.pixelHeight = this.resource ? this.resourceHeight ?? 1 : 1, this.width = this.pixelWidth / this._resolution, this.height = this.pixelHeight / this._resolution, this.format = t.format, this.dimension = t.dimensions, this.mipLevelCount = t.mipLevelCount, this.autoGenerateMipmaps = t.autoGenerateMipmaps, this.sampleCount = t.sampleCount, this.antialias = t.antialias, this.alphaMode = t.alphaMode, this.style = new Bn(En(t)), this.destroyed = !1, this._refreshPOT();
1111
+ super(), this.options = t, this.uid = et("textureSource"), this._resourceType = "textureSource", this._resourceId = et("resource"), this.uploadMethodId = "unknown", this._resolution = 1, this.pixelWidth = 1, this.pixelHeight = 1, this.width = 1, this.height = 1, this.sampleCount = 1, this.mipLevelCount = 1, this.autoGenerateMipmaps = !1, this.format = "rgba8unorm", this.dimension = "2d", this.antialias = !1, this._touched = 0, this._batchTick = -1, this._textureBindLocation = -1, t = { ...cr.defaultOptions, ...t }, this.label = t.label ?? "", this.resource = t.resource, this.autoGarbageCollect = t.autoGarbageCollect, this._resolution = t.resolution, t.width ? this.pixelWidth = t.width * this._resolution : this.pixelWidth = this.resource ? this.resourceWidth ?? 1 : 1, t.height ? this.pixelHeight = t.height * this._resolution : this.pixelHeight = this.resource ? this.resourceHeight ?? 1 : 1, this.width = this.pixelWidth / this._resolution, this.height = this.pixelHeight / this._resolution, this.format = t.format, this.dimension = t.dimensions, this.mipLevelCount = t.mipLevelCount, this.autoGenerateMipmaps = t.autoGenerateMipmaps, this.sampleCount = t.sampleCount, this.antialias = t.antialias, this.alphaMode = t.alphaMode, this.style = new Rn(En(t)), this.destroyed = !1, this._refreshPOT();
1112
1112
  }
1113
1113
  /** returns itself */
1114
1114
  get source() {
@@ -1292,7 +1292,7 @@ class $i extends Ot {
1292
1292
  return t instanceof Int8Array || t instanceof Uint8Array || t instanceof Uint8ClampedArray || t instanceof Int16Array || t instanceof Uint16Array || t instanceof Int32Array || t instanceof Uint32Array || t instanceof Float32Array;
1293
1293
  }
1294
1294
  }
1295
- $i.extension = B.TextureSource;
1295
+ $i.extension = R.TextureSource;
1296
1296
  const gs = new D();
1297
1297
  class Fn {
1298
1298
  /**
@@ -1347,7 +1347,7 @@ class Fn {
1347
1347
  return a[0] = (t.frame.x + o + h) / n.width, a[1] = (t.frame.y + o + h) / n.height, a[2] = (t.frame.x + t.frame.width - o + h) / n.width, a[3] = (t.frame.y + t.frame.height - o + h) / n.height, this.uClampOffset[0] = h / n.pixelWidth, this.uClampOffset[1] = h / n.pixelHeight, this.isSimple = t.frame.width === n.width && t.frame.height === n.height && t.rotate === 0, !0;
1348
1348
  }
1349
1349
  }
1350
- class L extends Bt {
1350
+ class L extends Rt {
1351
1351
  /**
1352
1352
  * @param {TextureOptions} param0 - Options for the texture
1353
1353
  */
@@ -1579,7 +1579,7 @@ var Dn = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, Tt = function(i) {
1579
1579
  As.indexOf(t) < 0 && (t(Ei, Ii), As.push(t));
1580
1580
  });
1581
1581
  };
1582
- function Yn(i, t) {
1582
+ function Vn(i, t) {
1583
1583
  var e = { white: "#ffffff", bisque: "#ffe4c4", blue: "#0000ff", cadetblue: "#5f9ea0", chartreuse: "#7fff00", chocolate: "#d2691e", coral: "#ff7f50", antiquewhite: "#faebd7", aqua: "#00ffff", azure: "#f0ffff", whitesmoke: "#f5f5f5", papayawhip: "#ffefd5", plum: "#dda0dd", blanchedalmond: "#ffebcd", black: "#000000", gold: "#ffd700", goldenrod: "#daa520", gainsboro: "#dcdcdc", cornsilk: "#fff8dc", cornflowerblue: "#6495ed", burlywood: "#deb887", aquamarine: "#7fffd4", beige: "#f5f5dc", crimson: "#dc143c", cyan: "#00ffff", darkblue: "#00008b", darkcyan: "#008b8b", darkgoldenrod: "#b8860b", darkkhaki: "#bdb76b", darkgray: "#a9a9a9", darkgreen: "#006400", darkgrey: "#a9a9a9", peachpuff: "#ffdab9", darkmagenta: "#8b008b", darkred: "#8b0000", darkorchid: "#9932cc", darkorange: "#ff8c00", darkslateblue: "#483d8b", gray: "#808080", darkslategray: "#2f4f4f", darkslategrey: "#2f4f4f", deeppink: "#ff1493", deepskyblue: "#00bfff", wheat: "#f5deb3", firebrick: "#b22222", floralwhite: "#fffaf0", ghostwhite: "#f8f8ff", darkviolet: "#9400d3", magenta: "#ff00ff", green: "#008000", dodgerblue: "#1e90ff", grey: "#808080", honeydew: "#f0fff0", hotpink: "#ff69b4", blueviolet: "#8a2be2", forestgreen: "#228b22", lawngreen: "#7cfc00", indianred: "#cd5c5c", indigo: "#4b0082", fuchsia: "#ff00ff", brown: "#a52a2a", maroon: "#800000", mediumblue: "#0000cd", lightcoral: "#f08080", darkturquoise: "#00ced1", lightcyan: "#e0ffff", ivory: "#fffff0", lightyellow: "#ffffe0", lightsalmon: "#ffa07a", lightseagreen: "#20b2aa", linen: "#faf0e6", mediumaquamarine: "#66cdaa", lemonchiffon: "#fffacd", lime: "#00ff00", khaki: "#f0e68c", mediumseagreen: "#3cb371", limegreen: "#32cd32", mediumspringgreen: "#00fa9a", lightskyblue: "#87cefa", lightblue: "#add8e6", midnightblue: "#191970", lightpink: "#ffb6c1", mistyrose: "#ffe4e1", moccasin: "#ffe4b5", mintcream: "#f5fffa", lightslategray: "#778899", lightslategrey: "#778899", navajowhite: "#ffdead", navy: "#000080", mediumvioletred: "#c71585", powderblue: "#b0e0e6", palegoldenrod: "#eee8aa", oldlace: "#fdf5e6", paleturquoise: "#afeeee", mediumturquoise: "#48d1cc", mediumorchid: "#ba55d3", rebeccapurple: "#663399", lightsteelblue: "#b0c4de", mediumslateblue: "#7b68ee", thistle: "#d8bfd8", tan: "#d2b48c", orchid: "#da70d6", mediumpurple: "#9370db", purple: "#800080", pink: "#ffc0cb", skyblue: "#87ceeb", springgreen: "#00ff7f", palegreen: "#98fb98", red: "#ff0000", yellow: "#ffff00", slateblue: "#6a5acd", lavenderblush: "#fff0f5", peru: "#cd853f", palevioletred: "#db7093", violet: "#ee82ee", teal: "#008080", slategray: "#708090", slategrey: "#708090", aliceblue: "#f0f8ff", darkseagreen: "#8fbc8f", darkolivegreen: "#556b2f", greenyellow: "#adff2f", seagreen: "#2e8b57", seashell: "#fff5ee", tomato: "#ff6347", silver: "#c0c0c0", sienna: "#a0522d", lavender: "#e6e6fa", lightgreen: "#90ee90", orange: "#ffa500", orangered: "#ff4500", steelblue: "#4682b4", royalblue: "#4169e1", turquoise: "#40e0d0", yellowgreen: "#9acd32", salmon: "#fa8072", saddlebrown: "#8b4513", sandybrown: "#f4a460", rosybrown: "#bc8f8f", darksalmon: "#e9967a", lightgoldenrodyellow: "#fafad2", snow: "#fffafa", lightgrey: "#d3d3d3", lightgray: "#d3d3d3", dimgray: "#696969", dimgrey: "#696969", olivedrab: "#6b8e23", olive: "#808000" }, s = {};
1584
1584
  for (var r in e)
1585
1585
  s[e[r]] = r;
@@ -1606,7 +1606,7 @@ function Yn(i, t) {
1606
1606
  return h ? new i(h).toRgb() : null;
1607
1607
  }, "name"]);
1608
1608
  }
1609
- Nn([Yn]);
1609
+ Nn([Vn]);
1610
1610
  const re = class _e {
1611
1611
  /**
1612
1612
  * @param {ColorSource} value - Optional value to use, if not provided, white is used.
@@ -1884,7 +1884,7 @@ re.shared = new re();
1884
1884
  re._temp = new re();
1885
1885
  re.HEX_PATTERN = /^(#|0x)?(([a-f0-9]{3}){1,2}([a-f0-9]{2})?)$/i;
1886
1886
  let J = re;
1887
- const Vn = {
1887
+ const Yn = {
1888
1888
  cullArea: null,
1889
1889
  cullable: !1,
1890
1890
  cullableChildren: !0
@@ -2166,8 +2166,8 @@ class qn {
2166
2166
  kt.return(t);
2167
2167
  }
2168
2168
  }
2169
- const Ri = new qn();
2170
- dt.handleByList(B.MaskEffect, Ri._effectClasses);
2169
+ const Bi = new qn();
2170
+ dt.handleByList(R.MaskEffect, Bi._effectClasses);
2171
2171
  const Kn = {
2172
2172
  _maskEffect: null,
2173
2173
  _filterEffect: null,
@@ -2202,7 +2202,7 @@ const Kn = {
2202
2202
  },
2203
2203
  set mask(i) {
2204
2204
  const t = this._maskEffect;
2205
- (t == null ? void 0 : t.mask) !== i && (t && (this.removeEffect(t), Ri.returnMaskEffect(t), this._maskEffect = null), i != null && (this._maskEffect = Ri.getMaskEffect(i), this.addEffect(this._maskEffect)));
2205
+ (t == null ? void 0 : t.mask) !== i && (t && (this.removeEffect(t), Bi.returnMaskEffect(t), this._maskEffect = null), i != null && (this._maskEffect = Bi.getMaskEffect(i), this.addEffect(this._maskEffect)));
2206
2206
  },
2207
2207
  /**
2208
2208
  * Sets a mask for the displayObject. A mask is an object that limits the visibility of an
@@ -2893,7 +2893,7 @@ function na(i, t, e = {}) {
2893
2893
  !e[s] && t[s] !== void 0 && (i[s] = t[s]);
2894
2894
  }
2895
2895
  const mi = new nt(null), gi = new nt(null), yi = new nt(null, 1, 1), Ts = 1, aa = 2, _i = 4;
2896
- class O extends Bt {
2896
+ class O extends Rt {
2897
2897
  constructor(t = {}) {
2898
2898
  var e, s;
2899
2899
  super(), this.uid = et("renderable"), this._updateFlags = 15, this.renderGroup = null, this.parentRenderGroup = null, this.parentRenderGroupIndex = 0, this.didChange = !1, this.didViewUpdate = !1, this.relativeRenderGroupDepth = 0, this.children = [], this.parent = null, this.includeInBuild = !0, this.measurable = !0, this.isSimple = !0, this.updateTick = -1, this.localTransform = new D(), this.relativeGroupTransform = new D(), this.groupTransform = this.relativeGroupTransform, this.destroyed = !1, this._position = new nt(this, 0, 0), this._scale = yi, this._pivot = gi, this._skew = mi, this._cx = 1, this._sx = 0, this._cy = 0, this._sy = 1, this._rotation = 0, this.localColor = 16777215, this.localAlpha = 1, this.groupAlpha = 1, this.groupColor = 16777215, this.groupColorAlpha = 4294967295, this.localBlendMode = "inherit", this.groupBlendMode = "normal", this.localDisplayStatus = 7, this.globalDisplayStatus = 7, this._didChangeId = 0, this._didLocalTransformChangeId = -1, na(this, t, {
@@ -3251,7 +3251,7 @@ O.mixin(Qn);
3251
3251
  O.mixin(Kn);
3252
3252
  O.mixin(Zn);
3253
3253
  O.mixin(ea);
3254
- O.mixin(Vn);
3254
+ O.mixin(Yn);
3255
3255
  class xt extends O {
3256
3256
  /**
3257
3257
  * @param options - The options for creating the sprite.
@@ -3455,7 +3455,7 @@ class Ar {
3455
3455
  return t instanceof xt;
3456
3456
  }
3457
3457
  }
3458
- Ar.extension = B.MaskEffect;
3458
+ Ar.extension = R.MaskEffect;
3459
3459
  class Sr {
3460
3460
  constructor(t) {
3461
3461
  this.priority = 0, this.pipe = "colorMask", t != null && t.mask && this.init(t.mask);
@@ -3469,7 +3469,7 @@ class Sr {
3469
3469
  return typeof t == "number";
3470
3470
  }
3471
3471
  }
3472
- Sr.extension = B.MaskEffect;
3472
+ Sr.extension = R.MaskEffect;
3473
3473
  class Cr {
3474
3474
  constructor(t) {
3475
3475
  this.priority = 0, this.pipe = "stencilMask", t != null && t.mask && this.init(t.mask);
@@ -3497,7 +3497,7 @@ class Cr {
3497
3497
  return t instanceof O;
3498
3498
  }
3499
3499
  }
3500
- Cr.extension = B.MaskEffect;
3500
+ Cr.extension = R.MaskEffect;
3501
3501
  const ha = {
3502
3502
  createCanvas: (i, t) => {
3503
3503
  const e = document.createElement("canvas");
@@ -3512,7 +3512,7 @@ const ha = {
3512
3512
  parseXML: (i) => new DOMParser().parseFromString(i, "text/xml")
3513
3513
  };
3514
3514
  let Ps = ha;
3515
- const Y = {
3515
+ const V = {
3516
3516
  /**
3517
3517
  * Returns the current adapter.
3518
3518
  * @returns {environment.Adapter} The current adapter.
@@ -3530,7 +3530,7 @@ const Y = {
3530
3530
  };
3531
3531
  class Mr extends Ot {
3532
3532
  constructor(t) {
3533
- t.resource || (t.resource = Y.get().createCanvas()), t.width || (t.width = t.resource.width, t.autoDensity || (t.width /= t.resolution)), t.height || (t.height = t.resource.height, t.autoDensity || (t.height /= t.resolution)), super(t), this.uploadMethodId = "image", this.autoDensity = t.autoDensity;
3533
+ t.resource || (t.resource = V.get().createCanvas()), t.width || (t.width = t.resource.width, t.autoDensity || (t.width /= t.resolution)), t.height || (t.height = t.resource.height, t.autoDensity || (t.height /= t.resolution)), super(t), this.uploadMethodId = "image", this.autoDensity = t.autoDensity;
3534
3534
  const e = t.resource;
3535
3535
  (this.pixelWidth !== e.width || this.pixelWidth !== e.height) && this.resizeCanvas(), this.transparent = !!t.transparent;
3536
3536
  }
@@ -3545,11 +3545,11 @@ class Mr extends Ot {
3545
3545
  return globalThis.HTMLCanvasElement && t instanceof HTMLCanvasElement || globalThis.OffscreenCanvas && t instanceof OffscreenCanvas;
3546
3546
  }
3547
3547
  }
3548
- Mr.extension = B.TextureSource;
3549
- class Be extends Ot {
3548
+ Mr.extension = R.TextureSource;
3549
+ class Re extends Ot {
3550
3550
  constructor(t) {
3551
3551
  if (t.resource && globalThis.HTMLImageElement && t.resource instanceof HTMLImageElement) {
3552
- const e = Y.get().createCanvas(t.resource.width, t.resource.height);
3552
+ const e = V.get().createCanvas(t.resource.width, t.resource.height);
3553
3553
  e.getContext("2d").drawImage(t.resource, 0, 0), t.resource = e, it("ImageSource: Image element passed, converting to canvas. Use CanvasSource instead.");
3554
3554
  }
3555
3555
  super(t), this.uploadMethodId = "image", this.autoGarbageCollect = !0;
@@ -3558,7 +3558,7 @@ class Be extends Ot {
3558
3558
  return globalThis.HTMLImageElement && t instanceof HTMLImageElement || typeof ImageBitmap < "u" && t instanceof ImageBitmap;
3559
3559
  }
3560
3560
  }
3561
- Be.extension = B.TextureSource;
3561
+ Re.extension = R.TextureSource;
3562
3562
  var Te = /* @__PURE__ */ ((i) => (i[i.INTERACTION = 50] = "INTERACTION", i[i.HIGH = 25] = "HIGH", i[i.NORMAL = 0] = "NORMAL", i[i.LOW = -25] = "LOW", i[i.UTILITY = -50] = "UTILITY", i))(Te || {});
3563
3563
  class xi {
3564
3564
  /**
@@ -3610,9 +3610,9 @@ class xi {
3610
3610
  return this.next = t ? null : e, this.previous = null, e;
3611
3611
  }
3612
3612
  }
3613
- const Tr = class ht {
3613
+ const Tr = class lt {
3614
3614
  constructor() {
3615
- this.autoStart = !1, this.deltaTime = 1, this.lastTime = -1, this.speed = 1, this.started = !1, this._requestId = null, this._maxElapsedMS = 100, this._minElapsedMS = 0, this._protected = !1, this._lastFrame = -1, this._head = new xi(null, null, 1 / 0), this.deltaMS = 1 / ht.targetFPMS, this.elapsedMS = 1 / ht.targetFPMS, this._tick = (t) => {
3615
+ this.autoStart = !1, this.deltaTime = 1, this.lastTime = -1, this.speed = 1, this.started = !1, this._requestId = null, this._maxElapsedMS = 100, this._minElapsedMS = 0, this._protected = !1, this._lastFrame = -1, this._head = new xi(null, null, 1 / 0), this.deltaMS = 1 / lt.targetFPMS, this.elapsedMS = 1 / lt.targetFPMS, this._tick = (t) => {
3616
3616
  this._requestId = null, this.started && (this.update(t), this.started && this._requestId === null && this._head.next && (this._requestId = requestAnimationFrame(this._tick)));
3617
3617
  };
3618
3618
  }
@@ -3754,7 +3754,7 @@ const Tr = class ht {
3754
3754
  return;
3755
3755
  this._lastFrame = t - n % this._minElapsedMS;
3756
3756
  }
3757
- this.deltaMS = e, this.deltaTime = this.deltaMS * ht.targetFPMS;
3757
+ this.deltaMS = e, this.deltaTime = this.deltaMS * lt.targetFPMS;
3758
3758
  const s = this._head;
3759
3759
  let r = s.next;
3760
3760
  for (; r; )
@@ -3790,7 +3790,7 @@ const Tr = class ht {
3790
3790
  return 1e3 / this._maxElapsedMS;
3791
3791
  }
3792
3792
  set minFPS(t) {
3793
- const e = Math.min(this.maxFPS, t), s = Math.min(Math.max(0, e) / 1e3, ht.targetFPMS);
3793
+ const e = Math.min(this.maxFPS, t), s = Math.min(Math.max(0, e) / 1e3, lt.targetFPMS);
3794
3794
  this._maxElapsedMS = 1 / s;
3795
3795
  }
3796
3796
  /**
@@ -3858,11 +3858,11 @@ const Tr = class ht {
3858
3858
  * @static
3859
3859
  */
3860
3860
  static get shared() {
3861
- if (!ht._shared) {
3862
- const t = ht._shared = new ht();
3861
+ if (!lt._shared) {
3862
+ const t = lt._shared = new lt();
3863
3863
  t.autoStart = !0, t._protected = !0;
3864
3864
  }
3865
- return ht._shared;
3865
+ return lt._shared;
3866
3866
  }
3867
3867
  /**
3868
3868
  * The system ticker instance used by {@link BasePrepare} for core timing
@@ -3875,15 +3875,15 @@ const Tr = class ht {
3875
3875
  * @static
3876
3876
  */
3877
3877
  static get system() {
3878
- if (!ht._system) {
3879
- const t = ht._system = new ht();
3878
+ if (!lt._system) {
3879
+ const t = lt._system = new lt();
3880
3880
  t.autoStart = !0, t._protected = !0;
3881
3881
  }
3882
- return ht._system;
3882
+ return lt._system;
3883
3883
  }
3884
3884
  };
3885
3885
  Tr.targetFPMS = 0.06;
3886
- let ot = Tr, bi;
3886
+ let ht = Tr, bi;
3887
3887
  async function Pr() {
3888
3888
  return bi ?? (bi = (async () => {
3889
3889
  var a;
@@ -3921,7 +3921,7 @@ const ei = class kr extends Ot {
3921
3921
  updateFrame() {
3922
3922
  if (!this.destroyed) {
3923
3923
  if (this._updateFPS) {
3924
- const t = ot.shared.elapsedMS * this.resource.playbackRate;
3924
+ const t = ht.shared.elapsedMS * this.resource.playbackRate;
3925
3925
  this._msToNextUpdate = Math.floor(this._msToNextUpdate - t);
3926
3926
  }
3927
3927
  (!this._updateFPS || this._msToNextUpdate <= 0) && (this._msToNextUpdate = this._updateFPS ? Math.floor(1e3 / this._updateFPS) : 0), this.isValid && this.update();
@@ -4036,15 +4036,15 @@ const ei = class kr extends Ot {
4036
4036
  * - If `_autoUpdate` is disabled or the video isn't playing, any active update mechanisms are halted.
4037
4037
  */
4038
4038
  _configureAutoUpdate() {
4039
- this._autoUpdate && this._isSourcePlaying() ? !this._updateFPS && this.resource.requestVideoFrameCallback ? (this._isConnectedToTicker && (ot.shared.remove(this.updateFrame, this), this._isConnectedToTicker = !1, this._msToNextUpdate = 0), this._videoFrameRequestCallbackHandle === null && (this._videoFrameRequestCallbackHandle = this.resource.requestVideoFrameCallback(
4039
+ this._autoUpdate && this._isSourcePlaying() ? !this._updateFPS && this.resource.requestVideoFrameCallback ? (this._isConnectedToTicker && (ht.shared.remove(this.updateFrame, this), this._isConnectedToTicker = !1, this._msToNextUpdate = 0), this._videoFrameRequestCallbackHandle === null && (this._videoFrameRequestCallbackHandle = this.resource.requestVideoFrameCallback(
4040
4040
  this._videoFrameRequestCallback
4041
- ))) : (this._videoFrameRequestCallbackHandle !== null && (this.resource.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle), this._videoFrameRequestCallbackHandle = null), this._isConnectedToTicker || (ot.shared.add(this.updateFrame, this), this._isConnectedToTicker = !0, this._msToNextUpdate = 0)) : (this._videoFrameRequestCallbackHandle !== null && (this.resource.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle), this._videoFrameRequestCallbackHandle = null), this._isConnectedToTicker && (ot.shared.remove(this.updateFrame, this), this._isConnectedToTicker = !1, this._msToNextUpdate = 0));
4041
+ ))) : (this._videoFrameRequestCallbackHandle !== null && (this.resource.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle), this._videoFrameRequestCallbackHandle = null), this._isConnectedToTicker || (ht.shared.add(this.updateFrame, this), this._isConnectedToTicker = !0, this._msToNextUpdate = 0)) : (this._videoFrameRequestCallbackHandle !== null && (this.resource.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle), this._videoFrameRequestCallbackHandle = null), this._isConnectedToTicker && (ht.shared.remove(this.updateFrame, this), this._isConnectedToTicker = !1, this._msToNextUpdate = 0));
4042
4042
  }
4043
4043
  static test(t) {
4044
4044
  return globalThis.HTMLVideoElement && t instanceof HTMLVideoElement || globalThis.VideoFrame && t instanceof VideoFrame;
4045
4045
  }
4046
4046
  };
4047
- ei.extension = B.TextureSource;
4047
+ ei.extension = R.TextureSource;
4048
4048
  ei.defaultOptions = {
4049
4049
  ...Ot.defaultOptions,
4050
4050
  /** If true, the video will start loading immediately. */
@@ -4147,12 +4147,12 @@ class la {
4147
4147
  return this._parsers;
4148
4148
  }
4149
4149
  }
4150
- const rt = new la(), Bi = [];
4151
- dt.handleByList(B.TextureSource, Bi);
4150
+ const rt = new la(), Ri = [];
4151
+ dt.handleByList(R.TextureSource, Ri);
4152
4152
  function ca(i = {}) {
4153
4153
  const t = i && i.resource, e = t ? i.resource : i, s = t ? i : { resource: i };
4154
- for (let r = 0; r < Bi.length; r++) {
4155
- const n = Bi[r];
4154
+ for (let r = 0; r < Ri.length; r++) {
4155
+ const n = Ri[r];
4156
4156
  if (n.test(e))
4157
4157
  return new n(s);
4158
4158
  }
@@ -4171,7 +4171,7 @@ function da(i, t = !1) {
4171
4171
  return typeof i == "string" ? rt.get(i) : i instanceof Ot ? new L({ source: i }) : ua(i, t);
4172
4172
  }
4173
4173
  L.from = da;
4174
- dt.add(Ar, Sr, Cr, $e, Be, Mr, $i);
4174
+ dt.add(Ar, Sr, Cr, $e, Re, Mr, $i);
4175
4175
  var Zt = /* @__PURE__ */ ((i) => (i[i.Low = 0] = "Low", i[i.Normal = 1] = "Normal", i[i.High = 2] = "High", i))(Zt || {});
4176
4176
  function pt(i) {
4177
4177
  if (typeof i != "string")
@@ -4280,7 +4280,7 @@ const bt = {
4280
4280
  toAbsolute(i, t, e) {
4281
4281
  if (pt(i), this.isDataUrl(i) || this.isBlobUrl(i))
4282
4282
  return i;
4283
- const s = pe(this.toPosix(t ?? Y.get().getBaseUrl())), r = pe(this.toPosix(e ?? this.rootname(s)));
4283
+ const s = pe(this.toPosix(t ?? V.get().getBaseUrl())), r = pe(this.toPosix(e ?? this.rootname(s)));
4284
4284
  return i = this.toPosix(i), i.startsWith("/") ? bt.join(r, i.slice(1)) : this.isAbsolute(i) ? i : this.join(s, i);
4285
4285
  },
4286
4286
  /**
@@ -4991,7 +4991,7 @@ const _a = [
4991
4991
  "eac",
4992
4992
  "astc"
4993
4993
  ];
4994
- function Rr(i, t, e) {
4994
+ function Br(i, t, e) {
4995
4995
  const s = {};
4996
4996
  if (i.forEach((r) => {
4997
4997
  s[r] = t;
@@ -5000,18 +5000,18 @@ function Rr(i, t, e) {
5000
5000
  }), !e) {
5001
5001
  const r = bt.dirname(i[0]);
5002
5002
  t.linkedSheets.forEach((n, a) => {
5003
- const o = Rr([`${r}/${t.data.meta.related_multi_packs[a]}`], n, !0);
5003
+ const o = Br([`${r}/${t.data.meta.related_multi_packs[a]}`], n, !0);
5004
5004
  Object.assign(s, o);
5005
5005
  });
5006
5006
  }
5007
5007
  return s;
5008
5008
  }
5009
5009
  const xa = {
5010
- extension: B.Asset,
5010
+ extension: R.Asset,
5011
5011
  /** Handle the caching of the related Spritesheet Textures */
5012
5012
  cache: {
5013
5013
  test: (i) => i instanceof Fi,
5014
- getCacheableAssets: (i, t) => Rr(i, t, !1)
5014
+ getCacheableAssets: (i, t) => Br(i, t, !1)
5015
5015
  },
5016
5016
  /** Resolve the resolution of the asset. */
5017
5017
  resolver: {
@@ -5038,7 +5038,7 @@ const xa = {
5038
5038
  loader: {
5039
5039
  name: "spritesheetLoader",
5040
5040
  extension: {
5041
- type: B.LoadParser,
5041
+ type: R.LoadParser,
5042
5042
  priority: Zt.Normal
5043
5043
  },
5044
5044
  async testParse(i, t) {
@@ -5095,7 +5095,7 @@ const xa = {
5095
5095
  dt.add(xa);
5096
5096
  let Jt;
5097
5097
  function ba() {
5098
- return (!Jt || Jt != null && Jt.isContextLost()) && (Jt = Y.get().createCanvas().getContext("webgl", {})), Jt;
5098
+ return (!Jt || Jt != null && Jt.isContextLost()) && (Jt = V.get().createCanvas().getContext("webgl", {})), Jt;
5099
5099
  }
5100
5100
  class wa {
5101
5101
  /**
@@ -5179,7 +5179,7 @@ class wa {
5179
5179
  }
5180
5180
  }
5181
5181
  const Li = [];
5182
- dt.handleByNamedList(B.Environment, Li);
5182
+ dt.handleByNamedList(R.Environment, Li);
5183
5183
  async function va(i) {
5184
5184
  if (i)
5185
5185
  for (let t = 0; t < Li.length; t++) {
@@ -5206,7 +5206,7 @@ Ki.exports = ii;
5206
5206
  Ki.exports.default = ii;
5207
5207
  function ii(i, t, e) {
5208
5208
  e = e || 2;
5209
- var s = t && t.length, r = s ? t[0] * e : i.length, n = Br(i, 0, r, e, !0), a = [];
5209
+ var s = t && t.length, r = s ? t[0] * e : i.length, n = Rr(i, 0, r, e, !0), a = [];
5210
5210
  if (!n || n.next === n.prev)
5211
5211
  return a;
5212
5212
  var o, h, c, l, u, d, p;
@@ -5218,7 +5218,7 @@ function ii(i, t, e) {
5218
5218
  }
5219
5219
  return Pe(n, a, e, o, h, p, 0), a;
5220
5220
  }
5221
- function Br(i, t, e, s, r) {
5221
+ function Rr(i, t, e, s, r) {
5222
5222
  var n, a;
5223
5223
  if (r === Oi(i, t, e, s) > 0)
5224
5224
  for (n = t; n < e; n += s)
@@ -5245,7 +5245,7 @@ function Kt(i, t) {
5245
5245
  }
5246
5246
  function Pe(i, t, e, s, r, n, a) {
5247
5247
  if (i) {
5248
- !a && n && Ba(i, s, r, n);
5248
+ !a && n && Ra(i, s, r, n);
5249
5249
  for (var o = i, h, c; i.prev !== i.next; ) {
5250
5250
  if (h = i.prev, c = i.next, n ? Ca(i, s, r, n) : Sa(i)) {
5251
5251
  t.push(h.i / e | 0), t.push(i.i / e | 0), t.push(c.i / e | 0), Ie(i), i = c.next, o = c.next;
@@ -5315,7 +5315,7 @@ function Ta(i, t, e, s, r, n) {
5315
5315
  function Pa(i, t, e, s) {
5316
5316
  var r = [], n, a, o, h, c;
5317
5317
  for (n = 0, a = t.length; n < a; n++)
5318
- o = t[n] * s, h = n < a - 1 ? t[n + 1] * s : i.length, c = Br(i, o, h, s, !1), c === c.next && (c.steiner = !0), r.push(La(c));
5318
+ o = t[n] * s, h = n < a - 1 ? t[n + 1] * s : i.length, c = Rr(i, o, h, s, !1), c === c.next && (c.steiner = !0), r.push(La(c));
5319
5319
  for (r.sort(ka), n = 0; n < r.length; n++)
5320
5320
  e = Ia(r[n], e);
5321
5321
  return e;
@@ -5345,14 +5345,14 @@ function Ea(i, t) {
5345
5345
  var h = a, c = a.x, l = a.y, u = 1 / 0, d;
5346
5346
  e = a;
5347
5347
  do
5348
- s >= e.x && e.x >= c && s !== e.x && te(r < l ? s : n, r, c, l, r < l ? n : s, r, e.x, e.y) && (d = Math.abs(r - e.y) / (s - e.x), ke(e, i) && (d < u || d === u && (e.x > a.x || e.x === a.x && Ra(a, e))) && (a = e, u = d)), e = e.next;
5348
+ s >= e.x && e.x >= c && s !== e.x && te(r < l ? s : n, r, c, l, r < l ? n : s, r, e.x, e.y) && (d = Math.abs(r - e.y) / (s - e.x), ke(e, i) && (d < u || d === u && (e.x > a.x || e.x === a.x && Ba(a, e))) && (a = e, u = d)), e = e.next;
5349
5349
  while (e !== h);
5350
5350
  return a;
5351
5351
  }
5352
- function Ra(i, t) {
5352
+ function Ba(i, t) {
5353
5353
  return W(i.prev, i, t.prev) < 0 && W(t.next, i, i.next) < 0;
5354
5354
  }
5355
- function Ba(i, t, e, s) {
5355
+ function Ra(i, t, e, s) {
5356
5356
  var r = i;
5357
5357
  do
5358
5358
  r.z === 0 && (r.z = Di(r.x, r.y, t, e, s)), r.prevZ = r.prev, r.nextZ = r.next, r = r.next;
@@ -5564,7 +5564,7 @@ const Wa = [
5564
5564
  "update",
5565
5565
  "postrender",
5566
5566
  "prerender"
5567
- ], Ur = class Or extends Bt {
5567
+ ], Ur = class Or extends Rt {
5568
5568
  /**
5569
5569
  * Set up a system with a collection of SystemClasses and runners.
5570
5570
  * Systems are attached dynamically to this class when added.
@@ -5783,9 +5783,9 @@ function Na(i) {
5783
5783
  failIfMajorPerformanceCaveat: i ?? Gr.defaultOptions.failIfMajorPerformanceCaveat
5784
5784
  };
5785
5785
  try {
5786
- if (!Y.get().getWebGLRenderingContext())
5786
+ if (!V.get().getWebGLRenderingContext())
5787
5787
  return !1;
5788
- let r = Y.get().createCanvas().getContext("webgl", t);
5788
+ let r = V.get().createCanvas().getContext("webgl", t);
5789
5789
  const n = !!((e = r == null ? void 0 : r.getContextAttributes()) != null && e.stencil);
5790
5790
  if (r) {
5791
5791
  const a = r.getExtension("WEBGL_lose_context");
@@ -5797,20 +5797,20 @@ function Na(i) {
5797
5797
  }
5798
5798
  })()), Ne;
5799
5799
  }
5800
- let Ye;
5801
- async function Ya(i = {}) {
5802
- return Ye !== void 0 || (Ye = await (async () => {
5803
- if (!Y.get().getNavigator().gpu)
5800
+ let Ve;
5801
+ async function Va(i = {}) {
5802
+ return Ve !== void 0 || (Ve = await (async () => {
5803
+ if (!V.get().getNavigator().gpu)
5804
5804
  return !1;
5805
5805
  try {
5806
5806
  return await (await navigator.gpu.requestAdapter(i)).requestDevice(), !0;
5807
5807
  } catch {
5808
5808
  return !1;
5809
5809
  }
5810
- })()), Ye;
5810
+ })()), Ve;
5811
5811
  }
5812
5812
  const Es = ["webgl", "webgpu", "canvas"];
5813
- async function Va(i) {
5813
+ async function Ya(i) {
5814
5814
  let t = [];
5815
5815
  i.preference ? (t.push(i.preference), Es.forEach((n) => {
5816
5816
  n !== i.preference && t.push(n);
@@ -5822,14 +5822,14 @@ async function Va(i) {
5822
5822
  let s = {};
5823
5823
  for (let n = 0; n < t.length; n++) {
5824
5824
  const a = t[n];
5825
- if (a === "webgpu" && await Ya()) {
5826
- const { WebGPURenderer: o } = await import("./WebGPURenderer-CtFHd2D-.js");
5825
+ if (a === "webgpu" && await Va()) {
5826
+ const { WebGPURenderer: o } = await import("./WebGPURenderer-2_PqAST1.js");
5827
5827
  e = o, s = { ...i, ...i.webgpu };
5828
5828
  break;
5829
5829
  } else if (a === "webgl" && Na(
5830
5830
  i.failIfMajorPerformanceCaveat ?? Gr.defaultOptions.failIfMajorPerformanceCaveat
5831
5831
  )) {
5832
- const { WebGLRenderer: o } = await import("./WebGLRenderer-C-mXrQNx.js");
5832
+ const { WebGLRenderer: o } = await import("./WebGLRenderer-D22tqBZN.js");
5833
5833
  e = o, s = { ...i, ...i.webgl };
5834
5834
  break;
5835
5835
  } else if (a === "canvas")
@@ -5883,7 +5883,7 @@ class ja {
5883
5883
  }
5884
5884
  }
5885
5885
  const Xa = {
5886
- extension: B.CacheParser,
5886
+ extension: R.CacheParser,
5887
5887
  test: (i) => Array.isArray(i) && i.every((t) => t instanceof L),
5888
5888
  getCacheableAssets: (i, t) => {
5889
5889
  const e = {};
@@ -5917,7 +5917,7 @@ async function zr(i) {
5917
5917
  }
5918
5918
  const $a = {
5919
5919
  extension: {
5920
- type: B.DetectionParser,
5920
+ type: R.DetectionParser,
5921
5921
  priority: 1
5922
5922
  },
5923
5923
  test: async () => zr(
@@ -5926,21 +5926,21 @@ const $a = {
5926
5926
  ),
5927
5927
  add: async (i) => [...i, "avif"],
5928
5928
  remove: async (i) => i.filter((t) => t !== "avif")
5929
- }, Rs = ["png", "jpg", "jpeg"], qa = {
5929
+ }, Bs = ["png", "jpg", "jpeg"], qa = {
5930
5930
  extension: {
5931
- type: B.DetectionParser,
5931
+ type: R.DetectionParser,
5932
5932
  priority: -1
5933
5933
  },
5934
5934
  test: () => Promise.resolve(!0),
5935
- add: async (i) => [...i, ...Rs],
5936
- remove: async (i) => i.filter((t) => !Rs.includes(t))
5935
+ add: async (i) => [...i, ...Bs],
5936
+ remove: async (i) => i.filter((t) => !Bs.includes(t))
5937
5937
  }, Ka = "WorkerGlobalScope" in globalThis && globalThis instanceof globalThis.WorkerGlobalScope;
5938
5938
  function Zi(i) {
5939
5939
  return Ka ? !1 : document.createElement("video").canPlayType(i) !== "";
5940
5940
  }
5941
5941
  const Za = {
5942
5942
  extension: {
5943
- type: B.DetectionParser,
5943
+ type: R.DetectionParser,
5944
5944
  priority: 0
5945
5945
  },
5946
5946
  test: async () => Zi("video/mp4"),
@@ -5948,7 +5948,7 @@ const Za = {
5948
5948
  remove: async (i) => i.filter((t) => t !== "mp4" && t !== "m4v")
5949
5949
  }, Ja = {
5950
5950
  extension: {
5951
- type: B.DetectionParser,
5951
+ type: R.DetectionParser,
5952
5952
  priority: 0
5953
5953
  },
5954
5954
  test: async () => Zi("video/ogg"),
@@ -5956,7 +5956,7 @@ const Za = {
5956
5956
  remove: async (i) => i.filter((t) => t !== "ogv")
5957
5957
  }, Qa = {
5958
5958
  extension: {
5959
- type: B.DetectionParser,
5959
+ type: R.DetectionParser,
5960
5960
  priority: 0
5961
5961
  },
5962
5962
  test: async () => Zi("video/webm"),
@@ -5964,7 +5964,7 @@ const Za = {
5964
5964
  remove: async (i) => i.filter((t) => t !== "webm")
5965
5965
  }, to = {
5966
5966
  extension: {
5967
- type: B.DetectionParser,
5967
+ type: R.DetectionParser,
5968
5968
  priority: 0
5969
5969
  },
5970
5970
  test: async () => zr(
@@ -6080,7 +6080,7 @@ function le(i, t) {
6080
6080
  }
6081
6081
  const io = ".json", so = "application/json", ro = {
6082
6082
  extension: {
6083
- type: B.LoadParser,
6083
+ type: R.LoadParser,
6084
6084
  priority: Zt.Low
6085
6085
  },
6086
6086
  name: "loadJson",
@@ -6088,19 +6088,19 @@ const io = ".json", so = "application/json", ro = {
6088
6088
  return he(i, so) || le(i, io);
6089
6089
  },
6090
6090
  async load(i) {
6091
- return await (await Y.get().fetch(i)).json();
6091
+ return await (await V.get().fetch(i)).json();
6092
6092
  }
6093
6093
  }, no = ".txt", ao = "text/plain", oo = {
6094
6094
  name: "loadTxt",
6095
6095
  extension: {
6096
- type: B.LoadParser,
6096
+ type: R.LoadParser,
6097
6097
  priority: Zt.Low
6098
6098
  },
6099
6099
  test(i) {
6100
6100
  return he(i, ao) || le(i, no);
6101
6101
  },
6102
6102
  async load(i) {
6103
- return await (await Y.get().fetch(i)).text();
6103
+ return await (await V.get().fetch(i)).text();
6104
6104
  }
6105
6105
  }, ho = [
6106
6106
  "normal",
@@ -6137,7 +6137,7 @@ function mo(i) {
6137
6137
  }
6138
6138
  const go = {
6139
6139
  extension: {
6140
- type: B.LoadParser,
6140
+ type: R.LoadParser,
6141
6141
  priority: Zt.Low
6142
6142
  },
6143
6143
  name: "loadWebFont",
@@ -6146,7 +6146,7 @@ const go = {
6146
6146
  },
6147
6147
  async load(i, t) {
6148
6148
  var s, r, n;
6149
- const e = Y.get().getFontFaceSet();
6149
+ const e = V.get().getFontFaceSet();
6150
6150
  if (e) {
6151
6151
  const a = [], o = ((s = t.data) == null ? void 0 : s.family) ?? fo(i), h = ((n = (r = t.data) == null ? void 0 : r.weights) == null ? void 0 : n.filter((l) => ho.includes(l))) ?? ["normal"], c = t.data ?? {};
6152
6152
  for (let l = 0; l < h.length; l++) {
@@ -6165,7 +6165,7 @@ const go = {
6165
6165
  },
6166
6166
  unload(i) {
6167
6167
  (Array.isArray(i) ? i : [i]).forEach((t) => {
6168
- rt.remove(t.family), Y.get().getFontFaceSet().delete(t);
6168
+ rt.remove(t.family), V.get().getFontFaceSet().delete(t);
6169
6169
  });
6170
6170
  }
6171
6171
  };
@@ -6586,7 +6586,7 @@ class Se {
6586
6586
  return this.points[this.points.length - 1];
6587
6587
  }
6588
6588
  }
6589
- const Ve = (i, t, e, s, r, n) => {
6589
+ const Ye = (i, t, e, s, r, n) => {
6590
6590
  const a = i - e, o = t - s, h = Math.sqrt(a * a + o * o);
6591
6591
  return h >= r - n && h <= r + n;
6592
6592
  };
@@ -6663,15 +6663,15 @@ class ts {
6663
6663
  const { x: r, y: n, width: a, height: o, radius: h } = this, c = s / 2, l = r + h, u = n + h, d = a - h * 2, p = o - h * 2, f = r + a, g = n + o;
6664
6664
  return (t >= r - c && t <= r + c || t >= f - c && t <= f + c) && e >= u && e <= u + p || (e >= n - c && e <= n + c || e >= g - c && e <= g + c) && t >= l && t <= l + d ? !0 : (
6665
6665
  // Top-left
6666
- t < l && e < u && Ve(t, e, l, u, h, c) || t > f - h && e < u && Ve(t, e, f - h, u, h, c) || t > f - h && e > g - h && Ve(t, e, f - h, g - h, h, c) || t < l && e > g - h && Ve(t, e, l, g - h, h, c)
6666
+ t < l && e < u && Ye(t, e, l, u, h, c) || t > f - h && e < u && Ye(t, e, f - h, u, h, c) || t > f - h && e > g - h && Ye(t, e, f - h, g - h, h, c) || t < l && e > g - h && Ye(t, e, l, g - h, h, c)
6667
6667
  );
6668
6668
  }
6669
6669
  toString() {
6670
6670
  return `[pixi.js/math:RoundedRectangle x=${this.x} y=${this.y}width=${this.width} height=${this.height} radius=${this.radius}]`;
6671
6671
  }
6672
6672
  }
6673
- var at = /* @__PURE__ */ ((i) => (i[i.MAP_READ = 1] = "MAP_READ", i[i.MAP_WRITE = 2] = "MAP_WRITE", i[i.COPY_SRC = 4] = "COPY_SRC", i[i.COPY_DST = 8] = "COPY_DST", i[i.INDEX = 16] = "INDEX", i[i.VERTEX = 32] = "VERTEX", i[i.UNIFORM = 64] = "UNIFORM", i[i.STORAGE = 128] = "STORAGE", i[i.INDIRECT = 256] = "INDIRECT", i[i.QUERY_RESOLVE = 512] = "QUERY_RESOLVE", i[i.STATIC = 1024] = "STATIC", i))(at || {});
6674
- class Ee extends Bt {
6673
+ var ot = /* @__PURE__ */ ((i) => (i[i.MAP_READ = 1] = "MAP_READ", i[i.MAP_WRITE = 2] = "MAP_WRITE", i[i.COPY_SRC = 4] = "COPY_SRC", i[i.COPY_DST = 8] = "COPY_DST", i[i.INDEX = 16] = "INDEX", i[i.VERTEX = 32] = "VERTEX", i[i.UNIFORM = 64] = "UNIFORM", i[i.STORAGE = 128] = "STORAGE", i[i.INDIRECT = 256] = "INDIRECT", i[i.QUERY_RESOLVE = 512] = "QUERY_RESOLVE", i[i.STATIC = 1024] = "STATIC", i))(ot || {});
6674
+ class Ee extends Rt {
6675
6675
  /**
6676
6676
  * Creates a new Buffer with the given options
6677
6677
  * @param options - the options for the buffer
@@ -6697,10 +6697,10 @@ class Ee extends Bt {
6697
6697
  }
6698
6698
  /** whether the buffer is static or not */
6699
6699
  get static() {
6700
- return !!(this.descriptor.usage & at.STATIC);
6700
+ return !!(this.descriptor.usage & ot.STATIC);
6701
6701
  }
6702
6702
  set static(t) {
6703
- t ? this.descriptor.usage |= at.STATIC : this.descriptor.usage &= ~at.STATIC;
6703
+ t ? this.descriptor.usage |= ot.STATIC : this.descriptor.usage &= ~ot.STATIC;
6704
6704
  }
6705
6705
  /**
6706
6706
  * Sets the data in the buffer to the given value. This will immediately update the buffer on the GPU.
@@ -6737,8 +6737,8 @@ class Ee extends Bt {
6737
6737
  }
6738
6738
  function Hr(i, t) {
6739
6739
  if (!(i instanceof Ee)) {
6740
- let e = t ? at.INDEX : at.VERTEX;
6741
- i instanceof Array && (t ? (i = new Uint32Array(i), e = at.INDEX | at.COPY_DST) : (i = new Float32Array(i), e = at.VERTEX | at.COPY_DST)), i = new Ee({
6740
+ let e = t ? ot.INDEX : ot.VERTEX;
6741
+ i instanceof Array && (t ? (i = new Uint32Array(i), e = ot.INDEX | ot.COPY_DST) : (i = new Float32Array(i), e = ot.VERTEX | ot.COPY_DST)), i = new Ee({
6742
6742
  data: i,
6743
6743
  label: t ? "index-mesh-buffer" : "vertex-mesh-buffer",
6744
6744
  usage: e
@@ -6764,7 +6764,7 @@ function Mo(i) {
6764
6764
  buffer: i
6765
6765
  }), i.buffer = Hr(i.buffer, !1), i;
6766
6766
  }
6767
- class To extends Bt {
6767
+ class To extends Rt {
6768
6768
  /**
6769
6769
  * Create a new instance of a geometry
6770
6770
  * @param options - The options for the geometry.
@@ -6833,12 +6833,12 @@ class Io extends To {
6833
6833
  const e = new Ee({
6834
6834
  data: Po,
6835
6835
  label: "attribute-batch-buffer",
6836
- usage: at.VERTEX | at.COPY_DST,
6836
+ usage: ot.VERTEX | ot.COPY_DST,
6837
6837
  shrinkToFit: !1
6838
6838
  }), s = new Ee({
6839
6839
  data: ko,
6840
6840
  label: "index-batch-buffer",
6841
- usage: at.INDEX | at.COPY_DST,
6841
+ usage: ot.INDEX | ot.COPY_DST,
6842
6842
  // | BufferUsage.STATIC,
6843
6843
  shrinkToFit: !1
6844
6844
  }), r = 6 * 4;
@@ -6889,10 +6889,10 @@ function Eo(i, t) {
6889
6889
  let e = 0;
6890
6890
  for (let s = 0; s < t; s++)
6891
6891
  e = e * 31 + i[s].uid >>> 0;
6892
- return Nr[e] || Ro(i, e);
6892
+ return Nr[e] || Bo(i, e);
6893
6893
  }
6894
6894
  let vi = 0;
6895
- function Ro(i, t) {
6895
+ function Bo(i, t) {
6896
6896
  const e = {};
6897
6897
  let s = 0;
6898
6898
  vi || (vi = Wr());
@@ -6903,7 +6903,7 @@ function Ro(i, t) {
6903
6903
  const r = new wa(e);
6904
6904
  return Nr[t] = r, r;
6905
6905
  }
6906
- class Bs {
6906
+ class Rs {
6907
6907
  constructor(t) {
6908
6908
  typeof t == "number" ? this.rawBinaryData = new ArrayBuffer(t) : t instanceof Uint8Array ? this.rawBinaryData = t.buffer : this.rawBinaryData = t, this.uint32View = new Uint32Array(this.rawBinaryData), this.float32View = new Float32Array(this.rawBinaryData), this.size = this.rawBinaryData.byteLength;
6909
6909
  }
@@ -6976,14 +6976,14 @@ function Fs(i, t) {
6976
6976
  new Uint8Array(t, e * 8, n).set(a);
6977
6977
  }
6978
6978
  }
6979
- const Bo = {
6979
+ const Ro = {
6980
6980
  normal: "normal-npm",
6981
6981
  add: "add-npm",
6982
6982
  screen: "screen-npm"
6983
6983
  };
6984
6984
  var Fo = /* @__PURE__ */ ((i) => (i[i.DISABLED = 0] = "DISABLED", i[i.RENDERING_MASK_ADD = 1] = "RENDERING_MASK_ADD", i[i.MASK_ACTIVE = 2] = "MASK_ACTIVE", i[i.RENDERING_MASK_REMOVE = 3] = "RENDERING_MASK_REMOVE", i[i.NONE = 4] = "NONE", i))(Fo || {});
6985
6985
  function Ls(i, t) {
6986
- return t.alphaMode === "no-premultiply-alpha" && Bo[i] || i;
6986
+ return t.alphaMode === "no-premultiply-alpha" && Ro[i] || i;
6987
6987
  }
6988
6988
  class Ds {
6989
6989
  constructor() {
@@ -7007,11 +7007,11 @@ class Us {
7007
7007
  }
7008
7008
  }
7009
7009
  let ge = 0;
7010
- const Yr = class Vr {
7010
+ const Vr = class Yr {
7011
7011
  constructor(t = {}) {
7012
- this.uid = et("batcher"), this.dirty = !0, this.batchIndex = 0, this.batches = [], this._vertexSize = 6, this._elements = [], this._batchPool = [], this._batchPoolIndex = 0, this._textureBatchPool = [], this._textureBatchPoolIndex = 0, t = { ...Vr.defaultOptions, ...t };
7012
+ this.uid = et("batcher"), this.dirty = !0, this.batchIndex = 0, this.batches = [], this._vertexSize = 6, this._elements = [], this._batchPool = [], this._batchPoolIndex = 0, this._textureBatchPool = [], this._textureBatchPoolIndex = 0, t = { ...Yr.defaultOptions, ...t };
7013
7013
  const { vertexSize: e, indexSize: s } = t;
7014
- this.attributeBuffer = new Bs(e * this._vertexSize * 4), this.indexBuffer = new Uint16Array(s), this._maxTextures = Wr();
7014
+ this.attributeBuffer = new Rs(e * this._vertexSize * 4), this.indexBuffer = new Uint16Array(s), this._maxTextures = Wr();
7015
7015
  }
7016
7016
  begin() {
7017
7017
  this.batchIndex = 0, this.elementSize = 0, this.elementStart = 0, this.indexSize = 0, this.attributeSize = 0, this._batchPoolIndex = 0, this._textureBatchPoolIndex = 0, this._batchIndexStart = 0, this._batchIndexSize = 0, this.dirty = !0;
@@ -7096,7 +7096,7 @@ const Yr = class Vr {
7096
7096
  t <= this.indexBuffer.length || this._resizeIndexBuffer(t);
7097
7097
  }
7098
7098
  _resizeAttributeBuffer(t) {
7099
- const e = Math.max(t, this.attributeBuffer.size * 2), s = new Bs(e);
7099
+ const e = Math.max(t, this.attributeBuffer.size * 2), s = new Rs(e);
7100
7100
  Fs(this.attributeBuffer.rawBinaryData, s.rawBinaryData), this.attributeBuffer = s;
7101
7101
  }
7102
7102
  _resizeIndexBuffer(t) {
@@ -7120,11 +7120,11 @@ const Yr = class Vr {
7120
7120
  this._elements = null, this.indexBuffer = null, this.attributeBuffer.destroy(), this.attributeBuffer = null;
7121
7121
  }
7122
7122
  };
7123
- Yr.defaultOptions = {
7123
+ Vr.defaultOptions = {
7124
7124
  vertexSize: 4,
7125
7125
  indexSize: 6
7126
7126
  };
7127
- let Lo = Yr;
7127
+ let Lo = Vr;
7128
7128
  function Do(i, t, e, s, r, n, a, o = null) {
7129
7129
  let h = 0;
7130
7130
  e *= t, r *= n;
@@ -7303,39 +7303,39 @@ function Ho(i, t, e, s, r, n, a, o, h) {
7303
7303
  const m = r, y = i.length / 2;
7304
7304
  let _ = i.length;
7305
7305
  const x = m.length / 2, b = l.width / 2, S = b * b, k = l.miterLimit * l.miterLimit;
7306
- let M = i[0], C = i[1], v = i[2], A = i[3], j = 0, Mt = 0, R = -(C - A), E = M - v, z = 0, X = 0, ft = Math.sqrt(R * R + E * E);
7307
- R /= ft, E /= ft, R *= b, E *= b;
7306
+ let M = i[0], C = i[1], v = i[2], A = i[3], j = 0, Mt = 0, B = -(C - A), E = M - v, z = 0, X = 0, ft = Math.sqrt(B * B + E * E);
7307
+ B /= ft, E /= ft, B *= b, E *= b;
7308
7308
  const hs = u, I = (1 - hs) * 2, F = hs * 2;
7309
7309
  f || (l.cap === "round" ? _ += Nt(
7310
- M - R * (I - F) * 0.5,
7310
+ M - B * (I - F) * 0.5,
7311
7311
  C - E * (I - F) * 0.5,
7312
- M - R * I,
7312
+ M - B * I,
7313
7313
  C - E * I,
7314
- M + R * F,
7314
+ M + B * F,
7315
7315
  C + E * F,
7316
7316
  m,
7317
7317
  !0
7318
- ) + 2 : l.cap === "square" && (_ += Gs(M, C, R, E, I, F, !0, m))), m.push(
7319
- M - R * I,
7318
+ ) + 2 : l.cap === "square" && (_ += Gs(M, C, B, E, I, F, !0, m))), m.push(
7319
+ M - B * I,
7320
7320
  C - E * I
7321
7321
  ), m.push(
7322
- M + R * F,
7322
+ M + B * F,
7323
7323
  C + E * F
7324
7324
  );
7325
7325
  for (let U = 1; U < y - 1; ++U) {
7326
- M = i[(U - 1) * 2], C = i[(U - 1) * 2 + 1], v = i[U * 2], A = i[U * 2 + 1], j = i[(U + 1) * 2], Mt = i[(U + 1) * 2 + 1], R = -(C - A), E = M - v, ft = Math.sqrt(R * R + E * E), R /= ft, E /= ft, R *= b, E *= b, z = -(A - Mt), X = v - j, ft = Math.sqrt(z * z + X * X), z /= ft, X /= ft, z *= b, X *= b;
7326
+ M = i[(U - 1) * 2], C = i[(U - 1) * 2 + 1], v = i[U * 2], A = i[U * 2 + 1], j = i[(U + 1) * 2], Mt = i[(U + 1) * 2 + 1], B = -(C - A), E = M - v, ft = Math.sqrt(B * B + E * E), B /= ft, E /= ft, B *= b, E *= b, z = -(A - Mt), X = v - j, ft = Math.sqrt(z * z + X * X), z /= ft, X /= ft, z *= b, X *= b;
7327
7327
  const Ft = v - M, ce = C - A, ue = v - j, de = Mt - A, ls = Ft * ue + ce * de, Fe = ce * ue - de * Ft, fe = Fe < 0;
7328
7328
  if (Math.abs(Fe) < 1e-3 * Math.abs(ls)) {
7329
7329
  m.push(
7330
- v - R * I,
7330
+ v - B * I,
7331
7331
  A - E * I
7332
7332
  ), m.push(
7333
- v + R * F,
7333
+ v + B * F,
7334
7334
  A + E * F
7335
7335
  ), ls >= 0 && (l.join === "round" ? _ += Nt(
7336
7336
  v,
7337
7337
  A,
7338
- v - R * I,
7338
+ v - B * I,
7339
7339
  A - E * I,
7340
7340
  v - z * I,
7341
7341
  A - X * I,
@@ -7350,29 +7350,29 @@ function Ho(i, t, e, s, r, n, a, o, h) {
7350
7350
  ));
7351
7351
  continue;
7352
7352
  }
7353
- const cs = (-R + M) * (-E + A) - (-R + v) * (-E + C), us = (-z + j) * (-X + A) - (-z + v) * (-X + Mt), Le = (Ft * us - ue * cs) / Fe, De = (de * cs - ce * us) / Fe, hi = (Le - v) * (Le - v) + (De - A) * (De - A), Gt = v + (Le - v) * I, zt = A + (De - A) * I, Ht = v - (Le - v) * F, Wt = A - (De - A) * F, _n = Math.min(Ft * Ft + ce * ce, ue * ue + de * de), ds = fe ? I : F, xn = _n + ds * ds * S;
7354
- hi <= xn ? l.join === "bevel" || hi / S > k ? (fe ? (m.push(Gt, zt), m.push(v + R * F, A + E * F), m.push(Gt, zt), m.push(v + z * F, A + X * F)) : (m.push(v - R * I, A - E * I), m.push(Ht, Wt), m.push(v - z * I, A - X * I), m.push(Ht, Wt)), _ += 2) : l.join === "round" ? fe ? (m.push(Gt, zt), m.push(v + R * F, A + E * F), _ += Nt(
7353
+ const cs = (-B + M) * (-E + A) - (-B + v) * (-E + C), us = (-z + j) * (-X + A) - (-z + v) * (-X + Mt), Le = (Ft * us - ue * cs) / Fe, De = (de * cs - ce * us) / Fe, hi = (Le - v) * (Le - v) + (De - A) * (De - A), Gt = v + (Le - v) * I, zt = A + (De - A) * I, Ht = v - (Le - v) * F, Wt = A - (De - A) * F, _n = Math.min(Ft * Ft + ce * ce, ue * ue + de * de), ds = fe ? I : F, xn = _n + ds * ds * S;
7354
+ hi <= xn ? l.join === "bevel" || hi / S > k ? (fe ? (m.push(Gt, zt), m.push(v + B * F, A + E * F), m.push(Gt, zt), m.push(v + z * F, A + X * F)) : (m.push(v - B * I, A - E * I), m.push(Ht, Wt), m.push(v - z * I, A - X * I), m.push(Ht, Wt)), _ += 2) : l.join === "round" ? fe ? (m.push(Gt, zt), m.push(v + B * F, A + E * F), _ += Nt(
7355
7355
  v,
7356
7356
  A,
7357
- v + R * F,
7357
+ v + B * F,
7358
7358
  A + E * F,
7359
7359
  v + z * F,
7360
7360
  A + X * F,
7361
7361
  m,
7362
7362
  !0
7363
- ) + 4, m.push(Gt, zt), m.push(v + z * F, A + X * F)) : (m.push(v - R * I, A - E * I), m.push(Ht, Wt), _ += Nt(
7363
+ ) + 4, m.push(Gt, zt), m.push(v + z * F, A + X * F)) : (m.push(v - B * I, A - E * I), m.push(Ht, Wt), _ += Nt(
7364
7364
  v,
7365
7365
  A,
7366
- v - R * I,
7366
+ v - B * I,
7367
7367
  A - E * I,
7368
7368
  v - z * I,
7369
7369
  A - X * I,
7370
7370
  m,
7371
7371
  !1
7372
- ) + 4, m.push(v - z * I, A - X * I), m.push(Ht, Wt)) : (m.push(Gt, zt), m.push(Ht, Wt)) : (m.push(v - R * I, A - E * I), m.push(v + R * F, A + E * F), l.join === "round" ? fe ? _ += Nt(
7372
+ ) + 4, m.push(v - z * I, A - X * I), m.push(Ht, Wt)) : (m.push(Gt, zt), m.push(Ht, Wt)) : (m.push(v - B * I, A - E * I), m.push(v + B * F, A + E * F), l.join === "round" ? fe ? _ += Nt(
7373
7373
  v,
7374
7374
  A,
7375
- v + R * F,
7375
+ v + B * F,
7376
7376
  A + E * F,
7377
7377
  v + z * F,
7378
7378
  A + X * F,
@@ -7381,7 +7381,7 @@ function Ho(i, t, e, s, r, n, a, o, h) {
7381
7381
  ) + 2 : _ += Nt(
7382
7382
  v,
7383
7383
  A,
7384
- v - R * I,
7384
+ v - B * I,
7385
7385
  A - E * I,
7386
7386
  v - z * I,
7387
7387
  A - X * I,
@@ -7389,16 +7389,16 @@ function Ho(i, t, e, s, r, n, a, o, h) {
7389
7389
  !1
7390
7390
  ) + 2 : l.join === "miter" && hi / S <= k && (fe ? (m.push(Ht, Wt), m.push(Ht, Wt)) : (m.push(Gt, zt), m.push(Gt, zt)), _ += 2), m.push(v - z * I, A - X * I), m.push(v + z * F, A + X * F), _ += 2);
7391
7391
  }
7392
- M = i[(y - 2) * 2], C = i[(y - 2) * 2 + 1], v = i[(y - 1) * 2], A = i[(y - 1) * 2 + 1], R = -(C - A), E = M - v, ft = Math.sqrt(R * R + E * E), R /= ft, E /= ft, R *= b, E *= b, m.push(v - R * I, A - E * I), m.push(v + R * F, A + E * F), f || (l.cap === "round" ? _ += Nt(
7393
- v - R * (I - F) * 0.5,
7392
+ M = i[(y - 2) * 2], C = i[(y - 2) * 2 + 1], v = i[(y - 1) * 2], A = i[(y - 1) * 2 + 1], B = -(C - A), E = M - v, ft = Math.sqrt(B * B + E * E), B /= ft, E /= ft, B *= b, E *= b, m.push(v - B * I, A - E * I), m.push(v + B * F, A + E * F), f || (l.cap === "round" ? _ += Nt(
7393
+ v - B * (I - F) * 0.5,
7394
7394
  A - E * (I - F) * 0.5,
7395
- v - R * I,
7395
+ v - B * I,
7396
7396
  A - E * I,
7397
- v + R * F,
7397
+ v + B * F,
7398
7398
  A + E * F,
7399
7399
  m,
7400
7400
  !1
7401
- ) + 2 : l.cap === "square" && (_ += Gs(v, A, R, E, I, F, !1, m)));
7401
+ ) + 2 : l.cap === "square" && (_ += Gs(v, A, B, E, I, F, !1, m)));
7402
7402
  const yn = Os * Os;
7403
7403
  for (let U = x; U < _ + x - 2; ++U)
7404
7404
  M = m[U * 2], C = m[U * 2 + 1], v = m[(U + 1) * 2], A = m[(U + 1) * 2 + 1], j = m[(U + 2) * 2], Mt = m[(U + 2) * 2 + 1], !(Math.abs(M * (A - Mt) + v * (Mt - C) + j * (C - A)) < yn) && o.push(U, U + 1, U + 2);
@@ -7422,7 +7422,7 @@ const Wo = [], No = {
7422
7422
  triangulate(i, t, e, s, r, n) {
7423
7423
  $r(i, Wo, t, e, s, r, n);
7424
7424
  }
7425
- }, Yo = {
7425
+ }, Vo = {
7426
7426
  build(i, t) {
7427
7427
  const e = i, s = e.x, r = e.y, n = e.width, a = e.height;
7428
7428
  return n >= 0 && a >= 0 && (t[0] = s, t[1] = r, t[2] = s + n, t[3] = r, t[4] = s + n, t[5] = r + a, t[6] = s, t[7] = r + a), t;
@@ -7433,7 +7433,7 @@ const Wo = [], No = {
7433
7433
  const o = s / e;
7434
7434
  r[n++] = o, r[n++] = o + 1, r[n++] = o + 2, r[n++] = o + 1, r[n++] = o + 3, r[n++] = o + 2;
7435
7435
  }
7436
- }, Vo = {
7436
+ }, Yo = {
7437
7437
  build(i, t) {
7438
7438
  return t[0] = i.x, t[1] = i.y, t[2] = i.x2, t[3] = i.y2, t[4] = i.x3, t[5] = i.y3, t;
7439
7439
  },
@@ -7444,9 +7444,9 @@ const Wo = [], No = {
7444
7444
  r[n++] = o, r[n++] = o + 1, r[n++] = o + 2;
7445
7445
  }
7446
7446
  }, es = {
7447
- rectangle: Yo,
7447
+ rectangle: Vo,
7448
7448
  polygon: No,
7449
- triangle: Vo,
7449
+ triangle: Yo,
7450
7450
  circle: Ai,
7451
7451
  ellipse: Ai,
7452
7452
  roundedRectangle: Ai
@@ -7610,9 +7610,9 @@ const is = class Gi {
7610
7610
  };
7611
7611
  is.extension = {
7612
7612
  type: [
7613
- B.WebGLSystem,
7614
- B.WebGPUSystem,
7615
- B.CanvasSystem
7613
+ R.WebGLSystem,
7614
+ R.WebGPUSystem,
7615
+ R.CanvasSystem
7616
7616
  ],
7617
7617
  name: "graphicsContext"
7618
7618
  };
@@ -7794,7 +7794,7 @@ function lh(i, t, e, s, r, n, a, o = 0, h = 0, c = 0) {
7794
7794
  let S = i[i.length - 2], k = i[i.length - 1];
7795
7795
  const M = { x: 0, y: 0 };
7796
7796
  for (let C = 0; C < b; C++) {
7797
- const v = oh(g, m), { x: A, y: j } = Ci(v[0], n, a, u, l, y, _, M), { x: Mt, y: R } = Ci(v[1], n, a, u, l, y, _, M), { x: E, y: z } = Ci(v[2], n, a, u, l, y, _, M);
7797
+ const v = oh(g, m), { x: A, y: j } = Ci(v[0], n, a, u, l, y, _, M), { x: Mt, y: B } = Ci(v[1], n, a, u, l, y, _, M), { x: E, y: z } = Ci(v[2], n, a, u, l, y, _, M);
7798
7798
  Kr(
7799
7799
  i,
7800
7800
  S,
@@ -7802,7 +7802,7 @@ function lh(i, t, e, s, r, n, a, o = 0, h = 0, c = 0) {
7802
7802
  A,
7803
7803
  j,
7804
7804
  Mt,
7805
- R,
7805
+ B,
7806
7806
  E,
7807
7807
  z
7808
7808
  ), S = E, k = z, g += m;
@@ -8695,7 +8695,7 @@ const Qr = class Wi {
8695
8695
  }
8696
8696
  // TODO move to the system!
8697
8697
  buildLinearGradient() {
8698
- const t = Wi.defaultTextureSize, { gradientStops: e } = this, s = Y.get().createCanvas();
8698
+ const t = Wi.defaultTextureSize, { gradientStops: e } = this, s = V.get().createCanvas();
8699
8699
  s.width = t, s.height = t;
8700
8700
  const r = s.getContext("2d"), n = r.createLinearGradient(0, 0, Wi.defaultTextureSize, 1);
8701
8701
  for (let g = 0; g < e.length; g++) {
@@ -8703,7 +8703,7 @@ const Qr = class Wi {
8703
8703
  n.addColorStop(m.offset, m.color);
8704
8704
  }
8705
8705
  r.fillStyle = n, r.fillRect(0, 0, t, t), this.texture = new L({
8706
- source: new Be({
8706
+ source: new Re({
8707
8707
  resource: s,
8708
8708
  addressModeU: "clamp-to-edge",
8709
8709
  addressModeV: "repeat"
@@ -8794,7 +8794,7 @@ function Lt(i, t) {
8794
8794
  const n = J.shared.setValue(r.color);
8795
8795
  return r.alpha *= n.alpha, r.color = n.toNumber(), r.matrix = r.matrix ? r.matrix.clone() : null, r;
8796
8796
  }
8797
- const yh = new st(), Ns = new D(), ss = class At extends Bt {
8797
+ const yh = new st(), Ns = new D(), ss = class At extends Rt {
8798
8798
  constructor() {
8799
8799
  super(...arguments), this.uid = et("graphicsContext"), this.dirty = !0, this.batchMode = "auto", this.instructions = [], this._activePath = new ae(), this._transform = new D(), this._fillStyle = { ...At.defaultFillStyle }, this._strokeStyle = { ...At.defaultStrokeStyle }, this._stateStack = [], this._tick = 0, this._bounds = new St(), this._boundsDirty = !0;
8800
8800
  }
@@ -9435,7 +9435,7 @@ function ns(i, t, e) {
9435
9435
  }
9436
9436
  const _h = ".svg", xh = "image/svg+xml", bh = {
9437
9437
  extension: {
9438
- type: B.LoadParser,
9438
+ type: R.LoadParser,
9439
9439
  priority: Zt.Low
9440
9440
  },
9441
9441
  name: "loadSVG",
@@ -9455,11 +9455,11 @@ const _h = ".svg", xh = "image/svg+xml", bh = {
9455
9455
  };
9456
9456
  async function wh(i, t, e, s) {
9457
9457
  var m, y, _;
9458
- const n = await (await Y.get().fetch(i)).blob(), a = URL.createObjectURL(n), o = new Image();
9458
+ const n = await (await V.get().fetch(i)).blob(), a = URL.createObjectURL(n), o = new Image();
9459
9459
  o.src = a, o.crossOrigin = s, await o.decode(), URL.revokeObjectURL(a);
9460
9460
  const h = document.createElement("canvas"), c = h.getContext("2d"), l = ((m = t.data) == null ? void 0 : m.resolution) || rs(i), u = ((y = t.data) == null ? void 0 : y.width) ?? o.width, d = ((_ = t.data) == null ? void 0 : _.height) ?? o.height;
9461
9461
  h.width = u * l, h.height = d * l, c.drawImage(o, 0, 0, u * l, d * l);
9462
- const { parseAsGraphicsContext: p, ...f } = t.data, g = new Be({
9462
+ const { parseAsGraphicsContext: p, ...f } = t.data, g = new Re({
9463
9463
  resource: h,
9464
9464
  alphaMode: "premultiply-alpha-on-upload",
9465
9465
  resolution: l,
@@ -9468,7 +9468,7 @@ async function wh(i, t, e, s) {
9468
9468
  return ns(g, e, i);
9469
9469
  }
9470
9470
  async function vh(i) {
9471
- const e = await (await Y.get().fetch(i)).text(), s = new Dt();
9471
+ const e = await (await V.get().fetch(i)).text(), s = new Dt();
9472
9472
  return s.svg(e), s;
9473
9473
  }
9474
9474
  const Ah = `(function () {
@@ -9541,7 +9541,7 @@ class en {
9541
9541
  en.revokeObjectURL = function() {
9542
9542
  se && (URL.revokeObjectURL(se), se = null);
9543
9543
  };
9544
- let Ys = 0, Mi;
9544
+ let Vs = 0, Mi;
9545
9545
  class Ch {
9546
9546
  constructor() {
9547
9547
  this._initialized = !1, this._createdWorkers = 0, this._workerPool = [], this._queue = [], this._resolveHash = {};
@@ -9587,21 +9587,21 @@ class Ch {
9587
9587
  if (!t)
9588
9588
  return;
9589
9589
  const e = this._queue.pop(), s = e.id;
9590
- this._resolveHash[Ys] = { resolve: e.resolve, reject: e.reject }, t.postMessage({
9590
+ this._resolveHash[Vs] = { resolve: e.resolve, reject: e.reject }, t.postMessage({
9591
9591
  data: e.arguments,
9592
- uuid: Ys++,
9592
+ uuid: Vs++,
9593
9593
  id: s
9594
9594
  });
9595
9595
  }
9596
9596
  }
9597
- const Vs = new Ch(), Mh = [".jpeg", ".jpg", ".png", ".webp", ".avif"], Th = [
9597
+ const Ys = new Ch(), Mh = [".jpeg", ".jpg", ".png", ".webp", ".avif"], Th = [
9598
9598
  "image/jpeg",
9599
9599
  "image/png",
9600
9600
  "image/webp",
9601
9601
  "image/avif"
9602
9602
  ];
9603
9603
  async function Ph(i) {
9604
- const t = await Y.get().fetch(i);
9604
+ const t = await V.get().fetch(i);
9605
9605
  if (!t.ok)
9606
9606
  throw new Error(`[loadImageBitmap] Failed to fetch ${i}: ${t.status} ${t.statusText}`);
9607
9607
  const e = await t.blob();
@@ -9610,7 +9610,7 @@ async function Ph(i) {
9610
9610
  const sn = {
9611
9611
  name: "loadTextures",
9612
9612
  extension: {
9613
- type: B.LoadParser,
9613
+ type: R.LoadParser,
9614
9614
  priority: Zt.High
9615
9615
  },
9616
9616
  config: {
@@ -9624,12 +9624,12 @@ const sn = {
9624
9624
  async load(i, t, e) {
9625
9625
  var n;
9626
9626
  let s = null;
9627
- globalThis.createImageBitmap && this.config.preferCreateImageBitmap ? this.config.preferWorkers && await Vs.isImageBitmapSupported() ? s = await Vs.loadImageBitmap(i) : s = await Ph(i) : s = await new Promise((a) => {
9627
+ globalThis.createImageBitmap && this.config.preferCreateImageBitmap ? this.config.preferWorkers && await Ys.isImageBitmapSupported() ? s = await Ys.loadImageBitmap(i) : s = await Ph(i) : s = await new Promise((a) => {
9628
9628
  s = new Image(), s.crossOrigin = this.config.crossOrigin, s.src = i, s.complete ? a(s) : s.onload = () => {
9629
9629
  a(s);
9630
9630
  };
9631
9631
  });
9632
- const r = new Be({
9632
+ const r = new Re({
9633
9633
  resource: s,
9634
9634
  alphaMode: "premultiply-alpha-on-upload",
9635
9635
  resolution: ((n = t.data) == null ? void 0 : n.resolution) || rs(i),
@@ -9642,7 +9642,7 @@ const sn = {
9642
9642
  }
9643
9643
  }, rn = [".mp4", ".m4v", ".webm", ".ogg", ".ogv", ".h264", ".avi", ".mov"], kh = rn.map((i) => `video/${i.substring(1)}`);
9644
9644
  function Ih(i, t, e) {
9645
- e === void 0 && !t.startsWith("data:") ? i.crossOrigin = Rh(t) : e !== !1 && (i.crossOrigin = typeof e == "string" ? e : "anonymous");
9645
+ e === void 0 && !t.startsWith("data:") ? i.crossOrigin = Bh(t) : e !== !1 && (i.crossOrigin = typeof e == "string" ? e : "anonymous");
9646
9646
  }
9647
9647
  function Eh(i) {
9648
9648
  return new Promise((t, e) => {
@@ -9658,17 +9658,17 @@ function Eh(i) {
9658
9658
  }
9659
9659
  });
9660
9660
  }
9661
- function Rh(i, t = globalThis.location) {
9661
+ function Bh(i, t = globalThis.location) {
9662
9662
  if (i.startsWith("data:"))
9663
9663
  return "";
9664
9664
  t = t || globalThis.location;
9665
9665
  const e = new URL(i, document.baseURI);
9666
9666
  return e.hostname !== t.hostname || e.port !== t.port || e.protocol !== t.protocol ? "anonymous" : "";
9667
9667
  }
9668
- const Bh = {
9668
+ const Rh = {
9669
9669
  name: "loadVideo",
9670
9670
  extension: {
9671
- type: B.LoadParser
9671
+ type: R.LoadParser
9672
9672
  },
9673
9673
  config: null,
9674
9674
  test(i) {
@@ -9714,7 +9714,7 @@ const Bh = {
9714
9714
  i.destroy(!0);
9715
9715
  }
9716
9716
  }, nn = {
9717
- extension: B.ResolveParser,
9717
+ extension: R.ResolveParser,
9718
9718
  test: sn.test,
9719
9719
  parse: (i) => {
9720
9720
  var t;
@@ -9725,7 +9725,7 @@ const Bh = {
9725
9725
  };
9726
9726
  }
9727
9727
  }, Fh = {
9728
- extension: B.ResolveParser,
9728
+ extension: R.ResolveParser,
9729
9729
  test: (i) => oe.RETINA_PREFIX.test(i) && i.endsWith(".json"),
9730
9730
  parse: nn.parse
9731
9731
  };
@@ -10088,7 +10088,7 @@ class Lh {
10088
10088
  }
10089
10089
  }
10090
10090
  const yt = new Lh();
10091
- dt.handleByList(B.LoadParser, yt.loader.parsers).handleByList(B.ResolveParser, yt.resolver.parsers).handleByList(B.CacheParser, yt.cache.parsers).handleByList(B.DetectionParser, yt.detections);
10091
+ dt.handleByList(R.LoadParser, yt.loader.parsers).handleByList(R.ResolveParser, yt.resolver.parsers).handleByList(R.CacheParser, yt.cache.parsers).handleByList(R.DetectionParser, yt.detections);
10092
10092
  dt.add(
10093
10093
  Xa,
10094
10094
  qa,
@@ -10102,17 +10102,17 @@ dt.add(
10102
10102
  go,
10103
10103
  bh,
10104
10104
  sn,
10105
- Bh,
10105
+ Rh,
10106
10106
  nn,
10107
10107
  Fh
10108
10108
  );
10109
10109
  const js = {
10110
- loader: B.LoadParser,
10111
- resolver: B.ResolveParser,
10112
- cache: B.CacheParser,
10113
- detection: B.DetectionParser
10110
+ loader: R.LoadParser,
10111
+ resolver: R.ResolveParser,
10112
+ cache: R.CacheParser,
10113
+ detection: R.DetectionParser
10114
10114
  };
10115
- dt.handle(B.Asset, (i) => {
10115
+ dt.handle(R.Asset, (i) => {
10116
10116
  const t = i.ref;
10117
10117
  Object.entries(js).filter(([e]) => !!t[e]).forEach(([e, s]) => dt.add(Object.assign(
10118
10118
  t[e],
@@ -10471,7 +10471,7 @@ class Ze extends O {
10471
10471
  return q($, "Graphics#drawStar has been renamed to Graphics#star"), this._callContextMethod("star", t);
10472
10472
  }
10473
10473
  }
10474
- class Re extends xt {
10474
+ class Be extends xt {
10475
10475
  /**
10476
10476
  * @param textures - An array of {@link Texture} or frame
10477
10477
  * objects that make up the animation.
@@ -10482,11 +10482,11 @@ class Re extends xt {
10482
10482
  }
10483
10483
  /** Stops the AnimatedSprite. */
10484
10484
  stop() {
10485
- this._playing && (this._playing = !1, this._autoUpdate && this._isConnectedToTicker && (ot.shared.remove(this.update, this), this._isConnectedToTicker = !1));
10485
+ this._playing && (this._playing = !1, this._autoUpdate && this._isConnectedToTicker && (ht.shared.remove(this.update, this), this._isConnectedToTicker = !1));
10486
10486
  }
10487
10487
  /** Plays the AnimatedSprite. */
10488
10488
  play() {
10489
- this._playing || (this._playing = !0, this._autoUpdate && !this._isConnectedToTicker && (ot.shared.add(this.update, this, Te.HIGH), this._isConnectedToTicker = !0));
10489
+ this._playing || (this._playing = !0, this._autoUpdate && !this._isConnectedToTicker && (ht.shared.add(this.update, this, Te.HIGH), this._isConnectedToTicker = !0));
10490
10490
  }
10491
10491
  /**
10492
10492
  * Stops the AnimatedSprite and goes to a specific frame.
@@ -10540,7 +10540,7 @@ class Re extends xt {
10540
10540
  const e = [];
10541
10541
  for (let s = 0; s < t.length; ++s)
10542
10542
  e.push(L.from(t[s]));
10543
- return new Re(e);
10543
+ return new Be(e);
10544
10544
  }
10545
10545
  /**
10546
10546
  * A short hand way of creating an AnimatedSprite from an array of image ids.
@@ -10551,7 +10551,7 @@ class Re extends xt {
10551
10551
  const e = [];
10552
10552
  for (let s = 0; s < t.length; ++s)
10553
10553
  e.push(L.from(t[s]));
10554
- return new Re(e);
10554
+ return new Be(e);
10555
10555
  }
10556
10556
  /**
10557
10557
  * The total number of frames in the AnimatedSprite. This is the same as number of textures
@@ -10599,7 +10599,7 @@ class Re extends xt {
10599
10599
  return this._autoUpdate;
10600
10600
  }
10601
10601
  set autoUpdate(t) {
10602
- t !== this._autoUpdate && (this._autoUpdate = t, !this._autoUpdate && this._isConnectedToTicker ? (ot.shared.remove(this.update, this), this._isConnectedToTicker = !1) : this._autoUpdate && !this._isConnectedToTicker && this._playing && (ot.shared.add(this.update, this), this._isConnectedToTicker = !0));
10602
+ t !== this._autoUpdate && (this._autoUpdate = t, !this._autoUpdate && this._isConnectedToTicker ? (ht.shared.remove(this.update, this), this._isConnectedToTicker = !1) : this._autoUpdate && !this._isConnectedToTicker && this._playing && (ht.shared.add(this.update, this), this._isConnectedToTicker = !0));
10603
10603
  }
10604
10604
  }
10605
10605
  class Dh extends O {
@@ -10799,7 +10799,7 @@ const Ti = {
10799
10799
  static get experimentalLetterSpacingSupported() {
10800
10800
  let t = T._experimentalLetterSpacingSupported;
10801
10801
  if (t !== void 0) {
10802
- const e = Y.get().getCanvasRenderingContext2D().prototype;
10802
+ const e = V.get().getCanvasRenderingContext2D().prototype;
10803
10803
  t = T._experimentalLetterSpacingSupported = "letterSpacing" in e || "textLetterSpacing" in e;
10804
10804
  }
10805
10805
  return t;
@@ -11094,9 +11094,9 @@ const Ti = {
11094
11094
  const e = new OffscreenCanvas(0, 0), s = e.getContext("2d", Ti);
11095
11095
  if (s != null && s.measureText)
11096
11096
  return T.__canvas = e, e;
11097
- t = Y.get().createCanvas();
11097
+ t = V.get().createCanvas();
11098
11098
  } catch {
11099
- t = Y.get().createCanvas();
11099
+ t = V.get().createCanvas();
11100
11100
  }
11101
11101
  t.width = t.height = 10, T.__canvas = t;
11102
11102
  }
@@ -11196,7 +11196,7 @@ function on(i, t, e) {
11196
11196
  function Hh(i, t, e) {
11197
11197
  return i && (e = on(i, t, e), t[e++] = i.width, t[e++] = i.alignment, t[e++] = i.cap, t[e++] = i.join, t[e++] = i.miterLimit), e;
11198
11198
  }
11199
- const as = class Qt extends Bt {
11199
+ const as = class Qt extends Rt {
11200
11200
  constructor(t = {}) {
11201
11201
  super(), Wh(t);
11202
11202
  const e = { ...Qt.defaultTextStyle, ...t };
@@ -11560,7 +11560,7 @@ class Je extends Dh {
11560
11560
  }
11561
11561
  }
11562
11562
  dt.add(vn, An);
11563
- const Ut = 0.02 * 1e3, Nh = (i) => i.name == "jump", Yh = (i) => i.name == "color", Vh = (i) => i.name == "grow", jh = (i) => i.name == "dash", Xh = (i) => i.name == "sprite", $h = (i) => i.name == "add_jump_hits", qh = (i) => i.name == "resurrect";
11563
+ const Ut = 0.02 * 1e3, Nh = (i) => i.name == "jump", Vh = (i) => i.name == "color", Yh = (i) => i.name == "grow", jh = (i) => i.name == "dash", Xh = (i) => i.name == "sprite", $h = (i) => i.name == "add_jump_hits", qh = (i) => i.name == "resurrect";
11564
11564
  function Qe(i) {
11565
11565
  "@babel/helpers - typeof";
11566
11566
  return Qe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
@@ -11986,7 +11986,7 @@ P.mostReadable = function(i, t, e) {
11986
11986
  size: h
11987
11987
  }) || !a ? s : (e.includeFallbackColors = !1, P.mostReadable(i, ["#fff", "#000"], e));
11988
11988
  };
11989
- var Yi = P.names = {
11989
+ var Vi = P.names = {
11990
11990
  aliceblue: "f0f8ff",
11991
11991
  antiquewhite: "faebd7",
11992
11992
  aqua: "0ff",
@@ -12136,7 +12136,7 @@ var Yi = P.names = {
12136
12136
  whitesmoke: "f5f5f5",
12137
12137
  yellow: "ff0",
12138
12138
  yellowgreen: "9acd32"
12139
- }, pl = P.hexNames = ml(Yi);
12139
+ }, pl = P.hexNames = ml(Vi);
12140
12140
  function ml(i) {
12141
12141
  var t = {};
12142
12142
  for (var e in i)
@@ -12154,7 +12154,7 @@ function G(i, t) {
12154
12154
  function ri(i) {
12155
12155
  return Math.min(1, Math.max(0, i));
12156
12156
  }
12157
- function lt(i) {
12157
+ function ct(i) {
12158
12158
  return parseInt(i, 16);
12159
12159
  }
12160
12160
  function gl(i) {
@@ -12173,7 +12173,7 @@ function cn(i) {
12173
12173
  return Math.round(parseFloat(i) * 255).toString(16);
12174
12174
  }
12175
12175
  function Qs(i) {
12176
- return lt(i) / 255;
12176
+ return ct(i) / 255;
12177
12177
  }
12178
12178
  var mt = function() {
12179
12179
  var i = "[-\\+]?\\d+%?", t = "[-\\+]?\\d*\\.\\d+%?", e = "(?:" + t + ")|(?:" + i + ")", s = "[\\s|\\(]+(" + e + ")[,|\\s]+(" + e + ")[,|\\s]+(" + e + ")\\s*\\)?", r = "[\\s|\\(]+(" + e + ")[,|\\s]+(" + e + ")[,|\\s]+(" + e + ")[,|\\s]+(" + e + ")\\s*\\)?";
@@ -12197,8 +12197,8 @@ function Pt(i) {
12197
12197
  function _l(i) {
12198
12198
  i = i.replace(Kh, "").replace(Zh, "").toLowerCase();
12199
12199
  var t = !1;
12200
- if (Yi[i])
12201
- i = Yi[i], t = !0;
12200
+ if (Vi[i])
12201
+ i = Vi[i], t = !0;
12202
12202
  else if (i == "transparent")
12203
12203
  return {
12204
12204
  r: 0,
@@ -12236,26 +12236,26 @@ function _l(i) {
12236
12236
  v: e[3],
12237
12237
  a: e[4]
12238
12238
  } : (e = mt.hex8.exec(i)) ? {
12239
- r: lt(e[1]),
12240
- g: lt(e[2]),
12241
- b: lt(e[3]),
12239
+ r: ct(e[1]),
12240
+ g: ct(e[2]),
12241
+ b: ct(e[3]),
12242
12242
  a: Qs(e[4]),
12243
12243
  format: t ? "name" : "hex8"
12244
12244
  } : (e = mt.hex6.exec(i)) ? {
12245
- r: lt(e[1]),
12246
- g: lt(e[2]),
12247
- b: lt(e[3]),
12245
+ r: ct(e[1]),
12246
+ g: ct(e[2]),
12247
+ b: ct(e[3]),
12248
12248
  format: t ? "name" : "hex"
12249
12249
  } : (e = mt.hex4.exec(i)) ? {
12250
- r: lt(e[1] + "" + e[1]),
12251
- g: lt(e[2] + "" + e[2]),
12252
- b: lt(e[3] + "" + e[3]),
12250
+ r: ct(e[1] + "" + e[1]),
12251
+ g: ct(e[2] + "" + e[2]),
12252
+ b: ct(e[3] + "" + e[3]),
12253
12253
  a: Qs(e[4] + "" + e[4]),
12254
12254
  format: t ? "name" : "hex8"
12255
12255
  } : (e = mt.hex3.exec(i)) ? {
12256
- r: lt(e[1] + "" + e[1]),
12257
- g: lt(e[2] + "" + e[2]),
12258
- b: lt(e[3] + "" + e[3]),
12256
+ r: ct(e[1] + "" + e[1]),
12257
+ g: ct(e[2] + "" + e[2]),
12258
+ b: ct(e[3] + "" + e[3]),
12259
12259
  format: t ? "name" : "hex"
12260
12260
  } : !1;
12261
12261
  }
@@ -12492,11 +12492,11 @@ var Me = Object.freeze({
12492
12492
  return i._nextId++;
12493
12493
  }, i._nextId = 0, i;
12494
12494
  }()
12495
- ), Vi = new bl(), $t = (
12495
+ ), Yi = new bl(), $t = (
12496
12496
  /** @class */
12497
12497
  function() {
12498
12498
  function i(t, e) {
12499
- e === void 0 && (e = Vi), this._object = t, this._group = e, this._isPaused = !1, this._pauseStart = 0, this._valuesStart = {}, this._valuesEnd = {}, this._valuesStartRepeat = {}, this._duration = 1e3, this._isDynamic = !1, this._initialRepeat = 0, this._repeat = 0, this._yoyo = !1, this._isPlaying = !1, this._reversed = !1, this._delayTime = 0, this._startTime = 0, this._easingFunction = Me.Linear.None, this._interpolationFunction = ee.Linear, this._chainedTweens = [], this._onStartCallbackFired = !1, this._onEveryStartCallbackFired = !1, this._id = wl.nextId(), this._isChainStopped = !1, this._propertiesAreSetUp = !1, this._goToEnd = !1;
12499
+ e === void 0 && (e = Yi), this._object = t, this._group = e, this._isPaused = !1, this._pauseStart = 0, this._valuesStart = {}, this._valuesEnd = {}, this._valuesStartRepeat = {}, this._duration = 1e3, this._isDynamic = !1, this._initialRepeat = 0, this._repeat = 0, this._yoyo = !1, this._isPlaying = !1, this._reversed = !1, this._delayTime = 0, this._startTime = 0, this._easingFunction = Me.Linear.None, this._interpolationFunction = ee.Linear, this._chainedTweens = [], this._onStartCallbackFired = !1, this._onEveryStartCallbackFired = !1, this._id = wl.nextId(), this._isChainStopped = !1, this._propertiesAreSetUp = !1, this._goToEnd = !1;
12500
12500
  }
12501
12501
  return i.prototype.getId = function() {
12502
12502
  return this._id;
@@ -12583,7 +12583,7 @@ var Me = Object.freeze({
12583
12583
  this._chainedTweens[t].stop();
12584
12584
  return this;
12585
12585
  }, i.prototype.group = function(t) {
12586
- return t === void 0 && (t = Vi), this._group = t, this;
12586
+ return t === void 0 && (t = Yi), this._group = t, this;
12587
12587
  }, i.prototype.delay = function(t) {
12588
12588
  return t === void 0 && (t = 0), this._delayTime = t, this;
12589
12589
  }, i.prototype.repeat = function(t) {
@@ -12662,7 +12662,7 @@ var Me = Object.freeze({
12662
12662
  typeof s == "string" ? this._valuesStartRepeat[t] = this._valuesStartRepeat[t] + parseFloat(s) : this._valuesStartRepeat[t] = this._valuesEnd[t], this._valuesEnd[t] = e;
12663
12663
  }, i;
12664
12664
  }()
12665
- ), Ct = Vi;
12665
+ ), Ct = Yi;
12666
12666
  Ct.getAll.bind(Ct);
12667
12667
  Ct.removeAll.bind(Ct);
12668
12668
  Ct.add.bind(Ct);
@@ -12742,7 +12742,7 @@ class Sl {
12742
12742
  const o = a.toString(), h = t + "_" + o, c = e.textures[h], l = e.data.frames[h].duration;
12743
12743
  r.push({ texture: c, time: l });
12744
12744
  }
12745
- const n = new Re(r);
12745
+ const n = new Be(r);
12746
12746
  return n.texture.source.scaleMode = "nearest", n;
12747
12747
  }
12748
12748
  }
@@ -12762,7 +12762,7 @@ class Sl {
12762
12762
  const u = l.toString(), d = e.name + "_" + o.name + "_" + u, p = s.textures[d], f = s.data.frames[d].duration;
12763
12763
  h.push({ texture: p, time: f });
12764
12764
  }
12765
- const c = new Re(h);
12765
+ const c = new Be(h);
12766
12766
  c.texture.source.scaleMode = "nearest", a[o.name] = c;
12767
12767
  }
12768
12768
  n.name && (r[n.name] = a);
@@ -12771,11 +12771,11 @@ class Sl {
12771
12771
  }
12772
12772
  }
12773
12773
  const ti = new Sl();
12774
- var qt = {}, dn = {}, Rt = {};
12775
- Object.defineProperty(Rt, "__esModule", {
12774
+ var qt = {}, dn = {}, Bt = {};
12775
+ Object.defineProperty(Bt, "__esModule", {
12776
12776
  value: !0
12777
12777
  });
12778
- Rt.loop = Rt.conditional = Rt.parse = void 0;
12778
+ Bt.loop = Bt.conditional = Bt.parse = void 0;
12779
12779
  var Cl = function i(t, e) {
12780
12780
  var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : s;
12781
12781
  if (Array.isArray(e))
@@ -12790,13 +12790,13 @@ var Cl = function i(t, e) {
12790
12790
  }
12791
12791
  return s;
12792
12792
  };
12793
- Rt.parse = Cl;
12793
+ Bt.parse = Cl;
12794
12794
  var Ml = function(t, e) {
12795
12795
  return function(s, r, n, a) {
12796
12796
  e(s, r, n) && a(s, t, r, n);
12797
12797
  };
12798
12798
  };
12799
- Rt.conditional = Ml;
12799
+ Bt.conditional = Ml;
12800
12800
  var Tl = function(t, e) {
12801
12801
  return function(s, r, n, a) {
12802
12802
  for (var o = [], h = s.pos; e(s, r, n); ) {
@@ -12808,44 +12808,44 @@ var Tl = function(t, e) {
12808
12808
  return o;
12809
12809
  };
12810
12810
  };
12811
- Rt.loop = Tl;
12812
- var V = {};
12813
- Object.defineProperty(V, "__esModule", {
12811
+ Bt.loop = Tl;
12812
+ var Y = {};
12813
+ Object.defineProperty(Y, "__esModule", {
12814
12814
  value: !0
12815
12815
  });
12816
- V.readBits = V.readArray = V.readUnsigned = V.readString = V.peekBytes = V.readBytes = V.peekByte = V.readByte = V.buildStream = void 0;
12816
+ Y.readBits = Y.readArray = Y.readUnsigned = Y.readString = Y.peekBytes = Y.readBytes = Y.peekByte = Y.readByte = Y.buildStream = void 0;
12817
12817
  var Pl = function(t) {
12818
12818
  return {
12819
12819
  data: t,
12820
12820
  pos: 0
12821
12821
  };
12822
12822
  };
12823
- V.buildStream = Pl;
12823
+ Y.buildStream = Pl;
12824
12824
  var fn = function() {
12825
12825
  return function(t) {
12826
12826
  return t.data[t.pos++];
12827
12827
  };
12828
12828
  };
12829
- V.readByte = fn;
12829
+ Y.readByte = fn;
12830
12830
  var kl = function() {
12831
12831
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
12832
12832
  return function(e) {
12833
12833
  return e.data[e.pos + t];
12834
12834
  };
12835
12835
  };
12836
- V.peekByte = kl;
12836
+ Y.peekByte = kl;
12837
12837
  var ni = function(t) {
12838
12838
  return function(e) {
12839
12839
  return e.data.subarray(e.pos, e.pos += t);
12840
12840
  };
12841
12841
  };
12842
- V.readBytes = ni;
12842
+ Y.readBytes = ni;
12843
12843
  var Il = function(t) {
12844
12844
  return function(e) {
12845
12845
  return e.data.subarray(e.pos, e.pos + t);
12846
12846
  };
12847
12847
  };
12848
- V.peekBytes = Il;
12848
+ Y.peekBytes = Il;
12849
12849
  var El = function(t) {
12850
12850
  return function(e) {
12851
12851
  return Array.from(ni(t)(e)).map(function(s) {
@@ -12853,22 +12853,22 @@ var El = function(t) {
12853
12853
  }).join("");
12854
12854
  };
12855
12855
  };
12856
- V.readString = El;
12857
- var Rl = function(t) {
12856
+ Y.readString = El;
12857
+ var Bl = function(t) {
12858
12858
  return function(e) {
12859
12859
  var s = ni(2)(e);
12860
12860
  return t ? (s[1] << 8) + s[0] : (s[0] << 8) + s[1];
12861
12861
  };
12862
12862
  };
12863
- V.readUnsigned = Rl;
12864
- var Bl = function(t, e) {
12863
+ Y.readUnsigned = Bl;
12864
+ var Rl = function(t, e) {
12865
12865
  return function(s, r, n) {
12866
12866
  for (var a = typeof e == "function" ? e(s, r, n) : e, o = ni(t), h = new Array(a), c = 0; c < a; c++)
12867
12867
  h[c] = o(s);
12868
12868
  return h;
12869
12869
  };
12870
12870
  };
12871
- V.readArray = Bl;
12871
+ Y.readArray = Rl;
12872
12872
  var Fl = function(t, e, s) {
12873
12873
  for (var r = 0, n = 0; n < s; n++)
12874
12874
  r += t[e + n] && Math.pow(2, s - n - 1);
@@ -12883,12 +12883,12 @@ var Fl = function(t, e, s) {
12883
12883
  }, {});
12884
12884
  };
12885
12885
  };
12886
- V.readBits = Ll;
12886
+ Y.readBits = Ll;
12887
12887
  (function(i) {
12888
12888
  Object.defineProperty(i, "__esModule", {
12889
12889
  value: !0
12890
12890
  }), i.default = void 0;
12891
- var t = Rt, e = V, s = {
12891
+ var t = Bt, e = Y, s = {
12892
12892
  blocks: function(d) {
12893
12893
  for (var p = 0, f = [], g = d.data.length, m = 0, y = (0, e.readByte)()(d); y !== p && y; y = (0, e.readByte)()(d)) {
12894
12894
  if (d.pos + y >= g) {
@@ -13121,14 +13121,14 @@ oi.lzw = Ul;
13121
13121
  Object.defineProperty(qt, "__esModule", {
13122
13122
  value: !0
13123
13123
  });
13124
- var pn = qt.decompressFrames = qt.decompressFrame = mn = qt.parseGIF = void 0, Ol = Nl(dn), Gl = Rt, zl = V, Hl = ai, Wl = oi;
13124
+ var pn = qt.decompressFrames = qt.decompressFrame = mn = qt.parseGIF = void 0, Ol = Nl(dn), Gl = Bt, zl = Y, Hl = ai, Wl = oi;
13125
13125
  function Nl(i) {
13126
13126
  return i && i.__esModule ? i : { default: i };
13127
13127
  }
13128
- var Yl = function(t) {
13128
+ var Vl = function(t) {
13129
13129
  var e = new Uint8Array(t);
13130
13130
  return (0, Gl.parse)((0, zl.buildStream)(e), Ol.default);
13131
- }, mn = qt.parseGIF = Yl, Vl = function(t) {
13131
+ }, mn = qt.parseGIF = Vl, Yl = function(t) {
13132
13132
  for (var e = t.pixels.length, s = new Uint8ClampedArray(e * 4), r = 0; r < e; r++) {
13133
13133
  var n = r * 4, a = t.pixels[r], o = t.colorTable[a] || [0, 0, 0];
13134
13134
  s[n] = o[0], s[n + 1] = o[1], s[n + 2] = o[2], s[n + 3] = a !== t.transparentIndex ? 255 : 0;
@@ -13150,7 +13150,7 @@ var Yl = function(t) {
13150
13150
  height: t.image.descriptor.height
13151
13151
  }
13152
13152
  };
13153
- return r.descriptor.lct && r.descriptor.lct.exists ? o.colorTable = r.lct : o.colorTable = e, t.gce && (o.delay = (t.gce.delay || 10) * 10, o.disposalType = t.gce.extras.disposal, t.gce.extras.transparentColorGiven && (o.transparentIndex = t.gce.transparentColorIndex)), s && (o.patch = Vl(o)), o;
13153
+ return r.descriptor.lct && r.descriptor.lct.exists ? o.colorTable = r.lct : o.colorTable = e, t.gce && (o.delay = (t.gce.delay || 10) * 10, o.disposalType = t.gce.extras.disposal, t.gce.extras.transparentColorGiven && (o.transparentIndex = t.gce.transparentColorIndex)), s && (o.patch = Yl(o)), o;
13154
13154
  };
13155
13155
  qt.decompressFrame = gn;
13156
13156
  var jl = function(t, e) {
@@ -13168,7 +13168,7 @@ const ve = class extends xt {
13168
13168
  {},
13169
13169
  ve.defaultOptions,
13170
13170
  t
13171
- ), a = Y.get().createCanvas(s, r), o = a.getContext("2d");
13171
+ ), a = V.get().createCanvas(s, r), o = a.getContext("2d");
13172
13172
  this.texture = L.from(a), this.texture.source.scaleMode = e, this.duration = i[i.length - 1].end, this._frames = i, this._context = o, this._playing = !1, this._currentTime = 0, this._isConnectedToTicker = !1, Object.assign(this, n), this.currentFrame = 0, n.autoPlay && this.play();
13173
13173
  }
13174
13174
  static fromBuffer(i, t) {
@@ -13180,9 +13180,9 @@ const ve = class extends xt {
13180
13180
  y = _.gce ?? y, "image" in _ && !("gce" in _) && (_.gce = y);
13181
13181
  }, s = mn(i);
13182
13182
  e(s);
13183
- const r = pn(s, !0), n = [], a = Y.get().createCanvas(s.lsd.width, s.lsd.height), o = a.getContext("2d", {
13183
+ const r = pn(s, !0), n = [], a = V.get().createCanvas(s.lsd.width, s.lsd.height), o = a.getContext("2d", {
13184
13184
  willReadFrequently: !0
13185
- }), h = Y.get().createCanvas(), c = h.getContext("2d");
13185
+ }), h = V.get().createCanvas(), c = h.getContext("2d");
13186
13186
  let l = 0, u = null;
13187
13187
  const { fps: d } = Object.assign({}, ve.defaultOptions, t), p = 1e3 / d;
13188
13188
  for (let m = 0; m < r.length; m++) {
@@ -13207,10 +13207,10 @@ const ve = class extends xt {
13207
13207
  return new ve(n, { width: f, height: g, ...t });
13208
13208
  }
13209
13209
  stop() {
13210
- this._playing && (this._playing = !1, this._autoUpdate && this._isConnectedToTicker && (ot.shared.remove(this.update, this), this._isConnectedToTicker = !1));
13210
+ this._playing && (this._playing = !1, this._autoUpdate && this._isConnectedToTicker && (ht.shared.remove(this.update, this), this._isConnectedToTicker = !1));
13211
13211
  }
13212
13212
  play() {
13213
- this._playing || (this._playing = !0, this._autoUpdate && !this._isConnectedToTicker && (ot.shared.add(this.update, this, Te.HIGH), this._isConnectedToTicker = !0), !this.loop && this.currentFrame === this._frames.length - 1 && (this._currentTime = 0));
13213
+ this._playing || (this._playing = !0, this._autoUpdate && !this._isConnectedToTicker && (ht.shared.add(this.update, this, Te.HIGH), this._isConnectedToTicker = !0), !this.loop && this.currentFrame === this._frames.length - 1 && (this._currentTime = 0));
13214
13214
  }
13215
13215
  get progress() {
13216
13216
  return this._currentTime / this.duration;
@@ -13222,7 +13222,7 @@ const ve = class extends xt {
13222
13222
  var n, a;
13223
13223
  if (!this._playing)
13224
13224
  return;
13225
- const t = this.animationSpeed * i.deltaTime / ot.targetFPMS, e = this._currentTime + t, s = e % this.duration, r = this._frames.findIndex((o) => o.start <= s && o.end > s);
13225
+ const t = this.animationSpeed * i.deltaTime / ht.targetFPMS, e = this._currentTime + t, s = e % this.duration, r = this._frames.findIndex((o) => o.start <= s && o.end > s);
13226
13226
  e >= this.duration ? this.loop ? (this._currentTime = s, this.updateFrameIndex(r), (n = this.onLoop) == null || n.call(this)) : (this._currentTime = this.duration, this.updateFrameIndex(this._frames.length - 1), (a = this.onComplete) == null || a.call(this), this.stop()) : (this._currentTime = s, this.updateFrameIndex(r));
13227
13227
  }
13228
13228
  updateFrame() {
@@ -13235,7 +13235,7 @@ const ve = class extends xt {
13235
13235
  return this._autoUpdate;
13236
13236
  }
13237
13237
  set autoUpdate(i) {
13238
- i !== this._autoUpdate && (this._autoUpdate = i, !this._autoUpdate && this._isConnectedToTicker ? (ot.shared.remove(this.update, this), this._isConnectedToTicker = !1) : this._autoUpdate && !this._isConnectedToTicker && this._playing && (ot.shared.add(this.update, this), this._isConnectedToTicker = !0));
13238
+ i !== this._autoUpdate && (this._autoUpdate = i, !this._autoUpdate && this._isConnectedToTicker ? (ht.shared.remove(this.update, this), this._isConnectedToTicker = !1) : this._autoUpdate && !this._isConnectedToTicker && this._playing && (ht.shared.add(this.update, this), this._isConnectedToTicker = !0));
13239
13239
  }
13240
13240
  get currentFrame() {
13241
13241
  return this._currentFrame;
@@ -13286,7 +13286,7 @@ os.defaultOptions = {
13286
13286
  onLoop: null
13287
13287
  };
13288
13288
  const Xl = {
13289
- extension: B.Asset,
13289
+ extension: R.Asset,
13290
13290
  detection: {
13291
13291
  test: async () => !0,
13292
13292
  add: async (i) => [...i, "gif"],
@@ -13296,7 +13296,7 @@ const Xl = {
13296
13296
  name: "gifLoader",
13297
13297
  test: (i) => bt.extname(i) === ".gif",
13298
13298
  load: async (i, t) => {
13299
- const s = await (await Y.get().fetch(i)).arrayBuffer();
13299
+ const s = await (await V.get().fetch(i)).arrayBuffer();
13300
13300
  return os.fromBuffer(s, t == null ? void 0 : t.data);
13301
13301
  },
13302
13302
  unload: async (i) => {
@@ -13315,6 +13315,12 @@ class $l {
13315
13315
  w(this, "scaleSpeed", 0.5);
13316
13316
  w(this, "timer");
13317
13317
  }
13318
+ createImageFromBuffer(t, e) {
13319
+ return new Promise((s, r) => {
13320
+ const n = new Blob([t], { type: e }), a = new Image();
13321
+ a.onload = () => s(a), a.onerror = (o) => r(o), a.src = URL.createObjectURL(n);
13322
+ });
13323
+ }
13318
13324
  async add(t) {
13319
13325
  const e = tr[t];
13320
13326
  let s;
@@ -13329,7 +13335,11 @@ class $l {
13329
13335
  break;
13330
13336
  }
13331
13337
  case "image/png": {
13332
- s = xt.from(t);
13338
+ const a = await r.arrayBuffer(), o = await this.createImageFromBuffer(
13339
+ a,
13340
+ "image/png"
13341
+ ), h = L.from(o);
13342
+ URL.revokeObjectURL(o.src), s = new xt(h);
13333
13343
  break;
13334
13344
  }
13335
13345
  default: {
@@ -13378,6 +13388,7 @@ class ql {
13378
13388
  w(this, "showTween");
13379
13389
  w(this, "hideTween");
13380
13390
  w(this, "timer");
13391
+ w(this, "id");
13381
13392
  this.beforeShow = t, this.container.addChild(this.animated), this.text.anchor.set(0.5, 1), this.text.position.set(0, -this.padding);
13382
13393
  }
13383
13394
  trim(t) {
@@ -13390,9 +13401,13 @@ class ql {
13390
13401
  const e = ((a = this.showTween) == null ? void 0 : a.isPlaying()) || ((o = this.hideTween) == null ? void 0 : o.isPlaying());
13391
13402
  !this.isChecking && !e && this.timer && (this.animated.position.y = Math.sin(this.timer.current * 25e-4) * 4 - 2);
13392
13403
  }
13393
- add(t) {
13404
+ add(t, e) {
13405
+ var s, r;
13406
+ this.isChecking = !1, (s = this.hideTween) == null || s.stop(), (r = this.showTween) == null || r.stop(), t && (this.id = e, this.beforeShow(), this.show(t));
13407
+ }
13408
+ delete(t) {
13394
13409
  var e, s;
13395
- this.isChecking = !1, (e = this.hideTween) == null || e.stop(), (s = this.showTween) == null || s.stop(), t && (this.beforeShow(), this.show(t));
13410
+ this.isChecking || this.id != t || (this.timer = void 0, (e = this.showTween) == null || e.stop(), this.showTween = void 0, (s = this.hideTween) == null || s.start());
13396
13411
  }
13397
13412
  drawBox(t) {
13398
13413
  const e = {
@@ -13661,7 +13676,7 @@ class ir {
13661
13676
  w(this, "name", new Kl());
13662
13677
  w(this, "info", new tc());
13663
13678
  w(this, "message", new ql(() => {
13664
- this.state.zIndex = ct.zIndexEvotarMax(this.container.zIndex);
13679
+ this.state.zIndex = at.zIndexEvotarMax(this.container.zIndex);
13665
13680
  }));
13666
13681
  w(this, "emoteSpitter", new $l());
13667
13682
  w(this, "velocity", {
@@ -13725,8 +13740,8 @@ class ir {
13725
13740
  this.deathTimer && this.deathTimer.complete();
13726
13741
  }
13727
13742
  async die() {
13728
- this.state.isImmortal || (this.isDead = !0, this.container.visible = !1, ct.kill(this), this.deathTimer = new It(1e3 * 60 * 1, () => {
13729
- !this.isDespawned && this.isDead && (this.isDead = !1, this.container.visible = !0, this.state.scale = 1, ct.resurrect(this));
13743
+ this.state.isImmortal || (this.isDead = !0, this.container.visible = !1, at.kill(this), this.deathTimer = new It(1e3 * 60 * 1, () => {
13744
+ !this.isDespawned && this.isDead && (this.isDead = !1, this.container.visible = !0, this.state.scale = 1, at.resurrect(this));
13730
13745
  }));
13731
13746
  }
13732
13747
  spawn(t = { isFalling: !1 }) {
@@ -13734,7 +13749,7 @@ class ir {
13734
13749
  return;
13735
13750
  const e = this.sprite.data.collider, s = this.sprite.data.size, r = -(e.y + e.h - s.h / 2), n = t.isFalling ? r : N.renderer.height, a = s.w * this.getScale(), o = t.positionX != null ? t.positionX * this.screenBounds.right : Math.random() * (this.screenBounds.right - a) + a / 2, h = n * this.getScale();
13736
13751
  if (this.container.x = o, this.container.y = h, this.state.direction = Math.random() > 0.5 ? 1 : -1, !t.isFalling) {
13737
- const c = ct.zIndexEvotarMin(this.container.zIndex);
13752
+ const c = at.zIndexEvotarMin(this.container.zIndex);
13738
13753
  this.state.zIndex = c, this.container.alpha = 0, this.spawnTween = new $t(this.container).to({ alpha: 1 }, 500).onComplete(t.onComplete).start();
13739
13754
  }
13740
13755
  this.stateTimer = new It(5e3, () => {
@@ -13810,7 +13825,7 @@ class ir {
13810
13825
  this.container.position.set(e.x, e.y), this.isHitJumping && this.jumpHit();
13811
13826
  }
13812
13827
  jumpHit() {
13813
- const t = ct.getEvotars();
13828
+ const t = at.getEvotars();
13814
13829
  for (const e in t) {
13815
13830
  const s = t[e];
13816
13831
  if (s) {
@@ -13867,9 +13882,12 @@ class ir {
13867
13882
  isOnGround(t) {
13868
13883
  return t > N.renderer.height;
13869
13884
  }
13870
- addMessage(t) {
13871
- var e;
13872
- this.message.add(t), this.state.isAnonymous = !1, (e = this.fadeTween) == null || e.stop(), this.fadeTween = void 0, this.container.alpha = 1;
13885
+ addMessage(t, e) {
13886
+ var s;
13887
+ this.message.add(t, e), this.state.isAnonymous = !1, (s = this.fadeTween) == null || s.stop(), this.fadeTween = void 0, this.container.alpha = 1;
13888
+ }
13889
+ deleteMessage(t) {
13890
+ this.message.delete(t);
13873
13891
  }
13874
13892
  async spitEmotes(t) {
13875
13893
  for (const e of t)
@@ -14059,11 +14077,11 @@ class oc {
14059
14077
  if (Nh(t) && e.jump({
14060
14078
  velocityX: t.data.velocityX,
14061
14079
  velocityY: t.data.velocityY
14062
- }), jh(t) && e.dash({ force: t.data.force }), Yh(t)) {
14080
+ }), jh(t) && e.dash({ force: t.data.force }), Vh(t)) {
14063
14081
  const s = P(t.data.color);
14064
14082
  s && s.isValid() && e.setUserProps({ color: new J(t.data.color) });
14065
14083
  }
14066
- Vh(t) && e.scale({
14084
+ Yh(t) && e.scale({
14067
14085
  value: t.data.scale,
14068
14086
  duration: t.data.duration
14069
14087
  }), Xh(t) && e.setSprite(t.data.sprite), $h(t) && e.addJumpHit(t.data.count), qh(t) && e.resurrect();
@@ -14108,7 +14126,16 @@ class oc {
14108
14126
  isFalling: r
14109
14127
  });
14110
14128
  }
14111
- this.recentEvotarActivity[t.userId] = performance.now(), t.message && s.addMessage(t.message), t.emotes.length > 0 && s.spitEmotes(t.emotes);
14129
+ this.recentEvotarActivity[t.userId] = performance.now(), t.message && s.addMessage(t.message, t.id), t.emotes.length > 0 && s.spitEmotes(t.emotes);
14130
+ }
14131
+ processMessageDelete(t) {
14132
+ var e;
14133
+ for (const s in this.viewers)
14134
+ (e = this.viewers[s]) == null || e.deleteMessage(t.messageId);
14135
+ }
14136
+ processBan(t) {
14137
+ const e = this.viewers[t.userId];
14138
+ e && this.despawnViewer(t.userId, e);
14112
14139
  }
14113
14140
  resurrect(t) {
14114
14141
  const e = this.tombstones.find((s) => s.evotar == t);
@@ -14125,10 +14152,11 @@ class oc {
14125
14152
  N.stage.removeChild(t.container), this.tombstones = this.tombstones.filter((e) => e != t);
14126
14153
  }
14127
14154
  addViewer(t, e) {
14128
- this.subscriptions.forEach((s) => s.onAdd(e)), this.viewers[t] = e, this.viewerArray.push(t);
14155
+ const s = this.viewers[t];
14156
+ s && this.deleteViewer(t, s), this.subscriptions.forEach((r) => r.onAdd(e)), this.viewers[t] = e, this.viewerArray.push(t);
14129
14157
  }
14130
14158
  deleteViewer(t, e) {
14131
- this.subscriptions.forEach((s) => s.onDelete(e)), delete this.viewers[t];
14159
+ this.subscriptions.forEach((s) => s.onDelete(e)), this.viewers[t] == e && (delete this.viewers[t], this.viewerArray = this.viewerArray.filter((s) => s != t));
14132
14160
  }
14133
14161
  addRaider(t) {
14134
14162
  this.subscriptions.forEach((e) => e.onAdd(t)), this.raiders.push(t);
@@ -14143,7 +14171,7 @@ class oc {
14143
14171
  return Object.values(this.viewers).reduce((e, s) => s && e >= s.container.zIndex ? s.container.zIndex - 1 : e, t);
14144
14172
  }
14145
14173
  }
14146
- const ct = new oc();
14174
+ const at = new oc();
14147
14175
  class hc {
14148
14176
  constructor() {
14149
14177
  w(this, "stage", new O());
@@ -14163,7 +14191,7 @@ class hc {
14163
14191
  alias: s,
14164
14192
  src: e.assets[s]
14165
14193
  });
14166
- await yt.load(["skull", "weight", "poof", "rip1", "rip2"]), this.ticker = new ot(), this.ticker.deltaTime = Ut * 0.06, this.renderer = await Va({
14194
+ await yt.load(["skull", "weight", "poof", "rip1", "rip2"]), this.ticker = new ht(), this.ticker.deltaTime = Ut * 0.06, this.renderer = await Ya({
14167
14195
  preference: "webgl"
14168
14196
  }), await this.renderer.init({
14169
14197
  width: t.clientWidth,
@@ -14171,7 +14199,7 @@ class hc {
14171
14199
  backgroundAlpha: 0
14172
14200
  }), t.appendChild(this.renderer.canvas), window.onresize = () => {
14173
14201
  this.renderer.resize(t.clientWidth, t.clientHeight);
14174
- }, this.stage.sortableChildren = !0, ct.subscribe({
14202
+ }, this.stage.sortableChildren = !0, at.subscribe({
14175
14203
  onAdd: (s) => this.stage.addChild(s.container),
14176
14204
  onDelete: (s) => {
14177
14205
  this.stage.removeChild(s.container), this.stage.removeChild(s.trail.container);
@@ -14182,21 +14210,23 @@ class hc {
14182
14210
  this.settings = t;
14183
14211
  }
14184
14212
  update() {
14185
- ji.tick(), ct.update(), this.renderer.render(this.stage);
14213
+ ji.tick(), at.update(), this.renderer.render(this.stage);
14186
14214
  }
14187
14215
  }
14188
14216
  const N = new hc();
14189
14217
  class fc {
14190
14218
  constructor(t, e) {
14191
14219
  w(this, "isRendered", !1);
14192
- w(this, "processMessage", (t) => ct.processMessage(t));
14193
- w(this, "processAction", (t) => ct.processAction(t));
14194
- w(this, "processChatters", (t) => ct.processChatters(t));
14195
- w(this, "processRaid", (t) => ct.processRaid(t));
14220
+ w(this, "processMessage", (t) => at.processMessage(t));
14221
+ w(this, "processAction", (t) => at.processAction(t));
14222
+ w(this, "processChatters", (t) => at.processChatters(t));
14223
+ w(this, "processRaid", (t) => at.processRaid(t));
14224
+ w(this, "processMessageDelete", (t) => at.processMessageDelete(t));
14225
+ w(this, "processBan", (t) => at.processBan(t));
14196
14226
  this.root = t, this.options = e;
14197
14227
  }
14198
14228
  get manager() {
14199
- return ct;
14229
+ return at;
14200
14230
  }
14201
14231
  updateSettings(t) {
14202
14232
  N.updateSettings(t);
@@ -14219,10 +14249,10 @@ class fc {
14219
14249
  export {
14220
14250
  zh as $,
14221
14251
  Gr as A,
14222
- at as B,
14252
+ ot as B,
14223
14253
  O as C,
14224
- Y as D,
14225
- B as E,
14254
+ V as D,
14255
+ R as E,
14226
14256
  Ss as F,
14227
14257
  aa as G,
14228
14258
  _i as H,
@@ -14237,15 +14267,15 @@ export {
14237
14267
  gh as Q,
14238
14268
  tt as R,
14239
14269
  Fo as S,
14240
- ot as T,
14270
+ ht as T,
14241
14271
  Te as U,
14242
14272
  tn as V,
14243
14273
  Gh as W,
14244
14274
  an as X,
14245
- Be as Y,
14275
+ Re as Y,
14246
14276
  rt as Z,
14247
14277
  hn as _,
14248
- Bt as a,
14278
+ Rt as a,
14249
14279
  Xr as a0,
14250
14280
  Zt as a1,
14251
14281
  bt as a2,
@@ -14255,8 +14285,8 @@ export {
14255
14285
  qr as a6,
14256
14286
  fc as a7,
14257
14287
  Nh as a8,
14258
- Yh as a9,
14259
- Vh as aa,
14288
+ Vh as a9,
14289
+ Yh as aa,
14260
14290
  jh as ab,
14261
14291
  Xh as ac,
14262
14292
  $h as ad,