@thatopen/components 2.2.8 → 2.2.10

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.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  var so = Object.defineProperty;
2
2
  var io = (c, s, t) => s in c ? so(c, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[s] = t;
3
- var T = (c, s, t) => (io(c, typeof s != "symbol" ? s + "" : s, t), t);
3
+ var _ = (c, s, t) => (io(c, typeof s != "symbol" ? s + "" : s, t), t);
4
4
  import * as M from "three";
5
- import { BufferAttribute as Nr, Vector3 as q, Vector2 as Je, Plane as gn, Line3 as he, Triangle as je, Sphere as no, Matrix4 as de, Box3 as se, BackSide as ro, DoubleSide as br, FrontSide as Pn, Mesh as rt, Ray as oo, Raycaster as ao, Quaternion as le, Object3D as ji, Euler as co, MeshBasicMaterial as Pr, LineBasicMaterial as lo, CylinderGeometry as zt, BoxGeometry as Dt, BufferGeometry as Ln, Float32BufferAttribute as Mn, OctahedronGeometry as Ms, Line as me, SphereGeometry as ho, TorusGeometry as rs, PlaneGeometry as uo } from "three";
6
- import * as Re from "@thatopen/fragments";
5
+ import { BufferAttribute as Nr, Vector3 as q, Vector2 as Je, Plane as gn, Line3 as he, Triangle as je, Sphere as no, Matrix4 as de, Box3 as se, BackSide as ro, DoubleSide as br, FrontSide as Pn, Mesh as rt, Ray as oo, Raycaster as ao, Quaternion as le, Object3D as Qi, Euler as co, MeshBasicMaterial as Pr, LineBasicMaterial as lo, CylinderGeometry as zt, BoxGeometry as Dt, BufferGeometry as Ln, Float32BufferAttribute as Mn, OctahedronGeometry as Ms, Line as Ie, SphereGeometry as ho, TorusGeometry as rs, PlaneGeometry as uo } from "three";
6
+ import * as ye from "@thatopen/fragments";
7
7
  import { Serializer as fo } from "@thatopen/fragments";
8
8
  import * as X from "web-ifc";
9
- const Lr = 0, po = 1, Eo = 2, xn = 2, Oi = 1.25, vn = 1, ri = 6 * 4 + 4 + 4, yi = 65535, mo = Math.pow(2, -24), Ni = Symbol("SKIP_GENERATION");
9
+ const Lr = 0, po = 1, Eo = 2, xn = 2, Ni = 1.25, vn = 1, ri = 6 * 4 + 4 + 4, wi = 65535, mo = Math.pow(2, -24), bi = Symbol("SKIP_GENERATION");
10
10
  function Io(c) {
11
11
  return c.index ? c.index.count : c.attributes.position.count;
12
12
  }
@@ -91,7 +91,7 @@ function os(c) {
91
91
  const s = c[3] - c[0], t = c[4] - c[1], e = c[5] - c[2];
92
92
  return 2 * (s * t + t * e + e * s);
93
93
  }
94
- function bi(c, s, t, e, i = null) {
94
+ function Pi(c, s, t, e, i = null) {
95
95
  let n = 1 / 0, r = 1 / 0, o = 1 / 0, a = -1 / 0, l = -1 / 0, h = -1 / 0, d = 1 / 0, u = 1 / 0, f = 1 / 0, E = -1 / 0, p = -1 / 0, I = -1 / 0;
96
96
  const m = i !== null;
97
97
  for (let C = s * 6, R = (s + t) * 6; C < R; C += 6) {
@@ -99,8 +99,8 @@ function bi(c, s, t, e, i = null) {
99
99
  F < n && (n = F), S > a && (a = S), m && g < d && (d = g), m && g > E && (E = g);
100
100
  const L = c[C + 2], N = c[C + 3], x = L - N, k = L + N;
101
101
  x < r && (r = x), k > l && (l = k), m && L < u && (u = L), m && L > p && (p = L);
102
- const w = c[C + 4], P = c[C + 5], _ = w - P, v = w + P;
103
- _ < o && (o = _), v > h && (h = v), m && w < f && (f = w), m && w > I && (I = w);
102
+ const w = c[C + 4], P = c[C + 5], T = w - P, v = w + P;
103
+ T < o && (o = T), v > h && (h = v), m && w < f && (f = w), m && w > I && (I = w);
104
104
  }
105
105
  e[0] = n, e[1] = r, e[2] = o, e[3] = a, e[4] = l, e[5] = h, m && (i[0] = d, i[1] = u, i[2] = f, i[3] = E, i[4] = p, i[5] = I);
106
106
  }
@@ -139,7 +139,7 @@ function Ro(c, s) {
139
139
  }
140
140
  return n;
141
141
  }
142
- const fe = 32, yo = (c, s) => c.candidate - s.candidate, Ie = new Array(fe).fill().map(() => ({
142
+ const fe = 32, yo = (c, s) => c.candidate - s.candidate, ge = new Array(fe).fill().map(() => ({
143
143
  count: 0,
144
144
  bounds: new Float32Array(6),
145
145
  rightCacheBounds: new Float32Array(6),
@@ -154,12 +154,12 @@ function wo(c, s, t, e, i, n) {
154
154
  r = Dn(c), r !== -1 && (o = Fo(t, e, i, r));
155
155
  else if (n === Eo) {
156
156
  const a = os(c);
157
- let l = Oi * i;
157
+ let l = Ni * i;
158
158
  const h = e * 6, d = (e + i) * 6;
159
159
  for (let u = 0; u < 3; u++) {
160
160
  const f = s[u], I = (s[u + 3] - f) / fe;
161
161
  if (i < fe / 4) {
162
- const m = [...Ie];
162
+ const m = [...ge];
163
163
  m.length = i;
164
164
  let C = 0;
165
165
  for (let g = h; g < d; g += 6, C++) {
@@ -194,12 +194,12 @@ function wo(c, s, t, e, i, n) {
194
194
  F !== 0 && (x = os(L) / a);
195
195
  let k = 0;
196
196
  S !== 0 && (k = os(N) / a);
197
- const w = vn + Oi * (x * F + k * S);
197
+ const w = vn + Ni * (x * F + k * S);
198
198
  w < l && (r = u, l = w, o = y.candidate);
199
199
  }
200
200
  } else {
201
201
  for (let R = 0; R < fe; R++) {
202
- const g = Ie[R];
202
+ const g = ge[R];
203
203
  g.count = 0, g.candidate = f + I + R * I;
204
204
  const y = g.bounds;
205
205
  for (let F = 0; F < 3; F++)
@@ -208,24 +208,24 @@ function wo(c, s, t, e, i, n) {
208
208
  for (let R = h; R < d; R += 6) {
209
209
  let F = ~~((t[R + 2 * u] - f) / I);
210
210
  F >= fe && (F = fe - 1);
211
- const S = Ie[F];
211
+ const S = ge[F];
212
212
  S.count++, xs(R, t, S.bounds);
213
213
  }
214
- const m = Ie[fe - 1];
214
+ const m = ge[fe - 1];
215
215
  Un(m.bounds, m.rightCacheBounds);
216
216
  for (let R = fe - 2; R >= 0; R--) {
217
- const g = Ie[R], y = Ie[R + 1];
217
+ const g = ge[R], y = ge[R + 1];
218
218
  Bn(g.bounds, y.rightCacheBounds, g.rightCacheBounds);
219
219
  }
220
220
  let C = 0;
221
221
  for (let R = 0; R < fe - 1; R++) {
222
- const g = Ie[R], y = g.count, F = g.bounds, L = Ie[R + 1].rightCacheBounds;
222
+ const g = ge[R], y = g.count, F = g.bounds, L = ge[R + 1].rightCacheBounds;
223
223
  y !== 0 && (C === 0 ? Un(F, vs) : Bn(F, vs, vs)), C += y;
224
224
  let N = 0, x = 0;
225
225
  C !== 0 && (N = os(vs) / a);
226
226
  const k = i - C;
227
227
  k !== 0 && (x = os(L) / a);
228
- const w = vn + Oi * (N * C + x * k);
228
+ const w = vn + Ni * (N * C + x * k);
229
229
  w < l && (r = u, l = w, o = g.candidate);
230
230
  }
231
231
  }
@@ -302,7 +302,7 @@ function bo(c, s) {
302
302
  } else
303
303
  for (let g of m) {
304
304
  const y = new Ds();
305
- y.boundingData = new Float32Array(6), bi(E, g.offset, g.count, y.boundingData, f), R(y, g.offset, g.count, f), I.push(y);
305
+ y.boundingData = new Float32Array(6), Pi(E, g.offset, g.count, y.boundingData, f), R(y, g.offset, g.count, f), I.push(y);
306
306
  }
307
307
  return I;
308
308
  function C(g) {
@@ -320,9 +320,9 @@ function bo(c, s) {
320
320
  else {
321
321
  g.splitAxis = N.axis;
322
322
  const k = new Ds(), w = y, P = x - y;
323
- g.left = k, k.boundingData = new Float32Array(6), bi(E, w, P, k.boundingData, f), R(k, w, P, f, L + 1);
324
- const _ = new Ds(), v = x, Q = F - P;
325
- g.right = _, _.boundingData = new Float32Array(6), bi(E, v, Q, _.boundingData, f), R(_, v, Q, f, L + 1);
323
+ g.left = k, k.boundingData = new Float32Array(6), Pi(E, w, P, k.boundingData, f), R(k, w, P, f, L + 1);
324
+ const T = new Ds(), v = x, j = F - P;
325
+ g.right = T, T.boundingData = new Float32Array(6), Pi(E, v, j, T.boundingData, f), R(T, v, j, f, L + 1);
326
326
  }
327
327
  return g;
328
328
  }
@@ -352,7 +352,7 @@ function Po(c, s) {
352
352
  i[f + m] = I[m];
353
353
  if (p) {
354
354
  const m = u.offset, C = u.count;
355
- return n[f + 6] = m, r[E + 14] = C, r[E + 15] = yi, d + ri;
355
+ return n[f + 6] = m, r[E + 14] = C, r[E + 15] = wi, d + ri;
356
356
  } else {
357
357
  const m = u.left, C = u.right, R = u.splitAxis;
358
358
  let g;
@@ -454,7 +454,7 @@ const Lo = function() {
454
454
  return !1;
455
455
  };
456
456
  }(), xo = 1e-15;
457
- function Pi(c) {
457
+ function Li(c) {
458
458
  return Math.abs(c) < xo;
459
459
  }
460
460
  class ee extends je {
@@ -495,13 +495,13 @@ ee.prototype.intersectsTriangle = function() {
495
495
  for (let y = 0; y < 3; y++) {
496
496
  const { start: F, end: S } = h;
497
497
  F.copy(C[y]), S.copy(C[(y + 1) % 3]), h.delta(r);
498
- const L = Pi(I.distanceToPoint(F));
499
- if (Pi(I.normal.dot(r)) && L) {
498
+ const L = Li(I.distanceToPoint(F));
499
+ if (Li(I.normal.dot(r)) && L) {
500
500
  m.copy(h), R = 2;
501
501
  break;
502
502
  }
503
503
  const N = I.intersectLine(h, f);
504
- if (!N && L && f.copy(F), (N || L) && !Pi(f.distanceTo(S))) {
504
+ if (!N && L && f.copy(F), (N || L) && !Li(f.distanceTo(S))) {
505
505
  if (R <= 1)
506
506
  (R === 1 ? m.start : m.end).copy(f), L && (g = R);
507
507
  else if (R >= 2) {
@@ -697,8 +697,8 @@ Bt.prototype.distanceToBox = function() {
697
697
  for (let C = 0; C <= 1; C++) {
698
698
  const R = (I + 1) % 3, g = (I + 2) % 3, y = m << R | C << g, F = 1 << I | m << R | C << g, S = f[y], L = f[F];
699
699
  s[p].set(S, L);
700
- const x = c[I], k = c[R], w = c[g], P = t[p], _ = P.start, v = P.end;
701
- _[x] = d[x], _[k] = m ? d[k] : u[k], _[w] = C ? d[w] : u[k], v[x] = u[x], v[k] = m ? d[k] : u[k], v[w] = C ? d[w] : u[k], p++;
700
+ const x = c[I], k = c[R], w = c[g], P = t[p], T = P.start, v = P.end;
701
+ T[x] = d[x], T[k] = m ? d[k] : u[k], T[w] = C ? d[w] : u[k], v[x] = u[x], v[k] = m ? d[k] : u[k], v[w] = C ? d[w] : u[k], p++;
702
702
  }
703
703
  for (let I = 0; I <= 1; I++)
704
704
  for (let m = 0; m <= 1; m++)
@@ -770,50 +770,50 @@ class Do {
770
770
  }
771
771
  }
772
772
  const At = new Do();
773
- let Ae, Qe;
773
+ let Re, Qe;
774
774
  const ve = [], Us = /* @__PURE__ */ new Tn(() => new se());
775
775
  function Uo(c, s, t, e, i, n) {
776
- Ae = Us.getPrimitive(), Qe = Us.getPrimitive(), ve.push(Ae, Qe), At.setBuffer(c._roots[s]);
777
- const r = Qi(0, c.geometry, t, e, i, n);
778
- At.clearBuffer(), Us.releasePrimitive(Ae), Us.releasePrimitive(Qe), ve.pop(), ve.pop();
776
+ Re = Us.getPrimitive(), Qe = Us.getPrimitive(), ve.push(Re, Qe), At.setBuffer(c._roots[s]);
777
+ const r = qi(0, c.geometry, t, e, i, n);
778
+ At.clearBuffer(), Us.releasePrimitive(Re), Us.releasePrimitive(Qe), ve.pop(), ve.pop();
779
779
  const o = ve.length;
780
- return o > 0 && (Qe = ve[o - 1], Ae = ve[o - 2]), r;
780
+ return o > 0 && (Qe = ve[o - 1], Re = ve[o - 2]), r;
781
781
  }
782
- function Qi(c, s, t, e, i = null, n = 0, r = 0) {
782
+ function qi(c, s, t, e, i = null, n = 0, r = 0) {
783
783
  const { float32Array: o, uint16Array: a, uint32Array: l } = At;
784
784
  let h = c * 2;
785
785
  if (Vt(h, a)) {
786
786
  const u = Yt(c, l), f = Zt(h, a);
787
- return wt(c, o, Ae), e(u, f, !1, r, n + c, Ae);
787
+ return wt(c, o, Re), e(u, f, !1, r, n + c, Re);
788
788
  } else {
789
789
  let x = function(w) {
790
- const { uint16Array: P, uint32Array: _ } = At;
790
+ const { uint16Array: P, uint32Array: T } = At;
791
791
  let v = w * 2;
792
792
  for (; !Vt(v, P); )
793
793
  w = $t(w), v = w * 2;
794
- return Yt(w, _);
794
+ return Yt(w, T);
795
795
  }, k = function(w) {
796
- const { uint16Array: P, uint32Array: _ } = At;
796
+ const { uint16Array: P, uint32Array: T } = At;
797
797
  let v = w * 2;
798
798
  for (; !Vt(v, P); )
799
- w = jt(w, _), v = w * 2;
800
- return Yt(w, _) + Zt(v, P);
799
+ w = jt(w, T), v = w * 2;
800
+ return Yt(w, T) + Zt(v, P);
801
801
  };
802
802
  const u = $t(c), f = jt(c, l);
803
803
  let E = u, p = f, I, m, C, R;
804
- if (i && (C = Ae, R = Qe, wt(E, o, C), wt(p, o, R), I = i(C), m = i(R), m < I)) {
804
+ if (i && (C = Re, R = Qe, wt(E, o, C), wt(p, o, R), I = i(C), m = i(R), m < I)) {
805
805
  E = f, p = u;
806
806
  const w = I;
807
807
  I = m, m = w, C = R;
808
808
  }
809
- C || (C = Ae, wt(E, o, C));
809
+ C || (C = Re, wt(E, o, C));
810
810
  const g = Vt(E * 2, a), y = t(C, g, I, r + 1, n + E);
811
811
  let F;
812
812
  if (y === xn) {
813
- const w = x(E), _ = k(E) - w;
814
- F = e(w, _, !0, r + 1, n + E, C);
813
+ const w = x(E), T = k(E) - w;
814
+ F = e(w, T, !0, r + 1, n + E, C);
815
815
  } else
816
- F = y && Qi(
816
+ F = y && qi(
817
817
  E,
818
818
  s,
819
819
  t,
@@ -828,10 +828,10 @@ function Qi(c, s, t, e, i = null, n = 0, r = 0) {
828
828
  const S = Vt(p * 2, a), L = t(R, S, m, r + 1, n + p);
829
829
  let N;
830
830
  if (L === xn) {
831
- const w = x(p), _ = k(p) - w;
832
- N = e(w, _, !0, r + 1, n + p, R);
831
+ const w = x(p), T = k(p) - w;
832
+ N = e(w, T, !0, r + 1, n + p, R);
833
833
  } else
834
- N = L && Qi(
834
+ N = L && qi(
835
835
  p,
836
836
  s,
837
837
  t,
@@ -843,7 +843,7 @@ function Qi(c, s, t, e, i = null, n = 0, r = 0) {
843
843
  return !!N;
844
844
  }
845
845
  }
846
- const as = /* @__PURE__ */ new q(), Li = /* @__PURE__ */ new q();
846
+ const as = /* @__PURE__ */ new q(), Mi = /* @__PURE__ */ new q();
847
847
  function Bo(c, s, t = {}, e = 0, i = 1 / 0) {
848
848
  const n = e * e, r = i * i;
849
849
  let o = 1 / 0, a = null;
@@ -854,13 +854,13 @@ function Bo(c, s, t = {}, e = 0, i = 1 / 0) {
854
854
  intersectsTriangle: (h, d) => {
855
855
  h.closestPointToPoint(s, as);
856
856
  const u = s.distanceToSquared(as);
857
- return u < o && (Li.copy(as), o = u, a = d), u < n;
857
+ return u < o && (Mi.copy(as), o = u, a = d), u < n;
858
858
  }
859
859
  }
860
860
  ), o === 1 / 0)
861
861
  return null;
862
862
  const l = Math.sqrt(o);
863
- return t.point ? t.point.copy(Li) : t.point = Li.clone(), t.distance = l, t.faceIndex = a, t;
863
+ return t.point ? t.point.copy(Mi) : t.point = Mi.clone(), t.distance = l, t.faceIndex = a, t;
864
864
  }
865
865
  const De = /* @__PURE__ */ new q(), Ue = /* @__PURE__ */ new q(), Be = /* @__PURE__ */ new q(), Bs = /* @__PURE__ */ new Je(), zs = /* @__PURE__ */ new Je(), ks = /* @__PURE__ */ new Je(), zn = /* @__PURE__ */ new q(), kn = /* @__PURE__ */ new q(), Vn = /* @__PURE__ */ new q(), Vs = /* @__PURE__ */ new q();
866
866
  function zo(c, s, t, e, i, n) {
@@ -886,7 +886,7 @@ function ko(c, s, t, e, i, n, r, o, a) {
886
886
  }
887
887
  return l;
888
888
  }
889
- function wi(c, s, t, e, i) {
889
+ function Fi(c, s, t, e, i) {
890
890
  const n = e * 3;
891
891
  let r = n + 0, o = n + 1, a = n + 2;
892
892
  const l = c.index;
@@ -902,14 +902,14 @@ function Pt(c, s, t, e) {
902
902
  function Vo(c, s, t, e, i, n) {
903
903
  const { geometry: r, _indirectBuffer: o } = c;
904
904
  for (let a = e, l = e + i; a < l; a++)
905
- wi(r, s, t, a, n);
905
+ Fi(r, s, t, a, n);
906
906
  }
907
907
  function Yo(c, s, t, e, i) {
908
908
  const { geometry: n, _indirectBuffer: r } = c;
909
909
  let o = 1 / 0, a = null;
910
910
  for (let l = e, h = e + i; l < h; l++) {
911
911
  let d;
912
- d = wi(n, s, t, l), d && d.distance < o && (a = d, o = d.distance);
912
+ d = Fi(n, s, t, l), d && d.distance < o && (a = d, o = d.distance);
913
913
  }
914
914
  return a;
915
915
  }
@@ -931,13 +931,13 @@ function Ho(c, s = null) {
931
931
  n = h[u], r = new Uint32Array(n), o = new Uint16Array(n), a = new Float32Array(n), d(0, l), l += n.byteLength;
932
932
  function d(u, f, E = !1) {
933
933
  const p = u * 2;
934
- if (o[p + 15] === yi) {
934
+ if (o[p + 15] === wi) {
935
935
  const m = r[u + 6], C = o[p + 14];
936
936
  let R = 1 / 0, g = 1 / 0, y = 1 / 0, F = -1 / 0, S = -1 / 0, L = -1 / 0;
937
937
  for (let N = 3 * m, x = 3 * (m + C); N < x; N++) {
938
938
  let k = e[N];
939
- const w = i.getX(k), P = i.getY(k), _ = i.getZ(k);
940
- w < R && (R = w), w > F && (F = w), P < g && (g = P), P > S && (S = P), _ < y && (y = _), _ > L && (L = _);
939
+ const w = i.getX(k), P = i.getY(k), T = i.getZ(k);
940
+ w < R && (R = w), w > F && (F = w), P < g && (g = P), P > S && (S = P), T < y && (y = T), T > L && (L = T);
941
941
  }
942
942
  return a[u + 0] !== R || a[u + 1] !== g || a[u + 2] !== y || a[u + 3] !== F || a[u + 4] !== S || a[u + 5] !== L ? (a[u + 0] = R, a[u + 1] = g, a[u + 2] = y, a[u + 3] = F, a[u + 4] = S, a[u + 5] = L, !0) : !1;
943
943
  } else {
@@ -952,22 +952,22 @@ function Ho(c, s = null) {
952
952
  const w = x || k;
953
953
  if (w)
954
954
  for (let P = 0; P < 3; P++) {
955
- const _ = m + P, v = C + P, Q = a[_], V = a[_ + 3], et = a[v], H = a[v + 3];
956
- a[u + P] = Q < et ? Q : et, a[u + P + 3] = V > H ? V : H;
955
+ const T = m + P, v = C + P, j = a[T], V = a[T + 3], et = a[v], H = a[v + 3];
956
+ a[u + P] = j < et ? j : et, a[u + P + 3] = V > H ? V : H;
957
957
  }
958
958
  return w;
959
959
  }
960
960
  }
961
961
  }
962
962
  const Yn = /* @__PURE__ */ new se();
963
- function ye(c, s, t, e) {
963
+ function we(c, s, t, e) {
964
964
  return wt(c, s, Yn), t.intersectBox(Yn, e);
965
965
  }
966
966
  function Wo(c, s, t, e, i, n) {
967
967
  const { geometry: r, _indirectBuffer: o } = c;
968
968
  for (let a = e, l = e + i; a < l; a++) {
969
969
  let h = o ? o[a] : a;
970
- wi(r, s, t, h, n);
970
+ Fi(r, s, t, h, n);
971
971
  }
972
972
  }
973
973
  function Xo(c, s, t, e, i) {
@@ -975,7 +975,7 @@ function Xo(c, s, t, e, i) {
975
975
  let o = 1 / 0, a = null;
976
976
  for (let l = e, h = e + i; l < h; l++) {
977
977
  let d;
978
- d = wi(n, s, t, r ? r[l] : l), d && d.distance < o && (a = d, o = d.distance);
978
+ d = Fi(n, s, t, r ? r[l] : l), d && d.distance < o && (a = d, o = d.distance);
979
979
  }
980
980
  return a;
981
981
  }
@@ -990,27 +990,27 @@ function Zo(c, s, t, e, i, n, r) {
990
990
  }
991
991
  const Gn = /* @__PURE__ */ new q();
992
992
  function $o(c, s, t, e, i) {
993
- At.setBuffer(c._roots[s]), qi(0, c, t, e, i), At.clearBuffer();
993
+ At.setBuffer(c._roots[s]), Ki(0, c, t, e, i), At.clearBuffer();
994
994
  }
995
- function qi(c, s, t, e, i) {
995
+ function Ki(c, s, t, e, i) {
996
996
  const { float32Array: n, uint16Array: r, uint32Array: o } = At, a = c * 2;
997
997
  if (Vt(a, r)) {
998
998
  const h = Yt(c, o), d = Zt(a, r);
999
999
  Vo(s, t, e, h, d, i);
1000
1000
  } else {
1001
1001
  const h = $t(c);
1002
- ye(h, n, e, Gn) && qi(h, s, t, e, i);
1002
+ we(h, n, e, Gn) && Ki(h, s, t, e, i);
1003
1003
  const d = jt(c, o);
1004
- ye(d, n, e, Gn) && qi(d, s, t, e, i);
1004
+ we(d, n, e, Gn) && Ki(d, s, t, e, i);
1005
1005
  }
1006
1006
  }
1007
1007
  const Hn = /* @__PURE__ */ new q(), jo = ["x", "y", "z"];
1008
1008
  function Qo(c, s, t, e) {
1009
1009
  At.setBuffer(c._roots[s]);
1010
- const i = Ki(0, c, t, e);
1010
+ const i = Ji(0, c, t, e);
1011
1011
  return At.clearBuffer(), i;
1012
1012
  }
1013
- function Ki(c, s, t, e) {
1013
+ function Ji(c, s, t, e) {
1014
1014
  const { float32Array: i, uint16Array: n, uint32Array: r } = At;
1015
1015
  let o = c * 2;
1016
1016
  if (Vt(o, n)) {
@@ -1020,7 +1020,7 @@ function Ki(c, s, t, e) {
1020
1020
  const l = vr(c, r), h = jo[l], u = e.direction[h] >= 0;
1021
1021
  let f, E;
1022
1022
  u ? (f = $t(c), E = jt(c, r)) : (f = jt(c, r), E = $t(c));
1023
- const I = ye(f, i, e, Hn) ? Ki(f, s, t, e) : null;
1023
+ const I = we(f, i, e, Hn) ? Ji(f, s, t, e) : null;
1024
1024
  if (I) {
1025
1025
  const R = I.point[h];
1026
1026
  if (u ? R <= i[E + l] : (
@@ -1029,17 +1029,17 @@ function Ki(c, s, t, e) {
1029
1029
  ))
1030
1030
  return I;
1031
1031
  }
1032
- const C = ye(E, i, e, Hn) ? Ki(E, s, t, e) : null;
1032
+ const C = we(E, i, e, Hn) ? Ji(E, s, t, e) : null;
1033
1033
  return I && C ? I.distance <= C.distance ? I : C : I || C || null;
1034
1034
  }
1035
1035
  }
1036
1036
  const Ys = /* @__PURE__ */ new se(), ze = /* @__PURE__ */ new ee(), ke = /* @__PURE__ */ new ee(), cs = /* @__PURE__ */ new de(), Wn = /* @__PURE__ */ new Bt(), Gs = /* @__PURE__ */ new Bt();
1037
1037
  function qo(c, s, t, e) {
1038
1038
  At.setBuffer(c._roots[s]);
1039
- const i = Ji(0, c, t, e);
1039
+ const i = tn(0, c, t, e);
1040
1040
  return At.clearBuffer(), i;
1041
1041
  }
1042
- function Ji(c, s, t, e, i = null) {
1042
+ function tn(c, s, t, e, i = null) {
1043
1043
  const { float32Array: n, uint16Array: r, uint32Array: o } = At;
1044
1044
  let a = c * 2;
1045
1045
  if (i === null && (t.boundingBox || t.computeBoundingBox(), Wn.set(t.boundingBox.min, t.boundingBox.max, e), i = Wn), Vt(a, r)) {
@@ -1063,19 +1063,19 @@ function Ji(c, s, t, e, i = null) {
1063
1063
  }
1064
1064
  } else {
1065
1065
  const h = c + 8, d = o[c + 6];
1066
- return wt(h, n, Ys), !!(i.intersectsBox(Ys) && Ji(h, s, t, e, i) || (wt(d, n, Ys), i.intersectsBox(Ys) && Ji(d, s, t, e, i)));
1066
+ return wt(h, n, Ys), !!(i.intersectsBox(Ys) && tn(h, s, t, e, i) || (wt(d, n, Ys), i.intersectsBox(Ys) && tn(d, s, t, e, i)));
1067
1067
  }
1068
1068
  }
1069
- const Hs = /* @__PURE__ */ new de(), Mi = /* @__PURE__ */ new Bt(), ls = /* @__PURE__ */ new Bt(), Ko = /* @__PURE__ */ new q(), Jo = /* @__PURE__ */ new q(), ta = /* @__PURE__ */ new q(), ea = /* @__PURE__ */ new q();
1069
+ const Hs = /* @__PURE__ */ new de(), xi = /* @__PURE__ */ new Bt(), ls = /* @__PURE__ */ new Bt(), Ko = /* @__PURE__ */ new q(), Jo = /* @__PURE__ */ new q(), ta = /* @__PURE__ */ new q(), ea = /* @__PURE__ */ new q();
1070
1070
  function sa(c, s, t, e = {}, i = {}, n = 0, r = 1 / 0) {
1071
- s.boundingBox || s.computeBoundingBox(), Mi.set(s.boundingBox.min, s.boundingBox.max, t), Mi.needsUpdate = !0;
1071
+ s.boundingBox || s.computeBoundingBox(), xi.set(s.boundingBox.min, s.boundingBox.max, t), xi.needsUpdate = !0;
1072
1072
  const o = c.geometry, a = o.attributes.position, l = o.index, h = s.attributes.position, d = s.index, u = Xt.getPrimitive(), f = Xt.getPrimitive();
1073
1073
  let E = Ko, p = Jo, I = null, m = null;
1074
1074
  i && (I = ta, m = ea);
1075
1075
  let C = 1 / 0, R = null, g = null;
1076
1076
  return Hs.copy(t).invert(), ls.matrix.copy(Hs), c.shapecast(
1077
1077
  {
1078
- boundsTraverseOrder: (y) => Mi.distanceToBox(y),
1078
+ boundsTraverseOrder: (y) => xi.distanceToBox(y),
1079
1079
  intersectsBounds: (y, F, S) => S < C && S < r ? (F && (ls.min.copy(y.min), ls.max.copy(y.max), ls.needsUpdate = !0), !0) : !1,
1080
1080
  intersectsRange: (y, F) => {
1081
1081
  if (s.boundsTree)
@@ -1087,8 +1087,8 @@ function sa(c, s, t, e = {}, i = {}, n = 0, r = 1 / 0) {
1087
1087
  Pt(f, 3 * x, d, h), f.a.applyMatrix4(t), f.b.applyMatrix4(t), f.c.applyMatrix4(t), f.needsUpdate = !0;
1088
1088
  for (let w = y, P = y + F; w < P; w++) {
1089
1089
  Pt(u, 3 * w, l, a), u.needsUpdate = !0;
1090
- const _ = u.distanceToTriangle(f, E, I);
1091
- if (_ < C && (p.copy(E), m && m.copy(I), C = _, R = w, g = x), _ < n)
1090
+ const T = u.distanceToTriangle(f, E, I);
1091
+ if (T < C && (p.copy(E), m && m.copy(I), C = T, R = w, g = x), T < n)
1092
1092
  return !0;
1093
1093
  }
1094
1094
  }
@@ -1119,7 +1119,7 @@ function ia(c, s = null) {
1119
1119
  n = h[u], r = new Uint32Array(n), o = new Uint16Array(n), a = new Float32Array(n), d(0, l), l += n.byteLength;
1120
1120
  function d(u, f, E = !1) {
1121
1121
  const p = u * 2;
1122
- if (o[p + 15] === yi) {
1122
+ if (o[p + 15] === wi) {
1123
1123
  const m = r[u + 6], C = o[p + 14];
1124
1124
  let R = 1 / 0, g = 1 / 0, y = 1 / 0, F = -1 / 0, S = -1 / 0, L = -1 / 0;
1125
1125
  for (let N = m, x = m + C; N < x; N++) {
@@ -1127,8 +1127,8 @@ function ia(c, s = null) {
1127
1127
  for (let w = 0; w < 3; w++) {
1128
1128
  let P = k + w;
1129
1129
  P = e ? e[P] : P;
1130
- const _ = i.getX(P), v = i.getY(P), Q = i.getZ(P);
1131
- _ < R && (R = _), _ > F && (F = _), v < g && (g = v), v > S && (S = v), Q < y && (y = Q), Q > L && (L = Q);
1130
+ const T = i.getX(P), v = i.getY(P), j = i.getZ(P);
1131
+ T < R && (R = T), T > F && (F = T), v < g && (g = v), v > S && (S = v), j < y && (y = j), j > L && (L = j);
1132
1132
  }
1133
1133
  }
1134
1134
  return a[u + 0] !== R || a[u + 1] !== g || a[u + 2] !== y || a[u + 3] !== F || a[u + 4] !== S || a[u + 5] !== L ? (a[u + 0] = R, a[u + 1] = g, a[u + 2] = y, a[u + 3] = F, a[u + 4] = S, a[u + 5] = L, !0) : !1;
@@ -1144,8 +1144,8 @@ function ia(c, s = null) {
1144
1144
  const w = x || k;
1145
1145
  if (w)
1146
1146
  for (let P = 0; P < 3; P++) {
1147
- const _ = m + P, v = C + P, Q = a[_], V = a[_ + 3], et = a[v], H = a[v + 3];
1148
- a[u + P] = Q < et ? Q : et, a[u + P + 3] = V > H ? V : H;
1147
+ const T = m + P, v = C + P, j = a[T], V = a[T + 3], et = a[v], H = a[v + 3];
1148
+ a[u + P] = j < et ? j : et, a[u + P + 3] = V > H ? V : H;
1149
1149
  }
1150
1150
  return w;
1151
1151
  }
@@ -1153,27 +1153,27 @@ function ia(c, s = null) {
1153
1153
  }
1154
1154
  const Xn = /* @__PURE__ */ new q();
1155
1155
  function na(c, s, t, e, i) {
1156
- At.setBuffer(c._roots[s]), tn(0, c, t, e, i), At.clearBuffer();
1156
+ At.setBuffer(c._roots[s]), en(0, c, t, e, i), At.clearBuffer();
1157
1157
  }
1158
- function tn(c, s, t, e, i) {
1158
+ function en(c, s, t, e, i) {
1159
1159
  const { float32Array: n, uint16Array: r, uint32Array: o } = At, a = c * 2;
1160
1160
  if (Vt(a, r)) {
1161
1161
  const h = Yt(c, o), d = Zt(a, r);
1162
1162
  Wo(s, t, e, h, d, i);
1163
1163
  } else {
1164
1164
  const h = $t(c);
1165
- ye(h, n, e, Xn) && tn(h, s, t, e, i);
1165
+ we(h, n, e, Xn) && en(h, s, t, e, i);
1166
1166
  const d = jt(c, o);
1167
- ye(d, n, e, Xn) && tn(d, s, t, e, i);
1167
+ we(d, n, e, Xn) && en(d, s, t, e, i);
1168
1168
  }
1169
1169
  }
1170
1170
  const Zn = /* @__PURE__ */ new q(), ra = ["x", "y", "z"];
1171
1171
  function oa(c, s, t, e) {
1172
1172
  At.setBuffer(c._roots[s]);
1173
- const i = en(0, c, t, e);
1173
+ const i = sn(0, c, t, e);
1174
1174
  return At.clearBuffer(), i;
1175
1175
  }
1176
- function en(c, s, t, e) {
1176
+ function sn(c, s, t, e) {
1177
1177
  const { float32Array: i, uint16Array: n, uint32Array: r } = At;
1178
1178
  let o = c * 2;
1179
1179
  if (Vt(o, n)) {
@@ -1183,7 +1183,7 @@ function en(c, s, t, e) {
1183
1183
  const l = vr(c, r), h = ra[l], u = e.direction[h] >= 0;
1184
1184
  let f, E;
1185
1185
  u ? (f = $t(c), E = jt(c, r)) : (f = jt(c, r), E = $t(c));
1186
- const I = ye(f, i, e, Zn) ? en(f, s, t, e) : null;
1186
+ const I = we(f, i, e, Zn) ? sn(f, s, t, e) : null;
1187
1187
  if (I) {
1188
1188
  const R = I.point[h];
1189
1189
  if (u ? R <= i[E + l] : (
@@ -1192,17 +1192,17 @@ function en(c, s, t, e) {
1192
1192
  ))
1193
1193
  return I;
1194
1194
  }
1195
- const C = ye(E, i, e, Zn) ? en(E, s, t, e) : null;
1195
+ const C = we(E, i, e, Zn) ? sn(E, s, t, e) : null;
1196
1196
  return I && C ? I.distance <= C.distance ? I : C : I || C || null;
1197
1197
  }
1198
1198
  }
1199
1199
  const Ws = /* @__PURE__ */ new se(), Ve = /* @__PURE__ */ new ee(), Ye = /* @__PURE__ */ new ee(), hs = /* @__PURE__ */ new de(), $n = /* @__PURE__ */ new Bt(), Xs = /* @__PURE__ */ new Bt();
1200
1200
  function aa(c, s, t, e) {
1201
1201
  At.setBuffer(c._roots[s]);
1202
- const i = sn(0, c, t, e);
1202
+ const i = nn(0, c, t, e);
1203
1203
  return At.clearBuffer(), i;
1204
1204
  }
1205
- function sn(c, s, t, e, i = null) {
1205
+ function nn(c, s, t, e, i = null) {
1206
1206
  const { float32Array: n, uint16Array: r, uint32Array: o } = At;
1207
1207
  let a = c * 2;
1208
1208
  if (i === null && (t.boundingBox || t.computeBoundingBox(), $n.set(t.boundingBox.min, t.boundingBox.max, e), i = $n), Vt(a, r)) {
@@ -1227,19 +1227,19 @@ function sn(c, s, t, e, i = null) {
1227
1227
  }
1228
1228
  } else {
1229
1229
  const h = c + 8, d = o[c + 6];
1230
- return wt(h, n, Ws), !!(i.intersectsBox(Ws) && sn(h, s, t, e, i) || (wt(d, n, Ws), i.intersectsBox(Ws) && sn(d, s, t, e, i)));
1230
+ return wt(h, n, Ws), !!(i.intersectsBox(Ws) && nn(h, s, t, e, i) || (wt(d, n, Ws), i.intersectsBox(Ws) && nn(d, s, t, e, i)));
1231
1231
  }
1232
1232
  }
1233
- const Zs = /* @__PURE__ */ new de(), xi = /* @__PURE__ */ new Bt(), ds = /* @__PURE__ */ new Bt(), ca = /* @__PURE__ */ new q(), la = /* @__PURE__ */ new q(), ha = /* @__PURE__ */ new q(), da = /* @__PURE__ */ new q();
1233
+ const Zs = /* @__PURE__ */ new de(), vi = /* @__PURE__ */ new Bt(), ds = /* @__PURE__ */ new Bt(), ca = /* @__PURE__ */ new q(), la = /* @__PURE__ */ new q(), ha = /* @__PURE__ */ new q(), da = /* @__PURE__ */ new q();
1234
1234
  function ua(c, s, t, e = {}, i = {}, n = 0, r = 1 / 0) {
1235
- s.boundingBox || s.computeBoundingBox(), xi.set(s.boundingBox.min, s.boundingBox.max, t), xi.needsUpdate = !0;
1235
+ s.boundingBox || s.computeBoundingBox(), vi.set(s.boundingBox.min, s.boundingBox.max, t), vi.needsUpdate = !0;
1236
1236
  const o = c.geometry, a = o.attributes.position, l = o.index, h = s.attributes.position, d = s.index, u = Xt.getPrimitive(), f = Xt.getPrimitive();
1237
1237
  let E = ca, p = la, I = null, m = null;
1238
1238
  i && (I = ha, m = da);
1239
1239
  let C = 1 / 0, R = null, g = null;
1240
1240
  return Zs.copy(t).invert(), ds.matrix.copy(Zs), c.shapecast(
1241
1241
  {
1242
- boundsTraverseOrder: (y) => xi.distanceToBox(y),
1242
+ boundsTraverseOrder: (y) => vi.distanceToBox(y),
1243
1243
  intersectsBounds: (y, F, S) => S < C && S < r ? (F && (ds.min.copy(y.min), ds.max.copy(y.max), ds.needsUpdate = !0), !0) : !1,
1244
1244
  intersectsRange: (y, F) => {
1245
1245
  if (s.boundsTree) {
@@ -1251,11 +1251,11 @@ function ua(c, s, t, e = {}, i = {}, n = 0, r = 1 / 0) {
1251
1251
  for (let x = L, k = L + N; x < k; x++) {
1252
1252
  const w = S.resolveTriangleIndex(x);
1253
1253
  Pt(f, 3 * w, d, h), f.a.applyMatrix4(t), f.b.applyMatrix4(t), f.c.applyMatrix4(t), f.needsUpdate = !0;
1254
- for (let P = y, _ = y + F; P < _; P++) {
1254
+ for (let P = y, T = y + F; P < T; P++) {
1255
1255
  const v = c.resolveTriangleIndex(P);
1256
1256
  Pt(u, 3 * v, l, a), u.needsUpdate = !0;
1257
- const Q = u.distanceToTriangle(f, E, I);
1258
- if (Q < C && (p.copy(E), m && m.copy(I), C = Q, R = P, g = x), Q < n)
1257
+ const j = u.distanceToTriangle(f, E, I);
1258
+ if (j < C && (p.copy(E), m && m.copy(I), C = j, R = P, g = x), j < n)
1259
1259
  return !0;
1260
1260
  }
1261
1261
  }
@@ -1281,18 +1281,18 @@ function ua(c, s, t, e = {}, i = {}, n = 0, r = 1 / 0) {
1281
1281
  function fa() {
1282
1282
  return typeof SharedArrayBuffer < "u";
1283
1283
  }
1284
- const Rs = new At.constructor(), li = new At.constructor(), Te = new Tn(() => new se()), Ge = new se(), He = new se(), vi = new se(), Di = new se();
1285
- let Ui = !1;
1284
+ const Rs = new At.constructor(), li = new At.constructor(), _e = new Tn(() => new se()), Ge = new se(), He = new se(), Di = new se(), Ui = new se();
1285
+ let Bi = !1;
1286
1286
  function pa(c, s, t, e) {
1287
- if (Ui)
1287
+ if (Bi)
1288
1288
  throw new Error("MeshBVH: Recursive calls to bvhcast not supported.");
1289
- Ui = !0;
1289
+ Bi = !0;
1290
1290
  const i = c._roots, n = s._roots;
1291
1291
  let r, o = 0, a = 0;
1292
1292
  const l = new de().copy(t).invert();
1293
1293
  for (let h = 0, d = i.length; h < d; h++) {
1294
1294
  Rs.setBuffer(i[h]), a = 0;
1295
- const u = Te.getPrimitive();
1295
+ const u = _e.getPrimitive();
1296
1296
  wt(0, Rs.float32Array, u), u.applyMatrix4(l);
1297
1297
  for (let f = 0, E = n.length; f < E && (li.setBuffer(n[h]), r = Qt(
1298
1298
  0,
@@ -1307,10 +1307,10 @@ function pa(c, s, t, e) {
1307
1307
  u
1308
1308
  ), li.clearBuffer(), a += n[f].length, !r); f++)
1309
1309
  ;
1310
- if (Te.releasePrimitive(u), Rs.clearBuffer(), o += i[h].length, r)
1310
+ if (_e.releasePrimitive(u), Rs.clearBuffer(), o += i[h].length, r)
1311
1311
  break;
1312
1312
  }
1313
- return Ui = !1, r;
1313
+ return Bi = !1, r;
1314
1314
  }
1315
1315
  function Qt(c, s, t, e, i, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
1316
1316
  let d, u;
@@ -1338,7 +1338,7 @@ function Qt(c, s, t, e, i, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
1338
1338
  r + s
1339
1339
  );
1340
1340
  else if (F) {
1341
- const L = Te.getPrimitive();
1341
+ const L = _e.getPrimitive();
1342
1342
  wt(s, I, L), L.applyMatrix4(t);
1343
1343
  const N = $t(c), x = jt(c, E);
1344
1344
  wt(N, f, Ge), wt(x, f, He);
@@ -1367,11 +1367,11 @@ function Qt(c, s, t, e, i, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
1367
1367
  o + 1,
1368
1368
  L,
1369
1369
  !h
1370
- ), Te.releasePrimitive(L);
1370
+ ), _e.releasePrimitive(L);
1371
1371
  } else {
1372
1372
  const L = $t(s), N = jt(s, m);
1373
- wt(L, I, vi), wt(N, I, Di);
1374
- const x = l.intersectsBox(vi), k = l.intersectsBox(Di);
1373
+ wt(L, I, Di), wt(N, I, Ui);
1374
+ const x = l.intersectsBox(Di), k = l.intersectsBox(Ui);
1375
1375
  if (x && k)
1376
1376
  S = Qt(
1377
1377
  c,
@@ -1414,11 +1414,11 @@ function Qt(c, s, t, e, i, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
1414
1414
  h
1415
1415
  );
1416
1416
  else {
1417
- const w = Te.getPrimitive();
1418
- w.copy(vi).applyMatrix4(t);
1419
- const P = $t(c), _ = jt(c, E);
1420
- wt(P, f, Ge), wt(_, f, He);
1421
- const v = w.intersectsBox(Ge), Q = w.intersectsBox(He);
1417
+ const w = _e.getPrimitive();
1418
+ w.copy(Di).applyMatrix4(t);
1419
+ const P = $t(c), T = jt(c, E);
1420
+ wt(P, f, Ge), wt(T, f, He);
1421
+ const v = w.intersectsBox(Ge), j = w.intersectsBox(He);
1422
1422
  S = v && Qt(
1423
1423
  L,
1424
1424
  P,
@@ -1431,9 +1431,9 @@ function Qt(c, s, t, e, i, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
1431
1431
  o + 1,
1432
1432
  w,
1433
1433
  !h
1434
- ) || Q && Qt(
1434
+ ) || j && Qt(
1435
1435
  L,
1436
- _,
1436
+ T,
1437
1437
  e,
1438
1438
  t,
1439
1439
  i,
@@ -1443,7 +1443,7 @@ function Qt(c, s, t, e, i, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
1443
1443
  o + 1,
1444
1444
  w,
1445
1445
  !h
1446
- ), Te.releasePrimitive(w);
1446
+ ), _e.releasePrimitive(w);
1447
1447
  }
1448
1448
  else if (k)
1449
1449
  if (y)
@@ -1461,11 +1461,11 @@ function Qt(c, s, t, e, i, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
1461
1461
  h
1462
1462
  );
1463
1463
  else {
1464
- const w = Te.getPrimitive();
1465
- w.copy(Di).applyMatrix4(t);
1466
- const P = $t(c), _ = jt(c, E);
1467
- wt(P, f, Ge), wt(_, f, He);
1468
- const v = w.intersectsBox(Ge), Q = w.intersectsBox(He);
1464
+ const w = _e.getPrimitive();
1465
+ w.copy(Ui).applyMatrix4(t);
1466
+ const P = $t(c), T = jt(c, E);
1467
+ wt(P, f, Ge), wt(T, f, He);
1468
+ const v = w.intersectsBox(Ge), j = w.intersectsBox(He);
1469
1469
  S = v && Qt(
1470
1470
  N,
1471
1471
  P,
@@ -1478,9 +1478,9 @@ function Qt(c, s, t, e, i, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
1478
1478
  o + 1,
1479
1479
  w,
1480
1480
  !h
1481
- ) || Q && Qt(
1481
+ ) || j && Qt(
1482
1482
  N,
1483
- _,
1483
+ T,
1484
1484
  e,
1485
1485
  t,
1486
1486
  i,
@@ -1490,7 +1490,7 @@ function Qt(c, s, t, e, i, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
1490
1490
  o + 1,
1491
1491
  w,
1492
1492
  !h
1493
- ), Te.releasePrimitive(w);
1493
+ ), _e.releasePrimitive(w);
1494
1494
  }
1495
1495
  }
1496
1496
  return S;
@@ -1520,7 +1520,7 @@ class _n {
1520
1520
  indirect: !!s.indirectBuffer,
1521
1521
  ...e
1522
1522
  };
1523
- const { index: i, roots: n, indirectBuffer: r } = s, o = new _n(t, { ...e, [Ni]: !0 });
1523
+ const { index: i, roots: n, indirectBuffer: r } = s, o = new _n(t, { ...e, [bi]: !0 });
1524
1524
  if (o._roots = n, o._indirectBuffer = r || null, e.setIndex) {
1525
1525
  const a = t.getIndex();
1526
1526
  if (a === null) {
@@ -1551,10 +1551,10 @@ class _n {
1551
1551
  indirect: !1,
1552
1552
  // undocumented options
1553
1553
  // Whether to skip generating the tree. Used for deserialization.
1554
- [Ni]: !1
1554
+ [bi]: !1
1555
1555
  }, t), t.useSharedArrayBuffer && !fa())
1556
1556
  throw new Error("MeshBVH: SharedArrayBuffer is not available.");
1557
- this.geometry = s, this._roots = null, this._indirectBuffer = null, t[Ni] || (Po(this, t), !s.boundingBox && t.setBoundingBox && (s.boundingBox = this.getBoundingBox(new se())));
1557
+ this.geometry = s, this._roots = null, this._indirectBuffer = null, t[bi] || (Po(this, t), !s.boundingBox && t.setBoundingBox && (s.boundingBox = this.getBoundingBox(new se())));
1558
1558
  const { _indirectBuffer: e } = this;
1559
1559
  this.resolveTriangleIndex = t.indirect ? (i) => e[i] : (i) => i;
1560
1560
  }
@@ -1565,7 +1565,7 @@ class _n {
1565
1565
  const e = this._roots[t], i = new Uint32Array(e), n = new Uint16Array(e);
1566
1566
  r(0);
1567
1567
  function r(o, a = 0) {
1568
- const l = o * 2, h = n[l + 15] === yi;
1568
+ const l = o * 2, h = n[l + 15] === wi;
1569
1569
  if (h) {
1570
1570
  const d = i[o + 6], u = n[l + 14];
1571
1571
  s(a, h, new Float32Array(e, o * 4, 6), d, u);
@@ -1710,18 +1710,18 @@ class _n {
1710
1710
  function Qn(c, s, t) {
1711
1711
  return c === null || (c.point.applyMatrix4(s.matrixWorld), c.distance = c.point.distanceTo(t.ray.origin), c.object = s, c.distance < t.near || c.distance > t.far) ? null : c;
1712
1712
  }
1713
- const Bi = /* @__PURE__ */ new oo(), qn = /* @__PURE__ */ new de(), Ea = rt.prototype.raycast;
1713
+ const zi = /* @__PURE__ */ new oo(), qn = /* @__PURE__ */ new de(), Ea = rt.prototype.raycast;
1714
1714
  function ma(c, s) {
1715
1715
  if (this.geometry.boundsTree) {
1716
1716
  if (this.material === void 0)
1717
1717
  return;
1718
- qn.copy(this.matrixWorld).invert(), Bi.copy(c.ray).applyMatrix4(qn);
1718
+ qn.copy(this.matrixWorld).invert(), zi.copy(c.ray).applyMatrix4(qn);
1719
1719
  const t = this.geometry.boundsTree;
1720
1720
  if (c.firstHitOnly === !0) {
1721
- const e = Qn(t.raycastFirst(Bi, this.material), this, c);
1721
+ const e = Qn(t.raycastFirst(zi, this.material), this, c);
1722
1722
  e && s.push(e);
1723
1723
  } else {
1724
- const e = t.raycast(Bi, this.material);
1724
+ const e = t.raycast(zi, this.material);
1725
1725
  for (let i = 0, n = e.length; i < n; i++) {
1726
1726
  const r = Qn(e[i], this, c);
1727
1727
  r && s.push(r);
@@ -1736,15 +1736,15 @@ function Ia(c) {
1736
1736
  function ga() {
1737
1737
  this.boundsTree = null;
1738
1738
  }
1739
- class j {
1739
+ class Q {
1740
1740
  constructor() {
1741
1741
  /** Triggers all the callbacks assigned to this event. */
1742
- T(this, "trigger", (s) => {
1742
+ _(this, "trigger", (s) => {
1743
1743
  const t = this.handlers.slice(0);
1744
1744
  for (const e of t)
1745
1745
  e(s);
1746
1746
  });
1747
- T(this, "handlers", []);
1747
+ _(this, "handlers", []);
1748
1748
  }
1749
1749
  /**
1750
1750
  * Add a callback to this event instance.
@@ -1768,12 +1768,12 @@ class j {
1768
1768
  class oi {
1769
1769
  constructor() {
1770
1770
  /** Triggers all the callbacks assigned to this event. */
1771
- T(this, "trigger", async (s) => {
1771
+ _(this, "trigger", async (s) => {
1772
1772
  const t = this.handlers.slice(0);
1773
1773
  for (const e of t)
1774
1774
  await e(s);
1775
1775
  });
1776
- T(this, "handlers", []);
1776
+ _(this, "handlers", []);
1777
1777
  }
1778
1778
  /**
1779
1779
  * Add a callback to this event instance.
@@ -1797,15 +1797,15 @@ class oi {
1797
1797
  class An {
1798
1798
  constructor(s) {
1799
1799
  /** Whether is component is {@link Disposable}. */
1800
- T(this, "isDisposeable", () => "dispose" in this && "onDisposed" in this);
1800
+ _(this, "isDisposeable", () => "dispose" in this && "onDisposed" in this);
1801
1801
  /** Whether is component is {@link Resizeable}. */
1802
- T(this, "isResizeable", () => "resize" in this && "getSize" in this);
1802
+ _(this, "isResizeable", () => "resize" in this && "getSize" in this);
1803
1803
  /** Whether is component is {@link Updateable}. */
1804
- T(this, "isUpdateable", () => "onAfterUpdate" in this && "onBeforeUpdate" in this && "update" in this);
1804
+ _(this, "isUpdateable", () => "onAfterUpdate" in this && "onBeforeUpdate" in this && "update" in this);
1805
1805
  /** Whether is component is {@link Hideable}. */
1806
- T(this, "isHideable", () => "visible" in this);
1806
+ _(this, "isHideable", () => "visible" in this);
1807
1807
  /** Whether is component is {@link Configurable}. */
1808
- T(this, "isConfigurable", () => "setup" in this && "config" in this && "onSetup" in this);
1808
+ _(this, "isConfigurable", () => "setup" in this && "config" in this && "onSetup" in this);
1809
1809
  this.components = s;
1810
1810
  }
1811
1811
  }
@@ -1814,16 +1814,16 @@ class St extends An {
1814
1814
  class Rn extends An {
1815
1815
  constructor(t) {
1816
1816
  super(t);
1817
- T(this, "worlds", /* @__PURE__ */ new Map());
1817
+ _(this, "worlds", /* @__PURE__ */ new Map());
1818
1818
  /**
1819
1819
  * Event that is triggered when a world is added or removed from the `worlds` map.
1820
1820
  * The event payload contains the world instance and the action ("added" or "removed").
1821
1821
  */
1822
- T(this, "onWorldChanged", new j());
1822
+ _(this, "onWorldChanged", new Q());
1823
1823
  /**
1824
1824
  * The current world this item is associated with. It can be null if no world is currently active.
1825
1825
  */
1826
- T(this, "currentWorld", null);
1826
+ _(this, "currentWorld", null);
1827
1827
  this.onWorldChanged.add(({ world: e, action: i }) => {
1828
1828
  i === "removed" && this.worlds.delete(e.uuid);
1829
1829
  });
@@ -1837,29 +1837,29 @@ class Ca extends Rn {
1837
1837
  *
1838
1838
  * @returns True if the instance is controllable, false otherwise.
1839
1839
  */
1840
- T(this, "hasCameraControls", () => "controls" in this);
1840
+ _(this, "hasCameraControls", () => "controls" in this);
1841
1841
  }
1842
1842
  }
1843
1843
  class Ta extends Rn {
1844
1844
  constructor() {
1845
1845
  super(...arguments);
1846
1846
  /** {@link Updateable.onBeforeUpdate} */
1847
- T(this, "onAfterUpdate", new j());
1847
+ _(this, "onAfterUpdate", new Q());
1848
1848
  /** {@link Updateable.onAfterUpdate} */
1849
- T(this, "onBeforeUpdate", new j());
1849
+ _(this, "onBeforeUpdate", new Q());
1850
1850
  /** {@link Disposable.onDisposed} */
1851
- T(this, "onDisposed", new j());
1851
+ _(this, "onDisposed", new Q());
1852
1852
  /** {@link Resizeable.onResize} */
1853
- T(this, "onResize", new j());
1853
+ _(this, "onResize", new Q());
1854
1854
  /**
1855
1855
  * Event that fires when there has been a change to the list of clipping
1856
1856
  * planes used by the active renderer.
1857
1857
  */
1858
- T(this, "onClippingPlanesUpdated", new j());
1858
+ _(this, "onClippingPlanesUpdated", new Q());
1859
1859
  /**
1860
1860
  * The list of [clipping planes](https://threejs.org/docs/#api/en/renderers/WebGLRenderer.clippingPlanes) used by this instance of the renderer.
1861
1861
  */
1862
- T(this, "clippingPlanes", []);
1862
+ _(this, "clippingPlanes", []);
1863
1863
  }
1864
1864
  /**
1865
1865
  * Updates the clipping planes and triggers the `onClippingPlanesUpdated` event.
@@ -1896,9 +1896,9 @@ class Ta extends Rn {
1896
1896
  const ys = class ys extends St {
1897
1897
  constructor(t) {
1898
1898
  super(t);
1899
- T(this, "_disposedComponents", /* @__PURE__ */ new Set());
1899
+ _(this, "_disposedComponents", /* @__PURE__ */ new Set());
1900
1900
  /** {@link Component.enabled} */
1901
- T(this, "enabled", !0);
1901
+ _(this, "enabled", !0);
1902
1902
  t.add(ys.uuid, this);
1903
1903
  }
1904
1904
  // TODO: Remove this?
@@ -1956,21 +1956,21 @@ const ys = class ys extends St {
1956
1956
  * A unique identifier for the component.
1957
1957
  * This UUID is used to register the component within the Components system.
1958
1958
  */
1959
- T(ys, "uuid", "76e9cd8e-ad8f-4753-9ef6-cbc60f7247fe");
1960
- let we = ys;
1959
+ _(ys, "uuid", "76e9cd8e-ad8f-4753-9ef6-cbc60f7247fe");
1960
+ let Fe = ys;
1961
1961
  class _a extends Rn {
1962
1962
  constructor(t) {
1963
1963
  super(t);
1964
1964
  /** {@link Disposable.onDisposed} */
1965
- T(this, "onDisposed", new j());
1965
+ _(this, "onDisposed", new Q());
1966
1966
  /** The set of directional lights managed by this scene component. */
1967
- T(this, "directionalLights", /* @__PURE__ */ new Map());
1967
+ _(this, "directionalLights", /* @__PURE__ */ new Map());
1968
1968
  /** The set of ambient lights managed by this scene component. */
1969
- T(this, "ambientLights", /* @__PURE__ */ new Map());
1969
+ _(this, "ambientLights", /* @__PURE__ */ new Map());
1970
1970
  }
1971
1971
  /** {@link Disposable.dispose} */
1972
1972
  dispose() {
1973
- const t = this.components.get(we);
1973
+ const t = this.components.get(Fe);
1974
1974
  for (const e of this.three.children) {
1975
1975
  const i = e;
1976
1976
  i.geometry && t.destroy(i);
@@ -1993,15 +1993,15 @@ class qe extends Set {
1993
1993
  /**
1994
1994
  * An event that is triggered when a new item is added to the set.
1995
1995
  */
1996
- T(this, "onItemAdded", new j());
1996
+ _(this, "onItemAdded", new Q());
1997
1997
  /**
1998
1998
  * An event that is triggered when an item is deleted from the set.
1999
1999
  */
2000
- T(this, "onItemDeleted", new j());
2000
+ _(this, "onItemDeleted", new Q());
2001
2001
  /**
2002
2002
  * An event that is triggered when the set is cleared.
2003
2003
  */
2004
- T(this, "onCleared", new j());
2004
+ _(this, "onCleared", new Q());
2005
2005
  /**
2006
2006
  * A function that acts as a guard for adding items to the set.
2007
2007
  * It determines whether a given value should be allowed to be added to the set.
@@ -2011,7 +2011,7 @@ class qe extends Set {
2011
2011
  * By default, this function always returns true, allowing all values to be added.
2012
2012
  * You can override this behavior by providing a custom implementation.
2013
2013
  */
2014
- T(this, "guard", () => !0);
2014
+ _(this, "guard", () => !0);
2015
2015
  }
2016
2016
  /**
2017
2017
  * Clears the set and triggers the onCleared event.
@@ -2027,7 +2027,7 @@ class qe extends Set {
2027
2027
  */
2028
2028
  add(...t) {
2029
2029
  for (const e of t)
2030
- this.has(e) || !this.guard(e) || (super.add(e), this.onItemAdded || (this.onItemAdded = new j()), this.onItemAdded.trigger(e));
2030
+ this.has(e) || !this.guard(e) || (super.add(e), this.onItemAdded || (this.onItemAdded = new Q()), this.onItemAdded.trigger(e));
2031
2031
  return this;
2032
2032
  }
2033
2033
  /**
@@ -2047,7 +2047,7 @@ class qe extends Set {
2047
2047
  this.clear(), this.onItemAdded.reset(), this.onItemDeleted.reset(), this.onCleared.reset();
2048
2048
  }
2049
2049
  }
2050
- class Fe extends Map {
2050
+ class Ee extends Map {
2051
2051
  /**
2052
2052
  * Constructs a new DataMap instance.
2053
2053
  *
@@ -2058,19 +2058,19 @@ class Fe extends Map {
2058
2058
  /**
2059
2059
  * An event triggered when a new item is set in the map.
2060
2060
  */
2061
- T(this, "onItemSet", new j());
2061
+ _(this, "onItemSet", new Q());
2062
2062
  /**
2063
2063
  * An event triggered when an existing item in the map is updated.
2064
2064
  */
2065
- T(this, "onItemUpdated", new j());
2065
+ _(this, "onItemUpdated", new Q());
2066
2066
  /**
2067
2067
  * An event triggered when an item is deleted from the map.
2068
2068
  */
2069
- T(this, "onItemDeleted", new j());
2069
+ _(this, "onItemDeleted", new Q());
2070
2070
  /**
2071
2071
  * An event triggered when the map is cleared.
2072
2072
  */
2073
- T(this, "onCleared", new j());
2073
+ _(this, "onCleared", new Q());
2074
2074
  /**
2075
2075
  * A function that acts as a guard for adding items to the set.
2076
2076
  * It determines whether a given value should be allowed to be added to the set.
@@ -2081,7 +2081,7 @@ class Fe extends Map {
2081
2081
  * By default, this function always returns true, allowing all values to be added.
2082
2082
  * You can override this behavior by providing a custom implementation.
2083
2083
  */
2084
- T(this, "guard", () => !0);
2084
+ _(this, "guard", () => !0);
2085
2085
  }
2086
2086
  /**
2087
2087
  * Clears the map and triggers the onCleared event.
@@ -2101,7 +2101,7 @@ class Fe extends Map {
2101
2101
  if (!(this.guard ?? (() => !0))(t, e))
2102
2102
  return this;
2103
2103
  const o = super.set(t, e);
2104
- return i ? (this.onItemUpdated || (this.onItemUpdated = new j()), this.onItemUpdated.trigger({ key: t, value: e })) : (this.onItemSet || (this.onItemSet = new j()), this.onItemSet.trigger({ key: t, value: e })), o;
2104
+ return i ? (this.onItemUpdated || (this.onItemUpdated = new Q()), this.onItemUpdated.trigger({ key: t, value: e })) : (this.onItemSet || (this.onItemSet = new Q()), this.onItemSet.trigger({ key: t, value: e })), o;
2105
2105
  }
2106
2106
  /**
2107
2107
  * Deletes the specified key from the map and triggers the onItemDeleted event if the key was found.
@@ -2120,7 +2120,7 @@ class Fe extends Map {
2120
2120
  this.clear(), this.onItemSet.reset(), this.onItemDeleted.reset(), this.onCleared.reset();
2121
2121
  }
2122
2122
  }
2123
- const ai = 0, Aa = 1, Ra = new q(), Kn = new he(), zi = new gn(), Jn = new q(), js = new je();
2123
+ const ai = 0, Aa = 1, Ra = new q(), Kn = new he(), ki = new gn(), Jn = new q(), js = new je();
2124
2124
  class ya {
2125
2125
  constructor() {
2126
2126
  this.tolerance = -1, this.faces = [], this.newFaces = [], this.assigned = new tr(), this.unassigned = new tr(), this.vertices = [];
@@ -2262,16 +2262,16 @@ class ya {
2262
2262
  p > n && (n = p, l = E);
2263
2263
  }
2264
2264
  }
2265
- n = -1, zi.setFromCoplanarPoints(o.point, a.point, l.point);
2265
+ n = -1, ki.setFromCoplanarPoints(o.point, a.point, l.point);
2266
2266
  for (let u = 0, f = this.vertices.length; u < f; u++) {
2267
2267
  const E = s[u];
2268
2268
  if (E !== o && E !== a && E !== l) {
2269
- const p = Math.abs(zi.distanceToPoint(E.point));
2269
+ const p = Math.abs(ki.distanceToPoint(E.point));
2270
2270
  p > n && (n = p, h = E);
2271
2271
  }
2272
2272
  }
2273
2273
  const d = [];
2274
- if (zi.distanceToPoint(h.point) < 0) {
2274
+ if (ki.distanceToPoint(h.point) < 0) {
2275
2275
  d.push(
2276
2276
  Kt.create(o, a, l),
2277
2277
  Kt.create(h, a, o),
@@ -2381,7 +2381,7 @@ class Kt {
2381
2381
  this.normal = new q(), this.midpoint = new q(), this.area = 0, this.constant = 0, this.outside = null, this.mark = ai, this.edge = null;
2382
2382
  }
2383
2383
  static create(s, t, e) {
2384
- const i = new Kt(), n = new ki(s, i), r = new ki(t, i), o = new ki(e, i);
2384
+ const i = new Kt(), n = new Vi(s, i), r = new Vi(t, i), o = new Vi(e, i);
2385
2385
  return n.next = o.prev = r, r.next = n.prev = o, o.next = r.prev = n, i.edge = n, i.compute();
2386
2386
  }
2387
2387
  getEdge(s) {
@@ -2400,7 +2400,7 @@ class Kt {
2400
2400
  return this.normal.dot(s) - this.constant;
2401
2401
  }
2402
2402
  }
2403
- class ki {
2403
+ class Vi {
2404
2404
  constructor(s, t) {
2405
2405
  this.vertex = s, this.prev = null, this.next = null, this.twin = null, this.face = t;
2406
2406
  }
@@ -2470,7 +2470,7 @@ class tr {
2470
2470
  return this.head === null;
2471
2471
  }
2472
2472
  }
2473
- const nn = [2, 2, 1], rn = [1, 0, 0];
2473
+ const rn = [2, 2, 1], on = [1, 0, 0];
2474
2474
  function ae(c, s) {
2475
2475
  return c * 3 + s;
2476
2476
  }
@@ -2485,7 +2485,7 @@ function Sa(c) {
2485
2485
  const s = c.elements;
2486
2486
  let t = 0;
2487
2487
  for (let e = 0; e < 3; e++) {
2488
- const i = s[ae(nn[e], rn[e])];
2488
+ const i = s[ae(rn[e], on[e])];
2489
2489
  t += 2 * i * i;
2490
2490
  }
2491
2491
  return Math.sqrt(t);
@@ -2494,11 +2494,11 @@ function Oa(c, s) {
2494
2494
  let t = 0, e = 1;
2495
2495
  const i = c.elements;
2496
2496
  for (let l = 0; l < 3; l++) {
2497
- const h = Math.abs(i[ae(nn[l], rn[l])]);
2497
+ const h = Math.abs(i[ae(rn[l], on[l])]);
2498
2498
  h > t && (t = h, e = l);
2499
2499
  }
2500
2500
  let n = 1, r = 0;
2501
- const o = rn[e], a = nn[e];
2501
+ const o = on[e], a = rn[e];
2502
2502
  if (Math.abs(i[ae(a, o)]) > Number.EPSILON) {
2503
2503
  const l = i[ae(a, a)], h = i[ae(o, o)], d = i[ae(a, o)], u = (l - h) / 2 / d;
2504
2504
  let f;
@@ -2552,14 +2552,14 @@ function ba(c) {
2552
2552
  F.elements[0] = I, F.elements[1] = m, F.elements[2] = C, F.elements[3] = m, F.elements[4] = R, F.elements[5] = g, F.elements[6] = C, F.elements[7] = g, F.elements[8] = y, Na(F, e);
2553
2553
  const S = e.unitary, L = new M.Vector3(), N = new M.Vector3(), x = new M.Vector3();
2554
2554
  S.extractBasis(L, N, x);
2555
- let k = -1 / 0, w = -1 / 0, P = -1 / 0, _ = 1 / 0, v = 1 / 0, Q = 1 / 0;
2555
+ let k = -1 / 0, w = -1 / 0, P = -1 / 0, T = 1 / 0, v = 1 / 0, j = 1 / 0;
2556
2556
  for (let at = 0, ft = s.length; at < ft; at++) {
2557
2557
  const ut = s[at];
2558
- k = Math.max(L.dot(ut), k), w = Math.max(N.dot(ut), w), P = Math.max(x.dot(ut), P), _ = Math.min(L.dot(ut), _), v = Math.min(N.dot(ut), v), Q = Math.min(x.dot(ut), Q);
2558
+ k = Math.max(L.dot(ut), k), w = Math.max(N.dot(ut), w), P = Math.max(x.dot(ut), P), T = Math.min(L.dot(ut), T), v = Math.min(N.dot(ut), v), j = Math.min(x.dot(ut), j);
2559
2559
  }
2560
- L.multiplyScalar(0.5 * (_ + k)), N.multiplyScalar(0.5 * (v + w)), x.multiplyScalar(0.5 * (Q + P));
2560
+ L.multiplyScalar(0.5 * (T + k)), N.multiplyScalar(0.5 * (v + w)), x.multiplyScalar(0.5 * (j + P));
2561
2561
  const V = new M.Vector3(), et = new M.Vector3(), H = new M.Matrix3();
2562
- V.add(L).add(N).add(x), et.x = k - _, et.y = w - v, et.z = P - Q, et.multiplyScalar(0.5), H.copy(S);
2562
+ V.add(L).add(N).add(x), et.x = k - T, et.y = w - v, et.z = P - j, et.multiplyScalar(0.5), H.copy(S);
2563
2563
  const { x: nt, y: z, z: U } = et, ot = new M.Matrix4();
2564
2564
  ot.makeScale(nt * 2, z * 2, U * 2);
2565
2565
  const st = new M.Matrix4();
@@ -2602,8 +2602,8 @@ const Nt = class Nt {
2602
2602
  );
2603
2603
  }
2604
2604
  };
2605
- T(Nt, "_pattern", /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/), // prettier-ignore
2606
- T(Nt, "_lut", [
2605
+ _(Nt, "_pattern", /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/), // prettier-ignore
2606
+ _(Nt, "_lut", [
2607
2607
  "00",
2608
2608
  "01",
2609
2609
  "02",
@@ -2861,39 +2861,39 @@ T(Nt, "_lut", [
2861
2861
  "fe",
2862
2862
  "ff"
2863
2863
  ]);
2864
- let Ee = Nt;
2864
+ let me = Nt;
2865
2865
  class xl extends St {
2866
2866
  constructor(t, e) {
2867
2867
  super(t);
2868
2868
  /** {@link Disposable.onDisposed} */
2869
- T(this, "onDisposed", new j());
2869
+ _(this, "onDisposed", new Q());
2870
2870
  /**
2871
2871
  * An event that is triggered when a vertex is found.
2872
2872
  * The event passes a THREE.Vector3 representing the position of the found vertex.
2873
2873
  */
2874
- T(this, "onVertexFound", new j());
2874
+ _(this, "onVertexFound", new Q());
2875
2875
  /**
2876
2876
  * An event that is triggered when a vertex is lost.
2877
2877
  * The event passes a THREE.Vector3 representing the position of the lost vertex.
2878
2878
  */
2879
- T(this, "onVertexLost", new j());
2879
+ _(this, "onVertexLost", new Q());
2880
2880
  /**
2881
2881
  * An event that is triggered when the picker is enabled or disabled
2882
2882
  */
2883
- T(this, "onEnabled", new j());
2883
+ _(this, "onEnabled", new Q());
2884
2884
  /**
2885
2885
  * A reference to the Components instance associated with this VertexPicker.
2886
2886
  */
2887
- T(this, "components");
2887
+ _(this, "components");
2888
2888
  /**
2889
2889
  * A reference to the working plane used for vertex picking.
2890
2890
  * This plane is used to determine which vertices are considered valid for picking.
2891
2891
  * If this value is null, all vertices are considered valid.
2892
2892
  */
2893
- T(this, "workingPlane", null);
2894
- T(this, "_pickedPoint", null);
2895
- T(this, "_config");
2896
- T(this, "_enabled", !1);
2893
+ _(this, "workingPlane", null);
2894
+ _(this, "_pickedPoint", null);
2895
+ _(this, "_config");
2896
+ _(this, "_enabled", !1);
2897
2897
  this.components = t, this.config = {
2898
2898
  snapDistance: 0.25,
2899
2899
  showOnlyVertex: !1,
@@ -3012,22 +3012,22 @@ class xl extends St {
3012
3012
  );
3013
3013
  }
3014
3014
  }
3015
- const di = class di {
3015
+ const ui = class ui {
3016
3016
  constructor() {
3017
3017
  /** {@link Disposable.onDisposed} */
3018
- T(this, "onDisposed", new j());
3018
+ _(this, "onDisposed", new Q());
3019
3019
  /**
3020
3020
  * The list of components created in this app.
3021
3021
  * The keys are UUIDs and the values are instances of the components.
3022
3022
  */
3023
- T(this, "list", /* @__PURE__ */ new Map());
3023
+ _(this, "list", /* @__PURE__ */ new Map());
3024
3024
  /**
3025
3025
  * If disabled, the animation loop will be stopped.
3026
3026
  * Default value is false.
3027
3027
  */
3028
- T(this, "enabled", !1);
3029
- T(this, "_clock");
3030
- T(this, "update", () => {
3028
+ _(this, "enabled", !1);
3029
+ _(this, "_clock");
3030
+ _(this, "update", () => {
3031
3031
  if (!this.enabled)
3032
3032
  return;
3033
3033
  const s = this._clock.getDelta();
@@ -3035,7 +3035,7 @@ const di = class di {
3035
3035
  e.enabled && e.isUpdateable() && e.update(s);
3036
3036
  requestAnimationFrame(this.update);
3037
3037
  });
3038
- this._clock = new M.Clock(), di.setupBVH();
3038
+ this._clock = new M.Clock(), ui.setupBVH();
3039
3039
  }
3040
3040
  /**
3041
3041
  * Adds a component to the list of components.
@@ -3053,7 +3053,7 @@ const di = class di {
3053
3053
  throw new Error(
3054
3054
  "You're trying to add a component that already exists in the components instance. Use Components.get() instead."
3055
3055
  );
3056
- Ee.validate(s), this.list.set(s, t);
3056
+ me.validate(s), this.list.set(s, t);
3057
3057
  }
3058
3058
  /**
3059
3059
  * Retrieves a component instance by its constructor function.
@@ -3114,41 +3114,41 @@ const di = class di {
3114
3114
  /**
3115
3115
  * The version of the @thatopen/components library.
3116
3116
  */
3117
- T(di, "release", "2.2.8");
3118
- let on = di;
3117
+ _(ui, "release", "2.2.10");
3118
+ let an = ui;
3119
3119
  class La extends An {
3120
3120
  constructor() {
3121
3121
  super(...arguments);
3122
3122
  /**
3123
3123
  * All the loaded [meshes](https://threejs.org/docs/#api/en/objects/Mesh). These meshes will be taken into account in operations like raycasting.
3124
3124
  */
3125
- T(this, "meshes", /* @__PURE__ */ new Set());
3125
+ _(this, "meshes", /* @__PURE__ */ new Set());
3126
3126
  /** {@link Updateable.onAfterUpdate} */
3127
- T(this, "onAfterUpdate", new j());
3127
+ _(this, "onAfterUpdate", new Q());
3128
3128
  /** {@link Updateable.onBeforeUpdate} */
3129
- T(this, "onBeforeUpdate", new j());
3129
+ _(this, "onBeforeUpdate", new Q());
3130
3130
  /** {@link Disposable.onDisposed} */
3131
- T(this, "onDisposed", new j());
3131
+ _(this, "onDisposed", new Q());
3132
3132
  /**
3133
3133
  * Indicates whether the world is currently being disposed. This is useful to prevent trying to access world's elements when it's being disposed, which could cause errors when you dispose a world.
3134
3134
  */
3135
- T(this, "isDisposing", !1);
3135
+ _(this, "isDisposing", !1);
3136
3136
  /**
3137
3137
  * Indicates whether the world is currently enabled.
3138
3138
  * When disabled, the world will not be updated.
3139
3139
  */
3140
- T(this, "enabled", !0);
3140
+ _(this, "enabled", !0);
3141
3141
  /**
3142
- * A unique identifier for the world.
3142
+ * A unique identifier for the world. Is not meant to be changed at any moment.
3143
3143
  */
3144
- T(this, "uuid", Ee.create());
3144
+ _(this, "uuid", me.create());
3145
3145
  /**
3146
3146
  * An optional name for the world.
3147
3147
  */
3148
- T(this, "name");
3149
- T(this, "_scene");
3150
- T(this, "_camera");
3151
- T(this, "_renderer", null);
3148
+ _(this, "name");
3149
+ _(this, "_scene");
3150
+ _(this, "_camera");
3151
+ _(this, "_renderer", null);
3152
3152
  }
3153
3153
  /**
3154
3154
  * Getter for the scene. If no scene is initialized, it throws an error.
@@ -3207,32 +3207,32 @@ class La extends An {
3207
3207
  /** {@link Disposable.dispose} */
3208
3208
  dispose(t = !0) {
3209
3209
  if (this.enabled = !1, this.isDisposing = !0, this.scene.onWorldChanged.trigger({ world: this, action: "removed" }), this.camera.onWorldChanged.trigger({ world: this, action: "removed" }), this.renderer && this.renderer.onWorldChanged.trigger({ world: this, action: "removed" }), t) {
3210
- const e = this.components.get(we);
3210
+ const i = this.components.get(Fe);
3211
3211
  this.scene.dispose(), this.camera.isDisposeable() && this.camera.dispose(), this.renderer && this.renderer.dispose();
3212
- for (const i of this.meshes)
3213
- e.destroy(i);
3212
+ for (const n of this.meshes)
3213
+ i.destroy(n);
3214
3214
  this.meshes.clear();
3215
3215
  }
3216
- this._scene = null, this._camera = null, this._renderer = null, this.onDisposed.trigger();
3216
+ this._scene = null, this._camera = null, this._renderer = null, this.components.get(hi).list.delete(this.uuid), this.onDisposed.trigger(), this.onDisposed.reset();
3217
3217
  }
3218
3218
  }
3219
3219
  class Ma extends _a {
3220
3220
  constructor(t) {
3221
3221
  super(t);
3222
3222
  /** {@link Configurable.isSetup} */
3223
- T(this, "isSetup", !1);
3223
+ _(this, "isSetup", !1);
3224
3224
  /**
3225
3225
  * The underlying Three.js scene object.
3226
3226
  * It is used to define the 3D space containing objects, lights, and cameras.
3227
3227
  */
3228
- T(this, "three");
3228
+ _(this, "three");
3229
3229
  /** {@link Configurable.onSetup} */
3230
- T(this, "onSetup", new j());
3230
+ _(this, "onSetup", new Q());
3231
3231
  /**
3232
3232
  * Configuration interface for the {@link SimpleScene}.
3233
3233
  * Defines properties for directional and ambient lights.
3234
3234
  */
3235
- T(this, "config", {
3235
+ _(this, "config", {
3236
3236
  directionalLight: {
3237
3237
  color: new M.Color("white"),
3238
3238
  intensity: 1.5,
@@ -3274,35 +3274,35 @@ class vl extends Ta {
3274
3274
  * Indicates whether the renderer is enabled. If it's not, it won't be updated.
3275
3275
  * Default is `true`.
3276
3276
  */
3277
- T(this, "enabled", !0);
3277
+ _(this, "enabled", !0);
3278
3278
  /**
3279
3279
  * The HTML container of the THREE.js canvas where the scene is rendered.
3280
3280
  */
3281
- T(this, "container");
3281
+ _(this, "container");
3282
3282
  /**
3283
3283
  * The THREE.js WebGLRenderer instance.
3284
3284
  */
3285
- T(this, "three");
3286
- T(this, "_canvas");
3287
- T(this, "_parameters");
3288
- T(this, "_resizeObserver", null);
3289
- T(this, "onContainerUpdated", new j());
3290
- T(this, "_resizing", !1);
3285
+ _(this, "three");
3286
+ _(this, "_canvas");
3287
+ _(this, "_parameters");
3288
+ _(this, "_resizeObserver", null);
3289
+ _(this, "onContainerUpdated", new Q());
3290
+ _(this, "_resizing", !1);
3291
3291
  /** {@link Resizeable.resize} */
3292
- T(this, "resize", (t) => {
3292
+ _(this, "resize", (t) => {
3293
3293
  if (this._resizing)
3294
3294
  return;
3295
3295
  this._resizing = !0, this.onContainerUpdated.trigger();
3296
3296
  const e = t ? t.x : this.container.clientWidth, i = t ? t.y : this.container.clientHeight;
3297
3297
  this.three.setSize(e, i), this.onResize.trigger(new M.Vector2(e, i)), this._resizing = !1;
3298
3298
  });
3299
- T(this, "resizeEvent", () => {
3299
+ _(this, "resizeEvent", () => {
3300
3300
  this.resize();
3301
3301
  });
3302
- T(this, "onContextLost", (t) => {
3302
+ _(this, "onContextLost", (t) => {
3303
3303
  t.preventDefault(), this.enabled = !1;
3304
3304
  });
3305
- T(this, "onContextBack", () => {
3305
+ _(this, "onContextBack", () => {
3306
3306
  this.three.setRenderTarget(null), this.three.dispose(), this.three = new M.WebGLRenderer({
3307
3307
  canvas: this._canvas,
3308
3308
  antialias: !0,
@@ -3390,7 +3390,7 @@ const ht = {
3390
3390
  function Oe(c) {
3391
3391
  return c.isPerspectiveCamera;
3392
3392
  }
3393
- function Ce(c) {
3393
+ function Te(c) {
3394
3394
  return c.isOrthographicCamera;
3395
3395
  }
3396
3396
  const Xe = Math.PI * 2, sr = Math.PI / 2, Dr = 1e-5, us = Math.PI / 180;
@@ -3435,16 +3435,16 @@ function nr(c, s, t, e, i = 1 / 0, n, r) {
3435
3435
  h = c.x - f, d = c.y - E, u = c.z - p;
3436
3436
  const F = (t.x + o * f) * n, S = (t.y + o * E) * n, L = (t.z + o * p) * n;
3437
3437
  t.x = (t.x - o * F) * l, t.y = (t.y - o * S) * l, t.z = (t.z - o * L) * l, r.x = h + (f + F) * l, r.y = d + (E + S) * l, r.z = u + (p + L) * l;
3438
- const N = I - c.x, x = m - c.y, k = C - c.z, w = r.x - I, P = r.y - m, _ = r.z - C;
3439
- return N * w + x * P + k * _ > 0 && (r.x = I, r.y = m, r.z = C, t.x = (r.x - I) / n, t.y = (r.y - m) / n, t.z = (r.z - C) / n), r;
3438
+ const N = I - c.x, x = m - c.y, k = C - c.z, w = r.x - I, P = r.y - m, T = r.z - C;
3439
+ return N * w + x * P + k * T > 0 && (r.x = I, r.y = m, r.z = C, t.x = (r.x - I) / n, t.y = (r.y - m) / n, t.z = (r.z - C) / n), r;
3440
3440
  }
3441
- function Vi(c, s) {
3441
+ function Yi(c, s) {
3442
3442
  s.set(0, 0), c.forEach((t) => {
3443
3443
  s.x += t.clientX, s.y += t.clientY;
3444
3444
  }), s.x /= c.length, s.y /= c.length;
3445
3445
  }
3446
- function Yi(c, s) {
3447
- return Ce(c) ? (console.warn(`${s} is not supported in OrthographicCamera`), !0) : !1;
3446
+ function Gi(c, s) {
3447
+ return Te(c) ? (console.warn(`${s} is not supported in OrthographicCamera`), !0) : !1;
3448
3448
  }
3449
3449
  class xa {
3450
3450
  constructor() {
@@ -3511,7 +3511,7 @@ class xa {
3511
3511
  }
3512
3512
  }
3513
3513
  const va = "2.7.3", qs = 1 / 8, Ur = typeof window < "u", Da = Ur && /Mac/.test(navigator.platform), Ua = !(Ur && "PointerEvent" in window);
3514
- let lt, rr, Ks, Gi, kt, dt, Et, Ze, Es, ne, re, Ne, or, ar, Wt, ms, $e, cr, Hi, lr, Wi, Xi, Js;
3514
+ let lt, rr, Ks, Hi, kt, dt, Et, Ze, Es, ne, re, Ne, or, ar, Wt, ms, $e, cr, Wi, lr, Xi, Zi, Js;
3515
3515
  class vt extends xa {
3516
3516
  /**
3517
3517
  * Injects THREE as the dependency. You can then proceed to use CameraControls.
@@ -3554,7 +3554,7 @@ class vt extends xa {
3554
3554
  * @category Statics
3555
3555
  */
3556
3556
  static install(s) {
3557
- lt = s.THREE, rr = Object.freeze(new lt.Vector3(0, 0, 0)), Ks = Object.freeze(new lt.Vector3(0, 1, 0)), Gi = Object.freeze(new lt.Vector3(0, 0, 1)), kt = new lt.Vector2(), dt = new lt.Vector3(), Et = new lt.Vector3(), Ze = new lt.Vector3(), Es = new lt.Vector3(), ne = new lt.Vector3(), re = new lt.Vector3(), Ne = new lt.Vector3(), or = new lt.Vector3(), ar = new lt.Vector3(), Wt = new lt.Spherical(), ms = new lt.Spherical(), $e = new lt.Box3(), cr = new lt.Box3(), Hi = new lt.Sphere(), lr = new lt.Quaternion(), Wi = new lt.Quaternion(), Xi = new lt.Matrix4(), Js = new lt.Raycaster();
3557
+ lt = s.THREE, rr = Object.freeze(new lt.Vector3(0, 0, 0)), Ks = Object.freeze(new lt.Vector3(0, 1, 0)), Hi = Object.freeze(new lt.Vector3(0, 0, 1)), kt = new lt.Vector2(), dt = new lt.Vector3(), Et = new lt.Vector3(), Ze = new lt.Vector3(), Es = new lt.Vector3(), ne = new lt.Vector3(), re = new lt.Vector3(), Ne = new lt.Vector3(), or = new lt.Vector3(), ar = new lt.Vector3(), Wt = new lt.Spherical(), ms = new lt.Spherical(), $e = new lt.Box3(), cr = new lt.Box3(), Wi = new lt.Sphere(), lr = new lt.Quaternion(), Xi = new lt.Quaternion(), Zi = new lt.Matrix4(), Js = new lt.Raycaster();
3558
3558
  }
3559
3559
  /**
3560
3560
  * list all ACTIONs
@@ -3587,7 +3587,7 @@ class vt extends xa {
3587
3587
  if (Oe(this._camera)) {
3588
3588
  const N = dt.copy(this._camera.position).sub(this._target), x = this._camera.getEffectiveFOV() * us, k = N.length() * Math.tan(x * 0.5);
3589
3589
  S = this.truckSpeed * g * k / this._elementRect.height, L = this.truckSpeed * y * k / this._elementRect.height;
3590
- } else if (Ce(this._camera)) {
3590
+ } else if (Te(this._camera)) {
3591
3591
  const N = this._camera;
3592
3592
  S = g * (N.right - N.left) / N.zoom / this._elementRect.width, L = y * (N.top - N.bottom) / N.zoom / this._elementRect.height;
3593
3593
  } else
@@ -3611,10 +3611,10 @@ class vt extends xa {
3611
3611
  left: G.ROTATE,
3612
3612
  middle: G.DOLLY,
3613
3613
  right: G.TRUCK,
3614
- wheel: Oe(this._camera) ? G.DOLLY : Ce(this._camera) ? G.ZOOM : G.NONE
3614
+ wheel: Oe(this._camera) ? G.DOLLY : Te(this._camera) ? G.ZOOM : G.NONE
3615
3615
  }, this.touches = {
3616
3616
  one: G.TOUCH_ROTATE,
3617
- two: Oe(this._camera) ? G.TOUCH_DOLLY_TRUCK : Ce(this._camera) ? G.TOUCH_ZOOM_TRUCK : G.NONE,
3617
+ two: Oe(this._camera) ? G.TOUCH_DOLLY_TRUCK : Te(this._camera) ? G.TOUCH_ZOOM_TRUCK : G.NONE,
3618
3618
  three: G.TOUCH_TRUCK
3619
3619
  };
3620
3620
  const e = new lt.Vector2(), i = new lt.Vector2(), n = new lt.Vector2(), r = (g) => {
@@ -3761,7 +3761,7 @@ class vt extends xa {
3761
3761
  }, p = (g) => {
3762
3762
  if (!this._enabled)
3763
3763
  return;
3764
- if (Vi(this._activePointers, kt), this._getClientRect(this._elementRect), e.copy(kt), i.copy(kt), this._activePointers.length >= 2) {
3764
+ if (Yi(this._activePointers, kt), this._getClientRect(this._elementRect), e.copy(kt), i.copy(kt), this._activePointers.length >= 2) {
3765
3765
  const F = kt.x - this._activePointers[1].clientX, S = kt.y - this._activePointers[1].clientY, L = Math.sqrt(F * F + S * S);
3766
3766
  n.set(0, L);
3767
3767
  const N = (this._activePointers[0].clientX + this._activePointers[1].clientX) * 0.5, x = (this._activePointers[0].clientY + this._activePointers[1].clientY) * 0.5;
@@ -3787,7 +3787,7 @@ class vt extends xa {
3787
3787
  }, I = () => {
3788
3788
  if (!this._enabled || !this._dragNeedsUpdate)
3789
3789
  return;
3790
- this._dragNeedsUpdate = !1, Vi(this._activePointers, kt);
3790
+ this._dragNeedsUpdate = !1, Yi(this._activePointers, kt);
3791
3791
  const y = this._domElement && document.pointerLockElement === this._domElement ? this._lockedPointer || this._activePointers[0] : null, F = y ? -y.deltaX : i.x - kt.x, S = y ? -y.deltaY : i.y - kt.y;
3792
3792
  if (i.copy(kt), ((this._state & G.ROTATE) === G.ROTATE || (this._state & G.TOUCH_ROTATE) === G.TOUCH_ROTATE || (this._state & G.TOUCH_DOLLY_ROTATE) === G.TOUCH_DOLLY_ROTATE || (this._state & G.TOUCH_ZOOM_ROTATE) === G.TOUCH_ZOOM_ROTATE) && (this._rotateInternal(F, S), this._isUserControllingRotate = !0), (this._state & G.DOLLY) === G.DOLLY || (this._state & G.ZOOM) === G.ZOOM) {
3793
3793
  const L = this.dollyToCursor ? (e.x - this._elementRect.x) / this._elementRect.width * 2 - 1 : 0, N = this.dollyToCursor ? (e.y - this._elementRect.y) / this._elementRect.height * -2 + 1 : 0, x = this.dollyDragInverted ? -1 : 1;
@@ -3801,7 +3801,7 @@ class vt extends xa {
3801
3801
  }
3802
3802
  ((this._state & G.TRUCK) === G.TRUCK || (this._state & G.TOUCH_TRUCK) === G.TOUCH_TRUCK || (this._state & G.TOUCH_DOLLY_TRUCK) === G.TOUCH_DOLLY_TRUCK || (this._state & G.TOUCH_ZOOM_TRUCK) === G.TOUCH_ZOOM_TRUCK) && (this._truckInternal(F, S, !1), this._isUserControllingTruck = !0), ((this._state & G.OFFSET) === G.OFFSET || (this._state & G.TOUCH_OFFSET) === G.TOUCH_OFFSET || (this._state & G.TOUCH_DOLLY_OFFSET) === G.TOUCH_DOLLY_OFFSET || (this._state & G.TOUCH_ZOOM_OFFSET) === G.TOUCH_ZOOM_OFFSET) && (this._truckInternal(F, S, !0), this._isUserControllingOffset = !0), this.dispatchEvent({ type: "control" });
3803
3803
  }, m = () => {
3804
- Vi(this._activePointers, kt), i.copy(kt), this._dragNeedsUpdate = !1, (this._activePointers.length === 0 || this._activePointers.length === 1 && this._activePointers[0] === this._lockedPointer) && (this._isDragging = !1), this._activePointers.length === 0 && this._domElement && (this._domElement.ownerDocument.removeEventListener("pointermove", a, { passive: !1 }), this._domElement.ownerDocument.removeEventListener("mousemove", l), this._domElement.ownerDocument.removeEventListener("pointerup", h), this._domElement.ownerDocument.removeEventListener("mouseup", d), this.dispatchEvent({ type: "controlend" }));
3804
+ Yi(this._activePointers, kt), i.copy(kt), this._dragNeedsUpdate = !1, (this._activePointers.length === 0 || this._activePointers.length === 1 && this._activePointers[0] === this._lockedPointer) && (this._isDragging = !1), this._activePointers.length === 0 && this._domElement && (this._domElement.ownerDocument.removeEventListener("pointermove", a, { passive: !1 }), this._domElement.ownerDocument.removeEventListener("mousemove", l), this._domElement.ownerDocument.removeEventListener("pointerup", h), this._domElement.ownerDocument.removeEventListener("mouseup", d), this.dispatchEvent({ type: "controlend" }));
3805
3805
  };
3806
3806
  this.lockPointer = () => {
3807
3807
  !this._enabled || !this._domElement || (this.cancel(), this._lockedPointer = {
@@ -4192,15 +4192,15 @@ class vt extends xa {
4192
4192
  l.isEmpty() && (console.warn("camera-controls: fitTo() cannot be used with an empty box. Aborting"), Promise.resolve());
4193
4193
  const h = ir(this._sphericalEnd.theta, sr), d = ir(this._sphericalEnd.phi, sr);
4194
4194
  a.push(this.rotateTo(h, d, t));
4195
- const u = dt.setFromSpherical(this._sphericalEnd).normalize(), f = lr.setFromUnitVectors(u, Gi), E = mt(Math.abs(u.y), 1);
4196
- E && f.multiply(Wi.setFromAxisAngle(Ks, h)), f.multiply(this._yAxisUpSpaceInverse);
4195
+ const u = dt.setFromSpherical(this._sphericalEnd).normalize(), f = lr.setFromUnitVectors(u, Hi), E = mt(Math.abs(u.y), 1);
4196
+ E && f.multiply(Xi.setFromAxisAngle(Ks, h)), f.multiply(this._yAxisUpSpaceInverse);
4197
4197
  const p = cr.makeEmpty();
4198
- Et.copy(l.min).applyQuaternion(f), p.expandByPoint(Et), Et.copy(l.min).setX(l.max.x).applyQuaternion(f), p.expandByPoint(Et), Et.copy(l.min).setY(l.max.y).applyQuaternion(f), p.expandByPoint(Et), Et.copy(l.max).setZ(l.min.z).applyQuaternion(f), p.expandByPoint(Et), Et.copy(l.min).setZ(l.max.z).applyQuaternion(f), p.expandByPoint(Et), Et.copy(l.max).setY(l.min.y).applyQuaternion(f), p.expandByPoint(Et), Et.copy(l.max).setX(l.min.x).applyQuaternion(f), p.expandByPoint(Et), Et.copy(l.max).applyQuaternion(f), p.expandByPoint(Et), p.min.x -= i, p.min.y -= r, p.max.x += n, p.max.y += o, f.setFromUnitVectors(Gi, u), E && f.premultiply(Wi.invert()), f.premultiply(this._yAxisUpSpace);
4198
+ Et.copy(l.min).applyQuaternion(f), p.expandByPoint(Et), Et.copy(l.min).setX(l.max.x).applyQuaternion(f), p.expandByPoint(Et), Et.copy(l.min).setY(l.max.y).applyQuaternion(f), p.expandByPoint(Et), Et.copy(l.max).setZ(l.min.z).applyQuaternion(f), p.expandByPoint(Et), Et.copy(l.min).setZ(l.max.z).applyQuaternion(f), p.expandByPoint(Et), Et.copy(l.max).setY(l.min.y).applyQuaternion(f), p.expandByPoint(Et), Et.copy(l.max).setX(l.min.x).applyQuaternion(f), p.expandByPoint(Et), Et.copy(l.max).applyQuaternion(f), p.expandByPoint(Et), p.min.x -= i, p.min.y -= r, p.max.x += n, p.max.y += o, f.setFromUnitVectors(Hi, u), E && f.premultiply(Xi.invert()), f.premultiply(this._yAxisUpSpace);
4199
4199
  const I = p.getSize(dt), m = p.getCenter(Et).applyQuaternion(f);
4200
4200
  if (Oe(this._camera)) {
4201
4201
  const C = this.getDistanceToFitBox(I.x, I.y, I.z, e);
4202
4202
  a.push(this.moveTo(m.x, m.y, m.z, t)), a.push(this.dollyTo(C, t)), a.push(this.setFocalOffset(0, 0, 0, t));
4203
- } else if (Ce(this._camera)) {
4203
+ } else if (Te(this._camera)) {
4204
4204
  const C = this._camera, R = C.right - C.left, g = C.top - C.bottom, y = e ? Math.max(R / I.x, g / I.y) : Math.min(R / I.x, g / I.y);
4205
4205
  a.push(this.moveTo(m.x, m.y, m.z, t)), a.push(this.zoomTo(y, t)), a.push(this.setFocalOffset(0, 0, 0, t));
4206
4206
  }
@@ -4213,11 +4213,11 @@ class vt extends xa {
4213
4213
  * @category Methods
4214
4214
  */
4215
4215
  fitToSphere(s, t) {
4216
- const e = [], n = s instanceof lt.Sphere ? Hi.copy(s) : vt.createBoundingSphere(s, Hi);
4216
+ const e = [], n = s instanceof lt.Sphere ? Wi.copy(s) : vt.createBoundingSphere(s, Wi);
4217
4217
  if (e.push(this.moveTo(n.center.x, n.center.y, n.center.z, t)), Oe(this._camera)) {
4218
4218
  const r = this.getDistanceToFitSphere(n.radius);
4219
4219
  e.push(this.dollyTo(r, t));
4220
- } else if (Ce(this._camera)) {
4220
+ } else if (Te(this._camera)) {
4221
4221
  const r = this._camera.right - this._camera.left, o = this._camera.top - this._camera.bottom, a = 2 * n.radius, l = Math.min(r / a, o / a);
4222
4222
  e.push(this.zoomTo(l, t));
4223
4223
  }
@@ -4358,7 +4358,7 @@ class vt extends xa {
4358
4358
  * @category Methods
4359
4359
  */
4360
4360
  getDistanceToFitBox(s, t, e, i = !1) {
4361
- if (Yi(this._camera, "getDistanceToFitBox"))
4361
+ if (Gi(this._camera, "getDistanceToFitBox"))
4362
4362
  return this._spherical.radius;
4363
4363
  const n = s / t, r = this._camera.getEffectiveFOV() * us, o = this._camera.aspect;
4364
4364
  return ((i ? n > o : n < o) ? t : s / o) * 0.5 / Math.tan(r * 0.5) + e * 0.5;
@@ -4370,7 +4370,7 @@ class vt extends xa {
4370
4370
  * @category Methods
4371
4371
  */
4372
4372
  getDistanceToFitSphere(s) {
4373
- if (Yi(this._camera, "getDistanceToFitSphere"))
4373
+ if (Gi(this._camera, "getDistanceToFitSphere"))
4374
4374
  return this._spherical.radius;
4375
4375
  const t = this._camera.getEffectiveFOV() * us, e = Math.atan(Math.tan(t * 0.5) * this._camera.aspect) * 2, i = 1 < this._camera.aspect ? t : e;
4376
4376
  return s / Math.sin(i * 0.5);
@@ -4520,7 +4520,7 @@ class vt extends xa {
4520
4520
  this._boundary.clampPoint(g, g);
4521
4521
  const S = Et.subVectors(g, this._targetEnd);
4522
4522
  this._targetEnd.copy(g), this._target.add(S), this._changedDolly -= d, Tt(this._changedDolly) && (this._changedDolly = 0);
4523
- } else if (Ce(this._camera) && this._changedZoom !== 0) {
4523
+ } else if (Te(this._camera) && this._changedZoom !== 0) {
4524
4524
  const d = this._zoom - this._lastZoom, u = this._camera, f = dt.set(this._dollyControlCoord.x, this._dollyControlCoord.y, (u.near + u.far) / (u.near - u.far)).unproject(u), E = Et.set(0, 0, -1).applyQuaternion(u.quaternion), p = Ze.copy(f).add(E.multiplyScalar(-f.dot(u.up))), m = -(this._zoom - d - this._zoom) / this._zoom, C = this._getCameraDirection(Es), R = this._targetEnd.dot(C), g = dt.copy(this._targetEnd).lerp(p, m), y = g.dot(C), F = C.multiplyScalar(y - R);
4525
4525
  g.sub(F), this._boundary.clampPoint(g, g);
4526
4526
  const S = Et.subVectors(g, this._targetEnd);
@@ -4635,7 +4635,7 @@ class vt extends xa {
4635
4635
  if (Oe(this._camera)) {
4636
4636
  const s = this._camera, t = s.near, e = s.getEffectiveFOV() * us, i = Math.tan(e * 0.5) * t, n = i * s.aspect;
4637
4637
  this._nearPlaneCorners[0].set(-n, -i, 0), this._nearPlaneCorners[1].set(n, -i, 0), this._nearPlaneCorners[2].set(n, i, 0), this._nearPlaneCorners[3].set(-n, i, 0);
4638
- } else if (Ce(this._camera)) {
4638
+ } else if (Te(this._camera)) {
4639
4639
  const s = this._camera, t = 1 / s.zoom, e = s.left * t, i = s.right * t, n = s.top * t, r = s.bottom * t;
4640
4640
  this._nearPlaneCorners[0].set(e, n, 0), this._nearPlaneCorners[1].set(i, n, 0), this._nearPlaneCorners[2].set(i, r, 0), this._nearPlaneCorners[3].set(e, r, 0);
4641
4641
  }
@@ -4643,13 +4643,13 @@ class vt extends xa {
4643
4643
  // lateUpdate
4644
4644
  _collisionTest() {
4645
4645
  let s = 1 / 0;
4646
- if (!(this.colliderMeshes.length >= 1) || Yi(this._camera, "_collisionTest"))
4646
+ if (!(this.colliderMeshes.length >= 1) || Gi(this._camera, "_collisionTest"))
4647
4647
  return s;
4648
4648
  const e = this._getTargetDirection(Es);
4649
- Xi.lookAt(rr, e, this._camera.up);
4649
+ Zi.lookAt(rr, e, this._camera.up);
4650
4650
  for (let i = 0; i < 4; i++) {
4651
4651
  const n = Et.copy(this._nearPlaneCorners[i]);
4652
- n.applyMatrix4(Xi);
4652
+ n.applyMatrix4(Zi);
4653
4653
  const r = Ze.addVectors(this._target, n);
4654
4654
  Js.set(r, e), Js.far = this._spherical.radius + 1;
4655
4655
  const o = Js.intersectObjects(this.colliderMeshes);
@@ -4732,27 +4732,27 @@ class Ns extends Ca {
4732
4732
  constructor(t) {
4733
4733
  super(t);
4734
4734
  /** {@link Updateable.onBeforeUpdate} */
4735
- T(this, "onBeforeUpdate", new j());
4735
+ _(this, "onBeforeUpdate", new Q());
4736
4736
  /** {@link Updateable.onAfterUpdate} */
4737
- T(this, "onAfterUpdate", new j());
4737
+ _(this, "onAfterUpdate", new Q());
4738
4738
  /**
4739
4739
  * Event that is triggered when the aspect of the camera has been updated.
4740
4740
  * This event is useful when you need to perform actions after the aspect of the camera has been changed.
4741
4741
  */
4742
- T(this, "onAspectUpdated", new j());
4742
+ _(this, "onAspectUpdated", new Q());
4743
4743
  /** {@link Disposable.onDisposed} */
4744
- T(this, "onDisposed", new j());
4744
+ _(this, "onDisposed", new Q());
4745
4745
  /**
4746
4746
  * A three.js PerspectiveCamera or OrthographicCamera instance.
4747
4747
  * This camera is used for rendering the scene.
4748
4748
  */
4749
- T(this, "three");
4750
- T(this, "_allControls", /* @__PURE__ */ new Map());
4749
+ _(this, "three");
4750
+ _(this, "_allControls", /* @__PURE__ */ new Map());
4751
4751
  /**
4752
4752
  * Updates the aspect of the camera to match the size of the
4753
4753
  * {@link Components.renderer}.
4754
4754
  */
4755
- T(this, "updateAspect", () => {
4755
+ _(this, "updateAspect", () => {
4756
4756
  var t;
4757
4757
  if (!(!this.currentWorld || !this.currentWorld.renderer)) {
4758
4758
  if (this.three instanceof M.OrthographicCamera) {
@@ -4851,33 +4851,23 @@ class Ns extends Ca {
4851
4851
  };
4852
4852
  }
4853
4853
  }
4854
- const ui = class ui extends St {
4854
+ const fi = class fi extends St {
4855
4855
  constructor(t) {
4856
4856
  super(t);
4857
4857
  /** {@link Updateable.onAfterUpdate} */
4858
- T(this, "onAfterUpdate", new j());
4858
+ _(this, "onAfterUpdate", new Q());
4859
4859
  /** {@link Updateable.onBeforeUpdate} */
4860
- T(this, "onBeforeUpdate", new j());
4860
+ _(this, "onBeforeUpdate", new Q());
4861
4861
  /** {@link Disposable.onDisposed} */
4862
- T(this, "onDisposed", new j());
4863
- /**
4864
- * An event that is triggered when a new world is created.
4865
- * The event passes the newly created world as a parameter.
4866
- */
4867
- T(this, "onWorldCreated", new j());
4868
- /**
4869
- * An event that is triggered when a world is deleted.
4870
- * The event passes the UUID of the deleted world as a parameter.
4871
- */
4872
- T(this, "onWorldDeleted", new j());
4862
+ _(this, "onDisposed", new Q());
4873
4863
  /**
4874
4864
  * A collection of worlds managed by this component.
4875
4865
  * The key is the unique identifier (UUID) of the world, and the value is the World instance.
4876
4866
  */
4877
- T(this, "list", /* @__PURE__ */ new Map());
4867
+ _(this, "list", new Ee());
4878
4868
  /** {@link Component.enabled} */
4879
- T(this, "enabled", !0);
4880
- t.add(ui.uuid, this);
4869
+ _(this, "enabled", !0);
4870
+ t.add(fi.uuid, this);
4881
4871
  }
4882
4872
  /**
4883
4873
  * Creates a new instance of a SimpleWorld and adds it to the list of worlds.
@@ -4892,7 +4882,7 @@ const ui = class ui extends St {
4892
4882
  const t = new La(this.components), e = t.uuid;
4893
4883
  if (this.list.has(e))
4894
4884
  throw new Error("There is already a world with this name!");
4895
- return this.list.set(e, t), this.onWorldCreated.trigger(t), t;
4885
+ return this.list.set(e, t), t;
4896
4886
  }
4897
4887
  /**
4898
4888
  * Deletes a world from the list of worlds.
@@ -4900,21 +4890,16 @@ const ui = class ui extends St {
4900
4890
  * @param {World} world - The world to be deleted.
4901
4891
  *
4902
4892
  * @throws {Error} - Throws an error if the provided world is not found in the list.
4903
- *
4904
- * @returns {void}
4905
4893
  */
4906
4894
  delete(t) {
4907
4895
  if (!this.list.has(t.uuid))
4908
4896
  throw new Error("The provided world is not found in the list!");
4909
- const e = t.uuid;
4910
- this.list.delete(t.uuid), t.dispose(), this.onWorldDeleted.trigger(e);
4897
+ this.list.delete(t.uuid), t.dispose();
4911
4898
  }
4912
4899
  /**
4913
4900
  * Disposes of the Worlds component and all its managed worlds.
4914
4901
  * This method sets the enabled flag to false, disposes of all worlds, clears the list,
4915
4902
  * and triggers the onDisposed event.
4916
- *
4917
- * @returns {void}
4918
4903
  */
4919
4904
  dispose() {
4920
4905
  this.enabled = !1;
@@ -4933,8 +4918,8 @@ const ui = class ui extends St {
4933
4918
  * A unique identifier for the component.
4934
4919
  * This UUID is used to register the component within the Components system.
4935
4920
  */
4936
- T(ui, "uuid", "fdb61dc4-2ec1-4966-b83d-54ea795fad4a");
4937
- let an = ui;
4921
+ _(fi, "uuid", "fdb61dc4-2ec1-4966-b83d-54ea795fad4a");
4922
+ let hi = fi;
4938
4923
  function Ba(c, s, t, e) {
4939
4924
  return new Promise((i, n) => {
4940
4925
  function r() {
@@ -4963,52 +4948,52 @@ async function Br(c, s, t, e, i, n, r, o) {
4963
4948
  class ka {
4964
4949
  constructor(s, t, e) {
4965
4950
  /** {@link Disposable.onDisposed} */
4966
- T(this, "onDisposed", new j());
4951
+ _(this, "onDisposed", new Q());
4967
4952
  /**
4968
4953
  * Fires after making the visibility check to the meshes. It lists the
4969
4954
  * meshes that are currently visible, and the ones that were visible
4970
4955
  * just before but not anymore.
4971
4956
  */
4972
- T(this, "onViewUpdated", new oi());
4957
+ _(this, "onViewUpdated", new oi());
4973
4958
  /**
4974
4959
  * Whether this renderer is active or not. If not, it won't render anything.
4975
4960
  */
4976
- T(this, "enabled", !0);
4961
+ _(this, "enabled", !0);
4977
4962
  /**
4978
4963
  * Needs to check whether there are objects that need to be hidden or shown.
4979
4964
  * You can bind this to the camera movement, to a certain interval, etc.
4980
4965
  */
4981
- T(this, "needsUpdate", !1);
4966
+ _(this, "needsUpdate", !1);
4982
4967
  /**
4983
4968
  * Render the internal scene used to determine the object visibility. Used
4984
4969
  * for debugging purposes.
4985
4970
  */
4986
- T(this, "renderDebugFrame", !1);
4971
+ _(this, "renderDebugFrame", !1);
4987
4972
  /** The components instance to which this renderer belongs. */
4988
- T(this, "components");
4973
+ _(this, "components");
4989
4974
  /** The world instance to which this renderer belongs. */
4990
- T(this, "world");
4975
+ _(this, "world");
4991
4976
  /** The THREE.js renderer used to make the visibility test. */
4992
- T(this, "renderer");
4993
- T(this, "autoUpdate", !0);
4994
- T(this, "updateInterval", 1e3);
4995
- T(this, "worker");
4996
- T(this, "scene", new M.Scene());
4997
- T(this, "_width", 512);
4998
- T(this, "_height", 512);
4999
- T(this, "_availableColor", 1);
5000
- T(this, "renderTarget");
5001
- T(this, "bufferSize");
5002
- T(this, "_buffer");
4977
+ _(this, "renderer");
4978
+ _(this, "autoUpdate", !0);
4979
+ _(this, "updateInterval", 1e3);
4980
+ _(this, "worker");
4981
+ _(this, "scene", new M.Scene());
4982
+ _(this, "_width", 512);
4983
+ _(this, "_height", 512);
4984
+ _(this, "_availableColor", 1);
4985
+ _(this, "renderTarget");
4986
+ _(this, "bufferSize");
4987
+ _(this, "_buffer");
5003
4988
  // Prevents worker being fired multiple times
5004
- T(this, "_isWorkerBusy", !1);
4989
+ _(this, "_isWorkerBusy", !1);
5005
4990
  /**
5006
4991
  * The function that the culler uses to reprocess the scene. Generally it's
5007
4992
  * better to call needsUpdate, but you can also call this to force it.
5008
4993
  * @param force if true, it will refresh the scene even if needsUpdate is
5009
4994
  * not true.
5010
4995
  */
5011
- T(this, "updateVisibility", async (s) => {
4996
+ _(this, "updateVisibility", async (s) => {
5012
4997
  if (!this.enabled || !this.needsUpdate && !s || this._isWorkerBusy)
5013
4998
  return;
5014
4999
  this._isWorkerBusy = !0;
@@ -5100,33 +5085,33 @@ class Va extends ka {
5100
5085
  * Event triggered when the visibility of meshes is updated.
5101
5086
  * Contains two sets: seen and unseen.
5102
5087
  */
5103
- T(this, "onViewUpdated", new j());
5088
+ _(this, "onViewUpdated", new Q());
5104
5089
  /**
5105
5090
  * Pixels in screen a geometry must occupy to be considered "seen".
5106
5091
  * Default value is 100.
5107
5092
  */
5108
- T(this, "threshold", 100);
5093
+ _(this, "threshold", 100);
5109
5094
  /**
5110
5095
  * Map of color code to THREE.InstancedMesh.
5111
5096
  * Used to keep track of color-coded meshes.
5112
5097
  */
5113
- T(this, "colorMeshes", /* @__PURE__ */ new Map());
5098
+ _(this, "colorMeshes", /* @__PURE__ */ new Map());
5114
5099
  /**
5115
5100
  * Flag to indicate if the renderer is currently processing.
5116
5101
  * Used to prevent concurrent processing.
5117
5102
  */
5118
- T(this, "isProcessing", !1);
5119
- T(this, "_interval", null);
5120
- T(this, "_colorCodeMeshMap", /* @__PURE__ */ new Map());
5121
- T(this, "_meshIDColorCodeMap", /* @__PURE__ */ new Map());
5122
- T(this, "_currentVisibleMeshes", /* @__PURE__ */ new Set());
5123
- T(this, "_recentlyHiddenMeshes", /* @__PURE__ */ new Set());
5124
- T(this, "_intervalID", null);
5125
- T(this, "_transparentMat", new M.MeshBasicMaterial({
5103
+ _(this, "isProcessing", !1);
5104
+ _(this, "_interval", null);
5105
+ _(this, "_colorCodeMeshMap", /* @__PURE__ */ new Map());
5106
+ _(this, "_meshIDColorCodeMap", /* @__PURE__ */ new Map());
5107
+ _(this, "_currentVisibleMeshes", /* @__PURE__ */ new Set());
5108
+ _(this, "_recentlyHiddenMeshes", /* @__PURE__ */ new Set());
5109
+ _(this, "_intervalID", null);
5110
+ _(this, "_transparentMat", new M.MeshBasicMaterial({
5126
5111
  transparent: !0,
5127
5112
  opacity: 0
5128
5113
  }));
5129
- T(this, "handleWorkerMessage", async (t) => {
5114
+ _(this, "handleWorkerMessage", async (t) => {
5130
5115
  if (this.isProcessing)
5131
5116
  return;
5132
5117
  const e = t.data.colors;
@@ -5154,7 +5139,7 @@ class Va extends ka {
5154
5139
  /** {@link Disposable.dispose} */
5155
5140
  dispose() {
5156
5141
  super.dispose(), this._intervalID !== null && (window.clearInterval(this._intervalID), this._intervalID = null), this._interval !== null && (window.clearInterval(this._interval), this._intervalID = null), this._currentVisibleMeshes.clear(), this._recentlyHiddenMeshes.clear(), this._meshIDColorCodeMap.clear(), this._transparentMat.dispose(), this._colorCodeMeshMap.clear();
5157
- const t = this.components.get(we);
5142
+ const t = this.components.get(Fe);
5158
5143
  for (const e in this.colorMeshes) {
5159
5144
  const i = this.colorMeshes.get(e);
5160
5145
  i && t.destroy(i, !0);
@@ -5207,7 +5192,7 @@ class Va extends ka {
5207
5192
  return;
5208
5193
  }
5209
5194
  this.isProcessing = !0;
5210
- const e = this.components.get(we);
5195
+ const e = this.components.get(Fe);
5211
5196
  this._currentVisibleMeshes.delete(t), this._recentlyHiddenMeshes.delete(t);
5212
5197
  const i = this.colorMeshes.get(t.uuid), n = this._meshIDColorCodeMap.get(t.uuid);
5213
5198
  if (!i || !n) {
@@ -5249,12 +5234,12 @@ const ws = class ws extends St {
5249
5234
  /**
5250
5235
  * An event that is triggered when the Cullers component is disposed.
5251
5236
  */
5252
- T(this, "onDisposed", new j());
5253
- T(this, "_enabled", !0);
5237
+ _(this, "onDisposed", new Q());
5238
+ _(this, "_enabled", !0);
5254
5239
  /**
5255
5240
  * A map of MeshCullerRenderer instances, keyed by their world UUIDs.
5256
5241
  */
5257
- T(this, "list", /* @__PURE__ */ new Map());
5242
+ _(this, "list", /* @__PURE__ */ new Map());
5258
5243
  t.add(ws.uuid, this);
5259
5244
  }
5260
5245
  /** {@link Component.enabled} */
@@ -5317,66 +5302,66 @@ const ws = class ws extends St {
5317
5302
  * A unique identifier for the component.
5318
5303
  * This UUID is used to register the component within the Components system.
5319
5304
  */
5320
- T(ws, "uuid", "69f2a50d-c266-44fc-b1bd-fa4d34be89e6");
5305
+ _(ws, "uuid", "69f2a50d-c266-44fc-b1bd-fa4d34be89e6");
5321
5306
  let cn = ws;
5322
5307
  class Ya {
5323
5308
  constructor(s, t) {
5324
5309
  /** {@link Disposable.onDisposed} */
5325
- T(this, "onDisposed", new j());
5310
+ _(this, "onDisposed", new Q());
5326
5311
  /**
5327
5312
  * Fires after making the visibility check to the meshes. It lists the
5328
5313
  * meshes that are currently visible, and the ones that were visible
5329
5314
  * just before but not anymore.
5330
5315
  */
5331
- T(this, "onDistanceComputed", new j());
5316
+ _(this, "onDistanceComputed", new Q());
5332
5317
  /**
5333
5318
  * Objects that won't be taken into account in the distance check.
5334
5319
  */
5335
- T(this, "excludedObjects", /* @__PURE__ */ new Set());
5320
+ _(this, "excludedObjects", /* @__PURE__ */ new Set());
5336
5321
  /**
5337
5322
  * Whether this renderer is active or not. If not, it won't render anything.
5338
5323
  */
5339
- T(this, "enabled", !0);
5324
+ _(this, "enabled", !0);
5340
5325
  /**
5341
5326
  * Render the internal scene used to determine the object visibility. Used
5342
5327
  * for debugging purposes.
5343
5328
  */
5344
- T(this, "renderDebugFrame", !1);
5329
+ _(this, "renderDebugFrame", !1);
5345
5330
  /** The components instance to which this renderer belongs. */
5346
- T(this, "components");
5331
+ _(this, "components");
5347
5332
  /**
5348
5333
  * The scene where the distance is computed.
5349
5334
  */
5350
- T(this, "scene", new M.Scene());
5335
+ _(this, "scene", new M.Scene());
5351
5336
  /**
5352
5337
  * The camera used to compute the distance.
5353
5338
  */
5354
- T(this, "camera", new M.OrthographicCamera(-1, 1, 1, -1, 0, 1));
5339
+ _(this, "camera", new M.OrthographicCamera(-1, 1, 1, -1, 0, 1));
5355
5340
  /**
5356
5341
  * The material used to compute the distance.
5357
5342
  */
5358
- T(this, "depthMaterial");
5343
+ _(this, "depthMaterial");
5359
5344
  /** The world instance to which this renderer belongs. */
5360
- T(this, "world");
5345
+ _(this, "world");
5361
5346
  /** The THREE.js renderer used to make the visibility test. */
5362
- T(this, "renderer");
5363
- T(this, "worker");
5364
- T(this, "_width", 512);
5365
- T(this, "_height", 512);
5366
- T(this, "_postQuad");
5367
- T(this, "tempRT");
5368
- T(this, "resultRT");
5369
- T(this, "bufferSize");
5370
- T(this, "_buffer");
5347
+ _(this, "renderer");
5348
+ _(this, "worker");
5349
+ _(this, "_width", 512);
5350
+ _(this, "_height", 512);
5351
+ _(this, "_postQuad");
5352
+ _(this, "tempRT");
5353
+ _(this, "resultRT");
5354
+ _(this, "bufferSize");
5355
+ _(this, "_buffer");
5371
5356
  // Prevents worker being fired multiple times
5372
- T(this, "_isWorkerBusy", !1);
5357
+ _(this, "_isWorkerBusy", !1);
5373
5358
  /**
5374
5359
  * The function that the culler uses to reprocess the scene. Generally it's
5375
5360
  * better to call needsUpdate, but you can also call this to force it.
5376
5361
  * @param force if true, it will refresh the scene even if needsUpdate is
5377
5362
  * not true.
5378
5363
  */
5379
- T(this, "compute", async () => {
5364
+ _(this, "compute", async () => {
5380
5365
  if (!this.enabled || this.world.isDisposing || this._isWorkerBusy)
5381
5366
  return;
5382
5367
  this._isWorkerBusy = !0, this.world.camera.three.updateMatrix(), this.renderer.setSize(this._width, this._height), this.renderer.setRenderTarget(this.tempRT);
@@ -5407,7 +5392,7 @@ class Ya {
5407
5392
  buffer: this._buffer
5408
5393
  });
5409
5394
  });
5410
- T(this, "handleWorkerMessage", (s) => {
5395
+ _(this, "handleWorkerMessage", (s) => {
5411
5396
  if (!this.enabled || this.world.isDisposing)
5412
5397
  return;
5413
5398
  const t = s.data.colors;
@@ -5492,16 +5477,16 @@ void main() {
5492
5477
  class Dl extends Ma {
5493
5478
  constructor() {
5494
5479
  super(...arguments);
5495
- T(this, "_distanceRenderer");
5480
+ _(this, "_distanceRenderer");
5496
5481
  /**
5497
5482
  * Whether the bias property should be set automatically depending on the shadow distance.
5498
5483
  */
5499
- T(this, "autoBias", !0);
5484
+ _(this, "autoBias", !0);
5500
5485
  /**
5501
5486
  * Configuration interface for the {@link ShadowedScene}.
5502
5487
  * Defines properties for directional and ambient lights, as well as shadows.
5503
5488
  */
5504
- T(this, "config", {
5489
+ _(this, "config", {
5505
5490
  directionalLight: {
5506
5491
  color: new M.Color("white"),
5507
5492
  intensity: 1.5,
@@ -5516,11 +5501,11 @@ class Dl extends Ma {
5516
5501
  resolution: 512
5517
5502
  }
5518
5503
  });
5519
- T(this, "_lightsWithShadow", /* @__PURE__ */ new Map());
5520
- T(this, "_isComputingShadows", !1);
5521
- T(this, "_shadowsEnabled", !0);
5522
- T(this, "_bias", 0);
5523
- T(this, "recomputeShadows", (t) => {
5504
+ _(this, "_lightsWithShadow", /* @__PURE__ */ new Map());
5505
+ _(this, "_isComputingShadows", !1);
5506
+ _(this, "_shadowsEnabled", !0);
5507
+ _(this, "_bias", 0);
5508
+ _(this, "recomputeShadows", (t) => {
5524
5509
  if (!this._shadowsEnabled)
5525
5510
  return;
5526
5511
  if (this.autoBias && (this.bias = t / -1e5), t *= 1.5, !this.currentWorld)
@@ -5625,11 +5610,11 @@ class Dl extends Ma {
5625
5610
  }
5626
5611
  class Ga {
5627
5612
  constructor(s) {
5628
- T(this, "_event");
5629
- T(this, "_position", new M.Vector2());
5613
+ _(this, "_event");
5614
+ _(this, "_position", new M.Vector2());
5630
5615
  /** {@link Disposable.onDisposed} */
5631
- T(this, "onDisposed", new j());
5632
- T(this, "updateMouseInfo", (s) => {
5616
+ _(this, "onDisposed", new Q());
5617
+ _(this, "updateMouseInfo", (s) => {
5633
5618
  this._event = s;
5634
5619
  });
5635
5620
  this.dom = s, this.setupEvents(!0);
@@ -5661,23 +5646,23 @@ class Ga {
5661
5646
  class Ha {
5662
5647
  constructor(s, t) {
5663
5648
  /** {@link Component.enabled} */
5664
- T(this, "enabled", !0);
5649
+ _(this, "enabled", !0);
5665
5650
  /** The components instance to which this Raycaster belongs. */
5666
- T(this, "components");
5651
+ _(this, "components");
5667
5652
  /** {@link Disposable.onDisposed} */
5668
- T(this, "onDisposed", new j());
5653
+ _(this, "onDisposed", new Q());
5669
5654
  /** The position of the mouse in the screen. */
5670
- T(this, "mouse");
5655
+ _(this, "mouse");
5671
5656
  /**
5672
5657
  * A reference to the Three.js Raycaster instance.
5673
5658
  * This is used for raycasting operations.
5674
5659
  */
5675
- T(this, "three", new M.Raycaster());
5660
+ _(this, "three", new M.Raycaster());
5676
5661
  /**
5677
5662
  * A reference to the world instance to which this Raycaster belongs.
5678
5663
  * This is used to access the camera and meshes.
5679
5664
  */
5680
- T(this, "world");
5665
+ _(this, "world");
5681
5666
  const e = t.renderer;
5682
5667
  if (!e)
5683
5668
  throw new Error("A renderer is needed for the raycaster to work!");
@@ -5730,19 +5715,19 @@ class Ha {
5730
5715
  );
5731
5716
  }
5732
5717
  }
5733
- const fi = class fi extends St {
5718
+ const pi = class pi extends St {
5734
5719
  constructor(t) {
5735
5720
  super(t);
5736
5721
  /** {@link Component.enabled} */
5737
- T(this, "enabled", !0);
5722
+ _(this, "enabled", !0);
5738
5723
  /**
5739
5724
  * A Map that stores raycasters for each world.
5740
5725
  * The key is the world's UUID, and the value is the corresponding SimpleRaycaster instance.
5741
5726
  */
5742
- T(this, "list", /* @__PURE__ */ new Map());
5727
+ _(this, "list", /* @__PURE__ */ new Map());
5743
5728
  /** {@link Disposable.onDisposed} */
5744
- T(this, "onDisposed", new j());
5745
- t.add(fi.uuid, this);
5729
+ _(this, "onDisposed", new Q());
5730
+ t.add(pi.uuid, this);
5746
5731
  }
5747
5732
  /**
5748
5733
  * Retrieves a SimpleRaycaster instance for the given world.
@@ -5782,20 +5767,20 @@ const fi = class fi extends St {
5782
5767
  * A unique identifier for the component.
5783
5768
  * This UUID is used to register the component within the Components system.
5784
5769
  */
5785
- T(fi, "uuid", "d5d8bdf0-db25-4952-b951-b643af207ace");
5786
- let ts = fi;
5770
+ _(pi, "uuid", "d5d8bdf0-db25-4952-b951-b643af207ace");
5771
+ let ts = pi;
5787
5772
  class Wa {
5788
5773
  constructor(s, t, e) {
5789
5774
  /** {@link Disposable.onDisposed} */
5790
- T(this, "onDisposed", new j());
5775
+ _(this, "onDisposed", new Q());
5791
5776
  /** The world instance to which this Raycaster belongs. */
5792
- T(this, "world");
5777
+ _(this, "world");
5793
5778
  /** The components instance to which this grid belongs. */
5794
- T(this, "components");
5779
+ _(this, "components");
5795
5780
  /** The Three.js mesh that contains the infinite grid. */
5796
- T(this, "three");
5797
- T(this, "_fade", 3);
5798
- T(this, "updateZoom", () => {
5781
+ _(this, "three");
5782
+ _(this, "_fade", 3);
5783
+ _(this, "updateZoom", () => {
5799
5784
  this.world.camera instanceof Ns && (this.material.uniforms.uZoom.value = this.world.camera.three.zoom);
5800
5785
  });
5801
5786
  this.world = t;
@@ -5921,7 +5906,7 @@ class Wa {
5921
5906
  }
5922
5907
  /** {@link Disposable.dispose} */
5923
5908
  dispose() {
5924
- this.setupEvents(!1), this.components.get(we).destroy(this.three), this.onDisposed.trigger(), this.onDisposed.reset(), this.world = null, this.components = null;
5909
+ this.setupEvents(!1), this.components.get(Fe).destroy(this.three), this.onDisposed.trigger(), this.onDisposed.reset(), this.world = null, this.components = null;
5925
5910
  }
5926
5911
  setupEvents(s) {
5927
5912
  if (this.world.isDisposing || !(this.world.camera instanceof Ns))
@@ -5930,27 +5915,27 @@ class Wa {
5930
5915
  s ? t.addEventListener("update", this.updateZoom) : t.removeEventListener("update", this.updateZoom);
5931
5916
  }
5932
5917
  }
5933
- const pi = class pi extends St {
5918
+ const Ei = class Ei extends St {
5934
5919
  constructor(t) {
5935
5920
  super(t);
5936
5921
  /**
5937
5922
  * A map of world UUIDs to their corresponding grid instances.
5938
5923
  */
5939
- T(this, "list", /* @__PURE__ */ new Map());
5924
+ _(this, "list", /* @__PURE__ */ new Map());
5940
5925
  /**
5941
5926
  * The default configuration for grid creation.
5942
5927
  */
5943
- T(this, "config", {
5928
+ _(this, "config", {
5944
5929
  color: new M.Color(12303291),
5945
5930
  size1: 1,
5946
5931
  size2: 10,
5947
5932
  distance: 500
5948
5933
  });
5949
5934
  /** {@link Disposable.onDisposed} */
5950
- T(this, "onDisposed", new j());
5935
+ _(this, "onDisposed", new Q());
5951
5936
  /** {@link Component.enabled} */
5952
- T(this, "enabled", !0);
5953
- t.add(pi.uuid, this);
5937
+ _(this, "enabled", !0);
5938
+ t.add(Ei.uuid, this);
5954
5939
  }
5955
5940
  /**
5956
5941
  * Creates a new grid for the given world.
@@ -5994,14 +5979,14 @@ const pi = class pi extends St {
5994
5979
  * A unique identifier for the component.
5995
5980
  * This UUID is used to register the component within the Components system.
5996
5981
  */
5997
- T(pi, "uuid", "d1e814d5-b81c-4452-87a2-f039375e0489");
5998
- let hr = pi;
5999
- const be = new ao(), xt = new q(), ge = new q(), yt = new le(), dr = {
5982
+ _(Ei, "uuid", "d1e814d5-b81c-4452-87a2-f039375e0489");
5983
+ let hr = Ei;
5984
+ const be = new ao(), xt = new q(), Ce = new q(), yt = new le(), dr = {
6000
5985
  X: new q(1, 0, 0),
6001
5986
  Y: new q(0, 1, 0),
6002
5987
  Z: new q(0, 0, 1)
6003
- }, Zi = { type: "change" }, ur = { type: "mouseDown" }, fr = { type: "mouseUp", mode: null }, pr = { type: "objectChange" };
6004
- class Xa extends ji {
5988
+ }, $i = { type: "change" }, ur = { type: "mouseDown" }, fr = { type: "mouseUp", mode: null }, pr = { type: "objectChange" };
5989
+ class Xa extends Qi {
6005
5990
  constructor(s, t) {
6006
5991
  super(), t === void 0 && (console.warn('THREE.TransformControls: The second parameter "domElement" is now mandatory.'), t = document), this.isTransformControls = !0, this.visible = !1, this.domElement = t, this.domElement.style.touchAction = "none";
6007
5992
  const e = new Ka();
@@ -6016,7 +6001,7 @@ class Xa extends ji {
6016
6001
  return g !== void 0 ? g : R;
6017
6002
  },
6018
6003
  set: function(y) {
6019
- g !== y && (g = y, i[C] = y, e[C] = y, n.dispatchEvent({ type: C + "-changed", value: y }), n.dispatchEvent(Zi));
6004
+ g !== y && (g = y, i[C] = y, e[C] = y, n.dispatchEvent({ type: C + "-changed", value: y }), n.dispatchEvent($i));
6020
6005
  }
6021
6006
  }), n[C] = R, i[C] = R, e[C] = R;
6022
6007
  }
@@ -6032,13 +6017,13 @@ class Xa extends ji {
6032
6017
  if (this.object === void 0 || this.dragging === !0)
6033
6018
  return;
6034
6019
  be.setFromCamera(s, this.camera);
6035
- const t = $i(this._gizmo.picker[this.mode], be);
6020
+ const t = ji(this._gizmo.picker[this.mode], be);
6036
6021
  t ? this.axis = t.object.name : this.axis = null;
6037
6022
  }
6038
6023
  pointerDown(s) {
6039
6024
  if (!(this.object === void 0 || this.dragging === !0 || s.button !== 0) && this.axis !== null) {
6040
6025
  be.setFromCamera(s, this.camera);
6041
- const t = $i(this._plane, be, !0);
6026
+ const t = ji(this._plane, be, !0);
6042
6027
  t && (this.object.updateMatrixWorld(), this.object.parent.updateMatrixWorld(), this._positionStart.copy(this.object.position), this._quaternionStart.copy(this.object.quaternion), this._scaleStart.copy(this.object.scale), this.object.matrixWorld.decompose(this.worldPositionStart, this.worldQuaternionStart, this._worldScaleStart), this.pointStart.copy(t.point).sub(this.worldPositionStart)), this.dragging = !0, ur.mode = this.mode, this.dispatchEvent(ur);
6043
6028
  }
6044
6029
  }
@@ -6048,24 +6033,24 @@ class Xa extends ji {
6048
6033
  if (e === "scale" ? n = "local" : (t === "E" || t === "XYZE" || t === "XYZ") && (n = "world"), i === void 0 || t === null || this.dragging === !1 || s.button !== -1)
6049
6034
  return;
6050
6035
  be.setFromCamera(s, this.camera);
6051
- const r = $i(this._plane, be, !0);
6036
+ const r = ji(this._plane, be, !0);
6052
6037
  if (r) {
6053
6038
  if (this.pointEnd.copy(r.point).sub(this.worldPositionStart), e === "translate")
6054
6039
  this._offset.copy(this.pointEnd).sub(this.pointStart), n === "local" && t !== "XYZ" && this._offset.applyQuaternion(this._worldQuaternionInv), t.indexOf("X") === -1 && (this._offset.x = 0), t.indexOf("Y") === -1 && (this._offset.y = 0), t.indexOf("Z") === -1 && (this._offset.z = 0), n === "local" && t !== "XYZ" ? this._offset.applyQuaternion(this._quaternionStart).divide(this._parentScale) : this._offset.applyQuaternion(this._parentQuaternionInv).divide(this._parentScale), i.position.copy(this._offset).add(this._positionStart), this.translationSnap && (n === "local" && (i.position.applyQuaternion(yt.copy(this._quaternionStart).invert()), t.search("X") !== -1 && (i.position.x = Math.round(i.position.x / this.translationSnap) * this.translationSnap), t.search("Y") !== -1 && (i.position.y = Math.round(i.position.y / this.translationSnap) * this.translationSnap), t.search("Z") !== -1 && (i.position.z = Math.round(i.position.z / this.translationSnap) * this.translationSnap), i.position.applyQuaternion(this._quaternionStart)), n === "world" && (i.parent && i.position.add(xt.setFromMatrixPosition(i.parent.matrixWorld)), t.search("X") !== -1 && (i.position.x = Math.round(i.position.x / this.translationSnap) * this.translationSnap), t.search("Y") !== -1 && (i.position.y = Math.round(i.position.y / this.translationSnap) * this.translationSnap), t.search("Z") !== -1 && (i.position.z = Math.round(i.position.z / this.translationSnap) * this.translationSnap), i.parent && i.position.sub(xt.setFromMatrixPosition(i.parent.matrixWorld))));
6055
6040
  else if (e === "scale") {
6056
6041
  if (t.search("XYZ") !== -1) {
6057
6042
  let o = this.pointEnd.length() / this.pointStart.length();
6058
- this.pointEnd.dot(this.pointStart) < 0 && (o *= -1), ge.set(o, o, o);
6043
+ this.pointEnd.dot(this.pointStart) < 0 && (o *= -1), Ce.set(o, o, o);
6059
6044
  } else
6060
- xt.copy(this.pointStart), ge.copy(this.pointEnd), xt.applyQuaternion(this._worldQuaternionInv), ge.applyQuaternion(this._worldQuaternionInv), ge.divide(xt), t.search("X") === -1 && (ge.x = 1), t.search("Y") === -1 && (ge.y = 1), t.search("Z") === -1 && (ge.z = 1);
6061
- i.scale.copy(this._scaleStart).multiply(ge), this.scaleSnap && (t.search("X") !== -1 && (i.scale.x = Math.round(i.scale.x / this.scaleSnap) * this.scaleSnap || this.scaleSnap), t.search("Y") !== -1 && (i.scale.y = Math.round(i.scale.y / this.scaleSnap) * this.scaleSnap || this.scaleSnap), t.search("Z") !== -1 && (i.scale.z = Math.round(i.scale.z / this.scaleSnap) * this.scaleSnap || this.scaleSnap));
6045
+ xt.copy(this.pointStart), Ce.copy(this.pointEnd), xt.applyQuaternion(this._worldQuaternionInv), Ce.applyQuaternion(this._worldQuaternionInv), Ce.divide(xt), t.search("X") === -1 && (Ce.x = 1), t.search("Y") === -1 && (Ce.y = 1), t.search("Z") === -1 && (Ce.z = 1);
6046
+ i.scale.copy(this._scaleStart).multiply(Ce), this.scaleSnap && (t.search("X") !== -1 && (i.scale.x = Math.round(i.scale.x / this.scaleSnap) * this.scaleSnap || this.scaleSnap), t.search("Y") !== -1 && (i.scale.y = Math.round(i.scale.y / this.scaleSnap) * this.scaleSnap || this.scaleSnap), t.search("Z") !== -1 && (i.scale.z = Math.round(i.scale.z / this.scaleSnap) * this.scaleSnap || this.scaleSnap));
6062
6047
  } else if (e === "rotate") {
6063
6048
  this._offset.copy(this.pointEnd).sub(this.pointStart);
6064
6049
  const o = 20 / this.worldPosition.distanceTo(xt.setFromMatrixPosition(this.camera.matrixWorld));
6065
6050
  let a = !1;
6066
6051
  t === "XYZE" ? (this.rotationAxis.copy(this._offset).cross(this.eye).normalize(), this.rotationAngle = this._offset.dot(xt.copy(this.rotationAxis).cross(this.eye)) * o) : (t === "X" || t === "Y" || t === "Z") && (this.rotationAxis.copy(dr[t]), xt.copy(dr[t]), n === "local" && xt.applyQuaternion(this.worldQuaternion), xt.cross(this.eye), xt.length() === 0 ? a = !0 : this.rotationAngle = this._offset.dot(xt.normalize()) * o), (t === "E" || a) && (this.rotationAxis.copy(this.eye), this.rotationAngle = this.pointEnd.angleTo(this.pointStart), this._startNorm.copy(this.pointStart).normalize(), this._endNorm.copy(this.pointEnd).normalize(), this.rotationAngle *= this._endNorm.cross(this._startNorm).dot(this.eye) < 0 ? 1 : -1), this.rotationSnap && (this.rotationAngle = Math.round(this.rotationAngle / this.rotationSnap) * this.rotationSnap), n === "local" && t !== "E" && t !== "XYZE" ? (i.quaternion.copy(this._quaternionStart), i.quaternion.multiply(yt.setFromAxisAngle(this.rotationAxis, this.rotationAngle)).normalize()) : (this.rotationAxis.applyQuaternion(this._parentQuaternionInv), i.quaternion.copy(yt.setFromAxisAngle(this.rotationAxis, this.rotationAngle)), i.quaternion.multiply(this._quaternionStart).normalize());
6067
6052
  }
6068
- this.dispatchEvent(Zi), this.dispatchEvent(pr);
6053
+ this.dispatchEvent($i), this.dispatchEvent(pr);
6069
6054
  }
6070
6055
  }
6071
6056
  pointerUp(s) {
@@ -6085,7 +6070,7 @@ class Xa extends ji {
6085
6070
  return this.object = void 0, this.visible = !1, this.axis = null, this;
6086
6071
  }
6087
6072
  reset() {
6088
- this.enabled && this.dragging && (this.object.position.copy(this._positionStart), this.object.quaternion.copy(this._quaternionStart), this.object.scale.copy(this._scaleStart), this.dispatchEvent(Zi), this.dispatchEvent(pr), this.pointStart.copy(this.pointEnd));
6073
+ this.enabled && this.dragging && (this.object.position.copy(this._positionStart), this.object.quaternion.copy(this._quaternionStart), this.object.scale.copy(this._scaleStart), this.dispatchEvent($i), this.dispatchEvent(pr), this.pointStart.copy(this.pointEnd));
6089
6074
  }
6090
6075
  getRaycaster() {
6091
6076
  return be;
@@ -6147,7 +6132,7 @@ function Qa(c) {
6147
6132
  function qa(c) {
6148
6133
  this.enabled && (this.domElement.releasePointerCapture(c.pointerId), this.domElement.removeEventListener("pointermove", this._onPointerMove), this.pointerUp(this._getPointer(c)));
6149
6134
  }
6150
- function $i(c, s, t) {
6135
+ function ji(c, s, t) {
6151
6136
  const e = s.intersectObject(c, !0);
6152
6137
  for (let i = 0; i < e.length; i++)
6153
6138
  if (e[i].object.visible || t)
@@ -6155,7 +6140,7 @@ function $i(c, s, t) {
6155
6140
  return !1;
6156
6141
  }
6157
6142
  const ti = new co(), gt = new q(0, 1, 0), Er = new q(0, 0, 0), mr = new de(), ei = new le(), ci = new le(), oe = new q(), Ir = new de(), _s = new q(1, 0, 0), Pe = new q(0, 1, 0), As = new q(0, 0, 1), si = new q(), Is = new q(), gs = new q();
6158
- class Ka extends ji {
6143
+ class Ka extends Qi {
6159
6144
  constructor() {
6160
6145
  super(), this.isTransformControlsGizmo = !0, this.type = "TransformControlsGizmo";
6161
6146
  const s = new Pr({
@@ -6200,8 +6185,8 @@ class Ka extends ji {
6200
6185
  m.setAttribute("position", new Mn([0, 0, 0, 1, 0, 0], 3));
6201
6186
  const C = new zt(75e-4, 75e-4, 0.5, 3);
6202
6187
  C.translate(0, 0.25, 0);
6203
- function R(v, Q) {
6204
- const V = new rs(v, 75e-4, 3, 64, Q * Math.PI * 2);
6188
+ function R(v, j) {
6189
+ const V = new rs(v, 75e-4, 3, 64, j * Math.PI * 2);
6205
6190
  return V.rotateY(Math.PI / 2), V.rotateX(Math.PI / 2), V;
6206
6191
  }
6207
6192
  function g() {
@@ -6269,16 +6254,16 @@ class Ka extends ji {
6269
6254
  [new rt(new Ms(0.01, 2), i), null, null, null, "helper"]
6270
6255
  ],
6271
6256
  DELTA: [
6272
- [new me(g(), i), null, null, null, "helper"]
6257
+ [new Ie(g(), i), null, null, null, "helper"]
6273
6258
  ],
6274
6259
  X: [
6275
- [new me(m, i.clone()), [-1e3, 0, 0], null, [1e6, 1, 1], "helper"]
6260
+ [new Ie(m, i.clone()), [-1e3, 0, 0], null, [1e6, 1, 1], "helper"]
6276
6261
  ],
6277
6262
  Y: [
6278
- [new me(m, i.clone()), [0, -1e3, 0], [0, 0, Math.PI / 2], [1e6, 1, 1], "helper"]
6263
+ [new Ie(m, i.clone()), [0, -1e3, 0], [0, 0, Math.PI / 2], [1e6, 1, 1], "helper"]
6279
6264
  ],
6280
6265
  Z: [
6281
- [new me(m, i.clone()), [0, 0, -1e3], [0, -Math.PI / 2, 0], [1e6, 1, 1], "helper"]
6266
+ [new Ie(m, i.clone()), [0, 0, -1e3], [0, -Math.PI / 2, 0], [1e6, 1, 1], "helper"]
6282
6267
  ]
6283
6268
  }, L = {
6284
6269
  XYZE: [
@@ -6298,7 +6283,7 @@ class Ka extends ji {
6298
6283
  ]
6299
6284
  }, N = {
6300
6285
  AXIS: [
6301
- [new me(m, i.clone()), [-1e3, 0, 0], null, [1e6, 1, 1], "helper"]
6286
+ [new Ie(m, i.clone()), [-1e3, 0, 0], null, [1e6, 1, 1], "helper"]
6302
6287
  ]
6303
6288
  }, x = {
6304
6289
  XYZE: [
@@ -6371,27 +6356,27 @@ class Ka extends ji {
6371
6356
  ]
6372
6357
  }, P = {
6373
6358
  X: [
6374
- [new me(m, i.clone()), [-1e3, 0, 0], null, [1e6, 1, 1], "helper"]
6359
+ [new Ie(m, i.clone()), [-1e3, 0, 0], null, [1e6, 1, 1], "helper"]
6375
6360
  ],
6376
6361
  Y: [
6377
- [new me(m, i.clone()), [0, -1e3, 0], [0, 0, Math.PI / 2], [1e6, 1, 1], "helper"]
6362
+ [new Ie(m, i.clone()), [0, -1e3, 0], [0, 0, Math.PI / 2], [1e6, 1, 1], "helper"]
6378
6363
  ],
6379
6364
  Z: [
6380
- [new me(m, i.clone()), [0, 0, -1e3], [0, -Math.PI / 2, 0], [1e6, 1, 1], "helper"]
6365
+ [new Ie(m, i.clone()), [0, 0, -1e3], [0, -Math.PI / 2, 0], [1e6, 1, 1], "helper"]
6381
6366
  ]
6382
6367
  };
6383
- function _(v) {
6384
- const Q = new ji();
6368
+ function T(v) {
6369
+ const j = new Qi();
6385
6370
  for (const V in v)
6386
6371
  for (let et = v[V].length; et--; ) {
6387
6372
  const H = v[V][et][0].clone(), nt = v[V][et][1], z = v[V][et][2], U = v[V][et][3], ot = v[V][et][4];
6388
6373
  H.name = V, H.tag = ot, nt && H.position.set(nt[0], nt[1], nt[2]), z && H.rotation.set(z[0], z[1], z[2]), U && H.scale.set(U[0], U[1], U[2]), H.updateMatrix();
6389
6374
  const st = H.geometry.clone();
6390
- st.applyMatrix4(H.matrix), H.geometry = st, H.renderOrder = 1 / 0, H.position.set(0, 0, 0), H.rotation.set(0, 0, 0), H.scale.set(1, 1, 1), Q.add(H);
6375
+ st.applyMatrix4(H.matrix), H.geometry = st, H.renderOrder = 1 / 0, H.position.set(0, 0, 0), H.rotation.set(0, 0, 0), H.scale.set(1, 1, 1), j.add(H);
6391
6376
  }
6392
- return Q;
6377
+ return j;
6393
6378
  }
6394
- this.gizmo = {}, this.picker = {}, this.helper = {}, this.add(this.gizmo.translate = _(y)), this.add(this.gizmo.rotate = _(L)), this.add(this.gizmo.scale = _(k)), this.add(this.picker.translate = _(F)), this.add(this.picker.rotate = _(x)), this.add(this.picker.scale = _(w)), this.add(this.helper.translate = _(S)), this.add(this.helper.rotate = _(N)), this.add(this.helper.scale = _(P)), this.picker.translate.visible = !1, this.picker.rotate.visible = !1, this.picker.scale.visible = !1;
6379
+ this.gizmo = {}, this.picker = {}, this.helper = {}, this.add(this.gizmo.translate = T(y)), this.add(this.gizmo.rotate = T(L)), this.add(this.gizmo.scale = T(k)), this.add(this.picker.translate = T(F)), this.add(this.picker.rotate = T(x)), this.add(this.picker.scale = T(w)), this.add(this.helper.translate = T(S)), this.add(this.helper.rotate = T(N)), this.add(this.helper.scale = T(P)), this.picker.translate.visible = !1, this.picker.rotate.visible = !1, this.picker.scale.visible = !1;
6395
6380
  }
6396
6381
  // updateMatrixWorld will update transformations and appearance of individual handles
6397
6382
  updateMatrixWorld(s) {
@@ -6461,47 +6446,47 @@ class Ja extends rt {
6461
6446
  class yn {
6462
6447
  constructor(s, t, e, i, n, r = 5, o = !0) {
6463
6448
  /** Event that fires when the user starts dragging a clipping plane. */
6464
- T(this, "onDraggingStarted", new j());
6449
+ _(this, "onDraggingStarted", new Q());
6465
6450
  /** Event that fires when the user stops dragging a clipping plane. */
6466
- T(this, "onDraggingEnded", new j());
6451
+ _(this, "onDraggingEnded", new Q());
6467
6452
  /** {@link Disposable.onDisposed} */
6468
- T(this, "onDisposed", new j());
6453
+ _(this, "onDisposed", new Q());
6469
6454
  /**
6470
6455
  * The normal vector of the clipping plane.
6471
6456
  */
6472
- T(this, "normal");
6457
+ _(this, "normal");
6473
6458
  /**
6474
6459
  * The origin point of the clipping plane.
6475
6460
  */
6476
- T(this, "origin");
6461
+ _(this, "origin");
6477
6462
  /**
6478
6463
  * The THREE.js Plane object representing the clipping plane.
6479
6464
  */
6480
- T(this, "three", new M.Plane());
6465
+ _(this, "three", new M.Plane());
6481
6466
  /** The components instance to which this plane belongs. */
6482
- T(this, "components");
6467
+ _(this, "components");
6483
6468
  /** The world instance to which this plane belongs. */
6484
- T(this, "world");
6469
+ _(this, "world");
6485
6470
  /** A custom string to identify what this plane is used for. */
6486
- T(this, "type", "default");
6487
- T(this, "_helper");
6488
- T(this, "_visible", !0);
6489
- T(this, "_enabled", !0);
6490
- T(this, "_controlsActive", !1);
6491
- T(this, "_arrowBoundBox", new M.Mesh());
6492
- T(this, "_planeMesh");
6493
- T(this, "_controls");
6494
- T(this, "_hiddenMaterial", new M.MeshBasicMaterial({
6471
+ _(this, "type", "default");
6472
+ _(this, "_helper");
6473
+ _(this, "_visible", !0);
6474
+ _(this, "_enabled", !0);
6475
+ _(this, "_controlsActive", !1);
6476
+ _(this, "_arrowBoundBox", new M.Mesh());
6477
+ _(this, "_planeMesh");
6478
+ _(this, "_controls");
6479
+ _(this, "_hiddenMaterial", new M.MeshBasicMaterial({
6495
6480
  visible: !1
6496
6481
  }));
6497
6482
  /** {@link Updateable.update} */
6498
- T(this, "update", () => {
6483
+ _(this, "update", () => {
6499
6484
  this._enabled && this.three.setFromNormalAndCoplanarPoint(
6500
6485
  this.normal,
6501
6486
  this._helper.position
6502
6487
  );
6503
6488
  });
6504
- T(this, "changeDrag", (s) => {
6489
+ _(this, "changeDrag", (s) => {
6505
6490
  this._visible = !s.value, this.preventCameraMovement(), this.notifyDraggingChanged(s);
6506
6491
  });
6507
6492
  if (this.components = s, this.world = t, !t.renderer)
@@ -6624,73 +6609,73 @@ const Fs = class Fs extends St {
6624
6609
  constructor(t) {
6625
6610
  super(t);
6626
6611
  /** Event that fires when the user starts dragging a clipping plane. */
6627
- T(this, "onBeforeDrag", new j());
6612
+ _(this, "onBeforeDrag", new Q());
6628
6613
  /** Event that fires when the user stops dragging a clipping plane. */
6629
- T(this, "onAfterDrag", new j());
6614
+ _(this, "onAfterDrag", new Q());
6630
6615
  /**
6631
6616
  * Event that fires when the user starts creating a clipping plane.
6632
6617
  */
6633
- T(this, "onBeforeCreate", new j());
6618
+ _(this, "onBeforeCreate", new Q());
6634
6619
  /**
6635
6620
  * Event that fires when the user cancels the creation of a clipping plane.
6636
6621
  */
6637
- T(this, "onBeforeCancel", new j());
6622
+ _(this, "onBeforeCancel", new Q());
6638
6623
  /**
6639
6624
  * Event that fires after the user cancels the creation of a clipping plane.
6640
6625
  */
6641
- T(this, "onAfterCancel", new j());
6626
+ _(this, "onAfterCancel", new Q());
6642
6627
  /**
6643
6628
  * Event that fires when the user starts deleting a clipping plane.
6644
6629
  */
6645
- T(this, "onBeforeDelete", new j());
6630
+ _(this, "onBeforeDelete", new Q());
6646
6631
  /**
6647
6632
  * Event that fires after a clipping plane has been created.
6648
6633
  * @param plane - The newly created clipping plane.
6649
6634
  */
6650
- T(this, "onAfterCreate", new j());
6635
+ _(this, "onAfterCreate", new Q());
6651
6636
  /**
6652
6637
  * Event that fires after a clipping plane has been deleted.
6653
6638
  * @param plane - The deleted clipping plane.
6654
6639
  */
6655
- T(this, "onAfterDelete", new j());
6640
+ _(this, "onAfterDelete", new Q());
6656
6641
  /** {@link Disposable.onDisposed} */
6657
- T(this, "onDisposed", new j());
6642
+ _(this, "onDisposed", new Q());
6658
6643
  /**
6659
6644
  * Whether to force the clipping plane to be orthogonal in the Y direction
6660
6645
  * (up). This is desirable when clipping a building horizontally and a
6661
6646
  * clipping plane is created in its roof, which might have a slight
6662
6647
  * slope for draining purposes.
6663
6648
  */
6664
- T(this, "orthogonalY", !1);
6649
+ _(this, "orthogonalY", !1);
6665
6650
  /**
6666
6651
  * The tolerance that determines whether an almost-horizontal clipping plane
6667
6652
  * will be forced to be orthogonal to the Y direction. {@link orthogonalY}
6668
6653
  * has to be `true` for this to apply.
6669
6654
  */
6670
- T(this, "toleranceOrthogonalY", 0.7);
6655
+ _(this, "toleranceOrthogonalY", 0.7);
6671
6656
  /**
6672
6657
  * The type of clipping plane to be created.
6673
6658
  * Default is {@link SimplePlane}.
6674
6659
  */
6675
- T(this, "Type", yn);
6660
+ _(this, "Type", yn);
6676
6661
  /**
6677
6662
  * A list of all the clipping planes created by this component.
6678
6663
  */
6679
- T(this, "list", []);
6664
+ _(this, "list", []);
6680
6665
  /** The material used in all the clipping planes. */
6681
- T(this, "_material", new M.MeshBasicMaterial({
6666
+ _(this, "_material", new M.MeshBasicMaterial({
6682
6667
  color: 12255487,
6683
6668
  side: M.DoubleSide,
6684
6669
  transparent: !0,
6685
6670
  opacity: 0.2
6686
6671
  }));
6687
- T(this, "_size", 5);
6688
- T(this, "_enabled", !1);
6689
- T(this, "_visible", !0);
6690
- T(this, "_onStartDragging", () => {
6672
+ _(this, "_size", 5);
6673
+ _(this, "_enabled", !1);
6674
+ _(this, "_visible", !0);
6675
+ _(this, "_onStartDragging", () => {
6691
6676
  this.onBeforeDrag.trigger();
6692
6677
  });
6693
- T(this, "_onEndDragging", () => {
6678
+ _(this, "_onEndDragging", () => {
6694
6679
  this.onAfterDrag.trigger();
6695
6680
  });
6696
6681
  this.components.add(Fs.uuid, this);
@@ -6840,7 +6825,7 @@ const Fs = class Fs extends St {
6840
6825
  return n.onDraggingStarted.add(this._onStartDragging), n.onDraggingEnded.add(this._onEndDragging), this.list.push(n), this.onAfterCreate.trigger(n), n;
6841
6826
  }
6842
6827
  updateMaterialsAndPlanes() {
6843
- const t = this.components.get(an);
6828
+ const t = this.components.get(hi);
6844
6829
  for (const [e, i] of t.list) {
6845
6830
  if (!i.renderer)
6846
6831
  continue;
@@ -6860,14 +6845,14 @@ const Fs = class Fs extends St {
6860
6845
  * A unique identifier for the component.
6861
6846
  * This UUID is used to register the component within the Components system.
6862
6847
  */
6863
- T(Fs, "uuid", "66290bc5-18c4-4cd1-9379-2e17a0617611");
6848
+ _(Fs, "uuid", "66290bc5-18c4-4cd1-9379-2e17a0617611");
6864
6849
  let ln = Fs;
6865
6850
  class tc {
6866
6851
  constructor(s) {
6867
6852
  /** {@link NavigationMode.enabled} */
6868
- T(this, "enabled", !1);
6853
+ _(this, "enabled", !1);
6869
6854
  /** {@link NavigationMode.id} */
6870
- T(this, "id", "FirstPerson");
6855
+ _(this, "id", "FirstPerson");
6871
6856
  this.camera = s;
6872
6857
  }
6873
6858
  /** {@link NavigationMode.set} */
@@ -6892,9 +6877,9 @@ class tc {
6892
6877
  class ec {
6893
6878
  constructor(s) {
6894
6879
  /** {@link NavigationMode.enabled} */
6895
- T(this, "enabled", !0);
6880
+ _(this, "enabled", !0);
6896
6881
  /** {@link NavigationMode.id} */
6897
- T(this, "id", "Orbit");
6882
+ _(this, "id", "Orbit");
6898
6883
  this.camera = s, this.activateOrbitControls();
6899
6884
  }
6900
6885
  /** {@link NavigationMode.set} */
@@ -6915,14 +6900,14 @@ class ec {
6915
6900
  class sc {
6916
6901
  constructor(s) {
6917
6902
  /** {@link NavigationMode.enabled} */
6918
- T(this, "enabled", !1);
6903
+ _(this, "enabled", !1);
6919
6904
  /** {@link NavigationMode.id} */
6920
- T(this, "id", "Plan");
6921
- T(this, "mouseAction1");
6922
- T(this, "mouseAction2");
6923
- T(this, "mouseInitialized", !1);
6924
- T(this, "defaultAzimuthSpeed");
6925
- T(this, "defaultPolarSpeed");
6905
+ _(this, "id", "Plan");
6906
+ _(this, "mouseAction1");
6907
+ _(this, "mouseAction2");
6908
+ _(this, "mouseInitialized", !1);
6909
+ _(this, "defaultAzimuthSpeed");
6910
+ _(this, "defaultPolarSpeed");
6926
6911
  this.camera = s, this.defaultAzimuthSpeed = s.controls.azimuthRotateSpeed, this.defaultPolarSpeed = s.controls.polarRotateSpeed;
6927
6912
  }
6928
6913
  /** {@link NavigationMode.set} */
@@ -6937,21 +6922,21 @@ class ic {
6937
6922
  /**
6938
6923
  * Event that fires when the {@link CameraProjection} changes.
6939
6924
  */
6940
- T(this, "onChanged", new j());
6925
+ _(this, "onChanged", new Q());
6941
6926
  /**
6942
6927
  * Current projection mode of the camera.
6943
6928
  * Default is "Perspective".
6944
6929
  */
6945
- T(this, "current", "Perspective");
6930
+ _(this, "current", "Perspective");
6946
6931
  /**
6947
6932
  * The camera controlled by this ProjectionManager.
6948
6933
  * It can be either a PerspectiveCamera or an OrthographicCamera.
6949
6934
  */
6950
- T(this, "camera");
6935
+ _(this, "camera");
6951
6936
  /** Match Ortho zoom with Perspective distance when changing projection mode */
6952
- T(this, "matchOrthoDistanceEnabled", !1);
6953
- T(this, "_component");
6954
- T(this, "_previousDistance", -1);
6937
+ _(this, "matchOrthoDistanceEnabled", !1);
6938
+ _(this, "_component");
6939
+ _(this, "_previousDistance", -1);
6955
6940
  this._component = s, this.camera = s.three;
6956
6941
  }
6957
6942
  /**
@@ -7013,22 +6998,22 @@ class nc extends Ns {
7013
6998
  /**
7014
6999
  * A ProjectionManager instance that manages the projection modes of the camera.
7015
7000
  */
7016
- T(this, "projection");
7001
+ _(this, "projection");
7017
7002
  /**
7018
7003
  * A THREE.OrthographicCamera instance that represents the orthographic camera.
7019
7004
  * This camera is used when the projection mode is set to orthographic.
7020
7005
  */
7021
- T(this, "threeOrtho");
7006
+ _(this, "threeOrtho");
7022
7007
  /**
7023
7008
  * A THREE.PerspectiveCamera instance that represents the perspective camera.
7024
7009
  * This camera is used when the projection mode is set to perspective.
7025
7010
  */
7026
- T(this, "threePersp");
7027
- T(this, "_userInputButtons", {});
7028
- T(this, "_frustumSize", 50);
7029
- T(this, "_navigationModes", /* @__PURE__ */ new Map());
7030
- T(this, "_mode", null);
7031
- T(this, "previousSize", null);
7011
+ _(this, "threePersp");
7012
+ _(this, "_userInputButtons", {});
7013
+ _(this, "_frustumSize", 50);
7014
+ _(this, "_navigationModes", /* @__PURE__ */ new Map());
7015
+ _(this, "_mode", null);
7016
+ _(this, "previousSize", null);
7032
7017
  this.threePersp = this.three, this.threeOrtho = this.newOrthoCamera(), this.projection = new ic(this), this.onAspectUpdated.add(() => {
7033
7018
  this.setOrthoPerspCameraAspect();
7034
7019
  }), this.projection.onChanged.add(
@@ -8657,8 +8642,8 @@ class Ke {
8657
8642
  }
8658
8643
  class oc {
8659
8644
  constructor() {
8660
- T(this, "factor", 1);
8661
- T(this, "complement", 1);
8645
+ _(this, "factor", 1);
8646
+ _(this, "complement", 1);
8662
8647
  }
8663
8648
  apply(s) {
8664
8649
  const e = this.getScaleMatrix().multiply(s);
@@ -8715,8 +8700,8 @@ class oc {
8715
8700
  }
8716
8701
  class kr {
8717
8702
  constructor() {
8718
- T(this, "itemsByFloor", {});
8719
- T(this, "_units", new oc());
8703
+ _(this, "itemsByFloor", {});
8704
+ _(this, "_units", new oc());
8720
8705
  }
8721
8706
  // TODO: Maybe make this more flexible so that it also support more exotic spatial structures?
8722
8707
  setUp(s) {
@@ -8786,28 +8771,28 @@ class kr {
8786
8771
  class wn {
8787
8772
  constructor() {
8788
8773
  /** Whether to extract the IFC properties into a JSON. */
8789
- T(this, "includeProperties", !0);
8774
+ _(this, "includeProperties", !0);
8790
8775
  /**
8791
8776
  * Generate the geometry for categories that are not included by default,
8792
8777
  * like IFCSPACE.
8793
8778
  */
8794
- T(this, "optionalCategories", [X.IFCSPACE]);
8779
+ _(this, "optionalCategories", [X.IFCSPACE]);
8795
8780
  /** Whether to use the coordination data coming from the IFC files. */
8796
- T(this, "coordinate", !0);
8781
+ _(this, "coordinate", !0);
8797
8782
  /** Path of the WASM for [web-ifc](https://github.com/ThatOpen/engine_web-ifc). */
8798
- T(this, "wasm", {
8783
+ _(this, "wasm", {
8799
8784
  path: "",
8800
8785
  absolute: !1,
8801
8786
  logLevel: X.LogLevel.LOG_LEVEL_OFF
8802
8787
  });
8803
8788
  /** List of categories that won't be converted to fragments. */
8804
- T(this, "excludedCategories", /* @__PURE__ */ new Set());
8789
+ _(this, "excludedCategories", /* @__PURE__ */ new Set());
8805
8790
  /** Exclusive list of categories that will be converted to fragments. If this contains any category, any other categories will be ignored. */
8806
- T(this, "includedCategories", /* @__PURE__ */ new Set());
8791
+ _(this, "includedCategories", /* @__PURE__ */ new Set());
8807
8792
  /** Whether to save the absolute location of all IFC items. */
8808
- T(this, "saveLocations", !1);
8793
+ _(this, "saveLocations", !1);
8809
8794
  /** Loader settings for [web-ifc](https://github.com/ThatOpen/engine_web-ifc). */
8810
- T(this, "webIfc", {
8795
+ _(this, "webIfc", {
8811
8796
  COORDINATE_TO_ORIGIN: !0
8812
8797
  // OPTIMIZE_PROFILES: true,
8813
8798
  });
@@ -8817,7 +8802,7 @@ class wn {
8817
8802
  * If set to false, the path must be provided manually in the `wasm.path` property.
8818
8803
  * Default value is true.
8819
8804
  */
8820
- T(this, "autoSetWasm", !0);
8805
+ _(this, "autoSetWasm", !0);
8821
8806
  /**
8822
8807
  * Custom function to handle the file location for [web-ifc](https://github.com/ThatOpen/engine_web-ifc).
8823
8808
  * This function will be called when [web-ifc](https://github.com/ThatOpen/engine_web-ifc) needs to locate a file.
@@ -8826,12 +8811,12 @@ class wn {
8826
8811
  * @param url - The URL of the file to locate.
8827
8812
  * @returns The absolute path of the file.
8828
8813
  */
8829
- T(this, "customLocateFileHandler", null);
8814
+ _(this, "customLocateFileHandler", null);
8830
8815
  }
8831
8816
  }
8832
8817
  class Vr {
8833
8818
  constructor() {
8834
- T(this, "defLineMat", new M.LineBasicMaterial({ color: 16777215 }));
8819
+ _(this, "defLineMat", new M.LineBasicMaterial({ color: 16777215 }));
8835
8820
  }
8836
8821
  read(s) {
8837
8822
  const t = s.GetAllAlignments(0), e = s.GetAllCrossSections2D(0), i = s.GetAllCrossSections3D(0), n = {
@@ -8845,7 +8830,7 @@ class Vr {
8845
8830
  if (s.IfcAlignment) {
8846
8831
  const t = /* @__PURE__ */ new Map();
8847
8832
  for (const e of s.IfcAlignment) {
8848
- const i = new Re.Alignment();
8833
+ const i = new ye.Alignment();
8849
8834
  i.absolute = this.getCurves(e.curve3D, i), i.horizontal = this.getCurves(e.horizontal, i), i.vertical = this.getCurves(e.vertical, i), t.set(t.size, i);
8850
8835
  }
8851
8836
  return { alignments: t, coordinationMatrix: new M.Matrix4() };
@@ -8868,7 +8853,7 @@ class Vr {
8868
8853
  }
8869
8854
  const l = new M.BufferAttribute(a, 3), h = new M.EdgesGeometry();
8870
8855
  h.setAttribute("position", l);
8871
- const d = new Re.CurveMesh(
8856
+ const d = new ye.CurveMesh(
8872
8857
  i,
8873
8858
  r,
8874
8859
  t,
@@ -9070,12 +9055,12 @@ const Hr = /* @__PURE__ */ new Set([
9070
9055
  2513912981,
9071
9056
  2830218821,
9072
9057
  427810014
9073
- ]), Ei = class Ei extends St {
9058
+ ]), mi = class mi extends St {
9074
9059
  constructor(t) {
9075
9060
  super(t);
9076
9061
  /** {@link Component.enabled} */
9077
- T(this, "enabled", !0);
9078
- t.add(Ei.uuid, this);
9062
+ _(this, "enabled", !0);
9063
+ t.add(mi.uuid, this);
9079
9064
  }
9080
9065
  /**
9081
9066
  * Exports all the properties of an IFC into an array of JS objects.
@@ -9111,39 +9096,39 @@ const Hr = /* @__PURE__ */ new Set([
9111
9096
  * A unique identifier for the component.
9112
9097
  * This UUID is used to register the component within the Components system.
9113
9098
  */
9114
- T(Ei, "uuid", "b32c4332-cd67-436e-ba7f-196646c7a635");
9115
- let hn = Ei;
9099
+ _(mi, "uuid", "b32c4332-cd67-436e-ba7f-196646c7a635");
9100
+ let hn = mi;
9116
9101
  const Ss = class Ss extends St {
9117
9102
  constructor(t) {
9118
9103
  super(t);
9119
9104
  /** {@link Disposable.onDisposed} */
9120
- T(this, "onDisposed", new j());
9105
+ _(this, "onDisposed", new Q());
9121
9106
  /**
9122
9107
  * An event triggered when the IFC file starts loading.
9123
9108
  */
9124
- T(this, "onIfcStartedLoading", new j());
9109
+ _(this, "onIfcStartedLoading", new Q());
9125
9110
  /**
9126
9111
  * An event triggered when the setup process is completed.
9127
9112
  */
9128
- T(this, "onSetup", new j());
9113
+ _(this, "onSetup", new Q());
9129
9114
  /**
9130
9115
  * The settings for the IfcLoader.
9131
9116
  * It includes options for excluding categories, setting WASM paths, and more.
9132
9117
  */
9133
- T(this, "settings", new wn());
9118
+ _(this, "settings", new wn());
9134
9119
  /**
9135
9120
  * The instance of the Web-IFC library used for handling IFC data.
9136
9121
  */
9137
- T(this, "webIfc", new X.IfcAPI());
9122
+ _(this, "webIfc", new X.IfcAPI());
9138
9123
  /** {@link Component.enabled} */
9139
- T(this, "enabled", !0);
9140
- T(this, "_material", new M.MeshLambertMaterial());
9141
- T(this, "_spatialTree", new kr());
9142
- T(this, "_metaData", new Yr());
9143
- T(this, "_fragmentInstances", /* @__PURE__ */ new Map());
9144
- T(this, "_civil", new Vr());
9145
- T(this, "_visitedFragments", /* @__PURE__ */ new Map());
9146
- T(this, "_materialT", new M.MeshLambertMaterial({
9124
+ _(this, "enabled", !0);
9125
+ _(this, "_material", new M.MeshLambertMaterial());
9126
+ _(this, "_spatialTree", new kr());
9127
+ _(this, "_metaData", new Yr());
9128
+ _(this, "_fragmentInstances", /* @__PURE__ */ new Map());
9129
+ _(this, "_civil", new Vr());
9130
+ _(this, "_visitedFragments", /* @__PURE__ */ new Map());
9131
+ _(this, "_materialT", new M.MeshLambertMaterial({
9147
9132
  transparent: !0,
9148
9133
  opacity: 0.5
9149
9134
  }));
@@ -9251,7 +9236,7 @@ const Ss = class Ss extends St {
9251
9236
  }
9252
9237
  async getAllGeometries() {
9253
9238
  this._spatialTree.setUp(this.webIfc);
9254
- const t = this.webIfc.GetIfcEntityList(0), e = new Re.FragmentsGroup();
9239
+ const t = this.webIfc.GetIfcEntityList(0), e = new ye.FragmentsGroup();
9255
9240
  e.ifcMetadata = {
9256
9241
  name: "",
9257
9242
  description: "",
@@ -9301,7 +9286,7 @@ const Ss = class Ss extends St {
9301
9286
  for (let r = 0; r < i; r++) {
9302
9287
  const o = t.geometries.get(r), { x: a, y: l, z: h, w: d } = o.color, u = d !== 1, { geometryExpressID: f } = o, E = `${f}-${u}`;
9303
9288
  if (!this._visitedFragments.has(E)) {
9304
- const y = this.getGeometry(this.webIfc, f), F = u ? this._materialT : this._material, S = new Re.Fragment(y, F, 1);
9289
+ const y = this.getGeometry(this.webIfc, f), F = u ? this._materialT : this._material, S = new ye.Fragment(y, F, 1);
9305
9290
  e.add(S.mesh), e.items.push(S);
9306
9291
  const L = this._visitedFragments.size;
9307
9292
  this._visitedFragments.set(E, { index: L, fragment: S });
@@ -9344,7 +9329,7 @@ const Ss = class Ss extends St {
9344
9329
  }
9345
9330
  async autoSetWasm() {
9346
9331
  const t = await fetch(
9347
- `https://unpkg.com/@thatopen/components@${on.release}/package.json`
9332
+ `https://unpkg.com/@thatopen/components@${an.release}/package.json`
9348
9333
  );
9349
9334
  if (!t.ok) {
9350
9335
  console.warn(
@@ -9367,7 +9352,7 @@ const Ss = class Ss extends St {
9367
9352
  * A unique identifier for the component.
9368
9353
  * This UUID is used to register the component within the Components system.
9369
9354
  */
9370
- T(Ss, "uuid", "a659add7-1418-4771-a0d6-7d4d438e4624");
9355
+ _(Ss, "uuid", "a659add7-1418-4771-a0d6-7d4d438e4624");
9371
9356
  let dn = Ss;
9372
9357
  const ac = {
9373
9358
  // IfcRelAssigns
@@ -9413,61 +9398,61 @@ const ac = {
9413
9398
  [X.IFCRELDEFINESBYPROPERTIES]: "IfcRelDefinesByProperties",
9414
9399
  [X.IFCRELDEFINESBYTYPE]: "IfcRelDefinesByType",
9415
9400
  [X.IFCRELDEFINESBYTEMPLATE]: "IfcRelDefinesByTemplate"
9416
- }, _e = class _e extends St {
9401
+ }, Ae = class Ae extends St {
9417
9402
  constructor(t) {
9418
9403
  super(t);
9419
9404
  /** {@link Disposable.onDisposed} */
9420
- T(this, "onDisposed", new j());
9405
+ _(this, "onDisposed", new Q());
9421
9406
  /**
9422
9407
  * Event triggered when a file is requested for export.
9423
9408
  */
9424
- T(this, "onRequestFile", new j());
9409
+ _(this, "onRequestFile", new Q());
9425
9410
  /**
9426
9411
  * ArrayBuffer containing the IFC data to be exported.
9427
9412
  */
9428
- T(this, "ifcToExport", null);
9413
+ _(this, "ifcToExport", null);
9429
9414
  /**
9430
9415
  * Event triggered when an element is added to a Pset.
9431
9416
  */
9432
- T(this, "onElementToPset", new j());
9417
+ _(this, "onElementToPset", new Q());
9433
9418
  /**
9434
9419
  * Event triggered when a property is added to a Pset.
9435
9420
  */
9436
- T(this, "onPropToPset", new j());
9421
+ _(this, "onPropToPset", new Q());
9437
9422
  /**
9438
9423
  * Event triggered when a Pset is removed.
9439
9424
  */
9440
- T(this, "onPsetRemoved", new j());
9425
+ _(this, "onPsetRemoved", new Q());
9441
9426
  /**
9442
9427
  * Event triggered when data in the model changes.
9443
9428
  */
9444
- T(this, "onDataChanged", new j());
9429
+ _(this, "onDataChanged", new Q());
9445
9430
  /**
9446
9431
  * Configuration for the WebAssembly module.
9447
9432
  */
9448
- T(this, "wasm", {
9433
+ _(this, "wasm", {
9449
9434
  path: "/",
9450
9435
  absolute: !1
9451
9436
  });
9452
9437
  /** {@link Component.enabled} */
9453
- T(this, "enabled", !0);
9438
+ _(this, "enabled", !0);
9454
9439
  /**
9455
9440
  * Map of attribute listeners.
9456
9441
  */
9457
- T(this, "attributeListeners", {});
9442
+ _(this, "attributeListeners", {});
9458
9443
  /**
9459
9444
  * The currently selected model.
9460
9445
  */
9461
- T(this, "selectedModel");
9446
+ _(this, "selectedModel");
9462
9447
  /**
9463
9448
  * Map of changed entities in the model.
9464
9449
  */
9465
- T(this, "changeMap", {});
9466
- this.components.add(_e.uuid, this);
9450
+ _(this, "changeMap", {});
9451
+ this.components.add(Ae.uuid, this);
9467
9452
  }
9468
9453
  /** {@link Disposable.dispose} */
9469
9454
  dispose() {
9470
- this.selectedModel = void 0, this.attributeListeners = {}, this.changeMap = {}, this.onElementToPset.reset(), this.onPropToPset.reset(), this.onPsetRemoved.reset(), this.onDataChanged.reset(), this.onDisposed.trigger(_e.uuid), this.onDisposed.reset();
9455
+ this.selectedModel = void 0, this.attributeListeners = {}, this.changeMap = {}, this.onElementToPset.reset(), this.onPropToPset.reset(), this.onPsetRemoved.reset(), this.onDataChanged.reset(), this.onDisposed.trigger(Ae.uuid), this.onDisposed.reset();
9471
9456
  }
9472
9457
  /**
9473
9458
  * Static method to retrieve the IFC schema from a given model.
@@ -9513,7 +9498,7 @@ const ac = {
9513
9498
  * @throws Will throw an error if no OwnerHistory is found in the model.
9514
9499
  */
9515
9500
  async newPset(t, e, i) {
9516
- const n = _e.getIFCSchema(t), { ownerHistoryHandle: r } = await this.getOwnerHistory(t), o = this.newGUID(t), a = new X[n].IfcLabel(e), l = i ? new X[n].IfcText(i) : null, h = new X[n].IfcPropertySet(
9501
+ const n = Ae.getIFCSchema(t), { ownerHistoryHandle: r } = await this.getOwnerHistory(t), o = this.newGUID(t), a = new X[n].IfcLabel(e), l = i ? new X[n].IfcText(i) : null, h = new X[n].IfcPropertySet(
9517
9502
  o,
9518
9503
  r,
9519
9504
  a,
@@ -9675,7 +9660,7 @@ const ac = {
9675
9660
  const o = t.ifcMetadata.schema, a = ac[r], l = X[o][r];
9676
9661
  if (!(a && l))
9677
9662
  throw new Error(`IfcPropertiesManager: ${r} is unsoported.`);
9678
- const h = [new X[o].IfcGloballyUniqueId(Ee.create())], { related: d, relating: u } = a, E = [...new Set(n)].map(
9663
+ const h = [new X[o].IfcGloballyUniqueId(me.create())], { related: d, relating: u } = a, E = [...new Set(n)].map(
9679
9664
  (m) => new X.Handle(m)
9680
9665
  ), p = (m, C) => {
9681
9666
  for (let R = m; R < C - 1; R++)
@@ -9757,7 +9742,7 @@ const ac = {
9757
9742
  const a = o.value;
9758
9743
  if (a === void 0 || a == null)
9759
9744
  throw new Error(`Attribute ${i} has a badly defined handle.`);
9760
- const l = new j();
9745
+ const l = new Q();
9761
9746
  return Object.defineProperty(r[i], "value", {
9762
9747
  get() {
9763
9748
  return this._value;
@@ -9771,8 +9756,8 @@ const ac = {
9771
9756
  return t.ifcMetadata.maxExpressID++, t.ifcMetadata.maxExpressID;
9772
9757
  }
9773
9758
  newGUID(t) {
9774
- const e = _e.getIFCSchema(t);
9775
- return new X[e].IfcGloballyUniqueId(Ee.create());
9759
+ const e = Ae.getIFCSchema(t);
9760
+ return new X[e].IfcGloballyUniqueId(me.create());
9776
9761
  }
9777
9762
  async getOwnerHistory(t) {
9778
9763
  const e = await t.getAllPropertiesOfType(
@@ -9789,7 +9774,7 @@ const ac = {
9789
9774
  this.changeMap[t.uuid].add(i), this.onDataChanged.trigger({ model: t, expressID: i });
9790
9775
  }
9791
9776
  async newSingleProperty(t, e, i, n) {
9792
- const r = _e.getIFCSchema(t), o = new X[r].IfcIdentifier(i), a = new X[r][e](n), l = new X[r].IfcPropertySingleValue(
9777
+ const r = Ae.getIFCSchema(t), o = new X[r].IfcIdentifier(i), a = new X[r][e](n), l = new X[r].IfcPropertySingleValue(
9793
9778
  o,
9794
9779
  null,
9795
9780
  a,
@@ -9802,13 +9787,13 @@ const ac = {
9802
9787
  * A unique identifier for the component.
9803
9788
  * This UUID is used to register the component within the Components system.
9804
9789
  */
9805
- T(_e, "uuid", "58c2d9f0-183c-48d6-a402-dfcf5b9a34df");
9806
- let un = _e;
9790
+ _(Ae, "uuid", "58c2d9f0-183c-48d6-a402-dfcf5b9a34df");
9791
+ let un = Ae;
9807
9792
  const Os = class Os extends St {
9808
9793
  constructor(t) {
9809
9794
  super(t);
9810
9795
  /** {@link Disposable.onDisposed} */
9811
- T(this, "onDisposed", new j());
9796
+ _(this, "onDisposed", new Q());
9812
9797
  /**
9813
9798
  * Event triggered when relations for a model have been indexed.
9814
9799
  * This event provides the model's UUID and the relations map generated for that model.
@@ -9817,7 +9802,7 @@ const Os = class Os extends St {
9817
9802
  * @property {RelationsMap} relationsMap - The relations map generated for the specified model.
9818
9803
  * The map keys are expressIDs of entities, and the values are maps where each key is a relation type ID and its value is an array of expressIDs of entities related through that relation type.
9819
9804
  */
9820
- T(this, "onRelationsIndexed", new j());
9805
+ _(this, "onRelationsIndexed", new Q());
9821
9806
  /**
9822
9807
  * Holds the relationship mappings for each model processed by the indexer.
9823
9808
  * The structure is a map where each key is a model's UUID, and the value is another map.
@@ -9826,11 +9811,11 @@ const Os = class Os extends St {
9826
9811
  * that are related through that relation type. This structure allows for efficient querying
9827
9812
  * of entity relationships within a model.
9828
9813
  */
9829
- T(this, "relationMaps", {});
9814
+ _(this, "relationMaps", {});
9830
9815
  /** {@link Component.enabled} */
9831
- T(this, "enabled", !0);
9832
- T(this, "_relToAttributesMap", gr);
9833
- T(this, "_inverseAttributes", [
9816
+ _(this, "enabled", !0);
9817
+ _(this, "_relToAttributesMap", gr);
9818
+ _(this, "_inverseAttributes", [
9834
9819
  "IsDecomposedBy",
9835
9820
  "Decomposes",
9836
9821
  "AssociatedTo",
@@ -9857,7 +9842,7 @@ const Os = class Os extends St {
9857
9842
  "Nests",
9858
9843
  "DocumentRefForObjects"
9859
9844
  ]);
9860
- T(this, "_ifcRels", [
9845
+ _(this, "_ifcRels", [
9861
9846
  X.IFCRELAGGREGATES,
9862
9847
  X.IFCRELASSOCIATESMATERIAL,
9863
9848
  X.IFCRELASSOCIATESCLASSIFICATION,
@@ -9874,17 +9859,17 @@ const Os = class Os extends St {
9874
9859
  X.IFCRELNESTS,
9875
9860
  X.IFCRELASSOCIATESDOCUMENT
9876
9861
  ]);
9877
- T(this, "onFragmentsDisposed", (t) => {
9862
+ _(this, "onFragmentsDisposed", (t) => {
9878
9863
  delete this.relationMaps[t.groupID];
9879
9864
  });
9880
9865
  // Use to create the corresponding IfcRelationship
9881
- T(this, "_changeMap", {});
9866
+ _(this, "_changeMap", {});
9882
9867
  /**
9883
9868
  * An event that is triggered when entities are related in a BIM model.
9884
9869
  * The event provides information about the type of relation, the inverse attribute,
9885
9870
  * the IDs of the entities related, and the IDs of the entities that are being related.
9886
9871
  */
9887
- T(this, "onEntitiesRelated", new j());
9872
+ _(this, "onEntitiesRelated", new Q());
9888
9873
  this.components.add(Os.uuid, this), t.get(_t).onFragmentsDisposed.add(this.onFragmentsDisposed);
9889
9874
  }
9890
9875
  indexRelations(t, e, i, n) {
@@ -10214,10 +10199,10 @@ const Os = class Os extends St {
10214
10199
  if (!(h === o || d === o))
10215
10200
  return;
10216
10201
  let u = this._changeMap[t.uuid];
10217
- u || (u = new Fe(), this._changeMap[t.uuid] = u);
10202
+ u || (u = new Ee(), this._changeMap[t.uuid] = u);
10218
10203
  const f = d === o ? [e] : n, E = h === o ? [e] : n;
10219
10204
  let p = u.get(r);
10220
- p || (p = new Fe(), p.onItemSet.add(
10205
+ p || (p = new Ee(), p.onItemSet.add(
10221
10206
  () => this.onEntitiesRelated.trigger({
10222
10207
  invAttribute: o,
10223
10208
  relType: r,
@@ -10288,37 +10273,37 @@ const Os = class Os extends St {
10288
10273
  * A unique identifier for the component.
10289
10274
  * This UUID is used to register the component within the Components system.
10290
10275
  */
10291
- T(Os, "uuid", "23a889ab-83b3-44a4-8bee-ead83438370b");
10276
+ _(Os, "uuid", "23a889ab-83b3-44a4-8bee-ead83438370b");
10292
10277
  let xe = Os;
10293
- const mi = class mi extends St {
10278
+ const Ii = class Ii extends St {
10294
10279
  constructor(t) {
10295
10280
  super(t);
10296
10281
  /** {@link Disposable.onDisposed} */
10297
- T(this, "onDisposed", new j());
10282
+ _(this, "onDisposed", new Q());
10298
10283
  /**
10299
10284
  * Event triggered when fragments are loaded.
10300
10285
  */
10301
- T(this, "onFragmentsLoaded", new j());
10286
+ _(this, "onFragmentsLoaded", new Q());
10302
10287
  /**
10303
10288
  * Event triggered when fragments are disposed.
10304
10289
  */
10305
- T(this, "onFragmentsDisposed", new j());
10290
+ _(this, "onFragmentsDisposed", new Q());
10306
10291
  /**
10307
10292
  * DataMap containing all loaded fragments.
10308
10293
  * The key is the fragment's unique identifier, and the value is the fragment itself.
10309
10294
  */
10310
- T(this, "list", new Fe());
10295
+ _(this, "list", new Ee());
10311
10296
  /**
10312
10297
  * DataMap containing all loaded fragment groups.
10313
10298
  * The key is the group's unique identifier, and the value is the group itself.
10314
10299
  */
10315
- T(this, "groups", new Fe());
10316
- T(this, "baseCoordinationModel", "");
10317
- T(this, "baseCoordinationMatrix", new M.Matrix4());
10300
+ _(this, "groups", new Ee());
10301
+ _(this, "baseCoordinationModel", "");
10302
+ _(this, "baseCoordinationMatrix", new M.Matrix4());
10318
10303
  /** {@link Component.enabled} */
10319
- T(this, "enabled", !0);
10320
- T(this, "_loader", new fo());
10321
- this.components.add(mi.uuid, this);
10304
+ _(this, "enabled", !0);
10305
+ _(this, "_loader", new fo());
10306
+ this.components.add(Ii.uuid, this);
10322
10307
  }
10323
10308
  /**
10324
10309
  * Getter for the meshes of all fragments in the FragmentsManager.
@@ -10435,6 +10420,29 @@ const mi = class mi extends St {
10435
10420
  }
10436
10421
  return this.modelIdToFragmentIdMap(e);
10437
10422
  }
10423
+ /**
10424
+ * Converts a fragment ID map to a collection of IFC GUIDs.
10425
+ *
10426
+ * @param fragmentIdMap - A fragment ID map to be converted to a collection of IFC GUIDs.
10427
+ *
10428
+ * @returns An array of IFC GUIDs.
10429
+ */
10430
+ fragmentIdMapToGuids(t) {
10431
+ const e = [], i = this.getModelIdMap(t);
10432
+ for (const n in i) {
10433
+ const r = this.groups.get(n);
10434
+ if (!r)
10435
+ continue;
10436
+ const o = i[n];
10437
+ for (const a of o)
10438
+ for (const [l, h] of r.globalToExpressIDs.entries())
10439
+ if (h === a) {
10440
+ e.push(l);
10441
+ break;
10442
+ }
10443
+ }
10444
+ return e;
10445
+ }
10438
10446
  /**
10439
10447
  * Applies coordinate transformation to the provided models.
10440
10448
  * If no models are provided, all groups are used.
@@ -10491,8 +10499,8 @@ const mi = class mi extends St {
10491
10499
  * A unique identifier for the component.
10492
10500
  * This UUID is used to register the component within the Components system.
10493
10501
  */
10494
- T(mi, "uuid", "fef46874-46a3-461b-8c44-2922ab77c806");
10495
- let _t = mi;
10502
+ _(Ii, "uuid", "fef46874-46a3-461b-8c44-2922ab77c806");
10503
+ let _t = Ii;
10496
10504
  var ii = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
10497
10505
  function lc(c) {
10498
10506
  return c && c.__esModule && Object.prototype.hasOwnProperty.call(c, "default") ? c.default : c;
@@ -10639,17 +10647,17 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10639
10647
  return I;
10640
10648
  }
10641
10649
  function r(f, E, p, I, m, C) {
10642
- var R, g, y = f.file, F = f.compression, S = C !== l.utf8encode, L = o.transformTo("string", C(y.name)), N = o.transformTo("string", l.utf8encode(y.name)), x = y.comment, k = o.transformTo("string", C(x)), w = o.transformTo("string", l.utf8encode(x)), P = N.length !== y.name.length, _ = w.length !== x.length, v = "", Q = "", V = "", et = y.dir, H = y.date, nt = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
10650
+ var R, g, y = f.file, F = f.compression, S = C !== l.utf8encode, L = o.transformTo("string", C(y.name)), N = o.transformTo("string", l.utf8encode(y.name)), x = y.comment, k = o.transformTo("string", C(x)), w = o.transformTo("string", l.utf8encode(x)), P = N.length !== y.name.length, T = w.length !== x.length, v = "", j = "", V = "", et = y.dir, H = y.date, nt = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
10643
10651
  E && !p || (nt.crc32 = f.crc32, nt.compressedSize = f.compressedSize, nt.uncompressedSize = f.uncompressedSize);
10644
10652
  var z = 0;
10645
- E && (z |= 8), S || !P && !_ || (z |= 2048);
10653
+ E && (z |= 8), S || !P && !T || (z |= 2048);
10646
10654
  var U = 0, ot = 0;
10647
10655
  et && (U |= 16), m === "UNIX" ? (ot = 798, U |= function(tt, Rt) {
10648
10656
  var Ft = tt;
10649
10657
  return tt || (Ft = Rt ? 16893 : 33204), (65535 & Ft) << 16;
10650
10658
  }(y.unixPermissions, et)) : (ot = 20, U |= function(tt) {
10651
10659
  return 63 & (tt || 0);
10652
- }(y.dosPermissions)), R = H.getUTCHours(), R <<= 6, R |= H.getUTCMinutes(), R <<= 5, R |= H.getUTCSeconds() / 2, g = H.getUTCFullYear() - 1980, g <<= 4, g |= H.getUTCMonth() + 1, g <<= 5, g |= H.getUTCDate(), P && (Q = n(1, 1) + n(h(L), 4) + N, v += "up" + n(Q.length, 2) + Q), _ && (V = n(1, 1) + n(h(k), 4) + w, v += "uc" + n(V.length, 2) + V);
10660
+ }(y.dosPermissions)), R = H.getUTCHours(), R <<= 6, R |= H.getUTCMinutes(), R <<= 5, R |= H.getUTCSeconds() / 2, g = H.getUTCFullYear() - 1980, g <<= 4, g |= H.getUTCMonth() + 1, g <<= 5, g |= H.getUTCDate(), P && (j = n(1, 1) + n(h(L), 4) + N, v += "up" + n(j.length, 2) + j), T && (V = n(1, 1) + n(h(k), 4) + w, v += "uc" + n(V.length, 2) + V);
10653
10661
  var st = "";
10654
10662
  return st += `
10655
10663
  \0`, st += n(z, 2), st += F.magic, st += n(R, 2), st += n(g, 2), st += n(nt.crc32, 4), st += n(nt.compressedSize, 4), st += n(nt.uncompressedSize, 4), st += n(L.length, 2), st += n(v.length, 2), { fileRecord: d.LOCAL_FILE_HEADER + st + L + v, dirRecord: d.CENTRAL_FILE_HEADER + n(ot, 2) + st + n(k.length, 2) + "\0\0\0\0" + n(U, 4) + n(I, 4) + L + v + k };
@@ -12014,7 +12022,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12014
12022
  return -1 ^ r;
12015
12023
  };
12016
12024
  }, {}], 46: [function(t, e, i) {
12017
- var n, r = t("../utils/common"), o = t("./trees"), a = t("./adler32"), l = t("./crc32"), h = t("./messages"), d = 0, u = 4, f = 0, E = -2, p = -1, I = 4, m = 2, C = 8, R = 9, g = 286, y = 30, F = 19, S = 2 * g + 1, L = 15, N = 3, x = 258, k = x + N + 1, w = 42, P = 113, _ = 1, v = 2, Q = 3, V = 4;
12025
+ var n, r = t("../utils/common"), o = t("./trees"), a = t("./adler32"), l = t("./crc32"), h = t("./messages"), d = 0, u = 4, f = 0, E = -2, p = -1, I = 4, m = 2, C = 8, R = 9, g = 286, y = 30, F = 19, S = 2 * g + 1, L = 15, N = 3, x = 258, k = x + N + 1, w = 42, P = 113, T = 1, v = 2, j = 3, V = 4;
12018
12026
  function et(A, W) {
12019
12027
  return A.msg = h[W], W;
12020
12028
  }
@@ -12077,7 +12085,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12077
12085
  for (var Y, b; ; ) {
12078
12086
  if (A.lookahead < k) {
12079
12087
  if (Rt(A), A.lookahead < k && W === d)
12080
- return _;
12088
+ return T;
12081
12089
  if (A.lookahead === 0)
12082
12090
  break;
12083
12091
  }
@@ -12091,15 +12099,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12091
12099
  else
12092
12100
  b = o._tr_tally(A, 0, A.window[A.strstart]), A.lookahead--, A.strstart++;
12093
12101
  if (b && (U(A, !1), A.strm.avail_out === 0))
12094
- return _;
12102
+ return T;
12095
12103
  }
12096
- return A.insert = A.strstart < N - 1 ? A.strstart : N - 1, W === u ? (U(A, !0), A.strm.avail_out === 0 ? Q : V) : A.last_lit && (U(A, !1), A.strm.avail_out === 0) ? _ : v;
12104
+ return A.insert = A.strstart < N - 1 ? A.strstart : N - 1, W === u ? (U(A, !0), A.strm.avail_out === 0 ? j : V) : A.last_lit && (U(A, !1), A.strm.avail_out === 0) ? T : v;
12097
12105
  }
12098
12106
  function at(A, W) {
12099
12107
  for (var Y, b, O; ; ) {
12100
12108
  if (A.lookahead < k) {
12101
12109
  if (Rt(A), A.lookahead < k && W === d)
12102
- return _;
12110
+ return T;
12103
12111
  if (A.lookahead === 0)
12104
12112
  break;
12105
12113
  }
@@ -12107,14 +12115,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12107
12115
  for (O = A.strstart + A.lookahead - N, b = o._tr_tally(A, A.strstart - 1 - A.prev_match, A.prev_length - N), A.lookahead -= A.prev_length - 1, A.prev_length -= 2; ++A.strstart <= O && (A.ins_h = (A.ins_h << A.hash_shift ^ A.window[A.strstart + N - 1]) & A.hash_mask, Y = A.prev[A.strstart & A.w_mask] = A.head[A.ins_h], A.head[A.ins_h] = A.strstart), --A.prev_length != 0; )
12108
12116
  ;
12109
12117
  if (A.match_available = 0, A.match_length = N - 1, A.strstart++, b && (U(A, !1), A.strm.avail_out === 0))
12110
- return _;
12118
+ return T;
12111
12119
  } else if (A.match_available) {
12112
12120
  if ((b = o._tr_tally(A, 0, A.window[A.strstart - 1])) && U(A, !1), A.strstart++, A.lookahead--, A.strm.avail_out === 0)
12113
- return _;
12121
+ return T;
12114
12122
  } else
12115
12123
  A.match_available = 1, A.strstart++, A.lookahead--;
12116
12124
  }
12117
- return A.match_available && (b = o._tr_tally(A, 0, A.window[A.strstart - 1]), A.match_available = 0), A.insert = A.strstart < N - 1 ? A.strstart : N - 1, W === u ? (U(A, !0), A.strm.avail_out === 0 ? Q : V) : A.last_lit && (U(A, !1), A.strm.avail_out === 0) ? _ : v;
12125
+ return A.match_available && (b = o._tr_tally(A, 0, A.window[A.strstart - 1]), A.match_available = 0), A.insert = A.strstart < N - 1 ? A.strstart : N - 1, W === u ? (U(A, !0), A.strm.avail_out === 0 ? j : V) : A.last_lit && (U(A, !1), A.strm.avail_out === 0) ? T : v;
12118
12126
  }
12119
12127
  function ft(A, W, Y, b, O) {
12120
12128
  this.good_length = A, this.max_lazy = W, this.nice_length = Y, this.max_chain = b, this.func = O;
@@ -12147,16 +12155,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12147
12155
  for (Y > A.pending_buf_size - 5 && (Y = A.pending_buf_size - 5); ; ) {
12148
12156
  if (A.lookahead <= 1) {
12149
12157
  if (Rt(A), A.lookahead === 0 && W === d)
12150
- return _;
12158
+ return T;
12151
12159
  if (A.lookahead === 0)
12152
12160
  break;
12153
12161
  }
12154
12162
  A.strstart += A.lookahead, A.lookahead = 0;
12155
12163
  var b = A.block_start + Y;
12156
12164
  if ((A.strstart === 0 || A.strstart >= b) && (A.lookahead = A.strstart - b, A.strstart = b, U(A, !1), A.strm.avail_out === 0) || A.strstart - A.block_start >= A.w_size - k && (U(A, !1), A.strm.avail_out === 0))
12157
- return _;
12165
+ return T;
12158
12166
  }
12159
- return A.insert = 0, W === u ? (U(A, !0), A.strm.avail_out === 0 ? Q : V) : (A.strstart > A.block_start && (U(A, !1), A.strm.avail_out), _);
12167
+ return A.insert = 0, W === u ? (U(A, !0), A.strm.avail_out === 0 ? j : V) : (A.strstart > A.block_start && (U(A, !1), A.strm.avail_out), T);
12160
12168
  }), new ft(4, 4, 8, 4, Ft), new ft(4, 5, 16, 8, Ft), new ft(4, 6, 32, 32, Ft), new ft(4, 4, 16, 16, at), new ft(8, 16, 32, 32, at), new ft(8, 16, 128, 128, at), new ft(8, 32, 128, 256, at), new ft(32, 128, 258, 1024, at), new ft(32, 258, 258, 4096, at)], i.deflateInit = function(A, W) {
12161
12169
  return Mt(A, W, C, 15, 8, 0);
12162
12170
  }, i.deflateInit2 = Mt, i.deflateReset = Gt, i.deflateResetKeep = It, i.deflateSetHeader = function(A, W) {
@@ -12219,18 +12227,18 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12219
12227
  for (var it; ; ) {
12220
12228
  if (B.lookahead === 0 && (Rt(B), B.lookahead === 0)) {
12221
12229
  if (K === d)
12222
- return _;
12230
+ return T;
12223
12231
  break;
12224
12232
  }
12225
12233
  if (B.match_length = 0, it = o._tr_tally(B, 0, B.window[B.strstart]), B.lookahead--, B.strstart++, it && (U(B, !1), B.strm.avail_out === 0))
12226
- return _;
12234
+ return T;
12227
12235
  }
12228
- return B.insert = 0, K === u ? (U(B, !0), B.strm.avail_out === 0 ? Q : V) : B.last_lit && (U(B, !1), B.strm.avail_out === 0) ? _ : v;
12236
+ return B.insert = 0, K === u ? (U(B, !0), B.strm.avail_out === 0 ? j : V) : B.last_lit && (U(B, !1), B.strm.avail_out === 0) ? T : v;
12229
12237
  }(b, W) : b.strategy === 3 ? function(B, K) {
12230
12238
  for (var it, J, ct, Ct, pt = B.window; ; ) {
12231
12239
  if (B.lookahead <= x) {
12232
12240
  if (Rt(B), B.lookahead <= x && K === d)
12233
- return _;
12241
+ return T;
12234
12242
  if (B.lookahead === 0)
12235
12243
  break;
12236
12244
  }
@@ -12242,11 +12250,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12242
12250
  B.match_length = x - (Ct - ct), B.match_length > B.lookahead && (B.match_length = B.lookahead);
12243
12251
  }
12244
12252
  if (B.match_length >= N ? (it = o._tr_tally(B, 1, B.match_length - N), B.lookahead -= B.match_length, B.strstart += B.match_length, B.match_length = 0) : (it = o._tr_tally(B, 0, B.window[B.strstart]), B.lookahead--, B.strstart++), it && (U(B, !1), B.strm.avail_out === 0))
12245
- return _;
12253
+ return T;
12246
12254
  }
12247
- return B.insert = 0, K === u ? (U(B, !0), B.strm.avail_out === 0 ? Q : V) : B.last_lit && (U(B, !1), B.strm.avail_out === 0) ? _ : v;
12255
+ return B.insert = 0, K === u ? (U(B, !0), B.strm.avail_out === 0 ? j : V) : B.last_lit && (U(B, !1), B.strm.avail_out === 0) ? T : v;
12248
12256
  }(b, W) : n[b.level].func(b, W);
12249
- if ($ !== Q && $ !== V || (b.status = 666), $ === _ || $ === Q)
12257
+ if ($ !== j && $ !== V || (b.status = 666), $ === T || $ === j)
12250
12258
  return A.avail_out === 0 && (b.last_flush = -1), f;
12251
12259
  if ($ === v && (W === 1 ? o._tr_align(b) : W !== 5 && (o._tr_stored_block(b, 0, 0, !1), W === 3 && (nt(b.head), b.lookahead === 0 && (b.strstart = 0, b.block_start = 0, b.insert = 0))), z(A), A.avail_out === 0))
12252
12260
  return b.last_flush = -1, f;
@@ -12272,11 +12280,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12272
12280
  };
12273
12281
  }, {}], 48: [function(t, e, i) {
12274
12282
  e.exports = function(n, r) {
12275
- var o, a, l, h, d, u, f, E, p, I, m, C, R, g, y, F, S, L, N, x, k, w, P, _, v;
12276
- o = n.state, a = n.next_in, _ = n.input, l = a + (n.avail_in - 5), h = n.next_out, v = n.output, d = h - (r - n.avail_out), u = h + (n.avail_out - 257), f = o.dmax, E = o.wsize, p = o.whave, I = o.wnext, m = o.window, C = o.hold, R = o.bits, g = o.lencode, y = o.distcode, F = (1 << o.lenbits) - 1, S = (1 << o.distbits) - 1;
12283
+ var o, a, l, h, d, u, f, E, p, I, m, C, R, g, y, F, S, L, N, x, k, w, P, T, v;
12284
+ o = n.state, a = n.next_in, T = n.input, l = a + (n.avail_in - 5), h = n.next_out, v = n.output, d = h - (r - n.avail_out), u = h + (n.avail_out - 257), f = o.dmax, E = o.wsize, p = o.whave, I = o.wnext, m = o.window, C = o.hold, R = o.bits, g = o.lencode, y = o.distcode, F = (1 << o.lenbits) - 1, S = (1 << o.distbits) - 1;
12277
12285
  t:
12278
12286
  do {
12279
- R < 15 && (C += _[a++] << R, R += 8, C += _[a++] << R, R += 8), L = g[C & F];
12287
+ R < 15 && (C += T[a++] << R, R += 8, C += T[a++] << R, R += 8), L = g[C & F];
12280
12288
  e:
12281
12289
  for (; ; ) {
12282
12290
  if (C >>>= N = L >>> 24, R -= N, (N = L >>> 16 & 255) === 0)
@@ -12294,7 +12302,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12294
12302
  n.msg = "invalid literal/length code", o.mode = 30;
12295
12303
  break t;
12296
12304
  }
12297
- x = 65535 & L, (N &= 15) && (R < N && (C += _[a++] << R, R += 8), x += C & (1 << N) - 1, C >>>= N, R -= N), R < 15 && (C += _[a++] << R, R += 8, C += _[a++] << R, R += 8), L = y[C & S];
12305
+ x = 65535 & L, (N &= 15) && (R < N && (C += T[a++] << R, R += 8), x += C & (1 << N) - 1, C >>>= N, R -= N), R < 15 && (C += T[a++] << R, R += 8, C += T[a++] << R, R += 8), L = y[C & S];
12298
12306
  s:
12299
12307
  for (; ; ) {
12300
12308
  if (C >>>= N = L >>> 24, R -= N, !(16 & (N = L >>> 16 & 255))) {
@@ -12305,7 +12313,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12305
12313
  n.msg = "invalid distance code", o.mode = 30;
12306
12314
  break t;
12307
12315
  }
12308
- if (k = 65535 & L, R < (N &= 15) && (C += _[a++] << R, (R += 8) < N && (C += _[a++] << R, R += 8)), f < (k += C & (1 << N) - 1)) {
12316
+ if (k = 65535 & L, R < (N &= 15) && (C += T[a++] << R, (R += 8) < N && (C += T[a++] << R, R += 8)), f < (k += C & (1 << N) - 1)) {
12309
12317
  n.msg = "invalid distance too far back", o.mode = 30;
12310
12318
  break t;
12311
12319
  }
@@ -12368,12 +12376,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12368
12376
  return w && w.state ? ((P = w.state).wsize = 0, P.whave = 0, P.wnext = 0, R(w)) : f;
12369
12377
  }
12370
12378
  function y(w, P) {
12371
- var _, v;
12372
- return w && w.state ? (v = w.state, P < 0 ? (_ = 0, P = -P) : (_ = 1 + (P >> 4), P < 48 && (P &= 15)), P && (P < 8 || 15 < P) ? f : (v.window !== null && v.wbits !== P && (v.window = null), v.wrap = _, v.wbits = P, g(w))) : f;
12379
+ var T, v;
12380
+ return w && w.state ? (v = w.state, P < 0 ? (T = 0, P = -P) : (T = 1 + (P >> 4), P < 48 && (P &= 15)), P && (P < 8 || 15 < P) ? f : (v.window !== null && v.wbits !== P && (v.window = null), v.wrap = T, v.wbits = P, g(w))) : f;
12373
12381
  }
12374
12382
  function F(w, P) {
12375
- var _, v;
12376
- return w ? (v = new C(), (w.state = v).window = null, (_ = y(w, P)) !== u && (w.state = null), _) : f;
12383
+ var T, v;
12384
+ return w ? (v = new C(), (w.state = v).window = null, (T = y(w, P)) !== u && (w.state = null), T) : f;
12377
12385
  }
12378
12386
  var S, L, N = !0;
12379
12387
  function x(w) {
@@ -12393,23 +12401,23 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12393
12401
  }
12394
12402
  w.lencode = S, w.lenbits = 9, w.distcode = L, w.distbits = 5;
12395
12403
  }
12396
- function k(w, P, _, v) {
12397
- var Q, V = w.state;
12398
- return V.window === null && (V.wsize = 1 << V.wbits, V.wnext = 0, V.whave = 0, V.window = new n.Buf8(V.wsize)), v >= V.wsize ? (n.arraySet(V.window, P, _ - V.wsize, V.wsize, 0), V.wnext = 0, V.whave = V.wsize) : (v < (Q = V.wsize - V.wnext) && (Q = v), n.arraySet(V.window, P, _ - v, Q, V.wnext), (v -= Q) ? (n.arraySet(V.window, P, _ - v, v, 0), V.wnext = v, V.whave = V.wsize) : (V.wnext += Q, V.wnext === V.wsize && (V.wnext = 0), V.whave < V.wsize && (V.whave += Q))), 0;
12404
+ function k(w, P, T, v) {
12405
+ var j, V = w.state;
12406
+ return V.window === null && (V.wsize = 1 << V.wbits, V.wnext = 0, V.whave = 0, V.window = new n.Buf8(V.wsize)), v >= V.wsize ? (n.arraySet(V.window, P, T - V.wsize, V.wsize, 0), V.wnext = 0, V.whave = V.wsize) : (v < (j = V.wsize - V.wnext) && (j = v), n.arraySet(V.window, P, T - v, j, V.wnext), (v -= j) ? (n.arraySet(V.window, P, T - v, v, 0), V.wnext = v, V.whave = V.wsize) : (V.wnext += j, V.wnext === V.wsize && (V.wnext = 0), V.whave < V.wsize && (V.whave += j))), 0;
12399
12407
  }
12400
12408
  i.inflateReset = g, i.inflateReset2 = y, i.inflateResetKeep = R, i.inflateInit = function(w) {
12401
12409
  return F(w, 15);
12402
12410
  }, i.inflateInit2 = F, i.inflate = function(w, P) {
12403
- var _, v, Q, V, et, H, nt, z, U, ot, st, tt, Rt, Ft, at, ft, ut, It, Gt, Mt, A, W, Y, b, O = 0, D = new n.Buf8(4), Z = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
12411
+ var T, v, j, V, et, H, nt, z, U, ot, st, tt, Rt, Ft, at, ft, ut, It, Gt, Mt, A, W, Y, b, O = 0, D = new n.Buf8(4), Z = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
12404
12412
  if (!w || !w.state || !w.output || !w.input && w.avail_in !== 0)
12405
12413
  return f;
12406
- (_ = w.state).mode === 12 && (_.mode = 13), et = w.next_out, Q = w.output, nt = w.avail_out, V = w.next_in, v = w.input, H = w.avail_in, z = _.hold, U = _.bits, ot = H, st = nt, W = u;
12414
+ (T = w.state).mode === 12 && (T.mode = 13), et = w.next_out, j = w.output, nt = w.avail_out, V = w.next_in, v = w.input, H = w.avail_in, z = T.hold, U = T.bits, ot = H, st = nt, W = u;
12407
12415
  t:
12408
12416
  for (; ; )
12409
- switch (_.mode) {
12417
+ switch (T.mode) {
12410
12418
  case E:
12411
- if (_.wrap === 0) {
12412
- _.mode = 13;
12419
+ if (T.wrap === 0) {
12420
+ T.mode = 13;
12413
12421
  break;
12414
12422
  }
12415
12423
  for (; U < 16; ) {
@@ -12417,25 +12425,25 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12417
12425
  break t;
12418
12426
  H--, z += v[V++] << U, U += 8;
12419
12427
  }
12420
- if (2 & _.wrap && z === 35615) {
12421
- D[_.check = 0] = 255 & z, D[1] = z >>> 8 & 255, _.check = o(_.check, D, 2, 0), U = z = 0, _.mode = 2;
12428
+ if (2 & T.wrap && z === 35615) {
12429
+ D[T.check = 0] = 255 & z, D[1] = z >>> 8 & 255, T.check = o(T.check, D, 2, 0), U = z = 0, T.mode = 2;
12422
12430
  break;
12423
12431
  }
12424
- if (_.flags = 0, _.head && (_.head.done = !1), !(1 & _.wrap) || (((255 & z) << 8) + (z >> 8)) % 31) {
12425
- w.msg = "incorrect header check", _.mode = 30;
12432
+ if (T.flags = 0, T.head && (T.head.done = !1), !(1 & T.wrap) || (((255 & z) << 8) + (z >> 8)) % 31) {
12433
+ w.msg = "incorrect header check", T.mode = 30;
12426
12434
  break;
12427
12435
  }
12428
12436
  if ((15 & z) != 8) {
12429
- w.msg = "unknown compression method", _.mode = 30;
12437
+ w.msg = "unknown compression method", T.mode = 30;
12430
12438
  break;
12431
12439
  }
12432
- if (U -= 4, A = 8 + (15 & (z >>>= 4)), _.wbits === 0)
12433
- _.wbits = A;
12434
- else if (A > _.wbits) {
12435
- w.msg = "invalid window size", _.mode = 30;
12440
+ if (U -= 4, A = 8 + (15 & (z >>>= 4)), T.wbits === 0)
12441
+ T.wbits = A;
12442
+ else if (A > T.wbits) {
12443
+ w.msg = "invalid window size", T.mode = 30;
12436
12444
  break;
12437
12445
  }
12438
- _.dmax = 1 << A, w.adler = _.check = 1, _.mode = 512 & z ? 10 : 12, U = z = 0;
12446
+ T.dmax = 1 << A, w.adler = T.check = 1, T.mode = 512 & z ? 10 : 12, U = z = 0;
12439
12447
  break;
12440
12448
  case 2:
12441
12449
  for (; U < 16; ) {
@@ -12443,80 +12451,80 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12443
12451
  break t;
12444
12452
  H--, z += v[V++] << U, U += 8;
12445
12453
  }
12446
- if (_.flags = z, (255 & _.flags) != 8) {
12447
- w.msg = "unknown compression method", _.mode = 30;
12454
+ if (T.flags = z, (255 & T.flags) != 8) {
12455
+ w.msg = "unknown compression method", T.mode = 30;
12448
12456
  break;
12449
12457
  }
12450
- if (57344 & _.flags) {
12451
- w.msg = "unknown header flags set", _.mode = 30;
12458
+ if (57344 & T.flags) {
12459
+ w.msg = "unknown header flags set", T.mode = 30;
12452
12460
  break;
12453
12461
  }
12454
- _.head && (_.head.text = z >> 8 & 1), 512 & _.flags && (D[0] = 255 & z, D[1] = z >>> 8 & 255, _.check = o(_.check, D, 2, 0)), U = z = 0, _.mode = 3;
12462
+ T.head && (T.head.text = z >> 8 & 1), 512 & T.flags && (D[0] = 255 & z, D[1] = z >>> 8 & 255, T.check = o(T.check, D, 2, 0)), U = z = 0, T.mode = 3;
12455
12463
  case 3:
12456
12464
  for (; U < 32; ) {
12457
12465
  if (H === 0)
12458
12466
  break t;
12459
12467
  H--, z += v[V++] << U, U += 8;
12460
12468
  }
12461
- _.head && (_.head.time = z), 512 & _.flags && (D[0] = 255 & z, D[1] = z >>> 8 & 255, D[2] = z >>> 16 & 255, D[3] = z >>> 24 & 255, _.check = o(_.check, D, 4, 0)), U = z = 0, _.mode = 4;
12469
+ T.head && (T.head.time = z), 512 & T.flags && (D[0] = 255 & z, D[1] = z >>> 8 & 255, D[2] = z >>> 16 & 255, D[3] = z >>> 24 & 255, T.check = o(T.check, D, 4, 0)), U = z = 0, T.mode = 4;
12462
12470
  case 4:
12463
12471
  for (; U < 16; ) {
12464
12472
  if (H === 0)
12465
12473
  break t;
12466
12474
  H--, z += v[V++] << U, U += 8;
12467
12475
  }
12468
- _.head && (_.head.xflags = 255 & z, _.head.os = z >> 8), 512 & _.flags && (D[0] = 255 & z, D[1] = z >>> 8 & 255, _.check = o(_.check, D, 2, 0)), U = z = 0, _.mode = 5;
12476
+ T.head && (T.head.xflags = 255 & z, T.head.os = z >> 8), 512 & T.flags && (D[0] = 255 & z, D[1] = z >>> 8 & 255, T.check = o(T.check, D, 2, 0)), U = z = 0, T.mode = 5;
12469
12477
  case 5:
12470
- if (1024 & _.flags) {
12478
+ if (1024 & T.flags) {
12471
12479
  for (; U < 16; ) {
12472
12480
  if (H === 0)
12473
12481
  break t;
12474
12482
  H--, z += v[V++] << U, U += 8;
12475
12483
  }
12476
- _.length = z, _.head && (_.head.extra_len = z), 512 & _.flags && (D[0] = 255 & z, D[1] = z >>> 8 & 255, _.check = o(_.check, D, 2, 0)), U = z = 0;
12484
+ T.length = z, T.head && (T.head.extra_len = z), 512 & T.flags && (D[0] = 255 & z, D[1] = z >>> 8 & 255, T.check = o(T.check, D, 2, 0)), U = z = 0;
12477
12485
  } else
12478
- _.head && (_.head.extra = null);
12479
- _.mode = 6;
12486
+ T.head && (T.head.extra = null);
12487
+ T.mode = 6;
12480
12488
  case 6:
12481
- if (1024 & _.flags && (H < (tt = _.length) && (tt = H), tt && (_.head && (A = _.head.extra_len - _.length, _.head.extra || (_.head.extra = new Array(_.head.extra_len)), n.arraySet(_.head.extra, v, V, tt, A)), 512 & _.flags && (_.check = o(_.check, v, tt, V)), H -= tt, V += tt, _.length -= tt), _.length))
12489
+ if (1024 & T.flags && (H < (tt = T.length) && (tt = H), tt && (T.head && (A = T.head.extra_len - T.length, T.head.extra || (T.head.extra = new Array(T.head.extra_len)), n.arraySet(T.head.extra, v, V, tt, A)), 512 & T.flags && (T.check = o(T.check, v, tt, V)), H -= tt, V += tt, T.length -= tt), T.length))
12482
12490
  break t;
12483
- _.length = 0, _.mode = 7;
12491
+ T.length = 0, T.mode = 7;
12484
12492
  case 7:
12485
- if (2048 & _.flags) {
12493
+ if (2048 & T.flags) {
12486
12494
  if (H === 0)
12487
12495
  break t;
12488
- for (tt = 0; A = v[V + tt++], _.head && A && _.length < 65536 && (_.head.name += String.fromCharCode(A)), A && tt < H; )
12496
+ for (tt = 0; A = v[V + tt++], T.head && A && T.length < 65536 && (T.head.name += String.fromCharCode(A)), A && tt < H; )
12489
12497
  ;
12490
- if (512 & _.flags && (_.check = o(_.check, v, tt, V)), H -= tt, V += tt, A)
12498
+ if (512 & T.flags && (T.check = o(T.check, v, tt, V)), H -= tt, V += tt, A)
12491
12499
  break t;
12492
12500
  } else
12493
- _.head && (_.head.name = null);
12494
- _.length = 0, _.mode = 8;
12501
+ T.head && (T.head.name = null);
12502
+ T.length = 0, T.mode = 8;
12495
12503
  case 8:
12496
- if (4096 & _.flags) {
12504
+ if (4096 & T.flags) {
12497
12505
  if (H === 0)
12498
12506
  break t;
12499
- for (tt = 0; A = v[V + tt++], _.head && A && _.length < 65536 && (_.head.comment += String.fromCharCode(A)), A && tt < H; )
12507
+ for (tt = 0; A = v[V + tt++], T.head && A && T.length < 65536 && (T.head.comment += String.fromCharCode(A)), A && tt < H; )
12500
12508
  ;
12501
- if (512 & _.flags && (_.check = o(_.check, v, tt, V)), H -= tt, V += tt, A)
12509
+ if (512 & T.flags && (T.check = o(T.check, v, tt, V)), H -= tt, V += tt, A)
12502
12510
  break t;
12503
12511
  } else
12504
- _.head && (_.head.comment = null);
12505
- _.mode = 9;
12512
+ T.head && (T.head.comment = null);
12513
+ T.mode = 9;
12506
12514
  case 9:
12507
- if (512 & _.flags) {
12515
+ if (512 & T.flags) {
12508
12516
  for (; U < 16; ) {
12509
12517
  if (H === 0)
12510
12518
  break t;
12511
12519
  H--, z += v[V++] << U, U += 8;
12512
12520
  }
12513
- if (z !== (65535 & _.check)) {
12514
- w.msg = "header crc mismatch", _.mode = 30;
12521
+ if (z !== (65535 & T.check)) {
12522
+ w.msg = "header crc mismatch", T.mode = 30;
12515
12523
  break;
12516
12524
  }
12517
12525
  U = z = 0;
12518
12526
  }
12519
- _.head && (_.head.hcrc = _.flags >> 9 & 1, _.head.done = !0), w.adler = _.check = 0, _.mode = 12;
12527
+ T.head && (T.head.hcrc = T.flags >> 9 & 1, T.head.done = !0), w.adler = T.check = 0, T.mode = 12;
12520
12528
  break;
12521
12529
  case 10:
12522
12530
  for (; U < 32; ) {
@@ -12524,17 +12532,17 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12524
12532
  break t;
12525
12533
  H--, z += v[V++] << U, U += 8;
12526
12534
  }
12527
- w.adler = _.check = m(z), U = z = 0, _.mode = 11;
12535
+ w.adler = T.check = m(z), U = z = 0, T.mode = 11;
12528
12536
  case 11:
12529
- if (_.havedict === 0)
12530
- return w.next_out = et, w.avail_out = nt, w.next_in = V, w.avail_in = H, _.hold = z, _.bits = U, 2;
12531
- w.adler = _.check = 1, _.mode = 12;
12537
+ if (T.havedict === 0)
12538
+ return w.next_out = et, w.avail_out = nt, w.next_in = V, w.avail_in = H, T.hold = z, T.bits = U, 2;
12539
+ w.adler = T.check = 1, T.mode = 12;
12532
12540
  case 12:
12533
12541
  if (P === 5 || P === 6)
12534
12542
  break t;
12535
12543
  case 13:
12536
- if (_.last) {
12537
- z >>>= 7 & U, U -= 7 & U, _.mode = 27;
12544
+ if (T.last) {
12545
+ z >>>= 7 & U, U -= 7 & U, T.mode = 27;
12538
12546
  break;
12539
12547
  }
12540
12548
  for (; U < 3; ) {
@@ -12542,20 +12550,20 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12542
12550
  break t;
12543
12551
  H--, z += v[V++] << U, U += 8;
12544
12552
  }
12545
- switch (_.last = 1 & z, U -= 1, 3 & (z >>>= 1)) {
12553
+ switch (T.last = 1 & z, U -= 1, 3 & (z >>>= 1)) {
12546
12554
  case 0:
12547
- _.mode = 14;
12555
+ T.mode = 14;
12548
12556
  break;
12549
12557
  case 1:
12550
- if (x(_), _.mode = 20, P !== 6)
12558
+ if (x(T), T.mode = 20, P !== 6)
12551
12559
  break;
12552
12560
  z >>>= 2, U -= 2;
12553
12561
  break t;
12554
12562
  case 2:
12555
- _.mode = 17;
12563
+ T.mode = 17;
12556
12564
  break;
12557
12565
  case 3:
12558
- w.msg = "invalid block type", _.mode = 30;
12566
+ w.msg = "invalid block type", T.mode = 30;
12559
12567
  }
12560
12568
  z >>>= 2, U -= 2;
12561
12569
  break;
@@ -12566,21 +12574,21 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12566
12574
  H--, z += v[V++] << U, U += 8;
12567
12575
  }
12568
12576
  if ((65535 & z) != (z >>> 16 ^ 65535)) {
12569
- w.msg = "invalid stored block lengths", _.mode = 30;
12577
+ w.msg = "invalid stored block lengths", T.mode = 30;
12570
12578
  break;
12571
12579
  }
12572
- if (_.length = 65535 & z, U = z = 0, _.mode = 15, P === 6)
12580
+ if (T.length = 65535 & z, U = z = 0, T.mode = 15, P === 6)
12573
12581
  break t;
12574
12582
  case 15:
12575
- _.mode = 16;
12583
+ T.mode = 16;
12576
12584
  case 16:
12577
- if (tt = _.length) {
12585
+ if (tt = T.length) {
12578
12586
  if (H < tt && (tt = H), nt < tt && (tt = nt), tt === 0)
12579
12587
  break t;
12580
- n.arraySet(Q, v, V, tt, et), H -= tt, V += tt, nt -= tt, et += tt, _.length -= tt;
12588
+ n.arraySet(j, v, V, tt, et), H -= tt, V += tt, nt -= tt, et += tt, T.length -= tt;
12581
12589
  break;
12582
12590
  }
12583
- _.mode = 12;
12591
+ T.mode = 12;
12584
12592
  break;
12585
12593
  case 17:
12586
12594
  for (; U < 14; ) {
@@ -12588,36 +12596,36 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12588
12596
  break t;
12589
12597
  H--, z += v[V++] << U, U += 8;
12590
12598
  }
12591
- if (_.nlen = 257 + (31 & z), z >>>= 5, U -= 5, _.ndist = 1 + (31 & z), z >>>= 5, U -= 5, _.ncode = 4 + (15 & z), z >>>= 4, U -= 4, 286 < _.nlen || 30 < _.ndist) {
12592
- w.msg = "too many length or distance symbols", _.mode = 30;
12599
+ if (T.nlen = 257 + (31 & z), z >>>= 5, U -= 5, T.ndist = 1 + (31 & z), z >>>= 5, U -= 5, T.ncode = 4 + (15 & z), z >>>= 4, U -= 4, 286 < T.nlen || 30 < T.ndist) {
12600
+ w.msg = "too many length or distance symbols", T.mode = 30;
12593
12601
  break;
12594
12602
  }
12595
- _.have = 0, _.mode = 18;
12603
+ T.have = 0, T.mode = 18;
12596
12604
  case 18:
12597
- for (; _.have < _.ncode; ) {
12605
+ for (; T.have < T.ncode; ) {
12598
12606
  for (; U < 3; ) {
12599
12607
  if (H === 0)
12600
12608
  break t;
12601
12609
  H--, z += v[V++] << U, U += 8;
12602
12610
  }
12603
- _.lens[Z[_.have++]] = 7 & z, z >>>= 3, U -= 3;
12611
+ T.lens[Z[T.have++]] = 7 & z, z >>>= 3, U -= 3;
12604
12612
  }
12605
- for (; _.have < 19; )
12606
- _.lens[Z[_.have++]] = 0;
12607
- if (_.lencode = _.lendyn, _.lenbits = 7, Y = { bits: _.lenbits }, W = l(0, _.lens, 0, 19, _.lencode, 0, _.work, Y), _.lenbits = Y.bits, W) {
12608
- w.msg = "invalid code lengths set", _.mode = 30;
12613
+ for (; T.have < 19; )
12614
+ T.lens[Z[T.have++]] = 0;
12615
+ if (T.lencode = T.lendyn, T.lenbits = 7, Y = { bits: T.lenbits }, W = l(0, T.lens, 0, 19, T.lencode, 0, T.work, Y), T.lenbits = Y.bits, W) {
12616
+ w.msg = "invalid code lengths set", T.mode = 30;
12609
12617
  break;
12610
12618
  }
12611
- _.have = 0, _.mode = 19;
12619
+ T.have = 0, T.mode = 19;
12612
12620
  case 19:
12613
- for (; _.have < _.nlen + _.ndist; ) {
12614
- for (; ft = (O = _.lencode[z & (1 << _.lenbits) - 1]) >>> 16 & 255, ut = 65535 & O, !((at = O >>> 24) <= U); ) {
12621
+ for (; T.have < T.nlen + T.ndist; ) {
12622
+ for (; ft = (O = T.lencode[z & (1 << T.lenbits) - 1]) >>> 16 & 255, ut = 65535 & O, !((at = O >>> 24) <= U); ) {
12615
12623
  if (H === 0)
12616
12624
  break t;
12617
12625
  H--, z += v[V++] << U, U += 8;
12618
12626
  }
12619
12627
  if (ut < 16)
12620
- z >>>= at, U -= at, _.lens[_.have++] = ut;
12628
+ z >>>= at, U -= at, T.lens[T.have++] = ut;
12621
12629
  else {
12622
12630
  if (ut === 16) {
12623
12631
  for (b = at + 2; U < b; ) {
@@ -12625,11 +12633,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12625
12633
  break t;
12626
12634
  H--, z += v[V++] << U, U += 8;
12627
12635
  }
12628
- if (z >>>= at, U -= at, _.have === 0) {
12629
- w.msg = "invalid bit length repeat", _.mode = 30;
12636
+ if (z >>>= at, U -= at, T.have === 0) {
12637
+ w.msg = "invalid bit length repeat", T.mode = 30;
12630
12638
  break;
12631
12639
  }
12632
- A = _.lens[_.have - 1], tt = 3 + (3 & z), z >>>= 2, U -= 2;
12640
+ A = T.lens[T.have - 1], tt = 3 + (3 & z), z >>>= 2, U -= 2;
12633
12641
  } else if (ut === 17) {
12634
12642
  for (b = at + 3; U < b; ) {
12635
12643
  if (H === 0)
@@ -12645,154 +12653,154 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12645
12653
  }
12646
12654
  U -= at, A = 0, tt = 11 + (127 & (z >>>= at)), z >>>= 7, U -= 7;
12647
12655
  }
12648
- if (_.have + tt > _.nlen + _.ndist) {
12649
- w.msg = "invalid bit length repeat", _.mode = 30;
12656
+ if (T.have + tt > T.nlen + T.ndist) {
12657
+ w.msg = "invalid bit length repeat", T.mode = 30;
12650
12658
  break;
12651
12659
  }
12652
12660
  for (; tt--; )
12653
- _.lens[_.have++] = A;
12661
+ T.lens[T.have++] = A;
12654
12662
  }
12655
12663
  }
12656
- if (_.mode === 30)
12664
+ if (T.mode === 30)
12657
12665
  break;
12658
- if (_.lens[256] === 0) {
12659
- w.msg = "invalid code -- missing end-of-block", _.mode = 30;
12666
+ if (T.lens[256] === 0) {
12667
+ w.msg = "invalid code -- missing end-of-block", T.mode = 30;
12660
12668
  break;
12661
12669
  }
12662
- if (_.lenbits = 9, Y = { bits: _.lenbits }, W = l(h, _.lens, 0, _.nlen, _.lencode, 0, _.work, Y), _.lenbits = Y.bits, W) {
12663
- w.msg = "invalid literal/lengths set", _.mode = 30;
12670
+ if (T.lenbits = 9, Y = { bits: T.lenbits }, W = l(h, T.lens, 0, T.nlen, T.lencode, 0, T.work, Y), T.lenbits = Y.bits, W) {
12671
+ w.msg = "invalid literal/lengths set", T.mode = 30;
12664
12672
  break;
12665
12673
  }
12666
- if (_.distbits = 6, _.distcode = _.distdyn, Y = { bits: _.distbits }, W = l(d, _.lens, _.nlen, _.ndist, _.distcode, 0, _.work, Y), _.distbits = Y.bits, W) {
12667
- w.msg = "invalid distances set", _.mode = 30;
12674
+ if (T.distbits = 6, T.distcode = T.distdyn, Y = { bits: T.distbits }, W = l(d, T.lens, T.nlen, T.ndist, T.distcode, 0, T.work, Y), T.distbits = Y.bits, W) {
12675
+ w.msg = "invalid distances set", T.mode = 30;
12668
12676
  break;
12669
12677
  }
12670
- if (_.mode = 20, P === 6)
12678
+ if (T.mode = 20, P === 6)
12671
12679
  break t;
12672
12680
  case 20:
12673
- _.mode = 21;
12681
+ T.mode = 21;
12674
12682
  case 21:
12675
12683
  if (6 <= H && 258 <= nt) {
12676
- w.next_out = et, w.avail_out = nt, w.next_in = V, w.avail_in = H, _.hold = z, _.bits = U, a(w, st), et = w.next_out, Q = w.output, nt = w.avail_out, V = w.next_in, v = w.input, H = w.avail_in, z = _.hold, U = _.bits, _.mode === 12 && (_.back = -1);
12684
+ w.next_out = et, w.avail_out = nt, w.next_in = V, w.avail_in = H, T.hold = z, T.bits = U, a(w, st), et = w.next_out, j = w.output, nt = w.avail_out, V = w.next_in, v = w.input, H = w.avail_in, z = T.hold, U = T.bits, T.mode === 12 && (T.back = -1);
12677
12685
  break;
12678
12686
  }
12679
- for (_.back = 0; ft = (O = _.lencode[z & (1 << _.lenbits) - 1]) >>> 16 & 255, ut = 65535 & O, !((at = O >>> 24) <= U); ) {
12687
+ for (T.back = 0; ft = (O = T.lencode[z & (1 << T.lenbits) - 1]) >>> 16 & 255, ut = 65535 & O, !((at = O >>> 24) <= U); ) {
12680
12688
  if (H === 0)
12681
12689
  break t;
12682
12690
  H--, z += v[V++] << U, U += 8;
12683
12691
  }
12684
12692
  if (ft && !(240 & ft)) {
12685
- for (It = at, Gt = ft, Mt = ut; ft = (O = _.lencode[Mt + ((z & (1 << It + Gt) - 1) >> It)]) >>> 16 & 255, ut = 65535 & O, !(It + (at = O >>> 24) <= U); ) {
12693
+ for (It = at, Gt = ft, Mt = ut; ft = (O = T.lencode[Mt + ((z & (1 << It + Gt) - 1) >> It)]) >>> 16 & 255, ut = 65535 & O, !(It + (at = O >>> 24) <= U); ) {
12686
12694
  if (H === 0)
12687
12695
  break t;
12688
12696
  H--, z += v[V++] << U, U += 8;
12689
12697
  }
12690
- z >>>= It, U -= It, _.back += It;
12698
+ z >>>= It, U -= It, T.back += It;
12691
12699
  }
12692
- if (z >>>= at, U -= at, _.back += at, _.length = ut, ft === 0) {
12693
- _.mode = 26;
12700
+ if (z >>>= at, U -= at, T.back += at, T.length = ut, ft === 0) {
12701
+ T.mode = 26;
12694
12702
  break;
12695
12703
  }
12696
12704
  if (32 & ft) {
12697
- _.back = -1, _.mode = 12;
12705
+ T.back = -1, T.mode = 12;
12698
12706
  break;
12699
12707
  }
12700
12708
  if (64 & ft) {
12701
- w.msg = "invalid literal/length code", _.mode = 30;
12709
+ w.msg = "invalid literal/length code", T.mode = 30;
12702
12710
  break;
12703
12711
  }
12704
- _.extra = 15 & ft, _.mode = 22;
12712
+ T.extra = 15 & ft, T.mode = 22;
12705
12713
  case 22:
12706
- if (_.extra) {
12707
- for (b = _.extra; U < b; ) {
12714
+ if (T.extra) {
12715
+ for (b = T.extra; U < b; ) {
12708
12716
  if (H === 0)
12709
12717
  break t;
12710
12718
  H--, z += v[V++] << U, U += 8;
12711
12719
  }
12712
- _.length += z & (1 << _.extra) - 1, z >>>= _.extra, U -= _.extra, _.back += _.extra;
12720
+ T.length += z & (1 << T.extra) - 1, z >>>= T.extra, U -= T.extra, T.back += T.extra;
12713
12721
  }
12714
- _.was = _.length, _.mode = 23;
12722
+ T.was = T.length, T.mode = 23;
12715
12723
  case 23:
12716
- for (; ft = (O = _.distcode[z & (1 << _.distbits) - 1]) >>> 16 & 255, ut = 65535 & O, !((at = O >>> 24) <= U); ) {
12724
+ for (; ft = (O = T.distcode[z & (1 << T.distbits) - 1]) >>> 16 & 255, ut = 65535 & O, !((at = O >>> 24) <= U); ) {
12717
12725
  if (H === 0)
12718
12726
  break t;
12719
12727
  H--, z += v[V++] << U, U += 8;
12720
12728
  }
12721
12729
  if (!(240 & ft)) {
12722
- for (It = at, Gt = ft, Mt = ut; ft = (O = _.distcode[Mt + ((z & (1 << It + Gt) - 1) >> It)]) >>> 16 & 255, ut = 65535 & O, !(It + (at = O >>> 24) <= U); ) {
12730
+ for (It = at, Gt = ft, Mt = ut; ft = (O = T.distcode[Mt + ((z & (1 << It + Gt) - 1) >> It)]) >>> 16 & 255, ut = 65535 & O, !(It + (at = O >>> 24) <= U); ) {
12723
12731
  if (H === 0)
12724
12732
  break t;
12725
12733
  H--, z += v[V++] << U, U += 8;
12726
12734
  }
12727
- z >>>= It, U -= It, _.back += It;
12735
+ z >>>= It, U -= It, T.back += It;
12728
12736
  }
12729
- if (z >>>= at, U -= at, _.back += at, 64 & ft) {
12730
- w.msg = "invalid distance code", _.mode = 30;
12737
+ if (z >>>= at, U -= at, T.back += at, 64 & ft) {
12738
+ w.msg = "invalid distance code", T.mode = 30;
12731
12739
  break;
12732
12740
  }
12733
- _.offset = ut, _.extra = 15 & ft, _.mode = 24;
12741
+ T.offset = ut, T.extra = 15 & ft, T.mode = 24;
12734
12742
  case 24:
12735
- if (_.extra) {
12736
- for (b = _.extra; U < b; ) {
12743
+ if (T.extra) {
12744
+ for (b = T.extra; U < b; ) {
12737
12745
  if (H === 0)
12738
12746
  break t;
12739
12747
  H--, z += v[V++] << U, U += 8;
12740
12748
  }
12741
- _.offset += z & (1 << _.extra) - 1, z >>>= _.extra, U -= _.extra, _.back += _.extra;
12749
+ T.offset += z & (1 << T.extra) - 1, z >>>= T.extra, U -= T.extra, T.back += T.extra;
12742
12750
  }
12743
- if (_.offset > _.dmax) {
12744
- w.msg = "invalid distance too far back", _.mode = 30;
12751
+ if (T.offset > T.dmax) {
12752
+ w.msg = "invalid distance too far back", T.mode = 30;
12745
12753
  break;
12746
12754
  }
12747
- _.mode = 25;
12755
+ T.mode = 25;
12748
12756
  case 25:
12749
12757
  if (nt === 0)
12750
12758
  break t;
12751
- if (tt = st - nt, _.offset > tt) {
12752
- if ((tt = _.offset - tt) > _.whave && _.sane) {
12753
- w.msg = "invalid distance too far back", _.mode = 30;
12759
+ if (tt = st - nt, T.offset > tt) {
12760
+ if ((tt = T.offset - tt) > T.whave && T.sane) {
12761
+ w.msg = "invalid distance too far back", T.mode = 30;
12754
12762
  break;
12755
12763
  }
12756
- Rt = tt > _.wnext ? (tt -= _.wnext, _.wsize - tt) : _.wnext - tt, tt > _.length && (tt = _.length), Ft = _.window;
12764
+ Rt = tt > T.wnext ? (tt -= T.wnext, T.wsize - tt) : T.wnext - tt, tt > T.length && (tt = T.length), Ft = T.window;
12757
12765
  } else
12758
- Ft = Q, Rt = et - _.offset, tt = _.length;
12759
- for (nt < tt && (tt = nt), nt -= tt, _.length -= tt; Q[et++] = Ft[Rt++], --tt; )
12766
+ Ft = j, Rt = et - T.offset, tt = T.length;
12767
+ for (nt < tt && (tt = nt), nt -= tt, T.length -= tt; j[et++] = Ft[Rt++], --tt; )
12760
12768
  ;
12761
- _.length === 0 && (_.mode = 21);
12769
+ T.length === 0 && (T.mode = 21);
12762
12770
  break;
12763
12771
  case 26:
12764
12772
  if (nt === 0)
12765
12773
  break t;
12766
- Q[et++] = _.length, nt--, _.mode = 21;
12774
+ j[et++] = T.length, nt--, T.mode = 21;
12767
12775
  break;
12768
12776
  case 27:
12769
- if (_.wrap) {
12777
+ if (T.wrap) {
12770
12778
  for (; U < 32; ) {
12771
12779
  if (H === 0)
12772
12780
  break t;
12773
12781
  H--, z |= v[V++] << U, U += 8;
12774
12782
  }
12775
- if (st -= nt, w.total_out += st, _.total += st, st && (w.adler = _.check = _.flags ? o(_.check, Q, st, et - st) : r(_.check, Q, st, et - st)), st = nt, (_.flags ? z : m(z)) !== _.check) {
12776
- w.msg = "incorrect data check", _.mode = 30;
12783
+ if (st -= nt, w.total_out += st, T.total += st, st && (w.adler = T.check = T.flags ? o(T.check, j, st, et - st) : r(T.check, j, st, et - st)), st = nt, (T.flags ? z : m(z)) !== T.check) {
12784
+ w.msg = "incorrect data check", T.mode = 30;
12777
12785
  break;
12778
12786
  }
12779
12787
  U = z = 0;
12780
12788
  }
12781
- _.mode = 28;
12789
+ T.mode = 28;
12782
12790
  case 28:
12783
- if (_.wrap && _.flags) {
12791
+ if (T.wrap && T.flags) {
12784
12792
  for (; U < 32; ) {
12785
12793
  if (H === 0)
12786
12794
  break t;
12787
12795
  H--, z += v[V++] << U, U += 8;
12788
12796
  }
12789
- if (z !== (4294967295 & _.total)) {
12790
- w.msg = "incorrect length check", _.mode = 30;
12797
+ if (z !== (4294967295 & T.total)) {
12798
+ w.msg = "incorrect length check", T.mode = 30;
12791
12799
  break;
12792
12800
  }
12793
12801
  U = z = 0;
12794
12802
  }
12795
- _.mode = 29;
12803
+ T.mode = 29;
12796
12804
  case 29:
12797
12805
  W = 1;
12798
12806
  break t;
@@ -12805,34 +12813,34 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12805
12813
  default:
12806
12814
  return f;
12807
12815
  }
12808
- return w.next_out = et, w.avail_out = nt, w.next_in = V, w.avail_in = H, _.hold = z, _.bits = U, (_.wsize || st !== w.avail_out && _.mode < 30 && (_.mode < 27 || P !== 4)) && k(w, w.output, w.next_out, st - w.avail_out) ? (_.mode = 31, -4) : (ot -= w.avail_in, st -= w.avail_out, w.total_in += ot, w.total_out += st, _.total += st, _.wrap && st && (w.adler = _.check = _.flags ? o(_.check, Q, st, w.next_out - st) : r(_.check, Q, st, w.next_out - st)), w.data_type = _.bits + (_.last ? 64 : 0) + (_.mode === 12 ? 128 : 0) + (_.mode === 20 || _.mode === 15 ? 256 : 0), (ot == 0 && st === 0 || P === 4) && W === u && (W = -5), W);
12816
+ return w.next_out = et, w.avail_out = nt, w.next_in = V, w.avail_in = H, T.hold = z, T.bits = U, (T.wsize || st !== w.avail_out && T.mode < 30 && (T.mode < 27 || P !== 4)) && k(w, w.output, w.next_out, st - w.avail_out) ? (T.mode = 31, -4) : (ot -= w.avail_in, st -= w.avail_out, w.total_in += ot, w.total_out += st, T.total += st, T.wrap && st && (w.adler = T.check = T.flags ? o(T.check, j, st, w.next_out - st) : r(T.check, j, st, w.next_out - st)), w.data_type = T.bits + (T.last ? 64 : 0) + (T.mode === 12 ? 128 : 0) + (T.mode === 20 || T.mode === 15 ? 256 : 0), (ot == 0 && st === 0 || P === 4) && W === u && (W = -5), W);
12809
12817
  }, i.inflateEnd = function(w) {
12810
12818
  if (!w || !w.state)
12811
12819
  return f;
12812
12820
  var P = w.state;
12813
12821
  return P.window && (P.window = null), w.state = null, u;
12814
12822
  }, i.inflateGetHeader = function(w, P) {
12815
- var _;
12816
- return w && w.state && 2 & (_ = w.state).wrap ? ((_.head = P).done = !1, u) : f;
12823
+ var T;
12824
+ return w && w.state && 2 & (T = w.state).wrap ? ((T.head = P).done = !1, u) : f;
12817
12825
  }, i.inflateSetDictionary = function(w, P) {
12818
- var _, v = P.length;
12819
- return w && w.state ? (_ = w.state).wrap !== 0 && _.mode !== 11 ? f : _.mode === 11 && r(1, P, v, 0) !== _.check ? -3 : k(w, P, v, v) ? (_.mode = 31, -4) : (_.havedict = 1, u) : f;
12826
+ var T, v = P.length;
12827
+ return w && w.state ? (T = w.state).wrap !== 0 && T.mode !== 11 ? f : T.mode === 11 && r(1, P, v, 0) !== T.check ? -3 : k(w, P, v, v) ? (T.mode = 31, -4) : (T.havedict = 1, u) : f;
12820
12828
  }, i.inflateInfo = "pako inflate (from Nodeca project)";
12821
12829
  }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(t, e, i) {
12822
12830
  var n = t("../utils/common"), r = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], o = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], a = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], l = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
12823
12831
  e.exports = function(h, d, u, f, E, p, I, m) {
12824
- var C, R, g, y, F, S, L, N, x, k = m.bits, w = 0, P = 0, _ = 0, v = 0, Q = 0, V = 0, et = 0, H = 0, nt = 0, z = 0, U = null, ot = 0, st = new n.Buf16(16), tt = new n.Buf16(16), Rt = null, Ft = 0;
12832
+ var C, R, g, y, F, S, L, N, x, k = m.bits, w = 0, P = 0, T = 0, v = 0, j = 0, V = 0, et = 0, H = 0, nt = 0, z = 0, U = null, ot = 0, st = new n.Buf16(16), tt = new n.Buf16(16), Rt = null, Ft = 0;
12825
12833
  for (w = 0; w <= 15; w++)
12826
12834
  st[w] = 0;
12827
12835
  for (P = 0; P < f; P++)
12828
12836
  st[d[u + P]]++;
12829
- for (Q = k, v = 15; 1 <= v && st[v] === 0; v--)
12837
+ for (j = k, v = 15; 1 <= v && st[v] === 0; v--)
12830
12838
  ;
12831
- if (v < Q && (Q = v), v === 0)
12839
+ if (v < j && (j = v), v === 0)
12832
12840
  return E[p++] = 20971520, E[p++] = 20971520, m.bits = 1, 0;
12833
- for (_ = 1; _ < v && st[_] === 0; _++)
12841
+ for (T = 1; T < v && st[T] === 0; T++)
12834
12842
  ;
12835
- for (Q < _ && (Q = _), w = H = 1; w <= 15; w++)
12843
+ for (j < T && (j = T), w = H = 1; w <= 15; w++)
12836
12844
  if (H <<= 1, (H -= st[w]) < 0)
12837
12845
  return -1;
12838
12846
  if (0 < H && (h === 0 || v !== 1))
@@ -12841,10 +12849,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12841
12849
  tt[w + 1] = tt[w] + st[w];
12842
12850
  for (P = 0; P < f; P++)
12843
12851
  d[u + P] !== 0 && (I[tt[d[u + P]]++] = P);
12844
- if (S = h === 0 ? (U = Rt = I, 19) : h === 1 ? (U = r, ot -= 257, Rt = o, Ft -= 257, 256) : (U = a, Rt = l, -1), w = _, F = p, et = P = z = 0, g = -1, y = (nt = 1 << (V = Q)) - 1, h === 1 && 852 < nt || h === 2 && 592 < nt)
12852
+ if (S = h === 0 ? (U = Rt = I, 19) : h === 1 ? (U = r, ot -= 257, Rt = o, Ft -= 257, 256) : (U = a, Rt = l, -1), w = T, F = p, et = P = z = 0, g = -1, y = (nt = 1 << (V = j)) - 1, h === 1 && 852 < nt || h === 2 && 592 < nt)
12845
12853
  return 1;
12846
12854
  for (; ; ) {
12847
- for (L = w - et, x = I[P] < S ? (N = 0, I[P]) : I[P] > S ? (N = Rt[Ft + I[P]], U[ot + I[P]]) : (N = 96, 0), C = 1 << w - et, _ = R = 1 << V; E[F + (z >> et) + (R -= C)] = L << 24 | N << 16 | x | 0, R !== 0; )
12855
+ for (L = w - et, x = I[P] < S ? (N = 0, I[P]) : I[P] > S ? (N = Rt[Ft + I[P]], U[ot + I[P]]) : (N = 96, 0), C = 1 << w - et, T = R = 1 << V; E[F + (z >> et) + (R -= C)] = L << 24 | N << 16 | x | 0, R !== 0; )
12848
12856
  ;
12849
12857
  for (C = 1 << w - 1; z & C; )
12850
12858
  C >>= 1;
@@ -12853,15 +12861,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12853
12861
  break;
12854
12862
  w = d[u + I[P]];
12855
12863
  }
12856
- if (Q < w && (z & y) !== g) {
12857
- for (et === 0 && (et = Q), F += _, H = 1 << (V = w - et); V + et < v && !((H -= st[V + et]) <= 0); )
12864
+ if (j < w && (z & y) !== g) {
12865
+ for (et === 0 && (et = j), F += T, H = 1 << (V = w - et); V + et < v && !((H -= st[V + et]) <= 0); )
12858
12866
  V++, H <<= 1;
12859
12867
  if (nt += 1 << V, h === 1 && 852 < nt || h === 2 && 592 < nt)
12860
12868
  return 1;
12861
- E[g = z & y] = Q << 24 | V << 16 | F - p | 0;
12869
+ E[g = z & y] = j << 24 | V << 16 | F - p | 0;
12862
12870
  }
12863
12871
  }
12864
- return z !== 0 && (E[F + z] = w - et << 24 | 64 << 16 | 0), m.bits = Q, 0;
12872
+ return z !== 0 && (E[F + z] = w - et << 24 | 64 << 16 | 0), m.bits = j, 0;
12865
12873
  };
12866
12874
  }, { "../utils/common": 41 }], 51: [function(t, e, i) {
12867
12875
  e.exports = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" };
@@ -12877,11 +12885,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12877
12885
  a(w);
12878
12886
  var P = new Array(512);
12879
12887
  a(P);
12880
- var _ = new Array(256);
12881
- a(_);
12888
+ var T = new Array(256);
12889
+ a(T);
12882
12890
  var v = new Array(h);
12883
12891
  a(v);
12884
- var Q, V, et, H = new Array(f);
12892
+ var j, V, et, H = new Array(f);
12885
12893
  function nt(O, D, Z, $, B) {
12886
12894
  this.static_tree = O, this.extra_bits = D, this.extra_base = Z, this.elems = $, this.max_length = B, this.has_stree = O && O.length;
12887
12895
  }
@@ -12939,7 +12947,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12939
12947
  function Gt(O, D, Z) {
12940
12948
  var $, B, K, it, J = 0;
12941
12949
  if (O.last_lit !== 0)
12942
- for (; $ = O.pending_buf[O.d_buf + 2 * J] << 8 | O.pending_buf[O.d_buf + 2 * J + 1], B = O.pending_buf[O.l_buf + J], J++, $ === 0 ? tt(O, B, D) : (tt(O, (K = _[B]) + d + 1, D), (it = S[K]) !== 0 && st(O, B -= v[K], it), tt(O, K = U(--$), Z), (it = L[K]) !== 0 && st(O, $ -= H[K], it)), J < O.last_lit; )
12950
+ for (; $ = O.pending_buf[O.d_buf + 2 * J] << 8 | O.pending_buf[O.d_buf + 2 * J + 1], B = O.pending_buf[O.l_buf + J], J++, $ === 0 ? tt(O, B, D) : (tt(O, (K = T[B]) + d + 1, D), (it = S[K]) !== 0 && st(O, B -= v[K], it), tt(O, K = U(--$), Z), (it = L[K]) !== 0 && st(O, $ -= H[K], it)), J < O.last_lit; )
12943
12951
  ;
12944
12952
  tt(O, R, D);
12945
12953
  }
@@ -12954,11 +12962,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12954
12962
  for (B = ct; Z = O.heap[1], O.heap[1] = O.heap[O.heap_len--], It(O, K, 1), $ = O.heap[1], O.heap[--O.heap_max] = Z, O.heap[--O.heap_max] = $, K[2 * B] = K[2 * Z] + K[2 * $], O.depth[B] = (O.depth[Z] >= O.depth[$] ? O.depth[Z] : O.depth[$]) + 1, K[2 * Z + 1] = K[2 * $ + 1] = B, O.heap[1] = B++, It(O, K, 1), 2 <= O.heap_len; )
12955
12963
  ;
12956
12964
  O.heap[--O.heap_max] = O.heap[1], function(pt, Ht) {
12957
- var ss, ie, is, Ot, Ps, Si, ue = Ht.dyn_tree, Nn = Ht.max_code, Jr = Ht.stat_desc.static_tree, to = Ht.stat_desc.has_stree, eo = Ht.stat_desc.extra_bits, bn = Ht.stat_desc.extra_base, ns = Ht.stat_desc.max_length, Ls = 0;
12965
+ var ss, ie, is, Ot, Ps, Oi, ue = Ht.dyn_tree, Nn = Ht.max_code, Jr = Ht.stat_desc.static_tree, to = Ht.stat_desc.has_stree, eo = Ht.stat_desc.extra_bits, bn = Ht.stat_desc.extra_base, ns = Ht.stat_desc.max_length, Ls = 0;
12958
12966
  for (Ot = 0; Ot <= I; Ot++)
12959
12967
  pt.bl_count[Ot] = 0;
12960
12968
  for (ue[2 * pt.heap[pt.heap_max] + 1] = 0, ss = pt.heap_max + 1; ss < p; ss++)
12961
- ns < (Ot = ue[2 * ue[2 * (ie = pt.heap[ss]) + 1] + 1] + 1) && (Ot = ns, Ls++), ue[2 * ie + 1] = Ot, Nn < ie || (pt.bl_count[Ot]++, Ps = 0, bn <= ie && (Ps = eo[ie - bn]), Si = ue[2 * ie], pt.opt_len += Si * (Ot + Ps), to && (pt.static_len += Si * (Jr[2 * ie + 1] + Ps)));
12969
+ ns < (Ot = ue[2 * ue[2 * (ie = pt.heap[ss]) + 1] + 1] + 1) && (Ot = ns, Ls++), ue[2 * ie + 1] = Ot, Nn < ie || (pt.bl_count[Ot]++, Ps = 0, bn <= ie && (Ps = eo[ie - bn]), Oi = ue[2 * ie], pt.opt_len += Oi * (Ot + Ps), to && (pt.static_len += Oi * (Jr[2 * ie + 1] + Ps)));
12962
12970
  if (Ls !== 0) {
12963
12971
  do {
12964
12972
  for (Ot = ns - 1; pt.bl_count[Ot] === 0; )
@@ -13000,8 +13008,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
13000
13008
  var D, Z, $, B, K, it = new Array(I + 1);
13001
13009
  for (B = $ = 0; B < h - 1; B++)
13002
13010
  for (v[B] = $, D = 0; D < 1 << S[B]; D++)
13003
- _[$++] = B;
13004
- for (_[$ - 1] = B, B = K = 0; B < 16; B++)
13011
+ T[$++] = B;
13012
+ for (T[$ - 1] = B, B = K = 0; B < 16; B++)
13005
13013
  for (H[B] = K, D = 0; D < 1 << L[B]; D++)
13006
13014
  P[K++] = B;
13007
13015
  for (K >>= 7; B < f; B++)
@@ -13019,8 +13027,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
13019
13027
  k[2 * D + 1] = 8, D++, it[8]++;
13020
13028
  for (Ft(k, u + 1, it), D = 0; D < f; D++)
13021
13029
  w[2 * D + 1] = 5, w[2 * D] = Rt(D, 5);
13022
- Q = new nt(k, S, d + 1, u, I), V = new nt(w, L, 0, f, I), et = new nt(new Array(0), N, 0, E, C);
13023
- }(), Y = !0), O.l_desc = new z(O.dyn_ltree, Q), O.d_desc = new z(O.dyn_dtree, V), O.bl_desc = new z(O.bl_tree, et), O.bi_buf = 0, O.bi_valid = 0, at(O);
13030
+ j = new nt(k, S, d + 1, u, I), V = new nt(w, L, 0, f, I), et = new nt(new Array(0), N, 0, E, C);
13031
+ }(), Y = !0), O.l_desc = new z(O.dyn_ltree, j), O.d_desc = new z(O.dyn_dtree, V), O.bl_desc = new z(O.bl_tree, et), O.bi_buf = 0, O.bi_valid = 0, at(O);
13024
13032
  }, i._tr_stored_block = b, i._tr_flush_block = function(O, D, Z, $) {
13025
13033
  var B, K, it = 0;
13026
13034
  0 < O.level ? (O.strm.data_type === 2 && (O.strm.data_type = function(J) {
@@ -13046,7 +13054,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
13046
13054
  W(J, J.dyn_ltree, ct - 1), W(J, J.dyn_dtree, Ct - 1);
13047
13055
  }(O, O.l_desc.max_code + 1, O.d_desc.max_code + 1, it + 1), Gt(O, O.dyn_ltree, O.dyn_dtree)), at(O), $ && ft(O);
13048
13056
  }, i._tr_tally = function(O, D, Z) {
13049
- return O.pending_buf[O.d_buf + 2 * O.last_lit] = D >>> 8 & 255, O.pending_buf[O.d_buf + 2 * O.last_lit + 1] = 255 & D, O.pending_buf[O.l_buf + O.last_lit] = 255 & Z, O.last_lit++, D === 0 ? O.dyn_ltree[2 * Z]++ : (O.matches++, D--, O.dyn_ltree[2 * (_[Z] + d + 1)]++, O.dyn_dtree[2 * U(D)]++), O.last_lit === O.lit_bufsize - 1;
13057
+ return O.pending_buf[O.d_buf + 2 * O.last_lit] = D >>> 8 & 255, O.pending_buf[O.d_buf + 2 * O.last_lit + 1] = 255 & D, O.pending_buf[O.l_buf + O.last_lit] = 255 & Z, O.last_lit++, D === 0 ? O.dyn_ltree[2 * Z]++ : (O.matches++, D--, O.dyn_ltree[2 * (T[Z] + d + 1)]++, O.dyn_dtree[2 * U(D)]++), O.last_lit === O.lit_bufsize - 1;
13050
13058
  }, i._tr_align = function(O) {
13051
13059
  st(O, 2, 3), tt(O, R, k), function(D) {
13052
13060
  D.bi_valid === 16 ? (ot(D, D.bi_buf), D.bi_buf = 0, D.bi_valid = 0) : 8 <= D.bi_valid && (D.pending_buf[D.pending++] = 255 & D.bi_buf, D.bi_buf >>= 8, D.bi_valid -= 8);
@@ -13139,7 +13147,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
13139
13147
  })(Wr);
13140
13148
  var hc = Wr.exports;
13141
13149
  const Cr = /* @__PURE__ */ lc(hc);
13142
- var Fn = {}, Fi = {};
13150
+ var Fn = {}, Si = {};
13143
13151
  (function(c) {
13144
13152
  const s = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", t = s + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040", e = "[" + s + "][" + t + "]*", i = new RegExp("^" + e + "$"), n = function(o, a) {
13145
13153
  const l = [];
@@ -13170,8 +13178,8 @@ var Fn = {}, Fi = {};
13170
13178
  }, c.getValue = function(o) {
13171
13179
  return c.isExist(o) ? o : "";
13172
13180
  }, c.isName = r, c.getAllMatches = n, c.nameRegexp = e;
13173
- })(Fi);
13174
- const Sn = Fi, dc = {
13181
+ })(Si);
13182
+ const Sn = Si, dc = {
13175
13183
  allowBooleanAttributes: !1,
13176
13184
  //A tag can have attributes without any value
13177
13185
  unpairedTags: []
@@ -13466,7 +13474,7 @@ class _c {
13466
13474
  }
13467
13475
  }
13468
13476
  var Ac = _c;
13469
- const Rc = Fi;
13477
+ const Rc = Si;
13470
13478
  function yc(c, s) {
13471
13479
  const t = {};
13472
13480
  if (c[s + 3] === "O" && c[s + 4] === "C" && c[s + 5] === "T" && c[s + 6] === "Y" && c[s + 7] === "P" && c[s + 8] === "E") {
@@ -13574,7 +13582,7 @@ function Uc(c) {
13574
13582
  return c && c.indexOf(".") !== -1 && (c = c.replace(/0+$/, ""), c === "." ? c = "0" : c[0] === "." ? c = "0" + c : c[c.length - 1] === "." && (c = c.substr(0, c.length - 1))), c;
13575
13583
  }
13576
13584
  var Bc = Dc;
13577
- const Zr = Fi, Ts = Ac, zc = Lc, kc = Bc;
13585
+ const Zr = Si, Ts = Ac, zc = Lc, kc = Bc;
13578
13586
  let Vc = class {
13579
13587
  constructor(s) {
13580
13588
  this.options = s, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = {
@@ -14176,15 +14184,15 @@ class En {
14176
14184
  * @param text - The initial comment text.
14177
14185
  */
14178
14186
  constructor(s, t) {
14179
- T(this, "date", /* @__PURE__ */ new Date());
14180
- T(this, "author");
14181
- T(this, "guid", Ee.create());
14182
- T(this, "viewpoint");
14183
- T(this, "modifiedAuthor");
14184
- T(this, "modifiedDate");
14185
- T(this, "topic");
14186
- T(this, "_components");
14187
- T(this, "_comment", "");
14187
+ _(this, "date", /* @__PURE__ */ new Date());
14188
+ _(this, "author");
14189
+ _(this, "guid", me.create());
14190
+ _(this, "viewpoint");
14191
+ _(this, "modifiedAuthor");
14192
+ _(this, "modifiedDate");
14193
+ _(this, "topic");
14194
+ _(this, "_components");
14195
+ _(this, "_comment", "");
14188
14196
  this._components = s, this._comment = t;
14189
14197
  const e = this._components.get(Lt);
14190
14198
  this.author = e.config.author;
@@ -14247,30 +14255,30 @@ const ce = class ce {
14247
14255
  * @remarks
14248
14256
  * The `guid` is automatically generated upon topic creation and by no means it should change.
14249
14257
  */
14250
- T(this, "guid", Ee.create());
14251
- T(this, "title", ce.default.title);
14252
- T(this, "creationDate", /* @__PURE__ */ new Date());
14253
- T(this, "creationAuthor", "");
14258
+ _(this, "guid", me.create());
14259
+ _(this, "title", ce.default.title);
14260
+ _(this, "creationDate", /* @__PURE__ */ new Date());
14261
+ _(this, "creationAuthor", "");
14254
14262
  // Store viewpoint guids instead of the actual Viewpoint to prevent a possible memory leak
14255
- T(this, "viewpoints", new qe());
14263
+ _(this, "viewpoints", new qe());
14256
14264
  // Store topic guids instead of the actual Topic to prevent a possible memory leak
14257
- T(this, "relatedTopics", new qe());
14265
+ _(this, "relatedTopics", new qe());
14258
14266
  // There is no problem to store the comment it-self as it is not referenced anywhere else
14259
- T(this, "comments", new Fe());
14260
- T(this, "customData", {});
14261
- T(this, "description");
14262
- T(this, "serverAssignedId");
14263
- T(this, "dueDate");
14264
- T(this, "modifiedAuthor");
14265
- T(this, "modifiedDate");
14266
- T(this, "index");
14267
- T(this, "_type", ce.default.type);
14268
- T(this, "_status", ce.default.status);
14269
- T(this, "_priority", ce.default.priority);
14270
- T(this, "_stage", ce.default.priority);
14271
- T(this, "_assignedTo", ce.default.assignedTo);
14272
- T(this, "_labels", ce.default.labels);
14273
- T(this, "_components");
14267
+ _(this, "comments", new Ee());
14268
+ _(this, "customData", {});
14269
+ _(this, "description");
14270
+ _(this, "serverAssignedId");
14271
+ _(this, "dueDate");
14272
+ _(this, "modifiedAuthor");
14273
+ _(this, "modifiedDate");
14274
+ _(this, "index");
14275
+ _(this, "_type", ce.default.type);
14276
+ _(this, "_status", ce.default.status);
14277
+ _(this, "_priority", ce.default.priority);
14278
+ _(this, "_stage", ce.default.priority);
14279
+ _(this, "_assignedTo", ce.default.assignedTo);
14280
+ _(this, "_labels", ce.default.labels);
14281
+ _(this, "_components");
14274
14282
  this._components = s;
14275
14283
  const t = s.get(Lt);
14276
14284
  this.creationAuthor = t.config.author, this.relatedTopics.guard = (e) => e !== this.guid;
@@ -14506,13 +14514,13 @@ ${t}
14506
14514
  /**
14507
14515
  * Default values for a BCF Topic, excluding `guid`, `creationDate`, and `creationAuthor`.
14508
14516
  */
14509
- T(ce, "default", {
14517
+ _(ce, "default", {
14510
14518
  title: "BCF Topic",
14511
14519
  type: "Issue",
14512
14520
  status: "Active",
14513
14521
  labels: /* @__PURE__ */ new Set()
14514
14522
  });
14515
- let hi = ce;
14523
+ let di = ce;
14516
14524
  const Fl = (c, s) => {
14517
14525
  if (s.trim() === "")
14518
14526
  return;
@@ -14543,8 +14551,8 @@ const Fl = (c, s) => {
14543
14551
  }, Le = class Le extends St {
14544
14552
  constructor() {
14545
14553
  super(...arguments);
14546
- T(this, "enabled", !1);
14547
- T(this, "config", {
14554
+ _(this, "enabled", !1);
14555
+ _(this, "config", {
14548
14556
  author: "jhon.doe@example.com",
14549
14557
  version: "2.1",
14550
14558
  types: /* @__PURE__ */ new Set([
@@ -14568,11 +14576,11 @@ const Fl = (c, s) => {
14568
14576
  fallbackVersionOnImport: "2.1",
14569
14577
  ignoreIncompleteTopicsOnImport: !1
14570
14578
  });
14571
- T(this, "list", new Fe());
14572
- T(this, "onSetup", new j());
14573
- T(this, "isSetup", !1);
14574
- T(this, "onBCFImported", new j());
14575
- T(this, "onDisposed", new j());
14579
+ _(this, "list", new Ee());
14580
+ _(this, "onSetup", new Q());
14581
+ _(this, "isSetup", !1);
14582
+ _(this, "onBCFImported", new Q());
14583
+ _(this, "onDisposed", new Q());
14576
14584
  }
14577
14585
  setup(t) {
14578
14586
  this.isSetup || (this.config = { ...this.config, ...t }, this.isSetup = !0, this.enabled = !0, this.onSetup.trigger());
@@ -14585,7 +14593,7 @@ const Fl = (c, s) => {
14585
14593
  * @returns The newly created BCFTopic instance.
14586
14594
  */
14587
14595
  create(t) {
14588
- const e = new hi(this.components);
14596
+ const e = new di(this.components);
14589
14597
  return t && (e.guid = t.guid ?? e.guid, e.set(t)), this.list.set(e.guid, e), e;
14590
14598
  }
14591
14599
  /**
@@ -14834,29 +14842,29 @@ ${o}
14834
14842
  PerspectiveCamera: k
14835
14843
  } = y;
14836
14844
  if (S && (F.guid = S), N) {
14837
- const { Selection: P, Visibility: _ } = N;
14845
+ const { Selection: P, Visibility: T } = N;
14838
14846
  if (P && P.Component) {
14839
- const Q = Array.isArray(P.Component) ? P.Component : [P.Component];
14840
- F.selectionComponents = Q.map((V) => V.IfcGuid).filter((V) => V);
14847
+ const j = Array.isArray(P.Component) ? P.Component : [P.Component];
14848
+ F.selectionComponents = j.map((V) => V.IfcGuid).filter((V) => V);
14841
14849
  }
14842
- if (_ && "DefaultVisibility" in _ && (F.defaultVisibility = _.DefaultVisibility), _ && _.Exceptions && "Component" in _.Exceptions) {
14843
- const { Component: Q } = _.Exceptions, V = Array.isArray(Q) ? Q : [Q];
14850
+ if (T && "DefaultVisibility" in T && (F.defaultVisibility = T.DefaultVisibility), T && T.Exceptions && "Component" in T.Exceptions) {
14851
+ const { Component: j } = T.Exceptions, V = Array.isArray(j) ? j : [j];
14844
14852
  F.exceptionComponents = V.map((et) => et.IfcGuid).filter((et) => et);
14845
14853
  }
14846
14854
  let v;
14847
14855
  l === "2.1" && (v = N.ViewSetupHints), l === "3" && (v = (C = N.Visibility) == null ? void 0 : C.ViewSetupHints), v && ("OpeningsVisible" in v && (F.openingsVisible = v.OpeningsVisible), "SpacesVisible" in v && (F.spacesVisible = v.SpacesVisible), "SpaceBoundariesVisible" in v && (F.spaceBoundariesVisible = v.SpaceBoundariesVisible));
14848
14856
  }
14849
14857
  if (x || k) {
14850
- const P = y.PerspectiveCamera ?? y.OrthogonalCamera, { CameraViewPoint: _, CameraDirection: v } = P, Q = new M.Vector3(
14851
- Number(_.X),
14852
- Number(_.Z),
14853
- Number(-_.Y)
14858
+ const P = y.PerspectiveCamera ?? y.OrthogonalCamera, { CameraViewPoint: T, CameraDirection: v } = P, j = new M.Vector3(
14859
+ Number(T.X),
14860
+ Number(T.Z),
14861
+ Number(-T.Y)
14854
14862
  ), V = new M.Vector3(
14855
14863
  Number(v.X),
14856
14864
  Number(v.Z),
14857
14865
  Number(-v.Y)
14858
14866
  ), et = {
14859
- position: { x: Q.x, y: Q.y, z: Q.z },
14867
+ position: { x: j.x, y: j.y, z: j.z },
14860
14868
  direction: { x: V.x, y: V.y, z: V.z },
14861
14869
  aspectRatio: "AspectRatio" in P ? P.AspectRatio : 1
14862
14870
  // Temporal simplification
@@ -14876,23 +14884,23 @@ ${o}
14876
14884
  if (N) {
14877
14885
  const { Coloring: P } = N;
14878
14886
  if (P && P.Color) {
14879
- const _ = Array.isArray(P.Color) ? P.Color : [P.Color];
14880
- for (const v of _) {
14881
- const { Color: Q, Component: V } = v, H = (Array.isArray(V) ? V : [V]).map((nt) => nt.IfcGuid);
14882
- w.componentColors.set(Q, H);
14887
+ const T = Array.isArray(P.Color) ? P.Color : [P.Color];
14888
+ for (const v of T) {
14889
+ const { Color: j, Component: V } = v, H = (Array.isArray(V) ? V : [V]).map((nt) => nt.IfcGuid);
14890
+ w.componentColors.set(j, H);
14883
14891
  }
14884
14892
  }
14885
14893
  }
14886
14894
  if (u.push(w), L) {
14887
- const P = this.components.get(ln), _ = Array.isArray(L.ClippingPlane) ? L.ClippingPlane : [L.ClippingPlane];
14888
- for (const v of _) {
14889
- const { Location: Q, Direction: V } = v;
14890
- if (!(Q && V))
14895
+ const P = this.components.get(ln), T = Array.isArray(L.ClippingPlane) ? L.ClippingPlane : [L.ClippingPlane];
14896
+ for (const v of T) {
14897
+ const { Location: j, Direction: V } = v;
14898
+ if (!(j && V))
14891
14899
  continue;
14892
14900
  const et = new M.Vector3(
14893
- Q.X,
14894
- Q.Z,
14895
- -Q.Y
14901
+ j.X,
14902
+ j.Z,
14903
+ -j.Y
14896
14904
  ), H = new M.Vector3(
14897
14905
  V.X,
14898
14906
  -V.Z,
@@ -14918,15 +14926,15 @@ ${o}
14918
14926
  } = F;
14919
14927
  if (n && !(S && L && N && x && k && w))
14920
14928
  continue;
14921
- const P = new hi(this.components);
14929
+ const P = new di(this.components);
14922
14930
  P.guid = S ?? P.guid;
14923
- const _ = this.getMarkupRelatedTopics(y, l);
14924
- p[P.guid] = new Set(_), P.type = L ?? P.type, P.status = N ?? P.status, P.title = x ?? P.title, P.creationDate = k ? new Date(k) : P.creationDate, P.creationAuthor = w ?? P.creationAuthor, P.serverAssignedId = F.ServerAssignedId, P.priority = F.Priority, P.index = F.Index, P.modifiedDate = F.ModifiedDate ? new Date(F.ModifiedDate) : void 0, P.modifiedAuthor = F.ModifiedAuthor, P.dueDate = F.DueDate ? new Date(F.DueDate) : void 0, P.assignedTo = F.AssignedTo, P.description = F.Description, P.stage = F.Stage;
14931
+ const T = this.getMarkupRelatedTopics(y, l);
14932
+ p[P.guid] = new Set(T), P.type = L ?? P.type, P.status = N ?? P.status, P.title = x ?? P.title, P.creationDate = k ? new Date(k) : P.creationDate, P.creationAuthor = w ?? P.creationAuthor, P.serverAssignedId = F.ServerAssignedId, P.priority = F.Priority, P.index = F.Index, P.modifiedDate = F.ModifiedDate ? new Date(F.ModifiedDate) : void 0, P.modifiedAuthor = F.ModifiedAuthor, P.dueDate = F.DueDate ? new Date(F.DueDate) : void 0, P.assignedTo = F.AssignedTo, P.description = F.Description, P.stage = F.Stage;
14925
14933
  const v = this.getMarkupLabels(y, l);
14926
14934
  for (const et of v)
14927
14935
  P.labels.add(et);
14928
- const Q = this.getMarkupComments(y, l);
14929
- for (const et of Q)
14936
+ const j = this.getMarkupComments(y, l);
14937
+ for (const et of j)
14930
14938
  P.comments.set(et.guid, et);
14931
14939
  const V = this.getMarkupViewpoints(y, l);
14932
14940
  for (const et of V) {
@@ -14948,7 +14956,7 @@ ${o}
14948
14956
  return this.onBCFImported.trigger(I), { viewpoints: u, topics: I };
14949
14957
  }
14950
14958
  };
14951
- T(Le, "uuid", "de977976-e4f6-4e4f-a01a-204727839802"), T(Le, "xmlParser", new wl.XMLParser({
14959
+ _(Le, "uuid", "de977976-e4f6-4e4f-a01a-204727839802"), _(Le, "xmlParser", new wl.XMLParser({
14952
14960
  allowBooleanAttributes: !0,
14953
14961
  attributeNamePrefix: "",
14954
14962
  ignoreAttributes: !1,
@@ -14966,12 +14974,12 @@ const Jt = class Jt extends St {
14966
14974
  constructor(t) {
14967
14975
  super(t);
14968
14976
  /** {@link Component.enabled} */
14969
- T(this, "enabled", !0);
14977
+ _(this, "enabled", !0);
14970
14978
  /** {@link Disposable.onDisposed} */
14971
- T(this, "onDisposed", new j());
14972
- T(this, "_absoluteMin");
14973
- T(this, "_absoluteMax");
14974
- T(this, "_meshes", []);
14979
+ _(this, "onDisposed", new Q());
14980
+ _(this, "_absoluteMin");
14981
+ _(this, "_absoluteMax");
14982
+ _(this, "_meshes", []);
14975
14983
  this.components.add(Jt.uuid, this), this._absoluteMin = Jt.newBound(!0), this._absoluteMax = Jt.newBound(!1);
14976
14984
  }
14977
14985
  /**
@@ -15044,7 +15052,7 @@ const Jt = class Jt extends St {
15044
15052
  }
15045
15053
  /** {@link Disposable.dispose} */
15046
15054
  dispose() {
15047
- const t = this.components.get(we);
15055
+ const t = this.components.get(Fe);
15048
15056
  for (const e of this._meshes)
15049
15057
  t.destroy(e);
15050
15058
  this._meshes = [], this.onDisposed.trigger(Jt.uuid), this.onDisposed.reset();
@@ -15174,7 +15182,7 @@ const Jt = class Jt extends St {
15174
15182
  const i = Jt.getFragmentBounds(t);
15175
15183
  t.updateMatrixWorld();
15176
15184
  const n = t.matrixWorld, r = new M.Matrix4(), o = t instanceof M.InstancedMesh, a = /* @__PURE__ */ new Set();
15177
- if (t instanceof Re.FragmentMesh) {
15185
+ if (t instanceof ye.FragmentMesh) {
15178
15186
  e || (e = t.fragment.ids);
15179
15187
  for (const l of e) {
15180
15188
  const h = t.fragment.getInstancesIDs(l);
@@ -15237,21 +15245,21 @@ const Jt = class Jt extends St {
15237
15245
  return new M.Box3(r, o);
15238
15246
  }
15239
15247
  };
15240
- T(Jt, "uuid", "d1444724-dba6-4cdd-a0c7-68ee1450d166");
15248
+ _(Jt, "uuid", "d1444724-dba6-4cdd-a0c7-68ee1450d166");
15241
15249
  let mn = Jt;
15242
- const Ii = class Ii extends St {
15250
+ const gi = class gi extends St {
15243
15251
  constructor(t) {
15244
15252
  super(t);
15245
15253
  /** {@link Component.enabled} */
15246
- T(this, "enabled", !0);
15254
+ _(this, "enabled", !0);
15247
15255
  /**
15248
15256
  * A map representing the classification systems.
15249
15257
  * The key is the system name, and the value is an object representing the classes within the system.
15250
15258
  */
15251
- T(this, "list", {});
15259
+ _(this, "list", {});
15252
15260
  /** {@link Disposable.onDisposed} */
15253
- T(this, "onDisposed", new j());
15254
- T(this, "onFragmentsDisposed", (t) => {
15261
+ _(this, "onDisposed", new Q());
15262
+ _(this, "onFragmentsDisposed", (t) => {
15255
15263
  const { groupID: e, fragmentIDs: i } = t;
15256
15264
  for (const n in this.list) {
15257
15265
  const r = this.list[n], o = Object.keys(r);
@@ -15266,7 +15274,7 @@ const Ii = class Ii extends St {
15266
15274
  }
15267
15275
  }
15268
15276
  });
15269
- t.add(Ii.uuid, this), t.get(_t).onFragmentsDisposed.add(this.onFragmentsDisposed);
15277
+ t.add(gi.uuid, this), t.get(_t).onFragmentsDisposed.add(this.onFragmentsDisposed);
15270
15278
  }
15271
15279
  /** {@link Disposable.dispose} */
15272
15280
  dispose() {
@@ -15594,33 +15602,33 @@ const Ii = class Ii extends St {
15594
15602
  * A unique identifier for the component.
15595
15603
  * This UUID is used to register the component within the Components system.
15596
15604
  */
15597
- T(Ii, "uuid", "e25a7f3c-46c4-4a14-9d3d-5115f24ebeb7");
15598
- let bs = Ii;
15599
- const gi = class gi extends St {
15605
+ _(gi, "uuid", "e25a7f3c-46c4-4a14-9d3d-5115f24ebeb7");
15606
+ let bs = gi;
15607
+ const Ci = class Ci extends St {
15600
15608
  constructor(t) {
15601
15609
  super(t);
15602
15610
  /** {@link Disposable.onDisposed} */
15603
- T(this, "onDisposed", new j());
15611
+ _(this, "onDisposed", new Q());
15604
15612
  /** {@link Component.enabled} */
15605
- T(this, "enabled", !0);
15613
+ _(this, "enabled", !0);
15606
15614
  /**
15607
15615
  * The height of the explosion animation.
15608
15616
  * This property determines the vertical distance by which fragments are moved during the explosion.
15609
15617
  * Default value is 10.
15610
15618
  */
15611
- T(this, "height", 10);
15619
+ _(this, "height", 10);
15612
15620
  /**
15613
15621
  * The group name used for the explosion animation.
15614
15622
  * This property specifies the group of fragments that will be affected by the explosion.
15615
15623
  * Default value is "storeys".
15616
15624
  */
15617
- T(this, "groupName", "spatialStructures");
15625
+ _(this, "groupName", "spatialStructures");
15618
15626
  /**
15619
15627
  * A set of strings representing the exploded items.
15620
15628
  * This set is used to keep track of which items have been exploded.
15621
15629
  */
15622
- T(this, "list", /* @__PURE__ */ new Set());
15623
- t.add(gi.uuid, this);
15630
+ _(this, "list", /* @__PURE__ */ new Set());
15631
+ t.add(Ci.uuid, this);
15624
15632
  }
15625
15633
  /** {@link Disposable.dispose} */
15626
15634
  dispose() {
@@ -15664,14 +15672,14 @@ const gi = class gi extends St {
15664
15672
  * A unique identifier for the component.
15665
15673
  * This UUID is used to register the component within the Components system.
15666
15674
  */
15667
- T(gi, "uuid", "d260618b-ce88-4c7d-826c-6debb91de3e2");
15668
- let wr = gi;
15669
- const Ci = class Ci extends St {
15675
+ _(Ci, "uuid", "d260618b-ce88-4c7d-826c-6debb91de3e2");
15676
+ let wr = Ci;
15677
+ const Ti = class Ti extends St {
15670
15678
  constructor(t) {
15671
15679
  super(t);
15672
15680
  /** {@link Component.enabled} */
15673
- T(this, "enabled", !0);
15674
- this.components.add(Ci.uuid, this);
15681
+ _(this, "enabled", !0);
15682
+ this.components.add(Ti.uuid, this);
15675
15683
  }
15676
15684
  /**
15677
15685
  * Sets the visibility of fragments within the 3D scene.
@@ -15720,8 +15728,8 @@ const Ci = class Ci extends St {
15720
15728
  * A unique identifier for the component.
15721
15729
  * This UUID is used to register the component within the Components system.
15722
15730
  */
15723
- T(Ci, "uuid", "dd9ccf2d-8a21-4821-b7f6-2949add16a29");
15724
- let In = Ci;
15731
+ _(Ti, "uuid", "dd9ccf2d-8a21-4821-b7f6-2949add16a29");
15732
+ let In = Ti;
15725
15733
  class Sl extends wn {
15726
15734
  constructor() {
15727
15735
  super(...arguments);
@@ -15729,60 +15737,60 @@ class Sl extends wn {
15729
15737
  * Minimum number of geometries to be streamed.
15730
15738
  * Defaults to 10 geometries.
15731
15739
  */
15732
- T(this, "minGeometrySize", 10);
15740
+ _(this, "minGeometrySize", 10);
15733
15741
  /**
15734
15742
  * Minimum amount of assets to be streamed.
15735
15743
  * Defaults to 1000 assets.
15736
15744
  */
15737
- T(this, "minAssetsSize", 1e3);
15745
+ _(this, "minAssetsSize", 1e3);
15738
15746
  }
15739
15747
  }
15740
- const Ti = class Ti extends St {
15748
+ const _i = class _i extends St {
15741
15749
  constructor(t) {
15742
15750
  super(t);
15743
15751
  /**
15744
15752
  * Event triggered when geometry is streamed.
15745
15753
  * Contains the streamed geometry data and its buffer.
15746
15754
  */
15747
- T(this, "onGeometryStreamed", new j());
15755
+ _(this, "onGeometryStreamed", new Q());
15748
15756
  /**
15749
15757
  * Event triggered when assets are streamed.
15750
15758
  * Contains the streamed assets.
15751
15759
  */
15752
- T(this, "onAssetStreamed", new j());
15760
+ _(this, "onAssetStreamed", new Q());
15753
15761
  /**
15754
15762
  * Event triggered to indicate the progress of the streaming process.
15755
15763
  * Contains the progress percentage.
15756
15764
  */
15757
- T(this, "onProgress", new j());
15765
+ _(this, "onProgress", new Q());
15758
15766
  /**
15759
15767
  * Event triggered when the IFC file is loaded.
15760
15768
  * Contains the loaded IFC file data.
15761
15769
  */
15762
- T(this, "onIfcLoaded", new j());
15770
+ _(this, "onIfcLoaded", new Q());
15763
15771
  /** {@link Disposable.onDisposed} */
15764
- T(this, "onDisposed", new j());
15772
+ _(this, "onDisposed", new Q());
15765
15773
  /**
15766
15774
  * Settings for the IfcGeometryTiler.
15767
15775
  */
15768
- T(this, "settings", new Sl());
15776
+ _(this, "settings", new Sl());
15769
15777
  /** {@link Component.enabled} */
15770
- T(this, "enabled", !0);
15778
+ _(this, "enabled", !0);
15771
15779
  /**
15772
15780
  * The WebIFC API instance used for IFC file processing.
15773
15781
  */
15774
- T(this, "webIfc", new X.IfcAPI());
15775
- T(this, "_spatialTree", new kr());
15776
- T(this, "_metaData", new Yr());
15777
- T(this, "_visitedGeometries", /* @__PURE__ */ new Map());
15778
- T(this, "_streamSerializer", new Re.StreamSerializer());
15779
- T(this, "_geometries", /* @__PURE__ */ new Map());
15780
- T(this, "_geometryCount", 0);
15781
- T(this, "_civil", new Vr());
15782
- T(this, "_groupSerializer", new Re.Serializer());
15783
- T(this, "_assets", []);
15784
- T(this, "_meshesWithHoles", /* @__PURE__ */ new Set());
15785
- this.components.add(Ti.uuid, this), this.settings.excludedCategories.add(X.IFCOPENINGELEMENT);
15782
+ _(this, "webIfc", new X.IfcAPI());
15783
+ _(this, "_spatialTree", new kr());
15784
+ _(this, "_metaData", new Yr());
15785
+ _(this, "_visitedGeometries", /* @__PURE__ */ new Map());
15786
+ _(this, "_streamSerializer", new ye.StreamSerializer());
15787
+ _(this, "_geometries", /* @__PURE__ */ new Map());
15788
+ _(this, "_geometryCount", 0);
15789
+ _(this, "_civil", new Vr());
15790
+ _(this, "_groupSerializer", new ye.Serializer());
15791
+ _(this, "_assets", []);
15792
+ _(this, "_meshesWithHoles", /* @__PURE__ */ new Set());
15793
+ this.components.add(_i.uuid, this), this.settings.excludedCategories.add(X.IFCOPENINGELEMENT);
15786
15794
  }
15787
15795
  /** {@link Disposable.dispose} */
15788
15796
  dispose() {
@@ -15832,7 +15840,7 @@ const Ti = class Ti extends St {
15832
15840
  async streamAllGeometries() {
15833
15841
  const { minGeometrySize: t, minAssetsSize: e } = this.settings;
15834
15842
  this._spatialTree.setUp(this.webIfc);
15835
- const i = this.webIfc.GetIfcEntityList(0), n = [[]], r = new Re.FragmentsGroup();
15843
+ const i = this.webIfc.GetIfcEntityList(0), n = [[]], r = new ye.FragmentsGroup();
15836
15844
  r.ifcMetadata = {
15837
15845
  name: "",
15838
15846
  description: "",
@@ -15947,8 +15955,8 @@ const Ti = class Ti extends St {
15947
15955
  * A unique identifier for the component.
15948
15956
  * This UUID is used to register the component within the Components system.
15949
15957
  */
15950
- T(Ti, "uuid", "d9999a00-e1f5-4d3f-8cfe-c56e08609764");
15951
- let Fr = Ti;
15958
+ _(_i, "uuid", "d9999a00-e1f5-4d3f-8cfe-c56e08609764");
15959
+ let Fr = _i;
15952
15960
  class Ol extends wn {
15953
15961
  constructor() {
15954
15962
  super(...arguments);
@@ -15956,7 +15964,7 @@ class Ol extends wn {
15956
15964
  * Amount of properties to be streamed.
15957
15965
  * Defaults to 100 properties.
15958
15966
  */
15959
- T(this, "propertiesSize", 100);
15967
+ _(this, "propertiesSize", 100);
15960
15968
  }
15961
15969
  }
15962
15970
  class Nl extends St {
@@ -15966,29 +15974,29 @@ class Nl extends St {
15966
15974
  * An event that is triggered when properties are streamed from the IFC file.
15967
15975
  * The event provides the type of the IFC entity and the corresponding data.
15968
15976
  */
15969
- T(this, "onPropertiesStreamed", new oi());
15977
+ _(this, "onPropertiesStreamed", new oi());
15970
15978
  /**
15971
15979
  * An event that is triggered to indicate the progress of the streaming process.
15972
15980
  * The event provides a number between 0 and 1 representing the progress percentage.
15973
15981
  */
15974
- T(this, "onProgress", new oi());
15982
+ _(this, "onProgress", new oi());
15975
15983
  /**
15976
15984
  * An event that is triggered when indices are streamed from the IFC file.
15977
15985
  * The event provides a map of indices, where the key is the entity type and the value is another map of indices.
15978
15986
  */
15979
- T(this, "onIndicesStreamed", new oi());
15987
+ _(this, "onIndicesStreamed", new oi());
15980
15988
  /** {@link Disposable.onDisposed} */
15981
- T(this, "onDisposed", new j());
15989
+ _(this, "onDisposed", new Q());
15982
15990
  /** {@link Component.enabled} */
15983
- T(this, "enabled", !0);
15991
+ _(this, "enabled", !0);
15984
15992
  /**
15985
15993
  * An instance of the PropertiesStreamingSettings class, which holds the settings for the streaming process.
15986
15994
  */
15987
- T(this, "settings", new Ol());
15995
+ _(this, "settings", new Ol());
15988
15996
  /**
15989
15997
  * An instance of the IfcAPI class from the Web-IFC library, which provides methods for reading and processing IFC data.
15990
15998
  */
15991
- T(this, "webIfc", new X.IfcAPI());
15999
+ _(this, "webIfc", new X.IfcAPI());
15992
16000
  }
15993
16001
  /** {@link Disposable.dispose} */
15994
16002
  async dispose() {
@@ -16077,18 +16085,19 @@ class Nl extends St {
16077
16085
  * A unique identifier for the component.
16078
16086
  * This UUID is used to register the component within the Components system.
16079
16087
  */
16080
- T(Nl, "uuid", "88d2c89c-ce32-47d7-8cb6-d51e4b311a0b");
16088
+ _(Nl, "uuid", "88d2c89c-ce32-47d7-8cb6-d51e4b311a0b");
16081
16089
  class Kr {
16082
16090
  constructor(s, t, e) {
16083
- T(this, "title");
16084
- T(this, "guid", Ee.create());
16091
+ _(this, "title");
16092
+ _(this, "guid", me.create());
16085
16093
  /**
16086
16094
  * ClippingPlanes can be used to define a subsection of a building model that is related to the topic.
16087
16095
  * Each clipping plane is defined by Location and Direction.
16088
16096
  * The Direction vector points in the invisible direction meaning the half-space that is clipped.
16097
+ * @experimental
16089
16098
  */
16090
- T(this, "clippingPlanes", new qe());
16091
- T(this, "camera", {
16099
+ _(this, "clippingPlanes", new qe());
16100
+ _(this, "camera", {
16092
16101
  aspectRatio: 0,
16093
16102
  fov: 0,
16094
16103
  direction: { x: 0, y: 0, z: 80 },
@@ -16097,44 +16106,44 @@ class Kr {
16097
16106
  /**
16098
16107
  * A list of components GUIDs to hide when defaultVisibility = true or to show when defaultVisibility = false
16099
16108
  */
16100
- T(this, "exceptionComponents", new qe());
16109
+ _(this, "exceptionComponents", new qe());
16101
16110
  /**
16102
16111
  * A list of components GUIDs that should be selected (highlighted) when displaying a viewpoint.
16103
16112
  */
16104
- T(this, "selectionComponents", new qe());
16113
+ _(this, "selectionComponents", new qe());
16105
16114
  /**
16106
16115
  * A map of colors and components GUIDs that should be colorized when displaying a viewpoint.
16107
16116
  * For this to work, call viewpoint.colorize()
16108
16117
  */
16109
- T(this, "componentColors", new Fe());
16118
+ _(this, "componentColors", new Ee());
16110
16119
  /**
16111
16120
  * Boolean flags to allow fine control over the visibility of spaces.
16112
16121
  * A typical use of these flags is when DefaultVisibility=true but spaces should remain hidden.
16113
16122
  * @default false
16114
16123
  */
16115
- T(this, "spacesVisible", !1);
16124
+ _(this, "spacesVisible", !1);
16116
16125
  /**
16117
16126
  * Boolean flags to allow fine control over the visibility of space boundaries.
16118
16127
  * A typical use of these flags is when DefaultVisibility=true but space boundaries should remain hidden.
16119
16128
  * @default false
16120
16129
  */
16121
- T(this, "spaceBoundariesVisible", !1);
16130
+ _(this, "spaceBoundariesVisible", !1);
16122
16131
  /**
16123
16132
  * Boolean flags to allow fine control over the visibility of openings.
16124
16133
  * A typical use of these flags is when DefaultVisibility=true but openings should remain hidden.
16125
16134
  * @default false
16126
16135
  */
16127
- T(this, "openingsVisible", !1);
16136
+ _(this, "openingsVisible", !1);
16128
16137
  /**
16129
16138
  * When true, all components should be visible unless listed in the exceptions
16130
16139
  * When false all components should be invisible unless listed in the exceptions
16131
16140
  */
16132
- T(this, "defaultVisibility", !0);
16133
- T(this, "_components");
16141
+ _(this, "defaultVisibility", !0);
16142
+ _(this, "_components");
16134
16143
  /**
16135
16144
  * Represents the world in which the viewpoints are created and managed.
16136
16145
  */
16137
- T(this, "world");
16146
+ _(this, "world");
16138
16147
  const i = { setCamera: !0, ...e }, { data: n, setCamera: r } = i;
16139
16148
  this._components = s, this.world = t, n && (this.guid = n.guid ?? this.guid, this.set(n)), r && this.updateCamera();
16140
16149
  }
@@ -16234,31 +16243,16 @@ class Kr {
16234
16243
  * Adds components to the viewpoint based on the provided fragment ID map.
16235
16244
  *
16236
16245
  * @param fragmentIdMap - A map containing fragment IDs as keys and arrays of express IDs as values.
16237
- *
16238
- * @returns A Promise that resolves when the components have been added to the viewpoint.
16239
16246
  */
16240
- async addComponentsFromMap(s) {
16241
- var i;
16242
- const t = this._components.get(_t);
16243
- for (const n in s) {
16244
- const r = t.list.get(n);
16245
- if (!(r && r.group))
16246
- continue;
16247
- const o = r.group, a = s[n];
16248
- for (const l of a) {
16249
- const h = await o.getProperties(l);
16250
- if (!h)
16251
- continue;
16252
- const d = (i = h.GlobalId) == null ? void 0 : i.value;
16253
- d && this.selectionComponents.add(d);
16254
- }
16255
- }
16256
- this._components.get(te).list.set(this.guid, this);
16247
+ addComponentsFromMap(s) {
16248
+ const e = this._components.get(_t).fragmentIdMapToGuids(s);
16249
+ this.selectionComponents.add(...e), this._components.get(te).list.set(this.guid, this);
16257
16250
  }
16258
16251
  /**
16259
- * Sets the properties of the viewpoint with the provided data.
16252
+ * Replace the properties of the viewpoint with the provided data.
16260
16253
  *
16261
16254
  * @remarks The guid will be ommited as it shouldn't change after it has been initially set.
16255
+ * @remarks The existing selection and exception components will be fully replaced in case new ones are provided.
16262
16256
  *
16263
16257
  * @param data - An object containing the properties to be set.
16264
16258
  * The properties not included in the object will remain unchanged.
@@ -16271,6 +16265,14 @@ class Kr {
16271
16265
  if (n === "guid")
16272
16266
  continue;
16273
16267
  const r = t[n];
16268
+ if (n === "selectionComponents") {
16269
+ this.selectionComponents.clear(), this.selectionComponents.add(...r);
16270
+ continue;
16271
+ }
16272
+ if (n === "exceptionComponents") {
16273
+ this.exceptionComponents.clear(), this.exceptionComponents.add(...r);
16274
+ continue;
16275
+ }
16274
16276
  n in this && (e[n] = r);
16275
16277
  }
16276
16278
  return this._components.get(te).list.set(this.guid, this), this;
@@ -16483,20 +16485,21 @@ class Kr {
16483
16485
  </VisualizationInfo>`;
16484
16486
  }
16485
16487
  }
16486
- const _i = class _i extends St {
16488
+ const Ai = class Ai extends St {
16487
16489
  constructor(t) {
16488
16490
  super(t);
16489
- T(this, "enabled", !0);
16491
+ _(this, "enabled", !0);
16490
16492
  /**
16491
16493
  * A DataMap that stores Viewpoint instances, indexed by their unique identifiers (guid).
16492
16494
  * This map is used to manage and retrieve Viewpoint instances within the Viewpoints component.
16493
16495
  */
16494
- T(this, "list", new Fe());
16495
- T(this, "isSetup", !1);
16496
- T(this, "onSetup", new j());
16497
- T(this, "config", { overwriteColors: !1 });
16498
- T(this, "onDisposed", new j());
16499
- t.add(_i.uuid, this);
16496
+ _(this, "list", new Ee());
16497
+ _(this, "isSetup", !1);
16498
+ _(this, "onSetup", new Q());
16499
+ _(this, "config", { overwriteColors: !1 });
16500
+ /** {@link Disposable.onDisposed} */
16501
+ _(this, "onDisposed", new Q());
16502
+ t.add(Ai.uuid, this);
16500
16503
  }
16501
16504
  /**
16502
16505
  * Creates a new Viewpoint instance and adds it to the list.
@@ -16523,58 +16526,58 @@ const _i = class _i extends St {
16523
16526
  this.list.dispose(), this.onDisposed.trigger(), this.onDisposed.reset();
16524
16527
  }
16525
16528
  };
16526
- T(_i, "uuid", "ee867824-a796-408d-8aa0-4e5962a83c66");
16527
- let te = _i;
16529
+ _(Ai, "uuid", "ee867824-a796-408d-8aa0-4e5962a83c66");
16530
+ let te = Ai;
16528
16531
  class bl {
16529
16532
  constructor(s) {
16530
16533
  /** {@link Disposable.onDisposed} */
16531
- T(this, "onDisposed", new j());
16534
+ _(this, "onDisposed", new Q());
16532
16535
  /** {@link Updateable.onAfterUpdate} */
16533
- T(this, "onAfterUpdate", new j());
16536
+ _(this, "onAfterUpdate", new Q());
16534
16537
  /** {@link Updateable.onBeforeUpdate} */
16535
- T(this, "onBeforeUpdate", new j());
16538
+ _(this, "onBeforeUpdate", new Q());
16536
16539
  /** {@link Resizeable.onResize} */
16537
- T(this, "onResize", new j());
16540
+ _(this, "onResize", new Q());
16538
16541
  /**
16539
16542
  * The front offset of the minimap.
16540
16543
  * It determines how much the minimap's view is offset from the camera's view.
16541
16544
  * By pushing the map to the front, what the user sees on screen corresponds with what they see on the map
16542
16545
  */
16543
- T(this, "frontOffset", 0);
16546
+ _(this, "frontOffset", 0);
16544
16547
  /**
16545
16548
  * The override material for the minimap.
16546
16549
  * It is used to render the depth information of the world onto the minimap.
16547
16550
  */
16548
- T(this, "overrideMaterial", new M.MeshDepthMaterial());
16551
+ _(this, "overrideMaterial", new M.MeshDepthMaterial());
16549
16552
  /**
16550
16553
  * The background color of the minimap.
16551
16554
  * It is used to set the background color of the minimap's renderer.
16552
16555
  */
16553
- T(this, "backgroundColor", new M.Color(395274));
16556
+ _(this, "backgroundColor", new M.Color(395274));
16554
16557
  /**
16555
16558
  * The WebGL renderer for the minimap.
16556
16559
  * It is used to render the minimap onto the screen.
16557
16560
  */
16558
- T(this, "renderer");
16561
+ _(this, "renderer");
16559
16562
  /**
16560
16563
  * A flag indicating whether the minimap is enabled.
16561
16564
  * If disabled, the minimap will not update or render.
16562
16565
  */
16563
- T(this, "enabled", !0);
16566
+ _(this, "enabled", !0);
16564
16567
  /**
16565
16568
  * The world in which the minimap is displayed.
16566
16569
  * It provides access to the 3D scene, camera, and other relevant world elements.
16567
16570
  */
16568
- T(this, "world");
16569
- T(this, "_lockRotation", !0);
16570
- T(this, "_camera");
16571
- T(this, "_plane");
16572
- T(this, "_size", new M.Vector2(320, 160));
16573
- T(this, "_tempVector1", new M.Vector3());
16574
- T(this, "_tempVector2", new M.Vector3());
16575
- T(this, "_tempTarget", new M.Vector3());
16576
- T(this, "down", new M.Vector3(0, -1, 0));
16577
- T(this, "updatePlanes", () => {
16571
+ _(this, "world");
16572
+ _(this, "_lockRotation", !0);
16573
+ _(this, "_camera");
16574
+ _(this, "_plane");
16575
+ _(this, "_size", new M.Vector2(320, 160));
16576
+ _(this, "_tempVector1", new M.Vector3());
16577
+ _(this, "_tempVector2", new M.Vector3());
16578
+ _(this, "_tempTarget", new M.Vector3());
16579
+ _(this, "down", new M.Vector3(0, -1, 0));
16580
+ _(this, "updatePlanes", () => {
16578
16581
  if (!this.world.renderer)
16579
16582
  throw new Error("The given world must have a renderer!");
16580
16583
  const s = [], t = this.world.renderer.three;
@@ -16666,22 +16669,22 @@ class bl {
16666
16669
  this._camera.left = e * t / -2, this._camera.right = e * t / 2, this._camera.top = e / 2, this._camera.bottom = -e / 2, this._camera.updateProjectionMatrix(), this.onResize.trigger(s);
16667
16670
  }
16668
16671
  }
16669
- const Ai = class Ai extends St {
16672
+ const Ri = class Ri extends St {
16670
16673
  constructor(t) {
16671
16674
  super(t);
16672
16675
  /** {@link Updateable.onAfterUpdate} */
16673
- T(this, "onAfterUpdate", new j());
16676
+ _(this, "onAfterUpdate", new Q());
16674
16677
  /** {@link Updateable.onBeforeUpdate} */
16675
- T(this, "onBeforeUpdate", new j());
16678
+ _(this, "onBeforeUpdate", new Q());
16676
16679
  /** {@link Disposable.onDisposed} */
16677
- T(this, "onDisposed", new j());
16680
+ _(this, "onDisposed", new Q());
16678
16681
  /** {@link Component.enabled} */
16679
- T(this, "enabled", !0);
16682
+ _(this, "enabled", !0);
16680
16683
  /**
16681
16684
  * A collection of {@link MiniMap} instances, each associated with a unique world ID.
16682
16685
  */
16683
- T(this, "list", /* @__PURE__ */ new Map());
16684
- this.components.add(Ai.uuid, this);
16686
+ _(this, "list", /* @__PURE__ */ new Map());
16687
+ this.components.add(Ri.uuid, this);
16685
16688
  }
16686
16689
  /**
16687
16690
  * Creates a new {@link MiniMap} instance associated with the given world.
@@ -16724,14 +16727,14 @@ const Ai = class Ai extends St {
16724
16727
  * A unique identifier for the component.
16725
16728
  * This UUID is used to register the component within the Components system.
16726
16729
  */
16727
- T(Ai, "uuid", "39ad6aad-84c8-4adf-a1e0-7f25313a9e7f");
16728
- let Sr = Ai;
16729
- const Ri = class Ri extends St {
16730
+ _(Ri, "uuid", "39ad6aad-84c8-4adf-a1e0-7f25313a9e7f");
16731
+ let Sr = Ri;
16732
+ const yi = class yi extends St {
16730
16733
  constructor(t) {
16731
16734
  super(t);
16732
16735
  /** {@link Component.enabled} */
16733
- T(this, "enabled", !0);
16734
- t.add(Ri.uuid, this);
16736
+ _(this, "enabled", !0);
16737
+ t.add(yi.uuid, this);
16735
16738
  }
16736
16739
  /**
16737
16740
  * Utility method to calculate the distance from a point to a line segment.
@@ -16983,8 +16986,8 @@ const Ri = class Ri extends St {
16983
16986
  * A unique identifier for the component.
16984
16987
  * This UUID is used to register the component within the Components system.
16985
16988
  */
16986
- T(Ri, "uuid", "267ca032-672f-4cb0-afa9-d24e904f39d6");
16987
- let Or = Ri;
16989
+ _(yi, "uuid", "267ca032-672f-4cb0-afa9-d24e904f39d6");
16990
+ let Or = yi;
16988
16991
  export {
16989
16992
  oi as AsyncEvent,
16990
16993
  Lt as BCFTopics,
@@ -16998,13 +17001,13 @@ export {
16998
17001
  ln as Clipper,
16999
17002
  En as Comment,
17000
17003
  St as Component,
17001
- on as Components,
17004
+ an as Components,
17002
17005
  ka as CullerRenderer,
17003
17006
  cn as Cullers,
17004
- Fe as DataMap,
17007
+ Ee as DataMap,
17005
17008
  qe as DataSet,
17006
- we as Disposer,
17007
- j as Event,
17009
+ Fe as Disposer,
17010
+ Q as Event,
17008
17011
  wr as Exploder,
17009
17012
  tc as FirstPersonMode,
17010
17013
  _t as FragmentsManager,
@@ -17043,12 +17046,12 @@ export {
17043
17046
  vl as SimpleRenderer,
17044
17047
  Ma as SimpleScene,
17045
17048
  La as SimpleWorld,
17046
- hi as Topic,
17047
- Ee as UUID,
17049
+ di as Topic,
17050
+ me as UUID,
17048
17051
  xl as VertexPicker,
17049
17052
  Kr as Viewpoint,
17050
17053
  te as Viewpoints,
17051
- an as Worlds,
17054
+ hi as Worlds,
17052
17055
  Fl as extensionsImporter,
17053
17056
  ac as ifcRelAttrsPosition,
17054
17057
  cc as ifcRelClassNames,