dpot-ui 0.4.6 → 0.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -86,7 +86,7 @@ const Tf = (n, e, t) => zt(void 0, null, function* () {
86
86
  }
87
87
  return { x: u, y: h, placement: f, strategy: r, middlewareData: d };
88
88
  });
89
- function Ki(n, e) {
89
+ function Zi(n, e) {
90
90
  return typeof n == "function" ? n(e) : n;
91
91
  }
92
92
  function Xu(n) {
@@ -101,7 +101,7 @@ function Cs(n, e) {
101
101
  return zt(this, null, function* () {
102
102
  var t;
103
103
  e === void 0 && (e = {});
104
- const { x: i, y: r, platform: s, rects: o, elements: a, strategy: l } = n, { boundary: c = "clippingAncestors", rootBoundary: u = "viewport", elementContext: h = "floating", altBoundary: f = !1, padding: d = 0 } = Ki(e, n), g = Xu(d), _ = a[f ? h === "floating" ? "reference" : "floating" : h], m = As(yield s.getClippingRect({ element: (t = yield s.isElement == null ? void 0 : s.isElement(_)) == null || t ? _ : _.contextElement || (yield s.getDocumentElement == null ? void 0 : s.getDocumentElement(a.floating)), boundary: c, rootBoundary: u, strategy: l })), p = h === "floating" ? rt(De({}, o.floating), { x: i, y: r }) : o.reference, y = yield s.getOffsetParent == null ? void 0 : s.getOffsetParent(a.floating), v = (yield s.isElement == null ? void 0 : s.isElement(y)) && (yield s.getScale == null ? void 0 : s.getScale(y)) || { x: 1, y: 1 }, M = As(s.convertOffsetParentRelativeRectToViewportRelativeRect ? yield s.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: p, offsetParent: y, strategy: l }) : p);
104
+ const { x: i, y: r, platform: s, rects: o, elements: a, strategy: l } = n, { boundary: c = "clippingAncestors", rootBoundary: u = "viewport", elementContext: h = "floating", altBoundary: f = !1, padding: d = 0 } = Zi(e, n), g = Xu(d), _ = a[f ? h === "floating" ? "reference" : "floating" : h], m = As(yield s.getClippingRect({ element: (t = yield s.isElement == null ? void 0 : s.isElement(_)) == null || t ? _ : _.contextElement || (yield s.getDocumentElement == null ? void 0 : s.getDocumentElement(a.floating)), boundary: c, rootBoundary: u, strategy: l })), p = h === "floating" ? rt(De({}, o.floating), { x: i, y: r }) : o.reference, y = yield s.getOffsetParent == null ? void 0 : s.getOffsetParent(a.floating), v = (yield s.isElement == null ? void 0 : s.isElement(y)) && (yield s.getScale == null ? void 0 : s.getScale(y)) || { x: 1, y: 1 }, M = As(s.convertOffsetParentRelativeRectToViewportRelativeRect ? yield s.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: p, offsetParent: y, strategy: l }) : p);
105
105
  return { top: (m.top - M.top + g.top) / v.y, bottom: (M.bottom - m.bottom + g.bottom) / v.y, left: (m.left - M.left + g.left) / v.x, right: (M.right - m.right + g.right) / v.x };
106
106
  });
107
107
  }
@@ -111,14 +111,14 @@ function Ko(n, e, t) {
111
111
  }
112
112
  const Af = (n) => ({ name: "arrow", options: n, fn(t) {
113
113
  return zt(this, null, function* () {
114
- const { x: i, y: r, placement: s, rects: o, platform: a, elements: l } = t, { element: c, padding: u = 0 } = Ki(n, t) || {};
114
+ const { x: i, y: r, placement: s, rects: o, platform: a, elements: l } = t, { element: c, padding: u = 0 } = Zi(n, t) || {};
115
115
  if (c == null)
116
116
  return {};
117
117
  const h = Xu(u), f = { x: i, y: r }, d = Pr(s), g = Ea(d), _ = yield a.getDimensions(c), m = d === "y", p = m ? "top" : "left", y = m ? "bottom" : "right", v = m ? "clientHeight" : "clientWidth", M = o.reference[g] + o.reference[d] - f[d] - o.floating[g], b = f[d] - o.reference[d], R = yield a.getOffsetParent == null ? void 0 : a.getOffsetParent(c);
118
118
  let w = R ? R[v] : 0;
119
119
  w && (yield a.isElement == null ? void 0 : a.isElement(R)) || (w = l.floating[v] || o.floating[g]);
120
- const N = M / 2 - b / 2, x = w / 2 - _[g] / 2 - 1, E = Yo(h[p], x), F = Yo(h[y], x), ee = E, O = w - _[g] - F, U = w / 2 - _[g] / 2 + N, C = Ko(ee, U, O), z = Lr(s) != null && U != C && o.reference[g] / 2 - (U < ee ? E : F) - _[g] / 2 < 0 ? U < ee ? ee - U : O - U : 0;
121
- return { [d]: f[d] - z, data: { [d]: C, centerOffset: U - C + z } };
120
+ const U = M / 2 - b / 2, x = w / 2 - _[g] / 2 - 1, E = Yo(h[p], x), F = Yo(h[y], x), ee = E, O = w - _[g] - F, N = w / 2 - _[g] / 2 + U, C = Ko(ee, N, O), z = Lr(s) != null && N != C && o.reference[g] / 2 - (N < ee ? E : F) - _[g] / 2 < 0 ? N < ee ? ee - N : O - N : 0;
121
+ return { [d]: f[d] - z, data: { [d]: C, centerOffset: N - C + z } };
122
122
  });
123
123
  } }), $u = ["top", "right", "bottom", "left"];
124
124
  $u.reduce((n, e) => n.concat(e, e + "-start", e + "-end"), []);
