modern-canvas 0.14.7 → 0.14.9

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.
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import { defineProperty as rs, Observable as he, Reactivable as ss, parseColor as ni, property as h, isGradient as li, isColorFillObject as Nr, clearUndef as is, idGenerator as as, normalizeFill as ci, isNone as V, normalizeBackground as hi, normalizeForeground as ui, normalizeOutline as di, normalizeShadow as fi, normalizeShape as pi, getDefaultStyle as _i, normalizeText as mi, normalizeTextContent as gi, getDefaultTextStyle as vi, getDefaultLayoutStyle as bi, RawWeakMap as yi } from "modern-idoc";
1
+ import { defineProperty as rs, Observable as ue, Reactivable as ss, parseColor as ni, property as h, isGradient as li, isColorFillObject as kr, clearUndef as is, idGenerator as as, normalizeFill as ci, isNone as V, normalizeBackground as hi, normalizeForeground as ui, normalizeOutline as di, normalizeShadow as fi, normalizeShape as pi, getDefaultStyle as _i, normalizeText as mi, normalizeTextContent as gi, getDefaultTextStyle as vi, getDefaultLayoutStyle as bi, RawWeakMap as yi } from "modern-idoc";
2
2
  import { fonts as xi } from "modern-font";
3
3
  import { extend as wi } from "colord";
4
4
  import Pi from "colord/plugins/names";
5
- import { Path2D as At, Path2DSet as Ei, svgToDom as Si, svgToPath2DSet as Ti, Matrix3 as kr, BoundingBox as Kt } from "modern-path2d";
5
+ import { Path2D as At, Path2DSet as Ei, svgToDom as Si, svgToPath2DSet as Ti, Matrix3 as Ur, BoundingBox as Zt } from "modern-path2d";
6
6
  import { Text as Ri, Character as Ai } from "modern-text";
7
- const dr = /* @__PURE__ */ new Map();
7
+ const fr = /* @__PURE__ */ new Map();
8
8
  function b(r, e) {
9
9
  return function(t) {
10
10
  Object.defineProperty(t.prototype, "is", {
@@ -15,11 +15,11 @@ function b(r, e) {
15
15
  rs(t, s, {
16
16
  fallback: e[s]
17
17
  });
18
- }), dr.set(r, t);
18
+ }), fr.set(r, t);
19
19
  };
20
20
  }
21
21
  function lc(r = "node", e = {}) {
22
- const t = dr.get(r);
22
+ const t = fr.get(r);
23
23
  if (!t)
24
24
  throw new Error(`Failed to createNode, tag: ${r}`);
25
25
  return new t().setProperties(e);
@@ -91,12 +91,12 @@ async function os(r) {
91
91
  );
92
92
  });
93
93
  }
