ss-component-new 1.1.351 → 1.1.352

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.
Files changed (75) hide show
  1. package/dist/{array-CAEnL-YP.js → array-gcjWTp_a.js} +2 -2
  2. package/dist/{array-BmuucVbZ.cjs → array-pjQ830Q8.cjs} +1 -1
  3. package/dist/{cloneDeep-q_PLrSS1.js → cloneDeep-pmFZLX5o.js} +1 -1
  4. package/dist/{cloneDeep-Dq1Lx9Fd.cjs → cloneDeep-ttkDg5qK.cjs} +1 -1
  5. package/dist/{index-Cor4-iL0.cjs → index-9IZA-mai.cjs} +1 -1
  6. package/dist/{index-BKT_q8Fv.js → index-B4We-OhT.js} +518 -516
  7. package/dist/{index-QXVvuH-i.cjs → index-B4wpGMmH.cjs} +1 -1
  8. package/dist/{index-W9wxLtob.js → index-B5AFbZY0.js} +5 -5
  9. package/dist/{index-CdJlL4D3.js → index-BEq3UmJ3.js} +8 -8
  10. package/dist/{index-D7qtwETJ.js → index-BH80IN9L.js} +4 -4
  11. package/dist/{index-DWtuwx2p.js → index-BHVhJYmA.js} +7 -7
  12. package/dist/{index-DzhP71wP.cjs → index-BWNdmG_U.cjs} +1 -1
  13. package/dist/{index-DzQe_0Au.js → index-BZFIpX0p.js} +3 -3
  14. package/dist/{index-9TXo1YCY.cjs → index-BfeI6VGA.cjs} +1 -1
  15. package/dist/{index-CYMEon1a.js → index-BhQ5dPdz.js} +3 -3
  16. package/dist/{index-CGdBjw5Y.js → index-BiI2m9Kx.js} +6 -6
  17. package/dist/{index-C13W-lyy.cjs → index-Bo6h3yMY.cjs} +1 -1
  18. package/dist/{index-q-mE8F-2.js → index-Br2yHOBL.js} +1 -1
  19. package/dist/{index-CzZ_lxiW.js → index-BzlfB29P.js} +7 -7
  20. package/dist/{index-Dy_MdN_4.cjs → index-C2KcdY-_.cjs} +1 -1
  21. package/dist/{index-_hT8FHF7.cjs → index-C3P7WNOQ.cjs} +1 -1
  22. package/dist/{index-Bl3qHfca.js → index-C6-SLU_7.js} +1 -1
  23. package/dist/{index-DqYP1SqI.js → index-C6X2V_f6.js} +6 -6
  24. package/dist/{index-BY7jGieg.cjs → index-CHA3uqCY.cjs} +1 -1
  25. package/dist/{index-RjsPvkvm.js → index-CJ_3FLCK.js} +4 -4
  26. package/dist/{index-D-COF0w8.js → index-CSJrVGgZ.js} +4 -4
  27. package/dist/{index-Be0ha_yt.js → index-CVJVAITz.js} +1 -1
  28. package/dist/{index-Cg0GS5kK.js → index-CZC8F68E.js} +1 -1
  29. package/dist/{index-DdRVpVvS.cjs → index-CZNSpo8q.cjs} +1 -1
  30. package/dist/{index-Flk6-87P.js → index-CgMG-9M2.js} +5 -5
  31. package/dist/{index-BXugKDDw.cjs → index-CoUIcHIH.cjs} +1 -1
  32. package/dist/{index-sQjHwgKq.cjs → index-CvDVlzw0.cjs} +1 -1
  33. package/dist/{index-Ct4Nv2_1.cjs → index-CvRZ_qQE.cjs} +1 -1
  34. package/dist/{index-DIw5Lr2J.cjs → index-CxIoKdcL.cjs} +1 -1
  35. package/dist/{index-DaFRB8j5.cjs → index-D2wkU1C3.cjs} +1 -1
  36. package/dist/{index-C8F02-hJ.js → index-D8UsALSW.js} +3 -3
  37. package/dist/{index-1Glj70nP.cjs → index-DFN_FMaA.cjs} +1 -1
  38. package/dist/{index-BYSZNLfq.cjs → index-DKTGb3fy.cjs} +1 -1
  39. package/dist/{index-DuWDx-FZ.cjs → index-DLDPE48P.cjs} +1 -1
  40. package/dist/{index-iPFJJzXc.js → index-DNGp1AP_.js} +4 -4
  41. package/dist/{index-DIcT7p3H.js → index-DOZ8O8Wu.js} +3 -3
  42. package/dist/{index-BSNzY8B4.cjs → index-DTtUKUzK.cjs} +1 -1
  43. package/dist/{index-BnXVBZF5.js → index-DW3pnwwo.js} +8 -8
  44. package/dist/{index-BTN6x1dt.js → index-DYbyTt0L.js} +4 -4
  45. package/dist/{index-jKOrvO7-.cjs → index-DagApbBp.cjs} +1 -1
  46. package/dist/{index-C9cl0XoK.cjs → index-Db0aaqVL.cjs} +1 -1
  47. package/dist/{index-WSRMfIaR.js → index-DevyPPDH.js} +4 -4
  48. package/dist/{index-SC0Q5vxU.cjs → index-Dl0UfkEK.cjs} +24 -24
  49. package/dist/{index-f5Zscqv2.cjs → index-DwxsEjQD.cjs} +1 -1
  50. package/dist/{index-D6zlkbNL.js → index-Dyi0oqW6.js} +9 -9
  51. package/dist/{index-B_jAdNf_.js → index-EVRiO9is.js} +5 -5
  52. package/dist/{index-DLKrhRbi.cjs → index-I5j4kGUU.cjs} +1 -1
  53. package/dist/{index-BY5K8-AN.cjs → index-RtIPoj-Z.cjs} +1 -1
  54. package/dist/{index-tOzEcLm_.js → index-UUXPBpDb.js} +1 -1
  55. package/dist/{index-BwVYfEbL.cjs → index-d1XddBO6.cjs} +1 -1
  56. package/dist/{index-C6y3A4SL.cjs → index-ltctOQMo.cjs} +1 -1
  57. package/dist/{index-B6zSfDyE.cjs → index-tI_BwUln.cjs} +1 -1
  58. package/dist/{index-CpLuyWGK.js → index-v0beDPTY.js} +13 -13
  59. package/dist/{index.vue_vue_type_script_setup_true_lang-BWynRo_C.js → index.vue_vue_type_script_setup_true_lang-CogrUoAR.js} +1 -1
  60. package/dist/{index.vue_vue_type_script_setup_true_lang-8lXkSqxa.cjs → index.vue_vue_type_script_setup_true_lang-OCQbYepd.cjs} +1 -1
  61. package/dist/{index.vue_vue_type_style_index_0_scoped_6082ead4_lang-DKuc-s5W.cjs → index.vue_vue_type_style_index_0_scoped_6082ead4_lang-DUMK5rMR.cjs} +1 -1
  62. package/dist/{index.vue_vue_type_style_index_0_scoped_6082ead4_lang-BiqIkqah.js → index.vue_vue_type_style_index_0_scoped_6082ead4_lang-DfUFZBHy.js} +13 -13
  63. package/dist/{index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-DKBtWqfs.js → index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-BCrpCsin.js} +8 -8
  64. package/dist/{index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-B-AISunE.cjs → index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-BYQrbVBY.cjs} +1 -1
  65. package/dist/{login-B866NM4y.cjs → login-BAV-TTm8.cjs} +1 -1
  66. package/dist/{login-BhksKMnB.js → login-BtszM6IG.js} +2 -2
  67. package/dist/{main-RLPMf3Zg.cjs → main-8Wx-oMYn.cjs} +1 -1
  68. package/dist/{main-LoIWo5mW.js → main-CPrky-Zc.js} +7 -7
  69. package/dist/{menu-DhJtzwi9.cjs → menu-BCU6sxDG.cjs} +1 -1
  70. package/dist/{menu-CltZ_3Cf.js → menu-JDWejcKb.js} +1 -1
  71. package/dist/ss-component.cjs +1 -1
  72. package/dist/ss-component.js +7 -7
  73. package/dist/ss-component3.cjs +1 -1
  74. package/dist/ss-component3.js +1 -1
  75. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