@@ -140,11 +140,11 @@ const Pf = function(n) {
140
140
  return n === void 0 && (n = {}), { name: "flip", options: n, fn(t) {
141
141
  return zt(this, null, function* () {
142
142
  var i;
143
- const { placement: r, middlewareData: s, rects: o, initialPlacement: a, platform: l, elements: c } = t, ee = Ki(n, t), { mainAxis: u = !0, crossAxis: h = !0, fallbackPlacements: f, fallbackStrategy: d = "bestFit", fallbackAxisSideDirection: g = "none", flipAlignment: _ = !0 } = ee, m = zr(ee, ["mainAxis", "crossAxis", "fallbackPlacements", "fallbackStrategy", "fallbackAxisSideDirection", "flipAlignment"]), p = si(r), y = si(a) === a, v = yield l.isRTL == null ? void 0 : l.isRTL(c.floating), M = f || (y || !_ ? [Rs(a)] : function(O) {
144
- const U = Rs(O);
145
- return [ro(O), U, ro(U)];
143
+ const { placement: r, middlewareData: s, rects: o, initialPlacement: a, platform: l, elements: c } = t, ee = Zi(n, t), { mainAxis: u = !0, crossAxis: h = !0, fallbackPlacements: f, fallbackStrategy: d = "bestFit", fallbackAxisSideDirection: g = "none", flipAlignment: _ = !0 } = ee, m = zr(ee, ["mainAxis", "crossAxis", "fallbackPlacements", "fallbackStrategy", "fallbackAxisSideDirection", "flipAlignment"]), p = si(r), y = si(a) === a, v = yield l.isRTL == null ? void 0 : l.isRTL(c.floating), M = f || (y || !_ ? [Rs(a)] : function(O) {
144
+ const N = Rs(O);
145
+ return [ro(O), N, ro(N)];
146
146
  }(a));
147
- f || g === "none" || M.push(...function(O, U, C, z) {
147
+ f || g === "none" || M.push(...function(O, N, C, z) {
148
148
  const H = Lr(O);
149
149
  let V = function(K, Q, B) {
150
150
  const q = ["left", "right"], oe = ["right", "left"], me = ["top", "bottom"], ge = ["bottom", "top"];
@@ -159,25 +159,25 @@ const Pf = function(n) {
159
159
  return [];
160
160
  }
161
161
  }(si(O), C === "start", z);
162
- return H && (V = V.map((K) => K + "-" + H), U && (V = V.concat(V.map(ro)))), V;
162
+ return H && (V = V.map((K) => K + "-" + H), N && (V = V.concat(V.map(ro)))), V;
163
163
  }(a, _, g, v));
164
164
  const b = [a, ...M], R = yield Cs(t, m), w = [];
165
- let N = ((i = s.flip) == null ? void 0 : i.overflows) || [];
165
+ let U = ((i = s.flip) == null ? void 0 : i.overflows) || [];
166
166
  if (u && w.push(R[p]), h) {
167
- const { main: O, cross: U } = Rf(r, o, v);
168
- w.push(R[O], R[U]);
167
+ const { main: O, cross: N } = Rf(r, o, v);
168
+ w.push(R[O], R[N]);
169
169
  }
170
- if (N = [...N, { placement: r, overflows: w }], !w.every((O) => O <= 0)) {
170
+ if (U = [...U, { placement: r, overflows: w }], !w.every((O) => O <= 0)) {
171
171
  var x, E;
172
- const O = (((x = s.flip) == null ? void 0 : x.index) || 0) + 1, U = b[O];
173
- if (U)
174
- return { data: { index: O, overflows: N }, reset: { placement: U } };
175
- let C = (E = N.filter((z) => z.overflows[0] <= 0).sort((z, H) => z.overflows[1] - H.overflows[1])[0]) == null ? void 0 : E.placement;
172
+ const O = (((x = s.flip) == null ? void 0 : x.index) || 0) + 1, N = b[O];
173
+ if (N)
174
+ return { data: { index: O, overflows: U }, reset: { placement: N } };
175
+ let C = (E = U.filter((z) => z.overflows[0] <= 0).sort((z, H) => z.overflows[1] - H.overflows[1])[0]) == null ? void 0 : E.placement;
176
176
  if (!C)
177
177
  switch (d) {
178
178
  case "bestFit": {
179
179
  var F;
180
- const z = (F = N.map((H) => [H.placement, H.overflows.filter((V) => V > 0).reduce((V, K) => V + K, 0)]).sort((H, V) => H[1] - V[1])[0]) == null ? void 0 : F[0];
180
+ const z = (F = U.map((H) => [H.placement, H.overflows.filter((V) => V > 0).reduce((V, K) => V + K, 0)]).sort((H, V) => H[1] - V[1])[0]) == null ? void 0 : F[0];
181
181
  z && (C = z);
182
182
  break;
183
183
  }
@@ -200,7 +200,7 @@ function cl(n) {
200
200
  const Df = function(n) {
201
201
  return n === void 0 && (n = {}), { name: "hide", options: n, fn(t) {
202
202
  return zt(this, null, function* () {
203
- const { rects: i } = t, o = Ki(n, t), { strategy: r = "referenceHidden" } = o, s = zr(o, ["strategy"]);
203
+ const { rects: i } = t, o = Zi(n, t), { strategy: r = "referenceHidden" } = o, s = zr(o, ["strategy"]);
204
204
  switch (r) {
205
205
  case "referenceHidden": {
206
206
  const a = ll(yield Cs(t, rt(De({}, s), { elementContext: "reference" })), i.reference);
@@ -220,7 +220,7 @@ const Df = function(n) {
220
220
  return zt(this, null, function* () {
221
221
  const { x: i, y: r } = t, s = yield function(o, a) {
222
222
  return zt(this, null, function* () {
223
- const { placement: l, platform: c, elements: u } = o, h = yield c.isRTL == null ? void 0 : c.isRTL(u.floating), f = si(l), d = Lr(l), g = Pr(l) === "x", _ = ["left", "top"].includes(f) ? -1 : 1, m = h && g ? -1 : 1, p = Ki(a, o);
223
+ const { placement: l, platform: c, elements: u } = o, h = yield c.isRTL == null ? void 0 : c.isRTL(u.floating), f = si(l), d = Lr(l), g = Pr(l) === "x", _ = ["left", "top"].includes(f) ? -1 : 1, m = h && g ? -1 : 1, p = Zi(a, o);
224
224
  let { mainAxis: y, crossAxis: v, alignmentAxis: M } = typeof p == "number" ? { mainAxis: p, crossAxis: 0, alignmentAxis: null } : De({ mainAxis: 0, crossAxis: 0, alignmentAxis: null }, p);
225
225
  return d && typeof M == "number" && (v = d === "end" ? -1 * M : M), g ? { x: v * m, y: y * _ } : { x: y * _, y: v * m };
226
226
  });
@@ -235,7 +235,7 @@ function Uf(n) {
235
235
  const Nf = function(n) {
236
236
  return n === void 0 && (n = {}), { name: "shift", options: n, fn(t) {
237
237
  return zt(this, null, function* () {
238
- const { x: i, y: r, placement: s } = t, p = Ki(n, t), { mainAxis: o = !0, crossAxis: a = !1, limiter: l = { fn: (y) => {
238
+ const { x: i, y: r, placement: s } = t, p = Zi(n, t), { mainAxis: o = !0, crossAxis: a = !1, limiter: l = { fn: (y) => {
239
239
  let { x: v, y: M } = y;
240
240
  return { x: v, y: M };
241
241
  } } } = p, c = zr(p, ["mainAxis", "crossAxis", "limiter"]), u = { x: i, y: r }, h = yield Cs(t, c), f = Pr(si(s)), d = Uf(f);
@@ -292,7 +292,7 @@ function ba() {
292
292
  function Hs(n) {
293
293
  return ["html", "body", "#document"].includes(qn(n));
294
294
  }
295
- const Jo = Math.min, Bi = Math.max, Ls = Math.round, Hr = Math.floor, hi = (n) => ({ x: n, y: n });
295
+ const Jo = Math.min, zi = Math.max, Ls = Math.round, Hr = Math.floor, hi = (n) => ({ x: n, y: n });
296
296
  function ju(n) {
297
297
  const e = on(n);
298
298
  let t = parseFloat(e.width) || 0, i = parseFloat(e.height) || 0;
@@ -302,7 +302,7 @@ function ju(n) {
302
302
  function Ta(n) {
303
303
  return Ln(n) ? n : n.contextElement;
304
304
  }
305
- function zi(n) {
305
+ function Hi(n) {
306
306
  const e = Ta(n);
307
307
  if (!ln(e))
308
308
  return hi(1);
@@ -322,14 +322,14 @@ function fi(n, e, t, i) {
322
322
  e === void 0 && (e = !1), t === void 0 && (t = !1);
323
323
  const r = n.getBoundingClientRect(), s = Ta(n);
324
324
  let o = hi(1);
325
- e && (i ? Ln(i) && (o = zi(i)) : o = zi(n));
325
+ e && (i ? Ln(i) && (o = Hi(i)) : o = Hi(n));
326
326
  const a = Yu(s, t, i);
327
327
  let l = (r.left + a.x) / o.x, c = (r.top + a.y) / o.y, u = r.width / o.x, h = r.height / o.y;
328
328
  if (s) {
329
329
  const f = qt(s), d = i && Ln(i) ? qt(i) : i;
330
330
  let g = f.frameElement;
331
331
  for (; g && i && d !== f; ) {
332
- const _ = zi(g), m = g.getBoundingClientRect(), p = getComputedStyle(g), y = m.left + (g.clientLeft + parseFloat(p.paddingLeft)) * _.x, v = m.top + (g.clientTop + parseFloat(p.paddingTop)) * _.y;
332
+ const _ = Hi(g), m = g.getBoundingClientRect(), p = getComputedStyle(g), y = m.left + (g.clientLeft + parseFloat(p.paddingLeft)) * _.x, v = m.top + (g.clientTop + parseFloat(p.paddingTop)) * _.y;
333
333
  l *= _.x, c *= _.y, u *= _.x, h *= _.y, l += y, c += v, g = qt(g).frameElement;
334
334
  }
335
335
  }
@@ -344,14 +344,14 @@ function ks(n) {
344
344
  function Ku(n) {
345
345
  return fi(Pn(n)).left + ks(n).scrollLeft;
346
346
  }
347
- function Gi(n) {
347
+ function Vi(n) {
348
348
  if (qn(n) === "html")
349
349
  return n;
350
350
  const e = n.assignedSlot || n.parentNode || ul(n) && n.host || Pn(n);
351
351
  return ul(e) ? e.host : e;
352
352
  }
353
353
  function Zu(n) {
354
- const e = Gi(n);
354
+ const e = Vi(n);
355
355
  return Hs(e) ? n.ownerDocument ? n.ownerDocument.body : n.body : ln(e) && xr(e) ? e : Zu(e);
356
356
  }
357
357
  function Ps(n, e) {
@@ -375,14 +375,14 @@ function fl(n, e, t) {
375
375
  }(n, t);
376
376
  else if (e === "document")
377
377
  i = function(r) {
378
- const s = Pn(r), o = ks(r), a = r.ownerDocument.body, l = Bi(s.scrollWidth, s.clientWidth, a.scrollWidth, a.clientWidth), c = Bi(s.scrollHeight, s.clientHeight, a.scrollHeight, a.clientHeight);
378
+ const s = Pn(r), o = ks(r), a = r.ownerDocument.body, l = zi(s.scrollWidth, s.clientWidth, a.scrollWidth, a.clientWidth), c = zi(s.scrollHeight, s.clientHeight, a.scrollHeight, a.clientHeight);
379
379
  let u = -o.scrollLeft + Ku(r);
380
380
  const h = -o.scrollTop;
381
- return on(a).direction === "rtl" && (u += Bi(s.clientWidth, a.clientWidth) - l), { width: l, height: c, x: u, y: h };
381
+ return on(a).direction === "rtl" && (u += zi(s.clientWidth, a.clientWidth) - l), { width: l, height: c, x: u, y: h };
382
382
  }(Pn(n));
383
383
  else if (Ln(e))
384
384
  i = function(r, s) {
385
- const o = fi(r, !0, s === "fixed"), a = o.top + r.clientTop, l = o.left + r.clientLeft, c = ln(r) ? zi(r) : hi(1);
385
+ const o = fi(r, !0, s === "fixed"), a = o.top + r.clientTop, l = o.left + r.clientLeft, c = ln(r) ? Hi(r) : hi(1);
386
386
  return { width: r.clientWidth * c.x, height: r.clientHeight * c.y, x: l * c.x, y: a * c.y };
387
387
  }(e, t);
388
388
  else {
@@ -392,7 +392,7 @@ function fl(n, e, t) {
392
392
  return As(i);
393
393
  }
394
394
  function Ju(n, e) {
395
- const t = Gi(n);
395
+ const t = Vi(n);
396
396
  return !(t === e || !Ln(t) || Hs(t)) && (on(t).position === "fixed" || Ju(t, e));
397
397
  }
398
398
  function dl(n, e) {
@@ -406,11 +406,11 @@ function pl(n, e) {
406
406
  for (; i && Of(i) && on(i).position === "static"; )
407
407
  i = dl(i, e);
408
408
  return i && (qn(i) === "html" || qn(i) === "body" && on(i).position === "static" && !Zo(i)) ? t : i || function(r) {
409
- let s = Gi(r);
409
+ let s = Vi(r);
410
410
  for (; ln(s) && !Hs(s); ) {
411
411
  if (Zo(s))
412
412
  return s;
413
- s = Gi(s);
413
+ s = Vi(s);
414
414
  }
415
415
  return null;
416
416
  }(n) || t;
@@ -435,15 +435,15 @@ const Bf = { getClippingRect: function(n) {
435
435
  return h;
436
436
  let f = Ps(c).filter((m) => Ln(m) && qn(m) !== "body"), d = null;
437
437
  const g = on(c).position === "fixed";
438
- let _ = g ? Gi(c) : c;
438
+ let _ = g ? Vi(c) : c;
439
439
  for (; Ln(_) && !Hs(_); ) {
440
440
  const m = on(_), p = Zo(_);
441
- p || m.position !== "fixed" || (d = null), (g ? !p && !d : !p && m.position === "static" && d && ["absolute", "fixed"].includes(d.position) || xr(_) && !p && Ju(c, _)) ? f = f.filter((y) => y !== _) : d = m, _ = Gi(_);
441
+ p || m.position !== "fixed" || (d = null), (g ? !p && !d : !p && m.position === "static" && d && ["absolute", "fixed"].includes(d.position) || xr(_) && !p && Ju(c, _)) ? f = f.filter((y) => y !== _) : d = m, _ = Vi(_);
442
442
  }
443
443
  return u.set(c, f), f;
444
444
  }(e, this._c) : [].concat(t), o = [...s, i], a = o[0], l = o.reduce((c, u) => {
445
445
  const h = fl(e, u, r);
446
- return c.top = Bi(h.top, c.top), c.right = Jo(h.right, c.right), c.bottom = Jo(h.bottom, c.bottom), c.left = Bi(h.left, c.left), c;
446
+ return c.top = zi(h.top, c.top), c.right = Jo(h.right, c.right), c.bottom = Jo(h.bottom, c.bottom), c.left = zi(h.left, c.left), c;
447
447
  }, fl(e, a, r));
448
448
  return { width: l.right - l.left, height: l.bottom - l.top, x: l.left, y: l.top };
449
449
  }, convertOffsetParentRelativeRectToViewportRelativeRect: function(n) {
@@ -455,12 +455,12 @@ const Bf = { getClippingRect: function(n) {
455
455
  const l = hi(0);
456
456
  if ((r || !r && i !== "fixed") && ((qn(t) !== "body" || xr(s)) && (o = ks(t)), ln(t))) {
457
457
  const c = fi(t);
458
- a = zi(t), l.x = c.x + t.clientLeft, l.y = c.y + t.clientTop;
458
+ a = Hi(t), l.x = c.x + t.clientLeft, l.y = c.y + t.clientTop;
459
459
  }
460
460
  return { width: e.width * a.x, height: e.height * a.y, x: e.x * a.x - o.scrollLeft * a.x + l.x, y: e.y * a.y - o.scrollTop * a.y + l.y };
461
461
  }, isElement: Ln, getDimensions: function(n) {
462
462
  return ju(n);
463
- }, getOffsetParent: pl, getDocumentElement: Pn, getScale: zi, getElementRects(n) {
463
+ }, getOffsetParent: pl, getDocumentElement: Pn, getScale: Hi, getElementRects(n) {
464
464
  return zt(this, null, function* () {
465
465
  let { reference: e, floating: t, strategy: i } = n;
466
466
  const r = this.getOffsetParent || pl, s = this.getDimensions;
@@ -481,10 +481,10 @@ function zf(n, e, t, i) {
481
481
  }
482
482
  return function b(R, w) {
483
483
  R === void 0 && (R = !1), w === void 0 && (w = 1), M();
484
- const { left: N, top: x, width: E, height: F } = _.getBoundingClientRect();
484
+ const { left: U, top: x, width: E, height: F } = _.getBoundingClientRect();
485
485
  if (R || m(), !E || !F)
486
486
  return;
487
- const ee = Hr(x), O = Hr(v.clientWidth - (N + E)), U = Hr(v.clientHeight - (x + F)), C = Hr(N);
487
+ const ee = Hr(x), O = Hr(v.clientWidth - (U + E)), N = Hr(v.clientHeight - (x + F)), C = Hr(U);
488
488
  let z = !0;
489
489
  y = new IntersectionObserver((H) => {
490
490
  const V = H[0].intersectionRatio;
@@ -496,7 +496,7 @@ function zf(n, e, t, i) {
496
496
  }, 100);
497
497
  }
498
498
  z = !1;
499
- }, { rootMargin: -ee + "px " + -O + "px " + -U + "px " + -C + "px", threshold: Bi(0, Jo(1, w)) || 1 }), y.observe(_);
499
+ }, { rootMargin: -ee + "px " + -O + "px " + -N + "px " + -C + "px", threshold: zi(0, Jo(1, w)) || 1 }), y.observe(_);
500
500
  }(!0), M;
501
501
  }(c, t) : null;
502
502
  let f, d = null;
@@ -1619,9 +1619,9 @@ const Vd = /* @__PURE__ */ function() {
1619
1619
  return {};
1620
1620
  const r = (o) => typeof o == "number" ? [o] : (Object.values(o) || []).map((a) => r(a)).flat();
1621
1621
  return { position: "sticky", left: `${n.filter((o, a) => a < t && o.isFixed).map((o) => r(e[o.code])).reduce((o, a) => parseFloat(o) + parseFloat(a), 0)}px` };
1622
- }, ar = (n, e, t) => {
1622
+ }, lr = (n, e, t) => {
1623
1623
  const i = n[e[0]];
1624
- return e.length > 1 ? ar(i, e.slice(1), t) : n[t] === void 0 ? i : n[t];
1624
+ return e.length > 1 ? lr(i, e.slice(1), t) : n[t] === void 0 ? i : n[t];
1625
1625
  };
1626
1626
  var Wd = function() {
1627
1627
  var n = this, e = n.$createElement, t = n._self._c || e;
@@ -2011,7 +2011,7 @@ const Jd = {
2011
2011
  return n.length ? [...this.bodyData].filter((e) => {
2012
2012
  let t = !0;
2013
2013
  return n.some((i) => {
2014
- if (!i.value.includes(ar(e, i.target, i.filterKey)))
2014
+ if (!i.value.includes(lr(e, i.target, i.filterKey)))
2015
2015
  return t = !1, !0;
2016
2016
  }), t;
2017
2017
  }) : this.bodyData;
@@ -2023,7 +2023,7 @@ const Jd = {
2023
2023
  const e = this.sortInfo.value === "up";
2024
2024
  let t = !1;
2025
2025
  if (n = [...n].sort((i, r) => {
2026
- const s = [ar(i, this.sortInfo.target, this.sortInfo.sortKey)].flat(), o = [ar(r, this.sortInfo.target, this.sortInfo.sortKey)].flat(), a = s.length > 1 ? s.sort((c, u) => e ? c - u : u - c)[0] : s[0], l = o.length > 1 ? o.sort((c, u) => e ? c - u : u - c)[0] : o[0];
2026
+ const s = [lr(i, this.sortInfo.target, this.sortInfo.sortKey)].flat(), o = [lr(r, this.sortInfo.target, this.sortInfo.sortKey)].flat(), a = s.length > 1 ? s.sort((c, u) => e ? c - u : u - c)[0] : s[0], l = o.length > 1 ? o.sort((c, u) => e ? c - u : u - c)[0] : o[0];
2027
2027
  return (s.length > 1 || o.length > 1) && (t = !0), e ? a - l : l - a;
2028
2028
  }), t) {
2029
2029
  const i = (r, s, o) => {
@@ -2037,7 +2037,7 @@ const Jd = {
2037
2037
  return a;
2038
2038
  };
2039
2039
  n = n.map((r) => {
2040
- const s = [ar(r, this.sortInfo.target, this.sortInfo.sortKey)].flat();
2040
+ const s = [lr(r, this.sortInfo.target, this.sortInfo.sortKey)].flat();
2041
2041
  if (s.length > 1) {
2042
2042
  const o = s.sort((c, u) => e ? c - u : u - c);
2043
2043
  let a = [];
@@ -2503,7 +2503,7 @@ const Ap = /* @__PURE__ */ function() {
2503
2503
  * Copyright 2010-2023 Three.js Authors
2504
2504
  * SPDX-License-Identifier: MIT
2505
2505
  */
2506
- const Aa = "156", zn = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, _i = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, Cp = 0, Pl = 1, Rp = 2, nh = 1, Lp = 2, An = 3, jn = 0, Ot = 1, Cn = 2, Wn = 0, Hi = 1, Dl = 2, Il = 3, Ul = 4, Pp = 5, Ni = 100, Dp = 101, Ip = 102, Nl = 103, Ol = 104, Up = 200, Np = 201, Op = 202, Fp = 203, ih = 204, rh = 205, Bp = 206, zp = 207, Hp = 208, kp = 209, Gp = 210, Vp = 0, Wp = 1, Xp = 2, ea = 3, $p = 4, qp = 5, jp = 6, Yp = 7, Ca = 0, Kp = 1, Zp = 2, Xn = 0, Jp = 1, Qp = 2, em = 3, tm = 4, nm = 5, sh = 300, Vi = 301, Wi = 302, ta = 303, na = 304, Gs = 306, ia = 1e3, nn = 1001, ra = 1002, Dt = 1003, Fl = 1004, so = 1005, $t = 1006, im = 1007, yr = 1008, $n = 1009, rm = 1010, sm = 1011, Ra = 1012, oh = 1013, kn = 1014, Gn = 1015, Sr = 1016, ah = 1017, lh = 1018, oi = 1020, om = 1021, rn = 1023, am = 1024, lm = 1025, ai = 1026, Xi = 1027, cm = 1028, ch = 1029, um = 1030, uh = 1031, hh = 1033, oo = 33776, ao = 33777, lo = 33778, co = 33779, Bl = 35840, zl = 35841, Hl = 35842, kl = 35843, hm = 36196, Gl = 37492, Vl = 37496, Wl = 37808, Xl = 37809, $l = 37810, ql = 37811, jl = 37812, Yl = 37813, Kl = 37814, Zl = 37815, Jl = 37816, Ql = 37817, ec = 37818, tc = 37819, nc = 37820, ic = 37821, uo = 36492, rc = 36494, sc = 36495, fm = 36283, oc = 36284, ac = 36285, lc = 36286, fh = 3e3, li = 3001, dm = 3200, pm = 3201, dh = 0, mm = 1, ci = "", nt = "srgb", gn = "srgb-linear", Vs = "display-p3", ho = 7680, gm = 519, _m = 512, vm = 513, xm = 514, ym = 515, Sm = 516, Mm = 517, Em = 518, bm = 519, sa = 35044, cc = "300 es", oa = 1035, Rn = 2e3, Ds = 2001;
2506
+ const Aa = "156", zn = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, _i = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, Cp = 0, Pl = 1, Rp = 2, nh = 1, Lp = 2, An = 3, jn = 0, Ot = 1, Cn = 2, Wn = 0, ki = 1, Dl = 2, Il = 3, Ul = 4, Pp = 5, Ni = 100, Dp = 101, Ip = 102, Nl = 103, Ol = 104, Up = 200, Np = 201, Op = 202, Fp = 203, ih = 204, rh = 205, Bp = 206, zp = 207, Hp = 208, kp = 209, Gp = 210, Vp = 0, Wp = 1, Xp = 2, ea = 3, $p = 4, qp = 5, jp = 6, Yp = 7, Ca = 0, Kp = 1, Zp = 2, Xn = 0, Jp = 1, Qp = 2, em = 3, tm = 4, nm = 5, sh = 300, Wi = 301, Xi = 302, ta = 303, na = 304, Gs = 306, ia = 1e3, nn = 1001, ra = 1002, Dt = 1003, Fl = 1004, so = 1005, $t = 1006, im = 1007, yr = 1008, $n = 1009, rm = 1010, sm = 1011, Ra = 1012, oh = 1013, kn = 1014, Gn = 1015, Sr = 1016, ah = 1017, lh = 1018, oi = 1020, om = 1021, rn = 1023, am = 1024, lm = 1025, ai = 1026, $i = 1027, cm = 1028, ch = 1029, um = 1030, uh = 1031, hh = 1033, oo = 33776, ao = 33777, lo = 33778, co = 33779, Bl = 35840, zl = 35841, Hl = 35842, kl = 35843, hm = 36196, Gl = 37492, Vl = 37496, Wl = 37808, Xl = 37809, $l = 37810, ql = 37811, jl = 37812, Yl = 37813, Kl = 37814, Zl = 37815, Jl = 37816, Ql = 37817, ec = 37818, tc = 37819, nc = 37820, ic = 37821, uo = 36492, rc = 36494, sc = 36495, fm = 36283, oc = 36284, ac = 36285, lc = 36286, fh = 3e3, li = 3001, dm = 3200, pm = 3201, dh = 0, mm = 1, ci = "", nt = "srgb", gn = "srgb-linear", Vs = "display-p3", ho = 7680, gm = 519, _m = 512, vm = 513, xm = 514, ym = 515, Sm = 516, Mm = 517, Em = 518, bm = 519, sa = 35044, cc = "300 es", oa = 1035, Rn = 2e3, Ds = 2001;
2507
2507
  class gi {
2508
2508
  addEventListener(e, t) {
2509
2509
  this._listeners === void 0 && (this._listeners = {});
@@ -2540,7 +2540,7 @@ class gi {
2540
2540
  }
2541
2541
  const wt = ["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"];
2542
2542
  let uc = 1234567;
2543
- const fr = Math.PI / 180, Mr = 180 / Math.PI;
2543
+ const dr = Math.PI / 180, Mr = 180 / Math.PI;
2544
2544
  function mn() {
2545
2545
  const n = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, i = Math.random() * 4294967295 | 0;
2546
2546
  return (wt[n & 255] + wt[n >> 8 & 255] + wt[n >> 16 & 255] + wt[n >> 24 & 255] + "-" + wt[e & 255] + wt[e >> 8 & 255] + "-" + wt[e >> 16 & 15 | 64] + wt[e >> 24 & 255] + "-" + wt[t & 63 | 128] + wt[t >> 8 & 255] + "-" + wt[t >> 16 & 255] + wt[t >> 24 & 255] + wt[i & 255] + wt[i >> 8 & 255] + wt[i >> 16 & 255] + wt[i >> 24 & 255]).toLowerCase();
@@ -2557,11 +2557,11 @@ function Tm(n, e, t, i, r) {
2557
2557
  function wm(n, e, t) {
2558
2558
  return n !== e ? (t - n) / (e - n) : 0;
2559
2559
  }
2560
- function dr(n, e, t) {
2560
+ function pr(n, e, t) {
2561
2561
  return (1 - t) * n + t * e;
2562
2562
  }
2563
2563
  function Am(n, e, t, i) {
2564
- return dr(n, e, 1 - Math.exp(-t * i));
2564
+ return pr(n, e, 1 - Math.exp(-t * i));
2565
2565
  }
2566
2566
  function Cm(n, e = 1) {
2567
2567
  return e - Math.abs(La(n, e * 2) - e);
@@ -2587,7 +2587,7 @@ function Um(n) {
2587
2587
  return e = Math.imul(e ^ e >>> 15, e | 1), e ^= e + Math.imul(e ^ e >>> 7, e | 61), ((e ^ e >>> 14) >>> 0) / 4294967296;
2588
2588
  }
2589
2589
  function Nm(n) {
2590
- return n * fr;
2590
+ return n * dr;
2591
2591
  }
2592
2592
  function Om(n) {
2593
2593
  return n * Mr;
@@ -2667,14 +2667,14 @@ function Ye(n, e) {
2667
2667
  }
2668
2668
  }
2669
2669
  const ph = {
2670
- DEG2RAD: fr,
2670
+ DEG2RAD: dr,
2671
2671
  RAD2DEG: Mr,
2672
2672
  generateUUID: mn,
2673
2673
  clamp: vt,
2674
2674
  euclideanModulo: La,
2675
2675
  mapLinear: Tm,
2676
2676
  inverseLerp: wm,
2677
- lerp: dr,
2677
+ lerp: pr,
2678
2678
  damp: Am,
2679
2679
  pingpong: Cm,
2680
2680
  smoothstep: Rm,
@@ -3087,10 +3087,10 @@ function zm() {
3087
3087
  return n.style.display = "block", n;
3088
3088
  }
3089
3089
  const hc = {};
3090
- function pr(n) {
3090
+ function mr(n) {
3091
3091
  n in hc || (hc[n] = !0, console.warn(n));
3092
3092
  }
3093
- function ki(n) {
3093
+ function Gi(n) {
3094
3094
  return n < 0.04045 ? n * 0.0773993808 : Math.pow(n * 0.9478672986 + 0.0521327014, 2.4);
3095
3095
  }
3096
3096
  function po(n) {
@@ -3183,12 +3183,12 @@ class gh {
3183
3183
  i.drawImage(e, 0, 0, e.width, e.height);
3184
3184
  const r = i.getImageData(0, 0, e.width, e.height), s = r.data;
3185
3185
  for (let o = 0; o < s.length; o++)
3186
- s[o] = ki(s[o] / 255) * 255;
3186
+ s[o] = Gi(s[o] / 255) * 255;
3187
3187
  return i.putImageData(r, 0, 0), t;
3188
3188
  } else if (e.data) {
3189
3189
  const t = e.data.slice(0);
3190
3190
  for (let i = 0; i < t.length; i++)
3191
- t instanceof Uint8Array || t instanceof Uint8ClampedArray ? t[i] = Math.floor(ki(t[i] / 255) * 255) : t[i] = ki(t[i]);
3191
+ t instanceof Uint8Array || t instanceof Uint8ClampedArray ? t[i] = Math.floor(Gi(t[i] / 255) * 255) : t[i] = Gi(t[i]);
3192
3192
  return {
3193
3193
  data: t,
3194
3194
  width: e.width,
@@ -3238,7 +3238,7 @@ function mo(n) {
3238
3238
  let qm = 0;
3239
3239
  class It extends gi {
3240
3240
  constructor(e = It.DEFAULT_IMAGE, t = It.DEFAULT_MAPPING, i = nn, r = nn, s = $t, o = yr, a = rn, l = $n, c = It.DEFAULT_ANISOTROPY, u = ci) {
3241
- super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: qm++ }), this.uuid = mn(), this.name = "", this.source = new _h(e), this.mipmaps = [], this.mapping = t, this.channel = 0, this.wrapS = i, this.wrapT = r, this.magFilter = s, this.minFilter = o, this.anisotropy = c, this.format = a, this.internalFormat = null, this.type = l, this.offset = new ue(0, 0), this.repeat = new ue(1, 1), this.center = new ue(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new Be(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, typeof u == "string" ? this.colorSpace = u : (pr("THREE.Texture: Property .encoding has been replaced by .colorSpace."), this.colorSpace = u === li ? nt : ci), this.userData = {}, this.version = 0, this.onUpdate = null, this.isRenderTargetTexture = !1, this.needsPMREMUpdate = !1;
3241
+ super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: qm++ }), this.uuid = mn(), this.name = "", this.source = new _h(e), this.mipmaps = [], this.mapping = t, this.channel = 0, this.wrapS = i, this.wrapT = r, this.magFilter = s, this.minFilter = o, this.anisotropy = c, this.format = a, this.internalFormat = null, this.type = l, this.offset = new ue(0, 0), this.repeat = new ue(1, 1), this.center = new ue(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new Be(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, typeof u == "string" ? this.colorSpace = u : (mr("THREE.Texture: Property .encoding has been replaced by .colorSpace."), this.colorSpace = u === li ? nt : ci), this.userData = {}, this.version = 0, this.onUpdate = null, this.isRenderTargetTexture = !1, this.needsPMREMUpdate = !1;
3242
3242
  }
3243
3243
  get image() {
3244
3244
  return this.source.data;
@@ -3325,10 +3325,10 @@ class It extends gi {
3325
3325
  e === !0 && (this.version++, this.source.needsUpdate = !0);
3326
3326
  }
3327
3327
  get encoding() {
3328
- return pr("THREE.Texture: Property .encoding has been replaced by .colorSpace."), this.colorSpace === nt ? li : fh;
3328
+ return mr("THREE.Texture: Property .encoding has been replaced by .colorSpace."), this.colorSpace === nt ? li : fh;
3329
3329
  }
3330
3330
  set encoding(e) {
3331
- pr("THREE.Texture: Property .encoding has been replaced by .colorSpace."), this.colorSpace = e === li ? nt : ci;
3331
+ mr("THREE.Texture: Property .encoding has been replaced by .colorSpace."), this.colorSpace = e === li ? nt : ci;
3332
3332
  }
3333
3333
  }
3334
3334
  It.DEFAULT_IMAGE = null;
@@ -3453,8 +3453,8 @@ class Ke {
3453
3453
  if (Math.abs(u + f) < 0.1 && Math.abs(h + _) < 0.1 && Math.abs(g + m) < 0.1 && Math.abs(c + d + p - 3) < 0.1)
3454
3454
  return this.set(1, 0, 0, 0), this;
3455
3455
  t = Math.PI;
3456
- const v = (c + 1) / 2, M = (d + 1) / 2, b = (p + 1) / 2, R = (u + f) / 4, w = (h + _) / 4, N = (g + m) / 4;
3457
- return v > M && v > b ? v < 0.01 ? (i = 0, r = 0.707106781, s = 0.707106781) : (i = Math.sqrt(v), r = R / i, s = w / i) : M > b ? M < 0.01 ? (i = 0.707106781, r = 0, s = 0.707106781) : (r = Math.sqrt(M), i = R / r, s = N / r) : b < 0.01 ? (i = 0.707106781, r = 0.707106781, s = 0) : (s = Math.sqrt(b), i = w / s, r = N / s), this.set(i, r, s, t), this;
3456
+ const v = (c + 1) / 2, M = (d + 1) / 2, b = (p + 1) / 2, R = (u + f) / 4, w = (h + _) / 4, U = (g + m) / 4;
3457
+ return v > M && v > b ? v < 0.01 ? (i = 0, r = 0.707106781, s = 0.707106781) : (i = Math.sqrt(v), r = R / i, s = w / i) : M > b ? M < 0.01 ? (i = 0.707106781, r = 0, s = 0.707106781) : (r = Math.sqrt(M), i = R / r, s = U / r) : b < 0.01 ? (i = 0.707106781, r = 0.707106781, s = 0) : (s = Math.sqrt(b), i = w / s, r = U / s), this.set(i, r, s, t), this;
3458
3458
  }
3459
3459
  let y = Math.sqrt((m - g) * (m - g) + (h - _) * (h - _) + (f - u) * (f - u));
3460
3460
  return Math.abs(y) < 1e-3 && (y = 1), this.x = (m - g) / y, this.y = (h - _) / y, this.z = (f - u) / y, this.w = Math.acos((c + d + p - 1) / 2), this;
@@ -3537,7 +3537,7 @@ class jm extends gi {
3537
3537
  constructor(e = 1, t = 1, i = {}) {
3538
3538
  super(), this.isRenderTarget = !0, this.width = e, this.height = t, this.depth = 1, this.scissor = new Ke(0, 0, e, t), this.scissorTest = !1, this.viewport = new Ke(0, 0, e, t);
3539
3539
  const r = { width: e, height: t, depth: 1 };
3540
- i.encoding !== void 0 && (pr("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."), i.colorSpace = i.encoding === li ? nt : ci), this.texture = new It(r, i.mapping, i.wrapS, i.wrapT, i.magFilter, i.minFilter, i.format, i.type, i.anisotropy, i.colorSpace), this.texture.isRenderTargetTexture = !0, this.texture.flipY = !1, this.texture.generateMipmaps = i.generateMipmaps !== void 0 ? i.generateMipmaps : !1, this.texture.internalFormat = i.internalFormat !== void 0 ? i.internalFormat : null, this.texture.minFilter = i.minFilter !== void 0 ? i.minFilter : $t, this.depthBuffer = i.depthBuffer !== void 0 ? i.depthBuffer : !0, this.stencilBuffer = i.stencilBuffer !== void 0 ? i.stencilBuffer : !1, this.depthTexture = i.depthTexture !== void 0 ? i.depthTexture : null, this.samples = i.samples !== void 0 ? i.samples : 0;
3540
+ i.encoding !== void 0 && (mr("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."), i.colorSpace = i.encoding === li ? nt : ci), this.texture = new It(r, i.mapping, i.wrapS, i.wrapT, i.magFilter, i.minFilter, i.format, i.type, i.anisotropy, i.colorSpace), this.texture.isRenderTargetTexture = !0, this.texture.flipY = !1, this.texture.generateMipmaps = i.generateMipmaps !== void 0 ? i.generateMipmaps : !1, this.texture.internalFormat = i.internalFormat !== void 0 ? i.internalFormat : null, this.texture.minFilter = i.minFilter !== void 0 ? i.minFilter : $t, this.depthBuffer = i.depthBuffer !== void 0 ? i.depthBuffer : !0, this.stencilBuffer = i.stencilBuffer !== void 0 ? i.stencilBuffer : !1, this.depthTexture = i.depthTexture !== void 0 ? i.depthTexture : null, this.samples = i.samples !== void 0 ? i.samples : 0;
3541
3541
  }
3542
3542
  setSize(e, t, i = 1) {
3543
3543
  (this.width !== e || this.height !== t || this.depth !== i) && (this.width = e, this.height = t, this.depth = i, this.texture.image.width = e, this.texture.image.height = t, this.texture.image.depth = i, this.dispose()), this.viewport.set(0, 0, e, t), this.scissor.set(0, 0, e, t);
@@ -4155,7 +4155,7 @@ class Kn {
4155
4155
  intersectsTriangle(e) {
4156
4156
  if (this.isEmpty())
4157
4157
  return !1;
4158
- this.getCenter(tr), kr.subVectors(this.max, tr), yi.subVectors(e.a, tr), Si.subVectors(e.b, tr), Mi.subVectors(e.c, tr), In.subVectors(Si, yi), Un.subVectors(Mi, Si), Qn.subVectors(yi, Mi);
4158
+ this.getCenter(nr), kr.subVectors(this.max, nr), yi.subVectors(e.a, nr), Si.subVectors(e.b, nr), Mi.subVectors(e.c, nr), In.subVectors(Si, yi), Un.subVectors(Mi, Si), Qn.subVectors(yi, Mi);
4159
4159
  let t = [
4160
4160
  0,
4161
4161
  -In.z,
@@ -4221,7 +4221,7 @@ const Sn = [
4221
4221
  /* @__PURE__ */ new D(),
4222
4222
  /* @__PURE__ */ new D(),
4223
4223
  /* @__PURE__ */ new D()
4224
- ], Mn = /* @__PURE__ */ new D(), xi = /* @__PURE__ */ new Kn(), yi = /* @__PURE__ */ new D(), Si = /* @__PURE__ */ new D(), Mi = /* @__PURE__ */ new D(), In = /* @__PURE__ */ new D(), Un = /* @__PURE__ */ new D(), Qn = /* @__PURE__ */ new D(), tr = /* @__PURE__ */ new D(), kr = /* @__PURE__ */ new D(), Gr = /* @__PURE__ */ new D(), ei = /* @__PURE__ */ new D();
4224
+ ], Mn = /* @__PURE__ */ new D(), xi = /* @__PURE__ */ new Kn(), yi = /* @__PURE__ */ new D(), Si = /* @__PURE__ */ new D(), Mi = /* @__PURE__ */ new D(), In = /* @__PURE__ */ new D(), Un = /* @__PURE__ */ new D(), Qn = /* @__PURE__ */ new D(), nr = /* @__PURE__ */ new D(), kr = /* @__PURE__ */ new D(), Gr = /* @__PURE__ */ new D(), ei = /* @__PURE__ */ new D();
4225
4225
  function _o(n, e, t, i, r) {
4226
4226
  for (let s = 0, o = n.length - 3; s <= o; s += 3) {
4227
4227
  ei.fromArray(n, s);
@@ -4231,7 +4231,7 @@ function _o(n, e, t, i, r) {
4231
4231
  }
4232
4232
  return !0;
4233
4233
  }
4234
- const Km = /* @__PURE__ */ new Kn(), nr = /* @__PURE__ */ new D(), vo = /* @__PURE__ */ new D();
4234
+ const Km = /* @__PURE__ */ new Kn(), ir = /* @__PURE__ */ new D(), vo = /* @__PURE__ */ new D();
4235
4235
  class Dr {
4236
4236
  constructor(e = new D(), t = -1) {
4237
4237
  this.center = e, this.radius = t;
@@ -4288,16 +4288,16 @@ class Dr {
4288
4288
  expandByPoint(e) {
4289
4289
  if (this.isEmpty())
4290
4290
  return this.center.copy(e), this.radius = 0, this;
4291
- nr.subVectors(e, this.center);
4292
- const t = nr.lengthSq();
4291
+ ir.subVectors(e, this.center);
4292
+ const t = ir.lengthSq();
4293
4293
  if (t > this.radius * this.radius) {
4294
4294
  const i = Math.sqrt(t), r = (i - this.radius) * 0.5;
4295
- this.center.addScaledVector(nr, r / i), this.radius += r;
4295
+ this.center.addScaledVector(ir, r / i), this.radius += r;
4296
4296
  }
4297
4297
  return this;
4298
4298
  }
4299
4299
  union(e) {
4300
- return e.isEmpty() ? this : this.isEmpty() ? (this.copy(e), this) : (this.center.equals(e.center) === !0 ? this.radius = Math.max(this.radius, e.radius) : (vo.subVectors(e.center, this.center).setLength(e.radius), this.expandByPoint(nr.copy(e.center).add(vo)), this.expandByPoint(nr.copy(e.center).sub(vo))), this);
4300
+ return e.isEmpty() ? this : this.isEmpty() ? (this.copy(e), this) : (this.center.equals(e.center) === !0 ? this.radius = Math.max(this.radius, e.radius) : (vo.subVectors(e.center, this.center).setLength(e.radius), this.expandByPoint(ir.copy(e.center).add(vo)), this.expandByPoint(ir.copy(e.center).sub(vo))), this);
4301
4301
  }
4302
4302
  equals(e) {
4303
4303
  return e.center.equals(this.center) && e.radius === this.radius;
@@ -4564,8 +4564,8 @@ class it {
4564
4564
  return this.multiplyMatrices(e, this);
4565
4565
  }
4566
4566
  multiplyMatrices(e, t) {
4567
- const i = e.elements, r = t.elements, s = this.elements, o = i[0], a = i[4], l = i[8], c = i[12], u = i[1], h = i[5], f = i[9], d = i[13], g = i[2], _ = i[6], m = i[10], p = i[14], y = i[3], v = i[7], M = i[11], b = i[15], R = r[0], w = r[4], N = r[8], x = r[12], E = r[1], F = r[5], ee = r[9], O = r[13], U = r[2], C = r[6], z = r[10], H = r[14], V = r[3], K = r[7], Q = r[11], B = r[15];
4568
- return s[0] = o * R + a * E + l * U + c * V, s[4] = o * w + a * F + l * C + c * K, s[8] = o * N + a * ee + l * z + c * Q, s[12] = o * x + a * O + l * H + c * B, s[1] = u * R + h * E + f * U + d * V, s[5] = u * w + h * F + f * C + d * K, s[9] = u * N + h * ee + f * z + d * Q, s[13] = u * x + h * O + f * H + d * B, s[2] = g * R + _ * E + m * U + p * V, s[6] = g * w + _ * F + m * C + p * K, s[10] = g * N + _ * ee + m * z + p * Q, s[14] = g * x + _ * O + m * H + p * B, s[3] = y * R + v * E + M * U + b * V, s[7] = y * w + v * F + M * C + b * K, s[11] = y * N + v * ee + M * z + b * Q, s[15] = y * x + v * O + M * H + b * B, this;
4567
+ const i = e.elements, r = t.elements, s = this.elements, o = i[0], a = i[4], l = i[8], c = i[12], u = i[1], h = i[5], f = i[9], d = i[13], g = i[2], _ = i[6], m = i[10], p = i[14], y = i[3], v = i[7], M = i[11], b = i[15], R = r[0], w = r[4], U = r[8], x = r[12], E = r[1], F = r[5], ee = r[9], O = r[13], N = r[2], C = r[6], z = r[10], H = r[14], V = r[3], K = r[7], Q = r[11], B = r[15];
4568
+ return s[0] = o * R + a * E + l * N + c * V, s[4] = o * w + a * F + l * C + c * K, s[8] = o * U + a * ee + l * z + c * Q, s[12] = o * x + a * O + l * H + c * B, s[1] = u * R + h * E + f * N + d * V, s[5] = u * w + h * F + f * C + d * K, s[9] = u * U + h * ee + f * z + d * Q, s[13] = u * x + h * O + f * H + d * B, s[2] = g * R + _ * E + m * N + p * V, s[6] = g * w + _ * F + m * C + p * K, s[10] = g * U + _ * ee + m * z + p * Q, s[14] = g * x + _ * O + m * H + p * B, s[3] = y * R + v * E + M * N + b * V, s[7] = y * w + v * F + M * C + b * K, s[11] = y * U + v * ee + M * z + b * Q, s[15] = y * x + v * O + M * H + b * B, this;
4569
4569
  }
4570
4570
  multiplyScalar(e) {
4571
4571
  const t = this.elements;
@@ -4933,7 +4933,7 @@ class Da {
4933
4933
  }
4934
4934
  }
4935
4935
  let Qm = 0;
4936
- const mc = /* @__PURE__ */ new D(), bi = /* @__PURE__ */ new pi(), bn = /* @__PURE__ */ new it(), $r = /* @__PURE__ */ new D(), ir = /* @__PURE__ */ new D(), eg = /* @__PURE__ */ new D(), tg = /* @__PURE__ */ new pi(), gc = /* @__PURE__ */ new D(1, 0, 0), _c = /* @__PURE__ */ new D(0, 1, 0), vc = /* @__PURE__ */ new D(0, 0, 1), ng = { type: "added" }, ig = { type: "removed" };
4936
+ const mc = /* @__PURE__ */ new D(), bi = /* @__PURE__ */ new pi(), bn = /* @__PURE__ */ new it(), $r = /* @__PURE__ */ new D(), rr = /* @__PURE__ */ new D(), eg = /* @__PURE__ */ new D(), tg = /* @__PURE__ */ new pi(), gc = /* @__PURE__ */ new D(1, 0, 0), _c = /* @__PURE__ */ new D(0, 1, 0), vc = /* @__PURE__ */ new D(0, 0, 1), ng = { type: "added" }, ig = { type: "removed" };
4937
4937
  class at extends gi {
4938
4938
  constructor() {
4939
4939
  super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: Qm++ }), this.uuid = mn(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = at.DEFAULT_UP.clone();
@@ -5031,7 +5031,7 @@ class at extends gi {
5031
5031
  lookAt(e, t, i) {
5032
5032
  e.isVector3 ? $r.copy(e) : $r.set(e, t, i);
5033
5033
  const r = this.parent;
5034
- this.updateWorldMatrix(!0, !1), ir.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? bn.lookAt(ir, $r, this.up) : bn.lookAt($r, ir, this.up), this.quaternion.setFromRotationMatrix(bn), r && (bn.extractRotation(r.matrixWorld), bi.setFromRotationMatrix(bn), this.quaternion.premultiply(bi.invert()));
5034
+ this.updateWorldMatrix(!0, !1), rr.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? bn.lookAt(rr, $r, this.up) : bn.lookAt($r, rr, this.up), this.quaternion.setFromRotationMatrix(bn), r && (bn.extractRotation(r.matrixWorld), bi.setFromRotationMatrix(bn), this.quaternion.premultiply(bi.invert()));
5035
5035
  }
5036
5036
  add(e) {
5037
5037
  if (arguments.length > 1) {
@@ -5088,10 +5088,10 @@ class at extends gi {
5088
5088
  return this.updateWorldMatrix(!0, !1), e.setFromMatrixPosition(this.matrixWorld);
5089
5089
  }
5090
5090
  getWorldQuaternion(e) {
5091
- return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(ir, e, eg), e;
5091
+ return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(rr, e, eg), e;
5092
5092
  }
5093
5093
  getWorldScale(e) {
5094
- return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(ir, tg, e), e;
5094
+ return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(rr, tg, e), e;
5095
5095
  }
5096
5096
  getWorldDirection(e) {
5097
5097
  this.updateWorldMatrix(!0, !1);
@@ -5335,9 +5335,9 @@ class tn {
5335
5335
  }
5336
5336
  }
5337
5337
  let rg = 0;
5338
- class Zi extends gi {
5338
+ class Ji extends gi {
5339
5339
  constructor() {
5340
- super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: rg++ }), this.uuid = mn(), this.name = "", this.type = "Material", this.blending = Hi, this.side = jn, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = ih, this.blendDst = rh, this.blendEquation = Ni, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.depthFunc = ea, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = gm, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = ho, this.stencilZFail = ho, this.stencilZPass = ho, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.forceSinglePass = !1, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
5340
+ super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: rg++ }), this.uuid = mn(), this.name = "", this.type = "Material", this.blending = ki, this.side = jn, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = ih, this.blendDst = rh, this.blendEquation = Ni, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.depthFunc = ea, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = gm, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = ho, this.stencilZFail = ho, this.stencilZPass = ho, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.forceSinglePass = !1, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
5341
5341
  }
5342
5342
  get alphaTest() {
5343
5343
  return this._alphaTest;
@@ -5383,7 +5383,7 @@ class Zi extends gi {
5383
5383
  generator: "Material.toJSON"
5384
5384
  }
5385
5385
  };
5386
- i.uuid = this.uuid, i.type = this.type, this.name !== "" && (i.name = this.name), this.color && this.color.isColor && (i.color = this.color.getHex()), this.roughness !== void 0 && (i.roughness = this.roughness), this.metalness !== void 0 && (i.metalness = this.metalness), this.sheen !== void 0 && (i.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (i.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (i.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (i.emissive = this.emissive.getHex()), this.emissiveIntensity && this.emissiveIntensity !== 1 && (i.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (i.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (i.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (i.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (i.shininess = this.shininess), this.clearcoat !== void 0 && (i.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (i.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (i.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (i.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (i.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, i.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.iridescence !== void 0 && (i.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (i.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (i.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (i.iridescenceMap = this.iridescenceMap.toJSON(e).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (i.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(e).uuid), this.anisotropy !== void 0 && (i.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (i.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (i.anisotropyMap = this.anisotropyMap.toJSON(e).uuid), this.map && this.map.isTexture && (i.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (i.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (i.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (i.lightMap = this.lightMap.toJSON(e).uuid, i.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (i.aoMap = this.aoMap.toJSON(e).uuid, i.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (i.bumpMap = this.bumpMap.toJSON(e).uuid, i.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (i.normalMap = this.normalMap.toJSON(e).uuid, i.normalMapType = this.normalMapType, i.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (i.displacementMap = this.displacementMap.toJSON(e).uuid, i.displacementScale = this.displacementScale, i.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (i.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (i.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (i.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (i.specularMap = this.specularMap.toJSON(e).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (i.specularIntensityMap = this.specularIntensityMap.toJSON(e).uuid), this.specularColorMap && this.specularColorMap.isTexture && (i.specularColorMap = this.specularColorMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (i.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (i.combine = this.combine)), this.envMapIntensity !== void 0 && (i.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (i.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (i.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (i.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (i.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (i.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (i.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (i.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (i.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (i.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (i.size = this.size), this.shadowSide !== null && (i.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (i.sizeAttenuation = this.sizeAttenuation), this.blending !== Hi && (i.blending = this.blending), this.side !== jn && (i.side = this.side), this.vertexColors && (i.vertexColors = !0), this.opacity < 1 && (i.opacity = this.opacity), this.transparent === !0 && (i.transparent = this.transparent), i.depthFunc = this.depthFunc, i.depthTest = this.depthTest, i.depthWrite = this.depthWrite, i.colorWrite = this.colorWrite, i.stencilWrite = this.stencilWrite, i.stencilWriteMask = this.stencilWriteMask, i.stencilFunc = this.stencilFunc, i.stencilRef = this.stencilRef, i.stencilFuncMask = this.stencilFuncMask, i.stencilFail = this.stencilFail, i.stencilZFail = this.stencilZFail, i.stencilZPass = this.stencilZPass, this.rotation !== void 0 && this.rotation !== 0 && (i.rotation = this.rotation), this.polygonOffset === !0 && (i.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (i.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (i.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth !== void 0 && this.linewidth !== 1 && (i.linewidth = this.linewidth), this.dashSize !== void 0 && (i.dashSize = this.dashSize), this.gapSize !== void 0 && (i.gapSize = this.gapSize), this.scale !== void 0 && (i.scale = this.scale), this.dithering === !0 && (i.dithering = !0), this.alphaTest > 0 && (i.alphaTest = this.alphaTest), this.alphaHash === !0 && (i.alphaHash = this.alphaHash), this.alphaToCoverage === !0 && (i.alphaToCoverage = this.alphaToCoverage), this.premultipliedAlpha === !0 && (i.premultipliedAlpha = this.premultipliedAlpha), this.forceSinglePass === !0 && (i.forceSinglePass = this.forceSinglePass), this.wireframe === !0 && (i.wireframe = this.wireframe), this.wireframeLinewidth > 1 && (i.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== "round" && (i.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== "round" && (i.wireframeLinejoin = this.wireframeLinejoin), this.flatShading === !0 && (i.flatShading = this.flatShading), this.visible === !1 && (i.visible = !1), this.toneMapped === !1 && (i.toneMapped = !1), this.fog === !1 && (i.fog = !1), Object.keys(this.userData).length > 0 && (i.userData = this.userData);
5386
+ i.uuid = this.uuid, i.type = this.type, this.name !== "" && (i.name = this.name), this.color && this.color.isColor && (i.color = this.color.getHex()), this.roughness !== void 0 && (i.roughness = this.roughness), this.metalness !== void 0 && (i.metalness = this.metalness), this.sheen !== void 0 && (i.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (i.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (i.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (i.emissive = this.emissive.getHex()), this.emissiveIntensity && this.emissiveIntensity !== 1 && (i.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (i.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (i.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (i.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (i.shininess = this.shininess), this.clearcoat !== void 0 && (i.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (i.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (i.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (i.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (i.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, i.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.iridescence !== void 0 && (i.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (i.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (i.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (i.iridescenceMap = this.iridescenceMap.toJSON(e).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (i.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(e).uuid), this.anisotropy !== void 0 && (i.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (i.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (i.anisotropyMap = this.anisotropyMap.toJSON(e).uuid), this.map && this.map.isTexture && (i.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (i.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (i.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (i.lightMap = this.lightMap.toJSON(e).uuid, i.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (i.aoMap = this.aoMap.toJSON(e).uuid, i.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (i.bumpMap = this.bumpMap.toJSON(e).uuid, i.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (i.normalMap = this.normalMap.toJSON(e).uuid, i.normalMapType = this.normalMapType, i.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (i.displacementMap = this.displacementMap.toJSON(e).uuid, i.displacementScale = this.displacementScale, i.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (i.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (i.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (i.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (i.specularMap = this.specularMap.toJSON(e).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (i.specularIntensityMap = this.specularIntensityMap.toJSON(e).uuid), this.specularColorMap && this.specularColorMap.isTexture && (i.specularColorMap = this.specularColorMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (i.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (i.combine = this.combine)), this.envMapIntensity !== void 0 && (i.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (i.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (i.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (i.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (i.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (i.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (i.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (i.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (i.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (i.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (i.size = this.size), this.shadowSide !== null && (i.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (i.sizeAttenuation = this.sizeAttenuation), this.blending !== ki && (i.blending = this.blending), this.side !== jn && (i.side = this.side), this.vertexColors && (i.vertexColors = !0), this.opacity < 1 && (i.opacity = this.opacity), this.transparent === !0 && (i.transparent = this.transparent), i.depthFunc = this.depthFunc, i.depthTest = this.depthTest, i.depthWrite = this.depthWrite, i.colorWrite = this.colorWrite, i.stencilWrite = this.stencilWrite, i.stencilWriteMask = this.stencilWriteMask, i.stencilFunc = this.stencilFunc, i.stencilRef = this.stencilRef, i.stencilFuncMask = this.stencilFuncMask, i.stencilFail = this.stencilFail, i.stencilZFail = this.stencilZFail, i.stencilZPass = this.stencilZPass, this.rotation !== void 0 && this.rotation !== 0 && (i.rotation = this.rotation), this.polygonOffset === !0 && (i.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (i.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (i.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth !== void 0 && this.linewidth !== 1 && (i.linewidth = this.linewidth), this.dashSize !== void 0 && (i.dashSize = this.dashSize), this.gapSize !== void 0 && (i.gapSize = this.gapSize), this.scale !== void 0 && (i.scale = this.scale), this.dithering === !0 && (i.dithering = !0), this.alphaTest > 0 && (i.alphaTest = this.alphaTest), this.alphaHash === !0 && (i.alphaHash = this.alphaHash), this.alphaToCoverage === !0 && (i.alphaToCoverage = this.alphaToCoverage), this.premultipliedAlpha === !0 && (i.premultipliedAlpha = this.premultipliedAlpha), this.forceSinglePass === !0 && (i.forceSinglePass = this.forceSinglePass), this.wireframe === !0 && (i.wireframe = this.wireframe), this.wireframeLinewidth > 1 && (i.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== "round" && (i.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== "round" && (i.wireframeLinejoin = this.wireframeLinejoin), this.flatShading === !0 && (i.flatShading = this.flatShading), this.visible === !1 && (i.visible = !1), this.toneMapped === !1 && (i.toneMapped = !1), this.fog === !1 && (i.fog = !1), Object.keys(this.userData).length > 0 && (i.userData = this.userData);
5387
5387
  function r(s) {
5388
5388
  const o = [];
5389
5389
  for (const a in s) {
@@ -5669,7 +5669,7 @@ class je {
5669
5669
  return this.r = e.r, this.g = e.g, this.b = e.b, this;
5670
5670
  }
5671
5671
  copySRGBToLinear(e) {
5672
- return this.r = ki(e.r), this.g = ki(e.g), this.b = ki(e.b), this;
5672
+ return this.r = Gi(e.r), this.g = Gi(e.g), this.b = Gi(e.b), this;
5673
5673
  }
5674
5674
  copyLinearToSRGB(e) {
5675
5675
  return this.r = po(e.r), this.g = po(e.g), this.b = po(e.b), this;
@@ -5747,7 +5747,7 @@ class je {
5747
5747
  }
5748
5748
  lerpHSL(e, t) {
5749
5749
  this.getHSL(en), e.getHSL(jr);
5750
- const i = dr(en.h, jr.h, t), r = dr(en.s, jr.s, t), s = dr(en.l, jr.l, t);
5750
+ const i = pr(en.h, jr.h, t), r = pr(en.s, jr.s, t), s = pr(en.l, jr.l, t);
5751
5751
  return this.setHSL(i, r, s), this;
5752
5752
  }
5753
5753
  setFromVector3(e) {
@@ -5778,7 +5778,7 @@ class je {
5778
5778
  }
5779
5779
  const At = /* @__PURE__ */ new je();
5780
5780
  je.NAMES = xh;
5781
- class Ia extends Zi {
5781
+ class Ia extends Ji {
5782
5782
  constructor(e) {
5783
5783
  super(), this.isMeshBasicMaterial = !0, this.type = "MeshBasicMaterial", this.color = new je(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.combine = Ca, 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);
5784
5784
  }
@@ -5916,7 +5916,7 @@ class jt extends an {
5916
5916
  }
5917
5917
  }
5918
5918
  let sg = 0;
5919
- const Xt = /* @__PURE__ */ new it(), Ao = /* @__PURE__ */ new at(), Ai = /* @__PURE__ */ new D(), kt = /* @__PURE__ */ new Kn(), rr = /* @__PURE__ */ new Kn(), St = /* @__PURE__ */ new D();
5919
+ const Xt = /* @__PURE__ */ new it(), Ao = /* @__PURE__ */ new at(), Ai = /* @__PURE__ */ new D(), kt = /* @__PURE__ */ new Kn(), sr = /* @__PURE__ */ new Kn(), St = /* @__PURE__ */ new D();
5920
5920
  class _n extends gi {
5921
5921
  constructor() {
5922
5922
  super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: sg++ }), this.uuid = mn(), this.name = "", this.type = "BufferGeometry", this.index = null, this.attributes = {}, this.morphAttributes = {}, this.morphTargetsRelative = !1, this.groups = [], this.boundingBox = null, this.boundingSphere = null, this.drawRange = { start: 0, count: 1 / 0 }, this.userData = {};
@@ -6027,7 +6027,7 @@ class _n extends gi {
6027
6027
  if (kt.setFromBufferAttribute(e), t)
6028
6028
  for (let s = 0, o = t.length; s < o; s++) {
6029
6029
  const a = t[s];
6030
- rr.setFromBufferAttribute(a), this.morphTargetsRelative ? (St.addVectors(kt.min, rr.min), kt.expandByPoint(St), St.addVectors(kt.max, rr.max), kt.expandByPoint(St)) : (kt.expandByPoint(rr.min), kt.expandByPoint(rr.max));
6030
+ sr.setFromBufferAttribute(a), this.morphTargetsRelative ? (St.addVectors(kt.min, sr.min), kt.expandByPoint(St), St.addVectors(kt.max, sr.max), kt.expandByPoint(St)) : (kt.expandByPoint(sr.min), kt.expandByPoint(sr.max));
6031
6031
  }
6032
6032
  kt.getCenter(i);
6033
6033
  let r = 0;
@@ -6065,25 +6065,25 @@ class _n extends gi {
6065
6065
  count: i.length
6066
6066
  }]);
6067
6067
  for (let E = 0, F = M.length; E < F; ++E) {
6068
- const ee = M[E], O = ee.start, U = ee.count;
6069
- for (let C = O, z = O + U; C < z; C += 3)
6068
+ const ee = M[E], O = ee.start, N = ee.count;
6069
+ for (let C = O, z = O + N; C < z; C += 3)
6070
6070
  v(
6071
6071
  i[C + 0],
6072
6072
  i[C + 1],
6073
6073
  i[C + 2]
6074
6074
  );
6075
6075
  }
6076
- const b = new D(), R = new D(), w = new D(), N = new D();
6076
+ const b = new D(), R = new D(), w = new D(), U = new D();
6077
6077
  function x(E) {
6078
- w.fromArray(s, E * 3), N.copy(w);
6078
+ w.fromArray(s, E * 3), U.copy(w);
6079
6079
  const F = c[E];
6080
- b.copy(F), b.sub(w.multiplyScalar(w.dot(F))).normalize(), R.crossVectors(N, F);
6080
+ b.copy(F), b.sub(w.multiplyScalar(w.dot(F))).normalize(), R.crossVectors(U, F);
6081
6081
  const O = R.dot(u[E]) < 0 ? -1 : 1;
6082
6082
  l[E * 4] = b.x, l[E * 4 + 1] = b.y, l[E * 4 + 2] = b.z, l[E * 4 + 3] = O;
6083
6083
  }
6084
6084
  for (let E = 0, F = M.length; E < F; ++E) {
6085
- const ee = M[E], O = ee.start, U = ee.count;
6086
- for (let C = O, z = O + U; C < z; C += 3)
6085
+ const ee = M[E], O = ee.start, N = ee.count;
6086
+ for (let C = O, z = O + N; C < z; C += 3)
6087
6087
  x(i[C + 0]), x(i[C + 1]), x(i[C + 2]);
6088
6088
  }
6089
6089
  }
@@ -6275,8 +6275,8 @@ class pn extends at {
6275
6275
  for (let g = 0, _ = f.length; g < _; g++) {
6276
6276
  const m = f[g], p = o[m.materialIndex], y = Math.max(m.start, d.start), v = Math.min(a.count, Math.min(m.start + m.count, d.start + d.count));
6277
6277
  for (let M = y, b = v; M < b; M += 3) {
6278
- const R = a.getX(M), w = a.getX(M + 1), N = a.getX(M + 2);
6279
- r = is(this, p, e, i, c, u, h, R, w, N), r && (r.faceIndex = Math.floor(M / 3), r.face.materialIndex = m.materialIndex, t.push(r));
6278
+ const R = a.getX(M), w = a.getX(M + 1), U = a.getX(M + 2);
6279
+ r = is(this, p, e, i, c, u, h, R, w, U), r && (r.faceIndex = Math.floor(M / 3), r.face.materialIndex = m.materialIndex, t.push(r));
6280
6280
  }
6281
6281
  }
6282
6282
  else {
@@ -6291,8 +6291,8 @@ class pn extends at {
6291
6291
  for (let g = 0, _ = f.length; g < _; g++) {
6292
6292
  const m = f[g], p = o[m.materialIndex], y = Math.max(m.start, d.start), v = Math.min(l.count, Math.min(m.start + m.count, d.start + d.count));
6293
6293
  for (let M = y, b = v; M < b; M += 3) {
6294
- const R = M, w = M + 1, N = M + 2;
6295
- r = is(this, p, e, i, c, u, h, R, w, N), r && (r.faceIndex = Math.floor(M / 3), r.face.materialIndex = m.materialIndex, t.push(r));
6294
+ const R = M, w = M + 1, U = M + 2;
6295
+ r = is(this, p, e, i, c, u, h, R, w, U), r && (r.faceIndex = Math.floor(M / 3), r.face.materialIndex = m.materialIndex, t.push(r));
6296
6296
  }
6297
6297
  }
6298
6298
  else {
@@ -6347,18 +6347,18 @@ class Ir extends _n {
6347
6347
  const l = [], c = [], u = [], h = [];
6348
6348
  let f = 0, d = 0;
6349
6349
  g("z", "y", "x", -1, -1, i, t, e, o, s, 0), g("z", "y", "x", 1, -1, i, t, -e, o, s, 1), g("x", "z", "y", 1, 1, e, i, t, r, o, 2), g("x", "z", "y", 1, -1, e, i, -t, r, o, 3), g("x", "y", "z", 1, -1, e, t, i, r, s, 4), g("x", "y", "z", -1, -1, e, t, -i, r, s, 5), this.setIndex(l), this.setAttribute("position", new jt(c, 3)), this.setAttribute("normal", new jt(u, 3)), this.setAttribute("uv", new jt(h, 2));
6350
- function g(_, m, p, y, v, M, b, R, w, N, x) {
6351
- const E = M / w, F = b / N, ee = M / 2, O = b / 2, U = R / 2, C = w + 1, z = N + 1;
6350
+ function g(_, m, p, y, v, M, b, R, w, U, x) {
6351
+ const E = M / w, F = b / U, ee = M / 2, O = b / 2, N = R / 2, C = w + 1, z = U + 1;
6352
6352
  let H = 0, V = 0;
6353
6353
  const K = new D();
6354
6354
  for (let Q = 0; Q < z; Q++) {
6355
6355
  const B = Q * F - O;
6356
6356
  for (let q = 0; q < C; q++) {
6357
6357
  const oe = q * E - ee;
6358
- K[_] = oe * y, K[m] = B * v, K[p] = U, c.push(K.x, K.y, K.z), K[_] = 0, K[m] = 0, K[p] = R > 0 ? 1 : -1, u.push(K.x, K.y, K.z), h.push(q / w), h.push(1 - Q / N), H += 1;
6358
+ K[_] = oe * y, K[m] = B * v, K[p] = N, c.push(K.x, K.y, K.z), K[_] = 0, K[m] = 0, K[p] = R > 0 ? 1 : -1, u.push(K.x, K.y, K.z), h.push(q / w), h.push(1 - Q / U), H += 1;
6359
6359
  }
6360
6360
  }
6361
- for (let Q = 0; Q < N; Q++)
6361
+ for (let Q = 0; Q < U; Q++)
6362
6362
  for (let B = 0; B < w; B++) {
6363
6363
  const q = f + B + C * Q, oe = f + B + C * (Q + 1), me = f + (B + 1) + C * (Q + 1), ge = f + (B + 1) + C * Q;
6364
6364
  l.push(q, oe, ge), l.push(oe, me, ge), V += 6;
@@ -6373,7 +6373,7 @@ class Ir extends _n {
6373
6373
  return new Ir(e.width, e.height, e.depth, e.widthSegments, e.heightSegments, e.depthSegments);
6374
6374
  }
6375
6375
  }
6376
- function $i(n) {
6376
+ function qi(n) {
6377
6377
  const e = {};
6378
6378
  for (const t in n) {
6379
6379
  e[t] = {};
@@ -6387,7 +6387,7 @@ function $i(n) {
6387
6387
  function Pt(n) {
6388
6388
  const e = {};
6389
6389
  for (let t = 0; t < n.length; t++) {
6390
- const i = $i(n[t]);
6390
+ const i = qi(n[t]);
6391
6391
  for (const r in i)
6392
6392
  e[r] = i[r];
6393
6393
  }
@@ -6402,13 +6402,13 @@ function ag(n) {
6402
6402
  function Mh(n) {
6403
6403
  return n.getRenderTarget() === null ? n.outputColorSpace : gn;
6404
6404
  }
6405
- const Ua = { clone: $i, merge: Pt };
6405
+ const Ua = { clone: qi, merge: Pt };
6406
6406
  var lg = `void main() {
6407
6407
  gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
6408
6408
  }`, cg = `void main() {
6409
6409
  gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );
6410
6410
  }`;
6411
- class Yn extends Zi {
6411
+ class Yn extends Ji {
6412
6412
  constructor(e) {
6413
6413
  super(), this.isShaderMaterial = !0, this.type = "ShaderMaterial", this.defines = {}, this.uniforms = {}, this.uniformsGroups = [], this.vertexShader = lg, this.fragmentShader = cg, this.linewidth = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.fog = !1, this.lights = !1, this.clipping = !1, this.forceSinglePass = !0, this.extensions = {
6414
6414
  derivatives: !1,
@@ -6426,7 +6426,7 @@ class Yn extends Zi {
6426
6426
  }, this.index0AttributeName = void 0, this.uniformsNeedUpdate = !1, this.glslVersion = null, e !== void 0 && this.setValues(e);
6427
6427
  }
6428
6428
  copy(e) {
6429
- return super.copy(e), this.fragmentShader = e.fragmentShader, this.vertexShader = e.vertexShader, this.uniforms = $i(e.uniforms), this.uniformsGroups = ag(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;
6429
+ return super.copy(e), this.fragmentShader = e.fragmentShader, this.vertexShader = e.vertexShader, this.uniforms = qi(e.uniforms), this.uniformsGroups = ag(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;
6430
6430
  }
6431
6431
  toJSON(e) {
6432
6432
  const t = super.toJSON(e);
@@ -6510,12 +6510,12 @@ class Vt extends Eh {
6510
6510
  * Calculates the focal length from the current .fov and .filmGauge.
6511
6511
  */
6512
6512
  getFocalLength() {
6513
- const e = Math.tan(fr * 0.5 * this.fov);
6513
+ const e = Math.tan(dr * 0.5 * this.fov);
6514
6514
  return 0.5 * this.getFilmHeight() / e;
6515
6515
  }
6516
6516
  getEffectiveFOV() {
6517
6517
  return Mr * 2 * Math.atan(
6518
- Math.tan(fr * 0.5 * this.fov) / this.zoom
6518
+ Math.tan(dr * 0.5 * this.fov) / this.zoom
6519
6519
  );
6520
6520
  }
6521
6521
  getFilmWidth() {
@@ -6575,7 +6575,7 @@ class Vt extends Eh {
6575
6575
  }
6576
6576
  updateProjectionMatrix() {
6577
6577
  const e = this.near;
6578
- let t = e * Math.tan(fr * 0.5 * this.fov) / this.zoom, i = 2 * t, r = this.aspect * i, s = -0.5 * r;
6578
+ let t = e * Math.tan(dr * 0.5 * this.fov) / this.zoom, i = 2 * t, r = this.aspect * i, s = -0.5 * r;
6579
6579
  const o = this.view;
6580
6580
  if (this.view !== null && this.view.enabled) {
6581
6581
  const l = o.fullWidth, c = o.fullHeight;
@@ -6631,7 +6631,7 @@ class ug extends at {
6631
6631
  }
6632
6632
  class bh extends It {
6633
6633
  constructor(e, t, i, r, s, o, a, l, c, u) {
6634
- e = e !== void 0 ? e : [], t = t !== void 0 ? t : Vi, super(e, t, i, r, s, o, a, l, c, u), this.isCubeTexture = !0, this.flipY = !1;
6634
+ e = e !== void 0 ? e : [], t = t !== void 0 ? t : Wi, super(e, t, i, r, s, o, a, l, c, u), this.isCubeTexture = !0, this.flipY = !1;
6635
6635
  }
6636
6636
  get images() {
6637
6637
  return this.image;
@@ -6644,7 +6644,7 @@ class hg extends di {
6644
6644
  constructor(e = 1, t = {}) {
6645
6645
  super(e, e, t), this.isWebGLCubeRenderTarget = !0;
6646
6646
  const i = { width: e, height: e, depth: 1 }, r = [i, i, i, i, i, i];
6647
- t.encoding !== void 0 && (pr("THREE.WebGLCubeRenderTarget: option.encoding has been replaced by option.colorSpace."), t.colorSpace = t.encoding === li ? nt : ci), this.texture = new bh(r, t.mapping, t.wrapS, t.wrapT, t.magFilter, t.minFilter, t.format, t.type, t.anisotropy, t.colorSpace), this.texture.isRenderTargetTexture = !0, this.texture.generateMipmaps = t.generateMipmaps !== void 0 ? t.generateMipmaps : !1, this.texture.minFilter = t.minFilter !== void 0 ? t.minFilter : $t;
6647
+ t.encoding !== void 0 && (mr("THREE.WebGLCubeRenderTarget: option.encoding has been replaced by option.colorSpace."), t.colorSpace = t.encoding === li ? nt : ci), this.texture = new bh(r, t.mapping, t.wrapS, t.wrapT, t.magFilter, t.minFilter, t.format, t.type, t.anisotropy, t.colorSpace), this.texture.isRenderTargetTexture = !0, this.texture.generateMipmaps = t.generateMipmaps !== void 0 ? t.generateMipmaps : !1, this.texture.minFilter = t.minFilter !== void 0 ? t.minFilter : $t;
6648
6648
  }
6649
6649
  fromEquirectangularTexture(e, t) {
6650
6650
  this.texture.type = t.type, this.texture.colorSpace = t.colorSpace, this.texture.generateMipmaps = t.generateMipmaps, this.texture.minFilter = t.minFilter, this.texture.magFilter = t.magFilter;
@@ -6697,7 +6697,7 @@ class hg extends di {
6697
6697
  )
6698
6698
  }, r = new Ir(5, 5, 5), s = new Yn({
6699
6699
  name: "CubemapFromEquirect",
6700
- uniforms: $i(i.uniforms),
6700
+ uniforms: qi(i.uniforms),
6701
6701
  vertexShader: i.vertexShader,
6702
6702
  fragmentShader: i.fragmentShader,
6703
6703
  side: Ot,
@@ -10875,7 +10875,7 @@ function $v(n, e, t, i, r, s, o) {
10875
10875
  new Ir(1, 1, 1),
10876
10876
  new Yn({
10877
10877
  name: "BackgroundCubeMaterial",
10878
- uniforms: $i(Ut.backgroundCube.uniforms),
10878
+ uniforms: qi(Ut.backgroundCube.uniforms),
10879
10879
  vertexShader: Ut.backgroundCube.vertexShader,
10880
10880
  fragmentShader: Ut.backgroundCube.fragmentShader,
10881
10881
  side: Ot,
@@ -10893,7 +10893,7 @@ function $v(n, e, t, i, r, s, o) {
10893
10893
  new Oa(2, 2),
10894
10894
  new Yn({
10895
10895
  name: "BackgroundMaterial",
10896
- uniforms: $i(Ut.background.uniforms),
10896
+ uniforms: qi(Ut.background.uniforms),
10897
10897
  vertexShader: Ut.background.vertexShader,
10898
10898
  fragmentShader: Ut.background.fragmentShader,
10899
10899
  side: jn,
@@ -10929,36 +10929,36 @@ function $v(n, e, t, i, r, s, o) {
10929
10929
  function qv(n, e, t, i) {
10930
10930
  const r = n.getParameter(n.MAX_VERTEX_ATTRIBS), s = i.isWebGL2 ? null : e.get("OES_vertex_array_object"), o = i.isWebGL2 || s !== null, a = {}, l = m(null);
10931
10931
  let c = l, u = !1;
10932
- function h(U, C, z, H, V) {
10932
+ function h(N, C, z, H, V) {
10933
10933
  let K = !1;
10934
10934
  if (o) {
10935
10935
  const Q = _(H, z, C);
10936
- c !== Q && (c = Q, d(c.object)), K = p(U, H, z, V), K && y(U, H, z, V);
10936
+ c !== Q && (c = Q, d(c.object)), K = p(N, H, z, V), K && y(N, H, z, V);
10937
10937
  } else {
10938
10938
  const Q = C.wireframe === !0;
10939
10939
  (c.geometry !== H.id || c.program !== z.id || c.wireframe !== Q) && (c.geometry = H.id, c.program = z.id, c.wireframe = Q, K = !0);
10940
10940
  }
10941
- V !== null && t.update(V, n.ELEMENT_ARRAY_BUFFER), (K || u) && (u = !1, N(U, C, z, H), V !== null && n.bindBuffer(n.ELEMENT_ARRAY_BUFFER, t.get(V).buffer));
10941
+ V !== null && t.update(V, n.ELEMENT_ARRAY_BUFFER), (K || u) && (u = !1, U(N, C, z, H), V !== null && n.bindBuffer(n.ELEMENT_ARRAY_BUFFER, t.get(V).buffer));
10942
10942
  }
10943
10943
  function f() {
10944
10944
  return i.isWebGL2 ? n.createVertexArray() : s.createVertexArrayOES();
10945
10945
  }
10946
- function d(U) {
10947
- return i.isWebGL2 ? n.bindVertexArray(U) : s.bindVertexArrayOES(U);
10946
+ function d(N) {
10947
+ return i.isWebGL2 ? n.bindVertexArray(N) : s.bindVertexArrayOES(N);
10948
10948
  }
10949
- function g(U) {
10950
- return i.isWebGL2 ? n.deleteVertexArray(U) : s.deleteVertexArrayOES(U);
10949
+ function g(N) {
10950
+ return i.isWebGL2 ? n.deleteVertexArray(N) : s.deleteVertexArrayOES(N);
10951
10951
  }
10952
- function _(U, C, z) {
10952
+ function _(N, C, z) {
10953
10953
  const H = z.wireframe === !0;
10954
- let V = a[U.id];
10955
- V === void 0 && (V = {}, a[U.id] = V);
10954
+ let V = a[N.id];
10955
+ V === void 0 && (V = {}, a[N.id] = V);
10956
10956
  let K = V[C.id];
10957
10957
  K === void 0 && (K = {}, V[C.id] = K);
10958
10958
  let Q = K[H];
10959
10959
  return Q === void 0 && (Q = m(f()), K[H] = Q), Q;
10960
10960
  }
10961
- function m(U) {
10961
+ function m(N) {
10962
10962
  const C = [], z = [], H = [];
10963
10963
  for (let V = 0; V < r; V++)
10964
10964
  C[V] = 0, z[V] = 0, H[V] = 0;
@@ -10970,12 +10970,12 @@ function qv(n, e, t, i) {
10970
10970
  newAttributes: C,
10971
10971
  enabledAttributes: z,
10972
10972
  attributeDivisors: H,
10973
- object: U,
10973
+ object: N,
10974
10974
  attributes: {},
10975
10975
  index: null
10976
10976
  };
10977
10977
  }
10978
- function p(U, C, z, H) {
10978
+ function p(N, C, z, H) {
10979
10979
  const V = c.attributes, K = C.attributes;
10980
10980
  let Q = 0;
10981
10981
  const B = z.getAttributes();
@@ -10983,47 +10983,47 @@ function qv(n, e, t, i) {
10983
10983
  if (B[q].location >= 0) {
10984
10984
  const me = V[q];
10985
10985
  let ge = K[q];
10986
- if (ge === void 0 && (q === "instanceMatrix" && U.instanceMatrix && (ge = U.instanceMatrix), q === "instanceColor" && U.instanceColor && (ge = U.instanceColor)), me === void 0 || me.attribute !== ge || ge && me.data !== ge.data)
10986
+ if (ge === void 0 && (q === "instanceMatrix" && N.instanceMatrix && (ge = N.instanceMatrix), q === "instanceColor" && N.instanceColor && (ge = N.instanceColor)), me === void 0 || me.attribute !== ge || ge && me.data !== ge.data)
10987
10987
  return !0;
10988
10988
  Q++;
10989
10989
  }
10990
10990
  return c.attributesNum !== Q || c.index !== H;
10991
10991
  }
10992
- function y(U, C, z, H) {
10992
+ function y(N, C, z, H) {
10993
10993
  const V = {}, K = C.attributes;
10994
10994
  let Q = 0;
10995
10995
  const B = z.getAttributes();
10996
10996
  for (const q in B)
10997
10997
  if (B[q].location >= 0) {
10998
10998
  let me = K[q];
10999
- me === void 0 && (q === "instanceMatrix" && U.instanceMatrix && (me = U.instanceMatrix), q === "instanceColor" && U.instanceColor && (me = U.instanceColor));
10999
+ me === void 0 && (q === "instanceMatrix" && N.instanceMatrix && (me = N.instanceMatrix), q === "instanceColor" && N.instanceColor && (me = N.instanceColor));
11000
11000
  const ge = {};
11001
11001
  ge.attribute = me, me && me.data && (ge.data = me.data), V[q] = ge, Q++;
11002
11002
  }
11003
11003
  c.attributes = V, c.attributesNum = Q, c.index = H;
11004
11004
  }
11005
11005
  function v() {
11006
- const U = c.newAttributes;
11007
- for (let C = 0, z = U.length; C < z; C++)
11008
- U[C] = 0;
11006
+ const N = c.newAttributes;
11007
+ for (let C = 0, z = N.length; C < z; C++)
11008
+ N[C] = 0;
11009
11009
  }
11010
- function M(U) {
11011
- b(U, 0);
11010
+ function M(N) {
11011
+ b(N, 0);
11012
11012
  }
11013
- function b(U, C) {
11013
+ function b(N, C) {
11014
11014
  const z = c.newAttributes, H = c.enabledAttributes, V = c.attributeDivisors;
11015
- z[U] = 1, H[U] === 0 && (n.enableVertexAttribArray(U), H[U] = 1), V[U] !== C && ((i.isWebGL2 ? n : e.get("ANGLE_instanced_arrays"))[i.isWebGL2 ? "vertexAttribDivisor" : "vertexAttribDivisorANGLE"](U, C), V[U] = C);
11015
+ z[N] = 1, H[N] === 0 && (n.enableVertexAttribArray(N), H[N] = 1), V[N] !== C && ((i.isWebGL2 ? n : e.get("ANGLE_instanced_arrays"))[i.isWebGL2 ? "vertexAttribDivisor" : "vertexAttribDivisorANGLE"](N, C), V[N] = C);
11016
11016
  }
11017
11017
  function R() {
11018
- const U = c.newAttributes, C = c.enabledAttributes;
11018
+ const N = c.newAttributes, C = c.enabledAttributes;
11019
11019
  for (let z = 0, H = C.length; z < H; z++)
11020
- C[z] !== U[z] && (n.disableVertexAttribArray(z), C[z] = 0);
11020
+ C[z] !== N[z] && (n.disableVertexAttribArray(z), C[z] = 0);
11021
11021
  }
11022
- function w(U, C, z, H, V, K, Q) {
11023
- Q === !0 ? n.vertexAttribIPointer(U, C, z, V, K) : n.vertexAttribPointer(U, C, z, H, V, K);
11022
+ function w(N, C, z, H, V, K, Q) {
11023
+ Q === !0 ? n.vertexAttribIPointer(N, C, z, V, K) : n.vertexAttribPointer(N, C, z, H, V, K);
11024
11024
  }
11025
- function N(U, C, z, H) {
11026
- if (i.isWebGL2 === !1 && (U.isInstancedMesh || H.isInstancedBufferGeometry) && e.get("ANGLE_instanced_arrays") === null)
11025
+ function U(N, C, z, H) {
11026
+ if (i.isWebGL2 === !1 && (N.isInstancedMesh || H.isInstancedBufferGeometry) && e.get("ANGLE_instanced_arrays") === null)
11027
11027
  return;
11028
11028
  v();
11029
11029
  const V = H.attributes, K = z.getAttributes(), Q = C.defaultAttributeValues;
@@ -11031,7 +11031,7 @@ function qv(n, e, t, i) {
11031
11031
  const q = K[B];
11032
11032
  if (q.location >= 0) {
11033
11033
  let oe = V[B];
11034
- if (oe === void 0 && (B === "instanceMatrix" && U.instanceMatrix && (oe = U.instanceMatrix), B === "instanceColor" && U.instanceColor && (oe = U.instanceColor)), oe !== void 0) {
11034
+ if (oe === void 0 && (B === "instanceMatrix" && N.instanceMatrix && (oe = N.instanceMatrix), B === "instanceColor" && N.instanceColor && (oe = N.instanceColor)), oe !== void 0) {
11035
11035
  const me = oe.normalized, ge = oe.itemSize, Ae = t.get(oe);
11036
11036
  if (Ae === void 0)
11037
11037
  continue;
@@ -11041,7 +11041,7 @@ function qv(n, e, t, i) {
11041
11041
  if (Ce.isInstancedInterleavedBuffer) {
11042
11042
  for (let J = 0; J < q.locationSize; J++)
11043
11043
  b(q.location + J, Ce.meshPerAttribute);
11044
- U.isInstancedMesh !== !0 && H._maxInstanceCount === void 0 && (H._maxInstanceCount = Ce.meshPerAttribute * Ce.count);
11044
+ N.isInstancedMesh !== !0 && H._maxInstanceCount === void 0 && (H._maxInstanceCount = Ce.meshPerAttribute * Ce.count);
11045
11045
  } else
11046
11046
  for (let J = 0; J < q.locationSize; J++)
11047
11047
  M(q.location + J);
@@ -11060,7 +11060,7 @@ function qv(n, e, t, i) {
11060
11060
  if (oe.isInstancedBufferAttribute) {
11061
11061
  for (let Ce = 0; Ce < q.locationSize; Ce++)
11062
11062
  b(q.location + Ce, oe.meshPerAttribute);
11063
- U.isInstancedMesh !== !0 && H._maxInstanceCount === void 0 && (H._maxInstanceCount = oe.meshPerAttribute * oe.count);
11063
+ N.isInstancedMesh !== !0 && H._maxInstanceCount === void 0 && (H._maxInstanceCount = oe.meshPerAttribute * oe.count);
11064
11064
  } else
11065
11065
  for (let Ce = 0; Ce < q.locationSize; Ce++)
11066
11066
  M(q.location + Ce);
@@ -11099,38 +11099,38 @@ function qv(n, e, t, i) {
11099
11099
  }
11100
11100
  function x() {
11101
11101
  ee();
11102
- for (const U in a) {
11103
- const C = a[U];
11102
+ for (const N in a) {
11103
+ const C = a[N];
11104
11104
  for (const z in C) {
11105
11105
  const H = C[z];
11106
11106
  for (const V in H)
11107
11107
  g(H[V].object), delete H[V];
11108
11108
  delete C[z];
11109
11109
  }
11110
- delete a[U];
11110
+ delete a[N];
11111
11111
  }
11112
11112
  }
11113
- function E(U) {
11114
- if (a[U.id] === void 0)
11113
+ function E(N) {
11114
+ if (a[N.id] === void 0)
11115
11115
  return;
11116
- const C = a[U.id];
11116
+ const C = a[N.id];
11117
11117
  for (const z in C) {
11118
11118
  const H = C[z];
11119
11119
  for (const V in H)
11120
11120
  g(H[V].object), delete H[V];
11121
11121
  delete C[z];
11122
11122
  }
11123
- delete a[U.id];
11123
+ delete a[N.id];
11124
11124
  }
11125
- function F(U) {
11125
+ function F(N) {
11126
11126
  for (const C in a) {
11127
11127
  const z = a[C];
11128
- if (z[U.id] === void 0)
11128
+ if (z[N.id] === void 0)
11129
11129
  continue;
11130
- const H = z[U.id];
11130
+ const H = z[N.id];
11131
11131
  for (const V in H)
11132
11132
  g(H[V].object), delete H[V];
11133
- delete z[U.id];
11133
+ delete z[N.id];
11134
11134
  }
11135
11135
  }
11136
11136
  function ee() {
@@ -11269,7 +11269,7 @@ function Kv(n) {
11269
11269
  function Zv(n) {
11270
11270
  let e = /* @__PURE__ */ new WeakMap();
11271
11271
  function t(o, a) {
11272
- return a === ta ? o.mapping = Vi : a === na && (o.mapping = Wi), o;
11272
+ return a === ta ? o.mapping = Wi : a === na && (o.mapping = Xi), o;
11273
11273
  }
11274
11274
  function i(o) {
11275
11275
  if (o && o.isTexture && o.isRenderTargetTexture === !1) {
@@ -11419,7 +11419,7 @@ class Cc {
11419
11419
  this._renderer.setRenderTarget(Po), e.scissorTest = !1, os(e, 0, 0, e.width, e.height);
11420
11420
  }
11421
11421
  _fromTexture(e, t) {
11422
- e.mapping === Vi || e.mapping === Wi ? this._setSize(e.image.length === 0 ? 16 : e.image[0].width || e.image[0].image.width) : this._setSize(e.image.width / 4), Po = this._renderer.getRenderTarget();
11422
+ e.mapping === Wi || e.mapping === Xi ? this._setSize(e.image.length === 0 ? 16 : e.image[0].width || e.image[0].image.width) : this._setSize(e.image.width / 4), Po = this._renderer.getRenderTarget();
11423
11423
  const i = t || this._allocateTargets();
11424
11424
  return this._textureToCubeUV(e, i), this._applyPMREM(i), this._cleanup(i), i;
11425
11425
  }
@@ -11465,7 +11465,7 @@ class Cc {
11465
11465
  g.geometry.dispose(), g.material.dispose(), u.toneMapping = f, u.autoClear = h, e.background = m;
11466
11466
  }
11467
11467
  _textureToCubeUV(e, t) {
11468
- const i = this._renderer, r = e.mapping === Vi || e.mapping === Wi;
11468
+ const i = this._renderer, r = e.mapping === Wi || e.mapping === Xi;
11469
11469
  r ? (this._cubemapMaterial === null && (this._cubemapMaterial = Pc()), this._cubemapMaterial.uniforms.flipEnvMap.value = e.isRenderTargetTexture === !1 ? -1 : 1) : this._equirectMaterial === null && (this._equirectMaterial = Lc());
11470
11470
  const s = r ? this._cubemapMaterial : this._equirectMaterial, o = new pn(this._lodPlanes[0], s), a = s.uniforms;
11471
11471
  a.envMap.value = e;
@@ -11518,7 +11518,7 @@ class Cc {
11518
11518
  const p = [];
11519
11519
  let y = 0;
11520
11520
  for (let w = 0; w < ri; ++w) {
11521
- const N = w / _, x = Math.exp(-N * N / 2);
11521
+ const U = w / _, x = Math.exp(-U * U / 2);
11522
11522
  p.push(x), w === 0 ? y += x : w < m && (y += 2 * x);
11523
11523
  }
11524
11524
  for (let w = 0; w < p.length; w++)
@@ -11541,24 +11541,24 @@ function Qv(n) {
11541
11541
  o > n - Oi ? l = Tc[o - n + Oi - 1] : o === 0 && (l = 0), i.push(l);
11542
11542
  const c = 1 / (a - 2), u = -c, h = 1 + c, f = [u, u, h, u, h, h, u, u, h, h, u, h], d = 6, g = 6, _ = 3, m = 2, p = 1, y = new Float32Array(_ * g * d), v = new Float32Array(m * g * d), M = new Float32Array(p * g * d);
11543
11543
  for (let R = 0; R < d; R++) {
11544
- const w = R % 3 * 2 / 3 - 1, N = R > 2 ? 0 : -1, x = [
11544
+ const w = R % 3 * 2 / 3 - 1, U = R > 2 ? 0 : -1, x = [
11545
11545
  w,
11546
- N,
11546
+ U,
11547
11547
  0,
11548
11548
  w + 2 / 3,
11549
- N,
11549
+ U,
11550
11550
  0,
11551
11551
  w + 2 / 3,
11552
- N + 1,
11552
+ U + 1,
11553
11553
  0,
11554
11554
  w,
11555
- N,
11555
+ U,
11556
11556
  0,
11557
11557
  w + 2 / 3,
11558
- N + 1,
11558
+ U + 1,
11559
11559
  0,
11560
11560
  w,
11561
- N + 1,
11561
+ U + 1,
11562
11562
  0
11563
11563
  ];
11564
11564
  y.set(x, _ * g * R), v.set(f, m * g * R);
@@ -11799,7 +11799,7 @@ function t0(n) {
11799
11799
  let e = /* @__PURE__ */ new WeakMap(), t = null;
11800
11800
  function i(a) {
11801
11801
  if (a && a.isTexture) {
11802
- const l = a.mapping, c = l === ta || l === na, u = l === Vi || l === Wi;
11802
+ const l = a.mapping, c = l === ta || l === na, u = l === Wi || l === Xi;
11803
11803
  if (c || u)
11804
11804
  if (a.isRenderTargetTexture && a.needsPMREMUpdate === !0) {
11805
11805
  a.needsPMREMUpdate = !1;
@@ -12036,18 +12036,18 @@ function l0(n, e, t) {
12036
12036
  const d = u.morphAttributes.position || u.morphAttributes.normal || u.morphAttributes.color, g = d !== void 0 ? d.length : 0;
12037
12037
  let _ = s.get(u);
12038
12038
  if (_ === void 0 || _.count !== g) {
12039
- let U = function() {
12040
- ee.dispose(), s.delete(u), u.removeEventListener("dispose", U);
12039
+ let N = function() {
12040
+ ee.dispose(), s.delete(u), u.removeEventListener("dispose", N);
12041
12041
  };
12042
12042
  _ !== void 0 && _.texture.dispose();
12043
12043
  const y = u.morphAttributes.position !== void 0, v = u.morphAttributes.normal !== void 0, M = u.morphAttributes.color !== void 0, b = u.morphAttributes.position || [], R = u.morphAttributes.normal || [], w = u.morphAttributes.color || [];
12044
- let N = 0;
12045
- y === !0 && (N = 1), v === !0 && (N = 2), M === !0 && (N = 3);
12046
- let x = u.attributes.position.count * N, E = 1;
12044
+ let U = 0;
12045
+ y === !0 && (U = 1), v === !0 && (U = 2), M === !0 && (U = 3);
12046
+ let x = u.attributes.position.count * U, E = 1;
12047
12047
  x > e.maxTextureSize && (E = Math.ceil(x / e.maxTextureSize), x = e.maxTextureSize);
12048
12048
  const F = new Float32Array(x * E * 4 * g), ee = new vh(F, x, E, g);
12049
12049
  ee.type = Gn, ee.needsUpdate = !0;
12050
- const O = N * 4;
12050
+ const O = U * 4;
12051
12051
  for (let C = 0; C < g; C++) {
12052
12052
  const z = b[C], H = R[C], V = w[C], K = x * E * 4 * C;
12053
12053
  for (let Q = 0; Q < z.count; Q++) {
@@ -12059,7 +12059,7 @@ function l0(n, e, t) {
12059
12059
  count: g,
12060
12060
  texture: ee,
12061
12061
  size: new ue(x, E)
12062
- }, s.set(u, _), u.addEventListener("dispose", U);
12062
+ }, s.set(u, _), u.addEventListener("dispose", N);
12063
12063
  }
12064
12064
  let m = 0;
12065
12065
  for (let y = 0; y < f.length; y++)
@@ -12120,7 +12120,7 @@ function c0(n, e, t, i) {
12120
12120
  };
12121
12121
  }
12122
12122
  const wh = /* @__PURE__ */ new It(), Ah = /* @__PURE__ */ new vh(), Ch = /* @__PURE__ */ new Ym(), Rh = /* @__PURE__ */ new bh(), Dc = [], Ic = [], Uc = new Float32Array(16), Nc = new Float32Array(9), Oc = new Float32Array(4);
12123
- function Ji(n, e, t) {
12123
+ function Qi(n, e, t) {
12124
12124
  const i = n[0];
12125
12125
  if (i <= 0 || i > 0)
12126
12126
  return n;
@@ -12370,27 +12370,27 @@ function L0(n, e) {
12370
12370
  n.uniform1fv(this.addr, e);
12371
12371
  }
12372
12372
  function P0(n, e) {
12373
- const t = Ji(e, this.size, 2);
12373
+ const t = Qi(e, this.size, 2);
12374
12374
  n.uniform2fv(this.addr, t);
12375
12375
  }
12376
12376
  function D0(n, e) {
12377
- const t = Ji(e, this.size, 3);
12377
+ const t = Qi(e, this.size, 3);
12378
12378
  n.uniform3fv(this.addr, t);
12379
12379
  }
12380
12380
  function I0(n, e) {
12381
- const t = Ji(e, this.size, 4);
12381
+ const t = Qi(e, this.size, 4);
12382
12382
  n.uniform4fv(this.addr, t);
12383
12383
  }
12384
12384
  function U0(n, e) {
12385
- const t = Ji(e, this.size, 4);
12385
+ const t = Qi(e, this.size, 4);
12386
12386
  n.uniformMatrix2fv(this.addr, !1, t);
12387
12387
  }
12388
12388
  function N0(n, e) {
12389
- const t = Ji(e, this.size, 9);
12389
+ const t = Qi(e, this.size, 9);
12390
12390
  n.uniformMatrix3fv(this.addr, !1, t);
12391
12391
  }
12392
12392
  function O0(n, e) {
12393
- const t = Ji(e, this.size, 16);
12393
+ const t = Qi(e, this.size, 16);
12394
12394
  n.uniformMatrix4fv(this.addr, !1, t);
12395
12395
  }
12396
12396
  function F0(n, e) {
@@ -12645,7 +12645,7 @@ function sx(n) {
12645
12645
  (n.extensionFragDepth || n.logarithmicDepthBuffer) && n.rendererExtensionFragDepth ? "#extension GL_EXT_frag_depth : enable" : "",
12646
12646
  n.extensionDrawBuffers && n.rendererExtensionDrawBuffers ? "#extension GL_EXT_draw_buffers : require" : "",
12647
12647
  (n.extensionShaderTextureLOD || n.envMap || n.transmission) && n.rendererExtensionShaderTextureLod ? "#extension GL_EXT_shader_texture_lod : enable" : ""
12648
- ].filter(lr).join(`
12648
+ ].filter(cr).join(`
12649
12649
  `);
12650
12650
  }
12651
12651
  function ox(n) {
@@ -12670,7 +12670,7 @@ function ax(n, e) {
12670
12670
  }
12671
12671
  return t;
12672
12672
  }
12673
- function lr(n) {
12673
+ function cr(n) {
12674
12674
  return n !== "";
12675
12675
  }
12676
12676
  function Hc(n, e) {
@@ -12729,8 +12729,8 @@ function px(n) {
12729
12729
  let e = "ENVMAP_TYPE_CUBE";
12730
12730
  if (n.envMap)
12731
12731
  switch (n.envMapMode) {
12732
- case Vi:
12733
12732
  case Wi:
12733
+ case Xi:
12734
12734
  e = "ENVMAP_TYPE_CUBE";
12735
12735
  break;
12736
12736
  case Gs:
@@ -12743,7 +12743,7 @@ function mx(n) {
12743
12743
  let e = "ENVMAP_MODE_REFLECTION";
12744
12744
  if (n.envMap)
12745
12745
  switch (n.envMapMode) {
12746
- case Wi:
12746
+ case Xi:
12747
12747
  e = "ENVMAP_MODE_REFRACTION";
12748
12748
  break;
12749
12749
  }
@@ -12782,14 +12782,14 @@ function vx(n, e, t, i) {
12782
12782
  "#define SHADER_TYPE " + t.shaderType,
12783
12783
  "#define SHADER_NAME " + t.shaderName,
12784
12784
  g
12785
- ].filter(lr).join(`
12785
+ ].filter(cr).join(`
12786
12786
  `), m.length > 0 && (m += `
12787
12787
  `), p = [
12788
12788
  d,
12789
12789
  "#define SHADER_TYPE " + t.shaderType,
12790
12790
  "#define SHADER_NAME " + t.shaderName,
12791
12791
  g
12792
- ].filter(lr).join(`
12792
+ ].filter(cr).join(`
12793
12793
  `), p.length > 0 && (p += `
12794
12794
  `)) : (m = [
12795
12795
  Vc(t),
@@ -12933,7 +12933,7 @@ function vx(n, e, t, i) {
12933
12933
  "#endif",
12934
12934
  `
12935
12935
  `
12936
- ].filter(lr).join(`
12936
+ ].filter(cr).join(`
12937
12937
  `), p = [
12938
12938
  d,
12939
12939
  Vc(t),
@@ -13014,7 +13014,7 @@ function vx(n, e, t, i) {
13014
13014
  t.useDepthPacking ? "#define DEPTH_PACKING " + t.depthPacking : "",
13015
13015
  `
13016
13016
  `
13017
- ].filter(lr).join(`
13017
+ ].filter(cr).join(`
13018
13018
  `)), o = la(o), o = Hc(o, t), o = kc(o, t), a = la(a), a = Hc(a, t), a = kc(a, t), o = Gc(o), a = Gc(a), t.isWebGL2 && t.isRawShaderMaterial !== !0 && (y = `#version 300 es
13019
13019
  `, m = [
13020
13020
  "precision mediump sampler2DArray;",
@@ -13048,12 +13048,12 @@ function vx(n, e, t, i) {
13048
13048
  if (ee = !1, typeof n.debug.onShaderError == "function")
13049
13049
  n.debug.onShaderError(r, _, b, R);
13050
13050
  else {
13051
- const U = zc(r, b, "vertex"), C = zc(r, R, "fragment");
13051
+ const N = zc(r, b, "vertex"), C = zc(r, R, "fragment");
13052
13052
  console.error(
13053
13053
  "THREE.WebGLProgram: Shader Error " + r.getError() + " - VALIDATE_STATUS " + r.getProgramParameter(_, r.VALIDATE_STATUS) + `
13054
13054
 
13055
13055
  Program Info Log: ` + x + `
13056
- ` + U + `
13056
+ ` + N + `
13057
13057
  ` + C
13058
13058
  );
13059
13059
  }
@@ -13077,9 +13077,9 @@ Program Info Log: ` + x + `
13077
13077
  this.getUniforms = function() {
13078
13078
  return w === void 0 && (w = new Ss(r, _)), w;
13079
13079
  };
13080
- let N;
13080
+ let U;
13081
13081
  return this.getAttributes = function() {
13082
- return N === void 0 && (N = ax(r, _)), N;
13082
+ return U === void 0 && (U = ax(r, _)), U;
13083
13083
  }, this.destroy = function() {
13084
13084
  i.releaseStatesOfProgram(this), r.deleteProgram(_), this.program = void 0;
13085
13085
  }, this.type = t.shaderType, this.name = t.shaderName, this.id = ex++, this.cacheKey = e, this.usedTimes = 1, this.program = _, this.vertexShader = b, this.fragmentShader = R, this;
@@ -13148,7 +13148,7 @@ function Mx(n, e, t, i, r, s, o) {
13148
13148
  return x === 0 ? "uv" : `uv${x}`;
13149
13149
  }
13150
13150
  function m(x, E, F, ee, O) {
13151
- const U = ee.fog, C = O.geometry, z = x.isMeshStandardMaterial ? ee.environment : null, H = (x.isMeshStandardMaterial ? t : e).get(x.envMap || z), V = H && H.mapping === Gs ? H.image.height : null, K = g[x.type];
13151
+ const N = ee.fog, C = O.geometry, z = x.isMeshStandardMaterial ? ee.environment : null, H = (x.isMeshStandardMaterial ? t : e).get(x.envMap || z), V = H && H.mapping === Gs ? H.image.height : null, K = g[x.type];
13152
13152
  x.precision !== null && (d = r.getMaxPrecision(x.precision), d !== x.precision && console.warn("THREE.WebGLProgram.getParameters:", x.precision, "not supported, using", d, "instead."));
13153
13153
  const Q = C.morphAttributes.position || C.morphAttributes.normal || C.morphAttributes.color, B = Q !== void 0 ? Q.length : 0;
13154
13154
  let q = 0;
@@ -13212,7 +13212,7 @@ function Mx(n, e, t, i, r, s, o) {
13212
13212
  transmissionMap: ve,
13213
13213
  thicknessMap: Ne,
13214
13214
  gradientMap: We,
13215
- opaque: x.transparent === !1 && x.blending === Hi,
13215
+ opaque: x.transparent === !1 && x.blending === ki,
13216
13216
  alphaMap: I,
13217
13217
  alphaTest: _e,
13218
13218
  alphaHash: $,
@@ -13249,9 +13249,9 @@ function Mx(n, e, t, i, r, s, o) {
13249
13249
  vertexUv2s: He,
13250
13250
  vertexUv3s: qe,
13251
13251
  pointsUvs: O.isPoints === !0 && !!C.attributes.uv && (Ve || I),
13252
- fog: !!U,
13252
+ fog: !!N,
13253
13253
  useFog: x.fog === !0,
13254
- fogExp2: U && U.isFogExp2,
13254
+ fogExp2: N && N.isFogExp2,
13255
13255
  flatShading: x.flatShading === !0,
13256
13256
  sizeAttenuation: x.sizeAttenuation === !0,
13257
13257
  logarithmicDepthBuffer: h,
@@ -13321,9 +13321,9 @@ function Mx(n, e, t, i, r, s, o) {
13321
13321
  function b(x, E) {
13322
13322
  let F;
13323
13323
  for (let ee = 0, O = c.length; ee < O; ee++) {
13324
- const U = c[ee];
13325
- if (U.cacheKey === E) {
13326
- F = U, ++F.usedTimes;
13324
+ const N = c[ee];
13325
+ if (N.cacheKey === E) {
13326
+ F = N, ++F.usedTimes;
13327
13327
  break;
13328
13328
  }
13329
13329
  }
@@ -13338,7 +13338,7 @@ function Mx(n, e, t, i, r, s, o) {
13338
13338
  function w(x) {
13339
13339
  l.remove(x);
13340
13340
  }
13341
- function N() {
13341
+ function U() {
13342
13342
  l.dispose();
13343
13343
  }
13344
13344
  return {
@@ -13350,7 +13350,7 @@ function Mx(n, e, t, i, r, s, o) {
13350
13350
  releaseShaderCache: w,
13351
13351
  // Exposed for resource monitoring & error feedback via renderer.info:
13352
13352
  programs: c,
13353
- dispose: N
13353
+ dispose: U
13354
13354
  };
13355
13355
  }
13356
13356
  function Ex() {
@@ -13584,13 +13584,13 @@ function Lx(n, e) {
13584
13584
  let f = 0, d = 0, g = 0;
13585
13585
  for (let F = 0; F < 9; F++)
13586
13586
  r.probe[F].set(0, 0, 0);
13587
- let _ = 0, m = 0, p = 0, y = 0, v = 0, M = 0, b = 0, R = 0, w = 0, N = 0;
13587
+ let _ = 0, m = 0, p = 0, y = 0, v = 0, M = 0, b = 0, R = 0, w = 0, U = 0;
13588
13588
  u.sort(Rx);
13589
13589
  const x = h === !0 ? Math.PI : 1;
13590
13590
  for (let F = 0, ee = u.length; F < ee; F++) {
13591
- const O = u[F], U = O.color, C = O.intensity, z = O.distance, H = O.shadow && O.shadow.map ? O.shadow.map.texture : null;
13591
+ const O = u[F], N = O.color, C = O.intensity, z = O.distance, H = O.shadow && O.shadow.map ? O.shadow.map.texture : null;
13592
13592
  if (O.isAmbientLight)
13593
- f += U.r * C * x, d += U.g * C * x, g += U.b * C * x;
13593
+ f += N.r * C * x, d += N.g * C * x, g += N.b * C * x;
13594
13594
  else if (O.isLightProbe)
13595
13595
  for (let V = 0; V < 9; V++)
13596
13596
  r.probe[V].addScaledVector(O.sh.coefficients[V], C);
@@ -13603,16 +13603,16 @@ function Lx(n, e) {
13603
13603
  r.directional[_] = V, _++;
13604
13604
  } else if (O.isSpotLight) {
13605
13605
  const V = t.get(O);
13606
- V.position.setFromMatrixPosition(O.matrixWorld), V.color.copy(U).multiplyScalar(C * x), V.distance = z, V.coneCos = Math.cos(O.angle), V.penumbraCos = Math.cos(O.angle * (1 - O.penumbra)), V.decay = O.decay, r.spot[p] = V;
13606
+ V.position.setFromMatrixPosition(O.matrixWorld), V.color.copy(N).multiplyScalar(C * x), V.distance = z, V.coneCos = Math.cos(O.angle), V.penumbraCos = Math.cos(O.angle * (1 - O.penumbra)), V.decay = O.decay, r.spot[p] = V;
13607
13607
  const K = O.shadow;
13608
- if (O.map && (r.spotLightMap[w] = O.map, w++, K.updateMatrices(O), O.castShadow && N++), r.spotLightMatrix[p] = K.matrix, O.castShadow) {
13608
+ if (O.map && (r.spotLightMap[w] = O.map, w++, K.updateMatrices(O), O.castShadow && U++), r.spotLightMatrix[p] = K.matrix, O.castShadow) {
13609
13609
  const Q = i.get(O);
13610
13610
  Q.shadowBias = K.bias, Q.shadowNormalBias = K.normalBias, Q.shadowRadius = K.radius, Q.shadowMapSize = K.mapSize, r.spotShadow[p] = Q, r.spotShadowMap[p] = H, R++;
13611
13611
  }
13612
13612
  p++;
13613
13613
  } else if (O.isRectAreaLight) {
13614
13614
  const V = t.get(O);
13615
- V.color.copy(U).multiplyScalar(C), V.halfWidth.set(O.width * 0.5, 0, 0), V.halfHeight.set(0, O.height * 0.5, 0), r.rectArea[y] = V, y++;
13615
+ V.color.copy(N).multiplyScalar(C), V.halfWidth.set(O.width * 0.5, 0, 0), V.halfHeight.set(0, O.height * 0.5, 0), r.rectArea[y] = V, y++;
13616
13616
  } else if (O.isPointLight) {
13617
13617
  const V = t.get(O);
13618
13618
  if (V.color.copy(O.color).multiplyScalar(O.intensity * x), V.distance = O.distance, V.decay = O.decay, O.castShadow) {
@@ -13627,7 +13627,7 @@ function Lx(n, e) {
13627
13627
  }
13628
13628
  y > 0 && (e.isWebGL2 || n.has("OES_texture_float_linear") === !0 ? (r.rectAreaLTC1 = de.LTC_FLOAT_1, r.rectAreaLTC2 = de.LTC_FLOAT_2) : n.has("OES_texture_half_float_linear") === !0 ? (r.rectAreaLTC1 = de.LTC_HALF_1, r.rectAreaLTC2 = de.LTC_HALF_2) : console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")), r.ambient[0] = f, r.ambient[1] = d, r.ambient[2] = g;
13629
13629
  const E = r.hash;
13630
- (E.directionalLength !== _ || E.pointLength !== m || E.spotLength !== p || E.rectAreaLength !== y || E.hemiLength !== v || E.numDirectionalShadows !== M || E.numPointShadows !== b || E.numSpotShadows !== R || E.numSpotMaps !== w) && (r.directional.length = _, r.spot.length = p, r.rectArea.length = y, r.point.length = m, r.hemi.length = v, r.directionalShadow.length = M, r.directionalShadowMap.length = M, r.pointShadow.length = b, r.pointShadowMap.length = b, r.spotShadow.length = R, r.spotShadowMap.length = R, r.directionalShadowMatrix.length = M, r.pointShadowMatrix.length = b, r.spotLightMatrix.length = R + w - N, r.spotLightMap.length = w, r.numSpotLightShadowsWithMaps = N, E.directionalLength = _, E.pointLength = m, E.spotLength = p, E.rectAreaLength = y, E.hemiLength = v, E.numDirectionalShadows = M, E.numPointShadows = b, E.numSpotShadows = R, E.numSpotMaps = w, r.version = Cx++);
13630
+ (E.directionalLength !== _ || E.pointLength !== m || E.spotLength !== p || E.rectAreaLength !== y || E.hemiLength !== v || E.numDirectionalShadows !== M || E.numPointShadows !== b || E.numSpotShadows !== R || E.numSpotMaps !== w) && (r.directional.length = _, r.spot.length = p, r.rectArea.length = y, r.point.length = m, r.hemi.length = v, r.directionalShadow.length = M, r.directionalShadowMap.length = M, r.pointShadow.length = b, r.pointShadowMap.length = b, r.spotShadow.length = R, r.spotShadowMap.length = R, r.directionalShadowMatrix.length = M, r.pointShadowMatrix.length = b, r.spotLightMatrix.length = R + w - U, r.spotLightMap.length = w, r.numSpotLightShadowsWithMaps = U, E.directionalLength = _, E.pointLength = m, E.spotLength = p, E.rectAreaLength = y, E.hemiLength = v, E.numDirectionalShadows = M, E.numPointShadows = b, E.numSpotShadows = R, E.numSpotMaps = w, r.version = Cx++);
13631
13631
  }
13632
13632
  function c(u, h) {
13633
13633
  let f = 0, d = 0, g = 0, _ = 0, m = 0;
@@ -13703,7 +13703,7 @@ function Px(n, e) {
13703
13703
  dispose: r
13704
13704
  };
13705
13705
  }
13706
- class Dx extends Zi {
13706
+ class Dx extends Ji {
13707
13707
  constructor(e) {
13708
13708
  super(), this.isMeshDepthMaterial = !0, this.type = "MeshDepthMaterial", this.depthPacking = dm, this.map = null, this.alphaMap = null, this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.wireframe = !1, this.wireframeLinewidth = 1, this.setValues(e);
13709
13709
  }
@@ -13711,7 +13711,7 @@ class Dx extends Zi {
13711
13711
  return super.copy(e), this.depthPacking = e.depthPacking, this.map = e.map, this.alphaMap = e.alphaMap, this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this;
13712
13712
  }
13713
13713
  }
13714
- class Ix extends Zi {
13714
+ class Ix extends Ji {
13715
13715
  constructor(e) {
13716
13716
  super(), this.isMeshDistanceMaterial = !0, this.type = "MeshDistanceMaterial", this.map = null, this.alphaMap = null, this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.setValues(e);
13717
13717
  }
@@ -13777,11 +13777,11 @@ function Ox(n, e, t) {
13777
13777
  this.render = function(b, R, w) {
13778
13778
  if (m.enabled === !1 || m.autoUpdate === !1 && m.needsUpdate === !1 || b.length === 0)
13779
13779
  return;
13780
- const N = n.getRenderTarget(), x = n.getActiveCubeFace(), E = n.getActiveMipmapLevel(), F = n.state;
13780
+ const U = n.getRenderTarget(), x = n.getActiveCubeFace(), E = n.getActiveMipmapLevel(), F = n.state;
13781
13781
  F.setBlending(Wn), F.buffers.color.setClear(1, 1, 1, 1), F.buffers.depth.setTest(!0), F.setScissorTest(!1);
13782
13782
  const ee = p !== An && this.type === An, O = p === An && this.type !== An;
13783
- for (let U = 0, C = b.length; U < C; U++) {
13784
- const z = b[U], H = z.shadow;
13783
+ for (let N = 0, C = b.length; N < C; N++) {
13784
+ const z = b[N], H = z.shadow;
13785
13785
  if (H === void 0) {
13786
13786
  console.warn("THREE.WebGLShadowMap:", z, "has no shadow.");
13787
13787
  continue;
@@ -13807,13 +13807,13 @@ function Ox(n, e, t) {
13807
13807
  }
13808
13808
  H.isPointLightShadow !== !0 && this.type === An && y(H, w), H.needsUpdate = !1;
13809
13809
  }
13810
- p = this.type, m.needsUpdate = !1, n.setRenderTarget(N, x, E);
13810
+ p = this.type, m.needsUpdate = !1, n.setRenderTarget(U, x, E);
13811
13811
  };
13812
13812
  function y(b, R) {
13813
13813
  const w = e.update(_);
13814
13814
  f.defines.VSM_SAMPLES !== b.blurSamples && (f.defines.VSM_SAMPLES = b.blurSamples, d.defines.VSM_SAMPLES = b.blurSamples, f.needsUpdate = !0, d.needsUpdate = !0), b.mapPass === null && (b.mapPass = new di(r.x, r.y)), f.uniforms.shadow_pass.value = b.map.texture, f.uniforms.resolution.value = b.mapSize, f.uniforms.radius.value = b.radius, n.setRenderTarget(b.mapPass), n.clear(), n.renderBufferDirect(R, null, w, f, _, null), d.uniforms.shadow_pass.value = b.mapPass.texture, d.uniforms.resolution.value = b.mapSize, d.uniforms.radius.value = b.radius, n.setRenderTarget(b.map), n.clear(), n.renderBufferDirect(R, null, w, d, _, null);
13815
13815
  }
13816
- function v(b, R, w, N) {
13816
+ function v(b, R, w, U) {
13817
13817
  let x = null;
13818
13818
  const E = w.isPointLight === !0 ? b.customDistanceMaterial : b.customDepthMaterial;
13819
13819
  if (E !== void 0)
@@ -13822,38 +13822,38 @@ function Ox(n, e, t) {
13822
13822
  const F = x.uuid, ee = R.uuid;
13823
13823
  let O = c[F];
13824
13824
  O === void 0 && (O = {}, c[F] = O);
13825
- let U = O[ee];
13826
- U === void 0 && (U = x.clone(), O[ee] = U), x = U;
13825
+ let N = O[ee];
13826
+ N === void 0 && (N = x.clone(), O[ee] = N), x = N;
13827
13827
  }
13828
- if (x.visible = R.visible, x.wireframe = R.wireframe, N === An ? x.side = R.shadowSide !== null ? R.shadowSide : R.side : x.side = R.shadowSide !== null ? R.shadowSide : h[R.side], x.alphaMap = R.alphaMap, x.alphaTest = R.alphaTest, x.map = R.map, x.clipShadows = R.clipShadows, x.clippingPlanes = R.clippingPlanes, x.clipIntersection = R.clipIntersection, x.displacementMap = R.displacementMap, x.displacementScale = R.displacementScale, x.displacementBias = R.displacementBias, x.wireframeLinewidth = R.wireframeLinewidth, x.linewidth = R.linewidth, w.isPointLight === !0 && x.isMeshDistanceMaterial === !0) {
13828
+ if (x.visible = R.visible, x.wireframe = R.wireframe, U === An ? x.side = R.shadowSide !== null ? R.shadowSide : R.side : x.side = R.shadowSide !== null ? R.shadowSide : h[R.side], x.alphaMap = R.alphaMap, x.alphaTest = R.alphaTest, x.map = R.map, x.clipShadows = R.clipShadows, x.clippingPlanes = R.clippingPlanes, x.clipIntersection = R.clipIntersection, x.displacementMap = R.displacementMap, x.displacementScale = R.displacementScale, x.displacementBias = R.displacementBias, x.wireframeLinewidth = R.wireframeLinewidth, x.linewidth = R.linewidth, w.isPointLight === !0 && x.isMeshDistanceMaterial === !0) {
13829
13829
  const F = n.properties.get(x);
13830
13830
  F.light = w;
13831
13831
  }
13832
13832
  return x;
13833
13833
  }
13834
- function M(b, R, w, N, x) {
13834
+ function M(b, R, w, U, x) {
13835
13835
  if (b.visible === !1)
13836
13836
  return;
13837
13837
  if (b.layers.test(R.layers) && (b.isMesh || b.isLine || b.isPoints) && (b.castShadow || b.receiveShadow && x === An) && (!b.frustumCulled || i.intersectsObject(b))) {
13838
13838
  b.modelViewMatrix.multiplyMatrices(w.matrixWorldInverse, b.matrixWorld);
13839
13839
  const ee = e.update(b), O = b.material;
13840
13840
  if (Array.isArray(O)) {
13841
- const U = ee.groups;
13842
- for (let C = 0, z = U.length; C < z; C++) {
13843
- const H = U[C], V = O[H.materialIndex];
13841
+ const N = ee.groups;
13842
+ for (let C = 0, z = N.length; C < z; C++) {
13843
+ const H = N[C], V = O[H.materialIndex];
13844
13844
  if (V && V.visible) {
13845
- const K = v(b, V, N, x);
13845
+ const K = v(b, V, U, x);
13846
13846
  n.renderBufferDirect(w, null, ee, K, b, H);
13847
13847
  }
13848
13848
  }
13849
13849
  } else if (O.visible) {
13850
- const U = v(b, O, N, x);
13851
- n.renderBufferDirect(w, null, ee, U, b, null);
13850
+ const N = v(b, O, U, x);
13851
+ n.renderBufferDirect(w, null, ee, N, b, null);
13852
13852
  }
13853
13853
  }
13854
13854
  const F = b.children;
13855
13855
  for (let ee = 0, O = F.length; ee < O; ee++)
13856
- M(F[ee], R, w, N, x);
13856
+ M(F[ee], R, w, U, x);
13857
13857
  }
13858
13858
  }
13859
13859
  function Fx(n, e, t) {
@@ -13958,7 +13958,7 @@ function Fx(n, e, t) {
13958
13958
  };
13959
13959
  }
13960
13960
  const a = new r(), l = new s(), c = new o(), u = /* @__PURE__ */ new WeakMap(), h = /* @__PURE__ */ new WeakMap();
13961
- let f = {}, d = {}, g = /* @__PURE__ */ new WeakMap(), _ = [], m = null, p = !1, y = null, v = null, M = null, b = null, R = null, w = null, N = null, x = !1, E = null, F = null, ee = null, O = null, U = null;
13961
+ let f = {}, d = {}, g = /* @__PURE__ */ new WeakMap(), _ = [], m = null, p = !1, y = null, v = null, M = null, b = null, R = null, w = null, U = null, x = !1, E = null, F = null, ee = null, O = null, N = null;
13962
13962
  const C = n.getParameter(n.MAX_COMBINED_TEXTURE_IMAGE_UNITS);
13963
13963
  let z = !1, H = 0;
13964
13964
  const V = n.getParameter(n.VERSION);
@@ -14035,7 +14035,7 @@ function Fx(n, e, t) {
14035
14035
  if (I !== y || Je !== x) {
14036
14036
  if ((v !== Ni || R !== Ni) && (n.blendEquation(n.FUNC_ADD), v = Ni, R = Ni), Je)
14037
14037
  switch (I) {
14038
- case Hi:
14038
+ case ki:
14039
14039
  n.blendFuncSeparate(n.ONE, n.ONE_MINUS_SRC_ALPHA, n.ONE, n.ONE_MINUS_SRC_ALPHA);
14040
14040
  break;
14041
14041
  case Dl:
@@ -14053,7 +14053,7 @@ function Fx(n, e, t) {
14053
14053
  }
14054
14054
  else
14055
14055
  switch (I) {
14056
- case Hi:
14056
+ case ki:
14057
14057
  n.blendFuncSeparate(n.SRC_ALPHA, n.ONE_MINUS_SRC_ALPHA, n.ONE, n.ONE_MINUS_SRC_ALPHA);
14058
14058
  break;
14059
14059
  case Dl:
@@ -14069,16 +14069,16 @@ function Fx(n, e, t) {
14069
14069
  console.error("THREE.WebGLState: Invalid blending: ", I);
14070
14070
  break;
14071
14071
  }
14072
- M = null, b = null, w = null, N = null, y = I, x = Je;
14072
+ M = null, b = null, w = null, U = null, y = I, x = Je;
14073
14073
  }
14074
14074
  return;
14075
14075
  }
14076
- fe = fe || _e, He = He || $, qe = qe || re, (_e !== v || fe !== R) && (n.blendEquationSeparate(L[_e], L[fe]), v = _e, R = fe), ($ !== M || re !== b || He !== w || qe !== N) && (n.blendFuncSeparate(he[$], he[re], he[He], he[qe]), M = $, b = re, w = He, N = qe), y = I, x = !1;
14076
+ fe = fe || _e, He = He || $, qe = qe || re, (_e !== v || fe !== R) && (n.blendEquationSeparate(L[_e], L[fe]), v = _e, R = fe), ($ !== M || re !== b || He !== w || qe !== U) && (n.blendFuncSeparate(he[$], he[re], he[He], he[qe]), M = $, b = re, w = He, U = qe), y = I, x = !1;
14077
14077
  }
14078
14078
  function ae(I, _e) {
14079
14079
  I.side === Cn ? Te(n.CULL_FACE) : we(n.CULL_FACE);
14080
14080
  let $ = I.side === Ot;
14081
- _e && ($ = !$), ne($), I.blending === Hi && I.transparent === !1 ? J(Wn) : J(I.blending, I.blendEquation, I.blendSrc, I.blendDst, I.blendEquationAlpha, I.blendSrcAlpha, I.blendDstAlpha, I.premultipliedAlpha), l.setFunc(I.depthFunc), l.setTest(I.depthTest), l.setMask(I.depthWrite), a.setMask(I.colorWrite);
14081
+ _e && ($ = !$), ne($), I.blending === ki && I.transparent === !1 ? J(Wn) : J(I.blending, I.blendEquation, I.blendSrc, I.blendDst, I.blendEquationAlpha, I.blendSrcAlpha, I.blendDstAlpha, I.premultipliedAlpha), l.setFunc(I.depthFunc), l.setTest(I.depthTest), l.setMask(I.depthWrite), a.setMask(I.colorWrite);
14082
14082
  const re = I.stencilWrite;
14083
14083
  c.setTest(re), re && (c.setMask(I.stencilWriteMask), c.setFunc(I.stencilFunc, I.stencilRef, I.stencilFuncMask), c.setOp(I.stencilFail, I.stencilZFail, I.stencilZPass)), Se(I.polygonOffset, I.polygonOffsetFactor, I.polygonOffsetUnits), I.alphaToCoverage === !0 ? we(n.SAMPLE_ALPHA_TO_COVERAGE) : Te(n.SAMPLE_ALPHA_TO_COVERAGE);
14084
14084
  }
@@ -14092,7 +14092,7 @@ function Fx(n, e, t) {
14092
14092
  I !== ee && (z && n.lineWidth(I), ee = I);
14093
14093
  }
14094
14094
  function Se(I, _e, $) {
14095
- I ? (we(n.POLYGON_OFFSET_FILL), (O !== _e || U !== $) && (n.polygonOffset(_e, $), O = _e, U = $)) : Te(n.POLYGON_OFFSET_FILL);
14095
+ I ? (we(n.POLYGON_OFFSET_FILL), (O !== _e || N !== $) && (n.polygonOffset(_e, $), O = _e, N = $)) : Te(n.POLYGON_OFFSET_FILL);
14096
14096
  }
14097
14097
  function Le(I) {
14098
14098
  I ? we(n.SCISSOR_TEST) : Te(n.SCISSOR_TEST);
@@ -14196,7 +14196,7 @@ function Fx(n, e, t) {
14196
14196
  u.get(_e) !== re && (n.uniformBlockBinding(_e, re, I.__bindingPointIndex), u.set(_e, re));
14197
14197
  }
14198
14198
  function We() {
14199
- n.disable(n.BLEND), n.disable(n.CULL_FACE), n.disable(n.DEPTH_TEST), n.disable(n.POLYGON_OFFSET_FILL), n.disable(n.SCISSOR_TEST), n.disable(n.STENCIL_TEST), n.disable(n.SAMPLE_ALPHA_TO_COVERAGE), n.blendEquation(n.FUNC_ADD), n.blendFunc(n.ONE, n.ZERO), n.blendFuncSeparate(n.ONE, n.ZERO, n.ONE, n.ZERO), n.colorMask(!0, !0, !0, !0), n.clearColor(0, 0, 0, 0), n.depthMask(!0), n.depthFunc(n.LESS), n.clearDepth(1), n.stencilMask(4294967295), n.stencilFunc(n.ALWAYS, 0, 4294967295), n.stencilOp(n.KEEP, n.KEEP, n.KEEP), n.clearStencil(0), n.cullFace(n.BACK), n.frontFace(n.CCW), n.polygonOffset(0, 0), n.activeTexture(n.TEXTURE0), n.bindFramebuffer(n.FRAMEBUFFER, null), i === !0 && (n.bindFramebuffer(n.DRAW_FRAMEBUFFER, null), n.bindFramebuffer(n.READ_FRAMEBUFFER, null)), n.useProgram(null), n.lineWidth(1), n.scissor(0, 0, n.canvas.width, n.canvas.height), n.viewport(0, 0, n.canvas.width, n.canvas.height), f = {}, K = null, Q = {}, d = {}, g = /* @__PURE__ */ new WeakMap(), _ = [], m = null, p = !1, y = null, v = null, M = null, b = null, R = null, w = null, N = null, x = !1, E = null, F = null, ee = null, O = null, U = null, oe.set(0, 0, n.canvas.width, n.canvas.height), me.set(0, 0, n.canvas.width, n.canvas.height), a.reset(), l.reset(), c.reset();
14199
+ n.disable(n.BLEND), n.disable(n.CULL_FACE), n.disable(n.DEPTH_TEST), n.disable(n.POLYGON_OFFSET_FILL), n.disable(n.SCISSOR_TEST), n.disable(n.STENCIL_TEST), n.disable(n.SAMPLE_ALPHA_TO_COVERAGE), n.blendEquation(n.FUNC_ADD), n.blendFunc(n.ONE, n.ZERO), n.blendFuncSeparate(n.ONE, n.ZERO, n.ONE, n.ZERO), n.colorMask(!0, !0, !0, !0), n.clearColor(0, 0, 0, 0), n.depthMask(!0), n.depthFunc(n.LESS), n.clearDepth(1), n.stencilMask(4294967295), n.stencilFunc(n.ALWAYS, 0, 4294967295), n.stencilOp(n.KEEP, n.KEEP, n.KEEP), n.clearStencil(0), n.cullFace(n.BACK), n.frontFace(n.CCW), n.polygonOffset(0, 0), n.activeTexture(n.TEXTURE0), n.bindFramebuffer(n.FRAMEBUFFER, null), i === !0 && (n.bindFramebuffer(n.DRAW_FRAMEBUFFER, null), n.bindFramebuffer(n.READ_FRAMEBUFFER, null)), n.useProgram(null), n.lineWidth(1), n.scissor(0, 0, n.canvas.width, n.canvas.height), n.viewport(0, 0, n.canvas.width, n.canvas.height), f = {}, K = null, Q = {}, d = {}, g = /* @__PURE__ */ new WeakMap(), _ = [], m = null, p = !1, y = null, v = null, M = null, b = null, R = null, w = null, U = null, x = !1, E = null, F = null, ee = null, O = null, N = null, oe.set(0, 0, n.canvas.width, n.canvas.height), me.set(0, 0, n.canvas.width, n.canvas.height), a.reset(), l.reset(), c.reset();
14200
14200
  }
14201
14201
  return {
14202
14202
  buffers: {
@@ -14275,7 +14275,7 @@ function Bx(n, e, t, i, r, s, o) {
14275
14275
  function w(A) {
14276
14276
  n.generateMipmap(A);
14277
14277
  }
14278
- function N(A, S, W, se, ie = !1) {
14278
+ function U(A, S, W, se, ie = !1) {
14279
14279
  if (a === !1)
14280
14280
  return S;
14281
14281
  if (A !== null) {
@@ -14307,11 +14307,11 @@ function Bx(n, e, t, i, r, s, o) {
14307
14307
  const W = A.source, se = m.get(W);
14308
14308
  if (se) {
14309
14309
  const ie = se[S.__cacheKey];
14310
- ie.usedTimes--, ie.usedTimes === 0 && U(A), Object.keys(se).length === 0 && m.delete(W);
14310
+ ie.usedTimes--, ie.usedTimes === 0 && N(A), Object.keys(se).length === 0 && m.delete(W);
14311
14311
  }
14312
14312
  i.remove(A);
14313
14313
  }
14314
- function U(A) {
14314
+ function N(A) {
14315
14315
  const S = i.get(A);
14316
14316
  n.deleteTexture(S.__webglTexture);
14317
14317
  const W = A.source, se = m.get(W);
@@ -14439,7 +14439,7 @@ function Bx(n, e, t, i, r, s, o) {
14439
14439
  usedTimes: 0
14440
14440
  }, o.memory.textures++, W = !0), ie[le].usedTimes++;
14441
14441
  const Ee = ie[A.__cacheKey];
14442
- Ee !== void 0 && (ie[A.__cacheKey].usedTimes--, Ee.usedTimes === 0 && U(S)), A.__cacheKey = le, A.__webglTexture = ie[le].texture;
14442
+ Ee !== void 0 && (ie[A.__cacheKey].usedTimes--, Ee.usedTimes === 0 && N(S)), A.__cacheKey = le, A.__webglTexture = ie[le].texture;
14443
14443
  }
14444
14444
  return W;
14445
14445
  }
@@ -14455,12 +14455,12 @@ function Bx(n, e, t, i, r, s, o) {
14455
14455
  let X = v(S.image, ce, !1, u);
14456
14456
  X = tt(S, X);
14457
14457
  const P = M(X) || a, te = s.convert(S.format, S.colorSpace);
14458
- let xe = s.convert(S.type), pe = N(S.internalFormat, te, xe, S.colorSpace, S.isVideoTexture);
14458
+ let xe = s.convert(S.type), pe = U(S.internalFormat, te, xe, S.colorSpace, S.isVideoTexture);
14459
14459
  we(se, S, P);
14460
14460
  let ve;
14461
14461
  const Ne = S.mipmaps, We = a && S.isVideoTexture !== !0, I = Ee.__version === void 0 || ie === !0, _e = x(S, X, P);
14462
14462
  if (S.isDepthTexture)
14463
- pe = n.DEPTH_COMPONENT, a ? S.type === Gn ? pe = n.DEPTH_COMPONENT32F : S.type === kn ? pe = n.DEPTH_COMPONENT24 : S.type === oi ? pe = n.DEPTH24_STENCIL8 : pe = n.DEPTH_COMPONENT16 : S.type === Gn && console.error("WebGLRenderer: Floating point depth texture requires WebGL2."), S.format === ai && pe === n.DEPTH_COMPONENT && S.type !== Ra && S.type !== kn && (console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."), S.type = kn, xe = s.convert(S.type)), S.format === Xi && pe === n.DEPTH_COMPONENT && (pe = n.DEPTH_STENCIL, S.type !== oi && (console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."), S.type = oi, xe = s.convert(S.type))), I && (We ? t.texStorage2D(n.TEXTURE_2D, 1, pe, X.width, X.height) : t.texImage2D(n.TEXTURE_2D, 0, pe, X.width, X.height, 0, te, xe, null));
14463
+ pe = n.DEPTH_COMPONENT, a ? S.type === Gn ? pe = n.DEPTH_COMPONENT32F : S.type === kn ? pe = n.DEPTH_COMPONENT24 : S.type === oi ? pe = n.DEPTH24_STENCIL8 : pe = n.DEPTH_COMPONENT16 : S.type === Gn && console.error("WebGLRenderer: Floating point depth texture requires WebGL2."), S.format === ai && pe === n.DEPTH_COMPONENT && S.type !== Ra && S.type !== kn && (console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."), S.type = kn, xe = s.convert(S.type)), S.format === $i && pe === n.DEPTH_COMPONENT && (pe = n.DEPTH_STENCIL, S.type !== oi && (console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."), S.type = oi, xe = s.convert(S.type))), I && (We ? t.texStorage2D(n.TEXTURE_2D, 1, pe, X.width, X.height) : t.texImage2D(n.TEXTURE_2D, 0, pe, X.width, X.height, 0, te, xe, null));
14464
14464
  else if (S.isDataTexture)
14465
14465
  if (Ne.length > 0 && P) {
14466
14466
  We && I && t.texStorage2D(n.TEXTURE_2D, _e, pe, Ne[0].width, Ne[0].height);
@@ -14514,7 +14514,7 @@ function Bx(n, e, t, i, r, s, o) {
14514
14514
  const Ee = S.isCompressedTexture || S.image[0].isCompressedTexture, ce = S.image[0] && S.image[0].isDataTexture, X = [];
14515
14515
  for (let $ = 0; $ < 6; $++)
14516
14516
  !Ee && !ce ? X[$] = v(S.image[$], !1, !0, c) : X[$] = ce ? S.image[$].image : S.image[$], X[$] = tt(S, X[$]);
14517
- const P = X[0], te = M(P) || a, xe = s.convert(S.format, S.colorSpace), pe = s.convert(S.type), ve = N(S.internalFormat, xe, pe, S.colorSpace), Ne = a && S.isVideoTexture !== !0, We = le.__version === void 0 || se === !0;
14517
+ const P = X[0], te = M(P) || a, xe = s.convert(S.format, S.colorSpace), pe = s.convert(S.type), ve = U(S.internalFormat, xe, pe, S.colorSpace), Ne = a && S.isVideoTexture !== !0, We = le.__version === void 0 || se === !0;
14518
14518
  let I = x(S, P, te);
14519
14519
  we(n.TEXTURE_CUBE_MAP, S, te);
14520
14520
  let _e;
@@ -14549,7 +14549,7 @@ function Bx(n, e, t, i, r, s, o) {
14549
14549
  A.__version = S.version;
14550
14550
  }
14551
14551
  function Ce(A, S, W, se, ie, le) {
14552
- const Ee = s.convert(W.format, W.colorSpace), ce = s.convert(W.type), X = N(W.internalFormat, Ee, ce, W.colorSpace);
14552
+ const Ee = s.convert(W.format, W.colorSpace), ce = s.convert(W.type), X = U(W.internalFormat, Ee, ce, W.colorSpace);
14553
14553
  if (!i.get(S).__hasExternalTextures) {
14554
14554
  const te = Math.max(1, S.width >> le), xe = Math.max(1, S.height >> le);
14555
14555
  ie === n.TEXTURE_3D || ie === n.TEXTURE_2D_ARRAY ? t.texImage3D(ie, le, X, te, xe, S.depth, 0, Ee, ce, null) : t.texImage2D(ie, le, X, te, xe, 0, Ee, ce, null);
@@ -14573,7 +14573,7 @@ function Bx(n, e, t, i, r, s, o) {
14573
14573
  } else {
14574
14574
  const se = S.isWebGLMultipleRenderTargets === !0 ? S.texture : [S.texture];
14575
14575
  for (let ie = 0; ie < se.length; ie++) {
14576
- const le = se[ie], Ee = s.convert(le.format, le.colorSpace), ce = s.convert(le.type), X = N(le.internalFormat, Ee, ce, le.colorSpace), P = Se(S);
14576
+ const le = se[ie], Ee = s.convert(le.format, le.colorSpace), ce = s.convert(le.type), X = U(le.internalFormat, Ee, ce, le.colorSpace), P = Se(S);
14577
14577
  W && Le(S) === !1 ? n.renderbufferStorageMultisample(n.RENDERBUFFER, P, X, S.width, S.height) : Le(S) ? f.renderbufferStorageMultisampleEXT(n.RENDERBUFFER, P, X, S.width, S.height) : n.renderbufferStorage(n.RENDERBUFFER, X, S.width, S.height);
14578
14578
  }
14579
14579
  }
@@ -14588,7 +14588,7 @@ function Bx(n, e, t, i, r, s, o) {
14588
14588
  const se = i.get(S.depthTexture).__webglTexture, ie = Se(S);
14589
14589
  if (S.depthTexture.format === ai)
14590
14590
  Le(S) ? f.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER, n.DEPTH_ATTACHMENT, n.TEXTURE_2D, se, 0, ie) : n.framebufferTexture2D(n.FRAMEBUFFER, n.DEPTH_ATTACHMENT, n.TEXTURE_2D, se, 0);
14591
- else if (S.depthTexture.format === Xi)
14591
+ else if (S.depthTexture.format === $i)
14592
14592
  Le(S) ? f.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER, n.DEPTH_STENCIL_ATTACHMENT, n.TEXTURE_2D, se, 0, ie) : n.framebufferTexture2D(n.FRAMEBUFFER, n.DEPTH_STENCIL_ATTACHMENT, n.TEXTURE_2D, se, 0);
14593
14593
  else
14594
14594
  throw new Error("Unknown depthTexture format");
@@ -14646,7 +14646,7 @@ function Bx(n, e, t, i, r, s, o) {
14646
14646
  for (let X = 0; X < ce.length; X++) {
14647
14647
  const P = ce[X];
14648
14648
  W.__webglColorRenderbuffer[X] = n.createRenderbuffer(), n.bindRenderbuffer(n.RENDERBUFFER, W.__webglColorRenderbuffer[X]);
14649
- const te = s.convert(P.format, P.colorSpace), xe = s.convert(P.type), pe = N(P.internalFormat, te, xe, P.colorSpace, A.isXRRenderTarget === !0), ve = Se(A);
14649
+ const te = s.convert(P.format, P.colorSpace), xe = s.convert(P.type), pe = U(P.internalFormat, te, xe, P.colorSpace, A.isXRRenderTarget === !0), ve = Se(A);
14650
14650
  n.renderbufferStorageMultisample(n.RENDERBUFFER, ve, pe, A.width, A.height), n.framebufferRenderbuffer(n.FRAMEBUFFER, n.COLOR_ATTACHMENT0 + X, n.RENDERBUFFER, W.__webglColorRenderbuffer[X]);
14651
14651
  }
14652
14652
  n.bindRenderbuffer(n.RENDERBUFFER, null), A.depthBuffer && (W.__webglDepthRenderbuffer = n.createRenderbuffer(), L(W.__webglDepthRenderbuffer, A, !0)), t.bindFramebuffer(n.FRAMEBUFFER, null);
@@ -14769,7 +14769,7 @@ function Hx(n, e, t) {
14769
14769
  return n.LUMINANCE_ALPHA;
14770
14770
  if (s === ai)
14771
14771
  return n.DEPTH_COMPONENT;
14772
- if (s === Xi)
14772
+ if (s === $i)
14773
14773
  return n.DEPTH_STENCIL;
14774
14774
  if (s === oa)
14775
14775
  return a = e.get("EXT_sRGB"), a !== null ? a.SRGB_ALPHA_EXT : null;
@@ -14963,9 +14963,9 @@ class Io {
14963
14963
  }
14964
14964
  class Vx extends It {
14965
14965
  constructor(e, t, i, r, s, o, a, l, c, u) {
14966
- if (u = u !== void 0 ? u : ai, u !== ai && u !== Xi)
14966
+ if (u = u !== void 0 ? u : ai, u !== ai && u !== $i)
14967
14967
  throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");
14968
- i === void 0 && u === ai && (i = kn), i === void 0 && u === Xi && (i = oi), super(null, r, s, o, a, l, u, i, c), this.isDepthTexture = !0, this.image = { width: e, height: t }, this.magFilter = a !== void 0 ? a : Dt, this.minFilter = l !== void 0 ? l : Dt, this.flipY = !1, this.generateMipmaps = !1, this.compareFunction = null;
14968
+ i === void 0 && u === ai && (i = kn), i === void 0 && u === $i && (i = oi), super(null, r, s, o, a, l, u, i, c), this.isDepthTexture = !0, this.image = { width: e, height: t }, this.magFilter = a !== void 0 ? a : Dt, this.minFilter = l !== void 0 ? l : Dt, this.flipY = !1, this.generateMipmaps = !1, this.compareFunction = null;
14969
14969
  }
14970
14970
  copy(e) {
14971
14971
  return super.copy(e), this.compareFunction = e.compareFunction, this;
@@ -14988,7 +14988,7 @@ class Wx extends gi {
14988
14988
  b.layers.enable(2), b.viewport = new Ke();
14989
14989
  const R = [M, b], w = new kx();
14990
14990
  w.layers.enable(1), w.layers.enable(2);
14991
- let N = null, x = null;
14991
+ let U = null, x = null;
14992
14992
  this.cameraAutoUpdate = !0, this.enabled = !1, this.isPresenting = !1, this.getController = function(B) {
14993
14993
  let q = y[B];
14994
14994
  return q === void 0 && (q = new Io(), y[B] = q), q.getTargetRaySpace();
@@ -15012,7 +15012,7 @@ class Wx extends gi {
15012
15012
  const q = v[B];
15013
15013
  q !== null && (v[B] = null, y[B].disconnect(q));
15014
15014
  }
15015
- N = null, x = null, e.setRenderTarget(m), d = null, f = null, h = null, r = null, p = null, Q.stop(), i.isPresenting = !1, i.dispatchEvent({ type: "sessionend" });
15015
+ U = null, x = null, e.setRenderTarget(m), d = null, f = null, h = null, r = null, p = null, Q.stop(), i.isPresenting = !1, i.dispatchEvent({ type: "sessionend" });
15016
15016
  }
15017
15017
  this.setFramebufferScaleFactor = function(B) {
15018
15018
  s = B, i.isPresenting === !0 && console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.");
@@ -15053,7 +15053,7 @@ class Wx extends gi {
15053
15053
  );
15054
15054
  } else {
15055
15055
  let q = null, oe = null, me = null;
15056
- _.depth && (me = _.stencil ? t.DEPTH24_STENCIL8 : t.DEPTH_COMPONENT24, q = _.stencil ? Xi : ai, oe = _.stencil ? oi : kn);
15056
+ _.depth && (me = _.stencil ? t.DEPTH24_STENCIL8 : t.DEPTH_COMPONENT24, q = _.stencil ? $i : ai, oe = _.stencil ? oi : kn);
15057
15057
  const ge = {
15058
15058
  colorFormat: t.RGBA8,
15059
15059
  depthFormat: me,
@@ -15105,10 +15105,10 @@ class Wx extends gi {
15105
15105
  ge && ge.connect(oe);
15106
15106
  }
15107
15107
  }
15108
- const O = new D(), U = new D();
15108
+ const O = new D(), N = new D();
15109
15109
  function C(B, q, oe) {
15110
- O.setFromMatrixPosition(q.matrixWorld), U.setFromMatrixPosition(oe.matrixWorld);
15111
- const me = O.distanceTo(U), ge = q.projectionMatrix.elements, Ae = oe.projectionMatrix.elements, we = ge[14] / (ge[10] - 1), Te = ge[14] / (ge[10] + 1), Ve = (ge[9] + 1) / ge[5], Ze = (ge[9] - 1) / ge[5], Ce = (ge[8] - 1) / ge[0], L = (Ae[8] + 1) / Ae[0], he = we * Ce, J = we * L, ae = me / (-Ce + L), ne = ae * -Ce;
15110
+ O.setFromMatrixPosition(q.matrixWorld), N.setFromMatrixPosition(oe.matrixWorld);
15111
+ const me = O.distanceTo(N), ge = q.projectionMatrix.elements, Ae = oe.projectionMatrix.elements, we = ge[14] / (ge[10] - 1), Te = ge[14] / (ge[10] + 1), Ve = (ge[9] + 1) / ge[5], Ze = (ge[9] - 1) / ge[5], Ce = (ge[8] - 1) / ge[0], L = (Ae[8] + 1) / Ae[0], he = we * Ce, J = we * L, ae = me / (-Ce + L), ne = ae * -Ce;
15112
15112
  q.matrixWorld.decompose(B.position, B.quaternion, B.scale), B.translateX(ne), B.translateZ(ae), B.matrixWorld.compose(B.position, B.quaternion, B.scale), B.matrixWorldInverse.copy(B.matrixWorld).invert();
15113
15113
  const be = we + ae, ye = Te + ae, Se = he - ne, Le = J + (me - ne), ze = Ve * Te / ye * be, tt = Ze * Te / ye * be;
15114
15114
  B.projectionMatrix.makePerspective(Se, Le, ze, tt, be, ye), B.projectionMatrixInverse.copy(B.projectionMatrix).invert();
@@ -15119,10 +15119,10 @@ class Wx extends gi {
15119
15119
  this.updateCamera = function(B) {
15120
15120
  if (r === null)
15121
15121
  return;
15122
- w.near = b.near = M.near = B.near, w.far = b.far = M.far = B.far, (N !== w.near || x !== w.far) && (r.updateRenderState({
15122
+ w.near = b.near = M.near = B.near, w.far = b.far = M.far = B.far, (U !== w.near || x !== w.far) && (r.updateRenderState({
15123
15123
  depthNear: w.near,
15124
15124
  depthFar: w.far
15125
- }), N = w.near, x = w.far);
15125
+ }), U = w.near, x = w.far);
15126
15126
  const q = B.parent, oe = w.cameras;
15127
15127
  z(w, q);
15128
15128
  for (let me = 0; me < oe.length; me++)
@@ -15264,15 +15264,15 @@ function $x(n, e, t, i) {
15264
15264
  const v = r[y.id], M = y.uniforms, b = y.__cache;
15265
15265
  n.bindBuffer(n.UNIFORM_BUFFER, v);
15266
15266
  for (let R = 0, w = M.length; R < w; R++) {
15267
- const N = M[R];
15268
- if (d(N, R, b) === !0) {
15269
- const x = N.__offset, E = Array.isArray(N.value) ? N.value : [N.value];
15267
+ const U = M[R];
15268
+ if (d(U, R, b) === !0) {
15269
+ const x = U.__offset, E = Array.isArray(U.value) ? U.value : [U.value];
15270
15270
  let F = 0;
15271
15271
  for (let ee = 0; ee < E.length; ee++) {
15272
- const O = E[ee], U = _(O);
15273
- typeof O == "number" ? (N.__data[0] = O, n.bufferSubData(n.UNIFORM_BUFFER, x + F, N.__data)) : O.isMatrix3 ? (N.__data[0] = O.elements[0], N.__data[1] = O.elements[1], N.__data[2] = O.elements[2], N.__data[3] = O.elements[0], N.__data[4] = O.elements[3], N.__data[5] = O.elements[4], N.__data[6] = O.elements[5], N.__data[7] = O.elements[0], N.__data[8] = O.elements[6], N.__data[9] = O.elements[7], N.__data[10] = O.elements[8], N.__data[11] = O.elements[0]) : (O.toArray(N.__data, F), F += U.storage / Float32Array.BYTES_PER_ELEMENT);
15272
+ const O = E[ee], N = _(O);
15273
+ typeof O == "number" ? (U.__data[0] = O, n.bufferSubData(n.UNIFORM_BUFFER, x + F, U.__data)) : O.isMatrix3 ? (U.__data[0] = O.elements[0], U.__data[1] = O.elements[1], U.__data[2] = O.elements[2], U.__data[3] = O.elements[0], U.__data[4] = O.elements[3], U.__data[5] = O.elements[4], U.__data[6] = O.elements[5], U.__data[7] = O.elements[0], U.__data[8] = O.elements[6], U.__data[9] = O.elements[7], U.__data[10] = O.elements[8], U.__data[11] = O.elements[0]) : (O.toArray(U.__data, F), F += N.storage / Float32Array.BYTES_PER_ELEMENT);
15274
15274
  }
15275
- n.bufferSubData(n.UNIFORM_BUFFER, x, N.__data);
15275
+ n.bufferSubData(n.UNIFORM_BUFFER, x, U.__data);
15276
15276
  }
15277
15277
  }
15278
15278
  n.bindBuffer(n.UNIFORM_BUFFER, null);
@@ -15284,8 +15284,8 @@ function $x(n, e, t, i) {
15284
15284
  M[v] = b;
15285
15285
  else {
15286
15286
  const R = Array.isArray(b) ? b : [b], w = [];
15287
- for (let N = 0; N < R.length; N++)
15288
- w.push(R[N].clone());
15287
+ for (let U = 0; U < R.length; U++)
15288
+ w.push(R[U].clone());
15289
15289
  M[v] = w;
15290
15290
  }
15291
15291
  return !0;
@@ -15294,10 +15294,10 @@ function $x(n, e, t, i) {
15294
15294
  return M[v] = b, !0;
15295
15295
  } else {
15296
15296
  const R = Array.isArray(M[v]) ? M[v] : [M[v]], w = Array.isArray(b) ? b : [b];
15297
- for (let N = 0; N < R.length; N++) {
15298
- const x = R[N];
15299
- if (x.equals(w[N]) === !1)
15300
- return x.copy(w[N]), !0;
15297
+ for (let U = 0; U < R.length; U++) {
15298
+ const x = R[U];
15299
+ if (x.equals(w[U]) === !1)
15300
+ return x.copy(w[U]), !0;
15301
15301
  }
15302
15302
  }
15303
15303
  return !1;
@@ -15307,7 +15307,7 @@ function $x(n, e, t, i) {
15307
15307
  let M = 0;
15308
15308
  const b = 16;
15309
15309
  let R = 0;
15310
- for (let w = 0, N = v.length; w < N; w++) {
15310
+ for (let w = 0, U = v.length; w < U; w++) {
15311
15311
  const x = v[w], E = {
15312
15312
  boundary: 0,
15313
15313
  // bytes
@@ -15315,7 +15315,7 @@ function $x(n, e, t, i) {
15315
15315
  // bytes
15316
15316
  }, F = Array.isArray(x.value) ? x.value : [x.value];
15317
15317
  for (let ee = 0, O = F.length; ee < O; ee++) {
15318
- const U = F[ee], C = _(U);
15318
+ const N = F[ee], C = _(N);
15319
15319
  E.boundary += C.boundary, E.storage += C.storage;
15320
15320
  }
15321
15321
  if (x.__data = new Float32Array(E.storage / Float32Array.BYTES_PER_ELEMENT), x.__offset = M, w > 0) {
@@ -15386,11 +15386,11 @@ class Lh {
15386
15386
  onShaderError: null
15387
15387
  }, this.autoClear = !0, this.autoClearColor = !0, this.autoClearDepth = !0, this.autoClearStencil = !0, this.sortObjects = !0, this.clippingPlanes = [], this.localClippingEnabled = !1, this.outputColorSpace = nt, this._useLegacyLights = !1, this.toneMapping = Xn, this.toneMappingExposure = 1;
15388
15388
  const v = this;
15389
- let M = !1, b = 0, R = 0, w = null, N = -1, x = null;
15389
+ let M = !1, b = 0, R = 0, w = null, U = -1, x = null;
15390
15390
  const E = new Ke(), F = new Ke();
15391
15391
  let ee = null;
15392
15392
  const O = new je(0);
15393
- let U = 0, C = t.width, z = t.height, H = 1, V = null, K = null;
15393
+ let N = 0, C = t.width, z = t.height, H = 1, V = null, K = null;
15394
15394
  const Q = new Ke(0, 0, C, z), B = new Ke(0, 0, C, z);
15395
15395
  let q = !1;
15396
15396
  const oe = new Na();
@@ -15616,7 +15616,7 @@ class Lh {
15616
15616
  }
15617
15617
  } else
15618
15618
  Qa(_, T, k);
15619
- w !== null && (Se.updateMultisampleRenderTarget(w), Se.updateRenderTargetMipmap(w)), T.isScene === !0 && T.onAfterRender(v, T, k), ve.resetDefaultState(), N = -1, x = null, y.pop(), y.length > 0 ? m = y[y.length - 1] : m = null, p.pop(), p.length > 0 ? _ = p[p.length - 1] : _ = null;
15619
+ w !== null && (Se.updateMultisampleRenderTarget(w), Se.updateRenderTargetMipmap(w)), T.isScene === !0 && T.onAfterRender(v, T, k), ve.resetDefaultState(), U = -1, x = null, y.pop(), y.length > 0 ? m = y[y.length - 1] : m = null, p.pop(), p.length > 0 ? _ = p[p.length - 1] : _ = null;
15620
15620
  };
15621
15621
  function Ja(T, k, j, G) {
15622
15622
  if (T.visible === !1)
@@ -15663,7 +15663,7 @@ class Lh {
15663
15663
  samples: Y ? 4 : 0
15664
15664
  })), v.getDrawingBufferSize(Te), Y ? Ae.setSize(Te.x, Te.y) : Ae.setSize(Is(Te.x), Is(Te.y));
15665
15665
  const Me = v.getRenderTarget();
15666
- v.setRenderTarget(Ae), v.getClearColor(O), U = v.getClearAlpha(), U < 1 && v.setClearColor(16777215, 0.5), v.clear();
15666
+ v.setRenderTarget(Ae), v.getClearColor(O), N = v.getClearAlpha(), N < 1 && v.setClearColor(16777215, 0.5), v.clear();
15667
15667
  const Re = v.toneMapping;
15668
15668
  v.toneMapping = Xn, Or(T, j, G), Se.updateMultisampleRenderTarget(Ae), Se.updateRenderTargetMipmap(Ae);
15669
15669
  let Ie = !1;
@@ -15674,7 +15674,7 @@ class Lh {
15674
15674
  ct.side = Ot, ct.needsUpdate = !0, el(Oe, j, G, ot, ct, Wt), ct.side = yn, ct.needsUpdate = !0, Ie = !0;
15675
15675
  }
15676
15676
  }
15677
- Ie === !0 && (Se.updateMultisampleRenderTarget(Ae), Se.updateRenderTargetMipmap(Ae)), v.setRenderTarget(Me), v.setClearColor(O, U), v.toneMapping = Re;
15677
+ Ie === !0 && (Se.updateMultisampleRenderTarget(Ae), Se.updateRenderTargetMipmap(Ae)), v.setRenderTarget(Me), v.setClearColor(O, N), v.toneMapping = Re;
15678
15678
  }
15679
15679
  function Or(T, k, j) {
15680
15680
  const G = k.isScene === !0 ? k.overrideMaterial : null;
@@ -15713,23 +15713,23 @@ class Lh {
15713
15713
  G.toneMapped && (w === null || w.isXRRenderTarget === !0) && (Wt = v.toneMapping);
15714
15714
  const yn = j.morphAttributes.position || j.morphAttributes.normal || j.morphAttributes.color, ft = yn !== void 0 ? yn.length : 0, Ge = ye.get(G), Qs = m.state.lights;
15715
15715
  if (me === !0 && (ge === !0 || T !== x)) {
15716
- const Bt = T === x && G.id === N;
15716
+ const Bt = T === x && G.id === U;
15717
15717
  Ee.setState(G, T, Bt);
15718
15718
  }
15719
15719
  let dt = !1;
15720
15720
  G.version === Ge.__version ? (Ge.needsLights && Ge.lightsStateVersion !== Qs.state.version || Ge.outputColorSpace !== Ie || Y.isInstancedMesh && Ge.instancing === !1 || !Y.isInstancedMesh && Ge.instancing === !0 || Y.isSkinnedMesh && Ge.skinning === !1 || !Y.isSkinnedMesh && Ge.skinning === !0 || Y.isInstancedMesh && Ge.instancingColor === !0 && Y.instanceColor === null || Y.isInstancedMesh && Ge.instancingColor === !1 && Y.instanceColor !== null || Ge.envMap !== Ue || G.fog === !0 && Ge.fog !== Me || Ge.numClippingPlanes !== void 0 && (Ge.numClippingPlanes !== Ee.numPlanes || Ge.numIntersection !== Ee.numIntersection) || Ge.vertexAlphas !== ke || Ge.vertexTangents !== Pe || Ge.morphTargets !== Oe || Ge.morphNormals !== ot || Ge.morphColors !== ct || Ge.toneMapping !== Wt || ae.isWebGL2 === !0 && Ge.morphTargetsCount !== ft) && (dt = !0) : (dt = !0, Ge.__version = G.version);
15721
15721
  let Zn = Ge.currentProgram;
15722
15722
  dt === !0 && (Zn = Fr(G, k, Y));
15723
- let nl = !1, er = !1, eo = !1;
15723
+ let nl = !1, tr = !1, eo = !1;
15724
15724
  const Rt = Zn.getUniforms(), Jn = Ge.uniforms;
15725
- if (ne.useProgram(Zn.program) && (nl = !0, er = !0, eo = !0), G.id !== N && (N = G.id, er = !0), nl || x !== T) {
15725
+ if (ne.useProgram(Zn.program) && (nl = !0, tr = !0, eo = !0), G.id !== U && (U = G.id, tr = !0), nl || x !== T) {
15726
15726
  Rt.setValue(L, "projectionMatrix", T.projectionMatrix), Rt.setValue(L, "viewMatrix", T.matrixWorldInverse);
15727
15727
  const Bt = Rt.map.cameraPosition;
15728
15728
  Bt !== void 0 && Bt.setValue(L, Ve.setFromMatrixPosition(T.matrixWorld)), ae.logarithmicDepthBuffer && Rt.setValue(
15729
15729
  L,
15730
15730
  "logDepthBufFC",
15731
15731
  2 / (Math.log(T.far + 1) / Math.LN2)
15732
- ), (G.isMeshPhongMaterial || G.isMeshToonMaterial || G.isMeshLambertMaterial || G.isMeshBasicMaterial || G.isMeshStandardMaterial || G.isShaderMaterial) && Rt.setValue(L, "isOrthographic", T.isOrthographicCamera === !0), x !== T && (x = T, er = !0, eo = !0);
15732
+ ), (G.isMeshPhongMaterial || G.isMeshToonMaterial || G.isMeshLambertMaterial || G.isMeshBasicMaterial || G.isMeshStandardMaterial || G.isShaderMaterial) && Rt.setValue(L, "isOrthographic", T.isOrthographicCamera === !0), x !== T && (x = T, tr = !0, eo = !0);
15733
15733
  }
15734
15734
  if (Y.isSkinnedMesh) {
15735
15735
  Rt.setOptional(L, Y, "bindMatrix"), Rt.setOptional(L, Y, "bindMatrixInverse");
@@ -15737,7 +15737,7 @@ class Lh {
15737
15737
  Bt && (ae.floatVertexTextures ? (Bt.boneTexture === null && Bt.computeBoneTexture(), Rt.setValue(L, "boneTexture", Bt.boneTexture, Se), Rt.setValue(L, "boneTextureSize", Bt.boneTextureSize)) : console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."));
15738
15738
  }
15739
15739
  const to = j.morphAttributes;
15740
- if ((to.position !== void 0 || to.normal !== void 0 || to.color !== void 0 && ae.isWebGL2 === !0) && P.update(Y, j, Zn), (er || Ge.receiveShadow !== Y.receiveShadow) && (Ge.receiveShadow = Y.receiveShadow, Rt.setValue(L, "receiveShadow", Y.receiveShadow)), G.isMeshGouraudMaterial && G.envMap !== null && (Jn.envMap.value = Ue, Jn.flipEnvMap.value = Ue.isCubeTexture && Ue.isRenderTargetTexture === !1 ? -1 : 1), er && (Rt.setValue(L, "toneMappingExposure", v.toneMappingExposure), Ge.needsLights && vf(Jn, eo), Me && G.fog === !0 && se.refreshFogUniforms(Jn, Me), se.refreshMaterialUniforms(Jn, G, H, z, Ae), Ss.upload(L, Ge.uniformsList, Jn, Se)), G.isShaderMaterial && G.uniformsNeedUpdate === !0 && (Ss.upload(L, Ge.uniformsList, Jn, Se), G.uniformsNeedUpdate = !1), G.isSpriteMaterial && Rt.setValue(L, "center", Y.center), Rt.setValue(L, "modelViewMatrix", Y.modelViewMatrix), Rt.setValue(L, "normalMatrix", Y.normalMatrix), Rt.setValue(L, "modelMatrix", Y.matrixWorld), G.isShaderMaterial || G.isRawShaderMaterial) {
15740
+ if ((to.position !== void 0 || to.normal !== void 0 || to.color !== void 0 && ae.isWebGL2 === !0) && P.update(Y, j, Zn), (tr || Ge.receiveShadow !== Y.receiveShadow) && (Ge.receiveShadow = Y.receiveShadow, Rt.setValue(L, "receiveShadow", Y.receiveShadow)), G.isMeshGouraudMaterial && G.envMap !== null && (Jn.envMap.value = Ue, Jn.flipEnvMap.value = Ue.isCubeTexture && Ue.isRenderTargetTexture === !1 ? -1 : 1), tr && (Rt.setValue(L, "toneMappingExposure", v.toneMappingExposure), Ge.needsLights && vf(Jn, eo), Me && G.fog === !0 && se.refreshFogUniforms(Jn, Me), se.refreshMaterialUniforms(Jn, G, H, z, Ae), Ss.upload(L, Ge.uniformsList, Jn, Se)), G.isShaderMaterial && G.uniformsNeedUpdate === !0 && (Ss.upload(L, Ge.uniformsList, Jn, Se), G.uniformsNeedUpdate = !1), G.isSpriteMaterial && Rt.setValue(L, "center", Y.center), Rt.setValue(L, "modelViewMatrix", Y.modelViewMatrix), Rt.setValue(L, "normalMatrix", Y.normalMatrix), Rt.setValue(L, "modelMatrix", Y.matrixWorld), G.isShaderMaterial || G.isRawShaderMaterial) {
15741
15741
  const Bt = G.uniformsGroups;
15742
15742
  for (let no = 0, yf = Bt.length; no < yf; no++)
15743
15743
  if (ae.isWebGL2) {
@@ -15786,7 +15786,7 @@ class Lh {
15786
15786
  const Ue = ye.get(T.texture), ke = k || 0;
15787
15787
  L.framebufferTextureLayer(L.FRAMEBUFFER, L.COLOR_ATTACHMENT0, Ue.__webglTexture, j || 0, ke);
15788
15788
  }
15789
- N = -1;
15789
+ U = -1;
15790
15790
  }, this.readRenderTargetPixels = function(T, k, j, G, Y, Me, Re) {
15791
15791
  if (!(T && T.isWebGLRenderTarget)) {
15792
15792
  console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");
@@ -16281,7 +16281,7 @@ function Qx(n, e) {
16281
16281
  function ey(n, e) {
16282
16282
  return n * n * e;
16283
16283
  }
16284
- function mr(n, e, t, i) {
16284
+ function gr(n, e, t, i) {
16285
16285
  return Jx(n, e) + Qx(n, t) + ey(n, i);
16286
16286
  }
16287
16287
  function ty(n, e) {
@@ -16298,7 +16298,7 @@ function iy(n, e) {
16298
16298
  function ry(n, e) {
16299
16299
  return n * n * n * e;
16300
16300
  }
16301
- function gr(n, e, t, i, r) {
16301
+ function _r(n, e, t, i, r) {
16302
16302
  return ty(n, e) + ny(n, t) + iy(n, i) + ry(n, r);
16303
16303
  }
16304
16304
  class Ph extends vn {
@@ -16308,8 +16308,8 @@ class Ph extends vn {
16308
16308
  getPoint(e, t = new ue()) {
16309
16309
  const i = t, r = this.v0, s = this.v1, o = this.v2, a = this.v3;
16310
16310
  return i.set(
16311
- gr(e, r.x, s.x, o.x, a.x),
16312
- gr(e, r.y, s.y, o.y, a.y)
16311
+ _r(e, r.x, s.x, o.x, a.x),
16312
+ _r(e, r.y, s.y, o.y, a.y)
16313
16313
  ), i;
16314
16314
  }
16315
16315
  copy(e) {
@@ -16330,9 +16330,9 @@ class sy extends vn {
16330
16330
  getPoint(e, t = new D()) {
16331
16331
  const i = t, r = this.v0, s = this.v1, o = this.v2, a = this.v3;
16332
16332
  return i.set(
16333
- gr(e, r.x, s.x, o.x, a.x),
16334
- gr(e, r.y, s.y, o.y, a.y),
16335
- gr(e, r.z, s.z, o.z, a.z)
16333
+ _r(e, r.x, s.x, o.x, a.x),
16334
+ _r(e, r.y, s.y, o.y, a.y),
16335
+ _r(e, r.z, s.z, o.z, a.z)
16336
16336
  ), i;
16337
16337
  }
16338
16338
  copy(e) {
@@ -16411,8 +16411,8 @@ class Dh extends vn {
16411
16411
  getPoint(e, t = new ue()) {
16412
16412
  const i = t, r = this.v0, s = this.v1, o = this.v2;
16413
16413
  return i.set(
16414
- mr(e, r.x, s.x, o.x),
16415
- mr(e, r.y, s.y, o.y)
16414
+ gr(e, r.x, s.x, o.x),
16415
+ gr(e, r.y, s.y, o.y)
16416
16416
  ), i;
16417
16417
  }
16418
16418
  copy(e) {
@@ -16433,9 +16433,9 @@ class ay extends vn {
16433
16433
  getPoint(e, t = new D()) {
16434
16434
  const i = t, r = this.v0, s = this.v1, o = this.v2;
16435
16435
  return i.set(
16436
- mr(e, r.x, s.x, o.x),
16437
- mr(e, r.y, s.y, o.y),
16438
- mr(e, r.z, s.z, o.z)
16436
+ gr(e, r.x, s.x, o.x),
16437
+ gr(e, r.y, s.y, o.y),
16438
+ gr(e, r.z, s.z, o.z)
16439
16439
  ), i;
16440
16440
  }
16441
16441
  copy(e) {
@@ -16971,7 +16971,7 @@ function Ty(n, e, t, i) {
16971
16971
  r += (n[o] - n[s]) * (n[s + 1] + n[o + 1]), o = s;
16972
16972
  return r;
16973
16973
  }
16974
- class _r {
16974
+ class vr {
16975
16975
  // calculate area of the contour polygon
16976
16976
  static area(e) {
16977
16977
  const t = e.length;
@@ -16981,7 +16981,7 @@ class _r {
16981
16981
  return i * 0.5;
16982
16982
  }
16983
16983
  static isClockWise(e) {
16984
- return _r.area(e) < 0;
16984
+ return vr.area(e) < 0;
16985
16985
  }
16986
16986
  static triangulateShape(e, t) {
16987
16987
  const i = [], r = [], s = [];
@@ -17020,19 +17020,19 @@ class ka extends _n {
17020
17020
  const l = [], c = t.curveSegments !== void 0 ? t.curveSegments : 12, u = t.steps !== void 0 ? t.steps : 1, h = t.depth !== void 0 ? t.depth : 1;
17021
17021
  let f = t.bevelEnabled !== void 0 ? t.bevelEnabled : !0, d = t.bevelThickness !== void 0 ? t.bevelThickness : 0.2, g = t.bevelSize !== void 0 ? t.bevelSize : d - 0.1, _ = t.bevelOffset !== void 0 ? t.bevelOffset : 0, m = t.bevelSegments !== void 0 ? t.bevelSegments : 3;
17022
17022
  const p = t.extrudePath, y = t.UVGenerator !== void 0 ? t.UVGenerator : wy;
17023
- let v, M = !1, b, R, w, N;
17024
- p && (v = p.getSpacedPoints(u), M = !0, f = !1, b = p.computeFrenetFrames(u, !1), R = new D(), w = new D(), N = new D()), f || (m = 0, d = 0, g = 0, _ = 0);
17023
+ let v, M = !1, b, R, w, U;
17024
+ p && (v = p.getSpacedPoints(u), M = !0, f = !1, b = p.computeFrenetFrames(u, !1), R = new D(), w = new D(), U = new D()), f || (m = 0, d = 0, g = 0, _ = 0);
17025
17025
  const x = a.extractPoints(c);
17026
17026
  let E = x.shape;
17027
17027
  const F = x.holes;
17028
- if (!_r.isClockWise(E)) {
17028
+ if (!vr.isClockWise(E)) {
17029
17029
  E = E.reverse();
17030
17030
  for (let L = 0, he = F.length; L < he; L++) {
17031
17031
  const J = F[L];
17032
- _r.isClockWise(J) && (F[L] = J.reverse());
17032
+ vr.isClockWise(J) && (F[L] = J.reverse());
17033
17033
  }
17034
17034
  }
17035
- const O = _r.triangulateShape(E, F), U = E;
17035
+ const O = vr.triangulateShape(E, F), N = E;
17036
17036
  for (let L = 0, he = F.length; L < he; L++) {
17037
17037
  const J = F[L];
17038
17038
  E = E.concat(J);
@@ -17058,8 +17058,8 @@ class ka extends _n {
17058
17058
  return new ue(ae / be, ne / be);
17059
17059
  }
17060
17060
  const K = [];
17061
- for (let L = 0, he = U.length, J = he - 1, ae = L + 1; L < he; L++, J++, ae++)
17062
- J === he && (J = 0), ae === he && (ae = 0), K[L] = V(U[L], U[J], U[ae]);
17061
+ for (let L = 0, he = N.length, J = he - 1, ae = L + 1; L < he; L++, J++, ae++)
17062
+ J === he && (J = 0), ae === he && (ae = 0), K[L] = V(N[L], N[J], N[ae]);
17063
17063
  const Q = [];
17064
17064
  let B, q = K.concat();
17065
17065
  for (let L = 0, he = F.length; L < he; L++) {
@@ -17071,8 +17071,8 @@ class ka extends _n {
17071
17071
  }
17072
17072
  for (let L = 0; L < m; L++) {
17073
17073
  const he = L / m, J = d * Math.cos(he * Math.PI / 2), ae = g * Math.sin(he * Math.PI / 2) + _;
17074
- for (let ne = 0, be = U.length; ne < be; ne++) {
17075
- const ye = C(U[ne], K[ne], ae);
17074
+ for (let ne = 0, be = N.length; ne < be; ne++) {
17075
+ const ye = C(N[ne], K[ne], ae);
17076
17076
  we(ye.x, ye.y, -J);
17077
17077
  }
17078
17078
  for (let ne = 0, be = F.length; ne < be; ne++) {
@@ -17087,17 +17087,17 @@ class ka extends _n {
17087
17087
  const oe = g + _;
17088
17088
  for (let L = 0; L < z; L++) {
17089
17089
  const he = f ? C(E[L], q[L], oe) : E[L];
17090
- M ? (w.copy(b.normals[0]).multiplyScalar(he.x), R.copy(b.binormals[0]).multiplyScalar(he.y), N.copy(v[0]).add(w).add(R), we(N.x, N.y, N.z)) : we(he.x, he.y, 0);
17090
+ M ? (w.copy(b.normals[0]).multiplyScalar(he.x), R.copy(b.binormals[0]).multiplyScalar(he.y), U.copy(v[0]).add(w).add(R), we(U.x, U.y, U.z)) : we(he.x, he.y, 0);
17091
17091
  }
17092
17092
  for (let L = 1; L <= u; L++)
17093
17093
  for (let he = 0; he < z; he++) {
17094
17094
  const J = f ? C(E[he], q[he], oe) : E[he];
17095
- M ? (w.copy(b.normals[L]).multiplyScalar(J.x), R.copy(b.binormals[L]).multiplyScalar(J.y), N.copy(v[L]).add(w).add(R), we(N.x, N.y, N.z)) : we(J.x, J.y, h / u * L);
17095
+ M ? (w.copy(b.normals[L]).multiplyScalar(J.x), R.copy(b.binormals[L]).multiplyScalar(J.y), U.copy(v[L]).add(w).add(R), we(U.x, U.y, U.z)) : we(J.x, J.y, h / u * L);
17096
17096
  }
17097
17097
  for (let L = m - 1; L >= 0; L--) {
17098
17098
  const he = L / m, J = d * Math.cos(he * Math.PI / 2), ae = g * Math.sin(he * Math.PI / 2) + _;
17099
- for (let ne = 0, be = U.length; ne < be; ne++) {
17100
- const ye = C(U[ne], K[ne], ae);
17099
+ for (let ne = 0, be = N.length; ne < be; ne++) {
17100
+ const ye = C(N[ne], K[ne], ae);
17101
17101
  we(ye.x, ye.y, h + J);
17102
17102
  }
17103
17103
  for (let ne = 0, be = F.length; ne < be; ne++) {
@@ -17138,7 +17138,7 @@ class ka extends _n {
17138
17138
  function ge() {
17139
17139
  const L = r.length / 3;
17140
17140
  let he = 0;
17141
- Ae(U, he), he += U.length;
17141
+ Ae(N, he), he += N.length;
17142
17142
  for (let J = 0, ae = F.length; J < ae; J++) {
17143
17143
  const ne = F[J];
17144
17144
  Ae(ne, he), he += ne.length;
@@ -17266,7 +17266,7 @@ function Jc(n, e, t) {
17266
17266
  const i = `${n.x},${n.y},${n.z}-${e.x},${e.y},${e.z}`, r = `${e.x},${e.y},${e.z}-${n.x},${n.y},${n.z}`;
17267
17267
  return t.has(i) === !0 || t.has(r) === !0 ? !1 : (t.add(i), t.add(r), !0);
17268
17268
  }
17269
- class Ry extends Zi {
17269
+ class Ry extends Ji {
17270
17270
  constructor(e) {
17271
17271
  super(), this.isMeshPhongMaterial = !0, this.type = "MeshPhongMaterial", this.color = new je(16777215), this.specular = new je(1118481), this.shininess = 30, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new je(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = dh, this.normalScale = new ue(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.combine = Ca, 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);
17272
17272
  }
@@ -17342,7 +17342,7 @@ class Py {
17342
17342
  return this.bias !== 0 && (e.bias = this.bias), this.normalBias !== 0 && (e.normalBias = this.normalBias), this.radius !== 1 && (e.radius = this.radius), (this.mapSize.x !== 512 || this.mapSize.y !== 512) && (e.mapSize = this.mapSize.toArray()), e.camera = this.camera.toJSON(!1).object, delete e.camera.matrix, e;
17343
17343
  }
17344
17344
  }
17345
- const tu = /* @__PURE__ */ new it(), sr = /* @__PURE__ */ new D(), Bo = /* @__PURE__ */ new D();
17345
+ const tu = /* @__PURE__ */ new it(), or = /* @__PURE__ */ new D(), Bo = /* @__PURE__ */ new D();
17346
17346
  class Dy extends Py {
17347
17347
  constructor() {
17348
17348
  super(new Vt(90, 1, 0.5, 500)), this.isPointLightShadow = !0, this._frameExtents = new ue(4, 2), this._viewportCount = 6, this._viewports = [
@@ -17388,7 +17388,7 @@ class Dy extends Py {
17388
17388
  }
17389
17389
  updateMatrices(e, t = 0) {
17390
17390
  const i = this.camera, r = this.matrix, s = e.distance || i.far;
17391
- s !== i.far && (i.far = s, i.updateProjectionMatrix()), sr.setFromMatrixPosition(e.matrixWorld), i.position.copy(sr), Bo.copy(i.position), Bo.add(this._cubeDirections[t]), i.up.copy(this._cubeUps[t]), i.lookAt(Bo), i.updateMatrixWorld(), r.makeTranslation(-sr.x, -sr.y, -sr.z), tu.multiplyMatrices(i.projectionMatrix, i.matrixWorldInverse), this._frustum.setFromProjectionMatrix(tu);
17391
+ s !== i.far && (i.far = s, i.updateProjectionMatrix()), or.setFromMatrixPosition(e.matrixWorld), i.position.copy(or), Bo.copy(i.position), Bo.add(this._cubeDirections[t]), i.up.copy(this._cubeUps[t]), i.lookAt(Bo), i.updateMatrixWorld(), r.makeTranslation(-or.x, -or.y, -or.z), tu.multiplyMatrices(i.projectionMatrix, i.matrixWorldInverse), this._frustum.setFromProjectionMatrix(tu);
17392
17392
  }
17393
17393
  }
17394
17394
  class Iy extends Ly {
@@ -17607,7 +17607,7 @@ class By extends gi {
17607
17607
  let c = 1;
17608
17608
  const u = new D(), h = new ue(), f = new ue(), d = new ue(), g = new ue(), _ = new ue(), m = new ue(), p = new ue(), y = new ue(), v = new ue(), M = new D(), b = new ue();
17609
17609
  let R = !1;
17610
- const w = [], N = {};
17610
+ const w = [], U = {};
17611
17611
  function x(P) {
17612
17612
  return P !== null ? 2 * Math.PI / 60 * i.autoRotateSpeed * P : 2 * Math.PI / 60 / 60 * i.autoRotateSpeed;
17613
17613
  }
@@ -17625,7 +17625,7 @@ class By extends gi {
17625
17625
  return function(xe, pe) {
17626
17626
  P.setFromMatrixColumn(pe, 0), P.multiplyScalar(-xe), u.add(P);
17627
17627
  };
17628
- }(), U = function() {
17628
+ }(), N = function() {
17629
17629
  const P = new D();
17630
17630
  return function(xe, pe) {
17631
17631
  i.screenSpacePanning === !0 ? P.setFromMatrixColumn(pe, 1) : (P.setFromMatrixColumn(pe, 0), P.crossVectors(i.object.up, P)), P.multiplyScalar(xe), u.add(P);
@@ -17638,9 +17638,9 @@ class By extends gi {
17638
17638
  const Ne = i.object.position;
17639
17639
  P.copy(Ne).sub(i.target);
17640
17640
  let We = P.length();
17641
- We *= Math.tan(i.object.fov / 2 * Math.PI / 180), O(2 * xe * We / ve.clientHeight, i.object.matrix), U(2 * pe * We / ve.clientHeight, i.object.matrix);
17641
+ We *= Math.tan(i.object.fov / 2 * Math.PI / 180), O(2 * xe * We / ve.clientHeight, i.object.matrix), N(2 * pe * We / ve.clientHeight, i.object.matrix);
17642
17642
  } else
17643
- i.object.isOrthographicCamera ? (O(xe * (i.object.right - i.object.left) / i.object.zoom / ve.clientWidth, i.object.matrix), U(pe * (i.object.top - i.object.bottom) / i.object.zoom / ve.clientHeight, i.object.matrix)) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."), i.enablePan = !1);
17643
+ i.object.isOrthographicCamera ? (O(xe * (i.object.right - i.object.left) / i.object.zoom / ve.clientWidth, i.object.matrix), N(pe * (i.object.top - i.object.bottom) / i.object.zoom / ve.clientHeight, i.object.matrix)) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."), i.enablePan = !1);
17644
17644
  };
17645
17645
  }();
17646
17646
  function z(P) {
@@ -17910,7 +17910,7 @@ class By extends gi {
17910
17910
  w.push(P);
17911
17911
  }
17912
17912
  function Ee(P) {
17913
- delete N[P.pointerId];
17913
+ delete U[P.pointerId];
17914
17914
  for (let te = 0; te < w.length; te++)
17915
17915
  if (w[te].pointerId == P.pointerId) {
17916
17916
  w.splice(te, 1);
@@ -17918,12 +17918,12 @@ class By extends gi {
17918
17918
  }
17919
17919
  }
17920
17920
  function ce(P) {
17921
- let te = N[P.pointerId];
17922
- te === void 0 && (te = new ue(), N[P.pointerId] = te), te.set(P.pageX, P.pageY);
17921
+ let te = U[P.pointerId];
17922
+ te === void 0 && (te = new ue(), U[P.pointerId] = te), te.set(P.pageX, P.pageY);
17923
17923
  }
17924
17924
  function X(P) {
17925
17925
  const te = P.pointerId === w[0].pointerId ? w[1] : w[0];
17926
- return N[te.pointerId];
17926
+ return U[te.pointerId];
17927
17927
  }
17928
17928
  i.domElement.addEventListener("contextmenu", ie), i.domElement.addEventListener("pointerdown", ye), i.domElement.addEventListener("pointercancel", Le), i.domElement.addEventListener("wheel", A, { passive: !1 }), this.update();
17929
17929
  }
@@ -18739,7 +18739,7 @@ function Zy(n) {
18739
18739
  function Ar(n) {
18740
18740
  return n > 1 ? Nt : n < -1 ? -Nt : Math.asin(n);
18741
18741
  }
18742
- function cr() {
18742
+ function ur() {
18743
18743
  }
18744
18744
  function Ns(n, e) {
18745
18745
  n && xu.hasOwnProperty(n.type) && xu[n.type](n, e);
@@ -18800,7 +18800,7 @@ function Jy(n, e) {
18800
18800
  function pa(n) {
18801
18801
  return [wr(n[1], n[0]), Ar(n[2])];
18802
18802
  }
18803
- function qi(n) {
18803
+ function ji(n) {
18804
18804
  var e = n[0], t = n[1], i = ut(t);
18805
18805
  return [i * ut(e), i * ht(e), ht(t)];
18806
18806
  }
@@ -18879,7 +18879,7 @@ function eS(n, e, t, i, r, s) {
18879
18879
  }
18880
18880
  }
18881
18881
  function bu(n, e) {
18882
- e = qi(e), e[0] -= n, ma(e);
18882
+ e = ji(e), e[0] -= n, ma(e);
18883
18883
  var t = Zy(-e[1]);
18884
18884
  return ((-e[2] < 0 ? -t : t) + Kt - Qe) % Kt;
18885
18885
  }
@@ -18892,7 +18892,7 @@ function Wh() {
18892
18892
  lineStart: function() {
18893
18893
  n.push(e = []);
18894
18894
  },
18895
- lineEnd: cr,
18895
+ lineEnd: ur,
18896
18896
  rejoin: function() {
18897
18897
  n.length > 1 && n.push(n.pop().concat(n.shift()));
18898
18898
  },
@@ -18970,14 +18970,14 @@ function tS(n, e) {
18970
18970
  for (var c = 0, u = n.length; c < u; ++c)
18971
18971
  if (f = (h = n[c]).length)
18972
18972
  for (var h, f, d = h[f - 1], g = Wo(d), _ = d[1] / 2 + _u, m = ht(_), p = ut(_), y = 0; y < f; ++y, g = M, m = R, p = w, d = v) {
18973
- var v = h[y], M = Wo(v), b = v[1] / 2 + _u, R = ht(b), w = ut(b), N = M - g, x = N >= 0 ? 1 : -1, E = x * N, F = E > Xe, ee = m * R;
18974
- if (l.add(wr(ee * x * ht(E), p * w + ee * ut(E))), o += F ? N + x * Kt : N, F ^ g >= t ^ M >= t) {
18975
- var O = Os(qi(d), qi(v));
18973
+ var v = h[y], M = Wo(v), b = v[1] / 2 + _u, R = ht(b), w = ut(b), U = M - g, x = U >= 0 ? 1 : -1, E = x * U, F = E > Xe, ee = m * R;
18974
+ if (l.add(wr(ee * x * ht(E), p * w + ee * ut(E))), o += F ? U + x * Kt : U, F ^ g >= t ^ M >= t) {
18975
+ var O = Os(ji(d), ji(v));
18976
18976
  ma(O);
18977
- var U = Os(s, O);
18978
- ma(U);
18979
- var C = (F ^ N >= 0 ? -1 : 1) * Ar(U[2]);
18980
- (i > C || i === C && (O[0] || O[1])) && (a += F ^ N >= 0 ? 1 : -1);
18977
+ var N = Os(s, O);
18978
+ ma(N);
18979
+ var C = (F ^ U >= 0 ? -1 : 1) * Ar(N[2]);
18980
+ (i > C || i === C && (O[0] || O[1])) && (a += F ^ U >= 0 ? 1 : -1);
18981
18981
  }
18982
18982
  }
18983
18983
  return (o < -Qe || o < Qe && l < -$y) ^ a & 1;
@@ -19020,11 +19020,11 @@ function $h(n, e, t, i) {
19020
19020
  }
19021
19021
  function v() {
19022
19022
  p(h[0][0], h[0][1]), a.lineEnd();
19023
- var M = a.clean(), b = o.result(), R, w = b.length, N, x, E;
19023
+ var M = a.clean(), b = o.result(), R, w = b.length, U, x, E;
19024
19024
  if (h.pop(), c.push(h), h = null, !!w) {
19025
19025
  if (M & 1) {
19026
- if (x = b[0], (N = x.length - 1) > 0) {
19027
- for (l || (r.polygonStart(), l = !0), r.lineStart(), R = 0; R < N; ++R)
19026
+ if (x = b[0], (U = x.length - 1) > 0) {
19027
+ for (l || (r.polygonStart(), l = !0), r.lineStart(), R = 0; R < U; ++R)
19028
19028
  r.point((E = x[R])[0], E[1]);
19029
19029
  r.lineEnd();
19030
19030
  }
@@ -19117,22 +19117,22 @@ function aS(n) {
19117
19117
  };
19118
19118
  }
19119
19119
  function l(u, h, f) {
19120
- var d = qi(u), g = qi(h), _ = [1, 0, 0], m = Os(d, g), p = gs(m, m), y = m[0], v = p - y * y;
19120
+ var d = ji(u), g = ji(h), _ = [1, 0, 0], m = Os(d, g), p = gs(m, m), y = m[0], v = p - y * y;
19121
19121
  if (!v)
19122
19122
  return !f && u;
19123
- var M = e * p / v, b = -e * y / v, R = Os(_, m), w = _s(_, M), N = _s(m, b);
19124
- Vo(w, N);
19123
+ var M = e * p / v, b = -e * y / v, R = Os(_, m), w = _s(_, M), U = _s(m, b);
19124
+ Vo(w, U);
19125
19125
  var x = R, E = gs(w, x), F = gs(x, x), ee = E * E - F * (gs(w, w) - 1);
19126
19126
  if (!(ee < 0)) {
19127
- var O = qs(ee), U = _s(x, (-E - O) / F);
19128
- if (Vo(U, w), U = pa(U), !f)
19129
- return U;
19127
+ var O = qs(ee), N = _s(x, (-E - O) / F);
19128
+ if (Vo(N, w), N = pa(N), !f)
19129
+ return N;
19130
19130
  var C = u[0], z = h[0], H = u[1], V = h[1], K;
19131
19131
  z < C && (K = C, C = z, z = K);
19132
19132
  var Q = z - C, B = lt(Q - Xe) < Qe, q = B || Q < Qe;
19133
- if (!B && V < H && (K = H, H = V, V = K), q ? B ? H + V > 0 ^ U[1] < (lt(U[0] - C) < Qe ? H : V) : H <= U[1] && U[1] <= V : Q > Xe ^ (C <= U[0] && U[0] <= z)) {
19133
+ if (!B && V < H && (K = H, H = V, V = K), q ? B ? H + V > 0 ^ N[1] < (lt(N[0] - C) < Qe ? H : V) : H <= N[1] && N[1] <= V : Q > Xe ^ (C <= N[0] && N[0] <= z)) {
19134
19134
  var oe = _s(x, (-E + O) / F);
19135
- return Vo(oe, w), [U, pa(oe)];
19135
+ return Vo(oe, w), [N, pa(oe)];
19136
19136
  }
19137
19137
  }
19138
19138
  }
@@ -19190,7 +19190,7 @@ function lS(n, e, t, i, r, s) {
19190
19190
  }
19191
19191
  }
19192
19192
  }
19193
- var ur = 1e9, xs = -ur;
19193
+ var hr = 1e9, xs = -hr;
19194
19194
  function cS(n, e, t, i) {
19195
19195
  function r(c, u) {
19196
19196
  return n <= c && c <= t && e <= u && u <= i;
@@ -19216,13 +19216,13 @@ function cS(n, e, t, i) {
19216
19216
  }
19217
19217
  return function(c) {
19218
19218
  var u = c, h = Wh(), f, d, g, _, m, p, y, v, M, b, R, w = {
19219
- point: N,
19219
+ point: U,
19220
19220
  lineStart: ee,
19221
19221
  lineEnd: O,
19222
19222
  polygonStart: E,
19223
19223
  polygonEnd: F
19224
19224
  };
19225
- function N(C, z) {
19225
+ function U(C, z) {
19226
19226
  r(C, z) && u.point(C, z);
19227
19227
  }
19228
19228
  function x() {
@@ -19239,19 +19239,19 @@ function cS(n, e, t, i) {
19239
19239
  (z || H) && (c.polygonStart(), z && (c.lineStart(), s(null, null, 1, c), c.lineEnd()), H && Xh(f, a, C, s, c), c.polygonEnd()), u = c, f = d = g = null;
19240
19240
  }
19241
19241
  function ee() {
19242
- w.point = U, d && d.push(g = []), b = !0, M = !1, y = v = NaN;
19242
+ w.point = N, d && d.push(g = []), b = !0, M = !1, y = v = NaN;
19243
19243
  }
19244
19244
  function O() {
19245
- f && (U(_, m), p && M && h.rejoin(), f.push(h.result())), w.point = N, M && u.lineEnd();
19245
+ f && (N(_, m), p && M && h.rejoin(), f.push(h.result())), w.point = U, M && u.lineEnd();
19246
19246
  }
19247
- function U(C, z) {
19247
+ function N(C, z) {
19248
19248
  var H = r(C, z);
19249
19249
  if (d && g.push([C, z]), b)
19250
19250
  _ = C, m = z, p = H, b = !1, H && (u.lineStart(), u.point(C, z));
19251
19251
  else if (H && M)
19252
19252
  u.point(C, z);
19253
19253
  else {
19254
- var V = [y = Math.max(xs, Math.min(ur, y)), v = Math.max(xs, Math.min(ur, v))], K = [C = Math.max(xs, Math.min(ur, C)), z = Math.max(xs, Math.min(ur, z))];
19254
+ var V = [y = Math.max(xs, Math.min(hr, y)), v = Math.max(xs, Math.min(hr, v))], K = [C = Math.max(xs, Math.min(hr, C)), z = Math.max(xs, Math.min(hr, z))];
19255
19255
  lS(V, K, n, e, t, i) ? (M || (u.lineStart(), u.point(V[0], V[1])), u.point(K[0], K[1]), H || u.lineEnd(), R = !1) : H && (u.lineStart(), u.point(C, z), R = !1);
19256
19256
  }
19257
19257
  y = C, v = z, M = H;
@@ -19260,19 +19260,19 @@ function cS(n, e, t, i) {
19260
19260
  };
19261
19261
  }
19262
19262
  const Au = (n) => n;
19263
- var ji = 1 / 0, Fs = ji, Cr = -ji, Bs = Cr, uS = {
19263
+ var Yi = 1 / 0, Fs = Yi, Cr = -Yi, Bs = Cr, uS = {
19264
19264
  point: hS,
19265
- lineStart: cr,
19266
- lineEnd: cr,
19267
- polygonStart: cr,
19268
- polygonEnd: cr,
19265
+ lineStart: ur,
19266
+ lineEnd: ur,
19267
+ polygonStart: ur,
19268
+ polygonEnd: ur,
19269
19269
  result: function() {
19270
- var n = [[ji, Fs], [Cr, Bs]];
19271
- return Cr = Bs = -(Fs = ji = 1 / 0), n;
19270
+ var n = [[Yi, Fs], [Cr, Bs]];
19271
+ return Cr = Bs = -(Fs = Yi = 1 / 0), n;
19272
19272
  }
19273
19273
  };
19274
19274
  function hS(n, e) {
19275
- n < ji && (ji = n), n > Cr && (Cr = n), e < Fs && (Fs = e), e > Bs && (Bs = e);
19275
+ n < Yi && (Yi = n), n > Cr && (Cr = n), e < Fs && (Fs = e), e > Bs && (Bs = e);
19276
19276
  }
19277
19277
  const Cu = uS;
19278
19278
  function Va(n) {
@@ -19346,8 +19346,8 @@ function _S(n, e) {
19346
19346
  function t(i, r, s, o, a, l, c, u, h, f, d, g, _, m) {
19347
19347
  var p = c - i, y = u - r, v = p * p + y * y;
19348
19348
  if (v > 4 * e && _--) {
19349
- var M = o + f, b = a + d, R = l + g, w = qs(M * M + b * b + R * R), N = Ar(R /= w), x = lt(lt(R) - 1) < Qe || lt(s - h) < Qe ? (s + h) / 2 : wr(b, M), E = n(x, N), F = E[0], ee = E[1], O = F - i, U = ee - r, C = y * O - p * U;
19350
- (C * C / v > e || lt((p * O + y * U) / v - 0.5) > 0.3 || o * f + a * d + l * g < mS) && (t(i, r, s, o, a, l, F, ee, x, M /= w, b /= w, R, _, m), m.point(F, ee), t(F, ee, x, M, b, R, c, u, h, f, d, g, _, m));
19349
+ var M = o + f, b = a + d, R = l + g, w = qs(M * M + b * b + R * R), U = Ar(R /= w), x = lt(lt(R) - 1) < Qe || lt(s - h) < Qe ? (s + h) / 2 : wr(b, M), E = n(x, U), F = E[0], ee = E[1], O = F - i, N = ee - r, C = y * O - p * N;
19350
+ (C * C / v > e || lt((p * O + y * N) / v - 0.5) > 0.3 || o * f + a * d + l * g < mS) && (t(i, r, s, o, a, l, F, ee, x, M /= w, b /= w, R, _, m), m.point(F, ee), t(F, ee, x, M, b, R, c, u, h, f, d, g, _, m));
19351
19351
  }
19352
19352
  }
19353
19353
  return function(i) {
@@ -19362,15 +19362,15 @@ function _S(n, e) {
19362
19362
  i.polygonEnd(), m.lineStart = y;
19363
19363
  }
19364
19364
  };
19365
- function p(N, x) {
19366
- N = n(N, x), i.point(N[0], N[1]);
19365
+ function p(U, x) {
19366
+ U = n(U, x), i.point(U[0], U[1]);
19367
19367
  }
19368
19368
  function y() {
19369
19369
  h = NaN, m.point = v, i.lineStart();
19370
19370
  }
19371
- function v(N, x) {
19372
- var E = qi([N, x]), F = n(N, x);
19373
- t(h, f, u, d, g, _, h = F[0], f = F[1], u = N, d = E[0], g = E[1], _ = E[2], Ru, i), i.point(h, f);
19371
+ function v(U, x) {
19372
+ var E = ji([U, x]), F = n(U, x);
19373
+ t(h, f, u, d, g, _, h = F[0], f = F[1], u = U, d = E[0], g = E[1], _ = E[2], Ru, i), i.point(h, f);
19374
19374
  }
19375
19375
  function M() {
19376
19376
  m.point = p, i.lineEnd();
@@ -19378,8 +19378,8 @@ function _S(n, e) {
19378
19378
  function b() {
19379
19379
  y(), m.point = R, m.lineEnd = w;
19380
19380
  }
19381
- function R(N, x) {
19382
- v(r = N, x), s = h, o = f, a = d, l = g, c = _, m.point = v;
19381
+ function R(U, x) {
19382
+ v(r = U, x), s = h, o = f, a = d, l = g, c = _, m.point = v;
19383
19383
  }
19384
19384
  function w() {
19385
19385
  t(h, f, u, d, g, _, s, o, r, a, l, c, Ru, i), m.lineEnd = M, M();
@@ -19425,23 +19425,23 @@ function SS(n) {
19425
19425
  })();
19426
19426
  }
19427
19427
  function MS(n) {
19428
- var e, t = 150, i = 480, r = 250, s = 0, o = 0, a = 0, l = 0, c = 0, u, h = 0, f = 1, d = 1, g = null, _ = wu, m = null, p, y, v, M = Au, b = 0.5, R, w, N, x, E;
19428
+ var e, t = 150, i = 480, r = 250, s = 0, o = 0, a = 0, l = 0, c = 0, u, h = 0, f = 1, d = 1, g = null, _ = wu, m = null, p, y, v, M = Au, b = 0.5, R, w, U, x, E;
19429
19429
  function F(C) {
19430
- return N(C[0] * mt, C[1] * mt);
19430
+ return U(C[0] * mt, C[1] * mt);
19431
19431
  }
19432
19432
  function ee(C) {
19433
- return C = N.invert(C[0], C[1]), C && [C[0] * Gt, C[1] * Gt];
19433
+ return C = U.invert(C[0], C[1]), C && [C[0] * Gt, C[1] * Gt];
19434
19434
  }
19435
19435
  F.stream = function(C) {
19436
19436
  return x && E === C ? x : x = vS(xS(u)(_(R(M(E = C)))));
19437
19437
  }, F.preclip = function(C) {
19438
- return arguments.length ? (_ = C, g = void 0, U()) : _;
19438
+ return arguments.length ? (_ = C, g = void 0, N()) : _;
19439
19439
  }, F.postclip = function(C) {
19440
- return arguments.length ? (M = C, m = p = y = v = null, U()) : M;
19440
+ return arguments.length ? (M = C, m = p = y = v = null, N()) : M;
19441
19441
  }, F.clipAngle = function(C) {
19442
- return arguments.length ? (_ = +C ? aS(g = C * mt) : (g = null, wu), U()) : g * Gt;
19442
+ return arguments.length ? (_ = +C ? aS(g = C * mt) : (g = null, wu), N()) : g * Gt;
19443
19443
  }, F.clipExtent = function(C) {
19444
- return arguments.length ? (M = C == null ? (m = p = y = v = null, Au) : cS(m = +C[0][0], p = +C[0][1], y = +C[1][0], v = +C[1][1]), U()) : m == null ? null : [[m, p], [y, v]];
19444
+ return arguments.length ? (M = C == null ? (m = p = y = v = null, Au) : cS(m = +C[0][0], p = +C[0][1], y = +C[1][0], v = +C[1][1]), N()) : m == null ? null : [[m, p], [y, v]];
19445
19445
  }, F.scale = function(C) {
19446
19446
  return arguments.length ? (t = +C, O()) : t;
19447
19447
  }, F.translate = function(C) {
@@ -19457,7 +19457,7 @@ function MS(n) {
19457
19457
  }, F.reflectY = function(C) {
19458
19458
  return arguments.length ? (d = C ? -1 : 1, O()) : d < 0;
19459
19459
  }, F.precision = function(C) {
19460
- return arguments.length ? (R = Lu(w, b = C * C), U()) : qs(b);
19460
+ return arguments.length ? (R = Lu(w, b = C * C), N()) : qs(b);
19461
19461
  }, F.fitExtent = function(C, z) {
19462
19462
  return qh(F, C, z);
19463
19463
  }, F.fitSize = function(C, z) {
@@ -19469,9 +19469,9 @@ function MS(n) {
19469
19469
  };
19470
19470
  function O() {
19471
19471
  var C = Pu(t, 0, 0, f, d, h).apply(null, e(s, o)), z = Pu(t, i - C[0], r - C[1], f, d, h);
19472
- return u = Vh(a, l, c), w = ga(e, z), N = ga(u, w), R = Lu(w, b), U();
19472
+ return u = Vh(a, l, c), w = ga(e, z), U = ga(u, w), R = Lu(w, b), N();
19473
19473
  }
19474
- function U() {
19474
+ function N() {
19475
19475
  return x = E = null, F;
19476
19476
  }
19477
19477
  return function() {
@@ -19504,16 +19504,16 @@ function ES(n) {
19504
19504
  }
19505
19505
  return u();
19506
19506
  }
19507
- function hr(n, e, t) {
19507
+ function fr(n, e, t) {
19508
19508
  this.k = n, this.x = e, this.y = t;
19509
19509
  }
19510
- hr.prototype = {
19511
- constructor: hr,
19510
+ fr.prototype = {
19511
+ constructor: fr,
19512
19512
  scale: function(n) {
19513
- return n === 1 ? this : new hr(this.k * n, this.x, this.y);
19513
+ return n === 1 ? this : new fr(this.k * n, this.x, this.y);
19514
19514
  },
19515
19515
  translate: function(n, e) {
19516
- return n === 0 & e === 0 ? this : new hr(this.k, this.x + this.k * n, this.y + this.k * e);
19516
+ return n === 0 & e === 0 ? this : new fr(this.k, this.x + this.k * n, this.y + this.k * e);
19517
19517
  },
19518
19518
  apply: function(n) {
19519
19519
  return [n[0] * this.k + this.x, n[1] * this.k + this.y];
@@ -19543,7 +19543,7 @@ hr.prototype = {
19543
19543
  return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")";
19544
19544
  }
19545
19545
  };
19546
- hr.prototype;
19546
+ fr.prototype;
19547
19547
  function jh(n, e) {
19548
19548
  return function() {
19549
19549
  return n.apply(e, arguments);
@@ -19552,7 +19552,7 @@ function jh(n, e) {
19552
19552
  const { toString: bS } = Object.prototype, { getPrototypeOf: $a } = Object, js = ((n) => (e) => {
19553
19553
  const t = bS.call(e);
19554
19554
  return n[t] || (n[t] = t.slice(8, -1).toLowerCase());
19555
- })(/* @__PURE__ */ Object.create(null)), xn = (n) => (n = n.toLowerCase(), (e) => js(e) === n), Ys = (n) => (e) => typeof e === n, { isArray: Qi } = Array, Rr = Ys("undefined");
19555
+ })(/* @__PURE__ */ Object.create(null)), xn = (n) => (n = n.toLowerCase(), (e) => js(e) === n), Ys = (n) => (e) => typeof e === n, { isArray: er } = Array, Rr = Ys("undefined");
19556
19556
  function TS(n) {
19557
19557
  return n !== null && !Rr(n) && n.constructor !== null && !Rr(n.constructor) && Yt(n.constructor.isBuffer) && n.constructor.isBuffer(n);
19558
19558
  }
@@ -19575,7 +19575,7 @@ function Ur(n, e, { allOwnKeys: t = !1 } = {}) {
19575
19575
  if (n === null || typeof n == "undefined")
19576
19576
  return;
19577
19577
  let i, r;
19578
- if (typeof n != "object" && (n = [n]), Qi(n))
19578
+ if (typeof n != "object" && (n = [n]), er(n))
19579
19579
  for (i = 0, r = n.length; i < r; i++)
19580
19580
  e.call(null, n[i], i, n);
19581
19581
  else {
@@ -19598,7 +19598,7 @@ const Jh = (() => typeof globalThis != "undefined" ? globalThis : typeof self !=
19598
19598
  function xa() {
19599
19599
  const { caseless: n } = Qh(this) && this || {}, e = {}, t = (i, r) => {
19600
19600
  const s = n && Zh(e, r) || r;
19601
- Es(e[s]) && Es(i) ? e[s] = xa(e[s], i) : Es(i) ? e[s] = xa({}, i) : Qi(i) ? e[s] = i.slice() : e[s] = i;
19601
+ Es(e[s]) && Es(i) ? e[s] = xa(e[s], i) : Es(i) ? e[s] = xa({}, i) : er(i) ? e[s] = i.slice() : e[s] = i;
19602
19602
  };
19603
19603
  for (let i = 0, r = arguments.length; i < r; i++)
19604
19604
  arguments[i] && Ur(arguments[i], t);
@@ -19628,7 +19628,7 @@ const FS = (n, e, t, { allOwnKeys: i } = {}) => (Ur(e, (r, s) => {
19628
19628
  }, GS = (n) => {
19629
19629
  if (!n)
19630
19630
  return null;
19631
- if (Qi(n))
19631
+ if (er(n))
19632
19632
  return n;
19633
19633
  let e = n.length;
19634
19634
  if (!Kh(e))
@@ -19682,7 +19682,7 @@ const FS = (n, e, t, { allOwnKeys: i } = {}) => (Ur(e, (r, s) => {
19682
19682
  t[s] = !0;
19683
19683
  });
19684
19684
  };
19685
- return Qi(n) ? i(n) : i(String(n).split(e)), t;
19685
+ return er(n) ? i(n) : i(String(n).split(e)), t;
19686
19686
  }, ZS = () => {
19687
19687
  }, JS = (n, e) => (n = +n, Number.isFinite(n) ? n : e), Xo = "abcdefghijklmnopqrstuvwxyz", Uu = "0123456789", tf = {
19688
19688
  DIGIT: Uu,
@@ -19705,7 +19705,7 @@ const tM = (n) => {
19705
19705
  return;
19706
19706
  if (!("toJSON" in i)) {
19707
19707
  e[r] = i;
19708
- const s = Qi(i) ? [] : {};
19708
+ const s = er(i) ? [] : {};
19709
19709
  return Ur(i, (o, a) => {
19710
19710
  const l = t(o, r + 1);
19711
19711
  !Rr(l) && (s[a] = l);
@@ -19716,7 +19716,7 @@ const tM = (n) => {
19716
19716
  };
19717
19717
  return t(n, 0);
19718
19718
  }, nM = xn("AsyncFunction"), iM = (n) => n && (Ks(n) || Yt(n)) && Yt(n.then) && Yt(n.catch), Z = {
19719
- isArray: Qi,
19719
+ isArray: er,
19720
19720
  isArrayBuffer: Yh,
19721
19721
  isBuffer: TS,
19722
19722
  isFormData: US,
@@ -20151,7 +20151,7 @@ const Ya = ja, vM = Z.toObjectSet([
20151
20151
  r = o.indexOf(":"), t = o.substring(0, r).trim().toLowerCase(), i = o.substring(r + 1).trim(), !(!t || e[t] && vM[t]) && (t === "set-cookie" ? e[t] ? e[t].push(i) : e[t] = [i] : e[t] = e[t] ? e[t] + ", " + i : i);
20152
20152
  }), e;
20153
20153
  }, Bu = Symbol("internals");
20154
- function or(n) {
20154
+ function ar(n) {
20155
20155
  return n && String(n).trim().toLowerCase();
20156
20156
  }
20157
20157
  function bs(n) {
@@ -20196,7 +20196,7 @@ class Js {
20196
20196
  set(e, t, i) {
20197
20197
  const r = this;
20198
20198
  function s(a, l, c) {
20199
- const u = or(l);
20199
+ const u = ar(l);
20200
20200
  if (!u)
20201
20201
  throw new Error("header name must be a non-empty string");
20202
20202
  const h = Z.findKey(r, u);
@@ -20206,7 +20206,7 @@ class Js {
20206
20206
  return Z.isPlainObject(e) || e instanceof this.constructor ? o(e, t) : Z.isString(e) && (e = e.trim()) && !SM(e) ? o(xM(e), t) : e != null && s(t, e, i), this;
20207
20207
  }
20208
20208
  get(e, t) {
20209
- if (e = or(e), e) {
20209
+ if (e = ar(e), e) {
20210
20210
  const i = Z.findKey(this, e);
20211
20211
  if (i) {
20212
20212
  const r = this[i];
@@ -20223,7 +20223,7 @@ class Js {
20223
20223
  }
20224
20224
  }
20225
20225
  has(e, t) {
20226
- if (e = or(e), e) {
20226
+ if (e = ar(e), e) {
20227
20227
  const i = Z.findKey(this, e);
20228
20228
  return !!(i && this[i] !== void 0 && (!t || $o(this, this[i], i, t)));
20229
20229
  }
@@ -20233,7 +20233,7 @@ class Js {
20233
20233
  const i = this;
20234
20234
  let r = !1;
20235
20235
  function s(o) {
20236
- if (o = or(o), o) {
20236
+ if (o = ar(o), o) {
20237
20237
  const a = Z.findKey(i, o);
20238
20238
  a && (!t || $o(i, i[a], a, t)) && (delete i[a], r = !0);
20239
20239
  }
@@ -20292,7 +20292,7 @@ class Js {
20292
20292
  accessors: {}
20293
20293
  }).accessors, r = this.prototype;
20294
20294
  function s(o) {
20295
- const a = or(o);
20295
+ const a = ar(o);
20296
20296
  i[a] || (EM(r, o), i[a] = !0);
20297
20297
  }
20298
20298
  return Z.isArray(e) ? e.forEach(s) : s(e), this;
@@ -20568,7 +20568,7 @@ function Hu(n) {
20568
20568
  });
20569
20569
  }
20570
20570
  const ku = (n) => n instanceof Dn ? n.toJSON() : n;
20571
- function Yi(n, e) {
20571
+ function Ki(n, e) {
20572
20572
  e = e || {};
20573
20573
  const t = {};
20574
20574
  function i(c, u, h) {
@@ -20695,7 +20695,7 @@ class zs {
20695
20695
  * @returns {Promise} The Promise to be fulfilled
20696
20696
  */
20697
20697
  request(e, t) {
20698
- typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t = Yi(this.defaults, t);
20698
+ typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t = Ki(this.defaults, t);
20699
20699
  const { transitional: i, paramsSerializer: r, headers: s } = t;
20700
20700
  i !== void 0 && Sa.assertOptions(i, {
20701
20701
  silentJSONParsing: Fn.transitional(Fn.boolean),
@@ -20754,14 +20754,14 @@ class zs {
20754
20754
  return u;
20755
20755
  }
20756
20756
  getUri(e) {
20757
- e = Yi(this.defaults, e);
20757
+ e = Ki(this.defaults, e);
20758
20758
  const t = hf(e.baseURL, e.url);
20759
20759
  return af(t, e.params, e.paramsSerializer);
20760
20760
  }
20761
20761
  }
20762
20762
  Z.forEach(["delete", "get", "head", "options"], function(e) {
20763
20763
  zs.prototype[e] = function(t, i) {
20764
- return this.request(Yi(i || {}, {
20764
+ return this.request(Ki(i || {}, {
20765
20765
  method: e,
20766
20766
  url: t,
20767
20767
  data: (i || {}).data
@@ -20771,7 +20771,7 @@ Z.forEach(["delete", "get", "head", "options"], function(e) {
20771
20771
  Z.forEach(["post", "put", "patch"], function(e) {
20772
20772
  function t(i) {
20773
20773
  return function(s, o, a) {
20774
- return this.request(Yi(a || {}, {
20774
+ return this.request(Ki(a || {}, {
20775
20775
  method: e,
20776
20776
  headers: i ? {
20777
20777
  "Content-Type": "multipart/form-data"
@@ -20933,7 +20933,7 @@ const FM = Ma;
20933
20933
  function pf(n) {
20934
20934
  const e = new ws(n), t = jh(ws.prototype.request, e);
20935
20935
  return Z.extend(t, ws.prototype, e, { allOwnKeys: !0 }), Z.extend(t, e, null, { allOwnKeys: !0 }), t.create = function(r) {
20936
- return pf(Yi(n, r));
20936
+ return pf(Ki(n, r));
20937
20937
  }, t;
20938
20938
  }
20939
20939
  const gt = pf(Ya);
@@ -20950,7 +20950,7 @@ gt.all = function(e) {
20950
20950
  };
20951
20951
  gt.spread = NM;
20952
20952
  gt.isAxiosError = OM;
20953
- gt.mergeConfig = Yi;
20953
+ gt.mergeConfig = Ki;
20954
20954
  gt.AxiosHeaders = Dn;
20955
20955
  gt.formToJSON = (n) => cf(Z.isHTMLForm(n) ? new FormData(n) : n);
20956
20956
  gt.getAdapter = ff.getAdapter;
@@ -20995,7 +20995,7 @@ class HM {
20995
20995
  return e.forEach((t) => this.track(t)), e;
20996
20996
  if ((e.dispose || e instanceof at) && this.data.add(e), e instanceof at)
20997
20997
  this.track(e.geometry), this.track(e.material), this.track(e.children);
20998
- else if (e instanceof Zi) {
20998
+ else if (e instanceof Ji) {
20999
20999
  for (const t of Object.values(e))
21000
21000
  t instanceof It && this.track(t);
21001
21001
  if (e.uniforms) {
@@ -21017,8 +21017,8 @@ class HM {
21017
21017
  this.data.clear();
21018
21018
  }
21019
21019
  }
21020
- let vr = new HM();
21021
- const ys = vr.track.bind(vr), kM = bf.extend({
21020
+ let Bi = new HM();
21021
+ const ys = Bi.track.bind(Bi), kM = bf.extend({
21022
21022
  props: {
21023
21023
  adcode: {
21024
21024
  // 地图code
@@ -21120,7 +21120,7 @@ const ys = vr.track.bind(vr), kM = bf.extend({
21120
21120
  };
21121
21121
  },
21122
21122
  mounted() {
21123
- vr.dispose(), this.getData(), this.canvasDom = this.$refs.canvas, this.size = { width: this.$el.offsetWidth, height: this.$el.offsetHeight }, this.viewObserver = new ResizeObserver(this.updateViewSize), this.viewObserver.observe(this.$el), this.create();
21123
+ Bi.dispose(), this.getData(), this.canvasDom = this.$refs.canvas, this.size = { width: this.$el.offsetWidth, height: this.$el.offsetHeight }, this.viewObserver = new ResizeObserver(this.updateViewSize), this.viewObserver.observe(this.$el), this.create();
21124
21124
  },
21125
21125
  methods: {
21126
21126
  // 获取地图数据
@@ -21154,7 +21154,7 @@ const ys = vr.track.bind(vr), kM = bf.extend({
21154
21154
  this.canvasDom && (this.canvasDom.style.position = "absolute"), this.baseRem = Math.max(window.outerWidth / 1920, 1), this.size = {
21155
21155
  width: this.$el.offsetWidth,
21156
21156
  height: this.$el.offsetHeight
21157
- }, this.canvasDom && (this.canvasDom.style.position = ""), this.controller && this.controller.reset(), this.camera && (this.camera.aspect = this.size.width / this.size.height, this.camera.updateProjectionMatrix(), this.renderer.setSize(this.size.width, this.size.height), this.infoRender.setSize(this.size.width, this.size.height));
21157
+ }, this.canvasDom && (this.canvasDom.style.position = ""), this.controller && this.controller.reset(), this.camera && (this.camera.aspect = this.size.width / this.size.height, this.camera.updateProjectionMatrix(), this.renderer.setSize(this.size.width, this.size.height), this.infoRender.setSize(this.size.width, this.size.height), Bi.dispose(), this.renderMap());
21158
21158
  },
21159
21159
  // 创建地图
21160
21160
  create() {
@@ -21171,7 +21171,7 @@ const ys = vr.track.bind(vr), kM = bf.extend({
21171
21171
  }, 200);
21172
21172
  return;
21173
21173
  }
21174
- vr.dispose(), this.tipsMesh && this.tipsMesh.remove(...this.tipsMesh.children), this.circleMesh && this.circleMesh.remove(...this.circleMesh.children), this.activeMesh.length && (this.activeMesh = []), this.scene.remove(...this.scene.children);
21174
+ Bi.dispose(), this.tipsMesh && this.tipsMesh.remove(...this.tipsMesh.children), this.circleMesh && this.circleMesh.remove(...this.circleMesh.children), this.activeMesh.length && (this.activeMesh = []), this.scene.remove(...this.scene.children);
21175
21175
  const n = ys(new at());
21176
21176
  n.name = "map";
21177
21177
  const e = Du().center(this.centroid).scale(this.scale).translate([0, 0]), { blockList: t, infoData: i } = this.drawItemArea(e);
@@ -21298,8 +21298,8 @@ const ys = vr.track.bind(vr), kM = bf.extend({
21298
21298
  let d, g, _, m, p;
21299
21299
  if (f.style.cssText = `background:#00023d;text-align:center;border:1px solid ${Vu[s.userData.activedType]};line-height:2;`, s.userData.name) {
21300
21300
  g = document.createElement("p"), g.style.cssText = `min-width:${this.baseRem * 100}px;`, g.textContent = s.userData.name, _ = document.createElement("span"), _.style.cssText = `position:absolute;left:0;top:0;display:inline-block;width:${this.baseRem * 16}px;height:${this.baseRem * 16}px;border-top:${this.baseRem * 5}px solid #00023d;transform:rotate(-45deg);`, m = document.createElement("span");
21301
- const N = document.createElement("span");
21302
- N.style.cssText = `display:inline-block;width:${this.baseRem * 12}px;height:${this.baseRem * 12}px;border-top:1px solid #00023d;border-right:1px solid #00023d;transform:rotate(45deg) scale(0.7);`, m.style.cssText = `position:absolute;right:0;top:50%;display:inline-block;padding:${this.baseRem * 4}px;cursor:pointer;transform:translateY(-50%);line-height:1;`, m.append(N), m.dataset.adcode = o.adcode;
21301
+ const U = document.createElement("span");
21302
+ U.style.cssText = `display:inline-block;width:${this.baseRem * 12}px;height:${this.baseRem * 12}px;border-top:1px solid #00023d;border-right:1px solid #00023d;transform:rotate(45deg) scale(0.7);`, U.dataset.adcode = o.adcode, m.style.cssText = `position:absolute;right:0;top:50%;display:inline-block;padding:${this.baseRem * 4}px;cursor:pointer;transform:translateY(-50%);line-height:1;`, m.append(U), m.dataset.adcode = o.adcode;
21303
21303
  }
21304
21304
  s.userData.text && (p = document.createElement("p"), p.style.cssText = `color:#fff;padding:${this.baseRem * 5}px ${this.baseRem * 10}px;`, p.textContent = s.userData.text), g && (d = document.createElement("div"), d.style.cssText = `color:#00023d;background:${Vu[s.userData.activedType]};overflow:hidden;position:relative;padding:0 ${this.baseRem * 16}px`, d.append(_, g), this.areaObj.handle && d.append(m)), d && f.append(d), p && f.append(p);
21305
21305
  const y = new Ho(f);
@@ -21308,16 +21308,16 @@ const ys = vr.track.bind(vr), kM = bf.extend({
21308
21308
  v.push(new D(a[0], -a[1], 1)), v.push(new D(a[0] + l[0], -a[1] + l[1], 1)), v.push(new D(a[0] + c[0], -a[1] + c[1], 1));
21309
21309
  const M = this.drawLine(v, "#ffda57");
21310
21310
  this.tipsMesh.add(h), this.tipsMesh.add(y), this.tipsMesh.add(M);
21311
- const b = (w = (R = this.scene.children.find((N) => N.name === "map")) == null ? void 0 : R.children.find((N) => N.name === o.adcode)) == null ? void 0 : w.children;
21312
- b == null || b.forEach((N) => {
21313
- N.name === o.adcode && this.activeMesh.push(N);
21314
- }), this.activeMesh.forEach((N) => {
21315
- switch (N.type) {
21311
+ const b = (w = (R = this.scene.children.find((U) => U.name === "map")) == null ? void 0 : R.children.find((U) => U.name === o.adcode)) == null ? void 0 : w.children;
21312
+ b == null || b.forEach((U) => {
21313
+ U.name === o.adcode && this.activeMesh.push(U);
21314
+ }), this.activeMesh.forEach((U) => {
21315
+ switch (U.type) {
21316
21316
  case "Mesh":
21317
- N.material[0].color.set(Bn.activedMesh);
21317
+ U.material[0].color.set(Bn.activedMesh);
21318
21318
  break;
21319
21319
  case "Line2":
21320
- N.material.color.set(Bn.activedLine), N.scale.set(1, 1, 1.05);
21320
+ U.material.color.set(Bn.activedLine), U.scale.set(1, 1, 1.05);
21321
21321
  break;
21322
21322
  }
21323
21323
  });
@@ -21357,7 +21357,7 @@ const ys = vr.track.bind(vr), kM = bf.extend({
21357
21357
  }
21358
21358
  },
21359
21359
  beforeDestroy() {
21360
- vr.dispose();
21360
+ Bi.dispose();
21361
21361
  }
21362
21362
  });
21363
21363
  var GM = function() {
@@ -21378,7 +21378,7 @@ var WM = /* @__PURE__ */ Tt(
21378
21378
  VM,
21379
21379
  !1,
21380
21380
  XM,
21381
- "20fe4c42",
21381
+ "1ffdc164",
21382
21382
  null,
21383
21383
  null
21384
21384
  );