dpot-ui 0.4.7 → 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
@@ -117,8 +117,8 @@ const Af = (n) => ({ name: "arrow", options: n, fn(t) {
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"), []);
@@ -141,10 +141,10 @@ const Pf = function(n) {
141
141
  return zt(this, null, function* () {
142
142
  var i;
143
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 U = Rs(O);
145
- return [ro(O), U, ro(U)];
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
  }
@@ -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: zi(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;
@@ -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;
@@ -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;
@@ -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;
@@ -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() {
@@ -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);
@@ -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++)
@@ -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;
@@ -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;
@@ -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);
@@ -14069,11 +14069,11 @@ 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);
@@ -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,7 +14455,7 @@ 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);
@@ -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
  }
@@ -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);
@@ -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.");
@@ -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,7 +15713,7 @@ 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;
@@ -15722,7 +15722,7 @@ class Lh {
15722
15722
  dt === !0 && (Zn = Fr(G, k, Y));
15723
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, tr = !0, eo = !0), G.id !== N && (N = G.id, tr = !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(
@@ -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.");
@@ -17020,8 +17020,8 @@ 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;
@@ -17032,7 +17032,7 @@ class ka extends _n {
17032
17032
  vr.isClockWise(J) && (F[L] = J.reverse());
17033
17033
  }
17034
17034
  }
17035
- const O = vr.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;
@@ -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
  }
@@ -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) {
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
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
  }
@@ -19120,19 +19120,19 @@ function aS(n) {
19120
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
  }
@@ -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,12 +19239,12 @@ 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));
@@ -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 = ji([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() {
@@ -21298,8 +21298,8 @@ const ys = Bi.track.bind(Bi), 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 = Bi.track.bind(Bi), 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
  });
@@ -21378,7 +21378,7 @@ var WM = /* @__PURE__ */ Tt(
21378
21378
  VM,
21379
21379
  !1,
21380
21380
  XM,
21381
- "6eab9600",
21381
+ "1ffdc164",
21382
21382
  null,
21383
21383
  null
21384
21384
  );