shop-components 0.1.22 → 0.1.23

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.
@@ -3,7 +3,7 @@
3
3
  * Copyright 2010-2024 Three.js Authors
4
4
  * SPDX-License-Identifier: MIT
5
5
  */
6
- const ed = "164", $s = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, Ao = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, QS = 0, py = 1, VS = 2, r2 = 1, $S = 2, jn = 3, Ft = 0, Ct = 1, st = 2, Dt = 0, Fr = 1, yf = 2, gy = 3, my = 4, A_ = 5, bs = 100, e_ = 101, t_ = 102, i_ = 103, n_ = 104, r_ = 200, s_ = 201, o_ = 202, a_ = 203, om = 204, am = 205, l_ = 206, c_ = 207, h_ = 208, u_ = 209, f_ = 210, d_ = 211, p_ = 212, g_ = 213, m_ = 214, v_ = 0, y_ = 1, w_ = 2, wf = 3, C_ = 4, x_ = 5, I_ = 6, b_ = 7, s2 = 0, S_ = 1, __ = 2, Ar = 0, o2 = 1, a2 = 2, l2 = 3, J0 = 4, M_ = 5, c2 = 6, h2 = 7, vy = "attached", P_ = "detached", u2 = 300, Ea = 301, La = 302, Oa = 303, lm = 304, td = 306, jt = 1e3, ot = 1001, bc = 1002, ue = 1003, Z0 = 1004, ca = 1005, we = 1006, rc = 1007, Zi = 1008, T_ = 1008, An = 1009, cm = 1010, f2 = 1011, X0 = 1012, sc = 1013, Qi = 1014, _e = 1015, Oe = 1016, d2 = 1017, p2 = 1018, Kc = 1020, D_ = 35902, E_ = 1021, L_ = 1022, be = 1023, O_ = 1024, q_ = 1025, va = 1026, Sc = 1027, qa = 1028, Q0 = 1029, V0 = 1030, id = 1031, _c = 1033, Yd = 33776, Hd = 33777, Ud = 33778, Wd = 33779, yy = 35840, wy = 35841, Cy = 35842, xy = 35843, Iy = 36196, by = 37492, Sy = 37496, _y = 37808, My = 37809, Py = 37810, Ty = 37811, Dy = 37812, Ey = 37813, Ly = 37814, Oy = 37815, qy = 37816, Ny = 37817, By = 37818, zy = 37819, Ry = 37820, ky = 37821, Jd = 36492, jy = 36494, Ky = 36495, N_ = 36283, Fy = 36284, Gy = 36285, Yy = 36286, Na = 2300, Bs = 2301, Zd = 2302, Hy = 2400, Uy = 2401, Wy = 2402, B_ = 2500, z_ = 0, g2 = 1, hm = 2, R_ = 3200, $0 = 3201, m2 = 0, k_ = 1, Hn = "", ke = "srgb", lt = "srgb-linear", Av = "display-p3", nd = "display-p3-linear", Cf = "linear", Ee = "srgb", xf = "rec709", If = "p3", eo = 7680, Jy = 519, j_ = 512, K_ = 513, F_ = 514, v2 = 515, G_ = 516, Y_ = 517, H_ = 518, U_ = 519, um = 35044, Zy = "300 es", Jn = 2e3, bf = 2001;
6
+ const ed = "164", $s = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, Ao = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, QS = 0, py = 1, VS = 2, r2 = 1, $S = 2, Kn = 3, Ft = 0, Ct = 1, st = 2, Dt = 0, Fr = 1, yf = 2, gy = 3, my = 4, A_ = 5, bs = 100, e_ = 101, t_ = 102, i_ = 103, n_ = 104, r_ = 200, s_ = 201, o_ = 202, a_ = 203, om = 204, am = 205, l_ = 206, c_ = 207, h_ = 208, u_ = 209, f_ = 210, d_ = 211, p_ = 212, g_ = 213, m_ = 214, v_ = 0, y_ = 1, w_ = 2, wf = 3, C_ = 4, x_ = 5, I_ = 6, b_ = 7, s2 = 0, S_ = 1, __ = 2, Ar = 0, o2 = 1, a2 = 2, l2 = 3, J0 = 4, M_ = 5, c2 = 6, h2 = 7, vy = "attached", P_ = "detached", u2 = 300, Ea = 301, La = 302, Oa = 303, lm = 304, td = 306, jt = 1e3, ot = 1001, bc = 1002, ue = 1003, Z0 = 1004, ca = 1005, we = 1006, rc = 1007, Xi = 1008, T_ = 1008, en = 1009, cm = 1010, f2 = 1011, X0 = 1012, sc = 1013, Vi = 1014, _e = 1015, Oe = 1016, d2 = 1017, p2 = 1018, Kc = 1020, D_ = 35902, E_ = 1021, L_ = 1022, be = 1023, O_ = 1024, q_ = 1025, va = 1026, Sc = 1027, qa = 1028, Q0 = 1029, V0 = 1030, id = 1031, _c = 1033, Yd = 33776, Hd = 33777, Ud = 33778, Wd = 33779, yy = 35840, wy = 35841, Cy = 35842, xy = 35843, Iy = 36196, by = 37492, Sy = 37496, _y = 37808, My = 37809, Py = 37810, Ty = 37811, Dy = 37812, Ey = 37813, Ly = 37814, Oy = 37815, qy = 37816, Ny = 37817, By = 37818, zy = 37819, Ry = 37820, ky = 37821, Jd = 36492, jy = 36494, Ky = 36495, N_ = 36283, Fy = 36284, Gy = 36285, Yy = 36286, Na = 2300, Bs = 2301, Zd = 2302, Hy = 2400, Uy = 2401, Wy = 2402, B_ = 2500, z_ = 0, g2 = 1, hm = 2, R_ = 3200, $0 = 3201, m2 = 0, k_ = 1, Hn = "", ke = "srgb", lt = "srgb-linear", Av = "display-p3", nd = "display-p3-linear", Cf = "linear", Ee = "srgb", xf = "rec709", If = "p3", eo = 7680, Jy = 519, j_ = 512, K_ = 513, F_ = 514, v2 = 515, G_ = 516, Y_ = 517, H_ = 518, U_ = 519, um = 35044, Zy = "300 es", Jn = 2e3, bf = 2001;
7
7
  class Gs {
8
8
  addEventListener(A, e) {
9
9
  this._listeners === void 0 && (this._listeners = {});
@@ -126,7 +126,7 @@ function aM(n, A, e, t, i) {
126
126
  console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: " + i);
127
127
  }
128
128
  }
129
- function Wi(n, A) {
129
+ function Ji(n, A) {
130
130
  switch (A.constructor) {
131
131
  case Float32Array:
132
132
  return n;
@@ -190,7 +190,7 @@ const za = {
190
190
  floorPowerOfTwo: oM,
191
191
  setQuaternionFromProperEuler: aM,
192
192
  normalize: Me,
193
- denormalize: Wi
193
+ denormalize: Ji
194
194
  };
195
195
  class dA {
196
196
  constructor(A = 0, e = 0) {
@@ -747,7 +747,7 @@ function Vd(n) {
747
747
  } : (console.warn("THREE.Texture: Unable to serialize Texture."), {});
748
748
  }
749
749
  let fM = 0, ct = class $u extends Gs {
750
- constructor(A = $u.DEFAULT_IMAGE, e = $u.DEFAULT_MAPPING, t = ot, i = ot, r = we, s = Zi, o = be, a = An, l = $u.DEFAULT_ANISOTROPY, u = Hn) {
750
+ constructor(A = $u.DEFAULT_IMAGE, e = $u.DEFAULT_MAPPING, t = ot, i = ot, r = we, s = Xi, o = be, a = en, l = $u.DEFAULT_ANISOTROPY, u = Hn) {
751
751
  super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: fM++ }), this.uuid = Li(), this.name = "", this.source = new rd(A), this.mipmaps = [], this.mapping = e, this.channel = 0, this.wrapS = t, this.wrapT = i, this.magFilter = r, this.minFilter = s, this.anisotropy = l, this.format = o, this.internalFormat = null, this.type = a, this.offset = new dA(0, 0), this.repeat = new dA(1, 1), this.center = new dA(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new le(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.colorSpace = u, this.userData = {}, this.version = 0, this.onUpdate = null, this.isRenderTargetTexture = !1, this.pmremVersion = 0;
752
752
  }
753
753
  get image() {
@@ -1744,7 +1744,7 @@ class ve {
1744
1744
  return this.min.min(A.min), this.max.max(A.max), this;
1745
1745
  }
1746
1746
  applyMatrix4(A) {
1747
- return this.isEmpty() ? this : (En[0].set(this.min.x, this.min.y, this.min.z).applyMatrix4(A), En[1].set(this.min.x, this.min.y, this.max.z).applyMatrix4(A), En[2].set(this.min.x, this.max.y, this.min.z).applyMatrix4(A), En[3].set(this.min.x, this.max.y, this.max.z).applyMatrix4(A), En[4].set(this.max.x, this.min.y, this.min.z).applyMatrix4(A), En[5].set(this.max.x, this.min.y, this.max.z).applyMatrix4(A), En[6].set(this.max.x, this.max.y, this.min.z).applyMatrix4(A), En[7].set(this.max.x, this.max.y, this.max.z).applyMatrix4(A), this.setFromPoints(En), this);
1747
+ return this.isEmpty() ? this : (Ln[0].set(this.min.x, this.min.y, this.min.z).applyMatrix4(A), Ln[1].set(this.min.x, this.min.y, this.max.z).applyMatrix4(A), Ln[2].set(this.min.x, this.max.y, this.min.z).applyMatrix4(A), Ln[3].set(this.min.x, this.max.y, this.max.z).applyMatrix4(A), Ln[4].set(this.max.x, this.min.y, this.min.z).applyMatrix4(A), Ln[5].set(this.max.x, this.min.y, this.max.z).applyMatrix4(A), Ln[6].set(this.max.x, this.max.y, this.min.z).applyMatrix4(A), Ln[7].set(this.max.x, this.max.y, this.max.z).applyMatrix4(A), this.setFromPoints(Ln), this);
1748
1748
  }
1749
1749
  translate(A) {
1750
1750
  return this.min.add(A), this.max.add(A), this;
@@ -1753,7 +1753,7 @@ class ve {
1753
1753
  return A.min.equals(this.min) && A.max.equals(this.max);
1754
1754
  }
1755
1755
  }
1756
- const En = [
1756
+ const Ln = [
1757
1757
  /* @__PURE__ */ new O(),
1758
1758
  /* @__PURE__ */ new O(),
1759
1759
  /* @__PURE__ */ new O(),
@@ -1847,7 +1847,7 @@ class ui {
1847
1847
  return new this.constructor().copy(this);
1848
1848
  }
1849
1849
  }
1850
- const Ln = /* @__PURE__ */ new O(), tp = /* @__PURE__ */ new O(), ah = /* @__PURE__ */ new O(), fr = /* @__PURE__ */ new O(), ip = /* @__PURE__ */ new O(), lh = /* @__PURE__ */ new O(), np = /* @__PURE__ */ new O();
1850
+ const On = /* @__PURE__ */ new O(), tp = /* @__PURE__ */ new O(), ah = /* @__PURE__ */ new O(), fr = /* @__PURE__ */ new O(), ip = /* @__PURE__ */ new O(), lh = /* @__PURE__ */ new O(), np = /* @__PURE__ */ new O();
1851
1851
  class Ys {
1852
1852
  constructor(A = new O(), e = new O(0, 0, -1)) {
1853
1853
  this.origin = A, this.direction = e;
@@ -1865,7 +1865,7 @@ class Ys {
1865
1865
  return this.direction.copy(A).sub(this.origin).normalize(), this;
1866
1866
  }
1867
1867
  recast(A) {
1868
- return this.origin.copy(this.at(A, Ln)), this;
1868
+ return this.origin.copy(this.at(A, On)), this;
1869
1869
  }
1870
1870
  closestPointToPoint(A, e) {
1871
1871
  e.subVectors(A, this.origin);
@@ -1876,8 +1876,8 @@ class Ys {
1876
1876
  return Math.sqrt(this.distanceSqToPoint(A));
1877
1877
  }
1878
1878
  distanceSqToPoint(A) {
1879
- const e = Ln.subVectors(A, this.origin).dot(this.direction);
1880
- return e < 0 ? this.origin.distanceToSquared(A) : (Ln.copy(this.origin).addScaledVector(this.direction, e), Ln.distanceToSquared(A));
1879
+ const e = On.subVectors(A, this.origin).dot(this.direction);
1880
+ return e < 0 ? this.origin.distanceToSquared(A) : (On.copy(this.origin).addScaledVector(this.direction, e), On.distanceToSquared(A));
1881
1881
  }
1882
1882
  distanceSqToSegment(A, e, t, i) {
1883
1883
  tp.copy(A).add(e).multiplyScalar(0.5), ah.copy(e).sub(A).normalize(), fr.copy(this.origin).sub(tp);
@@ -1900,8 +1900,8 @@ class Ys {
1900
1900
  return t && t.copy(this.origin).addScaledVector(this.direction, c), i && i.copy(tp).addScaledVector(ah, h), f;
1901
1901
  }
1902
1902
  intersectSphere(A, e) {
1903
- Ln.subVectors(A.center, this.origin);
1904
- const t = Ln.dot(this.direction), i = Ln.dot(Ln) - t * t, r = A.radius * A.radius;
1903
+ On.subVectors(A.center, this.origin);
1904
+ const t = On.dot(this.direction), i = On.dot(On) - t * t, r = A.radius * A.radius;
1905
1905
  if (i > r)
1906
1906
  return null;
1907
1907
  const s = Math.sqrt(r - i), o = t - s, a = t + s;
@@ -1931,7 +1931,7 @@ class Ys {
1931
1931
  return l >= 0 ? (t = (A.min.x - h.x) * l, i = (A.max.x - h.x) * l) : (t = (A.max.x - h.x) * l, i = (A.min.x - h.x) * l), u >= 0 ? (r = (A.min.y - h.y) * u, s = (A.max.y - h.y) * u) : (r = (A.max.y - h.y) * u, s = (A.min.y - h.y) * u), t > s || r > i || ((r > t || isNaN(t)) && (t = r), (s < i || isNaN(i)) && (i = s), c >= 0 ? (o = (A.min.z - h.z) * c, a = (A.max.z - h.z) * c) : (o = (A.max.z - h.z) * c, a = (A.min.z - h.z) * c), t > a || o > i) || ((o > t || t !== t) && (t = o), (a < i || i !== i) && (i = a), i < 0) ? null : this.at(t >= 0 ? t : i, e);
1932
1932
  }
1933
1933
  intersectsBox(A) {
1934
- return this.intersectBox(A, Ln) !== null;
1934
+ return this.intersectBox(A, On) !== null;
1935
1935
  }
1936
1936
  intersectTriangle(A, e, t, i, r) {
1937
1937
  ip.subVectors(e, A), lh.subVectors(t, A), np.crossVectors(ip, lh);
@@ -2353,8 +2353,8 @@ class zA {
2353
2353
  }
2354
2354
  }
2355
2355
  const so = /* @__PURE__ */ new O(), Ri = /* @__PURE__ */ new zA(), vM = /* @__PURE__ */ new O(0, 0, 0), yM = /* @__PURE__ */ new O(1, 1, 1), dr = /* @__PURE__ */ new O(), ch = /* @__PURE__ */ new O(), ti = /* @__PURE__ */ new O(), ew = /* @__PURE__ */ new zA(), tw = /* @__PURE__ */ new ci();
2356
- class xn {
2357
- constructor(A = 0, e = 0, t = 0, i = xn.DEFAULT_ORDER) {
2356
+ class In {
2357
+ constructor(A = 0, e = 0, t = 0, i = In.DEFAULT_ORDER) {
2358
2358
  this.isEuler = !0, this._x = A, this._y = e, this._z = t, this._order = i;
2359
2359
  }
2360
2360
  get x() {
@@ -2443,7 +2443,7 @@ class xn {
2443
2443
  yield this._x, yield this._y, yield this._z, yield this._order;
2444
2444
  }
2445
2445
  }
2446
- xn.DEFAULT_ORDER = "XYZ";
2446
+ In.DEFAULT_ORDER = "XYZ";
2447
2447
  class tv {
2448
2448
  constructor() {
2449
2449
  this.mask = 1;
@@ -2474,11 +2474,11 @@ class tv {
2474
2474
  }
2475
2475
  }
2476
2476
  let wM = 0;
2477
- const iw = /* @__PURE__ */ new O(), oo = /* @__PURE__ */ new ci(), On = /* @__PURE__ */ new zA(), hh = /* @__PURE__ */ new O(), vl = /* @__PURE__ */ new O(), CM = /* @__PURE__ */ new O(), xM = /* @__PURE__ */ new ci(), nw = /* @__PURE__ */ new O(1, 0, 0), rw = /* @__PURE__ */ new O(0, 1, 0), sw = /* @__PURE__ */ new O(0, 0, 1), ow = { type: "added" }, IM = { type: "removed" }, ao = { type: "childadded", child: null }, rp = { type: "childremoved", child: null };
2477
+ const iw = /* @__PURE__ */ new O(), oo = /* @__PURE__ */ new ci(), qn = /* @__PURE__ */ new zA(), hh = /* @__PURE__ */ new O(), vl = /* @__PURE__ */ new O(), CM = /* @__PURE__ */ new O(), xM = /* @__PURE__ */ new ci(), nw = /* @__PURE__ */ new O(1, 0, 0), rw = /* @__PURE__ */ new O(0, 1, 0), sw = /* @__PURE__ */ new O(0, 0, 1), ow = { type: "added" }, IM = { type: "removed" }, ao = { type: "childadded", child: null }, rp = { type: "childremoved", child: null };
2478
2478
  class Se extends Gs {
2479
2479
  constructor() {
2480
2480
  super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: wM++ }), this.uuid = Li(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = Se.DEFAULT_UP.clone();
2481
- const A = new O(), e = new xn(), t = new ci(), i = new O(1, 1, 1);
2481
+ const A = new O(), e = new In(), t = new ci(), i = new O(1, 1, 1);
2482
2482
  function r() {
2483
2483
  t.setFromEuler(e, !1);
2484
2484
  }
@@ -2571,12 +2571,12 @@ class Se extends Gs {
2571
2571
  return this.updateWorldMatrix(!0, !1), A.applyMatrix4(this.matrixWorld);
2572
2572
  }
2573
2573
  worldToLocal(A) {
2574
- return this.updateWorldMatrix(!0, !1), A.applyMatrix4(On.copy(this.matrixWorld).invert());
2574
+ return this.updateWorldMatrix(!0, !1), A.applyMatrix4(qn.copy(this.matrixWorld).invert());
2575
2575
  }
2576
2576
  lookAt(A, e, t) {
2577
2577
  A.isVector3 ? hh.copy(A) : hh.set(A, e, t);
2578
2578
  const i = this.parent;
2579
- this.updateWorldMatrix(!0, !1), vl.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? On.lookAt(vl, hh, this.up) : On.lookAt(hh, vl, this.up), this.quaternion.setFromRotationMatrix(On), i && (On.extractRotation(i.matrixWorld), oo.setFromRotationMatrix(On), this.quaternion.premultiply(oo.invert()));
2579
+ this.updateWorldMatrix(!0, !1), vl.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? qn.lookAt(vl, hh, this.up) : qn.lookAt(hh, vl, this.up), this.quaternion.setFromRotationMatrix(qn), i && (qn.extractRotation(i.matrixWorld), oo.setFromRotationMatrix(qn), this.quaternion.premultiply(oo.invert()));
2580
2580
  }
2581
2581
  add(A) {
2582
2582
  if (arguments.length > 1) {
@@ -2603,7 +2603,7 @@ class Se extends Gs {
2603
2603
  return this.remove(...this.children);
2604
2604
  }
2605
2605
  attach(A) {
2606
- return this.updateWorldMatrix(!0, !1), On.copy(this.matrixWorld).invert(), A.parent !== null && (A.parent.updateWorldMatrix(!0, !1), On.multiply(A.parent.matrixWorld)), A.applyMatrix4(On), A.removeFromParent(), A.parent = this, this.children.push(A), A.updateWorldMatrix(!1, !0), A.dispatchEvent(ow), ao.child = A, this.dispatchEvent(ao), ao.child = null, this;
2606
+ return this.updateWorldMatrix(!0, !1), qn.copy(this.matrixWorld).invert(), A.parent !== null && (A.parent.updateWorldMatrix(!0, !1), qn.multiply(A.parent.matrixWorld)), A.applyMatrix4(qn), A.removeFromParent(), A.parent = this, this.children.push(A), A.updateWorldMatrix(!1, !0), A.dispatchEvent(ow), ao.child = A, this.dispatchEvent(ao), ao.child = null, this;
2607
2607
  }
2608
2608
  getObjectById(A) {
2609
2609
  return this.getObjectByProperty("id", A);
@@ -2781,7 +2781,7 @@ class Se extends Gs {
2781
2781
  Se.DEFAULT_UP = /* @__PURE__ */ new O(0, 1, 0);
2782
2782
  Se.DEFAULT_MATRIX_AUTO_UPDATE = !0;
2783
2783
  Se.DEFAULT_MATRIX_WORLD_AUTO_UPDATE = !0;
2784
- const ki = /* @__PURE__ */ new O(), qn = /* @__PURE__ */ new O(), sp = /* @__PURE__ */ new O(), Nn = /* @__PURE__ */ new O(), lo = /* @__PURE__ */ new O(), co = /* @__PURE__ */ new O(), aw = /* @__PURE__ */ new O(), op = /* @__PURE__ */ new O(), ap = /* @__PURE__ */ new O(), lp = /* @__PURE__ */ new O();
2784
+ const ki = /* @__PURE__ */ new O(), Nn = /* @__PURE__ */ new O(), sp = /* @__PURE__ */ new O(), Bn = /* @__PURE__ */ new O(), lo = /* @__PURE__ */ new O(), co = /* @__PURE__ */ new O(), aw = /* @__PURE__ */ new O(), op = /* @__PURE__ */ new O(), ap = /* @__PURE__ */ new O(), lp = /* @__PURE__ */ new O();
2785
2785
  class Ze {
2786
2786
  constructor(A = new O(), e = new O(), t = new O()) {
2787
2787
  this.a = A, this.b = e, this.c = t;
@@ -2794,21 +2794,21 @@ class Ze {
2794
2794
  // static/instance method to calculate barycentric coordinates
2795
2795
  // based on: http://www.blackpawn.com/texts/pointinpoly/default.html
2796
2796
  static getBarycoord(A, e, t, i, r) {
2797
- ki.subVectors(i, e), qn.subVectors(t, e), sp.subVectors(A, e);
2798
- const s = ki.dot(ki), o = ki.dot(qn), a = ki.dot(sp), l = qn.dot(qn), u = qn.dot(sp), c = s * l - o * o;
2797
+ ki.subVectors(i, e), Nn.subVectors(t, e), sp.subVectors(A, e);
2798
+ const s = ki.dot(ki), o = ki.dot(Nn), a = ki.dot(sp), l = Nn.dot(Nn), u = Nn.dot(sp), c = s * l - o * o;
2799
2799
  if (c === 0)
2800
2800
  return r.set(0, 0, 0), null;
2801
2801
  const h = 1 / c, f = (l * a - o * u) * h, p = (s * u - o * a) * h;
2802
2802
  return r.set(1 - f - p, p, f);
2803
2803
  }
2804
2804
  static containsPoint(A, e, t, i) {
2805
- return this.getBarycoord(A, e, t, i, Nn) === null ? !1 : Nn.x >= 0 && Nn.y >= 0 && Nn.x + Nn.y <= 1;
2805
+ return this.getBarycoord(A, e, t, i, Bn) === null ? !1 : Bn.x >= 0 && Bn.y >= 0 && Bn.x + Bn.y <= 1;
2806
2806
  }
2807
2807
  static getInterpolation(A, e, t, i, r, s, o, a) {
2808
- return this.getBarycoord(A, e, t, i, Nn) === null ? (a.x = 0, a.y = 0, "z" in a && (a.z = 0), "w" in a && (a.w = 0), null) : (a.setScalar(0), a.addScaledVector(r, Nn.x), a.addScaledVector(s, Nn.y), a.addScaledVector(o, Nn.z), a);
2808
+ return this.getBarycoord(A, e, t, i, Bn) === null ? (a.x = 0, a.y = 0, "z" in a && (a.z = 0), "w" in a && (a.w = 0), null) : (a.setScalar(0), a.addScaledVector(r, Bn.x), a.addScaledVector(s, Bn.y), a.addScaledVector(o, Bn.z), a);
2809
2809
  }
2810
2810
  static isFrontFacing(A, e, t, i) {
2811
- return ki.subVectors(t, e), qn.subVectors(A, e), ki.cross(qn).dot(i) < 0;
2811
+ return ki.subVectors(t, e), Nn.subVectors(A, e), ki.cross(Nn).dot(i) < 0;
2812
2812
  }
2813
2813
  set(A, e, t) {
2814
2814
  return this.a.copy(A), this.b.copy(e), this.c.copy(t), this;
@@ -2826,7 +2826,7 @@ class Ze {
2826
2826
  return this.a.copy(A.a), this.b.copy(A.b), this.c.copy(A.c), this;
2827
2827
  }
2828
2828
  getArea() {
2829
- return ki.subVectors(this.c, this.b), qn.subVectors(this.a, this.b), ki.cross(qn).length() * 0.5;
2829
+ return ki.subVectors(this.c, this.b), Nn.subVectors(this.a, this.b), ki.cross(Nn).length() * 0.5;
2830
2830
  }
2831
2831
  getMidpoint(A) {
2832
2832
  return A.addVectors(this.a, this.b).add(this.c).multiplyScalar(1 / 3);
@@ -3242,7 +3242,7 @@ let YA = class {
3242
3242
  const Pt = /* @__PURE__ */ new YA();
3243
3243
  YA.NAMES = C2;
3244
3244
  let bM = 0;
3245
- class yn extends Gs {
3245
+ class wn extends Gs {
3246
3246
  constructor() {
3247
3247
  super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: bM++ }), this.uuid = Li(), this.name = "", this.type = "Material", this.blending = Fr, this.side = Ft, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = om, this.blendDst = am, this.blendEquation = bs, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new YA(0, 0, 0), this.blendAlpha = 0, this.depthFunc = wf, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = Jy, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = eo, this.stencilZFail = eo, this.stencilZPass = eo, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.forceSinglePass = !1, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
3248
3248
  }
@@ -3327,9 +3327,9 @@ class yn extends Gs {
3327
3327
  A === !0 && this.version++;
3328
3328
  }
3329
3329
  }
3330
- class Xi extends yn {
3330
+ class Qi extends wn {
3331
3331
  constructor(A) {
3332
- super(), this.isMeshBasicMaterial = !0, this.type = "MeshBasicMaterial", this.color = new YA(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new xn(), this.combine = s2, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.fog = !0, this.setValues(A);
3332
+ super(), this.isMeshBasicMaterial = !0, this.type = "MeshBasicMaterial", this.color = new YA(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new In(), this.combine = s2, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.fog = !0, this.setValues(A);
3333
3333
  }
3334
3334
  copy(A) {
3335
3335
  return super.copy(A), this.color.copy(A.color), this.map = A.map, this.lightMap = A.lightMap, this.lightMapIntensity = A.lightMapIntensity, this.aoMap = A.aoMap, this.aoMapIntensity = A.aoMapIntensity, this.specularMap = A.specularMap, this.alphaMap = A.alphaMap, this.envMap = A.envMap, this.envMapRotation.copy(A.envMapRotation), this.combine = A.combine, this.reflectivity = A.reflectivity, this.refractionRatio = A.refractionRatio, this.wireframe = A.wireframe, this.wireframeLinewidth = A.wireframeLinewidth, this.wireframeLinecap = A.wireframeLinecap, this.wireframeLinejoin = A.wireframeLinejoin, this.fog = A.fog, this;
@@ -3446,35 +3446,35 @@ class he {
3446
3446
  }
3447
3447
  getComponent(A, e) {
3448
3448
  let t = this.array[A * this.itemSize + e];
3449
- return this.normalized && (t = Wi(t, this.array)), t;
3449
+ return this.normalized && (t = Ji(t, this.array)), t;
3450
3450
  }
3451
3451
  setComponent(A, e, t) {
3452
3452
  return this.normalized && (t = Me(t, this.array)), this.array[A * this.itemSize + e] = t, this;
3453
3453
  }
3454
3454
  getX(A) {
3455
3455
  let e = this.array[A * this.itemSize];
3456
- return this.normalized && (e = Wi(e, this.array)), e;
3456
+ return this.normalized && (e = Ji(e, this.array)), e;
3457
3457
  }
3458
3458
  setX(A, e) {
3459
3459
  return this.normalized && (e = Me(e, this.array)), this.array[A * this.itemSize] = e, this;
3460
3460
  }
3461
3461
  getY(A) {
3462
3462
  let e = this.array[A * this.itemSize + 1];
3463
- return this.normalized && (e = Wi(e, this.array)), e;
3463
+ return this.normalized && (e = Ji(e, this.array)), e;
3464
3464
  }
3465
3465
  setY(A, e) {
3466
3466
  return this.normalized && (e = Me(e, this.array)), this.array[A * this.itemSize + 1] = e, this;
3467
3467
  }
3468
3468
  getZ(A) {
3469
3469
  let e = this.array[A * this.itemSize + 2];
3470
- return this.normalized && (e = Wi(e, this.array)), e;
3470
+ return this.normalized && (e = Ji(e, this.array)), e;
3471
3471
  }
3472
3472
  setZ(A, e) {
3473
3473
  return this.normalized && (e = Me(e, this.array)), this.array[A * this.itemSize + 2] = e, this;
3474
3474
  }
3475
3475
  getW(A) {
3476
3476
  let e = this.array[A * this.itemSize + 3];
3477
- return this.normalized && (e = Wi(e, this.array)), e;
3477
+ return this.normalized && (e = Ji(e, this.array)), e;
3478
3478
  }
3479
3479
  setW(A, e) {
3480
3480
  return this.normalized && (e = Me(e, this.array)), this.array[A * this.itemSize + 3] = e, this;
@@ -3834,7 +3834,7 @@ class Re extends Gs {
3834
3834
  }
3835
3835
  const lw = /* @__PURE__ */ new zA(), ns = /* @__PURE__ */ new Ys(), dh = /* @__PURE__ */ new ui(), cw = /* @__PURE__ */ new O(), uo = /* @__PURE__ */ new O(), fo = /* @__PURE__ */ new O(), po = /* @__PURE__ */ new O(), up = /* @__PURE__ */ new O(), ph = /* @__PURE__ */ new O(), gh = /* @__PURE__ */ new dA(), mh = /* @__PURE__ */ new dA(), vh = /* @__PURE__ */ new dA(), hw = /* @__PURE__ */ new O(), uw = /* @__PURE__ */ new O(), fw = /* @__PURE__ */ new O(), yh = /* @__PURE__ */ new O(), wh = /* @__PURE__ */ new O();
3836
3836
  let De = class extends Se {
3837
- constructor(A = new Re(), e = new Xi()) {
3837
+ constructor(A = new Re(), e = new Qi()) {
3838
3838
  super(), this.isMesh = !0, this.type = "Mesh", this.geometry = A, this.material = e, this.updateMorphTargets();
3839
3839
  }
3840
3840
  copy(A, e) {
@@ -4013,7 +4013,7 @@ var EM = `void main() {
4013
4013
  }`, LM = `void main() {
4014
4014
  gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );
4015
4015
  }`;
4016
- class $e extends yn {
4016
+ class $e extends wn {
4017
4017
  constructor(A) {
4018
4018
  super(), this.isShaderMaterial = !0, this.type = "ShaderMaterial", this.defines = {}, this.uniforms = {}, this.uniformsGroups = [], this.vertexShader = EM, this.fragmentShader = LM, this.linewidth = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.fog = !1, this.lights = !1, this.clipping = !1, this.forceSinglePass = !0, this.extensions = {
4019
4019
  clipCullDistance: !1,
@@ -4319,7 +4319,7 @@ class qM extends Xe {
4319
4319
  });
4320
4320
  r.uniforms.tEquirect.value = e;
4321
4321
  const s = new De(i, r), o = e.minFilter;
4322
- return e.minFilter === Zi && (e.minFilter = we), new OM(1, 10, this).update(A, s), e.minFilter = o, s.geometry.dispose(), s.material.dispose(), this;
4322
+ return e.minFilter === Xi && (e.minFilter = we), new OM(1, 10, this).update(A, s), e.minFilter = o, s.geometry.dispose(), s.material.dispose(), this;
4323
4323
  }
4324
4324
  clear(A, e, t, i) {
4325
4325
  const r = A.getRenderTarget();
@@ -8434,7 +8434,7 @@ void main() {
8434
8434
  alphaMapTransform: { value: /* @__PURE__ */ new le() },
8435
8435
  alphaTest: { value: 0 }
8436
8436
  }
8437
- }, pn = {
8437
+ }, gn = {
8438
8438
  basic: {
8439
8439
  uniforms: /* @__PURE__ */ Bt([
8440
8440
  LA.common,
@@ -8658,9 +8658,9 @@ void main() {
8658
8658
  fragmentShader: ae.shadow_frag
8659
8659
  }
8660
8660
  };
8661
- pn.physical = {
8661
+ gn.physical = {
8662
8662
  uniforms: /* @__PURE__ */ Bt([
8663
- pn.standard.uniforms,
8663
+ gn.standard.uniforms,
8664
8664
  {
8665
8665
  clearcoat: { value: 0 },
8666
8666
  clearcoatMap: { value: null },
@@ -8711,7 +8711,7 @@ pn.physical = {
8711
8711
  vertexShader: ae.meshphysical_vert,
8712
8712
  fragmentShader: ae.meshphysical_frag
8713
8713
  };
8714
- const Ih = { r: 0, b: 0, g: 0 }, ss = /* @__PURE__ */ new xn(), mP = /* @__PURE__ */ new zA();
8714
+ const Ih = { r: 0, b: 0, g: 0 }, ss = /* @__PURE__ */ new In(), mP = /* @__PURE__ */ new zA();
8715
8715
  function vP(n, A, e, t, i, r, s) {
8716
8716
  const o = new YA(0);
8717
8717
  let a = r === !0 ? 0 : 1, l, u, c = null, h = 0, f = null;
@@ -8732,9 +8732,9 @@ function vP(n, A, e, t, i, r, s) {
8732
8732
  new Ja(1, 1, 1),
8733
8733
  new $e({
8734
8734
  name: "BackgroundCubeMaterial",
8735
- uniforms: Ra(pn.backgroundCube.uniforms),
8736
- vertexShader: pn.backgroundCube.vertexShader,
8737
- fragmentShader: pn.backgroundCube.fragmentShader,
8735
+ uniforms: Ra(gn.backgroundCube.uniforms),
8736
+ vertexShader: gn.backgroundCube.vertexShader,
8737
+ fragmentShader: gn.backgroundCube.fragmentShader,
8738
8738
  side: Ct,
8739
8739
  depthTest: !1,
8740
8740
  depthWrite: !1,
@@ -8750,9 +8750,9 @@ function vP(n, A, e, t, i, r, s) {
8750
8750
  new ar(2, 2),
8751
8751
  new $e({
8752
8752
  name: "BackgroundMaterial",
8753
- uniforms: Ra(pn.background.uniforms),
8754
- vertexShader: pn.background.vertexShader,
8755
- fragmentShader: pn.background.fragmentShader,
8753
+ uniforms: Ra(gn.background.uniforms),
8754
+ vertexShader: gn.background.vertexShader,
8755
+ fragmentShader: gn.background.fragmentShader,
8756
8756
  side: Ft,
8757
8757
  depthTest: !1,
8758
8758
  depthWrite: !1,
@@ -9062,7 +9062,7 @@ function CP(n, A, e, t) {
9062
9062
  }
9063
9063
  function o(S) {
9064
9064
  const x = S === Oe && (A.has("EXT_color_buffer_half_float") || A.has("EXT_color_buffer_float"));
9065
- return !(S !== An && t.convert(S) !== n.getParameter(n.IMPLEMENTATION_COLOR_READ_TYPE) && // Edge and Chrome Mac < 52 (#9513)
9065
+ return !(S !== en && t.convert(S) !== n.getParameter(n.IMPLEMENTATION_COLOR_READ_TYPE) && // Edge and Chrome Mac < 52 (#9513)
9066
9066
  S !== _e && !x);
9067
9067
  }
9068
9068
  function a(S) {
@@ -9327,7 +9327,7 @@ class yw {
9327
9327
  _sceneToCubeUV(A, e, t, i) {
9328
9328
  const o = new yt(90, 1, e, t), a = [1, -1, 1, 1, 1, 1], l = [1, 1, 1, -1, -1, -1], u = this._renderer, c = u.autoClear, h = u.toneMapping;
9329
9329
  u.getClearColor(mw), u.toneMapping = Ar, u.autoClear = !1;
9330
- const f = new Xi({
9330
+ const f = new Qi({
9331
9331
  name: "PMREM.Background",
9332
9332
  side: Ct,
9333
9333
  depthWrite: !1,
@@ -9988,7 +9988,7 @@ class P2 extends ct {
9988
9988
  constructor(A, e, t, i, r, s, o, a, l, u) {
9989
9989
  if (u = u !== void 0 ? u : va, u !== va && u !== Sc)
9990
9990
  throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");
9991
- t === void 0 && u === va && (t = Qi), t === void 0 && u === Sc && (t = Kc), super(null, i, r, s, o, a, u, t, l), this.isDepthTexture = !0, this.image = { width: A, height: e }, this.magFilter = o !== void 0 ? o : ue, this.minFilter = a !== void 0 ? a : ue, this.flipY = !1, this.generateMipmaps = !1, this.compareFunction = null;
9991
+ t === void 0 && u === va && (t = Vi), t === void 0 && u === Sc && (t = Kc), super(null, i, r, s, o, a, u, t, l), this.isDepthTexture = !0, this.image = { width: A, height: e }, this.magFilter = o !== void 0 ? o : ue, this.minFilter = a !== void 0 ? a : ue, this.flipY = !1, this.generateMipmaps = !1, this.compareFunction = null;
9992
9992
  }
9993
9993
  copy(A) {
9994
9994
  return super.copy(A), this.compareFunction = A.compareFunction, this;
@@ -10624,7 +10624,7 @@ function qw(n) {
10624
10624
  }
10625
10625
  function zT(n) {
10626
10626
  let A = "SHADOWMAP_TYPE_BASIC";
10627
- return n.shadowMapType === r2 ? A = "SHADOWMAP_TYPE_PCF" : n.shadowMapType === $S ? A = "SHADOWMAP_TYPE_PCF_SOFT" : n.shadowMapType === jn && (A = "SHADOWMAP_TYPE_VSM"), A;
10627
+ return n.shadowMapType === r2 ? A = "SHADOWMAP_TYPE_PCF" : n.shadowMapType === $S ? A = "SHADOWMAP_TYPE_PCF_SOFT" : n.shadowMapType === Kn && (A = "SHADOWMAP_TYPE_VSM"), A;
10628
10628
  }
10629
10629
  function RT(n) {
10630
10630
  let A = "ENVMAP_TYPE_CUBE";
@@ -11073,7 +11073,7 @@ function UT(n, A, e, t, i, r, s) {
11073
11073
  q.morphAttributes.position !== void 0 && (H = 1), q.morphAttributes.normal !== void 0 && (H = 2), q.morphAttributes.color !== void 0 && (H = 3);
11074
11074
  let X, j, G, V;
11075
11075
  if (U) {
11076
- const NA = pn[U];
11076
+ const NA = gn[U];
11077
11077
  X = NA.vertexShader, j = NA.fragmentShader;
11078
11078
  } else
11079
11079
  X = b.vertexShader, j = b.fragmentShader, a.update(b), G = a.getVertexShaderID(b), V = a.getFragmentShaderID(b);
@@ -11229,7 +11229,7 @@ function UT(n, A, e, t, i, r, s) {
11229
11229
  const I = p[b.type];
11230
11230
  let D;
11231
11231
  if (I) {
11232
- const P = pn[I];
11232
+ const P = gn[I];
11233
11233
  D = Fc.clone(P.uniforms);
11234
11234
  } else
11235
11235
  D = b.uniforms;
@@ -11626,7 +11626,7 @@ function eD(n) {
11626
11626
  dispose: t
11627
11627
  };
11628
11628
  }
11629
- class rv extends yn {
11629
+ class rv extends wn {
11630
11630
  constructor(A) {
11631
11631
  super(), this.isMeshDepthMaterial = !0, this.type = "MeshDepthMaterial", this.depthPacking = R_, this.map = null, this.alphaMap = null, this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.wireframe = !1, this.wireframeLinewidth = 1, this.setValues(A);
11632
11632
  }
@@ -11634,7 +11634,7 @@ class rv extends yn {
11634
11634
  return super.copy(A), this.depthPacking = A.depthPacking, this.map = A.map, this.alphaMap = A.alphaMap, this.displacementMap = A.displacementMap, this.displacementScale = A.displacementScale, this.displacementBias = A.displacementBias, this.wireframe = A.wireframe, this.wireframeLinewidth = A.wireframeLinewidth, this;
11635
11635
  }
11636
11636
  }
11637
- class q2 extends yn {
11637
+ class q2 extends wn {
11638
11638
  constructor(A) {
11639
11639
  super(), this.isMeshDistanceMaterial = !0, this.type = "MeshDistanceMaterial", this.map = null, this.alphaMap = null, this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.setValues(A);
11640
11640
  }
@@ -11702,7 +11702,7 @@ function nD(n, A, e) {
11702
11702
  return;
11703
11703
  const b = n.getRenderTarget(), I = n.getActiveCubeFace(), D = n.getActiveMipmapLevel(), P = n.state;
11704
11704
  P.setBlending(Dt), P.buffers.color.setClear(1, 1, 1, 1), P.buffers.depth.setTest(!0), P.setScissorTest(!1);
11705
- const M = g !== jn && this.type === jn, T = g === jn && this.type !== jn;
11705
+ const M = g !== Kn && this.type === Kn, T = g === Kn && this.type !== Kn;
11706
11706
  for (let q = 0, B = S.length; q < B; q++) {
11707
11707
  const W = S[q], K = W.shadow;
11708
11708
  if (K === void 0) {
@@ -11714,7 +11714,7 @@ function nD(n, A, e) {
11714
11714
  i.copy(K.mapSize);
11715
11715
  const U = K.getFrameExtents();
11716
11716
  if (i.multiply(U), r.copy(K.mapSize), (i.x > u || i.y > u) && (i.x > u && (r.x = Math.floor(u / U.x), i.x = r.x * U.x, K.mapSize.x = r.x), i.y > u && (r.y = Math.floor(u / U.y), i.y = r.y * U.y, K.mapSize.y = r.y)), K.map === null || M === !0 || T === !0) {
11717
- const N = this.type !== jn ? { minFilter: ue, magFilter: ue } : {};
11717
+ const N = this.type !== Kn ? { minFilter: ue, magFilter: ue } : {};
11718
11718
  K.map !== null && K.map.dispose(), K.map = new Xe(i.x, i.y, N), K.map.texture.name = W.name + ".shadowMap", K.camera.updateProjectionMatrix();
11719
11719
  }
11720
11720
  n.setRenderTarget(K.map), n.clear();
@@ -11728,7 +11728,7 @@ function nD(n, A, e) {
11728
11728
  r.y * H.w
11729
11729
  ), P.viewport(s), K.updateMatrices(W, N), t = K.getFrustum(), w(x, _, K.camera, W, this.type);
11730
11730
  }
11731
- K.isPointLightShadow !== !0 && this.type === jn && y(K, _), K.needsUpdate = !1;
11731
+ K.isPointLightShadow !== !0 && this.type === Kn && y(K, _), K.needsUpdate = !1;
11732
11732
  }
11733
11733
  g = this.type, d.needsUpdate = !1, n.setRenderTarget(b, I, D);
11734
11734
  };
@@ -11748,7 +11748,7 @@ function nD(n, A, e) {
11748
11748
  let q = T[M];
11749
11749
  q === void 0 && (q = I.clone(), T[M] = q, x.addEventListener("dispose", C)), I = q;
11750
11750
  }
11751
- if (I.visible = x.visible, I.wireframe = x.wireframe, b === jn ? I.side = x.shadowSide !== null ? x.shadowSide : x.side : I.side = x.shadowSide !== null ? x.shadowSide : c[x.side], I.alphaMap = x.alphaMap, I.alphaTest = x.alphaTest, I.map = x.map, I.clipShadows = x.clipShadows, I.clippingPlanes = x.clippingPlanes, I.clipIntersection = x.clipIntersection, I.displacementMap = x.displacementMap, I.displacementScale = x.displacementScale, I.displacementBias = x.displacementBias, I.wireframeLinewidth = x.wireframeLinewidth, I.linewidth = x.linewidth, _.isPointLight === !0 && I.isMeshDistanceMaterial === !0) {
11751
+ if (I.visible = x.visible, I.wireframe = x.wireframe, b === Kn ? I.side = x.shadowSide !== null ? x.shadowSide : x.side : I.side = x.shadowSide !== null ? x.shadowSide : c[x.side], I.alphaMap = x.alphaMap, I.alphaTest = x.alphaTest, I.map = x.map, I.clipShadows = x.clipShadows, I.clippingPlanes = x.clippingPlanes, I.clipIntersection = x.clipIntersection, I.displacementMap = x.displacementMap, I.displacementScale = x.displacementScale, I.displacementBias = x.displacementBias, I.wireframeLinewidth = x.wireframeLinewidth, I.linewidth = x.linewidth, _.isPointLight === !0 && I.isMeshDistanceMaterial === !0) {
11752
11752
  const P = n.properties.get(I);
11753
11753
  P.light = _;
11754
11754
  }
@@ -11757,7 +11757,7 @@ function nD(n, A, e) {
11757
11757
  function w(S, x, _, b, I) {
11758
11758
  if (S.visible === !1)
11759
11759
  return;
11760
- if (S.layers.test(x.layers) && (S.isMesh || S.isLine || S.isPoints) && (S.castShadow || S.receiveShadow && I === jn) && (!S.frustumCulled || t.intersectsObject(S))) {
11760
+ if (S.layers.test(x.layers) && (S.isMesh || S.isLine || S.isPoints) && (S.castShadow || S.receiveShadow && I === Kn) && (!S.frustumCulled || t.intersectsObject(S))) {
11761
11761
  S.modelViewMatrix.multiplyMatrices(_.matrixWorldInverse, S.matrixWorld);
11762
11762
  const M = A.update(S), T = S.material;
11763
11763
  if (Array.isArray(T)) {
@@ -12327,7 +12327,7 @@ function sD(n, A, e, t, i, r, s) {
12327
12327
  [ca]: n.NEAREST_MIPMAP_LINEAR,
12328
12328
  [we]: n.LINEAR,
12329
12329
  [rc]: n.LINEAR_MIPMAP_NEAREST,
12330
- [Zi]: n.LINEAR_MIPMAP_LINEAR
12330
+ [Xi]: n.LINEAR_MIPMAP_LINEAR
12331
12331
  }, U = {
12332
12332
  [j_]: n.NEVER,
12333
12333
  [U_]: n.ALWAYS,
@@ -12339,8 +12339,8 @@ function sD(n, A, e, t, i, r, s) {
12339
12339
  [Y_]: n.NOTEQUAL
12340
12340
  };
12341
12341
  function k(R, L) {
12342
- if (L.type === _e && A.has("OES_texture_float_linear") === !1 && (L.magFilter === we || L.magFilter === rc || L.magFilter === ca || L.magFilter === Zi || L.minFilter === we || L.minFilter === rc || L.minFilter === ca || L.minFilter === Zi) && console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."), n.texParameteri(R, n.TEXTURE_WRAP_S, W[L.wrapS]), n.texParameteri(R, n.TEXTURE_WRAP_T, W[L.wrapT]), (R === n.TEXTURE_3D || R === n.TEXTURE_2D_ARRAY) && n.texParameteri(R, n.TEXTURE_WRAP_R, W[L.wrapR]), n.texParameteri(R, n.TEXTURE_MAG_FILTER, K[L.magFilter]), n.texParameteri(R, n.TEXTURE_MIN_FILTER, K[L.minFilter]), L.compareFunction && (n.texParameteri(R, n.TEXTURE_COMPARE_MODE, n.COMPARE_REF_TO_TEXTURE), n.texParameteri(R, n.TEXTURE_COMPARE_FUNC, U[L.compareFunction])), A.has("EXT_texture_filter_anisotropic") === !0) {
12343
- if (L.magFilter === ue || L.minFilter !== ca && L.minFilter !== Zi || L.type === _e && A.has("OES_texture_float_linear") === !1)
12342
+ if (L.type === _e && A.has("OES_texture_float_linear") === !1 && (L.magFilter === we || L.magFilter === rc || L.magFilter === ca || L.magFilter === Xi || L.minFilter === we || L.minFilter === rc || L.minFilter === ca || L.minFilter === Xi) && console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."), n.texParameteri(R, n.TEXTURE_WRAP_S, W[L.wrapS]), n.texParameteri(R, n.TEXTURE_WRAP_T, W[L.wrapT]), (R === n.TEXTURE_3D || R === n.TEXTURE_2D_ARRAY) && n.texParameteri(R, n.TEXTURE_WRAP_R, W[L.wrapR]), n.texParameteri(R, n.TEXTURE_MAG_FILTER, K[L.magFilter]), n.texParameteri(R, n.TEXTURE_MIN_FILTER, K[L.minFilter]), L.compareFunction && (n.texParameteri(R, n.TEXTURE_COMPARE_MODE, n.COMPARE_REF_TO_TEXTURE), n.texParameteri(R, n.TEXTURE_COMPARE_FUNC, U[L.compareFunction])), A.has("EXT_texture_filter_anisotropic") === !0) {
12343
+ if (L.magFilter === ue || L.minFilter !== ca && L.minFilter !== Xi || L.type === _e && A.has("OES_texture_float_linear") === !1)
12344
12344
  return;
12345
12345
  if (L.anisotropy > 1 || t.get(L).__currentAnisotropy) {
12346
12346
  const F = A.get("EXT_texture_filter_anisotropic");
@@ -12383,7 +12383,7 @@ function sD(n, A, e, t, i, r, s) {
12383
12383
  let CA;
12384
12384
  const DA = L.mipmaps, _A = L.isVideoTexture !== !0, XA = uA.__version === void 0 || eA === !0, KA = nA.dataReady, E = v(L, lA);
12385
12385
  if (L.isDepthTexture)
12386
- qA = n.DEPTH_COMPONENT16, L.type === _e ? qA = n.DEPTH_COMPONENT32F : L.type === Qi ? qA = n.DEPTH_COMPONENT24 : L.type === Kc && (qA = n.DEPTH24_STENCIL8), XA && (_A ? e.texStorage2D(n.TEXTURE_2D, 1, qA, lA.width, lA.height) : e.texImage2D(n.TEXTURE_2D, 0, qA, lA.width, lA.height, 0, IA, FA, null));
12386
+ qA = n.DEPTH_COMPONENT16, L.type === _e ? qA = n.DEPTH_COMPONENT32F : L.type === Vi ? qA = n.DEPTH_COMPONENT24 : L.type === Kc && (qA = n.DEPTH24_STENCIL8), XA && (_A ? e.texStorage2D(n.TEXTURE_2D, 1, qA, lA.width, lA.height) : e.texImage2D(n.TEXTURE_2D, 0, qA, lA.width, lA.height, 0, IA, FA, null));
12387
12387
  else if (L.isDataTexture)
12388
12388
  if (DA.length > 0) {
12389
12389
  _A && XA && e.texStorage2D(n.TEXTURE_2D, E, qA, DA[0].width, DA[0].height);
@@ -12499,7 +12499,7 @@ function sD(n, A, e, t, i, r, s) {
12499
12499
  let iA = n.DEPTH_COMPONENT24;
12500
12500
  if (F || mA(L)) {
12501
12501
  const eA = L.depthTexture;
12502
- eA && eA.isDepthTexture && (eA.type === _e ? iA = n.DEPTH_COMPONENT32F : eA.type === Qi && (iA = n.DEPTH_COMPONENT24));
12502
+ eA && eA.isDepthTexture && (eA.type === _e ? iA = n.DEPTH_COMPONENT32F : eA.type === Vi && (iA = n.DEPTH_COMPONENT24));
12503
12503
  const nA = vA(L);
12504
12504
  mA(L) ? o.renderbufferStorageMultisampleEXT(n.RENDERBUFFER, nA, iA, L.width, L.height) : n.renderbufferStorageMultisample(n.RENDERBUFFER, nA, iA, L.width, L.height);
12505
12505
  } else
@@ -12666,7 +12666,7 @@ function sD(n, A, e, t, i, r, s) {
12666
12666
  }
12667
12667
  function SA(R, L) {
12668
12668
  const F = R.colorSpace, iA = R.format, eA = R.type;
12669
- return R.isCompressedTexture === !0 || R.isVideoTexture === !0 || F !== lt && F !== Hn && (Ie.getTransfer(F) === Ee ? (iA !== be || eA !== An) && console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.") : console.error("THREE.WebGLTextures: Unsupported texture color space:", F)), L;
12669
+ return R.isCompressedTexture === !0 || R.isVideoTexture === !0 || F !== lt && F !== Hn && (Ie.getTransfer(F) === Ee ? (iA !== be || eA !== en) && console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.") : console.error("THREE.WebGLTextures: Unsupported texture color space:", F)), L;
12670
12670
  }
12671
12671
  function gA(R) {
12672
12672
  return typeof HTMLImageElement < "u" && R instanceof HTMLImageElement ? (l.width = R.naturalWidth || R.width, l.height = R.naturalHeight || R.height) : typeof VideoFrame < "u" && R instanceof VideoFrame ? (l.width = R.displayWidth, l.height = R.displayHeight) : (l.width = R.width, l.height = R.height), l;
@@ -12677,7 +12677,7 @@ function oD(n, A) {
12677
12677
  function e(t, i = Hn) {
12678
12678
  let r;
12679
12679
  const s = Ie.getTransfer(i);
12680
- if (t === An)
12680
+ if (t === en)
12681
12681
  return n.UNSIGNED_BYTE;
12682
12682
  if (t === d2)
12683
12683
  return n.UNSIGNED_SHORT_4_4_4_4;
@@ -12693,7 +12693,7 @@ function oD(n, A) {
12693
12693
  return n.UNSIGNED_SHORT;
12694
12694
  if (t === sc)
12695
12695
  return n.INT;
12696
- if (t === Qi)
12696
+ if (t === Vi)
12697
12697
  return n.UNSIGNED_INT;
12698
12698
  if (t === _e)
12699
12699
  return n.FLOAT;
@@ -13027,14 +13027,14 @@ class fD extends Gs {
13027
13027
  f.framebufferHeight,
13028
13028
  {
13029
13029
  format: be,
13030
- type: An,
13030
+ type: en,
13031
13031
  colorSpace: A.outputColorSpace,
13032
13032
  stencilBuffer: d.stencil
13033
13033
  }
13034
13034
  );
13035
13035
  } else {
13036
13036
  let G = null, V = null, J = null;
13037
- d.depth && (J = d.stencil ? e.DEPTH24_STENCIL8 : e.DEPTH_COMPONENT24, G = d.stencil ? Sc : va, V = d.stencil ? Kc : Qi);
13037
+ d.depth && (J = d.stencil ? e.DEPTH24_STENCIL8 : e.DEPTH_COMPONENT24, G = d.stencil ? Sc : va, V = d.stencil ? Kc : Vi);
13038
13038
  const tA = {
13039
13039
  colorFormat: e.RGBA8,
13040
13040
  depthFormat: J,
@@ -13045,7 +13045,7 @@ class fD extends Gs {
13045
13045
  h.textureHeight,
13046
13046
  {
13047
13047
  format: be,
13048
- type: An,
13048
+ type: en,
13049
13049
  depthTexture: new P2(h.textureWidth, h.textureHeight, V, void 0, void 0, void 0, void 0, void 0, void 0, G),
13050
13050
  stencilBuffer: d.stencil,
13051
13051
  colorSpace: A.outputColorSpace,
@@ -13163,7 +13163,7 @@ class fD extends Gs {
13163
13163
  };
13164
13164
  }
13165
13165
  }
13166
- const os = /* @__PURE__ */ new xn(), dD = /* @__PURE__ */ new zA();
13166
+ const os = /* @__PURE__ */ new In(), dD = /* @__PURE__ */ new zA();
13167
13167
  function pD(n, A) {
13168
13168
  function e(d, g) {
13169
13169
  d.matrixAutoUpdate === !0 && d.updateMatrix(), g.value.copy(d.matrix);
@@ -13465,7 +13465,7 @@ class N2 {
13465
13465
  sA = BA === _c || BA === id || BA === Q0;
13466
13466
  }
13467
13467
  if (sA) {
13468
- const BA = x.texture.type, HA = BA === An || BA === Qi || BA === X0 || BA === Kc || BA === d2 || BA === p2, UA = lA.getClearColor(), QA = lA.getClearAlpha(), ee = UA.r, bA = UA.g, re = UA.b;
13468
+ const BA = x.texture.type, HA = BA === en || BA === Vi || BA === X0 || BA === Kc || BA === d2 || BA === p2, UA = lA.getClearColor(), QA = lA.getClearAlpha(), ee = UA.r, bA = UA.g, re = UA.b;
13469
13469
  HA ? (f[0] = ee, f[1] = bA, f[2] = re, f[3] = QA, Y.clearBufferuiv(Y.COLOR, 0, f)) : (p[0] = ee, p[1] = bA, p[2] = re, p[3] = QA, Y.clearBufferiv(Y.COLOR, 0, p));
13470
13470
  } else
13471
13471
  rA |= Y.COLOR_BUFFER_BIT;
@@ -13534,8 +13534,8 @@ class N2 {
13534
13534
  else if (sA.isInstancedMesh)
13535
13535
  ye.renderInstances(He, dt, sA.count);
13536
13536
  else if (oA.isInstancedBufferGeometry) {
13537
- const Ae = oA._maxInstanceCount !== void 0 ? oA._maxInstanceCount : 1 / 0, sn = Math.min(oA.instanceCount, Ae);
13538
- ye.renderInstances(He, dt, sn);
13537
+ const Ae = oA._maxInstanceCount !== void 0 ? oA._maxInstanceCount : 1 / 0, on = Math.min(oA.instanceCount, Ae);
13538
+ ye.renderInstances(He, dt, on);
13539
13539
  } else
13540
13540
  ye.render(He, dt);
13541
13541
  };
@@ -13658,8 +13658,8 @@ class N2 {
13658
13658
  return;
13659
13659
  d.state.transmissionRenderTarget[rA.id] === void 0 && (d.state.transmissionRenderTarget[rA.id] = new Xe(1, 1, {
13660
13660
  generateMipmaps: !0,
13661
- type: AA.has("EXT_color_buffer_half_float") || AA.has("EXT_color_buffer_float") ? Oe : An,
13662
- minFilter: Zi,
13661
+ type: AA.has("EXT_color_buffer_half_float") || AA.has("EXT_color_buffer_float") ? Oe : en,
13662
+ minFilter: Xi,
13663
13663
  samples: 4,
13664
13664
  stencilBuffer: r,
13665
13665
  resolveDepthBuffer: !1,
@@ -13677,8 +13677,8 @@ class N2 {
13677
13677
  for (let re = 0, He = $.length; re < He; re++) {
13678
13678
  const je = $[re], dt = je.object, gi = je.geometry, ye = je.material, Ae = je.group;
13679
13679
  if (ye.side === st && dt.layers.test(rA.layers)) {
13680
- const sn = ye.side;
13681
- ye.side = Ct, ye.needsUpdate = !0, qt(dt, oA, rA, gi, ye, Ae), ye.side = sn, ye.needsUpdate = !0, bA = !0;
13680
+ const on = ye.side;
13681
+ ye.side = Ct, ye.needsUpdate = !0, qt(dt, oA, rA, gi, ye, Ae), ye.side = on, ye.needsUpdate = !0, bA = !0;
13682
13682
  }
13683
13683
  }
13684
13684
  bA === !0 && (SA.updateMultisampleRenderTarget(BA), SA.updateRenderTargetMipmap(BA));
@@ -13709,7 +13709,7 @@ class N2 {
13709
13709
  const re = rA.uniforms;
13710
13710
  return (!z.isShaderMaterial && !z.isRawShaderMaterial || z.clipping === !0) && (re.clippingPlanes = cA.uniform), pi(z, UA), rA.needsLights = Xc(z), rA.lightsStateVersion = HA, rA.needsLights && (re.ambientLightColor.value = sA.state.ambient, re.lightProbe.value = sA.state.probe, re.directionalLights.value = sA.state.directional, re.directionalLightShadows.value = sA.state.directionalShadow, re.spotLights.value = sA.state.spot, re.spotLightShadows.value = sA.state.spotShadow, re.rectAreaLights.value = sA.state.rectArea, re.ltc_1.value = sA.state.rectAreaLTC1, re.ltc_2.value = sA.state.rectAreaLTC2, re.pointLights.value = sA.state.point, re.pointLightShadows.value = sA.state.pointShadow, re.hemisphereLights.value = sA.state.hemi, re.directionalShadowMap.value = sA.state.directionalShadowMap, re.directionalShadowMatrix.value = sA.state.directionalShadowMatrix, re.spotShadowMap.value = sA.state.spotShadowMap, re.spotLightMatrix.value = sA.state.spotLightMatrix, re.spotLightMap.value = sA.state.spotLightMap, re.pointShadowMap.value = sA.state.pointShadowMap, re.pointShadowMatrix.value = sA.state.pointShadowMatrix), rA.currentProgram = bA, rA.uniformsList = null, bA;
13711
13711
  }
13712
- function rn(z) {
13712
+ function sn(z) {
13713
13713
  if (z.uniformsList === null) {
13714
13714
  const $ = z.currentProgram.getUniforms();
13715
13715
  z.uniformsList = Af.seqWithValue($.seq, z.uniforms);
@@ -13725,25 +13725,25 @@ class N2 {
13725
13725
  const BA = $.fog, HA = rA.isMeshStandardMaterial ? $.environment : null, UA = x === null ? v.outputColorSpace : x.isXRRenderTarget === !0 ? x.texture.colorSpace : lt, QA = (rA.isMeshStandardMaterial ? R : gA).get(rA.envMap || HA), ee = rA.vertexColors === !0 && !!oA.attributes.color && oA.attributes.color.itemSize === 4, bA = !!oA.attributes.tangent && (!!rA.normalMap || rA.anisotropy > 0), re = !!oA.morphAttributes.position, He = !!oA.morphAttributes.normal, je = !!oA.morphAttributes.color;
13726
13726
  let dt = Ar;
13727
13727
  rA.toneMapped && (x === null || x.isXRRenderTarget === !0) && (dt = v.toneMapping);
13728
- const gi = oA.morphAttributes.position || oA.morphAttributes.normal || oA.morphAttributes.color, ye = gi !== void 0 ? gi.length : 0, Ae = yA.get(rA), sn = d.state.lights;
13728
+ const gi = oA.morphAttributes.position || oA.morphAttributes.normal || oA.morphAttributes.color, ye = gi !== void 0 ? gi.length : 0, Ae = yA.get(rA), on = d.state.lights;
13729
13729
  if (j === !0 && (G === !0 || z !== b)) {
13730
13730
  const _t = z === b && rA.id === _;
13731
13731
  cA.setState(rA, z, _t);
13732
13732
  }
13733
13733
  let Te = !1;
13734
- rA.version === Ae.__version ? (Ae.needsLights && Ae.lightsStateVersion !== sn.state.version || Ae.outputColorSpace !== UA || sA.isBatchedMesh && Ae.batching === !1 || !sA.isBatchedMesh && Ae.batching === !0 || sA.isInstancedMesh && Ae.instancing === !1 || !sA.isInstancedMesh && Ae.instancing === !0 || sA.isSkinnedMesh && Ae.skinning === !1 || !sA.isSkinnedMesh && Ae.skinning === !0 || sA.isInstancedMesh && Ae.instancingColor === !0 && sA.instanceColor === null || sA.isInstancedMesh && Ae.instancingColor === !1 && sA.instanceColor !== null || sA.isInstancedMesh && Ae.instancingMorph === !0 && sA.morphTexture === null || sA.isInstancedMesh && Ae.instancingMorph === !1 && sA.morphTexture !== null || Ae.envMap !== QA || rA.fog === !0 && Ae.fog !== BA || Ae.numClippingPlanes !== void 0 && (Ae.numClippingPlanes !== cA.numPlanes || Ae.numIntersection !== cA.numIntersection) || Ae.vertexAlphas !== ee || Ae.vertexTangents !== bA || Ae.morphTargets !== re || Ae.morphNormals !== He || Ae.morphColors !== je || Ae.toneMapping !== dt || Ae.morphTargetsCount !== ye) && (Te = !0) : (Te = !0, Ae.__version = rA.version);
13734
+ rA.version === Ae.__version ? (Ae.needsLights && Ae.lightsStateVersion !== on.state.version || Ae.outputColorSpace !== UA || sA.isBatchedMesh && Ae.batching === !1 || !sA.isBatchedMesh && Ae.batching === !0 || sA.isInstancedMesh && Ae.instancing === !1 || !sA.isInstancedMesh && Ae.instancing === !0 || sA.isSkinnedMesh && Ae.skinning === !1 || !sA.isSkinnedMesh && Ae.skinning === !0 || sA.isInstancedMesh && Ae.instancingColor === !0 && sA.instanceColor === null || sA.isInstancedMesh && Ae.instancingColor === !1 && sA.instanceColor !== null || sA.isInstancedMesh && Ae.instancingMorph === !0 && sA.morphTexture === null || sA.isInstancedMesh && Ae.instancingMorph === !1 && sA.morphTexture !== null || Ae.envMap !== QA || rA.fog === !0 && Ae.fog !== BA || Ae.numClippingPlanes !== void 0 && (Ae.numClippingPlanes !== cA.numPlanes || Ae.numIntersection !== cA.numIntersection) || Ae.vertexAlphas !== ee || Ae.vertexTangents !== bA || Ae.morphTargets !== re || Ae.morphNormals !== He || Ae.morphColors !== je || Ae.toneMapping !== dt || Ae.morphTargetsCount !== ye) && (Te = !0) : (Te = !0, Ae.__version = rA.version);
13735
13735
  let mi = Ae.currentProgram;
13736
13736
  Te === !0 && (mi = $t(rA, $, sA));
13737
- let sl = !1, Dn = !1, Xs = !1;
13737
+ let sl = !1, En = !1, Xs = !1;
13738
13738
  const Ue = mi.getUniforms(), vi = Ae.uniforms;
13739
- if (vA.useProgram(mi.program) && (sl = !0, Dn = !0, Xs = !0), rA.id !== _ && (_ = rA.id, Dn = !0), sl || b !== z) {
13739
+ if (vA.useProgram(mi.program) && (sl = !0, En = !0, Xs = !0), rA.id !== _ && (_ = rA.id, En = !0), sl || b !== z) {
13740
13740
  Ue.setValue(Y, "projectionMatrix", z.projectionMatrix), Ue.setValue(Y, "viewMatrix", z.matrixWorldInverse);
13741
13741
  const _t = Ue.map.cameraPosition;
13742
13742
  _t !== void 0 && _t.setValue(Y, J.setFromMatrixPosition(z.matrixWorld)), TA.logarithmicDepthBuffer && Ue.setValue(
13743
13743
  Y,
13744
13744
  "logDepthBufFC",
13745
13745
  2 / (Math.log(z.far + 1) / Math.LN2)
13746
- ), (rA.isMeshPhongMaterial || rA.isMeshToonMaterial || rA.isMeshLambertMaterial || rA.isMeshBasicMaterial || rA.isMeshStandardMaterial || rA.isShaderMaterial) && Ue.setValue(Y, "isOrthographic", z.isOrthographicCamera === !0), b !== z && (b = z, Dn = !0, Xs = !0);
13746
+ ), (rA.isMeshPhongMaterial || rA.isMeshToonMaterial || rA.isMeshLambertMaterial || rA.isMeshBasicMaterial || rA.isMeshStandardMaterial || rA.isShaderMaterial) && Ue.setValue(Y, "isOrthographic", z.isOrthographicCamera === !0), b !== z && (b = z, En = !0, Xs = !0);
13747
13747
  }
13748
13748
  if (sA.isSkinnedMesh) {
13749
13749
  Ue.setOptional(Y, sA, "bindMatrix"), Ue.setOptional(Y, sA, "bindMatrixInverse");
@@ -13751,8 +13751,8 @@ class N2 {
13751
13751
  _t && (_t.boneTexture === null && _t.computeBoneTexture(), Ue.setValue(Y, "boneTexture", _t.boneTexture, SA));
13752
13752
  }
13753
13753
  sA.isBatchedMesh && (Ue.setOptional(Y, sA, "batchingTexture"), Ue.setValue(Y, "batchingTexture", sA._matricesTexture, SA));
13754
- const on = oA.morphAttributes;
13755
- if ((on.position !== void 0 || on.normal !== void 0 || on.color !== void 0) && IA.update(sA, oA, mi), (Dn || Ae.receiveShadow !== sA.receiveShadow) && (Ae.receiveShadow = sA.receiveShadow, Ue.setValue(Y, "receiveShadow", sA.receiveShadow)), rA.isMeshGouraudMaterial && rA.envMap !== null && (vi.envMap.value = QA, vi.flipEnvMap.value = QA.isCubeTexture && QA.isRenderTargetTexture === !1 ? -1 : 1), rA.isMeshStandardMaterial && rA.envMap === null && $.environment !== null && (vi.envMapIntensity.value = $.environmentIntensity), Dn && (Ue.setValue(Y, "toneMappingExposure", v.toneMappingExposure), Ae.needsLights && Tn(vi, Xs), BA && rA.fog === !0 && nA.refreshFogUniforms(vi, BA), nA.refreshMaterialUniforms(vi, rA, W, B, d.state.transmissionRenderTarget[z.id]), Af.upload(Y, rn(Ae), vi, SA)), rA.isShaderMaterial && rA.uniformsNeedUpdate === !0 && (Af.upload(Y, rn(Ae), vi, SA), rA.uniformsNeedUpdate = !1), rA.isSpriteMaterial && Ue.setValue(Y, "center", sA.center), Ue.setValue(Y, "modelViewMatrix", sA.modelViewMatrix), Ue.setValue(Y, "normalMatrix", sA.normalMatrix), Ue.setValue(Y, "modelMatrix", sA.matrixWorld), rA.isShaderMaterial || rA.isRawShaderMaterial) {
13754
+ const an = oA.morphAttributes;
13755
+ if ((an.position !== void 0 || an.normal !== void 0 || an.color !== void 0) && IA.update(sA, oA, mi), (En || Ae.receiveShadow !== sA.receiveShadow) && (Ae.receiveShadow = sA.receiveShadow, Ue.setValue(Y, "receiveShadow", sA.receiveShadow)), rA.isMeshGouraudMaterial && rA.envMap !== null && (vi.envMap.value = QA, vi.flipEnvMap.value = QA.isCubeTexture && QA.isRenderTargetTexture === !1 ? -1 : 1), rA.isMeshStandardMaterial && rA.envMap === null && $.environment !== null && (vi.envMapIntensity.value = $.environmentIntensity), En && (Ue.setValue(Y, "toneMappingExposure", v.toneMappingExposure), Ae.needsLights && Dn(vi, Xs), BA && rA.fog === !0 && nA.refreshFogUniforms(vi, BA), nA.refreshMaterialUniforms(vi, rA, W, B, d.state.transmissionRenderTarget[z.id]), Af.upload(Y, sn(Ae), vi, SA)), rA.isShaderMaterial && rA.uniformsNeedUpdate === !0 && (Af.upload(Y, sn(Ae), vi, SA), rA.uniformsNeedUpdate = !1), rA.isSpriteMaterial && Ue.setValue(Y, "center", sA.center), Ue.setValue(Y, "modelViewMatrix", sA.modelViewMatrix), Ue.setValue(Y, "normalMatrix", sA.normalMatrix), Ue.setValue(Y, "modelMatrix", sA.matrixWorld), rA.isShaderMaterial || rA.isRawShaderMaterial) {
13756
13756
  const _t = rA.uniformsGroups;
13757
13757
  for (let es = 0, ol = _t.length; es < ol; es++) {
13758
13758
  const Ai = _t[es];
@@ -13761,7 +13761,7 @@ class N2 {
13761
13761
  }
13762
13762
  return mi;
13763
13763
  }
13764
- function Tn(z, $) {
13764
+ function Dn(z, $) {
13765
13765
  z.ambientLightColor.needsUpdate = $, z.lightProbe.needsUpdate = $, z.directionalLights.needsUpdate = $, z.directionalLightShadows.needsUpdate = $, z.pointLights.needsUpdate = $, z.pointLightShadows.needsUpdate = $, z.spotLights.needsUpdate = $, z.spotLightShadows.needsUpdate = $, z.rectAreaLights.needsUpdate = $, z.hemisphereLights.needsUpdate = $;
13766
13766
  }
13767
13767
  function Xc(z) {
@@ -13870,7 +13870,7 @@ class N2 {
13870
13870
  }
13871
13871
  class Pc extends Se {
13872
13872
  constructor() {
13873
- super(), this.isScene = !0, this.type = "Scene", this.background = null, this.environment = null, this.fog = null, this.backgroundBlurriness = 0, this.backgroundIntensity = 1, this.backgroundRotation = new xn(), this.environmentIntensity = 1, this.environmentRotation = new xn(), this.overrideMaterial = null, typeof __THREE_DEVTOOLS__ < "u" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe", { detail: this }));
13873
+ super(), this.isScene = !0, this.type = "Scene", this.background = null, this.environment = null, this.fog = null, this.backgroundBlurriness = 0, this.backgroundIntensity = 1, this.backgroundRotation = new In(), this.environmentIntensity = 1, this.environmentRotation = new In(), this.overrideMaterial = null, typeof __THREE_DEVTOOLS__ < "u" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe", { detail: this }));
13874
13874
  }
13875
13875
  copy(A, e) {
13876
13876
  return super.copy(A, e), A.background !== null && (this.background = A.background.clone()), A.environment !== null && (this.environment = A.environment.clone()), A.fog !== null && (this.fog = A.fog.clone()), this.backgroundBlurriness = A.backgroundBlurriness, this.backgroundIntensity = A.backgroundIntensity, this.backgroundRotation.copy(A.backgroundRotation), this.environmentIntensity = A.environmentIntensity, this.environmentRotation.copy(A.environmentRotation), A.overrideMaterial !== null && (this.overrideMaterial = A.overrideMaterial.clone()), this.matrixAutoUpdate = A.matrixAutoUpdate, this;
@@ -13961,7 +13961,7 @@ class sv {
13961
13961
  }
13962
13962
  getComponent(A, e) {
13963
13963
  let t = this.array[A * this.data.stride + this.offset + e];
13964
- return this.normalized && (t = Wi(t, this.array)), t;
13964
+ return this.normalized && (t = Ji(t, this.array)), t;
13965
13965
  }
13966
13966
  setComponent(A, e, t) {
13967
13967
  return this.normalized && (t = Me(t, this.array)), this.data.array[A * this.data.stride + this.offset + e] = t, this;
@@ -13980,19 +13980,19 @@ class sv {
13980
13980
  }
13981
13981
  getX(A) {
13982
13982
  let e = this.data.array[A * this.data.stride + this.offset];
13983
- return this.normalized && (e = Wi(e, this.array)), e;
13983
+ return this.normalized && (e = Ji(e, this.array)), e;
13984
13984
  }
13985
13985
  getY(A) {
13986
13986
  let e = this.data.array[A * this.data.stride + this.offset + 1];
13987
- return this.normalized && (e = Wi(e, this.array)), e;
13987
+ return this.normalized && (e = Ji(e, this.array)), e;
13988
13988
  }
13989
13989
  getZ(A) {
13990
13990
  let e = this.data.array[A * this.data.stride + this.offset + 2];
13991
- return this.normalized && (e = Wi(e, this.array)), e;
13991
+ return this.normalized && (e = Ji(e, this.array)), e;
13992
13992
  }
13993
13993
  getW(A) {
13994
13994
  let e = this.data.array[A * this.data.stride + this.offset + 3];
13995
- return this.normalized && (e = Wi(e, this.array)), e;
13995
+ return this.normalized && (e = Ji(e, this.array)), e;
13996
13996
  }
13997
13997
  setXY(A, e, t) {
13998
13998
  return A = A * this.data.stride + this.offset, this.normalized && (e = Me(e, this.array), t = Me(t, this.array)), this.data.array[A + 0] = e, this.data.array[A + 1] = t, this;
@@ -14280,7 +14280,7 @@ class xD extends De {
14280
14280
  return this.dispatchEvent({ type: "dispose" }), this.morphTexture !== null && (this.morphTexture.dispose(), this.morphTexture = null), this;
14281
14281
  }
14282
14282
  }
14283
- class ld extends yn {
14283
+ class ld extends wn {
14284
14284
  constructor(A) {
14285
14285
  super(), this.isLineBasicMaterial = !0, this.type = "LineBasicMaterial", this.color = new YA(16777215), this.map = null, this.linewidth = 1, this.linecap = "round", this.linejoin = "round", this.fog = !0, this.setValues(A);
14286
14286
  }
@@ -14389,7 +14389,7 @@ class ID extends av {
14389
14389
  super(A, e), this.isLineLoop = !0, this.type = "LineLoop";
14390
14390
  }
14391
14391
  }
14392
- class z2 extends yn {
14392
+ class z2 extends wn {
14393
14393
  constructor(A) {
14394
14394
  super(), this.isPointsMaterial = !0, this.type = "PointsMaterial", this.color = new YA(16777215), this.map = null, this.alphaMap = null, this.size = 1, this.sizeAttenuation = !0, this.fog = !0, this.setValues(A);
14395
14395
  }
@@ -14465,7 +14465,7 @@ class SD extends ct {
14465
14465
  super(A, e, t, i, r, s, o, a, l), this.isCanvasTexture = !0, this.needsUpdate = !0;
14466
14466
  }
14467
14467
  }
14468
- class Sn {
14468
+ class _n {
14469
14469
  constructor() {
14470
14470
  this.type = "Curve", this.arcLengthDivisions = 200;
14471
14471
  }
@@ -14600,7 +14600,7 @@ class Sn {
14600
14600
  return this.arcLengthDivisions = A.arcLengthDivisions, this;
14601
14601
  }
14602
14602
  }
14603
- class lv extends Sn {
14603
+ class lv extends _n {
14604
14604
  constructor(A = 0, e = 0, t = 1, i = 1, r = 0, s = Math.PI * 2, o = !1, a = 0) {
14605
14605
  super(), this.isEllipseCurve = !0, this.type = "EllipseCurve", this.aX = A, this.aY = e, this.xRadius = t, this.yRadius = i, this.aStartAngle = r, this.aEndAngle = s, this.aClockwise = o, this.aRotation = a;
14606
14606
  }
@@ -14657,7 +14657,7 @@ function cv() {
14657
14657
  };
14658
14658
  }
14659
14659
  const Eh = /* @__PURE__ */ new O(), Sp = /* @__PURE__ */ new cv(), _p = /* @__PURE__ */ new cv(), Mp = /* @__PURE__ */ new cv();
14660
- class MD extends Sn {
14660
+ class MD extends _n {
14661
14661
  constructor(A = [], e = !1, t = "centripetal", i = 0.5) {
14662
14662
  super(), this.isCatmullRomCurve3 = !0, this.type = "CatmullRomCurve3", this.points = A, this.closed = e, this.curveType = t, this.tension = i;
14663
14663
  }
@@ -14740,7 +14740,7 @@ function qD(n, A) {
14740
14740
  function lc(n, A, e, t, i) {
14741
14741
  return ED(n, A) + LD(n, e) + OD(n, t) + qD(n, i);
14742
14742
  }
14743
- class R2 extends Sn {
14743
+ class R2 extends _n {
14744
14744
  constructor(A = new dA(), e = new dA(), t = new dA(), i = new dA()) {
14745
14745
  super(), this.isCubicBezierCurve = !0, this.type = "CubicBezierCurve", this.v0 = A, this.v1 = e, this.v2 = t, this.v3 = i;
14746
14746
  }
@@ -14762,7 +14762,7 @@ class R2 extends Sn {
14762
14762
  return super.fromJSON(A), this.v0.fromArray(A.v0), this.v1.fromArray(A.v1), this.v2.fromArray(A.v2), this.v3.fromArray(A.v3), this;
14763
14763
  }
14764
14764
  }
14765
- class ND extends Sn {
14765
+ class ND extends _n {
14766
14766
  constructor(A = new O(), e = new O(), t = new O(), i = new O()) {
14767
14767
  super(), this.isCubicBezierCurve3 = !0, this.type = "CubicBezierCurve3", this.v0 = A, this.v1 = e, this.v2 = t, this.v3 = i;
14768
14768
  }
@@ -14785,7 +14785,7 @@ class ND extends Sn {
14785
14785
  return super.fromJSON(A), this.v0.fromArray(A.v0), this.v1.fromArray(A.v1), this.v2.fromArray(A.v2), this.v3.fromArray(A.v3), this;
14786
14786
  }
14787
14787
  }
14788
- class k2 extends Sn {
14788
+ class k2 extends _n {
14789
14789
  constructor(A = new dA(), e = new dA()) {
14790
14790
  super(), this.isLineCurve = !0, this.type = "LineCurve", this.v1 = A, this.v2 = e;
14791
14791
  }
@@ -14814,7 +14814,7 @@ class k2 extends Sn {
14814
14814
  return super.fromJSON(A), this.v1.fromArray(A.v1), this.v2.fromArray(A.v2), this;
14815
14815
  }
14816
14816
  }
14817
- class BD extends Sn {
14817
+ class BD extends _n {
14818
14818
  constructor(A = new O(), e = new O()) {
14819
14819
  super(), this.isLineCurve3 = !0, this.type = "LineCurve3", this.v1 = A, this.v2 = e;
14820
14820
  }
@@ -14843,7 +14843,7 @@ class BD extends Sn {
14843
14843
  return super.fromJSON(A), this.v1.fromArray(A.v1), this.v2.fromArray(A.v2), this;
14844
14844
  }
14845
14845
  }
14846
- class j2 extends Sn {
14846
+ class j2 extends _n {
14847
14847
  constructor(A = new dA(), e = new dA(), t = new dA()) {
14848
14848
  super(), this.isQuadraticBezierCurve = !0, this.type = "QuadraticBezierCurve", this.v0 = A, this.v1 = e, this.v2 = t;
14849
14849
  }
@@ -14865,7 +14865,7 @@ class j2 extends Sn {
14865
14865
  return super.fromJSON(A), this.v0.fromArray(A.v0), this.v1.fromArray(A.v1), this.v2.fromArray(A.v2), this;
14866
14866
  }
14867
14867
  }
14868
- class zD extends Sn {
14868
+ class zD extends _n {
14869
14869
  constructor(A = new O(), e = new O(), t = new O()) {
14870
14870
  super(), this.isQuadraticBezierCurve3 = !0, this.type = "QuadraticBezierCurve3", this.v0 = A, this.v1 = e, this.v2 = t;
14871
14871
  }
@@ -14888,7 +14888,7 @@ class zD extends Sn {
14888
14888
  return super.fromJSON(A), this.v0.fromArray(A.v0), this.v1.fromArray(A.v1), this.v2.fromArray(A.v2), this;
14889
14889
  }
14890
14890
  }
14891
- class K2 extends Sn {
14891
+ class K2 extends _n {
14892
14892
  constructor(A = []) {
14893
14893
  super(), this.isSplineCurve = !0, this.type = "SplineCurve", this.points = A;
14894
14894
  }
@@ -14938,7 +14938,7 @@ var $w = /* @__PURE__ */ Object.freeze({
14938
14938
  QuadraticBezierCurve3: zD,
14939
14939
  SplineCurve: K2
14940
14940
  });
14941
- class RD extends Sn {
14941
+ class RD extends _n {
14942
14942
  constructor() {
14943
14943
  super(), this.type = "CurvePath", this.curves = [], this.autoClose = !1;
14944
14944
  }
@@ -15521,15 +15521,15 @@ class iE extends $e {
15521
15521
  super(A), this.isRawShaderMaterial = !0, this.type = "RawShaderMaterial";
15522
15522
  }
15523
15523
  }
15524
- class Gc extends yn {
15524
+ class Gc extends wn {
15525
15525
  constructor(A) {
15526
- super(), this.isMeshStandardMaterial = !0, this.defines = { STANDARD: "" }, this.type = "MeshStandardMaterial", this.color = new YA(16777215), this.roughness = 1, this.metalness = 0, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new YA(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = m2, this.normalScale = new dA(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.roughnessMap = null, this.metalnessMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new xn(), this.envMapIntensity = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(A);
15526
+ super(), this.isMeshStandardMaterial = !0, this.defines = { STANDARD: "" }, this.type = "MeshStandardMaterial", this.color = new YA(16777215), this.roughness = 1, this.metalness = 0, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new YA(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = m2, this.normalScale = new dA(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.roughnessMap = null, this.metalnessMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new In(), this.envMapIntensity = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(A);
15527
15527
  }
15528
15528
  copy(A) {
15529
15529
  return super.copy(A), this.defines = { STANDARD: "" }, this.color.copy(A.color), this.roughness = A.roughness, this.metalness = A.metalness, this.map = A.map, this.lightMap = A.lightMap, this.lightMapIntensity = A.lightMapIntensity, this.aoMap = A.aoMap, this.aoMapIntensity = A.aoMapIntensity, this.emissive.copy(A.emissive), this.emissiveMap = A.emissiveMap, this.emissiveIntensity = A.emissiveIntensity, this.bumpMap = A.bumpMap, this.bumpScale = A.bumpScale, this.normalMap = A.normalMap, this.normalMapType = A.normalMapType, this.normalScale.copy(A.normalScale), this.displacementMap = A.displacementMap, this.displacementScale = A.displacementScale, this.displacementBias = A.displacementBias, this.roughnessMap = A.roughnessMap, this.metalnessMap = A.metalnessMap, this.alphaMap = A.alphaMap, this.envMap = A.envMap, this.envMapRotation.copy(A.envMapRotation), this.envMapIntensity = A.envMapIntensity, this.wireframe = A.wireframe, this.wireframeLinewidth = A.wireframeLinewidth, this.wireframeLinecap = A.wireframeLinecap, this.wireframeLinejoin = A.wireframeLinejoin, this.flatShading = A.flatShading, this.fog = A.fog, this;
15530
15530
  }
15531
15531
  }
15532
- class _n extends Gc {
15532
+ class Mn extends Gc {
15533
15533
  constructor(A) {
15534
15534
  super(), this.isMeshPhysicalMaterial = !0, this.defines = {
15535
15535
  STANDARD: "",
@@ -15773,7 +15773,7 @@ class lE extends Yc {
15773
15773
  return this.copySampleValue_(A - 1);
15774
15774
  }
15775
15775
  }
15776
- class Mn {
15776
+ class Pn {
15777
15777
  constructor(A, e, t, i) {
15778
15778
  if (A === void 0)
15779
15779
  throw new Error("THREE.KeyframeTrack: track name is undefined");
@@ -15953,20 +15953,20 @@ class Mn {
15953
15953
  return i.createInterpolant = this.createInterpolant, i;
15954
15954
  }
15955
15955
  }
15956
- Mn.prototype.TimeBufferType = Float32Array;
15957
- Mn.prototype.ValueBufferType = Float32Array;
15958
- Mn.prototype.DefaultInterpolation = Bs;
15959
- class Xa extends Mn {
15956
+ Pn.prototype.TimeBufferType = Float32Array;
15957
+ Pn.prototype.ValueBufferType = Float32Array;
15958
+ Pn.prototype.DefaultInterpolation = Bs;
15959
+ class Xa extends Pn {
15960
15960
  }
15961
15961
  Xa.prototype.ValueTypeName = "bool";
15962
15962
  Xa.prototype.ValueBufferType = Array;
15963
15963
  Xa.prototype.DefaultInterpolation = Na;
15964
15964
  Xa.prototype.InterpolantFactoryMethodLinear = void 0;
15965
15965
  Xa.prototype.InterpolantFactoryMethodSmooth = void 0;
15966
- class U2 extends Mn {
15966
+ class U2 extends Pn {
15967
15967
  }
15968
15968
  U2.prototype.ValueTypeName = "color";
15969
- class ka extends Mn {
15969
+ class ka extends Pn {
15970
15970
  }
15971
15971
  ka.prototype.ValueTypeName = "number";
15972
15972
  class cE extends Yc {
@@ -15981,7 +15981,7 @@ class cE extends Yc {
15981
15981
  return r;
15982
15982
  }
15983
15983
  }
15984
- class Rs extends Mn {
15984
+ class Rs extends Pn {
15985
15985
  InterpolantFactoryMethodLinear(A) {
15986
15986
  return new cE(this.times, this.values, this.getValueSize(), A);
15987
15987
  }
@@ -15989,14 +15989,14 @@ class Rs extends Mn {
15989
15989
  Rs.prototype.ValueTypeName = "quaternion";
15990
15990
  Rs.prototype.DefaultInterpolation = Bs;
15991
15991
  Rs.prototype.InterpolantFactoryMethodSmooth = void 0;
15992
- class Qa extends Mn {
15992
+ class Qa extends Pn {
15993
15993
  }
15994
15994
  Qa.prototype.ValueTypeName = "string";
15995
15995
  Qa.prototype.ValueBufferType = Array;
15996
15996
  Qa.prototype.DefaultInterpolation = Na;
15997
15997
  Qa.prototype.InterpolantFactoryMethodLinear = void 0;
15998
15998
  Qa.prototype.InterpolantFactoryMethodSmooth = void 0;
15999
- class ja extends Mn {
15999
+ class ja extends Pn {
16000
16000
  }
16001
16001
  ja.prototype.ValueTypeName = "vector";
16002
16002
  class hE {
@@ -16019,7 +16019,7 @@ class hE {
16019
16019
  blendMode: A.blendMode
16020
16020
  };
16021
16021
  for (let r = 0, s = t.length; r !== s; ++r)
16022
- e.push(Mn.toJSON(t[r]));
16022
+ e.push(Pn.toJSON(t[r]));
16023
16023
  return i;
16024
16024
  }
16025
16025
  static CreateFromMorphTargetSequence(A, e, t, i) {
@@ -16273,7 +16273,7 @@ let Vr = class {
16273
16273
  }
16274
16274
  };
16275
16275
  Vr.DEFAULT_MATERIAL_NAME = "__DEFAULT";
16276
- const Bn = {};
16276
+ const zn = {};
16277
16277
  class pE extends Error {
16278
16278
  constructor(A, e) {
16279
16279
  super(A), this.response = e;
@@ -16290,15 +16290,15 @@ class Lc extends Vr {
16290
16290
  return this.manager.itemStart(A), setTimeout(() => {
16291
16291
  e && e(r), this.manager.itemEnd(A);
16292
16292
  }, 0), r;
16293
- if (Bn[A] !== void 0) {
16294
- Bn[A].push({
16293
+ if (zn[A] !== void 0) {
16294
+ zn[A].push({
16295
16295
  onLoad: e,
16296
16296
  onProgress: t,
16297
16297
  onError: i
16298
16298
  });
16299
16299
  return;
16300
16300
  }
16301
- Bn[A] = [], Bn[A].push({
16301
+ zn[A] = [], zn[A].push({
16302
16302
  onLoad: e,
16303
16303
  onProgress: t,
16304
16304
  onError: i
@@ -16312,7 +16312,7 @@ class Lc extends Vr {
16312
16312
  if (l.status === 200 || l.status === 0) {
16313
16313
  if (l.status === 0 && console.warn("THREE.FileLoader: HTTP Status 0 received."), typeof ReadableStream > "u" || l.body === void 0 || l.body.getReader === void 0)
16314
16314
  return l;
16315
- const u = Bn[A], c = l.body.getReader(), h = l.headers.get("X-File-Size") || l.headers.get("Content-Length"), f = h ? parseInt(h) : 0, p = f !== 0;
16315
+ const u = zn[A], c = l.body.getReader(), h = l.headers.get("X-File-Size") || l.headers.get("Content-Length"), f = h ? parseInt(h) : 0, p = f !== 0;
16316
16316
  let m = 0;
16317
16317
  const d = new ReadableStream({
16318
16318
  start(g) {
@@ -16357,17 +16357,17 @@ class Lc extends Vr {
16357
16357
  }
16358
16358
  }).then((l) => {
16359
16359
  Br.add(A, l);
16360
- const u = Bn[A];
16361
- delete Bn[A];
16360
+ const u = zn[A];
16361
+ delete zn[A];
16362
16362
  for (let c = 0, h = u.length; c < h; c++) {
16363
16363
  const f = u[c];
16364
16364
  f.onLoad && f.onLoad(l);
16365
16365
  }
16366
16366
  }).catch((l) => {
16367
- const u = Bn[A];
16367
+ const u = zn[A];
16368
16368
  if (u === void 0)
16369
16369
  throw this.manager.itemError(A), l;
16370
- delete Bn[A];
16370
+ delete zn[A];
16371
16371
  for (let c = 0, h = u.length; c < h; c++) {
16372
16372
  const f = u[c];
16373
16373
  f.onError && f.onError(l);
@@ -16426,7 +16426,7 @@ class mE extends Vr {
16426
16426
  return;
16427
16427
  }
16428
16428
  }
16429
- l.image !== void 0 ? s.image = l.image : l.data !== void 0 && (s.image.width = l.width, s.image.height = l.height, s.image.data = l.data), s.wrapS = l.wrapS !== void 0 ? l.wrapS : ot, s.wrapT = l.wrapT !== void 0 ? l.wrapT : ot, s.magFilter = l.magFilter !== void 0 ? l.magFilter : we, s.minFilter = l.minFilter !== void 0 ? l.minFilter : we, s.anisotropy = l.anisotropy !== void 0 ? l.anisotropy : 1, l.colorSpace !== void 0 && (s.colorSpace = l.colorSpace), l.flipY !== void 0 && (s.flipY = l.flipY), l.format !== void 0 && (s.format = l.format), l.type !== void 0 && (s.type = l.type), l.mipmaps !== void 0 && (s.mipmaps = l.mipmaps, s.minFilter = Zi), l.mipmapCount === 1 && (s.minFilter = we), l.generateMipmaps !== void 0 && (s.generateMipmaps = l.generateMipmaps), s.needsUpdate = !0, e && e(s, l);
16429
+ l.image !== void 0 ? s.image = l.image : l.data !== void 0 && (s.image.width = l.width, s.image.height = l.height, s.image.data = l.data), s.wrapS = l.wrapS !== void 0 ? l.wrapS : ot, s.wrapT = l.wrapT !== void 0 ? l.wrapT : ot, s.magFilter = l.magFilter !== void 0 ? l.magFilter : we, s.minFilter = l.minFilter !== void 0 ? l.minFilter : we, s.anisotropy = l.anisotropy !== void 0 ? l.anisotropy : 1, l.colorSpace !== void 0 && (s.colorSpace = l.colorSpace), l.flipY !== void 0 && (s.flipY = l.flipY), l.format !== void 0 && (s.format = l.format), l.type !== void 0 && (s.type = l.type), l.mipmaps !== void 0 && (s.mipmaps = l.mipmaps, s.minFilter = Xi), l.mipmapCount === 1 && (s.minFilter = we), l.generateMipmaps !== void 0 && (s.generateMipmaps = l.generateMipmaps), s.needsUpdate = !0, e && e(s, l);
16430
16430
  }, t, i), s;
16431
16431
  }
16432
16432
  }
@@ -18696,7 +18696,7 @@ function bl(n) {
18696
18696
  const A = n[3] - n[0], e = n[4] - n[1], t = n[5] - n[2];
18697
18697
  return 2 * (A * e + e * t + t * A);
18698
18698
  }
18699
- const Kn = 32, VE = (n, A) => n.candidate - A.candidate, mr = new Array(Kn).fill().map(() => ({
18699
+ const Fn = 32, VE = (n, A) => n.candidate - A.candidate, mr = new Array(Fn).fill().map(() => ({
18700
18700
  count: 0,
18701
18701
  bounds: new Float32Array(6),
18702
18702
  rightCacheBounds: new Float32Array(6),
@@ -18714,8 +18714,8 @@ function $E(n, A, e, t, i, r) {
18714
18714
  let l = Op * i;
18715
18715
  const u = t * 6, c = (t + i) * 6;
18716
18716
  for (let h = 0; h < 3; h++) {
18717
- const f = A[h], d = (A[h + 3] - f) / Kn;
18718
- if (i < Kn / 4) {
18717
+ const f = A[h], d = (A[h + 3] - f) / Fn;
18718
+ if (i < Fn / 4) {
18719
18719
  const g = [...mr];
18720
18720
  g.length = i;
18721
18721
  let y = 0;
@@ -18755,7 +18755,7 @@ function $E(n, A, e, t, i, r) {
18755
18755
  P < l && (s = h, l = P, o = C.candidate);
18756
18756
  }
18757
18757
  } else {
18758
- for (let v = 0; v < Kn; v++) {
18758
+ for (let v = 0; v < Fn; v++) {
18759
18759
  const w = mr[v];
18760
18760
  w.count = 0, w.candidate = f + d + v * d;
18761
18761
  const C = w.bounds;
@@ -18764,18 +18764,18 @@ function $E(n, A, e, t, i, r) {
18764
18764
  }
18765
18765
  for (let v = u; v < c; v += 6) {
18766
18766
  let S = ~~((e[v + 2 * h] - f) / d);
18767
- S >= Kn && (S = Kn - 1);
18767
+ S >= Fn && (S = Fn - 1);
18768
18768
  const x = mr[S];
18769
18769
  x.count++, jh(v, e, x.bounds);
18770
18770
  }
18771
- const g = mr[Kn - 1];
18771
+ const g = mr[Fn - 1];
18772
18772
  m1(g.bounds, g.rightCacheBounds);
18773
- for (let v = Kn - 2; v >= 0; v--) {
18773
+ for (let v = Fn - 2; v >= 0; v--) {
18774
18774
  const w = mr[v], C = mr[v + 1];
18775
18775
  v1(w.bounds, C.rightCacheBounds, w.rightCacheBounds);
18776
18776
  }
18777
18777
  let y = 0;
18778
- for (let v = 0; v < Kn - 1; v++) {
18778
+ for (let v = 0; v < Fn - 1; v++) {
18779
18779
  const w = mr[v], C = w.count, S = w.bounds, _ = mr[v + 1].rightCacheBounds;
18780
18780
  C !== 0 && (y === 0 ? m1(S, Kh) : v1(S, Kh, Kh)), y += C;
18781
18781
  let b = 0, I = 0;
@@ -20333,7 +20333,7 @@ class ab extends Kt {
20333
20333
  case Uint8Array:
20334
20334
  case Uint16Array:
20335
20335
  case Uint32Array:
20336
- u = Qi;
20336
+ u = Vi;
20337
20337
  break;
20338
20338
  case Int8Array:
20339
20339
  case Int16Array:
@@ -20344,13 +20344,13 @@ class ab extends Kt {
20344
20344
  let h, f, p, m, d = UL(r);
20345
20345
  switch (u) {
20346
20346
  case _e:
20347
- p = 1, f = WL(r), o && l === 1 ? (m = a, d += "8", a === Uint8Array ? h = An : (h = cm, d += "_SNORM")) : (m = Float32Array, d += "32F", h = _e);
20347
+ p = 1, f = WL(r), o && l === 1 ? (m = a, d += "8", a === Uint8Array ? h = en : (h = cm, d += "_SNORM")) : (m = Float32Array, d += "32F", h = _e);
20348
20348
  break;
20349
20349
  case sc:
20350
20350
  d += l * 8 + "I", p = o ? Math.pow(2, a.BYTES_PER_ELEMENT * 8 - 1) : 1, f = S1(r), l === 1 ? (m = Int8Array, h = cm) : l === 2 ? (m = Int16Array, h = f2) : (m = Int32Array, h = sc);
20351
20351
  break;
20352
- case Qi:
20353
- d += l * 8 + "UI", p = o ? Math.pow(2, a.BYTES_PER_ELEMENT * 8 - 1) : 1, f = S1(r), l === 1 ? (m = Uint8Array, h = An) : l === 2 ? (m = Uint16Array, h = X0) : (m = Uint32Array, h = Qi);
20352
+ case Vi:
20353
+ d += l * 8 + "UI", p = o ? Math.pow(2, a.BYTES_PER_ELEMENT * 8 - 1) : 1, f = S1(r), l === 1 ? (m = Uint8Array, h = en) : l === 2 ? (m = Uint16Array, h = X0) : (m = Uint32Array, h = Vi);
20354
20354
  break;
20355
20355
  }
20356
20356
  c === 3 && (f === be || f === _c) && (c = 4);
@@ -20365,7 +20365,7 @@ class ab extends Kt {
20365
20365
  }
20366
20366
  class lb extends ab {
20367
20367
  constructor() {
20368
- super(), this._forcedType = Qi;
20368
+ super(), this._forcedType = Vi;
20369
20369
  }
20370
20370
  }
20371
20371
  class cb extends ab {
@@ -20422,7 +20422,7 @@ function XL(n, A, e) {
20422
20422
  h[f * 2 + 0] = y, h[f * 2 + 1] = g;
20423
20423
  }
20424
20424
  }
20425
- A.image.data = u, A.image.width = l, A.image.height = l, A.format = be, A.type = _e, A.internalFormat = "RGBA32F", A.minFilter = ue, A.magFilter = ue, A.generateMipmaps = !1, A.needsUpdate = !0, A.dispose(), e.image.data = h, e.image.width = c, e.image.height = c, e.format = id, e.type = Qi, e.internalFormat = "RG32UI", e.minFilter = ue, e.magFilter = ue, e.generateMipmaps = !1, e.needsUpdate = !0, e.dispose();
20425
+ A.image.data = u, A.image.width = l, A.image.height = l, A.format = be, A.type = _e, A.internalFormat = "RGBA32F", A.minFilter = ue, A.magFilter = ue, A.generateMipmaps = !1, A.needsUpdate = !0, A.dispose(), e.image.data = h, e.image.width = c, e.image.height = c, e.format = id, e.type = Vi, e.internalFormat = "RG32UI", e.minFilter = ue, e.magFilter = ue, e.generateMipmaps = !1, e.needsUpdate = !0, e.dispose();
20426
20426
  }
20427
20427
  const QL = (
20428
20428
  /* glsl */
@@ -21039,7 +21039,7 @@ class p7 {
21039
21039
  }
21040
21040
  _getDummyMesh() {
21041
21041
  if (!this._dummyMesh) {
21042
- const A = new Xi(), e = new Re();
21042
+ const A = new Qi(), e = new Re();
21043
21043
  e.setAttribute("position", new he(new Float32Array(9), 3)), this._dummyMesh = new De(e, A);
21044
21044
  }
21045
21045
  return this._dummyMesh;
@@ -21880,7 +21880,7 @@ class k1 extends pM {
21880
21880
  constructor(A, e, t) {
21881
21881
  const i = {
21882
21882
  format: be,
21883
- type: An,
21883
+ type: en,
21884
21884
  minFilter: we,
21885
21885
  magFilter: we,
21886
21886
  wrapS: jt,
@@ -26338,7 +26338,7 @@ class KO extends Se {
26338
26338
  return super.copy(A, e), this.element = A.element.cloneNode(!0), this;
26339
26339
  }
26340
26340
  }
26341
- const an = new zA(), FO = new zA();
26341
+ const ln = new zA(), FO = new zA();
26342
26342
  class GO {
26343
26343
  constructor(A = {}) {
26344
26344
  const e = this;
@@ -26383,7 +26383,7 @@ class GO {
26383
26383
  if (m.element.style.display = v === !0 ? "" : "none", v === !0) {
26384
26384
  m.onBeforeRender(e, d, g);
26385
26385
  let w;
26386
- m.isCSS3DSprite ? (an.copy(g.matrixWorldInverse), an.transpose(), m.rotation2D !== 0 && an.multiply(FO.makeRotationZ(m.rotation2D)), m.matrixWorld.decompose(V1, jO, $1), an.setPosition(V1), an.scale($1), an.elements[3] = 0, an.elements[7] = 0, an.elements[11] = 0, an.elements[15] = 1, w = f(an)) : w = f(m.matrixWorld);
26386
+ m.isCSS3DSprite ? (ln.copy(g.matrixWorldInverse), ln.transpose(), m.rotation2D !== 0 && ln.multiply(FO.makeRotationZ(m.rotation2D)), m.matrixWorld.decompose(V1, jO, $1), ln.setPosition(V1), ln.scale($1), ln.elements[3] = 0, ln.elements[7] = 0, ln.elements[11] = 0, ln.elements[15] = 1, w = f(ln)) : w = f(m.matrixWorld);
26387
26387
  const C = m.element, S = o.objects.get(m);
26388
26388
  if (S === void 0 || S.style !== w) {
26389
26389
  C.style.transform = w;
@@ -28138,7 +28138,7 @@ var Ca = Object.freeze({
28138
28138
  typeof t == "string" ? this._valuesStartRepeat[A] = this._valuesStartRepeat[A] + parseFloat(t) : this._valuesStartRepeat[A] = this._valuesEnd[A], this._valuesEnd[A] = e;
28139
28139
  }, n;
28140
28140
  }()
28141
- ), s5 = "23.1.2", o5 = bv.nextId, In = Em, a5 = In.getAll.bind(In), l5 = In.removeAll.bind(In), c5 = In.add.bind(In), h5 = In.remove.bind(In), u5 = In.update.bind(In), Ds = {
28141
+ ), s5 = "23.1.2", o5 = bv.nextId, bn = Em, a5 = bn.getAll.bind(bn), l5 = bn.removeAll.bind(bn), c5 = bn.add.bind(bn), h5 = bn.remove.bind(bn), u5 = bn.update.bind(bn), Ds = {
28142
28142
  Easing: Ca,
28143
28143
  Group: mb,
28144
28144
  Interpolation: Ps,
@@ -28347,7 +28347,7 @@ uc.Panel = function(n, A, e) {
28347
28347
  }
28348
28348
  };
28349
28349
  };
28350
- var Us = /* @__PURE__ */ ((n) => (n[n.WEBGL_LEGACY = 0] = "WEBGL_LEGACY", n[n.WEBGL = 1] = "WEBGL", n[n.WEBGL2 = 2] = "WEBGL2", n))(Us || {}), yb = /* @__PURE__ */ ((n) => (n[n.UNKNOWN = 0] = "UNKNOWN", n[n.WEBGL = 1] = "WEBGL", n[n.CANVAS = 2] = "CANVAS", n))(yb || {}), Lm = /* @__PURE__ */ ((n) => (n[n.COLOR = 16384] = "COLOR", n[n.DEPTH = 256] = "DEPTH", n[n.STENCIL = 1024] = "STENCIL", n))(Lm || {}), $A = /* @__PURE__ */ ((n) => (n[n.NORMAL = 0] = "NORMAL", n[n.ADD = 1] = "ADD", n[n.MULTIPLY = 2] = "MULTIPLY", n[n.SCREEN = 3] = "SCREEN", n[n.OVERLAY = 4] = "OVERLAY", n[n.DARKEN = 5] = "DARKEN", n[n.LIGHTEN = 6] = "LIGHTEN", n[n.COLOR_DODGE = 7] = "COLOR_DODGE", n[n.COLOR_BURN = 8] = "COLOR_BURN", n[n.HARD_LIGHT = 9] = "HARD_LIGHT", n[n.SOFT_LIGHT = 10] = "SOFT_LIGHT", n[n.DIFFERENCE = 11] = "DIFFERENCE", n[n.EXCLUSION = 12] = "EXCLUSION", n[n.HUE = 13] = "HUE", n[n.SATURATION = 14] = "SATURATION", n[n.COLOR = 15] = "COLOR", n[n.LUMINOSITY = 16] = "LUMINOSITY", n[n.NORMAL_NPM = 17] = "NORMAL_NPM", n[n.ADD_NPM = 18] = "ADD_NPM", n[n.SCREEN_NPM = 19] = "SCREEN_NPM", n[n.NONE = 20] = "NONE", n[n.SRC_OVER = 0] = "SRC_OVER", n[n.SRC_IN = 21] = "SRC_IN", n[n.SRC_OUT = 22] = "SRC_OUT", n[n.SRC_ATOP = 23] = "SRC_ATOP", n[n.DST_OVER = 24] = "DST_OVER", n[n.DST_IN = 25] = "DST_IN", n[n.DST_OUT = 26] = "DST_OUT", n[n.DST_ATOP = 27] = "DST_ATOP", n[n.ERASE = 26] = "ERASE", n[n.SUBTRACT = 28] = "SUBTRACT", n[n.XOR = 29] = "XOR", n))($A || {}), vn = /* @__PURE__ */ ((n) => (n[n.POINTS = 0] = "POINTS", n[n.LINES = 1] = "LINES", n[n.LINE_LOOP = 2] = "LINE_LOOP", n[n.LINE_STRIP = 3] = "LINE_STRIP", n[n.TRIANGLES = 4] = "TRIANGLES", n[n.TRIANGLE_STRIP = 5] = "TRIANGLE_STRIP", n[n.TRIANGLE_FAN = 6] = "TRIANGLE_FAN", n))(vn || {}), PA = /* @__PURE__ */ ((n) => (n[n.RGBA = 6408] = "RGBA", n[n.RGB = 6407] = "RGB", n[n.RG = 33319] = "RG", n[n.RED = 6403] = "RED", n[n.RGBA_INTEGER = 36249] = "RGBA_INTEGER", n[n.RGB_INTEGER = 36248] = "RGB_INTEGER", n[n.RG_INTEGER = 33320] = "RG_INTEGER", n[n.RED_INTEGER = 36244] = "RED_INTEGER", n[n.ALPHA = 6406] = "ALPHA", n[n.LUMINANCE = 6409] = "LUMINANCE", n[n.LUMINANCE_ALPHA = 6410] = "LUMINANCE_ALPHA", n[n.DEPTH_COMPONENT = 6402] = "DEPTH_COMPONENT", n[n.DEPTH_STENCIL = 34041] = "DEPTH_STENCIL", n))(PA || {}), xa = /* @__PURE__ */ ((n) => (n[n.TEXTURE_2D = 3553] = "TEXTURE_2D", n[n.TEXTURE_CUBE_MAP = 34067] = "TEXTURE_CUBE_MAP", n[n.TEXTURE_2D_ARRAY = 35866] = "TEXTURE_2D_ARRAY", n[n.TEXTURE_CUBE_MAP_POSITIVE_X = 34069] = "TEXTURE_CUBE_MAP_POSITIVE_X", n[n.TEXTURE_CUBE_MAP_NEGATIVE_X = 34070] = "TEXTURE_CUBE_MAP_NEGATIVE_X", n[n.TEXTURE_CUBE_MAP_POSITIVE_Y = 34071] = "TEXTURE_CUBE_MAP_POSITIVE_Y", n[n.TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y", n[n.TEXTURE_CUBE_MAP_POSITIVE_Z = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z", n[n.TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z", n))(xa || {}), ZA = /* @__PURE__ */ ((n) => (n[n.UNSIGNED_BYTE = 5121] = "UNSIGNED_BYTE", n[n.UNSIGNED_SHORT = 5123] = "UNSIGNED_SHORT", n[n.UNSIGNED_SHORT_5_6_5 = 33635] = "UNSIGNED_SHORT_5_6_5", n[n.UNSIGNED_SHORT_4_4_4_4 = 32819] = "UNSIGNED_SHORT_4_4_4_4", n[n.UNSIGNED_SHORT_5_5_5_1 = 32820] = "UNSIGNED_SHORT_5_5_5_1", n[n.UNSIGNED_INT = 5125] = "UNSIGNED_INT", n[n.UNSIGNED_INT_10F_11F_11F_REV = 35899] = "UNSIGNED_INT_10F_11F_11F_REV", n[n.UNSIGNED_INT_2_10_10_10_REV = 33640] = "UNSIGNED_INT_2_10_10_10_REV", n[n.UNSIGNED_INT_24_8 = 34042] = "UNSIGNED_INT_24_8", n[n.UNSIGNED_INT_5_9_9_9_REV = 35902] = "UNSIGNED_INT_5_9_9_9_REV", n[n.BYTE = 5120] = "BYTE", n[n.SHORT = 5122] = "SHORT", n[n.INT = 5124] = "INT", n[n.FLOAT = 5126] = "FLOAT", n[n.FLOAT_32_UNSIGNED_INT_24_8_REV = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV", n[n.HALF_FLOAT = 36193] = "HALF_FLOAT", n))(ZA || {}), kA = /* @__PURE__ */ ((n) => (n[n.FLOAT = 0] = "FLOAT", n[n.INT = 1] = "INT", n[n.UINT = 2] = "UINT", n))(kA || {}), Xn = /* @__PURE__ */ ((n) => (n[n.NEAREST = 0] = "NEAREST", n[n.LINEAR = 1] = "LINEAR", n))(Xn || {}), Yr = /* @__PURE__ */ ((n) => (n[n.CLAMP = 33071] = "CLAMP", n[n.REPEAT = 10497] = "REPEAT", n[n.MIRRORED_REPEAT = 33648] = "MIRRORED_REPEAT", n))(Yr || {}), bn = /* @__PURE__ */ ((n) => (n[n.OFF = 0] = "OFF", n[n.POW2 = 1] = "POW2", n[n.ON = 2] = "ON", n[n.ON_MANUAL = 3] = "ON_MANUAL", n))(bn || {}), Qt = /* @__PURE__ */ ((n) => (n[n.NPM = 0] = "NPM", n[n.UNPACK = 1] = "UNPACK", n[n.PMA = 2] = "PMA", n[n.NO_PREMULTIPLIED_ALPHA = 0] = "NO_PREMULTIPLIED_ALPHA", n[n.PREMULTIPLY_ON_UPLOAD = 1] = "PREMULTIPLY_ON_UPLOAD", n[n.PREMULTIPLIED_ALPHA = 2] = "PREMULTIPLIED_ALPHA", n))(Qt || {}), gn = /* @__PURE__ */ ((n) => (n[n.NO = 0] = "NO", n[n.YES = 1] = "YES", n[n.AUTO = 2] = "AUTO", n[n.BLEND = 0] = "BLEND", n[n.CLEAR = 1] = "CLEAR", n[n.BLIT = 2] = "BLIT", n))(gn || {}), _v = /* @__PURE__ */ ((n) => (n[n.AUTO = 0] = "AUTO", n[n.MANUAL = 1] = "MANUAL", n))(_v || {}), _i = /* @__PURE__ */ ((n) => (n.LOW = "lowp", n.MEDIUM = "mediump", n.HIGH = "highp", n))(_i || {}), rt = /* @__PURE__ */ ((n) => (n[n.NONE = 0] = "NONE", n[n.SCISSOR = 1] = "SCISSOR", n[n.STENCIL = 2] = "STENCIL", n[n.SPRITE = 3] = "SPRITE", n[n.COLOR = 4] = "COLOR", n))(rt || {}), tt = /* @__PURE__ */ ((n) => (n[n.NONE = 0] = "NONE", n[n.LOW = 2] = "LOW", n[n.MEDIUM = 4] = "MEDIUM", n[n.HIGH = 8] = "HIGH", n))(tt || {}), wn = /* @__PURE__ */ ((n) => (n[n.ELEMENT_ARRAY_BUFFER = 34963] = "ELEMENT_ARRAY_BUFFER", n[n.ARRAY_BUFFER = 34962] = "ARRAY_BUFFER", n[n.UNIFORM_BUFFER = 35345] = "UNIFORM_BUFFER", n))(wn || {});
28350
+ var Us = /* @__PURE__ */ ((n) => (n[n.WEBGL_LEGACY = 0] = "WEBGL_LEGACY", n[n.WEBGL = 1] = "WEBGL", n[n.WEBGL2 = 2] = "WEBGL2", n))(Us || {}), yb = /* @__PURE__ */ ((n) => (n[n.UNKNOWN = 0] = "UNKNOWN", n[n.WEBGL = 1] = "WEBGL", n[n.CANVAS = 2] = "CANVAS", n))(yb || {}), Lm = /* @__PURE__ */ ((n) => (n[n.COLOR = 16384] = "COLOR", n[n.DEPTH = 256] = "DEPTH", n[n.STENCIL = 1024] = "STENCIL", n))(Lm || {}), $A = /* @__PURE__ */ ((n) => (n[n.NORMAL = 0] = "NORMAL", n[n.ADD = 1] = "ADD", n[n.MULTIPLY = 2] = "MULTIPLY", n[n.SCREEN = 3] = "SCREEN", n[n.OVERLAY = 4] = "OVERLAY", n[n.DARKEN = 5] = "DARKEN", n[n.LIGHTEN = 6] = "LIGHTEN", n[n.COLOR_DODGE = 7] = "COLOR_DODGE", n[n.COLOR_BURN = 8] = "COLOR_BURN", n[n.HARD_LIGHT = 9] = "HARD_LIGHT", n[n.SOFT_LIGHT = 10] = "SOFT_LIGHT", n[n.DIFFERENCE = 11] = "DIFFERENCE", n[n.EXCLUSION = 12] = "EXCLUSION", n[n.HUE = 13] = "HUE", n[n.SATURATION = 14] = "SATURATION", n[n.COLOR = 15] = "COLOR", n[n.LUMINOSITY = 16] = "LUMINOSITY", n[n.NORMAL_NPM = 17] = "NORMAL_NPM", n[n.ADD_NPM = 18] = "ADD_NPM", n[n.SCREEN_NPM = 19] = "SCREEN_NPM", n[n.NONE = 20] = "NONE", n[n.SRC_OVER = 0] = "SRC_OVER", n[n.SRC_IN = 21] = "SRC_IN", n[n.SRC_OUT = 22] = "SRC_OUT", n[n.SRC_ATOP = 23] = "SRC_ATOP", n[n.DST_OVER = 24] = "DST_OVER", n[n.DST_IN = 25] = "DST_IN", n[n.DST_OUT = 26] = "DST_OUT", n[n.DST_ATOP = 27] = "DST_ATOP", n[n.ERASE = 26] = "ERASE", n[n.SUBTRACT = 28] = "SUBTRACT", n[n.XOR = 29] = "XOR", n))($A || {}), yn = /* @__PURE__ */ ((n) => (n[n.POINTS = 0] = "POINTS", n[n.LINES = 1] = "LINES", n[n.LINE_LOOP = 2] = "LINE_LOOP", n[n.LINE_STRIP = 3] = "LINE_STRIP", n[n.TRIANGLES = 4] = "TRIANGLES", n[n.TRIANGLE_STRIP = 5] = "TRIANGLE_STRIP", n[n.TRIANGLE_FAN = 6] = "TRIANGLE_FAN", n))(yn || {}), PA = /* @__PURE__ */ ((n) => (n[n.RGBA = 6408] = "RGBA", n[n.RGB = 6407] = "RGB", n[n.RG = 33319] = "RG", n[n.RED = 6403] = "RED", n[n.RGBA_INTEGER = 36249] = "RGBA_INTEGER", n[n.RGB_INTEGER = 36248] = "RGB_INTEGER", n[n.RG_INTEGER = 33320] = "RG_INTEGER", n[n.RED_INTEGER = 36244] = "RED_INTEGER", n[n.ALPHA = 6406] = "ALPHA", n[n.LUMINANCE = 6409] = "LUMINANCE", n[n.LUMINANCE_ALPHA = 6410] = "LUMINANCE_ALPHA", n[n.DEPTH_COMPONENT = 6402] = "DEPTH_COMPONENT", n[n.DEPTH_STENCIL = 34041] = "DEPTH_STENCIL", n))(PA || {}), xa = /* @__PURE__ */ ((n) => (n[n.TEXTURE_2D = 3553] = "TEXTURE_2D", n[n.TEXTURE_CUBE_MAP = 34067] = "TEXTURE_CUBE_MAP", n[n.TEXTURE_2D_ARRAY = 35866] = "TEXTURE_2D_ARRAY", n[n.TEXTURE_CUBE_MAP_POSITIVE_X = 34069] = "TEXTURE_CUBE_MAP_POSITIVE_X", n[n.TEXTURE_CUBE_MAP_NEGATIVE_X = 34070] = "TEXTURE_CUBE_MAP_NEGATIVE_X", n[n.TEXTURE_CUBE_MAP_POSITIVE_Y = 34071] = "TEXTURE_CUBE_MAP_POSITIVE_Y", n[n.TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y", n[n.TEXTURE_CUBE_MAP_POSITIVE_Z = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z", n[n.TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z", n))(xa || {}), ZA = /* @__PURE__ */ ((n) => (n[n.UNSIGNED_BYTE = 5121] = "UNSIGNED_BYTE", n[n.UNSIGNED_SHORT = 5123] = "UNSIGNED_SHORT", n[n.UNSIGNED_SHORT_5_6_5 = 33635] = "UNSIGNED_SHORT_5_6_5", n[n.UNSIGNED_SHORT_4_4_4_4 = 32819] = "UNSIGNED_SHORT_4_4_4_4", n[n.UNSIGNED_SHORT_5_5_5_1 = 32820] = "UNSIGNED_SHORT_5_5_5_1", n[n.UNSIGNED_INT = 5125] = "UNSIGNED_INT", n[n.UNSIGNED_INT_10F_11F_11F_REV = 35899] = "UNSIGNED_INT_10F_11F_11F_REV", n[n.UNSIGNED_INT_2_10_10_10_REV = 33640] = "UNSIGNED_INT_2_10_10_10_REV", n[n.UNSIGNED_INT_24_8 = 34042] = "UNSIGNED_INT_24_8", n[n.UNSIGNED_INT_5_9_9_9_REV = 35902] = "UNSIGNED_INT_5_9_9_9_REV", n[n.BYTE = 5120] = "BYTE", n[n.SHORT = 5122] = "SHORT", n[n.INT = 5124] = "INT", n[n.FLOAT = 5126] = "FLOAT", n[n.FLOAT_32_UNSIGNED_INT_24_8_REV = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV", n[n.HALF_FLOAT = 36193] = "HALF_FLOAT", n))(ZA || {}), kA = /* @__PURE__ */ ((n) => (n[n.FLOAT = 0] = "FLOAT", n[n.INT = 1] = "INT", n[n.UINT = 2] = "UINT", n))(kA || {}), Xn = /* @__PURE__ */ ((n) => (n[n.NEAREST = 0] = "NEAREST", n[n.LINEAR = 1] = "LINEAR", n))(Xn || {}), Yr = /* @__PURE__ */ ((n) => (n[n.CLAMP = 33071] = "CLAMP", n[n.REPEAT = 10497] = "REPEAT", n[n.MIRRORED_REPEAT = 33648] = "MIRRORED_REPEAT", n))(Yr || {}), Sn = /* @__PURE__ */ ((n) => (n[n.OFF = 0] = "OFF", n[n.POW2 = 1] = "POW2", n[n.ON = 2] = "ON", n[n.ON_MANUAL = 3] = "ON_MANUAL", n))(Sn || {}), Qt = /* @__PURE__ */ ((n) => (n[n.NPM = 0] = "NPM", n[n.UNPACK = 1] = "UNPACK", n[n.PMA = 2] = "PMA", n[n.NO_PREMULTIPLIED_ALPHA = 0] = "NO_PREMULTIPLIED_ALPHA", n[n.PREMULTIPLY_ON_UPLOAD = 1] = "PREMULTIPLY_ON_UPLOAD", n[n.PREMULTIPLIED_ALPHA = 2] = "PREMULTIPLIED_ALPHA", n))(Qt || {}), mn = /* @__PURE__ */ ((n) => (n[n.NO = 0] = "NO", n[n.YES = 1] = "YES", n[n.AUTO = 2] = "AUTO", n[n.BLEND = 0] = "BLEND", n[n.CLEAR = 1] = "CLEAR", n[n.BLIT = 2] = "BLIT", n))(mn || {}), _v = /* @__PURE__ */ ((n) => (n[n.AUTO = 0] = "AUTO", n[n.MANUAL = 1] = "MANUAL", n))(_v || {}), _i = /* @__PURE__ */ ((n) => (n.LOW = "lowp", n.MEDIUM = "mediump", n.HIGH = "highp", n))(_i || {}), rt = /* @__PURE__ */ ((n) => (n[n.NONE = 0] = "NONE", n[n.SCISSOR = 1] = "SCISSOR", n[n.STENCIL = 2] = "STENCIL", n[n.SPRITE = 3] = "SPRITE", n[n.COLOR = 4] = "COLOR", n))(rt || {}), tt = /* @__PURE__ */ ((n) => (n[n.NONE = 0] = "NONE", n[n.LOW = 2] = "LOW", n[n.MEDIUM = 4] = "MEDIUM", n[n.HIGH = 8] = "HIGH", n))(tt || {}), Cn = /* @__PURE__ */ ((n) => (n[n.ELEMENT_ARRAY_BUFFER = 34963] = "ELEMENT_ARRAY_BUFFER", n[n.ARRAY_BUFFER = 34962] = "ARRAY_BUFFER", n[n.UNIFORM_BUFFER = 35345] = "UNIFORM_BUFFER", n))(Cn || {});
28351
28351
  const p5 = {
28352
28352
  /**
28353
28353
  * Creates a canvas element of the given size.
@@ -28409,7 +28409,7 @@ const p5 = {
28409
28409
  */
28410
28410
  ROUND_PIXELS: !1
28411
28411
  };
28412
- var Jp = /iPhone/i, AC = /iPod/i, eC = /iPad/i, tC = /\biOS-universal(?:.+)Mac\b/i, Zp = /\bAndroid(?:.+)Mobile\b/i, iC = /Android/i, qo = /(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i, su = /Silk/i, zn = /Windows Phone/i, nC = /\bWindows(?:.+)ARM\b/i, rC = /BlackBerry/i, sC = /BB10/i, oC = /Opera Mini/i, aC = /\b(CriOS|Chrome)(?:.+)Mobile/i, lC = /Mobile(?:.+)Firefox\b/i, cC = function(n) {
28412
+ var Jp = /iPhone/i, AC = /iPod/i, eC = /iPad/i, tC = /\biOS-universal(?:.+)Mac\b/i, Zp = /\bAndroid(?:.+)Mobile\b/i, iC = /Android/i, qo = /(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i, su = /Silk/i, Rn = /Windows Phone/i, nC = /\bWindows(?:.+)ARM\b/i, rC = /BlackBerry/i, sC = /BB10/i, oC = /Opera Mini/i, aC = /\b(CriOS|Chrome)(?:.+)Mobile/i, lC = /Mobile(?:.+)Firefox\b/i, cC = function(n) {
28413
28413
  return typeof n < "u" && n.platform === "MacIntel" && typeof n.maxTouchPoints == "number" && n.maxTouchPoints > 1 && typeof MSStream > "u";
28414
28414
  };
28415
28415
  function g5(n) {
@@ -28436,11 +28436,11 @@ function hC(n) {
28436
28436
  typeof t[1] < "u" && (e = t[0]), t = e.split("Twitter"), typeof t[1] < "u" && (e = t[0]);
28437
28437
  var i = g5(e), r = {
28438
28438
  apple: {
28439
- phone: i(Jp) && !i(zn),
28439
+ phone: i(Jp) && !i(Rn),
28440
28440
  ipod: i(AC),
28441
- tablet: !i(Jp) && (i(eC) || cC(A)) && !i(zn),
28441
+ tablet: !i(Jp) && (i(eC) || cC(A)) && !i(Rn),
28442
28442
  universal: i(tC),
28443
- device: (i(Jp) || i(AC) || i(eC) || i(tC) || cC(A)) && !i(zn)
28443
+ device: (i(Jp) || i(AC) || i(eC) || i(tC) || cC(A)) && !i(Rn)
28444
28444
  },
28445
28445
  amazon: {
28446
28446
  phone: i(qo),
@@ -28448,14 +28448,14 @@ function hC(n) {
28448
28448
  device: i(qo) || i(su)
28449
28449
  },
28450
28450
  android: {
28451
- phone: !i(zn) && i(qo) || !i(zn) && i(Zp),
28452
- tablet: !i(zn) && !i(qo) && !i(Zp) && (i(su) || i(iC)),
28453
- device: !i(zn) && (i(qo) || i(su) || i(Zp) || i(iC)) || i(/\bokhttp\b/i)
28451
+ phone: !i(Rn) && i(qo) || !i(Rn) && i(Zp),
28452
+ tablet: !i(Rn) && !i(qo) && !i(Zp) && (i(su) || i(iC)),
28453
+ device: !i(Rn) && (i(qo) || i(su) || i(Zp) || i(iC)) || i(/\bokhttp\b/i)
28454
28454
  },
28455
28455
  windows: {
28456
- phone: i(zn),
28456
+ phone: i(Rn),
28457
28457
  tablet: i(nC),
28458
- device: i(zn) || i(nC)
28458
+ device: i(Rn) || i(nC)
28459
28459
  },
28460
28460
  other: {
28461
28461
  blackberry: i(rC),
@@ -29382,7 +29382,7 @@ const I8 = {}, b8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
29382
29382
  __proto__: null,
29383
29383
  default: I8
29384
29384
  }, Symbol.toStringTag, { value: "Module" })), S8 = /* @__PURE__ */ f5(b8);
29385
- var Dv = typeof Map == "function" && Map.prototype, Vp = Object.getOwnPropertyDescriptor && Dv ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Of = Dv && Vp && typeof Vp.get == "function" ? Vp.get : null, xC = Dv && Map.prototype.forEach, Ev = typeof Set == "function" && Set.prototype, $p = Object.getOwnPropertyDescriptor && Ev ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, qf = Ev && $p && typeof $p.get == "function" ? $p.get : null, IC = Ev && Set.prototype.forEach, _8 = typeof WeakMap == "function" && WeakMap.prototype, dc = _8 ? WeakMap.prototype.has : null, M8 = typeof WeakSet == "function" && WeakSet.prototype, pc = M8 ? WeakSet.prototype.has : null, P8 = typeof WeakRef == "function" && WeakRef.prototype, bC = P8 ? WeakRef.prototype.deref : null, T8 = Boolean.prototype.valueOf, D8 = Object.prototype.toString, E8 = Function.prototype.toString, L8 = String.prototype.match, Lv = String.prototype.slice, Rr = String.prototype.replace, O8 = String.prototype.toUpperCase, SC = String.prototype.toLowerCase, Eb = RegExp.prototype.test, _C = Array.prototype.concat, mn = Array.prototype.join, q8 = Array.prototype.slice, MC = Math.floor, Rm = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Ag = Object.getOwnPropertySymbols, km = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, Fa = typeof Symbol == "function" && typeof Symbol.iterator == "object", Lt = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Fa || !0) ? Symbol.toStringTag : null, Lb = Object.prototype.propertyIsEnumerable, PC = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(n) {
29385
+ var Dv = typeof Map == "function" && Map.prototype, Vp = Object.getOwnPropertyDescriptor && Dv ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Of = Dv && Vp && typeof Vp.get == "function" ? Vp.get : null, xC = Dv && Map.prototype.forEach, Ev = typeof Set == "function" && Set.prototype, $p = Object.getOwnPropertyDescriptor && Ev ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, qf = Ev && $p && typeof $p.get == "function" ? $p.get : null, IC = Ev && Set.prototype.forEach, _8 = typeof WeakMap == "function" && WeakMap.prototype, dc = _8 ? WeakMap.prototype.has : null, M8 = typeof WeakSet == "function" && WeakSet.prototype, pc = M8 ? WeakSet.prototype.has : null, P8 = typeof WeakRef == "function" && WeakRef.prototype, bC = P8 ? WeakRef.prototype.deref : null, T8 = Boolean.prototype.valueOf, D8 = Object.prototype.toString, E8 = Function.prototype.toString, L8 = String.prototype.match, Lv = String.prototype.slice, Rr = String.prototype.replace, O8 = String.prototype.toUpperCase, SC = String.prototype.toLowerCase, Eb = RegExp.prototype.test, _C = Array.prototype.concat, vn = Array.prototype.join, q8 = Array.prototype.slice, MC = Math.floor, Rm = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Ag = Object.getOwnPropertySymbols, km = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, Fa = typeof Symbol == "function" && typeof Symbol.iterator == "object", Lt = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Fa || !0) ? Symbol.toStringTag : null, Lb = Object.prototype.propertyIsEnumerable, PC = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(n) {
29386
29386
  return n.__proto__;
29387
29387
  } : null);
29388
29388
  function TC(n, A) {
@@ -29449,7 +29449,7 @@ var jm = S8, DC = jm.custom, EC = qb(DC) ? DC : null, N8 = function n(A, e, t, i
29449
29449
  }
29450
29450
  if (typeof A == "function" && !LC(A)) {
29451
29451
  var f = Y8(A), p = lu(A, h);
29452
- return "[Function" + (f ? ": " + f : " (anonymous)") + "]" + (p.length > 0 ? " { " + mn.call(p, ", ") + " }" : "");
29452
+ return "[Function" + (f ? ": " + f : " (anonymous)") + "]" + (p.length > 0 ? " { " + vn.call(p, ", ") + " }" : "");
29453
29453
  }
29454
29454
  if (qb(A)) {
29455
29455
  var m = Fa ? Rr.call(String(A), /^(Symbol\(.*\))_[^)]*$/, "$1") : km.call(A);
@@ -29464,11 +29464,11 @@ var jm = S8, DC = jm.custom, EC = qb(DC) ? DC : null, N8 = function n(A, e, t, i
29464
29464
  if (A.length === 0)
29465
29465
  return "[]";
29466
29466
  var v = lu(A, h);
29467
- return c && !V8(v) ? "[" + Fm(v, c) + "]" : "[ " + mn.call(v, ", ") + " ]";
29467
+ return c && !V8(v) ? "[" + Fm(v, c) + "]" : "[ " + vn.call(v, ", ") + " ]";
29468
29468
  }
29469
29469
  if (R8(A)) {
29470
29470
  var w = lu(A, h);
29471
- return !("cause" in Error.prototype) && "cause" in A && !Lb.call(A, "cause") ? "{ [" + String(A) + "] " + mn.call(_C.call("[cause]: " + h(A.cause), w), ", ") + " }" : w.length === 0 ? "[" + String(A) + "]" : "{ [" + String(A) + "] " + mn.call(w, ", ") + " }";
29471
+ return !("cause" in Error.prototype) && "cause" in A && !Lb.call(A, "cause") ? "{ [" + String(A) + "] " + vn.call(_C.call("[cause]: " + h(A.cause), w), ", ") + " }" : w.length === 0 ? "[" + String(A) + "]" : "{ [" + String(A) + "] " + vn.call(w, ", ") + " }";
29472
29472
  }
29473
29473
  if (typeof A == "object" && s) {
29474
29474
  if (EC && typeof A[EC] == "function" && jm)
@@ -29507,8 +29507,8 @@ var jm = S8, DC = jm.custom, EC = qb(DC) ? DC : null, N8 = function n(A, e, t, i
29507
29507
  if (A === Wn)
29508
29508
  return "{ [object globalThis] }";
29509
29509
  if (!z8(A) && !LC(A)) {
29510
- var x = lu(A, h), _ = PC ? PC(A) === Object.prototype : A instanceof Object || A.constructor === Object, b = A instanceof Object ? "" : "null prototype", I = !_ && Lt && Object(A) === A && Lt in A ? Lv.call($r(A), 8, -1) : b ? "Object" : "", D = _ || typeof A.constructor != "function" ? "" : A.constructor.name ? A.constructor.name + " " : "", P = D + (I || b ? "[" + mn.call(_C.call([], I || [], b || []), ": ") + "] " : "");
29511
- return x.length === 0 ? P + "{}" : c ? P + "{" + Fm(x, c) + "}" : P + "{ " + mn.call(x, ", ") + " }";
29510
+ var x = lu(A, h), _ = PC ? PC(A) === Object.prototype : A instanceof Object || A.constructor === Object, b = A instanceof Object ? "" : "null prototype", I = !_ && Lt && Object(A) === A && Lt in A ? Lv.call($r(A), 8, -1) : b ? "Object" : "", D = _ || typeof A.constructor != "function" ? "" : A.constructor.name ? A.constructor.name + " " : "", P = D + (I || b ? "[" + vn.call(_C.call([], I || [], b || []), ": ") + "] " : "");
29511
+ return x.length === 0 ? P + "{}" : c ? P + "{" + Fm(x, c) + "}" : P + "{ " + vn.call(x, ", ") + " }";
29512
29512
  }
29513
29513
  return String(A);
29514
29514
  };
@@ -29682,7 +29682,7 @@ function eg(n) {
29682
29682
  return n + " { ? }";
29683
29683
  }
29684
29684
  function OC(n, A, e, t) {
29685
- var i = t ? Fm(e, t) : mn.call(e, ", ");
29685
+ var i = t ? Fm(e, t) : vn.call(e, ", ");
29686
29686
  return n + " (" + A + ") {" + i + "}";
29687
29687
  }
29688
29688
  function V8(n) {
@@ -29697,12 +29697,12 @@ function $8(n, A) {
29697
29697
  if (n.indent === " ")
29698
29698
  e = " ";
29699
29699
  else if (typeof n.indent == "number" && n.indent > 0)
29700
- e = mn.call(Array(n.indent + 1), " ");
29700
+ e = vn.call(Array(n.indent + 1), " ");
29701
29701
  else
29702
29702
  return null;
29703
29703
  return {
29704
29704
  base: e,
29705
- prev: mn.call(Array(A + 1), e)
29705
+ prev: vn.call(Array(A + 1), e)
29706
29706
  };
29707
29707
  }
29708
29708
  function Fm(n, A) {
@@ -29710,7 +29710,7 @@ function Fm(n, A) {
29710
29710
  return "";
29711
29711
  var e = `
29712
29712
  ` + A.prev + A.base;
29713
- return e + mn.call(n, "," + e) + `
29713
+ return e + vn.call(n, "," + e) + `
29714
29714
  ` + A.prev;
29715
29715
  }
29716
29716
  function lu(n, A) {
@@ -29797,7 +29797,7 @@ var Ov = Ws, Al = x8, Aq = N8, eq = Ov("%TypeError%"), cu = Ov("%WeakMap%", !0),
29797
29797
  },
29798
29798
  RFC1738: tg.RFC1738,
29799
29799
  RFC3986: tg.RFC3986
29800
- }, dq = Nv, ig = Object.prototype.hasOwnProperty, _s = Array.isArray, ln = function() {
29800
+ }, dq = Nv, ig = Object.prototype.hasOwnProperty, _s = Array.isArray, cn = function() {
29801
29801
  for (var n = [], A = 0; A < 256; ++A)
29802
29802
  n.push("%" + ((A < 16 ? "0" : "") + A.toString(16)).toUpperCase());
29803
29803
  return n;
@@ -29867,18 +29867,18 @@ var Ov = Ws, Al = x8, Aq = N8, eq = Ov("%TypeError%"), cu = Ov("%WeakMap%", !0),
29867
29867
  continue;
29868
29868
  }
29869
29869
  if (l < 128) {
29870
- o = o + ln[l];
29870
+ o = o + cn[l];
29871
29871
  continue;
29872
29872
  }
29873
29873
  if (l < 2048) {
29874
- o = o + (ln[192 | l >> 6] + ln[128 | l & 63]);
29874
+ o = o + (cn[192 | l >> 6] + cn[128 | l & 63]);
29875
29875
  continue;
29876
29876
  }
29877
29877
  if (l < 55296 || l >= 57344) {
29878
- o = o + (ln[224 | l >> 12] + ln[128 | l >> 6 & 63] + ln[128 | l & 63]);
29878
+ o = o + (cn[224 | l >> 12] + cn[128 | l >> 6 & 63] + cn[128 | l & 63]);
29879
29879
  continue;
29880
29880
  }
29881
- a += 1, l = 65536 + ((l & 1023) << 10 | s.charCodeAt(a) & 1023), o += ln[240 | l >> 18] + ln[128 | l >> 12 & 63] + ln[128 | l >> 6 & 63] + ln[128 | l & 63];
29881
+ a += 1, l = 65536 + ((l & 1023) << 10 | s.charCodeAt(a) & 1023), o += cn[240 | l >> 18] + cn[128 | l >> 12 & 63] + cn[128 | l >> 6 & 63] + cn[128 | l & 63];
29882
29882
  }
29883
29883
  return o;
29884
29884
  }, wq = function(A) {
@@ -30740,7 +30740,7 @@ function rN() {
30740
30740
  }
30741
30741
  }()), sg;
30742
30742
  }
30743
- var sN = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, Rn = function(n) {
30743
+ var sN = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, kn = function(n) {
30744
30744
  return typeof n == "string" ? n.length > 0 : typeof n == "number";
30745
30745
  }, vt = function(n, A, e) {
30746
30746
  return A === void 0 && (A = 0), e === void 0 && (e = Math.pow(10, A)), Math.round(e * n) / e + 0;
@@ -30787,16 +30787,16 @@ var sN = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, Rn = function(n) {
30787
30787
  return GC(i);
30788
30788
  }, "hsl"]], object: [[function(n) {
30789
30789
  var A = n.r, e = n.g, t = n.b, i = n.a, r = i === void 0 ? 1 : i;
30790
- return Rn(A) && Rn(e) && Rn(t) ? jC({ r: Number(A), g: Number(e), b: Number(t), a: Number(r) }) : null;
30790
+ return kn(A) && kn(e) && kn(t) ? jC({ r: Number(A), g: Number(e), b: Number(t), a: Number(r) }) : null;
30791
30791
  }, "rgb"], [function(n) {
30792
30792
  var A = n.h, e = n.s, t = n.l, i = n.a, r = i === void 0 ? 1 : i;
30793
- if (!Rn(A) || !Rn(e) || !Rn(t))
30793
+ if (!kn(A) || !kn(e) || !kn(t))
30794
30794
  return null;
30795
30795
  var s = KC({ h: Number(A), s: Number(e), l: Number(t), a: Number(r) });
30796
30796
  return GC(s);
30797
30797
  }, "hsl"], [function(n) {
30798
30798
  var A = n.h, e = n.s, t = n.v, i = n.a, r = i === void 0 ? 1 : i;
30799
- if (!Rn(A) || !Rn(e) || !Rn(t))
30799
+ if (!kn(A) || !kn(e) || !kn(t))
30800
30800
  return null;
30801
30801
  var s = function(o) {
30802
30802
  return { h: Fb(o.h), s: Mi(o.s, 0, 100), v: Mi(o.v, 0, 100), a: Mi(o.a) };
@@ -30848,30 +30848,30 @@ var sN = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, Rn = function(n) {
30848
30848
  return A = Gb(this.rgba), { h: vt(A.h), s: vt(A.s), v: vt(A.v), a: vt(A.a, 3) };
30849
30849
  var A;
30850
30850
  }, n.prototype.invert = function() {
30851
- return cn({ r: 255 - (A = this.rgba).r, g: 255 - A.g, b: 255 - A.b, a: A.a });
30851
+ return hn({ r: 255 - (A = this.rgba).r, g: 255 - A.g, b: 255 - A.b, a: A.a });
30852
30852
  var A;
30853
30853
  }, n.prototype.saturate = function(A) {
30854
- return A === void 0 && (A = 0.1), cn(ag(this.rgba, A));
30854
+ return A === void 0 && (A = 0.1), hn(ag(this.rgba, A));
30855
30855
  }, n.prototype.desaturate = function(A) {
30856
- return A === void 0 && (A = 0.1), cn(ag(this.rgba, -A));
30856
+ return A === void 0 && (A = 0.1), hn(ag(this.rgba, -A));
30857
30857
  }, n.prototype.grayscale = function() {
30858
- return cn(ag(this.rgba, -1));
30858
+ return hn(ag(this.rgba, -1));
30859
30859
  }, n.prototype.lighten = function(A) {
30860
- return A === void 0 && (A = 0.1), cn(HC(this.rgba, A));
30860
+ return A === void 0 && (A = 0.1), hn(HC(this.rgba, A));
30861
30861
  }, n.prototype.darken = function(A) {
30862
- return A === void 0 && (A = 0.1), cn(HC(this.rgba, -A));
30862
+ return A === void 0 && (A = 0.1), hn(HC(this.rgba, -A));
30863
30863
  }, n.prototype.rotate = function(A) {
30864
30864
  return A === void 0 && (A = 15), this.hue(this.hue() + A);
30865
30865
  }, n.prototype.alpha = function(A) {
30866
- return typeof A == "number" ? cn({ r: (e = this.rgba).r, g: e.g, b: e.b, a: A }) : vt(this.rgba.a, 3);
30866
+ return typeof A == "number" ? hn({ r: (e = this.rgba).r, g: e.g, b: e.b, a: A }) : vt(this.rgba.a, 3);
30867
30867
  var e;
30868
30868
  }, n.prototype.hue = function(A) {
30869
30869
  var e = mc(this.rgba);
30870
- return typeof A == "number" ? cn({ h: A, s: e.s, l: e.l, a: e.a }) : vt(e.h);
30870
+ return typeof A == "number" ? hn({ h: A, s: e.s, l: e.l, a: e.a }) : vt(e.h);
30871
30871
  }, n.prototype.isEqual = function(A) {
30872
- return this.toHex() === cn(A).toHex();
30872
+ return this.toHex() === hn(A).toHex();
30873
30873
  }, n;
30874
- }(), cn = function(n) {
30874
+ }(), hn = function(n) {
30875
30875
  return n instanceof Jm ? n : new Jm(n);
30876
30876
  }, UC = [], fN = function(n) {
30877
30877
  n.forEach(function(A) {
@@ -31140,7 +31140,7 @@ const ea = class rf {
31140
31140
  const o = rf.HEX_PATTERN.exec(A);
31141
31141
  o && (A = `#${o[2]}`);
31142
31142
  }
31143
- const s = cn(A);
31143
+ const s = hn(A);
31144
31144
  s.isValid() && ({ r: e, g: t, b: i, a: r } = s.rgba, e /= 255, t /= 255, i /= 255);
31145
31145
  }
31146
31146
  if (e !== void 0)
@@ -31265,7 +31265,7 @@ const Zm = class {
31265
31265
  };
31266
31266
  Zm.EMPTY = new Zm(0, 0, 0, 0);
31267
31267
  let ZC = Zm;
31268
- const XC = {}, hn = /* @__PURE__ */ Object.create(null), vr = /* @__PURE__ */ Object.create(null);
31268
+ const XC = {}, un = /* @__PURE__ */ Object.create(null), vr = /* @__PURE__ */ Object.create(null);
31269
31269
  class wN {
31270
31270
  /**
31271
31271
  * @param width - the width for the newly created canvas
@@ -31571,7 +31571,7 @@ function _N(n, A) {
31571
31571
  return n;
31572
31572
  }
31573
31573
  const cg = 0, hg = 1, ug = 2, fg = 3, dg = 4, pg = 5;
31574
- class Pn {
31574
+ class Tn {
31575
31575
  constructor() {
31576
31576
  this.data = 0, this.blendMode = $A.NORMAL, this.polygonOffset = 0, this.blend = !0, this.depthMask = !0;
31577
31577
  }
@@ -31657,11 +31657,11 @@ class Pn {
31657
31657
  this.offsets = !!A, this._polygonOffset = A;
31658
31658
  }
31659
31659
  static for2d() {
31660
- const A = new Pn();
31660
+ const A = new Tn();
31661
31661
  return A.depthTest = !1, A.blend = !0, A;
31662
31662
  }
31663
31663
  }
31664
- Pn.prototype.toString = function() {
31664
+ Tn.prototype.toString = function() {
31665
31665
  return `[@pixi/core:State blendMode=${this.blendMode} clockwiseFrontFace=${this.clockwiseFrontFace} culling=${this.culling} depthMask=${this.depthMask} polygonOffset=${this.polygonOffset}]`;
31666
31666
  };
31667
31667
  const Vm = [];
@@ -31680,7 +31680,7 @@ function Jb(n, A) {
31680
31680
  }
31681
31681
  throw new Error("Unrecognized source type to auto-detect Resource");
31682
31682
  }
31683
- class Vi {
31683
+ class $i {
31684
31684
  /**
31685
31685
  * @param {string} name - The function name that will be executed on the listeners added to this Runner.
31686
31686
  */
@@ -31764,21 +31764,21 @@ class Vi {
31764
31764
  return this._name;
31765
31765
  }
31766
31766
  }
31767
- Object.defineProperties(Vi.prototype, {
31767
+ Object.defineProperties($i.prototype, {
31768
31768
  /**
31769
31769
  * Alias for `emit`
31770
31770
  * @memberof PIXI.Runner#
31771
31771
  * @method dispatch
31772
31772
  * @see PIXI.Runner#emit
31773
31773
  */
31774
- dispatch: { value: Vi.prototype.emit },
31774
+ dispatch: { value: $i.prototype.emit },
31775
31775
  /**
31776
31776
  * Alias for `emit`
31777
31777
  * @memberof PIXI.Runner#
31778
31778
  * @method run
31779
31779
  * @see PIXI.Runner#emit
31780
31780
  */
31781
- run: { value: Vi.prototype.emit }
31781
+ run: { value: $i.prototype.emit }
31782
31782
  });
31783
31783
  class Bc {
31784
31784
  /**
@@ -31786,7 +31786,7 @@ class Bc {
31786
31786
  * @param height - Height of the resource
31787
31787
  */
31788
31788
  constructor(A = 0, e = 0) {
31789
- this._width = A, this._height = e, this.destroyed = !1, this.internal = !1, this.onResize = new Vi("setRealSize"), this.onUpdate = new Vi("update"), this.onError = new Vi("onError");
31789
+ this._width = A, this._height = e, this.destroyed = !1, this.internal = !1, this.onResize = new $i("setRealSize"), this.onUpdate = new $i("update"), this.onError = new $i("onError");
31790
31790
  }
31791
31791
  /**
31792
31792
  * Bind to a parent BaseTexture
@@ -32096,7 +32096,7 @@ const MN = {
32096
32096
  * @fires PIXI.BaseTexture#destroyed
32097
32097
  */
32098
32098
  destroy() {
32099
- this.resource && (this.resource.unbind(this), this.resource.internal && this.resource.destroy(), this.resource = null), this.cacheId && (delete vr[this.cacheId], delete hn[this.cacheId], this.cacheId = null), this.valid = !1, this.dispose(), ta.removeFromCache(this), this.textureCacheIds = null, this.destroyed = !0, this.emit("destroyed", this), this.removeAllListeners();
32099
+ this.resource && (this.resource.unbind(this), this.resource.internal && this.resource.destroy(), this.resource = null), this.cacheId && (delete vr[this.cacheId], delete un[this.cacheId], this.cacheId = null), this.valid = !1, this.dispose(), ta.removeFromCache(this), this.textureCacheIds = null, this.destroyed = !0, this.emit("destroyed", this), this.removeAllListeners();
32100
32100
  }
32101
32101
  /**
32102
32102
  * Frees the texture from WebGL memory without destroying this texture object.
@@ -32199,7 +32199,7 @@ $m.defaultOptions = {
32199
32199
  * @type {PIXI.MIPMAP_MODES}
32200
32200
  * @default PIXI.MIPMAP_MODES.POW2
32201
32201
  */
32202
- mipmap: bn.POW2,
32202
+ mipmap: Sn.POW2,
32203
32203
  /** Anisotropic filtering level of texture */
32204
32204
  anisotropicLevel: 0,
32205
32205
  /**
@@ -32243,7 +32243,7 @@ $m._globalBatch = 0;
32243
32243
  let se = $m;
32244
32244
  class A0 {
32245
32245
  constructor() {
32246
- this.texArray = null, this.blend = 0, this.type = vn.TRIANGLES, this.start = 0, this.size = 0, this.data = null;
32246
+ this.texArray = null, this.blend = 0, this.type = yn.TRIANGLES, this.start = 0, this.size = 0, this.data = null;
32247
32247
  }
32248
32248
  }
32249
32249
  let PN = 0;
@@ -32254,7 +32254,7 @@ class Qe {
32254
32254
  * @param index - `true` for index buffer
32255
32255
  */
32256
32256
  constructor(A, e = !0, t = !1) {
32257
- this.data = A || new Float32Array(1), this._glBuffers = {}, this._updateID = 0, this.index = t, this.static = e, this.id = PN++, this.disposeRunner = new Vi("disposeBuffer");
32257
+ this.data = A || new Float32Array(1), this._glBuffers = {}, this._updateID = 0, this.index = t, this.static = e, this.id = PN++, this.disposeRunner = new $i("disposeBuffer");
32258
32258
  }
32259
32259
  // TODO could explore flagging only a partial upload?
32260
32260
  /**
@@ -32281,10 +32281,10 @@ class Qe {
32281
32281
  * For backwards compatibility.
32282
32282
  */
32283
32283
  set index(A) {
32284
- this.type = A ? wn.ELEMENT_ARRAY_BUFFER : wn.ARRAY_BUFFER;
32284
+ this.type = A ? Cn.ELEMENT_ARRAY_BUFFER : Cn.ARRAY_BUFFER;
32285
32285
  }
32286
32286
  get index() {
32287
- return this.type === wn.ELEMENT_ARRAY_BUFFER;
32287
+ return this.type === Cn.ELEMENT_ARRAY_BUFFER;
32288
32288
  }
32289
32289
  /**
32290
32290
  * Helper function that creates a buffer based on an array or TypedArray
@@ -32365,7 +32365,7 @@ class Jr {
32365
32365
  * @param attributes - Of the geometry, optional structure of the attributes layout
32366
32366
  */
32367
32367
  constructor(A = [], e = {}) {
32368
- this.buffers = A, this.indexBuffer = null, this.attributes = e, this.glVertexArrayObjects = {}, this.id = EN++, this.instanced = !1, this.instanceCount = 1, this.disposeRunner = new Vi("disposeGeometry"), this.refCount = 0;
32368
+ this.buffers = A, this.indexBuffer = null, this.attributes = e, this.glVertexArrayObjects = {}, this.id = EN++, this.instanced = !1, this.instanceCount = 1, this.disposeRunner = new $i("disposeGeometry"), this.refCount = 0;
32369
32369
  }
32370
32370
  /**
32371
32371
  *
@@ -32418,7 +32418,7 @@ class Jr {
32418
32418
  * @returns - Returns self, useful for chaining.
32419
32419
  */
32420
32420
  addIndex(A) {
32421
- return A instanceof Qe || (A instanceof Array && (A = new Uint16Array(A)), A = new Qe(A)), A.type = wn.ELEMENT_ARRAY_BUFFER, this.indexBuffer = A, this.buffers.includes(A) || this.buffers.push(A), this;
32421
+ return A instanceof Qe || (A instanceof Array && (A = new Uint16Array(A)), A = new Qe(A)), A.type = Cn.ELEMENT_ARRAY_BUFFER, this.indexBuffer = A, this.buffers.includes(A) || this.buffers.push(A), this;
32422
32422
  }
32423
32423
  /**
32424
32424
  * Returns the index buffer
@@ -32481,7 +32481,7 @@ class Jr {
32481
32481
  t.instance
32482
32482
  );
32483
32483
  }
32484
- return this.indexBuffer && (A.indexBuffer = A.buffers[this.buffers.indexOf(this.indexBuffer)], A.indexBuffer.type = wn.ELEMENT_ARRAY_BUFFER), A;
32484
+ return this.indexBuffer && (A.indexBuffer = A.buffers[this.buffers.indexOf(this.indexBuffer)], A.indexBuffer.type = Cn.ELEMENT_ARRAY_BUFFER), A;
32485
32485
  }
32486
32486
  /**
32487
32487
  * Merges an array of geometries into a new single one.
@@ -32506,7 +32506,7 @@ class Jr {
32506
32506
  t[a].set(s.buffers[a].data, r[a]), r[a] += s.buffers[a].data.length;
32507
32507
  }
32508
32508
  if (e.attributes = s.attributes, s.indexBuffer) {
32509
- e.indexBuffer = e.buffers[s.buffers.indexOf(s.indexBuffer)], e.indexBuffer.type = wn.ELEMENT_ARRAY_BUFFER;
32509
+ e.indexBuffer = e.buffers[s.buffers.indexOf(s.indexBuffer)], e.indexBuffer.type = Cn.ELEMENT_ARRAY_BUFFER;
32510
32510
  let o = 0, a = 0, l = 0, u = 0;
32511
32511
  for (let c = 0; c < s.buffers.length; c++)
32512
32512
  if (s.buffers[c] !== s.indexBuffer) {
@@ -34103,26 +34103,26 @@ i0.defaultVertexPrecision = _i.HIGH, /**
34103
34103
  */
34104
34104
  i0.defaultFragmentPrecision = Qn.apple.device ? _i.HIGH : _i.MEDIUM;
34105
34105
  let $n = i0, WN = 0;
34106
- class $i {
34106
+ class An {
34107
34107
  /**
34108
34108
  * @param {object | Buffer} [uniforms] - Custom uniforms to use to augment the built-in ones. Or a pixi buffer.
34109
34109
  * @param isStatic - Uniforms wont be changed after creation.
34110
34110
  * @param isUbo - If true, will treat this uniform group as a uniform buffer object.
34111
34111
  */
34112
34112
  constructor(A, e, t) {
34113
- this.group = !0, this.syncUniforms = {}, this.dirtyId = 0, this.id = WN++, this.static = !!e, this.ubo = !!t, A instanceof Qe ? (this.buffer = A, this.buffer.type = wn.UNIFORM_BUFFER, this.autoManage = !1, this.ubo = !0) : (this.uniforms = A, this.ubo && (this.buffer = new Qe(new Float32Array(1)), this.buffer.type = wn.UNIFORM_BUFFER, this.autoManage = !0));
34113
+ this.group = !0, this.syncUniforms = {}, this.dirtyId = 0, this.id = WN++, this.static = !!e, this.ubo = !!t, A instanceof Qe ? (this.buffer = A, this.buffer.type = Cn.UNIFORM_BUFFER, this.autoManage = !1, this.ubo = !0) : (this.uniforms = A, this.ubo && (this.buffer = new Qe(new Float32Array(1)), this.buffer.type = Cn.UNIFORM_BUFFER, this.autoManage = !0));
34114
34114
  }
34115
34115
  update() {
34116
34116
  this.dirtyId++, !this.autoManage && this.buffer && this.buffer.update();
34117
34117
  }
34118
34118
  add(A, e, t) {
34119
34119
  if (!this.ubo)
34120
- this.uniforms[A] = new $i(e, t);
34120
+ this.uniforms[A] = new An(e, t);
34121
34121
  else
34122
34122
  throw new Error("[UniformGroup] uniform groups in ubo mode cannot be modified, or have uniform groups nested in them");
34123
34123
  }
34124
34124
  static from(A, e, t) {
34125
- return new $i(A, e, t);
34125
+ return new An(A, e, t);
34126
34126
  }
34127
34127
  /**
34128
34128
  * A short hand function for creating a static UBO UniformGroup.
@@ -34130,16 +34130,16 @@ class $i {
34130
34130
  * @param _static - should this be updated each time it is used? defaults to true here!
34131
34131
  */
34132
34132
  static uboFrom(A, e) {
34133
- return new $i(A, e ?? !0, !0);
34133
+ return new An(A, e ?? !0, !0);
34134
34134
  }
34135
34135
  }
34136
- class Cn {
34136
+ class xn {
34137
34137
  /**
34138
34138
  * @param program - The program the shader will use.
34139
34139
  * @param uniforms - Custom uniforms to use to augment the built-in ones.
34140
34140
  */
34141
34141
  constructor(A, e) {
34142
- this.uniformBindCount = 0, this.program = A, e ? e instanceof $i ? this.uniformGroup = e : this.uniformGroup = new $i(e) : this.uniformGroup = new $i({}), this.disposeRunner = new Vi("disposeShader");
34142
+ this.uniformBindCount = 0, this.program = A, e ? e instanceof An ? this.uniformGroup = e : this.uniformGroup = new An(e) : this.uniformGroup = new An({}), this.disposeRunner = new $i("disposeShader");
34143
34143
  }
34144
34144
  // TODO move to shader system..
34145
34145
  checkUniformExists(A, e) {
@@ -34171,7 +34171,7 @@ class Cn {
34171
34171
  */
34172
34172
  static from(A, e, t) {
34173
34173
  const i = $n.from(A, e);
34174
- return new Cn(i, t);
34174
+ return new xn(i, t);
34175
34175
  }
34176
34176
  }
34177
34177
  class JN {
@@ -34190,7 +34190,7 @@ class JN {
34190
34190
  const t = new Int32Array(A);
34191
34191
  for (let r = 0; r < A; r++)
34192
34192
  t[r] = r;
34193
- this.defaultGroupCache[A] = $i.from({ uSamplers: t }, !0);
34193
+ this.defaultGroupCache[A] = An.from({ uSamplers: t }, !0);
34194
34194
  let i = this.fragTemplate;
34195
34195
  i = i.replace(/%count%/gi, `${A}`), i = i.replace(/%forloop%/gi, this.generateSampleSrc(A)), this.programCache[A] = new $n(this.vertexSrc, i);
34196
34196
  }
@@ -34199,7 +34199,7 @@ class JN {
34199
34199
  translationMatrix: new Be(),
34200
34200
  default: this.defaultGroupCache[A]
34201
34201
  };
34202
- return new Cn(this.programCache[A], e);
34202
+ return new xn(this.programCache[A], e);
34203
34203
  }
34204
34204
  generateSampleSrc(A) {
34205
34205
  let e = "";
@@ -34318,7 +34318,7 @@ const Xl = class Yi extends Cd {
34318
34318
  * @param {PIXI.Renderer} renderer - The renderer this works for.
34319
34319
  */
34320
34320
  constructor(A) {
34321
- super(A), this.setShaderGenerator(), this.geometryClass = Zb, this.vertexSize = 6, this.state = Pn.for2d(), this.size = Yi.defaultBatchSize * 4, this._vertexCount = 0, this._indexCount = 0, this._bufferedElements = [], this._bufferedTextures = [], this._bufferSize = 0, this._shader = null, this._packedGeometries = [], this._packedGeometryPoolSize = 2, this._flushId = 0, this._aBuffers = {}, this._iBuffers = {}, this.maxTextures = 1, this.renderer.on("prerender", this.onPrerender, this), A.runners.contextChange.add(this), this._dcIndex = 0, this._aIndex = 0, this._iIndex = 0, this._attributeBuffer = null, this._indexBuffer = null, this._tempBoundTextures = [];
34321
+ super(A), this.setShaderGenerator(), this.geometryClass = Zb, this.vertexSize = 6, this.state = Tn.for2d(), this.size = Yi.defaultBatchSize * 4, this._vertexCount = 0, this._indexCount = 0, this._bufferedElements = [], this._bufferedTextures = [], this._bufferSize = 0, this._shader = null, this._packedGeometries = [], this._packedGeometryPoolSize = 2, this._flushId = 0, this._aBuffers = {}, this._iBuffers = {}, this.maxTextures = 1, this.renderer.on("prerender", this.onPrerender, this), A.runners.contextChange.add(this), this._dcIndex = 0, this._aIndex = 0, this._iIndex = 0, this._attributeBuffer = null, this._indexBuffer = null, this._tempBoundTextures = [];
34322
34322
  }
34323
34323
  /**
34324
34324
  * The maximum textures that this device supports.
@@ -34603,7 +34603,7 @@ void main(void)
34603
34603
  vTextureCoord = filterTextureCoord();
34604
34604
  }
34605
34605
  `;
34606
- const r0 = class Ql extends Cn {
34606
+ const r0 = class Ql extends xn {
34607
34607
  /**
34608
34608
  * @param vertexSrc - The source of the vertex shader.
34609
34609
  * @param fragmentSrc - The source of the fragment shader.
@@ -34614,7 +34614,7 @@ const r0 = class Ql extends Cn {
34614
34614
  A || Ql.defaultVertexSrc,
34615
34615
  e || Ql.defaultFragmentSrc
34616
34616
  );
34617
- super(i, t), this.padding = 0, this.resolution = Ql.defaultResolution, this.multisample = Ql.defaultMultisample, this.enabled = !0, this.autoFit = !0, this.state = new Pn();
34617
+ super(i, t), this.padding = 0, this.resolution = Ql.defaultResolution, this.multisample = Ql.defaultMultisample, this.enabled = !0, this.autoFit = !0, this.state = new Tn();
34618
34618
  }
34619
34619
  /**
34620
34620
  * Applies the filter
@@ -35000,7 +35000,7 @@ class s0 {
35000
35000
  constructor(A, e) {
35001
35001
  if (this.width = Math.round(A), this.height = Math.round(e), !this.width || !this.height)
35002
35002
  throw new Error("Framebuffer width or height is zero");
35003
- this.stencil = !1, this.depth = !1, this.dirtyId = 0, this.dirtyFormat = 0, this.dirtySize = 0, this.depthTexture = null, this.colorTextures = [], this.glFramebuffers = {}, this.disposeRunner = new Vi("disposeFramebuffer"), this.multisample = tt.NONE;
35003
+ this.stencil = !1, this.depth = !1, this.dirtyId = 0, this.dirtyFormat = 0, this.dirtySize = 0, this.depthTexture = null, this.colorTextures = [], this.glFramebuffers = {}, this.disposeRunner = new $i("disposeFramebuffer"), this.multisample = tt.NONE;
35004
35004
  }
35005
35005
  /**
35006
35006
  * Reference to the colorTexture.
@@ -35018,7 +35018,7 @@ class s0 {
35018
35018
  return this.colorTextures[A] = e || new se(null, {
35019
35019
  scaleMode: Xn.NEAREST,
35020
35020
  resolution: 1,
35021
- mipmap: bn.OFF,
35021
+ mipmap: Sn.OFF,
35022
35022
  width: this.width,
35023
35023
  height: this.height
35024
35024
  }), this.dirtyId++, this.dirtyFormat++, this;
@@ -35033,7 +35033,7 @@ class s0 {
35033
35033
  resolution: 1,
35034
35034
  width: this.width,
35035
35035
  height: this.height,
35036
- mipmap: bn.OFF,
35036
+ mipmap: Sn.OFF,
35037
35037
  format: PA.DEPTH_COMPONENT,
35038
35038
  type: ZA.UNSIGNED_SHORT
35039
35039
  }), this.dirtyId++, this.dirtyFormat++, this;
@@ -35091,7 +35091,7 @@ class t3 extends se {
35091
35091
  const e = arguments[0], t = arguments[1], i = arguments[2], r = arguments[3];
35092
35092
  A = { width: e, height: t, scaleMode: i, resolution: r };
35093
35093
  }
35094
- A.width = A.width ?? 100, A.height = A.height ?? 100, A.multisample ?? (A.multisample = tt.NONE), super(null, A), this.mipmap = bn.OFF, this.valid = !0, this._clear = new qe([0, 0, 0, 0]), this.framebuffer = new s0(this.realWidth, this.realHeight).addColorTexture(0, this), this.framebuffer.multisample = A.multisample, this.maskStack = [], this.filterStack = [{}];
35094
+ A.width = A.width ?? 100, A.height = A.height ?? 100, A.multisample ?? (A.multisample = tt.NONE), super(null, A), this.mipmap = Sn.OFF, this.valid = !0, this._clear = new qe([0, 0, 0, 0]), this.framebuffer = new s0(this.realWidth, this.realHeight).addColorTexture(0, this), this.framebuffer.multisample = A.multisample, this.maskStack = [], this.filterStack = [{}];
35095
35095
  }
35096
35096
  /** Color when clearning the texture. */
35097
35097
  set clearColor(A) {
@@ -35371,7 +35371,7 @@ class GA extends Hc {
35371
35371
  if (this.baseTexture) {
35372
35372
  if (A) {
35373
35373
  const { resource: e } = this.baseTexture;
35374
- e != null && e.url && hn[e.url] && GA.removeFromCache(e.url), this.baseTexture.destroy();
35374
+ e != null && e.url && un[e.url] && GA.removeFromCache(e.url), this.baseTexture.destroy();
35375
35375
  }
35376
35376
  this.baseTexture.off("loaded", this.onBaseTextureUpdated, this), this.baseTexture.off("update", this.onBaseTextureUpdated, this), this.baseTexture = null;
35377
35377
  }
@@ -35429,7 +35429,7 @@ class GA extends Hc {
35429
35429
  }
35430
35430
  r = A._pixiId;
35431
35431
  }
35432
- let s = hn[r];
35432
+ let s = un[r];
35433
35433
  if (i && t && !s)
35434
35434
  throw new Error(`The cacheId "${r}" does not exist in TextureCache.`);
35435
35435
  return !s && !(A instanceof se) ? (e.resolution || (e.resolution = nr(A)), s = new GA(new se(A, e)), s.baseTexture.cacheId = r, se.addToCache(s.baseTexture, r), GA.addToCache(s, r)) : !s && A instanceof se && (s = new GA(A), GA.addToCache(s, r)), s;
@@ -35493,7 +35493,7 @@ class GA extends Hc {
35493
35493
  * @param id - The id that the Texture will be stored against.
35494
35494
  */
35495
35495
  static addToCache(A, e) {
35496
- e && (A.textureCacheIds.includes(e) || A.textureCacheIds.push(e), hn[e] && hn[e] !== A && console.warn(`Texture added to the cache with an id [${e}] that already had an entry`), hn[e] = A);
35496
+ e && (A.textureCacheIds.includes(e) || A.textureCacheIds.push(e), un[e] && un[e] !== A && console.warn(`Texture added to the cache with an id [${e}] that already had an entry`), un[e] = A);
35497
35497
  }
35498
35498
  /**
35499
35499
  * Remove a Texture from the global TextureCache.
@@ -35502,14 +35502,14 @@ class GA extends Hc {
35502
35502
  */
35503
35503
  static removeFromCache(A) {
35504
35504
  if (typeof A == "string") {
35505
- const e = hn[A];
35505
+ const e = un[A];
35506
35506
  if (e) {
35507
35507
  const t = e.textureCacheIds.indexOf(A);
35508
- return t > -1 && e.textureCacheIds.splice(t, 1), delete hn[A], e;
35508
+ return t > -1 && e.textureCacheIds.splice(t, 1), delete un[A], e;
35509
35509
  }
35510
35510
  } else if (A != null && A.textureCacheIds) {
35511
35511
  for (let e = 0; e < A.textureCacheIds.length; ++e)
35512
- hn[A.textureCacheIds[e]] === A && delete hn[A.textureCacheIds[e]];
35512
+ un[A.textureCacheIds[e]] === A && delete un[A.textureCacheIds[e]];
35513
35513
  return A.textureCacheIds.length = 0, A;
35514
35514
  }
35515
35515
  return null;
@@ -35811,7 +35811,7 @@ class s3 {
35811
35811
  * @param renderer - The renderer this System works for.
35812
35812
  */
35813
35813
  constructor(A) {
35814
- this.renderer = A, this.defaultFilterStack = [{}], this.texturePool = new n3(), this.statePool = [], this.quad = new eB(), this.quadUv = new r3(), this.tempRect = new te(), this.activeState = {}, this.globalUniforms = new $i({
35814
+ this.renderer = A, this.defaultFilterStack = [{}], this.texturePool = new n3(), this.statePool = [], this.quad = new eB(), this.quadUv = new r3(), this.tempRect = new te(), this.activeState = {}, this.globalUniforms = new An({
35815
35815
  outputFrame: new te(),
35816
35816
  inputSize: new Float32Array(4),
35817
35817
  inputPixel: new Float32Array(4),
@@ -35878,7 +35878,7 @@ class s3 {
35878
35878
  this.globalUniforms.update();
35879
35879
  const a = A[A.length - 1];
35880
35880
  if (this.renderer.framebuffer.blit(), t.length === 1)
35881
- t[0].apply(this, e.renderTexture, a.renderTexture, gn.BLEND, e), this.returnFilterTexture(e.renderTexture);
35881
+ t[0].apply(this, e.renderTexture, a.renderTexture, mn.BLEND, e), this.returnFilterTexture(e.renderTexture);
35882
35882
  else {
35883
35883
  let l = e.renderTexture, u = this.getOptimalFilterTexture(
35884
35884
  l.width,
@@ -35892,11 +35892,11 @@ class s3 {
35892
35892
  l.width,
35893
35893
  l.height,
35894
35894
  e.resolution
35895
- ), u.filterFrame = l.filterFrame), t[c].apply(this, l, u, gn.CLEAR, e);
35895
+ ), u.filterFrame = l.filterFrame), t[c].apply(this, l, u, mn.CLEAR, e);
35896
35896
  const h = l;
35897
35897
  l = u, u = h;
35898
35898
  }
35899
- t[c].apply(this, l, a.renderTexture, gn.BLEND, e), c > 1 && e.multisample > 1 && this.returnFilterTexture(e.renderTexture), this.returnFilterTexture(l), this.returnFilterTexture(u);
35899
+ t[c].apply(this, l, a.renderTexture, mn.BLEND, e), c > 1 && e.multisample > 1 && this.returnFilterTexture(e.renderTexture), this.returnFilterTexture(l), this.returnFilterTexture(u);
35900
35900
  }
35901
35901
  e.clear(), this.statePool.push(e);
35902
35902
  }
@@ -35905,7 +35905,7 @@ class s3 {
35905
35905
  * @param filterTexture - renderTexture to bind, should belong to filter pool or filter stack
35906
35906
  * @param clearMode - clearMode, by default its CLEAR/YES. See {@link PIXI.CLEAR_MODES}
35907
35907
  */
35908
- bindAndClear(A, e = gn.CLEAR) {
35908
+ bindAndClear(A, e = mn.CLEAR) {
35909
35909
  const {
35910
35910
  renderTexture: t,
35911
35911
  state: i
@@ -35920,7 +35920,7 @@ class s3 {
35920
35920
  this.activeState.bindingDestinationFrame
35921
35921
  );
35922
35922
  const r = i.stateId & 1 || this.forceClear;
35923
- (e === gn.CLEAR || e === gn.BLIT && r) && this.renderer.framebuffer.clear(0, 0, 0, 0);
35923
+ (e === mn.CLEAR || e === mn.BLIT && r) && this.renderer.framebuffer.clear(0, 0, 0, 0);
35924
35924
  }
35925
35925
  /**
35926
35926
  * Draws a filter using the default rendering process.
@@ -35933,7 +35933,7 @@ class s3 {
35933
35933
  */
35934
35934
  applyFilter(A, e, t, i) {
35935
35935
  const r = this.renderer;
35936
- r.state.set(A.state), this.bindAndClear(t, i), A.uniforms.uSampler = e, A.uniforms.filterGlobals = this.globalUniforms, r.shader.bind(A), A.legacy = !!A.program.attributeData.aTextureCoord, A.legacy ? (this.quadUv.map(e._frame, e.filterFrame), r.geometry.bind(this.quadUv), r.geometry.draw(vn.TRIANGLES)) : (r.geometry.bind(this.quad), r.geometry.draw(vn.TRIANGLE_STRIP));
35936
+ r.state.set(A.state), this.bindAndClear(t, i), A.uniforms.uSampler = e, A.uniforms.filterGlobals = this.globalUniforms, r.shader.bind(A), A.legacy = !!A.program.attributeData.aTextureCoord, A.legacy ? (this.quadUv.map(e._frame, e.filterFrame), r.geometry.bind(this.quadUv), r.geometry.draw(yn.TRIANGLES)) : (r.geometry.bind(this.quad), r.geometry.draw(yn.TRIANGLE_STRIP));
35937
35937
  }
35938
35938
  /**
35939
35939
  * Multiply _input normalized coordinates_ to this matrix to get _sprite texture normalized coordinates_.
@@ -36430,7 +36430,7 @@ class a3 {
36430
36430
  const d = c[m];
36431
36431
  s.bind(d), t && d._glBuffers[r].refCount++;
36432
36432
  }
36433
- return this.activateVao(A, o), l[o.id] = u, l[a] = u, i.bindVertexArray(null), s.unbind(wn.ARRAY_BUFFER), u;
36433
+ return this.activateVao(A, o), l[o.id] = u, l[a] = u, i.bindVertexArray(null), s.unbind(Cn.ARRAY_BUFFER), u;
36434
36434
  }
36435
36435
  /**
36436
36436
  * Disposes geometry.
@@ -37629,7 +37629,7 @@ function CB(n, A = []) {
37629
37629
  }
37630
37630
  const xB = 0, IB = 1, bB = 2, SB = 3, _B = 4, MB = 5, w3 = class o0 {
37631
37631
  constructor() {
37632
- this.gl = null, this.stateId = 0, this.polygonOffset = 0, this.blendMode = $A.NONE, this._blendEq = !1, this.map = [], this.map[xB] = this.setBlend, this.map[IB] = this.setOffset, this.map[bB] = this.setCullFace, this.map[SB] = this.setDepthTest, this.map[_B] = this.setFrontFace, this.map[MB] = this.setDepthMask, this.checks = [], this.defaultState = new Pn(), this.defaultState.blend = !0;
37632
+ this.gl = null, this.stateId = 0, this.polygonOffset = 0, this.blendMode = $A.NONE, this._blendEq = !1, this.map = [], this.map[xB] = this.setBlend, this.map[IB] = this.setOffset, this.map[bB] = this.setCullFace, this.map[SB] = this.setDepthTest, this.map[_B] = this.setFrontFace, this.map[MB] = this.setDepthMask, this.checks = [], this.defaultState = new Tn(), this.defaultState.blend = !0;
37633
37633
  }
37634
37634
  contextChange(A) {
37635
37635
  this.gl = A, this.blendModes = CB(A), this.set(this.defaultState), this.reset();
@@ -37792,7 +37792,7 @@ class TB extends Hc {
37792
37792
  */
37793
37793
  addRunners(...A) {
37794
37794
  A.forEach((e) => {
37795
- this.runners[e] = new Vi(e);
37795
+ this.runners[e] = new $i(e);
37796
37796
  });
37797
37797
  }
37798
37798
  /**
@@ -38233,7 +38233,7 @@ class C3 {
38233
38233
  updateTextureStyle(A) {
38234
38234
  var t;
38235
38235
  const e = A._glTextures[this.CONTEXT_UID];
38236
- e && ((A.mipmap === bn.POW2 || this.webGLVersion !== 2) && !A.isPowerOfTwo ? e.mipmap = !1 : e.mipmap = A.mipmap >= 1, this.webGLVersion !== 2 && !A.isPowerOfTwo ? e.wrapMode = Yr.CLAMP : e.wrapMode = A.wrapMode, (t = A.resource) != null && t.style(this.renderer, A, e) || this.setStyle(A, e), e.dirtyStyleId = A.dirtyStyleId);
38236
+ e && ((A.mipmap === Sn.POW2 || this.webGLVersion !== 2) && !A.isPowerOfTwo ? e.mipmap = !1 : e.mipmap = A.mipmap >= 1, this.webGLVersion !== 2 && !A.isPowerOfTwo ? e.wrapMode = Yr.CLAMP : e.wrapMode = A.wrapMode, (t = A.resource) != null && t.style(this.renderer, A, e) || this.setStyle(A, e), e.dirtyStyleId = A.dirtyStyleId);
38237
38237
  }
38238
38238
  /**
38239
38239
  * Set style for texture
@@ -38243,7 +38243,7 @@ class C3 {
38243
38243
  */
38244
38244
  setStyle(A, e) {
38245
38245
  const t = this.gl;
38246
- if (e.mipmap && A.mipmap !== bn.ON_MANUAL && t.generateMipmap(A.target), t.texParameteri(A.target, t.TEXTURE_WRAP_S, e.wrapMode), t.texParameteri(A.target, t.TEXTURE_WRAP_T, e.wrapMode), e.mipmap) {
38246
+ if (e.mipmap && A.mipmap !== Sn.ON_MANUAL && t.generateMipmap(A.target), t.texParameteri(A.target, t.TEXTURE_WRAP_S, e.wrapMode), t.texParameteri(A.target, t.TEXTURE_WRAP_T, e.wrapMode), e.mipmap) {
38247
38247
  t.texParameteri(A.target, t.TEXTURE_MIN_FILTER, A.scaleMode === Xn.LINEAR ? t.LINEAR_MIPMAP_LINEAR : t.NEAREST_MIPMAP_NEAREST);
38248
38248
  const i = this.renderer.context.extensions.anisotropicFiltering;
38249
38249
  if (i && A.anisotropicLevel > 0 && A.scaleMode === Xn.LINEAR) {
@@ -39262,7 +39262,7 @@ const af = class a0 extends TB {
39262
39262
  * @param {PIXI.IRendererOptions} [options] - See {@link PIXI.settings.RENDER_OPTIONS} for defaults.
39263
39263
  */
39264
39264
  constructor(A) {
39265
- super(), this.type = yb.WEBGL, A = Object.assign({}, jA.RENDER_OPTIONS, A), this.gl = null, this.CONTEXT_UID = 0, this.globalUniforms = new $i({
39265
+ super(), this.type = yb.WEBGL, A = Object.assign({}, jA.RENDER_OPTIONS, A), this.gl = null, this.CONTEXT_UID = 0, this.globalUniforms = new An({
39266
39266
  projectionMatrix: new Be()
39267
39267
  }, !0);
39268
39268
  const e = {
@@ -41430,9 +41430,9 @@ class d0 extends kt {
41430
41430
  else {
41431
41431
  const r = A.getFilterTexture(), s = A.renderer;
41432
41432
  let o = e, a = r;
41433
- this.state.blend = !1, A.applyFilter(this, o, a, gn.CLEAR);
41433
+ this.state.blend = !1, A.applyFilter(this, o, a, mn.CLEAR);
41434
41434
  for (let l = 1; l < this.passes - 1; l++) {
41435
- A.bindAndClear(o, gn.BLIT), this.uniforms.uSampler = a;
41435
+ A.bindAndClear(o, mn.BLIT), this.uniforms.uSampler = a;
41436
41436
  const u = a;
41437
41437
  a = o, o = u, s.shader.bind(this), s.geometry.draw(5);
41438
41438
  }
@@ -41482,7 +41482,7 @@ class $B extends kt {
41482
41482
  const r = Math.abs(this.blurXFilter.strength), s = Math.abs(this.blurYFilter.strength);
41483
41483
  if (r && s) {
41484
41484
  const o = A.getFilterTexture();
41485
- this.blurXFilter.apply(A, e, o, gn.CLEAR), this.blurYFilter.apply(A, o, t, i), A.returnFilterTexture(o);
41485
+ this.blurXFilter.apply(A, e, o, mn.CLEAR), this.blurYFilter.apply(A, o, t, i), A.returnFilterTexture(o);
41486
41486
  } else
41487
41487
  s ? this.blurYFilter.apply(A, e, t, i) : this.blurXFilter.apply(A, e, t, i);
41488
41488
  }
@@ -44778,7 +44778,7 @@ function As(n, A) {
44778
44778
  const e = n.split("?")[0], t = at.extname(e).toLowerCase();
44779
44779
  return Array.isArray(A) ? A.includes(t) : t === A;
44780
44780
  }
44781
- const Ji = (n, A, e = !1) => (Array.isArray(n) || (n = [n]), A ? n.map((t) => typeof t == "string" || e ? A(t) : t) : n), w0 = (n, A) => {
44781
+ const Zi = (n, A, e = !1) => (Array.isArray(n) || (n = [n]), A ? n.map((t) => typeof t == "string" || e ? A(t) : t) : n), w0 = (n, A) => {
44782
44782
  const e = A.split("?")[1];
44783
44783
  return e && (n += `?${e}`), n;
44784
44784
  };
@@ -44831,7 +44831,7 @@ class Sz {
44831
44831
  * @param value - The value to store in the cache or from which cacheable assets will be derived.
44832
44832
  */
44833
44833
  set(A, e) {
44834
- const t = Ji(A);
44834
+ const t = Zi(A);
44835
44835
  let i;
44836
44836
  for (let o = 0; o < this.parsers.length; o++) {
44837
44837
  const a = this.parsers[o];
@@ -44928,7 +44928,7 @@ class _z {
44928
44928
  async load(A, e) {
44929
44929
  this._parsersValidated || this._validateParsers();
44930
44930
  let t = 0;
44931
- const i = {}, r = Yf(A), s = Ji(A, (l) => ({
44931
+ const i = {}, r = Yf(A), s = Zi(A, (l) => ({
44932
44932
  alias: [l],
44933
44933
  src: l
44934
44934
  })), o = s.length, a = s.map(async (l) => {
@@ -44956,7 +44956,7 @@ ${c}`);
44956
44956
  * @param assetsToUnloadIn - urls that you want to unload, or a single one!
44957
44957
  */
44958
44958
  async unload(A) {
44959
- const e = Ji(A, (t) => ({
44959
+ const e = Zi(A, (t) => ({
44960
44960
  alias: [t],
44961
44961
  src: t
44962
44962
  })).map(async (t) => {
@@ -44974,11 +44974,11 @@ ${c}`);
44974
44974
  this._parsersValidated = !0, this._parserHash = this._parsers.filter((A) => A.name).reduce((A, e) => (A[e.name] && console.warn(`[Assets] loadParser name conflict "${e.name}"`), { ...A, [e.name]: e }), {});
44975
44975
  }
44976
44976
  }
44977
- var tn = /* @__PURE__ */ ((n) => (n[n.Low = 0] = "Low", n[n.Normal = 1] = "Normal", n[n.High = 2] = "High", n))(tn || {});
44977
+ var nn = /* @__PURE__ */ ((n) => (n[n.Low = 0] = "Low", n[n.Normal = 1] = "Normal", n[n.High = 2] = "High", n))(nn || {});
44978
44978
  const Mz = ".json", Pz = "application/json", Tz = {
44979
44979
  extension: {
44980
44980
  type: OA.LoadParser,
44981
- priority: tn.Low
44981
+ priority: nn.Low
44982
44982
  },
44983
44983
  name: "loadJson",
44984
44984
  test(n) {
@@ -44993,7 +44993,7 @@ const Dz = ".txt", Ez = "text/plain", Lz = {
44993
44993
  name: "loadTxt",
44994
44994
  extension: {
44995
44995
  type: OA.LoadParser,
44996
- priority: tn.Low
44996
+ priority: nn.Low
44997
44997
  },
44998
44998
  test(n) {
44999
44999
  return el(n, Ez) || As(n, Dz);
@@ -45039,7 +45039,7 @@ function kz(n) {
45039
45039
  const jz = {
45040
45040
  extension: {
45041
45041
  type: OA.LoadParser,
45042
- priority: tn.Low
45042
+ priority: nn.Low
45043
45043
  },
45044
45044
  name: "loadWebFont",
45045
45045
  test(n) {
@@ -45210,7 +45210,7 @@ const xd = {
45210
45210
  name: "loadTextures",
45211
45211
  extension: {
45212
45212
  type: OA.LoadParser,
45213
- priority: tn.High
45213
+ priority: nn.High
45214
45214
  },
45215
45215
  config: {
45216
45216
  preferWorkers: !0,
@@ -45241,7 +45241,7 @@ WA.add(xd);
45241
45241
  const Wz = ".svg", Jz = "image/svg+xml", Zz = {
45242
45242
  extension: {
45243
45243
  type: OA.LoadParser,
45244
- priority: tn.High
45244
+ priority: nn.High
45245
45245
  },
45246
45246
  name: "loadSVG",
45247
45247
  test(n) {
@@ -45274,7 +45274,7 @@ const Xz = [".mp4", ".m4v", ".webm", ".ogv"], Qz = [
45274
45274
  name: "loadVideo",
45275
45275
  extension: {
45276
45276
  type: OA.LoadParser,
45277
- priority: tn.High
45277
+ priority: nn.High
45278
45278
  },
45279
45279
  config: {
45280
45280
  defaultAutoPlay: !0,
@@ -45450,7 +45450,7 @@ class $z {
45450
45450
  */
45451
45451
  getAlias(A) {
45452
45452
  const { alias: e, name: t, src: i, srcs: r } = A;
45453
- return Ji(
45453
+ return Zi(
45454
45454
  e || t || i || r,
45455
45455
  (s) => typeof s == "string" ? s : Array.isArray(s) ? s.map((o) => (o == null ? void 0 : o.src) ?? (o == null ? void 0 : o.srcs) ?? o) : s != null && s.src || s != null && s.srcs ? s.src ?? s.srcs : s,
45456
45456
  !0
@@ -45527,10 +45527,10 @@ Please use Assets.add({ alias, src, data, format, loadParser }) instead.`), s.pu
45527
45527
  let o;
45528
45528
  o = (a) => {
45529
45529
  this.hasKey(a) && console.warn(`[Resolver] already has key: ${a} overwriting`);
45530
- }, Ji(s).forEach((a) => {
45530
+ }, Zi(s).forEach((a) => {
45531
45531
  const { src: l, srcs: u } = a;
45532
45532
  let { data: c, format: h, loadParser: f } = a;
45533
- const p = Ji(l || u).map((g) => typeof g == "string" ? bz(g) : Array.isArray(g) ? g : [g]), m = this.getAlias(a);
45533
+ const p = Zi(l || u).map((g) => typeof g == "string" ? bz(g) : Array.isArray(g) ? g : [g]), m = this.getAlias(a);
45534
45534
  Array.isArray(m) ? m.forEach(o) : o(m);
45535
45535
  const d = [];
45536
45536
  p.forEach((g) => {
@@ -45608,7 +45608,7 @@ Please use Assets.add({ alias, src, data, format, loadParser }) instead.`), s.pu
45608
45608
  */
45609
45609
  resolveBundle(A) {
45610
45610
  const e = Yf(A);
45611
- A = Ji(A);
45611
+ A = Zi(A);
45612
45612
  const t = {};
45613
45613
  return A.forEach((i) => {
45614
45614
  const r = this._bundles[i];
@@ -45639,7 +45639,7 @@ Please use Assets.add({ alias, src, data, format, loadParser }) instead.`), s.pu
45639
45639
  }
45640
45640
  resolve(A) {
45641
45641
  const e = Yf(A);
45642
- A = Ji(A);
45642
+ A = Zi(A);
45643
45643
  const t = {};
45644
45644
  return A.forEach((i) => {
45645
45645
  if (!this._resolverHash[i])
@@ -45740,7 +45740,7 @@ class A9 {
45740
45740
  }
45741
45741
  async load(A, e) {
45742
45742
  this._initialized || await this.init();
45743
- const t = Yf(A), i = Ji(A).map((o) => {
45743
+ const t = Yf(A), i = Zi(A).map((o) => {
45744
45744
  if (typeof o != "string") {
45745
45745
  const a = this.resolver.getAlias(o);
45746
45746
  return a.some((l) => !this.resolver.hasKey(l)) && this.add(o), Array.isArray(a) ? a[0] : a;
@@ -45945,7 +45945,7 @@ class A9 {
45945
45945
  */
45946
45946
  async unload(A) {
45947
45947
  this._initialized || await this.init();
45948
- const e = Ji(A).map((i) => typeof i != "string" ? i.src : i), t = this.resolver.resolve(e);
45948
+ const e = Zi(A).map((i) => typeof i != "string" ? i.src : i), t = this.resolver.resolve(e);
45949
45949
  await this._unloadFromResolved(t);
45950
45950
  }
45951
45951
  /**
@@ -45970,7 +45970,7 @@ class A9 {
45970
45970
  * @param bundleIds - the bundle id or ids to unload
45971
45971
  */
45972
45972
  async unloadBundle(A) {
45973
- this._initialized || await this.init(), A = Ji(A);
45973
+ this._initialized || await this.init(), A = Zi(A);
45974
45974
  const e = this.resolver.resolveBundle(A), t = Object.keys(e).map((i) => this._unloadFromResolved(e[i]));
45975
45975
  await Promise.all(t);
45976
45976
  }
@@ -46188,18 +46188,18 @@ const Hf = {
46188
46188
  36494: 1,
46189
46189
  36495: 1
46190
46190
  };
46191
- let un, na;
46191
+ let fn, na;
46192
46192
  function yx() {
46193
46193
  na = {
46194
- s3tc: un.getExtension("WEBGL_compressed_texture_s3tc"),
46195
- s3tc_sRGB: un.getExtension("WEBGL_compressed_texture_s3tc_srgb"),
46194
+ s3tc: fn.getExtension("WEBGL_compressed_texture_s3tc"),
46195
+ s3tc_sRGB: fn.getExtension("WEBGL_compressed_texture_s3tc_srgb"),
46196
46196
  /* eslint-disable-line camelcase */
46197
- etc: un.getExtension("WEBGL_compressed_texture_etc"),
46198
- etc1: un.getExtension("WEBGL_compressed_texture_etc1"),
46199
- pvrtc: un.getExtension("WEBGL_compressed_texture_pvrtc") || un.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),
46200
- atc: un.getExtension("WEBGL_compressed_texture_atc"),
46201
- astc: un.getExtension("WEBGL_compressed_texture_astc"),
46202
- bptc: un.getExtension("EXT_texture_compression_bptc")
46197
+ etc: fn.getExtension("WEBGL_compressed_texture_etc"),
46198
+ etc1: fn.getExtension("WEBGL_compressed_texture_etc1"),
46199
+ pvrtc: fn.getExtension("WEBGL_compressed_texture_pvrtc") || fn.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),
46200
+ atc: fn.getExtension("WEBGL_compressed_texture_atc"),
46201
+ astc: fn.getExtension("WEBGL_compressed_texture_astc"),
46202
+ bptc: fn.getExtension("EXT_texture_compression_bptc")
46203
46203
  };
46204
46204
  }
46205
46205
  const c9 = {
@@ -46209,7 +46209,7 @@ const c9 = {
46209
46209
  },
46210
46210
  test: async () => {
46211
46211
  const n = jA.ADAPTER.createCanvas().getContext("webgl");
46212
- return n ? (un = n, !0) : (console.warn("WebGL not available for compressed textures."), !1);
46212
+ return n ? (fn = n, !0) : (console.warn("WebGL not available for compressed textures."), !1);
46213
46213
  },
46214
46214
  add: async (n) => {
46215
46215
  na || yx();
@@ -46604,7 +46604,7 @@ function N9(n, A, e) {
46604
46604
  const B9 = {
46605
46605
  extension: {
46606
46606
  type: OA.LoadParser,
46607
- priority: tn.High
46607
+ priority: nn.High
46608
46608
  },
46609
46609
  name: "loadDDS",
46610
46610
  test(n) {
@@ -46613,7 +46613,7 @@ const B9 = {
46613
46613
  async load(n, A, e) {
46614
46614
  const t = await (await jA.ADAPTER.fetch(n)).arrayBuffer(), i = P9(t).map((r) => {
46615
46615
  const s = new se(r, {
46616
- mipmap: bn.OFF,
46616
+ mipmap: Sn.OFF,
46617
46617
  alphaMode: Qt.NO_PREMULTIPLIED_ALPHA,
46618
46618
  resolution: nr(n),
46619
46619
  ...A.data
@@ -46630,7 +46630,7 @@ WA.add(B9);
46630
46630
  const z9 = {
46631
46631
  extension: {
46632
46632
  type: OA.LoadParser,
46633
- priority: tn.High
46633
+ priority: nn.High
46634
46634
  },
46635
46635
  name: "loadKTX",
46636
46636
  test(n) {
@@ -46638,7 +46638,7 @@ const z9 = {
46638
46638
  },
46639
46639
  async load(n, A, e) {
46640
46640
  const t = await (await jA.ADAPTER.fetch(n)).arrayBuffer(), { compressed: i, uncompressed: r, kvData: s } = L9(n, t), o = i ?? r, a = {
46641
- mipmap: bn.OFF,
46641
+ mipmap: Sn.OFF,
46642
46642
  alphaMode: Qt.NO_PREMULTIPLIED_ALPHA,
46643
46643
  resolution: nr(n),
46644
46644
  ...A.data
@@ -47681,12 +47681,12 @@ const Ro = new VA(), Y3 = class H3 extends Zb {
47681
47681
  this.drawCalls.length = 0;
47682
47682
  const e = this.colors, t = this.textureIds;
47683
47683
  let i = Mu.pop();
47684
- i || (i = new A0(), i.texArray = new n0()), i.texArray.count = 0, i.start = 0, i.size = 0, i.type = vn.TRIANGLES;
47685
- let r = 0, s = null, o = 0, a = !1, l = vn.TRIANGLES, u = 0;
47684
+ i || (i = new A0(), i.texArray = new n0()), i.texArray.count = 0, i.start = 0, i.size = 0, i.type = yn.TRIANGLES;
47685
+ let r = 0, s = null, o = 0, a = !1, l = yn.TRIANGLES, u = 0;
47686
47686
  this.drawCalls.push(i);
47687
47687
  for (let c = 0; c < this.batches.length; c++) {
47688
47688
  const h = this.batches[c], f = 8, p = h.style, m = p.texture.baseTexture;
47689
- a !== !!p.native && (a = !!p.native, l = a ? vn.LINES : vn.TRIANGLES, s = null, r = f, A++), s !== m && (s = m, m._batchEnabled !== A && (r === f && (A++, r = 0, i.size > 0 && (i = Mu.pop(), i || (i = new A0(), i.texArray = new n0()), this.drawCalls.push(i)), i.start = u, i.size = 0, i.texArray.count = 0, i.type = l), m.touched = 1, m._batchEnabled = A, m._batchLocation = r, m.wrapMode = Yr.REPEAT, i.texArray.elements[i.texArray.count++] = m, r++)), i.size += h.size, u += h.size, o = m._batchLocation, this.addColors(e, p.color, p.alpha, h.attribSize, h.attribStart), this.addTextureIds(t, o, h.attribSize, h.attribStart);
47689
+ a !== !!p.native && (a = !!p.native, l = a ? yn.LINES : yn.TRIANGLES, s = null, r = f, A++), s !== m && (s = m, m._batchEnabled !== A && (r === f && (A++, r = 0, i.size > 0 && (i = Mu.pop(), i || (i = new A0(), i.texArray = new n0()), this.drawCalls.push(i)), i.start = u, i.size = 0, i.texArray.count = 0, i.type = l), m.touched = 1, m._batchEnabled = A, m._batchLocation = r, m.wrapMode = Yr.REPEAT, i.texArray.elements[i.texArray.count++] = m, r++)), i.size += h.size, u += h.size, o = m._batchLocation, this.addColors(e, p.color, p.alpha, h.attribSize, h.attribStart), this.addTextureIds(t, o, h.attribSize, h.attribStart);
47690
47690
  }
47691
47691
  se._globalBatch = A, this.packAttributes();
47692
47692
  }
@@ -47846,7 +47846,7 @@ const Sg = {}, I0 = class cf extends Oi {
47846
47846
  * @param geometry - Geometry to use, if omitted will create a new GraphicsGeometry instance.
47847
47847
  */
47848
47848
  constructor(A = null) {
47849
- super(), this.shader = null, this.pluginName = "batch", this.currentPath = null, this.batches = [], this.batchTint = -1, this.batchDirty = -1, this.vertexData = null, this._fillStyle = new Id(), this._lineStyle = new Fv(), this._matrix = null, this._holeMode = !1, this.state = Pn.for2d(), this._geometry = A || new U9(), this._geometry.refCount++, this._transformID = -1, this._tintColor = new qe(16777215), this.blendMode = $A.NORMAL;
47849
+ super(), this.shader = null, this.pluginName = "batch", this.currentPath = null, this.batches = [], this.batchTint = -1, this.batchDirty = -1, this.vertexData = null, this._fillStyle = new Id(), this._lineStyle = new Fv(), this._matrix = null, this._holeMode = !1, this.state = Tn.for2d(), this._geometry = A || new U9(), this._geometry.refCount++, this._transformID = -1, this._tintColor = new qe(16777215), this.blendMode = $A.NORMAL;
47850
47850
  }
47851
47851
  /**
47852
47852
  * Includes vertex positions, face indices, normals, colors, UVs, and
@@ -48283,9 +48283,9 @@ const Sg = {}, I0 = class cf extends Oi {
48283
48283
  const s = {
48284
48284
  tint: new Float32Array([1, 1, 1, 1]),
48285
48285
  translationMatrix: new Be(),
48286
- default: $i.from({ uSamplers: r }, !0)
48286
+ default: An.from({ uSamplers: r }, !0)
48287
48287
  }, o = A.plugins[t]._shader.program;
48288
- Sg[t] = new Cn(o, s);
48288
+ Sg[t] = new xn(o, s);
48289
48289
  }
48290
48290
  e = Sg[t];
48291
48291
  }
@@ -48417,8 +48417,8 @@ const _g = new VA(), Px = new Os(), W3 = class J3 extends Oi {
48417
48417
  * if no state is provided, uses {@link PIXI.State.for2d} to create a 2D state for PixiJS.
48418
48418
  * @param drawMode - The drawMode, can be any of the {@link PIXI.DRAW_MODES} constants.
48419
48419
  */
48420
- constructor(A, e, t, i = vn.TRIANGLES) {
48421
- super(), this.geometry = A, this.shader = e, this.state = t || Pn.for2d(), this.drawMode = i, this.start = 0, this.size = 0, this.uvs = null, this.indices = null, this.vertexData = new Float32Array(1), this.vertexDirty = -1, this._transformID = -1, this._roundPixels = jA.ROUND_PIXELS, this.batchUvs = null;
48420
+ constructor(A, e, t, i = yn.TRIANGLES) {
48421
+ super(), this.geometry = A, this.shader = e, this.state = t || Tn.for2d(), this.drawMode = i, this.start = 0, this.size = 0, this.uvs = null, this.indices = null, this.vertexData = new Float32Array(1), this.vertexDirty = -1, this._transformID = -1, this._roundPixels = jA.ROUND_PIXELS, this.batchUvs = null;
48422
48422
  }
48423
48423
  /**
48424
48424
  * Includes vertex positions, face indices, normals, colors, UVs, and
@@ -48510,7 +48510,7 @@ const _g = new VA(), Px = new Os(), W3 = class J3 extends Oi {
48510
48510
  */
48511
48511
  _render(A) {
48512
48512
  const e = this.geometry.buffers[0].data;
48513
- this.shader.batchable && this.drawMode === vn.TRIANGLES && e.length < J3.BATCHABLE_SIZE * 2 ? this._renderToBatch(A) : this._renderDefault(A);
48513
+ this.shader.batchable && this.drawMode === yn.TRIANGLES && e.length < J3.BATCHABLE_SIZE * 2 ? this._renderToBatch(A) : this._renderDefault(A);
48514
48514
  }
48515
48515
  /**
48516
48516
  * Standard non-batching way of rendering.
@@ -48628,7 +48628,7 @@ void main(void)
48628
48628
  vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;
48629
48629
  }
48630
48630
  `;
48631
- class Dx extends Cn {
48631
+ class Dx extends xn {
48632
48632
  /**
48633
48633
  * @param uSampler - Texture that material uses to render.
48634
48634
  * @param options - Additional options
@@ -48880,7 +48880,7 @@ class Z3 extends Cd {
48880
48880
  uploadFunction: this.uploadTint,
48881
48881
  offset: 0
48882
48882
  }
48883
- ], this.shader = Cn.from(V9, Q9, {}), this.state = Pn.for2d();
48883
+ ], this.shader = xn.from(V9, Q9, {}), this.state = Tn.for2d();
48884
48884
  }
48885
48885
  /**
48886
48886
  * Renders the particle container object.
@@ -49018,7 +49018,7 @@ var bd = /* @__PURE__ */ ((n) => (n[n.LINEAR_VERTICAL = 0] = "LINEAR_VERTICAL",
49018
49018
  const Pu = {
49019
49019
  // TextMetrics requires getImageData readback for measuring fonts.
49020
49020
  willReadFrequently: !0
49021
- }, fn = class JA {
49021
+ }, dn = class JA {
49022
49022
  /**
49023
49023
  * Checking that we can use modern canvas 2D API.
49024
49024
  *
@@ -49367,10 +49367,10 @@ const Pu = {
49367
49367
  return JA.__context || (JA.__context = JA._canvas.getContext("2d", Pu)), JA.__context;
49368
49368
  }
49369
49369
  };
49370
- fn.METRICS_STRING = "|ÉqÅ", /** Baseline symbol for calculate font metrics. */
49371
- fn.BASELINE_SYMBOL = "M", /** Baseline multiplier for calculate font metrics. */
49372
- fn.BASELINE_MULTIPLIER = 1.4, /** Height multiplier for setting height of canvas to calculate font metrics. */
49373
- fn.HEIGHT_MULTIPLIER = 2, /**
49370
+ dn.METRICS_STRING = "|ÉqÅ", /** Baseline symbol for calculate font metrics. */
49371
+ dn.BASELINE_SYMBOL = "M", /** Baseline multiplier for calculate font metrics. */
49372
+ dn.BASELINE_MULTIPLIER = 1.4, /** Height multiplier for setting height of canvas to calculate font metrics. */
49373
+ dn.HEIGHT_MULTIPLIER = 2, /**
49374
49374
  * A Unicode "character", or "grapheme cluster", can be composed of multiple Unicode code points,
49375
49375
  * such as letters with diacritical marks (e.g. `'\u0065\u0301'`, letter e with acute)
49376
49376
  * or emojis with modifiers (e.g. `'\uD83E\uDDD1\u200D\uD83D\uDCBB'`, technologist).
@@ -49381,7 +49381,7 @@ fn.HEIGHT_MULTIPLIER = 2, /**
49381
49381
  * or [graphemer]{@link https://www.npmjs.com/package/graphemer} to create a polyfill. Since these libraries can be
49382
49382
  * relatively large in size to handle various Unicode grapheme clusters properly, PixiJS won't use them directly.
49383
49383
  */
49384
- fn.graphemeSegmenter = (() => {
49384
+ dn.graphemeSegmenter = (() => {
49385
49385
  if (typeof (Intl == null ? void 0 : Intl.Segmenter) == "function") {
49386
49386
  const n = new Intl.Segmenter();
49387
49387
  return (A) => [...n.segment(A)].map((e) => e.segment);
@@ -49393,15 +49393,15 @@ fn.graphemeSegmenter = (() => {
49393
49393
  * each character. However, this Chrome API is experimental and may not serve all cases yet.
49394
49394
  * @see PIXI.TextMetrics.experimentalLetterSpacingSupported
49395
49395
  */
49396
- fn.experimentalLetterSpacing = !1, /** Cache of {@see PIXI.TextMetrics.FontMetrics} objects. */
49397
- fn._fonts = {}, /** Cache of new line chars. */
49398
- fn._newlines = [
49396
+ dn.experimentalLetterSpacing = !1, /** Cache of {@see PIXI.TextMetrics.FontMetrics} objects. */
49397
+ dn._fonts = {}, /** Cache of new line chars. */
49398
+ dn._newlines = [
49399
49399
  10,
49400
49400
  // line feed
49401
49401
  13
49402
49402
  // carriage return
49403
49403
  ], /** Cache of breaking spaces. */
49404
- fn._breakingSpaces = [
49404
+ dn._breakingSpaces = [
49405
49405
  9,
49406
49406
  // character tabulation
49407
49407
  32,
@@ -49431,7 +49431,7 @@ fn._breakingSpaces = [
49431
49431
  12288
49432
49432
  // ideographic space
49433
49433
  ];
49434
- let Er = fn;
49434
+ let Er = dn;
49435
49435
  const $9 = [
49436
49436
  "serif",
49437
49437
  "sans-serif",
@@ -50470,12 +50470,12 @@ class iS extends Cd {
50470
50470
  * @param {PIXI.Renderer} renderer - The renderer this tiling awesomeness works for.
50471
50471
  */
50472
50472
  constructor(A) {
50473
- super(A), A.runners.contextChange.add(this), this.quad = new r3(), this.state = Pn.for2d();
50473
+ super(A), A.runners.contextChange.add(this), this.quad = new r3(), this.state = Tn.for2d();
50474
50474
  }
50475
50475
  /** Creates shaders when context is initialized. */
50476
50476
  contextChange() {
50477
50477
  const A = this.renderer, e = { globals: A.globalUniforms };
50478
- this.simpleShader = Cn.from(Lx, pR, e), this.shader = A.context.webGLVersion > 1 ? Cn.from(fR, uR, e) : Cn.from(Lx, dR, e);
50478
+ this.simpleShader = xn.from(Lx, pR, e), this.shader = A.context.webGLVersion > 1 ? xn.from(fR, uR, e) : xn.from(Lx, dR, e);
50479
50479
  }
50480
50480
  /**
50481
50481
  * @param {PIXI.TilingSprite} ts - tilingSprite to be rendered
@@ -50669,7 +50669,7 @@ const mR = {
50669
50669
  name: "spritesheetLoader",
50670
50670
  extension: {
50671
50671
  type: OA.LoadParser,
50672
- priority: tn.Normal
50672
+ priority: nn.Normal
50673
50673
  },
50674
50674
  async testParse(n, A) {
50675
50675
  return at.extname(A.src).toLowerCase() === ".json" && !!n.frames;
@@ -50958,7 +50958,7 @@ function CR(n) {
50958
50958
  throw new Error("[BitmapFont]: Empty set when resolving characters.");
50959
50959
  return A;
50960
50960
  }
50961
- const Mr = class dn {
50961
+ const Mr = class pn {
50962
50962
  /**
50963
50963
  * @param data
50964
50964
  * @param textures
@@ -50971,7 +50971,7 @@ const Mr = class dn {
50971
50971
  this._ownsTextures = t, this.font = i.face, this.size = i.size, this.lineHeight = r.lineHeight / a, this.chars = {}, this.pageTextures = l;
50972
50972
  for (let c = 0; c < A.page.length; c++) {
50973
50973
  const { id: h, file: f } = A.page[c];
50974
- l[h] = e instanceof Array ? e[c] : e[f], o != null && o.fieldType && o.fieldType !== "none" && (l[h].baseTexture.alphaMode = Qt.NO_PREMULTIPLIED_ALPHA, l[h].baseTexture.mipmap = bn.OFF);
50974
+ l[h] = e instanceof Array ? e[c] : e[f], o != null && o.fieldType && o.fieldType !== "none" && (l[h].baseTexture.alphaMode = Qt.NO_PREMULTIPLIED_ALPHA, l[h].baseTexture.mipmap = Sn.OFF);
50975
50975
  }
50976
50976
  for (let c = 0; c < A.char.length; c++) {
50977
50977
  const { id: h, page: f } = A.char[c];
@@ -51031,18 +51031,18 @@ const Mr = class dn {
51031
51031
  i = s.parse(A);
51032
51032
  }
51033
51033
  e instanceof GA && (e = [e]);
51034
- const r = new dn(i, e, t);
51035
- return dn.available[r.font] = r, r;
51034
+ const r = new pn(i, e, t);
51035
+ return pn.available[r.font] = r, r;
51036
51036
  }
51037
51037
  /**
51038
51038
  * Remove bitmap font by name.
51039
51039
  * @param name - Name of the font to uninstall.
51040
51040
  */
51041
51041
  static uninstall(A) {
51042
- const e = dn.available[A];
51042
+ const e = pn.available[A];
51043
51043
  if (!e)
51044
51044
  throw new Error(`No font found named '${A}'`);
51045
- e.destroy(), delete dn.available[A];
51045
+ e.destroy(), delete pn.available[A];
51046
51046
  }
51047
51047
  /**
51048
51048
  * Generates a bitmap-font for the given style and character set. This does not support
@@ -51091,7 +51091,7 @@ const Mr = class dn {
51091
51091
  textureWidth: o,
51092
51092
  textureHeight: a,
51093
51093
  ...l
51094
- } = Object.assign({}, dn.defaultOptions, t), u = CR(i), c = e instanceof Zr ? e : new Zr(e), h = o, f = new Jf();
51094
+ } = Object.assign({}, pn.defaultOptions, t), u = CR(i), c = e instanceof Zr ? e : new Zr(e), h = o, f = new Jf();
51095
51095
  f.info[0] = {
51096
51096
  face: c.fontFamily,
51097
51097
  size: c.fontSize
@@ -51144,8 +51144,8 @@ const Mr = class dn {
51144
51144
  });
51145
51145
  }
51146
51146
  }
51147
- const C = new dn(f, w, !0);
51148
- return dn.available[A] !== void 0 && dn.uninstall(A), dn.available[A] = C, C;
51147
+ const C = new pn(f, w, !0);
51148
+ return pn.available[A] !== void 0 && pn.uninstall(A), pn.available[A] = C, C;
51149
51149
  }
51150
51150
  };
51151
51151
  Mr.ALPHA = [["a", "z"], ["A", "Z"], " "], /**
@@ -51549,7 +51549,7 @@ bR.styleDefaults = {
51549
51549
  const SR = [".xml", ".fnt"], _R = {
51550
51550
  extension: {
51551
51551
  type: OA.LoadParser,
51552
- priority: tn.Normal
51552
+ priority: nn.Normal
51553
51553
  },
51554
51554
  name: "loadBitmapFont",
51555
51555
  test(n) {
@@ -53625,7 +53625,7 @@ let zR = class {
53625
53625
  this.name = pe.KHR_MATERIALS_UNLIT;
53626
53626
  }
53627
53627
  getMaterialType() {
53628
- return Xi;
53628
+ return Qi;
53629
53629
  }
53630
53630
  extendParams(A, e, t) {
53631
53631
  const i = [];
@@ -53657,7 +53657,7 @@ let zR = class {
53657
53657
  }
53658
53658
  getMaterialType(A) {
53659
53659
  const t = this.parser.json.materials[A];
53660
- return !t.extensions || !t.extensions[this.name] ? null : _n;
53660
+ return !t.extensions || !t.extensions[this.name] ? null : Mn;
53661
53661
  }
53662
53662
  extendMaterialParams(A, e) {
53663
53663
  const t = this.parser, i = t.json.materials[A];
@@ -53676,7 +53676,7 @@ let zR = class {
53676
53676
  }
53677
53677
  getMaterialType(A) {
53678
53678
  const t = this.parser.json.materials[A];
53679
- return !t.extensions || !t.extensions[this.name] ? null : _n;
53679
+ return !t.extensions || !t.extensions[this.name] ? null : Mn;
53680
53680
  }
53681
53681
  extendMaterialParams(A, e) {
53682
53682
  const i = this.parser.json.materials[A];
@@ -53691,7 +53691,7 @@ let zR = class {
53691
53691
  }
53692
53692
  getMaterialType(A) {
53693
53693
  const t = this.parser.json.materials[A];
53694
- return !t.extensions || !t.extensions[this.name] ? null : _n;
53694
+ return !t.extensions || !t.extensions[this.name] ? null : Mn;
53695
53695
  }
53696
53696
  extendMaterialParams(A, e) {
53697
53697
  const t = this.parser, i = t.json.materials[A];
@@ -53706,7 +53706,7 @@ let zR = class {
53706
53706
  }
53707
53707
  getMaterialType(A) {
53708
53708
  const t = this.parser.json.materials[A];
53709
- return !t.extensions || !t.extensions[this.name] ? null : _n;
53709
+ return !t.extensions || !t.extensions[this.name] ? null : Mn;
53710
53710
  }
53711
53711
  extendMaterialParams(A, e) {
53712
53712
  const t = this.parser, i = t.json.materials[A];
@@ -53727,7 +53727,7 @@ let zR = class {
53727
53727
  }
53728
53728
  getMaterialType(A) {
53729
53729
  const t = this.parser.json.materials[A];
53730
- return !t.extensions || !t.extensions[this.name] ? null : _n;
53730
+ return !t.extensions || !t.extensions[this.name] ? null : Mn;
53731
53731
  }
53732
53732
  extendMaterialParams(A, e) {
53733
53733
  const t = this.parser, i = t.json.materials[A];
@@ -53742,7 +53742,7 @@ let zR = class {
53742
53742
  }
53743
53743
  getMaterialType(A) {
53744
53744
  const t = this.parser.json.materials[A];
53745
- return !t.extensions || !t.extensions[this.name] ? null : _n;
53745
+ return !t.extensions || !t.extensions[this.name] ? null : Mn;
53746
53746
  }
53747
53747
  extendMaterialParams(A, e) {
53748
53748
  const t = this.parser, i = t.json.materials[A];
@@ -53759,7 +53759,7 @@ let zR = class {
53759
53759
  }
53760
53760
  getMaterialType(A) {
53761
53761
  const t = this.parser.json.materials[A];
53762
- return !t.extensions || !t.extensions[this.name] ? null : _n;
53762
+ return !t.extensions || !t.extensions[this.name] ? null : Mn;
53763
53763
  }
53764
53764
  extendMaterialParams(A, e) {
53765
53765
  const i = this.parser.json.materials[A];
@@ -53774,7 +53774,7 @@ let zR = class {
53774
53774
  }
53775
53775
  getMaterialType(A) {
53776
53776
  const t = this.parser.json.materials[A];
53777
- return !t.extensions || !t.extensions[this.name] ? null : _n;
53777
+ return !t.extensions || !t.extensions[this.name] ? null : Mn;
53778
53778
  }
53779
53779
  extendMaterialParams(A, e) {
53780
53780
  const t = this.parser, i = t.json.materials[A];
@@ -53791,7 +53791,7 @@ let zR = class {
53791
53791
  }
53792
53792
  getMaterialType(A) {
53793
53793
  const t = this.parser.json.materials[A];
53794
- return !t.extensions || !t.extensions[this.name] ? null : _n;
53794
+ return !t.extensions || !t.extensions[this.name] ? null : Mn;
53795
53795
  }
53796
53796
  extendMaterialParams(A, e) {
53797
53797
  const t = this.parser, i = t.json.materials[A];
@@ -53806,7 +53806,7 @@ let zR = class {
53806
53806
  }
53807
53807
  getMaterialType(A) {
53808
53808
  const t = this.parser.json.materials[A];
53809
- return !t.extensions || !t.extensions[this.name] ? null : _n;
53809
+ return !t.extensions || !t.extensions[this.name] ? null : Mn;
53810
53810
  }
53811
53811
  extendMaterialParams(A, e) {
53812
53812
  const t = this.parser, i = t.json.materials[A];
@@ -54090,7 +54090,7 @@ const Ci = {
54090
54090
  9984: Z0,
54091
54091
  9985: rc,
54092
54092
  9986: ca,
54093
- 9987: Zi
54093
+ 9987: Xi
54094
54094
  }, Gx = {
54095
54095
  33071: ot,
54096
54096
  33648: bc,
@@ -54497,7 +54497,7 @@ class fk {
54497
54497
  const l = this.loadImageSource(e, t).then(function(u) {
54498
54498
  u.flipY = !1, u.name = s.name || o.name || "", u.name === "" && typeof o.uri == "string" && o.uri.startsWith("data:image/") === !1 && (u.name = o.uri);
54499
54499
  const h = (r.samplers || {})[s.sampler] || {};
54500
- return u.magFilter = Fx[h.magFilter] || we, u.minFilter = Fx[h.minFilter] || Zi, u.wrapS = Gx[h.wrapS] || jt, u.wrapT = Gx[h.wrapT] || jt, i.associations.set(u, { textures: A }), u;
54500
+ return u.magFilter = Fx[h.magFilter] || we, u.minFilter = Fx[h.minFilter] || Xi, u.wrapS = Gx[h.wrapS] || jt, u.wrapT = Gx[h.wrapT] || jt, i.associations.set(u, { textures: A }), u;
54501
54501
  }).catch(function() {
54502
54502
  return null;
54503
54503
  });
@@ -54569,11 +54569,11 @@ class fk {
54569
54569
  if (A.isPoints) {
54570
54570
  const o = "PointsMaterial:" + t.uuid;
54571
54571
  let a = this.cache.get(o);
54572
- a || (a = new z2(), yn.prototype.copy.call(a, t), a.color.copy(t.color), a.map = t.map, a.sizeAttenuation = !1, this.cache.add(o, a)), t = a;
54572
+ a || (a = new z2(), wn.prototype.copy.call(a, t), a.color.copy(t.color), a.map = t.map, a.sizeAttenuation = !1, this.cache.add(o, a)), t = a;
54573
54573
  } else if (A.isLine) {
54574
54574
  const o = "LineBasicMaterial:" + t.uuid;
54575
54575
  let a = this.cache.get(o);
54576
- a || (a = new ld(), yn.prototype.copy.call(a, t), a.color.copy(t.color), a.map = t.map, this.cache.add(o, a)), t = a;
54576
+ a || (a = new ld(), wn.prototype.copy.call(a, t), a.color.copy(t.color), a.map = t.map, this.cache.add(o, a)), t = a;
54577
54577
  }
54578
54578
  if (i || r || s) {
54579
54579
  let o = "ClonedMaterial:" + t.uuid + ":";
@@ -54612,15 +54612,15 @@ class fk {
54612
54612
  }
54613
54613
  r.doubleSided === !0 && (o.side = st);
54614
54614
  const u = r.alphaMode || Lg.OPAQUE;
54615
- if (u === Lg.BLEND ? (o.transparent = !0, o.depthWrite = !1) : (o.transparent = !1, u === Lg.MASK && (o.alphaTest = r.alphaCutoff !== void 0 ? r.alphaCutoff : 0.5)), r.normalTexture !== void 0 && s !== Xi && (l.push(e.assignTexture(o, "normalMap", r.normalTexture)), o.normalScale = new dA(1, 1), r.normalTexture.scale !== void 0)) {
54615
+ if (u === Lg.BLEND ? (o.transparent = !0, o.depthWrite = !1) : (o.transparent = !1, u === Lg.MASK && (o.alphaTest = r.alphaCutoff !== void 0 ? r.alphaCutoff : 0.5)), r.normalTexture !== void 0 && s !== Qi && (l.push(e.assignTexture(o, "normalMap", r.normalTexture)), o.normalScale = new dA(1, 1), r.normalTexture.scale !== void 0)) {
54616
54616
  const c = r.normalTexture.scale;
54617
54617
  o.normalScale.set(c, c);
54618
54618
  }
54619
- if (r.occlusionTexture !== void 0 && s !== Xi && (l.push(e.assignTexture(o, "aoMap", r.occlusionTexture)), r.occlusionTexture.strength !== void 0 && (o.aoMapIntensity = r.occlusionTexture.strength)), r.emissiveFactor !== void 0 && s !== Xi) {
54619
+ if (r.occlusionTexture !== void 0 && s !== Qi && (l.push(e.assignTexture(o, "aoMap", r.occlusionTexture)), r.occlusionTexture.strength !== void 0 && (o.aoMapIntensity = r.occlusionTexture.strength)), r.emissiveFactor !== void 0 && s !== Qi) {
54620
54620
  const c = r.emissiveFactor;
54621
54621
  o.emissive = new YA().setRGB(c[0], c[1], c[2], lt);
54622
54622
  }
54623
- return r.emissiveTexture !== void 0 && s !== Xi && l.push(e.assignTexture(o, "emissiveMap", r.emissiveTexture, ke)), Promise.all(l).then(function() {
54623
+ return r.emissiveTexture !== void 0 && s !== Qi && l.push(e.assignTexture(o, "emissiveMap", r.emissiveTexture, ke)), Promise.all(l).then(function() {
54624
54624
  const c = new s(o);
54625
54625
  return r.name && (c.name = r.name), Lr(c, r), e.associations.set(c, { materials: A }), r.extensions && ds(i, c, r), c;
54626
54626
  });
@@ -54851,7 +54851,7 @@ class fk {
54851
54851
  const l = (u) => {
54852
54852
  const c = /* @__PURE__ */ new Map();
54853
54853
  for (const [h, f] of i.associations)
54854
- (h instanceof yn || h instanceof ct) && c.set(h, f);
54854
+ (h instanceof wn || h instanceof ct) && c.set(h, f);
54855
54855
  return u.traverse((h) => {
54856
54856
  const f = i.associations.get(h);
54857
54857
  f != null && c.set(h, f);
@@ -55452,7 +55452,7 @@ ai[Z0] = fe.NEAREST_MIPMAP_NEAREST;
55452
55452
  ai[ca] = fe.NEAREST_MIPMAP_LINEAR;
55453
55453
  ai[we] = fe.LINEAR;
55454
55454
  ai[rc] = fe.LINEAR_MIPMAP_NEAREST;
55455
- ai[Zi] = fe.LINEAR_MIPMAP_LINEAR;
55455
+ ai[Xi] = fe.LINEAR_MIPMAP_LINEAR;
55456
55456
  ai[ot] = fe.CLAMP_TO_EDGE;
55457
55457
  ai[jt] = fe.REPEAT;
55458
55458
  ai[bc] = fe.MIRRORED_REPEAT;
@@ -56977,7 +56977,7 @@ oa.elementStyles = [], oa.shadowRootOptions = { mode: "open" }, oa[vc("elementPr
56977
56977
  */
56978
56978
  const yc = globalThis, Vf = yc.trustedTypes, iI = Vf ? Vf.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, pS = "$lit$", Nr = `lit$${(Math.random() + "").slice(9)}$`, gS = "?" + Nr, Xk = `<${gS}>`, Fs = document, Rc = () => Fs.createComment(""), kc = (n) => n === null || typeof n != "object" && typeof n != "function", mS = Array.isArray, Qk = (n) => mS(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", jg = `[
56979
56979
  \f\r]`, zl = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, nI = /-->/g, rI = />/g, ps = RegExp(`>|${jg}(?:([^\\s"'>=/]+)(${jg}*=${jg}*(?:[^
56980
- \f\r"'\`<>=]|("|')|))|$)`, "g"), sI = /'/g, oI = /"/g, vS = /^(?:script|style|textarea|title)$/i, yS = (n) => (A, ...e) => ({ _$litType$: n, strings: A, values: e }), Gn = yS(1), aI = yS(2), Ha = Symbol.for("lit-noChange"), wt = Symbol.for("lit-nothing"), lI = /* @__PURE__ */ new WeakMap(), Ts = Fs.createTreeWalker(Fs, 129);
56980
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), sI = /'/g, oI = /"/g, vS = /^(?:script|style|textarea|title)$/i, yS = (n) => (A, ...e) => ({ _$litType$: n, strings: A, values: e }), Wi = yS(1), aI = yS(2), Ha = Symbol.for("lit-noChange"), wt = Symbol.for("lit-nothing"), lI = /* @__PURE__ */ new WeakMap(), Ts = Fs.createTreeWalker(Fs, 129);
56981
56981
  function wS(n, A) {
56982
56982
  if (!Array.isArray(n) || !n.hasOwnProperty("raw"))
56983
56983
  throw Error("invalid template strings array");
@@ -57287,7 +57287,7 @@ const rj = { attribute: !0, type: String, converter: Qf, reflect: !1, hasChanged
57287
57287
  }
57288
57288
  throw Error("Unsupported decorator location: " + t);
57289
57289
  };
57290
- function nn(n) {
57290
+ function rn(n) {
57291
57291
  return (A, e) => typeof e == "object" ? sj(n, A, e) : ((t, i, r) => {
57292
57292
  const s = i.hasOwnProperty(r);
57293
57293
  return i.constructor.createProperty(r, s ? { ...t, wrapped: !0 } : t), s ? Object.getOwnPropertyDescriptor(i, r) : void 0;
@@ -57299,7 +57299,7 @@ function nn(n) {
57299
57299
  * SPDX-License-Identifier: BSD-3-Clause
57300
57300
  */
57301
57301
  function tl(n) {
57302
- return nn({ ...n, state: !0, attribute: !1 });
57302
+ return rn({ ...n, state: !0, attribute: !1 });
57303
57303
  }
57304
57304
  /**
57305
57305
  * @license
@@ -57361,7 +57361,7 @@ let Ot = class extends Ur {
57361
57361
  }
57362
57362
  render() {
57363
57363
  var n;
57364
- return Gn`
57364
+ return Wi`
57365
57365
  <div class="slot-item-container">
57366
57366
  <div class="main
57367
57367
  ${this.selected ? "selected" : ""}
@@ -57377,41 +57377,44 @@ let Ot = class extends Ur {
57377
57377
  <img alt="" src="${aj}">
57378
57378
  <div class="name">
57379
57379
  <div class="name-wrapper">${(n = this.slot) == null ? void 0 : n.name}</div>
57380
- <div class="functions-wrapper">
57381
- <div class="device-name ${!this.deviceName && "empty"}">${this.deviceName}</div>
57382
- <div class="functions">
57383
- ${this.functions.map((A) => Gn`
57384
- <div class="function"><span>${A}</span><i class="btn btn-remove"
57385
- @click=${() => {
57380
+
57381
+ ${this.allFunctions.length ? Wi`
57382
+ <div class="functions-wrapper">
57383
+ <div class="device-name ${!this.deviceName && "empty"}">${this.deviceName}</div>
57384
+ <div class="functions">
57385
+ ${this.functions.map((A) => Wi`
57386
+ <div class="function"><span>${A}</span><i class="btn btn-remove"
57387
+ @click=${() => {
57386
57388
  this.dispatchEvent(new CustomEvent("function-removed", { detail: A }));
57387
57389
  }}></i>
57388
- </div>
57389
- `)}
57390
- ${Gn`
57391
- <div class="btn btn-add" @click=${() => {
57390
+ </div>
57391
+ `)}
57392
+ ${Wi`
57393
+ <div class="btn btn-add" @click=${() => {
57392
57394
  this._showDialog = !this._showDialog;
57393
57395
  }}>+添加
57394
- </div>`}
57396
+ </div>`}
57395
57397
 
57396
- </div>
57397
- ${this.hasMoreFunctions ? Gn`
57398
- <div class="all-functions ${this._showDialog && "show"}">
57399
- <label>添加功能
57400
- <i class="btn btn-close" @click=${() => {
57398
+ </div>
57399
+ ${this.hasMoreFunctions ? Wi`
57400
+ <div class="all-functions ${this._showDialog && "show"}">
57401
+ <label>添加功能
57402
+ <i class="btn btn-close" @click=${() => {
57401
57403
  this._showDialog = !1;
57402
57404
  }}></i>
57403
- </label>
57404
- <div class="functions">
57405
- ${this.allFunctions.map((A) => this.functions.includes(A) ? Gn`` : Gn`
57406
- <div class="function">
57407
- <span>${A}</span>
57408
- <i class="btn btn-add" @click=${() => this.addFunction(A)}>+</i>
57409
- </div>
57410
- `)}
57411
- </div>
57412
- </div>` : Gn``}
57413
-
57414
- </div>
57405
+ </label>
57406
+ <div class="functions">
57407
+ ${this.allFunctions.map((A) => this.functions.includes(A) ? Wi`` : Wi`
57408
+ <div class="function">
57409
+ <span>${A}</span>
57410
+ <i class="btn btn-add" @click=${() => this.addFunction(A)}>+</i>
57411
+ </div>
57412
+ `)}
57413
+ </div>
57414
+ </div>` : Wi``}
57415
+ </div>
57416
+ ` : Wi``}
57417
+
57415
57418
  </div>
57416
57419
  </div>
57417
57420
  </div>
@@ -57426,34 +57429,34 @@ di([
57426
57429
  tl()
57427
57430
  ], Ot.prototype, "_showDialog", 2);
57428
57431
  di([
57429
- nn({ type: Boolean })
57432
+ rn({ type: Boolean })
57430
57433
  ], Ot.prototype, "selected", 2);
57431
57434
  di([
57432
- nn({ type: Boolean })
57435
+ rn({ type: Boolean })
57433
57436
  ], Ot.prototype, "hasError", 2);
57434
57437
  di([
57435
- nn({ type: Boolean })
57438
+ rn({ type: Boolean })
57436
57439
  ], Ot.prototype, "canInstall", 2);
57437
57440
  di([
57438
- nn({ type: Boolean })
57441
+ rn({ type: Boolean })
57439
57442
  ], Ot.prototype, "hide", 2);
57440
57443
  di([
57441
- nn({ type: Boolean })
57444
+ rn({ type: Boolean })
57442
57445
  ], Ot.prototype, "disable", 2);
57443
57446
  di([
57444
- nn({ type: Boolean })
57447
+ rn({ type: Boolean })
57445
57448
  ], Ot.prototype, "filled", 2);
57446
57449
  di([
57447
- nn({ type: Object })
57450
+ rn({ type: Object })
57448
57451
  ], Ot.prototype, "allFunctions", 2);
57449
57452
  di([
57450
- nn({ type: Object })
57453
+ rn({ type: Object })
57451
57454
  ], Ot.prototype, "functions", 2);
57452
57455
  di([
57453
- nn({ type: String })
57456
+ rn({ type: String })
57454
57457
  ], Ot.prototype, "deviceName", 2);
57455
57458
  di([
57456
- nn()
57459
+ rn()
57457
57460
  ], Ot.prototype, "slot", 2);
57458
57461
  Ot = di([
57459
57462
  Pd("slot-item")
@@ -58578,14 +58581,14 @@ function wj() {
58578
58581
  for (var At = [], ft = 0; ft < ne.length; ft++) {
58579
58582
  var qt = ne[ft];
58580
58583
  if (!qt._startsWithPDI || qt._startsWithPDI && !wA.has(qt._start)) {
58581
- for (var $t = [oe = qt], rn = void 0; oe && oe._endsWithIsolInit && (rn = wA.get(oe._end)) != null; )
58584
+ for (var $t = [oe = qt], sn = void 0; oe && oe._endsWithIsolInit && (sn = wA.get(oe._end)) != null; )
58582
58585
  for (var pi = ft + 1; pi < ne.length; pi++)
58583
- if (ne[pi]._start === rn) {
58586
+ if (ne[pi]._start === sn) {
58584
58587
  $t.push(oe = ne[pi]);
58585
58588
  break;
58586
58589
  }
58587
- for (var xt = [], Tn = 0; Tn < $t.length; Tn++)
58588
- for (var Xc = $t[Tn], z = Xc._start; z <= Xc._end; z++)
58590
+ for (var xt = [], Dn = 0; Dn < $t.length; Dn++)
58591
+ for (var Xc = $t[Dn], z = Xc._start; z <= Xc._end; z++)
58589
58592
  xt.push(z);
58590
58593
  for (var $ = uA[xt[0]], oA = xA.level, rA = xt[0] - 1; rA >= 0; rA--)
58591
58594
  if (!(F[rA] & a)) {
@@ -58622,10 +58625,10 @@ function wj() {
58622
58625
  }
58623
58626
  }
58624
58627
  if (eA.get(b))
58625
- for (var sn = 0; sn < bA.length; sn++) {
58626
- var Te = bA[sn];
58628
+ for (var on = 0; on < bA.length; on++) {
58629
+ var Te = bA[on];
58627
58630
  if (F[Te] & b)
58628
- for (var mi = sn - 1; mi >= -1; mi--) {
58631
+ for (var mi = on - 1; mi >= -1; mi--) {
58629
58632
  var sl = mi === -1 ? re : F[bA[mi]];
58630
58633
  if (sl & s) {
58631
58634
  sl === U && nA(Te, P);
@@ -58634,19 +58637,19 @@ function wj() {
58634
58637
  }
58635
58638
  }
58636
58639
  if (eA.get(U))
58637
- for (var Dn = 0; Dn < bA.length; Dn++) {
58638
- var Xs = bA[Dn];
58640
+ for (var En = 0; En < bA.length; En++) {
58641
+ var Xs = bA[En];
58639
58642
  F[Xs] & U && nA(Xs, _);
58640
58643
  }
58641
58644
  if (eA.get(I) || eA.get(M))
58642
58645
  for (var Ue = 1; Ue < bA.length - 1; Ue++) {
58643
58646
  var vi = bA[Ue];
58644
58647
  if (F[vi] & (I | M)) {
58645
- for (var on = 0, _t = 0, es = Ue - 1; es >= 0 && (on = F[bA[es]], !!(on & a)); es--)
58648
+ for (var an = 0, _t = 0, es = Ue - 1; es >= 0 && (an = F[bA[es]], !!(an & a)); es--)
58646
58649
  ;
58647
58650
  for (var ol = Ue + 1; ol < bA.length && (_t = F[bA[ol]], !!(_t & a)); ol++)
58648
58651
  ;
58649
- on === _t && (F[vi] === I ? on === b : on & (b | P)) && nA(vi, on);
58652
+ an === _t && (F[vi] === I ? an === b : an & (b | P)) && nA(vi, an);
58650
58653
  }
58651
58654
  }
58652
58655
  if (eA.get(b))
@@ -61104,12 +61107,12 @@ function Nj(n, A) {
61104
61107
  });
61105
61108
  const At = EA.x + nA, ft = EA.y + CA.baseline + uA;
61106
61109
  tA[NA * 2] = At, tA[NA * 2 + 1] = ft;
61107
- const qt = At + hA.xMin * ie, $t = ft + hA.yMin * ie, rn = At + hA.xMax * ie, pi = ft + hA.yMax * ie;
61108
- qt < AA[0] && (AA[0] = qt), $t < AA[1] && (AA[1] = $t), rn > AA[2] && (AA[2] = rn), pi > AA[3] && (AA[3] = pi), NA % U === 0 && (FA = { start: NA, end: NA, rect: [1 / 0, 1 / 0, -1 / 0, -1 / 0] }, TA.push(FA)), FA.end++;
61110
+ const qt = At + hA.xMin * ie, $t = ft + hA.yMin * ie, sn = At + hA.xMax * ie, pi = ft + hA.yMax * ie;
61111
+ qt < AA[0] && (AA[0] = qt), $t < AA[1] && (AA[1] = $t), sn > AA[2] && (AA[2] = sn), pi > AA[3] && (AA[3] = pi), NA % U === 0 && (FA = { start: NA, end: NA, rect: [1 / 0, 1 / 0, -1 / 0, -1 / 0] }, TA.push(FA)), FA.end++;
61109
61112
  const xt = FA.rect;
61110
- if (qt < xt[0] && (xt[0] = qt), $t < xt[1] && (xt[1] = $t), rn > xt[2] && (xt[2] = rn), pi > xt[3] && (xt[3] = pi), V[NA] = ne, J[NA] = Le, k) {
61111
- const Tn = NA * 3;
61112
- Y[Tn] = qA >> 16 & 255, Y[Tn + 1] = qA >> 8 & 255, Y[Tn + 2] = qA & 255;
61113
+ if (qt < xt[0] && (xt[0] = qt), $t < xt[1] && (xt[1] = $t), sn > xt[2] && (xt[2] = sn), pi > xt[3] && (xt[3] = pi), V[NA] = ne, J[NA] = Le, k) {
61114
+ const Dn = NA * 3;
61115
+ Y[Dn] = qA >> 16 & 255, Y[Dn + 1] = qA >> 8 & 255, Y[Dn + 2] = qA & 255;
61113
61116
  }
61114
61117
  }
61115
61118
  }
@@ -61772,7 +61775,7 @@ vTroikaGlyphColor = uTroikaUseGlyphColors ? aTroikaGlyphColor / 255.0 : diffuse;
61772
61775
  }
61773
61776
  }), A;
61774
61777
  }
61775
- const Zv = /* @__PURE__ */ new Xi({
61778
+ const Zv = /* @__PURE__ */ new Qi({
61776
61779
  color: 16777215,
61777
61780
  side: st,
61778
61781
  transparent: !0
@@ -62090,7 +62093,7 @@ class gf extends Se {
62090
62093
  }
62091
62094
  class OS extends Se {
62092
62095
  constructor(A, e) {
62093
- super(), this.radius = A, this._text = new lK(""), this._line = new gf(void 0, !1), this._box = new De(), this._box.geometry = new Pf(A, A + 3e-3, 128), this._box.material = new Xi({
62096
+ super(), this.radius = A, this._text = new lK(""), this._line = new gf(void 0, !1), this._box = new De(), this._box.geometry = new Pf(A, A + 3e-3, 128), this._box.material = new Qi({
62094
62097
  color: "#898989",
62095
62098
  side: st
62096
62099
  }), this.position.y = e, this._box.rotateX(-Math.PI / 2), this.add(this._box), this.add(this._line), this.add(this._text);
@@ -62296,7 +62299,7 @@ let jc = class extends Ur {
62296
62299
  super(), this.text = "", this.active = !1, this.text = (n * 1e3).toFixed(0), this.active = A;
62297
62300
  }
62298
62301
  render() {
62299
- return Gn`
62302
+ return Wi`
62300
62303
  <div class="pointer-container ${this.active && "active"}">
62301
62304
  <div class="point"></div>
62302
62305
  <div class="value">${this.text} mm</div>
@@ -62409,7 +62412,7 @@ class MI extends qS {
62409
62412
  opacity: 0.2,
62410
62413
  transparent: !0
62411
62414
  }));
62412
- const s = new cd(r, new Xi({
62415
+ const s = new cd(r, new Qi({
62413
62416
  color: "#22f"
62414
62417
  }));
62415
62418
  this._goods.add(s), (o = this._goodsContainer) == null || o.add(this._goods);
@@ -62933,7 +62936,7 @@ function kl(n) {
62933
62936
  const A = n[3] - n[0], e = n[4] - n[1], t = n[5] - n[2];
62934
62937
  return 2 * (A * e + e * t + t * A);
62935
62938
  }
62936
- const Fn = 32, PK = (n, A) => n.candidate - A.candidate, wr = new Array(Fn).fill().map(() => ({
62939
+ const Gn = 32, PK = (n, A) => n.candidate - A.candidate, wr = new Array(Gn).fill().map(() => ({
62937
62940
  count: 0,
62938
62941
  bounds: new Float32Array(6),
62939
62942
  rightCacheBounds: new Float32Array(6),
@@ -62951,8 +62954,8 @@ function TK(n, A, e, t, i, r) {
62951
62954
  let l = Jg * i;
62952
62955
  const u = t * 6, c = (t + i) * 6;
62953
62956
  for (let h = 0; h < 3; h++) {
62954
- const f = A[h], d = (A[h + 3] - f) / Fn;
62955
- if (i < Fn / 4) {
62957
+ const f = A[h], d = (A[h + 3] - f) / Gn;
62958
+ if (i < Gn / 4) {
62956
62959
  const g = [...wr];
62957
62960
  g.length = i;
62958
62961
  let y = 0;
@@ -62992,7 +62995,7 @@ function TK(n, A, e, t, i, r) {
62992
62995
  P < l && (s = h, l = P, o = C.candidate);
62993
62996
  }
62994
62997
  } else {
62995
- for (let v = 0; v < Fn; v++) {
62998
+ for (let v = 0; v < Gn; v++) {
62996
62999
  const w = wr[v];
62997
63000
  w.count = 0, w.candidate = f + d + v * d;
62998
63001
  const C = w.bounds;
@@ -63001,18 +63004,18 @@ function TK(n, A, e, t, i, r) {
63001
63004
  }
63002
63005
  for (let v = u; v < c; v += 6) {
63003
63006
  let S = ~~((e[v + 2 * h] - f) / d);
63004
- S >= Fn && (S = Fn - 1);
63007
+ S >= Gn && (S = Gn - 1);
63005
63008
  const x = wr[S];
63006
63009
  x.count++, qu(v, e, x.bounds);
63007
63010
  }
63008
- const g = wr[Fn - 1];
63011
+ const g = wr[Gn - 1];
63009
63012
  EI(g.bounds, g.rightCacheBounds);
63010
- for (let v = Fn - 2; v >= 0; v--) {
63013
+ for (let v = Gn - 2; v >= 0; v--) {
63011
63014
  const w = wr[v], C = wr[v + 1];
63012
63015
  LI(w.bounds, C.rightCacheBounds, w.rightCacheBounds);
63013
63016
  }
63014
63017
  let y = 0;
63015
- for (let v = 0; v < Fn - 1; v++) {
63018
+ for (let v = 0; v < Gn - 1; v++) {
63016
63019
  const w = wr[v], C = w.count, S = w.bounds, _ = wr[v + 1].rightCacheBounds;
63017
63020
  C !== 0 && (y === 0 ? EI(S, Nu) : LI(S, Nu, Nu)), y += C;
63018
63021
  let b = 0, I = 0;
@@ -63278,7 +63281,7 @@ const RK = function() {
63278
63281
  function Vg(n) {
63279
63282
  return Math.abs(n) < jK;
63280
63283
  }
63281
- class en extends Ze {
63284
+ class tn extends Ze {
63282
63285
  constructor(...A) {
63283
63286
  super(...A), this.isExtendedTriangle = !0, this.satAxes = new Array(4).fill().map(() => new O()), this.satBounds = new Array(4).fill().map(() => new or()), this.points = [this.a, this.b, this.c], this.sphere = new ui(), this.plane = new Jt(), this.needsUpdate = !0;
63284
63287
  }
@@ -63296,7 +63299,7 @@ class en extends Ze {
63296
63299
  f.subVectors(t, A), p.setFromPoints(f, i), this.sphere.setFromPoints(this.points), this.plane.setFromNormalAndCoplanarPoint(o, A), this.needsUpdate = !1;
63297
63300
  }
63298
63301
  }
63299
- en.prototype.closestPointToSegment = function() {
63302
+ tn.prototype.closestPointToSegment = function() {
63300
63303
  const n = new O(), A = new O(), e = new Pe();
63301
63304
  return function(i, r = null, s = null) {
63302
63305
  const { start: o, end: a } = i, l = this.points;
@@ -63308,8 +63311,8 @@ en.prototype.closestPointToSegment = function() {
63308
63311
  return this.closestPointToPoint(o, n), u = o.distanceToSquared(n), u < c && (c = u, r && r.copy(n), s && s.copy(o)), this.closestPointToPoint(a, n), u = a.distanceToSquared(n), u < c && (c = u, r && r.copy(n), s && s.copy(a)), Math.sqrt(c);
63309
63312
  };
63310
63313
  }();
63311
- en.prototype.intersectsTriangle = function() {
63312
- const n = new en(), A = new Array(3), e = new Array(3), t = new or(), i = new or(), r = new O(), s = new O(), o = new O(), a = new O(), l = new O(), u = new Pe(), c = new Pe(), h = new Pe(), f = new O();
63314
+ tn.prototype.intersectsTriangle = function() {
63315
+ const n = new tn(), A = new Array(3), e = new Array(3), t = new or(), i = new or(), r = new O(), s = new O(), o = new O(), a = new O(), l = new O(), u = new Pe(), c = new Pe(), h = new Pe(), f = new O();
63313
63316
  function p(m, d, g) {
63314
63317
  const y = m.points;
63315
63318
  let v = 0, w = -1;
@@ -63382,13 +63385,13 @@ en.prototype.intersectsTriangle = function() {
63382
63385
  }
63383
63386
  };
63384
63387
  }();
63385
- en.prototype.distanceToPoint = function() {
63388
+ tn.prototype.distanceToPoint = function() {
63386
63389
  const n = new O();
63387
63390
  return function(e) {
63388
63391
  return this.closestPointToPoint(e, n), e.distanceTo(n);
63389
63392
  };
63390
63393
  }();
63391
- en.prototype.distanceToTriangle = function() {
63394
+ tn.prototype.distanceToTriangle = function() {
63392
63395
  const n = new O(), A = new O(), e = ["a", "b", "c"], t = new Pe(), i = new Pe();
63393
63396
  return function(s, o = null, a = null) {
63394
63397
  const l = o || a ? t : null;
@@ -63460,7 +63463,7 @@ Yt.prototype.intersectsBox = function() {
63460
63463
  };
63461
63464
  }();
63462
63465
  Yt.prototype.intersectsTriangle = function() {
63463
- const n = new en(), A = new Array(3), e = new or(), t = new or(), i = new O();
63466
+ const n = new tn(), A = new Array(3), e = new or(), t = new or(), i = new O();
63464
63467
  return function(s) {
63465
63468
  this.needsUpdate && this.update(), s.isExtendedTriangle ? s.needsUpdate && s.update() : (n.copy(s), n.update(), s = n);
63466
63469
  const o = this.satBounds, a = this.satAxes;
@@ -63556,7 +63559,7 @@ class Vv {
63556
63559
  }
63557
63560
  class KK extends Vv {
63558
63561
  constructor() {
63559
- super(() => new en());
63562
+ super(() => new tn());
63560
63563
  }
63561
63564
  }
63562
63565
  const Ei = /* @__PURE__ */ new KK();
@@ -63840,7 +63843,7 @@ function K0(n, A, e, t, i, r) {
63840
63843
  return y && w ? y.distance <= w.distance ? y : w : y || w || null;
63841
63844
  }
63842
63845
  }
63843
- const Ku = /* @__PURE__ */ new ve(), Ho = /* @__PURE__ */ new en(), Uo = /* @__PURE__ */ new en(), Kl = /* @__PURE__ */ new zA(), BI = /* @__PURE__ */ new Yt(), Fu = /* @__PURE__ */ new Yt();
63846
+ const Ku = /* @__PURE__ */ new ve(), Ho = /* @__PURE__ */ new tn(), Uo = /* @__PURE__ */ new tn(), Kl = /* @__PURE__ */ new zA(), BI = /* @__PURE__ */ new Yt(), Fu = /* @__PURE__ */ new Yt();
63844
63847
  function iF(n, A, e, t) {
63845
63848
  ze.setBuffer(n._roots[A]);
63846
63849
  const i = F0(0, n, e, t);
@@ -64002,7 +64005,7 @@ function Y0(n, A, e, t, i, r) {
64002
64005
  return y && w ? y.distance <= w.distance ? y : w : y || w || null;
64003
64006
  }
64004
64007
  }
64005
- const Yu = /* @__PURE__ */ new ve(), Wo = /* @__PURE__ */ new en(), Jo = /* @__PURE__ */ new en(), Gl = /* @__PURE__ */ new zA(), zI = /* @__PURE__ */ new Yt(), Hu = /* @__PURE__ */ new Yt();
64008
+ const Yu = /* @__PURE__ */ new ve(), Wo = /* @__PURE__ */ new tn(), Jo = /* @__PURE__ */ new tn(), Gl = /* @__PURE__ */ new zA(), zI = /* @__PURE__ */ new Yt(), Hu = /* @__PURE__ */ new Yt();
64006
64009
  function fF(n, A, e, t) {
64007
64010
  ze.setBuffer(n._roots[A]);
64008
64011
  const i = H0(0, n, e, t);
@@ -64762,7 +64765,7 @@ function TF(n, A, e) {
64762
64765
  }
64763
64766
  return !1;
64764
64767
  }
64765
- const DF = 1e-16, HI = 1e-16, Xu = /* @__PURE__ */ new Jt(), Qo = /* @__PURE__ */ new Pe(), Qu = /* @__PURE__ */ new O(), sm = /* @__PURE__ */ new O(), Ir = /* @__PURE__ */ new hi(), wi = /* @__PURE__ */ new Pe(), kn = /* @__PURE__ */ new Pe(), br = /* @__PURE__ */ new O(), UI = /* @__PURE__ */ new O();
64768
+ const DF = 1e-16, HI = 1e-16, Xu = /* @__PURE__ */ new Jt(), Qo = /* @__PURE__ */ new Pe(), Qu = /* @__PURE__ */ new O(), sm = /* @__PURE__ */ new O(), Ir = /* @__PURE__ */ new hi(), wi = /* @__PURE__ */ new Pe(), jn = /* @__PURE__ */ new Pe(), br = /* @__PURE__ */ new O(), UI = /* @__PURE__ */ new O();
64766
64769
  function EF(n, A, e = new Pe()) {
64767
64770
  if (Ir.copy(A), Ir.a.y = 0, Ir.b.y = 0, Ir.c.y = 0, Ir.update(), wi.copy(n), wi.start.y = 0, wi.end.y = 0, Ir.getArea() <= DF)
64768
64771
  return null;
@@ -64773,15 +64776,15 @@ function EF(n, A, e = new Pe()) {
64773
64776
  const s = i[r], o = i[(r + 1) % 3];
64774
64777
  Qo.start.copy(s), Qo.end.copy(o);
64775
64778
  const a = Math.abs(Xu.distanceToPoint(Qo.start)) < HI, l = Math.abs(Xu.distanceToPoint(Qo.end)) < HI, u = Xu.intersectLine(Qo, Qu);
64776
- if ((u && !l || a) && (a && !u && Qu.copy(Qo.start), t === 0 ? kn.start.copy(Qu) : kn.end.copy(Qu), t++, t === 2))
64779
+ if ((u && !l || a) && (a && !u && Qu.copy(Qo.start), t === 0 ? jn.start.copy(Qu) : jn.end.copy(Qu), t++, t === 2))
64777
64780
  break;
64778
64781
  }
64779
64782
  if (t === 2) {
64780
- if (wi.delta(br).normalize(), kn.delta(UI).normalize(), br.dot(UI) < 0) {
64781
- let c = kn.start;
64782
- kn.start = kn.end, kn.end = c;
64783
+ if (wi.delta(br).normalize(), jn.delta(UI).normalize(), br.dot(UI) < 0) {
64784
+ let c = jn.start;
64785
+ jn.start = jn.end, jn.end = c;
64783
64786
  }
64784
- const r = 0, s = sm.subVectors(wi.end, wi.start).dot(br), o = sm.subVectors(kn.start, wi.start).dot(br), a = sm.subVectors(kn.end, wi.start).dot(br), l = s <= o, u = a <= r;
64787
+ const r = 0, s = sm.subVectors(wi.end, wi.start).dot(br), o = sm.subVectors(jn.start, wi.start).dot(br), a = sm.subVectors(jn.end, wi.start).dot(br), l = s <= o, u = a <= r;
64785
64788
  return l || u ? null : (n.at(
64786
64789
  Math.max(r, o) / wi.distance(),
64787
64790
  e.start
@@ -66745,7 +66748,7 @@ let Qr = class extends Ur {
66745
66748
  }
66746
66749
  render() {
66747
66750
  const { screenWidth: n, screenHeight: A } = this.viewport;
66748
- return Gn`
66751
+ return Wi`
66749
66752
  <div class="cropper-container">
66750
66753
  <div class="rect"></div>
66751
66754
  <div class="axios-x"></div>