- import { ref as Ct, watch as Pr, nextTick as pd, resolveComponent as ph, createBlock as Rl, openBlock as Ln, withCtx as kn, createElementVNode as rn, renderSlot as rc, onMounted as Cl, createElementBlock as fi, toDisplayString as qi, createCommentVNode as mh, Fragment as gh, renderList as _h, normalizeStyle as vh, createVNode as Yn, unref as md, defineComponent as gd, createSlots as _d } from "vue";
2
- import { p as Rr } from "./index-tOzEcLm_.js";
3
- import { f as wa, s as ns, i as sc, g as Dn, c as yh, d as ma, u as xh, e as vd } from "./menu-CltZ_3Cf.js";
4
- import { a3 as yd, S as ac, a4 as xd, i as oc, a5 as lc, a6 as Md } from "./index-D6zlkbNL.js";
5
- import { b as ga, g as _a, k as cc, l as Sd, n as bd, s as uc } from "./index-WSRMfIaR.js";
1
+ import { ref as Ct, watch as Lr, nextTick as pd, resolveComponent as ph, createBlock as Rl, openBlock as Ln, withCtx as kn, createElementVNode as rn, renderSlot as rc, onMounted as Cl, createElementBlock as fi, toDisplayString as qi, createCommentVNode as mh, Fragment as gh, renderList as _h, normalizeStyle as vh, createVNode as Yn, unref as md, defineComponent as gd, createSlots as _d } from "vue";
2
+ import { p as Cr } from "./index-UUXPBpDb.js";
3
+ import { f as Aa, s as is, i as sc, g as Dn, c as yh, d as ga, u as xh, e as vd } from "./menu-JDWejcKb.js";
4
+ import { a3 as yd, S as ac, a4 as xd, i as oc, a5 as lc, a6 as Md } from "./index-Dyi0oqW6.js";
5
+ import { b as _a, g as va, k as cc, l as Sd, n as bd, s as uc } from "./index-DevyPPDH.js";
6
6
  import { _ as Pl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
- import { U as hc, g as dc, h as fc, j as pc, S as Fa, k as Ed, c as Ge } from "./cloneDeep-q_PLrSS1.js";
8
- import { d as Td } from "./index-Be0ha_yt.js";
7
+ import { U as hc, g as dc, h as fc, j as pc, S as Oa, k as Ed, c as Ge } from "./cloneDeep-pmFZLX5o.js";
8
+ import { d as Td } from "./index-CVJVAITz.js";
9
9
  var wd = "__lodash_hash_undefined__";
10
10
  function Ad(r) {
11
11
  return this.__data__.set(r, wd), this;
@@ -13,13 +13,13 @@ function Ad(r) {
13
13
  function Rd(r) {
14
14
  return this.__data__.has(r);
15
15
  }
16
- function va(r) {
16
+ function ya(r) {
17
17
  var e = -1, t = r == null ? 0 : r.length;
18
18
  for (this.__data__ = new yd(); ++e < t; )
19
19
  this.add(r[e]);
20
20
  }
21
- va.prototype.add = va.prototype.push = Ad;
22
- va.prototype.has = Rd;
21
+ ya.prototype.add = ya.prototype.push = Ad;
22
+ ya.prototype.has = Rd;
23
23
  function Cd(r, e) {
24
24
  for (var t = -1, n = r == null ? 0 : r.length; ++t < n; )
25
25
  if (e(r[t], t, r))
@@ -37,7 +37,7 @@ function Mh(r, e, t, n, i, s) {
37
37
  var c = s.get(r), u = s.get(e);
38
38
  if (c && u)
39
39
  return c == e && u == r;
40
- var h = -1, d = !0, f = t & Dd ? new va() : void 0;
40
+ var h = -1, d = !0, f = t & Dd ? new ya() : void 0;
41
41
  for (s.set(r, e), s.set(e, r); ++h < o; ) {
42
42
  var m = r[h], _ = e[h];
43
43
  if (n)
@@ -75,7 +75,7 @@ function Id(r) {
75
75
  t[++e] = n;
76
76
  }), t;
77
77
  }
78
- var Nd = 1, Fd = 2, Od = "[object Boolean]", Bd = "[object Date]", kd = "[object Error]", zd = "[object Map]", Vd = "[object Number]", Hd = "[object RegExp]", Gd = "[object Set]", Wd = "[object String]", Xd = "[object Symbol]", qd = "[object ArrayBuffer]", jd = "[object DataView]", mc = ac ? ac.prototype : void 0, Oa = mc ? mc.valueOf : void 0;
78
+ var Nd = 1, Fd = 2, Od = "[object Boolean]", Bd = "[object Date]", kd = "[object Error]", zd = "[object Map]", Vd = "[object Number]", Hd = "[object RegExp]", Gd = "[object Set]", Wd = "[object String]", Xd = "[object Symbol]", qd = "[object ArrayBuffer]", jd = "[object DataView]", mc = ac ? ac.prototype : void 0, Ba = mc ? mc.valueOf : void 0;
79
79
  function Yd(r, e, t, n, i, s, a) {
80
80
  switch (t) {
81
81
  case jd:
@@ -106,8 +106,8 @@ function Yd(r, e, t, n, i, s, a) {
106
106
  var u = Mh(o(r), o(e), n, i, s, a);
107
107
  return a.delete(r), u;
108
108
  case Xd:
109
- if (Oa)
110
- return Oa.call(r) == Oa.call(e);
109
+ if (Ba)
110
+ return Ba.call(r) == Ba.call(e);
111
111
  }
112
112
  return !1;
113
113
  }
@@ -143,26 +143,26 @@ function Zd(r, e, t, n, i, s) {
143
143
  }
144
144
  return s.delete(r), s.delete(e), _;
145
145
  }
146
- var Qd = 1, gc = "[object Arguments]", _c = "[object Array]", ys = "[object Object]", ef = Object.prototype, vc = ef.hasOwnProperty;
146
+ var Qd = 1, gc = "[object Arguments]", _c = "[object Array]", xs = "[object Object]", ef = Object.prototype, vc = ef.hasOwnProperty;
147
147
  function tf(r, e, t, n, i, s) {
148
148
  var a = oc(r), o = oc(e), l = a ? _c : fc(r), c = o ? _c : fc(e);
149
- l = l == gc ? ys : l, c = c == gc ? ys : c;
150
- var u = l == ys, h = c == ys, d = l == c;
149
+ l = l == gc ? xs : l, c = c == gc ? xs : c;
150
+ var u = l == xs, h = c == xs, d = l == c;
151
151
  if (d && pc(r)) {
152
152
  if (!pc(e))
153
153
  return !1;
154
154
  a = !0, u = !1;
155
155
  }
156
156
  if (d && !u)
157
- return s || (s = new Fa()), a || Ed(r) ? Mh(r, e, t, n, i, s) : Yd(r, e, l, t, n, i, s);
157
+ return s || (s = new Oa()), a || Ed(r) ? Mh(r, e, t, n, i, s) : Yd(r, e, l, t, n, i, s);
158
158
  if (!(t & Qd)) {
159
159
  var f = u && vc.call(r, "__wrapped__"), m = h && vc.call(e, "__wrapped__");
160
160
  if (f || m) {
161
161
  var _ = f ? r.value() : r, g = m ? e.value() : e;
162
- return s || (s = new Fa()), i(_, g, t, n, s);
162
+ return s || (s = new Oa()), i(_, g, t, n, s);
163
163
  }
164
164
  }
165
- return d ? (s || (s = new Fa()), Zd(r, e, t, n, i, s)) : !1;
165
+ return d ? (s || (s = new Oa()), Zd(r, e, t, n, i, s)) : !1;
166
166
  }
167
167
  function Sh(r, e, t, n, i) {
168
168
  return r === e ? !0 : r == null || e == null || !lc(r) && !lc(e) ? r !== r && e !== e : tf(r, e, t, n, Sh, i);
@@ -170,7 +170,7 @@ function Sh(r, e, t, n, i) {
170
170
  function nf(r, e) {
171
171
  return Sh(r, e);
172
172
  }
173
- const bh = wa("modelComp", {
173
+ const bh = Aa("modelComp", {
174
174
  state: () => ({
175
175
  itemData: [],
176
176
  originalData: [],
@@ -229,13 +229,13 @@ const bh = wa("modelComp", {
229
229
  },
230
230
  setup(r) {
231
231
  const e = r, t = Ct(null), n = Ct(!1), i = Ct(null);
232
- return Pr(
232
+ return Lr(
233
233
  () => e == null ? void 0 : e.isVisible,
234
234
  () => {
235
235
  n.value = e == null ? void 0 : e.isVisible;
236
236
  },
237
237
  { deep: !0, immediate: !0 }
238
- ), Pr(
238
+ ), Lr(
239
239
  () => i.value,
240
240
  () => {
241
241
  pd(() => {
@@ -297,7 +297,7 @@ const bh = wa("modelComp", {
297
297
  t("buttonClick", u);
298
298
  }, l = (u) => {
299
299
  var h, d;
300
- s.value = (d = (h = _a(Ge(u))) == null ? void 0 : h.filter((f) => (f == null ? void 0 : f.label) !== "" && (f == null ? void 0 : f.label) !== "操作")) == null ? void 0 : d.map((f) => ({
300
+ s.value = (d = (h = va(Ge(u))) == null ? void 0 : h.filter((f) => (f == null ? void 0 : f.label) !== "" && (f == null ? void 0 : f.label) !== "操作")) == null ? void 0 : d.map((f) => ({
301
301
  label: (f == null ? void 0 : f.label) ?? "",
302
302
  value: "",
303
303
  name: (f == null ? void 0 : f.label) ?? "",
@@ -308,7 +308,7 @@ const bh = wa("modelComp", {
308
308
  };
309
309
  return Cl(() => {
310
310
  l(n.columns);
311
- }), Pr(
311
+ }), Lr(
312
312
  () => n.columns,
313
313
  () => {
314
314
  l(n.columns);
@@ -356,7 +356,7 @@ const bh = wa("modelComp", {
356
356
  ]),
357
357
  content: kn(() => [
358
358
  rn("div", hf, [
359
- (Ln(), Rl(ga, {
359
+ (Ln(), Rl(_a, {
360
360
  rowContents: s.value,
361
361
  buttonValue: a.value,
362
362
  isRowFlex: !0,
@@ -381,7 +381,7 @@ const bh = wa("modelComp", {
381
381
  * Copyright 2010-2025 Three.js Authors
382
382
  * SPDX-License-Identifier: MIT
383
383
  */
384
- const Ll = "177", Lx = { ROTATE: 0, DOLLY: 1, PAN: 2 }, Dx = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, pf = 0, yc = 1, mf = 2, Eh = 1, gf = 2, di = 3, Qn = 0, _n = 1, gn = 2, Ci = 0, Lr = 1, xc = 2, Mc = 3, Sc = 4, _f = 5, ji = 100, vf = 101, yf = 102, xf = 103, Mf = 104, Sf = 200, bf = 201, Ef = 202, Tf = 203, Lo = 204, Do = 205, wf = 206, Af = 207, Rf = 208, Cf = 209, Pf = 210, Lf = 211, Df = 212, Uf = 213, If = 214, Uo = 0, Io = 1, No = 2, Ir = 3, Fo = 4, Oo = 5, Bo = 6, ko = 7, Aa = 0, Nf = 1, Ff = 2, Pi = 0, Of = 1, Bf = 2, kf = 3, zf = 4, Vf = 5, Hf = 6, Gf = 7, bc = "attached", Wf = "detached", Th = 300, Nr = 301, Fr = 302, zo = 303, Vo = 304, Ra = 306, $n = 1e3, Vn = 1001, Ho = 1002, wn = 1003, Xf = 1004, xs = 1005, Tn = 1006, Ba = 1007, pi = 1008, ei = 1009, wh = 1010, Ah = 1011, ls = 1012, Dl = 1013, Qi = 1014, Jn = 1015, ps = 1016, Ul = 1017, Il = 1018, cs = 1020, Rh = 35902, Ch = 1021, Ph = 1022, In = 1023, us = 1026, hs = 1027, Lh = 1028, Nl = 1029, Dh = 1030, Fl = 1031, Ol = 1033, aa = 33776, oa = 33777, la = 33778, ca = 33779, Go = 35840, Wo = 35841, Xo = 35842, qo = 35843, jo = 36196, Yo = 37492, Ko = 37496, $o = 37808, Jo = 37809, Zo = 37810, Qo = 37811, el = 37812, tl = 37813, nl = 37814, il = 37815, rl = 37816, sl = 37817, al = 37818, ol = 37819, ll = 37820, cl = 37821, ua = 36492, ul = 36494, hl = 36495, Uh = 36283, dl = 36284, fl = 36285, pl = 36286, ya = 2300, ml = 2301, ka = 2302, Ec = 2400, Tc = 2401, wc = 2402, qf = 2500, jf = 3200, Yf = 3201, Bl = 0, Kf = 1, Ri = "", wt = "srgb", Or = "srgb-linear", xa = "linear", Dt = "srgb", or = 7680, Ac = 519, $f = 512, Jf = 513, Zf = 514, Ih = 515, Qf = 516, ep = 517, tp = 518, np = 519, gl = 35044, Rc = "300 es", mi = 2e3, Ma = 2001;
384
+ const Ll = "177", Lx = { ROTATE: 0, DOLLY: 1, PAN: 2 }, Dx = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, pf = 0, yc = 1, mf = 2, Eh = 1, gf = 2, di = 3, Qn = 0, _n = 1, gn = 2, Ci = 0, Dr = 1, xc = 2, Mc = 3, Sc = 4, _f = 5, ji = 100, vf = 101, yf = 102, xf = 103, Mf = 104, Sf = 200, bf = 201, Ef = 202, Tf = 203, Lo = 204, Do = 205, wf = 206, Af = 207, Rf = 208, Cf = 209, Pf = 210, Lf = 211, Df = 212, Uf = 213, If = 214, Uo = 0, Io = 1, No = 2, Nr = 3, Fo = 4, Oo = 5, Bo = 6, ko = 7, Ra = 0, Nf = 1, Ff = 2, Pi = 0, Of = 1, Bf = 2, kf = 3, zf = 4, Vf = 5, Hf = 6, Gf = 7, bc = "attached", Wf = "detached", Th = 300, Fr = 301, Or = 302, zo = 303, Vo = 304, Ca = 306, $n = 1e3, Vn = 1001, Ho = 1002, wn = 1003, Xf = 1004, Ms = 1005, Tn = 1006, ka = 1007, pi = 1008, ei = 1009, wh = 1010, Ah = 1011, cs = 1012, Dl = 1013, Qi = 1014, Jn = 1015, ms = 1016, Ul = 1017, Il = 1018, us = 1020, Rh = 35902, Ch = 1021, Ph = 1022, In = 1023, hs = 1026, ds = 1027, Lh = 1028, Nl = 1029, Dh = 1030, Fl = 1031, Ol = 1033, oa = 33776, la = 33777, ca = 33778, ua = 33779, Go = 35840, Wo = 35841, Xo = 35842, qo = 35843, jo = 36196, Yo = 37492, Ko = 37496, $o = 37808, Jo = 37809, Zo = 37810, Qo = 37811, el = 37812, tl = 37813, nl = 37814, il = 37815, rl = 37816, sl = 37817, al = 37818, ol = 37819, ll = 37820, cl = 37821, ha = 36492, ul = 36494, hl = 36495, Uh = 36283, dl = 36284, fl = 36285, pl = 36286, xa = 2300, ml = 2301, za = 2302, Ec = 2400, Tc = 2401, wc = 2402, qf = 2500, jf = 3200, Yf = 3201, Bl = 0, Kf = 1, Ri = "", wt = "srgb", Br = "srgb-linear", Ma = "linear", Dt = "srgb", or = 7680, Ac = 519, $f = 512, Jf = 513, Zf = 514, Ih = 515, Qf = 516, ep = 517, tp = 518, np = 519, gl = 35044, Rc = "300 es", mi = 2e3, Sa = 2001;
385
385
  class tr {
386
386
  /**
387
387
  * Adds the given event listener to the given event type.
@@ -440,7 +440,7 @@ class tr {
440
440
  }
441
441
  const on = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "0a", "0b", "0c", "0d", "0e", "0f", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "1a", "1b", "1c", "1d", "1e", "1f", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "2a", "2b", "2c", "2d", "2e", "2f", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "3a", "3b", "3c", "3d", "3e", "3f", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "4a", "4b", "4c", "4d", "4e", "4f", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "5a", "5b", "5c", "5d", "5e", "5f", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "6a", "6b", "6c", "6d", "6e", "6f", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "7a", "7b", "7c", "7d", "7e", "7f", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "8a", "8b", "8c", "8d", "8e", "8f", "90", "91", "92", "93", "94", "95", "96", "97", "98", "99", "9a", "9b", "9c", "9d", "9e", "9f", "a0", "a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9", "aa", "ab", "ac", "ad", "ae", "af", "b0", "b1", "b2", "b3", "b4", "b5", "b6", "b7", "b8", "b9", "ba", "bb", "bc", "bd", "be", "bf", "c0", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "ca", "cb", "cc", "cd", "ce", "cf", "d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7", "d8", "d9", "da", "db", "dc", "dd", "de", "df", "e0", "e1", "e2", "e3", "e4", "e5", "e6", "e7", "e8", "e9", "ea", "eb", "ec", "ed", "ee", "ef", "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "fa", "fb", "fc", "fd", "fe", "ff"];
442
442
  let Cc = 1234567;
443
- const rs = Math.PI / 180, Br = 180 / Math.PI;
443
+ const ss = Math.PI / 180, kr = 180 / Math.PI;
444
444
  function Hn() {
445
445
  const r = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, n = Math.random() * 4294967295 | 0;
446
446
  return (on[r & 255] + on[r >> 8 & 255] + on[r >> 16 & 255] + on[r >> 24 & 255] + "-" + on[e & 255] + on[e >> 8 & 255] + "-" + on[e >> 16 & 15 | 64] + on[e >> 24 & 255] + "-" + on[t & 63 | 128] + on[t >> 8 & 255] + "-" + on[t >> 16 & 255] + on[t >> 24 & 255] + on[n & 255] + on[n >> 8 & 255] + on[n >> 16 & 255] + on[n >> 24 & 255]).toLowerCase();
@@ -457,11 +457,11 @@ function ip(r, e, t, n, i) {
457
457
  function rp(r, e, t) {
458
458
  return r !== e ? (t - r) / (e - r) : 0;
459
459
  }
460
- function ss(r, e, t) {
460
+ function as(r, e, t) {
461
461
  return (1 - t) * r + t * e;
462
462
  }
463
463
  function sp(r, e, t, n) {
464
- return ss(r, e, 1 - Math.exp(-t * n));
464
+ return as(r, e, 1 - Math.exp(-t * n));
465
465
  }
466
466
  function ap(r, e = 1) {
467
467
  return e - Math.abs(kl(r, e * 2) - e);
@@ -487,10 +487,10 @@ function dp(r) {
487
487
  return e = Math.imul(e ^ e >>> 15, e | 1), e ^= e + Math.imul(e ^ e >>> 7, e | 61), ((e ^ e >>> 14) >>> 0) / 4294967296;
488
488
  }
489
489
  function fp(r) {
490
- return r * rs;
490
+ return r * ss;
491
491
  }
492
492
  function pp(r) {
493
- return r * Br;
493
+ return r * kr;
494
494
  }
495
495
  function mp(r) {
496
496
  return (r & r - 1) === 0 && r !== 0;
@@ -566,9 +566,9 @@ function Lt(r, e) {
566
566
  throw new Error("Invalid component type.");
567
567
  }
568
568
  }
569
- const Ar = {
570
- DEG2RAD: rs,
571
- RAD2DEG: Br,
569
+ const Rr = {
570
+ DEG2RAD: ss,
571
+ RAD2DEG: kr,
572
572
  /**
573
573
  * Generate a [UUID]{@link https://en.wikipedia.org/wiki/Universally_unique_identifier}
574
574
  * (universally unique identifier).
@@ -637,7 +637,7 @@ const Ar = {
637
637
  * @param {number} t - The interpolation factor in the closed interval `[0, 1]`.
638
638
  * @return {number} The interpolated value.
639
639
  */
640
- lerp: ss,
640
+ lerp: as,
641
641
  /**
642
642
  * Smoothly interpolate a number from `x` to `y` in a spring-like manner using a delta
643
643
  * time to maintain frame rate independent movement. For details, see
@@ -2340,7 +2340,7 @@ class k {
2340
2340
  * @return {Vector3} A reference to this vector.
2341
2341
  */
2342
2342
  projectOnPlane(e) {
2343
- return za.copy(this).projectOnVector(e), this.sub(za);
2343
+ return Va.copy(this).projectOnVector(e), this.sub(Va);
2344
2344
  }
2345
2345
  /**
2346
2346
  * Reflects this vector off a plane orthogonal to the given normal vector.
@@ -2349,7 +2349,7 @@ class k {
2349
2349
  * @return {Vector3} A reference to this vector.
2350
2350
  */
2351
2351
  reflect(e) {
2352
- return this.sub(za.copy(e).multiplyScalar(2 * this.dot(e)));
2352
+ return this.sub(Va.copy(e).multiplyScalar(2 * this.dot(e)));
2353
2353
  }
2354
2354
  /**
2355
2355
  * Returns the angle between the given vector and this instance in radians.
@@ -2558,7 +2558,7 @@ class k {
2558
2558
  yield this.x, yield this.y, yield this.z;
2559
2559
  }
2560
2560
  }
2561
- const za = /* @__PURE__ */ new k(), Pc = /* @__PURE__ */ new Nn();
2561
+ const Va = /* @__PURE__ */ new k(), Pc = /* @__PURE__ */ new Nn();
2562
2562
  class mt {
2563
2563
  /**
2564
2564
  * Constructs a new 3x3 matrix. The arguments are supposed to be
@@ -2792,7 +2792,7 @@ class mt {
2792
2792
  * @return {Matrix3} A reference to this matrix.
2793
2793
  */
2794
2794
  scale(e, t) {
2795
- return this.premultiply(Va.makeScale(e, t)), this;
2795
+ return this.premultiply(Ha.makeScale(e, t)), this;
2796
2796
  }
2797
2797
  /**
2798
2798
  * Rotates this matrix by the given angle.
@@ -2801,7 +2801,7 @@ class mt {
2801
2801
  * @return {Matrix3} A reference to this matrix.
2802
2802
  */
2803
2803
  rotate(e) {
2804
- return this.premultiply(Va.makeRotation(-e)), this;
2804
+ return this.premultiply(Ha.makeRotation(-e)), this;
2805
2805
  }
2806
2806
  /**
2807
2807
  * Translates this matrix by the given scalar values.
@@ -2811,7 +2811,7 @@ class mt {
2811
2811
  * @return {Matrix3} A reference to this matrix.
2812
2812
  */
2813
2813
  translate(e, t) {
2814
- return this.premultiply(Va.makeTranslation(e, t)), this;
2814
+ return this.premultiply(Ha.makeTranslation(e, t)), this;
2815
2815
  }
2816
2816
  // for 2D Transforms
2817
2817
  /**
@@ -2929,21 +2929,21 @@ class mt {
2929
2929
  return new this.constructor().fromArray(this.elements);
2930
2930
  }
2931
2931
  }
2932
- const Va = /* @__PURE__ */ new mt();
2932
+ const Ha = /* @__PURE__ */ new mt();
2933
2933
  function Nh(r) {
2934
2934
  for (let e = r.length - 1; e >= 0; --e)
2935
2935
  if (r[e] >= 65535) return !0;
2936
2936
  return !1;
2937
2937
  }
2938
- function ds(r) {
2938
+ function fs(r) {
2939
2939
  return document.createElementNS("http://www.w3.org/1999/xhtml", r);
2940
2940
  }
2941
2941
  function yp() {
2942
- const r = ds("canvas");
2942
+ const r = fs("canvas");
2943
2943
  return r.style.display = "block", r;
2944
2944
  }
2945
2945
  const Lc = {};
2946
- function Dr(r) {
2946
+ function Ur(r) {
2947
2947
  r in Lc || (Lc[r] = !0, console.warn(r));
2948
2948
  }
2949
2949
  function xp(r, e, t) {
@@ -2995,7 +2995,7 @@ const Dc = /* @__PURE__ */ new mt().set(
2995
2995
  function bp() {
2996
2996
  const r = {
2997
2997
  enabled: !0,
2998
- workingColorSpace: Or,
2998
+ workingColorSpace: Br,
2999
2999
  /**
3000
3000
  * Implementations of supported color spaces.
3001
3001
  *
@@ -3016,7 +3016,7 @@ function bp() {
3016
3016
  */
3017
3017
  spaces: {},
3018
3018
  convert: function(i, s, a) {
3019
- return this.enabled === !1 || s === a || !s || !a || (this.spaces[s].transfer === Dt && (i.r = _i(i.r), i.g = _i(i.g), i.b = _i(i.b)), this.spaces[s].primaries !== this.spaces[a].primaries && (i.applyMatrix3(this.spaces[s].toXYZ), i.applyMatrix3(this.spaces[a].fromXYZ)), this.spaces[a].transfer === Dt && (i.r = Ur(i.r), i.g = Ur(i.g), i.b = Ur(i.b))), i;
3019
+ return this.enabled === !1 || s === a || !s || !a || (this.spaces[s].transfer === Dt && (i.r = _i(i.r), i.g = _i(i.g), i.b = _i(i.b)), this.spaces[s].primaries !== this.spaces[a].primaries && (i.applyMatrix3(this.spaces[s].toXYZ), i.applyMatrix3(this.spaces[a].fromXYZ)), this.spaces[a].transfer === Dt && (i.r = Ir(i.r), i.g = Ir(i.g), i.b = Ir(i.b))), i;
3020
3020
  },
3021
3021
  workingToColorSpace: function(i, s) {
3022
3022
  return this.convert(i, this.workingColorSpace, s);
@@ -3028,7 +3028,7 @@ function bp() {
3028
3028
  return this.spaces[i].primaries;
3029
3029
  },
3030
3030
  getTransfer: function(i) {
3031
- return i === Ri ? xa : this.spaces[i].transfer;
3031
+ return i === Ri ? Ma : this.spaces[i].transfer;
3032
3032
  },
3033
3033
  getLuminanceCoefficients: function(i, s = this.workingColorSpace) {
3034
3034
  return i.fromArray(this.spaces[s].luminanceCoefficients);
@@ -3048,17 +3048,17 @@ function bp() {
3048
3048
  },
3049
3049
  // Deprecated
3050
3050
  fromWorkingColorSpace: function(i, s) {
3051
- return Dr("THREE.ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace()."), r.workingToColorSpace(i, s);
3051
+ return Ur("THREE.ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace()."), r.workingToColorSpace(i, s);
3052
3052
  },
3053
3053
  toWorkingColorSpace: function(i, s) {
3054
- return Dr("THREE.ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking()."), r.colorSpaceToWorking(i, s);
3054
+ return Ur("THREE.ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking()."), r.colorSpaceToWorking(i, s);
3055
3055
  }
3056
3056
  }, e = [0.64, 0.33, 0.3, 0.6, 0.15, 0.06], t = [0.2126, 0.7152, 0.0722], n = [0.3127, 0.329];
3057
3057
  return r.define({
3058
- [Or]: {
3058
+ [Br]: {
3059
3059
  primaries: e,
3060
3060
  whitePoint: n,
3061
- transfer: xa,
3061
+ transfer: Ma,
3062
3062
  toXYZ: Dc,
3063
3063
  fromXYZ: Uc,
3064
3064
  luminanceCoefficients: t,
@@ -3080,7 +3080,7 @@ const _t = /* @__PURE__ */ bp();
3080
3080
  function _i(r) {
3081
3081
  return r < 0.04045 ? r * 0.0773993808 : Math.pow(r * 0.9478672986 + 0.0521327014, 2.4);
3082
3082
  }
3083
- function Ur(r) {
3083
+ function Ir(r) {
3084
3084
  return r < 31308e-7 ? r * 12.92 : 1.055 * Math.pow(r, 0.41666) - 0.055;
3085
3085
  }
3086
3086
  let lr;
@@ -3099,7 +3099,7 @@ class Ep {
3099
3099
  if (e instanceof HTMLCanvasElement)
3100
3100
  n = e;
3101
3101
  else {
3102
- lr === void 0 && (lr = ds("canvas")), lr.width = e.width, lr.height = e.height;
3102
+ lr === void 0 && (lr = fs("canvas")), lr.width = e.width, lr.height = e.height;
3103
3103
  const i = lr.getContext("2d");
3104
3104
  e instanceof ImageData ? i.putImageData(e, 0, 0) : i.drawImage(e, 0, 0, e.width, e.height), n = lr;
3105
3105
  }
@@ -3113,7 +3113,7 @@ class Ep {
3113
3113
  */
3114
3114
  static sRGBToLinear(e) {
3115
3115
  if (typeof HTMLImageElement < "u" && e instanceof HTMLImageElement || typeof HTMLCanvasElement < "u" && e instanceof HTMLCanvasElement || typeof ImageBitmap < "u" && e instanceof ImageBitmap) {
3116
- const t = ds("canvas");
3116
+ const t = fs("canvas");
3117
3117
  t.width = e.width, t.height = e.height;
3118
3118
  const n = t.getContext("2d");
3119
3119
  n.drawImage(e, 0, 0, e.width, e.height);
@@ -3180,15 +3180,15 @@ class zl {
3180
3180
  if (Array.isArray(i)) {
3181
3181
  s = [];
3182
3182
  for (let a = 0, o = i.length; a < o; a++)
3183
- i[a].isDataTexture ? s.push(Ha(i[a].image)) : s.push(Ha(i[a]));
3183
+ i[a].isDataTexture ? s.push(Ga(i[a].image)) : s.push(Ga(i[a]));
3184
3184
  } else
3185
- s = Ha(i);
3185
+ s = Ga(i);
3186
3186
  n.url = s;
3187
3187
  }
3188
3188
  return t || (e.images[this.uuid] = n), n;
3189
3189
  }
3190
3190
  }
3191
- function Ha(r) {
3191
+ function Ga(r) {
3192
3192
  return typeof HTMLImageElement < "u" && r instanceof HTMLImageElement || typeof HTMLCanvasElement < "u" && r instanceof HTMLCanvasElement || typeof ImageBitmap < "u" && r instanceof ImageBitmap ? Ep.getDataURL(r) : r.data ? {
3193
3193
  data: Array.from(r.data),
3194
3194
  width: r.width,
@@ -3197,7 +3197,7 @@ function Ha(r) {
3197
3197
  } : (console.warn("THREE.Texture: Unable to serialize Texture."), {});
3198
3198
  }
3199
3199
  let wp = 0;
3200
- const Ga = /* @__PURE__ */ new k();
3200
+ const Wa = /* @__PURE__ */ new k();
3201
3201
  class sn extends tr {
3202
3202
  /**
3203
3203
  * Constructs a new texture.
@@ -3220,19 +3220,19 @@ class sn extends tr {
3220
3220
  * The width of the texture in pixels.
3221
3221
  */
3222
3222
  get width() {
3223
- return this.source.getSize(Ga).x;
3223
+ return this.source.getSize(Wa).x;
3224
3224
  }
3225
3225
  /**
3226
3226
  * The height of the texture in pixels.
3227
3227
  */
3228
3228
  get height() {
3229
- return this.source.getSize(Ga).y;
3229
+ return this.source.getSize(Wa).y;
3230
3230
  }
3231
3231
  /**
3232
3232
  * The depth of the texture in pixels.
3233
3233
  */
3234
3234
  get depth() {
3235
- return this.source.getSize(Ga).z;
3235
+ return this.source.getSize(Wa).z;
3236
3236
  }
3237
3237
  /**
3238
3238
  * The image object holding the texture data.
@@ -4346,7 +4346,7 @@ class yi {
4346
4346
  for (let a = 0, o = s.count; a < o; a++)
4347
4347
  e.isMesh === !0 ? e.getVertexPosition(a, Fn) : Fn.fromBufferAttribute(s, a), Fn.applyMatrix4(e.matrixWorld), this.expandByPoint(Fn);
4348
4348
  else
4349
- e.boundingBox !== void 0 ? (e.boundingBox === null && e.computeBoundingBox(), Ms.copy(e.boundingBox)) : (n.boundingBox === null && n.computeBoundingBox(), Ms.copy(n.boundingBox)), Ms.applyMatrix4(e.matrixWorld), this.union(Ms);
4349
+ e.boundingBox !== void 0 ? (e.boundingBox === null && e.computeBoundingBox(), Ss.copy(e.boundingBox)) : (n.boundingBox === null && n.computeBoundingBox(), Ss.copy(n.boundingBox)), Ss.applyMatrix4(e.matrixWorld), this.union(Ss);
4350
4350
  }
4351
4351
  const i = e.children;
4352
4352
  for (let s = 0, a = i.length; s < a; s++)
@@ -4423,7 +4423,7 @@ class yi {
4423
4423
  intersectsTriangle(e) {
4424
4424
  if (this.isEmpty())
4425
4425
  return !1;
4426
- this.getCenter(qr), Ss.subVectors(this.max, qr), cr.subVectors(e.a, qr), ur.subVectors(e.b, qr), hr.subVectors(e.c, qr), Mi.subVectors(ur, cr), Si.subVectors(hr, ur), Fi.subVectors(cr, hr);
4426
+ this.getCenter(jr), bs.subVectors(this.max, jr), cr.subVectors(e.a, jr), ur.subVectors(e.b, jr), hr.subVectors(e.c, jr), Mi.subVectors(ur, cr), Si.subVectors(hr, ur), Fi.subVectors(cr, hr);
4427
4427
  let t = [
4428
4428
  0,
4429
4429
  -Mi.z,
@@ -4453,7 +4453,7 @@ class yi {
4453
4453
  Fi.x,
4454
4454
  0
4455
4455
  ];
4456
- return !Wa(t, cr, ur, hr, Ss) || (t = [1, 0, 0, 0, 1, 0, 0, 0, 1], !Wa(t, cr, ur, hr, Ss)) ? !1 : (bs.crossVectors(Mi, Si), t = [bs.x, bs.y, bs.z], Wa(t, cr, ur, hr, Ss));
4456
+ return !Xa(t, cr, ur, hr, bs) || (t = [1, 0, 0, 0, 1, 0, 0, 0, 1], !Xa(t, cr, ur, hr, bs)) ? !1 : (Es.crossVectors(Mi, Si), t = [Es.x, Es.y, Es.z], Xa(t, cr, ur, hr, bs));
4457
4457
  }
4458
4458
  /**
4459
4459
  * Clamps the given point within the bounds of this box.
@@ -4565,8 +4565,8 @@ const ai = [
4565
4565
  /* @__PURE__ */ new k(),
4566
4566
  /* @__PURE__ */ new k(),
4567
4567
  /* @__PURE__ */ new k()
4568
- ], Fn = /* @__PURE__ */ new k(), Ms = /* @__PURE__ */ new yi(), cr = /* @__PURE__ */ new k(), ur = /* @__PURE__ */ new k(), hr = /* @__PURE__ */ new k(), Mi = /* @__PURE__ */ new k(), Si = /* @__PURE__ */ new k(), Fi = /* @__PURE__ */ new k(), qr = /* @__PURE__ */ new k(), Ss = /* @__PURE__ */ new k(), bs = /* @__PURE__ */ new k(), Oi = /* @__PURE__ */ new k();
4569
- function Wa(r, e, t, n, i) {
4568
+ ], Fn = /* @__PURE__ */ new k(), Ss = /* @__PURE__ */ new yi(), cr = /* @__PURE__ */ new k(), ur = /* @__PURE__ */ new k(), hr = /* @__PURE__ */ new k(), Mi = /* @__PURE__ */ new k(), Si = /* @__PURE__ */ new k(), Fi = /* @__PURE__ */ new k(), jr = /* @__PURE__ */ new k(), bs = /* @__PURE__ */ new k(), Es = /* @__PURE__ */ new k(), Oi = /* @__PURE__ */ new k();
4569
+ function Xa(r, e, t, n, i) {
4570
4570
  for (let s = 0, a = r.length - 3; s <= a; s += 3) {
4571
4571
  Oi.fromArray(r, s);
4572
4572
  const o = i.x * Math.abs(Oi.x) + i.y * Math.abs(Oi.y) + i.z * Math.abs(Oi.z), l = e.dot(Oi), c = t.dot(Oi), u = n.dot(Oi);
@@ -4575,7 +4575,7 @@ function Wa(r, e, t, n, i) {
4575
4575
  }
4576
4576
  return !0;
4577
4577
  }
4578
- const Cp = /* @__PURE__ */ new yi(), jr = /* @__PURE__ */ new k(), Xa = /* @__PURE__ */ new k();
4578
+ const Cp = /* @__PURE__ */ new yi(), Yr = /* @__PURE__ */ new k(), qa = /* @__PURE__ */ new k();
4579
4579
  class xi {
4580
4580
  /**
4581
4581
  * Constructs a new sphere.
@@ -4740,11 +4740,11 @@ class xi {
4740
4740
  expandByPoint(e) {
4741
4741
  if (this.isEmpty())
4742
4742
  return this.center.copy(e), this.radius = 0, this;
4743
- jr.subVectors(e, this.center);
4744
- const t = jr.lengthSq();
4743
+ Yr.subVectors(e, this.center);
4744
+ const t = Yr.lengthSq();
4745
4745
  if (t > this.radius * this.radius) {
4746
4746
  const n = Math.sqrt(t), i = (n - this.radius) * 0.5;
4747
- this.center.addScaledVector(jr, i / n), this.radius += i;
4747
+ this.center.addScaledVector(Yr, i / n), this.radius += i;
4748
4748
  }
4749
4749
  return this;
4750
4750
  }
@@ -4755,7 +4755,7 @@ class xi {
4755
4755
  * @return {Sphere} A reference to this sphere.
4756
4756
  */
4757
4757
  union(e) {
4758
- return e.isEmpty() ? this : this.isEmpty() ? (this.copy(e), this) : (this.center.equals(e.center) === !0 ? this.radius = Math.max(this.radius, e.radius) : (Xa.subVectors(e.center, this.center).setLength(e.radius), this.expandByPoint(jr.copy(e.center).add(Xa)), this.expandByPoint(jr.copy(e.center).sub(Xa))), this);
4758
+ return e.isEmpty() ? this : this.isEmpty() ? (this.copy(e), this) : (this.center.equals(e.center) === !0 ? this.radius = Math.max(this.radius, e.radius) : (qa.subVectors(e.center, this.center).setLength(e.radius), this.expandByPoint(Yr.copy(e.center).add(qa)), this.expandByPoint(Yr.copy(e.center).sub(qa))), this);
4759
4759
  }
4760
4760
  /**
4761
4761
  * Returns `true` if this sphere is equal with the given one.
@@ -4795,8 +4795,8 @@ class xi {
4795
4795
  return this.radius = e.radius, this.center.fromArray(e.center), this;
4796
4796
  }
4797
4797
  }
4798
- const oi = /* @__PURE__ */ new k(), qa = /* @__PURE__ */ new k(), Es = /* @__PURE__ */ new k(), bi = /* @__PURE__ */ new k(), ja = /* @__PURE__ */ new k(), Ts = /* @__PURE__ */ new k(), Ya = /* @__PURE__ */ new k();
4799
- class ms {
4798
+ const oi = /* @__PURE__ */ new k(), ja = /* @__PURE__ */ new k(), Ts = /* @__PURE__ */ new k(), bi = /* @__PURE__ */ new k(), Ya = /* @__PURE__ */ new k(), ws = /* @__PURE__ */ new k(), Ka = /* @__PURE__ */ new k();
4799
+ class gs {
4800
4800
  /**
4801
4801
  * Constructs a new ray.
4802
4802
  *
@@ -4894,8 +4894,8 @@ class ms {
4894
4894
  * @return {number} The squared distance.
4895
4895
  */
4896
4896
  distanceSqToSegment(e, t, n, i) {
4897
- qa.copy(e).add(t).multiplyScalar(0.5), Es.copy(t).sub(e).normalize(), bi.copy(this.origin).sub(qa);
4898
- const s = e.distanceTo(t) * 0.5, a = -this.direction.dot(Es), o = bi.dot(this.direction), l = -bi.dot(Es), c = bi.lengthSq(), u = Math.abs(1 - a * a);
4897
+ ja.copy(e).add(t).multiplyScalar(0.5), Ts.copy(t).sub(e).normalize(), bi.copy(this.origin).sub(ja);
4898
+ const s = e.distanceTo(t) * 0.5, a = -this.direction.dot(Ts), o = bi.dot(this.direction), l = -bi.dot(Ts), c = bi.lengthSq(), u = Math.abs(1 - a * a);
4899
4899
  let h, d, f, m;
4900
4900
  if (u > 0)
4901
4901
  if (h = a * l - o, d = a * o - l, m = s * u, h >= 0)
@@ -4911,7 +4911,7 @@ class ms {
4911
4911
  d <= -m ? (h = Math.max(0, -(-a * s + o)), d = h > 0 ? -s : Math.min(Math.max(-s, -l), s), f = -h * h + d * (d + 2 * l) + c) : d <= m ? (h = 0, d = Math.min(Math.max(-s, -l), s), f = d * (d + 2 * l) + c) : (h = Math.max(0, -(a * s + o)), d = h > 0 ? s : Math.min(Math.max(-s, -l), s), f = -h * h + d * (d + 2 * l) + c);
4912
4912
  else
4913
4913
  d = a > 0 ? -s : s, h = Math.max(0, -(a * d + o)), f = -h * h + d * (d + 2 * l) + c;
4914
- return n && n.copy(this.origin).addScaledVector(this.direction, h), i && i.copy(qa).addScaledVector(Es, d), f;
4914
+ return n && n.copy(this.origin).addScaledVector(this.direction, h), i && i.copy(ja).addScaledVector(Ts, d), f;
4915
4915
  }
4916
4916
  /**
4917
4917
  * Intersects this ray with the given sphere, returning the intersection
@@ -5007,8 +5007,8 @@ class ms {
5007
5007
  * @return {?Vector3} The intersection point.
5008
5008
  */
5009
5009
  intersectTriangle(e, t, n, i, s) {
5010
- ja.subVectors(t, e), Ts.subVectors(n, e), Ya.crossVectors(ja, Ts);
5011
- let a = this.direction.dot(Ya), o;
5010
+ Ya.subVectors(t, e), ws.subVectors(n, e), Ka.crossVectors(Ya, ws);
5011
+ let a = this.direction.dot(Ka), o;
5012
5012
  if (a > 0) {
5013
5013
  if (i) return null;
5014
5014
  o = 1;
@@ -5017,13 +5017,13 @@ class ms {
5017
5017
  else
5018
5018
  return null;
5019
5019
  bi.subVectors(this.origin, e);
5020
- const l = o * this.direction.dot(Ts.crossVectors(bi, Ts));
5020
+ const l = o * this.direction.dot(ws.crossVectors(bi, ws));
5021
5021
  if (l < 0)
5022
5022
  return null;
5023
- const c = o * this.direction.dot(ja.cross(bi));
5023
+ const c = o * this.direction.dot(Ya.cross(bi));
5024
5024
  if (c < 0 || l + c > a)
5025
5025
  return null;
5026
- const u = -o * bi.dot(Ya);
5026
+ const u = -o * bi.dot(Ka);
5027
5027
  return u < 0 ? null : this.at(u / a, s);
5028
5028
  }
5029
5029
  /**
@@ -5310,7 +5310,7 @@ class ct {
5310
5310
  */
5311
5311
  lookAt(e, t, n) {
5312
5312
  const i = this.elements;
5313
- return Sn.subVectors(e, t), Sn.lengthSq() === 0 && (Sn.z = 1), Sn.normalize(), Ei.crossVectors(n, Sn), Ei.lengthSq() === 0 && (Math.abs(n.z) === 1 ? Sn.x += 1e-4 : Sn.z += 1e-4, Sn.normalize(), Ei.crossVectors(n, Sn)), Ei.normalize(), ws.crossVectors(Sn, Ei), i[0] = Ei.x, i[4] = ws.x, i[8] = Sn.x, i[1] = Ei.y, i[5] = ws.y, i[9] = Sn.y, i[2] = Ei.z, i[6] = ws.z, i[10] = Sn.z, this;
5313
+ return Sn.subVectors(e, t), Sn.lengthSq() === 0 && (Sn.z = 1), Sn.normalize(), Ei.crossVectors(n, Sn), Ei.lengthSq() === 0 && (Math.abs(n.z) === 1 ? Sn.x += 1e-4 : Sn.z += 1e-4, Sn.normalize(), Ei.crossVectors(n, Sn)), Ei.normalize(), As.crossVectors(Sn, Ei), i[0] = Ei.x, i[4] = As.x, i[8] = Sn.x, i[1] = Ei.y, i[5] = As.y, i[9] = Sn.y, i[2] = Ei.z, i[6] = As.z, i[10] = Sn.z, this;
5314
5314
  }
5315
5315
  /**
5316
5316
  * Post-multiplies this matrix by the given 4x4 matrix.
@@ -5690,7 +5690,7 @@ class ct {
5690
5690
  let f, m;
5691
5691
  if (o === mi)
5692
5692
  f = -(a + s) / (a - s), m = -2 * a * s / (a - s);
5693
- else if (o === Ma)
5693
+ else if (o === Sa)
5694
5694
  f = -a / (a - s), m = -a * s / (a - s);
5695
5695
  else
5696
5696
  throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: " + o);
@@ -5714,7 +5714,7 @@ class ct {
5714
5714
  let m, _;
5715
5715
  if (o === mi)
5716
5716
  m = (a + s) * h, _ = -2 * h;
5717
- else if (o === Ma)
5717
+ else if (o === Sa)
5718
5718
  m = s * h, _ = -1 * h;
5719
5719
  else
5720
5720
  throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: " + o);
@@ -5757,7 +5757,7 @@ class ct {
5757
5757
  return e[t] = n[0], e[t + 1] = n[1], e[t + 2] = n[2], e[t + 3] = n[3], e[t + 4] = n[4], e[t + 5] = n[5], e[t + 6] = n[6], e[t + 7] = n[7], e[t + 8] = n[8], e[t + 9] = n[9], e[t + 10] = n[10], e[t + 11] = n[11], e[t + 12] = n[12], e[t + 13] = n[13], e[t + 14] = n[14], e[t + 15] = n[15], e;
5758
5758
  }
5759
5759
  }
5760
- const dr = /* @__PURE__ */ new k(), On = /* @__PURE__ */ new ct(), Pp = /* @__PURE__ */ new k(0, 0, 0), Lp = /* @__PURE__ */ new k(1, 1, 1), Ei = /* @__PURE__ */ new k(), ws = /* @__PURE__ */ new k(), Sn = /* @__PURE__ */ new k(), Ic = /* @__PURE__ */ new ct(), Nc = /* @__PURE__ */ new Nn();
5760
+ const dr = /* @__PURE__ */ new k(), On = /* @__PURE__ */ new ct(), Pp = /* @__PURE__ */ new k(0, 0, 0), Lp = /* @__PURE__ */ new k(1, 1, 1), Ei = /* @__PURE__ */ new k(), As = /* @__PURE__ */ new k(), Sn = /* @__PURE__ */ new k(), Ic = /* @__PURE__ */ new ct(), Nc = /* @__PURE__ */ new Nn();
5761
5761
  class An {
5762
5762
  /**
5763
5763
  * Constructs a new euler instance.
@@ -6029,7 +6029,7 @@ class Vl {
6029
6029
  }
6030
6030
  }
6031
6031
  let Dp = 0;
6032
- const Fc = /* @__PURE__ */ new k(), fr = /* @__PURE__ */ new Nn(), li = /* @__PURE__ */ new ct(), As = /* @__PURE__ */ new k(), Yr = /* @__PURE__ */ new k(), Up = /* @__PURE__ */ new k(), Ip = /* @__PURE__ */ new Nn(), Oc = /* @__PURE__ */ new k(1, 0, 0), Bc = /* @__PURE__ */ new k(0, 1, 0), kc = /* @__PURE__ */ new k(0, 0, 1), zc = { type: "added" }, Np = { type: "removed" }, pr = { type: "childadded", child: null }, Ka = { type: "childremoved", child: null };
6032
+ const Fc = /* @__PURE__ */ new k(), fr = /* @__PURE__ */ new Nn(), li = /* @__PURE__ */ new ct(), Rs = /* @__PURE__ */ new k(), Kr = /* @__PURE__ */ new k(), Up = /* @__PURE__ */ new k(), Ip = /* @__PURE__ */ new Nn(), Oc = /* @__PURE__ */ new k(1, 0, 0), Bc = /* @__PURE__ */ new k(0, 1, 0), kc = /* @__PURE__ */ new k(0, 0, 1), zc = { type: "added" }, Np = { type: "removed" }, pr = { type: "childadded", child: null }, $a = { type: "childremoved", child: null };
6033
6033
  class Nt extends tr {
6034
6034
  /**
6035
6035
  * Constructs a new 3D object.
@@ -6325,9 +6325,9 @@ class Nt extends tr {
6325
6325
  * @param {number} [z] - The z coordinate in world space.
6326
6326
  */
6327
6327
  lookAt(e, t, n) {
6328
- e.isVector3 ? As.copy(e) : As.set(e, t, n);
6328
+ e.isVector3 ? Rs.copy(e) : Rs.set(e, t, n);
6329
6329
  const i = this.parent;
6330
- this.updateWorldMatrix(!0, !1), Yr.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? li.lookAt(Yr, As, this.up) : li.lookAt(As, Yr, this.up), this.quaternion.setFromRotationMatrix(li), i && (li.extractRotation(i.matrixWorld), fr.setFromRotationMatrix(li), this.quaternion.premultiply(fr.invert()));
6330
+ this.updateWorldMatrix(!0, !1), Kr.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? li.lookAt(Kr, Rs, this.up) : li.lookAt(Rs, Kr, this.up), this.quaternion.setFromRotationMatrix(li), i && (li.extractRotation(i.matrixWorld), fr.setFromRotationMatrix(li), this.quaternion.premultiply(fr.invert()));
6331
6331
  }
6332
6332
  /**
6333
6333
  * Adds the given 3D object as a child to this 3D object. An arbitrary number of
@@ -6363,7 +6363,7 @@ class Nt extends tr {
6363
6363
  return this;
6364
6364
  }
6365
6365
  const t = this.children.indexOf(e);
6366
- return t !== -1 && (e.parent = null, this.children.splice(t, 1), e.dispatchEvent(Np), Ka.child = e, this.dispatchEvent(Ka), Ka.child = null), this;
6366
+ return t !== -1 && (e.parent = null, this.children.splice(t, 1), e.dispatchEvent(Np), $a.child = e, this.dispatchEvent($a), $a.child = null), this;
6367
6367
  }
6368
6368
  /**
6369
6369
  * Removes this 3D object from its current parent.
@@ -6466,7 +6466,7 @@ class Nt extends tr {
6466
6466
  * @return {Quaternion} The 3D object's rotation in world space.
6467
6467
  */
6468
6468
  getWorldQuaternion(e) {
6469
- return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(Yr, e, Up), e;
6469
+ return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(Kr, e, Up), e;
6470
6470
  }
6471
6471
  /**
6472
6472
  * Returns a vector representing the scale of the 3D object in world space.
@@ -6475,7 +6475,7 @@ class Nt extends tr {
6475
6475
  * @return {Vector3} The 3D object's scale in world space.
6476
6476
  */
6477
6477
  getWorldScale(e) {
6478
- return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(Yr, Ip, e), e;
6478
+ return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(Kr, Ip, e), e;
6479
6479
  }
6480
6480
  /**
6481
6481
  * Returns a vector representing the ("look") direction of the 3D object in world space.
@@ -6687,7 +6687,7 @@ class Nt extends tr {
6687
6687
  Nt.DEFAULT_UP = /* @__PURE__ */ new k(0, 1, 0);
6688
6688
  Nt.DEFAULT_MATRIX_AUTO_UPDATE = !0;
6689
6689
  Nt.DEFAULT_MATRIX_WORLD_AUTO_UPDATE = !0;
6690
- const Bn = /* @__PURE__ */ new k(), ci = /* @__PURE__ */ new k(), $a = /* @__PURE__ */ new k(), ui = /* @__PURE__ */ new k(), mr = /* @__PURE__ */ new k(), gr = /* @__PURE__ */ new k(), Vc = /* @__PURE__ */ new k(), Ja = /* @__PURE__ */ new k(), Za = /* @__PURE__ */ new k(), Qa = /* @__PURE__ */ new k(), eo = /* @__PURE__ */ new xt(), to = /* @__PURE__ */ new xt(), no = /* @__PURE__ */ new xt();
6690
+ const Bn = /* @__PURE__ */ new k(), ci = /* @__PURE__ */ new k(), Ja = /* @__PURE__ */ new k(), ui = /* @__PURE__ */ new k(), mr = /* @__PURE__ */ new k(), gr = /* @__PURE__ */ new k(), Vc = /* @__PURE__ */ new k(), Za = /* @__PURE__ */ new k(), Qa = /* @__PURE__ */ new k(), eo = /* @__PURE__ */ new k(), to = /* @__PURE__ */ new xt(), no = /* @__PURE__ */ new xt(), io = /* @__PURE__ */ new xt();
6691
6691
  class Un {
6692
6692
  /**
6693
6693
  * Constructs a new triangle.
@@ -6725,8 +6725,8 @@ class Un {
6725
6725
  * @return {?Vector3} The barycentric coordinates for the given point
6726
6726
  */
6727
6727
  static getBarycoord(e, t, n, i, s) {
6728
- Bn.subVectors(i, t), ci.subVectors(n, t), $a.subVectors(e, t);
6729
- const a = Bn.dot(Bn), o = Bn.dot(ci), l = Bn.dot($a), c = ci.dot(ci), u = ci.dot($a), h = a * c - o * o;
6728
+ Bn.subVectors(i, t), ci.subVectors(n, t), Ja.subVectors(e, t);
6729
+ const a = Bn.dot(Bn), o = Bn.dot(ci), l = Bn.dot(Ja), c = ci.dot(ci), u = ci.dot(Ja), h = a * c - o * o;
6730
6730
  if (h === 0)
6731
6731
  return s.set(0, 0, 0), null;
6732
6732
  const d = 1 / h, f = (c * l - o * u) * d, m = (a * u - o * l) * d;
@@ -6775,7 +6775,7 @@ class Un {
6775
6775
  * @return {Vector3} The interpolated attribute value.
6776
6776
  */
6777
6777
  static getInterpolatedAttribute(e, t, n, i, s, a) {
6778
- return eo.setScalar(0), to.setScalar(0), no.setScalar(0), eo.fromBufferAttribute(e, t), to.fromBufferAttribute(e, n), no.fromBufferAttribute(e, i), a.setScalar(0), a.addScaledVector(eo, s.x), a.addScaledVector(to, s.y), a.addScaledVector(no, s.z), a;
6778
+ return to.setScalar(0), no.setScalar(0), io.setScalar(0), to.fromBufferAttribute(e, t), no.fromBufferAttribute(e, n), io.fromBufferAttribute(e, i), a.setScalar(0), a.addScaledVector(to, s.x), a.addScaledVector(no, s.y), a.addScaledVector(io, s.z), a;
6779
6779
  }
6780
6780
  /**
6781
6781
  * Returns `true` if the triangle is oriented towards the given direction.
@@ -6940,19 +6940,19 @@ class Un {
6940
6940
  closestPointToPoint(e, t) {
6941
6941
  const n = this.a, i = this.b, s = this.c;
6942
6942
  let a, o;
6943
- mr.subVectors(i, n), gr.subVectors(s, n), Ja.subVectors(e, n);
6944
- const l = mr.dot(Ja), c = gr.dot(Ja);
6943
+ mr.subVectors(i, n), gr.subVectors(s, n), Za.subVectors(e, n);
6944
+ const l = mr.dot(Za), c = gr.dot(Za);
6945
6945
  if (l <= 0 && c <= 0)
6946
6946
  return t.copy(n);
6947
- Za.subVectors(e, i);
6948
- const u = mr.dot(Za), h = gr.dot(Za);
6947
+ Qa.subVectors(e, i);
6948
+ const u = mr.dot(Qa), h = gr.dot(Qa);
6949
6949
  if (u >= 0 && h <= u)
6950
6950
  return t.copy(i);
6951
6951
  const d = l * h - u * c;
6952
6952
  if (d <= 0 && l >= 0 && u <= 0)
6953
6953
  return a = l / (l - u), t.copy(n).addScaledVector(mr, a);
6954
- Qa.subVectors(e, s);
6955
- const f = mr.dot(Qa), m = gr.dot(Qa);
6954
+ eo.subVectors(e, s);
6955
+ const f = mr.dot(eo), m = gr.dot(eo);
6956
6956
  if (m >= 0 && f <= m)
6957
6957
  return t.copy(s);
6958
6958
  const _ = f * c - l * m;
@@ -7123,8 +7123,8 @@ const Oh = {
7123
7123
  whitesmoke: 16119285,
7124
7124
  yellow: 16776960,
7125
7125
  yellowgreen: 10145074
7126
- }, Ti = { h: 0, s: 0, l: 0 }, Rs = { h: 0, s: 0, l: 0 };
7127
- function io(r, e, t) {
7126
+ }, Ti = { h: 0, s: 0, l: 0 }, Cs = { h: 0, s: 0, l: 0 };
7127
+ function ro(r, e, t) {
7128
7128
  return t < 0 && (t += 1), t > 1 && (t -= 1), t < 1 / 6 ? r + (e - r) * 6 * t : t < 1 / 2 ? e : t < 2 / 3 ? r + (e - r) * 6 * (2 / 3 - t) : r;
7129
7129
  }
7130
7130
  class ut {
@@ -7204,7 +7204,7 @@ class ut {
7204
7204
  this.r = this.g = this.b = n;
7205
7205
  else {
7206
7206
  const s = n <= 0.5 ? n * (1 + t) : n + t - n * t, a = 2 * n - s;
7207
- this.r = io(a, s, e + 1 / 3), this.g = io(a, s, e), this.b = io(a, s, e - 1 / 3);
7207
+ this.r = ro(a, s, e + 1 / 3), this.g = ro(a, s, e), this.b = ro(a, s, e - 1 / 3);
7208
7208
  }
7209
7209
  return _t.colorSpaceToWorking(this, i), this;
7210
7210
  }
@@ -7325,7 +7325,7 @@ class ut {
7325
7325
  * @return {Color} A reference to this color.
7326
7326
  */
7327
7327
  copyLinearToSRGB(e) {
7328
- return this.r = Ur(e.r), this.g = Ur(e.g), this.b = Ur(e.b), this;
7328
+ return this.r = Ir(e.r), this.g = Ir(e.g), this.b = Ir(e.b), this;
7329
7329
  }
7330
7330
  /**
7331
7331
  * Converts this color from `SRGBColorSpace` to `LinearSRGBColorSpace`.
@@ -7519,8 +7519,8 @@ class ut {
7519
7519
  * @return {Color} A reference to this color.
7520
7520
  */
7521
7521
  lerpHSL(e, t) {
7522
- this.getHSL(Ti), e.getHSL(Rs);
7523
- const n = ss(Ti.h, Rs.h, t), i = ss(Ti.s, Rs.s, t), s = ss(Ti.l, Rs.l, t);
7522
+ this.getHSL(Ti), e.getHSL(Cs);
7523
+ const n = as(Ti.h, Cs.h, t), i = as(Ti.s, Cs.s, t), s = as(Ti.l, Cs.l, t);
7524
7524
  return this.setHSL(n, i, s), this;
7525
7525
  }
7526
7526
  /**
@@ -7603,7 +7603,7 @@ class Gn extends tr {
7603
7603
  * Constructs a new material.
7604
7604
  */
7605
7605
  constructor() {
7606
- super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: Fp++ }), this.uuid = Hn(), this.name = "", this.type = "Material", this.blending = Lr, this.side = Qn, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = Lo, this.blendDst = Do, this.blendEquation = ji, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new ut(0, 0, 0), this.blendAlpha = 0, this.depthFunc = Ir, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = Ac, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = or, this.stencilZFail = or, this.stencilZPass = or, 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.allowOverride = !0, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
7606
+ super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: Fp++ }), this.uuid = Hn(), this.name = "", this.type = "Material", this.blending = Dr, this.side = Qn, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = Lo, this.blendDst = Do, this.blendEquation = ji, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new ut(0, 0, 0), this.blendAlpha = 0, this.depthFunc = Nr, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = Ac, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = or, this.stencilZFail = or, this.stencilZPass = or, 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.allowOverride = !0, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
7607
7607
  }
7608
7608
  /**
7609
7609
  * Sets the alpha value to be used when running an alpha test. The material
@@ -7702,7 +7702,7 @@ class Gn extends tr {
7702
7702
  generator: "Material.toJSON"
7703
7703
  }
7704
7704
  };
7705
- n.uuid = this.uuid, n.type = this.type, this.name !== "" && (n.name = this.name), this.color && this.color.isColor && (n.color = this.color.getHex()), this.roughness !== void 0 && (n.roughness = this.roughness), this.metalness !== void 0 && (n.metalness = this.metalness), this.sheen !== void 0 && (n.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (n.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (n.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (n.emissive = this.emissive.getHex()), this.emissiveIntensity !== void 0 && this.emissiveIntensity !== 1 && (n.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (n.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (n.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (n.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (n.shininess = this.shininess), this.clearcoat !== void 0 && (n.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (n.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (n.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (n.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (n.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, n.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.dispersion !== void 0 && (n.dispersion = this.dispersion), this.iridescence !== void 0 && (n.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (n.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (n.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (n.iridescenceMap = this.iridescenceMap.toJSON(e).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (n.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(e).uuid), this.anisotropy !== void 0 && (n.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (n.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (n.anisotropyMap = this.anisotropyMap.toJSON(e).uuid), this.map && this.map.isTexture && (n.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (n.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (n.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (n.lightMap = this.lightMap.toJSON(e).uuid, n.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (n.aoMap = this.aoMap.toJSON(e).uuid, n.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (n.bumpMap = this.bumpMap.toJSON(e).uuid, n.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (n.normalMap = this.normalMap.toJSON(e).uuid, n.normalMapType = this.normalMapType, n.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (n.displacementMap = this.displacementMap.toJSON(e).uuid, n.displacementScale = this.displacementScale, n.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (n.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (n.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (n.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (n.specularMap = this.specularMap.toJSON(e).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (n.specularIntensityMap = this.specularIntensityMap.toJSON(e).uuid), this.specularColorMap && this.specularColorMap.isTexture && (n.specularColorMap = this.specularColorMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (n.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (n.combine = this.combine)), this.envMapRotation !== void 0 && (n.envMapRotation = this.envMapRotation.toArray()), this.envMapIntensity !== void 0 && (n.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (n.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (n.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (n.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (n.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (n.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (n.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (n.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (n.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (n.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (n.size = this.size), this.shadowSide !== null && (n.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (n.sizeAttenuation = this.sizeAttenuation), this.blending !== Lr && (n.blending = this.blending), this.side !== Qn && (n.side = this.side), this.vertexColors === !0 && (n.vertexColors = !0), this.opacity < 1 && (n.opacity = this.opacity), this.transparent === !0 && (n.transparent = !0), this.blendSrc !== Lo && (n.blendSrc = this.blendSrc), this.blendDst !== Do && (n.blendDst = this.blendDst), this.blendEquation !== ji && (n.blendEquation = this.blendEquation), this.blendSrcAlpha !== null && (n.blendSrcAlpha = this.blendSrcAlpha), this.blendDstAlpha !== null && (n.blendDstAlpha = this.blendDstAlpha), this.blendEquationAlpha !== null && (n.blendEquationAlpha = this.blendEquationAlpha), this.blendColor && this.blendColor.isColor && (n.blendColor = this.blendColor.getHex()), this.blendAlpha !== 0 && (n.blendAlpha = this.blendAlpha), this.depthFunc !== Ir && (n.depthFunc = this.depthFunc), this.depthTest === !1 && (n.depthTest = this.depthTest), this.depthWrite === !1 && (n.depthWrite = this.depthWrite), this.colorWrite === !1 && (n.colorWrite = this.colorWrite), this.stencilWriteMask !== 255 && (n.stencilWriteMask = this.stencilWriteMask), this.stencilFunc !== Ac && (n.stencilFunc = this.stencilFunc), this.stencilRef !== 0 && (n.stencilRef = this.stencilRef), this.stencilFuncMask !== 255 && (n.stencilFuncMask = this.stencilFuncMask), this.stencilFail !== or && (n.stencilFail = this.stencilFail), this.stencilZFail !== or && (n.stencilZFail = this.stencilZFail), this.stencilZPass !== or && (n.stencilZPass = this.stencilZPass), this.stencilWrite === !0 && (n.stencilWrite = this.stencilWrite), this.rotation !== void 0 && this.rotation !== 0 && (n.rotation = this.rotation), this.polygonOffset === !0 && (n.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (n.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (n.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth !== void 0 && this.linewidth !== 1 && (n.linewidth = this.linewidth), this.dashSize !== void 0 && (n.dashSize = this.dashSize), this.gapSize !== void 0 && (n.gapSize = this.gapSize), this.scale !== void 0 && (n.scale = this.scale), this.dithering === !0 && (n.dithering = !0), this.alphaTest > 0 && (n.alphaTest = this.alphaTest), this.alphaHash === !0 && (n.alphaHash = !0), this.alphaToCoverage === !0 && (n.alphaToCoverage = !0), this.premultipliedAlpha === !0 && (n.premultipliedAlpha = !0), this.forceSinglePass === !0 && (n.forceSinglePass = !0), this.wireframe === !0 && (n.wireframe = !0), this.wireframeLinewidth > 1 && (n.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== "round" && (n.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== "round" && (n.wireframeLinejoin = this.wireframeLinejoin), this.flatShading === !0 && (n.flatShading = !0), this.visible === !1 && (n.visible = !1), this.toneMapped === !1 && (n.toneMapped = !1), this.fog === !1 && (n.fog = !1), Object.keys(this.userData).length > 0 && (n.userData = this.userData);
7705
+ n.uuid = this.uuid, n.type = this.type, this.name !== "" && (n.name = this.name), this.color && this.color.isColor && (n.color = this.color.getHex()), this.roughness !== void 0 && (n.roughness = this.roughness), this.metalness !== void 0 && (n.metalness = this.metalness), this.sheen !== void 0 && (n.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (n.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (n.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (n.emissive = this.emissive.getHex()), this.emissiveIntensity !== void 0 && this.emissiveIntensity !== 1 && (n.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (n.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (n.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (n.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (n.shininess = this.shininess), this.clearcoat !== void 0 && (n.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (n.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (n.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (n.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (n.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, n.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.dispersion !== void 0 && (n.dispersion = this.dispersion), this.iridescence !== void 0 && (n.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (n.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (n.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (n.iridescenceMap = this.iridescenceMap.toJSON(e).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (n.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(e).uuid), this.anisotropy !== void 0 && (n.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (n.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (n.anisotropyMap = this.anisotropyMap.toJSON(e).uuid), this.map && this.map.isTexture && (n.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (n.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (n.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (n.lightMap = this.lightMap.toJSON(e).uuid, n.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (n.aoMap = this.aoMap.toJSON(e).uuid, n.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (n.bumpMap = this.bumpMap.toJSON(e).uuid, n.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (n.normalMap = this.normalMap.toJSON(e).uuid, n.normalMapType = this.normalMapType, n.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (n.displacementMap = this.displacementMap.toJSON(e).uuid, n.displacementScale = this.displacementScale, n.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (n.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (n.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (n.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (n.specularMap = this.specularMap.toJSON(e).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (n.specularIntensityMap = this.specularIntensityMap.toJSON(e).uuid), this.specularColorMap && this.specularColorMap.isTexture && (n.specularColorMap = this.specularColorMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (n.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (n.combine = this.combine)), this.envMapRotation !== void 0 && (n.envMapRotation = this.envMapRotation.toArray()), this.envMapIntensity !== void 0 && (n.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (n.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (n.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (n.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (n.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (n.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (n.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (n.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (n.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (n.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (n.size = this.size), this.shadowSide !== null && (n.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (n.sizeAttenuation = this.sizeAttenuation), this.blending !== Dr && (n.blending = this.blending), this.side !== Qn && (n.side = this.side), this.vertexColors === !0 && (n.vertexColors = !0), this.opacity < 1 && (n.opacity = this.opacity), this.transparent === !0 && (n.transparent = !0), this.blendSrc !== Lo && (n.blendSrc = this.blendSrc), this.blendDst !== Do && (n.blendDst = this.blendDst), this.blendEquation !== ji && (n.blendEquation = this.blendEquation), this.blendSrcAlpha !== null && (n.blendSrcAlpha = this.blendSrcAlpha), this.blendDstAlpha !== null && (n.blendDstAlpha = this.blendDstAlpha), this.blendEquationAlpha !== null && (n.blendEquationAlpha = this.blendEquationAlpha), this.blendColor && this.blendColor.isColor && (n.blendColor = this.blendColor.getHex()), this.blendAlpha !== 0 && (n.blendAlpha = this.blendAlpha), this.depthFunc !== Nr && (n.depthFunc = this.depthFunc), this.depthTest === !1 && (n.depthTest = this.depthTest), this.depthWrite === !1 && (n.depthWrite = this.depthWrite), this.colorWrite === !1 && (n.colorWrite = this.colorWrite), this.stencilWriteMask !== 255 && (n.stencilWriteMask = this.stencilWriteMask), this.stencilFunc !== Ac && (n.stencilFunc = this.stencilFunc), this.stencilRef !== 0 && (n.stencilRef = this.stencilRef), this.stencilFuncMask !== 255 && (n.stencilFuncMask = this.stencilFuncMask), this.stencilFail !== or && (n.stencilFail = this.stencilFail), this.stencilZFail !== or && (n.stencilZFail = this.stencilZFail), this.stencilZPass !== or && (n.stencilZPass = this.stencilZPass), this.stencilWrite === !0 && (n.stencilWrite = this.stencilWrite), this.rotation !== void 0 && this.rotation !== 0 && (n.rotation = this.rotation), this.polygonOffset === !0 && (n.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (n.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (n.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth !== void 0 && this.linewidth !== 1 && (n.linewidth = this.linewidth), this.dashSize !== void 0 && (n.dashSize = this.dashSize), this.gapSize !== void 0 && (n.gapSize = this.gapSize), this.scale !== void 0 && (n.scale = this.scale), this.dithering === !0 && (n.dithering = !0), this.alphaTest > 0 && (n.alphaTest = this.alphaTest), this.alphaHash === !0 && (n.alphaHash = !0), this.alphaToCoverage === !0 && (n.alphaToCoverage = !0), this.premultipliedAlpha === !0 && (n.premultipliedAlpha = !0), this.forceSinglePass === !0 && (n.forceSinglePass = !0), this.wireframe === !0 && (n.wireframe = !0), this.wireframeLinewidth > 1 && (n.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== "round" && (n.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== "round" && (n.wireframeLinejoin = this.wireframeLinejoin), this.flatShading === !0 && (n.flatShading = !0), this.visible === !1 && (n.visible = !1), this.toneMapped === !1 && (n.toneMapped = !1), this.fog === !1 && (n.fog = !1), Object.keys(this.userData).length > 0 && (n.userData = this.userData);
7706
7706
  function i(s) {
7707
7707
  const a = [];
7708
7708
  for (const o in s) {
@@ -7775,13 +7775,13 @@ class Li extends Gn {
7775
7775
  * by {@link Color#set}.
7776
7776
  */
7777
7777
  constructor(e) {
7778
- super(), this.isMeshBasicMaterial = !0, this.type = "MeshBasicMaterial", this.color = new ut(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 An(), this.combine = Aa, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.fog = !0, this.setValues(e);
7778
+ super(), this.isMeshBasicMaterial = !0, this.type = "MeshBasicMaterial", this.color = new ut(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 An(), this.combine = Ra, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.fog = !0, this.setValues(e);
7779
7779
  }
7780
7780
  copy(e) {
7781
7781
  return super.copy(e), this.color.copy(e.color), this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.specularMap = e.specularMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.envMapRotation.copy(e.envMapRotation), this.combine = e.combine, this.reflectivity = e.reflectivity, this.refractionRatio = e.refractionRatio, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.fog = e.fog, this;
7782
7782
  }
7783
7783
  }
7784
- const qt = /* @__PURE__ */ new k(), Cs = /* @__PURE__ */ new ht();
7784
+ const qt = /* @__PURE__ */ new k(), Ps = /* @__PURE__ */ new ht();
7785
7785
  let Op = 0;
7786
7786
  class Wt {
7787
7787
  /**
@@ -7881,7 +7881,7 @@ class Wt {
7881
7881
  applyMatrix3(e) {
7882
7882
  if (this.itemSize === 2)
7883
7883
  for (let t = 0, n = this.count; t < n; t++)
7884
- Cs.fromBufferAttribute(this, t), Cs.applyMatrix3(e), this.setXY(t, Cs.x, Cs.y);
7884
+ Ps.fromBufferAttribute(this, t), Ps.applyMatrix3(e), this.setXY(t, Ps.x, Ps.y);
7885
7885
  else if (this.itemSize === 3)
7886
7886
  for (let t = 0, n = this.count; t < n; t++)
7887
7887
  qt.fromBufferAttribute(this, t), qt.applyMatrix3(e), this.setXYZ(t, qt.x, qt.y, qt.z);
@@ -8154,7 +8154,7 @@ class yt extends Wt {
8154
8154
  }
8155
8155
  }
8156
8156
  let kp = 0;
8157
- const Cn = /* @__PURE__ */ new ct(), ro = /* @__PURE__ */ new Nt(), _r = /* @__PURE__ */ new k(), bn = /* @__PURE__ */ new yi(), Kr = /* @__PURE__ */ new yi(), Zt = /* @__PURE__ */ new k();
8157
+ const Cn = /* @__PURE__ */ new ct(), so = /* @__PURE__ */ new Nt(), _r = /* @__PURE__ */ new k(), bn = /* @__PURE__ */ new yi(), $r = /* @__PURE__ */ new yi(), Zt = /* @__PURE__ */ new k();
8158
8158
  class zt extends tr {
8159
8159
  /**
8160
8160
  * Constructs a new geometry.
@@ -8359,7 +8359,7 @@ class zt extends tr {
8359
8359
  * @return {BufferGeometry} A reference to this instance.
8360
8360
  */
8361
8361
  lookAt(e) {
8362
- return ro.lookAt(e), ro.updateMatrix(), this.applyMatrix4(ro.matrix), this;
8362
+ return so.lookAt(e), so.updateMatrix(), this.applyMatrix4(so.matrix), this;
8363
8363
  }
8364
8364
  /**
8365
8365
  * Center the geometry based on its bounding box.
@@ -8441,7 +8441,7 @@ class zt extends tr {
8441
8441
  if (bn.setFromBufferAttribute(e), t)
8442
8442
  for (let s = 0, a = t.length; s < a; s++) {
8443
8443
  const o = t[s];
8444
- Kr.setFromBufferAttribute(o), this.morphTargetsRelative ? (Zt.addVectors(bn.min, Kr.min), bn.expandByPoint(Zt), Zt.addVectors(bn.max, Kr.max), bn.expandByPoint(Zt)) : (bn.expandByPoint(Kr.min), bn.expandByPoint(Kr.max));
8444
+ $r.setFromBufferAttribute(o), this.morphTargetsRelative ? (Zt.addVectors(bn.min, $r.min), bn.expandByPoint(Zt), Zt.addVectors(bn.max, $r.max), bn.expandByPoint(Zt)) : (bn.expandByPoint($r.min), bn.expandByPoint($r.max));
8445
8445
  }
8446
8446
  bn.getCenter(n);
8447
8447
  let i = 0;
@@ -8684,7 +8684,7 @@ class zt extends tr {
8684
8684
  this.dispatchEvent({ type: "dispose" });
8685
8685
  }
8686
8686
  }
8687
- const Hc = /* @__PURE__ */ new ct(), Bi = /* @__PURE__ */ new ms(), Ps = /* @__PURE__ */ new xi(), Gc = /* @__PURE__ */ new k(), Ls = /* @__PURE__ */ new k(), Ds = /* @__PURE__ */ new k(), Us = /* @__PURE__ */ new k(), so = /* @__PURE__ */ new k(), Is = /* @__PURE__ */ new k(), Wc = /* @__PURE__ */ new k(), Ns = /* @__PURE__ */ new k();
8687
+ const Hc = /* @__PURE__ */ new ct(), Bi = /* @__PURE__ */ new gs(), Ls = /* @__PURE__ */ new xi(), Gc = /* @__PURE__ */ new k(), Ds = /* @__PURE__ */ new k(), Us = /* @__PURE__ */ new k(), Is = /* @__PURE__ */ new k(), ao = /* @__PURE__ */ new k(), Ns = /* @__PURE__ */ new k(), Wc = /* @__PURE__ */ new k(), Fs = /* @__PURE__ */ new k();
8688
8688
  class Ut extends Nt {
8689
8689
  /**
8690
8690
  * Constructs a new mesh.
@@ -8728,12 +8728,12 @@ class Ut extends Nt {
8728
8728
  t.fromBufferAttribute(i, e);
8729
8729
  const o = this.morphTargetInfluences;
8730
8730
  if (s && o) {
8731
- Is.set(0, 0, 0);
8731
+ Ns.set(0, 0, 0);
8732
8732
  for (let l = 0, c = s.length; l < c; l++) {
8733
8733
  const u = o[l], h = s[l];
8734
- u !== 0 && (so.fromBufferAttribute(h, e), a ? Is.addScaledVector(so, u) : Is.addScaledVector(so.sub(t), u));
8734
+ u !== 0 && (ao.fromBufferAttribute(h, e), a ? Ns.addScaledVector(ao, u) : Ns.addScaledVector(ao.sub(t), u));
8735
8735
  }
8736
- t.add(Is);
8736
+ t.add(Ns);
8737
8737
  }
8738
8738
  return t;
8739
8739
  }
@@ -8745,7 +8745,7 @@ class Ut extends Nt {
8745
8745
  */
8746
8746
  raycast(e, t) {
8747
8747
  const n = this.geometry, i = this.material, s = this.matrixWorld;
8748
- i !== void 0 && (n.boundingSphere === null && n.computeBoundingSphere(), Ps.copy(n.boundingSphere), Ps.applyMatrix4(s), Bi.copy(e.ray).recast(e.near), !(Ps.containsPoint(Bi.origin) === !1 && (Bi.intersectSphere(Ps, Gc) === null || Bi.origin.distanceToSquared(Gc) > (e.far - e.near) ** 2)) && (Hc.copy(s).invert(), Bi.copy(e.ray).applyMatrix4(Hc), !(n.boundingBox !== null && Bi.intersectsBox(n.boundingBox) === !1) && this._computeIntersections(e, t, Bi)));
8748
+ i !== void 0 && (n.boundingSphere === null && n.computeBoundingSphere(), Ls.copy(n.boundingSphere), Ls.applyMatrix4(s), Bi.copy(e.ray).recast(e.near), !(Ls.containsPoint(Bi.origin) === !1 && (Bi.intersectSphere(Ls, Gc) === null || Bi.origin.distanceToSquared(Gc) > (e.far - e.near) ** 2)) && (Hc.copy(s).invert(), Bi.copy(e.ray).applyMatrix4(Hc), !(n.boundingBox !== null && Bi.intersectsBox(n.boundingBox) === !1) && this._computeIntersections(e, t, Bi)));
8749
8749
  }
8750
8750
  _computeIntersections(e, t, n) {
8751
8751
  let i;
@@ -8756,14 +8756,14 @@ class Ut extends Nt {
8756
8756
  const g = d[m], p = a[g.materialIndex], S = Math.max(g.start, f.start), E = Math.min(o.count, Math.min(g.start + g.count, f.start + f.count));
8757
8757
  for (let y = S, I = E; y < I; y += 3) {
8758
8758
  const R = o.getX(y), C = o.getX(y + 1), D = o.getX(y + 2);
8759
- i = Fs(this, p, e, n, c, u, h, R, C, D), i && (i.faceIndex = Math.floor(y / 3), i.face.materialIndex = g.materialIndex, t.push(i));
8759
+ i = Os(this, p, e, n, c, u, h, R, C, D), i && (i.faceIndex = Math.floor(y / 3), i.face.materialIndex = g.materialIndex, t.push(i));
8760
8760
  }
8761
8761
  }
8762
8762
  else {
8763
8763
  const m = Math.max(0, f.start), _ = Math.min(o.count, f.start + f.count);
8764
8764
  for (let g = m, p = _; g < p; g += 3) {
8765
8765
  const S = o.getX(g), E = o.getX(g + 1), y = o.getX(g + 2);
8766
- i = Fs(this, a, e, n, c, u, h, S, E, y), i && (i.faceIndex = Math.floor(g / 3), t.push(i));
8766
+ i = Os(this, a, e, n, c, u, h, S, E, y), i && (i.faceIndex = Math.floor(g / 3), t.push(i));
8767
8767
  }
8768
8768
  }
8769
8769
  else if (l !== void 0)
@@ -8772,14 +8772,14 @@ class Ut extends Nt {
8772
8772
  const g = d[m], p = a[g.materialIndex], S = Math.max(g.start, f.start), E = Math.min(l.count, Math.min(g.start + g.count, f.start + f.count));
8773
8773
  for (let y = S, I = E; y < I; y += 3) {
8774
8774
  const R = y, C = y + 1, D = y + 2;
8775
- i = Fs(this, p, e, n, c, u, h, R, C, D), i && (i.faceIndex = Math.floor(y / 3), i.face.materialIndex = g.materialIndex, t.push(i));
8775
+ i = Os(this, p, e, n, c, u, h, R, C, D), i && (i.faceIndex = Math.floor(y / 3), i.face.materialIndex = g.materialIndex, t.push(i));
8776
8776
  }
8777
8777
  }
8778
8778
  else {
8779
8779
  const m = Math.max(0, f.start), _ = Math.min(l.count, f.start + f.count);
8780
8780
  for (let g = m, p = _; g < p; g += 3) {
8781
8781
  const S = g, E = g + 1, y = g + 2;
8782
- i = Fs(this, a, e, n, c, u, h, S, E, y), i && (i.faceIndex = Math.floor(g / 3), t.push(i));
8782
+ i = Os(this, a, e, n, c, u, h, S, E, y), i && (i.faceIndex = Math.floor(g / 3), t.push(i));
8783
8783
  }
8784
8784
  }
8785
8785
  }
@@ -8787,20 +8787,20 @@ class Ut extends Nt {
8787
8787
  function zp(r, e, t, n, i, s, a, o) {
8788
8788
  let l;
8789
8789
  if (e.side === _n ? l = n.intersectTriangle(a, s, i, !0, o) : l = n.intersectTriangle(i, s, a, e.side === Qn, o), l === null) return null;
8790
- Ns.copy(o), Ns.applyMatrix4(r.matrixWorld);
8791
- const c = t.ray.origin.distanceTo(Ns);
8790
+ Fs.copy(o), Fs.applyMatrix4(r.matrixWorld);
8791
+ const c = t.ray.origin.distanceTo(Fs);
8792
8792
  return c < t.near || c > t.far ? null : {
8793
8793
  distance: c,
8794
- point: Ns.clone(),
8794
+ point: Fs.clone(),
8795
8795
  object: r
8796
8796
  };
8797
8797
  }
8798
- function Fs(r, e, t, n, i, s, a, o, l, c) {
8799
- r.getVertexPosition(o, Ls), r.getVertexPosition(l, Ds), r.getVertexPosition(c, Us);
8800
- const u = zp(r, e, t, n, Ls, Ds, Us, Wc);
8798
+ function Os(r, e, t, n, i, s, a, o, l, c) {
8799
+ r.getVertexPosition(o, Ds), r.getVertexPosition(l, Us), r.getVertexPosition(c, Is);
8800
+ const u = zp(r, e, t, n, Ds, Us, Is, Wc);
8801
8801
  if (u) {
8802
8802
  const h = new k();
8803
- Un.getBarycoord(Wc, Ls, Ds, Us, h), i && (u.uv = Un.getInterpolatedAttribute(i, o, l, c, h, new ht())), s && (u.uv1 = Un.getInterpolatedAttribute(s, o, l, c, h, new ht())), a && (u.normal = Un.getInterpolatedAttribute(a, o, l, c, h, new k()), u.normal.dot(n.direction) > 0 && u.normal.multiplyScalar(-1));
8803
+ Un.getBarycoord(Wc, Ds, Us, Is, h), i && (u.uv = Un.getInterpolatedAttribute(i, o, l, c, h, new ht())), s && (u.uv1 = Un.getInterpolatedAttribute(s, o, l, c, h, new ht())), a && (u.normal = Un.getInterpolatedAttribute(a, o, l, c, h, new k()), u.normal.dot(n.direction) > 0 && u.normal.multiplyScalar(-1));
8804
8804
  const d = {
8805
8805
  a: o,
8806
8806
  b: l,
@@ -8808,11 +8808,11 @@ function Fs(r, e, t, n, i, s, a, o, l, c) {
8808
8808
  normal: new k(),
8809
8809
  materialIndex: 0
8810
8810
  };
8811
- Un.getNormal(Ls, Ds, Us, d.normal), u.face = d, u.barycoord = h;
8811
+ Un.getNormal(Ds, Us, Is, d.normal), u.face = d, u.barycoord = h;
8812
8812
  }
8813
8813
  return u;
8814
8814
  }
8815
- class Vr extends zt {
8815
+ class Hr extends zt {
8816
8816
  /**
8817
8817
  * Constructs a new box geometry.
8818
8818
  *
@@ -8867,10 +8867,10 @@ class Vr extends zt {
8867
8867
  * @return {BoxGeometry} A new instance.
8868
8868
  */
8869
8869
  static fromJSON(e) {
8870
- return new Vr(e.width, e.height, e.depth, e.widthSegments, e.heightSegments, e.depthSegments);
8870
+ return new Hr(e.width, e.height, e.depth, e.widthSegments, e.heightSegments, e.depthSegments);
8871
8871
  }
8872
8872
  }
8873
- function kr(r) {
8873
+ function zr(r) {
8874
8874
  const e = {};
8875
8875
  for (const t in r) {
8876
8876
  e[t] = {};
@@ -8884,7 +8884,7 @@ function kr(r) {
8884
8884
  function mn(r) {
8885
8885
  const e = {};
8886
8886
  for (let t = 0; t < r.length; t++) {
8887
- const n = kr(r[t]);
8887
+ const n = zr(r[t]);
8888
8888
  for (const i in n)
8889
8889
  e[i] = n[i];
8890
8890
  }
@@ -8900,7 +8900,7 @@ function zh(r) {
8900
8900
  const e = r.getRenderTarget();
8901
8901
  return e === null ? r.outputColorSpace : e.isXRRenderTarget === !0 ? e.texture.colorSpace : _t.workingColorSpace;
8902
8902
  }
8903
- const Hl = { clone: kr, merge: mn };
8903
+ const Hl = { clone: zr, merge: mn };
8904
8904
  var Hp = `void main() {
8905
8905
  gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
8906
8906
  }`, Gp = `void main() {
@@ -8929,7 +8929,7 @@ class vi extends Gn {
8929
8929
  }, this.index0AttributeName = void 0, this.uniformsNeedUpdate = !1, this.glslVersion = null, e !== void 0 && this.setValues(e);
8930
8930
  }
8931
8931
  copy(e) {
8932
- return super.copy(e), this.fragmentShader = e.fragmentShader, this.vertexShader = e.vertexShader, this.uniforms = kr(e.uniforms), this.uniformsGroups = Vp(e.uniformsGroups), this.defines = Object.assign({}, e.defines), this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.fog = e.fog, this.lights = e.lights, this.clipping = e.clipping, this.extensions = Object.assign({}, e.extensions), this.glslVersion = e.glslVersion, this;
8932
+ return super.copy(e), this.fragmentShader = e.fragmentShader, this.vertexShader = e.vertexShader, this.uniforms = zr(e.uniforms), this.uniformsGroups = Vp(e.uniformsGroups), this.defines = Object.assign({}, e.defines), this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.fog = e.fog, this.lights = e.lights, this.clipping = e.clipping, this.extensions = Object.assign({}, e.extensions), this.glslVersion = e.glslVersion, this;
8933
8933
  }
8934
8934
  toJSON(e) {
8935
8935
  const t = super.toJSON(e);
@@ -9026,7 +9026,7 @@ class cn extends Vh {
9026
9026
  */
9027
9027
  setFocalLength(e) {
9028
9028
  const t = 0.5 * this.getFilmHeight() / e;
9029
- this.fov = Br * 2 * Math.atan(t), this.updateProjectionMatrix();
9029
+ this.fov = kr * 2 * Math.atan(t), this.updateProjectionMatrix();
9030
9030
  }
9031
9031
  /**
9032
9032
  * Returns the focal length from the current {@link PerspectiveCamera#fov} and
@@ -9035,7 +9035,7 @@ class cn extends Vh {
9035
9035
  * @return {number} The computed focal length.
9036
9036
  */
9037
9037
  getFocalLength() {
9038
- const e = Math.tan(rs * 0.5 * this.fov);
9038
+ const e = Math.tan(ss * 0.5 * this.fov);
9039
9039
  return 0.5 * this.getFilmHeight() / e;
9040
9040
  }
9041
9041
  /**
@@ -9044,8 +9044,8 @@ class cn extends Vh {
9044
9044
  * @return {number} The effective FOV.
9045
9045
  */
9046
9046
  getEffectiveFOV() {
9047
- return Br * 2 * Math.atan(
9048
- Math.tan(rs * 0.5 * this.fov) / this.zoom
9047
+ return kr * 2 * Math.atan(
9048
+ Math.tan(ss * 0.5 * this.fov) / this.zoom
9049
9049
  );
9050
9050
  }
9051
9051
  /**
@@ -9153,7 +9153,7 @@ class cn extends Vh {
9153
9153
  */
9154
9154
  updateProjectionMatrix() {
9155
9155
  const e = this.near;
9156
- let t = e * Math.tan(rs * 0.5 * this.fov) / this.zoom, n = 2 * t, i = this.aspect * n, s = -0.5 * i;
9156
+ let t = e * Math.tan(ss * 0.5 * this.fov) / this.zoom, n = 2 * t, i = this.aspect * n, s = -0.5 * i;
9157
9157
  const a = this.view;
9158
9158
  if (this.view !== null && this.view.enabled) {
9159
9159
  const l = a.fullWidth, c = a.fullHeight;
@@ -9199,7 +9199,7 @@ class Wp extends Nt {
9199
9199
  for (const c of t) this.remove(c);
9200
9200
  if (e === mi)
9201
9201
  n.up.set(0, 1, 0), n.lookAt(1, 0, 0), i.up.set(0, 1, 0), i.lookAt(-1, 0, 0), s.up.set(0, 0, -1), s.lookAt(0, 1, 0), a.up.set(0, 0, 1), a.lookAt(0, -1, 0), o.up.set(0, 1, 0), o.lookAt(0, 0, 1), l.up.set(0, 1, 0), l.lookAt(0, 0, -1);
9202
- else if (e === Ma)
9202
+ else if (e === Sa)
9203
9203
  n.up.set(0, -1, 0), n.lookAt(-1, 0, 0), i.up.set(0, -1, 0), i.lookAt(1, 0, 0), s.up.set(0, 0, 1), s.lookAt(0, 1, 0), a.up.set(0, 0, -1), a.lookAt(0, -1, 0), o.up.set(0, -1, 0), o.lookAt(0, 0, 1), l.up.set(0, -1, 0), l.lookAt(0, 0, -1);
9204
9204
  else
9205
9205
  throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: " + e);
@@ -9238,7 +9238,7 @@ class Hh extends sn {
9238
9238
  * @param {number} [anisotropy=Texture.DEFAULT_ANISOTROPY] - The anisotropy value.
9239
9239
  * @param {string} [colorSpace=NoColorSpace] - The color space value.
9240
9240
  */
9241
- constructor(e = [], t = Nr, n, i, s, a, o, l, c, u) {
9241
+ constructor(e = [], t = Fr, n, i, s, a, o, l, c, u) {
9242
9242
  super(e, t, n, i, s, a, o, l, c, u), this.isCubeTexture = !0, this.flipY = !1;
9243
9243
  }
9244
9244
  /**
@@ -9321,9 +9321,9 @@ class Xp extends er {
9321
9321
  }
9322
9322
  `
9323
9323
  )
9324
- }, i = new Vr(5, 5, 5), s = new vi({
9324
+ }, i = new Hr(5, 5, 5), s = new vi({
9325
9325
  name: "CubemapFromEquirect",
9326
- uniforms: kr(n.uniforms),
9326
+ uniforms: zr(n.uniforms),
9327
9327
  vertexShader: n.vertexShader,
9328
9328
  fragmentShader: n.fragmentShader,
9329
9329
  side: _n,
@@ -9354,7 +9354,7 @@ class gi extends Nt {
9354
9354
  }
9355
9355
  }
9356
9356
  const qp = { type: "move" };
9357
- class ao {
9357
+ class oo {
9358
9358
  /**
9359
9359
  * Constructs a new XR controller.
9360
9360
  */
@@ -9878,7 +9878,7 @@ class Zn {
9878
9878
  };
9879
9879
  }
9880
9880
  }
9881
- class Ca extends Gn {
9881
+ class Pa extends Gn {
9882
9882
  /**
9883
9883
  * Constructs a new sprite material.
9884
9884
  *
@@ -9896,14 +9896,14 @@ class Ca extends Gn {
9896
9896
  }
9897
9897
  }
9898
9898
  let xr;
9899
- const $r = /* @__PURE__ */ new k(), Mr = /* @__PURE__ */ new k(), Sr = /* @__PURE__ */ new k(), br = /* @__PURE__ */ new ht(), Jr = /* @__PURE__ */ new ht(), Xh = /* @__PURE__ */ new ct(), Os = /* @__PURE__ */ new k(), Zr = /* @__PURE__ */ new k(), Bs = /* @__PURE__ */ new k(), jc = /* @__PURE__ */ new ht(), oo = /* @__PURE__ */ new ht(), Yc = /* @__PURE__ */ new ht();
9899
+ const Jr = /* @__PURE__ */ new k(), Mr = /* @__PURE__ */ new k(), Sr = /* @__PURE__ */ new k(), br = /* @__PURE__ */ new ht(), Zr = /* @__PURE__ */ new ht(), Xh = /* @__PURE__ */ new ct(), Bs = /* @__PURE__ */ new k(), Qr = /* @__PURE__ */ new k(), ks = /* @__PURE__ */ new k(), jc = /* @__PURE__ */ new ht(), lo = /* @__PURE__ */ new ht(), Yc = /* @__PURE__ */ new ht();
9900
9900
  class Gl extends Nt {
9901
9901
  /**
9902
9902
  * Constructs a new sprite.
9903
9903
  *
9904
9904
  * @param {SpriteMaterial} [material] - The sprite material.
9905
9905
  */
9906
- constructor(e = new Ca()) {
9906
+ constructor(e = new Pa()) {
9907
9907
  if (super(), this.isSprite = !0, this.type = "Sprite", xr === void 0) {
9908
9908
  xr = new zt();
9909
9909
  const t = new Float32Array([
@@ -9944,15 +9944,15 @@ class Gl extends Nt {
9944
9944
  let i, s;
9945
9945
  n !== 0 && (s = Math.cos(n), i = Math.sin(n));
9946
9946
  const a = this.center;
9947
- ks(Os.set(-0.5, -0.5, 0), Sr, a, Mr, i, s), ks(Zr.set(0.5, -0.5, 0), Sr, a, Mr, i, s), ks(Bs.set(0.5, 0.5, 0), Sr, a, Mr, i, s), jc.set(0, 0), oo.set(1, 0), Yc.set(1, 1);
9948
- let o = e.ray.intersectTriangle(Os, Zr, Bs, !1, $r);
9949
- if (o === null && (ks(Zr.set(-0.5, 0.5, 0), Sr, a, Mr, i, s), oo.set(0, 1), o = e.ray.intersectTriangle(Os, Bs, Zr, !1, $r), o === null))
9947
+ zs(Bs.set(-0.5, -0.5, 0), Sr, a, Mr, i, s), zs(Qr.set(0.5, -0.5, 0), Sr, a, Mr, i, s), zs(ks.set(0.5, 0.5, 0), Sr, a, Mr, i, s), jc.set(0, 0), lo.set(1, 0), Yc.set(1, 1);
9948
+ let o = e.ray.intersectTriangle(Bs, Qr, ks, !1, Jr);
9949
+ if (o === null && (zs(Qr.set(-0.5, 0.5, 0), Sr, a, Mr, i, s), lo.set(0, 1), o = e.ray.intersectTriangle(Bs, ks, Qr, !1, Jr), o === null))
9950
9950
  return;
9951
- const l = e.ray.origin.distanceTo($r);
9951
+ const l = e.ray.origin.distanceTo(Jr);
9952
9952
  l < e.near || l > e.far || t.push({
9953
9953
  distance: l,
9954
- point: $r.clone(),
9955
- uv: Un.getInterpolation($r, Os, Zr, Bs, jc, oo, Yc, new ht()),
9954
+ point: Jr.clone(),
9955
+ uv: Un.getInterpolation(Jr, Bs, Qr, ks, jc, lo, Yc, new ht()),
9956
9956
  face: null,
9957
9957
  object: this
9958
9958
  });
@@ -9961,10 +9961,10 @@ class Gl extends Nt {
9961
9961
  return super.copy(e, t), e.center !== void 0 && this.center.copy(e.center), this.material = e.material, this;
9962
9962
  }
9963
9963
  }
9964
- function ks(r, e, t, n, i, s) {
9965
- br.subVectors(r, t).addScalar(0.5).multiply(n), i !== void 0 ? (Jr.x = s * br.x - i * br.y, Jr.y = i * br.x + s * br.y) : Jr.copy(br), r.copy(e), r.x += Jr.x, r.y += Jr.y, r.applyMatrix4(Xh);
9964
+ function zs(r, e, t, n, i, s) {
9965
+ br.subVectors(r, t).addScalar(0.5).multiply(n), i !== void 0 ? (Zr.x = s * br.x - i * br.y, Zr.y = i * br.x + s * br.y) : Zr.copy(br), r.copy(e), r.x += Zr.x, r.y += Zr.y, r.applyMatrix4(Xh);
9966
9966
  }
9967
- const Kc = /* @__PURE__ */ new k(), $c = /* @__PURE__ */ new xt(), Jc = /* @__PURE__ */ new xt(), jp = /* @__PURE__ */ new k(), Zc = /* @__PURE__ */ new ct(), zs = /* @__PURE__ */ new k(), lo = /* @__PURE__ */ new xi(), Qc = /* @__PURE__ */ new ct(), co = /* @__PURE__ */ new ms();
9967
+ const Kc = /* @__PURE__ */ new k(), $c = /* @__PURE__ */ new xt(), Jc = /* @__PURE__ */ new xt(), jp = /* @__PURE__ */ new k(), Zc = /* @__PURE__ */ new ct(), Vs = /* @__PURE__ */ new k(), co = /* @__PURE__ */ new xi(), Qc = /* @__PURE__ */ new ct(), uo = /* @__PURE__ */ new gs();
9968
9968
  class Yp extends Ut {
9969
9969
  /**
9970
9970
  * Constructs a new skinned mesh.
@@ -9986,7 +9986,7 @@ class Yp extends Ut {
9986
9986
  this.boundingBox === null && (this.boundingBox = new yi()), this.boundingBox.makeEmpty();
9987
9987
  const t = e.getAttribute("position");
9988
9988
  for (let n = 0; n < t.count; n++)
9989
- this.getVertexPosition(n, zs), this.boundingBox.expandByPoint(zs);
9989
+ this.getVertexPosition(n, Vs), this.boundingBox.expandByPoint(Vs);
9990
9990
  }
9991
9991
  /**
9992
9992
  * Computes the bounding sphere of the skinned mesh, and updates {@link SkinnedMesh#boundingSphere}.
@@ -9999,14 +9999,14 @@ class Yp extends Ut {
9999
9999
  this.boundingSphere === null && (this.boundingSphere = new xi()), this.boundingSphere.makeEmpty();
10000
10000
  const t = e.getAttribute("position");
10001
10001
  for (let n = 0; n < t.count; n++)
10002
- this.getVertexPosition(n, zs), this.boundingSphere.expandByPoint(zs);
10002
+ this.getVertexPosition(n, Vs), this.boundingSphere.expandByPoint(Vs);
10003
10003
  }
10004
10004
  copy(e, t) {
10005
10005
  return super.copy(e, t), this.bindMode = e.bindMode, this.bindMatrix.copy(e.bindMatrix), this.bindMatrixInverse.copy(e.bindMatrixInverse), this.skeleton = e.skeleton, e.boundingBox !== null && (this.boundingBox = e.boundingBox.clone()), e.boundingSphere !== null && (this.boundingSphere = e.boundingSphere.clone()), this;
10006
10006
  }
10007
10007
  raycast(e, t) {
10008
10008
  const n = this.material, i = this.matrixWorld;
10009
- n !== void 0 && (this.boundingSphere === null && this.computeBoundingSphere(), lo.copy(this.boundingSphere), lo.applyMatrix4(i), e.ray.intersectsSphere(lo) !== !1 && (Qc.copy(i).invert(), co.copy(e.ray).applyMatrix4(Qc), !(this.boundingBox !== null && co.intersectsBox(this.boundingBox) === !1) && this._computeIntersections(e, t, co)));
10009
+ n !== void 0 && (this.boundingSphere === null && this.computeBoundingSphere(), co.copy(this.boundingSphere), co.applyMatrix4(i), e.ray.intersectsSphere(co) !== !1 && (Qc.copy(i).invert(), uo.copy(e.ray).applyMatrix4(Qc), !(this.boundingBox !== null && uo.intersectsBox(this.boundingBox) === !1) && this._computeIntersections(e, t, uo)));
10010
10010
  }
10011
10011
  getVertexPosition(e, t) {
10012
10012
  return super.getVertexPosition(e, t), this.applyBoneTransform(e, t), t;
@@ -10240,7 +10240,7 @@ class Wl {
10240
10240
  return e;
10241
10241
  }
10242
10242
  }
10243
- const uo = /* @__PURE__ */ new k(), $p = /* @__PURE__ */ new k(), Jp = /* @__PURE__ */ new mt();
10243
+ const ho = /* @__PURE__ */ new k(), $p = /* @__PURE__ */ new k(), Jp = /* @__PURE__ */ new mt();
10244
10244
  class Wi {
10245
10245
  /**
10246
10246
  * Constructs a new plane.
@@ -10296,7 +10296,7 @@ class Wi {
10296
10296
  * @return {Plane} A reference to this plane.
10297
10297
  */
10298
10298
  setFromCoplanarPoints(e, t, n) {
10299
- const i = uo.subVectors(n, t).cross($p.subVectors(e, t)).normalize();
10299
+ const i = ho.subVectors(n, t).cross($p.subVectors(e, t)).normalize();
10300
10300
  return this.setFromNormalAndCoplanarPoint(i, e), this;
10301
10301
  }
10302
10302
  /**
@@ -10363,7 +10363,7 @@ class Wi {
10363
10363
  * @return {?Vector3} The intersection point.
10364
10364
  */
10365
10365
  intersectLine(e, t) {
10366
- const n = e.delta(uo), i = this.normal.dot(n);
10366
+ const n = e.delta(ho), i = this.normal.dot(n);
10367
10367
  if (i === 0)
10368
10368
  return this.distanceToPoint(e.start) === 0 ? t.copy(e.start) : null;
10369
10369
  const s = -(e.start.dot(this.normal) + this.constant) / i;
@@ -10420,7 +10420,7 @@ class Wi {
10420
10420
  * @return {Plane} A reference to this plane.
10421
10421
  */
10422
10422
  applyMatrix4(e, t) {
10423
- const n = t || Jp.getNormalMatrix(e), i = this.coplanarPoint(uo).applyMatrix4(e), s = this.normal.applyMatrix3(n).normalize();
10423
+ const n = t || Jp.getNormalMatrix(e), i = this.coplanarPoint(ho).applyMatrix4(e), s = this.normal.applyMatrix3(n).normalize();
10424
10424
  return this.constant = -i.dot(s), this;
10425
10425
  }
10426
10426
  /**
@@ -10451,7 +10451,7 @@ class Wi {
10451
10451
  return new this.constructor().copy(this);
10452
10452
  }
10453
10453
  }
10454
- const ki = /* @__PURE__ */ new xi(), Vs = /* @__PURE__ */ new k();
10454
+ const ki = /* @__PURE__ */ new xi(), Hs = /* @__PURE__ */ new k();
10455
10455
  class Xl {
10456
10456
  /**
10457
10457
  * Constructs a new frustum.
@@ -10504,7 +10504,7 @@ class Xl {
10504
10504
  const n = this.planes, i = e.elements, s = i[0], a = i[1], o = i[2], l = i[3], c = i[4], u = i[5], h = i[6], d = i[7], f = i[8], m = i[9], _ = i[10], g = i[11], p = i[12], S = i[13], E = i[14], y = i[15];
10505
10505
  if (n[0].setComponents(l - s, d - c, g - f, y - p).normalize(), n[1].setComponents(l + s, d + c, g + f, y + p).normalize(), n[2].setComponents(l + a, d + u, g + m, y + S).normalize(), n[3].setComponents(l - a, d - u, g - m, y - S).normalize(), n[4].setComponents(l - o, d - h, g - _, y - E).normalize(), t === mi)
10506
10506
  n[5].setComponents(l + o, d + h, g + _, y + E).normalize();
10507
- else if (t === Ma)
10507
+ else if (t === Sa)
10508
10508
  n[5].setComponents(o, h, _, E).normalize();
10509
10509
  else
10510
10510
  throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: " + t);
@@ -10559,7 +10559,7 @@ class Xl {
10559
10559
  const t = this.planes;
10560
10560
  for (let n = 0; n < 6; n++) {
10561
10561
  const i = t[n];
10562
- if (Vs.x = i.normal.x > 0 ? e.max.x : e.min.x, Vs.y = i.normal.y > 0 ? e.max.y : e.min.y, Vs.z = i.normal.z > 0 ? e.max.z : e.min.z, i.distanceToPoint(Vs) < 0)
10562
+ if (Hs.x = i.normal.x > 0 ? e.max.x : e.min.x, Hs.y = i.normal.y > 0 ? e.max.y : e.min.y, Hs.z = i.normal.z > 0 ? e.max.z : e.min.z, i.distanceToPoint(Hs) < 0)
10563
10563
  return !1;
10564
10564
  }
10565
10565
  return !0;
@@ -10603,7 +10603,7 @@ class $i extends Gn {
10603
10603
  return super.copy(e), this.color.copy(e.color), this.map = e.map, this.linewidth = e.linewidth, this.linecap = e.linecap, this.linejoin = e.linejoin, this.fog = e.fog, this;
10604
10604
  }
10605
10605
  }
10606
- const Sa = /* @__PURE__ */ new k(), ba = /* @__PURE__ */ new k(), tu = /* @__PURE__ */ new ct(), Qr = /* @__PURE__ */ new ms(), Hs = /* @__PURE__ */ new xi(), ho = /* @__PURE__ */ new k(), nu = /* @__PURE__ */ new k();
10606
+ const ba = /* @__PURE__ */ new k(), Ea = /* @__PURE__ */ new k(), tu = /* @__PURE__ */ new ct(), es = /* @__PURE__ */ new gs(), Gs = /* @__PURE__ */ new xi(), fo = /* @__PURE__ */ new k(), nu = /* @__PURE__ */ new k();
10607
10607
  class ql extends Nt {
10608
10608
  /**
10609
10609
  * Constructs a new line.
@@ -10629,7 +10629,7 @@ class ql extends Nt {
10629
10629
  if (e.index === null) {
10630
10630
  const t = e.attributes.position, n = [0];
10631
10631
  for (let i = 1, s = t.count; i < s; i++)
10632
- Sa.fromBufferAttribute(t, i - 1), ba.fromBufferAttribute(t, i), n[i] = n[i - 1], n[i] += Sa.distanceTo(ba);
10632
+ ba.fromBufferAttribute(t, i - 1), Ea.fromBufferAttribute(t, i), n[i] = n[i - 1], n[i] += ba.distanceTo(Ea);
10633
10633
  e.setAttribute("lineDistance", new yt(n, 1));
10634
10634
  } else
10635
10635
  console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");
@@ -10643,27 +10643,27 @@ class ql extends Nt {
10643
10643
  */
10644
10644
  raycast(e, t) {
10645
10645
  const n = this.geometry, i = this.matrixWorld, s = e.params.Line.threshold, a = n.drawRange;
10646
- if (n.boundingSphere === null && n.computeBoundingSphere(), Hs.copy(n.boundingSphere), Hs.applyMatrix4(i), Hs.radius += s, e.ray.intersectsSphere(Hs) === !1) return;
10647
- tu.copy(i).invert(), Qr.copy(e.ray).applyMatrix4(tu);
10646
+ if (n.boundingSphere === null && n.computeBoundingSphere(), Gs.copy(n.boundingSphere), Gs.applyMatrix4(i), Gs.radius += s, e.ray.intersectsSphere(Gs) === !1) return;
10647
+ tu.copy(i).invert(), es.copy(e.ray).applyMatrix4(tu);
10648
10648
  const o = s / ((this.scale.x + this.scale.y + this.scale.z) / 3), l = o * o, c = this.isLineSegments ? 2 : 1, u = n.index, d = n.attributes.position;
10649
10649
  if (u !== null) {
10650
10650
  const f = Math.max(0, a.start), m = Math.min(u.count, a.start + a.count);
10651
10651
  for (let _ = f, g = m - 1; _ < g; _ += c) {
10652
- const p = u.getX(_), S = u.getX(_ + 1), E = Gs(this, e, Qr, l, p, S, _);
10652
+ const p = u.getX(_), S = u.getX(_ + 1), E = Ws(this, e, es, l, p, S, _);
10653
10653
  E && t.push(E);
10654
10654
  }
10655
10655
  if (this.isLineLoop) {
10656
- const _ = u.getX(m - 1), g = u.getX(f), p = Gs(this, e, Qr, l, _, g, m - 1);
10656
+ const _ = u.getX(m - 1), g = u.getX(f), p = Ws(this, e, es, l, _, g, m - 1);
10657
10657
  p && t.push(p);
10658
10658
  }
10659
10659
  } else {
10660
10660
  const f = Math.max(0, a.start), m = Math.min(d.count, a.start + a.count);
10661
10661
  for (let _ = f, g = m - 1; _ < g; _ += c) {
10662
- const p = Gs(this, e, Qr, l, _, _ + 1, _);
10662
+ const p = Ws(this, e, es, l, _, _ + 1, _);
10663
10663
  p && t.push(p);
10664
10664
  }
10665
10665
  if (this.isLineLoop) {
10666
- const _ = Gs(this, e, Qr, l, m - 1, f, m - 1);
10666
+ const _ = Ws(this, e, es, l, m - 1, f, m - 1);
10667
10667
  _ && t.push(_);
10668
10668
  }
10669
10669
  }
@@ -10686,11 +10686,11 @@ class ql extends Nt {
10686
10686
  }
10687
10687
  }
10688
10688
  }
10689
- function Gs(r, e, t, n, i, s, a) {
10689
+ function Ws(r, e, t, n, i, s, a) {
10690
10690
  const o = r.geometry.attributes.position;
10691
- if (Sa.fromBufferAttribute(o, i), ba.fromBufferAttribute(o, s), t.distanceSqToSegment(Sa, ba, ho, nu) > n) return;
10692
- ho.applyMatrix4(r.matrixWorld);
10693
- const c = e.ray.origin.distanceTo(ho);
10691
+ if (ba.fromBufferAttribute(o, i), Ea.fromBufferAttribute(o, s), t.distanceSqToSegment(ba, Ea, fo, nu) > n) return;
10692
+ fo.applyMatrix4(r.matrixWorld);
10693
+ const c = e.ray.origin.distanceTo(fo);
10694
10694
  if (!(c < e.near || c > e.far))
10695
10695
  return {
10696
10696
  distance: c,
@@ -10744,8 +10744,8 @@ class Ki extends Gn {
10744
10744
  return super.copy(e), this.color.copy(e.color), this.map = e.map, this.alphaMap = e.alphaMap, this.size = e.size, this.sizeAttenuation = e.sizeAttenuation, this.fog = e.fog, this;
10745
10745
  }
10746
10746
  }
10747
- const su = /* @__PURE__ */ new ct(), vl = /* @__PURE__ */ new ms(), Ws = /* @__PURE__ */ new xi(), Xs = /* @__PURE__ */ new k();
10748
- class as extends Nt {
10747
+ const su = /* @__PURE__ */ new ct(), vl = /* @__PURE__ */ new gs(), Xs = /* @__PURE__ */ new xi(), qs = /* @__PURE__ */ new k();
10748
+ class os extends Nt {
10749
10749
  /**
10750
10750
  * Constructs a new point cloud.
10751
10751
  *
@@ -10766,19 +10766,19 @@ class as extends Nt {
10766
10766
  */
10767
10767
  raycast(e, t) {
10768
10768
  const n = this.geometry, i = this.matrixWorld, s = e.params.Points.threshold, a = n.drawRange;
10769
- if (n.boundingSphere === null && n.computeBoundingSphere(), Ws.copy(n.boundingSphere), Ws.applyMatrix4(i), Ws.radius += s, e.ray.intersectsSphere(Ws) === !1) return;
10769
+ if (n.boundingSphere === null && n.computeBoundingSphere(), Xs.copy(n.boundingSphere), Xs.applyMatrix4(i), Xs.radius += s, e.ray.intersectsSphere(Xs) === !1) return;
10770
10770
  su.copy(i).invert(), vl.copy(e.ray).applyMatrix4(su);
10771
10771
  const o = s / ((this.scale.x + this.scale.y + this.scale.z) / 3), l = o * o, c = n.index, h = n.attributes.position;
10772
10772
  if (c !== null) {
10773
10773
  const d = Math.max(0, a.start), f = Math.min(c.count, a.start + a.count);
10774
10774
  for (let m = d, _ = f; m < _; m++) {
10775
10775
  const g = c.getX(m);
10776
- Xs.fromBufferAttribute(h, g), au(Xs, g, l, i, e, t, this);
10776
+ qs.fromBufferAttribute(h, g), au(qs, g, l, i, e, t, this);
10777
10777
  }
10778
10778
  } else {
10779
10779
  const d = Math.max(0, a.start), f = Math.min(h.count, a.start + a.count);
10780
10780
  for (let m = d, _ = f; m < _; m++)
10781
- Xs.fromBufferAttribute(h, m), au(Xs, m, l, i, e, t, this);
10781
+ qs.fromBufferAttribute(h, m), au(qs, m, l, i, e, t, this);
10782
10782
  }
10783
10783
  }
10784
10784
  /**
@@ -10852,8 +10852,8 @@ class Yh extends sn {
10852
10852
  * @param {number} [format=DepthFormat] - The texture format.
10853
10853
  * @param {number} [depth=1] - The depth of the texture.
10854
10854
  */
10855
- constructor(e, t, n = Qi, i, s, a, o = wn, l = wn, c, u = us, h = 1) {
10856
- if (u !== us && u !== hs)
10855
+ constructor(e, t, n = Qi, i, s, a, o = wn, l = wn, c, u = hs, h = 1) {
10856
+ if (u !== hs && u !== ds)
10857
10857
  throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");
10858
10858
  const d = { width: e, height: t, depth: h };
10859
10859
  super(d, i, s, a, o, l, u, n, c), this.isDepthTexture = !0, this.flipY = !1, this.generateMipmaps = !1, this.compareFunction = null;
@@ -10949,7 +10949,7 @@ class jl extends zt {
10949
10949
  return new jl(e.radiusTop, e.radiusBottom, e.height, e.radialSegments, e.heightSegments, e.openEnded, e.thetaStart, e.thetaLength);
10950
10950
  }
10951
10951
  }
10952
- class Pa extends zt {
10952
+ class La extends zt {
10953
10953
  /**
10954
10954
  * Constructs a new plane geometry.
10955
10955
  *
@@ -10991,10 +10991,10 @@ class Pa extends zt {
10991
10991
  * @return {PlaneGeometry} A new instance.
10992
10992
  */
10993
10993
  static fromJSON(e) {
10994
- return new Pa(e.width, e.height, e.widthSegments, e.heightSegments);
10994
+ return new La(e.width, e.height, e.widthSegments, e.heightSegments);
10995
10995
  }
10996
10996
  }
10997
- class La extends zt {
10997
+ class Da extends zt {
10998
10998
  /**
10999
10999
  * Constructs a new sphere geometry.
11000
11000
  *
@@ -11047,7 +11047,7 @@ class La extends zt {
11047
11047
  * @return {SphereGeometry} A new instance.
11048
11048
  */
11049
11049
  static fromJSON(e) {
11050
- return new La(e.radius, e.widthSegments, e.heightSegments, e.phiStart, e.phiLength, e.thetaStart, e.thetaLength);
11050
+ return new Da(e.radius, e.widthSegments, e.heightSegments, e.phiStart, e.phiLength, e.thetaStart, e.thetaLength);
11051
11051
  }
11052
11052
  }
11053
11053
  class Qp extends zt {
@@ -11103,7 +11103,7 @@ class En extends Gn {
11103
11103
  * by {@link Color#set}.
11104
11104
  */
11105
11105
  constructor(e) {
11106
- super(), this.isMeshPhongMaterial = !0, this.type = "MeshPhongMaterial", this.color = new ut(16777215), this.specular = new ut(1118481), this.shininess = 30, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new ut(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = Bl, this.normalScale = new ht(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new An(), this.combine = Aa, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(e);
11106
+ super(), this.isMeshPhongMaterial = !0, this.type = "MeshPhongMaterial", this.color = new ut(16777215), this.specular = new ut(1118481), this.shininess = 30, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new ut(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = Bl, this.normalScale = new ht(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new An(), this.combine = Ra, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(e);
11107
11107
  }
11108
11108
  copy(e) {
11109
11109
  return super.copy(e), this.color.copy(e.color), this.specular.copy(e.specular), this.shininess = e.shininess, this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.specularMap = e.specularMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.envMapRotation.copy(e.envMapRotation), this.combine = e.combine, this.reflectivity = e.reflectivity, this.refractionRatio = e.refractionRatio, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.flatShading = e.flatShading, this.fog = e.fog, this;
@@ -11120,7 +11120,7 @@ class em extends Gn {
11120
11120
  * by {@link Color#set}.
11121
11121
  */
11122
11122
  constructor(e) {
11123
- super(), this.isMeshLambertMaterial = !0, this.type = "MeshLambertMaterial", this.color = new ut(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new ut(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = Bl, this.normalScale = new ht(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new An(), this.combine = Aa, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(e);
11123
+ super(), this.isMeshLambertMaterial = !0, this.type = "MeshLambertMaterial", this.color = new ut(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new ut(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = Bl, this.normalScale = new ht(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new An(), this.combine = Ra, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(e);
11124
11124
  }
11125
11125
  copy(e) {
11126
11126
  return super.copy(e), this.color.copy(e.color), this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.specularMap = e.specularMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.envMapRotation.copy(e.envMapRotation), this.combine = e.combine, this.reflectivity = e.reflectivity, this.refractionRatio = e.refractionRatio, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.flatShading = e.flatShading, this.fog = e.fog, this;
@@ -11160,7 +11160,7 @@ class nm extends Gn {
11160
11160
  return super.copy(e), this.map = e.map, this.alphaMap = e.alphaMap, this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this;
11161
11161
  }
11162
11162
  }
11163
- function qs(r, e) {
11163
+ function js(r, e) {
11164
11164
  return !r || r.constructor === e ? r : typeof e.BYTES_PER_ELEMENT == "number" ? new e(r) : Array.prototype.slice.call(r);
11165
11165
  }
11166
11166
  function im(r) {
@@ -11203,7 +11203,7 @@ function Kh(r, e, t, n) {
11203
11203
  a = s[n], a !== void 0 && (e.push(s.time), t.push(a)), s = r[i++];
11204
11204
  while (s !== void 0);
11205
11205
  }
11206
- class Da {
11206
+ class Ua {
11207
11207
  /**
11208
11208
  * Constructs a new interpolant.
11209
11209
  *
@@ -11312,7 +11312,7 @@ class Da {
11312
11312
  intervalChanged_() {
11313
11313
  }
11314
11314
  }
11315
- class sm extends Da {
11315
+ class sm extends Ua {
11316
11316
  /**
11317
11317
  * Constructs a new cubic interpolant.
11318
11318
  *
@@ -11362,7 +11362,7 @@ class sm extends Da {
11362
11362
  return s;
11363
11363
  }
11364
11364
  }
11365
- class am extends Da {
11365
+ class am extends Ua {
11366
11366
  /**
11367
11367
  * Constructs a new linear interpolant.
11368
11368
  *
@@ -11381,7 +11381,7 @@ class am extends Da {
11381
11381
  return s;
11382
11382
  }
11383
11383
  }
11384
- class om extends Da {
11384
+ class om extends Ua {
11385
11385
  /**
11386
11386
  * Constructs a new discrete interpolant.
11387
11387
  *
@@ -11409,7 +11409,7 @@ class Xn {
11409
11409
  constructor(e, t, n, i) {
11410
11410
  if (e === void 0) throw new Error("THREE.KeyframeTrack: track name is undefined");
11411
11411
  if (t === void 0 || t.length === 0) throw new Error("THREE.KeyframeTrack: no keyframes in track named " + e);
11412
- this.name = e, this.times = qs(t, this.TimeBufferType), this.values = qs(n, this.ValueBufferType), this.setInterpolation(i || this.DefaultInterpolation);
11412
+ this.name = e, this.times = js(t, this.TimeBufferType), this.values = js(n, this.ValueBufferType), this.setInterpolation(i || this.DefaultInterpolation);
11413
11413
  }
11414
11414
  /**
11415
11415
  * Converts the keyframe track to JSON.
@@ -11426,8 +11426,8 @@ class Xn {
11426
11426
  else {
11427
11427
  n = {
11428
11428
  name: e.name,
11429
- times: qs(e.times, Array),
11430
- values: qs(e.values, Array)
11429
+ times: js(e.times, Array),
11430
+ values: js(e.values, Array)
11431
11431
  };
11432
11432
  const i = e.getInterpolation();
11433
11433
  i !== e.DefaultInterpolation && (n.interpolation = i);
@@ -11473,13 +11473,13 @@ class Xn {
11473
11473
  setInterpolation(e) {
11474
11474
  let t;
11475
11475
  switch (e) {
11476
- case ya:
11476
+ case xa:
11477
11477
  t = this.InterpolantFactoryMethodDiscrete;
11478
11478
  break;
11479
11479
  case ml:
11480
11480
  t = this.InterpolantFactoryMethodLinear;
11481
11481
  break;
11482
- case ka:
11482
+ case za:
11483
11483
  t = this.InterpolantFactoryMethodSmooth;
11484
11484
  break;
11485
11485
  }
@@ -11502,11 +11502,11 @@ class Xn {
11502
11502
  getInterpolation() {
11503
11503
  switch (this.createInterpolant) {
11504
11504
  case this.InterpolantFactoryMethodDiscrete:
11505
- return ya;
11505
+ return xa;
11506
11506
  case this.InterpolantFactoryMethodLinear:
11507
11507
  return ml;
11508
11508
  case this.InterpolantFactoryMethodSmooth:
11509
- return ka;
11509
+ return za;
11510
11510
  }
11511
11511
  }
11512
11512
  /**
@@ -11611,7 +11611,7 @@ class Xn {
11611
11611
  * @return {AnimationClip} A reference to this animation clip.
11612
11612
  */
11613
11613
  optimize() {
11614
- const e = this.times.slice(), t = this.values.slice(), n = this.getValueSize(), i = this.getInterpolation() === ka, s = e.length - 1;
11614
+ const e = this.times.slice(), t = this.values.slice(), n = this.getValueSize(), i = this.getInterpolation() === za, s = e.length - 1;
11615
11615
  let a = 1;
11616
11616
  for (let o = 1; o < s; ++o) {
11617
11617
  let l = !1;
@@ -11661,7 +11661,7 @@ Xn.prototype.ValueTypeName = "";
11661
11661
  Xn.prototype.TimeBufferType = Float32Array;
11662
11662
  Xn.prototype.ValueBufferType = Float32Array;
11663
11663
  Xn.prototype.DefaultInterpolation = ml;
11664
- class Hr extends Xn {
11664
+ class Gr extends Xn {
11665
11665
  /**
11666
11666
  * Constructs a new boolean keyframe track.
11667
11667
  *
@@ -11676,11 +11676,11 @@ class Hr extends Xn {
11676
11676
  super(e, t, n);
11677
11677
  }
11678
11678
  }
11679
- Hr.prototype.ValueTypeName = "bool";
11680
- Hr.prototype.ValueBufferType = Array;
11681
- Hr.prototype.DefaultInterpolation = ya;
11682
- Hr.prototype.InterpolantFactoryMethodLinear = void 0;
11683
- Hr.prototype.InterpolantFactoryMethodSmooth = void 0;
11679
+ Gr.prototype.ValueTypeName = "bool";
11680
+ Gr.prototype.ValueBufferType = Array;
11681
+ Gr.prototype.DefaultInterpolation = xa;
11682
+ Gr.prototype.InterpolantFactoryMethodLinear = void 0;
11683
+ Gr.prototype.InterpolantFactoryMethodSmooth = void 0;
11684
11684
  class $h extends Xn {
11685
11685
  /**
11686
11686
  * Constructs a new color keyframe track.
@@ -11695,7 +11695,7 @@ class $h extends Xn {
11695
11695
  }
11696
11696
  }
11697
11697
  $h.prototype.ValueTypeName = "color";
11698
- class Ea extends Xn {
11698
+ class Ta extends Xn {
11699
11699
  /**
11700
11700
  * Constructs a new number keyframe track.
11701
11701
  *
@@ -11708,8 +11708,8 @@ class Ea extends Xn {
11708
11708
  super(e, t, n, i);
11709
11709
  }
11710
11710
  }
11711
- Ea.prototype.ValueTypeName = "number";
11712
- class lm extends Da {
11711
+ Ta.prototype.ValueTypeName = "number";
11712
+ class lm extends Ua {
11713
11713
  /**
11714
11714
  * Constructs a new SLERP interpolant.
11715
11715
  *
@@ -11729,7 +11729,7 @@ class lm extends Da {
11729
11729
  return s;
11730
11730
  }
11731
11731
  }
11732
- class gs extends Xn {
11732
+ class _s extends Xn {
11733
11733
  /**
11734
11734
  * Constructs a new Quaternion keyframe track.
11735
11735
  *
@@ -11752,9 +11752,9 @@ class gs extends Xn {
11752
11752
  return new lm(this.times, this.values, this.getValueSize(), e);
11753
11753
  }
11754
11754
  }
11755
- gs.prototype.ValueTypeName = "quaternion";
11756
- gs.prototype.InterpolantFactoryMethodSmooth = void 0;
11757
- class Gr extends Xn {
11755
+ _s.prototype.ValueTypeName = "quaternion";
11756
+ _s.prototype.InterpolantFactoryMethodSmooth = void 0;
11757
+ class Wr extends Xn {
11758
11758
  /**
11759
11759
  * Constructs a new string keyframe track.
11760
11760
  *
@@ -11769,12 +11769,12 @@ class Gr extends Xn {
11769
11769
  super(e, t, n);
11770
11770
  }
11771
11771
  }
11772
- Gr.prototype.ValueTypeName = "string";
11773
- Gr.prototype.ValueBufferType = Array;
11774
- Gr.prototype.DefaultInterpolation = ya;
11775
- Gr.prototype.InterpolantFactoryMethodLinear = void 0;
11776
- Gr.prototype.InterpolantFactoryMethodSmooth = void 0;
11777
- class zr extends Xn {
11772
+ Wr.prototype.ValueTypeName = "string";
11773
+ Wr.prototype.ValueBufferType = Array;
11774
+ Wr.prototype.DefaultInterpolation = xa;
11775
+ Wr.prototype.InterpolantFactoryMethodLinear = void 0;
11776
+ Wr.prototype.InterpolantFactoryMethodSmooth = void 0;
11777
+ class Vr extends Xn {
11778
11778
  /**
11779
11779
  * Constructs a new vector keyframe track.
11780
11780
  *
@@ -11787,7 +11787,7 @@ class zr extends Xn {
11787
11787
  super(e, t, n, i);
11788
11788
  }
11789
11789
  }
11790
- zr.prototype.ValueTypeName = "vector";
11790
+ Vr.prototype.ValueTypeName = "vector";
11791
11791
  class cu {
11792
11792
  /**
11793
11793
  * Constructs a new animation clip.
@@ -11864,7 +11864,7 @@ class cu {
11864
11864
  ), c.push(0, 1, 0);
11865
11865
  const u = rm(l);
11866
11866
  l = lu(l, 1, u), c = lu(c, 1, u), !i && l[0] === 0 && (l.push(s), c.push(c[0])), a.push(
11867
- new Ea(
11867
+ new Ta(
11868
11868
  ".morphTargetInfluences[" + t[o].name + "]",
11869
11869
  l,
11870
11870
  c
@@ -11958,25 +11958,25 @@ class cu {
11958
11958
  const E = d[m];
11959
11959
  g.push(E.time), p.push(E.morphTarget === _ ? 1 : 0);
11960
11960
  }
11961
- i.push(new Ea(".morphTargetInfluence[" + _ + "]", g, p));
11961
+ i.push(new Ta(".morphTargetInfluence[" + _ + "]", g, p));
11962
11962
  }
11963
11963
  l = f.length * a;
11964
11964
  } else {
11965
11965
  const f = ".bones[" + t[h].name + "]";
11966
11966
  n(
11967
- zr,
11967
+ Vr,
11968
11968
  f + ".position",
11969
11969
  d,
11970
11970
  "pos",
11971
11971
  i
11972
11972
  ), n(
11973
- gs,
11973
+ _s,
11974
11974
  f + ".quaternion",
11975
11975
  d,
11976
11976
  "rot",
11977
11977
  i
11978
11978
  ), n(
11979
- zr,
11979
+ Vr,
11980
11980
  f + ".scale",
11981
11981
  d,
11982
11982
  "scl",
@@ -12060,21 +12060,21 @@ function cm(r) {
12060
12060
  case "float":
12061
12061
  case "number":
12062
12062
  case "integer":
12063
- return Ea;
12063
+ return Ta;
12064
12064
  case "vector":
12065
12065
  case "vector2":
12066
12066
  case "vector3":
12067
12067
  case "vector4":
12068
- return zr;
12068
+ return Vr;
12069
12069
  case "color":
12070
12070
  return $h;
12071
12071
  case "quaternion":
12072
- return gs;
12072
+ return _s;
12073
12073
  case "bool":
12074
12074
  case "boolean":
12075
- return Hr;
12076
- case "string":
12077
12075
  return Gr;
12076
+ case "string":
12077
+ return Wr;
12078
12078
  }
12079
12079
  throw new Error("THREE.KeyframeTrack: Unsupported typeName: " + r);
12080
12080
  }
@@ -12088,7 +12088,7 @@ function um(r) {
12088
12088
  }
12089
12089
  return e.parse !== void 0 ? e.parse(r) : new e(r.name, r.times, r.values, r.interpolation);
12090
12090
  }
12091
- const Ta = {
12091
+ const wa = {
12092
12092
  /**
12093
12093
  * Whether caching is enabled or not.
12094
12094
  *
@@ -12281,7 +12281,7 @@ class dm extends Error {
12281
12281
  super(e), this.response = t;
12282
12282
  }
12283
12283
  }
12284
- class Wr extends Wn {
12284
+ class Xr extends Wn {
12285
12285
  /**
12286
12286
  * Constructs a new file loader.
12287
12287
  *
@@ -12301,7 +12301,7 @@ class Wr extends Wn {
12301
12301
  */
12302
12302
  load(e, t, n, i) {
12303
12303
  e === void 0 && (e = ""), this.path !== void 0 && (e = this.path + e), e = this.manager.resolveURL(e);
12304
- const s = Ta.get(e);
12304
+ const s = wa.get(e);
12305
12305
  if (s !== void 0)
12306
12306
  return this.manager.itemStart(e), setTimeout(() => {
12307
12307
  t && t(s), this.manager.itemEnd(e);
@@ -12374,7 +12374,7 @@ class Wr extends Wn {
12374
12374
  }
12375
12375
  }
12376
12376
  }).then((c) => {
12377
- Ta.add(e, c);
12377
+ wa.add(e, c);
12378
12378
  const u = hi[e];
12379
12379
  delete hi[e];
12380
12380
  for (let h = 0, d = u.length; h < d; h++) {
@@ -12437,14 +12437,14 @@ class fm extends Wn {
12437
12437
  */
12438
12438
  load(e, t, n, i) {
12439
12439
  this.path !== void 0 && (e = this.path + e), e = this.manager.resolveURL(e);
12440
- const s = this, a = Ta.get(e);
12440
+ const s = this, a = wa.get(e);
12441
12441
  if (a !== void 0)
12442
12442
  return s.manager.itemStart(e), setTimeout(function() {
12443
12443
  t && t(a), s.manager.itemEnd(e);
12444
12444
  }, 0), a;
12445
- const o = ds("img");
12445
+ const o = fs("img");
12446
12446
  function l() {
12447
- u(), Ta.add(e, this), t && t(this), s.manager.itemEnd(e);
12447
+ u(), wa.add(e, this), t && t(this), s.manager.itemEnd(e);
12448
12448
  }
12449
12449
  function c(h) {
12450
12450
  u(), i && i(h), s.manager.itemError(e), s.manager.itemEnd(e);
@@ -12477,7 +12477,7 @@ class pm extends Wn {
12477
12477
  * @return {DataTexture} The data texture.
12478
12478
  */
12479
12479
  load(e, t, n, i) {
12480
- const s = this, a = new jh(), o = new Wr(this.manager);
12480
+ const s = this, a = new jh(), o = new Xr(this.manager);
12481
12481
  return o.setResponseType("arraybuffer"), o.setRequestHeader(this.requestHeader), o.setPath(this.path), o.setWithCredentials(s.withCredentials), o.load(e, function(l) {
12482
12482
  let c;
12483
12483
  try {
@@ -12522,7 +12522,7 @@ class Kl extends Wn {
12522
12522
  }, n, i), s;
12523
12523
  }
12524
12524
  }
12525
- class _s extends Nt {
12525
+ class vs extends Nt {
12526
12526
  /**
12527
12527
  * Constructs a new light.
12528
12528
  *
@@ -12546,7 +12546,7 @@ class _s extends Nt {
12546
12546
  return t.object.color = this.color.getHex(), t.object.intensity = this.intensity, this.groundColor !== void 0 && (t.object.groundColor = this.groundColor.getHex()), this.distance !== void 0 && (t.object.distance = this.distance), this.angle !== void 0 && (t.object.angle = this.angle), this.decay !== void 0 && (t.object.decay = this.decay), this.penumbra !== void 0 && (t.object.penumbra = this.penumbra), this.shadow !== void 0 && (t.object.shadow = this.shadow.toJSON()), this.target !== void 0 && (t.object.target = this.target.uuid), t;
12547
12547
  }
12548
12548
  }
12549
- class Ux extends _s {
12549
+ class Ux extends vs {
12550
12550
  /**
12551
12551
  * Constructs a new hemisphere light.
12552
12552
  *
@@ -12561,7 +12561,7 @@ class Ux extends _s {
12561
12561
  return super.copy(e, t), this.groundColor.copy(e.groundColor), this;
12562
12562
  }
12563
12563
  }
12564
- const fo = /* @__PURE__ */ new ct(), uu = /* @__PURE__ */ new k(), hu = /* @__PURE__ */ new k();
12564
+ const po = /* @__PURE__ */ new ct(), uu = /* @__PURE__ */ new k(), hu = /* @__PURE__ */ new k();
12565
12565
  class $l {
12566
12566
  /**
12567
12567
  * Constructs a new light shadow.
@@ -12597,7 +12597,7 @@ class $l {
12597
12597
  */
12598
12598
  updateMatrices(e) {
12599
12599
  const t = this.camera, n = this.matrix;
12600
- uu.setFromMatrixPosition(e.matrixWorld), t.position.copy(uu), hu.setFromMatrixPosition(e.target.matrixWorld), t.lookAt(hu), t.updateMatrixWorld(), fo.multiplyMatrices(t.projectionMatrix, t.matrixWorldInverse), this._frustum.setFromProjectionMatrix(fo), n.set(
12600
+ uu.setFromMatrixPosition(e.matrixWorld), t.position.copy(uu), hu.setFromMatrixPosition(e.target.matrixWorld), t.lookAt(hu), t.updateMatrixWorld(), po.multiplyMatrices(t.projectionMatrix, t.matrixWorldInverse), this._frustum.setFromProjectionMatrix(po), n.set(
12601
12601
  0.5,
12602
12602
  0,
12603
12603
  0,
@@ -12614,7 +12614,7 @@ class $l {
12614
12614
  0,
12615
12615
  0,
12616
12616
  1
12617
- ), n.multiply(fo);
12617
+ ), n.multiply(po);
12618
12618
  }
12619
12619
  /**
12620
12620
  * Returns a viewport definition for the given viewport index.
@@ -12676,14 +12676,14 @@ class mm extends $l {
12676
12676
  super(new cn(50, 1, 0.5, 500)), this.isSpotLightShadow = !0, this.focus = 1, this.aspect = 1;
12677
12677
  }
12678
12678
  updateMatrices(e) {
12679
- const t = this.camera, n = Br * 2 * e.angle * this.focus, i = this.mapSize.width / this.mapSize.height * this.aspect, s = e.distance || t.far;
12679
+ const t = this.camera, n = kr * 2 * e.angle * this.focus, i = this.mapSize.width / this.mapSize.height * this.aspect, s = e.distance || t.far;
12680
12680
  (n !== t.fov || i !== t.aspect || s !== t.far) && (t.fov = n, t.aspect = i, t.far = s, t.updateProjectionMatrix()), super.updateMatrices(e);
12681
12681
  }
12682
12682
  copy(e) {
12683
12683
  return super.copy(e), this.focus = e.focus, this;
12684
12684
  }
12685
12685
  }
12686
- class gm extends _s {
12686
+ class gm extends vs {
12687
12687
  /**
12688
12688
  * Constructs a new spot light.
12689
12689
  *
@@ -12716,7 +12716,7 @@ class gm extends _s {
12716
12716
  return super.copy(e, t), this.distance = e.distance, this.angle = e.angle, this.penumbra = e.penumbra, this.decay = e.decay, this.target = e.target.clone(), this.shadow = e.shadow.clone(), this;
12717
12717
  }
12718
12718
  }
12719
- const du = /* @__PURE__ */ new ct(), es = /* @__PURE__ */ new k(), po = /* @__PURE__ */ new k();
12719
+ const du = /* @__PURE__ */ new ct(), ts = /* @__PURE__ */ new k(), mo = /* @__PURE__ */ new k();
12720
12720
  class _m extends $l {
12721
12721
  /**
12722
12722
  * Constructs a new point light shadow.
@@ -12771,10 +12771,10 @@ class _m extends $l {
12771
12771
  */
12772
12772
  updateMatrices(e, t = 0) {
12773
12773
  const n = this.camera, i = this.matrix, s = e.distance || n.far;
12774
- s !== n.far && (n.far = s, n.updateProjectionMatrix()), es.setFromMatrixPosition(e.matrixWorld), n.position.copy(es), po.copy(n.position), po.add(this._cubeDirections[t]), n.up.copy(this._cubeUps[t]), n.lookAt(po), n.updateMatrixWorld(), i.makeTranslation(-es.x, -es.y, -es.z), du.multiplyMatrices(n.projectionMatrix, n.matrixWorldInverse), this._frustum.setFromProjectionMatrix(du);
12774
+ s !== n.far && (n.far = s, n.updateProjectionMatrix()), ts.setFromMatrixPosition(e.matrixWorld), n.position.copy(ts), mo.copy(n.position), mo.add(this._cubeDirections[t]), n.up.copy(this._cubeUps[t]), n.lookAt(mo), n.updateMatrixWorld(), i.makeTranslation(-ts.x, -ts.y, -ts.z), du.multiplyMatrices(n.projectionMatrix, n.matrixWorldInverse), this._frustum.setFromProjectionMatrix(du);
12775
12775
  }
12776
12776
  }
12777
- class vm extends _s {
12777
+ class vm extends vs {
12778
12778
  /**
12779
12779
  * Constructs a new point light.
12780
12780
  *
@@ -12805,7 +12805,7 @@ class vm extends _s {
12805
12805
  return super.copy(e, t), this.distance = e.distance, this.decay = e.decay, this.shadow = e.shadow.clone(), this;
12806
12806
  }
12807
12807
  }
12808
- class Ua extends Vh {
12808
+ class Ia extends Vh {
12809
12809
  /**
12810
12810
  * Constructs a new orthographic camera.
12811
12811
  *
@@ -12874,10 +12874,10 @@ class ym extends $l {
12874
12874
  * Constructs a new directional light shadow.
12875
12875
  */
12876
12876
  constructor() {
12877
- super(new Ua(-5, 5, 5, -5, 0.5, 500)), this.isDirectionalLightShadow = !0;
12877
+ super(new Ia(-5, 5, 5, -5, 0.5, 500)), this.isDirectionalLightShadow = !0;
12878
12878
  }
12879
12879
  }
12880
- class xm extends _s {
12880
+ class xm extends vs {
12881
12881
  /**
12882
12882
  * Constructs a new directional light.
12883
12883
  *
@@ -12894,7 +12894,7 @@ class xm extends _s {
12894
12894
  return super.copy(e), this.target = e.target.clone(), this.shadow = e.shadow.clone(), this;
12895
12895
  }
12896
12896
  }
12897
- class Mm extends _s {
12897
+ class Mm extends vs {
12898
12898
  /**
12899
12899
  * Constructs a new ambient light.
12900
12900
  *
@@ -13038,7 +13038,7 @@ class Tm {
13038
13038
  * @param {number} [far=Infinity] - All results returned are closer than far. Far can't be lower than near.
13039
13039
  */
13040
13040
  constructor(e, t, n = 0, i = 1 / 0) {
13041
- this.ray = new ms(e, t), this.near = n, this.far = i, this.camera = null, this.layers = new Vl(), this.params = {
13041
+ this.ray = new gs(e, t), this.near = n, this.far = i, this.camera = null, this.layers = new Vl(), this.params = {
13042
13042
  Mesh: {},
13043
13043
  Line: { threshold: 1 },
13044
13044
  LOD: {},
@@ -13209,7 +13209,7 @@ class wm {
13209
13209
  return new this.constructor().copy(this);
13210
13210
  }
13211
13211
  }
13212
- const gu = /* @__PURE__ */ new k(), js = /* @__PURE__ */ new k();
13212
+ const gu = /* @__PURE__ */ new k(), Ys = /* @__PURE__ */ new k();
13213
13213
  class Am {
13214
13214
  /**
13215
13215
  * Constructs a new line segment.
@@ -13291,9 +13291,9 @@ class Am {
13291
13291
  * @return {number} The point parameter.
13292
13292
  */
13293
13293
  closestPointToPointParameter(e, t) {
13294
- gu.subVectors(e, this.start), js.subVectors(this.end, this.start);
13295
- const n = js.dot(js);
13296
- let s = js.dot(gu) / n;
13294
+ gu.subVectors(e, this.start), Ys.subVectors(this.end, this.start);
13295
+ const n = Ys.dot(Ys);
13296
+ let s = Ys.dot(gu) / n;
13297
13297
  return t && (s = vt(s, 0, 1)), s;
13298
13298
  }
13299
13299
  /**
@@ -13399,11 +13399,11 @@ function _u(r, e, t, n) {
13399
13399
  case Ol:
13400
13400
  return r * e * 4 / i.components * i.byteLength;
13401
13401
  // https://registry.khronos.org/webgl/extensions/WEBGL_compressed_texture_s3tc_srgb/
13402
- case aa:
13403
13402
  case oa:
13404
- return Math.floor((r + 3) / 4) * Math.floor((e + 3) / 4) * 8;
13405
13403
  case la:
13404
+ return Math.floor((r + 3) / 4) * Math.floor((e + 3) / 4) * 8;
13406
13405
  case ca:
13406
+ case ua:
13407
13407
  return Math.floor((r + 3) / 4) * Math.floor((e + 3) / 4) * 16;
13408
13408
  // https://registry.khronos.org/webgl/extensions/WEBGL_compressed_texture_pvrtc/
13409
13409
  case Wo:
@@ -13448,7 +13448,7 @@ function _u(r, e, t, n) {
13448
13448
  case cl:
13449
13449
  return Math.floor((r + 11) / 12) * Math.floor((e + 11) / 12) * 16;
13450
13450
  // https://registry.khronos.org/webgl/extensions/EXT_texture_compression_bptc/
13451
- case ua:
13451
+ case ha:
13452
13452
  case ul:
13453
13453
  case hl:
13454
13454
  return Math.ceil(r / 4) * Math.ceil(e / 4) * 16;
@@ -13469,9 +13469,9 @@ function Rm(r) {
13469
13469
  case ei:
13470
13470
  case wh:
13471
13471
  return { byteLength: 1, components: 1 };
13472
- case ls:
13472
+ case cs:
13473
13473
  case Ah:
13474
- case ps:
13474
+ case ms:
13475
13475
  return { byteLength: 2, components: 1 };
13476
13476
  case Ul:
13477
13477
  case Il:
@@ -17716,7 +17716,7 @@ xn.physical = {
17716
17716
  vertexShader: gt.meshphysical_vert,
17717
17717
  fragmentShader: gt.meshphysical_frag
17718
17718
  };
17719
- const Ys = { r: 0, b: 0, g: 0 }, zi = /* @__PURE__ */ new An(), c0 = /* @__PURE__ */ new ct();
17719
+ const Ks = { r: 0, b: 0, g: 0 }, zi = /* @__PURE__ */ new An(), c0 = /* @__PURE__ */ new ct();
17720
17720
  function u0(r, e, t, n, i, s, a) {
17721
17721
  const o = new ut(0);
17722
17722
  let l = s === !0 ? 0 : 1, c, u, h = null, d = 0, f = null;
@@ -17733,11 +17733,11 @@ function u0(r, e, t, n, i, s, a) {
17733
17733
  }
17734
17734
  function g(E, y) {
17735
17735
  const I = m(y);
17736
- I && (I.isCubeTexture || I.mapping === Ra) ? (u === void 0 && (u = new Ut(
17737
- new Vr(1, 1, 1),
17736
+ I && (I.isCubeTexture || I.mapping === Ca) ? (u === void 0 && (u = new Ut(
17737
+ new Hr(1, 1, 1),
17738
17738
  new vi({
17739
17739
  name: "BackgroundCubeMaterial",
17740
- uniforms: kr(xn.backgroundCube.uniforms),
17740
+ uniforms: zr(xn.backgroundCube.uniforms),
17741
17741
  vertexShader: xn.backgroundCube.vertexShader,
17742
17742
  fragmentShader: xn.backgroundCube.fragmentShader,
17743
17743
  side: _n,
@@ -17753,10 +17753,10 @@ function u0(r, e, t, n, i, s, a) {
17753
17753
  return this.uniforms.envMap.value;
17754
17754
  }
17755
17755
  }), i.update(u)), zi.copy(y.backgroundRotation), zi.x *= -1, zi.y *= -1, zi.z *= -1, I.isCubeTexture && I.isRenderTargetTexture === !1 && (zi.y *= -1, zi.z *= -1), u.material.uniforms.envMap.value = I, u.material.uniforms.flipEnvMap.value = I.isCubeTexture && I.isRenderTargetTexture === !1 ? -1 : 1, u.material.uniforms.backgroundBlurriness.value = y.backgroundBlurriness, u.material.uniforms.backgroundIntensity.value = y.backgroundIntensity, u.material.uniforms.backgroundRotation.value.setFromMatrix4(c0.makeRotationFromEuler(zi)), u.material.toneMapped = _t.getTransfer(I.colorSpace) !== Dt, (h !== I || d !== I.version || f !== r.toneMapping) && (u.material.needsUpdate = !0, h = I, d = I.version, f = r.toneMapping), u.layers.enableAll(), E.unshift(u, u.geometry, u.material, 0, 0, null)) : I && I.isTexture && (c === void 0 && (c = new Ut(
17756
- new Pa(2, 2),
17756
+ new La(2, 2),
17757
17757
  new vi({
17758
17758
  name: "BackgroundMaterial",
17759
- uniforms: kr(xn.background.uniforms),
17759
+ uniforms: zr(xn.background.uniforms),
17760
17760
  vertexShader: xn.background.vertexShader,
17761
17761
  fragmentShader: xn.background.fragmentShader,
17762
17762
  side: Qn,
@@ -17772,7 +17772,7 @@ function u0(r, e, t, n, i, s, a) {
17772
17772
  }), i.update(c)), c.material.uniforms.t2D.value = I, c.material.uniforms.backgroundIntensity.value = y.backgroundIntensity, c.material.toneMapped = _t.getTransfer(I.colorSpace) !== Dt, I.matrixAutoUpdate === !0 && I.updateMatrix(), c.material.uniforms.uvTransform.value.copy(I.matrix), (h !== I || d !== I.version || f !== r.toneMapping) && (c.material.needsUpdate = !0, h = I, d = I.version, f = r.toneMapping), c.layers.enableAll(), E.unshift(c, c.geometry, c.material, 0, 0, null));
17773
17773
  }
17774
17774
  function p(E, y) {
17775
- E.getRGB(Ys, zh(r)), n.buffers.color.setClear(Ys.r, Ys.g, Ys.b, y, a);
17775
+ E.getRGB(Ks, zh(r)), n.buffers.color.setClear(Ks.r, Ks.g, Ks.b, y, a);
17776
17776
  }
17777
17777
  function S() {
17778
17778
  u !== void 0 && (u.geometry.dispose(), u.material.dispose(), u = void 0), c !== void 0 && (c.geometry.dispose(), c.material.dispose(), c = void 0);
@@ -18058,7 +18058,7 @@ function f0(r, e, t, n) {
18058
18058
  return !(C !== In && n.convert(C) !== r.getParameter(r.IMPLEMENTATION_COLOR_READ_FORMAT));
18059
18059
  }
18060
18060
  function o(C) {
18061
- const D = C === ps && (e.has("EXT_color_buffer_half_float") || e.has("EXT_color_buffer_float"));
18061
+ const D = C === ms && (e.has("EXT_color_buffer_half_float") || e.has("EXT_color_buffer_float"));
18062
18062
  return !(C !== ei && n.convert(C) !== r.getParameter(r.IMPLEMENTATION_COLOR_READ_TYPE) && // Edge and Chrome Mac < 52 (#9513)
18063
18063
  C !== Jn && !D);
18064
18064
  }
@@ -18145,7 +18145,7 @@ function p0(r) {
18145
18145
  function m0(r) {
18146
18146
  let e = /* @__PURE__ */ new WeakMap();
18147
18147
  function t(a, o) {
18148
- return o === zo ? a.mapping = Nr : o === Vo && (a.mapping = Fr), a;
18148
+ return o === zo ? a.mapping = Fr : o === Vo && (a.mapping = Or), a;
18149
18149
  }
18150
18150
  function n(a) {
18151
18151
  if (a && a.isTexture) {
@@ -18179,8 +18179,8 @@ function m0(r) {
18179
18179
  dispose: s
18180
18180
  };
18181
18181
  }
18182
- const Cr = 4, vu = [0.125, 0.215, 0.35, 0.446, 0.526, 0.582], Yi = 20, mo = /* @__PURE__ */ new Ua(), yu = /* @__PURE__ */ new ut();
18183
- let go = null, _o = 0, vo = 0, yo = !1;
18182
+ const Pr = 4, vu = [0.125, 0.215, 0.35, 0.446, 0.526, 0.582], Yi = 20, go = /* @__PURE__ */ new Ia(), yu = /* @__PURE__ */ new ut();
18183
+ let _o = null, vo = 0, yo = 0, xo = !1;
18184
18184
  const Xi = (1 + Math.sqrt(5)) / 2, Er = 1 / Xi, xu = [
18185
18185
  /* @__PURE__ */ new k(-Xi, Er, 0),
18186
18186
  /* @__PURE__ */ new k(Xi, Er, 0),
@@ -18222,7 +18222,7 @@ class Mu {
18222
18222
  size: a = 256,
18223
18223
  position: o = g0
18224
18224
  } = s;
18225
- go = this._renderer.getRenderTarget(), _o = this._renderer.getActiveCubeFace(), vo = this._renderer.getActiveMipmapLevel(), yo = this._renderer.xr.enabled, this._renderer.xr.enabled = !1, this._setSize(a);
18225
+ _o = this._renderer.getRenderTarget(), vo = this._renderer.getActiveCubeFace(), yo = this._renderer.getActiveMipmapLevel(), xo = this._renderer.xr.enabled, this._renderer.xr.enabled = !1, this._setSize(a);
18226
18226
  const l = this._allocateTargets();
18227
18227
  return l.depthBuffer = !0, this._sceneToCubeUV(e, n, i, l, o), t > 0 && this._blur(l, 0, 0, t), this._applyPMREM(l), this._cleanup(l), l;
18228
18228
  }
@@ -18282,10 +18282,10 @@ class Mu {
18282
18282
  this._lodPlanes[e].dispose();
18283
18283
  }
18284
18284
  _cleanup(e) {
18285
- this._renderer.setRenderTarget(go, _o, vo), this._renderer.xr.enabled = yo, e.scissorTest = !1, Ks(e, 0, 0, e.width, e.height);
18285
+ this._renderer.setRenderTarget(_o, vo, yo), this._renderer.xr.enabled = xo, e.scissorTest = !1, $s(e, 0, 0, e.width, e.height);
18286
18286
  }
18287
18287
  _fromTexture(e, t) {
18288
- e.mapping === Nr || e.mapping === Fr ? this._setSize(e.image.length === 0 ? 16 : e.image[0].width || e.image[0].image.width) : this._setSize(e.image.width / 4), go = this._renderer.getRenderTarget(), _o = this._renderer.getActiveCubeFace(), vo = this._renderer.getActiveMipmapLevel(), yo = this._renderer.xr.enabled, this._renderer.xr.enabled = !1;
18288
+ e.mapping === Fr || e.mapping === Or ? this._setSize(e.image.length === 0 ? 16 : e.image[0].width || e.image[0].image.width) : this._setSize(e.image.width / 4), _o = this._renderer.getRenderTarget(), vo = this._renderer.getActiveCubeFace(), yo = this._renderer.getActiveMipmapLevel(), xo = this._renderer.xr.enabled, this._renderer.xr.enabled = !1;
18289
18289
  const n = t || this._allocateTargets();
18290
18290
  return this._textureToCubeUV(e, n), this._applyPMREM(n), this._cleanup(n), n;
18291
18291
  }
@@ -18294,9 +18294,9 @@ class Mu {
18294
18294
  magFilter: Tn,
18295
18295
  minFilter: Tn,
18296
18296
  generateMipmaps: !1,
18297
- type: ps,
18297
+ type: ms,
18298
18298
  format: In,
18299
- colorSpace: Or,
18299
+ colorSpace: Br,
18300
18300
  depthBuffer: !1
18301
18301
  }, i = Su(e, t, n);
18302
18302
  if (this._pingPongRenderTarget === null || this._pingPongRenderTarget.width !== e || this._pingPongRenderTarget.height !== t) {
@@ -18308,7 +18308,7 @@ class Mu {
18308
18308
  }
18309
18309
  _compileMaterial(e) {
18310
18310
  const t = new Ut(this._lodPlanes[0], e);
18311
- this._renderer.compile(t, mo);
18311
+ this._renderer.compile(t, go);
18312
18312
  }
18313
18313
  _sceneToCubeUV(e, t, n, i, s) {
18314
18314
  const l = new cn(90, 1, t, n), c = [1, -1, 1, 1, 1, 1], u = [1, 1, 1, -1, -1, -1], h = this._renderer, d = h.autoClear, f = h.toneMapping;
@@ -18318,7 +18318,7 @@ class Mu {
18318
18318
  side: _n,
18319
18319
  depthWrite: !1,
18320
18320
  depthTest: !1
18321
- }), _ = new Ut(new Vr(), m);
18321
+ }), _ = new Ut(new Hr(), m);
18322
18322
  let g = !1;
18323
18323
  const p = e.background;
18324
18324
  p ? p.isColor && (m.color.copy(p), e.background = null, g = !0) : (m.color.copy(yu), g = !0);
@@ -18326,17 +18326,17 @@ class Mu {
18326
18326
  const E = S % 3;
18327
18327
  E === 0 ? (l.up.set(0, c[S], 0), l.position.set(s.x, s.y, s.z), l.lookAt(s.x + u[S], s.y, s.z)) : E === 1 ? (l.up.set(0, 0, c[S]), l.position.set(s.x, s.y, s.z), l.lookAt(s.x, s.y + u[S], s.z)) : (l.up.set(0, c[S], 0), l.position.set(s.x, s.y, s.z), l.lookAt(s.x, s.y, s.z + u[S]));
18328
18328
  const y = this._cubeSize;
18329
- Ks(i, E * y, S > 2 ? y : 0, y, y), h.setRenderTarget(i), g && h.render(_, l), h.render(e, l);
18329
+ $s(i, E * y, S > 2 ? y : 0, y, y), h.setRenderTarget(i), g && h.render(_, l), h.render(e, l);
18330
18330
  }
18331
18331
  _.geometry.dispose(), _.material.dispose(), h.toneMapping = f, h.autoClear = d, e.background = p;
18332
18332
  }
18333
18333
  _textureToCubeUV(e, t) {
18334
- const n = this._renderer, i = e.mapping === Nr || e.mapping === Fr;
18334
+ const n = this._renderer, i = e.mapping === Fr || e.mapping === Or;
18335
18335
  i ? (this._cubemapMaterial === null && (this._cubemapMaterial = Eu()), this._cubemapMaterial.uniforms.flipEnvMap.value = e.isRenderTargetTexture === !1 ? -1 : 1) : this._equirectMaterial === null && (this._equirectMaterial = bu());
18336
18336
  const s = i ? this._cubemapMaterial : this._equirectMaterial, a = new Ut(this._lodPlanes[0], s), o = s.uniforms;
18337
18337
  o.envMap.value = e;
18338
18338
  const l = this._cubeSize;
18339
- Ks(t, 0, 0, 3 * l, 2 * l), n.setRenderTarget(t), n.render(a, mo);
18339
+ $s(t, 0, 0, 3 * l, 2 * l), n.setRenderTarget(t), n.render(a, go);
18340
18340
  }
18341
18341
  _applyPMREM(e) {
18342
18342
  const t = this._renderer, n = t.autoClear;
@@ -18400,19 +18400,19 @@ class Mu {
18400
18400
  d.envMap.value = e.texture, d.samples.value = g, d.weights.value = p, d.latitudinal.value = a === "latitudinal", o && (d.poleAxis.value = o);
18401
18401
  const { _lodMax: E } = this;
18402
18402
  d.dTheta.value = m, d.mipInt.value = E - n;
18403
- const y = this._sizeLods[i], I = 3 * y * (i > E - Cr ? i - E + Cr : 0), R = 4 * (this._cubeSize - y);
18404
- Ks(t, I, R, 3 * y, 2 * y), l.setRenderTarget(t), l.render(h, mo);
18403
+ const y = this._sizeLods[i], I = 3 * y * (i > E - Pr ? i - E + Pr : 0), R = 4 * (this._cubeSize - y);
18404
+ $s(t, I, R, 3 * y, 2 * y), l.setRenderTarget(t), l.render(h, go);
18405
18405
  }
18406
18406
  }
18407
18407
  function _0(r) {
18408
18408
  const e = [], t = [], n = [];
18409
18409
  let i = r;
18410
- const s = r - Cr + 1 + vu.length;
18410
+ const s = r - Pr + 1 + vu.length;
18411
18411
  for (let a = 0; a < s; a++) {
18412
18412
  const o = Math.pow(2, i);
18413
18413
  t.push(o);
18414
18414
  let l = 1 / o;
18415
- a > r - Cr ? l = vu[a - r + Cr - 1] : a === 0 && (l = 0), n.push(l);
18415
+ a > r - Pr ? l = vu[a - r + Pr - 1] : a === 0 && (l = 0), n.push(l);
18416
18416
  const c = 1 / (o - 2), u = -c, h = 1 + c, d = [u, u, h, u, h, h, u, u, h, h, u, h], f = 6, m = 6, _ = 3, g = 2, p = 1, S = new Float32Array(_ * m * f), E = new Float32Array(g * m * f), y = new Float32Array(p * m * f);
18417
18417
  for (let R = 0; R < f; R++) {
18418
18418
  const C = R % 3 * 2 / 3 - 1, D = R > 2 ? 0 : -1, b = [
@@ -18440,15 +18440,15 @@ function _0(r) {
18440
18440
  y.set(x, p * m * R);
18441
18441
  }
18442
18442
  const I = new zt();
18443
- I.setAttribute("position", new Wt(S, _)), I.setAttribute("uv", new Wt(E, g)), I.setAttribute("faceIndex", new Wt(y, p)), e.push(I), i > Cr && i--;
18443
+ I.setAttribute("position", new Wt(S, _)), I.setAttribute("uv", new Wt(E, g)), I.setAttribute("faceIndex", new Wt(y, p)), e.push(I), i > Pr && i--;
18444
18444
  }
18445
18445
  return { lodPlanes: e, sizeLods: t, sigmas: n };
18446
18446
  }
18447
18447
  function Su(r, e, t) {
18448
18448
  const n = new er(r, e, t);
18449
- return n.texture.mapping = Ra, n.texture.name = "PMREM.cubeUv", n.scissorTest = !0, n;
18449
+ return n.texture.mapping = Ca, n.texture.name = "PMREM.cubeUv", n.scissorTest = !0, n;
18450
18450
  }
18451
- function Ks(r, e, t, n, i) {
18451
+ function $s(r, e, t, n, i) {
18452
18452
  r.viewport.set(e, t, n, i), r.scissor.set(e, t, n, i);
18453
18453
  }
18454
18454
  function v0(r, e, t) {
@@ -18673,7 +18673,7 @@ function y0(r) {
18673
18673
  let e = /* @__PURE__ */ new WeakMap(), t = null;
18674
18674
  function n(o) {
18675
18675
  if (o && o.isTexture) {
18676
- const l = o.mapping, c = l === zo || l === Vo, u = l === Nr || l === Fr;
18676
+ const l = o.mapping, c = l === zo || l === Vo, u = l === Fr || l === Or;
18677
18677
  if (c || u) {
18678
18678
  let h = e.get(o);
18679
18679
  const d = h !== void 0 ? h.texture.pmremVersion : 0;
@@ -18743,7 +18743,7 @@ function x0(r) {
18743
18743
  },
18744
18744
  get: function(n) {
18745
18745
  const i = t(n);
18746
- return i === null && Dr("THREE.WebGLRenderer: " + n + " extension not supported."), i;
18746
+ return i === null && Ur("THREE.WebGLRenderer: " + n + " extension not supported."), i;
18747
18747
  }
18748
18748
  };
18749
18749
  }
@@ -18958,7 +18958,7 @@ function T0(r, e, t, n) {
18958
18958
  };
18959
18959
  }
18960
18960
  const Zh = /* @__PURE__ */ new sn(), Tu = /* @__PURE__ */ new Yh(1, 1), Qh = /* @__PURE__ */ new Fh(), ed = /* @__PURE__ */ new Rp(), td = /* @__PURE__ */ new Hh(), wu = [], Au = [], Ru = new Float32Array(16), Cu = new Float32Array(9), Pu = new Float32Array(4);
18961
- function Xr(r, e, t) {
18961
+ function qr(r, e, t) {
18962
18962
  const n = r[0];
18963
18963
  if (n <= 0 || n > 0) return r;
18964
18964
  const i = e * t;
@@ -18980,7 +18980,7 @@ function $t(r, e) {
18980
18980
  for (let t = 0, n = e.length; t < n; t++)
18981
18981
  r[t] = e[t];
18982
18982
  }
18983
- function Ia(r, e) {
18983
+ function Na(r, e) {
18984
18984
  let t = Au[e];
18985
18985
  t === void 0 && (t = new Int32Array(e), Au[e] = t);
18986
18986
  for (let n = 0; n !== e; ++n)
@@ -19219,27 +19219,27 @@ function q0(r, e) {
19219
19219
  r.uniform1fv(this.addr, e);
19220
19220
  }
19221
19221
  function j0(r, e) {
19222
- const t = Xr(e, this.size, 2);
19222
+ const t = qr(e, this.size, 2);
19223
19223
  r.uniform2fv(this.addr, t);
19224
19224
  }
19225
19225
  function Y0(r, e) {
19226
- const t = Xr(e, this.size, 3);
19226
+ const t = qr(e, this.size, 3);
19227
19227
  r.uniform3fv(this.addr, t);
19228
19228
  }
19229
19229
  function K0(r, e) {
19230
- const t = Xr(e, this.size, 4);
19230
+ const t = qr(e, this.size, 4);
19231
19231
  r.uniform4fv(this.addr, t);
19232
19232
  }
19233
19233
  function $0(r, e) {
19234
- const t = Xr(e, this.size, 4);
19234
+ const t = qr(e, this.size, 4);
19235
19235
  r.uniformMatrix2fv(this.addr, !1, t);
19236
19236
  }
19237
19237
  function J0(r, e) {
19238
- const t = Xr(e, this.size, 9);
19238
+ const t = qr(e, this.size, 9);
19239
19239
  r.uniformMatrix3fv(this.addr, !1, t);
19240
19240
  }
19241
19241
  function Z0(r, e) {
19242
- const t = Xr(e, this.size, 16);
19242
+ const t = qr(e, this.size, 16);
19243
19243
  r.uniformMatrix4fv(this.addr, !1, t);
19244
19244
  }
19245
19245
  function Q0(r, e) {
@@ -19267,25 +19267,25 @@ function av(r, e) {
19267
19267
  r.uniform4uiv(this.addr, e);
19268
19268
  }
19269
19269
  function ov(r, e, t) {
19270
- const n = this.cache, i = e.length, s = Ia(t, i);
19270
+ const n = this.cache, i = e.length, s = Na(t, i);
19271
19271
  Kt(n, s) || (r.uniform1iv(this.addr, s), $t(n, s));
19272
19272
  for (let a = 0; a !== i; ++a)
19273
19273
  t.setTexture2D(e[a] || Zh, s[a]);
19274
19274
  }
19275
19275
  function lv(r, e, t) {
19276
- const n = this.cache, i = e.length, s = Ia(t, i);
19276
+ const n = this.cache, i = e.length, s = Na(t, i);
19277
19277
  Kt(n, s) || (r.uniform1iv(this.addr, s), $t(n, s));
19278
19278
  for (let a = 0; a !== i; ++a)
19279
19279
  t.setTexture3D(e[a] || ed, s[a]);
19280
19280
  }
19281
19281
  function cv(r, e, t) {
19282
- const n = this.cache, i = e.length, s = Ia(t, i);
19282
+ const n = this.cache, i = e.length, s = Na(t, i);
19283
19283
  Kt(n, s) || (r.uniform1iv(this.addr, s), $t(n, s));
19284
19284
  for (let a = 0; a !== i; ++a)
19285
19285
  t.setTextureCube(e[a] || td, s[a]);
19286
19286
  }
19287
19287
  function uv(r, e, t) {
19288
- const n = this.cache, i = e.length, s = Ia(t, i);
19288
+ const n = this.cache, i = e.length, s = Na(t, i);
19289
19289
  Kt(n, s) || (r.uniform1iv(this.addr, s), $t(n, s));
19290
19290
  for (let a = 0; a !== i; ++a)
19291
19291
  t.setTexture2DArray(e[a] || Qh, s[a]);
@@ -19397,14 +19397,14 @@ class pv {
19397
19397
  }
19398
19398
  }
19399
19399
  }
19400
- const xo = /(\w+)(\])?(\[|\.)?/g;
19400
+ const Mo = /(\w+)(\])?(\[|\.)?/g;
19401
19401
  function Lu(r, e) {
19402
19402
  r.seq.push(e), r.map[e.id] = e;
19403
19403
  }
19404
19404
  function mv(r, e, t) {
19405
19405
  const n = r.name, i = n.length;
19406
- for (xo.lastIndex = 0; ; ) {
19407
- const s = xo.exec(n), a = xo.lastIndex;
19406
+ for (Mo.lastIndex = 0; ; ) {
19407
+ const s = Mo.exec(n), a = Mo.lastIndex;
19408
19408
  let o = s[1];
19409
19409
  const l = s[2] === "]", c = s[3];
19410
19410
  if (l && (o = o | 0), c === void 0 || c === "[" && a + 2 === i) {
@@ -19416,7 +19416,7 @@ function mv(r, e, t) {
19416
19416
  }
19417
19417
  }
19418
19418
  }
19419
- class ha {
19419
+ class da {
19420
19420
  constructor(e, t) {
19421
19421
  this.seq = [], this.map = {};
19422
19422
  const n = e.getProgramParameter(t, e.ACTIVE_UNIFORMS);
@@ -19469,7 +19469,7 @@ function yv(r) {
19469
19469
  _t._getMatrix(Uu, _t.workingColorSpace, r);
19470
19470
  const e = `mat3( ${Uu.elements.map((t) => t.toFixed(4))} )`;
19471
19471
  switch (_t.getTransfer(r)) {
19472
- case xa:
19472
+ case Ma:
19473
19473
  return [e, "LinearTransferOETF"];
19474
19474
  case Dt:
19475
19475
  return [e, "sRGBTransferOETF"];
@@ -19529,10 +19529,10 @@ function Mv(r, e) {
19529
19529
  }
19530
19530
  return "vec3 " + r + "( vec3 color ) { return " + t + "ToneMapping( color ); }";
19531
19531
  }
19532
- const $s = /* @__PURE__ */ new k();
19532
+ const Js = /* @__PURE__ */ new k();
19533
19533
  function Sv() {
19534
- _t.getLuminanceCoefficients($s);
19535
- const r = $s.x.toFixed(4), e = $s.y.toFixed(4), t = $s.z.toFixed(4);
19534
+ _t.getLuminanceCoefficients(Js);
19535
+ const r = Js.x.toFixed(4), e = Js.y.toFixed(4), t = Js.z.toFixed(4);
19536
19536
  return [
19537
19537
  "float luminance( const in vec3 rgb ) {",
19538
19538
  ` const vec3 weights = vec3( ${r}, ${e}, ${t} );`,
@@ -19545,7 +19545,7 @@ function bv(r) {
19545
19545
  return [
19546
19546
  r.extensionClipCullDistance ? "#extension GL_ANGLE_clip_cull_distance : require" : "",
19547
19547
  r.extensionMultiDraw ? "#extension GL_ANGLE_multi_draw : require" : ""
19548
- ].filter(is).join(`
19548
+ ].filter(rs).join(`
19549
19549
  `);
19550
19550
  }
19551
19551
  function Ev(r) {
@@ -19570,7 +19570,7 @@ function Tv(r, e) {
19570
19570
  }
19571
19571
  return t;
19572
19572
  }
19573
- function is(r) {
19573
+ function rs(r) {
19574
19574
  return r !== "";
19575
19575
  }
19576
19576
  function Nu(r, e) {
@@ -19638,11 +19638,11 @@ function Dv(r) {
19638
19638
  let e = "ENVMAP_TYPE_CUBE";
19639
19639
  if (r.envMap)
19640
19640
  switch (r.envMapMode) {
19641
- case Nr:
19642
19641
  case Fr:
19642
+ case Or:
19643
19643
  e = "ENVMAP_TYPE_CUBE";
19644
19644
  break;
19645
- case Ra:
19645
+ case Ca:
19646
19646
  e = "ENVMAP_TYPE_CUBE_UV";
19647
19647
  break;
19648
19648
  }
@@ -19652,7 +19652,7 @@ function Uv(r) {
19652
19652
  let e = "ENVMAP_MODE_REFLECTION";
19653
19653
  if (r.envMap)
19654
19654
  switch (r.envMapMode) {
19655
- case Fr:
19655
+ case Or:
19656
19656
  e = "ENVMAP_MODE_REFRACTION";
19657
19657
  break;
19658
19658
  }
@@ -19662,7 +19662,7 @@ function Iv(r) {
19662
19662
  let e = "ENVMAP_BLENDING_NONE";
19663
19663
  if (r.envMap)
19664
19664
  switch (r.combine) {
19665
- case Aa:
19665
+ case Ra:
19666
19666
  e = "ENVMAP_BLENDING_MULTIPLY";
19667
19667
  break;
19668
19668
  case Nf:
@@ -19690,13 +19690,13 @@ function Fv(r, e, t, n) {
19690
19690
  "#define SHADER_TYPE " + t.shaderType,
19691
19691
  "#define SHADER_NAME " + t.shaderName,
19692
19692
  m
19693
- ].filter(is).join(`
19693
+ ].filter(rs).join(`
19694
19694
  `), g.length > 0 && (g += `
19695
19695
  `), p = [
19696
19696
  "#define SHADER_TYPE " + t.shaderType,
19697
19697
  "#define SHADER_NAME " + t.shaderName,
19698
19698
  m
19699
- ].filter(is).join(`
19699
+ ].filter(rs).join(`
19700
19700
  `), p.length > 0 && (p += `
19701
19701
  `)) : (g = [
19702
19702
  Bu(t),
@@ -19830,7 +19830,7 @@ function Fv(r, e, t, n) {
19830
19830
  "#endif",
19831
19831
  `
19832
19832
  `
19833
- ].filter(is).join(`
19833
+ ].filter(rs).join(`
19834
19834
  `), p = [
19835
19835
  Bu(t),
19836
19836
  "#define SHADER_TYPE " + t.shaderType,
@@ -19914,7 +19914,7 @@ function Fv(r, e, t, n) {
19914
19914
  t.useDepthPacking ? "#define DEPTH_PACKING " + t.depthPacking : "",
19915
19915
  `
19916
19916
  `
19917
- ].filter(is).join(`
19917
+ ].filter(rs).join(`
19918
19918
  `)), a = Ml(a), a = Nu(a, t), a = Fu(a, t), o = Ml(o), o = Nu(o, t), o = Fu(o, t), a = Ou(a), o = Ou(o), t.isRawShaderMaterial !== !0 && (S = `#version 300 es
19919
19919
  `, g = [
19920
19920
  f,
@@ -19976,7 +19976,7 @@ Program Info Log: ` + B + `
19976
19976
  }
19977
19977
  });
19978
19978
  }
19979
- i.deleteShader(I), i.deleteShader(R), D = new ha(i, _), b = Tv(i, _);
19979
+ i.deleteShader(I), i.deleteShader(R), D = new da(i, _), b = Tv(i, _);
19980
19980
  }
19981
19981
  let D;
19982
19982
  this.getUniforms = function() {
@@ -20057,7 +20057,7 @@ function zv(r, e, t, n, i, s, a) {
20057
20057
  return c.add(b), b === 0 ? "uv" : `uv${b}`;
20058
20058
  }
20059
20059
  function g(b, x, w, B, z) {
20060
- const X = B.fog, q = z.geometry, O = b.isMeshStandardMaterial ? B.environment : null, K = (b.isMeshStandardMaterial ? t : e).get(b.envMap || O), H = K && K.mapping === Ra ? K.image.height : null, ie = m[b.type];
20060
+ const X = B.fog, q = z.geometry, O = b.isMeshStandardMaterial ? B.environment : null, K = (b.isMeshStandardMaterial ? t : e).get(b.envMap || O), H = K && K.mapping === Ca ? K.image.height : null, ie = m[b.type];
20061
20061
  b.precision !== null && (f = i.getMaxPrecision(b.precision), f !== b.precision && console.warn("THREE.WebGLProgram.getParameters:", b.precision, "not supported, using", f, "instead."));
20062
20062
  const oe = q.morphAttributes.position || q.morphAttributes.normal || q.morphAttributes.color, $ = oe !== void 0 ? oe.length : 0;
20063
20063
  let ve = 0;
@@ -20089,7 +20089,7 @@ function zv(r, e, t, n, i, s, a) {
20089
20089
  instancingColor: it && z.instanceColor !== null,
20090
20090
  instancingMorph: it && z.morphTexture !== null,
20091
20091
  supportsVertexTextures: d,
20092
- outputColorSpace: ae === null ? r.outputColorSpace : ae.isXRRenderTarget === !0 ? ae.texture.colorSpace : Or,
20092
+ outputColorSpace: ae === null ? r.outputColorSpace : ae.isXRRenderTarget === !0 ? ae.texture.colorSpace : Br,
20093
20093
  alphaToCoverage: !!b.alphaToCoverage,
20094
20094
  map: At,
20095
20095
  matcap: se,
@@ -20126,7 +20126,7 @@ function zv(r, e, t, n, i, s, a) {
20126
20126
  transmissionMap: V,
20127
20127
  thicknessMap: Ce,
20128
20128
  gradientMap: fe,
20129
- opaque: b.transparent === !1 && b.blending === Lr && b.alphaToCoverage === !1,
20129
+ opaque: b.transparent === !1 && b.blending === Dr && b.alphaToCoverage === !1,
20130
20130
  alphaMap: Oe,
20131
20131
  alphaTest: _e,
20132
20132
  alphaHash: ue,
@@ -20767,11 +20767,11 @@ const Qv = {
20767
20767
  [Uo]: Io,
20768
20768
  [No]: Bo,
20769
20769
  [Fo]: ko,
20770
- [Ir]: Oo,
20770
+ [Nr]: Oo,
20771
20771
  [Io]: Uo,
20772
20772
  [Bo]: No,
20773
20773
  [ko]: Fo,
20774
- [Oo]: Ir
20774
+ [Oo]: Nr
20775
20775
  };
20776
20776
  function ey(r, e) {
20777
20777
  function t() {
@@ -20826,7 +20826,7 @@ function ey(r, e) {
20826
20826
  case No:
20827
20827
  r.depthFunc(r.LESS);
20828
20828
  break;
20829
- case Ir:
20829
+ case Nr:
20830
20830
  r.depthFunc(r.LEQUAL);
20831
20831
  break;
20832
20832
  case Fo:
@@ -20900,7 +20900,7 @@ function ey(r, e) {
20900
20900
  return ue;
20901
20901
  }
20902
20902
  const re = {};
20903
- re[r.TEXTURE_2D] = te(r.TEXTURE_2D, r.TEXTURE_2D, 1), re[r.TEXTURE_CUBE_MAP] = te(r.TEXTURE_CUBE_MAP, r.TEXTURE_CUBE_MAP_POSITIVE_X, 6), re[r.TEXTURE_2D_ARRAY] = te(r.TEXTURE_2D_ARRAY, r.TEXTURE_2D_ARRAY, 1, 1), re[r.TEXTURE_3D] = te(r.TEXTURE_3D, r.TEXTURE_3D, 1, 1), s.setClear(0, 0, 0, 1), a.setClear(1), o.setClear(0), ae(r.DEPTH_TEST), a.setFunc(Ir), Se(!1), Ee(yc), ae(r.CULL_FACE), N(Ci);
20903
+ re[r.TEXTURE_2D] = te(r.TEXTURE_2D, r.TEXTURE_2D, 1), re[r.TEXTURE_CUBE_MAP] = te(r.TEXTURE_CUBE_MAP, r.TEXTURE_CUBE_MAP_POSITIVE_X, 6), re[r.TEXTURE_2D_ARRAY] = te(r.TEXTURE_2D_ARRAY, r.TEXTURE_2D_ARRAY, 1, 1), re[r.TEXTURE_3D] = te(r.TEXTURE_3D, r.TEXTURE_3D, 1, 1), s.setClear(0, 0, 0, 1), a.setClear(1), o.setClear(0), ae(r.DEPTH_TEST), a.setFunc(Nr), Se(!1), Ee(yc), ae(r.CULL_FACE), N(Ci);
20904
20904
  function ae(V) {
20905
20905
  u[V] !== !0 && (r.enable(V), u[V] = !0);
20906
20906
  }
@@ -20959,7 +20959,7 @@ function ey(r, e) {
20959
20959
  if (V !== g || Je !== b) {
20960
20960
  if ((p !== ji || y !== ji) && (r.blendEquation(r.FUNC_ADD), p = ji, y = ji), Je)
20961
20961
  switch (V) {
20962
- case Lr:
20962
+ case Dr:
20963
20963
  r.blendFuncSeparate(r.ONE, r.ONE_MINUS_SRC_ALPHA, r.ONE, r.ONE_MINUS_SRC_ALPHA);
20964
20964
  break;
20965
20965
  case xc:
@@ -20977,7 +20977,7 @@ function ey(r, e) {
20977
20977
  }
20978
20978
  else
20979
20979
  switch (V) {
20980
- case Lr:
20980
+ case Dr:
20981
20981
  r.blendFuncSeparate(r.SRC_ALPHA, r.ONE_MINUS_SRC_ALPHA, r.ONE, r.ONE_MINUS_SRC_ALPHA);
20982
20982
  break;
20983
20983
  case xc:
@@ -21002,7 +21002,7 @@ function ey(r, e) {
21002
21002
  function Ve(V, Ce) {
21003
21003
  V.side === gn ? Me(r.CULL_FACE) : ae(r.CULL_FACE);
21004
21004
  let fe = V.side === _n;
21005
- Ce && (fe = !fe), Se(fe), V.blending === Lr && V.transparent === !1 ? N(Ci) : N(V.blending, V.blendEquation, V.blendSrc, V.blendDst, V.blendEquationAlpha, V.blendSrcAlpha, V.blendDstAlpha, V.blendColor, V.blendAlpha, V.premultipliedAlpha), a.setFunc(V.depthFunc), a.setTest(V.depthTest), a.setMask(V.depthWrite), s.setMask(V.colorWrite);
21005
+ Ce && (fe = !fe), Se(fe), V.blending === Dr && V.transparent === !1 ? N(Ci) : N(V.blending, V.blendEquation, V.blendSrc, V.blendDst, V.blendEquationAlpha, V.blendSrcAlpha, V.blendDstAlpha, V.blendColor, V.blendAlpha, V.premultipliedAlpha), a.setFunc(V.depthFunc), a.setTest(V.depthTest), a.setMask(V.depthWrite), s.setMask(V.colorWrite);
21006
21006
  const Oe = V.stencilWrite;
21007
21007
  o.setTest(Oe), Oe && (o.setMask(V.stencilWriteMask), o.setFunc(V.stencilFunc, V.stencilRef, V.stencilFuncMask), o.setOp(V.stencilFail, V.stencilZFail, V.stencilZPass)), Fe(V.polygonOffset, V.polygonOffsetFactor, V.polygonOffsetUnits), V.alphaToCoverage === !0 ? ae(r.SAMPLE_ALPHA_TO_COVERAGE) : Me(r.SAMPLE_ALPHA_TO_COVERAGE);
21008
21008
  }
@@ -21173,7 +21173,7 @@ function ty(r, e, t, n, i, s, a) {
21173
21173
  return f ? (
21174
21174
  // eslint-disable-next-line compat/compat
21175
21175
  new OffscreenCanvas(F, T)
21176
- ) : ds("canvas");
21176
+ ) : fs("canvas");
21177
21177
  }
21178
21178
  function _(F, T, Y) {
21179
21179
  let le = 1;
@@ -21204,14 +21204,14 @@ function ty(r, e, t, n, i, s, a) {
21204
21204
  }
21205
21205
  let ne = T;
21206
21206
  if (T === r.RED && (Y === r.FLOAT && (ne = r.R32F), Y === r.HALF_FLOAT && (ne = r.R16F), Y === r.UNSIGNED_BYTE && (ne = r.R8)), T === r.RED_INTEGER && (Y === r.UNSIGNED_BYTE && (ne = r.R8UI), Y === r.UNSIGNED_SHORT && (ne = r.R16UI), Y === r.UNSIGNED_INT && (ne = r.R32UI), Y === r.BYTE && (ne = r.R8I), Y === r.SHORT && (ne = r.R16I), Y === r.INT && (ne = r.R32I)), T === r.RG && (Y === r.FLOAT && (ne = r.RG32F), Y === r.HALF_FLOAT && (ne = r.RG16F), Y === r.UNSIGNED_BYTE && (ne = r.RG8)), T === r.RG_INTEGER && (Y === r.UNSIGNED_BYTE && (ne = r.RG8UI), Y === r.UNSIGNED_SHORT && (ne = r.RG16UI), Y === r.UNSIGNED_INT && (ne = r.RG32UI), Y === r.BYTE && (ne = r.RG8I), Y === r.SHORT && (ne = r.RG16I), Y === r.INT && (ne = r.RG32I)), T === r.RGB_INTEGER && (Y === r.UNSIGNED_BYTE && (ne = r.RGB8UI), Y === r.UNSIGNED_SHORT && (ne = r.RGB16UI), Y === r.UNSIGNED_INT && (ne = r.RGB32UI), Y === r.BYTE && (ne = r.RGB8I), Y === r.SHORT && (ne = r.RGB16I), Y === r.INT && (ne = r.RGB32I)), T === r.RGBA_INTEGER && (Y === r.UNSIGNED_BYTE && (ne = r.RGBA8UI), Y === r.UNSIGNED_SHORT && (ne = r.RGBA16UI), Y === r.UNSIGNED_INT && (ne = r.RGBA32UI), Y === r.BYTE && (ne = r.RGBA8I), Y === r.SHORT && (ne = r.RGBA16I), Y === r.INT && (ne = r.RGBA32I)), T === r.RGB && Y === r.UNSIGNED_INT_5_9_9_9_REV && (ne = r.RGB9_E5), T === r.RGBA) {
21207
- const He = he ? xa : _t.getTransfer(le);
21207
+ const He = he ? Ma : _t.getTransfer(le);
21208
21208
  Y === r.FLOAT && (ne = r.RGBA32F), Y === r.HALF_FLOAT && (ne = r.RGBA16F), Y === r.UNSIGNED_BYTE && (ne = He === Dt ? r.SRGB8_ALPHA8 : r.RGBA8), Y === r.UNSIGNED_SHORT_4_4_4_4 && (ne = r.RGBA4), Y === r.UNSIGNED_SHORT_5_5_5_1 && (ne = r.RGB5_A1);
21209
21209
  }
21210
21210
  return (ne === r.R16F || ne === r.R32F || ne === r.RG16F || ne === r.RG32F || ne === r.RGBA16F || ne === r.RGBA32F) && e.get("EXT_color_buffer_float"), ne;
21211
21211
  }
21212
21212
  function y(F, T) {
21213
21213
  let Y;
21214
- return F ? T === null || T === Qi || T === cs ? Y = r.DEPTH24_STENCIL8 : T === Jn ? Y = r.DEPTH32F_STENCIL8 : T === ls && (Y = r.DEPTH24_STENCIL8, console.warn("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")) : T === null || T === Qi || T === cs ? Y = r.DEPTH_COMPONENT24 : T === Jn ? Y = r.DEPTH_COMPONENT32F : T === ls && (Y = r.DEPTH_COMPONENT16), Y;
21214
+ return F ? T === null || T === Qi || T === us ? Y = r.DEPTH24_STENCIL8 : T === Jn ? Y = r.DEPTH32F_STENCIL8 : T === cs && (Y = r.DEPTH24_STENCIL8, console.warn("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")) : T === null || T === Qi || T === us ? Y = r.DEPTH_COMPONENT24 : T === Jn ? Y = r.DEPTH_COMPONENT32F : T === cs && (Y = r.DEPTH_COMPONENT16), Y;
21215
21215
  }
21216
21216
  function I(F, T) {
21217
21217
  return g(F) === !0 || F.isFramebufferTexture && F.minFilter !== wn && F.minFilter !== Tn ? Math.log2(Math.max(T.width, T.height)) + 1 : F.mipmaps !== void 0 && F.mipmaps.length > 0 ? F.mipmaps.length : F.isCompressedTexture && Array.isArray(F.image) ? T.mipmaps.length : 1;
@@ -21325,9 +21325,9 @@ function ty(r, e, t, n, i, s, a) {
21325
21325
  }, oe = {
21326
21326
  [wn]: r.NEAREST,
21327
21327
  [Xf]: r.NEAREST_MIPMAP_NEAREST,
21328
- [xs]: r.NEAREST_MIPMAP_LINEAR,
21328
+ [Ms]: r.NEAREST_MIPMAP_LINEAR,
21329
21329
  [Tn]: r.LINEAR,
21330
- [Ba]: r.LINEAR_MIPMAP_NEAREST,
21330
+ [ka]: r.LINEAR_MIPMAP_NEAREST,
21331
21331
  [pi]: r.LINEAR_MIPMAP_LINEAR
21332
21332
  }, $ = {
21333
21333
  [$f]: r.NEVER,
@@ -21340,8 +21340,8 @@ function ty(r, e, t, n, i, s, a) {
21340
21340
  [ep]: r.NOTEQUAL
21341
21341
  };
21342
21342
  function ve(F, T) {
21343
- if (T.type === Jn && e.has("OES_texture_float_linear") === !1 && (T.magFilter === Tn || T.magFilter === Ba || T.magFilter === xs || T.magFilter === pi || T.minFilter === Tn || T.minFilter === Ba || T.minFilter === xs || T.minFilter === pi) && console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."), r.texParameteri(F, r.TEXTURE_WRAP_S, ie[T.wrapS]), r.texParameteri(F, r.TEXTURE_WRAP_T, ie[T.wrapT]), (F === r.TEXTURE_3D || F === r.TEXTURE_2D_ARRAY) && r.texParameteri(F, r.TEXTURE_WRAP_R, ie[T.wrapR]), r.texParameteri(F, r.TEXTURE_MAG_FILTER, oe[T.magFilter]), r.texParameteri(F, r.TEXTURE_MIN_FILTER, oe[T.minFilter]), T.compareFunction && (r.texParameteri(F, r.TEXTURE_COMPARE_MODE, r.COMPARE_REF_TO_TEXTURE), r.texParameteri(F, r.TEXTURE_COMPARE_FUNC, $[T.compareFunction])), e.has("EXT_texture_filter_anisotropic") === !0) {
21344
- if (T.magFilter === wn || T.minFilter !== xs && T.minFilter !== pi || T.type === Jn && e.has("OES_texture_float_linear") === !1) return;
21343
+ if (T.type === Jn && e.has("OES_texture_float_linear") === !1 && (T.magFilter === Tn || T.magFilter === ka || T.magFilter === Ms || T.magFilter === pi || T.minFilter === Tn || T.minFilter === ka || T.minFilter === Ms || T.minFilter === pi) && console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."), r.texParameteri(F, r.TEXTURE_WRAP_S, ie[T.wrapS]), r.texParameteri(F, r.TEXTURE_WRAP_T, ie[T.wrapT]), (F === r.TEXTURE_3D || F === r.TEXTURE_2D_ARRAY) && r.texParameteri(F, r.TEXTURE_WRAP_R, ie[T.wrapR]), r.texParameteri(F, r.TEXTURE_MAG_FILTER, oe[T.magFilter]), r.texParameteri(F, r.TEXTURE_MIN_FILTER, oe[T.minFilter]), T.compareFunction && (r.texParameteri(F, r.TEXTURE_COMPARE_MODE, r.COMPARE_REF_TO_TEXTURE), r.texParameteri(F, r.TEXTURE_COMPARE_FUNC, $[T.compareFunction])), e.has("EXT_texture_filter_anisotropic") === !0) {
21344
+ if (T.magFilter === wn || T.minFilter !== Ms && T.minFilter !== pi || T.type === Jn && e.has("OES_texture_float_linear") === !1) return;
21345
21345
  if (T.anisotropy > 1 || n.get(T).__currentAnisotropy) {
21346
21346
  const Y = e.get("EXT_texture_filter_anisotropic");
21347
21347
  r.texParameterf(F, Y.TEXTURE_MAX_ANISOTROPY_EXT, Math.min(T.anisotropy, i.getMaxAnisotropy())), n.get(T).__currentAnisotropy = T.anisotropy;
@@ -21410,7 +21410,7 @@ function ty(r, e, t, n, i, s, a) {
21410
21410
  let Te;
21411
21411
  const st = T.mipmaps, V = T.isVideoTexture !== !0, Ce = He.__version === void 0 || he === !0, fe = ne.dataReady, Oe = I(T, de);
21412
21412
  if (T.isDepthTexture)
21413
- Ze = y(T.format === hs, T.type), Ce && (V ? t.texStorage2D(r.TEXTURE_2D, 1, Ze, de.width, de.height) : t.texImage2D(r.TEXTURE_2D, 0, Ze, de.width, de.height, 0, Ne, et, null));
21413
+ Ze = y(T.format === ds, T.type), Ce && (V ? t.texStorage2D(r.TEXTURE_2D, 1, Ze, de.width, de.height) : t.texImage2D(r.TEXTURE_2D, 0, Ze, de.width, de.height, 0, Ne, et, null));
21414
21414
  else if (T.isDataTexture)
21415
21415
  if (st.length > 0) {
21416
21416
  V && Ce && t.texStorage2D(r.TEXTURE_2D, Oe, Ze, st[0].width, st[0].height);
@@ -21576,9 +21576,9 @@ function ty(r, e, t, n, i, s, a) {
21576
21576
  const le = n.get(T.depthTexture);
21577
21577
  le.__renderTarget = T, (!le.__webglTexture || T.depthTexture.image.width !== T.width || T.depthTexture.image.height !== T.height) && (T.depthTexture.image.width = T.width, T.depthTexture.image.height = T.height, T.depthTexture.needsUpdate = !0), q(T.depthTexture, 0);
21578
21578
  const he = le.__webglTexture, ne = ee(T);
21579
- if (T.depthTexture.format === us)
21579
+ if (T.depthTexture.format === hs)
21580
21580
  Fe(T) ? o.framebufferTexture2DMultisampleEXT(r.FRAMEBUFFER, r.DEPTH_ATTACHMENT, r.TEXTURE_2D, he, 0, ne) : r.framebufferTexture2D(r.FRAMEBUFFER, r.DEPTH_ATTACHMENT, r.TEXTURE_2D, he, 0);
21581
- else if (T.depthTexture.format === hs)
21581
+ else if (T.depthTexture.format === ds)
21582
21582
  Fe(T) ? o.framebufferTexture2DMultisampleEXT(r.FRAMEBUFFER, r.DEPTH_STENCIL_ATTACHMENT, r.TEXTURE_2D, he, 0, ne) : r.framebufferTexture2D(r.FRAMEBUFFER, r.DEPTH_STENCIL_ATTACHMENT, r.TEXTURE_2D, he, 0);
21583
21583
  else
21584
21584
  throw new Error("Unknown depthTexture format");
@@ -21742,7 +21742,7 @@ function ty(r, e, t, n, i, s, a) {
21742
21742
  }
21743
21743
  function Ae(F, T) {
21744
21744
  const Y = F.colorSpace, le = F.format, he = F.type;
21745
- return F.isCompressedTexture === !0 || F.isVideoTexture === !0 || Y !== Or && Y !== Ri && (_t.getTransfer(Y) === Dt ? (le !== In || he !== ei) && console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.") : console.error("THREE.WebGLTextures: Unsupported texture color space:", Y)), T;
21745
+ return F.isCompressedTexture === !0 || F.isVideoTexture === !0 || Y !== Br && Y !== Ri && (_t.getTransfer(Y) === Dt ? (le !== In || he !== ei) && console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.") : console.error("THREE.WebGLTextures: Unsupported texture color space:", Y)), T;
21746
21746
  }
21747
21747
  function ft(F) {
21748
21748
  return typeof HTMLImageElement < "u" && F instanceof HTMLImageElement ? (c.width = F.naturalWidth || F.width, c.height = F.naturalHeight || F.height) : typeof VideoFrame < "u" && F instanceof VideoFrame ? (c.width = F.displayWidth, c.height = F.displayHeight) : (c.width = F.width, c.height = F.height), c;
@@ -21759,35 +21759,35 @@ function ny(r, e) {
21759
21759
  if (n === Rh) return r.UNSIGNED_INT_5_9_9_9_REV;
21760
21760
  if (n === wh) return r.BYTE;
21761
21761
  if (n === Ah) return r.SHORT;
21762
- if (n === ls) return r.UNSIGNED_SHORT;
21762
+ if (n === cs) return r.UNSIGNED_SHORT;
21763
21763
  if (n === Dl) return r.INT;
21764
21764
  if (n === Qi) return r.UNSIGNED_INT;
21765
21765
  if (n === Jn) return r.FLOAT;
21766
- if (n === ps) return r.HALF_FLOAT;
21766
+ if (n === ms) return r.HALF_FLOAT;
21767
21767
  if (n === Ch) return r.ALPHA;
21768
21768
  if (n === Ph) return r.RGB;
21769
21769
  if (n === In) return r.RGBA;
21770
- if (n === us) return r.DEPTH_COMPONENT;
21771
- if (n === hs) return r.DEPTH_STENCIL;
21770
+ if (n === hs) return r.DEPTH_COMPONENT;
21771
+ if (n === ds) return r.DEPTH_STENCIL;
21772
21772
  if (n === Lh) return r.RED;
21773
21773
  if (n === Nl) return r.RED_INTEGER;
21774
21774
  if (n === Dh) return r.RG;
21775
21775
  if (n === Fl) return r.RG_INTEGER;
21776
21776
  if (n === Ol) return r.RGBA_INTEGER;
21777
- if (n === aa || n === oa || n === la || n === ca)
21777
+ if (n === oa || n === la || n === ca || n === ua)
21778
21778
  if (a === Dt)
21779
21779
  if (s = e.get("WEBGL_compressed_texture_s3tc_srgb"), s !== null) {
21780
- if (n === aa) return s.COMPRESSED_SRGB_S3TC_DXT1_EXT;
21781
- if (n === oa) return s.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;
21782
- if (n === la) return s.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;
21783
- if (n === ca) return s.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT;
21780
+ if (n === oa) return s.COMPRESSED_SRGB_S3TC_DXT1_EXT;
21781
+ if (n === la) return s.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;
21782
+ if (n === ca) return s.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;
21783
+ if (n === ua) return s.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT;
21784
21784
  } else
21785
21785
  return null;
21786
21786
  else if (s = e.get("WEBGL_compressed_texture_s3tc"), s !== null) {
21787
- if (n === aa) return s.COMPRESSED_RGB_S3TC_DXT1_EXT;
21788
- if (n === oa) return s.COMPRESSED_RGBA_S3TC_DXT1_EXT;
21789
- if (n === la) return s.COMPRESSED_RGBA_S3TC_DXT3_EXT;
21790
- if (n === ca) return s.COMPRESSED_RGBA_S3TC_DXT5_EXT;
21787
+ if (n === oa) return s.COMPRESSED_RGB_S3TC_DXT1_EXT;
21788
+ if (n === la) return s.COMPRESSED_RGBA_S3TC_DXT1_EXT;
21789
+ if (n === ca) return s.COMPRESSED_RGBA_S3TC_DXT3_EXT;
21790
+ if (n === ua) return s.COMPRESSED_RGBA_S3TC_DXT5_EXT;
21791
21791
  } else
21792
21792
  return null;
21793
21793
  if (n === Go || n === Wo || n === Xo || n === qo)
@@ -21822,22 +21822,22 @@ function ny(r, e) {
21822
21822
  if (n === cl) return a === Dt ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR : s.COMPRESSED_RGBA_ASTC_12x12_KHR;
21823
21823
  } else
21824
21824
  return null;
21825
- if (n === ua || n === ul || n === hl)
21825
+ if (n === ha || n === ul || n === hl)
21826
21826
  if (s = e.get("EXT_texture_compression_bptc"), s !== null) {
21827
- if (n === ua) return a === Dt ? s.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT : s.COMPRESSED_RGBA_BPTC_UNORM_EXT;
21827
+ if (n === ha) return a === Dt ? s.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT : s.COMPRESSED_RGBA_BPTC_UNORM_EXT;
21828
21828
  if (n === ul) return s.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;
21829
21829
  if (n === hl) return s.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT;
21830
21830
  } else
21831
21831
  return null;
21832
21832
  if (n === Uh || n === dl || n === fl || n === pl)
21833
21833
  if (s = e.get("EXT_texture_compression_rgtc"), s !== null) {
21834
- if (n === ua) return s.COMPRESSED_RED_RGTC1_EXT;
21834
+ if (n === ha) return s.COMPRESSED_RED_RGTC1_EXT;
21835
21835
  if (n === dl) return s.COMPRESSED_SIGNED_RED_RGTC1_EXT;
21836
21836
  if (n === fl) return s.COMPRESSED_RED_GREEN_RGTC2_EXT;
21837
21837
  if (n === pl) return s.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT;
21838
21838
  } else
21839
21839
  return null;
21840
- return n === cs ? r.UNSIGNED_INT_24_8 : r[n] !== void 0 ? r[n] : null;
21840
+ return n === us ? r.UNSIGNED_INT_24_8 : r[n] !== void 0 ? r[n] : null;
21841
21841
  }
21842
21842
  return { convert: t };
21843
21843
  }
@@ -21903,7 +21903,7 @@ class sy {
21903
21903
  depthHeight: { value: t.w }
21904
21904
  }
21905
21905
  });
21906
- this.mesh = new Ut(new Pa(20, 20), n);
21906
+ this.mesh = new Ut(new La(20, 20), n);
21907
21907
  }
21908
21908
  return this.mesh;
21909
21909
  }
@@ -21945,13 +21945,13 @@ class ay extends tr {
21945
21945
  let w = null, B = null;
21946
21946
  this.cameraAutoUpdate = !0, this.enabled = !1, this.isPresenting = !1, this.getController = function(j) {
21947
21947
  let te = E[j];
21948
- return te === void 0 && (te = new ao(), E[j] = te), te.getTargetRaySpace();
21948
+ return te === void 0 && (te = new oo(), E[j] = te), te.getTargetRaySpace();
21949
21949
  }, this.getControllerGrip = function(j) {
21950
21950
  let te = E[j];
21951
- return te === void 0 && (te = new ao(), E[j] = te), te.getGripSpace();
21951
+ return te === void 0 && (te = new oo(), E[j] = te), te.getGripSpace();
21952
21952
  }, this.getHand = function(j) {
21953
21953
  let te = E[j];
21954
- return te === void 0 && (te = new ao(), E[j] = te), te.getHandSpace();
21954
+ return te === void 0 && (te = new oo(), E[j] = te), te.getHandSpace();
21955
21955
  };
21956
21956
  function z(j) {
21957
21957
  const te = y.indexOf(j.inputSource);
@@ -21988,7 +21988,7 @@ class ay extends tr {
21988
21988
  if (i = j, i !== null) {
21989
21989
  if (p = e.getRenderTarget(), i.addEventListener("select", z), i.addEventListener("selectstart", z), i.addEventListener("selectend", z), i.addEventListener("squeeze", z), i.addEventListener("squeezestart", z), i.addEventListener("squeezeend", z), i.addEventListener("end", X), i.addEventListener("inputsourceschange", q), g.xrCompatible !== !0 && await t.makeXRCompatible(), R = e.getPixelRatio(), e.getSize(I), typeof XRWebGLBinding < "u" && "createProjectionLayer" in XRWebGLBinding.prototype) {
21990
21990
  let re = null, ae = null, Me = null;
21991
- g.depth && (Me = g.stencil ? t.DEPTH24_STENCIL8 : t.DEPTH_COMPONENT24, re = g.stencil ? hs : us, ae = g.stencil ? cs : Qi);
21991
+ g.depth && (Me = g.stencil ? t.DEPTH24_STENCIL8 : t.DEPTH_COMPONENT24, re = g.stencil ? ds : hs, ae = g.stencil ? us : Qi);
21992
21992
  const it = {
21993
21993
  colorFormat: t.RGBA8,
21994
21994
  depthFormat: Me,
@@ -22088,7 +22088,7 @@ class ay extends tr {
22088
22088
  Me.length === 2 ? H(x, C, D) : x.projectionMatrix.copy(C.projectionMatrix), oe(j, x, ae);
22089
22089
  };
22090
22090
  function oe(j, te, re) {
22091
- re === null ? j.matrix.copy(te.matrixWorld) : (j.matrix.copy(re.matrixWorld), j.matrix.invert(), j.matrix.multiply(te.matrixWorld)), j.matrix.decompose(j.position, j.quaternion, j.scale), j.updateMatrixWorld(!0), j.projectionMatrix.copy(te.projectionMatrix), j.projectionMatrixInverse.copy(te.projectionMatrixInverse), j.isPerspectiveCamera && (j.fov = Br * 2 * Math.atan(1 / j.projectionMatrix.elements[5]), j.zoom = 1);
22091
+ re === null ? j.matrix.copy(te.matrixWorld) : (j.matrix.copy(re.matrixWorld), j.matrix.invert(), j.matrix.multiply(te.matrixWorld)), j.matrix.decompose(j.position, j.quaternion, j.scale), j.updateMatrixWorld(!0), j.projectionMatrix.copy(te.projectionMatrix), j.projectionMatrixInverse.copy(te.projectionMatrixInverse), j.isPerspectiveCamera && (j.fov = kr * 2 * Math.atan(1 / j.projectionMatrix.elements[5]), j.zoom = 1);
22092
22092
  }
22093
22093
  this.getCamera = function() {
22094
22094
  return x;
@@ -22450,7 +22450,7 @@ class Nx {
22450
22450
  W = ye === Ol || ye === Fl || ye === Nl;
22451
22451
  }
22452
22452
  if (W) {
22453
- const ye = D.texture.type, Le = ye === ei || ye === Qi || ye === ls || ye === cs || ye === Ul || ye === Il, We = de.getClearColor(), Be = de.getClearAlpha(), at = We.r, ot = We.g, $e = We.b;
22453
+ const ye = D.texture.type, Le = ye === ei || ye === Qi || ye === cs || ye === us || ye === Ul || ye === Il, We = de.getClearColor(), Be = de.getClearAlpha(), at = We.r, ot = We.g, $e = We.b;
22454
22454
  Le ? (m[0] = at, m[1] = ot, m[2] = $e, m[3] = Be, N.clearBufferuiv(N.COLOR, 0, m)) : (_[0] = at, _[1] = ot, _[2] = $e, _[3] = Be, N.clearBufferiv(N.COLOR, 0, _));
22455
22455
  } else
22456
22456
  Z |= N.COLOR_BUFFER_BIT;
@@ -22513,7 +22513,7 @@ class Nx {
22513
22513
  } else W.isPoints ? Mt.setMode(N.POINTS) : W.isSprite && Mt.setMode(N.TRIANGLES);
22514
22514
  if (W.isBatchedMesh)
22515
22515
  if (W._multiDrawInstances !== null)
22516
- Dr("THREE.WebGLRenderer: renderMultiDrawInstances has been deprecated and will be removed in r184. Append to renderMultiDraw arguments and use indirection."), Mt.renderMultiDrawInstances(W._multiDrawStarts, W._multiDrawCounts, W._multiDrawCount, W._multiDrawInstances);
22516
+ Ur("THREE.WebGLRenderer: renderMultiDrawInstances has been deprecated and will be removed in r184. Append to renderMultiDraw arguments and use indirection."), Mt.renderMultiDrawInstances(W._multiDrawStarts, W._multiDrawCounts, W._multiDrawCount, W._multiDrawInstances);
22517
22517
  else if (Se.get("WEBGL_multi_draw"))
22518
22518
  Mt.renderMultiDraw(W._multiDrawStarts, W._multiDrawCounts, W._multiDrawCount);
22519
22519
  else {
@@ -22649,7 +22649,7 @@ class Nx {
22649
22649
  return;
22650
22650
  p.state.transmissionRenderTarget[Z.id] === void 0 && (p.state.transmissionRenderTarget[Z.id] = new er(1, 1, {
22651
22651
  generateMipmaps: !0,
22652
- type: Se.has("EXT_color_buffer_half_float") || Se.has("EXT_color_buffer_float") ? ps : ei,
22652
+ type: Se.has("EXT_color_buffer_half_float") || Se.has("EXT_color_buffer_float") ? ms : ei,
22653
22653
  minFilter: pi,
22654
22654
  samples: 4,
22655
22655
  stencilBuffer: s,
@@ -22705,7 +22705,7 @@ class Nx {
22705
22705
  function Di(P) {
22706
22706
  if (P.uniformsList === null) {
22707
22707
  const G = P.currentProgram.getUniforms();
22708
- P.uniformsList = ha.seqWithValue(G.seq, P.uniforms);
22708
+ P.uniformsList = da.seqWithValue(G.seq, P.uniforms);
22709
22709
  }
22710
22710
  return P.uniformsList;
22711
22711
  }
@@ -22715,7 +22715,7 @@ class Nx {
22715
22715
  }
22716
22716
  function nr(P, G, J, Z, W) {
22717
22717
  G.isScene !== !0 && (G = At), Ae.resetTextureUnits();
22718
- const ye = G.fog, Le = Z.isMeshStandardMaterial ? G.environment : null, We = D === null ? y.outputColorSpace : D.isXRRenderTarget === !0 ? D.texture.colorSpace : Or, Be = (Z.isMeshStandardMaterial ? F : ft).get(Z.envMap || Le), at = Z.vertexColors === !0 && !!J.attributes.color && J.attributes.color.itemSize === 4, ot = !!J.attributes.tangent && (!!Z.normalMap || Z.anisotropy > 0), $e = !!J.morphAttributes.position, dt = !!J.morphAttributes.normal, Tt = !!J.morphAttributes.color;
22718
+ const ye = G.fog, Le = Z.isMeshStandardMaterial ? G.environment : null, We = D === null ? y.outputColorSpace : D.isXRRenderTarget === !0 ? D.texture.colorSpace : Br, Be = (Z.isMeshStandardMaterial ? F : ft).get(Z.envMap || Le), at = Z.vertexColors === !0 && !!J.attributes.color && J.attributes.color.itemSize === 4, ot = !!J.attributes.tangent && (!!Z.normalMap || Z.anisotropy > 0), $e = !!J.morphAttributes.position, dt = !!J.morphAttributes.normal, Tt = !!J.morphAttributes.color;
22719
22719
  let Ft = Pi;
22720
22720
  Z.toneMapped && (D === null || D.isXRRenderTarget === !0) && (Ft = y.toneMapping);
22721
22721
  const Bt = J.morphAttributes.position || J.morphAttributes.normal || J.morphAttributes.color, Mt = Bt !== void 0 ? Bt.length : 0, nt = De.get(Z), jt = p.state.lights;
@@ -22745,7 +22745,7 @@ class Nx {
22745
22745
  }
22746
22746
  W.isBatchedMesh && (It.setOptional(N, W, "batchingTexture"), It.setValue(N, "batchingTexture", W._matricesTexture, Ae), It.setOptional(N, W, "batchingIdTexture"), It.setValue(N, "batchingIdTexture", W._indirectTexture, Ae), It.setOptional(N, W, "batchingColorTexture"), W._colorsTexture !== null && It.setValue(N, "batchingColorTexture", W._colorsTexture, Ae));
22747
22747
  const an = J.morphAttributes;
22748
- if ((an.position !== void 0 || an.normal !== void 0 || an.color !== void 0) && Ne.update(W, J, vn), (Qt || nt.receiveShadow !== W.receiveShadow) && (nt.receiveShadow = W.receiveShadow, It.setValue(N, "receiveShadow", W.receiveShadow)), Z.isMeshGouraudMaterial && Z.envMap !== null && (dn.envMap.value = Be, dn.flipEnvMap.value = Be.isCubeTexture && Be.isRenderTargetTexture === !1 ? -1 : 1), Z.isMeshStandardMaterial && Z.envMap === null && G.environment !== null && (dn.envMapIntensity.value = G.environmentIntensity), Qt && (It.setValue(N, "toneMappingExposure", y.toneMappingExposure), nt.needsLights && ir(dn, Ni), ye && Z.fog === !0 && ne.refreshFogUniforms(dn, ye), ne.refreshMaterialUniforms(dn, Z, H, K, p.state.transmissionRenderTarget[P.id]), ha.upload(N, Di(nt), dn, Ae)), Z.isShaderMaterial && Z.uniformsNeedUpdate === !0 && (ha.upload(N, Di(nt), dn, Ae), Z.uniformsNeedUpdate = !1), Z.isSpriteMaterial && It.setValue(N, "center", W.center), It.setValue(N, "modelViewMatrix", W.modelViewMatrix), It.setValue(N, "normalMatrix", W.normalMatrix), It.setValue(N, "modelMatrix", W.matrixWorld), Z.isShaderMaterial || Z.isRawShaderMaterial) {
22748
+ if ((an.position !== void 0 || an.normal !== void 0 || an.color !== void 0) && Ne.update(W, J, vn), (Qt || nt.receiveShadow !== W.receiveShadow) && (nt.receiveShadow = W.receiveShadow, It.setValue(N, "receiveShadow", W.receiveShadow)), Z.isMeshGouraudMaterial && Z.envMap !== null && (dn.envMap.value = Be, dn.flipEnvMap.value = Be.isCubeTexture && Be.isRenderTargetTexture === !1 ? -1 : 1), Z.isMeshStandardMaterial && Z.envMap === null && G.environment !== null && (dn.envMapIntensity.value = G.environmentIntensity), Qt && (It.setValue(N, "toneMappingExposure", y.toneMappingExposure), nt.needsLights && ir(dn, Ni), ye && Z.fog === !0 && ne.refreshFogUniforms(dn, ye), ne.refreshMaterialUniforms(dn, Z, H, K, p.state.transmissionRenderTarget[P.id]), da.upload(N, Di(nt), dn, Ae)), Z.isShaderMaterial && Z.uniformsNeedUpdate === !0 && (da.upload(N, Di(nt), dn, Ae), Z.uniformsNeedUpdate = !1), Z.isSpriteMaterial && It.setValue(N, "center", W.center), It.setValue(N, "modelViewMatrix", W.modelViewMatrix), It.setValue(N, "normalMatrix", W.normalMatrix), It.setValue(N, "modelMatrix", W.matrixWorld), Z.isShaderMaterial || Z.isRawShaderMaterial) {
22749
22749
  const Xt = Z.uniformsGroups;
22750
22750
  for (let Yt = 0, sr = Xt.length; Yt < sr; Yt++) {
22751
22751
  const ri = Xt[Yt];
@@ -22860,7 +22860,7 @@ class Nx {
22860
22860
  };
22861
22861
  const hn = N.createFramebuffer(), ii = N.createFramebuffer();
22862
22862
  this.copyTextureToTexture = function(P, G, J = null, Z = null, W = 0, ye = null) {
22863
- ye === null && (W !== 0 ? (Dr("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."), ye = W, W = 0) : ye = 0);
22863
+ ye === null && (W !== 0 ? (Ur("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."), ye = W, W = 0) : ye = 0);
22864
22864
  let Le, We, Be, at, ot, $e, dt, Tt, Ft;
22865
22865
  const Bt = P.isCompressedTexture ? P.mipmaps[ye] : P.image;
22866
22866
  if (J !== null)
@@ -22892,7 +22892,7 @@ class Nx {
22892
22892
  dn ? P.isDataTexture || P.isData3DTexture ? N.texSubImage3D(jt, ye, dt, Tt, Ft, Le, We, Be, Mt, nt, Bt.data) : G.isCompressedArrayTexture ? N.compressedTexSubImage3D(jt, ye, dt, Tt, Ft, Le, We, Be, Mt, Bt.data) : N.texSubImage3D(jt, ye, dt, Tt, Ft, Le, We, Be, Mt, nt, Bt) : P.isDataTexture ? N.texSubImage2D(N.TEXTURE_2D, ye, dt, Tt, Le, We, Mt, nt, Bt.data) : P.isCompressedTexture ? N.compressedTexSubImage2D(N.TEXTURE_2D, ye, dt, Tt, Bt.width, Bt.height, Mt, Bt.data) : N.texSubImage2D(N.TEXTURE_2D, ye, dt, Tt, Le, We, Mt, nt, Bt);
22893
22893
  N.pixelStorei(N.UNPACK_ROW_LENGTH, St), N.pixelStorei(N.UNPACK_IMAGE_HEIGHT, vn), N.pixelStorei(N.UNPACK_SKIP_PIXELS, Ot), N.pixelStorei(N.UNPACK_SKIP_ROWS, Qt), N.pixelStorei(N.UNPACK_SKIP_IMAGES, Ni), ye === 0 && G.generateMipmaps && N.generateMipmap(jt), ee.unbindTexture();
22894
22894
  }, this.copyTextureToTexture3D = function(P, G, J = null, Z = null, W = 0) {
22895
- return Dr('WebGLRenderer: copyTextureToTexture3D function has been deprecated. Use "copyTextureToTexture" instead.'), this.copyTextureToTexture(P, G, J, Z, W);
22895
+ return Ur('WebGLRenderer: copyTextureToTexture3D function has been deprecated. Use "copyTextureToTexture" instead.'), this.copyTextureToTexture(P, G, J, Z, W);
22896
22896
  }, this.initRenderTarget = function(P) {
22897
22897
  De.get(P).__webglFramebuffer === void 0 && Ae.setupRenderTarget(P);
22898
22898
  }, this.initTexture = function(P) {
@@ -22985,12 +22985,12 @@ const my = (r, e, t = 10) => Math.abs(r.clientX - e.x) < t && Math.abs(r.clientY
22985
22985
  !1
22986
22986
  ), s = i.length ? i[0] : null;
22987
22987
  return !s || !s.object.visible ? null : s;
22988
- }, Mo = 1e-6, gy = 2 * Math.PI, id = ["x", "y", "z"], fs = [...id, "nx", "ny", "nz"], _y = ["x", "z", "y", "nx", "nz", "ny"], vy = ["z", "x", "y", "nz", "nx", "ny"], bl = "Right", da = "Top", El = "Front", Tl = "Left", fa = "Bottom", wl = "Back", yy = [
22988
+ }, So = 1e-6, gy = 2 * Math.PI, id = ["x", "y", "z"], ps = [...id, "nx", "ny", "nz"], _y = ["x", "z", "y", "nx", "nz", "ny"], vy = ["z", "x", "y", "nz", "nx", "ny"], bl = "Right", fa = "Top", El = "Front", Tl = "Left", pa = "Bottom", wl = "Back", yy = [
22989
22989
  bl,
22990
- da,
22990
+ fa,
22991
22991
  El,
22992
22992
  Tl,
22993
- fa,
22993
+ pa,
22994
22994
  wl
22995
22995
  ].map((r) => r.toLocaleLowerCase()), rd = 1.3, ju = (r, e = !0) => {
22996
22996
  const { material: t, userData: n } = r, { color: i, opacity: s } = e ? n.hover : n;
@@ -22998,7 +22998,7 @@ const my = (r, e, t = 10) => Math.abs(r.clientX - e.x) < t && Math.abs(r.clientY
22998
22998
  }, Hi = (r) => JSON.parse(JSON.stringify(r)), xy = (r) => {
22999
22999
  const e = r.type || "sphere", t = e === "sphere", n = r.resolution || t ? 64 : 128, i = Nt.DEFAULT_UP, s = i.z === 1, a = i.x === 1, { container: o } = r;
23000
23000
  r.container = void 0, r = JSON.parse(JSON.stringify(r)), r.container = o;
23001
- const l = s ? _y : a ? vy : fs;
23001
+ const l = s ? _y : a ? vy : ps;
23002
23002
  yy.forEach((d, f) => {
23003
23003
  r[d] && (r[l[f]] = r[d]);
23004
23004
  });
@@ -23087,29 +23087,29 @@ const my = (r, e, t = 10) => Math.abs(r.clientX - e.x) < t && Math.abs(r.clientY
23087
23087
  },
23088
23088
  x: {
23089
23089
  ...Hi(c),
23090
- ...t ? { label: "X", color: 16725587, line: !0 } : { label: a ? da : bl }
23090
+ ...t ? { label: "X", color: 16725587, line: !0 } : { label: a ? fa : bl }
23091
23091
  },
23092
23092
  y: {
23093
23093
  ...Hi(c),
23094
- ...t ? { label: "Y", color: 9100032, line: !0 } : { label: s || a ? El : da }
23094
+ ...t ? { label: "Y", color: 9100032, line: !0 } : { label: s || a ? El : fa }
23095
23095
  },
23096
23096
  z: {
23097
23097
  ...Hi(c),
23098
23098
  ...t ? { label: "Z", color: 2920447, line: !0 } : {
23099
- label: s ? da : a ? bl : El
23099
+ label: s ? fa : a ? bl : El
23100
23100
  }
23101
23101
  },
23102
23102
  nx: {
23103
23103
  ...Hi(u),
23104
- label: t ? "" : a ? fa : Tl
23104
+ label: t ? "" : a ? pa : Tl
23105
23105
  },
23106
23106
  ny: {
23107
23107
  ...Hi(u),
23108
- label: t ? "" : s || a ? wl : fa
23108
+ label: t ? "" : s || a ? wl : pa
23109
23109
  },
23110
23110
  nz: {
23111
23111
  ...Hi(u),
23112
- label: t ? "" : s ? fa : a ? Tl : wl
23112
+ label: t ? "" : s ? pa : a ? Tl : wl
23113
23113
  }
23114
23114
  };
23115
23115
  return Al(r, h), id.forEach(
@@ -23131,7 +23131,7 @@ function Al(r, ...e) {
23131
23131
  return r;
23132
23132
  }
23133
23133
  const My = (r, e = 2) => {
23134
- const t = new ut(), n = e * 2, { isSphere: i, resolution: s, radius: a, font: o, corners: l, edges: c } = r, u = fs.map((C) => ({ ...r[C], radius: a }));
23134
+ const t = new ut(), n = e * 2, { isSphere: i, resolution: s, radius: a, font: o, corners: l, edges: c } = r, u = ps.map((C) => ({ ...r[C], radius: a }));
23135
23135
  i && l.enabled && u.push(l), i && c.enabled && u.push(c);
23136
23136
  const h = document.createElement("canvas"), d = h.getContext("2d");
23137
23137
  h.width = s * 2 + n * 2, h.height = s * u.length + n * u.length;
@@ -23254,14 +23254,14 @@ function ec(r, e, t = 2, n = 2) {
23254
23254
  }
23255
23255
  const by = (r, e) => {
23256
23256
  const t = new k(), { isSphere: n, radius: i, smoothness: s } = r, a = ec(i, s);
23257
- return fs.map((o, l) => {
23258
- const c = l < 3, u = fs[l], h = l ? e.clone() : e;
23257
+ return ps.map((o, l) => {
23258
+ const c = l < 3, u = ps[l], h = l ? e.clone() : e;
23259
23259
  Ql(h, l);
23260
23260
  const { enabled: d, scale: f, opacity: m, hover: _ } = r[u], g = {
23261
23261
  map: h,
23262
23262
  opacity: m,
23263
23263
  transparent: !0
23264
- }, p = n ? new Gl(new Ca(g)) : new Ut(a, new Li(g)), S = c ? u : u[1];
23264
+ }, p = n ? new Gl(new Pa(g)) : new Ut(a, new Li(g)), S = c ? u : u[1];
23265
23265
  return p.position[S] = (c ? 1 : -1) * (n ? rd : 1), n || p.lookAt(t.copy(p.position).multiplyScalar(1.7)), p.scale.setScalar(f), p.renderOrder = 1, p.visible = d, p.userData = {
23266
23266
  scale: f,
23267
23267
  opacity: m,
@@ -23306,7 +23306,7 @@ const by = (r, e) => {
23306
23306
  Ql(S, 6), h.map = S;
23307
23307
  } else
23308
23308
  h.color = i;
23309
- const g = t ? new Gl(new Ca(h)) : new Ut(u, new Li(h)), p = _ * 3;
23309
+ const g = t ? new Gl(new Pa(h)) : new Ut(u, new Li(h)), p = _ * 3;
23310
23310
  return g.position.set(d[p], d[p + 1], d[p + 2]), t && g.position.normalize().multiplyScalar(1.7), g.scale.setScalar(a), g.lookAt(f.copy(g.position).multiplyScalar(2)), g.renderOrder = 1, g.userData = {
23311
23311
  color: i,
23312
23312
  opacity: s,
@@ -23364,7 +23364,7 @@ const by = (r, e) => {
23364
23364
  Ql(y, t), d.map = y;
23365
23365
  } else
23366
23366
  d.color = s;
23367
- const S = n ? new Gl(new Ca(d)) : new Ut(h, new Li(d)), E = p * 3;
23367
+ const S = n ? new Gl(new Pa(d)) : new Ut(h, new Li(d)), E = p * 3;
23368
23368
  return S.position.set(f[E], f[E + 1], f[E + 2]), n && S.position.normalize().multiplyScalar(1.7), S.scale.setScalar(o), S.up.copy(_), S.lookAt(m.copy(S.position).multiplyScalar(2)), !n && !S.position.y && (S.rotation.z = Math.PI / 2), S.renderOrder = 1, S.userData = {
23369
23369
  color: s,
23370
23370
  opacity: a,
@@ -23486,7 +23486,7 @@ const Ay = (r, e) => {
23486
23486
  if (!n) return null;
23487
23487
  if (t)
23488
23488
  o = new Ut(
23489
- new La(1.8, 64, 64),
23489
+ new Da(1.8, 64, 64),
23490
23490
  l
23491
23491
  );
23492
23492
  else {
@@ -23503,7 +23503,7 @@ const Ay = (r, e) => {
23503
23503
  opacity: s,
23504
23504
  hover: a
23505
23505
  }, o;
23506
- }, Ku = new yi(), Js = new k();
23506
+ }, Ku = new yi(), Zs = new k();
23507
23507
  class sd extends Sm {
23508
23508
  constructor() {
23509
23509
  super(), this.isLineSegmentsGeometry = !0, this.type = "LineSegmentsGeometry";
@@ -23552,7 +23552,7 @@ class sd extends Sm {
23552
23552
  this.boundingBox.getCenter(n);
23553
23553
  let i = 0;
23554
23554
  for (let s = 0, a = e.count; s < a; s++)
23555
- Js.fromBufferAttribute(e, s), i = Math.max(i, n.distanceToSquared(Js)), Js.fromBufferAttribute(t, s), i = Math.max(i, n.distanceToSquared(Js));
23555
+ Zs.fromBufferAttribute(e, s), i = Math.max(i, n.distanceToSquared(Zs)), Zs.fromBufferAttribute(t, s), i = Math.max(i, n.distanceToSquared(Zs));
23556
23556
  this.boundingSphere.radius = Math.sqrt(i), isNaN(this.boundingSphere.radius) && console.error("THREE.LineSegmentsGeometry.computeBoundingSphere(): Computed radius is NaN. The instanced position data is likely to have NaN values.", this);
23557
23557
  }
23558
23558
  }
@@ -24035,7 +24035,7 @@ class tc extends vi {
24035
24035
  this.defines && (e === !0 !== this.alphaToCoverage && (this.needsUpdate = !0), e === !0 ? this.defines.USE_ALPHA_TO_COVERAGE = "" : delete this.defines.USE_ALPHA_TO_COVERAGE);
24036
24036
  }
24037
24037
  }
24038
- const So = new xt(), $u = new k(), Ju = new k(), en = new xt(), tn = new xt(), qn = new xt(), bo = new k(), Eo = new ct(), nn = new Am(), Zu = new k(), Zs = new yi(), Qs = new xi(), jn = new xt();
24038
+ const bo = new xt(), $u = new k(), Ju = new k(), en = new xt(), tn = new xt(), qn = new xt(), Eo = new k(), To = new ct(), nn = new Am(), Zu = new k(), Qs = new yi(), ea = new xi(), jn = new xt();
24039
24039
  let Kn, Ji;
24040
24040
  function Qu(r, e, t) {
24041
24041
  return jn.set(0, 0, -e, 1).applyMatrix4(r.projectionMatrix), jn.multiplyScalar(1 / jn.w), jn.x = Ji / t.width, jn.y = Ji / t.height, jn.applyMatrix4(r.projectionMatrixInverse), jn.multiplyScalar(1 / jn.w), Math.abs(Math.max(jn.x, jn.y));
@@ -24059,9 +24059,9 @@ function Ry(r, e) {
24059
24059
  }
24060
24060
  function Cy(r, e, t) {
24061
24061
  const n = e.projectionMatrix, i = r.material.resolution, s = r.matrixWorld, a = r.geometry, o = a.attributes.instanceStart, l = a.attributes.instanceEnd, c = Math.min(a.instanceCount, o.count), u = -e.near;
24062
- Kn.at(1, qn), qn.w = 1, qn.applyMatrix4(e.matrixWorldInverse), qn.applyMatrix4(n), qn.multiplyScalar(1 / qn.w), qn.x *= i.x / 2, qn.y *= i.y / 2, qn.z = 0, bo.copy(qn), Eo.multiplyMatrices(e.matrixWorldInverse, s);
24062
+ Kn.at(1, qn), qn.w = 1, qn.applyMatrix4(e.matrixWorldInverse), qn.applyMatrix4(n), qn.multiplyScalar(1 / qn.w), qn.x *= i.x / 2, qn.y *= i.y / 2, qn.z = 0, Eo.copy(qn), To.multiplyMatrices(e.matrixWorldInverse, s);
24063
24063
  for (let h = 0, d = c; h < d; h++) {
24064
- if (en.fromBufferAttribute(o, h), tn.fromBufferAttribute(l, h), en.w = 1, tn.w = 1, en.applyMatrix4(Eo), tn.applyMatrix4(Eo), en.z > u && tn.z > u)
24064
+ if (en.fromBufferAttribute(o, h), tn.fromBufferAttribute(l, h), en.w = 1, tn.w = 1, en.applyMatrix4(To), tn.applyMatrix4(To), en.z > u && tn.z > u)
24065
24065
  continue;
24066
24066
  if (en.z > u) {
24067
24067
  const p = en.z - tn.z, S = (en.z - u) / p;
@@ -24071,9 +24071,9 @@ function Cy(r, e, t) {
24071
24071
  tn.lerp(en, S);
24072
24072
  }
24073
24073
  en.applyMatrix4(n), tn.applyMatrix4(n), en.multiplyScalar(1 / en.w), tn.multiplyScalar(1 / tn.w), en.x *= i.x / 2, en.y *= i.y / 2, tn.x *= i.x / 2, tn.y *= i.y / 2, nn.start.copy(en), nn.start.z = 0, nn.end.copy(tn), nn.end.z = 0;
24074
- const f = nn.closestPointToPointParameter(bo, !0);
24074
+ const f = nn.closestPointToPointParameter(Eo, !0);
24075
24075
  nn.at(f, Zu);
24076
- const m = Ar.lerp(en.z, tn.z, f), _ = m >= -1 && m <= 1, g = bo.distanceTo(Zu) < Ji * 0.5;
24076
+ const m = Rr.lerp(en.z, tn.z, f), _ = m >= -1 && m <= 1, g = Eo.distanceTo(Zu) < Ji * 0.5;
24077
24077
  if (_ && g) {
24078
24078
  nn.start.fromBufferAttribute(o, h), nn.end.fromBufferAttribute(l, h), nn.start.applyMatrix4(s), nn.end.applyMatrix4(s);
24079
24079
  const p = new k(), S = new k();
@@ -24108,29 +24108,29 @@ class Py extends Ut {
24108
24108
  const s = e.params.Line2 !== void 0 && e.params.Line2.threshold || 0;
24109
24109
  Kn = e.ray;
24110
24110
  const a = this.matrixWorld, o = this.geometry, l = this.material;
24111
- Ji = l.linewidth + s, o.boundingSphere === null && o.computeBoundingSphere(), Qs.copy(o.boundingSphere).applyMatrix4(a);
24111
+ Ji = l.linewidth + s, o.boundingSphere === null && o.computeBoundingSphere(), ea.copy(o.boundingSphere).applyMatrix4(a);
24112
24112
  let c;
24113
24113
  if (n)
24114
24114
  c = Ji * 0.5;
24115
24115
  else {
24116
- const h = Math.max(i.near, Qs.distanceToPoint(Kn.origin));
24116
+ const h = Math.max(i.near, ea.distanceToPoint(Kn.origin));
24117
24117
  c = Qu(i, h, l.resolution);
24118
24118
  }
24119
- if (Qs.radius += c, Kn.intersectsSphere(Qs) === !1)
24119
+ if (ea.radius += c, Kn.intersectsSphere(ea) === !1)
24120
24120
  return;
24121
- o.boundingBox === null && o.computeBoundingBox(), Zs.copy(o.boundingBox).applyMatrix4(a);
24121
+ o.boundingBox === null && o.computeBoundingBox(), Qs.copy(o.boundingBox).applyMatrix4(a);
24122
24122
  let u;
24123
24123
  if (n)
24124
24124
  u = Ji * 0.5;
24125
24125
  else {
24126
- const h = Math.max(i.near, Zs.distanceToPoint(Kn.origin));
24126
+ const h = Math.max(i.near, Qs.distanceToPoint(Kn.origin));
24127
24127
  u = Qu(i, h, l.resolution);
24128
24128
  }
24129
- Zs.expandByScalar(u), Kn.intersectsBox(Zs) !== !1 && (n ? Ry(this, t) : Cy(this, i, t));
24129
+ Qs.expandByScalar(u), Kn.intersectsBox(Qs) !== !1 && (n ? Ry(this, t) : Cy(this, i, t));
24130
24130
  }
24131
24131
  onBeforeRender(e) {
24132
24132
  const t = this.material.uniforms;
24133
- t && t.resolution && (e.getViewport(So), this.material.uniforms.resolution.value.set(So.z, So.w));
24133
+ t && t.resolution && (e.getViewport(bo), this.material.uniforms.resolution.value.set(bo.z, bo.w));
24134
24134
  }
24135
24135
  }
24136
24136
  class ad extends sd {
@@ -24167,7 +24167,7 @@ class Ly extends Py {
24167
24167
  }
24168
24168
  const Dy = (r) => {
24169
24169
  const e = new ut(), t = [], n = [], { isSphere: i } = r;
24170
- if (fs.forEach((o, l) => {
24170
+ if (ps.forEach((o, l) => {
24171
24171
  const { enabled: c, line: u, scale: h, color: d } = r[o];
24172
24172
  if (!c || !u) return;
24173
24173
  const f = l < 3 ? 1 : -1, m = (i ? rd - h / 2 : 0.975) * f;
@@ -24193,7 +24193,7 @@ const Dy = (r) => {
24193
24193
  n.push(...s), e.enabled && n.push(...Ey(r, i)), t.enabled && n.push(...Ty(r, i, e.enabled ? 7 : 6));
24194
24194
  const a = Ay(s, r), o = Dy(r);
24195
24195
  return [n, a, o];
24196
- }, ts = (r, e = !0) => {
24196
+ }, ns = (r, e = !0) => {
24197
24197
  const { material: t, userData: n } = r, { opacity: i, color: s, scale: a } = e ? n.hover : n;
24198
24198
  r.scale.setScalar(a), t.opacity = i, t.map ? Sy(t.map, e) : t.color.set(s);
24199
24199
  }, Tr = /* @__PURE__ */ new ct(), eh = /* @__PURE__ */ new wm(), Iy = /* @__PURE__ */ new ht(), Gi = /* @__PURE__ */ new k(), th = /* @__PURE__ */ new xt();
@@ -24314,7 +24314,7 @@ class Fx extends Nt {
24314
24314
  * - Can be computationally expensive, so use sparingly
24315
24315
  */
24316
24316
  set(e = {}) {
24317
- this.dispose(), this.options = e, this._options = xy(e), this._camera = this._options.isSphere ? new Ua(-1.8, 1.8, 1.8, -1.8, 5, 10) : new cn(26, 1, 5, 10), this._camera.position.set(0, 0, 7);
24317
+ this.dispose(), this.options = e, this._options = xy(e), this._camera = this._options.isSphere ? new Ia(-1.8, 1.8, 1.8, -1.8, 5, 10) : new cn(26, 1, 5, 10), this._camera.position.set(0, 0, 7);
24318
24318
  const [t, n, i] = Uy(this._options);
24319
24319
  n && this.add(n), i && this.add(i), this.add(...t), this._background = n, this._intersections = t;
24320
24320
  const { container: s, animated: a, speed: o } = this._options;
@@ -24421,7 +24421,7 @@ class Fx extends Nt {
24421
24421
  }
24422
24422
  this._controls && (this._controls.enabled = !1);
24423
24423
  const n = this._clock.getDelta() * gy * this.speed;
24424
- this._quaternionStart.rotateTowards(this._quaternionEnd, n), e.applyQuaternion(this._quaternionStart).multiplyScalar(this._distance).add(this.target), t.rotateTowards(this._targetQuaternion, n), this._updateOrientation(), requestAnimationFrame(() => this.dispatchEvent({ type: "change" })), this._quaternionStart.angleTo(this._quaternionEnd) < Mo && (this._controls && (this._controls.enabled = !0), this.animating = !1, this.dispatchEvent({ type: "end" }));
24424
+ this._quaternionStart.rotateTowards(this._quaternionEnd, n), e.applyQuaternion(this._quaternionStart).multiplyScalar(this._distance).add(this.target), t.rotateTowards(this._targetQuaternion, n), this._updateOrientation(), requestAnimationFrame(() => this.dispatchEvent({ type: "change" })), this._quaternionStart.angleTo(this._quaternionEnd) < So && (this._controls && (this._controls.enabled = !0), this.animating = !1, this.dispatchEvent({ type: "end" }));
24425
24425
  }
24426
24426
  /**
24427
24427
  * Sets the camera orientation to look at the target from a specific axis.
@@ -24451,15 +24451,15 @@ class Fx extends Nt {
24451
24451
  ), h = eh.setFromVector3(u);
24452
24452
  h.theta = a - c.x, h.phi = Sl(
24453
24453
  o - c.y,
24454
- Mo,
24455
- Math.PI - Mo
24454
+ So,
24455
+ Math.PI - So
24456
24456
  ), this.coordinateConversion(
24457
24457
  this.camera.position.setFromSpherical(h),
24458
24458
  !0
24459
24459
  ).add(this.target), this.camera.lookAt(this.target), this.quaternion.copy(this.camera.quaternion).invert(), this._updateOrientation(!1), this.dispatchEvent({ type: "change" });
24460
24460
  }, n = () => {
24461
24461
  if (document.removeEventListener("pointermove", t, !1), document.removeEventListener("pointerup", n, !1), !this._dragging) return this._handleClick(e);
24462
- this._focus && (ts(this._focus, !1), this._focus = null), this._dragging = !1, this.dispatchEvent({ type: "end" });
24462
+ this._focus && (ns(this._focus, !1), this._focus = null), this._dragging = !1, this.dispatchEvent({ type: "end" });
24463
24463
  };
24464
24464
  if (this.animating) return;
24465
24465
  e.preventDefault(), this._pointerStart.set(e.clientX, e.clientY);
@@ -24495,7 +24495,7 @@ class Fx extends Nt {
24495
24495
  * @private
24496
24496
  */
24497
24497
  _onPointerLeave() {
24498
- !this.enabled || this._dragging || (this._background && ju(this._background, !1), this._focus && ts(this._focus, !1), this._domElement.style.cursor = "");
24498
+ !this.enabled || this._dragging || (this._background && ju(this._background, !1), this._focus && ns(this._focus, !1), this._domElement.style.cursor = "");
24499
24499
  }
24500
24500
  /**
24501
24501
  * Handles click events for axis selection.
@@ -24510,7 +24510,7 @@ class Fx extends Nt {
24510
24510
  this._camera,
24511
24511
  this._intersections
24512
24512
  );
24513
- this._focus && (ts(this._focus, !1), this._focus = null), t && (this._setOrientation(t.object.position), this.dispatchEvent({ type: "change" }));
24513
+ this._focus && (ns(this._focus, !1), this._focus = null), t && (this._setOrientation(t.object.position), this.dispatchEvent({ type: "change" }));
24514
24514
  }
24515
24515
  /**
24516
24516
  * Handles hover effects for interactive elements.
@@ -24525,10 +24525,10 @@ class Fx extends Nt {
24525
24525
  this._camera,
24526
24526
  this._intersections
24527
24527
  ), n = (t == null ? void 0 : t.object) || null;
24528
- this._focus !== n && (this._domElement.style.cursor = n ? "pointer" : "", this._focus && ts(this._focus, !1), (this._focus = n) ? ts(n, !0) : Gu(this._options, this._intersections, this.camera));
24528
+ this._focus !== n && (this._domElement.style.cursor = n ? "pointer" : "", this._focus && ns(this._focus, !1), (this._focus = n) ? ns(n, !0) : Gu(this._options, this._intersections, this.camera));
24529
24529
  }
24530
24530
  }
24531
- const Ny = /^[og]\s*(.+)?/, Fy = /^mtllib /, Oy = /^usemtl /, By = /^usemap /, nh = /\s+/, ih = new k(), To = new k(), rh = new k(), sh = new k(), Pn = new k(), ea = new ut();
24531
+ const Ny = /^[og]\s*(.+)?/, Fy = /^mtllib /, Oy = /^usemtl /, By = /^usemap /, nh = /\s+/, ih = new k(), wo = new k(), rh = new k(), sh = new k(), Pn = new k(), ta = new ut();
24532
24532
  function ky() {
24533
24533
  const r = {
24534
24534
  objects: [],
@@ -24638,7 +24638,7 @@ function ky() {
24638
24638
  },
24639
24639
  addFaceNormal: function(e, t, n) {
24640
24640
  const i = this.vertices, s = this.object.geometry.normals;
24641
- ih.fromArray(i, e), To.fromArray(i, t), rh.fromArray(i, n), Pn.subVectors(rh, To), sh.subVectors(ih, To), Pn.cross(sh), Pn.normalize(), s.push(Pn.x, Pn.y, Pn.z), s.push(Pn.x, Pn.y, Pn.z), s.push(Pn.x, Pn.y, Pn.z);
24641
+ ih.fromArray(i, e), wo.fromArray(i, t), rh.fromArray(i, n), Pn.subVectors(rh, wo), sh.subVectors(ih, wo), Pn.cross(sh), Pn.normalize(), s.push(Pn.x, Pn.y, Pn.z), s.push(Pn.x, Pn.y, Pn.z), s.push(Pn.x, Pn.y, Pn.z);
24642
24642
  },
24643
24643
  addColor: function(e, t, n) {
24644
24644
  const i = this.colors, s = this.object.geometry.colors;
@@ -24689,7 +24689,7 @@ function ky() {
24689
24689
  };
24690
24690
  return r.startObject("", !1), r;
24691
24691
  }
24692
- class wo extends Wn {
24692
+ class Ao extends Wn {
24693
24693
  /**
24694
24694
  * Constructs a new OBJ loader.
24695
24695
  *
@@ -24708,7 +24708,7 @@ class wo extends Wn {
24708
24708
  * @param {onErrorCallback} onError - Executed when errors occur.
24709
24709
  */
24710
24710
  load(e, t, n, i) {
24711
- const s = this, a = new Wr(this.manager);
24711
+ const s = this, a = new Xr(this.manager);
24712
24712
  a.setPath(this.path), a.setRequestHeader(this.requestHeader), a.setWithCredentials(this.withCredentials), a.load(e, function(o) {
24713
24713
  try {
24714
24714
  t(s.parse(o));
@@ -24754,12 +24754,12 @@ class wo extends Wn {
24754
24754
  parseFloat(h[1]),
24755
24755
  parseFloat(h[2]),
24756
24756
  parseFloat(h[3])
24757
- ), h.length >= 7 ? (ea.setRGB(
24757
+ ), h.length >= 7 ? (ta.setRGB(
24758
24758
  parseFloat(h[4]),
24759
24759
  parseFloat(h[5]),
24760
24760
  parseFloat(h[6]),
24761
24761
  wt
24762
- ), t.colors.push(ea.r, ea.g, ea.b)) : t.colors.push(void 0, void 0, void 0);
24762
+ ), t.colors.push(ta.r, ta.g, ta.b)) : t.colors.push(void 0, void 0, void 0);
24763
24763
  break;
24764
24764
  case "vn":
24765
24765
  t.normals.push(
@@ -24866,21 +24866,21 @@ class wo extends Wn {
24866
24866
  const y = h[S];
24867
24867
  _.addGroup(y.groupStart, y.groupCount, S);
24868
24868
  }
24869
- d ? p = new _l(_, g) : f ? p = new as(_, g) : p = new Ut(_, g);
24869
+ d ? p = new _l(_, g) : f ? p = new os(_, g) : p = new Ut(_, g);
24870
24870
  } else
24871
- d ? p = new _l(_, g[0]) : f ? p = new as(_, g[0]) : p = new Ut(_, g[0]);
24871
+ d ? p = new _l(_, g[0]) : f ? p = new os(_, g[0]) : p = new Ut(_, g[0]);
24872
24872
  p.name = c.name, s.add(p);
24873
24873
  }
24874
24874
  else if (t.vertices.length > 0) {
24875
24875
  const o = new Ki({ size: 1, sizeAttenuation: !1 }), l = new zt();
24876
24876
  l.setAttribute("position", new yt(t.vertices, 3)), t.colors.length > 0 && t.colors[0] !== void 0 && (l.setAttribute("color", new yt(t.colors, 3)), o.vertexColors = !0);
24877
- const c = new as(l, o);
24877
+ const c = new os(l, o);
24878
24878
  s.add(c);
24879
24879
  }
24880
24880
  return s;
24881
24881
  }
24882
24882
  }
24883
- class Ao extends Wn {
24883
+ class Ro extends Wn {
24884
24884
  constructor(e) {
24885
24885
  super(e);
24886
24886
  }
@@ -24894,7 +24894,7 @@ class Ao extends Wn {
24894
24894
  * @param {onErrorCallback} onError - Executed when errors occur.
24895
24895
  */
24896
24896
  load(e, t, n, i) {
24897
- const s = this, a = this.path === "" ? Jl.extractUrlBase(e) : this.path, o = new Wr(this.manager);
24897
+ const s = this, a = this.path === "" ? Jl.extractUrlBase(e) : this.path, o = new Xr(this.manager);
24898
24898
  o.setPath(this.path), o.setRequestHeader(this.requestHeader), o.setWithCredentials(this.withCredentials), o.load(e, function(l) {
24899
24899
  try {
24900
24900
  t(s.parse(l, a));
@@ -25073,7 +25073,7 @@ class zy {
25073
25073
  return t !== void 0 && (l.mapping = t), l;
25074
25074
  }
25075
25075
  }
25076
- class pa extends Wn {
25076
+ class ma extends Wn {
25077
25077
  /**
25078
25078
  * Constructs a new STL loader.
25079
25079
  *
@@ -25092,7 +25092,7 @@ class pa extends Wn {
25092
25092
  * @param {onErrorCallback} onError - Executed when errors occur.
25093
25093
  */
25094
25094
  load(e, t, n, i) {
25095
- const s = this, a = new Wr(this.manager);
25095
+ const s = this, a = new Xr(this.manager);
25096
25096
  a.setPath(this.path), a.setResponseType("arraybuffer"), a.setRequestHeader(this.requestHeader), a.setWithCredentials(this.withCredentials), a.load(e, function(o) {
25097
25097
  try {
25098
25098
  t(s.parse(o));
@@ -25198,7 +25198,7 @@ class Vy extends Wn {
25198
25198
  * @param {onErrorCallback} onError - Executed when errors occur.
25199
25199
  */
25200
25200
  load(e, t, n, i) {
25201
- const s = this, a = new Wr(s.manager);
25201
+ const s = this, a = new Xr(s.manager);
25202
25202
  a.setPath(s.path), a.setResponseType("arraybuffer"), a.setRequestHeader(s.requestHeader), a.setWithCredentials(s.withCredentials), a.load(e, function(o) {
25203
25203
  try {
25204
25204
  t(s.parse(o));
@@ -25354,7 +25354,7 @@ class Vy extends Wn {
25354
25354
  const h = new zt();
25355
25355
  s.length > 0 && h.setAttribute("position", new yt(s, 3)), a.length > 0 && h.setAttribute("normal", new yt(a, 3)), o.length > 0 && h.setAttribute("color", new yt(o, 3)), l.length > 0 && h.setAttribute("intensity", new yt(l, 1)), c.length > 0 && h.setAttribute("label", new Bp(c, 1)), h.computeBoundingSphere();
25356
25356
  const d = new Ki({ size: 5e-3 });
25357
- return o.length > 0 && (d.vertexColors = !0), new as(h, d);
25357
+ return o.length > 0 && (d.vertexColors = !0), new os(h, d);
25358
25358
  }
25359
25359
  }
25360
25360
  class ah extends pm {
@@ -25590,7 +25590,7 @@ class Hy extends Wn {
25590
25590
  * @param {onErrorCallback} onError - Executed when errors occur.
25591
25591
  */
25592
25592
  load(e, t, n, i) {
25593
- const s = this, a = s.path === "" ? Jl.extractUrlBase(e) : s.path, o = new Wr(s.manager);
25593
+ const s = this, a = s.path === "" ? Jl.extractUrlBase(e) : s.path, o = new Xr(s.manager);
25594
25594
  o.setPath(s.path), o.setRequestHeader(s.requestHeader), o.setWithCredentials(s.withCredentials), o.load(e, function(l) {
25595
25595
  try {
25596
25596
  t(s.parse(l, a));
@@ -25703,7 +25703,7 @@ class Hy extends Wn {
25703
25703
  console.log(Q);
25704
25704
  }
25705
25705
  }
25706
- L === !1 && (lt.animations[M.getAttribute("id") || Ar.generateUUID()] = v);
25706
+ L === !1 && (lt.animations[M.getAttribute("id") || Rr.generateUUID()] = v);
25707
25707
  }
25708
25708
  function p(M) {
25709
25709
  const v = {
@@ -25799,7 +25799,7 @@ class Hy extends Wn {
25799
25799
  const Ke = L[we], me = Ke.time, je = Ke.value;
25800
25800
  G.fromArray(je).transpose(), G.decompose(C, b, D), U.push(me), Q.push(C.x, C.y, C.z), ce.push(b.x, b.y, b.z, b.w), ke.push(D.x, D.y, D.z);
25801
25801
  }
25802
- return Q.length > 0 && v.push(new zr(A + ".position", U, Q)), ce.length > 0 && v.push(new gs(A + ".quaternion", U, ce)), ke.length > 0 && v.push(new zr(A + ".scale", U, ke)), v;
25802
+ return Q.length > 0 && v.push(new Vr(A + ".position", U, Q)), ce.length > 0 && v.push(new _s(A + ".quaternion", U, ce)), ke.length > 0 && v.push(new Vr(A + ".scale", U, ke)), v;
25803
25803
  }
25804
25804
  function w(M, v, L) {
25805
25805
  let A, U = !0, Q, ce;
@@ -26460,7 +26460,7 @@ class Hy extends Wn {
26460
26460
  case "orthographic":
26461
26461
  let L = M.optics.parameters.ymag, A = M.optics.parameters.xmag;
26462
26462
  const U = M.optics.parameters.aspect_ratio;
26463
- A = A === void 0 ? L * U : A, L = L === void 0 ? A / U : L, A *= 0.5, L *= 0.5, v = new Ua(
26463
+ A = A === void 0 ? L * U : A, L = L === void 0 ? A / U : L, A *= 0.5, L *= 0.5, v = new Ia(
26464
26464
  -A,
26465
26465
  A,
26466
26466
  L,
@@ -26931,7 +26931,7 @@ class Hy extends Wn {
26931
26931
  v.obj = new k(), v.obj.fromArray(L);
26932
26932
  break;
26933
26933
  case "rotate":
26934
- v.obj = new k(), v.obj.fromArray(L), v.angle = Ar.degToRad(L[3]);
26934
+ v.obj = new k(), v.obj.fromArray(L), v.angle = Rr.degToRad(L[3]);
26935
26935
  break;
26936
26936
  }
26937
26937
  return v;
@@ -27063,7 +27063,7 @@ class Hy extends Wn {
27063
27063
  if (bt.sid && bt.sid.indexOf(Ke) !== -1)
27064
27064
  switch (Xe.type) {
27065
27065
  case "revolute":
27066
- G.multiply(Ue.makeRotationAxis(Qe, Ar.degToRad(me)));
27066
+ G.multiply(Ue.makeRotationAxis(Qe, Rr.degToRad(me)));
27067
27067
  break;
27068
27068
  case "prismatic":
27069
27069
  G.multiply(Ue.makeTranslation(Qe.x * me, Qe.y * me, Qe.z * me));
@@ -27121,7 +27121,7 @@ class Hy extends Wn {
27121
27121
  break;
27122
27122
  case "rotate":
27123
27123
  Q = s(U.textContent), ce = new k().fromArray(Q);
27124
- const we = Ar.degToRad(Q[3]);
27124
+ const we = Rr.degToRad(Q[3]);
27125
27125
  v.push({
27126
27126
  sid: U.getAttribute("sid"),
27127
27127
  type: U.nodeName,
@@ -27187,7 +27187,7 @@ class Hy extends Wn {
27187
27187
  break;
27188
27188
  case "rotate":
27189
27189
  U = s(A.textContent);
27190
- const Q = Ar.degToRad(U[3]);
27190
+ const Q = Rr.degToRad(U[3]);
27191
27191
  v.matrix.multiply(G.makeRotationAxis(J.fromArray(U), Q)), v.transforms[A.getAttribute("sid")] = A.nodeName;
27192
27192
  break;
27193
27193
  case "scale":
@@ -27447,19 +27447,19 @@ class Hy extends Wn {
27447
27447
  kinematicsScenes: {}
27448
27448
  };
27449
27449
  f(Ot, "library_animations", "animation", g), f(Ot, "library_animation_clips", "animation_clip", O), f(Ot, "library_controllers", "controller", ie), f(Ot, "library_images", "image", re), f(Ot, "library_effects", "effect", it), f(Ot, "library_materials", "material", Y), f(Ot, "library_cameras", "camera", He), f(Ot, "library_lights", "light", et), f(Ot, "library_geometries", "geometry", Ce), f(Ot, "library_nodes", "node", Z), f(Ot, "library_visual_scenes", "visual_scene", Tt), f(Ot, "library_kinematics_models", "kinematics_model", Mn), f(Ot, "library_physics_models", "physics_model", ni), f(Ot, "scene", "instance_kinematics_scene", nr), m(lt.animations, E), m(lt.clips, K), m(lt.controllers, be), m(lt.images, ae), m(lt.effects, F), m(lt.materials, he), m(lt.cameras, de), m(lt.lights, st), m(lt.geometries, pe), m(lt.visualScenes, Ft), jt(), hn();
27450
- const vs = nt(n(Ot, "scene")[0]);
27451
- return vs.animations = Yt, It.upAxis === "Z_UP" && (console.warn("THREE.ColladaLoader: You are loading an asset with a Z-UP coordinate system. The loader just rotates the asset to transform it into Y-UP. The vertex data are not converted, see #24289."), vs.rotation.set(-Math.PI / 2, 0, 0)), vs.scale.multiplyScalar(It.unit), {
27450
+ const ys = nt(n(Ot, "scene")[0]);
27451
+ return ys.animations = Yt, It.upAxis === "Z_UP" && (console.warn("THREE.ColladaLoader: You are loading an asset with a Z-UP coordinate system. The loader just rotates the asset to transform it into Y-UP. The vertex data are not converted, see #24289."), ys.rotation.set(-Math.PI / 2, 0, 0)), ys.scale.multiplyScalar(It.unit), {
27452
27452
  get animations() {
27453
27453
  return console.warn("THREE.ColladaLoader: Please access animations over scene.animations now."), Yt;
27454
27454
  },
27455
27455
  kinematics: sr,
27456
27456
  library: lt,
27457
- scene: vs
27457
+ scene: ys
27458
27458
  };
27459
27459
  }
27460
27460
  }
27461
- const oh = new k(), Gy = new An(), ta = new ct(), Ai = new ct(), na = new Nn(), ia = new k(1, 1, 1), ra = new k();
27462
- class Na extends Nt {
27461
+ const oh = new k(), Gy = new An(), na = new ct(), Ai = new ct(), ia = new Nn(), ra = new k(1, 1, 1), sa = new k();
27462
+ class Fa extends Nt {
27463
27463
  constructor(...e) {
27464
27464
  super(...e), this.urdfNode = null, this.urdfName = "";
27465
27465
  }
@@ -27467,22 +27467,22 @@ class Na extends Nt {
27467
27467
  return super.copy(e, t), this.urdfNode = e.urdfNode, this.urdfName = e.urdfName, this;
27468
27468
  }
27469
27469
  }
27470
- class Wy extends Na {
27470
+ class Wy extends Fa {
27471
27471
  constructor(...e) {
27472
27472
  super(...e), this.isURDFCollider = !0, this.type = "URDFCollider";
27473
27473
  }
27474
27474
  }
27475
- class Xy extends Na {
27475
+ class Xy extends Fa {
27476
27476
  constructor(...e) {
27477
27477
  super(...e), this.isURDFVisual = !0, this.type = "URDFVisual";
27478
27478
  }
27479
27479
  }
27480
- class od extends Na {
27480
+ class od extends Fa {
27481
27481
  constructor(...e) {
27482
27482
  super(...e), this.isURDFLink = !0, this.type = "URDFLink";
27483
27483
  }
27484
27484
  }
27485
- class ld extends Na {
27485
+ class ld extends Fa {
27486
27486
  get jointType() {
27487
27487
  return this._jointType;
27488
27488
  }
@@ -27538,16 +27538,16 @@ class ld extends Na {
27538
27538
  return n == null || n === this.jointValue[0] ? t : (this.ignoreLimits || (n = Math.min(this.limit.upper, n), n = Math.max(this.limit.lower, n)), this.position.copy(this.origPosition), oh.copy(this.axis).applyEuler(this.rotation), this.position.addScaledVector(oh, n), this.jointValue[0] !== n ? (this.jointValue[0] = n, this.matrixWorldNeedsUpdate = !0, !0) : t);
27539
27539
  }
27540
27540
  case "floating":
27541
- return this.jointValue.every((n, i) => e[i] === n || e[i] === null) ? t : (this.jointValue[0] = e[0] !== null ? e[0] : this.jointValue[0], this.jointValue[1] = e[1] !== null ? e[1] : this.jointValue[1], this.jointValue[2] = e[2] !== null ? e[2] : this.jointValue[2], this.jointValue[3] = e[3] !== null ? e[3] : this.jointValue[3], this.jointValue[4] = e[4] !== null ? e[4] : this.jointValue[4], this.jointValue[5] = e[5] !== null ? e[5] : this.jointValue[5], Ai.compose(this.origPosition, this.origQuaternion, ia), na.setFromEuler(
27541
+ return this.jointValue.every((n, i) => e[i] === n || e[i] === null) ? t : (this.jointValue[0] = e[0] !== null ? e[0] : this.jointValue[0], this.jointValue[1] = e[1] !== null ? e[1] : this.jointValue[1], this.jointValue[2] = e[2] !== null ? e[2] : this.jointValue[2], this.jointValue[3] = e[3] !== null ? e[3] : this.jointValue[3], this.jointValue[4] = e[4] !== null ? e[4] : this.jointValue[4], this.jointValue[5] = e[5] !== null ? e[5] : this.jointValue[5], Ai.compose(this.origPosition, this.origQuaternion, ra), ia.setFromEuler(
27542
27542
  Gy.set(
27543
27543
  this.jointValue[3],
27544
27544
  this.jointValue[4],
27545
27545
  this.jointValue[5],
27546
27546
  "XYZ"
27547
27547
  )
27548
- ), ra.set(this.jointValue[0], this.jointValue[1], this.jointValue[2]), ta.compose(ra, na, ia), Ai.premultiply(ta), this.position.setFromMatrixPosition(Ai), this.rotation.setFromRotationMatrix(Ai), this.matrixWorldNeedsUpdate = !0, !0);
27548
+ ), sa.set(this.jointValue[0], this.jointValue[1], this.jointValue[2]), na.compose(sa, ia, ra), Ai.premultiply(na), this.position.setFromMatrixPosition(Ai), this.rotation.setFromRotationMatrix(Ai), this.matrixWorldNeedsUpdate = !0, !0);
27549
27549
  case "planar":
27550
- return this.jointValue.every((n, i) => e[i] === n || e[i] === null) ? t : (this.jointValue[0] = e[0] !== null ? e[0] : this.jointValue[0], this.jointValue[1] = e[1] !== null ? e[1] : this.jointValue[1], this.jointValue[2] = e[2] !== null ? e[2] : this.jointValue[2], Ai.compose(this.origPosition, this.origQuaternion, ia), na.setFromAxisAngle(this.axis, this.jointValue[2]), ra.set(this.jointValue[0], this.jointValue[1], 0), ta.compose(ra, na, ia), Ai.premultiply(ta), this.position.setFromMatrixPosition(Ai), this.rotation.setFromRotationMatrix(Ai), this.matrixWorldNeedsUpdate = !0, !0);
27550
+ return this.jointValue.every((n, i) => e[i] === n || e[i] === null) ? t : (this.jointValue[0] = e[0] !== null ? e[0] : this.jointValue[0], this.jointValue[1] = e[1] !== null ? e[1] : this.jointValue[1], this.jointValue[2] = e[2] !== null ? e[2] : this.jointValue[2], Ai.compose(this.origPosition, this.origQuaternion, ra), ia.setFromAxisAngle(this.axis, this.jointValue[2]), sa.set(this.jointValue[0], this.jointValue[1], 0), na.compose(sa, ia, ra), Ai.premultiply(na), this.position.setFromMatrixPosition(Ai), this.rotation.setFromRotationMatrix(Ai), this.matrixWorldNeedsUpdate = !0, !0);
27551
27551
  }
27552
27552
  return t;
27553
27553
  }
@@ -27598,12 +27598,12 @@ class qy extends od {
27598
27598
  return t;
27599
27599
  }
27600
27600
  }
27601
- const Ro = new Nn(), ch = new An();
27601
+ const Co = new Nn(), ch = new An();
27602
27602
  function wr(r) {
27603
27603
  return r ? r.trim().split(/\s+/g).map((e) => parseFloat(e)) : [0, 0, 0];
27604
27604
  }
27605
27605
  function uh(r, e, t = !1) {
27606
- t || r.rotation.set(0, 0, 0), ch.set(e[0], e[1], e[2], "ZYX"), Ro.setFromEuler(ch), Ro.multiply(r.quaternion), r.quaternion.copy(Ro);
27606
+ t || r.rotation.set(0, 0, 0), ch.set(e[0], e[1], e[2], "ZYX"), Co.setFromEuler(ch), Co.multiply(r.quaternion), r.quaternion.copy(Co);
27607
27607
  }
27608
27608
  class jy {
27609
27609
  constructor(e) {
@@ -27760,12 +27760,12 @@ class jy {
27760
27760
  }
27761
27761
  } else if (w === "box") {
27762
27762
  const B = new Ut();
27763
- B.geometry = new Vr(1, 1, 1), B.material = R;
27763
+ B.geometry = new Hr(1, 1, 1), B.material = R;
27764
27764
  const z = wr(b.children[0].getAttribute("size"));
27765
27765
  B.scale.set(z[0], z[1], z[2]), D.add(B);
27766
27766
  } else if (w === "sphere") {
27767
27767
  const B = new Ut();
27768
- B.geometry = new La(1, 30, 30), B.material = R;
27768
+ B.geometry = new Da(1, 30, 30), B.material = R;
27769
27769
  const z = parseFloat(b.children[0].getAttribute("radius")) || 0;
27770
27770
  B.scale.set(z, z, z), D.add(B);
27771
27771
  } else if (w === "cylinder") {
@@ -27784,14 +27784,14 @@ class jy {
27784
27784
  }
27785
27785
  // Default mesh loading function
27786
27786
  defaultMeshLoader(e, t, n) {
27787
- /\.stl$/i.test(e) ? new pa(t).load(e, (s) => {
27787
+ /\.stl$/i.test(e) ? new ma(t).load(e, (s) => {
27788
27788
  const a = new Ut(s, new En());
27789
27789
  n(a);
27790
27790
  }) : /\.dae$/i.test(e) ? new Hy(t).load(e, (s) => n(s.scene)) : console.warn(`URDFLoader: Could not load model at ${e}.
27791
27791
  No loader available`);
27792
27792
  }
27793
27793
  }
27794
- const Yy = bh(Rr), { systemPath: Co } = ns(Yy);
27794
+ const Yy = bh(Cr), { systemPath: Ar } = is(Yy);
27795
27795
  function Ox(r, e, t, n, i) {
27796
27796
  const s = async (d) => {
27797
27797
  try {
@@ -27806,7 +27806,7 @@ function Ox(r, e, t, n, i) {
27806
27806
  const _ = new FileReader();
27807
27807
  _.onload = (g) => {
27808
27808
  try {
27809
- const p = g.target.result, E = new Ao().parse(p);
27809
+ const p = g.target.result, E = new Ro().parse(p);
27810
27810
  E.preload(), f(E);
27811
27811
  } catch (p) {
27812
27812
  m(p);
@@ -27846,7 +27846,7 @@ function Ox(r, e, t, n, i) {
27846
27846
  const S = p.target.result;
27847
27847
  let E = null;
27848
27848
  f && f.length > 0 && (f.length === 1 ? E = await a(f[0]) : E = await o(f));
27849
- const y = new wo();
27849
+ const y = new Ao();
27850
27850
  E && y.setMaterials(E);
27851
27851
  const I = y.parse(S);
27852
27852
  E || I.traverse((R) => {
@@ -27909,7 +27909,7 @@ function Ox(r, e, t, n, i) {
27909
27909
  size: 1,
27910
27910
  sizeAttenuation: !1
27911
27911
  });
27912
- g = new as(ie, $);
27912
+ g = new os(ie, $);
27913
27913
  } else if (p === ".cpt") {
27914
27914
  const $ = new $i({
27915
27915
  color: "#5B5C99",
@@ -27918,9 +27918,9 @@ function Ox(r, e, t, n, i) {
27918
27918
  g = new ql(ie, $);
27919
27919
  }
27920
27920
  } else if (p === ".obj") {
27921
- const O = new wo();
27921
+ const O = new Ao();
27922
27922
  if (m && m.length > 0) {
27923
- const K = new Ao();
27923
+ const K = new Ro();
27924
27924
  for (const H of m) {
27925
27925
  const ie = await H.text(), oe = K.parse(ie);
27926
27926
  oe.preload(), O.setMaterials(oe);
@@ -27933,7 +27933,7 @@ function Ox(r, e, t, n, i) {
27933
27933
  }
27934
27934
  break;
27935
27935
  case ".stl":
27936
- const E = await f.arrayBuffer(), I = new pa().parse(E), R = new En({
27936
+ const E = await f.arrayBuffer(), I = new ma().parse(E), R = new En({
27937
27937
  color: "#B3B3D4",
27938
27938
  side: gn
27939
27939
  });
@@ -27954,9 +27954,9 @@ function Ox(r, e, t, n, i) {
27954
27954
  "Mach_X_Axis_0.STL": "rgb(125,158,192)",
27955
27955
  "Mach_Z_Axis_0.STL": "rgb(248,228,118)",
27956
27956
  "Mach_Spindle_0.STL": "rgb(145,145,145)"
27957
- }, b = new gi(), x = C.map((O) => (console.log(232, `${Co.value}\\${O}`), new Promise((K, H) => {
27958
- new pa().load(
27959
- Co.value === "" ? `/model/${O}` : `${Co.value}\\${O}`,
27957
+ }, b = new gi(), x = C.map((O) => new Promise((K, H) => {
27958
+ new ma().load(
27959
+ Ar.value === "" ? `/model/${O}` : `${Ar.value}\\${O}`,
27960
27960
  (oe) => {
27961
27961
  const $ = new En({
27962
27962
  color: D[O] || "#B3B3D4",
@@ -27967,7 +27967,7 @@ function Ox(r, e, t, n, i) {
27967
27967
  void 0,
27968
27968
  H
27969
27969
  );
27970
- })));
27970
+ }));
27971
27971
  try {
27972
27972
  (await Promise.all(x)).forEach((K) => b.add(K)), g = b;
27973
27973
  } catch (O) {
@@ -27979,7 +27979,8 @@ function Ox(r, e, t, n, i) {
27979
27979
  try {
27980
27980
  const O = await new Promise((H, ie) => {
27981
27981
  w.load(
27982
- "/model/final.pcd",
27982
+ Ar.value === "" ? "/model/final.pcd" : `${Ar.value}\\final.pcd`,
27983
+ // '/model/final.pcd'
27983
27984
  (oe) => {
27984
27985
  const $ = new Float32Array(oe.geometry.attributes.position.count * 3);
27985
27986
  for (let ve = 0; ve < oe.geometry.attributes.position.count; ve++)
@@ -27991,7 +27992,8 @@ function Ox(r, e, t, n, i) {
27991
27992
  );
27992
27993
  }), K = await new Promise((H, ie) => {
27993
27994
  w.load(
27994
- "/model/target.pcd",
27995
+ Ar.value === "" ? "/model/target.pcd" : `${Ar.value}\\target.pcd`,
27996
+ // '/model/target.pcd',
27995
27997
  (oe) => {
27996
27998
  const $ = new Float32Array(oe.geometry.attributes.position.count * 3);
27997
27999
  for (let ve = 0; ve < oe.geometry.attributes.position.count; ve++)
@@ -28020,13 +28022,13 @@ function Ox(r, e, t, n, i) {
28020
28022
  const be = $.split(".").pop().toLowerCase();
28021
28023
  switch (be) {
28022
28024
  case "stl":
28023
- const j = await ve.arrayBuffer(), re = new pa(K).parse(j), ae = new Ut(re, new En());
28025
+ const j = await ve.arrayBuffer(), re = new ma(K).parse(j), ae = new Ut(re, new En());
28024
28026
  H(ae);
28025
28027
  break;
28026
28028
  case "obj":
28027
- const Me = await ve.text(), it = new wo(K), Ye = $.replace(".obj", ".mtl"), At = q.get(Ye);
28029
+ const Me = await ve.text(), it = new Ao(K), Ye = $.replace(".obj", ".mtl"), At = q.get(Ye);
28028
28030
  if (At) {
28029
- const ge = await At.text(), Ve = new Ao(K).parse(ge);
28031
+ const ge = await At.text(), Ve = new Ro(K).parse(ge);
28030
28032
  Ve.preload(), it.setMaterials(Ve);
28031
28033
  }
28032
28034
  const se = it.parse(Me);
@@ -28069,7 +28071,7 @@ function Ox(r, e, t, n, i) {
28069
28071
  }
28070
28072
  };
28071
28073
  }
28072
- const Ky = wa("formToTableComp", {
28074
+ const Ky = Aa("formToTableComp", {
28073
28075
  state: () => ({
28074
28076
  selectArray: [],
28075
28077
  selectString: ""
@@ -28102,13 +28104,13 @@ const Ky = wa("formToTableComp", {
28102
28104
  ];
28103
28105
  }), (n, i) => (Ln(), fi("div", $y, [
28104
28106
  rn("div", Jy, [
28105
- Yn(ga, {
28107
+ Yn(_a, {
28106
28108
  rowContents: e.value,
28107
28109
  isRowFlex: !0
28108
28110
  }, null, 8, ["rowContents"])
28109
28111
  ]),
28110
28112
  rn("div", Zy, [
28111
- Yn(ga, {
28113
+ Yn(_a, {
28112
28114
  rowContents: t.value,
28113
28115
  isEdit: !1,
28114
28116
  isRowFlex: !0
@@ -28116,7 +28118,7 @@ const Ky = wa("formToTableComp", {
28116
28118
  ])
28117
28119
  ]));
28118
28120
  }
28119
- }), ex = /* @__PURE__ */ Pl(Qy, [["__scopeId", "data-v-73db0fe7"]]), tx = wa("unit", {
28121
+ }), ex = /* @__PURE__ */ Pl(Qy, [["__scopeId", "data-v-73db0fe7"]]), tx = Aa("unit", {
28120
28122
  state: () => ({
28121
28123
  selectIndex: "",
28122
28124
  selectMenu: "",
@@ -28192,12 +28194,12 @@ const Ky = wa("formToTableComp", {
28192
28194
  let u = [];
28193
28195
  if (u.push(n == null ? void 0 : n.find((h) => h == null ? void 0 : h.id)), Array.isArray(e == null ? void 0 : e[0])) {
28194
28196
  const h = (a = n == null ? void 0 : n.filter((d) => !(d != null && d.id))) == null ? void 0 : a[0];
28195
- (o = _a(Ge(e == null ? void 0 : e[0]))) == null || o.forEach((d) => {
28197
+ (o = va(Ge(e == null ? void 0 : e[0]))) == null || o.forEach((d) => {
28196
28198
  u.push(h == null ? void 0 : h[(d == null ? void 0 : d.prop) ?? (d == null ? void 0 : d.label) ?? d]);
28197
28199
  });
28198
28200
  } else {
28199
28201
  const h = (l = n == null ? void 0 : n.filter((d) => !(d != null && d.id))) == null ? void 0 : l[0];
28200
- (c = _a(Ge(e))) == null || c.forEach((d) => {
28202
+ (c = va(Ge(e))) == null || c.forEach((d) => {
28201
28203
  u.push(h == null ? void 0 : h[(d == null ? void 0 : d.prop) ?? (d == null ? void 0 : d.label) ?? d]);
28202
28204
  });
28203
28205
  }
@@ -28320,7 +28322,7 @@ const Ky = wa("formToTableComp", {
28320
28322
  });
28321
28323
  }
28322
28324
  return t(r, e);
28323
- }, sa = (r) => {
28325
+ }, aa = (r) => {
28324
28326
  var t, n, i, s, a, o, l, c, u, h, d, f, m, _, g, p, S, E, y, I, R, C, D, b, x;
28325
28327
  const e = r;
28326
28328
  if ((r == null ? void 0 : r.comp) === "Table") {
@@ -28355,7 +28357,7 @@ const Ky = wa("formToTableComp", {
28355
28357
  }
28356
28358
  } else
28357
28359
  return [e];
28358
- }, os = (r, e) => {
28360
+ }, ls = (r, e) => {
28359
28361
  let t = {};
28360
28362
  return Array.isArray(r) ? r == null || r.forEach((n, i) => {
28361
28363
  t[e[i]] = n;
@@ -28373,7 +28375,7 @@ const Ky = wa("formToTableComp", {
28373
28375
  if (Array.isArray(l)) {
28374
28376
  let f = (c = l == null ? void 0 : l.map) == null ? void 0 : c.call(l, (m) => {
28375
28377
  var g;
28376
- return (g = sa(Ge(m))) == null ? void 0 : g.map((p) => {
28378
+ return (g = aa(Ge(m))) == null ? void 0 : g.map((p) => {
28377
28379
  var S, E, y, I;
28378
28380
  if (m.comp === "Table")
28379
28381
  return {
@@ -28422,7 +28424,7 @@ const Ky = wa("formToTableComp", {
28422
28424
  });
28423
28425
  return f = (u = f == null ? void 0 : f.map((m) => m != null && m.every((_) => _) ? m : [])) == null ? void 0 : u.filter((m) => m.length > 0), (h = f == null ? void 0 : f[0]) == null ? void 0 : h[0];
28424
28426
  } else {
28425
- const f = (d = sa(Ge(l))) == null ? void 0 : d.map((m) => {
28427
+ const f = (d = aa(Ge(l))) == null ? void 0 : d.map((m) => {
28426
28428
  var _, g, p, S;
28427
28429
  if (l.comp === "Table")
28428
28430
  return {
@@ -28481,7 +28483,7 @@ const Ky = wa("formToTableComp", {
28481
28483
  var c;
28482
28484
  Array.isArray(l) ? l == null || l.forEach(async (u) => {
28483
28485
  var h;
28484
- (h = sa(Ge(u))) == null || h.forEach(async (d) => {
28486
+ (h = aa(Ge(u))) == null || h.forEach(async (d) => {
28485
28487
  var f, m, _, g, p, S;
28486
28488
  if (u.comp === "Table") {
28487
28489
  const y = (p = (g = (await Dn({
@@ -28510,7 +28512,7 @@ const Ky = wa("formToTableComp", {
28510
28512
  tableId: y
28511
28513
  },
28512
28514
  value: {
28513
- tableData: os(R, (z = Zi((B = (w = (x = pn(Ge(d))) == null ? void 0 : x.compData) == null ? void 0 : w.find((q) => (q == null ? void 0 : q.key) === "header")) == null ? void 0 : B.contents)) == null ? void 0 : z.filter((q) => q !== "操作"))
28515
+ tableData: ls(R, (z = Zi((B = (w = (x = pn(Ge(d))) == null ? void 0 : x.compData) == null ? void 0 : w.find((q) => (q == null ? void 0 : q.key) === "header")) == null ? void 0 : B.contents)) == null ? void 0 : z.filter((q) => q !== "操作"))
28514
28516
  }
28515
28517
  }));
28516
28518
  const b = await ((X = (await Dn({
@@ -28520,7 +28522,7 @@ const Ky = wa("formToTableComp", {
28520
28522
  type: "structure",
28521
28523
  parentTable: R
28522
28524
  }
28523
- })).data.result) == null ? void 0 : X.map(async (q) => await ma({
28525
+ })).data.result) == null ? void 0 : X.map(async (q) => await ga({
28524
28526
  id: q.id,
28525
28527
  key: {
28526
28528
  systemKey: q.key.systemKey,
@@ -28535,7 +28537,7 @@ const Ky = wa("formToTableComp", {
28535
28537
  e.push(I);
28536
28538
  }
28537
28539
  });
28538
- }) : (c = sa(Ge(l))) == null || c.forEach(async (u) => {
28540
+ }) : (c = aa(Ge(l))) == null || c.forEach(async (u) => {
28539
28541
  var h, d, f, m, _, g, p;
28540
28542
  if (l.comp === "Table") {
28541
28543
  const E = (_ = (m = (await Dn({
@@ -28564,7 +28566,7 @@ const Ky = wa("formToTableComp", {
28564
28566
  tableId: E
28565
28567
  },
28566
28568
  value: {
28567
- tableData: os(C, (w = Zi((x = (b = (D = pn(Ge(u))) == null ? void 0 : D.compData) == null ? void 0 : b.find((B) => (B == null ? void 0 : B.key) === "header")) == null ? void 0 : x.contents)) == null ? void 0 : w.filter((B) => B !== "操作"))
28569
+ tableData: ls(C, (w = Zi((x = (b = (D = pn(Ge(u))) == null ? void 0 : D.compData) == null ? void 0 : b.find((B) => (B == null ? void 0 : B.key) === "header")) == null ? void 0 : x.contents)) == null ? void 0 : w.filter((B) => B !== "操作"))
28568
28570
  }
28569
28571
  };
28570
28572
  }), I = await sc({
@@ -28582,7 +28584,7 @@ const Ky = wa("formToTableComp", {
28582
28584
  tableId: E
28583
28585
  },
28584
28586
  value: {
28585
- tableData: os(C, (X = Zi((z = (B = (w = pn(Ge(u))) == null ? void 0 : w.compData) == null ? void 0 : B.find((O) => (O == null ? void 0 : O.key) === "header")) == null ? void 0 : z.contents)) == null ? void 0 : X.filter((O) => O !== "操作"))
28587
+ tableData: ls(C, (X = Zi((z = (B = (w = pn(Ge(u))) == null ? void 0 : w.compData) == null ? void 0 : B.find((O) => (O == null ? void 0 : O.key) === "header")) == null ? void 0 : z.contents)) == null ? void 0 : X.filter((O) => O !== "操作"))
28586
28588
  }
28587
28589
  })), await ((q = (await Dn({
28588
28590
  key: {
@@ -28593,7 +28595,7 @@ const Ky = wa("formToTableComp", {
28593
28595
  }
28594
28596
  })).data.result) == null ? void 0 : q.map(async (O) => {
28595
28597
  var H, ie;
28596
- return await ma({
28598
+ return await ga({
28597
28599
  id: O.id,
28598
28600
  key: {
28599
28601
  systemKey: O.key.systemKey,
@@ -28611,7 +28613,7 @@ const Ky = wa("formToTableComp", {
28611
28613
  });
28612
28614
  });
28613
28615
  }), await Promise.all(e);
28614
- }, fh = xh(Rr), dx = (r) => {
28616
+ }, fh = xh(Cr), dx = (r) => {
28615
28617
  var t;
28616
28618
  const e = Array.isArray(r) ? r == null ? void 0 : r[0] : {};
28617
28619
  return (t = e == null ? void 0 : e.contents) == null ? void 0 : t.map((n) => ({
@@ -28729,12 +28731,12 @@ const Ky = wa("formToTableComp", {
28729
28731
  systemKey: n
28730
28732
  },
28731
28733
  value: {
28732
- tableData: os(i, (a = Zi(s)) == null ? void 0 : a.filter((o) => o !== "操作"))
28734
+ tableData: ls(i, (a = Zi(s)) == null ? void 0 : a.filter((o) => o !== "操作"))
28733
28735
  }
28734
28736
  });
28735
28737
  }, Gx = async (r, e, t, n, i, s, a) => {
28736
28738
  var o;
28737
- await ma({
28739
+ await ga({
28738
28740
  key: {
28739
28741
  type: r,
28740
28742
  pageKey: e,
@@ -28742,12 +28744,12 @@ const Ky = wa("formToTableComp", {
28742
28744
  systemKey: i
28743
28745
  },
28744
28746
  value: {
28745
- tableData: os(s, (o = Zi(a)) == null ? void 0 : o.filter((l) => l !== "操作"))
28747
+ tableData: ls(s, (o = Zi(a)) == null ? void 0 : o.filter((l) => l !== "操作"))
28746
28748
  },
28747
28749
  id: n
28748
28750
  });
28749
28751
  }, Wx = async (r, e) => {
28750
- await ma({
28752
+ await ga({
28751
28753
  value: {
28752
28754
  pageData: e
28753
28755
  },
@@ -28769,7 +28771,7 @@ const Ky = wa("formToTableComp", {
28769
28771
  } catch (c) {
28770
28772
  return Promise.reject(c);
28771
28773
  }
28772
- }, gx = wa("modelTableComp", {
28774
+ }, gx = Aa("modelTableComp", {
28773
28775
  state: () => ({
28774
28776
  tableIndex: 0,
28775
28777
  tableShowThree: ""
@@ -28815,13 +28817,13 @@ const Ky = wa("formToTableComp", {
28815
28817
  },
28816
28818
  emits: ["change", "contentChange", "onButtonClick", "contentClick", "pageChange"],
28817
28819
  setup(r, { emit: e }) {
28818
- const t = r, n = e, i = Ct([]), s = xh(), { activeMenuPath: a } = ns(s), o = gx(Rr), l = bh(Rr), { extraContents: c } = ns(l), u = Ct([]);
28820
+ const t = r, n = e, i = Ct([]), s = xh(), { activeMenuPath: a } = is(s), o = gx(Cr), l = bh(Cr), { extraContents: c } = is(l), u = Ct([]);
28819
28821
  Ct(!1);
28820
28822
  const h = Ct("");
28821
28823
  Ct();
28822
28824
  const d = Ct(!0), f = Ct(0), m = Ct(!1), _ = Ct(""), g = Ct(!1), p = Ct({
28823
28825
  label: "查看三维模型"
28824
- }), S = Ct(!1), E = Ct(), y = Ct([]), I = Ct([]), R = Ct(!1), C = Ct([]), D = Ct([]), b = Ct(), x = Ct(), w = Ky(Rr), B = Ct(), z = tx(Rr), { selectIndex: X, selectMenu: q, selectTitle: O } = ns(z), { selectString: K } = ns(w), H = Ct(720), ie = () => {
28826
+ }), S = Ct(!1), E = Ct(), y = Ct([]), I = Ct([]), R = Ct(!1), C = Ct([]), D = Ct([]), b = Ct(), x = Ct(), w = Ky(Cr), B = Ct(), z = tx(Cr), { selectIndex: X, selectMenu: q, selectTitle: O } = is(z), { selectString: K } = is(w), H = Ct(720), ie = () => {
28825
28827
  g.value = !1;
28826
28828
  }, oe = (se) => {
28827
28829
  n("clickTrigger", se);
@@ -28894,7 +28896,7 @@ const Ky = wa("formToTableComp", {
28894
28896
  }, re = (se, ge, N) => {
28895
28897
  n("contentClick", se, ge, N, { id: t == null ? void 0 : t.index });
28896
28898
  };
28897
- Pr(
28899
+ Lr(
28898
28900
  () => t.changedContent,
28899
28901
  () => {
28900
28902
  var N, Ve;
@@ -28952,7 +28954,7 @@ const Ky = wa("formToTableComp", {
28952
28954
  let N = [];
28953
28955
  for (let ee in se)
28954
28956
  Array.isArray(se == null ? void 0 : se[ee]) && N.push(ee);
28955
- (Se = _a((Ve = Ge(i.value)) == null ? void 0 : Ve.filter((ee) => (ee == null ? void 0 : ee.label) !== "操作"))) == null || Se.forEach((ee, Fe) => {
28957
+ (Se = va((Ve = Ge(i.value)) == null ? void 0 : Ve.filter((ee) => (ee == null ? void 0 : ee.label) !== "操作"))) == null || Se.forEach((ee, Fe) => {
28956
28958
  N.find((De) => De === (ee == null ? void 0 : ee.prop)) || ge.push({
28957
28959
  label: (ee == null ? void 0 : ee.label) ?? "",
28958
28960
  name: (ee == null ? void 0 : ee.prop) ?? "t" + Fe,
@@ -28982,7 +28984,7 @@ const Ky = wa("formToTableComp", {
28982
28984
  }, At = (se) => {
28983
28985
  x.value = se, n("onFormChange", se);
28984
28986
  };
28985
- return Pr(
28987
+ return Lr(
28986
28988
  () => [t.itemData, K.value, X.value, q.value, c == null ? void 0 : c.value],
28987
28989
  () => {
28988
28990
  var De, Ae, ft, F, T, Y, le, he, ne, He, xe, Ie, qe, de, Ne, et, Ze, Te, st, V, Ce, fe, Oe, _e, ue, ze;
@@ -29069,7 +29071,7 @@ const Ky = wa("formToTableComp", {
29069
29071
  ((_e = N == null ? void 0 : N.contents) == null ? void 0 : _e.length) > 0 ? I.value = N == null ? void 0 : N.contents : I.value = [], ((ue = Ve == null ? void 0 : Ve.contents) == null ? void 0 : ue.length) > 0 ? C.value = Ve == null ? void 0 : Ve.contents : C.value = [], f.value = ((ze = u == null ? void 0 : u.value) == null ? void 0 : ze.length) ?? 0, B.value = u.value;
29070
29072
  },
29071
29073
  { deep: !0, immediate: !0 }
29072
- ), Pr(() => t == null ? void 0 : t.operatingForm, (se) => {
29074
+ ), Lr(() => t == null ? void 0 : t.operatingForm, (se) => {
29073
29075
  se != null && se.form && (it(se == null ? void 0 : se.form), _.value = se == null ? void 0 : se.dialogTitle, R.value = !0, g.value = !0);
29074
29076
  }, { immediate: !0, deep: !0 }), (se, ge) => {
29075
29077
  var N;
@@ -29120,7 +29122,7 @@ const Ky = wa("formToTableComp", {
29120
29122
  }, {
29121
29123
  default: kn(() => [
29122
29124
  rn("div", yx, [
29123
- Yn(ga, {
29125
+ Yn(_a, {
29124
29126
  rowContents: D.value,
29125
29127
  isEnableWrap: !1,
29126
29128
  onChange: At,
@@ -29185,14 +29187,14 @@ export {
29185
29187
  Lx as M,
29186
29188
  Wi as P,
29187
29189
  Nn as Q,
29188
- ms as R,
29190
+ gs as R,
29189
29191
  wm as S,
29190
29192
  Dx as T,
29191
29193
  k as V,
29192
29194
  Nx as W,
29193
29195
  Fx as X,
29194
29196
  ht as a,
29195
- Ar as b,
29197
+ Rr as b,
29196
29198
  Gh as c,
29197
29199
  ut as d,
29198
29200
  cn as e,
@@ -29200,7 +29202,7 @@ export {
29200
29202
  wt as g,
29201
29203
  Mm as h,
29202
29204
  vm as i,
29203
- Pa as j,
29205
+ La as j,
29204
29206
  En as k,
29205
29207
  gn as l,
29206
29208
  Ut as m,
@@ -29210,7 +29212,7 @@ export {
29210
29212
  gx as q,
29211
29213
  Xx as r,
29212
29214
  pn as s,
29213
- sa as t,
29215
+ aa as t,
29214
29216
  bh as u,
29215
29217
  Po as v,
29216
29218
  zx as w,