94
- const fr = Math.PI, z = fr * 2;
95
- function Ur(r) {
94
+ const pr = Math.PI, z = pr * 2;
95
+ function Br(r) {
96
96
  return !(r & r - 1) && !!r;
97
97
  }
98
98
  const Ci = /([\w-]+)\((.+?)\)/g, Oi = /[^,]+/g, Di = /([-e.\d]+)(.*)/;
99
- function Br(r) {
99
+ function Lr(r) {
100
100
  return Array.isArray(r) ? r.map((e) => ({
101
101
  name: e.name,
102
102
  args: e.args.map((t) => ({
@@ -109,10 +109,10 @@ function Br(r) {
109
109
  };
110
110
  }
111
111
  function Et(r, e, t = {}) {
112
- const s = Lt(e, t);
112
+ const s = Ft(e, t);
113
113
  return s.length ? s : ns(r, e, t);
114
114
  }
115
- function Lt(r, e = {}) {
115
+ function Ft(r, e = {}) {
116
116
  const t = [];
117
117
  let s;
118
118
  for (; (s = Ci.exec(r)) !== null; ) {
@@ -183,7 +183,7 @@ function ns(r, e, t = {}) {
183
183
  }
184
184
  return n;
185
185
  }
186
- const Mi = "WebGL2RenderingContext" in globalThis, Ni = "ImageBitmap" in globalThis, ki = "ResizeObserver" in globalThis, et = "PointerEvent" in globalThis, Ui = "WheelEvent" in globalThis, cc = "MouseEvent" in globalThis, ve = "ontouchstart" in globalThis, Bi = "onclick" in globalThis, hc = "createImageBitmap" in globalThis, ls = "AudioContext" in globalThis, cs = "webkitAudioContext" in globalThis, hs = "OfflineAudioContext" in globalThis, Li = "webkitOfflineAudioContext" in globalThis, Fi = ls || cs, pr = typeof window < "u", zi = typeof navigator < "u" && navigator?.userAgent?.indexOf("Mac") >= 0, us = globalThis.devicePixelRatio || 1, ds = (r) => r !== null && typeof r == "object" && r.nodeType === 1, Gi = (r) => ds(r) && r.tagName === "VIDEO", uc = (r) => ds(r) && r.tagName === "IMG";
186
+ const Mi = "WebGL2RenderingContext" in globalThis, Ni = "ImageBitmap" in globalThis, ki = "ResizeObserver" in globalThis, et = "PointerEvent" in globalThis, Ui = "WheelEvent" in globalThis, cc = "MouseEvent" in globalThis, be = "ontouchstart" in globalThis, Bi = "onclick" in globalThis, hc = "createImageBitmap" in globalThis, ls = "AudioContext" in globalThis, cs = "webkitAudioContext" in globalThis, hs = "OfflineAudioContext" in globalThis, Li = "webkitOfflineAudioContext" in globalThis, Fi = ls || cs, _r = typeof window < "u", zi = typeof navigator < "u" && navigator?.userAgent?.indexOf("Mac") >= 0, us = globalThis.devicePixelRatio || 1, ds = (r) => r !== null && typeof r == "object" && r.nodeType === 1, Gi = (r) => ds(r) && r.tagName === "VIDEO", uc = (r) => ds(r) && r.tagName === "IMG";
187
187
  function Vi(r) {
188
188
  return typeof r == "object" && r !== null && r.nodeType === 1 && r.tagName === "CANVAS";
189
189
  }
@@ -191,7 +191,7 @@ function $i(r) {
191
191
  return Mi && r instanceof globalThis.WebGL2RenderingContext;
192
192
  }
193
193
  function Hi() {
194
- if (pr)
194
+ if (_r)
195
195
  return globalThis.document.createElement("canvas");
196
196
  }
197
197
  function Xi(r, e = globalThis.location) {
@@ -208,7 +208,7 @@ let Wi = 0;
208
208
  function rt() {
209
209
  return ++Wi;
210
210
  }
211
- class Ft {
211
+ class zt {
212
212
  cursor;
213
213
  // Event
214
214
  bubbles = !1;
@@ -216,7 +216,7 @@ class Ft {
216
216
  cancelable = !1;
217
217
  composed = !1;
218
218
  defaultPrevented = !1;
219
- eventPhase = Ft.prototype.NONE;
219
+ eventPhase = zt.prototype.NONE;
220
220
  isTrusted = !1;
221
221
  timeStamp = 0;
222
222
  type = "";
@@ -245,7 +245,7 @@ class Ft {
245
245
  throw new Error("initUIEvent() is a legacy DOM API. It is not implemented in the Federated Events API.");
246
246
  }
247
247
  }
248
- class qi extends Ft {
248
+ class qi extends zt {
249
249
  getModifierState(...e) {
250
250
  throw new Error("getModifierState() is a legacy DOM API. It is not implemented in the Federated Events API.");
251
251
  }
@@ -253,7 +253,7 @@ class qi extends Ft {
253
253
  throw new Error("initKeyboardEvent() is a legacy DOM API. It is not implemented in the Federated Events API.");
254
254
  }
255
255
  }
256
- class fs extends Ft {
256
+ class fs extends zt {
257
257
  client = { x: 0, y: 0 };
258
258
  get clientX() {
259
259
  return this.client.x;
@@ -342,7 +342,7 @@ const Zi = {
342
342
  touchmove: "pointermove",
343
343
  touchcancel: "pointercancel"
344
344
  };
345
- class Ji extends he {
345
+ class Ji extends ue {
346
346
  /**
347
347
  * Current event
348
348
  */
@@ -364,17 +364,17 @@ class Ji extends he {
364
364
  if (!this.setuped || !this.target)
365
365
  return;
366
366
  const e = this.target.style;
367
- globalThis.navigator.msPointerEnabled ? (e.msContentZooming = "", e.msTouchAction = "") : et && (e.touchAction = ""), et ? (this.target.removeEventListener("pointerdown", this._onPointerDown), this.target.removeEventListener("pointerleave", this._onPointerOver), this.target.removeEventListener("pointerover", this._onPointerOver), this.target.removeEventListener("pointermove", this._onPointerMove), this.target.removeEventListener("pointerup", this._onPointerUp)) : (this.target.removeEventListener("mousedown", this._onPointerDown), this.target.removeEventListener("mouseout", this._onPointerOver), this.target.removeEventListener("mouseover", this._onPointerOver), this.target.removeEventListener("mousemove", this._onPointerMove), this.target.removeEventListener("mouseup", this._onPointerUp)), ve && (this.target.removeEventListener("touchstart", this._onPointerDown), this.target.removeEventListener("touchmove", this._onPointerMove), this.target.removeEventListener("touchend", this._onPointerUp)), this.target.removeEventListener("wheel", this._onWheel), document.removeEventListener("keydown", this._onKeyDown), document.removeEventListener("keypress", this._onKeyPress), document.removeEventListener("keyup", this._onKeyUp), this.target = void 0, this.setuped = !1;
367
+ globalThis.navigator.msPointerEnabled ? (e.msContentZooming = "", e.msTouchAction = "") : et && (e.touchAction = ""), et ? (this.target.removeEventListener("pointerdown", this._onPointerDown), this.target.removeEventListener("pointerleave", this._onPointerOver), this.target.removeEventListener("pointerover", this._onPointerOver), this.target.removeEventListener("pointermove", this._onPointerMove), this.target.removeEventListener("pointerup", this._onPointerUp)) : (this.target.removeEventListener("mousedown", this._onPointerDown), this.target.removeEventListener("mouseout", this._onPointerOver), this.target.removeEventListener("mouseover", this._onPointerOver), this.target.removeEventListener("mousemove", this._onPointerMove), this.target.removeEventListener("mouseup", this._onPointerUp)), be && (this.target.removeEventListener("touchstart", this._onPointerDown), this.target.removeEventListener("touchmove", this._onPointerMove), this.target.removeEventListener("touchend", this._onPointerUp)), this.target.removeEventListener("wheel", this._onWheel), document.removeEventListener("keydown", this._onKeyDown), document.removeEventListener("keypress", this._onKeyPress), document.removeEventListener("keyup", this._onKeyUp), this.target = void 0, this.setuped = !1;
368
368
  }
369
369
  addEventListeners() {
370
370
  if (this.setuped || !this.target)
371
371
  return;
372
372
  const e = this.target.style;
373
- e && (globalThis.navigator.msPointerEnabled ? (e.msContentZooming = "none", e.msTouchAction = "none") : et && (e.touchAction = "none")), et ? (this.target.addEventListener("pointerdown", this._onPointerDown), this.target.addEventListener("pointerleave", this._onPointerOver), this.target.addEventListener("pointerover", this._onPointerOver), this.target.addEventListener("pointermove", this._onPointerMove), this.target.addEventListener("pointerup", this._onPointerUp)) : (this.target.addEventListener("mousedown", this._onPointerDown), this.target.addEventListener("mouseout", this._onPointerOver), this.target.addEventListener("mouseover", this._onPointerOver), this.target.addEventListener("mousemove", this._onPointerMove), this.target.addEventListener("mouseup", this._onPointerUp)), ve && (this.target.addEventListener("touchstart", this._onPointerDown), this.target.addEventListener("touchmove", this._onPointerMove), this.target.addEventListener("touchend", this._onPointerUp)), this.target.addEventListener("wheel", this._onWheel), document.addEventListener("keydown", this._onKeyDown), document.addEventListener("keypress", this._onKeyPress), document.addEventListener("keyup", this._onKeyUp), this.setuped = !0;
373
+ e && (globalThis.navigator.msPointerEnabled ? (e.msContentZooming = "none", e.msTouchAction = "none") : et && (e.touchAction = "none")), et ? (this.target.addEventListener("pointerdown", this._onPointerDown), this.target.addEventListener("pointerleave", this._onPointerOver), this.target.addEventListener("pointerover", this._onPointerOver), this.target.addEventListener("pointermove", this._onPointerMove), this.target.addEventListener("pointerup", this._onPointerUp)) : (this.target.addEventListener("mousedown", this._onPointerDown), this.target.addEventListener("mouseout", this._onPointerOver), this.target.addEventListener("mouseover", this._onPointerOver), this.target.addEventListener("mousemove", this._onPointerMove), this.target.addEventListener("mouseup", this._onPointerUp)), be && (this.target.addEventListener("touchstart", this._onPointerDown), this.target.addEventListener("touchmove", this._onPointerMove), this.target.addEventListener("touchend", this._onPointerUp)), this.target.addEventListener("wheel", this._onWheel), document.addEventListener("keydown", this._onKeyDown), document.addEventListener("keypress", this._onKeyPress), document.addEventListener("keyup", this._onKeyUp), this.setuped = !0;
374
374
  }
375
375
  normalize(e) {
376
376
  const t = [];
377
- if (ve && e instanceof globalThis.TouchEvent)
377
+ if (be && e instanceof globalThis.TouchEvent)
378
378
  for (let s = 0, i = e.changedTouches.length; s < i; s++) {
379
379
  const a = e.changedTouches[s];
380
380
  typeof a.button > "u" && (a.button = 0), typeof a.buttons > "u" && (a.buttons = 1), typeof a.isPrimary > "u" && (a.isPrimary = e.touches.length === 1 && e.type === "touchstart"), typeof a.width > "u" && (a.width = a.radiusX || 1), typeof a.height > "u" && (a.height = a.radiusY || 1), typeof a.tiltX > "u" && (a.tiltX = 0), typeof a.tiltY > "u" && (a.tiltY = 0), typeof a.pointerType > "u" && (a.pointerType = "touch"), typeof a.pointerId > "u" && (a.pointerId = a.identifier || 0), typeof a.pressure > "u" && (a.pressure = a.force || 0.5), typeof a.twist > "u" && (a.twist = 0), typeof a.tangentialPressure > "u" && (a.tangentialPressure = 0), typeof a.layerX > "u" && (a.layerX = a.offsetX = a.clientX), typeof a.layerY > "u" && (a.layerY = a.offsetY = a.clientY), a.type = e.type, t.push(a);
@@ -451,7 +451,7 @@ class Ji extends he {
451
451
  this.event?.cursor && this.setCursor(this.event.cursor);
452
452
  };
453
453
  _onPointerDown = (e) => {
454
- if (ve && e.pointerType === "touch")
454
+ if (be && e.pointerType === "touch")
455
455
  return;
456
456
  const t = this.normalize(e);
457
457
  for (let s = 0, i = t.length; s < i; s++)
@@ -459,7 +459,7 @@ class Ji extends he {
459
459
  this.event?.cursor && this.setCursor(this.event.cursor);
460
460
  };
461
461
  _onPointerOver = (e) => {
462
- if (!this.enableClickEvent || ve && e.pointerType === "touch")
462
+ if (!this.enableClickEvent || be && e.pointerType === "touch")
463
463
  return;
464
464
  const t = this.normalize(e);
465
465
  for (let s = 0, i = t.length; s < i; s++)
@@ -467,7 +467,7 @@ class Ji extends he {
467
467
  this.event?.cursor && this.setCursor(this.event.cursor);
468
468
  };
469
469
  _onPointerMove = (e) => {
470
- if (!this.enableMoveEvent || ve && e.pointerType === "touch")
470
+ if (!this.enableMoveEvent || be && e.pointerType === "touch")
471
471
  return;
472
472
  const t = this.normalize(e);
473
473
  for (let s = 0, i = t.length; s < i; s++)
@@ -475,7 +475,7 @@ class Ji extends he {
475
475
  this.event?.cursor && this.setCursor(this.event.cursor);
476
476
  };
477
477
  _onPointerUp = (e) => {
478
- if (!this.enableClickEvent || ve && e.pointerType === "touch")
478
+ if (!this.enableClickEvent || be && e.pointerType === "touch")
479
479
  return;
480
480
  let t = e.target;
481
481
  e.composedPath && e.composedPath().length > 0 && (t = e.composedPath()[0]);
@@ -516,10 +516,10 @@ class Pe extends ss {
516
516
  class Qi extends Pe {
517
517
  //
518
518
  }
519
- class ue extends Qi {
519
+ class de extends Qi {
520
520
  //
521
521
  }
522
- class oe extends he {
522
+ class ne extends ue {
523
523
  constructor(e, t, s) {
524
524
  super(), this.rows = e, this.cols = t, s ? this.set(s) : this.identity();
525
525
  }
@@ -531,9 +531,9 @@ class oe extends he {
531
531
  operate(e, t, s) {
532
532
  const { cols: i, rows: a, length: o, _array: n } = this;
533
533
  let l;
534
- typeof t == "number" ? l = Array.from({ length: o }, () => t) : t instanceof Q || t instanceof oe ? l = t.toArray() : l = t;
534
+ typeof t == "number" ? l = Array.from({ length: o }, () => t) : t instanceof Q || t instanceof ne ? l = t.toArray() : l = t;
535
535
  let c, u = [];
536
- if (s ? s instanceof Q || s instanceof oe ? c = s : u = s : t instanceof Q ? c = new t.constructor() : c = this, t instanceof Q) {
536
+ if (s ? s instanceof Q || s instanceof ne ? c = s : u = s : t instanceof Q ? c = new t.constructor() : c = this, t instanceof Q) {
537
537
  const { dim: d } = t;
538
538
  switch (e) {
539
539
  case "*":
@@ -618,7 +618,7 @@ class oe extends he {
618
618
  return this._array.slice();
619
619
  }
620
620
  }
621
- class Q extends he {
621
+ class Q extends ue {
622
622
  constructor(e) {
623
623
  super(), this.dim = e;
624
624
  }
@@ -629,9 +629,9 @@ class Q extends he {
629
629
  operate(e, t, s) {
630
630
  const { dim: i, _array: a } = this;
631
631
  let o;
632
- typeof t == "number" ? o = Array.from({ length: i }, () => t) : t instanceof oe || t instanceof Q ? o = t.toArray() : o = t;
632
+ typeof t == "number" ? o = Array.from({ length: i }, () => t) : t instanceof ne || t instanceof Q ? o = t.toArray() : o = t;
633
633
  let n, l = [];
634
- if (s ? s instanceof Q ? n = s : l = s : n = this, t instanceof oe) {
634
+ if (s ? s instanceof Q ? n = s : l = s : n = this, t instanceof ne) {
635
635
  const { cols: c } = t;
636
636
  switch (e) {
637
637
  case "*":
@@ -793,7 +793,7 @@ class C extends Q {
793
793
  return new C(t).clone().sub(e).multiply(s).add(e);
794
794
  }
795
795
  }
796
- class ye {
796
+ class ee {
797
797
  get x() {
798
798
  return this.min.x;
799
799
  }
@@ -822,25 +822,25 @@ class ye {
822
822
  return this.x + this.width;
823
823
  }
824
824
  set right(e) {
825
- this.size.x = e - this.min.x;
825
+ this.size.x = Math.max(0, e - this.min.x);
826
826
  }
827
827
  get bottom() {
828
828
  return this.y + this.height;
829
829
  }
830
830
  set bottom(e) {
831
- this.size.y = e - this.min.y;
831
+ this.size.y = Math.max(0, e - this.min.y);
832
832
  }
833
833
  get width() {
834
834
  return this.size.x;
835
835
  }
836
836
  set width(e) {
837
- this.size.x = e;
837
+ this.size.x = Math.max(0, e);
838
838
  }
839
839
  get height() {
840
840
  return this.size.y;
841
841
  }
842
842
  set height(e) {
843
- this.size.y = e;
843
+ this.size.y = Math.max(0, e);
844
844
  }
845
845
  max = new C();
846
846
  min;
@@ -856,14 +856,14 @@ class ye {
856
856
  const a = i.map((d) => d.x), o = i.map((d) => d.y), n = Math.min(...a), l = Math.max(...a), c = Math.min(...o), u = Math.max(...o);
857
857
  t.set(n, c), s.set(l - n, u - c);
858
858
  } else
859
- t.set(i.x, i.y), s.set(i.width, i.height);
859
+ t.set(i.x, i.y), s.set(Math.max(0, i.width), Math.max(0, i.height));
860
860
  break;
861
861
  }
862
862
  case 2:
863
- t.set(e[0]), s.set(e[1]);
863
+ t.set(e[0]), s.set(Math.max(0, e[1]));
864
864
  break;
865
865
  default:
866
- t.set(e[0], e[1]), s.set(e[2], e[3]);
866
+ t.set(e[0], e[1]), s.set(Math.max(0, e[2]), Math.max(0, e[3]));
867
867
  break;
868
868
  }
869
869
  this.update = this.update.bind(this), this.min = t.on("update", this.update), this.size = s.on("update", this.update), this.update();
@@ -888,18 +888,12 @@ class ye {
888
888
  return e.x >= this.min.x && e.x <= this.max.x && e.y >= this.min.y && e.y <= this.max.y;
889
889
  }
890
890
  getIntersectionRect(e) {
891
- const t = this.toMinmax(), s = e.toMinmax(), i = {
892
- x: Math.max(t.min.x, s.min.x),
893
- y: Math.max(t.min.y, s.min.y)
894
- }, a = {
895
- x: Math.min(t.max.x, s.max.x),
896
- y: Math.min(t.max.y, s.max.y)
897
- };
898
- return new ye(
899
- i.x,
900
- i.y,
901
- a.x - i.x,
902
- a.y - i.y
891
+ const t = this.toMinmax(), s = e.toMinmax(), i = Math.max(t.min.x, s.min.x), a = Math.max(t.min.y, s.min.y), o = Math.min(t.max.x, s.max.x), n = Math.min(t.max.y, s.max.y);
892
+ return o <= i || n <= a ? new ee() : new ee(
893
+ i,
894
+ a,
895
+ Math.max(0, o - i),
896
+ Math.max(0, n - a)
903
897
  );
904
898
  }
905
899
  getArea() {
@@ -930,9 +924,12 @@ class ye {
930
924
  height: this.height
931
925
  };
932
926
  }
927
+ clone() {
928
+ return new ee(this.toJSON());
929
+ }
933
930
  }
934
931
  wi([Pi]);
935
- class ae {
932
+ class oe {
936
933
  get value() {
937
934
  return this._value;
938
935
  }
@@ -1008,13 +1005,13 @@ class ae {
1008
1005
  return [this.r, this.g, this.b, this.a];
1009
1006
  }
1010
1007
  }
1011
- class ea extends oe {
1008
+ class ea extends ne {
1012
1009
  constructor(e) {
1013
1010
  super(4, 4, e);
1014
1011
  }
1015
1012
  }
1016
- const ir = fr / 180, dc = 180 / fr;
1017
- function ne(r, e, t) {
1013
+ const ar = pr / 180, dc = 180 / pr;
1014
+ function le(r, e, t) {
1018
1015
  return Math.max(e, Math.min(r, t));
1019
1016
  }
1020
1017
  function A(r, e, t) {
@@ -1038,7 +1035,7 @@ class ta extends Q {
1038
1035
  super(4), this.set(e, t, s, i);
1039
1036
  }
1040
1037
  }
1041
- class ps extends oe {
1038
+ class ps extends ne {
1042
1039
  constructor(e) {
1043
1040
  super(4, 5, e);
1044
1041
  }
@@ -1168,7 +1165,7 @@ class ps extends oe {
1168
1165
  ]);
1169
1166
  }
1170
1167
  sepia(e = 1) {
1171
- const t = ne(e, 0, 1);
1168
+ const t = le(e, 0, 1);
1172
1169
  return this.multiply([
1173
1170
  A(1, 0.393, t),
1174
1171
  A(0, 0.7689999, t),
@@ -1217,7 +1214,7 @@ class ps extends oe {
1217
1214
  ]);
1218
1215
  }
1219
1216
  grayscale(e = 1) {
1220
- const t = ne(e, 0, 1), s = A(1, 0.3, t), i = A(0, 0.3, t), a = A(1, 0.59, t), o = A(0, 0.59, t), n = A(1, 0.11, t), l = A(0, 0.11, t);
1217
+ const t = le(e, 0, 1), s = A(1, 0.3, t), i = A(0, 0.3, t), a = A(1, 0.59, t), o = A(0, 0.59, t), n = A(1, 0.11, t), l = A(0, 0.11, t);
1221
1218
  return this.multiply([
1222
1219
  s,
1223
1220
  o,
@@ -1296,12 +1293,12 @@ class ps extends oe {
1296
1293
  return new ta(e[4] / 255, e[9] / 255, e[14] / 255, e[19] / 255);
1297
1294
  }
1298
1295
  }
1299
- class pc extends oe {
1296
+ class pc extends ne {
1300
1297
  constructor(e) {
1301
1298
  super(2, 2, e);
1302
1299
  }
1303
1300
  }
1304
- class _s extends oe {
1301
+ class _s extends ne {
1305
1302
  constructor(e) {
1306
1303
  super(3, 3, e);
1307
1304
  }
@@ -1343,23 +1340,30 @@ class _s extends oe {
1343
1340
  ]);
1344
1341
  }
1345
1342
  }
1346
- class Lr extends ye {
1343
+ class Ot extends ee {
1344
+ /**
1345
+ * Rotation radians
1346
+ */
1347
1347
  rotation;
1348
+ get rotationDegrees() {
1349
+ return this.rotation / ar;
1350
+ }
1348
1351
  constructor(...e) {
1349
1352
  let t, s;
1350
- e.length === 1 ? (s = e[0], t = e[0].rotation) : (s = e[0], t = e[1]), super(s), this.rotation = t ?? 0;
1353
+ e.length === 0 || (e.length === 1 ? (s = e[0], t = e[0].rotation) : e.length === 2 && (s = e[0], t = e[1])), s ? super(s) : super(), this.rotation = t ?? 0;
1351
1354
  }
1352
1355
  overlapsOnAxis(e, t) {
1353
- if (!this.rotation && !e.rotation)
1356
+ if (!this.rotation && (!("rotation" in e) || !e.rotation))
1354
1357
  return super.overlapsOnAxis(e, t);
1355
1358
  {
1356
- const s = (l, c) => Math.abs(l.x * c.x + l.y * c.y), i = ({ width: l, height: c, rotation: u }) => {
1357
- let d = u / ir;
1358
- d = -d % 180;
1359
- const f = d / 180 * Math.PI, m = { x: Math.cos(f), y: -Math.sin(f) }, p = { x: Math.sin(f), y: Math.cos(f) };
1359
+ const s = (l, c) => Math.abs(l.x * c.x + l.y * c.y), i = (l) => {
1360
+ const { width: c, height: u, rotation: d = 0 } = l;
1361
+ let f = d / ar;
1362
+ f = -f % 180;
1363
+ const m = f / 180 * Math.PI, p = { x: Math.cos(m), y: -Math.sin(m) }, _ = { x: Math.sin(m), y: Math.cos(m) };
1360
1364
  return {
1361
- axis: [m, p],
1362
- projectionRadius: (_) => l / 2 * s(_, m) + c / 2 * s(_, p)
1365
+ axis: [p, _],
1366
+ projectionRadius: (g) => c / 2 * s(g, p) + u / 2 * s(g, _)
1363
1367
  };
1364
1368
  }, a = i(this), o = i(e), n = {
1365
1369
  x: this.left + this.width / 2 - (e.left + e.width / 2),
@@ -1374,9 +1378,24 @@ class Lr extends ye {
1374
1378
  toCssStyle() {
1375
1379
  return {
1376
1380
  ...super.toCssStyle(),
1377
- transform: `rotate(${this.rotation / ir}deg)`
1381
+ transform: `rotate(${this.rotationDegrees}deg)`
1382
+ };
1383
+ }
1384
+ toArray() {
1385
+ return [...super.toArray(), this.rotation];
1386
+ }
1387
+ toJSON() {
1388
+ return {
1389
+ x: this.x,
1390
+ y: this.y,
1391
+ width: this.width,
1392
+ height: this.height,
1393
+ rotation: this.rotation
1378
1394
  };
1379
1395
  }
1396
+ clone() {
1397
+ return new Ot(this.toJSON());
1398
+ }
1380
1399
  }
1381
1400
  class ra extends _s {
1382
1401
  constructor(e = 0, t = 0, s = 0, i = 0, a = !1) {
@@ -1587,7 +1606,7 @@ var sa = Object.defineProperty, ms = (r, e, t, s) => {
1587
1606
  (o = r[a]) && (i = o(e, t, i) || i);
1588
1607
  return i && sa(e, t, i), i;
1589
1608
  };
1590
- class _r extends Pe {
1609
+ class mr extends Pe {
1591
1610
  _starting = !1;
1592
1611
  _nextDeltaTime = 0;
1593
1612
  _startedProcess;
@@ -1619,10 +1638,10 @@ class _r extends Pe {
1619
1638
  }
1620
1639
  ms([
1621
1640
  h({ fallback: 60 })
1622
- ], _r.prototype, "fps");
1641
+ ], mr.prototype, "fps");
1623
1642
  ms([
1624
1643
  h({ fallback: 1 })
1625
- ], _r.prototype, "speed");
1644
+ ], mr.prototype, "speed");
1626
1645
  var it = /* @__PURE__ */ ((r) => (r[r.elementArrayBuffer = 34963] = "elementArrayBuffer", r[r.arrayBuffer = 34962] = "arrayBuffer", r[r.uniformBuffer = 35345] = "uniformBuffer", r))(it || {});
1627
1646
  class ia {
1628
1647
  constructor(e) {
@@ -1632,12 +1651,12 @@ class ia {
1632
1651
  byteLength = 0;
1633
1652
  dirty = !0;
1634
1653
  }
1635
- var be = /* @__PURE__ */ ((r) => (r[r.mapRead = 1] = "mapRead", r[r.mapWrite = 2] = "mapWrite", r[r.copySrc = 4] = "copySrc", r[r.copyDst = 8] = "copyDst", r[r.index = 16] = "index", r[r.vertex = 32] = "vertex", r[r.uniform = 64] = "uniform", r[r.storage = 128] = "storage", r[r.indirect = 256] = "indirect", r[r.queryResolve = 512] = "queryResolve", r[r.static = 1024] = "static", r))(be || {}), aa = Object.defineProperty, gs = (r, e, t, s) => {
1654
+ var ye = /* @__PURE__ */ ((r) => (r[r.mapRead = 1] = "mapRead", r[r.mapWrite = 2] = "mapWrite", r[r.copySrc = 4] = "copySrc", r[r.copyDst = 8] = "copyDst", r[r.index = 16] = "index", r[r.vertex = 32] = "vertex", r[r.uniform = 64] = "uniform", r[r.storage = 128] = "storage", r[r.indirect = 256] = "indirect", r[r.queryResolve = 512] = "queryResolve", r[r.static = 1024] = "static", r))(ye || {}), aa = Object.defineProperty, gs = (r, e, t, s) => {
1636
1655
  for (var i = void 0, a = r.length - 1, o; a >= 0; a--)
1637
1656
  (o = r[a]) && (i = o(e, t, i) || i);
1638
1657
  return i && aa(e, t, i), i;
1639
1658
  };
1640
- class mr extends ss {
1659
+ class gr extends ss {
1641
1660
  screen = { x: 0, y: 0, width: 0, height: 0 };
1642
1661
  _updateProperty(e, t, s) {
1643
1662
  switch (super._updateProperty(e, t, s), e) {
@@ -1653,16 +1672,16 @@ class mr extends ss {
1653
1672
  }
1654
1673
  gs([
1655
1674
  h({ fallback: us })
1656
- ], mr.prototype, "pixelRatio");
1675
+ ], gr.prototype, "pixelRatio");
1657
1676
  gs([
1658
1677
  h({ internal: !0 })
1659
- ], mr.prototype, "view");
1660
- const Zt = /* @__PURE__ */ Object.create(null), Fr = /* @__PURE__ */ Object.create(null);
1678
+ ], gr.prototype, "view");
1679
+ const Jt = /* @__PURE__ */ Object.create(null), Fr = /* @__PURE__ */ Object.create(null);
1661
1680
  function oa(r, e) {
1662
1681
  let t = Fr[r];
1663
- return t === void 0 && (Zt[e] === void 0 && (Zt[e] = 1), Fr[r] = t = Zt[e]++), t;
1682
+ return t === void 0 && (Jt[e] === void 0 && (Jt[e] = 1), Fr[r] = t = Jt[e]++), t;
1664
1683
  }
1665
- class W extends he {
1684
+ class W extends ue {
1666
1685
  get _gl() {
1667
1686
  return this._renderer.gl;
1668
1687
  }
@@ -1694,7 +1713,7 @@ class na extends W {
1694
1713
  _createGlBuffer(e) {
1695
1714
  const t = this._gl, s = new ia(t.createBuffer());
1696
1715
  let i = it.arrayBuffer;
1697
- return e.usage & be.index ? i = it.elementArrayBuffer : e.usage & be.uniform && (i = it.uniformBuffer), s.target = i, this.glBuffers.set(e.instanceId, s), this.buffers.get(e.instanceId) || ("on" in e && (e.on("updateProperty", (a) => {
1716
+ return e.usage & ye.index ? i = it.elementArrayBuffer : e.usage & ye.uniform && (i = it.uniformBuffer), s.target = i, this.glBuffers.set(e.instanceId, s), this.buffers.get(e.instanceId) || ("on" in e && (e.on("updateProperty", (a) => {
1698
1717
  switch (a) {
1699
1718
  case "usage":
1700
1719
  case "data":
@@ -1716,7 +1735,7 @@ class na extends W {
1716
1735
  s.dirty = !1;
1717
1736
  const { _gl: i } = this, { usage: a, data: o } = e;
1718
1737
  i.bindBuffer(s.target, s.native);
1719
- const n = a & be.static ? i.STATIC_DRAW : i.DYNAMIC_DRAW;
1738
+ const n = a & ye.static ? i.STATIC_DRAW : i.DYNAMIC_DRAW;
1720
1739
  if (o)
1721
1740
  if (s.byteLength >= o.byteLength) {
1722
1741
  const l = o.length * o.BYTES_PER_ELEMENT;
@@ -1731,9 +1750,9 @@ class na extends W {
1731
1750
  super.reset(), this.buffers.clear(), this.glBuffers.clear();
1732
1751
  }
1733
1752
  }
1734
- let Jt;
1753
+ let Qt;
1735
1754
  function la() {
1736
- return Jt || (Jt = "mediump"), Jt;
1755
+ return Qt || (Qt = "mediump"), Qt;
1737
1756
  }
1738
1757
  function ca(r, e, t) {
1739
1758
  return e ? r : t ? (r = r.replace("out vec4 finalColor;", ""), `#ifdef GL_ES
@@ -1771,7 +1790,7 @@ ${r}`;
1771
1790
  function _a(r, e) {
1772
1791
  return e ? r.replace("#version 300 es", "") : r;
1773
1792
  }
1774
- const tt = /* @__PURE__ */ Object.create(null), Qt = {
1793
+ const tt = /* @__PURE__ */ Object.create(null), er = {
1775
1794
  stripVersion: _a,
1776
1795
  ensurePrecision: ha,
1777
1796
  addProgramDefines: ca,
@@ -1807,9 +1826,9 @@ class nt {
1807
1826
  addProgramDefines: i,
1808
1827
  insertVersion: i
1809
1828
  };
1810
- Object.keys(Qt).forEach((o) => {
1829
+ Object.keys(er).forEach((o) => {
1811
1830
  const n = a[o];
1812
- t = Qt[o](t, n, !0), s = Qt[o](s, n, !1);
1831
+ t = er[o](t, n, !0), s = er[o](s, n, !1);
1813
1832
  }), this.fragment = t, this.vertex = s, this.transformFeedbackVaryings = e.transformFeedbackVaryings, this.id = oa(`${s}:${t}`, "GlProgram");
1814
1833
  }
1815
1834
  destroy() {
@@ -1855,7 +1874,7 @@ const zr = {
1855
1874
  function Ct(r) {
1856
1875
  return zr[r] ?? zr.float32;
1857
1876
  }
1858
- function er(r) {
1877
+ function tr(r) {
1859
1878
  const e = Array.from({ length: r });
1860
1879
  for (let t = 0; t < e.length; t++)
1861
1880
  e[t] = !1;
@@ -1891,11 +1910,11 @@ function ma(r, e) {
1891
1910
  case "bool":
1892
1911
  return !1;
1893
1912
  case "bvec2":
1894
- return er(2 * e);
1913
+ return tr(2 * e);
1895
1914
  case "bvec3":
1896
- return er(3 * e);
1915
+ return tr(3 * e);
1897
1916
  case "bvec4":
1898
- return er(4 * e);
1917
+ return tr(4 * e);
1899
1918
  case "mat2":
1900
1919
  return new Float32Array([1, 0, 0, 1]);
1901
1920
  case "mat3":
@@ -2352,11 +2371,11 @@ ${Array.from({ length: e }, (l, c) => {
2352
2371
  })
2353
2372
  }, i = {
2354
2373
  instanceId: rt(),
2355
- usage: be.vertex,
2374
+ usage: ye.vertex,
2356
2375
  data: new Float32Array()
2357
2376
  }, a = {
2358
2377
  instanceId: rt(),
2359
- usage: be.index,
2378
+ usage: ye.index,
2360
2379
  data: new Uint32Array()
2361
2380
  }, o = {
2362
2381
  instanceId: rt(),
@@ -2398,36 +2417,36 @@ ${Array.from({ length: e }, (l, c) => {
2398
2417
  const d = [];
2399
2418
  let f = 0;
2400
2419
  for (let p = s.length, _ = { id: ++f }, g = [], v = /* @__PURE__ */ new Map(), w = 0, S = 0, O = 0; O < p; O++) {
2401
- const k = s[O].texture, me = O === p - 1;
2420
+ const k = s[O].texture, ge = O === p - 1;
2402
2421
  if (!k || v.has(k)) {
2403
- if (!me)
2422
+ if (!ge)
2404
2423
  continue;
2405
2424
  } else
2406
2425
  g.push(k), v.set(k, w++);
2407
- if (me || w >= i) {
2426
+ if (ge || w >= i) {
2408
2427
  _.textures = g, _.textureLocationMap = v, w = 0, _.start = u;
2409
- for (let ge = S; ge <= O; ge++) {
2428
+ for (let ve = S; ve <= O; ve++) {
2410
2429
  const {
2411
- indices: Or,
2412
- vertices: jt,
2413
- uvs: Dr = new Float32Array(0),
2430
+ indices: Dr,
2431
+ vertices: Wt,
2432
+ uvs: Ir = new Float32Array(0),
2414
2433
  size: ei = { width: 0, height: 0 },
2415
- texture: Ir,
2416
- blendMode: Mr = lt.normal,
2434
+ texture: Mr,
2435
+ blendMode: Nr = lt.normal,
2417
2436
  clipOutsideUv: ti,
2418
2437
  roundPixels: ri
2419
- } = s[ge];
2420
- S < ge && _.blendMode !== Mr && (_.size = u - _.start, d.push(_), S = ge, _ = { id: ++f }, _.textures = g, _.start = u);
2421
- const { width: Wt, height: qt } = ei, si = c / this._vertexSize, ii = (Ir ? v.get(Ir) : 255) ?? 255, ai = ri ? 1 : 0, oi = ti ? 1 : 0;
2438
+ } = s[ve];
2439
+ S < ve && _.blendMode !== Nr && (_.size = u - _.start, d.push(_), S = ve, _ = { id: ++f }, _.textures = g, _.start = u);
2440
+ const { width: qt, height: Yt } = ei, si = c / this._vertexSize, ii = (Mr ? v.get(Mr) : 255) ?? 255, ai = ri ? 1 : 0, oi = ti ? 1 : 0;
2422
2441
  let xt, wt;
2423
- for (let Yt = jt.length, J = 0; J < Yt; J += 2) {
2424
- xt = Dr[J], wt = Dr[J + 1], Wt > 0 && qt > 0 && (xt = Math.ceil(xt * Wt) / Wt, wt = Math.ceil(wt * qt) / qt), o[c++] = jt[J], o[c++] = jt[J + 1], o[c++] = xt, o[c++] = wt;
2442
+ for (let Kt = Wt.length, J = 0; J < Kt; J += 2) {
2443
+ xt = Ir[J], wt = Ir[J + 1], qt > 0 && Yt > 0 && (xt = Math.ceil(xt * qt) / qt, wt = Math.ceil(wt * Yt) / Yt), o[c++] = Wt[J], o[c++] = Wt[J + 1], o[c++] = xt, o[c++] = wt;
2425
2444
  const Pt = c * 4;
2426
2445
  n[Pt] = ii, n[Pt + 1] = oi, n[Pt + 2] = ai, n[Pt + 3] = 0, c++;
2427
2446
  }
2428
- for (let Yt = Or.length, J = 0; J < Yt; J++)
2429
- l[u++] = si + Or[J];
2430
- _.blendMode = Mr;
2447
+ for (let Kt = Dr.length, J = 0; J < Kt; J++)
2448
+ l[u++] = si + Dr[J];
2449
+ _.blendMode = Nr;
2431
2450
  }
2432
2451
  S = O + 1, _.size = u - _.start, d.push(_), _ = { id: ++f }, g = [], v = /* @__PURE__ */ new Map();
2433
2452
  }
@@ -2437,8 +2456,8 @@ ${Array.from({ length: e }, (l, c) => {
2437
2456
  for (let p = d.length, _ = 0; _ < p; _++) {
2438
2457
  const g = d[_], { start: v = 0, textures: w, textureLocationMap: S } = g;
2439
2458
  for (let O = w.length, k = 0; k < O; k++) {
2440
- const me = w[k], ge = S.get(me);
2441
- ge !== void 0 && this._renderer.texture.bind(me, ge);
2459
+ const ge = w[k], ve = S.get(ge);
2460
+ ve !== void 0 && this._renderer.texture.bind(ge, ve);
2442
2461
  }
2443
2462
  this._state.blendMode = g.blendMode, this._renderer.state.bind(this._state), m.draw({
2444
2463
  size: g.size,
@@ -2497,7 +2516,7 @@ class Ea extends W {
2497
2516
  "x" in s && this._renderer.scissor.pop(), "render" in s && (this._renderer.flush(), a !== 0 ? this._renderer.stencil.bind(D.renderingMaskRemove, a) : (this._renderer.clear(at.stencil), this._renderer.stencil.bind(D.disabled, a)), a--, s.render(this._renderer), this._renderer.flush(), this._renderer.stencil.bind(D.maskActive, a), this._renderer.colorMask.bind(15)), this._maskStackHash[i] = a;
2498
2517
  }
2499
2518
  }
2500
- var ar = /* @__PURE__ */ ((r) => (r[r.RGBA = 6408] = "RGBA", r[r.RGB = 6407] = "RGB", r[r.RG = 33319] = "RG", r[r.RED = 6403] = "RED", r[r.RGBA_INTEGER = 36249] = "RGBA_INTEGER", r[r.RGB_INTEGER = 36248] = "RGB_INTEGER", r[r.RG_INTEGER = 33320] = "RG_INTEGER", r[r.RED_INTEGER = 36244] = "RED_INTEGER", r[r.ALPHA = 6406] = "ALPHA", r[r.LUMINANCE = 6409] = "LUMINANCE", r[r.LUMINANCE_ALPHA = 6410] = "LUMINANCE_ALPHA", r[r.DEPTH_COMPONENT = 6402] = "DEPTH_COMPONENT", r[r.DEPTH_STENCIL = 34041] = "DEPTH_STENCIL", r))(ar || {}), bs = /* @__PURE__ */ ((r) => (r[r.TEXTURE_2D = 3553] = "TEXTURE_2D", r[r.TEXTURE_CUBE_MAP = 34067] = "TEXTURE_CUBE_MAP", r[r.TEXTURE_2D_ARRAY = 35866] = "TEXTURE_2D_ARRAY", r[r.TEXTURE_CUBE_MAP_POSITIVE_X = 34069] = "TEXTURE_CUBE_MAP_POSITIVE_X", r[r.TEXTURE_CUBE_MAP_NEGATIVE_X = 34070] = "TEXTURE_CUBE_MAP_NEGATIVE_X", r[r.TEXTURE_CUBE_MAP_POSITIVE_Y = 34071] = "TEXTURE_CUBE_MAP_POSITIVE_Y", r[r.TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y", r[r.TEXTURE_CUBE_MAP_POSITIVE_Z = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z", r[r.TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z", r))(bs || {}), y = /* @__PURE__ */ ((r) => (r[r.UNSIGNED_BYTE = 5121] = "UNSIGNED_BYTE", r[r.UNSIGNED_SHORT = 5123] = "UNSIGNED_SHORT", r[r.UNSIGNED_SHORT_5_6_5 = 33635] = "UNSIGNED_SHORT_5_6_5", r[r.UNSIGNED_SHORT_4_4_4_4 = 32819] = "UNSIGNED_SHORT_4_4_4_4", r[r.UNSIGNED_SHORT_5_5_5_1 = 32820] = "UNSIGNED_SHORT_5_5_5_1", r[r.UNSIGNED_INT = 5125] = "UNSIGNED_INT", r[r.UNSIGNED_INT_10F_11F_11F_REV = 35899] = "UNSIGNED_INT_10F_11F_11F_REV", r[r.UNSIGNED_INT_2_10_10_10_REV = 33640] = "UNSIGNED_INT_2_10_10_10_REV", r[r.UNSIGNED_INT_24_8 = 34042] = "UNSIGNED_INT_24_8", r[r.UNSIGNED_INT_5_9_9_9_REV = 35902] = "UNSIGNED_INT_5_9_9_9_REV", r[r.BYTE = 5120] = "BYTE", r[r.SHORT = 5122] = "SHORT", r[r.INT = 5124] = "INT", r[r.FLOAT = 5126] = "FLOAT", r[r.FLOAT_32_UNSIGNED_INT_24_8_REV = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV", r[r.HALF_FLOAT = 36193] = "HALF_FLOAT", r))(y || {});
2519
+ var or = /* @__PURE__ */ ((r) => (r[r.RGBA = 6408] = "RGBA", r[r.RGB = 6407] = "RGB", r[r.RG = 33319] = "RG", r[r.RED = 6403] = "RED", r[r.RGBA_INTEGER = 36249] = "RGBA_INTEGER", r[r.RGB_INTEGER = 36248] = "RGB_INTEGER", r[r.RG_INTEGER = 33320] = "RG_INTEGER", r[r.RED_INTEGER = 36244] = "RED_INTEGER", r[r.ALPHA = 6406] = "ALPHA", r[r.LUMINANCE = 6409] = "LUMINANCE", r[r.LUMINANCE_ALPHA = 6410] = "LUMINANCE_ALPHA", r[r.DEPTH_COMPONENT = 6402] = "DEPTH_COMPONENT", r[r.DEPTH_STENCIL = 34041] = "DEPTH_STENCIL", r))(or || {}), bs = /* @__PURE__ */ ((r) => (r[r.TEXTURE_2D = 3553] = "TEXTURE_2D", r[r.TEXTURE_CUBE_MAP = 34067] = "TEXTURE_CUBE_MAP", r[r.TEXTURE_2D_ARRAY = 35866] = "TEXTURE_2D_ARRAY", r[r.TEXTURE_CUBE_MAP_POSITIVE_X = 34069] = "TEXTURE_CUBE_MAP_POSITIVE_X", r[r.TEXTURE_CUBE_MAP_NEGATIVE_X = 34070] = "TEXTURE_CUBE_MAP_NEGATIVE_X", r[r.TEXTURE_CUBE_MAP_POSITIVE_Y = 34071] = "TEXTURE_CUBE_MAP_POSITIVE_Y", r[r.TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y", r[r.TEXTURE_CUBE_MAP_POSITIVE_Z = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z", r[r.TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z", r))(bs || {}), y = /* @__PURE__ */ ((r) => (r[r.UNSIGNED_BYTE = 5121] = "UNSIGNED_BYTE", r[r.UNSIGNED_SHORT = 5123] = "UNSIGNED_SHORT", r[r.UNSIGNED_SHORT_5_6_5 = 33635] = "UNSIGNED_SHORT_5_6_5", r[r.UNSIGNED_SHORT_4_4_4_4 = 32819] = "UNSIGNED_SHORT_4_4_4_4", r[r.UNSIGNED_SHORT_5_5_5_1 = 32820] = "UNSIGNED_SHORT_5_5_5_1", r[r.UNSIGNED_INT = 5125] = "UNSIGNED_INT", r[r.UNSIGNED_INT_10F_11F_11F_REV = 35899] = "UNSIGNED_INT_10F_11F_11F_REV", r[r.UNSIGNED_INT_2_10_10_10_REV = 33640] = "UNSIGNED_INT_2_10_10_10_REV", r[r.UNSIGNED_INT_24_8 = 34042] = "UNSIGNED_INT_24_8", r[r.UNSIGNED_INT_5_9_9_9_REV = 35902] = "UNSIGNED_INT_5_9_9_9_REV", r[r.BYTE = 5120] = "BYTE", r[r.SHORT = 5122] = "SHORT", r[r.INT = 5124] = "INT", r[r.FLOAT = 5126] = "FLOAT", r[r.FLOAT_32_UNSIGNED_INT_24_8_REV = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV", r[r.HALF_FLOAT = 36193] = "HALF_FLOAT", r))(y || {});
2501
2520
  class Sa {
2502
2521
  constructor(e) {
2503
2522
  this.native = e;
@@ -2507,8 +2526,8 @@ class Sa {
2507
2526
  height = -1;
2508
2527
  mipmap = !1;
2509
2528
  type = y.UNSIGNED_BYTE;
2510
- internalFormat = ar.RGBA;
2511
- format = ar.RGBA;
2529
+ internalFormat = or.RGBA;
2530
+ format = or.RGBA;
2512
2531
  }
2513
2532
  function Ta(r) {
2514
2533
  return {
@@ -2761,7 +2780,7 @@ const Ca = {
2761
2780
  "not-equal": 517,
2762
2781
  "greater-equal": 518,
2763
2782
  always: 519
2764
- }, tr = {
2783
+ }, rr = {
2765
2784
  "clamp-to-edge": 33071,
2766
2785
  repeat: 10497,
2767
2786
  "mirror-repeat": 33648
@@ -2778,7 +2797,7 @@ function Da(r, e, t, s, i, a, o, n) {
2778
2797
  compare: _
2779
2798
  } = r, g = a;
2780
2799
  if (!n || l !== "repeat" || c !== "repeat" || u !== "repeat") {
2781
- const v = tr[o ? "clamp-to-edge" : l], w = tr[o ? "clamp-to-edge" : c], S = tr[o ? "clamp-to-edge" : u];
2800
+ const v = rr[o ? "clamp-to-edge" : l], w = rr[o ? "clamp-to-edge" : c], S = rr[o ? "clamp-to-edge" : u];
2782
2801
  e[i](g, e.TEXTURE_WRAP_S, v), e[i](g, e.TEXTURE_WRAP_T, w), e.TEXTURE_WRAP_R && e[i](g, e.TEXTURE_WRAP_R, S);
2783
2802
  }
2784
2803
  if ((!n || d !== "linear") && e[i](g, e.TEXTURE_MAG_FILTER, Hr[d]), t) {
@@ -3386,7 +3405,7 @@ class Va extends W {
3386
3405
  }
3387
3406
  }
3388
3407
  class $a extends W {
3389
- current = new ye(0, 0, 0, 0);
3408
+ current = new ee(0, 0, 0, 0);
3390
3409
  install(e) {
3391
3410
  super.install(e), e.viewport = this;
3392
3411
  }
@@ -3594,7 +3613,7 @@ class Xa extends W {
3594
3613
  super.reset(), this.renderTargets.clear(), this.glRenderTargets.clear(), this.current = null, this._msaaSamples.length = 0;
3595
3614
  }
3596
3615
  }
3597
- class ja extends mr {
3616
+ class ja extends gr {
3598
3617
  contextLost = !1;
3599
3618
  _systems = [
3600
3619
  new ka(),
@@ -3755,23 +3774,23 @@ var qa = Object.defineProperty, ys = (r, e, t, s) => {
3755
3774
  (o = r[a]) && (i = o(e, t, i) || i);
3756
3775
  return i && qa(e, t, i), i;
3757
3776
  };
3758
- class We extends ue {
3777
+ class We extends de {
3759
3778
  constructor(e) {
3760
3779
  super(), this.setProperties(e);
3761
3780
  }
3762
3781
  }
3763
3782
  ys([
3764
- h({ fallback: be.index })
3783
+ h({ fallback: ye.index })
3765
3784
  ], We.prototype, "usage");
3766
3785
  ys([
3767
3786
  h({ default: () => new Uint32Array() })
3768
3787
  ], We.prototype, "data");
3769
- var Ya = Object.defineProperty, zt = (r, e, t, s) => {
3788
+ var Ya = Object.defineProperty, Gt = (r, e, t, s) => {
3770
3789
  for (var i = void 0, a = r.length - 1, o; a >= 0; a--)
3771
3790
  (o = r[a]) && (i = o(e, t, i) || i);
3772
3791
  return i && Ya(e, t, i), i;
3773
3792
  };
3774
- class ke extends ue {
3793
+ class ke extends de {
3775
3794
  constructor(e = {}) {
3776
3795
  super(), this.setProperties(e);
3777
3796
  }
@@ -3779,16 +3798,16 @@ class ke extends ue {
3779
3798
  e.flush(), t.activate(e, s), e.geometry.bind(this, t.glProgram), e.geometry.draw(), e.geometry.unbind();
3780
3799
  }
3781
3800
  }
3782
- zt([
3801
+ Gt([
3783
3802
  h({ fallback: "triangle-list" })
3784
3803
  ], ke.prototype, "topology");
3785
- zt([
3804
+ Gt([
3786
3805
  h({ default: () => ({}) })
3787
3806
  ], ke.prototype, "attributes");
3788
- zt([
3807
+ Gt([
3789
3808
  h({ default: () => new We() })
3790
3809
  ], ke.prototype, "indexBuffer");
3791
- zt([
3810
+ Gt([
3792
3811
  h({ fallback: 1 })
3793
3812
  ], ke.prototype, "instanceCount");
3794
3813
  var Ka = Object.defineProperty, xs = (r, e, t, s) => {
@@ -3796,13 +3815,13 @@ var Ka = Object.defineProperty, xs = (r, e, t, s) => {
3796
3815
  (o = r[a]) && (i = o(e, t, i) || i);
3797
3816
  return i && Ka(e, t, i), i;
3798
3817
  };
3799
- class xe extends ue {
3818
+ class xe extends de {
3800
3819
  constructor(e) {
3801
3820
  super(), this.setProperties(e);
3802
3821
  }
3803
3822
  }
3804
3823
  xs([
3805
- h({ fallback: be.vertex })
3824
+ h({ fallback: ye.vertex })
3806
3825
  ], xe.prototype, "usage");
3807
3826
  xs([
3808
3827
  h({ default: () => new Float32Array() })
@@ -3812,7 +3831,7 @@ var Za = Object.defineProperty, Ue = (r, e, t, s) => {
3812
3831
  (o = r[a]) && (i = o(e, t, i) || i);
3813
3832
  return i && Za(e, t, i), i;
3814
3833
  };
3815
- class H extends ue {
3834
+ class H extends de {
3816
3835
  constructor(e) {
3817
3836
  super(), this.setProperties(e);
3818
3837
  }
@@ -3868,7 +3887,7 @@ function eo() {
3868
3887
  tint: new Float32Array([1, 1, 1, 1])
3869
3888
  };
3870
3889
  }
3871
- class E extends ue {
3890
+ class E extends de {
3872
3891
  static instance = new this();
3873
3892
  glProgram;
3874
3893
  constructor(e = {}) {
@@ -3910,7 +3929,7 @@ function so(r) {
3910
3929
  }
3911
3930
  return Number(r);
3912
3931
  }
3913
- class Ot extends E {
3932
+ class Dt extends E {
3914
3933
  static RE = {
3915
3934
  getColor: /\sgetColor\s*\(/,
3916
3935
  getFromColor: /\sgetFromColor\s*\(/,
@@ -3927,8 +3946,8 @@ class Ot extends E {
3927
3946
  transform: !1,
3928
3947
  transition: !1
3929
3948
  };
3930
- for (const i in Ot.RE)
3931
- t[i] = Ot.RE[i].test(e);
3949
+ for (const i in Dt.RE)
3950
+ t[i] = Dt.RE[i].test(e);
3932
3951
  super({
3933
3952
  gl: {
3934
3953
  vertex: `attribute vec2 position;
@@ -3967,7 +3986,7 @@ void main(void) { gl_FragColor = transition(vUv); }` : ""}`
3967
3986
  });
3968
3987
  }
3969
3988
  }
3970
- class Dt extends E {
3989
+ class It extends E {
3971
3990
  static _instance;
3972
3991
  static get instance() {
3973
3992
  return this._instance ??= new this();
@@ -4005,7 +4024,7 @@ class P extends ke {
4005
4024
  static get instance() {
4006
4025
  return this._instance ??= new this();
4007
4026
  }
4008
- static draw(e, t = Dt.instance, s) {
4027
+ static draw(e, t = It.instance, s) {
4009
4028
  this.instance.draw(e, t, s);
4010
4029
  }
4011
4030
  constructor() {
@@ -4056,7 +4075,7 @@ var io = Object.defineProperty, Ee = (r, e, t, s) => {
4056
4075
  (o = r[a]) && (i = o(e, t, i) || i);
4057
4076
  return i && io(e, t, i), i;
4058
4077
  };
4059
- class te extends ue {
4078
+ class re extends de {
4060
4079
  get valid() {
4061
4080
  return !!(this.width && this.height);
4062
4081
  }
@@ -4069,34 +4088,34 @@ class te extends ue {
4069
4088
  }
4070
4089
  Ee([
4071
4090
  h({ fallback: !1 })
4072
- ], te.prototype, "isRoot");
4091
+ ], re.prototype, "isRoot");
4073
4092
  Ee([
4074
4093
  h({ fallback: 0 })
4075
- ], te.prototype, "x");
4094
+ ], re.prototype, "x");
4076
4095
  Ee([
4077
4096
  h({ fallback: 0 })
4078
- ], te.prototype, "y");
4097
+ ], re.prototype, "y");
4079
4098
  Ee([
4080
4099
  h({ fallback: 0 })
4081
- ], te.prototype, "width");
4100
+ ], re.prototype, "width");
4082
4101
  Ee([
4083
4102
  h({ fallback: 0 })
4084
- ], te.prototype, "height");
4103
+ ], re.prototype, "height");
4085
4104
  Ee([
4086
4105
  h({ fallback: 0 })
4087
- ], te.prototype, "mipLevel");
4106
+ ], re.prototype, "mipLevel");
4088
4107
  Ee([
4089
4108
  h({ fallback: !1 })
4090
- ], te.prototype, "msaa");
4109
+ ], re.prototype, "msaa");
4091
4110
  Ee([
4092
4111
  h({ default: () => [new x()] })
4093
- ], te.prototype, "colorTextures");
4112
+ ], re.prototype, "colorTextures");
4094
4113
  var ao = Object.defineProperty, N = (r, e, t, s) => {
4095
4114
  for (var i = void 0, a = r.length - 1, o; a >= 0; a--)
4096
4115
  (o = r[a]) && (i = o(e, t, i) || i);
4097
4116
  return i && ao(e, t, i), i;
4098
4117
  };
4099
- class x extends ue {
4118
+ class x extends de {
4100
4119
  static get EMPTY() {
4101
4120
  return new this({ width: 1, height: 1 });
4102
4121
  }
@@ -4143,7 +4162,7 @@ class x extends ue {
4143
4162
  switch (super._updateProperty(e, t, s), e) {
4144
4163
  case "width":
4145
4164
  case "height":
4146
- this.isPowerOfTwo = Ur(this.pixelWidth) && Ur(this.pixelHeight);
4165
+ this.isPowerOfTwo = Br(this.pixelWidth) && Br(this.pixelHeight);
4147
4166
  break;
4148
4167
  case "source":
4149
4168
  this.updateSize();
@@ -4211,7 +4230,7 @@ N([
4211
4230
  N([
4212
4231
  h({ fallback: !1 })
4213
4232
  ], x.prototype, "isPowerOfTwo");
4214
- class oo extends ue {
4233
+ class oo extends de {
4215
4234
  frames;
4216
4235
  frameIndex = 0;
4217
4236
  get currentFrame() {
@@ -4258,15 +4277,15 @@ class ws extends x {
4258
4277
  super._updateProperty(e, t, s);
4259
4278
  }
4260
4279
  }
4261
- class gr extends x {
4280
+ class vr extends x {
4262
4281
  static _cached = /* @__PURE__ */ new Map();
4263
4282
  static get(e) {
4264
- const t = new ae(e), s = t.toHex();
4283
+ const t = new oe(e), s = t.toHex();
4265
4284
  let i = this._cached.get(s);
4266
- return i || (i = new gr(t), this._cached.set(s, i)), i;
4285
+ return i || (i = new vr(t), this._cached.set(s, i)), i;
4267
4286
  }
4268
4287
  constructor(e) {
4269
- const t = e instanceof ae ? e : new ae(e);
4288
+ const t = e instanceof oe ? e : new oe(e);
4270
4289
  super({
4271
4290
  width: 1,
4272
4291
  height: 1,
@@ -4276,7 +4295,7 @@ class gr extends x {
4276
4295
  });
4277
4296
  }
4278
4297
  }
4279
- class Gt extends x {
4298
+ class Vt extends x {
4280
4299
  static test(e) {
4281
4300
  return li(e);
4282
4301
  }
@@ -4288,7 +4307,7 @@ class Gt extends x {
4288
4307
  if (!a)
4289
4308
  throw new Error("Failed to parse linear gradient, get canvas context is null.");
4290
4309
  const { angle: o = 0, stops: n } = e, l = t, c = s, u = l / 2, d = c / 2, f = (o + 90) * Math.PI / 180, m = Math.sin(f), p = -Math.cos(f), _ = Math.abs(l * Math.sin(f)) + Math.abs(c * Math.cos(f)), g = u - m * (_ / 2), v = d - p * (_ / 2), w = u + m * (_ / 2), S = d + p * (_ / 2), O = a.createLinearGradient(g, v, w, S);
4291
- for (const me of n) O.addColorStop(me.offset, me.color);
4310
+ for (const ge of n) O.addColorStop(ge.offset, ge.color);
4292
4311
  a.fillStyle = O, a.fillRect(0, 0, l, c);
4293
4312
  const k = a.getImageData(0, 0, i.width, i.height);
4294
4313
  return {
@@ -4300,7 +4319,7 @@ class Gt extends x {
4300
4319
  }
4301
4320
  constructor(e, t, s) {
4302
4321
  super(
4303
- Gt.linearGradient(e, t, s)
4322
+ Vt.linearGradient(e, t, s)
4304
4323
  );
4305
4324
  }
4306
4325
  }
@@ -4328,7 +4347,7 @@ function co(r) {
4328
4347
  playsinline: !!(r?.playsinline ?? !0)
4329
4348
  };
4330
4349
  }
4331
- const vr = class Es extends x {
4350
+ const br = class Es extends x {
4332
4351
  static mimeTypes = new Map(Object.entries({
4333
4352
  ogv: "video/ogg",
4334
4353
  mov: "video/quicktime",
@@ -4439,12 +4458,12 @@ const vr = class Es extends x {
4439
4458
  };
4440
4459
  Ps([
4441
4460
  h({ internal: !0, fallback: !0 })
4442
- ], vr.prototype, "autoUpdate");
4461
+ ], br.prototype, "autoUpdate");
4443
4462
  Ps([
4444
4463
  h({ internal: !0, fallback: 0 })
4445
- ], vr.prototype, "fps");
4446
- let ho = vr;
4447
- class br extends x {
4464
+ ], br.prototype, "fps");
4465
+ let ho = br;
4466
+ class yr extends x {
4448
4467
  //
4449
4468
  }
4450
4469
  class uo extends At {
@@ -4463,7 +4482,7 @@ class uo extends At {
4463
4482
  return e ? e instanceof x ? {
4464
4483
  texture: e
4465
4484
  } : {
4466
- texture: gr.get(e)
4485
+ texture: vr.get(e)
4467
4486
  } : {};
4468
4487
  }
4469
4488
  stroke(e) {
@@ -4476,7 +4495,7 @@ class uo extends At {
4476
4495
  t = this.style.stroke;
4477
4496
  break;
4478
4497
  case "object":
4479
- Nr(this.style.stroke) && (t = this.style.stroke.color);
4498
+ kr(this.style.stroke) && (t = this.style.stroke.color);
4480
4499
  break;
4481
4500
  }
4482
4501
  this._draws.push({
@@ -4511,7 +4530,7 @@ class uo extends At {
4511
4530
  t = this.style.fill;
4512
4531
  break;
4513
4532
  case "object":
4514
- Nr(this.style.fill) && (t = this.style.fill.color);
4533
+ kr(this.style.fill) && (t = this.style.fill.color);
4515
4534
  break;
4516
4535
  }
4517
4536
  this._draws.push({
@@ -4622,7 +4641,7 @@ class po extends Pe {
4622
4641
  return { internalKey: `____${e}` };
4623
4642
  }
4624
4643
  }
4625
- var _o = Object.defineProperty, mo = Object.getOwnPropertyDescriptor, de = (r, e, t, s) => {
4644
+ var _o = Object.defineProperty, mo = Object.getOwnPropertyDescriptor, fe = (r, e, t, s) => {
4626
4645
  for (var i = s > 1 ? void 0 : s ? mo(e, t) : e, a = r.length - 1, o; a >= 0; a--)
4627
4646
  (o = r[a]) && (i = (s ? o(e, t, i) : o(i)) || i);
4628
4647
  return s && i && _o(e, t, i), i;
@@ -4984,35 +5003,35 @@ let M = class extends Pe {
4984
5003
  static parse(r) {
4985
5004
  if (Array.isArray(r))
4986
5005
  return r.map((n) => this.parse(n));
4987
- const { is: e, meta: t = {}, children: s, ...i } = r, a = dr.get(e ?? t.inCanvasIs ?? "Node") ?? M, o = new a({ ...i, meta: t });
5006
+ const { is: e, meta: t = {}, children: s, ...i } = r, a = fr.get(e ?? t.inCanvasIs ?? "Node") ?? M, o = new a({ ...i, meta: t });
4988
5007
  return s?.forEach((n) => o.appendChild(this.parse(n))), o;
4989
5008
  }
4990
5009
  };
4991
- de([
5010
+ fe([
4992
5011
  h({ fallback: as() })
4993
5012
  ], M.prototype, "id", 2);
4994
- de([
5013
+ fe([
4995
5014
  h({ fallback: as() })
4996
5015
  ], M.prototype, "name", 2);
4997
- de([
5016
+ fe([
4998
5017
  h({ fallback: "inherit" })
4999
5018
  ], M.prototype, "processMode", 2);
5000
- de([
5019
+ fe([
5001
5020
  h({ fallback: "default" })
5002
5021
  ], M.prototype, "processSortMode", 2);
5003
- de([
5022
+ fe([
5004
5023
  h({ fallback: "inherit" })
5005
5024
  ], M.prototype, "renderMode", 2);
5006
- de([
5025
+ fe([
5007
5026
  h({ fallback: "inherit" })
5008
5027
  ], M.prototype, "inputMode", 2);
5009
- de([
5028
+ fe([
5010
5029
  h({ fallback: "default" })
5011
5030
  ], M.prototype, "internalMode", 2);
5012
- de([
5031
+ fe([
5013
5032
  h({ internal: !0 })
5014
5033
  ], M.prototype, "mask", 2);
5015
- M = de([
5034
+ M = fe([
5016
5035
  b("Node")
5017
5036
  ], M);
5018
5037
  var vo = Object.defineProperty, bo = Object.getOwnPropertyDescriptor, qe = (r, e, t, s) => {
@@ -5038,7 +5057,7 @@ let q = class extends M {
5038
5057
  return this._parent?.globalStartTime ?? 0;
5039
5058
  }
5040
5059
  get currentTime() {
5041
- return ne(this._currentTime, 0, this._duration);
5060
+ return le(this._currentTime, 0, this._duration);
5042
5061
  }
5043
5062
  get globalStartTime() {
5044
5063
  return this._globalStartTime;
@@ -5050,7 +5069,7 @@ let q = class extends M {
5050
5069
  return this._globalStartTime + this._duration;
5051
5070
  }
5052
5071
  get currentTimeProgress() {
5053
- return this._duration ? ne(this._currentTime / this._duration, 0, 1) : 0;
5072
+ return this._duration ? le(this._currentTime / this._duration, 0, 1) : 0;
5054
5073
  }
5055
5074
  isInsideTimeRange() {
5056
5075
  const r = this._currentTime;
@@ -5085,7 +5104,7 @@ qe([
5085
5104
  q = qe([
5086
5105
  b("TimelineNode")
5087
5106
  ], q);
5088
- var yo = Object.defineProperty, xo = Object.getOwnPropertyDescriptor, Vt = (r, e, t, s) => {
5107
+ var yo = Object.defineProperty, xo = Object.getOwnPropertyDescriptor, $t = (r, e, t, s) => {
5089
5108
  for (var i = s > 1 ? void 0 : s ? xo(e, t) : e, a = r.length - 1, o; a >= 0; a--)
5090
5109
  (o = r[a]) && (i = (s ? o(e, t, i) : o(i)) || i);
5091
5110
  return s && i && yo(e, t, i), i;
@@ -5153,7 +5172,7 @@ let Ge = class extends q {
5153
5172
  }
5154
5173
  _updateGlobalOpacity() {
5155
5174
  this._parentGlobalOpacity = this.getParent()?.opacity;
5156
- const r = ne(this.opacity, 0, 1) * (this._parentGlobalOpacity ?? 1);
5175
+ const r = le(this.opacity, 0, 1) * (this._parentGlobalOpacity ?? 1);
5157
5176
  this._globalOpacity !== r && (this._globalOpacity = r, this.requestPaint());
5158
5177
  }
5159
5178
  _draw() {
@@ -5214,7 +5233,7 @@ let Ge = class extends q {
5214
5233
  const e = this._tree?.pixelate;
5215
5234
  this._batchables.forEach((t) => {
5216
5235
  let s = t.texture;
5217
- s instanceof br && (s = this._handleViewportTexture(t)), r.batch2D.render({
5236
+ s instanceof yr && (s = this._handleViewportTexture(t)), r.batch2D.render({
5218
5237
  ...t,
5219
5238
  roundPixels: this._tree?.roundPixels,
5220
5239
  size: e ? t.size : void 0,
@@ -5223,16 +5242,16 @@ let Ge = class extends q {
5223
5242
  }), super._render(r);
5224
5243
  }
5225
5244
  };
5226
- Vt([
5245
+ $t([
5227
5246
  h()
5228
5247
  ], Ge.prototype, "blendMode", 2);
5229
- Vt([
5248
+ $t([
5230
5249
  h({ internal: !0, fallback: !0 })
5231
5250
  ], Ge.prototype, "visible", 2);
5232
- Vt([
5251
+ $t([
5233
5252
  h({ internal: !0, fallback: 1 })
5234
5253
  ], Ge.prototype, "opacity", 2);
5235
- Ge = Vt([
5254
+ Ge = $t([
5236
5255
  b("CanvasItem")
5237
5256
  ], Ge);
5238
5257
  var wo = Object.defineProperty, Po = Object.getOwnPropertyDescriptor, Be = (r, e, t, s) => {
@@ -5244,8 +5263,8 @@ let X = class extends M {
5244
5263
  canvasTransform = new I();
5245
5264
  renderTargetIndex = 0;
5246
5265
  renderTargets = [
5247
- new te(),
5248
- new te()
5266
+ new re(),
5267
+ new re()
5249
5268
  ];
5250
5269
  get valid() {
5251
5270
  return !!(this.width && this.height);
@@ -5292,7 +5311,7 @@ let X = class extends M {
5292
5311
  return !1;
5293
5312
  }
5294
5313
  activateWithCopy(r, e) {
5295
- this.resize(e.width, e.height), this.activate(r) && (r.clear(), e.texture.activate(r, 0), P.draw(r, Dt.instance, {
5314
+ this.resize(e.width, e.height), this.activate(r) && (r.clear(), e.texture.activate(r, 0), P.draw(r, It.instance, {
5296
5315
  sampler: 0
5297
5316
  }));
5298
5317
  }
@@ -5307,7 +5326,7 @@ let X = class extends M {
5307
5326
  this.renderStart(r), super.render(r, e), this.renderEnd(r, t);
5308
5327
  }
5309
5328
  getRect() {
5310
- return new ye(this.x, this.y, this.width, this.height);
5329
+ return new ee(this.x, this.y, this.width, this.height);
5311
5330
  }
5312
5331
  toCanvasGlobal(r, e) {
5313
5332
  return this.canvasTransform.applyAffineInverse(r, e);
@@ -5367,7 +5386,7 @@ let T = class extends q {
5367
5386
  _updateProperty(r, e, t) {
5368
5387
  switch (super._updateProperty(r, e, t), r) {
5369
5388
  case "glsl": {
5370
- const s = new Ot(e);
5389
+ const s = new Dt(e);
5371
5390
  !this.effectMode && s.has.transition && (this.effectMode = "transition"), this.material = s;
5372
5391
  break;
5373
5392
  }
@@ -5406,7 +5425,7 @@ let T = class extends q {
5406
5425
  }
5407
5426
  }
5408
5427
  getRect() {
5409
- return new ye(this._rect);
5428
+ return new ee(this._rect);
5410
5429
  }
5411
5430
  _processParent() {
5412
5431
  const r = this._tree?.renderStack;
@@ -5591,10 +5610,10 @@ var Ro = Object.defineProperty, Ao = Object.getOwnPropertyDescriptor, Ye = (r, e
5591
5610
  (o = r[a]) && (i = (s ? o(e, t, i) : o(i)) || i);
5592
5611
  return s && i && Ro(e, t, i), i;
5593
5612
  };
5594
- let le = class extends M {
5613
+ let ce = class extends M {
5595
5614
  static from(r, e = !1) {
5596
5615
  const [t, s] = r ? Array.isArray(r) ? r : [0, r] : [];
5597
- return new le({
5616
+ return new ce({
5598
5617
  startTime: t,
5599
5618
  endTime: s,
5600
5619
  loop: e
@@ -5616,7 +5635,7 @@ let le = class extends M {
5616
5635
  addTime(r) {
5617
5636
  const e = this.startTime, t = this.endTime;
5618
5637
  let s = this.currentTime;
5619
- return s = s + r, this.loop && s > t && (s = e + s % t), s = ne(s, e, t), this.currentTime = s, this.emit("updateCurrentTime", s, r), this;
5638
+ return s = s + r, this.loop && s > t && (s = e + s % t), s = le(s, e, t), this.currentTime = s, this.emit("updateCurrentTime", s, r), this;
5620
5639
  }
5621
5640
  _process(r) {
5622
5641
  super._process(r), this.paused || this.addTime(r);
@@ -5624,28 +5643,28 @@ let le = class extends M {
5624
5643
  };
5625
5644
  Ye([
5626
5645
  h({ fallback: 0 })
5627
- ], le.prototype, "startTime", 2);
5646
+ ], ce.prototype, "startTime", 2);
5628
5647
  Ye([
5629
5648
  h({ fallback: 0 })
5630
- ], le.prototype, "currentTime", 2);
5649
+ ], ce.prototype, "currentTime", 2);
5631
5650
  Ye([
5632
5651
  h({ fallback: Number.MAX_SAFE_INTEGER })
5633
- ], le.prototype, "endTime", 2);
5652
+ ], ce.prototype, "endTime", 2);
5634
5653
  Ye([
5635
5654
  h({ fallback: !1 })
5636
- ], le.prototype, "loop", 2);
5655
+ ], ce.prototype, "loop", 2);
5637
5656
  Ye([
5638
5657
  h({ fallback: !1 })
5639
- ], le.prototype, "paused", 2);
5640
- le = Ye([
5658
+ ], ce.prototype, "paused", 2);
5659
+ ce = Ye([
5641
5660
  b("Timeline")
5642
- ], le);
5661
+ ], ce);
5643
5662
  var Co = Object.getOwnPropertyDescriptor, Oo = (r, e, t, s) => {
5644
5663
  for (var i = s > 1 ? void 0 : s ? Co(e, t) : e, a = r.length - 1, o; a >= 0; a--)
5645
5664
  (o = r[a]) && (i = o(i) || i);
5646
5665
  return i;
5647
5666
  };
5648
- let or = class extends X {
5667
+ let nr = class extends X {
5649
5668
  constructor() {
5650
5669
  super(), this.renderTargets.forEach((r) => r.isRoot = !0);
5651
5670
  }
@@ -5656,19 +5675,19 @@ let or = class extends X {
5656
5675
  this.finish(r), super.flush(r);
5657
5676
  }
5658
5677
  };
5659
- or = Oo([
5678
+ nr = Oo([
5660
5679
  b("Window")
5661
- ], or);
5680
+ ], nr);
5662
5681
  var Do = Object.defineProperty, Se = (r, e, t, s) => {
5663
5682
  for (var i = void 0, a = r.length - 1, o; a >= 0; a--)
5664
5683
  (o = r[a]) && (i = o(e, t, i) || i);
5665
5684
  return i && Do(e, t, i), i;
5666
5685
  };
5667
- class fe extends _r {
5686
+ class pe extends mr {
5668
5687
  input = new Ji();
5669
5688
  renderStack = new To();
5670
- root = new or().setTree(this);
5671
- _backgroundColor = new ae();
5689
+ root = new nr().setTree(this);
5690
+ _backgroundColor = new oe();
5672
5691
  _previousViewport;
5673
5692
  _currentViewport;
5674
5693
  getPreviousViewport() {
@@ -5713,28 +5732,28 @@ class fe extends _r {
5713
5732
  }
5714
5733
  Se([
5715
5734
  h({ alias: "root.msaa" })
5716
- ], fe.prototype, "msaa");
5735
+ ], pe.prototype, "msaa");
5717
5736
  Se([
5718
5737
  h({ fallback: !1 })
5719
- ], fe.prototype, "pixelate");
5738
+ ], pe.prototype, "pixelate");
5720
5739
  Se([
5721
5740
  h({ fallback: !1 })
5722
- ], fe.prototype, "roundPixels");
5741
+ ], pe.prototype, "roundPixels");
5723
5742
  Se([
5724
5743
  h()
5725
- ], fe.prototype, "backgroundColor");
5744
+ ], pe.prototype, "backgroundColor");
5726
5745
  Se([
5727
5746
  h({ internal: !0, fallback: !1 })
5728
- ], fe.prototype, "debug");
5747
+ ], pe.prototype, "debug");
5729
5748
  Se([
5730
5749
  h({ internal: !0, fallback: !1 })
5731
- ], fe.prototype, "processPaused");
5750
+ ], pe.prototype, "processPaused");
5732
5751
  Se([
5733
5752
  h({ internal: !0, default: () => xi })
5734
- ], fe.prototype, "fonts");
5753
+ ], pe.prototype, "fonts");
5735
5754
  Se([
5736
- h({ internal: !0, default: () => new le() })
5737
- ], fe.prototype, "timeline");
5755
+ h({ internal: !0, default: () => new ce() })
5756
+ ], pe.prototype, "timeline");
5738
5757
  var Io = Object.getOwnPropertyDescriptor, Mo = (r, e, t, s) => {
5739
5758
  for (var i = s > 1 ? void 0 : s ? Io(e, t) : e, a = r.length - 1, o; a >= 0; a--)
5740
5759
  (o = r[a]) && (i = o(i) || i);
@@ -5752,7 +5771,7 @@ Ve = Mo([
5752
5771
  duration: 2e3
5753
5772
  })
5754
5773
  ], Ve);
5755
- var No = Object.defineProperty, ko = Object.getOwnPropertyDescriptor, yr = (r, e, t, s) => {
5774
+ var No = Object.defineProperty, ko = Object.getOwnPropertyDescriptor, xr = (r, e, t, s) => {
5756
5775
  for (var i = s > 1 ? void 0 : s ? ko(e, t) : e, a = r.length - 1, o; a >= 0; a--)
5757
5776
  (o = r[a]) && (i = (s ? o(e, t, i) : o(i)) || i);
5758
5777
  return s && i && No(e, t, i), i;
@@ -5824,21 +5843,21 @@ let De = class extends Ge {
5824
5843
  return this.globalTransform.apply(r, e);
5825
5844
  }
5826
5845
  };
5827
- yr([
5846
+ xr([
5828
5847
  h({ internal: !0, fallback: 0 })
5829
5848
  ], De.prototype, "rotation", 2);
5830
- yr([
5849
+ xr([
5831
5850
  h({ internal: !0, fallback: 0 })
5832
5851
  ], De.prototype, "globalRotation", 2);
5833
- De = yr([
5852
+ De = xr([
5834
5853
  b("Node2D")
5835
5854
  ], De);
5836
- var Uo = Object.defineProperty, Bo = Object.getOwnPropertyDescriptor, xr = (r, e, t, s) => {
5855
+ var Uo = Object.defineProperty, Bo = Object.getOwnPropertyDescriptor, wr = (r, e, t, s) => {
5837
5856
  for (var i = s > 1 ? void 0 : s ? Bo(e, t) : e, a = r.length - 1, o; a >= 0; a--)
5838
5857
  (o = r[a]) && (i = (s ? o(e, t, i) : o(i)) || i);
5839
5858
  return s && i && Uo(e, t, i), i;
5840
5859
  };
5841
- let It = class extends De {
5860
+ let Mt = class extends De {
5842
5861
  canvasTransform = new I();
5843
5862
  _screenOffset = { x: 0, y: 0 };
5844
5863
  _zoom = new C(1, 1).on("update", () => this.updateTransform());
@@ -5885,8 +5904,8 @@ let It = class extends De {
5885
5904
  }
5886
5905
  setZoom(r, e = r) {
5887
5906
  return this._zoom.set(
5888
- ne(r, this._minZoom.x, this._maxZoom.x),
5889
- ne(e, this._minZoom.y, this._maxZoom.y)
5907
+ le(r, this._minZoom.x, this._maxZoom.x),
5908
+ le(e, this._minZoom.y, this._maxZoom.y)
5890
5909
  ), this;
5891
5910
  }
5892
5911
  _input(r, e) {
@@ -5953,18 +5972,18 @@ let It = class extends De {
5953
5972
  };
5954
5973
  }
5955
5974
  };
5956
- xr([
5975
+ wr([
5957
5976
  h({ internal: !0, fallback: !1 })
5958
- ], It.prototype, "spaceKey", 2);
5959
- xr([
5977
+ ], Mt.prototype, "spaceKey", 2);
5978
+ wr([
5960
5979
  h({ internal: !0, fallback: !1 })
5961
- ], It.prototype, "grabbing", 2);
5962
- It = xr([
5980
+ ], Mt.prototype, "grabbing", 2);
5981
+ Mt = wr([
5963
5982
  b("Camera2D", {
5964
5983
  processMode: "disabled",
5965
5984
  renderMode: "disabled"
5966
5985
  })
5967
- ], It);
5986
+ ], Mt);
5968
5987
  const Wr = {
5969
5988
  brightness: 1,
5970
5989
  contrast: 1,
@@ -5979,7 +5998,7 @@ function vc(r) {
5979
5998
  const e = new ps();
5980
5999
  if (r === "none")
5981
6000
  return e;
5982
- const t = Lt(r).reduce((s, { name: i, args: a }) => (s[i] = a[0].normalizedIntValue, s), {});
6001
+ const t = Ft(r).reduce((s, { name: i, args: a }) => (s[i] = a[0].normalizedIntValue, s), {});
5983
6002
  Object.keys(Wr).forEach((s) => {
5984
6003
  t[s] = t[s] ?? Wr[s];
5985
6004
  });
@@ -6015,7 +6034,7 @@ function vc(r) {
6015
6034
  return e;
6016
6035
  }
6017
6036
  function Lo(r, e, t, s = new I()) {
6018
- return r = !r || r === "none" ? "" : r, Lt(r, { width: e, height: t }).reverse().forEach(({ name: i, args: a }) => {
6037
+ return r = !r || r === "none" ? "" : r, Ft(r, { width: e, height: t }).reverse().forEach(({ name: i, args: a }) => {
6019
6038
  const o = a.map((n) => n.normalizedIntValue);
6020
6039
  switch (i) {
6021
6040
  case "translate":
@@ -6101,7 +6120,7 @@ function Fo(r) {
6101
6120
  }
6102
6121
  });
6103
6122
  }
6104
- var Ss = Object.defineProperty, zo = Object.getOwnPropertyDescriptor, Go = (r, e, t) => e in r ? Ss(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, pe = (r, e, t, s) => {
6123
+ var Ss = Object.defineProperty, zo = Object.getOwnPropertyDescriptor, Go = (r, e, t) => e in r ? Ss(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, _e = (r, e, t, s) => {
6105
6124
  for (var i = s > 1 ? void 0 : s ? zo(e, t) : e, a = r.length - 1, o; a >= 0; a--)
6106
6125
  (o = r[a]) && (i = (s ? o(e, t, i) : o(i)) || i);
6107
6126
  return s && i && Ss(e, t, i), i;
@@ -6163,31 +6182,31 @@ void main(void) {
6163
6182
  }`
6164
6183
  }
6165
6184
  }));
6166
- pe([
6185
+ _e([
6167
6186
  h({ fallback: 1 })
6168
6187
  ], j.prototype, "saturation", 2);
6169
- pe([
6188
+ _e([
6170
6189
  h({ fallback: 1 })
6171
6190
  ], j.prototype, "contrast", 2);
6172
- pe([
6191
+ _e([
6173
6192
  h({ fallback: 1 })
6174
6193
  ], j.prototype, "brightness", 2);
6175
- pe([
6194
+ _e([
6176
6195
  h({ fallback: 1 })
6177
6196
  ], j.prototype, "red", 2);
6178
- pe([
6197
+ _e([
6179
6198
  h({ fallback: 1 })
6180
6199
  ], j.prototype, "green", 2);
6181
- pe([
6200
+ _e([
6182
6201
  h({ fallback: 1 })
6183
6202
  ], j.prototype, "blue", 2);
6184
- pe([
6203
+ _e([
6185
6204
  h({ fallback: 1 })
6186
6205
  ], j.prototype, "alpha", 2);
6187
- pe([
6206
+ _e([
6188
6207
  h({ fallback: 1 })
6189
6208
  ], j.prototype, "gamma", 2);
6190
- j = pe([
6209
+ j = _e([
6191
6210
  b("ColorAdjustEffect")
6192
6211
  ], j);
6193
6212
  var Ts = Object.defineProperty, $o = Object.getOwnPropertyDescriptor, Ho = (r, e, t) => e in r ? Ts(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Rs = (r, e, t, s) => {
@@ -6210,7 +6229,7 @@ let $e = class extends T {
6210
6229
  apply(r, e) {
6211
6230
  if (!this.filter)
6212
6231
  return;
6213
- const t = Lt(this.filter), s = this._colorMatrix.identity();
6232
+ const t = Ft(this.filter), s = this._colorMatrix.identity();
6214
6233
  t.forEach(({ name: i, args: a }) => {
6215
6234
  const o = a.map((n) => n.normalizedIntValue);
6216
6235
  switch (i) {
@@ -6281,14 +6300,14 @@ Rs([
6281
6300
  $e = Rs([
6282
6301
  b("ColorFilterEffect")
6283
6302
  ], $e);
6284
- var As = Object.defineProperty, jo = Object.getOwnPropertyDescriptor, Wo = (r, e, t) => e in r ? As(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, wr = (r, e, t, s) => {
6303
+ var As = Object.defineProperty, jo = Object.getOwnPropertyDescriptor, Wo = (r, e, t) => e in r ? As(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Pr = (r, e, t, s) => {
6285
6304
  for (var i = s > 1 ? void 0 : s ? jo(e, t) : e, a = r.length - 1, o; a >= 0; a--)
6286
6305
  (o = r[a]) && (i = (s ? o(e, t, i) : o(i)) || i);
6287
6306
  return s && i && As(e, t, i), i;
6288
6307
  }, qo = (r, e, t) => Wo(r, e + "", t);
6289
6308
  const ot = 50;
6290
6309
  let He = class extends T {
6291
- _color = new ae();
6310
+ _color = new oe();
6292
6311
  constructor(r, e = []) {
6293
6312
  super(), this.setProperties(r).append(e);
6294
6313
  }
@@ -6357,22 +6376,22 @@ void main(void) {
6357
6376
  }`
6358
6377
  }
6359
6378
  }));
6360
- wr([
6379
+ Pr([
6361
6380
  h({ default: () => [] })
6362
6381
  ], He.prototype, "colors", 2);
6363
- wr([
6382
+ Pr([
6364
6383
  h({ fallback: 0.5 })
6365
6384
  ], He.prototype, "alpha", 2);
6366
- He = wr([
6385
+ He = Pr([
6367
6386
  b("ColorOverlayEffect")
6368
6387
  ], He);
6369
- var Cs = Object.defineProperty, Yo = Object.getOwnPropertyDescriptor, Ko = (r, e, t) => e in r ? Cs(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Pr = (r, e, t, s) => {
6388
+ var Cs = Object.defineProperty, Yo = Object.getOwnPropertyDescriptor, Ko = (r, e, t) => e in r ? Cs(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Er = (r, e, t, s) => {
6370
6389
  for (var i = s > 1 ? void 0 : s ? Yo(e, t) : e, a = r.length - 1, o; a >= 0; a--)
6371
6390
  (o = r[a]) && (i = (s ? o(e, t, i) : o(i)) || i);
6372
6391
  return s && i && Cs(e, t, i), i;
6373
6392
  }, Zo = (r, e, t) => Ko(r, e + "", t);
6374
6393
  let Xe = class extends T {
6375
- _color = new ae();
6394
+ _color = new oe();
6376
6395
  constructor(r, e = []) {
6377
6396
  super(), this.setProperties(r).append(e);
6378
6397
  }
@@ -6426,23 +6445,23 @@ void main(void) {
6426
6445
  }`
6427
6446
  }
6428
6447
  }));
6429
- Pr([
6448
+ Er([
6430
6449
  h({ default: () => [] })
6431
6450
  ], Xe.prototype, "colors", 2);
6432
- Pr([
6451
+ Er([
6433
6452
  h({ fallback: 0.5 })
6434
6453
  ], Xe.prototype, "epsilon", 2);
6435
- Xe = Pr([
6454
+ Xe = Er([
6436
6455
  b("ColorRemoveEffect")
6437
6456
  ], Xe);
6438
- var Os = Object.defineProperty, Jo = Object.getOwnPropertyDescriptor, Qo = (r, e, t) => e in r ? Os(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Er = (r, e, t, s) => {
6457
+ var Os = Object.defineProperty, Jo = Object.getOwnPropertyDescriptor, Qo = (r, e, t) => e in r ? Os(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Sr = (r, e, t, s) => {
6439
6458
  for (var i = s > 1 ? void 0 : s ? Jo(e, t) : e, a = r.length - 1, o; a >= 0; a--)
6440
6459
  (o = r[a]) && (i = (s ? o(e, t, i) : o(i)) || i);
6441
6460
  return s && i && Os(e, t, i), i;
6442
6461
  }, en = (r, e, t) => Qo(r, e + "", t);
6443
6462
  const st = 50;
6444
6463
  let je = class extends T {
6445
- _color = new ae();
6464
+ _color = new oe();
6446
6465
  constructor(r, e = []) {
6447
6466
  super(), this.setProperties(r).append(e);
6448
6467
  }
@@ -6516,13 +6535,13 @@ void main(void) {
6516
6535
  }`
6517
6536
  }
6518
6537
  }));
6519
- Er([
6538
+ Sr([
6520
6539
  h({ default: () => [] })
6521
6540
  ], je.prototype, "colors", 2);
6522
- Er([
6541
+ Sr([
6523
6542
  h({ fallback: 0.05 })
6524
6543
  ], je.prototype, "epsilon", 2);
6525
- je = Er([
6544
+ je = Sr([
6526
6545
  b("ColorReplaceEffect")
6527
6546
  ], je);
6528
6547
  const tn = `precision highp float;
@@ -6773,7 +6792,7 @@ Te([
6773
6792
  Y = Te([
6774
6793
  b("DrawboardEffect")
6775
6794
  ], Y);
6776
- var Is = Object.defineProperty, on = Object.getOwnPropertyDescriptor, nn = (r, e, t) => e in r ? Is(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Sr = (r, e, t, s) => {
6795
+ var Is = Object.defineProperty, on = Object.getOwnPropertyDescriptor, nn = (r, e, t) => e in r ? Is(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Tr = (r, e, t, s) => {
6777
6796
  for (var i = s > 1 ? void 0 : s ? on(e, t) : e, a = r.length - 1, o; a >= 0; a--)
6778
6797
  (o = r[a]) && (i = (s ? o(e, t, i) : o(i)) || i);
6779
6798
  return s && i && Is(e, t, i), i;
@@ -6813,7 +6832,7 @@ void main(void) {
6813
6832
  gl_FragColor += texture2D(sampler, vUv[8]) * 0.028532;
6814
6833
  }
6815
6834
  }`;
6816
- let ce = class extends T {
6835
+ let he = class extends T {
6817
6836
  constructor(r, e = []) {
6818
6837
  super(), this.setProperties(r).append(e);
6819
6838
  }
@@ -6821,21 +6840,21 @@ let ce = class extends T {
6821
6840
  const t = 1 / e.width, s = 1 / e.height, i = Math.max(this.quality, 1);
6822
6841
  for (let a = 0; a < i; a++)
6823
6842
  e.redraw(r, () => {
6824
- P.draw(r, ce.materialX, {
6843
+ P.draw(r, he.materialX, {
6825
6844
  sampler: 0,
6826
6845
  uStrength: t * (this.strength / i)
6827
6846
  });
6828
6847
  });
6829
6848
  for (let a = 0; a < i; a++)
6830
6849
  e.redraw(r, () => {
6831
- P.draw(r, ce.materialY, {
6850
+ P.draw(r, he.materialY, {
6832
6851
  sampler: 0,
6833
6852
  uStrength: s * (this.strength / i)
6834
6853
  });
6835
6854
  });
6836
6855
  }
6837
6856
  };
6838
- Ms(ce, "materialX", new E({
6857
+ Ms(he, "materialX", new E({
6839
6858
  gl: {
6840
6859
  vertex: `attribute vec2 position;
6841
6860
  attribute vec2 uv;
@@ -6857,7 +6876,7 @@ void main(void) {
6857
6876
  fragment: Ns
6858
6877
  }
6859
6878
  }));
6860
- Ms(ce, "materialY", new E({
6879
+ Ms(he, "materialY", new E({
6861
6880
  gl: {
6862
6881
  vertex: `attribute vec2 position;
6863
6882
  attribute vec2 uv;
@@ -6879,30 +6898,30 @@ void main(void) {
6879
6898
  fragment: Ns
6880
6899
  }
6881
6900
  }));
6882
- Sr([
6901
+ Tr([
6883
6902
  h({ fallback: 4 })
6884
- ], ce.prototype, "strength", 2);
6885
- Sr([
6903
+ ], he.prototype, "strength", 2);
6904
+ Tr([
6886
6905
  h({ fallback: 3 })
6887
- ], ce.prototype, "quality", 2);
6888
- ce = Sr([
6906
+ ], he.prototype, "quality", 2);
6907
+ he = Tr([
6889
6908
  b("GaussianBlurEffect")
6890
- ], ce);
6909
+ ], he);
6891
6910
  var ks = Object.defineProperty, ln = Object.getOwnPropertyDescriptor, cn = (r, e, t) => e in r ? ks(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Ke = (r, e, t, s) => {
6892
6911
  for (var i = s > 1 ? void 0 : s ? ln(e, t) : e, a = r.length - 1, o; a >= 0; a--)
6893
6912
  (o = r[a]) && (i = (s ? o(e, t, i) : o(i)) || i);
6894
6913
  return s && i && ks(e, t, i), i;
6895
6914
  }, hn = (r, e, t) => cn(r, e + "", t);
6896
- let re = class extends T {
6897
- blurEffect = new ce();
6915
+ let se = class extends T {
6916
+ blurEffect = new he();
6898
6917
  viewport3 = new X();
6899
- _color = new ae();
6918
+ _color = new oe();
6900
6919
  constructor(r, e = []) {
6901
6920
  super(), this.setProperties(r).append(e);
6902
6921
  }
6903
6922
  apply(r, e) {
6904
6923
  this.viewport3.activateWithCopy(r, e), this.viewport3.redraw(r, () => {
6905
- this._color.value = this.color, P.draw(r, re.material, {
6924
+ this._color.value = this.color, P.draw(r, se.material, {
6906
6925
  sampler: 0,
6907
6926
  uAlpha: this._color.a,
6908
6927
  uColor: this._color.toArray().slice(0, 3),
@@ -6910,15 +6929,15 @@ let re = class extends T {
6910
6929
  uInputSize: [e.width, e.height, 1 / e.width, 1 / e.height]
6911
6930
  });
6912
6931
  }), this.blurEffect.strength = this.blur, this.blurEffect.apply(r, this.viewport3), e.redraw(r, () => {
6913
- this.viewport3.texture.activate(r, 1), P.draw(r, Dt.instance, {
6932
+ this.viewport3.texture.activate(r, 1), P.draw(r, It.instance, {
6914
6933
  sampler: 1
6915
- }), this.shadowOnly || P.draw(r, Dt.instance, {
6934
+ }), this.shadowOnly || P.draw(r, It.instance, {
6916
6935
  sampler: 0
6917
6936
  }), r.texture.unbind(1);
6918
6937
  });
6919
6938
  }
6920
6939
  };
6921
- hn(re, "material", new E({
6940
+ hn(se, "material", new E({
6922
6941
  gl: {
6923
6942
  vertex: `precision mediump float;
6924
6943
  attribute vec2 position;
@@ -6946,22 +6965,22 @@ void main(void) {
6946
6965
  }));
6947
6966
  Ke([
6948
6967
  h({ fallback: "#000000FF" })
6949
- ], re.prototype, "color", 2);
6968
+ ], se.prototype, "color", 2);
6950
6969
  Ke([
6951
6970
  h({ fallback: 4 })
6952
- ], re.prototype, "blur", 2);
6971
+ ], se.prototype, "blur", 2);
6953
6972
  Ke([
6954
6973
  h({ fallback: 4 })
6955
- ], re.prototype, "offsetX", 2);
6974
+ ], se.prototype, "offsetX", 2);
6956
6975
  Ke([
6957
6976
  h({ fallback: 4 })
6958
- ], re.prototype, "offsetY", 2);
6977
+ ], se.prototype, "offsetY", 2);
6959
6978
  Ke([
6960
6979
  h({ fallback: !1 })
6961
- ], re.prototype, "shadowOnly", 2);
6962
- re = Ke([
6980
+ ], se.prototype, "shadowOnly", 2);
6981
+ se = Ke([
6963
6982
  b("DropShadowEffect")
6964
- ], re);
6983
+ ], se);
6965
6984
  var Us = Object.defineProperty, un = Object.getOwnPropertyDescriptor, dn = (r, e, t) => e in r ? Us(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Bs = (r, e, t, s) => {
6966
6985
  for (var i = s > 1 ? void 0 : s ? un(e, t) : e, a = r.length - 1, o; a >= 0; a--)
6967
6986
  (o = r[a]) && (i = (s ? o(e, t, i) : o(i)) || i);
@@ -7015,7 +7034,7 @@ Bs([
7015
7034
  ct = Bs([
7016
7035
  b("EmbossEffect")
7017
7036
  ], ct);
7018
- var Ls = Object.defineProperty, pn = Object.getOwnPropertyDescriptor, _n = (r, e, t) => e in r ? Ls(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, se = (r, e, t, s) => {
7037
+ var Ls = Object.defineProperty, pn = Object.getOwnPropertyDescriptor, _n = (r, e, t) => e in r ? Ls(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, ie = (r, e, t, s) => {
7019
7038
  for (var i = s > 1 ? void 0 : s ? pn(e, t) : e, a = r.length - 1, o; a >= 0; a--)
7020
7039
  (o = r[a]) && (i = (s ? o(e, t, i) : o(i)) || i);
7021
7040
  return s && i && Ls(e, t, i), i;
@@ -7168,34 +7187,34 @@ void main(void) {
7168
7187
  }`
7169
7188
  }
7170
7189
  }));
7171
- se([
7190
+ ie([
7172
7191
  h({ fallback: 10 })
7173
7192
  ], G.prototype, "slices", 2);
7174
- se([
7193
+ ie([
7175
7194
  h({ fallback: 512 })
7176
7195
  ], G.prototype, "sampleSize", 2);
7177
- se([
7196
+ ie([
7178
7197
  h({ fallback: 100 })
7179
7198
  ], G.prototype, "offset", 2);
7180
- se([
7199
+ ie([
7181
7200
  h({ fallback: 0 })
7182
7201
  ], G.prototype, "direction", 2);
7183
- se([
7202
+ ie([
7184
7203
  h({ fallback: 2 })
7185
7204
  ], G.prototype, "fillMode", 2);
7186
- se([
7205
+ ie([
7187
7206
  h({ fallback: 0 })
7188
7207
  ], G.prototype, "seed", 2);
7189
- se([
7208
+ ie([
7190
7209
  h({ default: () => [2, 2] })
7191
7210
  ], G.prototype, "red", 2);
7192
- se([
7211
+ ie([
7193
7212
  h({ default: () => [-10, 4] })
7194
7213
  ], G.prototype, "green", 2);
7195
- se([
7214
+ ie([
7196
7215
  h({ default: () => [10, -4] })
7197
7216
  ], G.prototype, "blue", 2);
7198
- G = se([
7217
+ G = ie([
7199
7218
  b("GlitchEffect")
7200
7219
  ], G);
7201
7220
  var Fs = Object.defineProperty, gn = Object.getOwnPropertyDescriptor, vn = (r, e, t) => e in r ? Fs(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Re = (r, e, t, s) => {
@@ -7393,7 +7412,7 @@ Re([
7393
7412
  K = Re([
7394
7413
  b("GodrayEffect")
7395
7414
  ], K);
7396
- var xn = Object.defineProperty, wn = Object.getOwnPropertyDescriptor, $t = (r, e, t, s) => {
7415
+ var xn = Object.defineProperty, wn = Object.getOwnPropertyDescriptor, Ht = (r, e, t, s) => {
7397
7416
  for (var i = s > 1 ? void 0 : s ? wn(e, t) : e, a = r.length - 1, o; a >= 0; a--)
7398
7417
  (o = r[a]) && (i = (s ? o(e, t, i) : o(i)) || i);
7399
7418
  return s && i && xn(e, t, i), i;
@@ -7477,19 +7496,19 @@ void main() {
7477
7496
  });
7478
7497
  }
7479
7498
  };
7480
- $t([
7499
+ Ht([
7481
7500
  h({ fallback: 4 })
7482
7501
  ], ht.prototype, "strength", 2);
7483
- $t([
7502
+ Ht([
7484
7503
  h({ fallback: 3 })
7485
7504
  ], ht.prototype, "quality", 2);
7486
- $t([
7505
+ Ht([
7487
7506
  h({ default: () => [1, 1] })
7488
7507
  ], ht.prototype, "pixelSize", 2);
7489
- ht = $t([
7508
+ ht = Ht([
7490
7509
  b("KawaseBlurEffect")
7491
7510
  ], ht);
7492
- var zs = Object.defineProperty, Sn = Object.getOwnPropertyDescriptor, Tn = (r, e, t) => e in r ? zs(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Tr = (r, e, t, s) => {
7511
+ var zs = Object.defineProperty, Sn = Object.getOwnPropertyDescriptor, Tn = (r, e, t) => e in r ? zs(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Rr = (r, e, t, s) => {
7493
7512
  for (var i = s > 1 ? void 0 : s ? Sn(e, t) : e, a = r.length - 1, o; a >= 0; a--)
7494
7513
  (o = r[a]) && (i = (s ? o(e, t, i) : o(i)) || i);
7495
7514
  return s && i && zs(e, t, i), i;
@@ -7556,13 +7575,13 @@ void main(void) {
7556
7575
  }`
7557
7576
  }
7558
7577
  }));
7559
- Tr([
7578
+ Rr([
7560
7579
  h({ internal: !0 })
7561
7580
  ], Ie.prototype, "texture", 2);
7562
- Tr([
7581
+ Rr([
7563
7582
  h({ fallback: "" })
7564
7583
  ], Ie.prototype, "image", 2);
7565
- Ie = Tr([
7584
+ Ie = Rr([
7566
7585
  b("MaskEffect")
7567
7586
  ], Ie);
7568
7587
  var Gs = Object.defineProperty, An = Object.getOwnPropertyDescriptor, Cn = (r, e, t) => e in r ? Gs(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Ae = (r, e, t, s) => {
@@ -7614,7 +7633,7 @@ let L = class extends T {
7614
7633
  )).toFixed(7)
7615
7634
  );
7616
7635
  }
7617
- _color = new ae();
7636
+ _color = new oe();
7618
7637
  constructor(r, e = []) {
7619
7638
  super(), this.setProperties(r).append(e), this.material = new E({
7620
7639
  gl: {
@@ -7905,7 +7924,7 @@ const R = {
7905
7924
  // Display.None
7906
7925
  contents: 2
7907
7926
  // Display.Contents
7908
- }, nr = {
7927
+ }, lr = {
7909
7928
  inherit: 0,
7910
7929
  // Direction.Inherit
7911
7930
  ltr: 1,
@@ -7961,7 +7980,7 @@ const R = {
7961
7980
  "content-box": 1
7962
7981
  // BoxSizing.ContentBox
7963
7982
  };
7964
- class Rr {
7983
+ class Ar {
7965
7984
  constructor(e) {
7966
7985
  this._element = e;
7967
7986
  }
@@ -7970,7 +7989,7 @@ class Rr {
7970
7989
  const { loadYoga: e } = await import("yoga-layout/load");
7971
7990
  this._yoga = await e();
7972
7991
  }
7973
- _node = Rr._yoga?.Node.create();
7992
+ _node = Ar._yoga?.Node.create();
7974
7993
  get _style() {
7975
7994
  return this._element.style;
7976
7995
  }
@@ -8017,7 +8036,7 @@ class Rr {
8017
8036
  break;
8018
8037
  case "direction":
8019
8038
  i.setDirection(
8020
- t ? nr[t] : nr.inherit
8039
+ t ? lr[t] : lr.inherit
8021
8040
  );
8022
8041
  break;
8023
8042
  case "display":
@@ -8135,7 +8154,7 @@ class Rr {
8135
8154
  }
8136
8155
  }
8137
8156
  }
8138
- function Mt(r, e) {
8157
+ function Nt(r, e) {
8139
8158
  const { x: t, y: s, width: i, height: a } = e;
8140
8159
  let o = !1;
8141
8160
  const n = new I().translate(-t, -s).scale(1 / i, 1 / a);
@@ -8221,7 +8240,7 @@ class F extends Pe {
8221
8240
  }
8222
8241
  async loadTexture() {
8223
8242
  if (this.linearGradient || this.radialGradient)
8224
- this.texture = new Gt(
8243
+ this.texture = new Vt(
8225
8244
  this.linearGradient ?? this.radialGradient,
8226
8245
  this.parent.size.width,
8227
8246
  this.parent.size.height
@@ -8248,9 +8267,9 @@ class F extends Pe {
8248
8267
  let i = {
8249
8268
  size: { width: e, height: t }
8250
8269
  };
8251
- this.image === "viewport" ? s.fillStyle = new br() : (i = {
8270
+ this.image === "viewport" ? s.fillStyle = new yr() : (i = {
8252
8271
  ...i,
8253
- ...Mt(this, { x: 0, y: 0, width: e, height: t })
8272
+ ...Nt(this, { x: 0, y: 0, width: e, height: t })
8254
8273
  }, s.fillStyle = this.animatedTexture?.currentFrame.texture ?? this.texture ?? this.color ?? "#000000FF"), s.fill(i);
8255
8274
  }
8256
8275
  _getFrameCurrentTime() {
@@ -8382,8 +8401,8 @@ class Ze extends F {
8382
8401
  }
8383
8402
  draw() {
8384
8403
  const { width: e, height: t } = this.parent.size, s = this.parent.context;
8385
- this.image === "viewport" ? s.strokeStyle = new br() : s.strokeStyle = this.texture ?? this.color ?? "#000000FF", s.lineWidth = this.width || 1, s.lineCap = this.lineCap, s.lineJoin = this.lineJoin, s.stroke({
8386
- ...Mt(this, { x: 0, y: 0, width: e, height: t })
8404
+ this.image === "viewport" ? s.strokeStyle = new yr() : s.strokeStyle = this.texture ?? this.color ?? "#000000FF", s.lineWidth = this.width || 1, s.lineCap = this.lineCap, s.lineJoin = this.lineJoin, s.stroke({
8405
+ ...Nt(this, { x: 0, y: 0, width: e, height: t })
8387
8406
  });
8388
8407
  }
8389
8408
  }
@@ -8429,7 +8448,7 @@ class Je extends Pe {
8429
8448
  updateEffect() {
8430
8449
  const e = "__$shadow";
8431
8450
  let t = this.parent.getNode(e);
8432
- this.blur || this.offsetX || this.offsetY ? (t || (t = new re({ name: e }), this.parent.appendChild(t, "back")), t.setProperties(this.getProperties())) : t && this.parent.removeChild(t);
8451
+ this.blur || this.offsetX || this.offsetY ? (t || (t = new se({ name: e }), this.parent.appendChild(t, "back")), t.setProperties(this.getProperties())) : t && this.parent.removeChild(t);
8433
8452
  }
8434
8453
  }
8435
8454
  vt([
@@ -8488,14 +8507,14 @@ class Qe extends Pe {
8488
8507
  }
8489
8508
  const [t, s, i, a] = e;
8490
8509
  this._path2DSet.paths.forEach((o) => {
8491
- o.applyTransform(new kr().translate(-t, -s).scale(1 / i, 1 / a));
8510
+ o.applyTransform(new Ur().translate(-t, -s).scale(1 / i, 1 / a));
8492
8511
  });
8493
8512
  }
8494
8513
  draw(e = !1) {
8495
8514
  if (!e && this.enabled && this._path2DSet.paths.length) {
8496
8515
  const t = this.parent.context, { width: s, height: i } = this.parent.size;
8497
8516
  this._path2DSet.paths.forEach((a) => {
8498
- t.addPath(a.clone().applyTransform(new kr().scale(s, i)));
8517
+ t.addPath(a.clone().applyTransform(new Ur().scale(s, i)));
8499
8518
  });
8500
8519
  } else
8501
8520
  this._drawRect();
@@ -8520,7 +8539,7 @@ bt([
8520
8539
  bt([
8521
8540
  h()
8522
8541
  ], Qe.prototype, "paths");
8523
- class lr extends ue {
8542
+ class cr extends de {
8524
8543
  constructor(e) {
8525
8544
  super(), this.setProperties(e);
8526
8545
  }
@@ -8533,13 +8552,13 @@ const ts = {
8533
8552
  height: 0
8534
8553
  };
8535
8554
  for (const r in ts)
8536
- rs(lr, r, { fallback: ts[r] });
8537
- var jn = Object.defineProperty, _e = (r, e, t, s) => {
8555
+ rs(cr, r, { fallback: ts[r] });
8556
+ var jn = Object.defineProperty, me = (r, e, t, s) => {
8538
8557
  for (var i = void 0, a = r.length - 1, o; a >= 0; a--)
8539
8558
  (o = r[a]) && (i = o(e, t, i) || i);
8540
8559
  return i && jn(e, t, i), i;
8541
8560
  };
8542
- class ie extends Pe {
8561
+ class ae extends Pe {
8543
8562
  constructor(e) {
8544
8563
  super(), this.parent = e, this.base = new Ri(), this.base.setPropertyAccessor(this);
8545
8564
  }
@@ -8585,17 +8604,17 @@ class ie extends Pe {
8585
8604
  const i = [];
8586
8605
  if (t.fragments.forEach((a, o) => {
8587
8606
  if (a.characters.length) {
8588
- const n = Kt.from(
8607
+ const n = Zt.from(
8589
8608
  ...a.characters.map((l) => l.compatibleGlyphBox)
8590
8609
  );
8591
8610
  this._updateTexture(`${s}.${o}.fill`, a.fill, n), this._updateTexture(`${s}.${o}.outline`, a.outline, n), i.push(n);
8592
8611
  }
8593
8612
  }), i.length) {
8594
- const a = Kt.from(...i);
8613
+ const a = Zt.from(...i);
8595
8614
  this._updateTexture(`${s}.fill`, t.fill, a), this._updateTexture(`${s}.outline`, t.outline, a), e.push(a);
8596
8615
  }
8597
8616
  }), e.length) {
8598
- const t = Kt.from(...e);
8617
+ const t = Zt.from(...e);
8599
8618
  this._updateTexture("fill", this.fill, t), this._updateTexture("outline", this.outline, t);
8600
8619
  }
8601
8620
  }
@@ -8606,7 +8625,7 @@ class ie extends Pe {
8606
8625
  }), this.parent.requestRender());
8607
8626
  }
8608
8627
  async _loadTexture(e, t) {
8609
- return e.linearGradient || e.radialGradient ? new Gt(
8628
+ return e.linearGradient || e.radialGradient ? new Vt(
8610
8629
  e.linearGradient ?? e.radialGradient,
8611
8630
  t.width,
8612
8631
  t.height
@@ -8645,7 +8664,7 @@ class ie extends Pe {
8645
8664
  if (typeof s.style.fill == "object") {
8646
8665
  const n = s.style.fill, l = this._textureMap.get(`${o}.${a}.fill`) ?? this._textureMap.get(`${o}.fill`) ?? this._textureMap.get("fill");
8647
8666
  n.enabled !== !1 && (l || n.color) && (e.addPath(s), e.style = { ...s.style }, e.fillStyle = l?.texture ?? n.color, e.fill({
8648
- ...Mt(
8667
+ ...Nt(
8649
8668
  n,
8650
8669
  l?.box ?? {
8651
8670
  x: 0,
@@ -8664,7 +8683,7 @@ class ie extends Pe {
8664
8683
  if (typeof s.style.stroke == "object") {
8665
8684
  const n = s.style.stroke, l = this._textureMap.get(`${o}.${a}.outline`) ?? this._textureMap.get(`${o}.outline`) ?? this._textureMap.get("outline");
8666
8685
  n.enabled !== !1 && (l || n.color) && (n.width === void 0 || n.width) && (e.addPath(s), e.style = { ...s.style }, e.lineWidth = n.width || 1, e.strokeStyle = l?.texture ?? n.color, e.lineCap = n.lineCap, e.lineJoin = n.lineJoin, e.stroke({
8667
- ...Mt(
8686
+ ...Nt(
8668
8687
  n,
8669
8688
  l?.box ?? {
8670
8689
  x: 0,
@@ -8712,47 +8731,47 @@ class ie extends Pe {
8712
8731
  }
8713
8732
  }
8714
8733
  }
8715
- _e([
8734
+ me([
8716
8735
  h({ fallback: !0 })
8717
- ], ie.prototype, "enabled");
8718
- _e([
8736
+ ], ae.prototype, "enabled");
8737
+ me([
8719
8738
  h({ fallback: () => [] })
8720
- ], ie.prototype, "content");
8721
- _e([
8739
+ ], ae.prototype, "content");
8740
+ me([
8722
8741
  h({ alias: "parent.style.json" })
8723
- ], ie.prototype, "style");
8724
- _e([
8742
+ ], ae.prototype, "style");
8743
+ me([
8725
8744
  h()
8726
- ], ie.prototype, "effects");
8727
- _e([
8745
+ ], ae.prototype, "effects");
8746
+ me([
8728
8747
  h()
8729
- ], ie.prototype, "fill");
8730
- _e([
8748
+ ], ae.prototype, "fill");
8749
+ me([
8731
8750
  h()
8732
- ], ie.prototype, "outline");
8733
- _e([
8751
+ ], ae.prototype, "outline");
8752
+ me([
8734
8753
  h({ alias: "base.measureDom" })
8735
- ], ie.prototype, "measureDom");
8736
- _e([
8754
+ ], ae.prototype, "measureDom");
8755
+ me([
8737
8756
  h({ alias: "base.fonts" })
8738
- ], ie.prototype, "fonts");
8739
- _e([
8757
+ ], ae.prototype, "fonts");
8758
+ me([
8740
8759
  h({ fallback: "auto" })
8741
- ], ie.prototype, "drawMode");
8760
+ ], ae.prototype, "drawMode");
8742
8761
  var Wn = Object.defineProperty, qn = Object.getOwnPropertyDescriptor, qs = (r, e, t, s) => {
8743
8762
  for (var i = s > 1 ? void 0 : s ? qn(e, t) : e, a = r.length - 1, o; a >= 0; a--)
8744
8763
  (o = r[a]) && (i = (s ? o(e, t, i) : o(i)) || i);
8745
8764
  return s && i && Wn(e, t, i), i;
8746
8765
  };
8747
8766
  const Yn = new Set(Object.keys(bi())), Kn = new Set(Object.keys(vi()));
8748
- let ee = class extends De {
8749
- _flex = new Rr(this);
8767
+ let te = class extends De {
8768
+ _flex = new Ar(this);
8750
8769
  size = new C().on("update", () => {
8751
8770
  this.onUpdateStyleProperty("transform", this.style.transform, void 0), this.onUpdateStyleProperty("transformOrigin", this.style.transformOrigin, void 0), this.updateGlobalTransform(), this.requestRender();
8752
8771
  });
8753
8772
  _allowPointerEvents = !0;
8754
8773
  _overflowHidden = !1;
8755
- _style = new lr().on("updateProperty", (...r) => {
8774
+ _style = new cr().on("updateProperty", (...r) => {
8756
8775
  this.onUpdateStyleProperty(r[0], r[1], r[2]);
8757
8776
  });
8758
8777
  get style() {
@@ -8796,7 +8815,7 @@ let ee = class extends De {
8796
8815
  set foreground(r) {
8797
8816
  this._foreground.resetProperties().setProperties(r);
8798
8817
  }
8799
- _text = new ie(this);
8818
+ _text = new ae(this);
8800
8819
  get text() {
8801
8820
  return this._text;
8802
8821
  }
@@ -8812,19 +8831,19 @@ let ee = class extends De {
8812
8831
  }
8813
8832
  _styleFilter;
8814
8833
  constructor(r, e = []) {
8815
- super(), this.style = new lr(), this.setProperties(r).append(e);
8834
+ super(), this.style = new cr(), this.setProperties(r).append(e);
8816
8835
  }
8817
8836
  _treeEnter(r) {
8818
8837
  super._treeEnter(r), this._text.isValid() && this._text.update();
8819
8838
  }
8820
8839
  _parented(r) {
8821
- super._parented(r), r instanceof ee && r._flex._node && this._flex._node && r._flex._node.insertChild(
8840
+ super._parented(r), r instanceof te && r._flex._node && this._flex._node && r._flex._node.insertChild(
8822
8841
  this._flex._node,
8823
8842
  r._flex._node.getChildCount()
8824
8843
  );
8825
8844
  }
8826
8845
  _unparented(r) {
8827
- super._unparented(r), r instanceof ee && r._flex?._node && this._flex._node && r._flex._node.removeChild(this._flex._node);
8846
+ super._unparented(r), r instanceof te && r._flex?._node && this._flex._node && r._flex._node.removeChild(this._flex._node);
8828
8847
  }
8829
8848
  setProperties(r) {
8830
8849
  if (r) {
@@ -8861,7 +8880,7 @@ let ee = class extends De {
8861
8880
  this.size.height = Number(e);
8862
8881
  break;
8863
8882
  case "rotate":
8864
- this.rotation = e * ir;
8883
+ this.rotation = e * ar;
8865
8884
  break;
8866
8885
  case "scaleX":
8867
8886
  this.scale.x = e, this.text.isValid() && (e ^ t) < 0 && this.requestRender();
@@ -8940,13 +8959,13 @@ let ee = class extends De {
8940
8959
  const r = this.layoutMode;
8941
8960
  switch (r) {
8942
8961
  case "inherit":
8943
- return this.parent instanceof ee ? this.parent.getGlobalLayoutMode() : "absolute";
8962
+ return this.parent instanceof te ? this.parent.getGlobalLayoutMode() : "absolute";
8944
8963
  default:
8945
8964
  return r;
8946
8965
  }
8947
8966
  }
8948
8967
  updateLayout() {
8949
- if (this.calculateLayout(void 0, void 0, nr.ltr), this._flex._node) {
8968
+ if (this.calculateLayout(void 0, void 0, lr.ltr), this._flex._node) {
8950
8969
  const { left: r, top: e, width: t, height: s } = this._flex._node.getComputedLayout();
8951
8970
  this.position.x = r, this.position.y = e, this.size.x = t, this.size.y = s;
8952
8971
  }
@@ -8984,25 +9003,25 @@ let ee = class extends De {
8984
9003
  ];
8985
9004
  }
8986
9005
  getAabb() {
8987
- return new ye(
9006
+ return new ee(
8988
9007
  this._getPointArray().map((r) => this.transform.apply(r))
8989
9008
  );
8990
9009
  }
8991
9010
  getGlobalAabb() {
8992
- return new ye(
9011
+ return new ee(
8993
9012
  this._getPointArray().map((r) => this.globalTransform.apply(r))
8994
9013
  );
8995
9014
  }
8996
9015
  getObb() {
8997
9016
  const r = this.pivot, e = this.transform.apply(r).sub(r);
8998
- return new Lr(
9017
+ return new Ot(
8999
9018
  this._getPointArray().map((t) => (t.x += e.x, t.y += e.y, t)),
9000
9019
  this.rotation
9001
9020
  );
9002
9021
  }
9003
9022
  getGlobalObb() {
9004
9023
  const r = this.pivot, e = this.globalTransform.apply(r).sub(r);
9005
- return new Lr(
9024
+ return new Ot(
9006
9025
  this._getPointArray().map((t) => (t.x += e.x, t.y += e.y, t)),
9007
9026
  this.globalRotation
9008
9027
  );
@@ -9096,11 +9115,11 @@ let ee = class extends De {
9096
9115
  };
9097
9116
  qs([
9098
9117
  h({ fallback: "inherit" })
9099
- ], ee.prototype, "layoutMode", 2);
9100
- ee = qs([
9118
+ ], te.prototype, "layoutMode", 2);
9119
+ te = qs([
9101
9120
  b("Element2D")
9102
- ], ee);
9103
- class Ys extends ee {
9121
+ ], te);
9122
+ class Ys extends te {
9104
9123
  texture;
9105
9124
  constructor(e, t = []) {
9106
9125
  super(), this.setProperties(e).append(t);
@@ -9114,7 +9133,7 @@ var Zn = Object.defineProperty, Jn = Object.getOwnPropertyDescriptor, Ks = (r, e
9114
9133
  (o = r[a]) && (i = (s ? o(e, t, i) : o(i)) || i);
9115
9134
  return s && i && Zn(e, t, i), i;
9116
9135
  };
9117
- let cr = class extends Ys {
9136
+ let hr = class extends Ys {
9118
9137
  texture = new ws();
9119
9138
  animation;
9120
9139
  constructor(r, e = []) {
@@ -9146,16 +9165,16 @@ let cr = class extends Ys {
9146
9165
  };
9147
9166
  Ks([
9148
9167
  h({ fallback: "" })
9149
- ], cr.prototype, "src", 2);
9150
- cr = Ks([
9168
+ ], hr.prototype, "src", 2);
9169
+ hr = Ks([
9151
9170
  b("Lottie2D")
9152
- ], cr);
9171
+ ], hr);
9153
9172
  var Qn = Object.defineProperty, el = (r, e, t, s) => {
9154
9173
  for (var i = void 0, a = r.length - 1, o; a >= 0; a--)
9155
9174
  (o = r[a]) && (i = o(e, t, i) || i);
9156
9175
  return i && Qn(e, t, i), i;
9157
9176
  };
9158
- class tl extends ee {
9177
+ class tl extends te {
9159
9178
  constructor(e, t = []) {
9160
9179
  super(), this.setProperties(e).append(t);
9161
9180
  }
@@ -9186,7 +9205,7 @@ var rl = Object.defineProperty, sl = Object.getOwnPropertyDescriptor, Zs = (r, e
9186
9205
  (o = r[a]) && (i = (s ? o(e, t, i) : o(i)) || i);
9187
9206
  return s && i && rl(e, t, i), i;
9188
9207
  };
9189
- let hr = class extends Ys {
9208
+ let ur = class extends Ys {
9190
9209
  get videoDuration() {
9191
9210
  return (this.texture?.duration ?? 0) * 1e3;
9192
9211
  }
@@ -9223,11 +9242,11 @@ let hr = class extends Ys {
9223
9242
  };
9224
9243
  Zs([
9225
9244
  h({ fallback: "" })
9226
- ], hr.prototype, "src", 2);
9227
- hr = Zs([
9245
+ ], ur.prototype, "src", 2);
9246
+ ur = Zs([
9228
9247
  b("Video2D")
9229
- ], hr);
9230
- var il = Object.defineProperty, al = Object.getOwnPropertyDescriptor, Ht = (r, e, t, s) => {
9248
+ ], ur);
9249
+ var il = Object.defineProperty, al = Object.getOwnPropertyDescriptor, Xt = (r, e, t, s) => {
9231
9250
  for (var i = s > 1 ? void 0 : s ? al(e, t) : e, a = r.length - 1, o; a >= 0; a--)
9232
9251
  (o = r[a]) && (i = (s ? o(e, t, i) : o(i)) || i);
9233
9252
  return s && i && il(e, t, i), i;
@@ -9254,7 +9273,7 @@ function yt(r, e, t, s) {
9254
9273
  }
9255
9274
  return (_) => m(p(_));
9256
9275
  }
9257
- const rr = {
9276
+ const sr = {
9258
9277
  linear: ol,
9259
9278
  ease: nl,
9260
9279
  easeIn: ll,
@@ -9297,7 +9316,7 @@ let dt = class extends q {
9297
9316
  r = [this.getParent()].filter(Boolean);
9298
9317
  break;
9299
9318
  }
9300
- return r.filter((e) => e instanceof ee);
9319
+ return r.filter((e) => e instanceof te);
9301
9320
  }
9302
9321
  _updateKeyframes() {
9303
9322
  const r = [], e = this.keyframes;
@@ -9336,7 +9355,7 @@ let dt = class extends q {
9336
9355
  }
9337
9356
  const r = this._getTargets(), e = 1 / r.length, t = this.currentTimeProgress;
9338
9357
  r.forEach((s, i) => {
9339
- const a = e === 1 ? t : ne(Math.max(0, t - e * i) / e, 0, 1), o = this._cachedProps.get(s);
9358
+ const a = e === 1 ? t : le(Math.max(0, t - e * i) / e, 0, 1), o = this._cachedProps.get(s);
9340
9359
  if (!o)
9341
9360
  return;
9342
9361
  const n = this._parseKeyframes(a, o);
@@ -9355,9 +9374,9 @@ let dt = class extends q {
9355
9374
  }
9356
9375
  _parseEasing(r) {
9357
9376
  if (!r)
9358
- return rr.linear;
9359
- if (r in rr)
9360
- return rr[r];
9377
+ return sr.linear;
9378
+ if (r in sr)
9379
+ return sr[r];
9361
9380
  const e = r.replace(/cubic-bezier\((.+)\)/, "$1").split(",").map((t) => Number(t));
9362
9381
  return yt(e[0], e[1], e[2], e[3]);
9363
9382
  }
@@ -9409,9 +9428,9 @@ let dt = class extends q {
9409
9428
  let a, o;
9410
9429
  if (e === "none" && (e = void 0), t === "none" && (t = void 0), e === void 0 || t === void 0)
9411
9430
  if (e !== void 0)
9412
- a = Et(r, String(e), i), o = Br(a);
9431
+ a = Et(r, String(e), i), o = Lr(a);
9413
9432
  else if (t !== void 0)
9414
- o = Et(r, String(t), i), a = Br(o);
9433
+ o = Et(r, String(t), i), a = Lr(o);
9415
9434
  else
9416
9435
  return;
9417
9436
  else
@@ -9454,16 +9473,16 @@ let dt = class extends q {
9454
9473
  });
9455
9474
  }
9456
9475
  };
9457
- Ht([
9476
+ Xt([
9458
9477
  h({ fallback: "parent" })
9459
9478
  ], dt.prototype, "effectMode", 2);
9460
- Ht([
9479
+ Xt([
9461
9480
  h({ default: () => [] })
9462
9481
  ], dt.prototype, "keyframes", 2);
9463
- Ht([
9482
+ Xt([
9464
9483
  h()
9465
9484
  ], dt.prototype, "easing", 2);
9466
- dt = Ht([
9485
+ dt = Xt([
9467
9486
  b("Animation", {
9468
9487
  renderMode: "disabled",
9469
9488
  processMode: "pausable",
@@ -9471,10 +9490,10 @@ dt = Ht([
9471
9490
  duration: 2e3
9472
9491
  })
9473
9492
  ], dt);
9474
- class Ar extends he {
9493
+ class Cr extends ue {
9475
9494
  static _instance;
9476
9495
  static get instance() {
9477
- return this._instance || (this._instance = new Ar()), this._instance;
9496
+ return this._instance || (this._instance = new Cr()), this._instance;
9478
9497
  }
9479
9498
  playbackRate = 1;
9480
9499
  muted = !1;
@@ -9502,7 +9521,7 @@ class Ar extends he {
9502
9521
  return this.paused = !this.paused, this.refreshPaused(), this.paused;
9503
9522
  }
9504
9523
  }
9505
- class Nt extends he {
9524
+ class kt extends ue {
9506
9525
  static PADDING = 0.1;
9507
9526
  _source = null;
9508
9527
  _audio = null;
@@ -9623,7 +9642,7 @@ class Nt extends he {
9623
9642
  if (!this._source)
9624
9643
  return;
9625
9644
  const { start: t = 0, end: s = 0 } = e;
9626
- s && console.assert(s > t, "End time is before start time"), e.playbackRate !== void 0 && (this._playbackRate = e.playbackRate), e.volume !== void 0 && (this._volume = e.volume), e.loop !== void 0 && (this._loop = e.loop), e.muted !== void 0 && (this._muted = e.muted), this.refresh(), this.loop && s !== null && (console.warn('Looping not support when specifying an "end" time'), this.loop = !1), this._start = t, this._end = s || this._duration, this._start = Math.max(0, this._start - Nt.PADDING), this._end = Math.min(this._end + Nt.PADDING, this._duration), this._source.onloadedmetadata = () => {
9645
+ s && console.assert(s > t, "End time is before start time"), e.playbackRate !== void 0 && (this._playbackRate = e.playbackRate), e.volume !== void 0 && (this._volume = e.volume), e.loop !== void 0 && (this._loop = e.loop), e.muted !== void 0 && (this._muted = e.muted), this.refresh(), this.loop && s !== null && (console.warn('Looping not support when specifying an "end" time'), this.loop = !1), this._start = t, this._end = s || this._duration, this._start = Math.max(0, this._start - kt.PADDING), this._end = Math.min(this._end + kt.PADDING, this._duration), this._source.onloadedmetadata = () => {
9627
9646
  this._source && (this._source.currentTime = t, this._source.onloadedmetadata = null, this.emit("progress", t, this._duration), B.on(this._onUpdate));
9628
9647
  }, this._source.onended = this._onComplete.bind(this), this._source.play(), this.emit("start");
9629
9648
  }
@@ -9658,7 +9677,7 @@ class ul {
9658
9677
  return !!this.source && this.source.readyState === 4;
9659
9678
  }
9660
9679
  get context() {
9661
- return Ar.instance;
9680
+ return Cr.instance;
9662
9681
  }
9663
9682
  async load() {
9664
9683
  return new Promise((e) => {
@@ -9666,10 +9685,10 @@ class ul {
9666
9685
  });
9667
9686
  }
9668
9687
  createSound() {
9669
- return new Nt();
9688
+ return new kt();
9670
9689
  }
9671
9690
  }
9672
- class Js extends he {
9691
+ class Js extends ue {
9673
9692
  constructor(e, t) {
9674
9693
  super(), this._input = e, this._output = t;
9675
9694
  }
@@ -9769,7 +9788,7 @@ class Ce extends Js {
9769
9788
  2,
9770
9789
  hs ? Math.max(8e3, Math.min(96e3, e.sampleRate)) : 44100
9771
9790
  ), s = e.createDynamicsCompressor(), i = e.createAnalyser();
9772
- i.connect(s), s.connect(e.destination), super(i, s), this._context = e, this._offlineContext = t, this._compressor = s, this._analyser = i, this._locked = e.state === "suspended" && (ve || Bi), pr && (this._locked && (this._unlock(), document.addEventListener("mousedown", this._unlock, !0), document.addEventListener("touchstart", this._unlock, !0), document.addEventListener("touchend", this._unlock, !0)), globalThis.addEventListener("focus", this._onFocus), globalThis.addEventListener("blur", this._onBlur));
9791
+ i.connect(s), s.connect(e.destination), super(i, s), this._context = e, this._offlineContext = t, this._compressor = s, this._analyser = i, this._locked = e.state === "suspended" && (be || Bi), _r && (this._locked && (this._unlock(), document.addEventListener("mousedown", this._unlock, !0), document.addEventListener("touchstart", this._unlock, !0), document.addEventListener("touchend", this._unlock, !0)), globalThis.addEventListener("focus", this._onFocus), globalThis.addEventListener("blur", this._onBlur));
9773
9792
  }
9774
9793
  _onFocus() {
9775
9794
  if (!this.autoPause)
@@ -9811,7 +9830,7 @@ class Ce extends Js {
9811
9830
  e.setValueAtTime ? e.setValueAtTime(t, this._context.currentTime) : e.value = t;
9812
9831
  }
9813
9832
  }
9814
- class pl extends he {
9833
+ class pl extends ue {
9815
9834
  _audio = null;
9816
9835
  _sourceNode = null;
9817
9836
  _gain = null;
@@ -10170,14 +10189,14 @@ Oe = bl([
10170
10189
  class yc extends De {
10171
10190
  //
10172
10191
  }
10173
- var xl = Object.defineProperty, wl = Object.getOwnPropertyDescriptor, Xt = (r, e, t, s) => {
10192
+ var xl = Object.defineProperty, wl = Object.getOwnPropertyDescriptor, jt = (r, e, t, s) => {
10174
10193
  for (var i = s > 1 ? void 0 : s ? wl(e, t) : e, a = r.length - 1, o; a >= 0; a--)
10175
10194
  (o = r[a]) && (i = (s ? o(e, t, i) : o(i)) || i);
10176
10195
  return s && i && xl(e, t, i), i;
10177
10196
  };
10178
- let ft = class extends ee {
10197
+ let ft = class extends te {
10179
10198
  _audioBuffer;
10180
- _src = pr ? new x({
10199
+ _src = _r ? new x({
10181
10200
  source: document.createElement("canvas")
10182
10201
  }) : void 0;
10183
10202
  _needsUpdateTexture = !1;
@@ -10235,16 +10254,16 @@ let ft = class extends ee {
10235
10254
  this.syncTexture(), super._process(r);
10236
10255
  }
10237
10256
  };
10238
- Xt([
10257
+ jt([
10239
10258
  h()
10240
10259
  ], ft.prototype, "src", 2);
10241
- Xt([
10260
+ jt([
10242
10261
  h({ fallback: 0 })
10243
10262
  ], ft.prototype, "gap", 2);
10244
- Xt([
10263
+ jt([
10245
10264
  h({ fallback: "#000000" })
10246
10265
  ], ft.prototype, "color", 2);
10247
- ft = Xt([
10266
+ ft = jt([
10248
10267
  b("AudioWaveform")
10249
10268
  ], ft);
10250
10269
  var Pl = Object.defineProperty, El = Object.getOwnPropertyDescriptor, Sl = (r, e, t) => e in r ? Pl(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Tl = (r, e, t, s) => {
@@ -10252,7 +10271,7 @@ var Pl = Object.defineProperty, El = Object.getOwnPropertyDescriptor, Sl = (r, e
10252
10271
  (o = r[a]) && (i = o(i) || i);
10253
10272
  return i;
10254
10273
  }, Rl = (r, e, t) => Sl(r, e + "", t);
10255
- let kt = class extends Ve {
10274
+ let Ut = class extends Ve {
10256
10275
  blur = 10;
10257
10276
  quality = 10;
10258
10277
  apply(r, e) {
@@ -10276,7 +10295,7 @@ let kt = class extends Ve {
10276
10295
  p = u[_] + 0.5, m[0] = p * d, m[1] = p * f, c.push({
10277
10296
  offset: m
10278
10297
  }), c.forEach((g) => {
10279
- P.draw(r, kt.material, {
10298
+ P.draw(r, Ut.material, {
10280
10299
  sampler: s,
10281
10300
  progress: i,
10282
10301
  ...g
@@ -10284,7 +10303,7 @@ let kt = class extends Ve {
10284
10303
  });
10285
10304
  }
10286
10305
  };
10287
- Rl(kt, "material", new E({
10306
+ Rl(Ut, "material", new E({
10288
10307
  gl: {
10289
10308
  vertex: `attribute vec2 position;
10290
10309
  attribute vec2 uv;
@@ -10311,24 +10330,24 @@ void main(void) {
10311
10330
  }`
10312
10331
  }
10313
10332
  }));
10314
- kt = Tl([
10333
+ Ut = Tl([
10315
10334
  b("KawaseTransition")
10316
- ], kt);
10335
+ ], Ut);
10317
10336
  var Al = Object.defineProperty, Cl = Object.getOwnPropertyDescriptor, Ol = (r, e, t) => e in r ? Al(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Dl = (r, e, t, s) => {
10318
10337
  for (var i = s > 1 ? void 0 : s ? Cl(e, t) : e, a = r.length - 1, o; a >= 0; a--)
10319
10338
  (o = r[a]) && (i = o(i) || i);
10320
10339
  return i;
10321
10340
  }, Il = (r, e, t) => Ol(r, e + "", t);
10322
- let Ut = class extends Ve {
10341
+ let Bt = class extends Ve {
10323
10342
  apply(r) {
10324
- P.draw(r, Ut.material, {
10343
+ P.draw(r, Bt.material, {
10325
10344
  previous: 0,
10326
10345
  next: 1,
10327
10346
  progress: this.currentTimeProgress
10328
10347
  });
10329
10348
  }
10330
10349
  };
10331
- Il(Ut, "material", new E({
10350
+ Il(Bt, "material", new E({
10332
10351
  gl: {
10333
10352
  vertex: `attribute vec2 position;
10334
10353
  attribute vec2 uv;
@@ -10359,9 +10378,9 @@ void main() {
10359
10378
  }`
10360
10379
  }
10361
10380
  }));
10362
- Ut = Dl([
10381
+ Bt = Dl([
10363
10382
  b("LeftEraseTransition")
10364
- ], Ut);
10383
+ ], Bt);
10365
10384
  var Ml = Object.defineProperty, Nl = Object.getOwnPropertyDescriptor, kl = (r, e, t) => e in r ? Ml(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Ul = (r, e, t, s) => {
10366
10385
  for (var i = s > 1 ? void 0 : s ? Nl(e, t) : e, a = r.length - 1, o; a >= 0; a--)
10367
10386
  (o = r[a]) && (i = o(i) || i);
@@ -10454,7 +10473,7 @@ var Ll = Object.defineProperty, Fl = Object.getOwnPropertyDescriptor, zl = (r, e
10454
10473
  (o = r[a]) && (i = o(i) || i);
10455
10474
  return i;
10456
10475
  }, Vl = (r, e, t) => zl(r, e + "", t);
10457
- let Bt = class extends Ve {
10476
+ let Lt = class extends Ve {
10458
10477
  radius;
10459
10478
  angle = 4;
10460
10479
  padding = 20;
@@ -10464,7 +10483,7 @@ let Bt = class extends Ve {
10464
10483
  let s, i;
10465
10484
  t < 0.5 ? (s = 0, i = (0.5 - t) / 0.5) : (s = 1, i = (t - 0.5) / 0.5);
10466
10485
  const a = e.width, o = e.height;
10467
- P.draw(r, Bt.material, {
10486
+ P.draw(r, Lt.material, {
10468
10487
  sampler: s,
10469
10488
  progress: i,
10470
10489
  filterArea: [a, o, 0, 0],
@@ -10475,7 +10494,7 @@ let Bt = class extends Ve {
10475
10494
  });
10476
10495
  }
10477
10496
  };
10478
- Vl(Bt, "material", new E({
10497
+ Vl(Lt, "material", new E({
10479
10498
  gl: {
10480
10499
  vertex: `attribute vec2 position;
10481
10500
  attribute vec2 uv;
@@ -10527,9 +10546,9 @@ void main(void) {
10527
10546
  }`
10528
10547
  }
10529
10548
  }));
10530
- Bt = Gl([
10549
+ Lt = Gl([
10531
10550
  b("TwistTransition")
10532
- ], Bt);
10551
+ ], Lt);
10533
10552
  class $l extends Ne {
10534
10553
  install(e) {
10535
10554
  const t = async (s) => {
@@ -10653,7 +10672,7 @@ function Zl(r) {
10653
10672
  return e;
10654
10673
  }
10655
10674
  const Rt = "WeakRef" in globalThis;
10656
- class Jl extends he {
10675
+ class Jl extends ue {
10657
10676
  defaultHandler = (e) => e;
10658
10677
  _handlers = /* @__PURE__ */ new Map();
10659
10678
  _handleing = /* @__PURE__ */ new Map();
@@ -10760,7 +10779,7 @@ const Fe = {
10760
10779
  preserveDrawingBuffer: !1,
10761
10780
  powerPreference: "default"
10762
10781
  };
10763
- class Cr extends fe {
10782
+ class Or extends pe {
10764
10783
  renderer;
10765
10784
  get view() {
10766
10785
  return this.renderer.view;
@@ -10894,17 +10913,17 @@ class Cr extends fe {
10894
10913
  }
10895
10914
  Qs([
10896
10915
  h({ fallback: !1 })
10897
- ], Cr.prototype, "autoResize");
10916
+ ], Or.prototype, "autoResize");
10898
10917
  Qs([
10899
10918
  h({ fallback: !1 })
10900
- ], Cr.prototype, "autoStart");
10919
+ ], Or.prototype, "autoStart");
10901
10920
  let U;
10902
- const ur = [];
10903
- let sr = !1;
10921
+ const dr = [];
10922
+ let ir = !1;
10904
10923
  async function ec(r = 100) {
10905
- if (!sr) {
10906
- for (sr = !0; ur.length; ) {
10907
- const e = ur.shift();
10924
+ if (!ir) {
10925
+ for (ir = !0; dr.length; ) {
10926
+ const e = dr.shift();
10908
10927
  if (e)
10909
10928
  try {
10910
10929
  await e();
@@ -10914,7 +10933,7 @@ async function ec(r = 100) {
10914
10933
  else
10915
10934
  await new Promise((t) => setTimeout(t, r));
10916
10935
  }
10917
- sr = !1;
10936
+ ir = !1;
10918
10937
  }
10919
10938
  }
10920
10939
  async function tc(r) {
@@ -10929,7 +10948,7 @@ async function tc(r) {
10929
10948
  onKeyframe: l,
10930
10949
  ...c
10931
10950
  } = r;
10932
- return U ??= new Cr({
10951
+ return U ??= new Or({
10933
10952
  pixelRatio: 1,
10934
10953
  width: 1,
10935
10954
  height: 1,
@@ -10952,11 +10971,11 @@ async function tc(r) {
10952
10971
  }
10953
10972
  async function xc(r) {
10954
10973
  return new Promise((e) => {
10955
- ur.push(async () => e(await tc(r))), ec();
10974
+ dr.push(async () => e(await tc(r))), ec();
10956
10975
  });
10957
10976
  }
10958
10977
  export {
10959
- ye as Aabb2D,
10978
+ ee as Aabb2D,
10960
10979
  oo as AnimatedTexture,
10961
10980
  dt as Animation,
10962
10981
  Jl as Assets,
@@ -10965,40 +10984,40 @@ export {
10965
10984
  bc as AudioProcessor,
10966
10985
  yc as AudioSpectrum,
10967
10986
  ft as AudioWaveform,
10968
- be as BufferUsage,
10969
- It as Camera2D,
10987
+ ye as BufferUsage,
10988
+ Mt as Camera2D,
10970
10989
  uo as CanvasContext,
10971
10990
  Ge as CanvasItem,
10972
10991
  ws as CanvasTexture,
10973
- ae as Color,
10992
+ oe as Color,
10974
10993
  j as ColorAdjustEffect,
10975
10994
  $e as ColorFilterEffect,
10976
10995
  ps as ColorMatrix,
10977
10996
  He as ColorOverlayEffect,
10978
10997
  Xe as ColorRemoveEffect,
10979
10998
  je as ColorReplaceEffect,
10980
- gr as ColorTexture,
10999
+ vr as ColorTexture,
10981
11000
  Pe as CoreObject,
10982
- ir as DEG_TO_RAD,
11001
+ ar as DEG_TO_RAD,
10983
11002
  us as DEVICE_PIXEL_RATIO,
10984
11003
  Y as DrawboardEffect,
10985
- re as DropShadowEffect,
11004
+ se as DropShadowEffect,
10986
11005
  T as Effect,
10987
- Ot as EffectMaterial,
10988
- ee as Element2D,
11006
+ Dt as EffectMaterial,
11007
+ te as Element2D,
10989
11008
  js as Element2DBackground,
10990
11009
  F as Element2DFill,
10991
11010
  Ws as Element2DForeground,
10992
11011
  Ze as Element2DOutline,
10993
11012
  Je as Element2DShadow,
10994
11013
  Qe as Element2DShape,
10995
- lr as Element2DStyle,
10996
- ie as Element2DText,
11014
+ cr as Element2DStyle,
11015
+ ae as Element2DText,
10997
11016
  ct as EmbossEffect,
10998
- Cr as Engine,
10999
- Rr as FlexLayout,
11017
+ Or as Engine,
11018
+ Ar as FlexLayout,
11000
11019
  Wa as FontLoader,
11001
- ce as GaussianBlurEffect,
11020
+ he as GaussianBlurEffect,
11002
11021
  ke as Geometry,
11003
11022
  $l as GifLoader,
11004
11023
  Pa as GlBatch2DSystem,
@@ -11019,27 +11038,27 @@ export {
11019
11038
  $a as GlViewportSystem,
11020
11039
  G as GlitchEffect,
11021
11040
  K as GodrayEffect,
11022
- Gt as GradientTexture,
11041
+ Vt as GradientTexture,
11023
11042
  ul as HTMLAudio,
11024
- Ar as HTMLAudioContext,
11025
- Nt as HTMLSound,
11026
- pr as IN_BROWSER,
11043
+ Cr as HTMLAudioContext,
11044
+ kt as HTMLSound,
11045
+ _r as IN_BROWSER,
11027
11046
  zi as IN_MAC_OS,
11028
11047
  We as IndexBuffer,
11029
11048
  Ji as Input,
11030
- Ft as InputEvent,
11049
+ zt as InputEvent,
11031
11050
  Hl as JsonLoader,
11032
11051
  ht as KawaseBlurEffect,
11033
- kt as KawaseTransition,
11052
+ Ut as KawaseTransition,
11034
11053
  qi as KeyboardInputEvent,
11035
- Ut as LeftEraseTransition,
11054
+ Bt as LeftEraseTransition,
11036
11055
  Ne as Loader,
11037
- cr as Lottie2D,
11056
+ hr as Lottie2D,
11038
11057
  Xl as LottieLoader,
11039
- _r as MainLoop,
11058
+ mr as MainLoop,
11040
11059
  Ie as MaskEffect,
11041
11060
  E as Material,
11042
- oe as Matrix,
11061
+ ne as Matrix,
11043
11062
  pc as Matrix2,
11044
11063
  _s as Matrix3,
11045
11064
  ea as Matrix4,
@@ -11047,9 +11066,9 @@ export {
11047
11066
  fs as MouseInputEvent,
11048
11067
  M as Node,
11049
11068
  De as Node2D,
11050
- Lr as Obb2D,
11069
+ Ot as Obb2D,
11051
11070
  L as OutlineEffect,
11052
- fr as PI,
11071
+ pr as PI,
11053
11072
  z as PI_2,
11054
11073
  ut as PixelateEffect,
11055
11074
  no as PixelsTexture,
@@ -11059,9 +11078,9 @@ export {
11059
11078
  P as QuadUvGeometry,
11060
11079
  dc as RAD_TO_DEG,
11061
11080
  Qi as RefCounted,
11062
- te as RenderTarget,
11063
- mr as Renderer,
11064
- ue as Resource,
11081
+ re as RenderTarget,
11082
+ gr as Renderer,
11083
+ de as Resource,
11065
11084
  ls as SUPPORTS_AUDIO_CONTEXT,
11066
11085
  Bi as SUPPORTS_CLICK_EVENTS,
11067
11086
  hc as SUPPORTS_CREATE_IMAGE_BITMAP,
@@ -11070,48 +11089,48 @@ export {
11070
11089
  hs as SUPPORTS_OFFLINE_AUDIO_CONTEXT,
11071
11090
  et as SUPPORTS_POINTER_EVENTS,
11072
11091
  ki as SUPPORTS_RESIZE_OBSERVER,
11073
- ve as SUPPORTS_TOUCH_EVENTS,
11092
+ be as SUPPORTS_TOUCH_EVENTS,
11074
11093
  Mi as SUPPORTS_WEBGL2,
11075
11094
  cs as SUPPORTS_WEBKIT_AUDIO_CONTEXT,
11076
11095
  Li as SUPPORTS_WEBKIT_OFFLINE_AUDIO_CONTEXT,
11077
11096
  Fi as SUPPORTS_WEB_AUDIO,
11078
11097
  Ui as SUPPORTS_WHEEL_EVENTS,
11079
- fe as SceneTree,
11098
+ pe as SceneTree,
11080
11099
  jl as TextLoader,
11081
11100
  x as Texture2D,
11082
11101
  Wl as TextureLoader,
11083
11102
  Ys as TextureRect2D,
11084
11103
  B as Ticker,
11085
11104
  pt as TiltShiftTransition,
11086
- le as Timeline,
11105
+ ce as Timeline,
11087
11106
  q as TimelineNode,
11088
11107
  I as Transform2D,
11089
11108
  tl as TransformRect2D,
11090
11109
  Ve as Transition,
11091
- Bt as TwistTransition,
11110
+ Lt as TwistTransition,
11092
11111
  gc as UvGeometry,
11093
- Dt as UvMaterial,
11112
+ It as UvMaterial,
11094
11113
  Q as Vector,
11095
11114
  C as Vector2,
11096
11115
  _c as Vector3,
11097
11116
  ta as Vector4,
11098
11117
  H as VertexAttribute,
11099
11118
  xe as VertexBuffer,
11100
- hr as Video2D,
11119
+ ur as Video2D,
11101
11120
  ql as VideoLoader,
11102
11121
  ho as VideoTexture,
11103
11122
  X as Viewport,
11104
- br as ViewportTexture,
11123
+ yr as ViewportTexture,
11105
11124
  _l as WebAudio,
11106
11125
  Ce as WebAudioContext,
11107
11126
  pl as WebSound,
11108
11127
  Ki as WheelInputEvent,
11109
- or as Window,
11128
+ nr as Window,
11110
11129
  we as ZoomBlurEffect,
11111
11130
  Le as alignMap,
11112
11131
  $ as assets,
11113
11132
  es as boxSizingMap,
11114
- ne as clamp,
11133
+ le as clamp,
11115
11134
  En as clampFrag,
11116
11135
  Hi as createHTMLCanvas,
11117
11136
  oa as createIdFromString,
@@ -11120,10 +11139,10 @@ export {
11120
11139
  yt as cubicBezier,
11121
11140
  fc as curves,
11122
11141
  b as customNode,
11123
- dr as customNodes,
11142
+ fr as customNodes,
11124
11143
  Fe as defaultOptions,
11125
11144
  Xi as determineCrossOrigin,
11126
- nr as directionMap,
11145
+ lr as directionMap,
11127
11146
  qr as displayMap,
11128
11147
  nl as ease,
11129
11148
  ll as easeIn,
@@ -11133,13 +11152,13 @@ export {
11133
11152
  Yr as flexDirectionMap,
11134
11153
  Kr as flexWrapMap,
11135
11154
  Pn as frag,
11136
- Br as getDefaultCssPropertyValue,
11155
+ Lr as getDefaultCssPropertyValue,
11137
11156
  Bn as gutterMap,
11138
11157
  rt as instanceId,
11139
11158
  Vi as isCanvasElement,
11140
11159
  ds as isElementNode,
11141
11160
  uc as isImageElement,
11142
- Ur as isPow2,
11161
+ Br as isPow2,
11143
11162
  Gi as isVideoElement,
11144
11163
  $i as isWebgl2,
11145
11164
  Zr as justifyMap,
@@ -11151,12 +11170,12 @@ export {
11151
11170
  os as nextTick,
11152
11171
  Jr as overflowMap,
11153
11172
  vc as parseCssFilter,
11154
- Lt as parseCssFunctions,
11173
+ Ft as parseCssFunctions,
11155
11174
  Et as parseCssProperty,
11156
11175
  Lo as parseCssTransform,
11157
11176
  Fo as parseCssTransformOrigin,
11158
11177
  Qr as positionTypeMap,
11159
11178
  xc as render,
11160
11179
  Me as stencilModeMap,
11161
- rr as timingFunctions
11180
+ sr as timingFunctions
11162
11181
  };