@needle-tools/engine 3.43.0-beta → 3.43.0-beta.1

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.
@@ -4,7 +4,7 @@ var d = (s, e, t) => (rj(s, typeof e != "symbol" ? e + "" : e, t), t), C1 = (s,
4
4
  if (!e.has(s))
5
5
  throw TypeError("Cannot " + t);
6
6
  };
7
- var _i = (s, e, t) => (C1(s, e, "read from private field"), t ? t.call(s) : e.get(s)), Sl = (s, e, t) => {
7
+ var xi = (s, e, t) => (C1(s, e, "read from private field"), t ? t.call(s) : e.get(s)), Sl = (s, e, t) => {
8
8
  if (e.has(s))
9
9
  throw TypeError("Cannot add the same private member more than once");
10
10
  e instanceof WeakSet ? e.add(s) : e.set(s, t);
@@ -15,7 +15,7 @@ var S1 = (s, e, t) => (C1(s, e, "access private method"), t);
15
15
  * Copyright 2010-2023 Three.js Authors
16
16
  * SPDX-License-Identifier: MIT
17
17
  */
18
- const Ch = "162", qd = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, Xd = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, yz = 0, XT = 1, vz = 2, oj = 3, aj = 0, SP = 1, EP = 2, Gc = 3, ms = 0, wn = 1, yi = 2, pn = 0, Gu = 1, Lf = 2, YT = 3, JT = 4, IP = 5, Ru = 100, bz = 101, _z = 102, KT = 103, eC = 104, xz = 200, wz = 201, Cz = 202, Sz = 203, tC = 204, iC = 205, Ez = 206, Iz = 207, Mz = 208, Tz = 209, Bz = 210, Rz = 211, Pz = 212, Dz = 213, kz = 214, MP = 0, dS = 1, N0 = 2, Ff = 3, bm = 4, fS = 5, pS = 6, Pv = 7, Dv = 0, Oz = 1, Lz = 2, Er = 0, _m = 1, gS = 2, Fz = 3, mS = 4, Uz = 5, Vm = 6, xm = 7, ZT = "attached", Nz = "detached", AS = 300, Sh = 301, Zu = 302, mo = 303, wm = 304, jm = 306, vo = 1e3, is = 1001, Uf = 1002, Gt = 1003, Cm = 1004, cj = 1004, sh = 1005, lj = 1005, Rt = 1006, bf = 1007, hj = 1007, Zr = 1008, uj = 1008, Ai = 1009, Qz = 1010, zz = 1011, yS = 1012, TP = 1013, sc = 1014, tn = 1015, Cn = 1016, BP = 1017, RP = 1018, yh = 1020, Gz = 1021, Si = 1023, vS = 1024, Hz = 1025, Hu = 1026, $u = 1027, rc = 1028, PP = 1029, ku = 1030, DP = 1031, kP = 1033, e0 = 33776, Aw = 33777, yw = 33778, t0 = 33779, nC = 35840, $T = 35841, sC = 35842, eB = 35843, bS = 36196, rC = 37492, oC = 37496, aC = 37808, tB = 37809, iB = 37810, nB = 37811, Q0 = 37812, sB = 37813, rB = 37814, oB = 37815, aB = 37816, cB = 37817, lB = 37818, hB = 37819, uB = 37820, dB = 37821, i0 = 36492, fB = 36494, pB = 36495, Vz = 36283, gB = 36284, mB = 36285, AB = 36286, z0 = 2200, OP = 2201, jz = 2202, ed = 2300, ll = 2301, vw = 2302, of = 2400, af = 2401, G0 = 2402, _S = 2500, LP = 2501, Wz = 0, FP = 1, cC = 2, qz = 3e3, yB = 3001, ir = 3200, xS = 3201, sd = 0, Xz = 1, wr = "", gt = "srgb", Ei = "srgb-linear", kv = "display-p3", Wm = "display-p3-linear", H0 = "linear", Wi = "srgb", V0 = "rec709", j0 = "p3", Yz = 0, Su = 7680, Jz = 7681, Kz = 7682, Zz = 7683, $z = 34055, e4 = 34056, t4 = 5386, vB = 512, i4 = 513, n4 = 514, s4 = 515, r4 = 516, o4 = 517, a4 = 518, lC = 519, c4 = 512, l4 = 513, h4 = 514, UP = 515, u4 = 516, d4 = 517, f4 = 518, p4 = 519, W0 = 35044, vr = 35048, dj = 35040, fj = 35045, pj = 35049, gj = 35041, mj = 35046, Aj = 35050, yj = 35042, vj = "100", hC = "300 es", uC = 1035, $c = 2e3, q0 = 2001;
18
+ const Ch = "162", qd = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, Xd = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, yz = 0, XT = 1, vz = 2, oj = 3, aj = 0, SP = 1, EP = 2, Gc = 3, ms = 0, wn = 1, yi = 2, pn = 0, Gu = 1, Lf = 2, YT = 3, JT = 4, IP = 5, Ru = 100, bz = 101, _z = 102, KT = 103, eC = 104, xz = 200, wz = 201, Cz = 202, Sz = 203, tC = 204, iC = 205, Ez = 206, Iz = 207, Mz = 208, Tz = 209, Bz = 210, Rz = 211, Pz = 212, Dz = 213, kz = 214, MP = 0, dS = 1, N0 = 2, Ff = 3, bm = 4, fS = 5, pS = 6, Pv = 7, Dv = 0, Oz = 1, Lz = 2, Sr = 0, _m = 1, gS = 2, Fz = 3, mS = 4, Uz = 5, Vm = 6, xm = 7, ZT = "attached", Nz = "detached", AS = 300, Sh = 301, Zu = 302, mo = 303, wm = 304, jm = 306, vo = 1e3, is = 1001, Uf = 1002, Gt = 1003, Cm = 1004, cj = 1004, sh = 1005, lj = 1005, Rt = 1006, bf = 1007, hj = 1007, Zr = 1008, uj = 1008, Ai = 1009, Qz = 1010, zz = 1011, yS = 1012, TP = 1013, sc = 1014, tn = 1015, Cn = 1016, BP = 1017, RP = 1018, yh = 1020, Gz = 1021, Si = 1023, vS = 1024, Hz = 1025, Hu = 1026, $u = 1027, rc = 1028, PP = 1029, ku = 1030, DP = 1031, kP = 1033, e0 = 33776, Aw = 33777, yw = 33778, t0 = 33779, nC = 35840, $T = 35841, sC = 35842, eB = 35843, bS = 36196, rC = 37492, oC = 37496, aC = 37808, tB = 37809, iB = 37810, nB = 37811, Q0 = 37812, sB = 37813, rB = 37814, oB = 37815, aB = 37816, cB = 37817, lB = 37818, hB = 37819, uB = 37820, dB = 37821, i0 = 36492, fB = 36494, pB = 36495, Vz = 36283, gB = 36284, mB = 36285, AB = 36286, z0 = 2200, OP = 2201, jz = 2202, ed = 2300, ll = 2301, vw = 2302, of = 2400, af = 2401, G0 = 2402, _S = 2500, LP = 2501, Wz = 0, FP = 1, cC = 2, qz = 3e3, yB = 3001, ir = 3200, xS = 3201, sd = 0, Xz = 1, xr = "", gt = "srgb", Ei = "srgb-linear", kv = "display-p3", Wm = "display-p3-linear", H0 = "linear", Wi = "srgb", V0 = "rec709", j0 = "p3", Yz = 0, Su = 7680, Jz = 7681, Kz = 7682, Zz = 7683, $z = 34055, e4 = 34056, t4 = 5386, vB = 512, i4 = 513, n4 = 514, s4 = 515, r4 = 516, o4 = 517, a4 = 518, lC = 519, c4 = 512, l4 = 513, h4 = 514, UP = 515, u4 = 516, d4 = 517, f4 = 518, p4 = 519, W0 = 35044, yr = 35048, dj = 35040, fj = 35045, pj = 35049, gj = 35041, mj = 35046, Aj = 35050, yj = 35042, vj = "100", hC = "300 es", uC = 1035, $c = 2e3, q0 = 2001;
19
19
  let ks = class {
20
20
  addEventListener(e, t) {
21
21
  this._listeners === void 0 && (this._listeners = {});
@@ -687,7 +687,7 @@ const rO = /* @__PURE__ */ new zt().set(
687
687
  return Nb[s].primaries;
688
688
  },
689
689
  getTransfer: function(s) {
690
- return s === wr ? H0 : Nb[s].transfer;
690
+ return s === xr ? H0 : Nb[s].transfer;
691
691
  }
692
692
  };
693
693
  function nm(s) {
@@ -769,7 +769,7 @@ function M1(s) {
769
769
  } : (console.warn("THREE.Texture: Unable to serialize Texture."), {});
770
770
  }
771
771
  let Fj = 0, Ht = class bw extends ks {
772
- constructor(e = bw.DEFAULT_IMAGE, t = bw.DEFAULT_MAPPING, i = is, n = is, r = Rt, o = Zr, a = Si, c = Ai, l = bw.DEFAULT_ANISOTROPY, h = wr) {
772
+ constructor(e = bw.DEFAULT_IMAGE, t = bw.DEFAULT_MAPPING, i = is, n = is, r = Rt, o = Zr, a = Si, c = Ai, l = bw.DEFAULT_ANISOTROPY, h = xr) {
773
773
  super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: Fj++ }), this.uuid = Xo(), this.name = "", this.source = new dh(e), this.mipmaps = [], this.mapping = t, this.channel = 0, this.wrapS = i, this.wrapT = n, this.magFilter = r, this.minFilter = o, this.anisotropy = l, this.format = a, this.internalFormat = null, this.type = c, this.offset = new ee(0, 0), this.repeat = new ee(1, 1), this.center = new ee(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new zt(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.colorSpace = h, this.userData = {}, this.version = 0, this.onUpdate = null, this.isRenderTargetTexture = !1, this.needsPMREMUpdate = !1;
774
774
  }
775
775
  get image() {
@@ -2464,7 +2464,7 @@ let fi = class w4 {
2464
2464
  }
2465
2465
  };
2466
2466
  fi.DEFAULT_ORDER = "XYZ";
2467
- let Ir = class {
2467
+ let Er = class {
2468
2468
  constructor() {
2469
2469
  this.mask = 1;
2470
2470
  }
@@ -2531,7 +2531,7 @@ let ye = class _w extends ks {
2531
2531
  normalMatrix: {
2532
2532
  value: new zt()
2533
2533
  }
2534
- }), this.matrix = new Ae(), this.matrixWorld = new Ae(), this.matrixAutoUpdate = _w.DEFAULT_MATRIX_AUTO_UPDATE, this.matrixWorldAutoUpdate = _w.DEFAULT_MATRIX_WORLD_AUTO_UPDATE, this.matrixWorldNeedsUpdate = !1, this.layers = new Ir(), this.visible = !0, this.castShadow = !1, this.receiveShadow = !1, this.frustumCulled = !0, this.renderOrder = 0, this.animations = [], this.userData = {};
2534
+ }), this.matrix = new Ae(), this.matrixWorld = new Ae(), this.matrixAutoUpdate = _w.DEFAULT_MATRIX_AUTO_UPDATE, this.matrixWorldAutoUpdate = _w.DEFAULT_MATRIX_WORLD_AUTO_UPDATE, this.matrixWorldNeedsUpdate = !1, this.layers = new Er(), this.visible = !0, this.castShadow = !1, this.receiveShadow = !1, this.frustumCulled = !0, this.renderOrder = 0, this.animations = [], this.userData = {};
2535
2535
  }
2536
2536
  onBeforeShadow() {
2537
2537
  }
@@ -4071,7 +4071,7 @@ function Em(s) {
4071
4071
  }
4072
4072
  return e;
4073
4073
  }
4074
- function qr(s) {
4074
+ function Wr(s) {
4075
4075
  const e = {};
4076
4076
  for (let t = 0; t < s.length; t++) {
4077
4077
  const i = Em(s[t]);
@@ -4089,7 +4089,7 @@ function sW(s) {
4089
4089
  function E4(s) {
4090
4090
  return s.getRenderTarget() === null ? s.outputColorSpace : Ci.workingColorSpace;
4091
4091
  }
4092
- const qm = { clone: Em, merge: qr };
4092
+ const qm = { clone: Em, merge: Wr };
4093
4093
  var rW = `void main() {
4094
4094
  gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
4095
4095
  }`, oW = `void main() {
@@ -8526,7 +8526,7 @@ void main() {
8526
8526
  }
8527
8527
  }, Ks = {
8528
8528
  basic: {
8529
- uniforms: /* @__PURE__ */ qr([
8529
+ uniforms: /* @__PURE__ */ Wr([
8530
8530
  Qe.common,
8531
8531
  Qe.specularmap,
8532
8532
  Qe.envmap,
@@ -8538,7 +8538,7 @@ void main() {
8538
8538
  fragmentShader: It.meshbasic_frag
8539
8539
  },
8540
8540
  lambert: {
8541
- uniforms: /* @__PURE__ */ qr([
8541
+ uniforms: /* @__PURE__ */ Wr([
8542
8542
  Qe.common,
8543
8543
  Qe.specularmap,
8544
8544
  Qe.envmap,
@@ -8558,7 +8558,7 @@ void main() {
8558
8558
  fragmentShader: It.meshlambert_frag
8559
8559
  },
8560
8560
  phong: {
8561
- uniforms: /* @__PURE__ */ qr([
8561
+ uniforms: /* @__PURE__ */ Wr([
8562
8562
  Qe.common,
8563
8563
  Qe.specularmap,
8564
8564
  Qe.envmap,
@@ -8580,7 +8580,7 @@ void main() {
8580
8580
  fragmentShader: It.meshphong_frag
8581
8581
  },
8582
8582
  standard: {
8583
- uniforms: /* @__PURE__ */ qr([
8583
+ uniforms: /* @__PURE__ */ Wr([
8584
8584
  Qe.common,
8585
8585
  Qe.envmap,
8586
8586
  Qe.aomap,
@@ -8605,7 +8605,7 @@ void main() {
8605
8605
  fragmentShader: It.meshphysical_frag
8606
8606
  },
8607
8607
  toon: {
8608
- uniforms: /* @__PURE__ */ qr([
8608
+ uniforms: /* @__PURE__ */ Wr([
8609
8609
  Qe.common,
8610
8610
  Qe.aomap,
8611
8611
  Qe.lightmap,
@@ -8624,7 +8624,7 @@ void main() {
8624
8624
  fragmentShader: It.meshtoon_frag
8625
8625
  },
8626
8626
  matcap: {
8627
- uniforms: /* @__PURE__ */ qr([
8627
+ uniforms: /* @__PURE__ */ Wr([
8628
8628
  Qe.common,
8629
8629
  Qe.bumpmap,
8630
8630
  Qe.normalmap,
@@ -8638,7 +8638,7 @@ void main() {
8638
8638
  fragmentShader: It.meshmatcap_frag
8639
8639
  },
8640
8640
  points: {
8641
- uniforms: /* @__PURE__ */ qr([
8641
+ uniforms: /* @__PURE__ */ Wr([
8642
8642
  Qe.points,
8643
8643
  Qe.fog
8644
8644
  ]),
@@ -8646,7 +8646,7 @@ void main() {
8646
8646
  fragmentShader: It.points_frag
8647
8647
  },
8648
8648
  dashed: {
8649
- uniforms: /* @__PURE__ */ qr([
8649
+ uniforms: /* @__PURE__ */ Wr([
8650
8650
  Qe.common,
8651
8651
  Qe.fog,
8652
8652
  {
@@ -8659,7 +8659,7 @@ void main() {
8659
8659
  fragmentShader: It.linedashed_frag
8660
8660
  },
8661
8661
  depth: {
8662
- uniforms: /* @__PURE__ */ qr([
8662
+ uniforms: /* @__PURE__ */ Wr([
8663
8663
  Qe.common,
8664
8664
  Qe.displacementmap
8665
8665
  ]),
@@ -8667,7 +8667,7 @@ void main() {
8667
8667
  fragmentShader: It.depth_frag
8668
8668
  },
8669
8669
  normal: {
8670
- uniforms: /* @__PURE__ */ qr([
8670
+ uniforms: /* @__PURE__ */ Wr([
8671
8671
  Qe.common,
8672
8672
  Qe.bumpmap,
8673
8673
  Qe.normalmap,
@@ -8680,7 +8680,7 @@ void main() {
8680
8680
  fragmentShader: It.meshnormal_frag
8681
8681
  },
8682
8682
  sprite: {
8683
- uniforms: /* @__PURE__ */ qr([
8683
+ uniforms: /* @__PURE__ */ Wr([
8684
8684
  Qe.sprite,
8685
8685
  Qe.fog
8686
8686
  ]),
@@ -8724,7 +8724,7 @@ void main() {
8724
8724
  fragmentShader: It.equirect_frag
8725
8725
  },
8726
8726
  distanceRGBA: {
8727
- uniforms: /* @__PURE__ */ qr([
8727
+ uniforms: /* @__PURE__ */ Wr([
8728
8728
  Qe.common,
8729
8729
  Qe.displacementmap,
8730
8730
  {
@@ -8737,7 +8737,7 @@ void main() {
8737
8737
  fragmentShader: It.distanceRGBA_frag
8738
8738
  },
8739
8739
  shadow: {
8740
- uniforms: /* @__PURE__ */ qr([
8740
+ uniforms: /* @__PURE__ */ Wr([
8741
8741
  Qe.lights,
8742
8742
  Qe.fog,
8743
8743
  {
@@ -8750,7 +8750,7 @@ void main() {
8750
8750
  }
8751
8751
  };
8752
8752
  Ks.physical = {
8753
- uniforms: /* @__PURE__ */ qr([
8753
+ uniforms: /* @__PURE__ */ Wr([
8754
8754
  Ks.standard.uniforms,
8755
8755
  {
8756
8756
  clearcoat: { value: 0 },
@@ -9401,7 +9401,7 @@ class xB {
9401
9401
  }
9402
9402
  _sceneToCubeUV(e, t, i, n) {
9403
9403
  const a = new Ut(90, 1, t, i), c = [1, -1, 1, 1, 1, 1], l = [1, 1, 1, -1, -1, -1], h = this._renderer, u = h.autoClear, f = h.toneMapping;
9404
- h.getClearColor(wO), h.toneMapping = Er, h.autoClear = !1;
9404
+ h.getClearColor(wO), h.toneMapping = Sr, h.autoClear = !1;
9405
9405
  const p = new ni({
9406
9406
  name: "PMREM.Background",
9407
9407
  side: wn,
@@ -11039,10 +11039,10 @@ function AY(s, e, t, i) {
11039
11039
  "uniform mat4 viewMatrix;",
11040
11040
  "uniform vec3 cameraPosition;",
11041
11041
  "uniform bool isOrthographic;",
11042
- t.toneMapping !== Er ? "#define TONE_MAPPING" : "",
11043
- t.toneMapping !== Er ? It.tonemapping_pars_fragment : "",
11042
+ t.toneMapping !== Sr ? "#define TONE_MAPPING" : "",
11043
+ t.toneMapping !== Sr ? It.tonemapping_pars_fragment : "",
11044
11044
  // this code is required here because it is used by the toneMapping() function defined below
11045
- t.toneMapping !== Er ? iY("toneMapping", t.toneMapping) : "",
11045
+ t.toneMapping !== Sr ? iY("toneMapping", t.toneMapping) : "",
11046
11046
  t.dithering ? "#define DITHERING" : "",
11047
11047
  t.opaque ? "#define OPAQUE" : "",
11048
11048
  It.colorspace_pars_fragment,
@@ -11174,7 +11174,7 @@ class bY {
11174
11174
  }
11175
11175
  }
11176
11176
  function _Y(s, e, t, i, n, r, o) {
11177
- const a = new Ir(), c = new vY(), l = /* @__PURE__ */ new Set(), h = [], u = n.isWebGL2, f = n.logarithmicDepthBuffer, p = n.vertexTextures;
11177
+ const a = new Er(), c = new vY(), l = /* @__PURE__ */ new Set(), h = [], u = n.isWebGL2, f = n.logarithmicDepthBuffer, p = n.vertexTextures;
11178
11178
  let g = n.precision;
11179
11179
  const y = {
11180
11180
  MeshDepthMaterial: "depth",
@@ -11209,7 +11209,7 @@ function _Y(s, e, t, i, n, r, o) {
11209
11209
  } else
11210
11210
  ne = S.vertexShader, me = S.fragmentShader, c.update(S), Ce = c.getVertexShaderID(S), Oe = c.getFragmentShaderID(S);
11211
11211
  const We = s.getRenderTarget(), He = k.isInstancedMesh === !0, mt = k.isBatchedMesh === !0, st = !!S.map, q = !!S.matcap, ze = !!N, xe = !!S.aoMap, Ne = !!S.lightMap, Ee = !!S.bumpMap, et = !!S.normalMap, Ze = !!S.displacementMap, ot = !!S.emissiveMap, Ot = !!S.metalnessMap, G = !!S.roughnessMap, O = S.anisotropy > 0, ge = S.clearcoat > 0, be = S.iridescence > 0, Re = S.sheen > 0, Me = S.transmission > 0, vt = O && !!S.anisotropyMap, ut = ge && !!S.clearcoatMap, Le = ge && !!S.clearcoatNormalMap, Ve = ge && !!S.clearcoatRoughnessMap, xt = be && !!S.iridescenceMap, Fe = be && !!S.iridescenceThicknessMap, $t = Re && !!S.sheenColorMap, dt = Re && !!S.sheenRoughnessMap, Xe = !!S.specularMap, ft = !!S.specularColorMap, rt = !!S.specularIntensityMap, Pt = Me && !!S.transmissionMap, j = Me && !!S.thicknessMap, ce = !!S.gradientMap, $ = !!S.alphaMap, De = S.alphaTest > 0, le = !!S.alphaHash, Ge = !!S.extensions;
11212
- let Ye = Er;
11212
+ let Ye = Sr;
11213
11213
  S.toneMapped && (We === null || We.isXRRenderTarget === !0) && (Ye = s.toneMapping);
11214
11214
  const ei = {
11215
11215
  isWebGL2: u,
@@ -12532,7 +12532,7 @@ function OY(s, e, t, i, n, r, o) {
12532
12532
  const vt = i.get(Me);
12533
12533
  if (Me.version !== vt.__version || Re === !0) {
12534
12534
  t.activeTexture(s.TEXTURE0 + ge);
12535
- const ut = Ci.getPrimaries(Ci.workingColorSpace), Le = O.colorSpace === wr ? null : Ci.getPrimaries(O.colorSpace), Ve = O.colorSpace === wr || ut === Le ? s.NONE : s.BROWSER_DEFAULT_WEBGL;
12535
+ const ut = Ci.getPrimaries(Ci.workingColorSpace), Le = O.colorSpace === xr ? null : Ci.getPrimaries(O.colorSpace), Ve = O.colorSpace === xr || ut === Le ? s.NONE : s.BROWSER_DEFAULT_WEBGL;
12536
12536
  s.pixelStorei(s.UNPACK_FLIP_Y_WEBGL, O.flipY), s.pixelStorei(s.UNPACK_PREMULTIPLY_ALPHA_WEBGL, O.premultiplyAlpha), s.pixelStorei(s.UNPACK_ALIGNMENT, O.unpackAlignment), s.pixelStorei(s.UNPACK_COLORSPACE_CONVERSION_WEBGL, Ve);
12537
12537
  const xt = b(O) && A(O.image) === !1;
12538
12538
  let Fe = m(O.image, xt, !1, n.maxTextureSize);
@@ -12603,7 +12603,7 @@ function OY(s, e, t, i, n, r, o) {
12603
12603
  const Me = i.get(Re);
12604
12604
  if (Re.version !== Me.__version || be === !0) {
12605
12605
  t.activeTexture(s.TEXTURE0 + ge);
12606
- const vt = Ci.getPrimaries(Ci.workingColorSpace), ut = O.colorSpace === wr ? null : Ci.getPrimaries(O.colorSpace), Le = O.colorSpace === wr || vt === ut ? s.NONE : s.BROWSER_DEFAULT_WEBGL;
12606
+ const vt = Ci.getPrimaries(Ci.workingColorSpace), ut = O.colorSpace === xr ? null : Ci.getPrimaries(O.colorSpace), Le = O.colorSpace === xr || vt === ut ? s.NONE : s.BROWSER_DEFAULT_WEBGL;
12607
12607
  s.pixelStorei(s.UNPACK_FLIP_Y_WEBGL, O.flipY), s.pixelStorei(s.UNPACK_PREMULTIPLY_ALPHA_WEBGL, O.premultiplyAlpha), s.pixelStorei(s.UNPACK_ALIGNMENT, O.unpackAlignment), s.pixelStorei(s.UNPACK_COLORSPACE_CONVERSION_WEBGL, Le);
12608
12608
  const Ve = O.isCompressedTexture || O.image[0].isCompressedTexture, xt = O.image[0] && O.image[0].isDataTexture, Fe = [];
12609
12609
  for (let le = 0; le < 6; le++)
@@ -12824,7 +12824,7 @@ function OY(s, e, t, i, n, r, o) {
12824
12824
  }
12825
12825
  function ot(G, O) {
12826
12826
  const ge = G.colorSpace, be = G.format, Re = G.type;
12827
- return G.isCompressedTexture === !0 || G.isVideoTexture === !0 || G.format === uC || ge !== Ei && ge !== wr && (Ci.getTransfer(ge) === Wi ? a === !1 ? e.has("EXT_sRGB") === !0 && be === Si ? (G.format = uC, G.minFilter = Rt, G.generateMipmaps = !1) : O = QP.sRGBToLinear(O) : (be !== Si || Re !== Ai) && console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.") : console.error("THREE.WebGLTextures: Unsupported texture color space:", ge)), O;
12827
+ return G.isCompressedTexture === !0 || G.isVideoTexture === !0 || G.format === uC || ge !== Ei && ge !== xr && (Ci.getTransfer(ge) === Wi ? a === !1 ? e.has("EXT_sRGB") === !0 && be === Si ? (G.format = uC, G.minFilter = Rt, G.generateMipmaps = !1) : O = QP.sRGBToLinear(O) : (be !== Si || Re !== Ai) && console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.") : console.error("THREE.WebGLTextures: Unsupported texture color space:", ge)), O;
12828
12828
  }
12829
12829
  function Ot(G) {
12830
12830
  return typeof HTMLImageElement < "u" && G instanceof HTMLImageElement ? (h.width = G.naturalWidth || G.width, h.height = G.naturalHeight || G.height) : typeof VideoFrame < "u" && G instanceof VideoFrame ? (h.width = G.displayWidth, h.height = G.displayHeight) : (h.width = G.width, h.height = G.height), h;
@@ -12833,7 +12833,7 @@ function OY(s, e, t, i, n, r, o) {
12833
12833
  }
12834
12834
  function D4(s, e, t) {
12835
12835
  const i = t.isWebGL2;
12836
- function n(r, o = wr) {
12836
+ function n(r, o = xr) {
12837
12837
  let a;
12838
12838
  const c = Ci.getTransfer(o);
12839
12839
  if (r === Ai)
@@ -13516,7 +13516,7 @@ class Ph {
13516
13516
  * @type {?Function}
13517
13517
  */
13518
13518
  onShaderError: null
13519
- }, this.autoClear = !0, this.autoClearColor = !0, this.autoClearDepth = !0, this.autoClearStencil = !0, this.sortObjects = !0, this.clippingPlanes = [], this.localClippingEnabled = !1, this._outputColorSpace = gt, this._useLegacyLights = !1, this.toneMapping = Er, this.toneMappingExposure = 1;
13519
+ }, this.autoClear = !0, this.autoClearColor = !0, this.autoClearDepth = !0, this.autoClearStencil = !0, this.sortObjects = !0, this.clippingPlanes = [], this.localClippingEnabled = !1, this._outputColorSpace = gt, this._useLegacyLights = !1, this.toneMapping = Sr, this.toneMappingExposure = 1;
13520
13520
  const v = this;
13521
13521
  let _ = !1, w = 0, E = 0, I = null, M = -1, R = null;
13522
13522
  const S = new Ke(), T = new Ke();
@@ -13820,7 +13820,7 @@ class Ph {
13820
13820
  const he = v.getRenderTarget();
13821
13821
  v.setRenderTarget(Ce), v.getClearColor(U), k = v.getClearAlpha(), k < 1 && v.setClearColor(16777215, 0.5), v.clear();
13822
13822
  const _e = v.toneMapping;
13823
- v.toneMapping = Er, Bo(B, V, Y), ot.updateMultisampleRenderTarget(Ce), ot.updateRenderTargetMipmap(Ce);
13823
+ v.toneMapping = Sr, Bo(B, V, Y), ot.updateMultisampleRenderTarget(Ce), ot.updateRenderTargetMipmap(Ce);
13824
13824
  let Pe = !1;
13825
13825
  for (let ke = 0, je = z.length; ke < je; ke++) {
13826
13826
  const Je = z[ke], $e = Je.object, ct = Je.geometry, Et = Je.material, bi = Je.group;
@@ -13869,7 +13869,7 @@ class Ph {
13869
13869
  function P(B, z, V, Y, J) {
13870
13870
  z.isScene !== !0 && (z = mt), ot.resetTextureUnits();
13871
13871
  const fe = z.fog, he = Y.isMeshStandardMaterial ? z.environment : null, _e = I === null ? v.outputColorSpace : I.isXRRenderTarget === !0 ? I.texture.colorSpace : Ei, Pe = (Y.isMeshStandardMaterial ? G : Ot).get(Y.envMap || he), ke = Y.vertexColors === !0 && !!V.attributes.color && V.attributes.color.itemSize === 4, je = !!V.attributes.tangent && (!!Y.normalMap || Y.anisotropy > 0), Je = !!V.morphAttributes.position, $e = !!V.morphAttributes.normal, ct = !!V.morphAttributes.color;
13872
- let Et = Er;
13872
+ let Et = Sr;
13873
13873
  Y.toneMapped && (I === null || I.isXRRenderTarget === !0) && (Et = v.toneMapping);
13874
13874
  const bi = V.morphAttributes.position || V.morphAttributes.normal || V.morphAttributes.color, Vt = bi !== void 0 ? bi.length : 0, Bt = Ze.get(Y), Di = m.state.lights;
13875
13875
  if (ne === !0 && (me === !0 || B !== R)) {
@@ -13880,9 +13880,9 @@ class Ph {
13880
13880
  Y.version === Bt.__version ? (Bt.needsLights && Bt.lightsStateVersion !== Di.state.version || Bt.outputColorSpace !== _e || J.isBatchedMesh && Bt.batching === !1 || !J.isBatchedMesh && Bt.batching === !0 || J.isInstancedMesh && Bt.instancing === !1 || !J.isInstancedMesh && Bt.instancing === !0 || J.isSkinnedMesh && Bt.skinning === !1 || !J.isSkinnedMesh && Bt.skinning === !0 || J.isInstancedMesh && Bt.instancingColor === !0 && J.instanceColor === null || J.isInstancedMesh && Bt.instancingColor === !1 && J.instanceColor !== null || J.isInstancedMesh && Bt.instancingMorph === !0 && J.morphTexture === null || J.isInstancedMesh && Bt.instancingMorph === !1 && J.morphTexture !== null || Bt.envMap !== Pe || Y.fog === !0 && Bt.fog !== fe || Bt.numClippingPlanes !== void 0 && (Bt.numClippingPlanes !== Le.numPlanes || Bt.numIntersection !== Le.numIntersection) || Bt.vertexAlphas !== ke || Bt.vertexTangents !== je || Bt.morphTargets !== Je || Bt.morphNormals !== $e || Bt.morphColors !== ct || Bt.toneMapping !== Et || Ne.isWebGL2 === !0 && Bt.morphTargetsCount !== Vt) && (wt = !0) : (wt = !0, Bt.__version = Y.version);
13881
13881
  let Qi = Bt.currentProgram;
13882
13882
  wt === !0 && (Qi = Kt(Y, z, J));
13883
- let Ur = !1, cn = !1, pi = !1;
13883
+ let Fr = !1, cn = !1, pi = !1;
13884
13884
  const Wt = Qi.getUniforms(), Ls = Bt.uniforms;
13885
- if (Ee.useProgram(Qi.program) && (Ur = !0, cn = !0, pi = !0), Y.id !== M && (M = Y.id, cn = !0), Ur || R !== B) {
13885
+ if (Ee.useProgram(Qi.program) && (Fr = !0, cn = !0, pi = !0), Y.id !== M && (M = Y.id, cn = !0), Fr || R !== B) {
13886
13886
  Wt.setValue(q, "projectionMatrix", B.projectionMatrix), Wt.setValue(q, "viewMatrix", B.matrixWorldInverse);
13887
13887
  const yn = Wt.map.cameraPosition;
13888
13888
  yn !== void 0 && yn.setValue(q, He.setFromMatrixPosition(B.matrixWorld)), Ne.logarithmicDepthBuffer && Wt.setValue(
@@ -14127,7 +14127,7 @@ let Uv = class {
14127
14127
  };
14128
14128
  }
14129
14129
  };
14130
- const Nr = /* @__PURE__ */ new C();
14130
+ const Ur = /* @__PURE__ */ new C();
14131
14131
  let Vo = class L4 {
14132
14132
  constructor(e, t, i, n = !1) {
14133
14133
  this.isInterleavedBufferAttribute = !0, this.name = "", this.data = e, this.itemSize = t, this.offset = i, this.normalized = n;
@@ -14143,17 +14143,17 @@ let Vo = class L4 {
14143
14143
  }
14144
14144
  applyMatrix4(e) {
14145
14145
  for (let t = 0, i = this.data.count; t < i; t++)
14146
- Nr.fromBufferAttribute(this, t), Nr.applyMatrix4(e), this.setXYZ(t, Nr.x, Nr.y, Nr.z);
14146
+ Ur.fromBufferAttribute(this, t), Ur.applyMatrix4(e), this.setXYZ(t, Ur.x, Ur.y, Ur.z);
14147
14147
  return this;
14148
14148
  }
14149
14149
  applyNormalMatrix(e) {
14150
14150
  for (let t = 0, i = this.count; t < i; t++)
14151
- Nr.fromBufferAttribute(this, t), Nr.applyNormalMatrix(e), this.setXYZ(t, Nr.x, Nr.y, Nr.z);
14151
+ Ur.fromBufferAttribute(this, t), Ur.applyNormalMatrix(e), this.setXYZ(t, Ur.x, Ur.y, Ur.z);
14152
14152
  return this;
14153
14153
  }
14154
14154
  transformDirection(e) {
14155
14155
  for (let t = 0, i = this.count; t < i; t++)
14156
- Nr.fromBufferAttribute(this, t), Nr.transformDirection(e), this.setXYZ(t, Nr.x, Nr.y, Nr.z);
14156
+ Ur.fromBufferAttribute(this, t), Ur.transformDirection(e), this.setXYZ(t, Ur.x, Ur.y, Ur.z);
14157
14157
  return this;
14158
14158
  }
14159
14159
  getComponent(e, t) {
@@ -17332,14 +17332,14 @@ class HS extends Dt {
17332
17332
  super(e), this.isRawShaderMaterial = !0, this.type = "RawShaderMaterial";
17333
17333
  }
17334
17334
  }
17335
- let Mr = class extends Ft {
17335
+ let Ir = class extends Ft {
17336
17336
  constructor(e) {
17337
17337
  super(), this.isMeshStandardMaterial = !0, this.defines = { STANDARD: "" }, this.type = "MeshStandardMaterial", this.color = new ve(16777215), this.roughness = 1, this.metalness = 0, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new ve(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = sd, this.normalScale = new ee(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.roughnessMap = null, this.metalnessMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new fi(), this.envMapIntensity = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(e);
17338
17338
  }
17339
17339
  copy(e) {
17340
17340
  return super.copy(e), this.defines = { STANDARD: "" }, this.color.copy(e.color), this.roughness = e.roughness, this.metalness = e.metalness, this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.roughnessMap = e.roughnessMap, this.metalnessMap = e.metalnessMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.envMapRotation.copy(e.envMapRotation), this.envMapIntensity = e.envMapIntensity, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.flatShading = e.flatShading, this.fog = e.fog, this;
17341
17341
  }
17342
- }, bo = class extends Mr {
17342
+ }, bo = class extends Ir {
17343
17343
  constructor(e) {
17344
17344
  super(), this.isMeshPhysicalMaterial = !0, this.defines = {
17345
17345
  STANDARD: "",
@@ -18815,7 +18815,7 @@ class XS extends qn {
18815
18815
  ShaderMaterial: Dt,
18816
18816
  PointsMaterial: Ou,
18817
18817
  MeshPhysicalMaterial: bo,
18818
- MeshStandardMaterial: Mr,
18818
+ MeshStandardMaterial: Ir,
18819
18819
  MeshPhongMaterial: rm,
18820
18820
  MeshToonMaterial: J4,
18821
18821
  MeshNormalMaterial: VS,
@@ -20729,7 +20729,7 @@ class nK {
20729
20729
  const EL = /* @__PURE__ */ new Ae();
20730
20730
  let np = class {
20731
20731
  constructor(e, t, i = 0, n = 1 / 0) {
20732
- this.ray = new Co(e, t), this.near = i, this.far = n, this.camera = null, this.layers = new Ir(), this.params = {
20732
+ this.ray = new Co(e, t), this.near = i, this.far = n, this.camera = null, this.layers = new Er(), this.params = {
20733
20733
  Mesh: {},
20734
20734
  Line: { threshold: 1 },
20735
20735
  LOD: {},
@@ -21526,7 +21526,7 @@ const gK = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21526
21526
  DstAlphaFactor: Ez,
21527
21527
  DstColorFactor: Mz,
21528
21528
  DynamicCopyUsage: Aj,
21529
- DynamicDrawUsage: vr,
21529
+ DynamicDrawUsage: yr,
21530
21530
  DynamicReadUsage: pj,
21531
21531
  EdgesGeometry: sD,
21532
21532
  EllipseCurve: BS,
@@ -21586,7 +21586,7 @@ const gK = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21586
21586
  KeyframeTrack: xc,
21587
21587
  LOD: XP,
21588
21588
  LatheGeometry: Qv,
21589
- Layers: Ir,
21589
+ Layers: Er,
21590
21590
  LessCompare: l4,
21591
21591
  LessDepth: N0,
21592
21592
  LessEqualCompare: UP,
@@ -21638,7 +21638,7 @@ const gK = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21638
21638
  MeshNormalMaterial: VS,
21639
21639
  MeshPhongMaterial: rm,
21640
21640
  MeshPhysicalMaterial: bo,
21641
- MeshStandardMaterial: Mr,
21641
+ MeshStandardMaterial: Ir,
21642
21642
  MeshToonMaterial: J4,
21643
21643
  MinEquation: KT,
21644
21644
  MirroredRepeatWrapping: Uf,
@@ -21655,8 +21655,8 @@ const gK = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21655
21655
  NeverDepth: MP,
21656
21656
  NeverStencilFunc: vB,
21657
21657
  NoBlending: pn,
21658
- NoColorSpace: wr,
21659
- NoToneMapping: Er,
21658
+ NoColorSpace: xr,
21659
+ NoToneMapping: Sr,
21660
21660
  NormalAnimationBlendMode: _S,
21661
21661
  NormalBlending: Gu,
21662
21662
  NotEqualCompare: d4,
@@ -29152,7 +29152,7 @@ function Bte(s, e) {
29152
29152
  return !1;
29153
29153
  if (e["material:fbx"] != null)
29154
29154
  return !0;
29155
- const t = new Mr();
29155
+ const t = new Ir();
29156
29156
  t["material:fbx"] = e;
29157
29157
  const i = e;
29158
29158
  return i && (i.map ? t.color.set(1, 1, 1) : t.color.copyLinearToSRGB(i.color), t.emissive.copyLinearToSRGB(i.emissive), t.emissiveIntensity = i.emissiveIntensity, t.opacity = i.opacity, t.displacementScale = i.displacementScale, t.transparent = i.transparent, t.bumpMap = i.bumpMap, t.aoMap = i.aoMap, t.map = i.map, t.displacementMap = i.displacementMap, t.emissiveMap = i.emissiveMap, t.normalMap = i.normalMap, t.envMap = i.envMap, t.alphaMap = i.alphaMap, t.metalness = i.reflectivity, i.shininess && (t.roughness = 1 - Math.sqrt(i.shininess) / 10), t.needsUpdate = !0), s.material = t, !0;
@@ -29396,7 +29396,7 @@ function CH(s, ...e) {
29396
29396
  return `[${r.elements.join(", ")}]`;
29397
29397
  if (r instanceof Ae)
29398
29398
  return `[${r.elements.join(", ")}]`;
29399
- if (r instanceof Ir)
29399
+ if (r instanceof Er)
29400
29400
  return r.mask.toString();
29401
29401
  if (typeof r == "object") {
29402
29402
  if (VA.has(r))
@@ -29618,13 +29618,13 @@ function Hte() {
29618
29618
  return s || null;
29619
29619
  }
29620
29620
  const BH = ie("debugdefines");
29621
- Km('if(!globalThis[""3.43.0-beta""]) globalThis[""3.43.0-beta""] = "0.0.0";');
29621
+ Km('if(!globalThis[""3.43.0-beta.1""]) globalThis[""3.43.0-beta.1""] = "0.0.0";');
29622
29622
  Km('if(!globalThis[""undefined""]) globalThis[""undefined""] = "unknown";');
29623
- Km('if(!globalThis[""Fri Jun 28 2024 14:50:51 GMT+0200 (Central European Summer Time)""]) globalThis[""Fri Jun 28 2024 14:50:51 GMT+0200 (Central European Summer Time)""] = "unknown";');
29624
- Km('globalThis["__NEEDLE_ENGINE_VERSION__"] = "3.43.0-beta";');
29623
+ Km('if(!globalThis[""Sat Jun 29 2024 18:35:07 GMT+0200 (Central European Summer Time)""]) globalThis[""Sat Jun 29 2024 18:35:07 GMT+0200 (Central European Summer Time)""] = "unknown";');
29624
+ Km('globalThis["__NEEDLE_ENGINE_VERSION__"] = "3.43.0-beta.1";');
29625
29625
  Km('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
29626
- Km('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Fri Jun 28 2024 14:50:51 GMT+0200 (Central European Summer Time)";');
29627
- const oc = "3.43.0-beta", XD = "undefined", RH = "Fri Jun 28 2024 14:50:51 GMT+0200 (Central European Summer Time)";
29626
+ Km('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Sat Jun 29 2024 18:35:07 GMT+0200 (Central European Summer Time)";');
29627
+ const oc = "3.43.0-beta.1", XD = "undefined", RH = "Sat Jun 29 2024 18:35:07 GMT+0200 (Central European Summer Time)";
29628
29628
  BH && console.log(`Engine version: ${oc} (generator: ${XD})
29629
29629
  Project built at ${RH}`);
29630
29630
  const ju = "needle_isActiveInHierarchy", Mg = "builtin_components", Ew = "needle_editor_guid";
@@ -30056,7 +30056,7 @@ console.debug(`[gltf-progressive] version ${LH}`);
30056
30056
  * Copyright 2010-2023 Three.js Authors
30057
30057
  * SPDX-License-Identifier: MIT
30058
30058
  */
30059
- const GB = "162", wC = 0, cie = 1, lie = 2, uF = 1, dF = 100, fF = 204, pF = 205, gF = 3, hie = 0, mF = "attached", uie = "detached", FH = 300, die = 301, lv = 1e3, hf = 1001, HB = 1002, qf = 1003, fie = 1004, pie = 1005, hv = 1006, gie = 1007, cE = 1008, xa = 1009, mie = 1014, Ef = 1015, Mw = 1016, Aie = 1020, Fu = 1023, CI = 1026, AF = 1027, Vg = 1028, Ry = 1030, yie = 33776, vie = 33779, bie = 35840, _ie = 35842, xie = 36196, wie = 37492, Cie = 37496, Sie = 37808, yF = 37812, Eie = 36492, uv = 2300, Pm = 2301, SI = 2302, vF = 2400, bF = 2401, _F = 2402, Iie = 2500, Mie = 0, UH = 1, VB = 2, Tie = 0, CC = "", _r = "srgb", xo = "srgb-linear", NH = "display-p3", YD = "display-p3-linear", jB = "linear", xF = "srgb", wF = "rec709", CF = "p3", qp = 7680, SF = 519, Bie = 515, WB = 35044, uf = 2e3, qB = 2001;
30059
+ const GB = "162", wC = 0, cie = 1, lie = 2, uF = 1, dF = 100, fF = 204, pF = 205, gF = 3, hie = 0, mF = "attached", uie = "detached", FH = 300, die = 301, lv = 1e3, hf = 1001, HB = 1002, qf = 1003, fie = 1004, pie = 1005, hv = 1006, gie = 1007, cE = 1008, xa = 1009, mie = 1014, Ef = 1015, Mw = 1016, Aie = 1020, Fu = 1023, CI = 1026, AF = 1027, Vg = 1028, Ry = 1030, yie = 33776, vie = 33779, bie = 35840, _ie = 35842, xie = 36196, wie = 37492, Cie = 37496, Sie = 37808, yF = 37812, Eie = 36492, uv = 2300, Pm = 2301, SI = 2302, vF = 2400, bF = 2401, _F = 2402, Iie = 2500, Mie = 0, UH = 1, VB = 2, Tie = 0, CC = "", br = "srgb", xo = "srgb-linear", NH = "display-p3", YD = "display-p3-linear", jB = "linear", xF = "srgb", wF = "rec709", CF = "p3", qp = 7680, SF = 519, Bie = 515, WB = 35044, uf = 2e3, qB = 2001;
30060
30060
  class lE {
30061
30061
  addEventListener(e, t) {
30062
30062
  this._listeners === void 0 && (this._listeners = {});
@@ -30098,7 +30098,7 @@ function uc() {
30098
30098
  const s = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, i = Math.random() * 4294967295 | 0;
30099
30099
  return (ur[s & 255] + ur[s >> 8 & 255] + ur[s >> 16 & 255] + ur[s >> 24 & 255] + "-" + ur[e & 255] + ur[e >> 8 & 255] + "-" + ur[e >> 16 & 15 | 64] + ur[e >> 24 & 255] + "-" + ur[t & 63 | 128] + ur[t >> 8 & 255] + "-" + ur[t >> 16 & 255] + ur[t >> 24 & 255] + ur[i & 255] + ur[i >> 8 & 255] + ur[i >> 16 & 255] + ur[i >> 24 & 255]).toLowerCase();
30100
30100
  }
30101
- function xr(s, e, t) {
30101
+ function _r(s, e, t) {
30102
30102
  return Math.max(e, Math.min(t, s));
30103
30103
  }
30104
30104
  function JD(s, e) {
@@ -30223,7 +30223,7 @@ const qie = {
30223
30223
  DEG2RAD: l0,
30224
30224
  RAD2DEG: dv,
30225
30225
  generateUUID: uc,
30226
- clamp: xr,
30226
+ clamp: _r,
30227
30227
  euclideanModulo: JD,
30228
30228
  mapLinear: Rie,
30229
30229
  inverseLerp: Pie,
@@ -30396,7 +30396,7 @@ class Sn {
30396
30396
  if (t === 0)
30397
30397
  return Math.PI / 2;
30398
30398
  const i = this.dot(e) / t;
30399
- return Math.acos(xr(i, -1, 1));
30399
+ return Math.acos(_r(i, -1, 1));
30400
30400
  }
30401
30401
  distanceTo(e) {
30402
30402
  return Math.sqrt(this.distanceToSquared(e));
@@ -30666,7 +30666,7 @@ const MF = /* @__PURE__ */ new Dh().set(
30666
30666
  toReference: (s) => s,
30667
30667
  fromReference: (s) => s
30668
30668
  },
30669
- [_r]: {
30669
+ [br]: {
30670
30670
  transfer: xF,
30671
30671
  primaries: wF,
30672
30672
  toReference: (s) => s.convertSRGBToLinear(),
@@ -31211,7 +31211,7 @@ class ad {
31211
31211
  return i < Number.EPSILON ? (i = 0, Math.abs(e.x) > Math.abs(e.z) ? (this._x = -e.y, this._y = e.x, this._z = 0, this._w = i) : (this._x = 0, this._y = -e.z, this._z = e.y, this._w = i)) : (this._x = e.y * t.z - e.z * t.y, this._y = e.z * t.x - e.x * t.z, this._z = e.x * t.y - e.y * t.x, this._w = i), this.normalize();
31212
31212
  }
31213
31213
  angleTo(e) {
31214
- return 2 * Math.acos(Math.abs(xr(this.dot(e), -1, 1)));
31214
+ return 2 * Math.acos(Math.abs(_r(this.dot(e), -1, 1)));
31215
31215
  }
31216
31216
  rotateTowards(e, t) {
31217
31217
  const i = this.angleTo(e);
@@ -31506,7 +31506,7 @@ class ue {
31506
31506
  if (t === 0)
31507
31507
  return Math.PI / 2;
31508
31508
  const i = this.dot(e) / t;
31509
- return Math.acos(xr(i, -1, 1));
31509
+ return Math.acos(_r(i, -1, 1));
31510
31510
  }
31511
31511
  distanceTo(e) {
31512
31512
  return Math.sqrt(this.distanceToSquared(e));
@@ -32374,22 +32374,22 @@ class Zm {
32374
32374
  const n = e.elements, r = n[0], o = n[4], a = n[8], c = n[1], l = n[5], h = n[9], u = n[2], f = n[6], p = n[10];
32375
32375
  switch (t) {
32376
32376
  case "XYZ":
32377
- this._y = Math.asin(xr(a, -1, 1)), Math.abs(a) < 0.9999999 ? (this._x = Math.atan2(-h, p), this._z = Math.atan2(-o, r)) : (this._x = Math.atan2(f, l), this._z = 0);
32377
+ this._y = Math.asin(_r(a, -1, 1)), Math.abs(a) < 0.9999999 ? (this._x = Math.atan2(-h, p), this._z = Math.atan2(-o, r)) : (this._x = Math.atan2(f, l), this._z = 0);
32378
32378
  break;
32379
32379
  case "YXZ":
32380
- this._x = Math.asin(-xr(h, -1, 1)), Math.abs(h) < 0.9999999 ? (this._y = Math.atan2(a, p), this._z = Math.atan2(c, l)) : (this._y = Math.atan2(-u, r), this._z = 0);
32380
+ this._x = Math.asin(-_r(h, -1, 1)), Math.abs(h) < 0.9999999 ? (this._y = Math.atan2(a, p), this._z = Math.atan2(c, l)) : (this._y = Math.atan2(-u, r), this._z = 0);
32381
32381
  break;
32382
32382
  case "ZXY":
32383
- this._x = Math.asin(xr(f, -1, 1)), Math.abs(f) < 0.9999999 ? (this._y = Math.atan2(-u, p), this._z = Math.atan2(-o, l)) : (this._y = 0, this._z = Math.atan2(c, r));
32383
+ this._x = Math.asin(_r(f, -1, 1)), Math.abs(f) < 0.9999999 ? (this._y = Math.atan2(-u, p), this._z = Math.atan2(-o, l)) : (this._y = 0, this._z = Math.atan2(c, r));
32384
32384
  break;
32385
32385
  case "ZYX":
32386
- this._y = Math.asin(-xr(u, -1, 1)), Math.abs(u) < 0.9999999 ? (this._x = Math.atan2(f, p), this._z = Math.atan2(c, r)) : (this._x = 0, this._z = Math.atan2(-o, l));
32386
+ this._y = Math.asin(-_r(u, -1, 1)), Math.abs(u) < 0.9999999 ? (this._x = Math.atan2(f, p), this._z = Math.atan2(c, r)) : (this._x = 0, this._z = Math.atan2(-o, l));
32387
32387
  break;
32388
32388
  case "YZX":
32389
- this._z = Math.asin(xr(c, -1, 1)), Math.abs(c) < 0.9999999 ? (this._x = Math.atan2(-h, l), this._y = Math.atan2(-u, r)) : (this._x = 0, this._y = Math.atan2(a, p));
32389
+ this._z = Math.asin(_r(c, -1, 1)), Math.abs(c) < 0.9999999 ? (this._x = Math.atan2(-h, l), this._y = Math.atan2(-u, r)) : (this._x = 0, this._y = Math.atan2(a, p));
32390
32390
  break;
32391
32391
  case "XZY":
32392
- this._z = Math.asin(-xr(o, -1, 1)), Math.abs(o) < 0.9999999 ? (this._x = Math.atan2(f, l), this._y = Math.atan2(a, r)) : (this._x = Math.atan2(-h, p), this._y = 0);
32392
+ this._z = Math.asin(-_r(o, -1, 1)), Math.abs(o) < 0.9999999 ? (this._x = Math.atan2(f, l), this._y = Math.atan2(a, r)) : (this._x = Math.atan2(-h, p), this._y = 0);
32393
32393
  break;
32394
32394
  default:
32395
32395
  console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: " + t);
@@ -33031,14 +33031,14 @@ class ss {
33031
33031
  setScalar(e) {
33032
33032
  return this.r = e, this.g = e, this.b = e, this;
33033
33033
  }
33034
- setHex(e, t = _r) {
33034
+ setHex(e, t = br) {
33035
33035
  return e = Math.floor(e), this.r = (e >> 16 & 255) / 255, this.g = (e >> 8 & 255) / 255, this.b = (e & 255) / 255, Lo.toWorkingColorSpace(this, t), this;
33036
33036
  }
33037
33037
  setRGB(e, t, i, n = Lo.workingColorSpace) {
33038
33038
  return this.r = e, this.g = t, this.b = i, Lo.toWorkingColorSpace(this, n), this;
33039
33039
  }
33040
33040
  setHSL(e, t, i, n = Lo.workingColorSpace) {
33041
- if (e = JD(e, 1), t = xr(t, 0, 1), i = xr(i, 0, 1), t === 0)
33041
+ if (e = JD(e, 1), t = _r(t, 0, 1), i = _r(i, 0, 1), t === 0)
33042
33042
  this.r = this.g = this.b = i;
33043
33043
  else {
33044
33044
  const r = i <= 0.5 ? i * (1 + t) : i + t - i * t, o = 2 * i - r;
@@ -33046,7 +33046,7 @@ class ss {
33046
33046
  }
33047
33047
  return Lo.toWorkingColorSpace(this, n), this;
33048
33048
  }
33049
- setStyle(e, t = _r) {
33049
+ setStyle(e, t = br) {
33050
33050
  function i(r) {
33051
33051
  r !== void 0 && parseFloat(r) < 1 && console.warn("THREE.Color: Alpha component of " + e + " will be ignored.");
33052
33052
  }
@@ -33101,7 +33101,7 @@ class ss {
33101
33101
  return this.setColorName(e, t);
33102
33102
  return this;
33103
33103
  }
33104
- setColorName(e, t = _r) {
33104
+ setColorName(e, t = br) {
33105
33105
  const i = zH[e.toLowerCase()];
33106
33106
  return i !== void 0 ? this.setHex(i, t) : console.warn("THREE.Color: Unknown color " + e), this;
33107
33107
  }
@@ -33123,10 +33123,10 @@ class ss {
33123
33123
  convertLinearToSRGB() {
33124
33124
  return this.copyLinearToSRGB(this), this;
33125
33125
  }
33126
- getHex(e = _r) {
33127
- return Lo.fromWorkingColorSpace(dr.copy(this), e), Math.round(xr(dr.r * 255, 0, 255)) * 65536 + Math.round(xr(dr.g * 255, 0, 255)) * 256 + Math.round(xr(dr.b * 255, 0, 255));
33126
+ getHex(e = br) {
33127
+ return Lo.fromWorkingColorSpace(dr.copy(this), e), Math.round(_r(dr.r * 255, 0, 255)) * 65536 + Math.round(_r(dr.g * 255, 0, 255)) * 256 + Math.round(_r(dr.b * 255, 0, 255));
33128
33128
  }
33129
- getHexString(e = _r) {
33129
+ getHexString(e = br) {
33130
33130
  return ("000000" + this.getHex(e).toString(16)).slice(-6);
33131
33131
  }
33132
33132
  getHSL(e, t = Lo.workingColorSpace) {
@@ -33156,10 +33156,10 @@ class ss {
33156
33156
  getRGB(e, t = Lo.workingColorSpace) {
33157
33157
  return Lo.fromWorkingColorSpace(dr.copy(this), t), e.r = dr.r, e.g = dr.g, e.b = dr.b, e;
33158
33158
  }
33159
- getStyle(e = _r) {
33159
+ getStyle(e = br) {
33160
33160
  Lo.fromWorkingColorSpace(dr.copy(this), e);
33161
33161
  const t = dr.r, i = dr.g, n = dr.b;
33162
- return e !== _r ? `color(${e} ${t.toFixed(3)} ${i.toFixed(3)} ${n.toFixed(3)})` : `rgb(${Math.round(t * 255)},${Math.round(i * 255)},${Math.round(n * 255)})`;
33162
+ return e !== br ? `color(${e} ${t.toFixed(3)} ${i.toFixed(3)} ${n.toFixed(3)})` : `rgb(${Math.round(t * 255)},${Math.round(i * 255)},${Math.round(n * 255)})`;
33163
33163
  }
33164
33164
  offsetHSL(e, t, i) {
33165
33165
  return this.getHSL(ru), this.setHSL(ru.h + e, ru.s + t, ru.l + i);
@@ -34248,7 +34248,7 @@ class vne {
34248
34248
  };
34249
34249
  }
34250
34250
  }
34251
- const Qr = /* @__PURE__ */ new ue();
34251
+ const Nr = /* @__PURE__ */ new ue();
34252
34252
  class $D {
34253
34253
  constructor(e, t, i, n = !1) {
34254
34254
  this.isInterleavedBufferAttribute = !0, this.name = "", this.data = e, this.itemSize = t, this.offset = i, this.normalized = n;
@@ -34264,17 +34264,17 @@ class $D {
34264
34264
  }
34265
34265
  applyMatrix4(e) {
34266
34266
  for (let t = 0, i = this.data.count; t < i; t++)
34267
- Qr.fromBufferAttribute(this, t), Qr.applyMatrix4(e), this.setXYZ(t, Qr.x, Qr.y, Qr.z);
34267
+ Nr.fromBufferAttribute(this, t), Nr.applyMatrix4(e), this.setXYZ(t, Nr.x, Nr.y, Nr.z);
34268
34268
  return this;
34269
34269
  }
34270
34270
  applyNormalMatrix(e) {
34271
34271
  for (let t = 0, i = this.count; t < i; t++)
34272
- Qr.fromBufferAttribute(this, t), Qr.applyNormalMatrix(e), this.setXYZ(t, Qr.x, Qr.y, Qr.z);
34272
+ Nr.fromBufferAttribute(this, t), Nr.applyNormalMatrix(e), this.setXYZ(t, Nr.x, Nr.y, Nr.z);
34273
34273
  return this;
34274
34274
  }
34275
34275
  transformDirection(e) {
34276
34276
  for (let t = 0, i = this.count; t < i; t++)
34277
- Qr.fromBufferAttribute(this, t), Qr.transformDirection(e), this.setXYZ(t, Qr.x, Qr.y, Qr.z);
34277
+ Nr.fromBufferAttribute(this, t), Nr.transformDirection(e), this.setXYZ(t, Nr.x, Nr.y, Nr.z);
34278
34278
  return this;
34279
34279
  }
34280
34280
  getComponent(e, t) {
@@ -34802,7 +34802,7 @@ class kh extends dE {
34802
34802
  PHYSICAL: ""
34803
34803
  }, this.type = "MeshPhysicalMaterial", this.anisotropyRotation = 0, this.anisotropyMap = null, this.clearcoatMap = null, this.clearcoatRoughness = 0, this.clearcoatRoughnessMap = null, this.clearcoatNormalScale = new Sn(1, 1), this.clearcoatNormalMap = null, this.ior = 1.5, Object.defineProperty(this, "reflectivity", {
34804
34804
  get: function() {
34805
- return xr(2.5 * (this.ior - 1) / (this.ior + 1), 0, 1);
34805
+ return _r(2.5 * (this.ior - 1) / (this.ior + 1), 0, 1);
34806
34806
  },
34807
34807
  set: function(t) {
34808
34808
  this.ior = (1 + 0.4 * t) / (1 - 0.4 * t);
@@ -36517,7 +36517,7 @@ let cse = class {
36517
36517
  const o = r.baseColorFactor;
36518
36518
  e.color.setRGB(o[0], o[1], o[2], xo), e.opacity = o[3];
36519
36519
  }
36520
- r.baseColorTexture !== void 0 && n.push(i.assignTexture(e, "map", r.baseColorTexture, _r));
36520
+ r.baseColorTexture !== void 0 && n.push(i.assignTexture(e, "map", r.baseColorTexture, br));
36521
36521
  }
36522
36522
  return Promise.all(n);
36523
36523
  }
@@ -36585,7 +36585,7 @@ let cse = class {
36585
36585
  const a = o.sheenColorFactor;
36586
36586
  t.sheenColor.setRGB(a[0], a[1], a[2], xo);
36587
36587
  }
36588
- return o.sheenRoughnessFactor !== void 0 && (t.sheenRoughness = o.sheenRoughnessFactor), o.sheenColorTexture !== void 0 && r.push(i.assignTexture(t, "sheenColorMap", o.sheenColorTexture, _r)), o.sheenRoughnessTexture !== void 0 && r.push(i.assignTexture(t, "sheenRoughnessMap", o.sheenRoughnessTexture)), Promise.all(r);
36588
+ return o.sheenRoughnessFactor !== void 0 && (t.sheenRoughness = o.sheenRoughnessFactor), o.sheenColorTexture !== void 0 && r.push(i.assignTexture(t, "sheenColorMap", o.sheenColorTexture, br)), o.sheenRoughnessTexture !== void 0 && r.push(i.assignTexture(t, "sheenRoughnessMap", o.sheenRoughnessTexture)), Promise.all(r);
36589
36589
  }
36590
36590
  }, pse = class {
36591
36591
  constructor(e) {
@@ -36649,7 +36649,7 @@ let cse = class {
36649
36649
  const r = [], o = n.extensions[this.name];
36650
36650
  t.specularIntensity = o.specularFactor !== void 0 ? o.specularFactor : 1, o.specularTexture !== void 0 && r.push(i.assignTexture(t, "specularIntensityMap", o.specularTexture));
36651
36651
  const a = o.specularColorFactor || [1, 1, 1];
36652
- return t.specularColor = new ss().setRGB(a[0], a[1], a[2], xo), o.specularColorTexture !== void 0 && r.push(i.assignTexture(t, "specularColorMap", o.specularColorTexture, _r)), Promise.all(r);
36652
+ return t.specularColor = new ss().setRGB(a[0], a[1], a[2], xo), o.specularColorTexture !== void 0 && r.push(i.assignTexture(t, "specularColorMap", o.specularColorTexture, br)), Promise.all(r);
36653
36653
  }
36654
36654
  }, yse = class {
36655
36655
  constructor(e) {
@@ -37459,7 +37459,7 @@ let Use = class {
37459
37459
  const f = u.baseColorFactor;
37460
37460
  a.color.setRGB(f[0], f[1], f[2], xo), a.opacity = f[3];
37461
37461
  }
37462
- u.baseColorTexture !== void 0 && l.push(t.assignTexture(a, "map", u.baseColorTexture, _r)), a.metalness = u.metallicFactor !== void 0 ? u.metallicFactor : 1, a.roughness = u.roughnessFactor !== void 0 ? u.roughnessFactor : 1, u.metallicRoughnessTexture !== void 0 && (l.push(t.assignTexture(a, "metalnessMap", u.metallicRoughnessTexture)), l.push(t.assignTexture(a, "roughnessMap", u.metallicRoughnessTexture))), o = this._invokeOne(function(f) {
37462
+ u.baseColorTexture !== void 0 && l.push(t.assignTexture(a, "map", u.baseColorTexture, br)), a.metalness = u.metallicFactor !== void 0 ? u.metallicFactor : 1, a.roughness = u.roughnessFactor !== void 0 ? u.roughnessFactor : 1, u.metallicRoughnessTexture !== void 0 && (l.push(t.assignTexture(a, "metalnessMap", u.metallicRoughnessTexture)), l.push(t.assignTexture(a, "roughnessMap", u.metallicRoughnessTexture))), o = this._invokeOne(function(f) {
37463
37463
  return f.getMaterialType && f.getMaterialType(e);
37464
37464
  }), l.push(Promise.all(this._invokeAll(function(f) {
37465
37465
  return f.extendMaterialParams && f.extendMaterialParams(e, a);
@@ -37475,7 +37475,7 @@ let Use = class {
37475
37475
  const u = r.emissiveFactor;
37476
37476
  a.emissive = new ss().setRGB(u[0], u[1], u[2], xo);
37477
37477
  }
37478
- return r.emissiveTexture !== void 0 && o !== jg && l.push(t.assignTexture(a, "emissiveMap", r.emissiveTexture, _r)), Promise.all(l).then(function() {
37478
+ return r.emissiveTexture !== void 0 && o !== jg && l.push(t.assignTexture(a, "emissiveMap", r.emissiveTexture, br)), Promise.all(l).then(function() {
37479
37479
  const u = new o(a);
37480
37480
  return r.name && (u.name = r.name), Eu(u, r), t.associations.set(u, { materials: e }), r.extensions && Dd(n, u, r), u;
37481
37481
  });
@@ -37965,7 +37965,7 @@ let zse = class extends cd {
37965
37965
  }
37966
37966
  parse(e, t, i = () => {
37967
37967
  }) {
37968
- this.decodeDracoFile(e, t, null, null, _r).catch(i);
37968
+ this.decodeDracoFile(e, t, null, null, br).catch(i);
37969
37969
  }
37970
37970
  decodeDracoFile(e, t, i, n, r = xo, o = () => {
37971
37971
  }) {
@@ -38009,7 +38009,7 @@ let zse = class extends cd {
38009
38009
  return t;
38010
38010
  }
38011
38011
  _assignVertexColorSpace(e, t) {
38012
- if (t !== _r)
38012
+ if (t !== br)
38013
38013
  return;
38014
38014
  const i = new ss();
38015
38015
  for (let n = 0, r = e.count; n < r; n++)
@@ -38250,19 +38250,19 @@ let Jse = class {
38250
38250
  return n < e && this._offset++, new Uint8Array(this._dataView.buffer, this._dataView.byteOffset + i, n);
38251
38251
  }
38252
38252
  };
38253
- const zr = [171, 75, 84, 88, 32, 50, 48, 187, 13, 10, 26, 10];
38253
+ const Qr = [171, 75, 84, 88, 32, 50, 48, 187, 13, 10, 26, 10];
38254
38254
  function yU(s) {
38255
38255
  return typeof TextDecoder < "u" ? new TextDecoder().decode(s) : Buffer.from(s).toString("utf8");
38256
38256
  }
38257
38257
  function Kse(s) {
38258
- const e = new Uint8Array(s.buffer, s.byteOffset, zr.length);
38259
- if (e[0] !== zr[0] || e[1] !== zr[1] || e[2] !== zr[2] || e[3] !== zr[3] || e[4] !== zr[4] || e[5] !== zr[5] || e[6] !== zr[6] || e[7] !== zr[7] || e[8] !== zr[8] || e[9] !== zr[9] || e[10] !== zr[10] || e[11] !== zr[11])
38258
+ const e = new Uint8Array(s.buffer, s.byteOffset, Qr.length);
38259
+ if (e[0] !== Qr[0] || e[1] !== Qr[1] || e[2] !== Qr[2] || e[3] !== Qr[3] || e[4] !== Qr[4] || e[5] !== Qr[5] || e[6] !== Qr[6] || e[7] !== Qr[7] || e[8] !== Qr[8] || e[9] !== Qr[9] || e[10] !== Qr[10] || e[11] !== Qr[11])
38260
38260
  throw new Error("Missing KTX 2.0 identifier.");
38261
- const t = new Jse(), i = 17 * Uint32Array.BYTES_PER_ELEMENT, n = new iy(s, zr.length, i, !0);
38261
+ const t = new Jse(), i = 17 * Uint32Array.BYTES_PER_ELEMENT, n = new iy(s, Qr.length, i, !0);
38262
38262
  t.vkFormat = n._nextUint32(), t.typeSize = n._nextUint32(), t.pixelWidth = n._nextUint32(), t.pixelHeight = n._nextUint32(), t.pixelDepth = n._nextUint32(), t.layerCount = n._nextUint32(), t.faceCount = n._nextUint32();
38263
38263
  const r = n._nextUint32();
38264
38264
  t.supercompressionScheme = n._nextUint32();
38265
- const o = n._nextUint32(), a = n._nextUint32(), c = n._nextUint32(), l = n._nextUint32(), h = n._nextUint64(), u = n._nextUint64(), f = new iy(s, zr.length + i, 3 * r * 8, !0);
38265
+ const o = n._nextUint32(), a = n._nextUint32(), c = n._nextUint32(), l = n._nextUint32(), h = n._nextUint64(), u = n._nextUint64(), f = new iy(s, Qr.length + i, 3 * r * 8, !0);
38266
38266
  for (let L = 0; L < r; L++)
38267
38267
  t.levels.push({ levelData: new Uint8Array(s.buffer, s.byteOffset + f._nextUint64(), f._nextUint64()), uncompressedByteLength: f._nextUint64() });
38268
38268
  const p = new iy(s, o, a, !0), g = { vendorId: p._skip(4)._nextUint16(), descriptorType: p._nextUint16(), versionNumber: p._nextUint16(), descriptorBlockSize: p._nextUint16(), colorModel: p._nextUint8(), colorPrimaries: p._nextUint8(), transferFunction: p._nextUint8(), flags: p._nextUint8(), texelBlockDimension: [p._nextUint8(), p._nextUint8(), p._nextUint8(), p._nextUint8()], bytesPlane: [p._nextUint8(), p._nextUint8(), p._nextUint8(), p._nextUint8(), p._nextUint8(), p._nextUint8(), p._nextUint8(), p._nextUint8()], samples: [] }, y = (g.descriptorBlockSize / 4 - 6) / 4;
@@ -38676,7 +38676,7 @@ async function ere(s) {
38676
38676
  }
38677
38677
  function f8(s) {
38678
38678
  const e = s.dataFormatDescriptor[0];
38679
- return e.colorPrimaries === qse ? e.transferFunction === AU ? _r : xo : e.colorPrimaries === Xse ? e.transferFunction === AU ? NH : YD : (e.colorPrimaries === Wse || console.warn(`THREE.KTX2Loader: Unsupported color primaries, "${e.colorPrimaries}"`), CC);
38679
+ return e.colorPrimaries === qse ? e.transferFunction === AU ? br : xo : e.colorPrimaries === Xse ? e.transferFunction === AU ? NH : YD : (e.colorPrimaries === Wse || console.warn(`THREE.KTX2Loader: Unsupported color primaries, "${e.colorPrimaries}"`), CC);
38680
38680
  }
38681
38681
  let SC = "https://www.gstatic.com/draco/versioned/decoders/1.4.1/", a2 = "https://www.gstatic.com/basis-universal/versioned/2021-04-15-ba1c3e4/";
38682
38682
  fetch(SC + "draco_decoder.js", { method: "head" }).catch((s) => {
@@ -40003,19 +40003,19 @@ class ry {
40003
40003
  return n < e && this._offset++, new Uint8Array(this._dataView.buffer, this._dataView.byteOffset + i, n);
40004
40004
  }
40005
40005
  }
40006
- const Gr = [171, 75, 84, 88, 32, 50, 48, 187, 13, 10, 26, 10];
40006
+ const zr = [171, 75, 84, 88, 32, 50, 48, 187, 13, 10, 26, 10];
40007
40007
  function EU(s) {
40008
40008
  return typeof TextDecoder < "u" ? new TextDecoder().decode(s) : Buffer.from(s).toString("utf8");
40009
40009
  }
40010
40010
  function Sre(s) {
40011
- const e = new Uint8Array(s.buffer, s.byteOffset, Gr.length);
40012
- if (e[0] !== Gr[0] || e[1] !== Gr[1] || e[2] !== Gr[2] || e[3] !== Gr[3] || e[4] !== Gr[4] || e[5] !== Gr[5] || e[6] !== Gr[6] || e[7] !== Gr[7] || e[8] !== Gr[8] || e[9] !== Gr[9] || e[10] !== Gr[10] || e[11] !== Gr[11])
40011
+ const e = new Uint8Array(s.buffer, s.byteOffset, zr.length);
40012
+ if (e[0] !== zr[0] || e[1] !== zr[1] || e[2] !== zr[2] || e[3] !== zr[3] || e[4] !== zr[4] || e[5] !== zr[5] || e[6] !== zr[6] || e[7] !== zr[7] || e[8] !== zr[8] || e[9] !== zr[9] || e[10] !== zr[10] || e[11] !== zr[11])
40013
40013
  throw new Error("Missing KTX 2.0 identifier.");
40014
- const t = new Cre(), i = 17 * Uint32Array.BYTES_PER_ELEMENT, n = new ry(s, Gr.length, i, !0);
40014
+ const t = new Cre(), i = 17 * Uint32Array.BYTES_PER_ELEMENT, n = new ry(s, zr.length, i, !0);
40015
40015
  t.vkFormat = n._nextUint32(), t.typeSize = n._nextUint32(), t.pixelWidth = n._nextUint32(), t.pixelHeight = n._nextUint32(), t.pixelDepth = n._nextUint32(), t.layerCount = n._nextUint32(), t.faceCount = n._nextUint32();
40016
40016
  const r = n._nextUint32();
40017
40017
  t.supercompressionScheme = n._nextUint32();
40018
- const o = n._nextUint32(), a = n._nextUint32(), c = n._nextUint32(), l = n._nextUint32(), h = n._nextUint64(), u = n._nextUint64(), f = new ry(s, Gr.length + i, 3 * r * 8, !0);
40018
+ const o = n._nextUint32(), a = n._nextUint32(), c = n._nextUint32(), l = n._nextUint32(), h = n._nextUint64(), u = n._nextUint64(), f = new ry(s, zr.length + i, 3 * r * 8, !0);
40019
40019
  for (let L = 0; L < r; L++)
40020
40020
  t.levels.push({ levelData: new Uint8Array(s.buffer, s.byteOffset + f._nextUint64(), f._nextUint64()), uncompressedByteLength: f._nextUint64() });
40021
40021
  const p = new ry(s, o, a, !0), g = { vendorId: p._skip(4)._nextUint16(), descriptorType: p._nextUint16(), versionNumber: p._nextUint16(), descriptorBlockSize: p._nextUint16(), colorModel: p._nextUint8(), colorPrimaries: p._nextUint8(), transferFunction: p._nextUint8(), flags: p._nextUint8(), texelBlockDimension: [p._nextUint8(), p._nextUint8(), p._nextUint8(), p._nextUint8()], bytesPlane: [p._nextUint8(), p._nextUint8(), p._nextUint8(), p._nextUint8(), p._nextUint8(), p._nextUint8(), p._nextUint8(), p._nextUint8()], samples: [] }, y = (g.descriptorBlockSize / 4 - 6) / 4;
@@ -40430,7 +40430,7 @@ async function Mre(s) {
40430
40430
  }
40431
40431
  function R8(s) {
40432
40432
  const e = s.dataFormatDescriptor[0];
40433
- return e.colorPrimaries === _re ? e.transferFunction === SU ? gt : Ei : e.colorPrimaries === xre ? e.transferFunction === SU ? kv : Wm : (e.colorPrimaries === bre || console.warn(`THREE.KTX2Loader: Unsupported color primaries, "${e.colorPrimaries}"`), wr);
40433
+ return e.colorPrimaries === _re ? e.transferFunction === SU ? gt : Ei : e.colorPrimaries === xre ? e.transferFunction === SU ? kv : Wm : (e.colorPrimaries === bre || console.warn(`THREE.KTX2Loader: Unsupported color primaries, "${e.colorPrimaries}"`), xr);
40434
40434
  }
40435
40435
  const lm = ie("debugdecoders");
40436
40436
  let f0 = "https://www.gstatic.com/draco/versioned/decoders/1.4.1/", oR = "https://www.gstatic.com/basis-universal/versioned/2021-04-15-ba1c3e4/";
@@ -41140,7 +41140,7 @@ class $re extends Da {
41140
41140
  return i.copy(r[1]).normalize(), i;
41141
41141
  }
41142
41142
  }
41143
- let ti, zn, Xr;
41143
+ let ti, zn, qr;
41144
41144
  class N8 extends qn {
41145
41145
  constructor(e) {
41146
41146
  super(e);
@@ -41177,7 +41177,7 @@ class eoe {
41177
41177
  parse() {
41178
41178
  zn = this.parseConnections();
41179
41179
  const e = this.parseImages(), t = this.parseTextures(e), i = this.parseMaterials(t), n = this.parseDeformers(), r = new toe().parse(n);
41180
- return this.parseScene(n, r, i), Xr;
41180
+ return this.parseScene(n, r, i), qr;
41181
41181
  }
41182
41182
  // Parses FBXTree.Connections which holds parent-child connections between objects (e.g. material -> texture, model->geometry )
41183
41183
  // and details the connection type
@@ -41456,15 +41456,15 @@ class eoe {
41456
41456
  }
41457
41457
  // create the main Group() to be returned by the loader
41458
41458
  parseScene(e, t, i) {
41459
- Xr = new Zs();
41459
+ qr = new Zs();
41460
41460
  const n = this.parseModels(e.skeletons, t, i), r = ti.Objects.Model, o = this;
41461
41461
  n.forEach(function(c) {
41462
41462
  const l = r[c.ID];
41463
41463
  o.setLookAtProperties(c, l), zn.get(c.ID).parents.forEach(function(u) {
41464
41464
  const f = n.get(u.ID);
41465
41465
  f !== void 0 && f.add(c);
41466
- }), c.parent === null && Xr.add(c);
41467
- }), this.bindSkeleton(e.skeletons, t, n), this.addGlobalSceneSettings(), Xr.traverse(function(c) {
41466
+ }), c.parent === null && qr.add(c);
41467
+ }), this.bindSkeleton(e.skeletons, t, n), this.addGlobalSceneSettings(), qr.traverse(function(c) {
41468
41468
  if (c.userData.transformData) {
41469
41469
  c.parent && (c.userData.transformData.parentMatrix = c.parent.matrix, c.userData.transformData.parentMatrixWorld = c.parent.matrixWorld);
41470
41470
  const l = z8(c.userData.transformData);
@@ -41472,7 +41472,7 @@ class eoe {
41472
41472
  }
41473
41473
  });
41474
41474
  const a = new ioe().parse();
41475
- Xr.children.length === 1 && Xr.children[0].isGroup && (Xr.children[0].animations = a, Xr = Xr.children[0]), Xr.animations = a;
41475
+ qr.children.length === 1 && qr.children[0].isGroup && (qr.children[0].animations = a, qr = qr.children[0]), qr.animations = a;
41476
41476
  }
41477
41477
  // parse nodes in FBXTree.Objects.Model
41478
41478
  parseModels(e, t, i) {
@@ -41630,7 +41630,7 @@ class eoe {
41630
41630
  const r = ti.Objects.Model[n.ID];
41631
41631
  if ("Lcl_Translation" in r) {
41632
41632
  const o = r.Lcl_Translation.value;
41633
- e.target !== void 0 ? (e.target.position.fromArray(o), Xr.add(e.target)) : e.lookAt(new C().fromArray(o));
41633
+ e.target !== void 0 ? (e.target.position.fromArray(o), qr.add(e.target)) : e.lookAt(new C().fromArray(o));
41634
41634
  }
41635
41635
  }
41636
41636
  });
@@ -41669,10 +41669,10 @@ class eoe {
41669
41669
  const e = ti.GlobalSettings.AmbientColor.value, t = e[0], i = e[1], n = e[2];
41670
41670
  if (t !== 0 || i !== 0 || n !== 0) {
41671
41671
  const r = new ve(t, i, n).convertSRGBToLinear();
41672
- Xr.add(new qS(r, 1));
41672
+ qr.add(new qS(r, 1));
41673
41673
  }
41674
41674
  }
41675
- "UnitScaleFactor" in ti.GlobalSettings && (Xr.userData.unitScaleFactor = ti.GlobalSettings.UnitScaleFactor.value);
41675
+ "UnitScaleFactor" in ti.GlobalSettings && (qr.userData.unitScaleFactor = ti.GlobalSettings.UnitScaleFactor.value);
41676
41676
  }
41677
41677
  }
41678
41678
  }
@@ -42048,7 +42048,7 @@ class ioe {
42048
42048
  initialRotation: [0, 0, 0],
42049
42049
  initialScale: [1, 1, 1]
42050
42050
  };
42051
- Xr.traverse(function(g) {
42051
+ qr.traverse(function(g) {
42052
42052
  g.ID === f.id && (p.transform = g.matrix, g.userData.transformData && (p.eulerOrder = g.userData.transformData.eulerOrder));
42053
42053
  }), p.transform || (p.transform = new Ae()), "PreRotation" in f && (p.preRotation = f.PreRotation.value), "PostRotation" in f && (p.postRotation = f.PostRotation.value), r[l] = p;
42054
42054
  }
@@ -42138,7 +42138,7 @@ class ioe {
42138
42138
  generateMorphTrack(e) {
42139
42139
  const t = e.DeformPercent.curves.morph, i = t.values.map(function(r) {
42140
42140
  return r / 100;
42141
- }), n = Xr.getObjectByName(e.modelName).morphTargetDictionary[e.morphName];
42141
+ }), n = qr.getObjectByName(e.modelName).morphTargetDictionary[e.morphName];
42142
42142
  return new Eh(e.modelName + ".morphTargetInfluences[" + n + "]", t.times, i);
42143
42143
  }
42144
42144
  // For all animated objects, times are defined separately for each axis
@@ -43480,7 +43480,7 @@ const va = {
43480
43480
  BLEND: "BLEND"
43481
43481
  };
43482
43482
  function Foe(s) {
43483
- return s.DefaultMaterial === void 0 && (s.DefaultMaterial = new Mr({
43483
+ return s.DefaultMaterial === void 0 && (s.DefaultMaterial = new Ir({
43484
43484
  color: 16777215,
43485
43485
  emissive: 0,
43486
43486
  metalness: 1,
@@ -43931,7 +43931,7 @@ class Hoe {
43931
43931
  e.material = i;
43932
43932
  }
43933
43933
  getMaterialType() {
43934
- return Mr;
43934
+ return Ir;
43935
43935
  }
43936
43936
  /**
43937
43937
  * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#materials
@@ -44927,9 +44927,9 @@ const nf = class {
44927
44927
  i && i.forEach((n) => n(e, t));
44928
44928
  }
44929
44929
  };
44930
- let Sr = nf;
44931
- d(Sr, "USDObject_export_id", 0);
44932
- class X8 extends Sr {
44930
+ let Cr = nf;
44931
+ d(Cr, "USDObject_export_id", 0);
44932
+ class X8 extends Cr {
44933
44933
  constructor() {
44934
44934
  super(void 0, "StageRoot", new Ae(), null, null, null);
44935
44935
  d(this, "stageLength");
@@ -45141,22 +45141,22 @@ function Y8(s, e, t, i) {
45141
45141
  if (!t.exportInvisible && !s.visible)
45142
45142
  return;
45143
45143
  let n, r, o;
45144
- if ((s instanceof pe || s instanceof Ao) && (r = s.geometry, o = s.material), i && !i(s) && (r = void 0, o = void 0), (s instanceof pe || s instanceof Ao) && o && (o instanceof Mr || o instanceof ni)) {
45144
+ if ((s instanceof pe || s instanceof Ao) && (r = s.geometry, o = s.material), i && !i(s) && (r = void 0, o = void 0), (s instanceof pe || s instanceof Ao) && o && (o instanceof Ir || o instanceof ni)) {
45145
45145
  const a = fx(s), c = s instanceof Ao ? s : null;
45146
- n = new Sr(s.uuid, a, s.matrix, r, o, void 0, c, s.animations);
45146
+ n = new Cr(s.uuid, a, s.matrix, r, o, void 0, c, s.animations);
45147
45147
  } else if (s instanceof Ut || s instanceof pl) {
45148
45148
  const a = fx(s);
45149
- n = new Sr(s.uuid, a, s.matrix, void 0, void 0, s);
45149
+ n = new Cr(s.uuid, a, s.matrix, void 0, void 0, s);
45150
45150
  } else {
45151
45151
  const a = fx(s);
45152
- n = new Sr(s.uuid, a, s.matrix, void 0, void 0, void 0, void 0, s.animations);
45152
+ n = new Cr(s.uuid, a, s.matrix, void 0, void 0, void 0, void 0, s.animations);
45153
45153
  }
45154
45154
  if (n) {
45155
45155
  if (n.displayName = s.name, n.visibility = s.visible ? void 0 : "invisible", e && e.add(n), e = n, t.extensions)
45156
45156
  for (const a of t.extensions)
45157
45157
  a.onExportObject && a.onExportObject.call(a, s, n, t);
45158
45158
  } else {
45159
- const a = fx(s), c = new Sr(s.uuid, a, s.matrix);
45159
+ const a = fx(s), c = new Cr(s.uuid, a, s.matrix);
45160
45160
  e && e.add(c), e = c;
45161
45161
  }
45162
45162
  for (const a of s.children)
@@ -45220,7 +45220,7 @@ async function Rw(s, e, t = null) {
45220
45220
  }
45221
45221
  }
45222
45222
  }
45223
- let ux = null, Hr = null, BM, ug, dx;
45223
+ let ux = null, Gr = null, BM, ug, dx;
45224
45224
  async function rae(s, e = 1 / 0, t = null, i = void 0) {
45225
45225
  BM || (BM = new os(2, 2, 1, 1)), ug || (ug = new Dt({
45226
45226
  uniforms: {
@@ -45259,10 +45259,10 @@ async function rae(s, e = 1 / 0, t = null, i = void 0) {
45259
45259
  const r = new Ut(), o = new nr();
45260
45260
  o.add(dx), t || (t = ux = new Ph({ antialias: !1, alpha: !0, premultipliedAlpha: !1, preserveDrawingBuffer: !0 }));
45261
45261
  const a = Math.min(s.image.width, e), c = Math.min(s.image.height, e);
45262
- Hr && (Hr.width !== a || Hr.height !== c) && (Hr.dispose(), Hr = null), Hr || (Hr = new Jt(a, c, { format: Si, type: Ai, minFilter: Rt, magFilter: Rt })), t.setRenderTarget(Hr), t.setSize(a, c), t.clear(), t.render(o, r), ux && (ux.dispose(), ux = null);
45263
- const l = new Uint8ClampedArray(Hr.width * Hr.height * 4);
45264
- t.readRenderTargetPixels(Hr, 0, 0, Hr.width, Hr.height, l);
45265
- const h = new ImageData(l, Hr.width, Hr.height, void 0), u = await createImageBitmap(h, { premultiplyAlpha: "none" });
45262
+ Gr && (Gr.width !== a || Gr.height !== c) && (Gr.dispose(), Gr = null), Gr || (Gr = new Jt(a, c, { format: Si, type: Ai, minFilter: Rt, magFilter: Rt })), t.setRenderTarget(Gr), t.setSize(a, c), t.clear(), t.render(o, r), ux && (ux.dispose(), ux = null);
45263
+ const l = new Uint8ClampedArray(Gr.width * Gr.height * 4);
45264
+ t.readRenderTargetPixels(Gr, 0, 0, Gr.width, Gr.height, l);
45265
+ const h = new ImageData(l, Gr.width, Gr.height, void 0), u = await createImageBitmap(h, { premultiplyAlpha: "none" });
45266
45266
  return {
45267
45267
  imageData: h,
45268
45268
  imageBitmap: u
@@ -45526,7 +45526,7 @@ function pae(s, e, t = !1) {
45526
45526
  // MirroredRepeatWrapping
45527
45527
  }, R = g.repeat.clone(), S = g.offset.clone(), T = g.rotation, F = Math.sin(T), U = Math.cos(T);
45528
45528
  S.y = 1 - S.y - R.y, t ? (R.x === 0 && (R.x = 1e-4), R.y === 0 && (R.y = 1e-4), S.x = S.x / R.x, S.y = S.y / R.y, S.x += F / R.x, S.y += U - 1) : (S.x += F * R.x, S.y += (1 - U) * R.y);
45529
- const k = R.x != 1 || R.y != 1 || S.x != 0 || S.y != 0 || T != 0, H = `${co}/${o}/${"uvReader_" + E}.outputs:result>`, D = `${co}/${o}/Transform2d_${y}.outputs:result>`, L = y !== "normal" && m && (m.r !== 1 || m.g !== 1 || m.b !== 1 || A !== 1) || !1, N = y === "normal", W = s instanceof Mr && s.normalScale ? s.normalScale.x * 2 : 2, X = W.toFixed(Hn), se = (-1 * (W / 2)).toFixed(Hn), ae = (1 - W).toFixed(Hn);
45529
+ const k = R.x != 1 || R.y != 1 || S.x != 0 || S.y != 0 || T != 0, H = `${co}/${o}/${"uvReader_" + E}.outputs:result>`, D = `${co}/${o}/Transform2d_${y}.outputs:result>`, L = y !== "normal" && m && (m.r !== 1 || m.g !== 1 || m.b !== 1 || A !== 1) || !1, N = y === "normal", W = s instanceof Ir && s.normalScale ? s.normalScale.x * 2 : 2, X = W.toFixed(Hn), se = (-1 * (W / 2)).toFixed(Hn), ae = (1 - W).toFixed(Hn);
45530
45530
  return `
45531
45531
  ${k ? `def Shader "Transform2d_${y}" (
45532
45532
  sdrMetadata = {
@@ -45565,7 +45565,7 @@ function pae(s, e, t = !1) {
45565
45565
  }`;
45566
45566
  }
45567
45567
  let h = s.transparent || s.alphaTest ? s.opacity : 1, u = !1, f = !1;
45568
- if (s instanceof bo && s.transmission !== void 0 && (h *= 1 - s.transmission * (1 - s.roughness * 0.5)), s.map ? (n.push(`${i}color3f inputs:diffuseColor.connect = ${co}/${o}/${c(s.map)}_diffuse.outputs:rgb>`), s instanceof ni && s.transparent && s.alphaTest == 0 && t ? (n.push(`${i}float inputs:opacity.connect = ${co}/${o}/${c(s.map)}_diffuse.outputs:a>`), u = !0, n.push(`${i}float inputs:opacityThreshold = ${1e-10}`), f = !0) : s.transparent ? (n.push(`${i}float inputs:opacity.connect = ${co}/${o}/${c(s.map)}_diffuse.outputs:a>`), u = !0) : s.alphaTest > 0 && (n.push(`${i}float inputs:opacity.connect = ${co}/${o}/${c(s.map)}_diffuse.outputs:a>`), u = !0, n.push(`${i}float inputs:opacityThreshold = ${s.alphaTest}`), f = !0), r.push(l(s.map, "diffuse", s.color, h))) : n.push(`${i}color3f inputs:diffuseColor = ${ZU(s.color)}`), s.alphaHash && t && (f ? console.warn("Opacity threshold for " + s.name + " was already connected. Skipping alphaHash opacity threshold.") : (n.push(`${i}float inputs:opacityThreshold = 0.0000000001`), f = !0)), s.aoMap && (n.push(`${i}float inputs:occlusion.connect = ${co}/${o}/${c(s.aoMap)}_occlusion.outputs:r>`), r.push(l(s.aoMap, "occlusion"))), s.alphaMap ? (n.push(`${i}float inputs:opacity.connect = ${co}/${o}/${c(s.alphaMap)}_opacity.outputs:r>`), n.push(`${i}float inputs:opacityThreshold = 0.0000000001`), u = !0, f = !0, r.push(l(s.alphaMap, "opacity", new ve(1, 1, 1), h))) : (u ? console.warn("Opacity for " + s.name + " was already connected. Skipping default opacity.") : (n.push(`${i}float inputs:opacity = ${h}`), u = !0), s.alphaTest > 0 && (f ? console.warn("Opacity threshold for " + s.name + " was already connected. Skipping default opacity threshold.") : (n.push(`${i}float inputs:opacityThreshold = ${s.alphaTest}`), f = !0))), s instanceof Mr) {
45568
+ if (s instanceof bo && s.transmission !== void 0 && (h *= 1 - s.transmission * (1 - s.roughness * 0.5)), s.map ? (n.push(`${i}color3f inputs:diffuseColor.connect = ${co}/${o}/${c(s.map)}_diffuse.outputs:rgb>`), s instanceof ni && s.transparent && s.alphaTest == 0 && t ? (n.push(`${i}float inputs:opacity.connect = ${co}/${o}/${c(s.map)}_diffuse.outputs:a>`), u = !0, n.push(`${i}float inputs:opacityThreshold = ${1e-10}`), f = !0) : s.transparent ? (n.push(`${i}float inputs:opacity.connect = ${co}/${o}/${c(s.map)}_diffuse.outputs:a>`), u = !0) : s.alphaTest > 0 && (n.push(`${i}float inputs:opacity.connect = ${co}/${o}/${c(s.map)}_diffuse.outputs:a>`), u = !0, n.push(`${i}float inputs:opacityThreshold = ${s.alphaTest}`), f = !0), r.push(l(s.map, "diffuse", s.color, h))) : n.push(`${i}color3f inputs:diffuseColor = ${ZU(s.color)}`), s.alphaHash && t && (f ? console.warn("Opacity threshold for " + s.name + " was already connected. Skipping alphaHash opacity threshold.") : (n.push(`${i}float inputs:opacityThreshold = 0.0000000001`), f = !0)), s.aoMap && (n.push(`${i}float inputs:occlusion.connect = ${co}/${o}/${c(s.aoMap)}_occlusion.outputs:r>`), r.push(l(s.aoMap, "occlusion"))), s.alphaMap ? (n.push(`${i}float inputs:opacity.connect = ${co}/${o}/${c(s.alphaMap)}_opacity.outputs:r>`), n.push(`${i}float inputs:opacityThreshold = 0.0000000001`), u = !0, f = !0, r.push(l(s.alphaMap, "opacity", new ve(1, 1, 1), h))) : (u ? console.warn("Opacity for " + s.name + " was already connected. Skipping default opacity.") : (n.push(`${i}float inputs:opacity = ${h}`), u = !0), s.alphaTest > 0 && (f ? console.warn("Opacity threshold for " + s.name + " was already connected. Skipping default opacity threshold.") : (n.push(`${i}float inputs:opacityThreshold = ${s.alphaTest}`), f = !0))), s instanceof Ir) {
45569
45569
  if (s.emissiveMap) {
45570
45570
  n.push(`${i}color3f inputs:emissiveColor.connect = ${co}/${o}/${c(s.emissiveMap)}_emissive.outputs:rgb>`);
45571
45571
  const g = s.emissive.clone();
@@ -45755,7 +45755,7 @@ const Xk = class {
45755
45755
  let Yu = Xk;
45756
45756
  d(Yu, "global_id", 0);
45757
45757
  function eN(s, e = { direct: !0, indirect: !0 }) {
45758
- const t = Sr.createEmpty();
45758
+ const t = Cr.createEmpty();
45759
45759
  t.name = "InputTarget_" + t.name, t.displayName = void 0, t.type = "RealityKitComponent", t.onSerialize = (i) => {
45760
45760
  i.appendLine("bool allowsDirectInput = " + (e.direct ? 1 : 0)), i.appendLine("bool allowsIndirectInput = " + (e.indirect ? 1 : 0)), i.appendLine('uniform token info:id = "RealityKit.InputTarget"');
45761
45761
  }, s.add(t);
@@ -45772,9 +45772,9 @@ class $s {
45772
45772
  const i = new Yu(e);
45773
45773
  if (Array.isArray(e) && e.length > 1)
45774
45774
  for (const n of e)
45775
- n instanceof Sr && eN(n, t);
45775
+ n instanceof Cr && eN(n, t);
45776
45776
  else
45777
- e instanceof Sr && eN(e, t);
45777
+ e instanceof Cr && eN(e, t);
45778
45778
  return i.tokenId = "TapGesture", i;
45779
45779
  }
45780
45780
  static isTapTrigger(e) {
@@ -45979,7 +45979,7 @@ class $8 extends gae {
45979
45979
  const i = this.model;
45980
45980
  if (!i)
45981
45981
  return;
45982
- (r = i.parent) != null && r.isDynamic || Sr.createEmptyParent(i);
45982
+ (r = i.parent) != null && r.isDynamic || Cr.createEmptyParent(i);
45983
45983
  const n = i.clone();
45984
45984
  this.matrix && (n.matrix = this.matrix), this.material && (n.material = this.material), this.geometry && (n.geometry = this.geometry), (o = i.parent) == null || o.add(n);
45985
45985
  }
@@ -46036,7 +46036,7 @@ function tN(s) {
46036
46036
  }
46037
46037
  return s;
46038
46038
  }
46039
- const Ld = new np(), Ar = new C(), hu = new C(), dn = new Se(), iN = {
46039
+ const Ld = new np(), mr = new C(), hu = new C(), dn = new Se(), iN = {
46040
46040
  X: new C(1, 0, 0),
46041
46041
  Y: new C(0, 1, 0),
46042
46042
  Z: new C(0, 0, 1)
@@ -46091,19 +46091,19 @@ class mae extends ye {
46091
46091
  const o = kM(this._plane, Ld, !0);
46092
46092
  if (o) {
46093
46093
  if (this.pointEnd.copy(o.point).sub(this.worldPositionStart), i === "translate")
46094
- this._offset.copy(this.pointEnd).sub(this.pointStart), r === "local" && t !== "XYZ" && this._offset.applyQuaternion(this._worldQuaternionInv), t.indexOf("X") === -1 && (this._offset.x = 0), t.indexOf("Y") === -1 && (this._offset.y = 0), t.indexOf("Z") === -1 && (this._offset.z = 0), r === "local" && t !== "XYZ" ? this._offset.applyQuaternion(this._quaternionStart).divide(this._parentScale) : this._offset.applyQuaternion(this._parentQuaternionInv).divide(this._parentScale), n.position.copy(this._offset).add(this._positionStart), this.translationSnap && (r === "local" && (n.position.applyQuaternion(dn.copy(this._quaternionStart).invert()), t.search("X") !== -1 && (n.position.x = Math.round(n.position.x / this.translationSnap) * this.translationSnap), t.search("Y") !== -1 && (n.position.y = Math.round(n.position.y / this.translationSnap) * this.translationSnap), t.search("Z") !== -1 && (n.position.z = Math.round(n.position.z / this.translationSnap) * this.translationSnap), n.position.applyQuaternion(this._quaternionStart)), r === "world" && (n.parent && n.position.add(Ar.setFromMatrixPosition(n.parent.matrixWorld)), t.search("X") !== -1 && (n.position.x = Math.round(n.position.x / this.translationSnap) * this.translationSnap), t.search("Y") !== -1 && (n.position.y = Math.round(n.position.y / this.translationSnap) * this.translationSnap), t.search("Z") !== -1 && (n.position.z = Math.round(n.position.z / this.translationSnap) * this.translationSnap), n.parent && n.position.sub(Ar.setFromMatrixPosition(n.parent.matrixWorld))));
46094
+ this._offset.copy(this.pointEnd).sub(this.pointStart), r === "local" && t !== "XYZ" && this._offset.applyQuaternion(this._worldQuaternionInv), t.indexOf("X") === -1 && (this._offset.x = 0), t.indexOf("Y") === -1 && (this._offset.y = 0), t.indexOf("Z") === -1 && (this._offset.z = 0), r === "local" && t !== "XYZ" ? this._offset.applyQuaternion(this._quaternionStart).divide(this._parentScale) : this._offset.applyQuaternion(this._parentQuaternionInv).divide(this._parentScale), n.position.copy(this._offset).add(this._positionStart), this.translationSnap && (r === "local" && (n.position.applyQuaternion(dn.copy(this._quaternionStart).invert()), t.search("X") !== -1 && (n.position.x = Math.round(n.position.x / this.translationSnap) * this.translationSnap), t.search("Y") !== -1 && (n.position.y = Math.round(n.position.y / this.translationSnap) * this.translationSnap), t.search("Z") !== -1 && (n.position.z = Math.round(n.position.z / this.translationSnap) * this.translationSnap), n.position.applyQuaternion(this._quaternionStart)), r === "world" && (n.parent && n.position.add(mr.setFromMatrixPosition(n.parent.matrixWorld)), t.search("X") !== -1 && (n.position.x = Math.round(n.position.x / this.translationSnap) * this.translationSnap), t.search("Y") !== -1 && (n.position.y = Math.round(n.position.y / this.translationSnap) * this.translationSnap), t.search("Z") !== -1 && (n.position.z = Math.round(n.position.z / this.translationSnap) * this.translationSnap), n.parent && n.position.sub(mr.setFromMatrixPosition(n.parent.matrixWorld))));
46095
46095
  else if (i === "scale") {
46096
46096
  if (t.search("XYZ") !== -1) {
46097
46097
  let a = this.pointEnd.length() / this.pointStart.length();
46098
46098
  this.pointEnd.dot(this.pointStart) < 0 && (a *= -1), hu.set(a, a, a);
46099
46099
  } else
46100
- Ar.copy(this.pointStart), hu.copy(this.pointEnd), Ar.applyQuaternion(this._worldQuaternionInv), hu.applyQuaternion(this._worldQuaternionInv), hu.divide(Ar), t.search("X") === -1 && (hu.x = 1), t.search("Y") === -1 && (hu.y = 1), t.search("Z") === -1 && (hu.z = 1);
46100
+ mr.copy(this.pointStart), hu.copy(this.pointEnd), mr.applyQuaternion(this._worldQuaternionInv), hu.applyQuaternion(this._worldQuaternionInv), hu.divide(mr), t.search("X") === -1 && (hu.x = 1), t.search("Y") === -1 && (hu.y = 1), t.search("Z") === -1 && (hu.z = 1);
46101
46101
  n.scale.copy(this._scaleStart).multiply(hu), this.scaleSnap && (t.search("X") !== -1 && (n.scale.x = Math.round(n.scale.x / this.scaleSnap) * this.scaleSnap || this.scaleSnap), t.search("Y") !== -1 && (n.scale.y = Math.round(n.scale.y / this.scaleSnap) * this.scaleSnap || this.scaleSnap), t.search("Z") !== -1 && (n.scale.z = Math.round(n.scale.z / this.scaleSnap) * this.scaleSnap || this.scaleSnap));
46102
46102
  } else if (i === "rotate") {
46103
46103
  this._offset.copy(this.pointEnd).sub(this.pointStart);
46104
- const a = 20 / this.worldPosition.distanceTo(Ar.setFromMatrixPosition(this.camera.matrixWorld));
46104
+ const a = 20 / this.worldPosition.distanceTo(mr.setFromMatrixPosition(this.camera.matrixWorld));
46105
46105
  let c = !1;
46106
- t === "XYZE" ? (this.rotationAxis.copy(this._offset).cross(this.eye).normalize(), this.rotationAngle = this._offset.dot(Ar.copy(this.rotationAxis).cross(this.eye)) * a) : (t === "X" || t === "Y" || t === "Z") && (this.rotationAxis.copy(iN[t]), Ar.copy(iN[t]), r === "local" && Ar.applyQuaternion(this.worldQuaternion), Ar.cross(this.eye), Ar.length() === 0 ? c = !0 : this.rotationAngle = this._offset.dot(Ar.normalize()) * a), (t === "E" || c) && (this.rotationAxis.copy(this.eye), this.rotationAngle = this.pointEnd.angleTo(this.pointStart), this._startNorm.copy(this.pointStart).normalize(), this._endNorm.copy(this.pointEnd).normalize(), this.rotationAngle *= this._endNorm.cross(this._startNorm).dot(this.eye) < 0 ? 1 : -1), this.rotationSnap && (this.rotationAngle = Math.round(this.rotationAngle / this.rotationSnap) * this.rotationSnap), r === "local" && t !== "E" && t !== "XYZE" ? (n.quaternion.copy(this._quaternionStart), n.quaternion.multiply(dn.setFromAxisAngle(this.rotationAxis, this.rotationAngle)).normalize()) : (this.rotationAxis.applyQuaternion(this._parentQuaternionInv), n.quaternion.copy(dn.setFromAxisAngle(this.rotationAxis, this.rotationAngle)), n.quaternion.multiply(this._quaternionStart).normalize());
46106
+ t === "XYZE" ? (this.rotationAxis.copy(this._offset).cross(this.eye).normalize(), this.rotationAngle = this._offset.dot(mr.copy(this.rotationAxis).cross(this.eye)) * a) : (t === "X" || t === "Y" || t === "Z") && (this.rotationAxis.copy(iN[t]), mr.copy(iN[t]), r === "local" && mr.applyQuaternion(this.worldQuaternion), mr.cross(this.eye), mr.length() === 0 ? c = !0 : this.rotationAngle = this._offset.dot(mr.normalize()) * a), (t === "E" || c) && (this.rotationAxis.copy(this.eye), this.rotationAngle = this.pointEnd.angleTo(this.pointStart), this._startNorm.copy(this.pointStart).normalize(), this._endNorm.copy(this.pointEnd).normalize(), this.rotationAngle *= this._endNorm.cross(this._startNorm).dot(this.eye) < 0 ? 1 : -1), this.rotationSnap && (this.rotationAngle = Math.round(this.rotationAngle / this.rotationSnap) * this.rotationSnap), r === "local" && t !== "E" && t !== "XYZE" ? (n.quaternion.copy(this._quaternionStart), n.quaternion.multiply(dn.setFromAxisAngle(this.rotationAxis, this.rotationAngle)).normalize()) : (this.rotationAxis.applyQuaternion(this._parentQuaternionInv), n.quaternion.copy(dn.setFromAxisAngle(this.rotationAxis, this.rotationAngle)), n.quaternion.multiply(this._quaternionStart).normalize());
46107
46107
  }
46108
46108
  this.dispatchEvent(DM), this.dispatchEvent(rN);
46109
46109
  }
@@ -46444,7 +46444,7 @@ class p2 extends ye {
46444
46444
  o.visible = !0, o.rotation.set(0, 0, 0), o.position.copy(this.worldPosition);
46445
46445
  let a;
46446
46446
  if (this.camera.isOrthographicCamera ? a = (this.camera.top - this.camera.bottom) / this.camera.zoom : a = this.worldPosition.distanceTo(this.cameraPosition) * Math.min(1.9 * Math.tan(Math.PI * this.camera.fov / 360) / this.camera.zoom, 7), o.scale.set(1, 1, 1).multiplyScalar(a * this.size / 4), o.tag === "helper") {
46447
- o.visible = !1, o.name === "AXIS" ? (o.visible = !!this.axis, this.axis === "X" && (dn.setFromEuler(gx.set(0, 0, 0)), o.quaternion.copy(i).multiply(dn), Math.abs(zi.copy(Uy).applyQuaternion(i).dot(this.eye)) > 0.9 && (o.visible = !1)), this.axis === "Y" && (dn.setFromEuler(gx.set(0, 0, Math.PI / 2)), o.quaternion.copy(i).multiply(dn), Math.abs(zi.copy(Jd).applyQuaternion(i).dot(this.eye)) > 0.9 && (o.visible = !1)), this.axis === "Z" && (dn.setFromEuler(gx.set(0, Math.PI / 2, 0)), o.quaternion.copy(i).multiply(dn), Math.abs(zi.copy(Ny).applyQuaternion(i).dot(this.eye)) > 0.9 && (o.visible = !1)), this.axis === "XYZE" && (dn.setFromEuler(gx.set(0, Math.PI / 2, 0)), zi.copy(this.rotationAxis), o.quaternion.setFromRotationMatrix(aN.lookAt(oN, zi, Jd)), o.quaternion.multiply(dn), o.visible = this.dragging), this.axis === "E" && (o.visible = !1)) : o.name === "START" ? (o.position.copy(this.worldPositionStart), o.visible = this.dragging) : o.name === "END" ? (o.position.copy(this.worldPosition), o.visible = this.dragging) : o.name === "DELTA" ? (o.position.copy(this.worldPositionStart), o.quaternion.copy(this.worldQuaternionStart), Ar.set(1e-10, 1e-10, 1e-10).add(this.worldPositionStart).sub(this.worldPosition).multiplyScalar(-1), Ar.applyQuaternion(this.worldQuaternionStart.clone().invert()), o.scale.copy(Ar), o.visible = this.dragging) : (o.quaternion.copy(i), this.dragging ? o.position.copy(this.worldPositionStart) : o.position.copy(this.worldPosition), this.axis && (o.visible = this.axis.search(o.name) !== -1));
46447
+ o.visible = !1, o.name === "AXIS" ? (o.visible = !!this.axis, this.axis === "X" && (dn.setFromEuler(gx.set(0, 0, 0)), o.quaternion.copy(i).multiply(dn), Math.abs(zi.copy(Uy).applyQuaternion(i).dot(this.eye)) > 0.9 && (o.visible = !1)), this.axis === "Y" && (dn.setFromEuler(gx.set(0, 0, Math.PI / 2)), o.quaternion.copy(i).multiply(dn), Math.abs(zi.copy(Jd).applyQuaternion(i).dot(this.eye)) > 0.9 && (o.visible = !1)), this.axis === "Z" && (dn.setFromEuler(gx.set(0, Math.PI / 2, 0)), o.quaternion.copy(i).multiply(dn), Math.abs(zi.copy(Ny).applyQuaternion(i).dot(this.eye)) > 0.9 && (o.visible = !1)), this.axis === "XYZE" && (dn.setFromEuler(gx.set(0, Math.PI / 2, 0)), zi.copy(this.rotationAxis), o.quaternion.setFromRotationMatrix(aN.lookAt(oN, zi, Jd)), o.quaternion.multiply(dn), o.visible = this.dragging), this.axis === "E" && (o.visible = !1)) : o.name === "START" ? (o.position.copy(this.worldPositionStart), o.visible = this.dragging) : o.name === "END" ? (o.position.copy(this.worldPosition), o.visible = this.dragging) : o.name === "DELTA" ? (o.position.copy(this.worldPositionStart), o.quaternion.copy(this.worldQuaternionStart), mr.set(1e-10, 1e-10, 1e-10).add(this.worldPositionStart).sub(this.worldPosition).multiplyScalar(-1), mr.applyQuaternion(this.worldQuaternionStart.clone().invert()), o.scale.copy(mr), o.visible = this.dragging) : (o.quaternion.copy(i), this.dragging ? o.position.copy(this.worldPositionStart) : o.position.copy(this.worldPosition), this.axis && (o.visible = this.axis.search(o.name) !== -1));
46448
46448
  continue;
46449
46449
  }
46450
46450
  o.quaternion.copy(i), this.mode === "translate" || this.mode === "scale" ? (o.name === "X" && Math.abs(zi.copy(Uy).applyQuaternion(i).dot(this.eye)) > 0.99 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "Y" && Math.abs(zi.copy(Jd).applyQuaternion(i).dot(this.eye)) > 0.99 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "Z" && Math.abs(zi.copy(Ny).applyQuaternion(i).dot(this.eye)) > 0.99 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "XY" && Math.abs(zi.copy(Ny).applyQuaternion(i).dot(this.eye)) < 0.2 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "YZ" && Math.abs(zi.copy(Uy).applyQuaternion(i).dot(this.eye)) < 0.2 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "XZ" && Math.abs(zi.copy(Jd).applyQuaternion(i).dot(this.eye)) < 0.2 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1)) : this.mode === "rotate" && (mx.copy(i), zi.copy(this.eye).applyQuaternion(dn.copy(i).invert()), o.name.search("E") !== -1 && o.quaternion.setFromRotationMatrix(aN.lookAt(this.eye, oN, Jd)), o.name === "X" && (dn.setFromAxisAngle(Uy, Math.atan2(-zi.y, zi.z)), dn.multiplyQuaternions(mx, dn), o.quaternion.copy(dn)), o.name === "Y" && (dn.setFromAxisAngle(Jd, Math.atan2(zi.x, zi.z)), dn.multiplyQuaternions(mx, dn), o.quaternion.copy(dn)), o.name === "Z" && (dn.setFromAxisAngle(Ny, Math.atan2(zi.y, zi.x)), dn.multiplyQuaternions(mx, dn), o.quaternion.copy(dn))), o.visible = o.visible && (o.name.indexOf("X") === -1 || this.showX), o.visible = o.visible && (o.name.indexOf("Y") === -1 || this.showY), o.visible = o.visible && (o.name.indexOf("Z") === -1 || this.showZ), o.visible = o.visible && (o.name.indexOf("E") === -1 || this.showX && this.showY && this.showZ), o.material._color = o.material._color || o.material.color.clone(), o.material._opacity = o.material._opacity || o.material.opacity, o.material.color.copy(o.material._color), o.material.opacity = o.material._opacity, this.enabled && this.axis && (o.name === this.axis || this.axis.split("").some(function(c) {
@@ -46495,7 +46495,7 @@ class xae extends pe {
46495
46495
  default:
46496
46496
  Bc.set(0, 0, 0);
46497
46497
  }
46498
- Bc.length() === 0 ? this.quaternion.copy(this.cameraQuaternion) : (cN.lookAt(Ar.set(0, 0, 0), Bc, zi), this.quaternion.setFromRotationMatrix(cN)), super.updateMatrixWorld(e);
46498
+ Bc.length() === 0 ? this.quaternion.copy(this.cameraQuaternion) : (cN.lookAt(mr.set(0, 0, 0), Bc, zi), this.quaternion.setFromRotationMatrix(cN)), super.updateMatrixWorld(e);
46499
46499
  }
46500
46500
  }
46501
46501
  const wae = ie("debugpatch");
@@ -46715,12 +46715,12 @@ function mCe(s) {
46715
46715
  return s[Qy];
46716
46716
  }
46717
46717
  const Mf = ie("debugresourceusers") || ie("debugmemory"), pv = Symbol("needle-resource-users"), Qy = Symbol("needle-resource-users-count");
46718
- function Vr(s, e) {
46718
+ function Hr(s, e) {
46719
46719
  g2(s, e, function(t, i) {
46720
46720
  op && (IC(pv, this, t, !1), IC(pv, this, i, !0));
46721
46721
  });
46722
46722
  }
46723
- op && (Vr(pe.prototype, "material"), Vr(pe.prototype, "geometry"), Vr(Ft.prototype, "map"), Vr(Ft.prototype, "bumpMap"), Vr(Ft.prototype, "alphaMap"), Vr(Ft.prototype, "normalMap"), Vr(Ft.prototype, "displacementMap"), Vr(Ft.prototype, "roughnessMap"), Vr(Ft.prototype, "metalnessMap"), Vr(Ft.prototype, "emissiveMap"), Vr(Ft.prototype, "specularMap"), Vr(Ft.prototype, "envMap"), Vr(Ft.prototype, "lightMap"), Vr(Ft.prototype, "aoMap"), Vr(Ft.prototype, "gradientMap"));
46723
+ op && (Hr(pe.prototype, "material"), Hr(pe.prototype, "geometry"), Hr(Ft.prototype, "map"), Hr(Ft.prototype, "bumpMap"), Hr(Ft.prototype, "alphaMap"), Hr(Ft.prototype, "normalMap"), Hr(Ft.prototype, "displacementMap"), Hr(Ft.prototype, "roughnessMap"), Hr(Ft.prototype, "metalnessMap"), Hr(Ft.prototype, "emissiveMap"), Hr(Ft.prototype, "specularMap"), Hr(Ft.prototype, "envMap"), Hr(Ft.prototype, "lightMap"), Hr(Ft.prototype, "aoMap"), Hr(Ft.prototype, "gradientMap"));
46724
46724
  function Bae(s) {
46725
46725
  if (op === !1)
46726
46726
  return;
@@ -47903,7 +47903,7 @@ uniform float opacity;varying vec2 vUv;void main(){vec4 texel=texture2D(inputBuf
47903
47903
  NONE: 0,
47904
47904
  DEPTH: 1,
47905
47905
  CONVOLUTION: 2
47906
- }, xi = {
47906
+ }, _i = {
47907
47907
  FRAGMENT_HEAD: "FRAGMENT_HEAD",
47908
47908
  FRAGMENT_MAIN_UV: "FRAGMENT_MAIN_UV",
47909
47909
  FRAGMENT_MAIN_IMAGE: "FRAGMENT_MAIN_IMAGE",
@@ -47915,11 +47915,11 @@ uniform float opacity;varying vec2 vUv;void main(){vec4 texel=texture2D(inputBuf
47915
47915
  */
47916
47916
  constructor() {
47917
47917
  this.shaderParts = /* @__PURE__ */ new Map([
47918
- [xi.FRAGMENT_HEAD, null],
47919
- [xi.FRAGMENT_MAIN_UV, null],
47920
- [xi.FRAGMENT_MAIN_IMAGE, null],
47921
- [xi.VERTEX_HEAD, null],
47922
- [xi.VERTEX_MAIN_SUPPORT, null]
47918
+ [_i.FRAGMENT_HEAD, null],
47919
+ [_i.FRAGMENT_MAIN_UV, null],
47920
+ [_i.FRAGMENT_MAIN_IMAGE, null],
47921
+ [_i.VERTEX_HEAD, null],
47922
+ [_i.VERTEX_MAIN_SUPPORT, null]
47923
47923
  ]), this.defines = /* @__PURE__ */ new Map(), this.uniforms = /* @__PURE__ */ new Map(), this.blendModes = /* @__PURE__ */ new Map(), this.extensions = /* @__PURE__ */ new Set(), this.attributes = Jo.NONE, this.varyings = /* @__PURE__ */ new Set(), this.uvTransformation = !1, this.readDepth = !1, this.colorSpace = Ei;
47924
47924
  }
47925
47925
  }, NM = !1, AN = class {
@@ -49512,7 +49512,7 @@ uniform float radius;varying vec2 vUv;varying vec2 vUv0;varying vec2 vUv1;varyin
49512
49512
  extensions: o = null,
49513
49513
  vertexShader: a = null
49514
49514
  } = {}) {
49515
- super(), this.name = s, this.renderer = null, this.attributes = t, this.fragmentShader = e, this.vertexShader = a, this.defines = n, this.uniforms = r, this.extensions = o, this.blendMode = new Fce(i), this.blendMode.addEventListener("change", (c) => this.setChanged()), this._inputColorSpace = Ei, this._outputColorSpace = wr;
49515
+ super(), this.name = s, this.renderer = null, this.attributes = t, this.fragmentShader = e, this.vertexShader = a, this.defines = n, this.uniforms = r, this.extensions = o, this.blendMode = new Fce(i), this.blendMode.addEventListener("change", (c) => this.setChanged()), this._inputColorSpace = Ei, this._outputColorSpace = xr;
49516
49516
  }
49517
49517
  /**
49518
49518
  * The input color space.
@@ -54879,7 +54879,7 @@ return orthographicDepthToViewZ(depth,cameraNear,cameraFar);
54879
54879
  * @return {EffectMaterial} This material.
54880
54880
  */
54881
54881
  setShaderParts(s) {
54882
- return this.fragmentShader = zle.replace(xi.FRAGMENT_HEAD, s.get(xi.FRAGMENT_HEAD) || "").replace(xi.FRAGMENT_MAIN_UV, s.get(xi.FRAGMENT_MAIN_UV) || "").replace(xi.FRAGMENT_MAIN_IMAGE, s.get(xi.FRAGMENT_MAIN_IMAGE) || ""), this.vertexShader = Gle.replace(xi.VERTEX_HEAD, s.get(xi.VERTEX_HEAD) || "").replace(xi.VERTEX_MAIN_SUPPORT, s.get(xi.VERTEX_MAIN_SUPPORT) || ""), this.fragmentShader = tA(this.fragmentShader), this.needsUpdate = !0, this;
54882
+ return this.fragmentShader = zle.replace(_i.FRAGMENT_HEAD, s.get(_i.FRAGMENT_HEAD) || "").replace(_i.FRAGMENT_MAIN_UV, s.get(_i.FRAGMENT_MAIN_UV) || "").replace(_i.FRAGMENT_MAIN_IMAGE, s.get(_i.FRAGMENT_MAIN_IMAGE) || ""), this.vertexShader = Gle.replace(_i.VERTEX_HEAD, s.get(_i.VERTEX_HEAD) || "").replace(_i.VERTEX_MAIN_SUPPORT, s.get(_i.VERTEX_MAIN_SUPPORT) || ""), this.fragmentShader = tA(this.fragmentShader), this.needsUpdate = !0, this;
54883
54883
  }
54884
54884
  /**
54885
54885
  * Sets the shader macros.
@@ -55001,7 +55001,7 @@ return orthographicDepthToViewZ(depth,cameraNear,cameraFar);
55001
55001
  * @type {Object}
55002
55002
  */
55003
55003
  static get Section() {
55004
- return xi;
55004
+ return _i;
55005
55005
  }
55006
55006
  };
55007
55007
  function _N(s, e, t) {
@@ -55022,7 +55022,7 @@ function Vle(s, e, t) {
55022
55022
  throw new Error(`Could not find mainImage or mainUv function (${e.name})`);
55023
55023
  {
55024
55024
  const a = /\w+\s+(\w+)\([\w\s,]*\)\s*{/g, c = t.shaderParts;
55025
- let l = c.get(xi.FRAGMENT_HEAD) || "", h = c.get(xi.FRAGMENT_MAIN_UV) || "", u = c.get(xi.FRAGMENT_MAIN_IMAGE) || "", f = c.get(xi.VERTEX_HEAD) || "", p = c.get(xi.VERTEX_MAIN_SUPPORT) || "";
55025
+ let l = c.get(_i.FRAGMENT_HEAD) || "", h = c.get(_i.FRAGMENT_MAIN_UV) || "", u = c.get(_i.FRAGMENT_MAIN_IMAGE) || "", f = c.get(_i.VERTEX_HEAD) || "", p = c.get(_i.VERTEX_MAIN_SUPPORT) || "";
55026
55026
  const g = /* @__PURE__ */ new Set(), y = /* @__PURE__ */ new Set();
55027
55027
  if (o && (h += ` ${s}MainUv(UV);
55028
55028
  `, t.uvTransformation = !0), n !== null && /mainSupport/.test(n)) {
@@ -55049,7 +55049,7 @@ function Vle(s, e, t) {
55049
55049
  if (t.blendModes.set(A.blendFunction, A), r) {
55050
55050
  e.inputColorSpace !== null && e.inputColorSpace !== t.colorSpace && (u += e.inputColorSpace === gt ? `color0 = LinearTosRGB(color0);
55051
55051
  ` : `color0 = sRGBToLinear(color0);
55052
- `), e.outputColorSpace !== wr ? t.colorSpace = e.outputColorSpace : e.inputColorSpace !== null && (t.colorSpace = e.inputColorSpace);
55052
+ `), e.outputColorSpace !== xr ? t.colorSpace = e.outputColorSpace : e.inputColorSpace !== null && (t.colorSpace = e.inputColorSpace);
55053
55053
  const b = /MainImage *\([\w\s,]*?depth[\w\s,]*?\)/;
55054
55054
  u += `${s}MainImage(color0, UV, `, t.attributes & Jo.DEPTH && b.test(i) && (u += "depth, ", t.readDepth = !0), u += `color1);
55055
55055
  `;
@@ -55062,7 +55062,7 @@ function Vle(s, e, t) {
55062
55062
  }
55063
55063
  if (l += i + `
55064
55064
  `, n !== null && (f += n + `
55065
- `), c.set(xi.FRAGMENT_HEAD, l), c.set(xi.FRAGMENT_MAIN_UV, h), c.set(xi.FRAGMENT_MAIN_IMAGE, u), c.set(xi.VERTEX_HEAD, f), c.set(xi.VERTEX_MAIN_SUPPORT, p), e.extensions !== null)
55065
+ `), c.set(_i.FRAGMENT_HEAD, l), c.set(_i.FRAGMENT_MAIN_UV, h), c.set(_i.FRAGMENT_MAIN_IMAGE, u), c.set(_i.VERTEX_HEAD, f), c.set(_i.VERTEX_MAIN_SUPPORT, p), e.extensions !== null)
55066
55066
  for (const b of e.extensions)
55067
55067
  t.extensions.add(b);
55068
55068
  }
@@ -55139,7 +55139,7 @@ var xN = class extends sr {
55139
55139
  throw new Error(`Convolution effects cannot be merged (${o.name})`);
55140
55140
  Vle("e" + e++, o, s);
55141
55141
  }
55142
- let t = s.shaderParts.get(xi.FRAGMENT_HEAD), i = s.shaderParts.get(xi.FRAGMENT_MAIN_IMAGE), n = s.shaderParts.get(xi.FRAGMENT_MAIN_UV);
55142
+ let t = s.shaderParts.get(_i.FRAGMENT_HEAD), i = s.shaderParts.get(_i.FRAGMENT_MAIN_IMAGE), n = s.shaderParts.get(_i.FRAGMENT_MAIN_UV);
55143
55143
  const r = /\bblend\b/g;
55144
55144
  for (const o of s.blendModes.values())
55145
55145
  t += o.getShaderCode().replace(r, `blend${o.blendFunction}`) + `
@@ -55148,7 +55148,7 @@ var xN = class extends sr {
55148
55148
 
55149
55149
  ` + i), this.needsDepthTexture = this.getDepthTexture() === null) : this.needsDepthTexture = !1, s.colorSpace === gt && (i += `color0 = sRGBToLinear(color0);
55150
55150
  `), s.uvTransformation ? (n = `vec2 transformedUv = vUv;
55151
- ` + n, s.defines.set("UV", "transformedUv")) : s.defines.set("UV", "vUv"), s.shaderParts.set(xi.FRAGMENT_HEAD, t), s.shaderParts.set(xi.FRAGMENT_MAIN_IMAGE, i), s.shaderParts.set(xi.FRAGMENT_MAIN_UV, n);
55151
+ ` + n, s.defines.set("UV", "transformedUv")) : s.defines.set("UV", "vUv"), s.shaderParts.set(_i.FRAGMENT_HEAD, t), s.shaderParts.set(_i.FRAGMENT_MAIN_IMAGE, i), s.shaderParts.set(_i.FRAGMENT_MAIN_UV, n);
55152
55152
  for (const [o, a] of s.shaderParts)
55153
55153
  a !== null && s.shaderParts.set(o, a.trim().replace(/^#/, `
55154
55154
  #`));
@@ -56746,7 +56746,7 @@ let She = class {
56746
56746
  });
56747
56747
  }
56748
56748
  };
56749
- const jr = new C(), IN = new C(), MN = new Se(), Mhe = ie("debuggizmos"), Rc = 8947848, Ka = class {
56749
+ const Vr = new C(), IN = new C(), MN = new Se(), Mhe = ie("debuggizmos"), Rc = 8947848, Ka = class {
56750
56750
  constructor() {
56751
56751
  }
56752
56752
  /**
@@ -56771,13 +56771,13 @@ const jr = new C(), IN = new C(), MN = new Se(), Mhe = ie("debuggizmos"), Rc = 8
56771
56771
  if (!Ka.enabled)
56772
56772
  return;
56773
56773
  const o = Rn.getLine(n), a = o.geometry.getAttribute("position");
56774
- a.setXYZ(0, e.x, e.y, e.z), jr.set(t.x, t.y, t.z).multiplyScalar(999999999), a.setXYZ(1, e.x + jr.x, e.y + jr.y, e.z + jr.z), a.needsUpdate = !0, o.material.color.set(i), o.material.depthTest = r, o.material.depthWrite = !1;
56774
+ a.setXYZ(0, e.x, e.y, e.z), Vr.set(t.x, t.y, t.z).multiplyScalar(999999999), a.setXYZ(1, e.x + Vr.x, e.y + Vr.y, e.z + Vr.z), a.needsUpdate = !0, o.material.color.set(i), o.material.depthTest = r, o.material.depthWrite = !1;
56775
56775
  }
56776
56776
  static DrawDirection(e, t, i = Rc, n = 0, r = !0, o = 1) {
56777
56777
  if (!Ka.enabled)
56778
56778
  return;
56779
56779
  const a = Rn.getLine(n), c = a.geometry.getAttribute("position");
56780
- c.setXYZ(0, e.x, e.y, e.z), t.w !== void 0 ? (jr.set(0, 0, -o), MN.set(t.x, t.y, t.z, t.w), jr.applyQuaternion(MN)) : (jr.set(t.x, t.y, t.z), jr.multiplyScalar(o)), c.setXYZ(1, e.x + jr.x, e.y + jr.y, e.z + jr.z), c.needsUpdate = !0, a.material.color.set(i), a.material.depthTest = r, a.material.depthWrite = !1;
56780
+ c.setXYZ(0, e.x, e.y, e.z), t.w !== void 0 ? (Vr.set(0, 0, -o), MN.set(t.x, t.y, t.z, t.w), Vr.applyQuaternion(MN)) : (Vr.set(t.x, t.y, t.z), Vr.multiplyScalar(o)), c.setXYZ(1, e.x + Vr.x, e.y + Vr.y, e.z + Vr.z), c.needsUpdate = !0, a.material.color.set(i), a.material.depthTest = r, a.material.depthWrite = !1;
56781
56781
  }
56782
56782
  static DrawLine(e, t, i = Rc, n = 0, r = !0) {
56783
56783
  if (!Ka.enabled)
@@ -56807,14 +56807,14 @@ const jr = new C(), IN = new C(), MN = new Se(), Mhe = ie("debuggizmos"), Rc = 8
56807
56807
  if (!Ka.enabled)
56808
56808
  return;
56809
56809
  const r = Rn.getBox(i);
56810
- r.position.copy(e.getCenter(jr)), r.scale.copy(e.getSize(jr)), r.material.color.set(t), r.material.depthTest = n, r.material.wireframe = !0, r.material.depthWrite = !1, r.material.fog = !1;
56810
+ r.position.copy(e.getCenter(Vr)), r.scale.copy(e.getSize(Vr)), r.material.color.set(t), r.material.depthTest = n, r.material.wireframe = !0, r.material.depthWrite = !1, r.material.fog = !1;
56811
56811
  }
56812
56812
  static DrawArrow(e, t, i = Rc, n = 0, r = !0, o = !1) {
56813
56813
  if (!Ka.enabled)
56814
56814
  return;
56815
56815
  const a = Rn.getArrowHead(n);
56816
- a.position.set(t.x, t.y, t.z), a.quaternion.setFromUnitVectors(this._up.set(0, 1, 0), jr.set(t.x, t.y, t.z).sub(IN.set(e.x, e.y, e.z)).normalize());
56817
- const l = jr.set(t.x, t.y, t.z).sub(IN.set(e.x, e.y, e.z)).length() * 0.1;
56816
+ a.position.set(t.x, t.y, t.z), a.quaternion.setFromUnitVectors(this._up.set(0, 1, 0), Vr.set(t.x, t.y, t.z).sub(IN.set(e.x, e.y, e.z)).normalize());
56817
+ const l = Vr.set(t.x, t.y, t.z).sub(IN.set(e.x, e.y, e.z)).length() * 0.1;
56818
56818
  a.scale.set(l, l, l), a.material.color.set(i), a.material.depthTest = r, a.material.wireframe = o, this.DrawLine(e, t, i, n, r);
56819
56819
  }
56820
56820
  /**
@@ -62047,10 +62047,10 @@ function M5(s, e, t, i, n) {
62047
62047
  function Nw(s, e) {
62048
62048
  --s._eventsCount === 0 ? s._events = new yv() : delete s._events[e];
62049
62049
  }
62050
- function Tr() {
62050
+ function Mr() {
62051
62051
  this._events = new yv(), this._eventsCount = 0;
62052
62052
  }
62053
- Tr.prototype.eventNames = function() {
62053
+ Mr.prototype.eventNames = function() {
62054
62054
  var e = [], t, i;
62055
62055
  if (this._eventsCount === 0)
62056
62056
  return e;
@@ -62058,7 +62058,7 @@ Tr.prototype.eventNames = function() {
62058
62058
  iue.call(t, i) && e.push(so ? i.slice(1) : i);
62059
62059
  return Object.getOwnPropertySymbols ? e.concat(Object.getOwnPropertySymbols(t)) : e;
62060
62060
  };
62061
- Tr.prototype.listeners = function(e) {
62061
+ Mr.prototype.listeners = function(e) {
62062
62062
  var t = so ? so + e : e, i = this._events[t];
62063
62063
  if (!i)
62064
62064
  return [];
@@ -62070,11 +62070,11 @@ Tr.prototype.listeners = function(e) {
62070
62070
  o[n] = i[n].fn;
62071
62071
  return o;
62072
62072
  };
62073
- Tr.prototype.listenerCount = function(e) {
62073
+ Mr.prototype.listenerCount = function(e) {
62074
62074
  var t = so ? so + e : e, i = this._events[t];
62075
62075
  return i ? i.fn ? 1 : i.length : 0;
62076
62076
  };
62077
- Tr.prototype.emit = function(e, t, i, n, r, o) {
62077
+ Mr.prototype.emit = function(e, t, i, n, r, o) {
62078
62078
  var a = so ? so + e : e;
62079
62079
  if (!this._events[a])
62080
62080
  return !1;
@@ -62122,13 +62122,13 @@ Tr.prototype.emit = function(e, t, i, n, r, o) {
62122
62122
  }
62123
62123
  return !0;
62124
62124
  };
62125
- Tr.prototype.on = function(e, t, i) {
62125
+ Mr.prototype.on = function(e, t, i) {
62126
62126
  return M5(this, e, t, i, !1);
62127
62127
  };
62128
- Tr.prototype.once = function(e, t, i) {
62128
+ Mr.prototype.once = function(e, t, i) {
62129
62129
  return M5(this, e, t, i, !0);
62130
62130
  };
62131
- Tr.prototype.removeListener = function(e, t, i, n) {
62131
+ Mr.prototype.removeListener = function(e, t, i, n) {
62132
62132
  var r = so ? so + e : e;
62133
62133
  if (!this._events[r])
62134
62134
  return this;
@@ -62144,15 +62144,15 @@ Tr.prototype.removeListener = function(e, t, i, n) {
62144
62144
  }
62145
62145
  return this;
62146
62146
  };
62147
- Tr.prototype.removeAllListeners = function(e) {
62147
+ Mr.prototype.removeAllListeners = function(e) {
62148
62148
  var t;
62149
62149
  return e ? (t = so ? so + e : e, this._events[t] && Nw(this, t)) : (this._events = new yv(), this._eventsCount = 0), this;
62150
62150
  };
62151
- Tr.prototype.off = Tr.prototype.removeListener;
62152
- Tr.prototype.addListener = Tr.prototype.on;
62153
- Tr.prefixed = so;
62154
- Tr.EventEmitter = Tr;
62155
- Jv = Tr;
62151
+ Mr.prototype.off = Mr.prototype.removeListener;
62152
+ Mr.prototype.addListener = Mr.prototype.on;
62153
+ Mr.prefixed = so;
62154
+ Mr.EventEmitter = Mr;
62155
+ Jv = Mr;
62156
62156
  var pt = {};
62157
62157
  Al(pt, "LogLevel", () => po, (s) => po = s);
62158
62158
  Al(pt, "default", () => WN, (s) => WN = s);
@@ -64545,21 +64545,21 @@ class CE {
64545
64545
  case "Quad":
64546
64546
  case 0:
64547
64547
  {
64548
- const r = new os(1, 1, 1, 1), o = (t == null ? void 0 : t.material) ?? new Mr({ color: 16777215 });
64548
+ const r = new os(1, 1, 1, 1), o = (t == null ? void 0 : t.material) ?? new Ir({ color: 16777215 });
64549
64549
  t != null && t.texture && "map" in o && (o.map = t.texture), i = new pe(r, o);
64550
64550
  }
64551
64551
  break;
64552
64552
  case "Cube":
64553
64553
  case 1:
64554
64554
  {
64555
- const r = new qi(1, 1, 1), o = (t == null ? void 0 : t.material) ?? new Mr({ color: 16777215 });
64555
+ const r = new qi(1, 1, 1), o = (t == null ? void 0 : t.material) ?? new Ir({ color: 16777215 });
64556
64556
  t != null && t.texture && "map" in o && (o.map = t.texture), i = new pe(r, o);
64557
64557
  }
64558
64558
  break;
64559
64559
  case "Sphere":
64560
64560
  case 2:
64561
64561
  {
64562
- const r = new _c(0.5, 16, 16), o = (t == null ? void 0 : t.material) ?? new Mr({ color: 16777215 });
64562
+ const r = new _c(0.5, 16, 16), o = (t == null ? void 0 : t.material) ?? new Ir({ color: 16777215 });
64563
64563
  t != null && t.texture && "map" in o && (o.map = t.texture), i = new pe(r, o);
64564
64564
  }
64565
64565
  break;
@@ -64657,7 +64657,7 @@ const Yk = class {
64657
64657
  i.position.set(0, 2, 0), i.castShadow = !1, i.distance = 200, this._scene.add(i);
64658
64658
  const n = 50;
64659
64659
  for (let r = 0; r < 100; r++) {
64660
- const o = new Mr({
64660
+ const o = new Ir({
64661
64661
  color: 2236962,
64662
64662
  metalness: 1,
64663
64663
  roughness: 0.8
@@ -65771,8 +65771,8 @@ class vv extends lD {
65771
65771
  let Di = Pe;
65772
65772
  const wt = Pe + B * (Z - _e);
65773
65773
  for (; Di <= wt; Di += ct) {
65774
- const Qi = Di + $e, Ur = Di + je, cn = Ur + $e;
65775
- J ? (Oe(P[Di + Q], P[Ur + Q]), Et = Ce.a, Vt = Ce.b, Oe(P[Qi + Q], P[cn + Q]), bi = Ce.a, Bt = Ce.b, Oe(Et, bi), P[Di + Q] = Ce.a, P[Qi + Q] = Ce.b, Oe(Vt, Bt), P[Ur + Q] = Ce.a, P[cn + Q] = Ce.b) : (We(P[Di + Q], P[Ur + Q]), Et = Ce.a, Vt = Ce.b, We(P[Qi + Q], P[cn + Q]), bi = Ce.a, Bt = Ce.b, We(Et, bi), P[Di + Q] = Ce.a, P[Qi + Q] = Ce.b, We(Vt, Bt), P[Ur + Q] = Ce.a, P[cn + Q] = Ce.b);
65774
+ const Qi = Di + $e, Fr = Di + je, cn = Fr + $e;
65775
+ J ? (Oe(P[Di + Q], P[Fr + Q]), Et = Ce.a, Vt = Ce.b, Oe(P[Qi + Q], P[cn + Q]), bi = Ce.a, Bt = Ce.b, Oe(Et, bi), P[Di + Q] = Ce.a, P[Qi + Q] = Ce.b, Oe(Vt, Bt), P[Fr + Q] = Ce.a, P[cn + Q] = Ce.b) : (We(P[Di + Q], P[Fr + Q]), Et = Ce.a, Vt = Ce.b, We(P[Qi + Q], P[cn + Q]), bi = Ce.a, Bt = Ce.b, We(Et, bi), P[Di + Q] = Ce.a, P[Qi + Q] = Ce.b, We(Vt, Bt), P[Fr + Q] = Ce.a, P[cn + Q] = Ce.b);
65776
65776
  }
65777
65777
  if (Z & he) {
65778
65778
  const Qi = Di + je;
@@ -65885,9 +65885,9 @@ class vv extends lD {
65885
65885
  for (let wt = 0; wt < ke; ++wt) {
65886
65886
  let Qi = 8;
65887
65887
  wt == ke - 1 && (Qi = Je);
65888
- let Ur = 8;
65888
+ let Fr = 8;
65889
65889
  for (let pi = 0; pi < Pe; ++pi) {
65890
- pi == Pe - 1 && (Ur = je);
65890
+ pi == Pe - 1 && (Fr = je);
65891
65891
  for (let Wt = 0; Wt < he; ++Wt)
65892
65892
  bi[Wt].fill(0), bi[Wt][0] = z[ct[Wt]++], et($e, B, bi[Wt]), Ze(bi[Wt], Et[Wt]), ot(Et[Wt]);
65893
65893
  Ot(Et);
@@ -65907,7 +65907,7 @@ class vv extends lD {
65907
65907
  if (_e != Pe)
65908
65908
  for (let Ls = 8 * wt; Ls < 8 * wt + Qi; ++Ls) {
65909
65909
  const Cl = Bt[pi][Ls] + 8 * _e * 2 * Wt, yn = _e * 64 + (Ls & 7) * 8;
65910
- for (let Wh = 0; Wh < Ur; ++Wh)
65910
+ for (let Wh = 0; Wh < Fr; ++Wh)
65911
65911
  Y.setUint16(Cl + Wh * 2 * Wt, Vt[pi][yn + Wh], !0);
65912
65912
  }
65913
65913
  }
@@ -65918,8 +65918,8 @@ class vv extends lD {
65918
65918
  Z[P.idx[wt]].decoded = !0;
65919
65919
  const Qi = Z[P.idx[wt]].type;
65920
65920
  if (Z[wt].type == 2)
65921
- for (let Ur = 0; Ur < fe; ++Ur) {
65922
- const cn = Bt[wt][Ur];
65921
+ for (let Fr = 0; Fr < fe; ++Fr) {
65922
+ const cn = Bt[wt][Fr];
65923
65923
  for (let pi = 0; pi < J; ++pi)
65924
65924
  Di[pi] = Y.getUint16(cn + pi * 2 * Qi, !0);
65925
65925
  for (let pi = 0; pi < J; ++pi)
@@ -66378,7 +66378,7 @@ class vv extends lD {
66378
66378
  console.error("THREE.EXRLoader: unsupported type: ", z);
66379
66379
  break;
66380
66380
  }
66381
- return V.bytesPerLine = V.width * V.inputSize * V.channels, V.outputChannels == 4 ? (V.format = Si, V.colorSpace = Ei) : (V.format = rc, V.colorSpace = wr), V;
66381
+ return V.bytesPerLine = V.width * V.inputSize * V.channels, V.outputChannels == 4 ? (V.format = Si, V.colorSpace = Ei) : (V.format = rc, V.colorSpace = xr), V;
66382
66382
  }
66383
66383
  const To = new DataView(e), Vh = new Uint8Array(e), Bo = { value: 0 }, jh = An(To, e, Bo), Kt = Tn(jh, To, Vh, Bo, this.type), PA = { value: 0 }, Ub = { R: 0, G: 1, B: 2, A: 3, Y: 0 };
66384
66384
  for (let P = 0; P < Kt.height / Kt.scanlineBlockSize; P++) {
@@ -66759,7 +66759,7 @@ TEX ` + i.texture_lod;
66759
66759
  }
66760
66760
  }
66761
66761
  }
66762
- const Tx = ie("debugphysics"), c3 = new Ir();
66762
+ const Tx = ie("debugphysics"), c3 = new Er();
66763
66763
  class fl {
66764
66764
  constructor() {
66765
66765
  d(this, "ray");
@@ -66785,7 +66785,7 @@ class fl {
66785
66785
  }
66786
66786
  /** sets the layer.mask value directly, use setLayer if you want to set e.g. an individual layer only active. See https://threejs.org/docs/#api/en/core/Layers for more information about layers */
66787
66787
  setMask(e) {
66788
- this.layerMask || (this.layerMask = new Ir());
66788
+ this.layerMask || (this.layerMask = new Er());
66789
66789
  const t = this.layerMask;
66790
66790
  t ? t.mask = e : this.layerMask = e;
66791
66791
  }
@@ -66815,7 +66815,7 @@ class Gue {
66815
66815
  Sprite: {}
66816
66816
  });
66817
66817
  d(this, "sphereResults", new Array());
66818
- d(this, "sphereMask", new Ir());
66818
+ d(this, "sphereMask", new Er());
66819
66819
  d(this, "tempBoundingBox", new Bi());
66820
66820
  this.context = e;
66821
66821
  }
@@ -66896,7 +66896,7 @@ class Gue {
66896
66896
  let n = e.targets;
66897
66897
  n || (n = this.targetBuffer, n.length = 1, n[0] = this.context.scene);
66898
66898
  let r = e.results;
66899
- this.defaultRaycastOptions.results && (this.defaultRaycastOptions.results.length = 0), r || (this.defaultRaycastOptions.results || (this.defaultRaycastOptions.results = new Array()), r = this.defaultRaycastOptions.results), e.layerMask !== void 0 ? e.layerMask instanceof Ir ? i.layers.mask = e.layerMask.mask : i.layers.mask = e.layerMask : (i.layers.enableAll(), i.layers.disable(2)), Tx && (bt.DrawRay(i.ray.origin, i.ray.direction, 16711680, 2), console.time("raycast")), r.length = 0, this.intersect(this.raycaster, n, r, e), r.sort((a, c) => a.distance - c.distance);
66899
+ this.defaultRaycastOptions.results && (this.defaultRaycastOptions.results.length = 0), r || (this.defaultRaycastOptions.results || (this.defaultRaycastOptions.results = new Array()), r = this.defaultRaycastOptions.results), e.layerMask !== void 0 ? e.layerMask instanceof Er ? i.layers.mask = e.layerMask.mask : i.layers.mask = e.layerMask : (i.layers.enableAll(), i.layers.disable(2)), Tx && (bt.DrawRay(i.ray.origin, i.ray.direction, 16711680, 2), console.time("raycast")), r.length = 0, this.intersect(this.raycaster, n, r, e), r.sort((a, c) => a.distance - c.distance);
66900
66900
  const o = e.ignore;
66901
66901
  return o !== void 0 && o.length > 0 && (r = r.filter((a) => !o.includes(a.object))), Tx && (console.timeEnd("raycast"), console.warn("#" + this.context.time.frame + ", hits:", r != null && r.length ? [...r] : "nothing")), r;
66902
66902
  }
@@ -68826,7 +68826,7 @@ const ji = class {
68826
68826
  const r = (n = (i = this.domElement) == null ? void 0 : i.shadowRoot) == null ? void 0 : n.querySelector("canvas");
68827
68827
  r && (e.canvas = r, us && console.log("Using canvas from shadow root", r));
68828
68828
  }
68829
- us && console.log("Using Renderer Parameters:", e, this.domElement), this.renderer = new Ph(e), this.renderer.debug.checkShaderErrors = ht() || ie("checkshadererrors") === !0, this.renderer.toneMappingExposure = 1, this.renderer.toneMapping = Er, this.renderer.setClearColor(new ve("lightgrey"), 0), this.renderer.shadowMap.enabled = !0, this.renderer.shadowMap.type = EP, this.renderer.setSize(this.domWidth, this.domHeight), this.renderer.outputColorSpace = gt, this.renderer.toneMapping = Vm, this.lodsManager.setRenderer(this.renderer), this.input.bindEvents();
68829
+ us && console.log("Using Renderer Parameters:", e, this.domElement), this.renderer = new Ph(e), this.renderer.debug.checkShaderErrors = ht() || ie("checkshadererrors") === !0, this.renderer.toneMappingExposure = 1, this.renderer.toneMapping = Sr, this.renderer.setClearColor(new ve("lightgrey"), 0), this.renderer.shadowMap.enabled = !0, this.renderer.shadowMap.type = EP, this.renderer.setSize(this.domWidth, this.domHeight), this.renderer.outputColorSpace = gt, this.renderer.toneMapping = Vm, this.lodsManager.setRenderer(this.renderer), this.input.bindEvents();
68830
68830
  }
68831
68831
  internalOnUpdateVisible() {
68832
68832
  var e, t;
@@ -69251,7 +69251,7 @@ Render:`, { ...this.renderer.info.render }, `
69251
69251
  Memory:`, { ...this.renderer.info.memory })), this._dispatchReadyAfterFrame && (this._dispatchReadyAfterFrame = !1, this.domElement.dispatchEvent(new CustomEvent("ready")), gi.dispatchCallback(Li.ContextFirstFrameRendered, this)), this.renderer.info.reset();
69252
69252
  }
69253
69253
  renderNow(e) {
69254
- return !e && (e = this.mainCamera, !e) ? !1 : (this._isRendering = !0, this.renderRequiredTextures(), this.renderer.toneMapping !== Er && k5(), this.composer && !this.isInXR ? this.composer.render(this.time.deltaTime) : e && this.renderer.render(this.scene, e), this._isRendering = !1, !0);
69254
+ return !e && (e = this.mainCamera, !e) ? !1 : (this._isRendering = !0, this.renderRequiredTextures(), this.renderer.toneMapping !== Sr && k5(), this.composer && !this.isInXR ? this.composer.render(this.time.deltaTime) : e && this.renderer.render(this.scene, e), this._isRendering = !1, !0);
69255
69255
  }
69256
69256
  onHandlePaused() {
69257
69257
  const e = this.evaluatePaused();
@@ -71819,7 +71819,7 @@ class hh {
71819
71819
  }
71820
71820
  }
71821
71821
  var Vs = /* @__PURE__ */ ((s) => (s[s.Average = 0] = "Average", s[s.Multiply = 1] = "Multiply", s[s.Minimum = 2] = "Minimum", s[s.Maximum = 3] = "Maximum", s))(Vs || {}), j2 = /* @__PURE__ */ ((s) => (s[s.Discrete = 0] = "Discrete", s[s.Continuous = 1] = "Continuous", s))(j2 || {}), es = /* @__PURE__ */ ((s) => (s[s.None = 0] = "None", s[s.FreezePositionX = 2] = "FreezePositionX", s[s.FreezePositionY = 4] = "FreezePositionY", s[s.FreezePositionZ = 8] = "FreezePositionZ", s[s.FreezePosition = 14] = "FreezePosition", s[s.FreezeRotationX = 16] = "FreezeRotationX", s[s.FreezeRotationY = 32] = "FreezeRotationY", s[s.FreezeRotationZ = 64] = "FreezeRotationZ", s[s.FreezeRotation = 112] = "FreezeRotation", s[s.FreezeAll = 126] = "FreezeAll", s))(es || {}), jy = /* @__PURE__ */ ((s) => (s[s.None = 0] = "None", s[s.X = 2] = "X", s[s.Y = 4] = "Y", s[s.Z = 8] = "Z", s[s.All = -1] = "All", s))(jy || {});
71822
- const Pr = function(s, e) {
71822
+ const Rr = function(s, e) {
71823
71823
  return function(t, i, n) {
71824
71824
  tfe(t, i, n, s, e);
71825
71825
  };
@@ -72195,51 +72195,51 @@ const WR = (LT = class extends Be {
72195
72195
  }, d(LT, "tempPosition", new C()), LT);
72196
72196
  let Vi = WR;
72197
72197
  Zo([
72198
- Pr()
72198
+ Rr()
72199
72199
  ], Vi.prototype, "autoMass", 2);
72200
72200
  Zo([
72201
72201
  x()
72202
72202
  ], Vi.prototype, "mass", 1);
72203
72203
  Zo([
72204
- Pr(),
72204
+ Rr(),
72205
72205
  x()
72206
72206
  ], Vi.prototype, "useGravity", 2);
72207
72207
  Zo([
72208
72208
  x(C)
72209
72209
  ], Vi.prototype, "centerOfMass", 2);
72210
72210
  Zo([
72211
- Pr(),
72211
+ Rr(),
72212
72212
  x()
72213
72213
  ], Vi.prototype, "constraints", 2);
72214
72214
  Zo([
72215
- Pr(),
72215
+ Rr(),
72216
72216
  x()
72217
72217
  ], Vi.prototype, "isKinematic", 2);
72218
72218
  Zo([
72219
- Pr(),
72219
+ Rr(),
72220
72220
  x()
72221
72221
  ], Vi.prototype, "drag", 2);
72222
72222
  Zo([
72223
- Pr(),
72223
+ Rr(),
72224
72224
  x()
72225
72225
  ], Vi.prototype, "angularDrag", 2);
72226
72226
  Zo([
72227
- Pr(),
72227
+ Rr(),
72228
72228
  x()
72229
72229
  ], Vi.prototype, "detectCollisions", 2);
72230
72230
  Zo([
72231
- Pr(),
72231
+ Rr(),
72232
72232
  x()
72233
72233
  ], Vi.prototype, "sleepThreshold", 2);
72234
72234
  Zo([
72235
- Pr(),
72235
+ Rr(),
72236
72236
  x()
72237
72237
  ], Vi.prototype, "collisionDetectionMode", 2);
72238
72238
  Zo([
72239
- Pr()
72239
+ Rr()
72240
72240
  ], Vi.prototype, "_gravityScale", 2);
72241
72241
  Zo([
72242
- Pr()
72242
+ Rr()
72243
72243
  ], Vi.prototype, "dominanceGroup", 2);
72244
72244
  const wu = ie("debugsync"), _v = "STRS";
72245
72245
  GV(_v, hh.getRootAsSyncedTransformModel);
@@ -74491,7 +74491,7 @@ class Y2 extends kE {
74491
74491
  const i = new Cfe(t);
74492
74492
  this._actionOffsets.push(i);
74493
74493
  }
74494
- this.target && (this._animator = re.getComponent(this.target, Br) ?? null, this._animator && M3(this._animator.gameObject, this, !0));
74494
+ this.target && (this._animator = re.getComponent(this.target, Tr) ?? null, this._animator && M3(this._animator.gameObject, this, !0));
74495
74495
  for (const t of this.models) {
74496
74496
  const i = t.asset, n = i.position, r = i.rotation;
74497
74497
  n && n.x !== void 0 && (n.isVector3 || (i.position = new C(n.x, n.y, n.z)), r.isQuaternion || (i.rotation = new Se(r.x, r.y, r.z, r.w)));
@@ -75165,7 +75165,7 @@ const YR = (UT = class extends Be {
75165
75165
  for (let c = r.outputs.length - 1; c >= 0; c--) {
75166
75166
  let l = r.outputs[c];
75167
75167
  if (l instanceof ye) {
75168
- const u = re.getOrAddComponent(l, Br);
75168
+ const u = re.getOrAddComponent(l, Tr);
75169
75169
  u && (l = u);
75170
75170
  }
75171
75171
  const h = (t = l == null ? void 0 : l.gameObject) == null ? void 0 : t.animations;
@@ -75184,7 +75184,7 @@ const YR = (UT = class extends Be {
75184
75184
  console.warn("Could not find animationClip for model", p, r.name, this.name, (i = this.playableAsset) == null ? void 0 : i.name);
75185
75185
  continue;
75186
75186
  }
75187
- l instanceof Br && l.runtimeAnimatorController && (l.__internalDidAwakeAndStart || l.initializeRuntimeAnimatorController(), l.runtimeAnimatorController.mixer || l.runtimeAnimatorController.bind(l), u.mixer = l.runtimeAnimatorController.mixer), u.mixer || (u.mixer = new KS(l.gameObject), this.context.animations.registerAnimationMixer(u.mixer)), u.clips.push(m), u.mixer.uncacheAction(m), u.createHooks(p.asset, m);
75187
+ l instanceof Tr && l.runtimeAnimatorController && (l.__internalDidAwakeAndStart || l.initializeRuntimeAnimatorController(), l.runtimeAnimatorController.mixer || l.runtimeAnimatorController.bind(l), u.mixer = l.runtimeAnimatorController.mixer), u.mixer || (u.mixer = new KS(l.gameObject), this.context.animations.registerAnimationMixer(u.mixer)), u.clips.push(m), u.mixer.uncacheAction(m), u.createHooks(p.asset, m);
75188
75188
  const A = u.mixer.clipAction(m);
75189
75189
  u.actions.push(A), u.models.push(p);
75190
75190
  }
@@ -75275,7 +75275,7 @@ gi.registerCallback(Li.ContextCreated, (s) => {
75275
75275
  for (const t of s.files)
75276
75276
  re.foreachComponent(t.file.scene, (n) => {
75277
75277
  if (n.enabled !== !1) {
75278
- if (n instanceof to && n.playAutomatically || n instanceof Br || n instanceof Kf && n.playOnAwake === !0)
75278
+ if (n instanceof to && n.playAutomatically || n instanceof Tr || n instanceof Kf && n.playOnAwake === !0)
75279
75279
  return !0;
75280
75280
  if (n instanceof to)
75281
75281
  return n.playAutomatically = !0, !0;
@@ -75936,7 +75936,7 @@ var Pfe = Object.defineProperty, Dfe = Object.getOwnPropertyDescriptor, OE = (s,
75936
75936
  return i && n && Pfe(e, t, n), n;
75937
75937
  };
75938
75938
  const la = ie("debuganimator");
75939
- class Br extends Be {
75939
+ class Tr extends Be {
75940
75940
  constructor() {
75941
75941
  super(...arguments);
75942
75942
  d(this, "applyRootMotion", !1);
@@ -76135,16 +76135,16 @@ class Br extends Be {
76135
76135
  }
76136
76136
  OE([
76137
76137
  x()
76138
- ], Br.prototype, "applyRootMotion", 2);
76138
+ ], Tr.prototype, "applyRootMotion", 2);
76139
76139
  OE([
76140
76140
  x()
76141
- ], Br.prototype, "hasRootMotion", 2);
76141
+ ], Tr.prototype, "hasRootMotion", 2);
76142
76142
  OE([
76143
76143
  x()
76144
- ], Br.prototype, "keepAnimatorControllerStateOnDisable", 2);
76144
+ ], Tr.prototype, "keepAnimatorControllerStateOnDisable", 2);
76145
76145
  OE([
76146
76146
  x()
76147
- ], Br.prototype, "runtimeAnimatorController", 1);
76147
+ ], Tr.prototype, "runtimeAnimatorController", 1);
76148
76148
  const Wc = ie("debugusdzanimation"), JR = ie("debugusdzanimationserialization");
76149
76149
  class K2 {
76150
76150
  constructor(e, t, i) {
@@ -76175,7 +76175,7 @@ const Kk = class {
76175
76175
  d(this, "duration", 0);
76176
76176
  d(this, "useRootMotion", !1);
76177
76177
  this.root = e, this.target = t, this.clip = i, i ? this.duration = i.duration : this.duration = Kk.restPoseClipDuration;
76178
- const n = re.getComponent(e, Br);
76178
+ const n = re.getComponent(e, Tr);
76179
76179
  n && (this.useRootMotion = n.applyRootMotion);
76180
76180
  }
76181
76181
  get frameRate() {
@@ -76762,7 +76762,7 @@ var Qfe = Object.defineProperty, zfe = Object.getOwnPropertyDescriptor, Gfe = (s
76762
76762
  return i && n && Qfe(e, t, n), n;
76763
76763
  };
76764
76764
  const Hfe = ie("debugpost");
76765
- class Dr extends Be {
76765
+ class Pr extends Be {
76766
76766
  constructor(t = void 0) {
76767
76767
  super();
76768
76768
  d(this, "_manager", null);
@@ -76845,7 +76845,7 @@ class Dr extends Be {
76845
76845
  }
76846
76846
  Gfe([
76847
76847
  x()
76848
- ], Dr.prototype, "active", 2);
76848
+ ], Pr.prototype, "active", 2);
76849
76849
  var Vfe = Object.defineProperty, jfe = Object.getOwnPropertyDescriptor, Wfe = (s, e, t, i) => {
76850
76850
  for (var n = i > 1 ? void 0 : i ? jfe(e, t) : e, r = s.length - 1, o; r >= 0; r--)
76851
76851
  (o = s[r]) && (n = (i ? o(e, t, n) : o(n)) || n);
@@ -76856,7 +76856,7 @@ function Sc(s, e) {
76856
76856
  ZR[s] = e;
76857
76857
  }
76858
76858
  function Xfe(s) {
76859
- return s.__type in ZR ? ZR[s.__type] : (qfe && s.__type && console.warn("Unknown postprocessing type", s.__type, s), Dr);
76859
+ return s.__type in ZR ? ZR[s.__type] : (qfe && s.__type && console.warn("Unknown postprocessing type", s.__type, s), Pr);
76860
76860
  }
76861
76861
  class FE {
76862
76862
  constructor() {
@@ -76879,14 +76879,14 @@ class FE {
76879
76879
  }
76880
76880
  }
76881
76881
  Wfe([
76882
- qv([(s) => Xfe(s), Dr])
76882
+ qv([(s) => Xfe(s), Pr])
76883
76883
  ], FE.prototype, "components", 2);
76884
76884
  var Yfe = Object.defineProperty, Jfe = Object.getOwnPropertyDescriptor, Kfe = (s, e, t, i) => {
76885
76885
  for (var n = i > 1 ? void 0 : i ? Jfe(e, t) : e, r = s.length - 1, o; r >= 0; r--)
76886
76886
  (o = s[r]) && (n = (i ? o(e, t, n) : o(n)) || n);
76887
76887
  return i && n && Yfe(e, t, n), n;
76888
76888
  };
76889
- class rb extends Dr {
76889
+ class rb extends Pr {
76890
76890
  constructor() {
76891
76891
  super(...arguments);
76892
76892
  d(this, "preset");
@@ -77349,8 +77349,8 @@ const Zk = class {
77349
77349
  this.Mask = 0, Sa.Apply();
77350
77350
  }
77351
77351
  };
77352
- let Cr = Zk;
77353
- d(Cr, "Global", new Zk());
77352
+ let wr = Zk;
77353
+ d(wr, "Global", new Zk());
77354
77354
  var Iy;
77355
77355
  const Xl = (Iy = class extends Be {
77356
77356
  constructor() {
@@ -77359,13 +77359,13 @@ const Xl = (Iy = class extends Be {
77359
77359
  }
77360
77360
  static Apply() {
77361
77361
  for (const e of this.registry)
77362
- e.UpdateVisible(Cr.Global);
77362
+ e.UpdateVisible(wr.Global);
77363
77363
  }
77364
77364
  awake() {
77365
77365
  Xl.registry.push(this);
77366
77366
  }
77367
77367
  onEnable() {
77368
- Xl.firstApply ? this.UpdateVisible(Cr.Global) : (Xl.firstApply = !0, Xl.Apply());
77368
+ Xl.firstApply ? this.UpdateVisible(wr.Global) : (Xl.firstApply = !0, Xl.Apply());
77369
77369
  }
77370
77370
  onDestroy() {
77371
77371
  const e = Xl.registry.indexOf(this);
@@ -77379,7 +77379,7 @@ const Xl = (Iy = class extends Be {
77379
77379
  return;
77380
77380
  let t;
77381
77381
  const i = e;
77382
- if (i && typeof i == "number" && (console.assert(typeof i == "number", "XRFlag.UpdateVisible: state must be a number", i), Dg && console.log(i), Xl.buffer.Mask = i, e = Xl.buffer), e instanceof Cr ? (Dg && console.warn(this.name, "use passed in mask", e.Mask, this.visibleIn), t = e.Has(this.visibleIn)) : (Dg && console.log(this.name, "use global mask"), Cr.Global.Has(this.visibleIn)), t !== void 0)
77382
+ if (i && typeof i == "number" && (console.assert(typeof i == "number", "XRFlag.UpdateVisible: state must be a number", i), Dg && console.log(i), Xl.buffer.Mask = i, e = Xl.buffer), e instanceof wr ? (Dg && console.warn(this.name, "use passed in mask", e.Mask, this.visibleIn), t = e.Has(this.visibleIn)) : (Dg && console.log(this.name, "use global mask"), wr.Global.Has(this.visibleIn)), t !== void 0)
77383
77383
  if (t)
77384
77384
  Dg && console.log(this.name, "is visible", this.gameObject.uuid), re.setActive(this.gameObject, !0);
77385
77385
  else {
@@ -77388,7 +77388,7 @@ const Xl = (Iy = class extends Be {
77388
77388
  this.gameObject.visible = !1;
77389
77389
  }
77390
77390
  }
77391
- }, d(Iy, "registry", []), d(Iy, "firstApply"), d(Iy, "buffer", new Cr()), Iy);
77391
+ }, d(Iy, "registry", []), d(Iy, "firstApply"), d(Iy, "buffer", new wr()), Iy);
77392
77392
  let Sa = Xl;
77393
77393
  hpe([
77394
77394
  x()
@@ -78449,7 +78449,7 @@ var Ppe = Object.defineProperty, Dpe = Object.getOwnPropertyDescriptor, sk = (s,
78449
78449
  (o = s[r]) && (n = (i ? o(e, t, n) : o(n)) || n);
78450
78450
  return i && n && Ppe(e, t, n), n;
78451
78451
  }, QT;
78452
- const u9 = (QT = class extends Dr {
78452
+ const u9 = (QT = class extends Pr {
78453
78453
  constructor() {
78454
78454
  super(...arguments);
78455
78455
  d(this, "threshold");
@@ -78593,7 +78593,7 @@ class lb extends Oa {
78593
78593
  }
78594
78594
  }
78595
78595
  Eo([
78596
- Pr(),
78596
+ Rr(),
78597
78597
  x()
78598
78598
  ], lb.prototype, "radius", 2);
78599
78599
  Eo([
@@ -78617,7 +78617,7 @@ class hb extends Oa {
78617
78617
  }
78618
78618
  }
78619
78619
  Eo([
78620
- Pr(),
78620
+ Rr(),
78621
78621
  x(C)
78622
78622
  ], hb.prototype, "size", 2);
78623
78623
  Eo([
@@ -79464,7 +79464,7 @@ $o([
79464
79464
  x(Kpe)
79465
79465
  ], fd.prototype, "animationTriggers", 2);
79466
79466
  $o([
79467
- x(Br)
79467
+ x(Tr)
79468
79468
  ], fd.prototype, "animator", 2);
79469
79469
  $o([
79470
79470
  x()
@@ -79537,11 +79537,11 @@ class ea extends Be {
79537
79537
  }
79538
79538
  onEnable() {
79539
79539
  P3 && console.log(this.name, this), this._rectTransform = this.gameObject.getComponent(ro);
79540
- const t = this.gameObject.getComponentInParent(Rr);
79540
+ const t = this.gameObject.getComponentInParent(Br);
79541
79541
  t && t.registerLayoutGroup(this), this._needsUpdate = !0;
79542
79542
  }
79543
79543
  onDisable() {
79544
- const t = this.gameObject.getComponentInParent(Rr);
79544
+ const t = this.gameObject.getComponentInParent(Br);
79545
79545
  t && t.unregisterLayoutGroup(this);
79546
79546
  }
79547
79547
  // for animation:
@@ -79875,37 +79875,37 @@ const rT = ie("debuguilayout"), _9 = class extends RE {
79875
79875
  }
79876
79876
  }
79877
79877
  };
79878
- let Rr = _9;
79878
+ let Br = _9;
79879
79879
  bl([
79880
79880
  x()
79881
- ], Rr.prototype, "renderOnTop", 1);
79881
+ ], Br.prototype, "renderOnTop", 1);
79882
79882
  bl([
79883
79883
  x()
79884
- ], Rr.prototype, "depthWrite", 1);
79884
+ ], Br.prototype, "depthWrite", 1);
79885
79885
  bl([
79886
79886
  x()
79887
- ], Rr.prototype, "doubleSided", 1);
79887
+ ], Br.prototype, "doubleSided", 1);
79888
79888
  bl([
79889
79889
  x()
79890
- ], Rr.prototype, "castShadows", 1);
79890
+ ], Br.prototype, "castShadows", 1);
79891
79891
  bl([
79892
79892
  x()
79893
- ], Rr.prototype, "receiveShadows", 1);
79893
+ ], Br.prototype, "receiveShadows", 1);
79894
79894
  bl([
79895
79895
  x()
79896
- ], Rr.prototype, "renderMode", 1);
79896
+ ], Br.prototype, "renderMode", 1);
79897
79897
  bl([
79898
- x(Rr)
79899
- ], Rr.prototype, "rootCanvas", 1);
79898
+ x(Br)
79899
+ ], Br.prototype, "rootCanvas", 1);
79900
79900
  bl([
79901
79901
  x()
79902
- ], Rr.prototype, "scaleFactor", 1);
79902
+ ], Br.prototype, "scaleFactor", 1);
79903
79903
  bl([
79904
79904
  x(Ji)
79905
- ], Rr.prototype, "worldCamera", 2);
79905
+ ], Br.prototype, "worldCamera", 2);
79906
79906
  bl([
79907
79907
  x()
79908
- ], Rr.prototype, "planeDistance", 2);
79908
+ ], Br.prototype, "planeDistance", 2);
79909
79909
  var ige = Object.defineProperty, nge = Object.getOwnPropertyDescriptor, ck = (s, e, t, i) => {
79910
79910
  for (var n = i > 1 ? void 0 : i ? nge(e, t) : e, r = s.length - 1, o; r >= 0; r--)
79911
79911
  (o = s[r]) && (n = (i ? o(e, t, n) : o(n)) || n);
@@ -80111,7 +80111,7 @@ const Nc = (hw = class extends Be {
80111
80111
  const e = [];
80112
80112
  for (const t of this.targetModels) {
80113
80113
  const i = t.clone();
80114
- i.name += "_Variant_" + Nc.variantSwitchIndex++ + "_" + Nc.getMaterialName(this.variantMaterial), i.displayName = i.displayName + ": Variant with material " + this.variantMaterial.name, i.material = this.variantMaterial, i.geometry = t.geometry, i.matrix = t.matrix, (!t.parent || !t.parent.isEmpty()) && Sr.createEmptyParent(t), t.parent && t.parent.add(i), e.push(i);
80114
+ i.name += "_Variant_" + Nc.variantSwitchIndex++ + "_" + Nc.getMaterialName(this.variantMaterial), i.displayName = i.displayName + ": Variant with material " + this.variantMaterial.name, i.material = this.variantMaterial, i.geometry = t.geometry, i.matrix = t.matrix, (!t.parent || !t.parent.isEmpty()) && Cr.createEmptyParent(t), t.parent && t.parent.add(i), e.push(i);
80115
80115
  }
80116
80116
  return e;
80117
80117
  }
@@ -80427,7 +80427,7 @@ const Qc = (uw = class extends Be {
80427
80427
  var p, g, y, m, A;
80428
80428
  if (!t)
80429
80429
  return;
80430
- const n = t.getComponent(Br), r = t.getComponent(to);
80430
+ const n = t.getComponent(Tr), r = t.getComponent(to);
80431
80431
  if (!n && !r)
80432
80432
  return;
80433
80433
  if (n && !i)
@@ -80516,7 +80516,7 @@ const Qc = (uw = class extends Be {
80516
80516
  }, d(uw, "animationActions", []), d(uw, "rootsWithExclusivePlayback", /* @__PURE__ */ new Set()), uw);
80517
80517
  let Hm = Qc;
80518
80518
  En([
80519
- x(Br)
80519
+ x(Tr)
80520
80520
  ], Hm.prototype, "animator", 2);
80521
80521
  En([
80522
80522
  x()
@@ -80713,14 +80713,14 @@ Oh([
80713
80713
  x()
80714
80714
  ], gd.prototype, "doubleJumpForce", 2);
80715
80715
  Oh([
80716
- x(Br)
80716
+ x(Tr)
80717
80717
  ], gd.prototype, "animator", 2);
80718
80718
  var cge = Object.defineProperty, lge = Object.getOwnPropertyDescriptor, hge = (s, e, t, i) => {
80719
80719
  for (var n = i > 1 ? void 0 : i ? lge(e, t) : e, r = s.length - 1, o; r >= 0; r--)
80720
80720
  (o = s[r]) && (n = (i ? o(e, t, n) : o(n)) || n);
80721
80721
  return i && n && cge(e, t, n), n;
80722
80722
  };
80723
- class WE extends Dr {
80723
+ class WE extends Pr {
80724
80724
  constructor() {
80725
80725
  super(...arguments);
80726
80726
  d(this, "intensity");
@@ -80742,7 +80742,7 @@ hge([
80742
80742
  x(Qt)
80743
80743
  ], WE.prototype, "intensity", 2);
80744
80744
  Sc("ChromaticAberration", WE);
80745
- class WC extends Dr {
80745
+ class WC extends Pr {
80746
80746
  constructor(t) {
80747
80747
  super();
80748
80748
  d(this, "effect");
@@ -81859,7 +81859,7 @@ class E9 extends sr {
81859
81859
  gl_FragColor = vec4(color.rgb, 1.0 / (frame + 1.0));
81860
81860
  }
81861
81861
  `
81862
- })), this.bluenoise = new yo(mge, 128, 128), this.bluenoise.colorSpace = wr, this.bluenoise.wrapS = vo, this.bluenoise.wrapT = vo, this.bluenoise.minFilter = Gt, this.bluenoise.magFilter = Gt, this.bluenoise.needsUpdate = !0, this.lastTime = 0, this.needsDepthTexture = !0, this.needsSwap = !0, this._r = new ee(), this._c = new ve();
81862
+ })), this.bluenoise = new yo(mge, 128, 128), this.bluenoise.colorSpace = xr, this.bluenoise.wrapS = vo, this.bluenoise.wrapT = vo, this.bluenoise.minFilter = Gt, this.bluenoise.magFilter = Gt, this.bluenoise.needsUpdate = !0, this.lastTime = 0, this.needsDepthTexture = !0, this.needsSwap = !0, this._r = new ee(), this._c = new ve();
81863
81863
  }
81864
81864
  configureHalfResTargets() {
81865
81865
  this.firstFrame(), this.configuration.halfRes ? (this.depthDownsampleTarget = /*new THREE.WebGLRenderTarget(this.width / 2, this.height / 2, {
@@ -82058,7 +82058,7 @@ var Age = Object.defineProperty, yge = Object.getOwnPropertyDescriptor, I9 = (s,
82058
82058
  (o = s[r]) && (n = (i ? o(e, t, n) : o(n)) || n);
82059
82059
  return i && n && Age(e, t, n), n;
82060
82060
  };
82061
- class vb extends Dr {
82061
+ class vb extends Pr {
82062
82062
  constructor() {
82063
82063
  super(...arguments);
82064
82064
  d(this, "_effect");
@@ -82152,7 +82152,7 @@ var xge = Object.defineProperty, wge = Object.getOwnPropertyDescriptor, Cge = (s
82152
82152
  (o = s[r]) && (n = (i ? o(e, t, n) : o(n)) || n);
82153
82153
  return i && n && xge(e, t, n), n;
82154
82154
  };
82155
- class bb extends Dr {
82155
+ class bb extends Pr {
82156
82156
  constructor() {
82157
82157
  super(...arguments);
82158
82158
  d(this, "mode");
@@ -82164,7 +82164,7 @@ class bb extends Dr {
82164
82164
  return !0;
82165
82165
  }
82166
82166
  init() {
82167
- this.mode || (this.mode = new Qt(Er)), this.mode.defaultValue = Er;
82167
+ this.mode || (this.mode = new Qt(Sr)), this.mode.defaultValue = Sr;
82168
82168
  }
82169
82169
  apply() {
82170
82170
  this.mode || this.init(), this.mode.onValueChanged = this._apply.bind(this), this._apply(this.mode.value);
@@ -82375,10 +82375,13 @@ class _b extends Be {
82375
82375
  i.key === "p" && (this.enabled = !this.enabled, xn("Toggle PostProcessing " + this.name + ": Enabled=" + this.enabled), this.markDirty());
82376
82376
  })), (t = this.sharedProfile) == null || t.init();
82377
82377
  }
82378
+ onEnable() {
82379
+ this._isDirty = !0;
82380
+ }
82378
82381
  /** @internal */
82379
82382
  onDisable() {
82380
82383
  var t;
82381
- (t = this._postprocessing) == null || t.unapply();
82384
+ (t = this._postprocessing) == null || t.unapply(), this._isDirty = !1;
82382
82385
  }
82383
82386
  /** @internal */
82384
82387
  onBeforeRender() {
@@ -82476,7 +82479,7 @@ var Mge = Object.defineProperty, Tge = Object.getOwnPropertyDescriptor, qE = (s,
82476
82479
  (o = s[r]) && (n = (i ? o(e, t, n) : o(n)) || n);
82477
82480
  return i && n && Mge(e, t, n), n;
82478
82481
  };
82479
- class Th extends Dr {
82482
+ class Th extends Pr {
82480
82483
  constructor() {
82481
82484
  super(...arguments);
82482
82485
  d(this, "postExposure");
@@ -82518,7 +82521,7 @@ class Th extends Dr {
82518
82521
  onCreateEffect() {
82519
82522
  var c, l, h, u, f;
82520
82523
  const t = [];
82521
- this.context.renderer.toneMapping !== Er && this.postExposure.overrideState && (this.context.renderer.toneMapping = Er), this.toneMappingEffect = (l = (c = re.findObjectOfType(_b)) == null ? void 0 : c.sharedProfile) == null ? void 0 : l.components.find((p) => p.typeName === "ToneMapping");
82524
+ this.context.renderer.toneMapping !== Sr && this.postExposure.overrideState && (this.context.renderer.toneMapping = Sr), this.toneMappingEffect = (l = (c = re.findObjectOfType(_b)) == null ? void 0 : c.sharedProfile) == null ? void 0 : l.components.find((p) => p.typeName === "ToneMapping");
82522
82525
  const i = (u = (h = this.toneMappingEffect) == null ? void 0 : h.mode) == null ? void 0 : u.value, n = (f = this.toneMappingEffect) == null ? void 0 : f.getThreeToneMapping(i), r = new MV({
82523
82526
  mode: this.threeToneMappingToEffectMode(n)
82524
82527
  // middleGrey: 0.5,
@@ -82840,7 +82843,7 @@ function tf(s, e) {
82840
82843
  }
82841
82844
  const L3 = Symbol("DidPatchLayers");
82842
82845
  function Fge() {
82843
- const s = Ir.prototype;
82846
+ const s = Er.prototype;
82844
82847
  if (s[L3])
82845
82848
  return;
82846
82849
  s[L3] = !0;
@@ -83950,7 +83953,7 @@ function Og(s) {
83950
83953
  return e = Math.ceil(e), t = Math.ceil(t), { vertexCount: e, indexCount: t };
83951
83954
  }
83952
83955
  function Q3() {
83953
- const s = new Mr({ color: new ve(Math.random(), Math.random(), Math.random()) });
83956
+ const s = new Ir({ color: new ve(Math.random(), Math.random(), Math.random()) });
83954
83957
  return s.emissive = s.color, s.emissiveIntensity = 0.3, ie("wireframe") && (s.wireframe = !0), s;
83955
83958
  }
83956
83959
  const Ag = ie("debuglightmaps");
@@ -84720,7 +84723,7 @@ oe([
84720
84723
  x(up)
84721
84724
  ], ta.prototype, "gradientMax", 2);
84722
84725
  var tP = /* @__PURE__ */ ((s) => (s[s.Hierarchy = 0] = "Hierarchy", s[s.Local = 1] = "Local", s[s.Shape = 2] = "Shape", s))(tP || {});
84723
- class kr {
84726
+ class Dr {
84724
84727
  constructor() {
84725
84728
  d(this, "cullingMode");
84726
84729
  d(this, "duration");
@@ -84768,43 +84771,43 @@ class kr {
84768
84771
  }
84769
84772
  oe([
84770
84773
  x(yt)
84771
- ], kr.prototype, "gravityModifier", 2);
84774
+ ], Dr.prototype, "gravityModifier", 2);
84772
84775
  oe([
84773
84776
  x(ta)
84774
- ], kr.prototype, "startColor", 2);
84777
+ ], Dr.prototype, "startColor", 2);
84775
84778
  oe([
84776
84779
  x(yt)
84777
- ], kr.prototype, "startDelay", 2);
84780
+ ], Dr.prototype, "startDelay", 2);
84778
84781
  oe([
84779
84782
  x(yt)
84780
- ], kr.prototype, "startLifetime", 2);
84783
+ ], Dr.prototype, "startLifetime", 2);
84781
84784
  oe([
84782
84785
  x(yt)
84783
- ], kr.prototype, "startRotation", 2);
84786
+ ], Dr.prototype, "startRotation", 2);
84784
84787
  oe([
84785
84788
  x(yt)
84786
- ], kr.prototype, "startRotationX", 2);
84789
+ ], Dr.prototype, "startRotationX", 2);
84787
84790
  oe([
84788
84791
  x(yt)
84789
- ], kr.prototype, "startRotationY", 2);
84792
+ ], Dr.prototype, "startRotationY", 2);
84790
84793
  oe([
84791
84794
  x(yt)
84792
- ], kr.prototype, "startRotationZ", 2);
84795
+ ], Dr.prototype, "startRotationZ", 2);
84793
84796
  oe([
84794
84797
  x(yt)
84795
- ], kr.prototype, "startSize", 2);
84798
+ ], Dr.prototype, "startSize", 2);
84796
84799
  oe([
84797
84800
  x(yt)
84798
- ], kr.prototype, "startSizeX", 2);
84801
+ ], Dr.prototype, "startSizeX", 2);
84799
84802
  oe([
84800
84803
  x(yt)
84801
- ], kr.prototype, "startSizeY", 2);
84804
+ ], Dr.prototype, "startSizeY", 2);
84802
84805
  oe([
84803
84806
  x(yt)
84804
- ], kr.prototype, "startSizeZ", 2);
84807
+ ], Dr.prototype, "startSizeZ", 2);
84805
84808
  oe([
84806
84809
  x(yt)
84807
- ], kr.prototype, "startSpeed", 2);
84810
+ ], Dr.prototype, "startSpeed", 2);
84808
84811
  class YC {
84809
84812
  constructor() {
84810
84813
  d(this, "cycleCount");
@@ -85535,7 +85538,7 @@ oe([
85535
85538
  oe([
85536
85539
  x()
85537
85540
  ], Fn.prototype, "zMultiplier", 2);
85538
- class Or {
85541
+ class kr {
85539
85542
  constructor() {
85540
85543
  d(this, "animation");
85541
85544
  d(this, "enabled");
@@ -85578,43 +85581,43 @@ class Or {
85578
85581
  }
85579
85582
  oe([
85580
85583
  x()
85581
- ], Or.prototype, "animation", 2);
85584
+ ], kr.prototype, "animation", 2);
85582
85585
  oe([
85583
85586
  x()
85584
- ], Or.prototype, "enabled", 2);
85587
+ ], kr.prototype, "enabled", 2);
85585
85588
  oe([
85586
85589
  x()
85587
- ], Or.prototype, "cycleCount", 2);
85590
+ ], kr.prototype, "cycleCount", 2);
85588
85591
  oe([
85589
85592
  x(yt)
85590
- ], Or.prototype, "frameOverTime", 2);
85593
+ ], kr.prototype, "frameOverTime", 2);
85591
85594
  oe([
85592
85595
  x()
85593
- ], Or.prototype, "frameOverTimeMultiplier", 2);
85596
+ ], kr.prototype, "frameOverTimeMultiplier", 2);
85594
85597
  oe([
85595
85598
  x()
85596
- ], Or.prototype, "numTilesX", 2);
85599
+ ], kr.prototype, "numTilesX", 2);
85597
85600
  oe([
85598
85601
  x()
85599
- ], Or.prototype, "numTilesY", 2);
85602
+ ], kr.prototype, "numTilesY", 2);
85600
85603
  oe([
85601
85604
  x(yt)
85602
- ], Or.prototype, "startFrame", 2);
85605
+ ], kr.prototype, "startFrame", 2);
85603
85606
  oe([
85604
85607
  x()
85605
- ], Or.prototype, "startFrameMultiplier", 2);
85608
+ ], kr.prototype, "startFrameMultiplier", 2);
85606
85609
  oe([
85607
85610
  x()
85608
- ], Or.prototype, "rowMode", 2);
85611
+ ], kr.prototype, "rowMode", 2);
85609
85612
  oe([
85610
85613
  x()
85611
- ], Or.prototype, "rowIndex", 2);
85614
+ ], kr.prototype, "rowIndex", 2);
85612
85615
  oe([
85613
85616
  x()
85614
- ], Or.prototype, "spriteCount", 2);
85617
+ ], kr.prototype, "spriteCount", 2);
85615
85618
  oe([
85616
85619
  x()
85617
- ], Or.prototype, "timeMode", 2);
85620
+ ], kr.prototype, "timeMode", 2);
85618
85621
  class Ec {
85619
85622
  constructor() {
85620
85623
  d(this, "enabled");
@@ -86282,7 +86285,7 @@ const eO = class {
86282
86285
  };
86283
86286
  let Ju = eO;
86284
86287
  d(Ju, "_instance");
86285
- var hme = Object.defineProperty, ume = Object.getOwnPropertyDescriptor, Lr = (s, e, t, i) => {
86288
+ var hme = Object.defineProperty, ume = Object.getOwnPropertyDescriptor, Or = (s, e, t, i) => {
86286
86289
  for (var n = i > 1 ? void 0 : i ? ume(e, t) : e, r = s.length - 1, o; r >= 0; r--)
86287
86290
  (o = s[r]) && (n = (i ? o(e, t, n) : o(n)) || n);
86288
86291
  return i && n && hme(e, t, n), n;
@@ -86349,19 +86352,19 @@ class md {
86349
86352
  return kf.getOrCreateGeometry(this);
86350
86353
  }
86351
86354
  }
86352
- Lr([
86355
+ Or([
86353
86356
  x()
86354
86357
  ], md.prototype, "guid", 2);
86355
- Lr([
86358
+ Or([
86356
86359
  x(Ht)
86357
86360
  ], md.prototype, "texture", 2);
86358
- Lr([
86361
+ Or([
86359
86362
  qv()
86360
86363
  ], md.prototype, "triangles", 2);
86361
- Lr([
86364
+ Or([
86362
86365
  qv()
86363
86366
  ], md.prototype, "uv", 2);
86364
- Lr([
86367
+ Or([
86365
86368
  qv()
86366
86369
  ], md.prototype, "vertices", 2);
86367
86370
  const uT = Symbol("spriteOwner");
@@ -86370,7 +86373,7 @@ class JE {
86370
86373
  d(this, "sprites");
86371
86374
  }
86372
86375
  }
86373
- Lr([
86376
+ Or([
86374
86377
  x(md)
86375
86378
  ], JE.prototype, "sprites", 2);
86376
86379
  class wb {
@@ -86394,10 +86397,10 @@ class wb {
86394
86397
  }
86395
86398
  }
86396
86399
  }
86397
- Lr([
86400
+ Or([
86398
86401
  x(JE)
86399
86402
  ], wb.prototype, "spriteSheet", 2);
86400
- Lr([
86403
+ Or([
86401
86404
  x()
86402
86405
  ], wb.prototype, "index", 2);
86403
86406
  class Ic extends Be {
@@ -86480,28 +86483,28 @@ class Ic extends Be {
86480
86483
  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)), this._currentSprite && this._currentSprite.layers.set(this.layer), this.sharedMaterial && (this.sharedMaterial.alphaTest = this.cutoutThreshold, this.sharedMaterial.transparent = this.transparent), this._currentSprite.castShadow = this.castShadows, (r = this._spriteSheet) == null || r.update(this.sharedMaterial);
86481
86484
  }
86482
86485
  }
86483
- Lr([
86486
+ Or([
86484
86487
  x()
86485
86488
  ], Ic.prototype, "drawMode", 2);
86486
- Lr([
86489
+ Or([
86487
86490
  x(fme)
86488
86491
  ], Ic.prototype, "size", 2);
86489
- Lr([
86492
+ Or([
86490
86493
  x(Ri)
86491
86494
  ], Ic.prototype, "color", 2);
86492
- Lr([
86495
+ Or([
86493
86496
  x(Ft)
86494
86497
  ], Ic.prototype, "sharedMaterial", 2);
86495
- Lr([
86498
+ Or([
86496
86499
  x()
86497
86500
  ], Ic.prototype, "transparent", 2);
86498
- Lr([
86501
+ Or([
86499
86502
  x()
86500
86503
  ], Ic.prototype, "cutoutThreshold", 2);
86501
- Lr([
86504
+ Or([
86502
86505
  x()
86503
86506
  ], Ic.prototype, "castShadows", 2);
86504
- Lr([
86507
+ Or([
86505
86508
  x(wb)
86506
86509
  ], Ic.prototype, "sprite", 1);
86507
86510
  var pme = Object.defineProperty, gme = Object.getOwnPropertyDescriptor, vA = (s, e, t, i) => {
@@ -88370,9 +88373,9 @@ class ar extends Be {
88370
88373
  t == "immersive-ar" && this.useDepthSensing && (i.optionalFeatures = i.optionalFeatures || [], i.optionalFeatures.push("depth-sensing"));
88371
88374
  }
88372
88375
  async onEnterXR(t) {
88373
- Yx && console.log("WebXR onEnterXR"), this._previousXRState = Cr.Global.Mask;
88376
+ Yx && console.log("WebXR onEnterXR"), this._previousXRState = wr.Global.Mask;
88374
88377
  const i = t.xr.isVR;
88375
- if (Cr.Global.Set(i ? uh.VR : uh.AR), this.usePlacementReticle && t.xr.isAR) {
88378
+ if (wr.Global.Set(i ? uh.VR : uh.AR), this.usePlacementReticle && t.xr.isAR) {
88376
88379
  let r = re.findObjectOfType(wo);
88377
88380
  if (r)
88378
88381
  Yx && console.log("WebXR: WebARSessionRoot already exists, not creating a new one");
@@ -88389,7 +88392,7 @@ class ar extends Be {
88389
88392
  }
88390
88393
  onLeaveXR(t) {
88391
88394
  var i;
88392
- Cr.Global.Set(this._previousXRState), (i = this._playerSync) == null || i.destroyInstance();
88395
+ wr.Global.Set(this._previousXRState), (i = this._playerSync) == null || i.destroyInstance();
88393
88396
  for (const n of this._createdComponentsInSession)
88394
88397
  n.destroy();
88395
88398
  this._createdComponentsInSession.length = 0, this.handleOfferSession();
@@ -88957,7 +88960,7 @@ class ZE {
88957
88960
  let o = 100, a = 100;
88958
88961
  r && (o = r.width, a = r.height), t.matrix = Xme.clone(), r && t.matrix.premultiply(Yme);
88959
88962
  const c = n.color.clone();
88960
- t.material = new Mr({ color: c, emissive: c }), t.addEventListener("serialize", (l, h) => {
88963
+ t.material = new Ir({ color: c, emissive: c }), t.addEventListener("serialize", (l, h) => {
88961
88964
  let u = n.text;
88962
88965
  u = u.replace(/\r/g, ""), u = u.replace(/\n/g, "\\n");
88963
88966
  const f = fk.multiLine(
@@ -89022,7 +89025,7 @@ class pk {
89022
89025
  // TODO would probably be better to export each object instead of the entire Canvas
89023
89026
  // so that we don't export them twice (once as regular hierarchy, once as part of Canvas export)
89024
89027
  onExportObject(e, t, i) {
89025
- const n = re.getComponent(e, Rr);
89028
+ const n = re.getComponent(e, Br);
89026
89029
  if (n && n.enabled && n.renderMode === b9.WorldSpace) {
89027
89030
  const r = new ZE(), o = re.getComponent(e, ro), a = re.getComponent(e, Zf), c = new Array();
89028
89031
  if (o) {
@@ -89052,7 +89055,7 @@ class pk {
89052
89055
  });
89053
89056
  }
89054
89057
  }), o.width, o.height;
89055
- const l = Sr.createEmpty(), h = o.shadowComponent;
89058
+ const l = Cr.createEmpty(), h = o.shadowComponent;
89056
89059
  if (t.add(l), h) {
89057
89060
  const u = h.matrix;
89058
89061
  l.matrix.copy(u);
@@ -89060,7 +89063,7 @@ class pk {
89060
89063
  f.set(h, l), p.set(h, a ? a.alpha : 1), h.traverse((g) => {
89061
89064
  if (g === h)
89062
89065
  return;
89063
- const y = Sr.createEmpty();
89066
+ const y = Cr.createEmpty();
89064
89067
  y.matrix.copy(g.matrix);
89065
89068
  const m = g.parent, A = !!m && typeof m.textContent == "string" && m.textContent.length > 0;
89066
89069
  let b = p.get(m) || 1;
@@ -89106,7 +89109,7 @@ class pk {
89106
89109
  const Jy = ie("debugusdz");
89107
89110
  function Jme(s, e) {
89108
89111
  var a;
89109
- const t = [], i = re.getComponentsInChildren(s, Br), n = re.getComponentsInChildren(s, to), r = new Array(), o = new Array();
89112
+ const t = [], i = re.getComponentsInChildren(s, Tr), n = re.getComponentsInChildren(s, to), r = new Array(), o = new Array();
89110
89113
  if (e.injectImplicitBehaviours)
89111
89114
  for (const c of i) {
89112
89115
  if (!c || !c.runtimeAnimatorController || !c.enabled)
@@ -89194,7 +89197,7 @@ function K3(s) {
89194
89197
  const r = document.createElement("img");
89195
89198
  return r.id = "button", n.appendChild(r), s.domElement.shadowRoot.appendChild(t), n;
89196
89199
  }
89197
- var $me = Object.defineProperty, eAe = Object.getOwnPropertyDescriptor, Fr = (s, e, t, i) => {
89200
+ var $me = Object.defineProperty, eAe = Object.getOwnPropertyDescriptor, Lr = (s, e, t, i) => {
89198
89201
  for (var n = i > 1 ? void 0 : i ? eAe(e, t) : e, r = s.length - 1, o; r >= 0; r--)
89199
89202
  (o = s[r]) && (n = (i ? o(e, t, n) : o(n)) || n);
89200
89203
  return i && n && $me(e, t, n), n;
@@ -89208,16 +89211,16 @@ class gp {
89208
89211
  d(this, "callToActionURL");
89209
89212
  }
89210
89213
  }
89211
- Fr([
89214
+ Lr([
89212
89215
  x()
89213
89216
  ], gp.prototype, "callToAction", 2);
89214
- Fr([
89217
+ Lr([
89215
89218
  x()
89216
89219
  ], gp.prototype, "checkoutTitle", 2);
89217
- Fr([
89220
+ Lr([
89218
89221
  x()
89219
89222
  ], gp.prototype, "checkoutSubtitle", 2);
89220
- Fr([
89223
+ Lr([
89221
89224
  x()
89222
89225
  ], gp.prototype, "callToActionURL", 2);
89223
89226
  var gw;
@@ -89345,8 +89348,8 @@ const iP = (gw = class extends Be {
89345
89348
  }
89346
89349
  }
89347
89350
  ha && xn("Progressive Loading: " + n.length), await Promise.all(n), ha && xn("Progressive Loading: done"), ri.end("export-usdz-textures");
89348
- const o = Cr.Global.Mask;
89349
- Cr.Global.Set(uh.AR);
89351
+ const o = wr.Global.Mask;
89352
+ wr.Global.Set(uh.AR);
89350
89353
  const a = new nae(), c = new LE(this.quickLookCompatible), l = [c, ...this.extensions], h = { self: this, exporter: a, extensions: l, object: e };
89351
89354
  ri.report("export-usdz", "Invoking before-export"), this.dispatchEvent(new CustomEvent("before-export", { detail: h })), this.applyWebARSessionRoot(), this._previousTimeScale = this.context.time.timeScale, this.context.time.timeScale = 0, ri.report("export-usdz", "auto export animations and audio sources");
89352
89355
  const u = new Array();
@@ -89379,7 +89382,7 @@ const iP = (gw = class extends Be {
89379
89382
  this.revertWebARSessionRoot(), this.context.time.timeScale = this._previousTimeScale, ri.report("export-usdz", "Invoking after-export"), this.dispatchEvent(new CustomEvent("after-export", { detail: h }));
89380
89383
  for (const b of u)
89381
89384
  re.destroy(b);
89382
- return Cr.Global.Set(o), ri.end("export-usdz"), A;
89385
+ return wr.Global.Set(o), ri.end("export-usdz"), A;
89383
89386
  }
89384
89387
  /**
89385
89388
  * Opens QuickLook on iOS/iPadOS/visionOS with the given content in AR mode.
@@ -89454,40 +89457,40 @@ const iP = (gw = class extends Be {
89454
89457
  }
89455
89458
  }, d(gw, "invertForwardMatrix", new Ae().makeRotationY(Math.PI)), d(gw, "invertForwardQuaternion", new Se().setFromEuler(new fi(0, Math.PI, 0))), gw);
89456
89459
  let Wn = iP;
89457
- Fr([
89460
+ Lr([
89458
89461
  x(ye)
89459
89462
  ], Wn.prototype, "objectToExport", 2);
89460
- Fr([
89463
+ Lr([
89461
89464
  x()
89462
89465
  ], Wn.prototype, "autoExportAnimations", 2);
89463
- Fr([
89466
+ Lr([
89464
89467
  x()
89465
89468
  ], Wn.prototype, "autoExportAudioSources", 2);
89466
- Fr([
89469
+ Lr([
89467
89470
  x()
89468
89471
  ], Wn.prototype, "exportFileName", 2);
89469
- Fr([
89472
+ Lr([
89470
89473
  x(URL)
89471
89474
  ], Wn.prototype, "customUsdzFile", 2);
89472
- Fr([
89475
+ Lr([
89473
89476
  x(gp)
89474
89477
  ], Wn.prototype, "customBranding", 2);
89475
- Fr([
89478
+ Lr([
89476
89479
  x()
89477
89480
  ], Wn.prototype, "anchoringType", 2);
89478
- Fr([
89481
+ Lr([
89479
89482
  x()
89480
89483
  ], Wn.prototype, "maxTextureSize", 2);
89481
- Fr([
89484
+ Lr([
89482
89485
  x()
89483
89486
  ], Wn.prototype, "planeAnchoringAlignment", 2);
89484
- Fr([
89487
+ Lr([
89485
89488
  x()
89486
89489
  ], Wn.prototype, "interactive", 2);
89487
- Fr([
89490
+ Lr([
89488
89491
  x()
89489
89492
  ], Wn.prototype, "allowCreateQuicklookButton", 2);
89490
- Fr([
89493
+ Lr([
89491
89494
  x()
89492
89495
  ], Wn.prototype, "quickLookCompatible", 2);
89493
89496
  class $E extends Be {
@@ -89526,7 +89529,7 @@ var tAe = Object.defineProperty, iAe = Object.getOwnPropertyDescriptor, mp = (s,
89526
89529
  return i && n && tAe(e, t, n), n;
89527
89530
  };
89528
89531
  const nAe = ie("debugpost");
89529
- class _l extends Dr {
89532
+ class _l extends Pr {
89530
89533
  constructor() {
89531
89534
  super(...arguments);
89532
89535
  d(this, "mode");
@@ -91232,7 +91235,7 @@ class QAe {
91232
91235
  }
91233
91236
  l.putImageData(h, 0, 0);
91234
91237
  const f = (e || t).clone();
91235
- return f.source = new dh(c), f.colorSpace = wr, f.channel = (e || t).channel, e && t && e.channel !== t.channel && console.warn("THREE.GLTFExporter: UV channels for metalnessMap and roughnessMap textures must match."), f;
91238
+ return f.source = new dh(c), f.colorSpace = xr, f.channel = (e || t).channel, e && t && e.channel !== t.channel && console.warn("THREE.GLTFExporter: UV channels for metalnessMap and roughnessMap textures must match."), f;
91236
91239
  }
91237
91240
  /**
91238
91241
  * Process a buffer to append to the default one.
@@ -92958,7 +92961,7 @@ const i6 = (HT = class extends Be {
92958
92961
  if (t.uuid === this.gameObject.uuid) {
92959
92962
  let n = t;
92960
92963
  if (this.keepUpDirection) {
92961
- const o = Sr.createEmptyParent(t);
92964
+ const o = Cr.createEmptyParent(t);
92962
92965
  n = o;
92963
92966
  const a = this.invertForward ? -1 : 1;
92964
92967
  o.matrix.multiply(new Ae().makeRotationZ(Math.PI / 2 * a)), t.matrix.multiply(new Ae().makeRotationZ(-Math.PI / 2 * a));
@@ -93937,7 +93940,7 @@ var kye = /* @__PURE__ */ function(s) {
93937
93940
  this.previous.clear();
93938
93941
  }
93939
93942
  }]), s;
93940
- }(), yr = /* @__PURE__ */ function() {
93943
+ }(), Ar = /* @__PURE__ */ function() {
93941
93944
  function s(e) {
93942
93945
  Mt(this, s), te(this, "type", void 0), this.value = e, this.type = "value";
93943
93946
  }
@@ -94195,13 +94198,13 @@ var kye = /* @__PURE__ */ function(s) {
94195
94198
  function Yi(s) {
94196
94199
  switch (s.type) {
94197
94200
  case "ConstantValue":
94198
- return yr.fromJSON(s);
94201
+ return Ar.fromJSON(s);
94199
94202
  case "IntervalValue":
94200
94203
  return l1.fromJSON(s);
94201
94204
  case "PiecewiseBezier":
94202
94205
  return Uye.fromJSON(s);
94203
94206
  default:
94204
- return new yr(0);
94207
+ return new Ar(0);
94205
94208
  }
94206
94209
  }
94207
94210
  var Sv = function(e) {
@@ -94625,7 +94628,7 @@ function Vye(s) {
94625
94628
  case "Euler":
94626
94629
  return o6(s);
94627
94630
  default:
94628
- return new yr(0);
94631
+ return new Ar(0);
94629
94632
  }
94630
94633
  }
94631
94634
  var hQ = /* @__PURE__ */ function() {
@@ -95964,7 +95967,7 @@ var at = /* @__PURE__ */ function(s) {
95964
95967
  function t(i) {
95965
95968
  var n;
95966
95969
  Mt(this, t), n = e.call(this), te(oi(n), "type", "VFXBatch"), te(oi(n), "systems", void 0), te(oi(n), "settings", void 0), te(oi(n), "maxParticles", void 0), n.maxParticles = 1e3, n.systems = /* @__PURE__ */ new Set();
95967
- var r = new Ir();
95970
+ var r = new Er();
95968
95971
  return r.mask = i.layers.mask, n.settings = {
95969
95972
  instancingGeometry: i.instancingGeometry,
95970
95973
  renderMode: i.renderMode,
@@ -95991,15 +95994,15 @@ new C();
95991
95994
  var OQ = 60, r0e = new os(1, 1, 1, 1), o0e = /* @__PURE__ */ function() {
95992
95995
  function s(e) {
95993
95996
  var t, i, n, r, o, a, c, l, h, u, f, p, g, y, m, A, b, v, _, w, E;
95994
- Mt(this, s), te(this, "autoDestroy", void 0), te(this, "prewarm", void 0), te(this, "looping", void 0), te(this, "duration", void 0), te(this, "startLife", void 0), te(this, "startSpeed", void 0), te(this, "startRotation", void 0), te(this, "startSize", void 0), te(this, "startColor", void 0), te(this, "startTileIndex", void 0), te(this, "rendererEmitterSettings", void 0), te(this, "emissionOverTime", void 0), te(this, "emissionOverDistance", void 0), te(this, "emissionBursts", void 0), te(this, "onlyUsedByOther", void 0), te(this, "worldSpace", void 0), te(this, "speedFactor", void 0), te(this, "particleNum", void 0), te(this, "paused", void 0), te(this, "particles", void 0), te(this, "emitterShape", void 0), te(this, "emitter", void 0), te(this, "rendererSettings", void 0), te(this, "neededToUpdateRender", void 0), te(this, "behaviors", void 0), te(this, "prewarmed", void 0), te(this, "emissionState", void 0), te(this, "emitEnded", void 0), te(this, "markForDestroy", void 0), te(this, "previousWorldPos", void 0), te(this, "temp", new C()), te(this, "travelDistance", 0), te(this, "normalMatrix", new zt()), te(this, "_renderer", void 0), this.autoDestroy = e.autoDestroy === void 0 ? !1 : e.autoDestroy, this.duration = (t = e.duration) !== null && t !== void 0 ? t : 1, this.looping = e.looping === void 0 ? !0 : e.looping, this.prewarm = e.prewarm === void 0 ? !1 : e.prewarm, this.startLife = (i = e.startLife) !== null && i !== void 0 ? i : new yr(5), this.startSpeed = (n = e.startSpeed) !== null && n !== void 0 ? n : new yr(0), this.startRotation = (r = e.startRotation) !== null && r !== void 0 ? r : new yr(0), this.startSize = (o = e.startSize) !== null && o !== void 0 ? o : new yr(1), this.startColor = (a = e.startColor) !== null && a !== void 0 ? a : new ZC(new Ke(1, 1, 1, 1)), this.emissionOverTime = (c = e.emissionOverTime) !== null && c !== void 0 ? c : new yr(10), this.emissionOverDistance = (l = e.emissionOverDistance) !== null && l !== void 0 ? l : new yr(0), this.emissionBursts = (h = e.emissionBursts) !== null && h !== void 0 ? h : [], this.onlyUsedByOther = (u = e.onlyUsedByOther) !== null && u !== void 0 ? u : !1, this.emitterShape = (f = e.shape) !== null && f !== void 0 ? f : new hP(), this.behaviors = (p = e.behaviors) !== null && p !== void 0 ? p : new Array(), this.worldSpace = (g = e.worldSpace) !== null && g !== void 0 ? g : !1, this.speedFactor = (y = e.speedFactor) !== null && y !== void 0 ? y : 0, this.rendererEmitterSettings = (m = e.rendererEmitterSettings) !== null && m !== void 0 ? m : {}, this.rendererSettings = {
95997
+ Mt(this, s), te(this, "autoDestroy", void 0), te(this, "prewarm", void 0), te(this, "looping", void 0), te(this, "duration", void 0), te(this, "startLife", void 0), te(this, "startSpeed", void 0), te(this, "startRotation", void 0), te(this, "startSize", void 0), te(this, "startColor", void 0), te(this, "startTileIndex", void 0), te(this, "rendererEmitterSettings", void 0), te(this, "emissionOverTime", void 0), te(this, "emissionOverDistance", void 0), te(this, "emissionBursts", void 0), te(this, "onlyUsedByOther", void 0), te(this, "worldSpace", void 0), te(this, "speedFactor", void 0), te(this, "particleNum", void 0), te(this, "paused", void 0), te(this, "particles", void 0), te(this, "emitterShape", void 0), te(this, "emitter", void 0), te(this, "rendererSettings", void 0), te(this, "neededToUpdateRender", void 0), te(this, "behaviors", void 0), te(this, "prewarmed", void 0), te(this, "emissionState", void 0), te(this, "emitEnded", void 0), te(this, "markForDestroy", void 0), te(this, "previousWorldPos", void 0), te(this, "temp", new C()), te(this, "travelDistance", 0), te(this, "normalMatrix", new zt()), te(this, "_renderer", void 0), this.autoDestroy = e.autoDestroy === void 0 ? !1 : e.autoDestroy, this.duration = (t = e.duration) !== null && t !== void 0 ? t : 1, this.looping = e.looping === void 0 ? !0 : e.looping, this.prewarm = e.prewarm === void 0 ? !1 : e.prewarm, this.startLife = (i = e.startLife) !== null && i !== void 0 ? i : new Ar(5), this.startSpeed = (n = e.startSpeed) !== null && n !== void 0 ? n : new Ar(0), this.startRotation = (r = e.startRotation) !== null && r !== void 0 ? r : new Ar(0), this.startSize = (o = e.startSize) !== null && o !== void 0 ? o : new Ar(1), this.startColor = (a = e.startColor) !== null && a !== void 0 ? a : new ZC(new Ke(1, 1, 1, 1)), this.emissionOverTime = (c = e.emissionOverTime) !== null && c !== void 0 ? c : new Ar(10), this.emissionOverDistance = (l = e.emissionOverDistance) !== null && l !== void 0 ? l : new Ar(0), this.emissionBursts = (h = e.emissionBursts) !== null && h !== void 0 ? h : [], this.onlyUsedByOther = (u = e.onlyUsedByOther) !== null && u !== void 0 ? u : !1, this.emitterShape = (f = e.shape) !== null && f !== void 0 ? f : new hP(), this.behaviors = (p = e.behaviors) !== null && p !== void 0 ? p : new Array(), this.worldSpace = (g = e.worldSpace) !== null && g !== void 0 ? g : !1, this.speedFactor = (y = e.speedFactor) !== null && y !== void 0 ? y : 0, this.rendererEmitterSettings = (m = e.rendererEmitterSettings) !== null && m !== void 0 ? m : {}, this.rendererSettings = {
95995
95998
  instancingGeometry: (A = e.instancingGeometry) !== null && A !== void 0 ? A : r0e,
95996
95999
  renderMode: (b = e.renderMode) !== null && b !== void 0 ? b : at.BillBoard,
95997
96000
  renderOrder: (v = e.renderOrder) !== null && v !== void 0 ? v : 0,
95998
96001
  material: e.material,
95999
96002
  uTileCount: (_ = e.uTileCount) !== null && _ !== void 0 ? _ : 1,
96000
96003
  vTileCount: (w = e.vTileCount) !== null && w !== void 0 ? w : 1,
96001
- layers: (E = e.layers) !== null && E !== void 0 ? E : new Ir()
96002
- }, this.neededToUpdateRender = !0, this.particles = new Array(), this.startTileIndex = e.startTileIndex || new yr(0), this.emitter = new kye(this), this.paused = !1, this.particleNum = 0, this.emissionState = {
96004
+ layers: (E = e.layers) !== null && E !== void 0 ? E : new Er()
96005
+ }, this.neededToUpdateRender = !0, this.particles = new Array(), this.startTileIndex = e.startTileIndex || new Ar(0), this.emitter = new kye(this), this.paused = !1, this.particleNum = 0, this.emissionState = {
96003
96006
  burstIndex: 0,
96004
96007
  burstWaveIndex: 0,
96005
96008
  time: 0,
@@ -96069,20 +96072,20 @@ var OQ = 60, r0e = new os(1, 1, 1, 1), o0e = /* @__PURE__ */ function() {
96069
96072
  switch (t) {
96070
96073
  case at.Trail:
96071
96074
  this.rendererEmitterSettings = {
96072
- startLength: new yr(30),
96075
+ startLength: new Ar(30),
96073
96076
  followLocalOrigin: !1
96074
96077
  };
96075
96078
  break;
96076
96079
  case at.Mesh:
96077
96080
  this.rendererEmitterSettings = {
96078
96081
  geometry: new os(1, 1)
96079
- }, this.startRotation = new r6(new C(0, 1, 0), new yr(0));
96082
+ }, this.startRotation = new r6(new C(0, 1, 0), new Ar(0));
96080
96083
  break;
96081
96084
  case at.BillBoard:
96082
96085
  case at.VerticalBillBoard:
96083
96086
  case at.HorizontalBillBoard:
96084
96087
  case at.StretchedBillBoard:
96085
- this.rendererEmitterSettings = {}, this.rendererSettings.renderMode === at.Mesh && (this.startRotation = new yr(0));
96088
+ this.rendererEmitterSettings = {}, this.rendererSettings.renderMode === at.Mesh && (this.startRotation = new Ar(0));
96086
96089
  break;
96087
96090
  }
96088
96091
  this.rendererSettings.renderMode = t, this.neededToUpdateRender = !0;
@@ -96319,7 +96322,7 @@ var OQ = 60, r0e = new os(1, 1, 1, 1), o0e = /* @__PURE__ */ function() {
96319
96322
  startLength: this.rendererEmitterSettings.startLength.clone(),
96320
96323
  followLocalOrigin: this.rendererEmitterSettings.followLocalOrigin
96321
96324
  } : u = {};
96322
- var f = new Ir();
96325
+ var f = new Er();
96323
96326
  return f.mask = this.layers.mask, new s({
96324
96327
  autoDestroy: this.autoDestroy,
96325
96328
  looping: this.looping,
@@ -96354,10 +96357,10 @@ var OQ = 60, r0e = new os(1, 1, 1, 1), o0e = /* @__PURE__ */ function() {
96354
96357
  value: function(t, i, n) {
96355
96358
  var r, o = t0e(t.shape, i), a;
96356
96359
  t.renderMode === at.Trail ? a = {
96357
- startLength: t.rendererEmitterSettings.startLength != null ? Yi(t.rendererEmitterSettings.startLength) : new yr(30),
96360
+ startLength: t.rendererEmitterSettings.startLength != null ? Yi(t.rendererEmitterSettings.startLength) : new Ar(30),
96358
96361
  followLocalOrigin: t.rendererEmitterSettings.followLocalOrigin
96359
96362
  } : t.renderMode === at.Mesh ? a = {} : a = {};
96360
- var c = new Ir();
96363
+ var c = new Er();
96361
96364
  t.layers && (c.mask = t.layers);
96362
96365
  var l = new s({
96363
96366
  autoDestroy: t.autoDestroy,
@@ -96391,7 +96394,7 @@ var OQ = 60, r0e = new os(1, 1, 1, 1), o0e = /* @__PURE__ */ function() {
96391
96394
  blending: Lf,
96392
96395
  side: yi
96393
96396
  }),
96394
- startTileIndex: typeof t.startTileIndex == "number" ? new yr(t.startTileIndex) : Yi(t.startTileIndex),
96397
+ startTileIndex: typeof t.startTileIndex == "number" ? new Ar(t.startTileIndex) : Yi(t.startTileIndex),
96395
96398
  uTileCount: t.uTileCount,
96396
96399
  vTileCount: t.vTileCount,
96397
96400
  behaviors: [],
@@ -96942,7 +96945,7 @@ var d0e = /* @__PURE__ */ function(s) {
96942
96945
  return Tt(t, [{
96943
96946
  key: "buildExpandableBuffers",
96944
96947
  value: function() {
96945
- this.offsetBuffer = new go(new Float32Array(this.maxParticles * 3), 3), this.offsetBuffer.setUsage(vr), this.geometry.setAttribute("offset", this.offsetBuffer), this.colorBuffer = new go(new Float32Array(this.maxParticles * 4), 4), this.colorBuffer.setUsage(vr), this.geometry.setAttribute("color", this.colorBuffer), this.settings.renderMode === at.Mesh ? (this.rotationBuffer = new go(new Float32Array(this.maxParticles * 4), 4), this.rotationBuffer.setUsage(vr), this.geometry.setAttribute("rotation", this.rotationBuffer)) : (this.settings.renderMode === at.BillBoard || this.settings.renderMode === at.HorizontalBillBoard || this.settings.renderMode === at.VerticalBillBoard || this.settings.renderMode === at.StretchedBillBoard) && (this.rotationBuffer = new go(new Float32Array(this.maxParticles), 1), this.rotationBuffer.setUsage(vr), this.geometry.setAttribute("rotation", this.rotationBuffer)), this.sizeBuffer = new go(new Float32Array(this.maxParticles), 1), this.sizeBuffer.setUsage(vr), this.geometry.setAttribute("size", this.sizeBuffer), this.uvTileBuffer = new go(new Float32Array(this.maxParticles), 1), this.uvTileBuffer.setUsage(vr), this.geometry.setAttribute("uvTile", this.uvTileBuffer), this.settings.renderMode === at.StretchedBillBoard && (this.velocityBuffer = new go(new Float32Array(this.maxParticles * 3), 3), this.velocityBuffer.setUsage(vr), this.geometry.setAttribute("velocity", this.velocityBuffer));
96948
+ this.offsetBuffer = new go(new Float32Array(this.maxParticles * 3), 3), this.offsetBuffer.setUsage(yr), this.geometry.setAttribute("offset", this.offsetBuffer), this.colorBuffer = new go(new Float32Array(this.maxParticles * 4), 4), this.colorBuffer.setUsage(yr), this.geometry.setAttribute("color", this.colorBuffer), this.settings.renderMode === at.Mesh ? (this.rotationBuffer = new go(new Float32Array(this.maxParticles * 4), 4), this.rotationBuffer.setUsage(yr), this.geometry.setAttribute("rotation", this.rotationBuffer)) : (this.settings.renderMode === at.BillBoard || this.settings.renderMode === at.HorizontalBillBoard || this.settings.renderMode === at.VerticalBillBoard || this.settings.renderMode === at.StretchedBillBoard) && (this.rotationBuffer = new go(new Float32Array(this.maxParticles), 1), this.rotationBuffer.setUsage(yr), this.geometry.setAttribute("rotation", this.rotationBuffer)), this.sizeBuffer = new go(new Float32Array(this.maxParticles), 1), this.sizeBuffer.setUsage(yr), this.geometry.setAttribute("size", this.sizeBuffer), this.uvTileBuffer = new go(new Float32Array(this.maxParticles), 1), this.uvTileBuffer.setUsage(yr), this.geometry.setAttribute("uvTile", this.uvTileBuffer), this.settings.renderMode === at.StretchedBillBoard && (this.velocityBuffer = new go(new Float32Array(this.maxParticles * 3), 3), this.velocityBuffer.setUsage(yr), this.geometry.setAttribute("velocity", this.velocityBuffer));
96946
96949
  }
96947
96950
  }, {
96948
96951
  key: "setupBuffers",
@@ -97174,7 +97177,7 @@ var g0e = /* @__PURE__ */ function(s) {
97174
97177
  return Tt(t, [{
97175
97178
  key: "setupBuffers",
97176
97179
  value: function() {
97177
- this.geometry && this.geometry.dispose(), this.geometry = new _t(), this.indexBuffer = new tt(new Uint32Array(this.maxParticles * 6), 1), this.indexBuffer.setUsage(vr), this.geometry.setIndex(this.indexBuffer), this.positionBuffer = new tt(new Float32Array(this.maxParticles * 6), 3), this.positionBuffer.setUsage(vr), this.geometry.setAttribute("position", this.positionBuffer), this.previousBuffer = new tt(new Float32Array(this.maxParticles * 6), 3), this.previousBuffer.setUsage(vr), this.geometry.setAttribute("previous", this.previousBuffer), this.nextBuffer = new tt(new Float32Array(this.maxParticles * 6), 3), this.nextBuffer.setUsage(vr), this.geometry.setAttribute("next", this.nextBuffer), this.widthBuffer = new tt(new Float32Array(this.maxParticles * 2), 1), this.widthBuffer.setUsage(vr), this.geometry.setAttribute("width", this.widthBuffer), this.sideBuffer = new tt(new Float32Array(this.maxParticles * 2), 1), this.sideBuffer.setUsage(vr), this.geometry.setAttribute("side", this.sideBuffer), this.uvBuffer = new tt(new Float32Array(this.maxParticles * 4), 2), this.uvBuffer.setUsage(vr), this.geometry.setAttribute("uv", this.uvBuffer), this.colorBuffer = new tt(new Float32Array(this.maxParticles * 8), 4), this.colorBuffer.setUsage(vr), this.geometry.setAttribute("color", this.colorBuffer);
97180
+ this.geometry && this.geometry.dispose(), this.geometry = new _t(), this.indexBuffer = new tt(new Uint32Array(this.maxParticles * 6), 1), this.indexBuffer.setUsage(yr), this.geometry.setIndex(this.indexBuffer), this.positionBuffer = new tt(new Float32Array(this.maxParticles * 6), 3), this.positionBuffer.setUsage(yr), this.geometry.setAttribute("position", this.positionBuffer), this.previousBuffer = new tt(new Float32Array(this.maxParticles * 6), 3), this.previousBuffer.setUsage(yr), this.geometry.setAttribute("previous", this.previousBuffer), this.nextBuffer = new tt(new Float32Array(this.maxParticles * 6), 3), this.nextBuffer.setUsage(yr), this.geometry.setAttribute("next", this.nextBuffer), this.widthBuffer = new tt(new Float32Array(this.maxParticles * 2), 1), this.widthBuffer.setUsage(yr), this.geometry.setAttribute("width", this.widthBuffer), this.sideBuffer = new tt(new Float32Array(this.maxParticles * 2), 1), this.sideBuffer.setUsage(yr), this.geometry.setAttribute("side", this.sideBuffer), this.uvBuffer = new tt(new Float32Array(this.maxParticles * 4), 2), this.uvBuffer.setUsage(yr), this.geometry.setAttribute("uv", this.uvBuffer), this.colorBuffer = new tt(new Float32Array(this.maxParticles * 8), 4), this.colorBuffer.setUsage(yr), this.geometry.setAttribute("color", this.colorBuffer);
97178
97181
  }
97179
97182
  }, {
97180
97183
  key: "expandBuffers",
@@ -98066,7 +98069,7 @@ class rve {
98066
98069
  d(this, "onlyUsedByOther");
98067
98070
  d(this, "behaviors", []);
98068
98071
  d(this, "rendererEmitterSettings", {
98069
- startLength: new yr(220),
98072
+ startLength: new Ar(220),
98070
98073
  followLocalOrigin: !1
98071
98074
  });
98072
98075
  d(this, "flatWhiteTexture");
@@ -98494,7 +98497,7 @@ Mn([
98494
98497
  x(YE)
98495
98498
  ], vs.prototype, "colorOverLifetime", 2);
98496
98499
  Mn([
98497
- x(kr)
98500
+ x(Dr)
98498
98501
  ], vs.prototype, "main", 2);
98499
98502
  Mn([
98500
98503
  x(Fh)
@@ -98524,7 +98527,7 @@ Mn([
98524
98527
  x(AA)
98525
98528
  ], vs.prototype, "colorBySpeed", 2);
98526
98529
  Mn([
98527
- x(Or)
98530
+ x(kr)
98528
98531
  ], vs.prototype, "textureSheetAnimation", 2);
98529
98532
  Mn([
98530
98533
  x(Ec)
@@ -98642,7 +98645,7 @@ var ave = Object.defineProperty, cve = Object.getOwnPropertyDescriptor, lve = (s
98642
98645
  (o = s[r]) && (n = (i ? o(e, t, n) : o(n)) || n);
98643
98646
  return i && n && ave(e, t, n), n;
98644
98647
  };
98645
- class g1 extends Dr {
98648
+ class g1 extends Pr {
98646
98649
  constructor() {
98647
98650
  super(...arguments);
98648
98651
  d(this, "granularity");
@@ -98853,7 +98856,7 @@ class Rh extends Be {
98853
98856
  */
98854
98857
  async setSkybox(t, i) {
98855
98858
  var o;
98856
- if (!this.activeAndEnabled || (t = pve(t), !t))
98859
+ if (!this.activeAndEnabled || (t = pve(t, this.environment, this.background), !t))
98857
98860
  return !1;
98858
98861
  if (i ?? (i = t), this.isValidTextureType(i) || console.warn("Potentially invalid skybox url", i, "on", this.name), wa && console.log("Set remote skybox url: " + t), this._prevUrl === t && this._prevLoadedEnvironment)
98859
98862
  return this.applySkybox(), !0;
@@ -98918,20 +98921,17 @@ Pb([
98918
98921
  Pb([
98919
98922
  x()
98920
98923
  ], Rh.prototype, "allowNetworking", 2);
98921
- function pve(s) {
98924
+ function pve(s, e, t) {
98925
+ const i = e && !t;
98922
98926
  switch (s == null ? void 0 : s.toLowerCase()) {
98923
98927
  case "studio":
98924
- s = "https://cdn.needle.tools/static/skybox/modelviewer-Neutral.hdr";
98925
- break;
98928
+ return i ? "https://cdn.needle.tools/static/skybox/modelviewer-Neutral-small.hdr" : "https://cdn.needle.tools/static/skybox/modelviewer-Neutral.hdr";
98926
98929
  case "blurred-skybox":
98927
- s = "https://cdn.needle.tools/static/skybox/blurred-skybox.exr";
98928
- break;
98930
+ return i ? "https://cdn.needle.tools/static/skybox/blurred-skybox-small.exr" : "https://cdn.needle.tools/static/skybox/blurred-skybox.exr";
98929
98931
  case "quicklook-ar":
98930
- s = "https://cdn.needle.tools/static/skybox/QuickLook-ARMode.exr";
98931
- break;
98932
+ return i ? "https://cdn.needle.tools/static/skybox/QuickLook-ARMode-small.exr" : "https://cdn.needle.tools/static/skybox/QuickLook-ARMode.exr";
98932
98933
  case "quicklook":
98933
- s = "https://cdn.needle.tools/static/skybox/QuickLook-ObjectMode.exr";
98934
- break;
98934
+ return i ? "https://cdn.needle.tools/static/skybox/QuickLook-ObjectMode-small.exr" : "https://cdn.needle.tools/static/skybox/QuickLook-ObjectMode.exr";
98935
98935
  }
98936
98936
  return s === void 0 ? null : s;
98937
98937
  }
@@ -100268,7 +100268,7 @@ var Mve = Object.defineProperty, Tve = Object.getOwnPropertyDescriptor, kb = (s,
100268
100268
  (o = s[r]) && (n = (i ? o(e, t, n) : o(n)) || n);
100269
100269
  return i && n && Mve(e, t, n), n;
100270
100270
  };
100271
- class Ad extends Dr {
100271
+ class Ad extends Pr {
100272
100272
  constructor() {
100273
100273
  super(...arguments);
100274
100274
  d(this, "intensity");
@@ -100339,7 +100339,7 @@ var Bve = Object.defineProperty, Rve = Object.getOwnPropertyDescriptor, _p = (s,
100339
100339
  (o = s[r]) && (n = (i ? o(e, t, n) : o(n)) || n);
100340
100340
  return i && n && Bve(e, t, n), n;
100341
100341
  }, pP = /* @__PURE__ */ ((s) => (s[s.Performance = 0] = "Performance", s[s.Low = 1] = "Low", s[s.Medium = 2] = "Medium", s[s.High = 3] = "High", s[s.Ultra = 4] = "Ultra", s))(pP || {});
100342
- class wl extends Dr {
100342
+ class wl extends Pr {
100343
100343
  constructor() {
100344
100344
  super(...arguments);
100345
100345
  d(this, "gammaCorrection", !0);
@@ -100378,7 +100378,7 @@ class wl extends Dr {
100378
100378
  }
100379
100379
  }
100380
100380
  _p([
100381
- Pr(),
100381
+ Rr(),
100382
100382
  x()
100383
100383
  ], wl.prototype, "gammaCorrection", 2);
100384
100384
  _p([
@@ -100391,14 +100391,14 @@ _p([
100391
100391
  x(Qt)
100392
100392
  ], wl.prototype, "aoRadius", 2);
100393
100393
  _p([
100394
- Pr(),
100394
+ Rr(),
100395
100395
  x()
100396
100396
  ], wl.prototype, "screenspaceRadius", 2);
100397
100397
  _p([
100398
100398
  x(Qt)
100399
100399
  ], wl.prototype, "color", 2);
100400
100400
  _p([
100401
- Pr(),
100401
+ Rr(),
100402
100402
  x()
100403
100403
  ], wl.prototype, "quality", 2);
100404
100404
  Sc("ScreenSpaceAmbientOcclusionN8", wl);
@@ -100421,7 +100421,7 @@ class m1 extends Be {
100421
100421
  else {
100422
100422
  const t = CE.createPrimitive(Nm.Quad, {
100423
100423
  name: "ShadowCatcher",
100424
- material: new Mr({
100424
+ material: new Ir({
100425
100425
  // HACK heuristic to get approx. the same colors out as with the current default ShadowCatcher material
100426
100426
  // not clear why this is needed; assumption is that the Renderer component does something we're not respecting here
100427
100427
  color: 10066329,
@@ -100819,7 +100819,7 @@ var Gve = Object.defineProperty, Hve = Object.getOwnPropertyDescriptor, Ob = (s,
100819
100819
  (o = s[r]) && (n = (i ? o(e, t, n) : o(n)) || n);
100820
100820
  return i && n && Gve(e, t, n), n;
100821
100821
  };
100822
- const T0 = ie("debugspatialtrigger"), YQ = new Ir(), JQ = new Ir();
100822
+ const T0 = ie("debugspatialtrigger"), YQ = new Er(), JQ = new Er();
100823
100823
  function Vve(s, e) {
100824
100824
  return YQ.mask = s, JQ.mask = e, YQ.test(JQ);
100825
100825
  }
@@ -101699,7 +101699,7 @@ var cbe = Object.defineProperty, lbe = Object.getOwnPropertyDescriptor, TA = (s,
101699
101699
  (o = s[r]) && (n = (i ? o(e, t, n) : o(n)) || n);
101700
101700
  return i && n && cbe(e, t, n), n;
101701
101701
  };
101702
- class Gh extends Dr {
101702
+ class Gh extends Pr {
101703
101703
  constructor() {
101704
101704
  super(...arguments);
101705
101705
  d(this, "offset");
@@ -101852,7 +101852,7 @@ var dbe = Object.defineProperty, fbe = Object.getOwnPropertyDescriptor, Fk = (s,
101852
101852
  (o = s[r]) && (n = (i ? o(e, t, n) : o(n)) || n);
101853
101853
  return i && n && dbe(e, t, n), n;
101854
101854
  };
101855
- class RA extends Dr {
101855
+ class RA extends Pr {
101856
101856
  constructor() {
101857
101857
  super(...arguments);
101858
101858
  d(this, "color");
@@ -102610,7 +102610,7 @@ const Tbe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
102610
102610
  AnimationCurve: rA,
102611
102611
  AnimationExtension: LE,
102612
102612
  AnimationTrackHandler: Y2,
102613
- Animator: Br,
102613
+ Animator: Tr,
102614
102614
  AnimatorController: Ba,
102615
102615
  Antialiasing: rb,
102616
102616
  AudioExtension: lp,
@@ -102640,7 +102640,7 @@ const Tbe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
102640
102640
  CallInfo: bv,
102641
102641
  Camera: Ji,
102642
102642
  CameraTargetReachedEvent: HC,
102643
- Canvas: Rr,
102643
+ Canvas: Br,
102644
102644
  CanvasGroup: Zf,
102645
102645
  CapsuleCollider: nd,
102646
102646
  ChangeMaterialOnClick: gb,
@@ -102700,7 +102700,7 @@ const Tbe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
102700
102700
  LogStats: t6,
102701
102701
  LookAt: SA,
102702
102702
  LookAtConstraint: oA,
102703
- MainModule: kr,
102703
+ MainModule: Dr,
102704
102704
  MaskableGraphic: GE,
102705
102705
  MeshCollider: uA,
102706
102706
  MeshRenderer: XE,
@@ -102780,7 +102780,7 @@ const Tbe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
102780
102780
  Text: oo,
102781
102781
  TextBuilder: fk,
102782
102782
  TextExtension: ZE,
102783
- TextureSheetAnimationModule: Or,
102783
+ TextureSheetAnimationModule: kr,
102784
102784
  TiltShiftEffect: Gh,
102785
102785
  ToneMapping: bb,
102786
102786
  TrailModule: In,
@@ -102816,7 +102816,7 @@ const Tbe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
102816
102816
  XRControllerMovement: vc,
102817
102817
  XRFlag: Sa,
102818
102818
  XRRig: Nk,
102819
- XRState: Cr,
102819
+ XRState: wr,
102820
102820
  __Ignore: w6
102821
102821
  }, Symbol.toStringTag, { value: "Module" }));
102822
102822
  class Bbe extends Be {
@@ -102837,7 +102837,7 @@ K.add("Animation", to);
102837
102837
  K.add("AnimationCurve", rA);
102838
102838
  K.add("AnimationExtension", LE);
102839
102839
  K.add("AnimationTrackHandler", Y2);
102840
- K.add("Animator", Br);
102840
+ K.add("Animator", Tr);
102841
102841
  K.add("AnimatorController", Ba);
102842
102842
  K.add("Antialiasing", rb);
102843
102843
  K.add("AudioExtension", lp);
@@ -102867,7 +102867,7 @@ K.add("Button", fd);
102867
102867
  K.add("CallInfo", bv);
102868
102868
  K.add("Camera", Ji);
102869
102869
  K.add("CameraTargetReachedEvent", HC);
102870
- K.add("Canvas", Rr);
102870
+ K.add("Canvas", Br);
102871
102871
  K.add("CanvasGroup", Zf);
102872
102872
  K.add("CapsuleCollider", nd);
102873
102873
  K.add("ChangeMaterialOnClick", gb);
@@ -102927,7 +102927,7 @@ K.add("LODModel", CA);
102927
102927
  K.add("LogStats", t6);
102928
102928
  K.add("LookAt", SA);
102929
102929
  K.add("LookAtConstraint", oA);
102930
- K.add("MainModule", kr);
102930
+ K.add("MainModule", Dr);
102931
102931
  K.add("MaskableGraphic", GE);
102932
102932
  K.add("MeshCollider", uA);
102933
102933
  K.add("MeshRenderer", XE);
@@ -103010,7 +103010,7 @@ K.add("TestSimulateUserData", b6);
103010
103010
  K.add("Text", oo);
103011
103011
  K.add("TextBuilder", fk);
103012
103012
  K.add("TextExtension", ZE);
103013
- K.add("TextureSheetAnimationModule", Or);
103013
+ K.add("TextureSheetAnimationModule", kr);
103014
103014
  K.add("TiltShiftEffect", Gh);
103015
103015
  K.add("ToneMapping", bb);
103016
103016
  K.add("TrailModule", In);
@@ -103046,7 +103046,7 @@ K.add("XRControllerModel", Bh);
103046
103046
  K.add("XRControllerMovement", vc);
103047
103047
  K.add("XRFlag", Sa);
103048
103048
  K.add("XRRig", Nk);
103049
- K.add("XRState", Cr);
103049
+ K.add("XRState", wr);
103050
103050
  const B0 = Rs, Rbe = ie("debugtypestore");
103051
103051
  Rbe && console.log(K);
103052
103052
  function Pbe(s, e) {
@@ -103653,7 +103653,7 @@ Needle Engine: finished loading ` + i + `
103653
103653
  const t = this.getAttribute("tonemapping") || this.getAttribute("tone-mapping");
103654
103654
  switch (t == null ? void 0 : t.toLowerCase()) {
103655
103655
  case "none":
103656
- this._context.renderer.toneMapping = Er;
103656
+ this._context.renderer.toneMapping = Sr;
103657
103657
  break;
103658
103658
  case "linear":
103659
103659
  this._context.renderer.toneMapping = _m;
@@ -104006,10 +104006,10 @@ class Jbe {
104006
104006
  Ue.raweventqueue_clear(this.__wbg_ptr);
104007
104007
  }
104008
104008
  }
104009
- class br {
104009
+ class vr {
104010
104010
  static __wrap(e) {
104011
104011
  e >>>= 0;
104012
- const t = Object.create(br.prototype);
104012
+ const t = Object.create(vr.prototype);
104013
104013
  return t.__wbg_ptr = e, t;
104014
104014
  }
104015
104015
  __destroy_into_raw() {
@@ -104023,37 +104023,37 @@ class br {
104023
104023
  static generic(e, t, i, n) {
104024
104024
  At(e, lt), At(t, lt), At(i, lt);
104025
104025
  const r = Ue.rawgenericjoint_generic(e.__wbg_ptr, t.__wbg_ptr, i.__wbg_ptr, n);
104026
- return r === 0 ? void 0 : br.__wrap(r);
104026
+ return r === 0 ? void 0 : vr.__wrap(r);
104027
104027
  }
104028
104028
  static spring(e, t, i, n, r) {
104029
104029
  At(n, lt), At(r, lt);
104030
104030
  const o = Ue.rawgenericjoint_spring(e, t, i, n.__wbg_ptr, r.__wbg_ptr);
104031
- return br.__wrap(o);
104031
+ return vr.__wrap(o);
104032
104032
  }
104033
104033
  static rope(e, t, i) {
104034
104034
  At(t, lt), At(i, lt);
104035
104035
  const n = Ue.rawgenericjoint_rope(e, t.__wbg_ptr, i.__wbg_ptr);
104036
- return br.__wrap(n);
104036
+ return vr.__wrap(n);
104037
104037
  }
104038
104038
  static spherical(e, t) {
104039
104039
  At(e, lt), At(t, lt);
104040
104040
  const i = Ue.rawgenericjoint_spherical(e.__wbg_ptr, t.__wbg_ptr);
104041
- return br.__wrap(i);
104041
+ return vr.__wrap(i);
104042
104042
  }
104043
104043
  static prismatic(e, t, i, n, r, o) {
104044
104044
  At(e, lt), At(t, lt), At(i, lt);
104045
104045
  const a = Ue.rawgenericjoint_prismatic(e.__wbg_ptr, t.__wbg_ptr, i.__wbg_ptr, n, r, o);
104046
- return a === 0 ? void 0 : br.__wrap(a);
104046
+ return a === 0 ? void 0 : vr.__wrap(a);
104047
104047
  }
104048
104048
  static fixed(e, t, i, n) {
104049
104049
  At(e, lt), At(t, Ys), At(i, lt), At(n, Ys);
104050
104050
  const r = Ue.rawgenericjoint_fixed(e.__wbg_ptr, t.__wbg_ptr, i.__wbg_ptr, n.__wbg_ptr);
104051
- return br.__wrap(r);
104051
+ return vr.__wrap(r);
104052
104052
  }
104053
104053
  static revolute(e, t, i) {
104054
104054
  At(e, lt), At(t, lt), At(i, lt);
104055
104055
  const n = Ue.rawgenericjoint_revolute(e.__wbg_ptr, t.__wbg_ptr, i.__wbg_ptr);
104056
- return n === 0 ? void 0 : br.__wrap(n);
104056
+ return n === 0 ? void 0 : vr.__wrap(n);
104057
104057
  }
104058
104058
  }
104059
104059
  class Qk {
@@ -104758,27 +104758,27 @@ class Zl {
104758
104758
  switch (this.jointType) {
104759
104759
  case gr.Fixed:
104760
104760
  let c = Xi.intoRaw(this.frame1), l = Xi.intoRaw(this.frame2);
104761
- t = br.fixed(i, c, n, l), c.free(), l.free();
104761
+ t = vr.fixed(i, c, n, l), c.free(), l.free();
104762
104762
  break;
104763
104763
  case gr.Spring:
104764
- t = br.spring(this.length, this.stiffness, this.damping, i, n);
104764
+ t = vr.spring(this.length, this.stiffness, this.damping, i, n);
104765
104765
  break;
104766
104766
  case gr.Rope:
104767
- t = br.rope(this.length, i, n);
104767
+ t = vr.rope(this.length, i, n);
104768
104768
  break;
104769
104769
  case gr.Prismatic:
104770
- e = Te.intoRaw(this.axis), this.limitsEnabled && (r = !0, o = this.limits[0], a = this.limits[1]), t = br.prismatic(i, n, e, r, o, a), e.free();
104770
+ e = Te.intoRaw(this.axis), this.limitsEnabled && (r = !0, o = this.limits[0], a = this.limits[1]), t = vr.prismatic(i, n, e, r, o, a), e.free();
104771
104771
  break;
104772
104772
  case gr.Generic:
104773
104773
  e = Te.intoRaw(this.axis);
104774
104774
  let h = this.axesMask;
104775
- t = br.generic(i, n, e, h);
104775
+ t = vr.generic(i, n, e, h);
104776
104776
  break;
104777
104777
  case gr.Spherical:
104778
- t = br.spherical(i, n);
104778
+ t = vr.spherical(i, n);
104779
104779
  break;
104780
104780
  case gr.Revolute:
104781
- e = Te.intoRaw(this.axis), t = br.revolute(i, n, e), e.free();
104781
+ e = Te.intoRaw(this.axis), t = vr.revolute(i, n, e), e.free();
104782
104782
  }
104783
104783
  return i.free(), n.free(), t;
104784
104784
  }
@@ -105569,7 +105569,7 @@ class c_e {
105569
105569
  this.object = e, this.collider = t;
105570
105570
  }
105571
105571
  }
105572
- const Ws = ie("debugphysics"), DT = ie("debugcolliderplacement"), kT = ie("debugcollisions"), l_e = ie("showcolliders"), OT = ie("debugraycasts"), fo = Symbol("needle component"), Wr = Symbol("physics body"), dz = Symbol("rigidbody");
105572
+ const Ws = ie("debugphysics"), DT = ie("debugcolliderplacement"), kT = ie("debugcollisions"), l_e = ie("showcolliders"), OT = ie("debugraycasts"), fo = Symbol("needle component"), jr = Symbol("physics body"), dz = Symbol("rigidbody");
105573
105573
  let jd;
105574
105574
  globalThis.false = globalThis.false !== void 0 ? globalThis.false : !0;
105575
105575
  Ws && console.log("Use Rapier", !1, globalThis.false);
@@ -105612,8 +105612,8 @@ const U0 = class {
105612
105612
  if (!e)
105613
105613
  return;
105614
105614
  this.validate();
105615
- const t = e[Wr];
105616
- if (e[Wr] = null, t && this.world) {
105615
+ const t = e[jr];
105616
+ if (e[jr] = null, t && this.world) {
105617
105617
  const o = this.objects.findIndex((a) => a === e);
105618
105618
  if (o >= 0) {
105619
105619
  const a = this.bodies[o];
@@ -105634,13 +105634,13 @@ const U0 = class {
105634
105634
  if (e.isCollider === !0)
105635
105635
  console.warn("TODO: implement updating collider position");
105636
105636
  else {
105637
- const n = e, r = n[Wr];
105637
+ const n = e, r = n[jr];
105638
105638
  r && this.syncPhysicsBody(n.gameObject, r, t, i);
105639
105639
  }
105640
105640
  }
105641
105641
  updateProperties(e) {
105642
105642
  if (this.validate(), e.isCollider) {
105643
- const t = e, i = t[Wr];
105643
+ const t = e, i = t[jr];
105644
105644
  i && (this.internalUpdateColliderProperties(t, i), t.sharedMaterial && this.updatePhysicsMaterial(t));
105645
105645
  } else {
105646
105646
  const t = e, i = this.internal_getRigidbody(t);
@@ -105889,7 +105889,7 @@ const U0 = class {
105889
105889
  updatePhysicsMaterial(e) {
105890
105890
  if (!e)
105891
105891
  return;
105892
- const t = e.sharedMaterial, i = e[Wr];
105892
+ const t = e.sharedMaterial, i = e[jr];
105893
105893
  if (i && t) {
105894
105894
  if (t.bounciness !== void 0 && i.setRestitution(t.bounciness), t.bounceCombine !== void 0)
105895
105895
  switch (t.bounceCombine) {
@@ -105925,7 +105925,7 @@ const U0 = class {
105925
105925
  }
105926
105926
  /** Get the rapier body for a Needle component */
105927
105927
  getBody(e) {
105928
- return e ? e[Wr] : null;
105928
+ return e ? e[jr] : null;
105929
105929
  }
105930
105930
  /** Get the Needle Engine component for a rapier object */
105931
105931
  getComponent(e) {
@@ -105974,7 +105974,7 @@ const U0 = class {
105974
105974
  ((o = e.attachedRigidbody) == null ? void 0 : o.autoMass) === !1 && (t.setDensity(1e-6), t.setMass(1e-6));
105975
105975
  try {
105976
105976
  const a = this.world.createCollider(t, n);
105977
- return a[fo] = e, e[Wr] = a, a.setActiveEvents(tS.COLLISION_EVENTS), a.setActiveCollisionTypes(iS.ALL), this.objects.push(e), this.bodies.push(a), this.updateColliderCollisionGroups(e), a;
105977
+ return a[fo] = e, e[jr] = a, a.setActiveEvents(tS.COLLISION_EVENTS), a.setActiveCollisionTypes(iS.ALL), this.objects.push(e), this.bodies.push(a), this.updateColliderCollisionGroups(e), a;
105978
105978
  } catch (a) {
105979
105979
  return console.error('Error creating collider "' + e.name + `"
105980
105980
  Error:`, a), null;
@@ -105986,7 +105986,7 @@ Error:`, a), null;
105986
105986
  * @param collider - The collider to update.
105987
105987
  */
105988
105988
  updateColliderCollisionGroups(e) {
105989
- const t = e[Wr], i = e.membership;
105989
+ const t = e[jr], i = e.membership;
105990
105990
  let n = 0;
105991
105991
  if (i == null)
105992
105992
  n = 65535;
@@ -106012,13 +106012,13 @@ Error:`, a), null;
106012
106012
  let i = null;
106013
106013
  if (e.attachedRigidbody) {
106014
106014
  const n = e.attachedRigidbody;
106015
- if (i = n[Wr], !i) {
106015
+ if (i = n[jr], !i) {
106016
106016
  const r = n.isKinematic && !DT;
106017
106017
  Ws && console.log("Create rigidbody", r);
106018
106018
  const o = r ? jd.RigidBodyDesc.kinematicPositionBased() : jd.RigidBodyDesc.dynamic(), a = Nt(e.attachedRigidbody.gameObject);
106019
106019
  o.setTranslation(a.x, a.y, a.z), o.setRotation(Ni(e.attachedRigidbody.gameObject)), o.centerOfMass = new jd.Vector3(n.centerOfMass.x, n.centerOfMass.y, n.centerOfMass.z), i = this.world.createRigidBody(o), this.bodies.push(i), this.objects.push(n);
106020
106020
  }
106021
- i[fo] = n, n[Wr] = i, this.internalUpdateRigidbodyProperties(n, i), this.getRigidbodyRelativeMatrix(e.gameObject, n.gameObject, t), e[dz] = i;
106021
+ i[fo] = n, n[jr] = i, this.internalUpdateRigidbodyProperties(n, i), this.getRigidbodyRelativeMatrix(e.gameObject, n.gameObject, t), e[dz] = i;
106022
106022
  } else {
106023
106023
  const n = jd.RigidBodyDesc.kinematicPositionBased(), r = Nt(e.gameObject);
106024
106024
  n.setTranslation(r.x, r.y, r.z), n.setRotation(Ni(e.gameObject)), i = this.world.createRigidBody(n), t.identity(), i[fo] = null;
@@ -106026,7 +106026,7 @@ Error:`, a), null;
106026
106026
  return i;
106027
106027
  }
106028
106028
  internal_getRigidbody(e) {
106029
- return e.isCollider === !0 ? e[dz] : e[Wr];
106029
+ return e.isCollider === !0 ? e[dz] : e[jr];
106030
106030
  }
106031
106031
  internalUpdateColliderProperties(e, t) {
106032
106032
  const i = t.shape;
@@ -106168,7 +106168,7 @@ Error:`, a), null;
106168
106168
  console.error("Physics world not initialized");
106169
106169
  return;
106170
106170
  }
106171
- const i = e[Wr], n = t[Wr];
106171
+ const i = e[jr], n = t[jr];
106172
106172
  this.calculateJointRelativeMatrices(e.gameObject, t.gameObject, this._tempMatrix), this._tempMatrix.decompose(this._tempPosition, this._tempQuaternion, this._tempScale);
106173
106173
  const r = Zl.fixed(
106174
106174
  U0.centerConnectionPos,
@@ -106184,7 +106184,7 @@ Error:`, a), null;
106184
106184
  console.error("Physics world not initialized");
106185
106185
  return;
106186
106186
  }
106187
- const r = e[Wr], o = t[Wr];
106187
+ const r = e[jr], o = t[jr];
106188
106188
  this.calculateJointRelativeMatrices(e.gameObject, t.gameObject, this._tempMatrix), this._tempMatrix.decompose(this._tempPosition, this._tempQuaternion, this._tempScale);
106189
106189
  const a = jd.JointData.revolute(i, this._tempPosition, n), c = this.world.createImpulseJoint(a, r, o, !0);
106190
106190
  Ws && console.log("ADD HINGE JOINT", c);
@@ -106536,7 +106536,7 @@ Object.defineProperty(Ut.prototype, "far", {
106536
106536
  }
106537
106537
  });
106538
106538
  const gz = "needle-button";
106539
- var Af, yf, vf, mr, nh, vm, hS, Z6, uS, $6;
106539
+ var Af, yf, vf, Xr, nh, vm, hS, Z6, uS, $6;
106540
106540
  class K6 extends HTMLElement {
106541
106541
  constructor() {
106542
106542
  super(...arguments);
@@ -106547,29 +106547,29 @@ class K6 extends HTMLElement {
106547
106547
  /** These are the default styles that can be overridden by the user from the outside by styling <needle-button> */
106548
106548
  Sl(this, vf, void 0);
106549
106549
  /** This is the button that was generated using one of the factories */
106550
- Sl(this, mr, void 0);
106550
+ Sl(this, Xr, void 0);
106551
106551
  /** If AR or VR is requested we create and use the webxr button factory to create a button with default behaviour */
106552
106552
  Sl(this, nh, void 0);
106553
106553
  Sl(this, vm, void 0);
106554
106554
  d(this, "onclick", (t) => {
106555
- t.defaultPrevented || _i(this, mr) && _i(this, mr).click();
106555
+ t.defaultPrevented || xi(this, Xr) && xi(this, Xr).click();
106556
106556
  });
106557
106557
  }
106558
106558
  attributeChangedCallback(t, i, n) {
106559
106559
  S1(this, hS, Z6).call(this);
106560
106560
  }
106561
106561
  }
106562
- Af = new WeakMap(), yf = new WeakMap(), vf = new WeakMap(), mr = new WeakMap(), nh = new WeakMap(), vm = new WeakMap(), hS = new WeakSet(), Z6 = function() {
106562
+ Af = new WeakMap(), yf = new WeakMap(), vf = new WeakMap(), Xr = new WeakMap(), nh = new WeakMap(), vm = new WeakMap(), hS = new WeakSet(), Z6 = function() {
106563
106563
  var i, n;
106564
- if ((i = _i(this, mr)) == null || i.remove(), this.getAttribute("ar") != null)
106565
- _i(this, nh) ?? Fa(this, nh, new Ju()), Fa(this, mr, _i(this, nh).createARButton());
106564
+ if ((i = xi(this, Xr)) == null || i.remove(), this.getAttribute("ar") != null)
106565
+ xi(this, nh) ?? Fa(this, nh, new Ju()), Fa(this, Xr, xi(this, nh).createARButton());
106566
106566
  else if (this.getAttribute("vr") != null)
106567
- _i(this, nh) ?? Fa(this, nh, new Ju()), Fa(this, mr, _i(this, nh).createVRButton());
106567
+ xi(this, nh) ?? Fa(this, nh, new Ju()), Fa(this, Xr, xi(this, nh).createVRButton());
106568
106568
  else if (this.getAttribute("quicklook") != null)
106569
- _i(this, nh) ?? Fa(this, nh, new Ju()), Fa(this, mr, _i(this, nh).createQuicklookButton());
106569
+ xi(this, nh) ?? Fa(this, nh, new Ju()), Fa(this, Xr, xi(this, nh).createQuicklookButton());
106570
106570
  else
106571
106571
  return;
106572
- _i(this, Af) ?? Fa(this, Af, this.attachShadow({ mode: "open" })), _i(this, yf) ?? Fa(this, yf, document.createElement("slot")), _i(this, vf) ?? Fa(this, vf, document.createElement("style")), _i(this, vf).innerHTML = `
106572
+ xi(this, Af) ?? Fa(this, Af, this.attachShadow({ mode: "open" })), xi(this, yf) ?? Fa(this, yf, document.createElement("slot")), xi(this, vf) ?? Fa(this, vf, document.createElement("style")), xi(this, vf).innerHTML = `
106573
106573
  button {
106574
106574
  all: initial;
106575
106575
  cursor: inherit;
@@ -106578,7 +106578,7 @@ Af = new WeakMap(), yf = new WeakMap(), vf = new WeakMap(), mr = new WeakMap(),
106578
106578
  gap: inherit;
106579
106579
  white-space: nowrap;
106580
106580
  }
106581
- `, this.getAttribute("unstyled") != null || (_i(this, vf).innerHTML += `
106581
+ `, this.getAttribute("unstyled") != null || (xi(this, vf).innerHTML += `
106582
106582
  :host {
106583
106583
  display: inline-block;
106584
106584
  background: rgba(255, 255, 255, .8);
@@ -106603,13 +106603,13 @@ Af = new WeakMap(), yf = new WeakMap(), vf = new WeakMap(), mr = new WeakMap(),
106603
106603
  justify-content: center;
106604
106604
  gap: .5rem;
106605
106605
  }
106606
- `), _i(this, yf).innerHTML = _i(this, mr).innerHTML, _i(this, yf).style.cssText = "display: flex; align-items: center; justify-content: center;", _i(this, mr).innerHTML = _i(this, yf).outerHTML, _i(this, Af).innerHTML = _i(this, mr).outerHTML, _i(this, Af).prepend(_i(this, vf)), FC(GR, { element: _i(this, Af) }), (n = _i(this, vm)) == null || n.disconnect(), _i(this, vm) ?? Fa(this, vm, new MutationObserver(() => S1(this, uS, $6).call(this))), _i(this, vm).observe(_i(this, mr), { attributes: !0 });
106606
+ `), xi(this, yf).innerHTML = xi(this, Xr).innerHTML, xi(this, yf).style.cssText = "display: flex; align-items: center; justify-content: center;", xi(this, Xr).innerHTML = xi(this, yf).outerHTML, xi(this, Af).innerHTML = xi(this, Xr).outerHTML, xi(this, Af).prepend(xi(this, vf)), FC(GR, { element: xi(this, Af) }), (n = xi(this, vm)) == null || n.disconnect(), xi(this, vm) ?? Fa(this, vm, new MutationObserver(() => S1(this, uS, $6).call(this))), xi(this, vm).observe(xi(this, Xr), { attributes: !0 });
106607
106607
  }, uS = new WeakSet(), $6 = function() {
106608
106608
  var t;
106609
- if (_i(this, mr)) {
106609
+ if (xi(this, Xr)) {
106610
106610
  if ((t = this.style.display) != null && t.length)
106611
106611
  return;
106612
- console.log(_i(this, mr).style.display), _i(this, mr).style.display === "none" ? this.style.display = "none" : this.style.display = "";
106612
+ xi(this, Xr).style.display === "none" ? this.style.display = "none" : this.style.display = "";
106613
106613
  }
106614
106614
  }, d(K6, "observedAttributes", ["ar", "vr", "quicklook"]);
106615
106615
  typeof window < "u" && !window.customElements.get(gz) && window.customElements.define(gz, K6);
@@ -107649,7 +107649,7 @@ export {
107649
107649
  rA as AnimationCurve,
107650
107650
  LE as AnimationExtension,
107651
107651
  Y2 as AnimationTrackHandler,
107652
- Br as Animator,
107652
+ Tr as Animator,
107653
107653
  Kd as AnimatorConditionMode,
107654
107654
  Ba as AnimatorController,
107655
107655
  t9 as AnimatorControllerParameterType,
@@ -107691,7 +107691,7 @@ export {
107691
107691
  bv as CallInfo,
107692
107692
  Ji as Camera,
107693
107693
  HC as CameraTargetReachedEvent,
107694
- Rr as Canvas,
107694
+ Br as Canvas,
107695
107695
  Zf as CanvasGroup,
107696
107696
  nd as CapsuleCollider,
107697
107697
  gb as ChangeMaterialOnClick,
@@ -107797,7 +107797,7 @@ export {
107797
107797
  Ta as LogType,
107798
107798
  SA as LookAt,
107799
107799
  oA as LookAtConstraint,
107800
- kr as MainModule,
107800
+ Dr as MainModule,
107801
107801
  $5 as MarkerType,
107802
107802
  GE as MaskableGraphic,
107803
107803
  it as Mathf,
@@ -107860,7 +107860,7 @@ export {
107860
107860
  jue as PlayerViewManager,
107861
107861
  tb as PointerEventData,
107862
107862
  E2 as PointerType,
107863
- Dr as PostProcessingEffect,
107863
+ Pr as PostProcessingEffect,
107864
107864
  lk as PostProcessingHandler,
107865
107865
  _b as PostProcessingManager,
107866
107866
  Ab as PreliminaryAction,
@@ -107935,7 +107935,7 @@ export {
107935
107935
  oo as Text,
107936
107936
  fk as TextBuilder,
107937
107937
  ZE as TextExtension,
107938
- Or as TextureSheetAnimationModule,
107938
+ kr as TextureSheetAnimationModule,
107939
107939
  Gh as TiltShiftEffect,
107940
107940
  ede as Time,
107941
107941
  bb as ToneMapping,
@@ -107949,7 +107949,7 @@ export {
107949
107949
  K as TypeStore,
107950
107950
  q2 as UIRaycastUtils,
107951
107951
  RE as UIRootComponent,
107952
- Sr as USDObject,
107952
+ Cr as USDObject,
107953
107953
  tae as USDWriter,
107954
107954
  Wn as USDZExporter,
107955
107955
  gf as USDZText,
@@ -107987,7 +107987,7 @@ export {
107987
107987
  vc as XRControllerMovement,
107988
107988
  Sa as XRFlag,
107989
107989
  Nk as XRRig,
107990
- Cr as XRState,
107990
+ wr as XRState,
107991
107991
  uh as XRStateFlag,
107992
107992
  w6 as __Ignore,
107993
107993
  Mae as __internalNotifyObjectDestroyed,
@@ -108201,6 +108201,6 @@ export {
108201
108201
  xG as unwatchWrite,
108202
108202
  uhe as upload_file,
108203
108203
  gte as useForAutoFit,
108204
- Pr as validate,
108204
+ Rr as validate,
108205
108205
  vD as watchWrite
108206
108206
  };