@needle-tools/engine 2.60.1-pre → 2.60.3-pre

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.
@@ -370,7 +370,7 @@ function dJ(t, A) {
370
370
  * Copyright 2010-2022 Three.js Authors
371
371
  * SPDX-License-Identifier: MIT
372
372
  */
373
- const Ul = "147dev", kB = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, MB = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, XM = 0, $w = 1, $M = 2, wJ = 3, uJ = 0, bp = 1, xp = 2, oQ = 3, Je = 0, oe = 1, Tg = 2, PC = 0, WC = 1, es = 2, Au = 3, Iu = 4, AU = 5, KB = 100, IU = 101, gU = 102, gu = 103, iu = 104, iU = 200, eU = 201, tU = 202, CU = 203, Hp = 204, vp = 205, oU = 206, BU = 207, sU = 208, QU = 209, nU = 210, aU = 0, Tp = 1, Op = 2, ja = 3, _p = 4, Pp = 5, Wp = 6, Zp = 7, kE = 0, EU = 1, rU = 2, ft = 0, pa = 1, jp = 2, hU = 3, Gc = 4, cU = 5, Rl = 300, Wo = 301, Zo = 302, Gt = 303, NQ = 304, XQ = 306, kt = 1e3, oi = 1001, XC = 1002, tg = 1003, mQ = 1004, pJ = 1004, KQ = 1005, yJ = 1005, TI = 1006, ME = 1007, SJ = 1007, Ut = 1008, fJ = 1008, Fi = 1009, lU = 1010, DU = 1011, Vp = 1012, dU = 1013, Yo = 1014, zg = 1015, Bi = 1016, wU = 1017, uU = 1018, jB = 1020, pU = 1021, yU = 1022, hg = 1023, SU = 1024, fU = 1025, Oo = 1026, ts = 1027, bB = 1028, GU = 1029, BQ = 1030, kU = 1031, MU = 1033, ya = 33776, _h = 33777, Ph = 33778, Sa = 33779, kc = 35840, eu = 35841, Mc = 35842, tu = 35843, zp = 36196, Uc = 37492, Rc = 37496, Fc = 37808, Cu = 37809, ou = 37810, Bu = 37811, su = 37812, Qu = 37813, nu = 37814, au = 37815, Eu = 37816, ru = 37817, hu = 37818, cu = 37819, lu = 37820, Du = 37821, Nc = 36492, Va = 2200, Xp = 2201, UU = 2202, Cs = 2300, $C = 2301, Wh = 2302, xB = 2400, HB = 2401, za = 2402, Fl = 2500, $p = 2501, GJ = 0, RU = 1, Ay = 2, $g = 3e3, DI = 3001, FU = 3200, NU = 3201, gB = 0, mU = 1, kJ = "", Dt = "srgb", JQ = "srgb-linear", KU = 0, fa = 7680, JU = 7681, qU = 7682, LU = 7683, YU = 34055, bU = 34056, xU = 5386, HU = 512, vU = 513, TU = 514, OU = 515, _U = 516, PU = 517, WU = 518, Iy = 519, Xa = 35044, Ri = 35048, MJ = 35040, UJ = 35045, RJ = 35049, FJ = 35041, NJ = 35046, mJ = 35050, KJ = 35042, JJ = "100", du = "300 es", mc = 1035;
373
+ const Ul = "147dev", kB = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, MB = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, XM = 0, $w = 1, $M = 2, wJ = 3, uJ = 0, bp = 1, xp = 2, oQ = 3, Je = 0, Be = 1, Tg = 2, PC = 0, WC = 1, es = 2, Au = 3, Iu = 4, AU = 5, KB = 100, IU = 101, gU = 102, gu = 103, iu = 104, iU = 200, eU = 201, tU = 202, CU = 203, Hp = 204, vp = 205, oU = 206, BU = 207, sU = 208, QU = 209, nU = 210, aU = 0, Tp = 1, Op = 2, ja = 3, _p = 4, Pp = 5, Wp = 6, Zp = 7, kE = 0, EU = 1, rU = 2, ft = 0, pa = 1, jp = 2, hU = 3, Gc = 4, cU = 5, Rl = 300, Wo = 301, Zo = 302, Gt = 303, NQ = 304, XQ = 306, kt = 1e3, oi = 1001, XC = 1002, tg = 1003, mQ = 1004, pJ = 1004, KQ = 1005, yJ = 1005, TI = 1006, ME = 1007, SJ = 1007, Ut = 1008, fJ = 1008, Fi = 1009, lU = 1010, DU = 1011, Vp = 1012, dU = 1013, Yo = 1014, zg = 1015, Bi = 1016, wU = 1017, uU = 1018, jB = 1020, pU = 1021, yU = 1022, hg = 1023, SU = 1024, fU = 1025, Oo = 1026, ts = 1027, bB = 1028, GU = 1029, BQ = 1030, kU = 1031, MU = 1033, ya = 33776, _h = 33777, Ph = 33778, Sa = 33779, kc = 35840, eu = 35841, Mc = 35842, tu = 35843, zp = 36196, Uc = 37492, Rc = 37496, Fc = 37808, Cu = 37809, ou = 37810, Bu = 37811, su = 37812, Qu = 37813, nu = 37814, au = 37815, Eu = 37816, ru = 37817, hu = 37818, cu = 37819, lu = 37820, Du = 37821, Nc = 36492, Va = 2200, Xp = 2201, UU = 2202, Cs = 2300, $C = 2301, Wh = 2302, xB = 2400, HB = 2401, za = 2402, Fl = 2500, $p = 2501, GJ = 0, RU = 1, Ay = 2, $g = 3e3, DI = 3001, FU = 3200, NU = 3201, gB = 0, mU = 1, kJ = "", Dt = "srgb", JQ = "srgb-linear", KU = 0, fa = 7680, JU = 7681, qU = 7682, LU = 7683, YU = 34055, bU = 34056, xU = 5386, HU = 512, vU = 513, TU = 514, OU = 515, _U = 516, PU = 517, WU = 518, Iy = 519, Xa = 35044, Ri = 35048, MJ = 35040, UJ = 35045, RJ = 35049, FJ = 35041, NJ = 35046, mJ = 35050, KJ = 35042, JJ = "100", du = "300 es", mc = 1035;
374
374
  class Vi {
375
375
  addEventListener(A, I) {
376
376
  this._listeners === void 0 && (this._listeners = {});
@@ -525,7 +525,7 @@ function Ig(t, A) {
525
525
  throw new Error("Invalid component type.");
526
526
  }
527
527
  }
528
- var ne = /* @__PURE__ */ Object.freeze({
528
+ var ae = /* @__PURE__ */ Object.freeze({
529
529
  __proto__: null,
530
530
  DEG2RAD: VB,
531
531
  RAD2DEG: $a,
@@ -3530,7 +3530,7 @@ class fg extends Vi {
3530
3530
  A === !0 && this.version++;
3531
3531
  }
3532
3532
  }
3533
- class Cg extends fg {
3533
+ class og extends fg {
3534
3534
  constructor(A) {
3535
3535
  super(), this.isMeshBasicMaterial = !0, this.type = "MeshBasicMaterial", this.color = new T(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.combine = kE, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.fog = !0, this.setValues(A);
3536
3536
  }
@@ -4027,7 +4027,7 @@ class hI extends Vi {
4027
4027
  }
4028
4028
  const C0 = /* @__PURE__ */ new XA(), qs = /* @__PURE__ */ new to(), Ud = /* @__PURE__ */ new rC(), Do = /* @__PURE__ */ new k(), wo = /* @__PURE__ */ new k(), uo = /* @__PURE__ */ new k(), Rd = /* @__PURE__ */ new k(), Fd = /* @__PURE__ */ new k(), Nd = /* @__PURE__ */ new k(), Rr = /* @__PURE__ */ new k(), Fr = /* @__PURE__ */ new k(), Nr = /* @__PURE__ */ new k(), mr = /* @__PURE__ */ new QA(), Kr = /* @__PURE__ */ new QA(), Jr = /* @__PURE__ */ new QA(), md = /* @__PURE__ */ new k(), qr = /* @__PURE__ */ new k();
4029
4029
  class MA extends HA {
4030
- constructor(A = new hI(), I = new Cg()) {
4030
+ constructor(A = new hI(), I = new og()) {
4031
4031
  super(), this.isMesh = !0, this.type = "Mesh", this.geometry = A, this.material = I, this.updateMorphTargets();
4032
4032
  }
4033
4033
  copy(A, I) {
@@ -4088,7 +4088,7 @@ class MA extends HA {
4088
4088
  }
4089
4089
  function cq(t, A, I, g, i, e, C, o) {
4090
4090
  let B;
4091
- if (A.side === oe ? B = g.intersectTriangle(C, e, i, !0, o) : B = g.intersectTriangle(i, e, C, A.side !== Tg, o), B === null)
4091
+ if (A.side === Be ? B = g.intersectTriangle(C, e, i, !0, o) : B = g.intersectTriangle(i, e, C, A.side !== Tg, o), B === null)
4092
4092
  return null;
4093
4093
  qr.copy(o), qr.applyMatrix4(t.matrixWorld);
4094
4094
  const s = I.ray.origin.distanceTo(qr);
@@ -4124,7 +4124,7 @@ function Lr(t, A, I, g, i, e, C, o, B, s, Q, a) {
4124
4124
  }
4125
4125
  return r;
4126
4126
  }
4127
- class zI extends hI {
4127
+ class XI extends hI {
4128
4128
  constructor(A = 1, I = 1, g = 1, i = 1, e = 1, C = 1) {
4129
4129
  super(), this.type = "BoxGeometry", this.parameters = {
4130
4130
  width: A,
@@ -4159,7 +4159,7 @@ class zI extends hI {
4159
4159
  }
4160
4160
  }
4161
4161
  static fromJSON(A) {
4162
- return new zI(A.width, A.height, A.depth, A.widthSegments, A.heightSegments, A.depthSegments);
4162
+ return new XI(A.width, A.height, A.depth, A.widthSegments, A.heightSegments, A.depthSegments);
4163
4163
  }
4164
4164
  }
4165
4165
  function qQ(t) {
@@ -4276,7 +4276,7 @@ let Nl = class extends HA {
4276
4276
  return new this.constructor().copy(this);
4277
4277
  }
4278
4278
  };
4279
- class Eg extends Nl {
4279
+ class Cg extends Nl {
4280
4280
  constructor(A = 50, I = 1, g = 0.1, i = 2e3) {
4281
4281
  super(), this.isPerspectiveCamera = !0, this.type = "PerspectiveCamera", this.fov = A, this.zoom = 1, this.near = g, this.far = i, this.focus = 10, this.aspect = I, this.view = null, this.filmGauge = 35, this.filmOffset = 0, this.updateProjectionMatrix();
4282
4282
  }
@@ -4382,17 +4382,17 @@ const Ls = -90, Ys = 1;
4382
4382
  class oy extends HA {
4383
4383
  constructor(A, I, g) {
4384
4384
  super(), this.type = "CubeCamera", this.renderTarget = g;
4385
- const i = new Eg(Ls, Ys, A, I);
4385
+ const i = new Cg(Ls, Ys, A, I);
4386
4386
  i.layers = this.layers, i.up.set(0, 1, 0), i.lookAt(1, 0, 0), this.add(i);
4387
- const e = new Eg(Ls, Ys, A, I);
4387
+ const e = new Cg(Ls, Ys, A, I);
4388
4388
  e.layers = this.layers, e.up.set(0, 1, 0), e.lookAt(-1, 0, 0), this.add(e);
4389
- const C = new Eg(Ls, Ys, A, I);
4389
+ const C = new Cg(Ls, Ys, A, I);
4390
4390
  C.layers = this.layers, C.up.set(0, 0, -1), C.lookAt(0, 1, 0), this.add(C);
4391
- const o = new Eg(Ls, Ys, A, I);
4391
+ const o = new Cg(Ls, Ys, A, I);
4392
4392
  o.layers = this.layers, o.up.set(0, 0, 1), o.lookAt(0, -1, 0), this.add(o);
4393
- const B = new Eg(Ls, Ys, A, I);
4393
+ const B = new Cg(Ls, Ys, A, I);
4394
4394
  B.layers = this.layers, B.up.set(0, 1, 0), B.lookAt(0, 0, 1), this.add(B);
4395
- const s = new Eg(Ls, Ys, A, I);
4395
+ const s = new Cg(Ls, Ys, A, I);
4396
4396
  s.layers = this.layers, s.up.set(0, 1, 0), s.lookAt(0, 0, -1), this.add(s);
4397
4397
  }
4398
4398
  update(A, I) {
@@ -4469,12 +4469,12 @@ class ml extends qi {
4469
4469
  }
4470
4470
  `
4471
4471
  )
4472
- }, i = new zI(5, 5, 5), e = new Dg({
4472
+ }, i = new XI(5, 5, 5), e = new Dg({
4473
4473
  name: "CubemapFromEquirect",
4474
4474
  uniforms: qQ(g.uniforms),
4475
4475
  vertexShader: g.vertexShader,
4476
4476
  fragmentShader: g.fragmentShader,
4477
- side: oe,
4477
+ side: Be,
4478
4478
  blending: PC
4479
4479
  });
4480
4480
  e.uniforms.tEquirect.value = I;
@@ -4712,7 +4712,7 @@ function pq(t, A) {
4712
4712
  update: B
4713
4713
  };
4714
4714
  }
4715
- class ae extends hI {
4715
+ class zi extends hI {
4716
4716
  constructor(A = 1, I = 1, g = 1, i = 1) {
4717
4717
  super(), this.type = "PlaneGeometry", this.parameters = {
4718
4718
  width: A,
@@ -4736,7 +4736,7 @@ class ae extends hI {
4736
4736
  this.setIndex(r), this.setAttribute("position", new $A(h, 3)), this.setAttribute("normal", new $A(c, 3)), this.setAttribute("uv", new $A(l, 2));
4737
4737
  }
4738
4738
  static fromJSON(A) {
4739
- return new ae(A.width, A.height, A.widthSegments, A.heightSegments);
4739
+ return new zi(A.width, A.height, A.widthSegments, A.heightSegments);
4740
4740
  }
4741
4741
  }
4742
4742
  var yq = `#ifdef USE_ALPHAMAP
@@ -8198,13 +8198,13 @@ function Ib(t, A, I, g, i, e, C) {
8198
8198
  D && D.isTexture && (D = (w.backgroundBlurriness > 0 ? I : A).get(D));
8199
8199
  const d = t.xr, u = d.getSession && d.getSession();
8200
8200
  u && u.environmentBlendMode === "additive" && (D = null), D === null ? c(o, B) : D && D.isColor && (c(D, 1), p = !0), (t.autoClear || p) && t.clear(t.autoClearColor, t.autoClearDepth, t.autoClearStencil), D && (D.isCubeTexture || D.mapping === XQ) ? (Q === void 0 && (Q = new MA(
8201
- new zI(1, 1, 1),
8201
+ new XI(1, 1, 1),
8202
8202
  new Dg({
8203
8203
  name: "BackgroundCubeMaterial",
8204
8204
  uniforms: qQ(dt.backgroundCube.uniforms),
8205
8205
  vertexShader: dt.backgroundCube.vertexShader,
8206
8206
  fragmentShader: dt.backgroundCube.fragmentShader,
8207
- side: oe,
8207
+ side: Be,
8208
8208
  depthTest: !1,
8209
8209
  depthWrite: !1,
8210
8210
  fog: !1
@@ -8216,7 +8216,7 @@ function Ib(t, A, I, g, i, e, C) {
8216
8216
  return this.uniforms.envMap.value;
8217
8217
  }
8218
8218
  }), i.update(Q)), Q.material.uniforms.envMap.value = D, Q.material.uniforms.flipEnvMap.value = D.isCubeTexture && D.isRenderTargetTexture === !1 ? -1 : 1, Q.material.uniforms.backgroundBlurriness.value = w.backgroundBlurriness, Q.material.uniforms.backgroundIntensity.value = w.backgroundIntensity, (a !== D || n !== D.version || r !== t.toneMapping) && (Q.material.needsUpdate = !0, a = D, n = D.version, r = t.toneMapping), Q.layers.enableAll(), l.unshift(Q, Q.geometry, Q.material, 0, 0, null)) : D && D.isTexture && (s === void 0 && (s = new MA(
8219
- new ae(2, 2),
8219
+ new zi(2, 2),
8220
8220
  new Dg({
8221
8221
  name: "BackgroundMaterial",
8222
8222
  uniforms: qQ(dt.background.uniforms),
@@ -8767,14 +8767,14 @@ class uu {
8767
8767
  this._renderer.compile(I, Jd);
8768
8768
  }
8769
8769
  _sceneToCubeUV(A, I, g, i) {
8770
- const o = new Eg(90, 1, I, g), B = [1, -1, 1, 1, 1, 1], s = [1, 1, 1, -1, -1, -1], Q = this._renderer, a = Q.autoClear, n = Q.toneMapping;
8770
+ const o = new Cg(90, 1, I, g), B = [1, -1, 1, 1, 1, 1], s = [1, 1, 1, -1, -1, -1], Q = this._renderer, a = Q.autoClear, n = Q.toneMapping;
8771
8771
  Q.getClearColor(B0), Q.toneMapping = ft, Q.autoClear = !1;
8772
- const r = new Cg({
8772
+ const r = new og({
8773
8773
  name: "PMREM.Background",
8774
- side: oe,
8774
+ side: Be,
8775
8775
  depthWrite: !1,
8776
8776
  depthTest: !1
8777
- }), h = new MA(new zI(), r);
8777
+ }), h = new MA(new XI(), r);
8778
8778
  let c = !1;
8779
8779
  const l = A.background;
8780
8780
  l ? l.isColor && (r.color.copy(l), A.background = null, c = !0) : (r.color.copy(B0), c = !0);
@@ -10492,7 +10492,7 @@ function Mx(t, A, I, g, i, e, C) {
10492
10492
  physicallyCorrectLights: t.physicallyCorrectLights,
10493
10493
  premultipliedAlpha: S.premultipliedAlpha,
10494
10494
  doubleSided: S.side === Tg,
10495
- flipSided: S.side === oe,
10495
+ flipSided: S.side === Be,
10496
10496
  useDepthPacking: !!S.depthPacking,
10497
10497
  depthPacking: S.depthPacking || 0,
10498
10498
  index0AttributeName: S.index0AttributeName,
@@ -10961,7 +10961,7 @@ void main() {
10961
10961
  }`;
10962
10962
  function xx(t, A, I) {
10963
10963
  let g = new Kl();
10964
- const i = new QA(), e = new QA(), C = new sI(), o = new sy({ depthPacking: NU }), B = new Qy(), s = {}, Q = I.maxTextureSize, a = { 0: oe, 1: Je, 2: Tg }, n = new Dg({
10964
+ const i = new QA(), e = new QA(), C = new sI(), o = new sy({ depthPacking: NU }), B = new Qy(), s = {}, Q = I.maxTextureSize, a = { 0: Be, 1: Je, 2: Tg }, n = new Dg({
10965
10965
  defines: {
10966
10966
  VSM_SAMPLES: 8
10967
10967
  },
@@ -11142,11 +11142,11 @@ function Hx(t, A, I) {
11142
11142
  setMask: function(gg) {
11143
11143
  V !== gg && !Z && (t.stencilMask(gg), V = gg);
11144
11144
  },
11145
- setFunc: function(gg, Bt, $i) {
11146
- (mA !== gg || II !== Bt || QI !== $i) && (t.stencilFunc(gg, Bt, $i), mA = gg, II = Bt, QI = $i);
11145
+ setFunc: function(gg, Bt, Ae) {
11146
+ (mA !== gg || II !== Bt || QI !== Ae) && (t.stencilFunc(gg, Bt, Ae), mA = gg, II = Bt, QI = Ae);
11147
11147
  },
11148
- setOp: function(gg, Bt, $i) {
11149
- (OI !== gg || Lg !== Bt || ii !== $i) && (t.stencilOp(gg, Bt, $i), OI = gg, Lg = Bt, ii = $i);
11148
+ setOp: function(gg, Bt, Ae) {
11149
+ (OI !== gg || Lg !== Bt || ii !== Ae) && (t.stencilOp(gg, Bt, Ae), OI = gg, Lg = Bt, ii = Ae);
11150
11150
  },
11151
11151
  setLocked: function(gg) {
11152
11152
  Z = gg;
@@ -11279,7 +11279,7 @@ function Hx(t, A, I) {
11279
11279
  }
11280
11280
  function jA(Z, V) {
11281
11281
  Z.side === Tg ? qA(2884) : _A(2884);
11282
- let mA = Z.side === oe;
11282
+ let mA = Z.side === Be;
11283
11283
  V && (mA = !mA), KA(mA), Z.blending === WC && Z.transparent === !1 ? RA(PC) : RA(Z.blending, Z.blendEquation, Z.blendSrc, Z.blendDst, Z.blendEquationAlpha, Z.blendSrcAlpha, Z.blendDstAlpha, Z.premultipliedAlpha), B.setFunc(Z.depthFunc), B.setTest(Z.depthTest), B.setMask(Z.depthWrite), o.setMask(Z.colorWrite);
11284
11284
  const II = Z.stencilWrite;
11285
11285
  s.setTest(II), II && (s.setMask(Z.stencilWriteMask), s.setFunc(Z.stencilFunc, Z.stencilRef, Z.stencilFuncMask), s.setOp(Z.stencilFail, Z.stencilZFail, Z.stencilZPass)), AI(Z.polygonOffset, Z.polygonOffsetFactor, Z.polygonOffsetUnits), Z.alphaToCoverage === !0 ? _A(32926) : qA(32926);
@@ -12029,7 +12029,7 @@ function iR(t, A, I) {
12029
12029
  }
12030
12030
  return { convert: i };
12031
12031
  }
12032
- class eR extends Eg {
12032
+ class eR extends Cg {
12033
12033
  constructor(A = []) {
12034
12034
  super(), this.isArrayCamera = !0, this.cameras = A;
12035
12035
  }
@@ -12117,9 +12117,9 @@ class Ox extends Vi {
12117
12117
  let i = null, e = 1, C = !1, o = null, B = "local-floor", s = null, Q = null, a = null, n = null, r = null, h = null;
12118
12118
  const c = I.getContextAttributes();
12119
12119
  let l = null, w = null;
12120
- const p = [], D = [], d = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Map(), y = new Eg();
12120
+ const p = [], D = [], d = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Map(), y = new Cg();
12121
12121
  y.layers.enable(1), y.viewport = new sI();
12122
- const f = new Eg();
12122
+ const f = new Cg();
12123
12123
  f.layers.enable(2), f.viewport = new sI();
12124
12124
  const S = [y, f], G = new eR();
12125
12125
  G.layers.enable(1), G.layers.enable(2);
@@ -12299,7 +12299,7 @@ class Ox extends Vi {
12299
12299
  ), A.setRenderTarget(w));
12300
12300
  }
12301
12301
  let PA = S[z];
12302
- PA === void 0 && (PA = new Eg(), PA.layers.enable(z), PA.viewport = new sI(), S[z] = PA), PA.matrix.fromArray(_A.transform.matrix), PA.projectionMatrix.fromArray(_A.projectionMatrix), PA.viewport.set(qA.x, qA.y, qA.width, qA.height), z === 0 && G.matrix.copy(PA.matrix), dA === !0 && G.cameras.push(PA);
12302
+ PA === void 0 && (PA = new Cg(), PA.layers.enable(z), PA.viewport = new sI(), S[z] = PA), PA.matrix.fromArray(_A.transform.matrix), PA.projectionMatrix.fromArray(_A.projectionMatrix), PA.viewport.set(qA.x, qA.y, qA.width, qA.height), z === 0 && G.matrix.copy(PA.matrix), dA === !0 && G.cameras.push(PA);
12303
12303
  }
12304
12304
  }
12305
12305
  for (let uA = 0; uA < p.length; uA++) {
@@ -12339,7 +12339,7 @@ function _x(t, A) {
12339
12339
  l.isMeshBasicMaterial || l.isMeshLambertMaterial ? i(c, l) : l.isMeshToonMaterial ? (i(c, l), Q(c, l)) : l.isMeshPhongMaterial ? (i(c, l), s(c, l)) : l.isMeshStandardMaterial ? (i(c, l), a(c, l), l.isMeshPhysicalMaterial && n(c, l, D)) : l.isMeshMatcapMaterial ? (i(c, l), r(c, l)) : l.isMeshDepthMaterial ? i(c, l) : l.isMeshDistanceMaterial ? (i(c, l), h(c, l)) : l.isMeshNormalMaterial ? i(c, l) : l.isLineBasicMaterial ? (e(c, l), l.isLineDashedMaterial && C(c, l)) : l.isPointsMaterial ? o(c, l, w, p) : l.isSpriteMaterial ? B(c, l) : l.isShadowMaterial ? (c.color.value.copy(l.color), c.opacity.value = l.opacity) : l.isShaderMaterial && (l.uniformsNeedUpdate = !1);
12340
12340
  }
12341
12341
  function i(c, l) {
12342
- c.opacity.value = l.opacity, l.color && c.diffuse.value.copy(l.color), l.emissive && c.emissive.value.copy(l.emissive).multiplyScalar(l.emissiveIntensity), l.map && (c.map.value = l.map), l.alphaMap && (c.alphaMap.value = l.alphaMap), l.bumpMap && (c.bumpMap.value = l.bumpMap, c.bumpScale.value = l.bumpScale, l.side === oe && (c.bumpScale.value *= -1)), l.displacementMap && (c.displacementMap.value = l.displacementMap, c.displacementScale.value = l.displacementScale, c.displacementBias.value = l.displacementBias), l.emissiveMap && (c.emissiveMap.value = l.emissiveMap), l.normalMap && (c.normalMap.value = l.normalMap, c.normalScale.value.copy(l.normalScale), l.side === oe && c.normalScale.value.negate()), l.specularMap && (c.specularMap.value = l.specularMap), l.alphaTest > 0 && (c.alphaTest.value = l.alphaTest);
12342
+ c.opacity.value = l.opacity, l.color && c.diffuse.value.copy(l.color), l.emissive && c.emissive.value.copy(l.emissive).multiplyScalar(l.emissiveIntensity), l.map && (c.map.value = l.map), l.alphaMap && (c.alphaMap.value = l.alphaMap), l.bumpMap && (c.bumpMap.value = l.bumpMap, c.bumpScale.value = l.bumpScale, l.side === Be && (c.bumpScale.value *= -1)), l.displacementMap && (c.displacementMap.value = l.displacementMap, c.displacementScale.value = l.displacementScale, c.displacementBias.value = l.displacementBias), l.emissiveMap && (c.emissiveMap.value = l.emissiveMap), l.normalMap && (c.normalMap.value = l.normalMap, c.normalScale.value.copy(l.normalScale), l.side === Be && c.normalScale.value.negate()), l.specularMap && (c.specularMap.value = l.specularMap), l.alphaTest > 0 && (c.alphaTest.value = l.alphaTest);
12343
12343
  const w = A.get(l).envMap;
12344
12344
  if (w && (c.envMap.value = w, c.flipEnvMap.value = w.isCubeTexture && w.isRenderTargetTexture === !1 ? -1 : 1, c.reflectivity.value = l.reflectivity, c.ior.value = l.ior, c.refractionRatio.value = l.refractionRatio), l.lightMap) {
12345
12345
  c.lightMap.value = l.lightMap;
@@ -12378,7 +12378,7 @@ function _x(t, A) {
12378
12378
  c.roughness.value = l.roughness, c.metalness.value = l.metalness, l.roughnessMap && (c.roughnessMap.value = l.roughnessMap), l.metalnessMap && (c.metalnessMap.value = l.metalnessMap), A.get(l).envMap && (c.envMapIntensity.value = l.envMapIntensity);
12379
12379
  }
12380
12380
  function n(c, l, w) {
12381
- c.ior.value = l.ior, l.sheen > 0 && (c.sheenColor.value.copy(l.sheenColor).multiplyScalar(l.sheen), c.sheenRoughness.value = l.sheenRoughness, l.sheenColorMap && (c.sheenColorMap.value = l.sheenColorMap), l.sheenRoughnessMap && (c.sheenRoughnessMap.value = l.sheenRoughnessMap)), l.clearcoat > 0 && (c.clearcoat.value = l.clearcoat, c.clearcoatRoughness.value = l.clearcoatRoughness, l.clearcoatMap && (c.clearcoatMap.value = l.clearcoatMap), l.clearcoatRoughnessMap && (c.clearcoatRoughnessMap.value = l.clearcoatRoughnessMap), l.clearcoatNormalMap && (c.clearcoatNormalScale.value.copy(l.clearcoatNormalScale), c.clearcoatNormalMap.value = l.clearcoatNormalMap, l.side === oe && c.clearcoatNormalScale.value.negate())), l.iridescence > 0 && (c.iridescence.value = l.iridescence, c.iridescenceIOR.value = l.iridescenceIOR, c.iridescenceThicknessMinimum.value = l.iridescenceThicknessRange[0], c.iridescenceThicknessMaximum.value = l.iridescenceThicknessRange[1], l.iridescenceMap && (c.iridescenceMap.value = l.iridescenceMap), l.iridescenceThicknessMap && (c.iridescenceThicknessMap.value = l.iridescenceThicknessMap)), l.transmission > 0 && (c.transmission.value = l.transmission, c.transmissionSamplerMap.value = w.texture, c.transmissionSamplerSize.value.set(w.width, w.height), l.transmissionMap && (c.transmissionMap.value = l.transmissionMap), c.thickness.value = l.thickness, l.thicknessMap && (c.thicknessMap.value = l.thicknessMap), c.attenuationDistance.value = l.attenuationDistance, c.attenuationColor.value.copy(l.attenuationColor)), c.specularIntensity.value = l.specularIntensity, c.specularColor.value.copy(l.specularColor), l.specularIntensityMap && (c.specularIntensityMap.value = l.specularIntensityMap), l.specularColorMap && (c.specularColorMap.value = l.specularColorMap);
12381
+ c.ior.value = l.ior, l.sheen > 0 && (c.sheenColor.value.copy(l.sheenColor).multiplyScalar(l.sheen), c.sheenRoughness.value = l.sheenRoughness, l.sheenColorMap && (c.sheenColorMap.value = l.sheenColorMap), l.sheenRoughnessMap && (c.sheenRoughnessMap.value = l.sheenRoughnessMap)), l.clearcoat > 0 && (c.clearcoat.value = l.clearcoat, c.clearcoatRoughness.value = l.clearcoatRoughness, l.clearcoatMap && (c.clearcoatMap.value = l.clearcoatMap), l.clearcoatRoughnessMap && (c.clearcoatRoughnessMap.value = l.clearcoatRoughnessMap), l.clearcoatNormalMap && (c.clearcoatNormalScale.value.copy(l.clearcoatNormalScale), c.clearcoatNormalMap.value = l.clearcoatNormalMap, l.side === Be && c.clearcoatNormalScale.value.negate())), l.iridescence > 0 && (c.iridescence.value = l.iridescence, c.iridescenceIOR.value = l.iridescenceIOR, c.iridescenceThicknessMinimum.value = l.iridescenceThicknessRange[0], c.iridescenceThicknessMaximum.value = l.iridescenceThicknessRange[1], l.iridescenceMap && (c.iridescenceMap.value = l.iridescenceMap), l.iridescenceThicknessMap && (c.iridescenceThicknessMap.value = l.iridescenceThicknessMap)), l.transmission > 0 && (c.transmission.value = l.transmission, c.transmissionSamplerMap.value = w.texture, c.transmissionSamplerSize.value.set(w.width, w.height), l.transmissionMap && (c.transmissionMap.value = l.transmissionMap), c.thickness.value = l.thickness, l.thicknessMap && (c.thicknessMap.value = l.thicknessMap), c.attenuationDistance.value = l.attenuationDistance, c.attenuationColor.value.copy(l.attenuationColor)), c.specularIntensity.value = l.specularIntensity, c.specularColor.value.copy(l.specularColor), l.specularIntensityMap && (c.specularIntensityMap.value = l.specularIntensityMap), l.specularColorMap && (c.specularColorMap.value = l.specularColorMap);
12382
12382
  }
12383
12383
  function r(c, l) {
12384
12384
  l.matcap && (c.matcap.value = l.matcap);
@@ -12671,7 +12671,7 @@ function An(t = {}) {
12671
12671
  WA.render(kA, SA);
12672
12672
  }, this.compile = function(b, tA) {
12673
12673
  function eA(iA, wA, U) {
12674
- iA.transparent === !0 && iA.side === Tg ? (iA.side = oe, iA.needsUpdate = !0, $i(iA, wA, U), iA.side = Je, iA.needsUpdate = !0, $i(iA, wA, U), iA.side = Tg) : $i(iA, wA, U);
12674
+ iA.transparent === !0 && iA.side === Tg ? (iA.side = Be, iA.needsUpdate = !0, Ae(iA, wA, U), iA.side = Je, iA.needsUpdate = !0, Ae(iA, wA, U), iA.side = Tg) : Ae(iA, wA, U);
12675
12675
  }
12676
12676
  n = x.get(b), n.init(), h.push(n), b.traverseVisible(function(iA) {
12677
12677
  iA.isLight && iA.layers.test(tA.layers) && (n.pushLight(iA), iA.castShadow && n.pushShadow(iA));
@@ -12777,9 +12777,9 @@ function An(t = {}) {
12777
12777
  }
12778
12778
  }
12779
12779
  function Bt(b, tA, eA, iA, wA, U) {
12780
- b.onBeforeRender(c, tA, eA, iA, wA, U), b.modelViewMatrix.multiplyMatrices(eA.matrixWorldInverse, b.matrixWorld), b.normalMatrix.getNormalMatrix(b.modelViewMatrix), wA.onBeforeRender(c, tA, eA, iA, b, U), wA.transparent === !0 && wA.side === Tg ? (wA.side = oe, wA.needsUpdate = !0, c.renderBufferDirect(eA, tA, iA, wA, b, U), wA.side = Je, wA.needsUpdate = !0, c.renderBufferDirect(eA, tA, iA, wA, b, U), wA.side = Tg) : c.renderBufferDirect(eA, tA, iA, wA, b, U), b.onAfterRender(c, tA, eA, iA, wA, U);
12780
+ b.onBeforeRender(c, tA, eA, iA, wA, U), b.modelViewMatrix.multiplyMatrices(eA.matrixWorldInverse, b.matrixWorld), b.normalMatrix.getNormalMatrix(b.modelViewMatrix), wA.onBeforeRender(c, tA, eA, iA, b, U), wA.transparent === !0 && wA.side === Tg ? (wA.side = Be, wA.needsUpdate = !0, c.renderBufferDirect(eA, tA, iA, wA, b, U), wA.side = Je, wA.needsUpdate = !0, c.renderBufferDirect(eA, tA, iA, wA, b, U), wA.side = Tg) : c.renderBufferDirect(eA, tA, iA, wA, b, U), b.onAfterRender(c, tA, eA, iA, wA, U);
12781
12781
  }
12782
- function $i(b, tA, eA) {
12782
+ function Ae(b, tA, eA) {
12783
12783
  tA.isScene !== !0 && (tA = uA);
12784
12784
  const iA = cA.get(b), wA = n.state.lights, U = n.state.shadowsArray, J = wA.state.version, v = AI.getParameters(b, wA.state, U, tA, eA), j = AI.getProgramCacheKey(v);
12785
12785
  let oA = iA.programs;
@@ -12809,7 +12809,7 @@ function An(t = {}) {
12809
12809
  let BI = !1;
12810
12810
  iA.version === NA.__version ? (NA.needsLights && NA.lightsStateVersion !== cI.state.version || NA.outputEncoding !== v || wA.isInstancedMesh && NA.instancing === !1 || !wA.isInstancedMesh && NA.instancing === !0 || wA.isSkinnedMesh && NA.skinning === !1 || !wA.isSkinnedMesh && NA.skinning === !0 || NA.envMap !== j || iA.fog === !0 && NA.fog !== U || NA.numClippingPlanes !== void 0 && (NA.numClippingPlanes !== L.numPlanes || NA.numIntersection !== L.numIntersection) || NA.vertexAlphas !== oA || NA.vertexTangents !== IA || NA.morphTargets !== lA || NA.morphNormals !== kA || NA.morphColors !== LA || NA.toneMapping !== SA || PA.isWebGL2 === !0 && NA.morphTargetsCount !== WA) && (BI = !0) : (BI = !0, NA.__version = iA.version);
12811
12811
  let iI = NA.currentProgram;
12812
- BI === !0 && (iI = $i(iA, tA, wA));
12812
+ BI === !0 && (iI = Ae(iA, tA, wA));
12813
12813
  let nI = !1, GI = !1, ig = !1;
12814
12814
  const JI = iI.getUniforms(), kg = NA.uniforms;
12815
12815
  if (UA.useProgram(iI.program) && (nI = !0, GI = !0, ig = !0), iA.id !== d && (d = iA.id, GI = !0), nI || u !== b) {
@@ -12834,7 +12834,7 @@ function An(t = {}) {
12834
12834
  const jI = eA.morphAttributes;
12835
12835
  if ((jI.position !== void 0 || jI.normal !== void 0 || jI.color !== void 0 && PA.isWebGL2 === !0) && FA.update(wA, eA, iA, iI), (GI || NA.receiveShadow !== wA.receiveShadow) && (NA.receiveShadow = wA.receiveShadow, JI.setValue(z, "receiveShadow", wA.receiveShadow)), iA.isMeshGouraudMaterial && iA.envMap !== null && (kg.envMap.value = j, kg.flipEnvMap.value = j.isCubeTexture && j.isRenderTargetTexture === !1 ? -1 : 1), GI && (JI.setValue(z, "toneMappingExposure", c.toneMappingExposure), NA.needsLights && Gs(kg, ig), U && iA.fog === !0 && MI.refreshFogUniforms(kg, U), MI.refreshMaterialUniforms(kg, iA, N, M, EA), jh.upload(z, NA.uniformsList, kg, DA)), iA.isShaderMaterial && iA.uniformsNeedUpdate === !0 && (jh.upload(z, NA.uniformsList, kg, DA), iA.uniformsNeedUpdate = !1), iA.isSpriteMaterial && JI.setValue(z, "center", wA.center), JI.setValue(z, "modelViewMatrix", wA.modelViewMatrix), JI.setValue(z, "normalMatrix", wA.normalMatrix), JI.setValue(z, "modelMatrix", wA.matrixWorld), iA.isShaderMaterial || iA.isRawShaderMaterial) {
12836
12836
  const dI = iA.uniformsGroups;
12837
- for (let rg = 0, Ae = dI.length; rg < Ae; rg++)
12837
+ for (let rg = 0, Ie = dI.length; rg < Ie; rg++)
12838
12838
  if (PA.isWebGL2) {
12839
12839
  const Mg = dI[rg];
12840
12840
  pA.update(Mg, iI), pA.bind(Mg, iI);
@@ -15811,7 +15811,7 @@ function V0(t, A, I) {
15811
15811
  }
15812
15812
  var z0 = /* @__PURE__ */ Object.freeze({
15813
15813
  __proto__: null,
15814
- BoxGeometry: zI,
15814
+ BoxGeometry: XI,
15815
15815
  CapsuleGeometry: KE,
15816
15816
  CircleGeometry: JE,
15817
15817
  ConeGeometry: qE,
@@ -15822,7 +15822,7 @@ var z0 = /* @__PURE__ */ Object.freeze({
15822
15822
  IcosahedronGeometry: gn,
15823
15823
  LatheGeometry: In,
15824
15824
  OctahedronGeometry: zt,
15825
- PlaneGeometry: ae,
15825
+ PlaneGeometry: zi,
15826
15826
  PolyhedronGeometry: Co,
15827
15827
  RingGeometry: en,
15828
15828
  ShapeGeometry: bE,
@@ -17032,7 +17032,7 @@ class my {
17032
17032
  }
17033
17033
  class KH extends my {
17034
17034
  constructor() {
17035
- super(new Eg(50, 1, 0.5, 500)), this.isSpotLightShadow = !0, this.focus = 1;
17035
+ super(new Cg(50, 1, 0.5, 500)), this.isSpotLightShadow = !0, this.focus = 1;
17036
17036
  }
17037
17037
  updateMatrices(A) {
17038
17038
  const I = this.camera, g = $a * 2 * A.angle * this.focus, i = this.mapSize.width / this.mapSize.height, e = A.distance || I.far;
@@ -17062,7 +17062,7 @@ class Ol extends eB {
17062
17062
  const AG = /* @__PURE__ */ new XA(), Vn = /* @__PURE__ */ new k(), Pd = /* @__PURE__ */ new k();
17063
17063
  class JH extends my {
17064
17064
  constructor() {
17065
- super(new Eg(90, 1, 0.5, 500)), this.isPointLightShadow = !0, this._frameExtents = new QA(4, 2), this._viewportCount = 6, this._viewports = [
17065
+ super(new Cg(90, 1, 0.5, 500)), this.isPointLightShadow = !0, this._frameExtents = new QA(4, 2), this._viewportCount = 6, this._viewports = [
17066
17066
  // These viewports map a cube-map onto a 2D texture with the
17067
17067
  // following orientation:
17068
17068
  //
@@ -17335,7 +17335,7 @@ class Wl extends Li {
17335
17335
  MeshLambertMaterial: pR,
17336
17336
  MeshDepthMaterial: sy,
17337
17337
  MeshDistanceMaterial: Qy,
17338
- MeshBasicMaterial: Cg,
17338
+ MeshBasicMaterial: og,
17339
17339
  MeshMatcapMaterial: yR,
17340
17340
  LineDashedMaterial: SR,
17341
17341
  LineBasicMaterial: qg,
@@ -17686,7 +17686,7 @@ class LH extends Li {
17686
17686
  C = new jo(), A.background !== void 0 && (Number.isInteger(A.background) ? C.background = new T(A.background) : C.background = s(A.background)), A.environment !== void 0 && (C.environment = s(A.environment)), A.fog !== void 0 && (A.fog.type === "Fog" ? C.fog = new Ll(A.fog.color, A.fog.near, A.fog.far) : A.fog.type === "FogExp2" && (C.fog = new ql(A.fog.color, A.fog.density))), A.backgroundBlurriness !== void 0 && (C.backgroundBlurriness = A.backgroundBlurriness);
17687
17687
  break;
17688
17688
  case "PerspectiveCamera":
17689
- C = new Eg(A.fov, A.aspect, A.near, A.far), A.focus !== void 0 && (C.focus = A.focus), A.zoom !== void 0 && (C.zoom = A.zoom), A.filmGauge !== void 0 && (C.filmGauge = A.filmGauge), A.filmOffset !== void 0 && (C.filmOffset = A.filmOffset), A.view !== void 0 && (C.view = Object.assign({}, A.view));
17689
+ C = new Cg(A.fov, A.aspect, A.near, A.far), A.focus !== void 0 && (C.focus = A.focus), A.zoom !== void 0 && (C.zoom = A.zoom), A.filmGauge !== void 0 && (C.filmGauge = A.filmGauge), A.filmOffset !== void 0 && (C.filmOffset = A.filmOffset), A.view !== void 0 && (C.view = Object.assign({}, A.view));
17690
17690
  break;
17691
17691
  case "OrthographicCamera":
17692
17692
  C = new iB(A.left, A.right, A.top, A.bottom, A.near, A.far), A.zoom !== void 0 && (C.zoom = A.zoom), A.view !== void 0 && (C.view = Object.assign({}, A.view));
@@ -17871,7 +17871,7 @@ class xH extends LQ {
17871
17871
  const iG = /* @__PURE__ */ new XA(), eG = /* @__PURE__ */ new XA(), DB = /* @__PURE__ */ new XA();
17872
17872
  class HH {
17873
17873
  constructor() {
17874
- this.type = "StereoCamera", this.aspect = 1, this.eyeSep = 0.064, this.cameraL = new Eg(), this.cameraL.layers.enable(1), this.cameraL.matrixAutoUpdate = !1, this.cameraR = new Eg(), this.cameraR.layers.enable(2), this.cameraR.matrixAutoUpdate = !1, this._cache = {
17874
+ this.type = "StereoCamera", this.aspect = 1, this.eyeSep = 0.064, this.cameraL = new Cg(), this.cameraL.layers.enable(1), this.cameraL.matrixAutoUpdate = !1, this.cameraR = new Cg(), this.cameraR.layers.enable(2), this.cameraR.matrixAutoUpdate = !1, this._cache = {
17875
17875
  focus: null,
17876
17876
  fov: null,
17877
17877
  aspect: null,
@@ -19512,7 +19512,7 @@ function LR(t) {
19512
19512
  }
19513
19513
  class Qv extends MA {
19514
19514
  constructor(A, I, g) {
19515
- const i = new Ct(I, 4, 2), e = new Cg({ wireframe: !0, fog: !1, toneMapped: !1 });
19515
+ const i = new Ct(I, 4, 2), e = new og({ wireframe: !0, fog: !1, toneMapped: !1 });
19516
19516
  super(i, e), this.light = A, this.color = g, this.type = "PointLightHelper", this.matrix = this.light.matrixWorld, this.matrixAutoUpdate = !1, this.update();
19517
19517
  }
19518
19518
  dispose() {
@@ -19527,7 +19527,7 @@ class av extends HA {
19527
19527
  constructor(A, I, g) {
19528
19528
  super(), this.light = A, this.matrix = A.matrixWorld, this.matrixAutoUpdate = !1, this.color = g, this.type = "HemisphereLightHelper";
19529
19529
  const i = new zt(I);
19530
- i.rotateY(Math.PI * 0.5), this.material = new Cg({ wireframe: !0, fog: !1, toneMapped: !1 }), this.color === void 0 && (this.material.vertexColors = !0);
19530
+ i.rotateY(Math.PI * 0.5), this.material = new og({ wireframe: !0, fog: !1, toneMapped: !1 }), this.color === void 0 && (this.material.vertexColors = !0);
19531
19531
  const e = i.getAttribute("position"), C = new Float32Array(e.count * 3);
19532
19532
  i.setAttribute("color", new EI(C, 3)), this.add(new MA(i, this.material)), this.update();
19533
19533
  }
@@ -19703,7 +19703,7 @@ class hv extends mg {
19703
19703
  const i = g, e = [1, -1, 0, -1, 1, 0, -1, -1, 0, 1, 1, 0, -1, 1, 0, -1, -1, 0, 1, -1, 0, 1, 1, 0], C = new hI();
19704
19704
  C.setAttribute("position", new $A(e, 3)), C.computeBoundingSphere(), super(C, new qg({ color: i, toneMapped: !1 })), this.type = "PlaneHelper", this.plane = A, this.size = I;
19705
19705
  const o = [1, 1, 0, -1, 1, 0, -1, -1, 0, 1, 1, 0, -1, -1, 0, 1, -1, 0], B = new hI();
19706
- B.setAttribute("position", new $A(o, 3)), B.computeBoundingSphere(), this.add(new MA(B, new Cg({ color: i, opacity: 0.2, transparent: !0, depthWrite: !1, toneMapped: !1 })));
19706
+ B.setAttribute("position", new $A(o, 3)), B.computeBoundingSphere(), this.add(new MA(B, new og({ color: i, opacity: 0.2, transparent: !0, depthWrite: !1, toneMapped: !1 })));
19707
19707
  }
19708
19708
  updateMatrixWorld(A) {
19709
19709
  this.position.set(0, 0, 0), this.scale.set(0.5 * this.size, 0.5 * this.size, 1), this.lookAt(this.plane.normal), this.translateZ(-this.plane.constant), super.updateMatrixWorld(A);
@@ -19717,7 +19717,7 @@ let oh, Zd;
19717
19717
  class cv extends HA {
19718
19718
  // dir is assumed to be normalized
19719
19719
  constructor(A = new k(0, 0, 1), I = new k(0, 0, 0), g = 1, i = 16776960, e = g * 0.2, C = e * 0.2) {
19720
- super(), this.type = "ArrowHelper", oh === void 0 && (oh = new hI(), oh.setAttribute("position", new $A([0, 0, 0, 0, 1, 0], 3)), Zd = new pg(0, 0.5, 1, 5, 1), Zd.translate(0, -0.5, 0)), this.position.copy(I), this.line = new mg(oh, new qg({ color: i, toneMapped: !1 })), this.line.matrixAutoUpdate = !1, this.add(this.line), this.cone = new MA(Zd, new Cg({ color: i, toneMapped: !1 })), this.cone.matrixAutoUpdate = !1, this.add(this.cone), this.setDirection(A), this.setLength(g, e, C);
19720
+ super(), this.type = "ArrowHelper", oh === void 0 && (oh = new hI(), oh.setAttribute("position", new $A([0, 0, 0, 0, 1, 0], 3)), Zd = new pg(0, 0.5, 1, 5, 1), Zd.translate(0, -0.5, 0)), this.position.copy(I), this.line = new mg(oh, new qg({ color: i, toneMapped: !1 })), this.line.matrixAutoUpdate = !1, this.add(this.line), this.cone = new MA(Zd, new og({ color: i, toneMapped: !1 })), this.cone.matrixAutoUpdate = !1, this.add(this.cone), this.setDirection(A), this.setLength(g, e, C);
19721
19721
  }
19722
19722
  setDirection(A) {
19723
19723
  if (A.y > 0.99999)
@@ -19959,7 +19959,7 @@ class Sv extends RE {
19959
19959
  console.warn("THREE.DataTexture3D has been renamed to Data3DTexture."), super(A, I, g, i);
19960
19960
  }
19961
19961
  }
19962
- class fv extends zI {
19962
+ class fv extends XI {
19963
19963
  constructor(A, I, g, i, e, C) {
19964
19964
  console.warn("THREE.BoxBufferGeometry has been renamed to THREE.BoxGeometry."), super(A, I, g, i, e, C);
19965
19965
  }
@@ -20009,7 +20009,7 @@ class Kv extends zt {
20009
20009
  console.warn("THREE.OctahedronBufferGeometry has been renamed to THREE.OctahedronGeometry."), super(A, I);
20010
20010
  }
20011
20011
  }
20012
- class HR extends ae {
20012
+ class HR extends zi {
20013
20013
  constructor(A, I, g, i) {
20014
20014
  console.warn("THREE.PlaneBufferGeometry has been renamed to THREE.PlaneGeometry."), super(A, I, g, i);
20015
20015
  }
@@ -20084,7 +20084,7 @@ const Tv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20084
20084
  AudioListener: Ly,
20085
20085
  AudioLoader: Jc,
20086
20086
  AxesHelper: on,
20087
- BackSide: oe,
20087
+ BackSide: Be,
20088
20088
  BasicDepthPacking: FU,
20089
20089
  BasicShadowMap: uJ,
20090
20090
  Bone: Yl,
@@ -20093,7 +20093,7 @@ const Tv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20093
20093
  Box3: Ji,
20094
20094
  Box3Helper: rv,
20095
20095
  BoxBufferGeometry: fv,
20096
- BoxGeometry: zI,
20096
+ BoxGeometry: XI,
20097
20097
  BoxHelper: zl,
20098
20098
  BufferAttribute: EI,
20099
20099
  BufferGeometry: hI,
@@ -20259,12 +20259,12 @@ const Tv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20259
20259
  MOUSE: kB,
20260
20260
  Material: fg,
20261
20261
  MaterialLoader: Wl,
20262
- MathUtils: ne,
20262
+ MathUtils: ae,
20263
20263
  Matrix3: Og,
20264
20264
  Matrix4: XA,
20265
20265
  MaxEquation: iu,
20266
20266
  Mesh: MA,
20267
- MeshBasicMaterial: Cg,
20267
+ MeshBasicMaterial: og,
20268
20268
  MeshDepthMaterial: sy,
20269
20269
  MeshDistanceMaterial: Qy,
20270
20270
  MeshLambertMaterial: pR,
@@ -20309,10 +20309,10 @@ const Tv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20309
20309
  PCFSoftShadowMap: xp,
20310
20310
  PMREMGenerator: uu,
20311
20311
  Path: IE,
20312
- PerspectiveCamera: Eg,
20312
+ PerspectiveCamera: Cg,
20313
20313
  Plane: $e,
20314
20314
  PlaneBufferGeometry: HR,
20315
- PlaneGeometry: ae,
20315
+ PlaneGeometry: zi,
20316
20316
  PlaneHelper: hv,
20317
20317
  PointLight: _l,
20318
20318
  PointLightHelper: Qv,
@@ -21582,7 +21582,7 @@ const lQ = class {
21582
21582
  }
21583
21583
  };
21584
21584
  let Et = lQ;
21585
- E(Et, "planeGeometry", new ae(2, 2, 1, 1)), E(Et, "renderer", new An({ antialias: !1 })), E(Et, "perspectiveCam", new Eg()), E(Et, "scene", new jo()), E(Et, "vertex", `
21585
+ E(Et, "planeGeometry", new zi(2, 2, 1, 1)), E(Et, "renderer", new An({ antialias: !1 })), E(Et, "perspectiveCam", new Cg()), E(Et, "scene", new jo()), E(Et, "vertex", `
21586
21586
  varying vec2 vUv;
21587
21587
  void main(){
21588
21588
  vUv = uv;
@@ -22325,7 +22325,7 @@ Object.getOwnPropertyDescriptor(HA.prototype, "activeSelf") || Object.defineProp
22325
22325
  });
22326
22326
  ZT(HA);
22327
22327
  const Hu = Symbol("NEEDLE_NEED_UPDATE_INSTANCE");
22328
- class Be {
22328
+ class se {
22329
22329
  static isUsingInstancing(A) {
22330
22330
  return A.__isUsingInstancing === !0;
22331
22331
  }
@@ -22333,7 +22333,7 @@ class Be {
22333
22333
  static markDirty(A, I = !0) {
22334
22334
  if (A && (this.isUsingInstancing(A) && (A[Hu] = !0, A.matrixWorldNeedsUpdate = !0), I))
22335
22335
  for (const g of A.children)
22336
- Be.markDirty(g, !0);
22336
+ se.markDirty(g, !0);
22337
22337
  }
22338
22338
  }
22339
22339
  const Is = yA("debuggetcomponent");
@@ -22367,7 +22367,7 @@ function e2(t, A) {
22367
22367
  t.__isUsingInstancing = A;
22368
22368
  }
22369
22369
  function Wy(t) {
22370
- return Be.isUsingInstancing(t);
22370
+ return se.isUsingInstancing(t);
22371
22371
  }
22372
22372
  function ID(t, A) {
22373
22373
  return FQ(t, A, !0, !0);
@@ -22593,7 +22593,7 @@ function aI(t) {
22593
22593
  function Hc() {
22594
22594
  return Ac.byteLength === 0 && (Ac = new Float64Array(F.memory.buffer)), Ac;
22595
22595
  }
22596
- function Bg() {
22596
+ function sg() {
22597
22597
  return Ic.byteLength === 0 && (Ic = new Int32Array(F.memory.buffer)), Ic;
22598
22598
  }
22599
22599
  const rF = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 });
@@ -22607,11 +22607,11 @@ function W(t, A) {
22607
22607
  return t.ptr;
22608
22608
  }
22609
22609
  rF.decode();
22610
- let ic, ec, sg = 32;
22610
+ let ic, ec, Qg = 32;
22611
22611
  function yg(t) {
22612
- if (sg == 1)
22612
+ if (Qg == 1)
22613
22613
  throw new Error("out of js stack");
22614
- return _I[--sg] = t, sg;
22614
+ return _I[--Qg] = t, Qg;
22615
22615
  }
22616
22616
  function Na() {
22617
22617
  return ic.byteLength === 0 && (ic = new Float32Array(F.memory.buffer)), ic;
@@ -22722,7 +22722,7 @@ class Rg {
22722
22722
  try {
22723
22723
  const i = F.__wbindgen_add_to_stack_pointer(-16);
22724
22724
  F.rawcolliderset_coRadius(i, this.ptr, A);
22725
- var I = Bg()[i / 4 + 0], g = Na()[i / 4 + 1];
22725
+ var I = sg()[i / 4 + 0], g = Na()[i / 4 + 1];
22726
22726
  return I === 0 ? void 0 : g;
22727
22727
  } finally {
22728
22728
  F.__wbindgen_add_to_stack_pointer(16);
@@ -22732,7 +22732,7 @@ class Rg {
22732
22732
  try {
22733
22733
  const i = F.__wbindgen_add_to_stack_pointer(-16);
22734
22734
  F.rawcolliderset_coHalfHeight(i, this.ptr, A);
22735
- var I = Bg()[i / 4 + 0], g = Na()[i / 4 + 1];
22735
+ var I = sg()[i / 4 + 0], g = Na()[i / 4 + 1];
22736
22736
  return I === 0 ? void 0 : g;
22737
22737
  } finally {
22738
22738
  F.__wbindgen_add_to_stack_pointer(16);
@@ -22742,7 +22742,7 @@ class Rg {
22742
22742
  try {
22743
22743
  const i = F.__wbindgen_add_to_stack_pointer(-16);
22744
22744
  F.rawcolliderset_coRoundRadius(i, this.ptr, A);
22745
- var I = Bg()[i / 4 + 0], g = Na()[i / 4 + 1];
22745
+ var I = sg()[i / 4 + 0], g = Na()[i / 4 + 1];
22746
22746
  return I === 0 ? void 0 : g;
22747
22747
  } finally {
22748
22748
  F.__wbindgen_add_to_stack_pointer(16);
@@ -22752,7 +22752,7 @@ class Rg {
22752
22752
  try {
22753
22753
  const i = F.__wbindgen_add_to_stack_pointer(-16);
22754
22754
  F.rawcolliderset_coVertices(i, this.ptr, A);
22755
- var I = Bg()[i / 4 + 0], g = Bg()[i / 4 + 1];
22755
+ var I = sg()[i / 4 + 0], g = sg()[i / 4 + 1];
22756
22756
  let e;
22757
22757
  return I !== 0 && (e = RG(I, g).slice(), F.__wbindgen_free(I, 4 * g)), e;
22758
22758
  } finally {
@@ -22763,7 +22763,7 @@ class Rg {
22763
22763
  try {
22764
22764
  const i = F.__wbindgen_add_to_stack_pointer(-16);
22765
22765
  F.rawcolliderset_coIndices(i, this.ptr, A);
22766
- var I = Bg()[i / 4 + 0], g = Bg()[i / 4 + 1];
22766
+ var I = sg()[i / 4 + 0], g = sg()[i / 4 + 1];
22767
22767
  let e;
22768
22768
  return I !== 0 && (e = function(C, o) {
22769
22769
  return cF().subarray(C / 4, C / 4 + o);
@@ -22776,7 +22776,7 @@ class Rg {
22776
22776
  try {
22777
22777
  const i = F.__wbindgen_add_to_stack_pointer(-16);
22778
22778
  F.rawcolliderset_coHeightfieldHeights(i, this.ptr, A);
22779
- var I = Bg()[i / 4 + 0], g = Bg()[i / 4 + 1];
22779
+ var I = sg()[i / 4 + 0], g = sg()[i / 4 + 1];
22780
22780
  let e;
22781
22781
  return I !== 0 && (e = RG(I, g).slice(), F.__wbindgen_free(I, 4 * g)), e;
22782
22782
  } finally {
@@ -22791,7 +22791,7 @@ class Rg {
22791
22791
  try {
22792
22792
  const i = F.__wbindgen_add_to_stack_pointer(-16);
22793
22793
  F.rawcolliderset_coHeightfieldNRows(i, this.ptr, A);
22794
- var I = Bg()[i / 4 + 0], g = Bg()[i / 4 + 1];
22794
+ var I = sg()[i / 4 + 0], g = sg()[i / 4 + 1];
22795
22795
  return I === 0 ? void 0 : g >>> 0;
22796
22796
  } finally {
22797
22797
  F.__wbindgen_add_to_stack_pointer(16);
@@ -22801,7 +22801,7 @@ class Rg {
22801
22801
  try {
22802
22802
  const i = F.__wbindgen_add_to_stack_pointer(-16);
22803
22803
  F.rawcolliderset_coHeightfieldNCols(i, this.ptr, A);
22804
- var I = Bg()[i / 4 + 0], g = Bg()[i / 4 + 1];
22804
+ var I = sg()[i / 4 + 0], g = sg()[i / 4 + 1];
22805
22805
  return I === 0 ? void 0 : g >>> 0;
22806
22806
  } finally {
22807
22807
  F.__wbindgen_add_to_stack_pointer(16);
@@ -22811,7 +22811,7 @@ class Rg {
22811
22811
  try {
22812
22812
  const i = F.__wbindgen_add_to_stack_pointer(-16);
22813
22813
  F.rawcolliderset_coParent(i, this.ptr, A);
22814
- var I = Bg()[i / 4 + 0], g = Hc()[i / 8 + 1];
22814
+ var I = sg()[i / 4 + 0], g = Hc()[i / 8 + 1];
22815
22815
  return I === 0 ? void 0 : g;
22816
22816
  } finally {
22817
22817
  F.__wbindgen_add_to_stack_pointer(16);
@@ -22956,7 +22956,7 @@ class Rg {
22956
22956
  try {
22957
22957
  const M = F.__wbindgen_add_to_stack_pointer(-16);
22958
22958
  W(A, lI), W(I, nA), W(g, qI), W(C, nA), W(o, nA), W(B, qI), W(f, Fg), F.rawcolliderset_createCollider(M, this.ptr, A.ptr, I.ptr, g.ptr, i, e, C.ptr, o.ptr, B.ptr, s, Q, a, n, r, h, c, l, w, p, D, d, u, y, f.ptr);
22959
- var S = Bg()[M / 4 + 0], G = Hc()[M / 8 + 1];
22959
+ var S = sg()[M / 4 + 0], G = Hc()[M / 8 + 1];
22960
22960
  return S === 0 ? void 0 : G;
22961
22961
  } finally {
22962
22962
  F.__wbindgen_add_to_stack_pointer(16);
@@ -22972,7 +22972,7 @@ class Rg {
22972
22972
  try {
22973
22973
  F.rawcolliderset_forEachColliderHandle(this.ptr, yg(A));
22974
22974
  } finally {
22975
- _I[sg++] = void 0;
22975
+ _I[Qg++] = void 0;
22976
22976
  }
22977
22977
  }
22978
22978
  }
@@ -23215,14 +23215,14 @@ class sE {
23215
23215
  try {
23216
23216
  F.raweventqueue_drainCollisionEvents(this.ptr, yg(A));
23217
23217
  } finally {
23218
- _I[sg++] = void 0;
23218
+ _I[Qg++] = void 0;
23219
23219
  }
23220
23220
  }
23221
23221
  drainContactForceEvents(A) {
23222
23222
  try {
23223
23223
  F.raweventqueue_drainContactForceEvents(this.ptr, yg(A));
23224
23224
  } finally {
23225
- _I[sg++] = void 0;
23225
+ _I[Qg++] = void 0;
23226
23226
  }
23227
23227
  }
23228
23228
  clear() {
@@ -23357,14 +23357,14 @@ class QC {
23357
23357
  try {
23358
23358
  F.rawimpulsejointset_forEachJointHandle(this.ptr, yg(A));
23359
23359
  } finally {
23360
- _I[sg++] = void 0;
23360
+ _I[Qg++] = void 0;
23361
23361
  }
23362
23362
  }
23363
23363
  forEachJointAttachedToRigidBody(A, I) {
23364
23364
  try {
23365
23365
  F.rawimpulsejointset_forEachJointAttachedToRigidBody(this.ptr, A, yg(I));
23366
23366
  } finally {
23367
- _I[sg++] = void 0;
23367
+ _I[Qg++] = void 0;
23368
23368
  }
23369
23369
  }
23370
23370
  }
@@ -23461,7 +23461,7 @@ class Mt {
23461
23461
  try {
23462
23462
  F.rawislandmanager_forEachActiveRigidBodyHandle(this.ptr, yg(A));
23463
23463
  } finally {
23464
- _I[sg++] = void 0;
23464
+ _I[Qg++] = void 0;
23465
23465
  }
23466
23466
  }
23467
23467
  }
@@ -23529,14 +23529,14 @@ let Io = class {
23529
23529
  try {
23530
23530
  F.rawmultibodyjointset_forEachJointHandle(this.ptr, yg(A));
23531
23531
  } finally {
23532
- _I[sg++] = void 0;
23532
+ _I[Qg++] = void 0;
23533
23533
  }
23534
23534
  }
23535
23535
  forEachJointAttachedToRigidBody(A, I) {
23536
23536
  try {
23537
23537
  F.rawmultibodyjointset_forEachJointAttachedToRigidBody(this.ptr, A, yg(I));
23538
23538
  } finally {
23539
- _I[sg++] = void 0;
23539
+ _I[Qg++] = void 0;
23540
23540
  }
23541
23541
  }
23542
23542
  };
@@ -23625,7 +23625,7 @@ class Oc {
23625
23625
  try {
23626
23626
  const g = F.__wbindgen_add_to_stack_pointer(-16);
23627
23627
  F.rawpointcolliderprojection_featureId(g, this.ptr);
23628
- var A = Bg()[g / 4 + 0], I = Bg()[g / 4 + 1];
23628
+ var A = sg()[g / 4 + 0], I = sg()[g / 4 + 1];
23629
23629
  return A === 0 ? void 0 : I >>> 0;
23630
23630
  } finally {
23631
23631
  F.__wbindgen_add_to_stack_pointer(16);
@@ -23679,7 +23679,7 @@ class _c {
23679
23679
  const n = F.rawquerypipeline_castRay(this.ptr, A.ptr, I.ptr, g.ptr, i.ptr, e, C, o, !aI(B), aI(B) ? 0 : B, !aI(s), aI(s) ? 0 : s, !aI(Q), aI(Q) ? 0 : Q, yg(a));
23680
23680
  return n === 0 ? void 0 : Vy.__wrap(n);
23681
23681
  } finally {
23682
- _I[sg++] = void 0;
23682
+ _I[Qg++] = void 0;
23683
23683
  }
23684
23684
  }
23685
23685
  castRayAndGetNormal(A, I, g, i, e, C, o, B, s, Q, a) {
@@ -23688,24 +23688,24 @@ class _c {
23688
23688
  const n = F.rawquerypipeline_castRayAndGetNormal(this.ptr, A.ptr, I.ptr, g.ptr, i.ptr, e, C, o, !aI(B), aI(B) ? 0 : B, !aI(s), aI(s) ? 0 : s, !aI(Q), aI(Q) ? 0 : Q, yg(a));
23689
23689
  return n === 0 ? void 0 : tD.__wrap(n);
23690
23690
  } finally {
23691
- _I[sg++] = void 0;
23691
+ _I[Qg++] = void 0;
23692
23692
  }
23693
23693
  }
23694
23694
  intersectionsWithRay(A, I, g, i, e, C, o, B, s, Q, a, n) {
23695
23695
  try {
23696
23696
  W(A, Fg), W(I, Rg), W(g, nA), W(i, nA), F.rawquerypipeline_intersectionsWithRay(this.ptr, A.ptr, I.ptr, g.ptr, i.ptr, e, C, yg(o), B, !aI(s), aI(s) ? 0 : s, !aI(Q), aI(Q) ? 0 : Q, !aI(a), aI(a) ? 0 : a, yg(n));
23697
23697
  } finally {
23698
- _I[sg++] = void 0, _I[sg++] = void 0;
23698
+ _I[Qg++] = void 0, _I[Qg++] = void 0;
23699
23699
  }
23700
23700
  }
23701
23701
  intersectionWithShape(A, I, g, i, e, C, o, B, s, Q) {
23702
23702
  try {
23703
23703
  const r = F.__wbindgen_add_to_stack_pointer(-16);
23704
23704
  W(A, Fg), W(I, Rg), W(g, nA), W(i, qI), W(e, lI), F.rawquerypipeline_intersectionWithShape(r, this.ptr, A.ptr, I.ptr, g.ptr, i.ptr, e.ptr, C, !aI(o), aI(o) ? 0 : o, !aI(B), aI(B) ? 0 : B, !aI(s), aI(s) ? 0 : s, yg(Q));
23705
- var a = Bg()[r / 4 + 0], n = Hc()[r / 8 + 1];
23705
+ var a = sg()[r / 4 + 0], n = Hc()[r / 8 + 1];
23706
23706
  return a === 0 ? void 0 : n;
23707
23707
  } finally {
23708
- F.__wbindgen_add_to_stack_pointer(16), _I[sg++] = void 0;
23708
+ F.__wbindgen_add_to_stack_pointer(16), _I[Qg++] = void 0;
23709
23709
  }
23710
23710
  }
23711
23711
  projectPoint(A, I, g, i, e, C, o, B, s) {
@@ -23714,7 +23714,7 @@ class _c {
23714
23714
  const Q = F.rawquerypipeline_projectPoint(this.ptr, A.ptr, I.ptr, g.ptr, i, e, !aI(C), aI(C) ? 0 : C, !aI(o), aI(o) ? 0 : o, !aI(B), aI(B) ? 0 : B, yg(s));
23715
23715
  return Q === 0 ? void 0 : Oc.__wrap(Q);
23716
23716
  } finally {
23717
- _I[sg++] = void 0;
23717
+ _I[Qg++] = void 0;
23718
23718
  }
23719
23719
  }
23720
23720
  projectPointAndGetFeature(A, I, g, i, e, C, o, B) {
@@ -23723,14 +23723,14 @@ class _c {
23723
23723
  const s = F.rawquerypipeline_projectPointAndGetFeature(this.ptr, A.ptr, I.ptr, g.ptr, i, !aI(e), aI(e) ? 0 : e, !aI(C), aI(C) ? 0 : C, !aI(o), aI(o) ? 0 : o, yg(B));
23724
23724
  return s === 0 ? void 0 : Oc.__wrap(s);
23725
23725
  } finally {
23726
- _I[sg++] = void 0;
23726
+ _I[Qg++] = void 0;
23727
23727
  }
23728
23728
  }
23729
23729
  intersectionsWithPoint(A, I, g, i, e, C, o, B, s) {
23730
23730
  try {
23731
23731
  W(A, Fg), W(I, Rg), W(g, nA), F.rawquerypipeline_intersectionsWithPoint(this.ptr, A.ptr, I.ptr, g.ptr, yg(i), e, !aI(C), aI(C) ? 0 : C, !aI(o), aI(o) ? 0 : o, !aI(B), aI(B) ? 0 : B, yg(s));
23732
23732
  } finally {
23733
- _I[sg++] = void 0, _I[sg++] = void 0;
23733
+ _I[Qg++] = void 0, _I[Qg++] = void 0;
23734
23734
  }
23735
23735
  }
23736
23736
  castShape(A, I, g, i, e, C, o, B, s, Q, a, n) {
@@ -23739,21 +23739,21 @@ class _c {
23739
23739
  const r = F.rawquerypipeline_castShape(this.ptr, A.ptr, I.ptr, g.ptr, i.ptr, e.ptr, C.ptr, o, B, !aI(s), aI(s) ? 0 : s, !aI(Q), aI(Q) ? 0 : Q, !aI(a), aI(a) ? 0 : a, yg(n));
23740
23740
  return r === 0 ? void 0 : oD.__wrap(r);
23741
23741
  } finally {
23742
- _I[sg++] = void 0;
23742
+ _I[Qg++] = void 0;
23743
23743
  }
23744
23744
  }
23745
23745
  intersectionsWithShape(A, I, g, i, e, C, o, B, s, Q, a) {
23746
23746
  try {
23747
23747
  W(A, Fg), W(I, Rg), W(g, nA), W(i, qI), W(e, lI), F.rawquerypipeline_intersectionsWithShape(this.ptr, A.ptr, I.ptr, g.ptr, i.ptr, e.ptr, yg(C), o, !aI(B), aI(B) ? 0 : B, !aI(s), aI(s) ? 0 : s, !aI(Q), aI(Q) ? 0 : Q, yg(a));
23748
23748
  } finally {
23749
- _I[sg++] = void 0, _I[sg++] = void 0;
23749
+ _I[Qg++] = void 0, _I[Qg++] = void 0;
23750
23750
  }
23751
23751
  }
23752
23752
  collidersWithAabbIntersectingAabb(A, I, g) {
23753
23753
  try {
23754
23754
  W(A, nA), W(I, nA), F.rawquerypipeline_collidersWithAabbIntersectingAabb(this.ptr, A.ptr, I.ptr, yg(g));
23755
23755
  } finally {
23756
- _I[sg++] = void 0;
23756
+ _I[Qg++] = void 0;
23757
23757
  }
23758
23758
  }
23759
23759
  }
@@ -23787,7 +23787,7 @@ class tD {
23787
23787
  try {
23788
23788
  const g = F.__wbindgen_add_to_stack_pointer(-16);
23789
23789
  F.rawpointcolliderprojection_featureId(g, this.ptr);
23790
- var A = Bg()[g / 4 + 0], I = Bg()[g / 4 + 1];
23790
+ var A = sg()[g / 4 + 0], I = sg()[g / 4 + 1];
23791
23791
  return A === 0 ? void 0 : I >>> 0;
23792
23792
  } finally {
23793
23793
  F.__wbindgen_add_to_stack_pointer(16);
@@ -23841,7 +23841,7 @@ class CD {
23841
23841
  try {
23842
23842
  const g = F.__wbindgen_add_to_stack_pointer(-16);
23843
23843
  F.rawrayintersection_featureId(g, this.ptr);
23844
- var A = Bg()[g / 4 + 0], I = Bg()[g / 4 + 1];
23844
+ var A = sg()[g / 4 + 0], I = sg()[g / 4 + 1];
23845
23845
  return A === 0 ? void 0 : I >>> 0;
23846
23846
  } finally {
23847
23847
  F.__wbindgen_add_to_stack_pointer(16);
@@ -24040,7 +24040,7 @@ class Fg {
24040
24040
  try {
24041
24041
  F.rawrigidbodyset_forEachRigidBodyHandle(this.ptr, yg(A));
24042
24042
  } finally {
24043
- _I[sg++] = void 0;
24043
+ _I[Qg++] = void 0;
24044
24044
  }
24045
24045
  }
24046
24046
  }
@@ -24402,7 +24402,7 @@ async function dF(t) {
24402
24402
  return vg(e);
24403
24403
  }, i.wbg.__wbindgen_number_get = function(e, C) {
24404
24404
  const o = PI(C), B = typeof o == "number" ? o : void 0;
24405
- Hc()[e / 8 + 1] = aI(B) ? 0 : B, Bg()[e / 4 + 0] = !aI(B);
24405
+ Hc()[e / 8 + 1] = aI(B) ? 0 : B, sg()[e / 4 + 0] = !aI(B);
24406
24406
  }, i.wbg.__wbindgen_boolean_get = function(e) {
24407
24407
  const C = PI(e);
24408
24408
  return typeof C == "boolean" ? C ? 1 : 0 : 2;
@@ -24520,10 +24520,10 @@ class FI {
24520
24520
  A.x = I.x, A.y = I.y, A.z = I.z, A.w = I.w;
24521
24521
  }
24522
24522
  }
24523
- var te, Zg, Tu, we, vQ, xI, Wc, OB, Ou, Zc, _u, Pu;
24523
+ var Ce, Zg, Tu, we, vQ, xI, Wc, OB, Ou, Zc, _u, Pu;
24524
24524
  (function(t) {
24525
24525
  t[t.Dynamic = 0] = "Dynamic", t[t.Fixed = 1] = "Fixed", t[t.KinematicPositionBased = 2] = "KinematicPositionBased", t[t.KinematicVelocityBased = 3] = "KinematicVelocityBased";
24526
- })(te || (te = {}));
24526
+ })(Ce || (Ce = {}));
24527
24527
  class jc {
24528
24528
  constructor(A, I, g) {
24529
24529
  this.rawSet = A, this.colliderSet = I, this.handle = g;
@@ -24706,28 +24706,28 @@ class vt {
24706
24706
  this.status = A, this.translation = CA.zeros(), this.rotation = FI.identity(), this.gravityScale = 1, this.linvel = CA.zeros(), this.mass = 0, this.massOnly = !1, this.centerOfMass = CA.zeros(), this.translationsEnabledX = !0, this.translationsEnabledY = !0, this.angvel = CA.zeros(), this.principalAngularInertia = CA.zeros(), this.angularInertiaLocalFrame = FI.identity(), this.translationsEnabledZ = !0, this.rotationsEnabledX = !0, this.rotationsEnabledY = !0, this.rotationsEnabledZ = !0, this.linearDamping = 0, this.angularDamping = 0, this.canSleep = !0, this.sleeping = !1, this.ccdEnabled = !1, this.dominanceGroup = 0;
24707
24707
  }
24708
24708
  static dynamic() {
24709
- return new vt(te.Dynamic);
24709
+ return new vt(Ce.Dynamic);
24710
24710
  }
24711
24711
  static kinematicPositionBased() {
24712
- return new vt(te.KinematicPositionBased);
24712
+ return new vt(Ce.KinematicPositionBased);
24713
24713
  }
24714
24714
  static kinematicVelocityBased() {
24715
- return new vt(te.KinematicVelocityBased);
24715
+ return new vt(Ce.KinematicVelocityBased);
24716
24716
  }
24717
24717
  static fixed() {
24718
- return new vt(te.Fixed);
24718
+ return new vt(Ce.Fixed);
24719
24719
  }
24720
24720
  static newDynamic() {
24721
- return new vt(te.Dynamic);
24721
+ return new vt(Ce.Dynamic);
24722
24722
  }
24723
24723
  static newKinematicPositionBased() {
24724
- return new vt(te.KinematicPositionBased);
24724
+ return new vt(Ce.KinematicPositionBased);
24725
24725
  }
24726
24726
  static newKinematicVelocityBased() {
24727
- return new vt(te.KinematicVelocityBased);
24727
+ return new vt(Ce.KinematicVelocityBased);
24728
24728
  }
24729
24729
  static newStatic() {
24730
- return new vt(te.Fixed);
24730
+ return new vt(Ce.Fixed);
24731
24731
  }
24732
24732
  setDominanceGroup(A) {
24733
24733
  return this.dominanceGroup = A, this;
@@ -25845,81 +25845,81 @@ class Xc {
25845
25845
  (function(t) {
25846
25846
  t[t.Density = 0] = "Density", t[t.Mass = 1] = "Mass", t[t.MassProps = 2] = "MassProps";
25847
25847
  })(OB || (OB = {}));
25848
- class og {
25848
+ class Bg {
25849
25849
  constructor(A) {
25850
25850
  this.shape = A, this.massPropsMode = OB.Density, this.density = 1, this.friction = 0.5, this.restitution = 0, this.rotation = FI.identity(), this.translation = CA.zeros(), this.isSensor = !1, this.collisionGroups = 4294967295, this.solverGroups = 4294967295, this.frictionCombineRule = we.Average, this.restitutionCombineRule = we.Average, this.activeCollisionTypes = Wc.DEFAULT, this.activeEvents = 0, this.activeHooks = 0, this.mass = 0, this.centerOfMass = CA.zeros(), this.contactForceEventThreshold = 0, this.principalAngularInertia = CA.zeros(), this.angularInertiaLocalFrame = FI.identity();
25851
25851
  }
25852
25852
  static ball(A) {
25853
25853
  const I = new $y(A);
25854
- return new og(I);
25854
+ return new Bg(I);
25855
25855
  }
25856
25856
  static capsule(A, I) {
25857
25857
  const g = new gS(A, I);
25858
- return new og(g);
25858
+ return new Bg(g);
25859
25859
  }
25860
25860
  static segment(A, I) {
25861
25861
  const g = new iS(A, I);
25862
- return new og(g);
25862
+ return new Bg(g);
25863
25863
  }
25864
25864
  static triangle(A, I, g) {
25865
25865
  const i = new eS(A, I, g);
25866
- return new og(i);
25866
+ return new Bg(i);
25867
25867
  }
25868
25868
  static roundTriangle(A, I, g, i) {
25869
25869
  const e = new tS(A, I, g, i);
25870
- return new og(e);
25870
+ return new Bg(e);
25871
25871
  }
25872
25872
  static polyline(A, I) {
25873
25873
  const g = new CS(A, I);
25874
- return new og(g);
25874
+ return new Bg(g);
25875
25875
  }
25876
25876
  static trimesh(A, I) {
25877
25877
  const g = new oS(A, I);
25878
- return new og(g);
25878
+ return new Bg(g);
25879
25879
  }
25880
25880
  static cuboid(A, I, g) {
25881
25881
  const i = new AS(A, I, g);
25882
- return new og(i);
25882
+ return new Bg(i);
25883
25883
  }
25884
25884
  static roundCuboid(A, I, g, i) {
25885
25885
  const e = new IS(A, I, g, i);
25886
- return new og(e);
25886
+ return new Bg(e);
25887
25887
  }
25888
25888
  static heightfield(A, I, g, i) {
25889
25889
  const e = new BS(A, I, g, i);
25890
- return new og(e);
25890
+ return new Bg(e);
25891
25891
  }
25892
25892
  static cylinder(A, I) {
25893
25893
  const g = new sS(A, I);
25894
- return new og(g);
25894
+ return new Bg(g);
25895
25895
  }
25896
25896
  static roundCylinder(A, I, g) {
25897
25897
  const i = new QS(A, I, g);
25898
- return new og(i);
25898
+ return new Bg(i);
25899
25899
  }
25900
25900
  static cone(A, I) {
25901
25901
  const g = new nS(A, I);
25902
- return new og(g);
25902
+ return new Bg(g);
25903
25903
  }
25904
25904
  static roundCone(A, I, g) {
25905
25905
  const i = new aS(A, I, g);
25906
- return new og(i);
25906
+ return new Bg(i);
25907
25907
  }
25908
25908
  static convexHull(A) {
25909
25909
  const I = new Vc(A, null);
25910
- return new og(I);
25910
+ return new Bg(I);
25911
25911
  }
25912
25912
  static convexMesh(A, I) {
25913
25913
  const g = new Vc(A, I);
25914
- return new og(g);
25914
+ return new Bg(g);
25915
25915
  }
25916
25916
  static roundConvexHull(A, I) {
25917
25917
  const g = new zc(A, null, I);
25918
- return new og(g);
25918
+ return new Bg(g);
25919
25919
  }
25920
25920
  static roundConvexMesh(A, I, g) {
25921
25921
  const i = new zc(A, I, g);
25922
- return new og(i);
25922
+ return new Bg(i);
25923
25923
  }
25924
25924
  setTranslation(A, I, g) {
25925
25925
  if (typeof A != "number" || typeof I != "number" || typeof g != "number")
@@ -26206,41 +26206,41 @@ class XE {
26206
26206
  this.bodies.forEachActiveRigidBody(this.islands, A);
26207
26207
  }
26208
26208
  castRay(A, I, g, i, e, C, o, B) {
26209
- return this.queryPipeline.castRay(this.bodies, this.colliders, A, I, g, i, e, C ? C.handle : null, o ? o.handle : null, Ie(this.colliders, B));
26209
+ return this.queryPipeline.castRay(this.bodies, this.colliders, A, I, g, i, e, C ? C.handle : null, o ? o.handle : null, ge(this.colliders, B));
26210
26210
  }
26211
26211
  castRayAndGetNormal(A, I, g, i, e, C, o, B) {
26212
- return this.queryPipeline.castRayAndGetNormal(this.bodies, this.colliders, A, I, g, i, e, C ? C.handle : null, o ? o.handle : null, Ie(this.colliders, B));
26212
+ return this.queryPipeline.castRayAndGetNormal(this.bodies, this.colliders, A, I, g, i, e, C ? C.handle : null, o ? o.handle : null, ge(this.colliders, B));
26213
26213
  }
26214
26214
  intersectionsWithRay(A, I, g, i, e, C, o, B, s) {
26215
- this.queryPipeline.intersectionsWithRay(this.bodies, this.colliders, A, I, g, i, e, C, o ? o.handle : null, B ? B.handle : null, Ie(this.colliders, s));
26215
+ this.queryPipeline.intersectionsWithRay(this.bodies, this.colliders, A, I, g, i, e, C, o ? o.handle : null, B ? B.handle : null, ge(this.colliders, s));
26216
26216
  }
26217
26217
  intersectionWithShape(A, I, g, i, e, C, o, B) {
26218
- let s = this.queryPipeline.intersectionWithShape(this.bodies, this.colliders, A, I, g, i, e, C ? C.handle : null, o ? o.handle : null, Ie(this.colliders, B));
26218
+ let s = this.queryPipeline.intersectionWithShape(this.bodies, this.colliders, A, I, g, i, e, C ? C.handle : null, o ? o.handle : null, ge(this.colliders, B));
26219
26219
  return s != null ? this.colliders.get(s) : null;
26220
26220
  }
26221
26221
  projectPoint(A, I, g, i, e, C, o) {
26222
- return this.queryPipeline.projectPoint(this.bodies, this.colliders, A, I, g, i, e ? e.handle : null, C ? C.handle : null, Ie(this.colliders, o));
26222
+ return this.queryPipeline.projectPoint(this.bodies, this.colliders, A, I, g, i, e ? e.handle : null, C ? C.handle : null, ge(this.colliders, o));
26223
26223
  }
26224
26224
  projectPointAndGetFeature(A, I, g, i, e, C) {
26225
- return this.queryPipeline.projectPointAndGetFeature(this.bodies, this.colliders, A, I, g, i ? i.handle : null, e ? e.handle : null, Ie(this.colliders, C));
26225
+ return this.queryPipeline.projectPointAndGetFeature(this.bodies, this.colliders, A, I, g, i ? i.handle : null, e ? e.handle : null, ge(this.colliders, C));
26226
26226
  }
26227
26227
  intersectionsWithPoint(A, I, g, i, e, C, o) {
26228
- this.queryPipeline.intersectionsWithPoint(this.bodies, this.colliders, A, Ie(this.colliders, I), g, i, e ? e.handle : null, C ? C.handle : null, Ie(this.colliders, o));
26228
+ this.queryPipeline.intersectionsWithPoint(this.bodies, this.colliders, A, ge(this.colliders, I), g, i, e ? e.handle : null, C ? C.handle : null, ge(this.colliders, o));
26229
26229
  }
26230
26230
  castShape(A, I, g, i, e, C, o, B, s, Q) {
26231
- return this.queryPipeline.castShape(this.bodies, this.colliders, A, I, g, i, e, C, o, B ? B.handle : null, s ? s.handle : null, Ie(this.colliders, Q));
26231
+ return this.queryPipeline.castShape(this.bodies, this.colliders, A, I, g, i, e, C, o, B ? B.handle : null, s ? s.handle : null, ge(this.colliders, Q));
26232
26232
  }
26233
26233
  intersectionsWithShape(A, I, g, i, e, C, o, B, s) {
26234
- this.queryPipeline.intersectionsWithShape(this.bodies, this.colliders, A, I, g, Ie(this.colliders, i), e, C, o ? o.handle : null, B ? B.handle : null, Ie(this.colliders, s));
26234
+ this.queryPipeline.intersectionsWithShape(this.bodies, this.colliders, A, I, g, ge(this.colliders, i), e, C, o ? o.handle : null, B ? B.handle : null, ge(this.colliders, s));
26235
26235
  }
26236
26236
  collidersWithAabbIntersectingAabb(A, I, g) {
26237
- this.queryPipeline.collidersWithAabbIntersectingAabb(A, I, Ie(this.colliders, g));
26237
+ this.queryPipeline.collidersWithAabbIntersectingAabb(A, I, ge(this.colliders, g));
26238
26238
  }
26239
26239
  contactsWith(A, I) {
26240
- this.narrowPhase.contactsWith(A.handle, Ie(this.colliders, I));
26240
+ this.narrowPhase.contactsWith(A.handle, ge(this.colliders, I));
26241
26241
  }
26242
26242
  intersectionsWith(A, I) {
26243
- this.narrowPhase.intersectionsWith(A.handle, Ie(this.colliders, I));
26243
+ this.narrowPhase.intersectionsWith(A.handle, ge(this.colliders, I));
26244
26244
  }
26245
26245
  contactPair(A, I, g) {
26246
26246
  this.narrowPhase.contactPair(A.handle, I.handle, g);
@@ -26249,7 +26249,7 @@ class XE {
26249
26249
  return this.narrowPhase.intersectionPair(A.handle, I.handle);
26250
26250
  }
26251
26251
  }
26252
- function Ie(t, A) {
26252
+ function ge(t, A) {
26253
26253
  return (I) => A ? A(t.get(I)) : void 0;
26254
26254
  }
26255
26255
  (function(t) {
@@ -26380,7 +26380,7 @@ function c2() {
26380
26380
  try {
26381
26381
  const I = F.__wbindgen_add_to_stack_pointer(-16);
26382
26382
  F.version(I);
26383
- var t = Bg()[I / 4 + 0], A = Bg()[I / 4 + 1];
26383
+ var t = sg()[I / 4 + 0], A = sg()[I / 4 + 1];
26384
26384
  return hF(t, A);
26385
26385
  } finally {
26386
26386
  F.__wbindgen_add_to_stack_pointer(16), F.__wbindgen_free(t, A);
@@ -26389,7 +26389,7 @@ function c2() {
26389
26389
  }
26390
26390
  je["-".charCodeAt(0)] = 62, je["_".charCodeAt(0)] = 63;
26391
26391
  var MC = Object.freeze({ __proto__: null, version: c2, Vector3: wF, VectorOps: CA, Quaternion: vu, RotationOps: FI, get RigidBodyType() {
26392
- return te;
26392
+ return Ce;
26393
26393
  }, RigidBody: jc, RigidBodyDesc: vt, RigidBodySet: uF, IntegrationParameters: pF, get JointType() {
26394
26394
  return Zg;
26395
26395
  }, get MotorModel() {
@@ -26402,7 +26402,7 @@ var MC = Object.freeze({ __proto__: null, version: c2, Vector3: wF, VectorOps: C
26402
26402
  return Wc;
26403
26403
  }, Collider: Xc, get MassPropsMode() {
26404
26404
  return OB;
26405
- }, ColliderDesc: og, ColliderSet: YF, get FeatureType() {
26405
+ }, ColliderDesc: Bg, ColliderSet: YF, get FeatureType() {
26406
26406
  return vQ;
26407
26407
  }, Ray: s2, RayIntersection: VE, RayColliderIntersection: aE, RayColliderToi: QD, PointProjection: jE, PointColliderProjection: nE, ShapeTOI: sn, ShapeColliderTOI: zE, ShapeContact: TQ, World: XE, PhysicsPipeline: bF, SerializationPipeline: Wu, get ActiveEvents() {
26408
26408
  return Zc;
@@ -26451,7 +26451,7 @@ class OQ {
26451
26451
  }
26452
26452
  }
26453
26453
  E(OQ, "_up", new k(0, 1, 0));
26454
- const l2 = new zI(1, 1, 1);
26454
+ const l2 = new XI(1, 1, 1);
26455
26455
  function _F(t = null) {
26456
26456
  const A = new T(t ?? 14540253), I = new Sy(l2);
26457
26457
  return new Ye(I, new qg({ color: A }));
@@ -26462,7 +26462,7 @@ class Wi {
26462
26462
  static getBox(A) {
26463
26463
  let I = this.boxesCache.pop();
26464
26464
  if (!I) {
26465
- const g = new zI(1, 1, 1);
26465
+ const g = new XI(1, 1, 1);
26466
26466
  I = new MA(g);
26467
26467
  }
26468
26468
  return this.registerTimedObject(NI.Current, I, A, this.boxesCache), I;
@@ -26681,17 +26681,17 @@ const LB = class {
26681
26681
  addBoxCollider(A, I, g) {
26682
26682
  const i = A.gameObject, e = fe(i, this._tempPosition).multiply(g);
26683
26683
  e.multiplyScalar(0.5);
26684
- const C = og.cuboid(e.x, e.y, e.z);
26684
+ const C = Bg.cuboid(e.x, e.y, e.z);
26685
26685
  this.createCollider(A, C, I);
26686
26686
  }
26687
26687
  addSphereCollider(A, I, g) {
26688
- const i = A.gameObject, e = fe(i, this._tempPosition).multiplyScalar(g), C = og.ball(e.x);
26688
+ const i = A.gameObject, e = fe(i, this._tempPosition).multiplyScalar(g), C = Bg.ball(e.x);
26689
26689
  this.createCollider(A, C, I);
26690
26690
  }
26691
26691
  addCapsuleCollider(A, I, g, i) {
26692
26692
  const e = A.gameObject, C = fe(e, this._tempPosition);
26693
26693
  Ps && console.log("capsule scale", C, g, i);
26694
- const o = og.capsule(g * 0.5 * C.y - i, i * C.x);
26694
+ const o = Bg.capsule(g * 0.5 * C.y - i, i * C.x);
26695
26695
  this.createCollider(A, o, I);
26696
26696
  }
26697
26697
  addMeshCollider(A, I, g, i) {
@@ -26715,7 +26715,7 @@ const LB = class {
26715
26715
  C = a, this._meshCache.set(Q, a);
26716
26716
  }
26717
26717
  }
26718
- const B = g ? og.convexMesh(C) : og.trimesh(C, o);
26718
+ const B = g ? Bg.convexMesh(C) : Bg.trimesh(C, o);
26719
26719
  B && this.createCollider(A, B).setMassProperties(1, { x: 0, y: 0, z: 0 }, { x: 0, y: 0, z: 0 }, { x: 0, y: 0, z: 0, w: 1 });
26720
26720
  }
26721
26721
  createCollider(A, I, g) {
@@ -26856,9 +26856,9 @@ const LB = class {
26856
26856
  syncPhysicsBody(A, I, g, i) {
26857
26857
  const e = yI(A, this._tempPosition), C = Fe(A, this._tempQuaternion);
26858
26858
  switch (I.bodyType()) {
26859
- case te.Fixed:
26860
- case te.KinematicPositionBased:
26861
- case te.KinematicVelocityBased:
26859
+ case Ce.Fixed:
26860
+ case Ce.KinematicPositionBased:
26861
+ case Ce.KinematicVelocityBased:
26862
26862
  g && I.setNextKinematicTranslation(e), i && I.setNextKinematicRotation(C);
26863
26863
  break;
26864
26864
  default:
@@ -32122,7 +32122,7 @@ class J2 extends K2 {
32122
32122
  }
32123
32123
  }
32124
32124
  let ah = "wss://needle-tiny-starter.glitch.me/socket";
32125
- const ie = !!yA("debugnet"), Eh = !!(ie || yA("debugowner"));
32125
+ const ee = !!yA("debugnet"), Eh = !!(ee || yA("debugowner"));
32126
32126
  var Vg = /* @__PURE__ */ ((t) => (t.Join = "join-room", t.Leave = "leave-room", t.JoinedRoom = "joined-room", t.LeftRoom = "left-room", t.UserJoinedRoom = "user-joined-room", t.UserLeftRoom = "user-left-room", t))(Vg || {});
32127
32127
  class cS {
32128
32128
  constructor(A, I) {
@@ -32225,7 +32225,7 @@ class q2 {
32225
32225
  return this._connectionId;
32226
32226
  }
32227
32227
  get isDebugEnabled() {
32228
- return ie;
32228
+ return ee;
32229
32229
  }
32230
32230
  get isConnected() {
32231
32231
  return this.connected;
@@ -32256,7 +32256,7 @@ class q2 {
32256
32256
  return A;
32257
32257
  }
32258
32258
  joinRoom(A, I = !1) {
32259
- this.connect(), ie && console.log("join: " + A), this.send("join-room", { room: A, viewOnly: I }, ye.OnConnection);
32259
+ this.connect(), ee && console.log("join: " + A), this.send("join-room", { room: A, viewOnly: I }, ye.OnConnection);
32260
32260
  }
32261
32261
  leaveRoom(A = null) {
32262
32262
  if (A || (A = this.currentRoomName), !A) {
@@ -32280,7 +32280,7 @@ class q2 {
32280
32280
  }
32281
32281
  sendBinary(A) {
32282
32282
  var I;
32283
- ie && console.log("<< bin", A.length), (I = this._ws) == null || I.send(A);
32283
+ ee && console.log("<< bin", A.length), (I = this._ws) == null || I.send(A);
32284
32284
  }
32285
32285
  sendBufferedMessagesNow() {
32286
32286
  var g;
@@ -32297,7 +32297,7 @@ class q2 {
32297
32297
  const C = this.toMessage(e.key, e.value);
32298
32298
  this._defaultMessagesBufferArray.push(C);
32299
32299
  }
32300
- if (this._defaultMessagesBuffer.length = 0, this._defaultMessagesBufferArray.length > 0 && ie && console.log("SEND BUFFERED", this._defaultMessagesBufferArray.length), this._defaultMessagesBufferArray.length <= 0)
32300
+ if (this._defaultMessagesBuffer.length = 0, this._defaultMessagesBufferArray.length > 0 && ee && console.log("SEND BUFFERED", this._defaultMessagesBufferArray.length), this._defaultMessagesBufferArray.length <= 0)
32301
32301
  return;
32302
32302
  const I = JSON.stringify(this._defaultMessagesBufferArray);
32303
32303
  (g = this._ws) == null || g.send(I);
@@ -32327,7 +32327,7 @@ class q2 {
32327
32327
  var I;
32328
32328
  if (this.connected)
32329
32329
  return;
32330
- ie && console.log("connecting");
32330
+ ee && console.log("connecting");
32331
32331
  const A = (I = this.netWebSocketUrlProvider) == null ? void 0 : I.getWebsocketUrl();
32332
32332
  A ? ah = A : QJ() && (ah = "wss://" + window.location.host + "/socket"), this.connectWebsocket();
32333
32333
  }
@@ -32360,7 +32360,7 @@ class q2 {
32360
32360
  this.handleIncomingStringMessage(i);
32361
32361
  return;
32362
32362
  } catch {
32363
- ie && g === "pong" && console.log("<<", g);
32363
+ ee && g === "pong" && console.log("<<", g);
32364
32364
  }
32365
32365
  }
32366
32366
  async handleIncomingBinaryMessage(A) {
@@ -32375,7 +32375,7 @@ class q2 {
32375
32375
  }
32376
32376
  handleIncomingStringMessage(A) {
32377
32377
  var i, e;
32378
- if (ie && console.log("<<", A.key ?? A), A.key)
32378
+ if (ee && console.log("<<", A.key ?? A), A.key)
32379
32379
  switch (A.key) {
32380
32380
  case "connection-start-info":
32381
32381
  if (A.data) {
@@ -32389,10 +32389,10 @@ class q2 {
32389
32389
  console.warn("Expected connection id in " + A.key);
32390
32390
  break;
32391
32391
  case "joined-room":
32392
- if (ie && console.log(A), A) {
32392
+ if (ee && console.log(A), A) {
32393
32393
  this._isInRoom = !0;
32394
32394
  const B = A;
32395
- this._currentRoomName = B.room, this._currentRoomViewId = B.viewId, this._currentRoomAllowEditing = B.allowEditing ?? !0, console.log("Room view id", this._currentRoomViewId), this._currentInRoom.length = 0, this._currentInRoom.push(...B.inRoom), ie && console.log("joined room with", this._currentInRoom, this.context.alias ?? "");
32395
+ this._currentRoomName = B.room, this._currentRoomViewId = B.viewId, this._currentRoomAllowEditing = B.allowEditing ?? !0, console.log("Room view id", this._currentRoomViewId), this._currentInRoom.length = 0, this._currentInRoom.push(...B.inRoom), ee && console.log("joined room with", this._currentInRoom, this.context.alias ?? "");
32396
32396
  }
32397
32397
  this.onSendQueued(ye.OnRoomJoin);
32398
32398
  break;
@@ -32402,7 +32402,7 @@ class q2 {
32402
32402
  case "user-joined-room":
32403
32403
  if (A.data) {
32404
32404
  const B = A.data;
32405
- this._currentInRoom.push(B.userId), ie && console.log(B.userId + " joined", "now in room:", this._currentInRoom);
32405
+ this._currentInRoom.push(B.userId), ee && console.log(B.userId + " joined", "now in room:", this._currentInRoom);
32406
32406
  }
32407
32407
  break;
32408
32408
  case "user-left-room":
@@ -32412,12 +32412,12 @@ class q2 {
32412
32412
  }
32413
32413
  break;
32414
32414
  case "all-room-state-deleted":
32415
- ie && console.log("RECEIVED all-room-state-deleted"), this._state = {};
32415
+ ee && console.log("RECEIVED all-room-state-deleted"), this._state = {};
32416
32416
  break;
32417
32417
  case "ping":
32418
32418
  case "pong":
32419
32419
  const o = (i = A.data) == null ? void 0 : i.time;
32420
- o && (this._currentDelay = this.context.time.time - o), ie && console.log("Current latency: " + this._currentDelay.toFixed(1) + " sec", "Clients in room: " + ((e = this._currentInRoom) == null ? void 0 : e.length));
32420
+ o && (this._currentDelay = this.context.time.time - o), ee && console.log("Current latency: " + this._currentDelay.toFixed(1) + " sec", "Clients in room: " + ((e = this._currentInRoom) == null ? void 0 : e.length));
32421
32421
  break;
32422
32422
  }
32423
32423
  const I = this._listeners[A.key];
@@ -32440,7 +32440,7 @@ class q2 {
32440
32440
  return;
32441
32441
  }
32442
32442
  const i = JSON.stringify(this.toMessage(A, I));
32443
- ie && console.log(">>", A), this._ws.send(i);
32443
+ ee && console.log(">>", A), this._ws.send(i);
32444
32444
  }
32445
32445
  onSendQueued(A) {
32446
32446
  const I = this._waitingForSocket[A];
@@ -34599,7 +34599,7 @@ function wO(t, A) {
34599
34599
  return {
34600
34600
  name: "",
34601
34601
  isLooping: !1,
34602
- guid: (A == null ? void 0 : A.generateUUID()) ?? ne.generateUUID(),
34602
+ guid: (A == null ? void 0 : A.generateUUID()) ?? ae.generateUUID(),
34603
34603
  index: -1,
34604
34604
  clip: new BC(t, 1, [])
34605
34605
  };
@@ -35256,7 +35256,7 @@ class tC extends vA {
35256
35256
  this.mixer.update(this.context.time.deltaTime);
35257
35257
  for (const g of this._handles)
35258
35258
  g._update();
35259
- ((I = this._handles) == null ? void 0 : I.length) > 0 && Be.markDirty(this.gameObject);
35259
+ ((I = this._handles) == null ? void 0 : I.length) > 0 && se.markDirty(this.gameObject);
35260
35260
  }
35261
35261
  }
35262
35262
  getAction(I) {
@@ -35598,7 +35598,7 @@ let UO = class {
35598
35598
  this.name = RI.KHR_MATERIALS_UNLIT;
35599
35599
  }
35600
35600
  getMaterialType() {
35601
- return Cg;
35601
+ return og;
35602
35602
  }
35603
35603
  extendParams(A, I, g) {
35604
35604
  const i = [];
@@ -36799,11 +36799,11 @@ class A_ {
36799
36799
  }
36800
36800
  e.doubleSided === !0 && (o.side = Tg);
36801
36801
  const Q = e.alphaMode || nw.OPAQUE;
36802
- if (Q === nw.BLEND ? (o.transparent = !0, o.depthWrite = !1) : (o.transparent = !1, Q === nw.MASK && (o.alphaTest = e.alphaCutoff !== void 0 ? e.alphaCutoff : 0.5)), e.normalTexture !== void 0 && C !== Cg && (s.push(I.assignTexture(o, "normalMap", e.normalTexture)), o.normalScale = new QA(1, 1), e.normalTexture.scale !== void 0)) {
36802
+ if (Q === nw.BLEND ? (o.transparent = !0, o.depthWrite = !1) : (o.transparent = !1, Q === nw.MASK && (o.alphaTest = e.alphaCutoff !== void 0 ? e.alphaCutoff : 0.5)), e.normalTexture !== void 0 && C !== og && (s.push(I.assignTexture(o, "normalMap", e.normalTexture)), o.normalScale = new QA(1, 1), e.normalTexture.scale !== void 0)) {
36803
36803
  const a = e.normalTexture.scale;
36804
36804
  o.normalScale.set(a, a);
36805
36805
  }
36806
- return e.occlusionTexture !== void 0 && C !== Cg && (s.push(I.assignTexture(o, "aoMap", e.occlusionTexture)), e.occlusionTexture.strength !== void 0 && (o.aoMapIntensity = e.occlusionTexture.strength)), e.emissiveFactor !== void 0 && C !== Cg && (o.emissive = new T().fromArray(e.emissiveFactor)), e.emissiveTexture !== void 0 && C !== Cg && s.push(I.assignTexture(o, "emissiveMap", e.emissiveTexture, DI)), Promise.all(s).then(function() {
36806
+ return e.occlusionTexture !== void 0 && C !== og && (s.push(I.assignTexture(o, "aoMap", e.occlusionTexture)), e.occlusionTexture.strength !== void 0 && (o.aoMapIntensity = e.occlusionTexture.strength)), e.emissiveFactor !== void 0 && C !== og && (o.emissive = new T().fromArray(e.emissiveFactor)), e.emissiveTexture !== void 0 && C !== og && s.push(I.assignTexture(o, "emissiveMap", e.emissiveTexture, DI)), Promise.all(s).then(function() {
36807
36807
  const a = new C(o);
36808
36808
  return e.name && (a.name = e.name), mo(a, e), I.associations.set(a, { materials: A }), e.extensions && Xn(i, a, e), a;
36809
36809
  });
@@ -36900,7 +36900,7 @@ class A_ {
36900
36900
  console.warn("THREE.GLTFLoader: Missing camera parameters.");
36901
36901
  return;
36902
36902
  }
36903
- return g.type === "perspective" ? I = new Eg(ne.radToDeg(i.yfov), i.aspectRatio || 1, i.znear || 1, i.zfar || 2e6) : g.type === "orthographic" && (I = new iB(-i.xmag, i.xmag, i.ymag, -i.ymag, i.znear, i.zfar)), g.name && (I.name = this.createUniqueName(g.name)), mo(I, g), Promise.resolve(I);
36903
+ return g.type === "perspective" ? I = new Cg(ae.radToDeg(i.yfov), i.aspectRatio || 1, i.znear || 1, i.zfar || 2e6) : g.type === "orthographic" && (I = new iB(-i.xmag, i.xmag, i.ymag, -i.ymag, i.znear, i.zfar)), g.name && (I.name = this.createUniqueName(g.name)), mo(I, g), Promise.resolve(I);
36904
36904
  }
36905
36905
  /**
36906
36906
  * Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#skins
@@ -37906,7 +37906,7 @@ class r_ {
37906
37906
  this.objectToWorldMatrix.copy(A.matrixWorld), Al(this.objectToWorldMatrix, this.objectToWorld), this.worldToObjectMatrix.copy(A.matrixWorld).invert(), Al(this.worldToObjectMatrix, this.worldToObject);
37907
37907
  }
37908
37908
  }
37909
- const ng = class extends Gy {
37909
+ const ag = class extends Gy {
37910
37910
  constructor(I, ...g) {
37911
37911
  super(...g);
37912
37912
  E(this, "identifier");
@@ -37961,15 +37961,15 @@ const ng = class extends Gy {
37961
37961
  }
37962
37962
  onUpdateUniforms(I, g) {
37963
37963
  const i = NI.Current;
37964
- I && (ng.viewProjection && this.uniforms[this._viewProjectionName] && (ng.viewProjection.copy(I.projectionMatrix).multiply(I.matrixWorldInverse), Al(ng.viewProjection, ng._viewProjectionValues)), ng.viewMatrix && this.uniforms[this._viewMatrixName] && (ng.viewMatrix.copy(I.matrixWorldInverse), Al(ng.viewMatrix, ng._viewMatrixValues)), this.uniforms[ng._worldSpaceCameraPosName] && ng._worldSpaceCameraPos.setFromMatrixPosition(I.matrixWorld)), this.uniforms._TimeParameters ? this.uniforms._TimeParameters.value = i.rendererData.timeVec4 : this.uniforms._Time && (this.uniforms._Time.value = i.rendererData.timeVec4);
37964
+ I && (ag.viewProjection && this.uniforms[this._viewProjectionName] && (ag.viewProjection.copy(I.projectionMatrix).multiply(I.matrixWorldInverse), Al(ag.viewProjection, ag._viewProjectionValues)), ag.viewMatrix && this.uniforms[this._viewMatrixName] && (ag.viewMatrix.copy(I.matrixWorldInverse), Al(ag.viewMatrix, ag._viewMatrixValues)), this.uniforms[ag._worldSpaceCameraPosName] && ag._worldSpaceCameraPos.setFromMatrixPosition(I.matrixWorld)), this.uniforms._TimeParameters ? this.uniforms._TimeParameters.value = i.rendererData.timeVec4 : this.uniforms._Time && (this.uniforms._Time.value = i.rendererData.timeVec4);
37965
37965
  const e = i.mainLight;
37966
37966
  if (e) {
37967
- const B = yI(e.gameObject, ng._mainLightPosition);
37968
- this.uniforms._MainLightPosition = { value: B.normalize() }, ng._mainLightColor.set(e.color.r, e.color.g, e.color.b, 0), this.uniforms._MainLightColor = { value: ng._mainLightColor };
37967
+ const B = yI(e.gameObject, ag._mainLightPosition);
37968
+ this.uniforms._MainLightPosition = { value: B.normalize() }, ag._mainLightColor.set(e.color.r, e.color.g, e.color.b, 0), this.uniforms._MainLightColor = { value: ag._mainLightColor };
37969
37969
  const s = e.intensity;
37970
- ng._lightData.z = s, this.uniforms.unity_LightData = { value: ng._lightData };
37970
+ ag._lightData.z = s, this.uniforms.unity_LightData = { value: ag._lightData };
37971
37971
  }
37972
- if (I && (ng.viewProjection && this.uniforms[this._viewProjectionName] && (this.uniforms[this._viewProjectionName].value = ng._viewProjectionValues), ng.viewMatrix && this.uniforms[this._viewMatrixName] && (this.uniforms[this._viewMatrixName].value = ng._viewMatrixValues), this.uniforms[ng._worldSpaceCameraPosName] && (this.uniforms[ng._worldSpaceCameraPosName] = { value: ng._worldSpaceCameraPos }), i.mainCameraComponent)) {
37972
+ if (I && (ag.viewProjection && this.uniforms[this._viewProjectionName] && (this.uniforms[this._viewProjectionName].value = ag._viewProjectionValues), ag.viewMatrix && this.uniforms[this._viewMatrixName] && (this.uniforms[this._viewMatrixName].value = ag._viewMatrixValues), this.uniforms[ag._worldSpaceCameraPosName] && (this.uniforms[ag._worldSpaceCameraPosName] = { value: ag._worldSpaceCameraPos }), i.mainCameraComponent)) {
37973
37973
  if (this.uniforms._ProjectionParams) {
37974
37974
  const B = this.uniforms._ProjectionParams.value;
37975
37975
  B.x = 1, B.y = i.mainCameraComponent.nearClipPlane, B.z = i.mainCameraComponent.farClipPlane, B.w = 1 / B.z, this.uniforms._ProjectionParams.value = B;
@@ -37993,7 +37993,7 @@ const ng = class extends Gy {
37993
37993
  this.uniformsNeedUpdate = !0;
37994
37994
  }
37995
37995
  };
37996
- let We = ng;
37996
+ let We = ag;
37997
37997
  E(We, "viewProjection", new XA()), E(We, "_viewProjectionValues", []), E(We, "viewMatrix", new XA()), E(We, "_viewMatrixValues", []), E(We, "_worldSpaceCameraPosName", "_WorldSpaceCameraPos"), E(We, "_worldSpaceCameraPos", new k()), E(We, "_mainLightColor", new sI()), E(We, "_mainLightPosition", new k()), E(We, "_lightData", new sI());
37998
37998
  class h_ {
37999
37999
  constructor(A, I) {
@@ -38107,7 +38107,7 @@ class h_ {
38107
38107
  h.side = Tg;
38108
38108
  break;
38109
38109
  case 1:
38110
- h.side = oe;
38110
+ h.side = Be;
38111
38111
  break;
38112
38112
  case 2:
38113
38113
  h.side = Je;
@@ -38424,9 +38424,9 @@ var d_ = function(t, A, I, g, i) {
38424
38424
  }, GN = fN(an, 2), yS = GN[0], gl = GN[1];
38425
38425
  yS[28] = 258, gl[258] = 28;
38426
38426
  var kN = fN(En, 0), MN = kN[0], op = kN[1], cE = new si(32768);
38427
- for (var Qg = 0; Qg < 32768; ++Qg) {
38428
- var ko = (Qg & 43690) >>> 1 | (Qg & 21845) << 1;
38429
- ko = (ko & 52428) >>> 2 | (ko & 13107) << 2, ko = (ko & 61680) >>> 4 | (ko & 3855) << 4, cE[Qg] = ((ko & 65280) >>> 8 | (ko & 255) << 8) >>> 1;
38427
+ for (var ng = 0; ng < 32768; ++ng) {
38428
+ var ko = (ng & 43690) >>> 1 | (ng & 21845) << 1;
38429
+ ko = (ko & 52428) >>> 2 | (ko & 13107) << 2, ko = (ko & 61680) >>> 4 | (ko & 3855) << 4, cE[ng] = ((ko & 65280) >>> 8 | (ko & 255) << 8) >>> 1;
38430
38430
  }
38431
38431
  var gt = function(t, A, I) {
38432
38432
  for (var g = t.length, i = 0, e = new si(A); i < g; ++i)
@@ -38447,17 +38447,17 @@ var gt = function(t, A, I) {
38447
38447
  t[i] && (o[i] = cE[C[t[i] - 1]++] >>> 15 - t[i]);
38448
38448
  return o;
38449
38449
  }, eo = new bI(288);
38450
- for (var Qg = 0; Qg < 144; ++Qg)
38451
- eo[Qg] = 8;
38452
- for (var Qg = 144; Qg < 256; ++Qg)
38453
- eo[Qg] = 9;
38454
- for (var Qg = 256; Qg < 280; ++Qg)
38455
- eo[Qg] = 7;
38456
- for (var Qg = 280; Qg < 288; ++Qg)
38457
- eo[Qg] = 8;
38450
+ for (var ng = 0; ng < 144; ++ng)
38451
+ eo[ng] = 8;
38452
+ for (var ng = 144; ng < 256; ++ng)
38453
+ eo[ng] = 9;
38454
+ for (var ng = 256; ng < 280; ++ng)
38455
+ eo[ng] = 7;
38456
+ for (var ng = 280; ng < 288; ++ng)
38457
+ eo[ng] = 8;
38458
38458
  var PQ = new bI(32);
38459
- for (var Qg = 0; Qg < 32; ++Qg)
38460
- PQ[Qg] = 5;
38459
+ for (var ng = 0; ng < 32; ++ng)
38460
+ PQ[ng] = 5;
38461
38461
  var UN = /* @__PURE__ */ gt(eo, 9, 0), RN = /* @__PURE__ */ gt(eo, 9, 1), FN = /* @__PURE__ */ gt(PQ, 5, 0), NN = /* @__PURE__ */ gt(PQ, 5, 1), tc = function(t) {
38462
38462
  for (var A = t[0], I = 1; I < t.length; ++I)
38463
38463
  t[I] > A && (A = t[I]);
@@ -38944,7 +38944,7 @@ function ON(t, A, I) {
38944
38944
  function tr(t, A) {
38945
38945
  return cs(t, A || {}, 0, 0);
38946
38946
  }
38947
- var se = /* @__PURE__ */ function() {
38947
+ var Qe = /* @__PURE__ */ function() {
38948
38948
  function t(A) {
38949
38949
  this.s = {}, this.p = new bI(0), this.ondata = A;
38950
38950
  }
@@ -38967,10 +38967,10 @@ var se = /* @__PURE__ */ function() {
38967
38967
  this.ondata = A, Dn([
38968
38968
  hn,
38969
38969
  function() {
38970
- return [et, se];
38970
+ return [et, Qe];
38971
38971
  }
38972
38972
  ], this, 0, function() {
38973
- var I = new se();
38973
+ var I = new Qe();
38974
38974
  onmessage = et(I);
38975
38975
  }, 7);
38976
38976
  }
@@ -39036,10 +39036,10 @@ function tl(t, A) {
39036
39036
  }
39037
39037
  var Cl = /* @__PURE__ */ function() {
39038
39038
  function t(A) {
39039
- this.v = 1, se.call(this, A);
39039
+ this.v = 1, Qe.call(this, A);
39040
39040
  }
39041
39041
  return t.prototype.push = function(A, I) {
39042
- if (se.prototype.e.call(this, A), this.v) {
39042
+ if (Qe.prototype.e.call(this, A), this.v) {
39043
39043
  var g = this.p.length > 3 ? kS(this.p) : 4;
39044
39044
  if (g >= this.p.length && !I)
39045
39045
  return;
@@ -39050,7 +39050,7 @@ var Cl = /* @__PURE__ */ function() {
39050
39050
  throw "invalid gzip stream";
39051
39051
  this.p = this.p.subarray(0, -8);
39052
39052
  }
39053
- se.prototype.c.call(this, I);
39053
+ Qe.prototype.c.call(this, I);
39054
39054
  }, t;
39055
39055
  }(), _N = /* @__PURE__ */ function() {
39056
39056
  function t(A) {
@@ -39058,7 +39058,7 @@ var Cl = /* @__PURE__ */ function() {
39058
39058
  hn,
39059
39059
  YN,
39060
39060
  function() {
39061
- return [et, se, Cl];
39061
+ return [et, Qe, Cl];
39062
39062
  }
39063
39063
  ], this, 0, function() {
39064
39064
  var I = new Cl();
@@ -39131,10 +39131,10 @@ function np(t, A) {
39131
39131
  }
39132
39132
  var Bl = /* @__PURE__ */ function() {
39133
39133
  function t(A) {
39134
- this.v = 1, se.call(this, A);
39134
+ this.v = 1, Qe.call(this, A);
39135
39135
  }
39136
39136
  return t.prototype.push = function(A, I) {
39137
- if (se.prototype.e.call(this, A), this.v) {
39137
+ if (Qe.prototype.e.call(this, A), this.v) {
39138
39138
  if (this.p.length < 2 && !I)
39139
39139
  return;
39140
39140
  this.p = this.p.subarray(2), this.v = 0;
@@ -39144,7 +39144,7 @@ var Bl = /* @__PURE__ */ function() {
39144
39144
  throw "invalid zlib stream";
39145
39145
  this.p = this.p.subarray(0, -4);
39146
39146
  }
39147
- se.prototype.c.call(this, I);
39147
+ Qe.prototype.c.call(this, I);
39148
39148
  }, t;
39149
39149
  }(), WN = /* @__PURE__ */ function() {
39150
39150
  function t(A) {
@@ -39152,7 +39152,7 @@ var Bl = /* @__PURE__ */ function() {
39152
39152
  hn,
39153
39153
  xN,
39154
39154
  function() {
39155
- return [et, se, Bl];
39155
+ return [et, Qe, Bl];
39156
39156
  }
39157
39157
  ], this, 0, function() {
39158
39158
  var I = new Bl();
@@ -39179,7 +39179,7 @@ function vo(t, A) {
39179
39179
  }
39180
39180
  var jN = /* @__PURE__ */ function() {
39181
39181
  function t(A) {
39182
- this.G = Cl, this.I = se, this.Z = Bl, this.ondata = A;
39182
+ this.G = Cl, this.I = Qe, this.Z = Bl, this.ondata = A;
39183
39183
  }
39184
39184
  return t.prototype.push = function(A, I) {
39185
39185
  if (!this.ondata)
@@ -39551,7 +39551,7 @@ var im = /* @__PURE__ */ function() {
39551
39551
  }(), N_ = /* @__PURE__ */ function() {
39552
39552
  function t() {
39553
39553
  var A = this;
39554
- this.i = new se(function(I, g) {
39554
+ this.i = new Qe(function(I, g) {
39555
39555
  A.ondata(null, I, g);
39556
39556
  });
39557
39557
  }
@@ -39565,7 +39565,7 @@ var im = /* @__PURE__ */ function() {
39565
39565
  }(), m_ = /* @__PURE__ */ function() {
39566
39566
  function t(A, I) {
39567
39567
  var g = this;
39568
- I < 32e4 ? this.i = new se(function(i, e) {
39568
+ I < 32e4 ? this.i = new Qe(function(i, e) {
39569
39569
  g.ondata(null, i, e);
39570
39570
  }) : (this.i = new FS(function(i, e, C) {
39571
39571
  g.ondata(i, e, C);
@@ -39748,7 +39748,7 @@ const dk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
39748
39748
  EncodeUTF8: k_,
39749
39749
  Gunzip: Cl,
39750
39750
  Gzip: el,
39751
- Inflate: se,
39751
+ Inflate: Qe,
39752
39752
  Unzip: K_,
39753
39753
  UnzipInflate: N_,
39754
39754
  UnzipPassThrough: im,
@@ -39934,8 +39934,8 @@ class em extends Fy {
39934
39934
  let jI = WA;
39935
39935
  const dI = WA + j * (v - bA);
39936
39936
  for (; jI <= dI; jI += nI) {
39937
- const rg = jI + iI, Ae = jI + cI, Mg = Ae + iI;
39938
- kA ? (_A(U[jI + J], U[Ae + J]), GI = z.a, JI = z.b, _A(U[rg + J], U[Mg + J]), ig = z.a, kg = z.b, _A(GI, ig), U[jI + J] = z.a, U[rg + J] = z.b, _A(JI, kg), U[Ae + J] = z.a, U[Mg + J] = z.b) : (qA(U[jI + J], U[Ae + J]), GI = z.a, JI = z.b, qA(U[rg + J], U[Mg + J]), ig = z.a, kg = z.b, qA(GI, ig), U[jI + J] = z.a, U[rg + J] = z.b, qA(JI, kg), U[Ae + J] = z.a, U[Mg + J] = z.b);
39937
+ const rg = jI + iI, Ie = jI + cI, Mg = Ie + iI;
39938
+ kA ? (_A(U[jI + J], U[Ie + J]), GI = z.a, JI = z.b, _A(U[rg + J], U[Mg + J]), ig = z.a, kg = z.b, _A(GI, ig), U[jI + J] = z.a, U[rg + J] = z.b, _A(JI, kg), U[Ie + J] = z.a, U[Mg + J] = z.b) : (qA(U[jI + J], U[Ie + J]), GI = z.a, JI = z.b, qA(U[rg + J], U[Mg + J]), ig = z.a, kg = z.b, qA(GI, ig), U[jI + J] = z.a, U[rg + J] = z.b, qA(JI, kg), U[Ie + J] = z.a, U[Mg + J] = z.b);
39939
39939
  }
39940
39940
  if (v & SA) {
39941
39941
  const rg = jI + cI;
@@ -40048,9 +40048,9 @@ class em extends Fy {
40048
40048
  for (let dI = 0; dI < NA; ++dI) {
40049
40049
  let rg = 8;
40050
40050
  dI == NA - 1 && (rg = BI);
40051
- let Ae = 8;
40051
+ let Ie = 8;
40052
40052
  for (let VI = 0; VI < WA; ++VI) {
40053
- VI == WA - 1 && (Ae = cI);
40053
+ VI == WA - 1 && (Ie = cI);
40054
40054
  for (let eg = 0; eg < SA; ++eg)
40055
40055
  ig[eg].fill(0), ig[eg][0] = oA[nI[eg]++], tI(iI, j, ig[eg]), zA(ig[eg], GI[eg]), AI(GI[eg]);
40056
40056
  MI(GI);
@@ -40070,7 +40070,7 @@ class em extends Fy {
40070
40070
  if (bA != WA)
40071
40071
  for (let wC = 8 * dI; wC < 8 * dI + rg; ++wC) {
40072
40072
  const Hn = kg[VI][wC] + 8 * bA * 2 * eg, qt = bA * 64 + (wC & 7) * 8;
40073
- for (let wr = 0; wr < Ae; ++wr)
40073
+ for (let wr = 0; wr < Ie; ++wr)
40074
40074
  lA.setUint16(Hn + wr * 2 * eg, JI[VI][qt + wr], !0);
40075
40075
  }
40076
40076
  }
@@ -40081,8 +40081,8 @@ class em extends Fy {
40081
40081
  v[U.idx[dI]].decoded = !0;
40082
40082
  const rg = v[U.idx[dI]].type;
40083
40083
  if (v[dI].type == 2)
40084
- for (let Ae = 0; Ae < LA; ++Ae) {
40085
- const Mg = kg[dI][Ae];
40084
+ for (let Ie = 0; Ie < LA; ++Ie) {
40085
+ const Mg = kg[dI][Ie];
40086
40086
  for (let VI = 0; VI < kA; ++VI)
40087
40087
  jI[VI] = lA.getUint16(Mg + VI * 2 * rg, !0);
40088
40088
  for (let VI = 0; VI < kA; ++VI)
@@ -40409,7 +40409,7 @@ class em extends Fy {
40409
40409
  const v = uI(U, J), j = uI(U, J), oA = uI(U, J);
40410
40410
  return [v, j, oA];
40411
40411
  }
40412
- function $i(U, J, v, j, oA) {
40412
+ function Ae(U, J, v, j, oA) {
40413
40413
  if (j === "string" || j === "stringvector" || j === "iccProfile")
40414
40414
  return Y(J, v, oA);
40415
40415
  if (j === "chlist")
@@ -40456,7 +40456,7 @@ class em extends Fy {
40456
40456
  if (lA == 0)
40457
40457
  IA = !1;
40458
40458
  else {
40459
- const kA = xA(J, v), LA = OA(U, v), SA = $i(U, J, v, kA, LA);
40459
+ const kA = xA(J, v), LA = OA(U, v), SA = Ae(U, J, v, kA, LA);
40460
40460
  SA === void 0 ? console.warn(`EXRLoader.parse: skipped unknown header attribute type '${kA}'.`) : j[lA] = SA;
40461
40461
  }
40462
40462
  }
@@ -41165,7 +41165,7 @@ class X_ {
41165
41165
  }
41166
41166
  const yl = class {
41167
41167
  static createEmptyParent(A) {
41168
- const I = new yl(ne.generateUUID(), A.name + "_empty_" + this._id++, A.matrix);
41168
+ const I = new yl(ae.generateUUID(), A.name + "_empty_" + this._id++, A.matrix);
41169
41169
  return A.parent.add(I), I.add(A), I.isDynamic = !0, A.matrix = new XA().identity(), I;
41170
41170
  }
41171
41171
  constructor(A, I, g, i, e, C) {
@@ -41178,7 +41178,7 @@ const yl = class {
41178
41178
  return !this.geometry;
41179
41179
  }
41180
41180
  clone() {
41181
- const A = new yl(ne.generateUUID(), this.name, this.matrix, this.mesh, this.material);
41181
+ const A = new yl(ae.generateUUID(), this.name, this.matrix, this.mesh, this.material);
41182
41182
  return A.isDynamic = this.isDynamic, A;
41183
41183
  }
41184
41184
  getPath() {
@@ -41368,7 +41368,7 @@ function iP(t) {
41368
41368
  }`
41369
41369
  }), g = new MA(A, I);
41370
41370
  g.frustumCulled = !1;
41371
- const i = new Eg(), e = new jo();
41371
+ const i = new Cg(), e = new jo();
41372
41372
  e.add(g);
41373
41373
  const C = new An({ antialias: !1 });
41374
41374
  return C.setSize(t.image.width, t.image.height), C.clear(), C.render(e, i), new ZI(C.domElement);
@@ -41763,7 +41763,7 @@ class hP extends mg {
41763
41763
  super(e, [s, B]), this.audio = A, this.range = I, this.divisionsInnerAngle = g, this.divisionsOuterAngle = i, this.type = "PositionalAudioHelper", this.update();
41764
41764
  }
41765
41765
  update() {
41766
- const A = this.audio, I = this.range, g = this.divisionsInnerAngle, i = this.divisionsOuterAngle, e = ne.degToRad(A.panner.coneInnerAngle), C = ne.degToRad(A.panner.coneOuterAngle), o = e / 2, B = C / 2;
41766
+ const A = this.audio, I = this.range, g = this.divisionsInnerAngle, i = this.divisionsOuterAngle, e = ae.degToRad(A.panner.coneInnerAngle), C = ae.degToRad(A.panner.coneOuterAngle), o = e / 2, B = C / 2;
41767
41767
  let s = 0, Q = 0, a, n;
41768
41768
  const r = this.geometry, h = r.attributes.position;
41769
41769
  r.clearGroups();
@@ -41784,7 +41784,7 @@ var cP = Object.defineProperty, lP = Object.getOwnPropertyDescriptor, BB = (t, A
41784
41784
  (C = t[e]) && (i = (g ? C(A, I, i) : C(i)) || i);
41785
41785
  return g && i && cP(A, I, i), i;
41786
41786
  };
41787
- const ge = yA("debugaudio");
41787
+ const ie = yA("debugaudio");
41788
41788
  var aa;
41789
41789
  const di = (aa = class extends vA {
41790
41790
  constructor() {
@@ -41867,7 +41867,7 @@ const di = (aa = class extends vA {
41867
41867
  return this._volume;
41868
41868
  }
41869
41869
  set volume(A) {
41870
- this._volume = A, this.sound && (ge && console.log(this.name, "audio set volume", A), this.sound.setVolume(A));
41870
+ this._volume = A, this.sound && (ie && console.log(this.name, "audio set volume", A), this.sound.setVolume(A));
41871
41871
  }
41872
41872
  get Sound() {
41873
41873
  if (!this.sound && di._userInteractionRegistered) {
@@ -41905,14 +41905,14 @@ const di = (aa = class extends vA {
41905
41905
  this.stop();
41906
41906
  }
41907
41907
  onLoaded(A) {
41908
- ge && console.log("audio buffer loaded"), di.registerWaitForAllowAudio(() => {
41909
- ge && console.log("finished loading", A);
41908
+ ie && console.log("audio buffer loaded"), di.registerWaitForAllowAudio(() => {
41909
+ ie && console.log("finished loading", A);
41910
41910
  const I = this.Sound;
41911
41911
  if (!I) {
41912
41912
  console.warn("Failed getting sound", this.name);
41913
41913
  return;
41914
41914
  }
41915
- I.isPlaying && I.stop(), I.setBuffer(A), I.loop = this._loop, I.setVolume(this.volume), I.autoplay = this.shouldPlay, this.applySpatialDistanceSettings(), I.isPlaying && I.stop(), ge && console.log(this.name, this.shouldPlay, di.userInteractionRegistered, this), this.shouldPlay && di._userInteractionRegistered && this.play();
41915
+ I.isPlaying && I.stop(), I.setBuffer(A), I.loop = this._loop, I.setVolume(this.volume), I.autoplay = this.shouldPlay, this.applySpatialDistanceSettings(), I.isPlaying && I.stop(), ie && console.log(this.name, this.shouldPlay, di.userInteractionRegistered, this), this.shouldPlay && di._userInteractionRegistered && this.play();
41916
41916
  });
41917
41917
  }
41918
41918
  applySpatialDistanceSettings() {
@@ -41921,7 +41921,7 @@ const di = (aa = class extends vA {
41921
41921
  return;
41922
41922
  this._needUpdateSpatialDistanceSettings = !1;
41923
41923
  const I = this.lerp(10 * this._maxDistance / Math.max(1e-4, this.spatialBlend), this._minDistance, this.spatialBlend);
41924
- switch (ge && console.log(this.name, this._minDistance, this._maxDistance, this.spatialBlend, "Ref distance=" + I), A.setRefDistance(I), A.setMaxDistance(Math.max(0.01, this._maxDistance)), this.rollOffMode) {
41924
+ switch (ie && console.log(this.name, this._minDistance, this._maxDistance, this.spatialBlend, "Ref distance=" + I), A.setRefDistance(I), A.setMaxDistance(Math.max(0.01, this._maxDistance)), this.rollOffMode) {
41925
41925
  case 0:
41926
41926
  A.setDistanceModel("exponential");
41927
41927
  break;
@@ -41929,15 +41929,15 @@ const di = (aa = class extends vA {
41929
41929
  A.setDistanceModel("linear");
41930
41930
  break;
41931
41931
  }
41932
- this.spatialBlend > 0 ? ge && !this.helper && (this.helper = new hP(A, A.getRefDistance()), A.add(this.helper)) : this.helper && this.helper.parent && this.helper.removeFromParent();
41932
+ this.spatialBlend > 0 ? ie && !this.helper && (this.helper = new hP(A, A.getRefDistance()), A.add(this.helper)) : this.helper && this.helper.parent && this.helper.removeFromParent();
41933
41933
  }
41934
41934
  loadAndPlay(A) {
41935
- if (A && (this.clip = A), this.clip && (ge && console.log(this.clip), this.clip.endsWith(".mp3") || this.clip.endsWith(".wav"))) {
41935
+ if (A && (this.clip = A), this.clip && (ie && console.log(this.clip), this.clip.endsWith(".mp3") || this.clip.endsWith(".wav"))) {
41936
41936
  if (this.audioLoader || (this.audioLoader = new Jc()), this.shouldPlay = !0, this._lastClipStartedLoading === this.clip) {
41937
- ge && console.log("Is currently loading:", this._lastClipStartedLoading, this);
41937
+ ie && console.log("Is currently loading:", this._lastClipStartedLoading, this);
41938
41938
  return;
41939
41939
  }
41940
- this._lastClipStartedLoading = this.clip, ge && console.log("load audio", this.clip), this.audioLoader.load(this.clip, this.onLoaded.bind(this), () => {
41940
+ this._lastClipStartedLoading = this.clip, ie && console.log("load audio", this.clip), this.audioLoader.load(this.clip, this.onLoaded.bind(this), () => {
41941
41941
  }, console.error);
41942
41942
  }
41943
41943
  }
@@ -41947,15 +41947,15 @@ const di = (aa = class extends vA {
41947
41947
  this.loadAndPlay(A);
41948
41948
  return;
41949
41949
  }
41950
- this.shouldPlay = !0, this._hasEnded = !1, ge && console.log("play", (I = this.sound) == null ? void 0 : I.getVolume(), this.sound), this.sound && !this.sound.isPlaying && this.sound.play();
41950
+ this.shouldPlay = !0, this._hasEnded = !1, ie && console.log("play", (I = this.sound) == null ? void 0 : I.getVolume(), this.sound), this.sound && !this.sound.isPlaying && this.sound.play();
41951
41951
  }
41952
41952
  pause() {
41953
41953
  var A;
41954
- ge && console.log("Pause", this), this._hasEnded = !0, this.shouldPlay = !1, this.sound && this.sound.isPlaying && this.sound.source && (this._lastContextTime = (A = this.sound) == null ? void 0 : A.context.currentTime, this.sound.pause());
41954
+ ie && console.log("Pause", this), this._hasEnded = !0, this.shouldPlay = !1, this.sound && this.sound.isPlaying && this.sound.source && (this._lastContextTime = (A = this.sound) == null ? void 0 : A.context.currentTime, this.sound.pause());
41955
41955
  }
41956
41956
  stop() {
41957
41957
  var A;
41958
- ge && console.log("Pause", this), this._hasEnded = !0, this.shouldPlay = !1, this.sound && this.sound.source && (this._lastContextTime = (A = this.sound) == null ? void 0 : A.context.currentTime, ge && console.log(this._lastContextTime), this.sound.stop());
41958
+ ie && console.log("Pause", this), this._hasEnded = !0, this.shouldPlay = !1, this.sound && this.sound.source && (this._lastContextTime = (A = this.sound) == null ? void 0 : A.context.currentTime, ie && console.log(this._lastContextTime), this.sound.stop());
41959
41959
  }
41960
41960
  get isPlaying() {
41961
41961
  var A;
@@ -41976,7 +41976,7 @@ const di = (aa = class extends vA {
41976
41976
  }
41977
41977
  }
41978
41978
  update() {
41979
- this.helper && (this.isPlaying && this.helper.update(), this.helper.visible = this.isPlaying), this._needUpdateSpatialDistanceSettings && this.applySpatialDistanceSettings(), this.sound && !this.sound.isPlaying && this.shouldPlay && !this._hasEnded && (this._hasEnded = !0, ge && console.log("Audio clip ended", this.clip), this.sound.dispatchEvent({ type: "ended", target: this }));
41979
+ this.helper && (this.isPlaying && this.helper.update(), this.helper.visible = this.isPlaying), this._needUpdateSpatialDistanceSettings && this.applySpatialDistanceSettings(), this.sound && !this.sound.isPlaying && this.shouldPlay && !this._hasEnded && (this._hasEnded = !0, ie && console.log("Audio clip ended", this.clip), this.sound.dispatchEvent({ type: "ended", target: this }));
41980
41980
  }
41981
41981
  }, E(aa, "_didCallBeginWaitForUserInteraction", !1), E(aa, "callbacks", []), E(aa, "_userInteractionRegistered", !1), aa);
41982
41982
  let ji = di;
@@ -42079,7 +42079,7 @@ let am = class extends Vi {
42079
42079
  const kI = g.object.getWorldPosition(A.position);
42080
42080
  Y.copy(kI).sub(g.target), Y.applyQuaternion(pA), o.setFromVector3(Y), g.autoRotate && e === i.NONE && M(S()), g.enableDamping ? (o.theta += B.theta * g.dampingFactor, o.phi += B.phi * g.dampingFactor) : (o.theta += B.theta, o.phi += B.phi);
42081
42081
  let uI = g.minAzimuthAngle, Z = g.maxAzimuthAngle;
42082
- return isFinite(uI) && isFinite(Z) && (uI < -Math.PI ? uI += JA : uI > Math.PI && (uI -= JA), Z < -Math.PI ? Z += JA : Z > Math.PI && (Z -= JA), uI <= Z ? o.theta = Math.max(uI, Math.min(Z, o.theta)) : o.theta = o.theta > (uI + Z) / 2 ? Math.max(uI, o.theta) : Math.min(Z, o.theta)), o.phi = Math.max(g.minPolarAngle, Math.min(g.maxPolarAngle, o.phi)), o.makeSafe(), Q = ne.lerp(Q, s, g.dampingFactor), o.radius *= Q, o.radius = Math.max(g.minDistance, Math.min(g.maxDistance, o.radius)), g.enableDamping === !0 ? g.target.addScaledVector(a, g.dampingFactor) : g.target.add(a), Y.setFromSpherical(o), Y.applyQuaternion(VA), kI.copy(g.target).add(Y), g.object.parent ? g.object.parent.worldToLocal(kI) : g.object.position.copy(kI), g.object.lookAt(g.target), g.enableDamping === !0 ? (B.theta *= 1 - g.dampingFactor, B.phi *= 1 - g.dampingFactor, a.multiplyScalar(1 - g.dampingFactor)) : (B.set(0, 0, 0), a.set(0, 0, 0)), s = 1, n || YA.distanceToSquared(g.object.position) > C || 8 * (1 - OA.dot(g.object.quaternion)) > C ? (g.dispatchEvent(kk), YA.copy(g.object.position), OA.copy(g.object.quaternion), n = !1, !0) : !1;
42082
+ return isFinite(uI) && isFinite(Z) && (uI < -Math.PI ? uI += JA : uI > Math.PI && (uI -= JA), Z < -Math.PI ? Z += JA : Z > Math.PI && (Z -= JA), uI <= Z ? o.theta = Math.max(uI, Math.min(Z, o.theta)) : o.theta = o.theta > (uI + Z) / 2 ? Math.max(uI, o.theta) : Math.min(Z, o.theta)), o.phi = Math.max(g.minPolarAngle, Math.min(g.maxPolarAngle, o.phi)), o.makeSafe(), Q = ae.lerp(Q, s, g.dampingFactor), o.radius *= Q, o.radius = Math.max(g.minDistance, Math.min(g.maxDistance, o.radius)), g.enableDamping === !0 ? g.target.addScaledVector(a, g.dampingFactor) : g.target.add(a), Y.setFromSpherical(o), Y.applyQuaternion(VA), kI.copy(g.target).add(Y), g.object.parent ? g.object.parent.worldToLocal(kI) : g.object.position.copy(kI), g.object.lookAt(g.target), g.enableDamping === !0 ? (B.theta *= 1 - g.dampingFactor, B.phi *= 1 - g.dampingFactor, a.multiplyScalar(1 - g.dampingFactor)) : (B.set(0, 0, 0), a.set(0, 0, 0)), s = 1, n || YA.distanceToSquared(g.object.position) > C || 8 * (1 - OA.dot(g.object.quaternion)) > C ? (g.dispatchEvent(kk), YA.copy(g.object.position), OA.copy(g.object.quaternion), n = !1, !0) : !1;
42083
42083
  };
42084
42084
  }(), this.dispose = function() {
42085
42085
  g.domElement.removeEventListener("contextmenu", GA), g.domElement.removeEventListener("pointerdown", jA), g.domElement.removeEventListener("pointercancel", zA), g.domElement.removeEventListener("wheel", wI), g.domElement.removeEventListener("pointermove", KA), g.domElement.removeEventListener("pointerup", tI), g._domElementKeyEvents !== null && g._domElementKeyEvents.removeEventListener("keydown", x);
@@ -42524,7 +42524,7 @@ const Sl = class {
42524
42524
  let La = Sl;
42525
42525
  E(La, "xrSessionIsGranted", !1);
42526
42526
  La.registerSessionGrantedListener();
42527
- const sl = "noVoip", Ce = yA("debugvoip"), pP = yA("voip");
42527
+ const sl = "noVoip", oe = yA("debugvoip"), pP = yA("voip");
42528
42528
  class yP {
42529
42529
  constructor(A) {
42530
42530
  E(this, "id");
@@ -42544,7 +42544,7 @@ class SP {
42544
42544
  }
42545
42545
  close() {
42546
42546
  var A;
42547
- Ce && console.log("close voip call"), this.callErrorListener && this.peer.off("error", this.callErrorListener), this.call && this.call.open && this.call.close(), (A = this.stream) == null || A.getTracks().forEach(function(I) {
42547
+ oe && console.log("close voip call"), this.callErrorListener && this.peer.off("error", this.callErrorListener), this.call && this.call.open && this.call.close(), (A = this.stream) == null || A.getTracks().forEach(function(I) {
42548
42548
  I.stop();
42549
42549
  });
42550
42550
  }
@@ -42561,10 +42561,10 @@ class SP {
42561
42561
  console.warn("no permission to use microphone, can not start call");
42562
42562
  return;
42563
42563
  }
42564
- Ce && console.log("start voip call"), this.stream = await navigator.mediaDevices.getUserMedia({ audio: !0, video: !1 }), this.updateMute(this.voip.muteOutput), Ce && console.log(this.stream), this.call = this.peer.call(this.peerId, this.stream, { metadata: { userId: this.userId } }), this.call.on("error", (I) => {
42564
+ oe && console.log("start voip call"), this.stream = await navigator.mediaDevices.getUserMedia({ audio: !0, video: !1 }), this.updateMute(this.voip.muteOutput), oe && console.log(this.stream), this.call = this.peer.call(this.peerId, this.stream, { metadata: { userId: this.userId } }), this.call.on("error", (I) => {
42565
42565
  console.error(I);
42566
42566
  }), this.call.on("stream", (I) => {
42567
- Ce && console.log("received stream from remote again", I);
42567
+ oe && console.log("received stream from remote again", I);
42568
42568
  }), this.peer.on("close", this.onCallClose.bind(this)), this.callErrorListener = (I) => {
42569
42569
  var g;
42570
42570
  I.message.includes(this.peerId) ? (console.log("Could not connect to " + this.peerId), this.callErrorListener && this.peer.off("error", this.callErrorListener), this.call && this.call.close(), (g = this.stream) == null || g.getTracks().forEach(function(i) {
@@ -42573,7 +42573,7 @@ class SP {
42573
42573
  }, this.peer.on("error", this.callErrorListener);
42574
42574
  }
42575
42575
  onCallClose(A) {
42576
- Ce && console.log("call closed", A);
42576
+ oe && console.log("call closed", A);
42577
42577
  }
42578
42578
  }
42579
42579
  class fP {
@@ -42608,9 +42608,9 @@ class fP {
42608
42608
  console.warn("failed finding valid audio stream to begin call");
42609
42609
  }
42610
42610
  open(A) {
42611
- console.assert(A.kind === "audio", "invalid track kind, expected audio but received " + A.kind), !this.waitingForStart && (this.waitingForStart = !0, ji.userInteractionRegistered || Ce && console.log("Incoming call, waiting for user interaction before opening audio"), ji.registerWaitForAllowAudio(async () => {
42611
+ console.assert(A.kind === "audio", "invalid track kind, expected audio but received " + A.kind), !this.waitingForStart && (this.waitingForStart = !0, ji.userInteractionRegistered || oe && console.log("Incoming call, waiting for user interaction before opening audio"), ji.registerWaitForAllowAudio(async () => {
42612
42612
  if (this.call.open && !this.closed) {
42613
- Ce && console.log("Setup audio and begin listening"), this.stream = new MediaStream([A]);
42613
+ oe && console.log("Setup audio and begin listening"), this.stream = new MediaStream([A]);
42614
42614
  const I = new Ly();
42615
42615
  this.audio = new jl(I), this.audio.setVolume(this.voip.muteInput ? 0 : 1), this.audio.setMediaStreamSource(this.stream);
42616
42616
  const g = document.createElement("audio");
@@ -42623,7 +42623,7 @@ class fP {
42623
42623
  break;
42624
42624
  }
42625
42625
  }
42626
- }), Ce && console.log("call is setup, you should hear something now"), this.analyzer = new KR(this.audio, 32);
42626
+ }), oe && console.log("call is setup, you should hear something now"), this.analyzer = new KR(this.audio, 32);
42627
42627
  }
42628
42628
  }));
42629
42629
  }
@@ -42707,7 +42707,7 @@ class sB extends vA {
42707
42707
  const { userId: g } = I, i = this.connections[g];
42708
42708
  this.connections[g] = null, i && i.close();
42709
42709
  const e = this.currentIncomingCalls[g];
42710
- Ce && console.log("UserLeftRoom", I, g, e), e && (e.close(), this.currentIncomingCalls[g] = null);
42710
+ oe && console.log("UserLeftRoom", I, g, e), e && (e.close(), this.currentIncomingCalls[g] = null);
42711
42711
  }), this.peer.on("open", this.onOpenPeerConnection.bind(this));
42712
42712
  }
42713
42713
  onEnable() {
@@ -42737,9 +42737,9 @@ class sB extends vA {
42737
42737
  // }
42738
42738
  // }
42739
42739
  async onOpenPeerConnection(I) {
42740
- Ce && console.log("Peer connection established and received id"), this.model = new yP(I), this.context.connection.send("peer-update-id", this.model, ye.OnRoomJoin), this.peer && (this.peer.on("call", this.onReceiveCall.bind(this)), this.peer.on("connection", function(g) {
42741
- Ce && console.log("CONNECTION", g), g.on("data", function(i) {
42742
- Ce && console.log("Received", i);
42740
+ oe && console.log("Peer connection established and received id"), this.model = new yP(I), this.context.connection.send("peer-update-id", this.model, ye.OnRoomJoin), this.peer && (this.peer.on("call", this.onReceiveCall.bind(this)), this.peer.on("connection", function(g) {
42741
+ oe && console.log("CONNECTION", g), g.on("data", function(i) {
42742
+ oe && console.log("Received", i);
42743
42743
  });
42744
42744
  }));
42745
42745
  }
@@ -42747,14 +42747,14 @@ class sB extends vA {
42747
42747
  const { metadata: g } = I;
42748
42748
  console.assert(g.userId);
42749
42749
  const { userId: i } = g, e = this.currentIncomingCalls[i];
42750
- if (e && e.close(), Ce && console.log("received call"), await sB.HasMicrophonePermissions()) {
42750
+ if (e && e.close(), oe && console.log("received call"), await sB.HasMicrophonePermissions()) {
42751
42751
  const C = await navigator.mediaDevices.getUserMedia({ audio: !0, video: !1 });
42752
42752
  I.answer(C);
42753
42753
  } else
42754
42754
  I.answer(null);
42755
42755
  this.currentIncomingCalls[i] = new fP(this, this.gameObject, I), I.on("stream", (C) => {
42756
42756
  var o;
42757
- Ce && console.log("receive caller stream, will setup audio now"), (o = this.currentIncomingCalls[i]) == null || o.openAudioStream(C);
42757
+ oe && console.log("receive caller stream, will setup audio now"), (o = this.currentIncomingCalls[i]) == null || o.openAudioStream(C);
42758
42758
  }), I.on("error", console.error);
42759
42759
  }
42760
42760
  // update(): void {
@@ -42826,7 +42826,7 @@ class ls extends vA {
42826
42826
  this.gameObject.visible = !0;
42827
42827
  }
42828
42828
  onEnd(I, g) {
42829
- this._placementPose = null, this.gameObject.visible = !1, this.gameObject.matrixAutoUpdate = !1, this._startPose && this.gameObject.matrix.copy(this._startPose), I && (I.matrixAutoUpdate = !0, this._rigStartPose && this._rigStartPose.decompose(I.position, I.quaternion, I.scale)), Be.markDirty(this.gameObject, !0), setTimeout(() => {
42829
+ this._placementPose = null, this.gameObject.visible = !1, this.gameObject.matrixAutoUpdate = !1, this._startPose && this.gameObject.matrix.copy(this._startPose), I && (I.matrixAutoUpdate = !0, this._rigStartPose && this._rigStartPose.decompose(I.position, I.quaternion, I.scale)), se.markDirty(this.gameObject, !0), setTimeout(() => {
42830
42830
  this.gameObject.matrixAutoUpdate = !0, this.gameObject.visible = !0;
42831
42831
  }, 100);
42832
42832
  }
@@ -43015,9 +43015,9 @@ class bP extends HA {
43015
43015
  $I * (Pe + 1) - 1,
43016
43016
  $I * Pe
43017
43017
  );
43018
- const o = new Cg();
43018
+ const o = new og();
43019
43019
  o.transparent = !0, o.opacity = Vs, this.pointerGeometry.setIndex(i), this.pointerMesh = new MA(this.pointerGeometry, o), this.pointerMesh.position.set(0, 0, -1 * Aa), this.pointerObject = new HA(), this.pointerObject.add(this.pointerMesh), this.raycaster = new Cn();
43020
- const B = new Ct(LP, 10, 10), s = new Cg();
43020
+ const B = new Ct(LP, 10, 10), s = new og();
43021
43021
  s.transparent = !0, s.opacity = Vs, this.cursorObject = new MA(B, s), this.pointerObject.add(this.cursorObject), this.add(this.pointerObject), this.pointerObject.layers.mask = this.layers.mask, this.pointerMesh.layers.mask = this.layers.mask;
43022
43022
  }
43023
43023
  _updateRaycaster() {
@@ -43328,7 +43328,7 @@ function VP(t, A) {
43328
43328
  const { type: g, touchPointNodeName: i, visualResponses: e } = I;
43329
43329
  if (g === Sg.ComponentType.TOUCHPAD)
43330
43330
  if (I.touchPointNode = A.getObjectByName(i), I.touchPointNode) {
43331
- const C = new Ct(1e-3), o = new Cg({ color: 255 }), B = new MA(C, o);
43331
+ const C = new Ct(1e-3), o = new og({ color: 255 }), B = new MA(C, o);
43332
43332
  I.touchPointNode.add(B);
43333
43333
  } else
43334
43334
  console.warn(`Could not find touch dot, ${I.touchPointNodeName}, in touchpad component ${I.id}`);
@@ -43656,15 +43656,15 @@ const _a = class {
43656
43656
  if (A.guid === this.guid && (this.lastAvatarId !== A.avatarId && A.avatarId && A.avatarId.length > 0 && (this.lastAvatarId = A.avatarId, this.setupCustomAvatar(A.avatarId)), this.lastUpdate = A.time, this.head)) {
43657
43657
  const g = this.webxr.IsInAR ? jC.Handheld : jC.Headset;
43658
43658
  let i = this.head;
43659
- this.context.players.setPlayerView(A.guid, i, g), Be.markDirty(this.head), this._canInterpolate = !0;
43659
+ this.context.players.setPlayerView(A.guid, i, g), se.markDirty(this.head), this._canInterpolate = !0;
43660
43660
  const e = this.isLocalAvatar ? this.head : this._headTarget;
43661
43661
  if (e.position.set(A.position.x, A.position.y, A.position.z), e.quaternion.set(A.rotation.x, A.rotation.y, A.rotation.z, A.rotation.w), e.scale.set(A.scale, A.scale, A.scale), e.scale.multiply(this.headScale), this.handLeft) {
43662
43662
  const C = this.isLocalAvatar ? this.handLeft : this._handLeftTarget;
43663
- C.position.set(A.posLeftHand.x, A.posLeftHand.y, A.posLeftHand.z), C.quaternion.set(A.rotLeftHand._x, A.rotLeftHand._y, A.rotLeftHand._z, A.rotLeftHand._w), C.quaternion.multiply(_a.invertRotation), C.scale.set(A.scale, A.scale, A.scale), C.scale.multiply(this.handLeftScale), Be.markDirty(this.handLeft);
43663
+ C.position.set(A.posLeftHand.x, A.posLeftHand.y, A.posLeftHand.z), C.quaternion.set(A.rotLeftHand._x, A.rotLeftHand._y, A.rotLeftHand._z, A.rotLeftHand._w), C.quaternion.multiply(_a.invertRotation), C.scale.set(A.scale, A.scale, A.scale), C.scale.multiply(this.handLeftScale), se.markDirty(this.handLeft);
43664
43664
  }
43665
43665
  if (this.handRight) {
43666
43666
  const C = this.isLocalAvatar ? this.handRight : this._handRightTarget;
43667
- C.position.set(A.posRightHand.x, A.posRightHand.y, A.posRightHand.z), C.quaternion.set(A.rotRightHand._x, A.rotRightHand._y, A.rotRightHand._z, A.rotRightHand._w), C.quaternion.multiply(_a.invertRotation), C.scale.set(A.scale, A.scale, A.scale), C.scale.multiply(this.handRightScale), Be.markDirty(this.handRight);
43667
+ C.position.set(A.posRightHand.x, A.posRightHand.y, A.posRightHand.z), C.quaternion.set(A.rotRightHand._x, A.rotRightHand._y, A.rotRightHand._z, A.rotRightHand._w), C.quaternion.multiply(_a.invertRotation), C.scale.set(A.scale, A.scale, A.scale), C.scale.multiply(this.handRightScale), se.markDirty(this.handRight);
43668
43668
  }
43669
43669
  }
43670
43670
  }
@@ -43676,7 +43676,7 @@ const _a = class {
43676
43676
  }
43677
43677
  destroy() {
43678
43678
  var A, I;
43679
- Fo && console.log("Destroy avatar", this.guid), (A = this.root) == null || A.removeFromParent(), (I = this.avatarMarker) == null || I.destroy(), this.lastAvatarId = null, this.head && Qe.Remove(this.context, this.head);
43679
+ Fo && console.log("Destroy avatar", this.guid), (A = this.root) == null || A.removeFromParent(), (I = this.avatarMarker) == null || I.destroy(), this.lastAvatarId = null, this.head && ne.Remove(this.context, this.head);
43680
43680
  }
43681
43681
  updateVisibility() {
43682
43682
  const A = this.root;
@@ -43686,7 +43686,7 @@ const _a = class {
43686
43686
  var i, e, C;
43687
43687
  if (Fo && console.log("LOAD", A, this), !A || typeof A == "string" && A.length <= 0)
43688
43688
  return !1;
43689
- this.head && Qe.Remove(this.context, this.head);
43689
+ this.head && ne.Remove(this.context, this.head);
43690
43690
  const I = A;
43691
43691
  if ((I == null ? void 0 : I.loadAssetAsync) !== void 0) {
43692
43692
  await I.loadAssetAsync();
@@ -43696,7 +43696,7 @@ const _a = class {
43696
43696
  Fo && console.log(A);
43697
43697
  const g = await _a.loader.getOrCreateNewAvatarInstance(this.context, A);
43698
43698
  if (Fo && console.log(g, g == null ? void 0 : g.isValid, this.lastAvatarId, A), g != null && g.isValid) {
43699
- if (this.root = g.root, this.root.position.set(0, 0, 0), this.root.quaternion.set(0, 0, 0, 1), this.root.scale.set(1, 1, 1), this.avatarMarker = sA.addNewComponent(this.root, Si), this.avatarMarker.connectionId = this.guid, this.avatarMarker.avatar = this, this.head && this.head !== g.head && ((i = this.head) == null || i.removeFromParent()), this.head = g.head, this.headScale.copy(this.head.scale), this.head && !this.isLocalAvatar && Qe.Add(this.context, this.head, this.avatarMarker), g.leftHand && ((e = this.handLeft) == null || e.removeFromParent()), this.handLeft = g.leftHand ?? this.handLeft, this.handLeft ? this.handLeftScale.copy(this.handLeft.scale) : this.handLeftScale.set(1, 1, 1), g.rigthHand && ((C = this.handRight) == null || C.removeFromParent()), this.handRight = g.rigthHand ?? this.handRight, this.handRight ? this.handRightScale.copy(this.handRight.scale) : this.handRightScale.set(1, 1, 1), this.context.scene.add(this.root), this.flags == null && (this.flags = []), this.flags.length = 0, this.flags.push(...sA.getComponentsInChildren(this.root, Ni)), this.flags.length <= 0 && this.head) {
43699
+ if (this.root = g.root, this.root.position.set(0, 0, 0), this.root.quaternion.set(0, 0, 0, 1), this.root.scale.set(1, 1, 1), this.avatarMarker = sA.addNewComponent(this.root, Si), this.avatarMarker.connectionId = this.guid, this.avatarMarker.avatar = this, this.head && this.head !== g.head && ((i = this.head) == null || i.removeFromParent()), this.head = g.head, this.headScale.copy(this.head.scale), this.head && !this.isLocalAvatar && ne.Add(this.context, this.head, this.avatarMarker), g.leftHand && ((e = this.handLeft) == null || e.removeFromParent()), this.handLeft = g.leftHand ?? this.handLeft, this.handLeft ? this.handLeftScale.copy(this.handLeft.scale) : this.handLeftScale.set(1, 1, 1), g.rigthHand && ((C = this.handRight) == null || C.removeFromParent()), this.handRight = g.rigthHand ?? this.handRight, this.handRight ? this.handRightScale.copy(this.handRight.scale) : this.handRightScale.set(1, 1, 1), this.context.scene.add(this.root), this.flags == null && (this.flags = []), this.flags.length = 0, this.flags.push(...sA.getComponentsInChildren(this.root, Ni)), this.flags.length <= 0 && this.head) {
43700
43700
  const o = sA.addNewComponent(this.head, Ni);
43701
43701
  o.visibleIn = jg.ThirdPerson | jg.VR, this.flags.push(o), Fo && console.log("Added flag to head: " + o.visibleIn, this.head.name);
43702
43702
  }
@@ -43707,7 +43707,7 @@ const _a = class {
43707
43707
  };
43708
43708
  let OC = _a;
43709
43709
  E(OC, "loader", new xS()), E(OC, "invertRotation", new fA().setFromAxisAngle(new k(0, 1, 0), Math.PI));
43710
- class Qe {
43710
+ class ne {
43711
43711
  static Add(A, I, g = null) {
43712
43712
  if (I) {
43713
43713
  for (const i of this.Pois)
@@ -43727,7 +43727,7 @@ class Qe {
43727
43727
  }
43728
43728
  }
43729
43729
  }
43730
- E(Qe, "Pois", []), E(Qe, "LastChangeTime", 0);
43730
+ E(ne, "Pois", []), E(ne, "LastChangeTime", 0);
43731
43731
  class XP {
43732
43732
  constructor() {
43733
43733
  E(this, "guid");
@@ -43767,7 +43767,7 @@ class Ql extends vA {
43767
43767
  }
43768
43768
  update() {
43769
43769
  var g;
43770
- if ((!this.context.connection.isConnected || (g = this._model) != null && g.hasOwnership) && (Qe.LastChangeTime !== this._lastPoiChangedTime && (this._lastPoiChangedTime = Qe.LastChangeTime, this._lookDuration = 0), this.selectTarget(), this._currentTargetObject && this.context.time.frameCount % 10 === 0 && this.target)) {
43770
+ if ((!this.context.connection.isConnected || (g = this._model) != null && g.hasOwnership) && (ne.LastChangeTime !== this._lastPoiChangedTime && (this._lastPoiChangedTime = ne.LastChangeTime, this._lookDuration = 0), this.selectTarget(), this._currentTargetObject && this.context.time.frameCount % 10 === 0 && this.target)) {
43771
43771
  const i = yI(this._currentTargetObject);
43772
43772
  fi(this.target, i), this.context.connection.isConnected && this.avatar && (this.context.connection.send("avatar-look-target-changed", this._targetModel), this._targetModel.guid = this.avatar.guid, this._targetModel.position.copy(i));
43773
43773
  }
@@ -43775,7 +43775,7 @@ class Ql extends vA {
43775
43775
  selectTarget() {
43776
43776
  if (this.context.time.time - this._lastUpdateTime > this._lookDuration) {
43777
43777
  this._lastUpdateTime = this.context.time.time, this._lookDuration = Math.random() * 0.5 + 0.2;
43778
- const g = Qe.Pois;
43778
+ const g = ne.Pois;
43779
43779
  if (g.length > 0) {
43780
43780
  const i = g[Math.floor(Math.random() * g.length)];
43781
43781
  if (i && i.obj) {
@@ -44261,7 +44261,7 @@ class ZQ extends vA {
44261
44261
  Mo && console.log("new data", this.context.connection.connectionId, this.context.time.frameCount, this.guid, I), this.receivedUpdate = !0, this._receivedFastUpdate = I.fast();
44262
44262
  const i = I.transform();
44263
44263
  if (i) {
44264
- Be.markDirty(this.gameObject, !0);
44264
+ se.markDirty(this.gameObject, !0);
44265
44265
  const e = i.position();
44266
44266
  e && (this.interpolatePosition && ((g = this._targetPosition) == null || g.set(e.x(), e.y(), e.z())), (!this.interpolatePosition || !this._receivedDataBefore) && this.setWorldPosition(e.x(), e.y(), e.z()));
44267
44267
  const C = i.rotation();
@@ -44287,7 +44287,7 @@ class ZQ extends vA {
44287
44287
  let I = this.worldPosition, g = this.worldQuaternion;
44288
44288
  if (this._model.isOwned && !this.receivedUpdate) {
44289
44289
  const C = I.distanceTo(this.lastWorldPos), o = g.angleTo(this.lastWorldRotation), B = this._model.hasOwnership || this.fastMode ? 1e-4 : 1e-3;
44290
- (C > B || o > B) && (this._model.hasOwnership ? this._needsUpdate = !0 : (Mo && console.log(this.guid, "reset because not owned but", this.gameObject.name, this.lastWorldPos), this.worldPosition = this.lastWorldPos, I.copy(this.lastWorldPos), this.worldQuaternion = this.lastWorldRotation, g.copy(this.lastWorldRotation), Be.markDirty(this.gameObject, !0), this._needsUpdate = !1));
44290
+ (C > B || o > B) && (this._model.hasOwnership ? this._needsUpdate = !0 : (Mo && console.log(this.guid, "reset because not owned but", this.gameObject.name, this.lastWorldPos), this.worldPosition = this.lastWorldPos, I.copy(this.lastWorldPos), this.worldQuaternion = this.lastWorldRotation, g.copy(this.lastWorldRotation), se.markDirty(this.gameObject, !0), this._needsUpdate = !1));
44291
44291
  }
44292
44292
  if (this._model && !this._model.hasOwnership && this._model.isOwned && this._receivedDataBefore) {
44293
44293
  const o = this._receivedFastUpdate || this.fastMode ? 0.5 : 0.3;
@@ -44300,7 +44300,7 @@ class ZQ extends vA {
44300
44300
  const s = this.worldQuaternion;
44301
44301
  s.slerp(this._targetRotation, o), this.worldQuaternion = s, B = !0;
44302
44302
  }
44303
- B && Be.markDirty(this.gameObject, !0);
44303
+ B && se.markDirty(this.gameObject, !0);
44304
44304
  }
44305
44305
  if (this.receivedUpdate = !1, this.lastWorldPos.copy(I), this.lastWorldRotation.copy(g), !this._model)
44306
44306
  return;
@@ -44433,7 +44433,7 @@ var g1 = (t) => {
44433
44433
  var A = {};
44434
44434
  return Gi.d(A, t), A;
44435
44435
  };
44436
- const YI = g1({ BufferAttribute: () => EI, BufferGeometry: () => hI, CanvasTexture: () => ly, Color: () => T, FileLoader: () => Xg, LinearFilter: () => TI, Mesh: () => MA, Object3D: () => HA, Plane: () => $e, PlaneGeometry: () => ae, ShaderMaterial: () => Dg, TextureLoader: () => ss, Vector2: () => QA, Vector3: () => k }), Ya = "row", lm = "row-reverse", kD = "column", Dm = "column-reverse";
44436
+ const YI = g1({ BufferAttribute: () => EI, BufferGeometry: () => hI, CanvasTexture: () => ly, Color: () => T, FileLoader: () => Xg, LinearFilter: () => TI, Mesh: () => MA, Object3D: () => HA, Plane: () => $e, PlaneGeometry: () => zi, ShaderMaterial: () => Dg, TextureLoader: () => ss, Vector2: () => QA, Vector3: () => k }), Ya = "row", lm = "row-reverse", kD = "column", Dm = "column-reverse";
44437
44437
  function dm(t, A, I, g) {
44438
44438
  let i = I, e = "getWidth", C = "x", o = "y";
44439
44439
  A.indexOf(kD) === 0 && (e = "getHeight", C = "y", o = "x");
@@ -47079,7 +47079,7 @@ const Ci = class extends vA {
47079
47079
  return g.color = this.raycastColor, I.layers.set(2), I.name = "line", I.scale.z = 1, I;
47080
47080
  }
47081
47081
  static CreateRaycastHitPoint() {
47082
- const I = new Ct(0.5, 22, 22), g = new Cg({ color: this.raycastColor }), i = new MA(I, g);
47082
+ const I = new Ct(0.5, 22, 22), g = new og({ color: this.raycastColor }), i = new MA(I, g);
47083
47083
  return i.visible = !1, i.layers.set(2), i;
47084
47084
  }
47085
47085
  static Create(I, g, i, e) {
@@ -47492,14 +47492,14 @@ const _i = class {
47492
47492
  const a = A.isUsingHands && o ? this.controller.getWristQuaternion().clone() : A.rayRotation.clone();
47493
47493
  Fe(this.selected, this.localQuaternionToGrab).premultiply(a.invert());
47494
47494
  const n = this.controller.webXR.Rig;
47495
- return n && this.rigPositionLastFrame.copy(yI(n)), Qe.Add(A.context, this.selected), _i.Register(this), this.sync && (this.sync.fastMode = !0), (h = _i.Events.DidTake) == null || h.forEach((c) => c(this, B)), this;
47495
+ return n && this.rigPositionLastFrame.copy(yI(n)), ne.Add(A.context, this.selected), _i.Register(this), this.sync && (this.sync.fastMode = !0), (h = _i.Events.DidTake) == null || h.forEach((c) => c(this, B)), this;
47496
47496
  }
47497
47497
  free() {
47498
47498
  var i, e, C, o;
47499
47499
  if (!this.selected)
47500
47500
  return;
47501
47501
  const A = { controller: this.controller, take: this.selected, hit: this.selected, sync: this.sync, interactable: null };
47502
- (i = _i.Events.WillFree) == null || i.forEach((B) => B(this, A)), Qe.Remove(this.controller.context, this.selected), _i.Remove(this), this.sync && (this.sync.fastMode = !1);
47502
+ (i = _i.Events.WillFree) == null || i.forEach((B) => B(this, A)), ne.Remove(this.controller.context, this.selected), _i.Remove(this), this.sync && (this.sync.fastMode = !1);
47503
47503
  const I = this.selectedMesh;
47504
47504
  I && this.originalMaterial && I.material && (I.material = this.originalMaterial);
47505
47505
  const g = this.selected;
@@ -47540,7 +47540,7 @@ const _i = class {
47540
47540
  if (this.rigidbodies != null)
47541
47541
  for (const I of this.rigidbodies)
47542
47542
  I.wakeUp();
47543
- Be.markDirty(this.selected, !0);
47543
+ se.markDirty(this.selected, !0);
47544
47544
  }
47545
47545
  }
47546
47546
  };
@@ -48236,7 +48236,7 @@ const dQ = class {
48236
48236
  });
48237
48237
  }), !this.reticle && this.sessionRoot && (this.reticle = new MA(
48238
48238
  new en(0.07, 0.09, 32).rotateX(-Math.PI / 2),
48239
- new Cg()
48239
+ new og()
48240
48240
  ), this.reticle.name = "AR Placement reticle", this.reticle.matrixAutoUpdate = !1, this.reticle.visible = !1, this.reticleParent = new HA(), this.reticleParent.name = "AR Reticle Parent", this.reticleParent.matrixAutoUpdate = !1, this.reticleParent.add(this.reticle), this.webxr.scene ? (this.context.scene.add(this.reticleParent), this.context.scene.visible = !0) : console.warn("Could not found WebXR Rig")), this._previousParent = this.webxr.gameObject, dQ.tempWebXRObject || (dQ.tempWebXRObject = new HA()), this.context.scene.add(dQ.tempWebXRObject), sA.addComponent(dQ.tempWebXRObject, this.webxr), this.sessionRoot ? (this.sessionRoot.webAR = this, (o = this.sessionRoot) == null || o.onBegin(A)) : console.warn("No WebARSessionRoot found in scene");
48241
48241
  const e = this.context.domElement;
48242
48242
  (B = e == null ? void 0 : e.onEnterAR) == null || B.call(e, A, this.arOverlayElement), (s = this.context.mainCameraComponent) == null || s.applyClearFlagsIfIsActiveCamera();
@@ -48804,7 +48804,7 @@ const up = (xh = class extends vA {
48804
48804
  E(this, "_backgroundBlurriness");
48805
48805
  E(this, "_backgroundIntensity");
48806
48806
  E(this, "_backgroundColor");
48807
- E(this, "_fov", 60);
48807
+ E(this, "_fov");
48808
48808
  E(this, "_cam", null);
48809
48809
  E(this, "_clearFlags", 2);
48810
48810
  E(this, "_skybox");
@@ -48813,14 +48813,20 @@ const up = (xh = class extends vA {
48813
48813
  return !0;
48814
48814
  }
48815
48815
  get aspect() {
48816
- return this._cam instanceof Eg ? this._cam.aspect : this.context.domWidth / this.context.domHeight;
48816
+ return this._cam instanceof Cg ? this._cam.aspect : this.context.domWidth / this.context.domHeight;
48817
48817
  }
48818
48818
  get fieldOfView() {
48819
- return this._fov;
48819
+ return this._cam instanceof Cg ? this._cam.fov : this._fov;
48820
48820
  }
48821
48821
  set fieldOfView(A) {
48822
48822
  const I = this._fov != A;
48823
- this._fov = A, I && this._cam && this._cam instanceof Eg && (this._cam.fov = this._fov, this._cam.updateProjectionMatrix());
48823
+ if (this._fov = A, I && this._cam && this._cam instanceof Cg) {
48824
+ if (this._fov === void 0) {
48825
+ console.error("Can not set undefined fov on PerspectiveCamera");
48826
+ return;
48827
+ }
48828
+ this._cam.fov = this._fov, this._cam.updateProjectionMatrix();
48829
+ }
48824
48830
  }
48825
48831
  get nearClipPlane() {
48826
48832
  return this._nearClipPlane;
@@ -48904,10 +48910,10 @@ const up = (xh = class extends vA {
48904
48910
  return;
48905
48911
  const A = this.gameObject.isCamera;
48906
48912
  let I = null;
48907
- if (A ? (I = this.gameObject, I == null || I.layers.enableAll()) : I = this.gameObject.children[0], I && I.isCamera)
48908
- I.type === "PerspectiveCamera" && (I.fov = this._fov, I.near = this._nearClipPlane, I.far = this._farClipPlane, I.updateProjectionMatrix());
48913
+ if (A ? (I = this.gameObject, I == null || I.layers.enableAll(), I instanceof Cg && (this._fov = I.fov)) : I = this.gameObject.children[0], I && I.isCamera)
48914
+ I.type === "PerspectiveCamera" && (this._fov && (I.fov = this._fov), I.near = this._nearClipPlane, I.far = this._farClipPlane, I.updateProjectionMatrix());
48909
48915
  else if (!this.orthographic)
48910
- I = new Eg(this.fieldOfView, window.innerWidth / window.innerHeight, this._nearClipPlane, this._farClipPlane), I.fov = this.fieldOfView, this.gameObject.add(I);
48916
+ I = new Cg(this.fieldOfView, window.innerWidth / window.innerHeight, this._nearClipPlane, this._farClipPlane), this.fieldOfView && (I.fov = this.fieldOfView), this.gameObject.add(I);
48911
48917
  else {
48912
48918
  const g = this.orthographicSize * 100;
48913
48919
  I = new iB(window.innerWidth / -g, window.innerWidth / g, window.innerHeight / g, window.innerHeight / -g, this._nearClipPlane, this._farClipPlane), this.gameObject.add(I);
@@ -50842,9 +50848,10 @@ const IK = class extends ND {
50842
50848
  const I = this.gameObject, g = A.gameObject;
50843
50849
  g == null || g.add(I);
50844
50850
  const i = A.farClipPlane;
50845
- I.position.x = 0, I.position.y = 0, I.position.z = -i;
50846
- const e = Math.tan(gI.toRadians(A.fieldOfView) * i) * (A.aspect * 1.333333), C = e * (this.context.domHeight / this.context.domWidth);
50847
- I.scale.x = -e, I.scale.y = C;
50851
+ if (I.position.x = 0, I.position.y = 0, I.position.z = -i, A.fieldOfView) {
50852
+ const e = Math.tan(gI.toRadians(A.fieldOfView) * i) * (A.aspect * 1.333333), C = e * (this.context.domHeight / this.context.domWidth);
50853
+ I.scale.x = -e, I.scale.y = C;
50854
+ }
50848
50855
  break;
50849
50856
  }
50850
50857
  }
@@ -52044,7 +52051,7 @@ $([
52044
52051
  $([
52045
52052
  R()
52046
52053
  ], Pg.prototype, "randomPositionAmount", 2);
52047
- class XI {
52054
+ class zI {
52048
52055
  constructor() {
52049
52056
  E(this, "damping");
52050
52057
  E(this, "enabled");
@@ -52093,82 +52100,82 @@ class XI {
52093
52100
  }
52094
52101
  $([
52095
52102
  R()
52096
- ], XI.prototype, "damping", 2);
52103
+ ], zI.prototype, "damping", 2);
52097
52104
  $([
52098
52105
  R()
52099
- ], XI.prototype, "enabled", 2);
52106
+ ], zI.prototype, "enabled", 2);
52100
52107
  $([
52101
52108
  R()
52102
- ], XI.prototype, "frequency", 2);
52109
+ ], zI.prototype, "frequency", 2);
52103
52110
  $([
52104
52111
  R()
52105
- ], XI.prototype, "octaveCount", 2);
52112
+ ], zI.prototype, "octaveCount", 2);
52106
52113
  $([
52107
52114
  R()
52108
- ], XI.prototype, "octaveMultiplier", 2);
52115
+ ], zI.prototype, "octaveMultiplier", 2);
52109
52116
  $([
52110
52117
  R()
52111
- ], XI.prototype, "octaveScale", 2);
52118
+ ], zI.prototype, "octaveScale", 2);
52112
52119
  $([
52113
52120
  R(oI)
52114
- ], XI.prototype, "positionAmount", 2);
52121
+ ], zI.prototype, "positionAmount", 2);
52115
52122
  $([
52116
52123
  R()
52117
- ], XI.prototype, "quality", 2);
52124
+ ], zI.prototype, "quality", 2);
52118
52125
  $([
52119
52126
  R(oI)
52120
- ], XI.prototype, "remap", 2);
52127
+ ], zI.prototype, "remap", 2);
52121
52128
  $([
52122
52129
  R()
52123
- ], XI.prototype, "remapEnabled", 2);
52130
+ ], zI.prototype, "remapEnabled", 2);
52124
52131
  $([
52125
52132
  R()
52126
- ], XI.prototype, "remapMultiplier", 2);
52133
+ ], zI.prototype, "remapMultiplier", 2);
52127
52134
  $([
52128
52135
  R(oI)
52129
- ], XI.prototype, "remapX", 2);
52136
+ ], zI.prototype, "remapX", 2);
52130
52137
  $([
52131
52138
  R()
52132
- ], XI.prototype, "remapXMultiplier", 2);
52139
+ ], zI.prototype, "remapXMultiplier", 2);
52133
52140
  $([
52134
52141
  R(oI)
52135
- ], XI.prototype, "remapY", 2);
52142
+ ], zI.prototype, "remapY", 2);
52136
52143
  $([
52137
52144
  R()
52138
- ], XI.prototype, "remapYMultiplier", 2);
52145
+ ], zI.prototype, "remapYMultiplier", 2);
52139
52146
  $([
52140
52147
  R(oI)
52141
- ], XI.prototype, "remapZ", 2);
52148
+ ], zI.prototype, "remapZ", 2);
52142
52149
  $([
52143
52150
  R()
52144
- ], XI.prototype, "remapZMultiplier", 2);
52151
+ ], zI.prototype, "remapZMultiplier", 2);
52145
52152
  $([
52146
52153
  R()
52147
- ], XI.prototype, "scrollSpeedMultiplier", 2);
52154
+ ], zI.prototype, "scrollSpeedMultiplier", 2);
52148
52155
  $([
52149
52156
  R()
52150
- ], XI.prototype, "separateAxes", 2);
52157
+ ], zI.prototype, "separateAxes", 2);
52151
52158
  $([
52152
52159
  R()
52153
- ], XI.prototype, "strengthMultiplier", 2);
52160
+ ], zI.prototype, "strengthMultiplier", 2);
52154
52161
  $([
52155
52162
  R(oI)
52156
- ], XI.prototype, "strengthX", 2);
52163
+ ], zI.prototype, "strengthX", 2);
52157
52164
  $([
52158
52165
  R()
52159
- ], XI.prototype, "strengthXMultiplier", 2);
52166
+ ], zI.prototype, "strengthXMultiplier", 2);
52160
52167
  $([
52161
52168
  R(oI)
52162
- ], XI.prototype, "strengthY", 2);
52169
+ ], zI.prototype, "strengthY", 2);
52163
52170
  $([
52164
52171
  R()
52165
- ], XI.prototype, "strengthYMultiplier", 2);
52172
+ ], zI.prototype, "strengthYMultiplier", 2);
52166
52173
  $([
52167
52174
  R(oI)
52168
- ], XI.prototype, "strengthZ", 2);
52175
+ ], zI.prototype, "strengthZ", 2);
52169
52176
  $([
52170
52177
  R()
52171
- ], XI.prototype, "strengthZMultiplier", 2);
52178
+ ], zI.prototype, "strengthZMultiplier", 2);
52172
52179
  class dg {
52173
52180
  constructor() {
52174
52181
  E(this, "enabled");
@@ -52872,7 +52879,7 @@ const _f = class {
52872
52879
  this._camera = A;
52873
52880
  const I = new mg(_f.geometry), g = I.material;
52874
52881
  g.color = new T(0.4, 0.4, 0.4), I.layers.set(2), I.name = "line", I.scale.y = 1, this._groundLine = I;
52875
- const i = new Ct(0.5, 22, 22), e = new Cg({ color: g.color }), C = new MA(i, e);
52882
+ const i = new Ct(0.5, 22, 22), e = new og({ color: g.color }), C = new MA(i, e);
52876
52883
  C.visible = !1, C.layers.set(2), this._groundMarker = C;
52877
52884
  }
52878
52885
  get hasSelected() {
@@ -52885,12 +52892,12 @@ const _f = class {
52885
52892
  if (this._selected && I)
52886
52893
  for (const g of this._rbs)
52887
52894
  g.wakeUp(), g.setVelocity(0, 0, 0);
52888
- if (this._selected && Qe.Remove(I, this._selected), this._selected = A, this._context = I, this._rbs.length = 0, A ? (I.scene.add(this._groundLine), I.scene.add(this._groundMarker)) : (this._groundLine.removeFromParent(), this._groundMarker.removeFromParent()), this._selected) {
52895
+ if (this._selected && ne.Remove(I, this._selected), this._selected = A, this._context = I, this._rbs.length = 0, A ? (I.scene.add(this._groundLine), I.scene.add(this._groundMarker)) : (this._groundLine.removeFromParent(), this._groundMarker.removeFromParent()), this._selected) {
52889
52896
  if (!I) {
52890
52897
  console.error("DragHelper: no context");
52891
52898
  return;
52892
52899
  }
52893
- Qe.Add(I, this._selected, null), this._groundOffsetFactor = 0, this._hasGroundPlane = !0, this._groundOffset.set(0, 0, 0), this._requireUpdateGroundPlane = !0, this.onUpdateScreenSpacePlane();
52900
+ ne.Add(I, this._selected, null), this._groundOffsetFactor = 0, this._hasGroundPlane = !0, this._groundOffset.set(0, 0, 0), this._requireUpdateGroundPlane = !0, this.onUpdateScreenSpacePlane();
52894
52901
  }
52895
52902
  }
52896
52903
  onUpdate(A) {
@@ -52957,7 +52964,7 @@ const _f = class {
52957
52964
  this._hasGroundPlane = !0, this._groundPlane.setFromNormalAndCoplanarPoint(I.direction.multiplyScalar(-1), I.origin), this._raycaster.ray.intersectPlane(this._groundPlane, this._intersection), this._groundDistance = this._intersection.distanceTo(A), this._groundOffset.copy(this._intersection).sub(A);
52958
52965
  }
52959
52966
  onDidUpdate() {
52960
- Be.markDirty(this._selected);
52967
+ se.markDirty(this._selected);
52961
52968
  for (const A of this._rbs)
52962
52969
  A.wakeUp(), A.resetForcesAndTorques(), A.setAngularVelocity(0, 0, 0);
52963
52970
  }
@@ -53077,7 +53084,7 @@ async function t4(t, A, I, g, i) {
53077
53084
  }
53078
53085
  const pp = {};
53079
53086
  function C4(t, A) {
53080
- const I = new zI(), g = new MA(I, new Cg({ color: 65280 })), i = new zl(g, 5592405);
53087
+ const I = new XI(), g = new MA(I, new og({ color: 65280 })), i = new zl(g, 5592405);
53081
53088
  if (pp[t.guid] = i, A.scene.add(i), t.parentGuid) {
53082
53089
  const e = ID(t.parentGuid, A.scene);
53083
53090
  e && e.add(i);
@@ -53966,7 +53973,7 @@ const Pf = class {
53966
53973
  E(this, "inst");
53967
53974
  E(this, "handles", []);
53968
53975
  E(this, "maxCount");
53969
- this.name = A, this.geo = I, this.material = g, this.context = e, this.maxCount = i, u4 && (g = new Cg({ color: this.randomColor() })), this.inst = new bl(I, g, i), this.inst.count = 0, this.inst.layers.set(2), this.inst.visible = !0, this.context.scene.add(this.inst);
53976
+ this.name = A, this.geo = I, this.material = g, this.context = e, this.maxCount = i, u4 && (g = new og({ color: this.randomColor() })), this.inst = new bl(I, g, i), this.inst.count = 0, this.inst.layers.set(2), this.inst.visible = !0, this.context.scene.add(this.inst);
53970
53977
  }
53971
53978
  get currentCount() {
53972
53979
  return this.inst.count;
@@ -54278,7 +54285,7 @@ Ff([
54278
54285
  ], Er.prototype, "color", 1);
54279
54286
  let mw, Kw, Xs, kh;
54280
54287
  function Jw(t, A, I) {
54281
- Kw || (Kw = new ae(2, 2, 1, 1)), Xs || (Xs = new Dg({
54288
+ Kw || (Kw = new zi(2, 2, 1, 1)), Xs || (Xs = new Dg({
54282
54289
  uniforms: { blitTexture: new Me(t) },
54283
54290
  vertexShader: `
54284
54291
  varying vec2 vUv;
@@ -54305,7 +54312,7 @@ function Jw(t, A, I) {
54305
54312
  #endif
54306
54313
  }`
54307
54314
  })), Xs.uniforms.blitTexture.value = t, Xs.defines.IS_SRGB = t.encoding == DI, Xs.needsUpdate = !0, kh || (kh = new MA(Kw, Xs), kh.frustrumCulled = !1);
54308
- const g = new Eg(), i = new jo();
54315
+ const g = new Cg(), i = new jo();
54309
54316
  i.add(kh), I || (mw || (mw = new An({ antialias: !1 })), I = mw), I.setSize(Math.min(t.image.width, A), Math.min(t.image.height, A)), I.clear(), I.render(i, g);
54310
54317
  const e = new ZI(I.domElement);
54311
54318
  return e.userData.mimeType = "image/png", e;
@@ -54979,7 +54986,7 @@ class v4 {
54979
54986
  znear: A.near < 0 ? 0 : A.near
54980
54987
  } : i.perspective = {
54981
54988
  aspectRatio: A.aspect,
54982
- yfov: ne.degToRad(A.fov),
54989
+ yfov: ae.degToRad(A.fov),
54983
54990
  zfar: A.far <= 0 ? 1e-3 : A.far,
54984
54991
  znear: A.near < 0 ? 0 : A.near
54985
54992
  }, A.name !== "" && (i.name = A.type), I.cameras.push(i) - 1;
@@ -57387,7 +57394,7 @@ var SW = /* @__PURE__ */ function(t) {
57387
57394
  return KI(t, [{
57388
57395
  key: "genValue",
57389
57396
  value: function() {
57390
- return ne.lerp(this.a, this.b, Math.random());
57397
+ return ae.lerp(this.a, this.b, Math.random());
57391
57398
  }
57392
57399
  }, {
57393
57400
  key: "toJSON",
@@ -58570,7 +58577,7 @@ var uM = /* @__PURE__ */ function() {
58570
58577
  return KI(t, [{
58571
58578
  key: "initialize",
58572
58579
  value: function(I) {
58573
- var g = Math.random(), i = ne.lerp(1 - this.thickness, 1, Math.random()), e = g * this.arc, C = Math.sqrt(i), o = Math.sin(e), B = Math.cos(e);
58580
+ var g = Math.random(), i = ae.lerp(1 - this.thickness, 1, Math.random()), e = g * this.arc, C = Math.sqrt(i), o = Math.sin(e), B = Math.cos(e);
58574
58581
  I.position.x = C * B, I.position.y = C * o, I.position.z = 0;
58575
58582
  var s = this.angle * C;
58576
58583
  I.velocity.set(0, 0, Math.cos(s)).addScaledVector(I.position, Math.sin(s)).multiplyScalar(I.startSpeed), I.position.multiplyScalar(this.radius);
@@ -58610,7 +58617,7 @@ var uM = /* @__PURE__ */ function() {
58610
58617
  return KI(t, [{
58611
58618
  key: "initialize",
58612
58619
  value: function(I) {
58613
- var g = Math.random(), i = ne.lerp(this.thickness, 1, Math.random()), e = g * this.arc, C = Math.sqrt(i), o = Math.sin(e), B = Math.cos(e);
58620
+ var g = Math.random(), i = ae.lerp(this.thickness, 1, Math.random()), e = g * this.arc, C = Math.sqrt(i), o = Math.sin(e), B = Math.cos(e);
58614
58621
  I.position.x = C * B, I.position.y = C * o, I.position.z = 0;
58615
58622
  var s = this.angle * C;
58616
58623
  I.velocity.set(0, 0, Math.cos(s)).addScaledVector(I.position, Math.sin(s)).multiplyScalar(I.startSpeed), I.position.multiplyScalar(this.radius);
@@ -58678,7 +58685,7 @@ var uM = /* @__PURE__ */ function() {
58678
58685
  return KI(t, [{
58679
58686
  key: "initialize",
58680
58687
  value: function(I) {
58681
- var g = Math.random(), i = Math.random(), e = ne.lerp(1 - this.thickness, 1, Math.random()), C = g * this.arc, o = Math.acos(2 * i - 1), B = Math.cbrt(e), s = Math.sin(C), Q = Math.cos(C), a = Math.sin(o), n = Math.cos(o);
58688
+ var g = Math.random(), i = Math.random(), e = ae.lerp(1 - this.thickness, 1, Math.random()), C = g * this.arc, o = Math.acos(2 * i - 1), B = Math.cbrt(e), s = Math.sin(C), Q = Math.cos(C), a = Math.sin(o), n = Math.cos(o);
58682
58689
  I.position.x = B * a * Q, I.position.y = B * a * s, I.position.z = B * n, I.velocity.setScalar(0).addScaledVector(I.position, I.startSpeed), I.position.multiplyScalar(this.radius);
58683
58690
  }
58684
58691
  }, {
@@ -58829,7 +58836,7 @@ var kK = /* @__PURE__ */ function(t) {
58829
58836
  this.systems.delete(i);
58830
58837
  }
58831
58838
  }]), I;
58832
- }(MA), OW = new k(0, 0, 1), fM = new fA(), _W = new ae(1, 1, 1, 1), PW = /* @__PURE__ */ function() {
58839
+ }(MA), OW = new k(0, 0, 1), fM = new fA(), _W = new zi(1, 1, 1, 1), PW = /* @__PURE__ */ function() {
58833
58840
  function t(A, I) {
58834
58841
  var g, i, e, C, o, B, s, Q, a, n, r, h, c, l, w, p, D, d, u, y, f, S;
58835
58842
  mI(this, t), BA(this, "autoDestroy", void 0), BA(this, "looping", void 0), BA(this, "duration", void 0), BA(this, "startLife", void 0), BA(this, "startSpeed", void 0), BA(this, "startRotation", void 0), BA(this, "startSize", void 0), BA(this, "startColor", void 0), BA(this, "startTileIndex", void 0), BA(this, "rendererEmitterSettings", void 0), BA(this, "emissionOverTime", void 0), BA(this, "emissionOverDistance", void 0), BA(this, "emissionBursts", void 0), BA(this, "onlyUsedByOther", void 0), BA(this, "worldSpace", void 0), BA(this, "speedFactor", void 0), BA(this, "particleNum", void 0), BA(this, "paused", void 0), BA(this, "emissionState", void 0), BA(this, "emitEnded", void 0), BA(this, "markForDestroy", void 0), BA(this, "normalMatrix", new Og()), BA(this, "behaviors", void 0), BA(this, "particles", void 0), BA(this, "emitterShape", void 0), BA(this, "emitter", void 0), BA(this, "rendererSettings", void 0), BA(this, "renderer", void 0), BA(this, "neededToUpdateRender", void 0), this.renderer = A, this.autoDestroy = I.autoDestroy === void 0 ? !1 : I.autoDestroy, this.duration = (g = I.duration) !== null && g !== void 0 ? g : 1, this.looping = I.looping === void 0 ? !0 : I.looping, this.startLife = (i = I.startLife) !== null && i !== void 0 ? i : new Pi(5), this.startSpeed = (e = I.startSpeed) !== null && e !== void 0 ? e : new Pi(0), this.startRotation = (C = I.startRotation) !== null && C !== void 0 ? C : new Pi(0), this.startSize = (o = I.startSize) !== null && o !== void 0 ? o : new Pi(1), this.startColor = (B = I.startColor) !== null && B !== void 0 ? B : new wl(new sI(1, 1, 1, 1)), this.emissionOverTime = (s = I.emissionOverTime) !== null && s !== void 0 ? s : new Pi(10), this.emissionOverDistance = (Q = I.emissionOverDistance) !== null && Q !== void 0 ? Q : new Pi(0), this.emissionBursts = (a = I.emissionBursts) !== null && a !== void 0 ? a : [], this.onlyUsedByOther = (n = I.onlyUsedByOther) !== null && n !== void 0 ? n : !1, this.emitterShape = (r = I.shape) !== null && r !== void 0 ? r : new Gp(), this.behaviors = (h = I.behaviors) !== null && h !== void 0 ? h : new Array(), this.worldSpace = (c = I.worldSpace) !== null && c !== void 0 ? c : !1, this.speedFactor = (l = I.speedFactor) !== null && l !== void 0 ? l : 0, this.rendererEmitterSettings = (w = I.rendererEmitterSettings) !== null && w !== void 0 ? w : {}, this.rendererSettings = {
@@ -58900,7 +58907,7 @@ var kK = /* @__PURE__ */ function(t) {
58900
58907
  break;
58901
58908
  case rI.LocalSpace:
58902
58909
  this.rendererEmitterSettings = {
58903
- geometry: new ae(1, 1)
58910
+ geometry: new zi(1, 1)
58904
58911
  }, this.startRotation = new SK(new k(0, 1, 0), new Pi(0));
58905
58912
  break;
58906
58913
  case rI.BillBoard:
@@ -59766,7 +59773,13 @@ class qn extends vA {
59766
59773
  }
59767
59774
  getMesh(I) {
59768
59775
  let g = null;
59769
- return I === _C.HorizontalBillboard ? g = new zI(1, 1, 0) : I === _C.VerticalBillboard && (g = new zI(1, 0, 1)), g || (this.particleMesh instanceof MA && (g = this.particleMesh.geometry), g === null && (g = new zI(1, 1, 0))), new MA(g, this.getMaterial());
59776
+ if (I === _C.HorizontalBillboard ? g = new XI(1, 1, 0) : I === _C.VerticalBillboard && (g = new XI(1, 0, 1)), !g && (this.particleMesh instanceof MA && (g = this.particleMesh.geometry), g === null)) {
59777
+ g = new zi(1, 1);
59778
+ const e = g.attributes.uv;
59779
+ for (let C = 0; C < e.count; C++)
59780
+ e.setX(C, 1 - e.getX(C));
59781
+ }
59782
+ return new MA(g, this.getMaterial());
59770
59783
  }
59771
59784
  }
59772
59785
  Ei([
@@ -60314,7 +60327,7 @@ Ei([
60314
60327
  R(Pg)
60315
60328
  ], ri.prototype, "shape", 2);
60316
60329
  Ei([
60317
- R(XI)
60330
+ R(zI)
60318
60331
  ], ri.prototype, "noise", 2);
60319
60332
  Ei([
60320
60333
  R(dg)
@@ -60862,7 +60875,7 @@ class S8 {
60862
60875
  let g;
60863
60876
  switch (A) {
60864
60877
  case 0:
60865
- const i = new ae(1, 1, 1, 1), e = (I == null ? void 0 : I.material) ?? new Cg({ color: 16777215 });
60878
+ const i = new zi(1, 1, 1, 1), e = (I == null ? void 0 : I.material) ?? new og({ color: 16777215 });
60866
60879
  g = new MA(i, e);
60867
60880
  }
60868
60881
  return I != null && I.name && (g.name = I.name), g;
@@ -60875,7 +60888,7 @@ var f8 = Object.defineProperty, G8 = Object.getOwnPropertyDescriptor, Jt = (t, A
60875
60888
  };
60876
60889
  const mh = yA("debugvideo");
60877
60890
  var mK = /* @__PURE__ */ ((t) => (t[t.CameraFarPlane = 0] = "CameraFarPlane", t[t.CameraNearPlane = 1] = "CameraNearPlane", t[t.RenderTexture = 2] = "RenderTexture", t[t.MaterialOverride = 3] = "MaterialOverride", t))(mK || {});
60878
- class zi extends vA {
60891
+ class Xi extends vA {
60879
60892
  constructor() {
60880
60893
  super();
60881
60894
  E(this, "renderer", null);
@@ -61118,37 +61131,37 @@ class zi extends vA {
61118
61131
  }
61119
61132
  Jt([
61120
61133
  R(HA)
61121
- ], zi.prototype, "renderer", 2);
61134
+ ], Xi.prototype, "renderer", 2);
61122
61135
  Jt([
61123
61136
  R()
61124
- ], zi.prototype, "playOnAwake", 2);
61137
+ ], Xi.prototype, "playOnAwake", 2);
61125
61138
  Jt([
61126
61139
  R()
61127
- ], zi.prototype, "playOnEnable", 2);
61140
+ ], Xi.prototype, "playOnEnable", 2);
61128
61141
  Jt([
61129
61142
  R()
61130
- ], zi.prototype, "aspectMode", 2);
61143
+ ], Xi.prototype, "aspectMode", 2);
61131
61144
  Jt([
61132
61145
  R()
61133
- ], zi.prototype, "renderMode", 2);
61146
+ ], Xi.prototype, "renderMode", 2);
61134
61147
  Jt([
61135
61148
  R()
61136
- ], zi.prototype, "targetMaterialProperty", 2);
61149
+ ], Xi.prototype, "targetMaterialProperty", 2);
61137
61150
  Jt([
61138
61151
  R(ni)
61139
- ], zi.prototype, "targetMaterialRenderer", 2);
61152
+ ], Xi.prototype, "targetMaterialRenderer", 2);
61140
61153
  Jt([
61141
61154
  R(ZI)
61142
- ], zi.prototype, "targetTexture", 2);
61155
+ ], Xi.prototype, "targetTexture", 2);
61143
61156
  Jt([
61144
61157
  R()
61145
- ], zi.prototype, "time", 2);
61158
+ ], Xi.prototype, "time", 2);
61146
61159
  Jt([
61147
61160
  R()
61148
- ], zi.prototype, "playbackSpeed", 1);
61161
+ ], Xi.prototype, "playbackSpeed", 1);
61149
61162
  Jt([
61150
61163
  R()
61151
- ], zi.prototype, "isLooping", 1);
61164
+ ], Xi.prototype, "isLooping", 1);
61152
61165
  class k8 {
61153
61166
  constructor(A) {
61154
61167
  E(this, "context");
@@ -61399,7 +61412,7 @@ class Ad extends vA {
61399
61412
  });
61400
61413
  }
61401
61414
  start() {
61402
- if (this.videoPlayer || (this.videoPlayer = sA.getComponent(this.gameObject, zi) ?? void 0), !this.videoPlayer) {
61415
+ if (this.videoPlayer || (this.videoPlayer = sA.getComponent(this.gameObject, Xi) ?? void 0), !this.videoPlayer) {
61403
61416
  console.error("Screencapture did not find a VideoPlayer component");
61404
61417
  return;
61405
61418
  }
@@ -61499,7 +61512,7 @@ class Ad extends vA {
61499
61512
  // }
61500
61513
  }
61501
61514
  KK([
61502
- R(zi)
61515
+ R(Xi)
61503
61516
  ], Ad.prototype, "videoPlayer", 2);
61504
61517
  KK([
61505
61518
  R()
@@ -61858,7 +61871,7 @@ gd([
61858
61871
  ], Ss.prototype, "positionAxes", 2);
61859
61872
  class x8 extends MA {
61860
61873
  constructor(A) {
61861
- const I = new H8(A), g = new ae(I.image.width * 1e-3, I.image.height * 1e-3), i = new Cg({ map: I, toneMapped: !1, transparent: !0 });
61874
+ const I = new H8(A), g = new zi(I.image.width * 1e-3, I.image.height * 1e-3), i = new og({ map: I, toneMapped: !1, transparent: !0 });
61862
61875
  super(g, i);
61863
61876
  function e(C) {
61864
61877
  i.map.dispatchDOMEvent(C);
@@ -62527,7 +62540,7 @@ class IZ {
62527
62540
  }, 1e3));
62528
62541
  }
62529
62542
  }
62530
- var gZ = Object.defineProperty, iZ = Object.getOwnPropertyDescriptor, Xi = (t, A, I, g) => {
62543
+ var gZ = Object.defineProperty, iZ = Object.getOwnPropertyDescriptor, $i = (t, A, I, g) => {
62531
62544
  for (var i = g > 1 ? void 0 : g ? iZ(A, I) : A, e = t.length - 1, C; e >= 0; e--)
62532
62545
  (C = t[e]) && (i = (g ? C(A, I, i) : C(i)) || i);
62533
62546
  return g && i && gZ(A, I, i), i;
@@ -62562,19 +62575,19 @@ class rB {
62562
62575
  E(this, "_geometry");
62563
62576
  }
62564
62577
  }
62565
- Xi([
62578
+ $i([
62566
62579
  R()
62567
62580
  ], rB.prototype, "guid", 2);
62568
- Xi([
62581
+ $i([
62569
62582
  R(ZI)
62570
62583
  ], rB.prototype, "texture", 2);
62571
- Xi([
62584
+ $i([
62572
62585
  DS()
62573
62586
  ], rB.prototype, "triangles", 2);
62574
- Xi([
62587
+ $i([
62575
62588
  DS()
62576
62589
  ], rB.prototype, "uv", 2);
62577
- Xi([
62590
+ $i([
62578
62591
  DS()
62579
62592
  ], rB.prototype, "vertices", 2);
62580
62593
  class ed {
@@ -62584,13 +62597,13 @@ class ed {
62584
62597
  E(this, "size");
62585
62598
  }
62586
62599
  }
62587
- Xi([
62600
+ $i([
62588
62601
  R()
62589
62602
  ], ed.prototype, "name", 2);
62590
- Xi([
62603
+ $i([
62591
62604
  R(QA)
62592
62605
  ], ed.prototype, "offset", 2);
62593
- Xi([
62606
+ $i([
62594
62607
  R(QA)
62595
62608
  ], ed.prototype, "size", 2);
62596
62609
  const Hw = Symbol("spriteOwner");
@@ -62610,13 +62623,13 @@ class bn {
62610
62623
  g && (g.encoding = DI, g.offset.set(I.offset.x, I.offset.y), g.minFilter == tg && g.magFilter == tg && (g.anisotropy = 1), g.needsUpdate = !0);
62611
62624
  }
62612
62625
  }
62613
- Xi([
62626
+ $i([
62614
62627
  R(rB)
62615
62628
  ], bn.prototype, "sprite", 2);
62616
- Xi([
62629
+ $i([
62617
62630
  R()
62618
62631
  ], bn.prototype, "index", 2);
62619
- Xi([
62632
+ $i([
62620
62633
  R(ed)
62621
62634
  ], bn.prototype, "slices", 2);
62622
62635
  class xn extends vA {
@@ -62676,7 +62689,7 @@ class xn extends vA {
62676
62689
  if (this._currentSprite)
62677
62690
  this._currentSprite.geometry = va.getOrCreateGeometry(I), this._currentSprite.material.map = I.texture;
62678
62691
  else {
62679
- const e = new Cg({ color: 16777215, side: Tg });
62692
+ const e = new og({ color: 16777215, side: Tg });
62680
62693
  if (!e)
62681
62694
  return;
62682
62695
  if (this.color && (e.color || (e.color = new T()), e.color.copy(this.color), e.opacity = this.color.alpha), e.alphaTest = 0.5, I.texture && !e.wireframe) {
@@ -62688,16 +62701,16 @@ class xn extends vA {
62688
62701
  this._currentSprite.parent !== this.gameObject && (this.drawMode === 2 && this._currentSprite.scale.set(this.size.x, this.size.y, 1), this.gameObject && this.gameObject.add(this._currentSprite)), (i = this._spriteSheet) == null || i.update();
62689
62702
  }
62690
62703
  }
62691
- Xi([
62704
+ $i([
62692
62705
  R()
62693
62706
  ], xn.prototype, "drawMode", 2);
62694
- Xi([
62707
+ $i([
62695
62708
  R(lg)
62696
62709
  ], xn.prototype, "color", 2);
62697
- Xi([
62710
+ $i([
62698
62711
  R(fg)
62699
62712
  ], xn.prototype, "sharedMaterial", 2);
62700
- Xi([
62713
+ $i([
62701
62714
  R(bn)
62702
62715
  ], xn.prototype, "sprite", 1);
62703
62716
  class Pt {
@@ -62859,7 +62872,7 @@ const Fp = (zw = class extends vA {
62859
62872
  } else
62860
62873
  return;
62861
62874
  const e = i.obj;
62862
- this.context.players.setPlayerView(g, e, jC.Browser), i.lastUpdate = this.context.time.realtimeSinceStartup, Be.markDirty(e);
62875
+ this.context.players.setPlayerView(g, e, jC.Browser), i.lastUpdate = this.context.time.realtimeSinceStartup, se.markDirty(e);
62863
62876
  const C = A.pos();
62864
62877
  C && CE(e, C.x(), C.y(), C.z());
62865
62878
  const o = A.rot();
@@ -63063,7 +63076,7 @@ class vK {
63063
63076
  }
63064
63077
  }
63065
63078
  E(vK, "temp", new k());
63066
- const fB = new Cn(), ee = new k(), Ro = new k(), ag = new fA(), qM = {
63079
+ const fB = new Cn(), te = new k(), Ro = new k(), Eg = new fA(), qM = {
63067
63080
  X: new k(1, 0, 0),
63068
63081
  Y: new k(0, 1, 0),
63069
63082
  Z: new k(0, 0, 1)
@@ -63118,18 +63131,18 @@ class aZ extends HA {
63118
63131
  const C = Ow(this._plane, fB, !0);
63119
63132
  if (C) {
63120
63133
  if (this.pointEnd.copy(C.point).sub(this.worldPositionStart), g === "translate")
63121
- this._offset.copy(this.pointEnd).sub(this.pointStart), e === "local" && I !== "XYZ" && this._offset.applyQuaternion(this._worldQuaternionInv), I.indexOf("X") === -1 && (this._offset.x = 0), I.indexOf("Y") === -1 && (this._offset.y = 0), I.indexOf("Z") === -1 && (this._offset.z = 0), e === "local" && I !== "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 && (e === "local" && (i.position.applyQuaternion(ag.copy(this._quaternionStart).invert()), I.search("X") !== -1 && (i.position.x = Math.round(i.position.x / this.translationSnap) * this.translationSnap), I.search("Y") !== -1 && (i.position.y = Math.round(i.position.y / this.translationSnap) * this.translationSnap), I.search("Z") !== -1 && (i.position.z = Math.round(i.position.z / this.translationSnap) * this.translationSnap), i.position.applyQuaternion(this._quaternionStart)), e === "world" && (i.parent && i.position.add(ee.setFromMatrixPosition(i.parent.matrixWorld)), I.search("X") !== -1 && (i.position.x = Math.round(i.position.x / this.translationSnap) * this.translationSnap), I.search("Y") !== -1 && (i.position.y = Math.round(i.position.y / this.translationSnap) * this.translationSnap), I.search("Z") !== -1 && (i.position.z = Math.round(i.position.z / this.translationSnap) * this.translationSnap), i.parent && i.position.sub(ee.setFromMatrixPosition(i.parent.matrixWorld))));
63134
+ this._offset.copy(this.pointEnd).sub(this.pointStart), e === "local" && I !== "XYZ" && this._offset.applyQuaternion(this._worldQuaternionInv), I.indexOf("X") === -1 && (this._offset.x = 0), I.indexOf("Y") === -1 && (this._offset.y = 0), I.indexOf("Z") === -1 && (this._offset.z = 0), e === "local" && I !== "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 && (e === "local" && (i.position.applyQuaternion(Eg.copy(this._quaternionStart).invert()), I.search("X") !== -1 && (i.position.x = Math.round(i.position.x / this.translationSnap) * this.translationSnap), I.search("Y") !== -1 && (i.position.y = Math.round(i.position.y / this.translationSnap) * this.translationSnap), I.search("Z") !== -1 && (i.position.z = Math.round(i.position.z / this.translationSnap) * this.translationSnap), i.position.applyQuaternion(this._quaternionStart)), e === "world" && (i.parent && i.position.add(te.setFromMatrixPosition(i.parent.matrixWorld)), I.search("X") !== -1 && (i.position.x = Math.round(i.position.x / this.translationSnap) * this.translationSnap), I.search("Y") !== -1 && (i.position.y = Math.round(i.position.y / this.translationSnap) * this.translationSnap), I.search("Z") !== -1 && (i.position.z = Math.round(i.position.z / this.translationSnap) * this.translationSnap), i.parent && i.position.sub(te.setFromMatrixPosition(i.parent.matrixWorld))));
63122
63135
  else if (g === "scale") {
63123
63136
  if (I.search("XYZ") !== -1) {
63124
63137
  let o = this.pointEnd.length() / this.pointStart.length();
63125
63138
  this.pointEnd.dot(this.pointStart) < 0 && (o *= -1), Ro.set(o, o, o);
63126
63139
  } else
63127
- ee.copy(this.pointStart), Ro.copy(this.pointEnd), ee.applyQuaternion(this._worldQuaternionInv), Ro.applyQuaternion(this._worldQuaternionInv), Ro.divide(ee), I.search("X") === -1 && (Ro.x = 1), I.search("Y") === -1 && (Ro.y = 1), I.search("Z") === -1 && (Ro.z = 1);
63140
+ te.copy(this.pointStart), Ro.copy(this.pointEnd), te.applyQuaternion(this._worldQuaternionInv), Ro.applyQuaternion(this._worldQuaternionInv), Ro.divide(te), I.search("X") === -1 && (Ro.x = 1), I.search("Y") === -1 && (Ro.y = 1), I.search("Z") === -1 && (Ro.z = 1);
63128
63141
  i.scale.copy(this._scaleStart).multiply(Ro), this.scaleSnap && (I.search("X") !== -1 && (i.scale.x = Math.round(i.scale.x / this.scaleSnap) * this.scaleSnap || this.scaleSnap), I.search("Y") !== -1 && (i.scale.y = Math.round(i.scale.y / this.scaleSnap) * this.scaleSnap || this.scaleSnap), I.search("Z") !== -1 && (i.scale.z = Math.round(i.scale.z / this.scaleSnap) * this.scaleSnap || this.scaleSnap));
63129
63142
  } else if (g === "rotate") {
63130
63143
  this._offset.copy(this.pointEnd).sub(this.pointStart);
63131
- const o = 20 / this.worldPosition.distanceTo(ee.setFromMatrixPosition(this.camera.matrixWorld));
63132
- I === "E" ? (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) : I === "XYZE" ? (this.rotationAxis.copy(this._offset).cross(this.eye).normalize(), this.rotationAngle = this._offset.dot(ee.copy(this.rotationAxis).cross(this.eye)) * o) : (I === "X" || I === "Y" || I === "Z") && (this.rotationAxis.copy(qM[I]), ee.copy(qM[I]), e === "local" && ee.applyQuaternion(this.worldQuaternion), this.rotationAngle = this._offset.dot(ee.cross(this.eye).normalize()) * o), this.rotationSnap && (this.rotationAngle = Math.round(this.rotationAngle / this.rotationSnap) * this.rotationSnap), e === "local" && I !== "E" && I !== "XYZE" ? (i.quaternion.copy(this._quaternionStart), i.quaternion.multiply(ag.setFromAxisAngle(this.rotationAxis, this.rotationAngle)).normalize()) : (this.rotationAxis.applyQuaternion(this._parentQuaternionInv), i.quaternion.copy(ag.setFromAxisAngle(this.rotationAxis, this.rotationAngle)), i.quaternion.multiply(this._quaternionStart).normalize());
63144
+ const o = 20 / this.worldPosition.distanceTo(te.setFromMatrixPosition(this.camera.matrixWorld));
63145
+ I === "E" ? (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) : I === "XYZE" ? (this.rotationAxis.copy(this._offset).cross(this.eye).normalize(), this.rotationAngle = this._offset.dot(te.copy(this.rotationAxis).cross(this.eye)) * o) : (I === "X" || I === "Y" || I === "Z") && (this.rotationAxis.copy(qM[I]), te.copy(qM[I]), e === "local" && te.applyQuaternion(this.worldQuaternion), this.rotationAngle = this._offset.dot(te.cross(this.eye).normalize()) * o), this.rotationSnap && (this.rotationAngle = Math.round(this.rotationAngle / this.rotationSnap) * this.rotationSnap), e === "local" && I !== "E" && I !== "XYZE" ? (i.quaternion.copy(this._quaternionStart), i.quaternion.multiply(Eg.setFromAxisAngle(this.rotationAxis, this.rotationAngle)).normalize()) : (this.rotationAxis.applyQuaternion(this._parentQuaternionInv), i.quaternion.copy(Eg.setFromAxisAngle(this.rotationAxis, this.rotationAngle)), i.quaternion.multiply(this._quaternionStart).normalize());
63133
63146
  }
63134
63147
  this.dispatchEvent(Tw), this.dispatchEvent(bM);
63135
63148
  }
@@ -63224,7 +63237,7 @@ const Jh = new _g(), Ag = new k(0, 1, 0), xM = new k(0, 0, 0), HM = new XA(), qh
63224
63237
  class DZ extends HA {
63225
63238
  constructor() {
63226
63239
  super(), this.isTransformControlsGizmo = !0, this.type = "TransformControlsGizmo";
63227
- const A = new Cg({
63240
+ const A = new og({
63228
63241
  depthTest: !1,
63229
63242
  depthWrite: !1,
63230
63243
  fog: !1,
@@ -63260,7 +63273,7 @@ class DZ extends HA {
63260
63273
  h.color.setHex(7895160);
63261
63274
  const c = new pg(0, 0.04, 0.1, 12);
63262
63275
  c.translate(0, 0.05, 0);
63263
- const l = new zI(0.08, 0.08, 0.08);
63276
+ const l = new XI(0.08, 0.08, 0.08);
63264
63277
  l.translate(0, 0.04, 0);
63265
63278
  const w = new hI();
63266
63279
  w.setAttribute("position", new $A([0, 0, 0, 1, 0, 0], 3));
@@ -63294,13 +63307,13 @@ class DZ extends HA {
63294
63307
  [new MA(new zt(0.1, 0), a.clone()), [0, 0, 0]]
63295
63308
  ],
63296
63309
  XY: [
63297
- [new MA(new zI(0.15, 0.15, 0.01), Q.clone()), [0.15, 0.15, 0]]
63310
+ [new MA(new XI(0.15, 0.15, 0.01), Q.clone()), [0.15, 0.15, 0]]
63298
63311
  ],
63299
63312
  YZ: [
63300
- [new MA(new zI(0.15, 0.15, 0.01), B.clone()), [0, 0.15, 0.15], [0, Math.PI / 2, 0]]
63313
+ [new MA(new XI(0.15, 0.15, 0.01), B.clone()), [0, 0.15, 0.15], [0, Math.PI / 2, 0]]
63301
63314
  ],
63302
63315
  XZ: [
63303
- [new MA(new zI(0.15, 0.15, 0.01), s.clone()), [0.15, 0, 0.15], [-Math.PI / 2, 0, 0]]
63316
+ [new MA(new XI(0.15, 0.15, 0.01), s.clone()), [0.15, 0, 0.15], [-Math.PI / 2, 0, 0]]
63304
63317
  ]
63305
63318
  }, y = {
63306
63319
  X: [
@@ -63319,13 +63332,13 @@ class DZ extends HA {
63319
63332
  [new MA(new zt(0.2, 0), g)]
63320
63333
  ],
63321
63334
  XY: [
63322
- [new MA(new zI(0.2, 0.2, 0.01), g), [0.15, 0.15, 0]]
63335
+ [new MA(new XI(0.2, 0.2, 0.01), g), [0.15, 0.15, 0]]
63323
63336
  ],
63324
63337
  YZ: [
63325
- [new MA(new zI(0.2, 0.2, 0.01), g), [0, 0.15, 0.15], [0, Math.PI / 2, 0]]
63338
+ [new MA(new XI(0.2, 0.2, 0.01), g), [0, 0.15, 0.15], [0, Math.PI / 2, 0]]
63326
63339
  ],
63327
63340
  XZ: [
63328
- [new MA(new zI(0.2, 0.2, 0.01), g), [0.15, 0, 0.15], [-Math.PI / 2, 0, 0]]
63341
+ [new MA(new XI(0.2, 0.2, 0.01), g), [0.15, 0, 0.15], [-Math.PI / 2, 0, 0]]
63329
63342
  ]
63330
63343
  }, f = {
63331
63344
  START: [
@@ -63399,16 +63412,16 @@ class DZ extends HA {
63399
63412
  [new MA(l, o), [0, 0, -0.5], [-Math.PI / 2, 0, 0]]
63400
63413
  ],
63401
63414
  XY: [
63402
- [new MA(new zI(0.15, 0.15, 0.01), Q), [0.15, 0.15, 0]]
63415
+ [new MA(new XI(0.15, 0.15, 0.01), Q), [0.15, 0.15, 0]]
63403
63416
  ],
63404
63417
  YZ: [
63405
- [new MA(new zI(0.15, 0.15, 0.01), B), [0, 0.15, 0.15], [0, Math.PI / 2, 0]]
63418
+ [new MA(new XI(0.15, 0.15, 0.01), B), [0, 0.15, 0.15], [0, Math.PI / 2, 0]]
63406
63419
  ],
63407
63420
  XZ: [
63408
- [new MA(new zI(0.15, 0.15, 0.01), s), [0.15, 0, 0.15], [-Math.PI / 2, 0, 0]]
63421
+ [new MA(new XI(0.15, 0.15, 0.01), s), [0.15, 0, 0.15], [-Math.PI / 2, 0, 0]]
63409
63422
  ],
63410
63423
  XYZ: [
63411
- [new MA(new zI(0.1, 0.1, 0.1), a.clone())]
63424
+ [new MA(new XI(0.1, 0.1, 0.1), a.clone())]
63412
63425
  ]
63413
63426
  }, q = {
63414
63427
  X: [
@@ -63424,16 +63437,16 @@ class DZ extends HA {
63424
63437
  [new MA(new pg(0.2, 0, 0.6, 4), g), [0, 0, -0.3], [-Math.PI / 2, 0, 0]]
63425
63438
  ],
63426
63439
  XY: [
63427
- [new MA(new zI(0.2, 0.2, 0.01), g), [0.15, 0.15, 0]]
63440
+ [new MA(new XI(0.2, 0.2, 0.01), g), [0.15, 0.15, 0]]
63428
63441
  ],
63429
63442
  YZ: [
63430
- [new MA(new zI(0.2, 0.2, 0.01), g), [0, 0.15, 0.15], [0, Math.PI / 2, 0]]
63443
+ [new MA(new XI(0.2, 0.2, 0.01), g), [0, 0.15, 0.15], [0, Math.PI / 2, 0]]
63431
63444
  ],
63432
63445
  XZ: [
63433
- [new MA(new zI(0.2, 0.2, 0.01), g), [0.15, 0, 0.15], [-Math.PI / 2, 0, 0]]
63446
+ [new MA(new XI(0.2, 0.2, 0.01), g), [0.15, 0, 0.15], [-Math.PI / 2, 0, 0]]
63434
63447
  ],
63435
63448
  XYZ: [
63436
- [new MA(new zI(0.2, 0.2, 0.2), g), [0, 0, 0]]
63449
+ [new MA(new XI(0.2, 0.2, 0.2), g), [0, 0, 0]]
63437
63450
  ]
63438
63451
  }, m = {
63439
63452
  X: [
@@ -63470,10 +63483,10 @@ class DZ extends HA {
63470
63483
  C.visible = !0, C.rotation.set(0, 0, 0), C.position.copy(this.worldPosition);
63471
63484
  let o;
63472
63485
  if (this.camera.isOrthographicCamera ? o = (this.camera.top - this.camera.bottom) / this.camera.zoom : o = this.worldPosition.distanceTo(this.cameraPosition) * Math.min(1.9 * Math.tan(Math.PI * this.camera.fov / 360) / this.camera.zoom, 7), C.scale.set(1, 1, 1).multiplyScalar(o * this.size / 4), C.tag === "helper") {
63473
- C.visible = !1, C.name === "AXIS" ? (C.position.copy(this.worldPositionStart), C.visible = !!this.axis, this.axis === "X" && (ag.setFromEuler(Jh.set(0, 0, 0)), C.quaternion.copy(g).multiply(ag), Math.abs(Ag.copy(wa).applyQuaternion(g).dot(this.eye)) > 0.9 && (C.visible = !1)), this.axis === "Y" && (ag.setFromEuler(Jh.set(0, 0, Math.PI / 2)), C.quaternion.copy(g).multiply(ag), Math.abs(Ag.copy(mB).applyQuaternion(g).dot(this.eye)) > 0.9 && (C.visible = !1)), this.axis === "Z" && (ag.setFromEuler(Jh.set(0, Math.PI / 2, 0)), C.quaternion.copy(g).multiply(ag), Math.abs(Ag.copy(ua).applyQuaternion(g).dot(this.eye)) > 0.9 && (C.visible = !1)), this.axis === "XYZE" && (ag.setFromEuler(Jh.set(0, Math.PI / 2, 0)), Ag.copy(this.rotationAxis), C.quaternion.setFromRotationMatrix(HM.lookAt(xM, Ag, mB)), C.quaternion.multiply(ag), C.visible = this.dragging), this.axis === "E" && (C.visible = !1)) : C.name === "START" ? (C.position.copy(this.worldPositionStart), C.visible = this.dragging) : C.name === "END" ? (C.position.copy(this.worldPosition), C.visible = this.dragging) : C.name === "DELTA" ? (C.position.copy(this.worldPositionStart), C.quaternion.copy(this.worldQuaternionStart), ee.set(1e-10, 1e-10, 1e-10).add(this.worldPositionStart).sub(this.worldPosition).multiplyScalar(-1), ee.applyQuaternion(this.worldQuaternionStart.clone().invert()), C.scale.copy(ee), C.visible = this.dragging) : (C.quaternion.copy(g), this.dragging ? C.position.copy(this.worldPositionStart) : C.position.copy(this.worldPosition), this.axis && (C.visible = this.axis.search(C.name) !== -1));
63486
+ C.visible = !1, C.name === "AXIS" ? (C.position.copy(this.worldPositionStart), C.visible = !!this.axis, this.axis === "X" && (Eg.setFromEuler(Jh.set(0, 0, 0)), C.quaternion.copy(g).multiply(Eg), Math.abs(Ag.copy(wa).applyQuaternion(g).dot(this.eye)) > 0.9 && (C.visible = !1)), this.axis === "Y" && (Eg.setFromEuler(Jh.set(0, 0, Math.PI / 2)), C.quaternion.copy(g).multiply(Eg), Math.abs(Ag.copy(mB).applyQuaternion(g).dot(this.eye)) > 0.9 && (C.visible = !1)), this.axis === "Z" && (Eg.setFromEuler(Jh.set(0, Math.PI / 2, 0)), C.quaternion.copy(g).multiply(Eg), Math.abs(Ag.copy(ua).applyQuaternion(g).dot(this.eye)) > 0.9 && (C.visible = !1)), this.axis === "XYZE" && (Eg.setFromEuler(Jh.set(0, Math.PI / 2, 0)), Ag.copy(this.rotationAxis), C.quaternion.setFromRotationMatrix(HM.lookAt(xM, Ag, mB)), C.quaternion.multiply(Eg), C.visible = this.dragging), this.axis === "E" && (C.visible = !1)) : C.name === "START" ? (C.position.copy(this.worldPositionStart), C.visible = this.dragging) : C.name === "END" ? (C.position.copy(this.worldPosition), C.visible = this.dragging) : C.name === "DELTA" ? (C.position.copy(this.worldPositionStart), C.quaternion.copy(this.worldQuaternionStart), te.set(1e-10, 1e-10, 1e-10).add(this.worldPositionStart).sub(this.worldPosition).multiplyScalar(-1), te.applyQuaternion(this.worldQuaternionStart.clone().invert()), C.scale.copy(te), C.visible = this.dragging) : (C.quaternion.copy(g), this.dragging ? C.position.copy(this.worldPositionStart) : C.position.copy(this.worldPosition), this.axis && (C.visible = this.axis.search(C.name) !== -1));
63474
63487
  continue;
63475
63488
  }
63476
- C.quaternion.copy(g), this.mode === "translate" || this.mode === "scale" ? (C.name === "X" && Math.abs(Ag.copy(wa).applyQuaternion(g).dot(this.eye)) > 0.99 && (C.scale.set(1e-10, 1e-10, 1e-10), C.visible = !1), C.name === "Y" && Math.abs(Ag.copy(mB).applyQuaternion(g).dot(this.eye)) > 0.99 && (C.scale.set(1e-10, 1e-10, 1e-10), C.visible = !1), C.name === "Z" && Math.abs(Ag.copy(ua).applyQuaternion(g).dot(this.eye)) > 0.99 && (C.scale.set(1e-10, 1e-10, 1e-10), C.visible = !1), C.name === "XY" && Math.abs(Ag.copy(ua).applyQuaternion(g).dot(this.eye)) < 0.2 && (C.scale.set(1e-10, 1e-10, 1e-10), C.visible = !1), C.name === "YZ" && Math.abs(Ag.copy(wa).applyQuaternion(g).dot(this.eye)) < 0.2 && (C.scale.set(1e-10, 1e-10, 1e-10), C.visible = !1), C.name === "XZ" && Math.abs(Ag.copy(mB).applyQuaternion(g).dot(this.eye)) < 0.2 && (C.scale.set(1e-10, 1e-10, 1e-10), C.visible = !1)) : this.mode === "rotate" && (qh.copy(g), Ag.copy(this.eye).applyQuaternion(ag.copy(g).invert()), C.name.search("E") !== -1 && C.quaternion.setFromRotationMatrix(HM.lookAt(this.eye, xM, mB)), C.name === "X" && (ag.setFromAxisAngle(wa, Math.atan2(-Ag.y, Ag.z)), ag.multiplyQuaternions(qh, ag), C.quaternion.copy(ag)), C.name === "Y" && (ag.setFromAxisAngle(mB, Math.atan2(Ag.x, Ag.z)), ag.multiplyQuaternions(qh, ag), C.quaternion.copy(ag)), C.name === "Z" && (ag.setFromAxisAngle(ua, Math.atan2(Ag.y, Ag.x)), ag.multiplyQuaternions(qh, ag), C.quaternion.copy(ag))), C.visible = C.visible && (C.name.indexOf("X") === -1 || this.showX), C.visible = C.visible && (C.name.indexOf("Y") === -1 || this.showY), C.visible = C.visible && (C.name.indexOf("Z") === -1 || this.showZ), C.visible = C.visible && (C.name.indexOf("E") === -1 || this.showX && this.showY && this.showZ), C.material._color = C.material._color || C.material.color.clone(), C.material._opacity = C.material._opacity || C.material.opacity, C.material.color.copy(C.material._color), C.material.opacity = C.material._opacity, this.enabled && this.axis && (C.name === this.axis || this.axis.split("").some(function(B) {
63489
+ C.quaternion.copy(g), this.mode === "translate" || this.mode === "scale" ? (C.name === "X" && Math.abs(Ag.copy(wa).applyQuaternion(g).dot(this.eye)) > 0.99 && (C.scale.set(1e-10, 1e-10, 1e-10), C.visible = !1), C.name === "Y" && Math.abs(Ag.copy(mB).applyQuaternion(g).dot(this.eye)) > 0.99 && (C.scale.set(1e-10, 1e-10, 1e-10), C.visible = !1), C.name === "Z" && Math.abs(Ag.copy(ua).applyQuaternion(g).dot(this.eye)) > 0.99 && (C.scale.set(1e-10, 1e-10, 1e-10), C.visible = !1), C.name === "XY" && Math.abs(Ag.copy(ua).applyQuaternion(g).dot(this.eye)) < 0.2 && (C.scale.set(1e-10, 1e-10, 1e-10), C.visible = !1), C.name === "YZ" && Math.abs(Ag.copy(wa).applyQuaternion(g).dot(this.eye)) < 0.2 && (C.scale.set(1e-10, 1e-10, 1e-10), C.visible = !1), C.name === "XZ" && Math.abs(Ag.copy(mB).applyQuaternion(g).dot(this.eye)) < 0.2 && (C.scale.set(1e-10, 1e-10, 1e-10), C.visible = !1)) : this.mode === "rotate" && (qh.copy(g), Ag.copy(this.eye).applyQuaternion(Eg.copy(g).invert()), C.name.search("E") !== -1 && C.quaternion.setFromRotationMatrix(HM.lookAt(this.eye, xM, mB)), C.name === "X" && (Eg.setFromAxisAngle(wa, Math.atan2(-Ag.y, Ag.z)), Eg.multiplyQuaternions(qh, Eg), C.quaternion.copy(Eg)), C.name === "Y" && (Eg.setFromAxisAngle(mB, Math.atan2(Ag.x, Ag.z)), Eg.multiplyQuaternions(qh, Eg), C.quaternion.copy(Eg)), C.name === "Z" && (Eg.setFromAxisAngle(ua, Math.atan2(Ag.y, Ag.x)), Eg.multiplyQuaternions(qh, Eg), C.quaternion.copy(Eg))), C.visible = C.visible && (C.name.indexOf("X") === -1 || this.showX), C.visible = C.visible && (C.name.indexOf("Y") === -1 || this.showY), C.visible = C.visible && (C.name.indexOf("Z") === -1 || this.showZ), C.visible = C.visible && (C.name.indexOf("E") === -1 || this.showX && this.showY && this.showZ), C.material._color = C.material._color || C.material.color.clone(), C.material._opacity = C.material._opacity || C.material.opacity, C.material.color.copy(C.material._color), C.material.opacity = C.material._opacity, this.enabled && this.axis && (C.name === this.axis || this.axis.split("").some(function(B) {
63477
63490
  return C.name === B;
63478
63491
  })) && (C.material.color.setHex(16776960), C.material.opacity = 1);
63479
63492
  }
@@ -63483,8 +63496,8 @@ class DZ extends HA {
63483
63496
  class dZ extends MA {
63484
63497
  constructor() {
63485
63498
  super(
63486
- new ae(1e5, 1e5, 2, 2),
63487
- new Cg({ visible: !1, wireframe: !0, side: Tg, transparent: !0, opacity: 0.1, toneMapped: !1 })
63499
+ new zi(1e5, 1e5, 2, 2),
63500
+ new og({ visible: !1, wireframe: !0, side: Tg, transparent: !0, opacity: 0.1, toneMapped: !1 })
63488
63501
  ), this.isTransformControlsPlane = !0, this.type = "TransformControlsPlane";
63489
63502
  }
63490
63503
  updateMatrixWorld(A) {
@@ -63521,7 +63534,7 @@ class dZ extends MA {
63521
63534
  default:
63522
63535
  bt.set(0, 0, 0);
63523
63536
  }
63524
- bt.length() === 0 ? this.quaternion.copy(this.cameraQuaternion) : (vM.lookAt(ee.set(0, 0, 0), bt, Ag), this.quaternion.setFromRotationMatrix(vM)), super.updateMatrixWorld(A);
63537
+ bt.length() === 0 ? this.quaternion.copy(this.cameraQuaternion) : (vM.lookAt(te.set(0, 0, 0), bt, Ag), this.quaternion.setFromRotationMatrix(vM)), super.updateMatrixWorld(A);
63525
63538
  }
63526
63539
  }
63527
63540
  var wZ = Object.defineProperty, uZ = Object.getOwnPropertyDescriptor, pZ = (t, A, I, g) => {
@@ -63577,7 +63590,7 @@ class Hf extends vA {
63577
63590
  I.setSpace(I.space === "local" ? "world" : "local");
63578
63591
  break;
63579
63592
  case 16:
63580
- I.setTranslationSnap(100), I.setRotationSnap(ne.degToRad(15)), I.setScaleSnap(0.25);
63593
+ I.setTranslationSnap(100), I.setRotationSnap(ae.degToRad(15)), I.setScaleSnap(0.25);
63581
63594
  break;
63582
63595
  case 87:
63583
63596
  I.setMode("translate");
@@ -63883,7 +63896,7 @@ const MZ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
63883
63896
  Avatar_Brain_LookAt: Ql,
63884
63897
  Avatar_MouthShapes: JD,
63885
63898
  Avatar_MustacheShake: Wm,
63886
- Avatar_POI: Qe,
63899
+ Avatar_POI: ne,
63887
63900
  AxesHelper: Qr,
63888
63901
  BaseUIComponent: Qo,
63889
63902
  BasicIKConstraint: jm,
@@ -63948,7 +63961,7 @@ const MZ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
63948
63961
  MinMaxGradient: He,
63949
63962
  NestedGltf: qf,
63950
63963
  Networking: VQ,
63951
- NoiseModule: XI,
63964
+ NoiseModule: zI,
63952
63965
  ObjectRaycaster: Kf,
63953
63966
  OffsetConstraint: mn,
63954
63967
  OrbitControls: Sn,
@@ -64012,7 +64025,7 @@ const MZ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
64012
64025
  VRUserState: Vt,
64013
64026
  VelocityOverLifetimeModule: ve,
64014
64027
  VerticalLayoutGroup: lK,
64015
- VideoPlayer: zi,
64028
+ VideoPlayer: Xi,
64016
64029
  Voip: sB,
64017
64030
  Volume: uf,
64018
64031
  VolumeComponent: kn,
@@ -64147,7 +64160,7 @@ AA.add("AudioTrackHandler", Ef);
64147
64160
  AA.add("Avatar_Brain_LookAt", Ql);
64148
64161
  AA.add("Avatar_MouthShapes", JD);
64149
64162
  AA.add("Avatar_MustacheShake", Wm);
64150
- AA.add("Avatar_POI", Qe);
64163
+ AA.add("Avatar_POI", ne);
64151
64164
  AA.add("AvatarBlink_Simple", fn);
64152
64165
  AA.add("AvatarEyeLook_Rotation", sr);
64153
64166
  AA.add("AvatarLoader", xS);
@@ -64217,7 +64230,7 @@ AA.add("MinMaxCurve", oI);
64217
64230
  AA.add("MinMaxGradient", He);
64218
64231
  AA.add("NestedGltf", qf);
64219
64232
  AA.add("Networking", VQ);
64220
- AA.add("NoiseModule", XI);
64233
+ AA.add("NoiseModule", zI);
64221
64234
  AA.add("ObjectRaycaster", Kf);
64222
64235
  AA.add("OffsetConstraint", mn);
64223
64236
  AA.add("OrbitControls", Sn);
@@ -64283,7 +64296,7 @@ AA.add("UsageMarker", or);
64283
64296
  AA.add("USDZExporter", td);
64284
64297
  AA.add("VelocityOverLifetimeModule", ve);
64285
64298
  AA.add("VerticalLayoutGroup", lK);
64286
- AA.add("VideoPlayer", zi);
64299
+ AA.add("VideoPlayer", Xi);
64287
64300
  AA.add("Voip", sB);
64288
64301
  AA.add("Volume", uf);
64289
64302
  AA.add("VolumeComponent", kn);
@@ -64882,7 +64895,7 @@ export {
64882
64895
  Ql as Avatar_Brain_LookAt,
64883
64896
  JD as Avatar_MouthShapes,
64884
64897
  Wm as Avatar_MustacheShake,
64885
- Qe as Avatar_POI,
64898
+ ne as Avatar_POI,
64886
64899
  Qr as AxesHelper,
64887
64900
  Qo as BaseUIComponent,
64888
64901
  jm as BasicIKConstraint,
@@ -64939,7 +64952,7 @@ export {
64939
64952
  HD as Image,
64940
64953
  ys as InheritVelocityModule,
64941
64954
  Fn as InputField,
64942
- Be as InstancingUtil,
64955
+ se as InstancingUtil,
64943
64956
  Ao as InstantiateOptions,
64944
64957
  Cr as Interactable,
64945
64958
  uK as Keyboard,
@@ -64961,7 +64974,7 @@ export {
64961
64974
  jK as NeedleGltfLoader,
64962
64975
  qf as NestedGltf,
64963
64976
  VQ as Networking,
64964
- XI as NoiseModule,
64977
+ zI as NoiseModule,
64965
64978
  Kf as ObjectRaycaster,
64966
64979
  mn as OffsetConstraint,
64967
64980
  Sn as OrbitControls,
@@ -65026,7 +65039,7 @@ export {
65026
65039
  Vt as VRUserState,
65027
65040
  ve as VelocityOverLifetimeModule,
65028
65041
  lK as VerticalLayoutGroup,
65029
- zi as VideoPlayer,
65042
+ Xi as VideoPlayer,
65030
65043
  sB as Voip,
65031
65044
  uf as Volume,
65032
65045
  kn as VolumeComponent,