@needle-tools/engine 4.1.0-beta.2 → 4.1.0-beta.4

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.
Files changed (33) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/gltf-progressive.js +59 -59
  3. package/dist/gltf-progressive.light.js +59 -59
  4. package/dist/gltf-progressive.light.min.js +6 -6
  5. package/dist/gltf-progressive.light.umd.cjs +5 -5
  6. package/dist/gltf-progressive.min.js +6 -6
  7. package/dist/gltf-progressive.umd.cjs +5 -5
  8. package/dist/needle-engine.bundle.js +733 -742
  9. package/dist/needle-engine.bundle.light.js +864 -873
  10. package/dist/needle-engine.bundle.light.min.js +66 -66
  11. package/dist/needle-engine.bundle.light.umd.cjs +45 -45
  12. package/dist/needle-engine.bundle.min.js +66 -66
  13. package/dist/needle-engine.bundle.umd.cjs +45 -45
  14. package/lib/engine/engine_context.d.ts +2 -2
  15. package/lib/engine/engine_context.js +25 -4
  16. package/lib/engine/engine_context.js.map +1 -1
  17. package/lib/engine/engine_networking_auto.js +6 -11
  18. package/lib/engine/engine_networking_auto.js.map +1 -1
  19. package/lib/engine-components/Camera.d.ts +7 -4
  20. package/lib/engine-components/Camera.js +13 -10
  21. package/lib/engine-components/Camera.js.map +1 -1
  22. package/lib/engine-components/OrbitControls.js +1 -1
  23. package/lib/engine-components/OrbitControls.js.map +1 -1
  24. package/lib/engine-components-experimental/networking/PlayerSync.d.ts +4 -1
  25. package/lib/engine-components-experimental/networking/PlayerSync.js +16 -29
  26. package/lib/engine-components-experimental/networking/PlayerSync.js.map +1 -1
  27. package/package.json +2 -2
  28. package/plugins/vite/transform.js +3 -3
  29. package/src/engine/engine_context.ts +29 -8
  30. package/src/engine/engine_networking_auto.ts +7 -22
  31. package/src/engine-components/Camera.ts +14 -11
  32. package/src/engine-components/OrbitControls.ts +1 -1
  33. package/src/engine-components-experimental/networking/PlayerSync.ts +17 -36
@@ -4,13 +4,13 @@ var r = (n, t, e) => (kx(n, typeof t != "symbol" ? t + "" : t, e), e), Of = (n,
4
4
  if (!t.has(n))
5
5
  throw TypeError("Cannot " + e);
6
6
  };
7
- var de = (n, t, e) => (Of(n, t, "read from private field"), e ? e.call(n) : t.get(n)), ui = (n, t, e) => {
7
+ var de = (n, t, e) => (Of(n, t, "read from private field"), e ? e.call(n) : t.get(n)), fi = (n, t, e) => {
8
8
  if (t.has(n))
9
9
  throw TypeError("Cannot add the same private member more than once");
10
10
  t instanceof WeakSet ? t.add(n) : t.set(n, e);
11
11
  }, rs = (n, t, e, i) => (Of(n, t, "write to private field"), i ? i.call(n, e) : t.set(n, e), e);
12
12
  var Uo = (n, t, e) => (Of(n, t, "access private method"), e);
13
- import { g as oe, V as v, h as pe, Q as W, P as Xs, i as ge, j as Ki, k as ms, U as ho, M as X, W as Mr, T as We, E as Lt, d as Ci, e as ri, l as ae, m as Zb, n as Jb, G as Jm, a as Se, o as e0, c as ne, L as vo, O as L, R as Rr, p as On, A as Pi, q as De, D as Oi, B as uo, r as fo, s as _u, t as Sc, u as Tx, v as Ax, w as Ex, x as Ix, F as t0, y as Kp, z as i0, H as Cc, I as yt, J as Dx, K as Lx, N as s0, X as n0, S as bu, Y as _r, Z as vu, _ as jx, $ as Mn, a0 as o0, a1 as Bx, a2 as Fx, a3 as zx, a4 as Ux, a5 as Nx, a6 as rr, b as xa, a7 as ja, a8 as Nc, a9 as Yt, aa as $x, ab as r0, ac as eg, ad as wu, ae as Rn, af as gs, C as Wx, ag as Ba, ah as Vx, ai as Hx, aj as wo, ak as Gx, al as kd, am as qx, an as Zp, ao as tg, ap as Xx, aq as xo, ar as Ly, as as ig, at as Qx, au as Yx, av as Jp, aw as sg, ax as ng, ay as Kx, az as Zx, aA as Jx, aB as eS, aC as tS, aD as iS, aE as sS, aF as nS, aG as oS, aH as rS, aI as aS, aJ as lS, aK as cS, aL as hS, aM as dS, aN as uS, aO as fS, aP as pS, aQ as mS, aR as gS, aS as jy, aT as a0, aU as yS, aV as _S, aW as bS, aX as vS, aY as wS, aZ as xS, a_ as SS, a$ as CS, b0 as By, b1 as em, b2 as PS, b3 as Fy, b4 as OS, b5 as MS, b6 as l0, b7 as RS, b8 as kS, b9 as TS, ba as AS, bb as ES, bc as IS, bd as DS, be as Pc, bf as xu, bg as og, bh as rg, bi as Su, bj as LS, bk as jS, bl as BS, bm as FS, bn as zS, bo as US, bp as NS, bq as $S, br as zy, bs as c0, bt as Td, bu as WS, bv as VS } from "./three.js";
13
+ import { g as oe, V as v, h as pe, Q as W, P as Xs, i as ye, j as Ki, k as ms, U as ho, M as X, W as Mr, T as We, E as Lt, d as Ci, e as ai, l as ae, m as Zb, n as Jb, G as Jm, a as Se, o as e0, c as ne, L as vo, O as L, R as Rr, p as Pn, A as Pi, q as De, D as Oi, B as uo, r as fo, s as _u, t as Sc, u as Tx, v as Ax, w as Ex, x as Ix, F as t0, y as Kp, z as i0, H as Cc, I as yt, J as Dx, K as Lx, N as s0, X as n0, S as bu, Y as _r, Z as vu, _ as jx, $ as On, a0 as o0, a1 as Bx, a2 as Fx, a3 as zx, a4 as Ux, a5 as Nx, a6 as rr, b as xa, a7 as ja, a8 as Nc, a9 as Kt, aa as $x, ab as r0, ac as eg, ad as wu, ae as Mn, af as gs, C as Wx, ag as Ba, ah as Vx, ai as Hx, aj as wo, ak as Gx, al as kd, am as qx, an as Zp, ao as tg, ap as Xx, aq as xo, ar as Ly, as as ig, at as Qx, au as Yx, av as Jp, aw as sg, ax as ng, ay as Kx, az as Zx, aA as Jx, aB as eS, aC as tS, aD as iS, aE as sS, aF as nS, aG as oS, aH as rS, aI as aS, aJ as lS, aK as cS, aL as hS, aM as dS, aN as uS, aO as fS, aP as pS, aQ as mS, aR as gS, aS as jy, aT as a0, aU as yS, aV as _S, aW as bS, aX as vS, aY as wS, aZ as xS, a_ as SS, a$ as CS, b0 as By, b1 as em, b2 as PS, b3 as Fy, b4 as OS, b5 as MS, b6 as l0, b7 as RS, b8 as kS, b9 as TS, ba as AS, bb as ES, bc as IS, bd as DS, be as Pc, bf as xu, bg as og, bh as rg, bi as Su, bj as LS, bk as jS, bl as BS, bm as FS, bn as zS, bo as US, bp as NS, bq as $S, br as zy, bs as c0, bt as Td, bu as WS, bv as VS } from "./three.js";
14
14
  import { c as ag, g as h0, L as Qr, N as Je, a as HS, b as GS, s as qS, d as XS } from "./gltf-progressive.js";
15
15
  import { a as Fa, F as QS, T as YS, b as KS, G as br, c as d0, E as Ad, R as tm, S as ZS, n as JS, O as u0, P as e1, H as t1, V as i1, d as f0, s as p0, z as s1, X as n1, e as o1, L as r1, f as a1, g as l1, K as c1, h as h1, I as d1, i as u1, j as f1, k as lg, l as m0, m as p1 } from "./three-examples.js";
16
16
  import { f as m1, M as g1, $ as Uy, B as y1, v as Ny, m as $y, S as g0, a as cg, c as _1, b as Mf, d as b1, P as v1, R as pn, T as Wy, C as w1, V as x1, e as S1, W as C1, g as P1, h as O1 } from "./vendor.js";
@@ -27,7 +27,7 @@ function v0(n) {
27
27
  Gy !== n && (Gy = n, b0 = new n());
28
28
  }
29
29
  const kf = /* @__PURE__ */ new Map();
30
- function li(n = ((t) => (t = globalThis.location) == null ? void 0 : t.hostname)()) {
30
+ function ci(n = ((t) => (t = globalThis.location) == null ? void 0 : t.hostname)()) {
31
31
  if (kf.has(n))
32
32
  return kf.get(n);
33
33
  const e = /(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})|localhost/.test(n);
@@ -634,7 +634,7 @@ function V1() {
634
634
  return;
635
635
  const t = n.error;
636
636
  if (t === void 0) {
637
- li() && console.warn("Received unknown error", n, n.target);
637
+ ci() && console.warn("Received unknown error", n, n.target);
638
638
  return;
639
639
  }
640
640
  Bs(2, t, n.filename, n.lineno), nm(n);
@@ -1155,7 +1155,7 @@ class us {
1155
1155
  return null;
1156
1156
  }
1157
1157
  }
1158
- r(us, "planeGeometry", new Xs(2, 2, 1, 1)), r(us, "renderer"), r(us, "perspectiveCam", new ge()), r(us, "scene", new Ki()), r(us, "vertex", `
1158
+ r(us, "planeGeometry", new Xs(2, 2, 1, 1)), r(us, "renderer"), r(us, "perspectiveCam", new ye()), r(us, "scene", new Ki()), r(us, "vertex", `
1159
1159
  varying vec2 vUv;
1160
1160
  void main(){
1161
1161
  vUv = uv;
@@ -1273,7 +1273,7 @@ function j0(n, t, e, i) {
1273
1273
  return !1;
1274
1274
  if (t["material:fbx"] != null)
1275
1275
  return !0;
1276
- const s = new ri();
1276
+ const s = new ai();
1277
1277
  s["material:fbx"] = t;
1278
1278
  const o = t;
1279
1279
  return o && (o.map ? s.color.set(1, 1, 1) : s.color.copyLinearToSRGB(o.color), s.emissive.copyLinearToSRGB(o.emissive), s.emissiveIntensity = o.emissiveIntensity, s.opacity = o.opacity, s.displacementScale = o.displacementScale, s.transparent = o.transparent, s.bumpMap = o.bumpMap, s.aoMap = o.aoMap, s.map = o.map, s.displacementMap = o.displacementMap, s.emissiveMap = o.emissiveMap, s.normalMap = o.normalMap, s.envMap = o.envMap, s.alphaMap = o.alphaMap, s.metalness = o.reflectivity, o.shininess && (s.roughness = 1 - Math.sqrt(o.shininess) / 10), s.needsUpdate = !0), e === void 0 ? n.material = s : i[e] = s, !0;
@@ -1313,7 +1313,7 @@ class gC {
1313
1313
  r(this, "onBeforeRender", () => {
1314
1314
  var e, i;
1315
1315
  const t = (e = this.context) == null ? void 0 : e.mainCamera;
1316
- if (this.context && t instanceof ge) {
1316
+ if (this.context && t instanceof ye) {
1317
1317
  const s = this.getRoot();
1318
1318
  Number.isNaN(s.position.x) && s.position.set(0, 0, 0), Number.isNaN(s.quaternion.x) && s.quaternion.set(0, 0, 0, 1), this.context.scene.add(this.targetObject);
1319
1319
  const o = ((i = this.context.xr) == null ? void 0 : i.rigScale) ?? 1, a = 3.5 * o, l = t.worldForward;
@@ -1427,9 +1427,9 @@ class gC {
1427
1427
  return this.root = new Oe.Block(e), this.root;
1428
1428
  }
1429
1429
  }
1430
- let Xt = null;
1430
+ let Qt = null;
1431
1431
  function yC() {
1432
- Xt || (Xt = new gC()), Xt.onEnable();
1432
+ Qt || (Qt = new gC()), Qt.onEnable();
1433
1433
  for (const n in ec) {
1434
1434
  ec[n] = console[n];
1435
1435
  let t = !1;
@@ -1445,7 +1445,7 @@ function yC() {
1445
1445
  }
1446
1446
  }
1447
1447
  function _C() {
1448
- Xt == null || Xt.onDisable();
1448
+ Qt == null || Qt.onDisable();
1449
1449
  for (const n in ec)
1450
1450
  console[n] = ec[n];
1451
1451
  }
@@ -1454,13 +1454,13 @@ function B0(n, ...t) {
1454
1454
  try {
1455
1455
  switch (vl.clear(), n) {
1456
1456
  case "log":
1457
- Xt == null || Xt.addLog("log", e());
1457
+ Qt == null || Qt.addLog("log", e());
1458
1458
  break;
1459
1459
  case "warn":
1460
- Xt == null || Xt.addLog("warn", e());
1460
+ Qt == null || Qt.addLog("warn", e());
1461
1461
  break;
1462
1462
  case "error":
1463
- Xt == null || Xt.addLog("error", e());
1463
+ Qt == null || Qt.addLog("error", e());
1464
1464
  break;
1465
1465
  }
1466
1466
  } catch (o) {
@@ -1566,17 +1566,17 @@ function U() {
1566
1566
  return am;
1567
1567
  if (Lf !== void 0)
1568
1568
  return Lf;
1569
- let n = li();
1569
+ let n = ci();
1570
1570
  return n || (n = window.location.hostname.endsWith(".local-credentialless.webcontainer.io")), Lf = n, n;
1571
1571
  }
1572
1572
  function lD(n) {
1573
1573
  am = n;
1574
1574
  }
1575
- let Qt, _i = null, Fs = null, wl = !1, r_ = null;
1575
+ let Yt, _i = null, Fs = null, wl = !1, r_ = null;
1576
1576
  const F0 = "terminal", Fl = S("console"), vC = S("noerrors") || S("noconsole") || window.crossOriginIsolated;
1577
1577
  Fl && z0();
1578
- if (!vC && (Fl || li())) {
1579
- if (li() && !Fl) {
1578
+ if (!vC && (Fl || ci())) {
1579
+ if (ci() && !Fl) {
1580
1580
  const t = new URL(window.location.href);
1581
1581
  t.searchParams.set("console", "1"), console.log('🌵 Tip: You can add the "?console" query parameter to the url to show the debug console (on mobile it will automatically open in the bottom right corner when your get errors during development. In VR a spatial console will appear.)', `
1582
1582
  Open this page to get the console: ` + t.toString());
@@ -1585,7 +1585,7 @@ Open this page to get the console: ` + t.toString());
1585
1585
  if ((n || Fl) && (V1(), U0(), N0(!0), n)) {
1586
1586
  const t = document.querySelector("needle-engine");
1587
1587
  t == null || t.addEventListener("enter-ar", () => {
1588
- (Fl || Qt || ug() > 0) && S("noerrors");
1588
+ (Fl || Yt || ug() > 0) && S("noerrors");
1589
1589
  }), t == null || t.addEventListener("exit-ar", () => {
1590
1590
  PC();
1591
1591
  });
@@ -1593,14 +1593,14 @@ Open this page to get the console: ` + t.toString());
1593
1593
  }
1594
1594
  const lm = Symbol("consoleParent");
1595
1595
  function z0() {
1596
- if (Qt) {
1597
- Qt.showSwitch();
1596
+ if (Yt) {
1597
+ Yt.showSwitch();
1598
1598
  return;
1599
1599
  }
1600
1600
  N0();
1601
1601
  }
1602
1602
  function wC() {
1603
- Qt && (Qt.hide(), Qt.hideSwitch());
1603
+ Yt && (Yt.hide(), Yt.hideSwitch());
1604
1604
  }
1605
1605
  function U0() {
1606
1606
  r_ || (r_ = setInterval(xC, 500));
@@ -1620,21 +1620,21 @@ function PC() {
1620
1620
  _i && _i[lm] && _i[lm].appendChild(_i);
1621
1621
  }
1622
1622
  function N0(n = !1) {
1623
- if (Qt !== void 0 || wl)
1623
+ if (Yt !== void 0 || wl)
1624
1624
  return;
1625
1625
  wl = !0;
1626
1626
  const t = document.createElement("script");
1627
1627
  t.onload = () => {
1628
1628
  if (!globalThis.VConsole) {
1629
- console.warn("🌵 Debug console failed to load."), wl = !1, Qt = null;
1629
+ console.warn("🌵 Debug console failed to load."), wl = !1, Yt = null;
1630
1630
  return;
1631
1631
  }
1632
- wl = !1, U0(), Qt = new VConsole({
1632
+ wl = !1, U0(), Yt = new VConsole({
1633
1633
  // defaultPlugins: ['system', 'network'],
1634
1634
  pluginOrder: ["default", "needle-console"]
1635
1635
  });
1636
1636
  const e = globalThis["needle:codegen_files"];
1637
- if (e && e.length > 0 && Qt.addPlugin(OC()), _i = RC(), _i && (_i[lm] = _i.parentElement, _i.style.position = "absolute", _i.style.zIndex = Number.MAX_SAFE_INTEGER.toString()), Qt.setSwitchPosition(20, 30), Fs = MC(), Fs) {
1637
+ if (e && e.length > 0 && Yt.addPlugin(OC()), _i = RC(), _i && (_i[lm] = _i.parentElement, _i.style.position = "absolute", _i.style.zIndex = Number.MAX_SAFE_INTEGER.toString()), Yt.setSwitchPosition(20, 30), Fs = MC(), Fs) {
1638
1638
  Fs.innerText = F0, Fs.addEventListener("click", CC);
1639
1639
  const i = document.createElement("style"), s = 40;
1640
1640
  i.innerHTML = `
@@ -1699,7 +1699,7 @@ function N0(n = !1) {
1699
1699
  `, _i == null || _i.prepend(i), n === !0 && ug() <= 0 && wC(), console.log("🌵 Debug console has loaded");
1700
1700
  }
1701
1701
  }, t.onerror = () => {
1702
- console.warn("🌵 Debug console failed to load." + (window.crossOriginIsolated ? "This page is using cross-origin isolation, so external scripts can't be loaded." : "")), wl = !1, Qt = null;
1702
+ console.warn("🌵 Debug console failed to load." + (window.crossOriginIsolated ? "This page is using cross-origin isolation, so external scripts can't be loaded." : "")), wl = !1, Yt = null;
1703
1703
  }, t.src = "https://unpkg.com/vconsole@latest/dist/vconsole.min.js", document.body.appendChild(t);
1704
1704
  }
1705
1705
  function OC() {
@@ -1728,7 +1728,7 @@ function OC() {
1728
1728
  i.push({
1729
1729
  name: "Open in new window ↗",
1730
1730
  onClick: function(s) {
1731
- window.open(n.fullUrl, "_blank"), Qt == null || Qt.hide();
1731
+ window.open(n.fullUrl, "_blank"), Yt == null || Yt.hide();
1732
1732
  }
1733
1733
  }), i.push({
1734
1734
  name: "Reload",
@@ -1754,15 +1754,15 @@ function RC() {
1754
1754
  return n || null;
1755
1755
  }
1756
1756
  const $0 = S("debugdefines");
1757
- Po('if(!globalThis[""4.1.0-beta.2""]) globalThis[""4.1.0-beta.2""] = "0.0.0";');
1757
+ Po('if(!globalThis[""4.1.0-beta.4""]) globalThis[""4.1.0-beta.4""] = "0.0.0";');
1758
1758
  Po('if(!globalThis[""undefined""]) globalThis[""undefined""] = "unknown";');
1759
- Po('if(!globalThis[""Wed Jan 29 2025 17:57:39 GMT+0100 (Central European Standard Time)""]) globalThis[""Wed Jan 29 2025 17:57:39 GMT+0100 (Central European Standard Time)""] = "unknown";');
1759
+ Po('if(!globalThis[""Mon Feb 03 2025 09:35:07 GMT+0100 (Central European Standard Time)""]) globalThis[""Mon Feb 03 2025 09:35:07 GMT+0100 (Central European Standard Time)""] = "unknown";');
1760
1760
  Po('if(!globalThis[""npk_0b7230d0d7c94c5ef23003726b2e2ccfc5ec0f20d26de8f0bda29e63698f9006""]) globalThis[""npk_0b7230d0d7c94c5ef23003726b2e2ccfc5ec0f20d26de8f0bda29e63698f9006""] = "unknown";');
1761
- Po('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.1.0-beta.2";');
1761
+ Po('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.1.0-beta.4";');
1762
1762
  Po('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
1763
- Po('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Wed Jan 29 2025 17:57:39 GMT+0100 (Central European Standard Time)";');
1763
+ Po('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Mon Feb 03 2025 09:35:07 GMT+0100 (Central European Standard Time)";');
1764
1764
  Po('globalThis["__NEEDLE_PUBLIC_KEY__"] = "npk_0b7230d0d7c94c5ef23003726b2e2ccfc5ec0f20d26de8f0bda29e63698f9006";');
1765
- const $s = "4.1.0-beta.2", pg = "undefined", W0 = "Wed Jan 29 2025 17:57:39 GMT+0100 (Central European Standard Time)";
1765
+ const $s = "4.1.0-beta.4", pg = "undefined", W0 = "Mon Feb 03 2025 09:35:07 GMT+0100 (Central European Standard Time)";
1766
1766
  $0 && console.log(`Engine version: ${$s} (generator: ${pg})
1767
1767
  Project built at ${W0}`);
1768
1768
  const cd = "npk_0b7230d0d7c94c5ef23003726b2e2ccfc5ec0f20d26de8f0bda29e63698f9006", mo = "needle_isActiveInHierarchy", ra = "builtin_components", hd = "needle_editor_guid";
@@ -1880,7 +1880,7 @@ function NC(n) {
1880
1880
  }
1881
1881
  const at = S("debuginput");
1882
1882
  var _g = /* @__PURE__ */ ((n) => (n.Mouse = "mouse", n.Touch = "touch", n.Controller = "controller", n.Hand = "hand", n))(_g || {}), Ne = /* @__PURE__ */ ((n) => (n.PointerDown = "pointerdown", n.PointerUp = "pointerup", n.PointerMove = "pointermove", n.KeyDown = "keydown", n.KeyUp = "keyup", n.KeyPressed = "keypress", n))(Ne || {});
1883
- class Jn extends PointerEvent {
1883
+ class Zn extends PointerEvent {
1884
1884
  constructor(e, i, s) {
1885
1885
  super(e, s);
1886
1886
  /**
@@ -2099,7 +2099,7 @@ class $C {
2099
2099
  t.target instanceof HTMLElement && t.target.setPointerCapture(t.pointerId);
2100
2100
  const e = this.getPointerId(t);
2101
2101
  at && $e(`pointer down #${e}, identifier:${t.pointerId}`);
2102
- const i = this.getAndUpdateSpatialObjectForScreenPosition(e, t.clientX, t.clientY), s = new Jn("pointerdown", t, { origin: this, mode: "screen", deviceIndex: 0, pointerId: e, button: t.button, clientX: t.clientX, clientY: t.clientY, pointerType: t.pointerType, buttonName: this.getButtonName(t), device: i, pressure: t.pressure });
2102
+ const i = this.getAndUpdateSpatialObjectForScreenPosition(e, t.clientX, t.clientY), s = new Zn("pointerdown", t, { origin: this, mode: "screen", deviceIndex: 0, pointerId: e, button: t.button, clientX: t.clientX, clientY: t.clientY, pointerType: t.pointerType, buttonName: this.getButtonName(t), device: i, pressure: t.pressure });
2103
2103
  this.onDown(s);
2104
2104
  });
2105
2105
  r(this, "onPointerMove", (t) => {
@@ -2109,7 +2109,7 @@ class $C {
2109
2109
  t.pointerType === "mouse" && (e = this.getFirstPressedButtonForPointer(0) ?? 0);
2110
2110
  const i = this.getPointerId(t, e);
2111
2111
  e === -1 && (e = i);
2112
- const s = this.getAndUpdateSpatialObjectForScreenPosition(i, t.clientX, t.clientY), o = new Jn("pointermove", t, { origin: this, mode: "screen", deviceIndex: 0, pointerId: i, button: e, clientX: t.clientX, clientY: t.clientY, pointerType: t.pointerType, buttonName: this.getButtonName(t), device: s, pressure: t.pressure });
2112
+ const s = this.getAndUpdateSpatialObjectForScreenPosition(i, t.clientX, t.clientY), o = new Zn("pointermove", t, { origin: this, mode: "screen", deviceIndex: 0, pointerId: i, button: e, clientX: t.clientX, clientY: t.clientY, pointerType: t.pointerType, buttonName: this.getButtonName(t), device: s, pressure: t.pressure });
2113
2113
  this.onMove(o);
2114
2114
  });
2115
2115
  r(this, "onPointerCancel", (t) => {
@@ -2119,28 +2119,28 @@ class $C {
2119
2119
  if (this.context.isInAR)
2120
2120
  return;
2121
2121
  t.target instanceof HTMLElement && t.target.releasePointerCapture(t.pointerId);
2122
- const e = this.getPointerId(t), i = new Jn("pointerup", t, { origin: this, mode: "screen", deviceIndex: 0, pointerId: e, button: t.button, clientX: t.clientX, clientY: t.clientY, pointerType: t.pointerType, buttonName: this.getButtonName(t), device: this.getAndUpdateSpatialObjectForScreenPosition(e, t.clientX, t.clientY), pressure: t.pressure });
2122
+ const e = this.getPointerId(t), i = new Zn("pointerup", t, { origin: this, mode: "screen", deviceIndex: 0, pointerId: e, button: t.button, clientX: t.clientX, clientY: t.clientY, pointerType: t.pointerType, buttonName: this.getButtonName(t), device: this.getAndUpdateSpatialObjectForScreenPosition(e, t.clientX, t.clientY), pressure: t.pressure });
2123
2123
  this.onUp(i), this._pointerIds[e] = -1, at && console.log("ID=" + e, "PointerId=" + t.pointerId, "ALL:", [...this._pointerIds]);
2124
2124
  });
2125
2125
  // the touch events are currently only used for AR support on android
2126
2126
  r(this, "onTouchStart", (t) => {
2127
2127
  if (this.context.isInAR)
2128
2128
  for (let e = 0; e < t.changedTouches.length; e++) {
2129
- const i = t.changedTouches[e], s = this.getPointerIndex(i.identifier), o = this.getAndUpdateSpatialObjectForScreenPosition(s, i.clientX, i.clientY), a = new Jn("pointerdown", t, { origin: this, mode: "screen", deviceIndex: 0, pointerId: s, button: 0, clientX: i.clientX, clientY: i.clientY, pointerType: "touch", buttonName: "unknown", device: o, pressure: i.force });
2129
+ const i = t.changedTouches[e], s = this.getPointerIndex(i.identifier), o = this.getAndUpdateSpatialObjectForScreenPosition(s, i.clientX, i.clientY), a = new Zn("pointerdown", t, { origin: this, mode: "screen", deviceIndex: 0, pointerId: s, button: 0, clientX: i.clientX, clientY: i.clientY, pointerType: "touch", buttonName: "unknown", device: o, pressure: i.force });
2130
2130
  this.onDown(a);
2131
2131
  }
2132
2132
  });
2133
2133
  r(this, "onTouchMove", (t) => {
2134
2134
  if (this.context.isInAR)
2135
2135
  for (let e = 0; e < t.changedTouches.length; e++) {
2136
- const i = t.changedTouches[e], s = this.getPointerIndex(i.identifier), o = this.getAndUpdateSpatialObjectForScreenPosition(s, i.clientX, i.clientY), a = new Jn("pointermove", t, { origin: this, mode: "screen", deviceIndex: 0, pointerId: s, button: 0, clientX: i.clientX, clientY: i.clientY, pointerType: "touch", buttonName: "unknown", device: o, pressure: i.force });
2136
+ const i = t.changedTouches[e], s = this.getPointerIndex(i.identifier), o = this.getAndUpdateSpatialObjectForScreenPosition(s, i.clientX, i.clientY), a = new Zn("pointermove", t, { origin: this, mode: "screen", deviceIndex: 0, pointerId: s, button: 0, clientX: i.clientX, clientY: i.clientY, pointerType: "touch", buttonName: "unknown", device: o, pressure: i.force });
2137
2137
  this.onMove(a);
2138
2138
  }
2139
2139
  });
2140
2140
  r(this, "onTouchEnd", (t) => {
2141
2141
  if (this.context.isInAR)
2142
2142
  for (let e = 0; e < t.changedTouches.length; e++) {
2143
- const i = t.changedTouches[e], s = this.getPointerIndex(i.identifier), o = new Jn("pointerup", t, { origin: this, mode: "screen", deviceIndex: 0, pointerId: s, button: 0, clientX: i.clientX, clientY: i.clientY, pointerType: "touch", buttonName: "unknown", device: this.getAndUpdateSpatialObjectForScreenPosition(s, i.clientX, i.clientY), pressure: i.force });
2143
+ const i = t.changedTouches[e], s = this.getPointerIndex(i.identifier), o = new Zn("pointerup", t, { origin: this, mode: "screen", deviceIndex: 0, pointerId: s, button: 0, clientX: i.clientX, clientY: i.clientY, pointerType: "touch", buttonName: "unknown", device: this.getAndUpdateSpatialObjectForScreenPosition(s, i.clientX, i.clientY), pressure: i.force });
2144
2144
  this.onUp(o), this._pointerIds[s] = -1;
2145
2145
  }
2146
2146
  });
@@ -2202,7 +2202,7 @@ class $C {
2202
2202
  d.options.once && (c.listeners.splice(h, 1), h--), d.callback(t);
2203
2203
  }
2204
2204
  }
2205
- if (t instanceof Jn) {
2205
+ if (t instanceof Zn) {
2206
2206
  const l = this._eventListeners[t.type];
2207
2207
  if (l)
2208
2208
  for (const c of l) {
@@ -2654,7 +2654,7 @@ class VC {
2654
2654
  return this.gameObject.visible;
2655
2655
  }
2656
2656
  }
2657
- const Cs = S("debugwebxr"), Ch = S("debugcustomgesture"), HC = "https://cdn.jsdelivr.net/npm/@webxr-input-profiles/assets@1.0/dist/profiles", GC = "generic-trigger", qC = new W().setFromEuler(new Lt(On.degToRad(0), On.degToRad(-90), On.degToRad(-90))), XC = new v(0.04, -0.04, 0);
2657
+ const Cs = S("debugwebxr"), Ch = S("debugcustomgesture"), HC = "https://cdn.jsdelivr.net/npm/@webxr-input-profiles/assets@1.0/dist/profiles", GC = "generic-trigger", qC = new W().setFromEuler(new Lt(Pn.degToRad(0), Pn.degToRad(-90), Pn.degToRad(-90))), XC = new v(0.04, -0.04, 0);
2658
2658
  class q0 {
2659
2659
  constructor(t, e, i) {
2660
2660
  /** the Needle XR Session */
@@ -3262,7 +3262,7 @@ Pinch: ${(o = this.getGesture("pinch")) == null ? void 0 : o.value.toFixed(3)}`)
3262
3262
  if (this.xr.mode === "immersive-vr" || this.xr.isPassThrough) {
3263
3263
  this.pointerInit.origin = this, this.pointerInit.pointerId = this.getPointerId(e), this.pointerInit.pointerType = this.hand ? "hand" : "controller", this.pointerInit.button = e, this.pointerInit.buttonName = i, this.pointerInit.isPrimary = s, this.pointerInit.mode = this.inputSource.targetRayMode, this.pointerInit.ray = this.ray, this.pointerInit.device = this.object, this.pointerInit.pressure = a, this.pointerInit.clientX = this._rayPosition.x / this.xr.rigScale, this.pointerInit.clientY = this._rayPosition.y / this.xr.rigScale, this.pointerInit.clientZ = this._rayPosition.z / this.xr.rigScale;
3264
3264
  const l = J.Current;
3265
- J.Current = this.xr.context, Cs && t !== "pointermove" && console.warn("Pointer event", t, e, i, { ...this.pointerInit }), this.xr.context.input.createInputEvent(new Jn(t, o, this.pointerInit)), J.Current = l;
3265
+ J.Current = this.xr.context, Cs && t !== "pointermove" && console.warn("Pointer event", t, e, i, { ...this.pointerInit }), this.xr.context.input.createInputEvent(new Zn(t, o, this.pointerInit)), J.Current = l;
3266
3266
  }
3267
3267
  }
3268
3268
  }
@@ -3293,7 +3293,7 @@ class d_ {
3293
3293
  }
3294
3294
  const Pa = /* @__PURE__ */ new Map(), ma = /* @__PURE__ */ new Map();
3295
3295
  let u_ = 0;
3296
- function jn(n, t, e) {
3296
+ function Ln(n, t, e) {
3297
3297
  if (Pa.has(t) || Pa.set(t, new Array()), Pa.get(t).push({
3298
3298
  method: n,
3299
3299
  options: { once: !1, ...e }
@@ -3482,8 +3482,8 @@ class eP extends JC {
3482
3482
  }
3483
3483
  var Is = /* @__PURE__ */ ((n) => (n[n.OnConnection = 0] = "OnConnection", n[n.OnRoomJoin = 1] = "OnRoomJoin", n[n.Queued = 2] = "Queued", n[n.Immediate = 3] = "Immediate", n))(Is || {});
3484
3484
  const g_ = "https://urls.needle.tools/default-networking-backend/index";
3485
- let ti = "wss://networking.needle.tools/socket";
3486
- const mi = !!S("debugnet"), Oh = !!(mi || S("debugowner")), Bf = S("debugnetbin");
3485
+ let ii = "wss://networking.needle.tools/socket";
3486
+ const gi = !!S("debugnet"), Oh = !!(gi || S("debugowner")), Bf = S("debugnetbin");
3487
3487
  var tP = /* @__PURE__ */ ((n) => (n.ConnectionInfo = "connection-start-info", n))(tP || {}), se = /* @__PURE__ */ ((n) => (n.Join = "join-room", n.Leave = "leave-room", n.JoinedRoom = "joined-room", n.LeftRoom = "left-room", n.UserJoinedRoom = "user-joined-room", n.UserLeftRoom = "user-left-room", n.RoomStateSent = "room-state-sent", n))(se || {});
3488
3488
  class mD {
3489
3489
  constructor() {
@@ -3616,7 +3616,7 @@ class sP {
3616
3616
  * To see all networking messages in the console use `?debugnet` in the url
3617
3617
  */
3618
3618
  get isDebugEnabled() {
3619
- return mi;
3619
+ return gi;
3620
3620
  }
3621
3621
  /** True when connected to the networking backend */
3622
3622
  get isConnected() {
@@ -3679,7 +3679,7 @@ class sP {
3679
3679
  }
3680
3680
  /** Joins a networked room. If you don't want to manage a connection yourself you can use a `SyncedRoom` component as well */
3681
3681
  joinRoom(t, e = !1) {
3682
- return t ? t.length > 1024 ? (console.error('Room name too long, can not join: "' + t + '". Max length is 1024 characters.'), !1) : (this.connect(), mi && console.log("join: " + t), this.send("join-room", { room: t, viewOnly: e }, Is.OnConnection), !0) : (console.error('Missing room name, can not join: "' + t + '"'), !1);
3682
+ return t ? t.length > 1024 ? (console.error('Room name too long, can not join: "' + t + '". Max length is 1024 characters.'), !1) : (this.connect(), gi && console.log("join: " + t), this.send("join-room", { room: t, viewOnly: e }, Is.OnConnection), !0) : (console.error('Missing room name, can not join: "' + t + '"'), !1);
3683
3683
  }
3684
3684
  /** Use to leave a room that you are currently connected to (use `leaveRoom()` to disconnect from the currently active room but you can also specify a room name) */
3685
3685
  leaveRoom(t = null) {
@@ -3721,7 +3721,7 @@ class sP {
3721
3721
  const a = this.toMessage(o.key, o.value);
3722
3722
  this._defaultMessagesBufferArray.push(a);
3723
3723
  }
3724
- if (this._defaultMessagesBuffer.length = 0, this._defaultMessagesBufferArray.length > 0 && mi && console.log("SEND BUFFERED", this._defaultMessagesBufferArray.length), this._defaultMessagesBufferArray.length <= 0)
3724
+ if (this._defaultMessagesBuffer.length = 0, this._defaultMessagesBufferArray.length > 0 && gi && console.log("SEND BUFFERED", this._defaultMessagesBufferArray.length), this._defaultMessagesBufferArray.length <= 0)
3725
3725
  return;
3726
3726
  const e = JSON.stringify(this._defaultMessagesBufferArray);
3727
3727
  (i = this._ws) == null || i.send(e);
@@ -3799,18 +3799,18 @@ class sP {
3799
3799
  /** Used to connect to the networking server */
3800
3800
  async connect(t) {
3801
3801
  var i;
3802
- if (this.connected && t && t !== ti)
3802
+ if (this.connected && t && t !== ii)
3803
3803
  return Promise.reject("Can not connect to different server url. Please disconnect first.");
3804
3804
  if (this.connected)
3805
3805
  return Promise.resolve(!0);
3806
3806
  t && console.debug("Connecting to user provided url " + t);
3807
3807
  const e = t || ((i = this.netWebSocketUrlProvider) == null ? void 0 : i.getWebsocketUrl());
3808
- return e ? ti = e : k1() && (ti = "wss://" + window.location.host + "/socket"), this.connectWebsocket();
3808
+ return e ? ii = e : k1() && (ii = "wss://" + window.location.host + "/socket"), this.connectWebsocket();
3809
3809
  }
3810
3810
  /** Used to disconnect from the networking server */
3811
3811
  disconnect() {
3812
3812
  var t;
3813
- (t = this._ws) == null || t.close(), this._ws = void 0, ti = void 0;
3813
+ (t = this._ws) == null || t.close(), this._ws = void 0, ii = void 0;
3814
3814
  }
3815
3815
  connectWebsocket() {
3816
3816
  return this._connectingToWebsocketPromise ? this._connectingToWebsocketPromise : this._connectingToWebsocketPromise = new Promise(async (t, e) => {
@@ -3819,19 +3819,19 @@ class sP {
3819
3819
  const s = (u) => {
3820
3820
  i || (i = !0, t(u));
3821
3821
  };
3822
- if (ti === void 0 && (console.log("Fetch default backend url: " + g_), ti = await (await fetch(g_)).text()), ti === void 0) {
3822
+ if (ii === void 0 && (console.log("Fetch default backend url: " + g_), ii = await (await fetch(g_)).text()), ii === void 0) {
3823
3823
  s(!1);
3824
3824
  return;
3825
3825
  }
3826
3826
  console.debug(`⊡ Connecting to networking backend on
3827
- ` + ti);
3828
- const o = await import("./vendor.js").then((u) => u.j), a = ((h = o.default) == null ? void 0 : h.WebsocketBuilder) ?? o.WebsocketBuilder, l = ((d = o.default) == null ? void 0 : d.ExponentialBackoff) ?? o.ExponentialBackoff, c = new a(ti).withMaxRetries(10).withBackoff(new l(2e3, 4)).onOpen(() => {
3829
- this._connectingToWebsocketPromise = null, this._ws = c, this.connected = !0, U() || mi ? console.log(`⊞ Connected to networking backend
3830
- ` + ti) : console.debug("⊞ Connected to networking backend", ti), s(!0), this.onSendQueued(Is.OnConnection);
3827
+ ` + ii);
3828
+ const o = await import("./vendor.js").then((u) => u.j), a = ((h = o.default) == null ? void 0 : h.WebsocketBuilder) ?? o.WebsocketBuilder, l = ((d = o.default) == null ? void 0 : d.ExponentialBackoff) ?? o.ExponentialBackoff, c = new a(ii).withMaxRetries(10).withBackoff(new l(2e3, 4)).onOpen(() => {
3829
+ this._connectingToWebsocketPromise = null, this._ws = c, this.connected = !0, U() || gi ? console.log(`⊞ Connected to networking backend
3830
+ ` + ii) : console.debug("⊞ Connected to networking backend", ii), s(!0), this.onSendQueued(Is.OnConnection);
3831
3831
  }).onClose((u) => {
3832
3832
  this._connectingToWebsocketPromise = null, this.connected = !1, this._isInRoom = !1, s(!1);
3833
3833
  let p = "Websocket connection closed...";
3834
- ti != null && ti.includes("/socket") || (p += ' Do you perhaps mean to connect to "/socket"?'), console.error(p);
3834
+ ii != null && ii.includes("/socket") || (p += ' Do you perhaps mean to connect to "/socket"?'), console.error(p);
3835
3835
  }).onError((u) => {
3836
3836
  console.error("⊠ Websocket connection failed..."), s(!1);
3837
3837
  }).onRetry(() => {
@@ -3857,7 +3857,7 @@ class sP {
3857
3857
  this.handleIncomingStringMessage(s);
3858
3858
  return;
3859
3859
  } catch (s) {
3860
- mi && i === "pong" ? console.log("<<", i) : U() && console.error("Failed to parse message", s);
3860
+ gi && i === "pong" ? console.log("<<", i) : U() && console.error("Failed to parse message", s);
3861
3861
  }
3862
3862
  }
3863
3863
  async handleIncomingBinaryMessage(t) {
@@ -3873,7 +3873,7 @@ class sP {
3873
3873
  }
3874
3874
  handleIncomingStringMessage(t) {
3875
3875
  var s, o;
3876
- if (mi && console.log("<<", t.key ?? t), t.key)
3876
+ if (gi && console.log("<<", t.key ?? t), t.key)
3877
3877
  switch (t.key) {
3878
3878
  case "connection-start-info":
3879
3879
  if (t.data) {
@@ -3887,7 +3887,7 @@ class sP {
3887
3887
  console.warn("Expected connection id in " + t.key);
3888
3888
  break;
3889
3889
  case "joined-room":
3890
- if (mi && console.log(t), t) {
3890
+ if (gi && console.log(t), t) {
3891
3891
  this._isInRoom = !0;
3892
3892
  const c = t;
3893
3893
  this._currentRoomName = c.room, this._currentRoomViewId = c.viewId, this._currentRoomAllowEditing = c.allowEditing ?? !0, this._currentInRoom.length = 0, this._currentInRoom.push(...c.inRoom), (Bf || U()) && console.debug("Joined Needle Engine Room: " + c.room);
@@ -3903,22 +3903,22 @@ ${h.href}`);
3903
3903
  case "user-joined-room":
3904
3904
  if (t.data) {
3905
3905
  const c = t.data;
3906
- this._currentInRoom.push(c.userId), mi && console.log(c.userId + " joined", "now in room:", this._currentInRoom);
3906
+ this._currentInRoom.push(c.userId), gi && console.log(c.userId + " joined", "now in room:", this._currentInRoom);
3907
3907
  }
3908
3908
  break;
3909
3909
  case "user-left-room":
3910
3910
  if (t.data) {
3911
3911
  const c = t.data, h = this._currentInRoom.indexOf(c.userId);
3912
- h >= 0 && (mi && console.log(c.userId + " left", "now in room:", this._currentInRoom), this._currentInRoom.splice(h, 1)), c.userId === this.connectionId && console.log("you left the room");
3912
+ h >= 0 && (gi && console.log(c.userId + " left", "now in room:", this._currentInRoom), this._currentInRoom.splice(h, 1)), c.userId === this.connectionId && console.log("you left the room");
3913
3913
  }
3914
3914
  break;
3915
3915
  case "all-room-state-deleted":
3916
- mi && console.log("RECEIVED all-room-state-deleted"), this._state = {};
3916
+ gi && console.log("RECEIVED all-room-state-deleted"), this._state = {};
3917
3917
  break;
3918
3918
  case "ping":
3919
3919
  case "pong":
3920
3920
  const l = (s = t.data) == null ? void 0 : s.time;
3921
- l && (this._currentDelay = this.context.time.time - l), mi && console.log("Current latency: " + this._currentDelay.toFixed(4) + " sec", "Clients in room: " + ((o = this._currentInRoom) == null ? void 0 : o.length));
3921
+ l && (this._currentDelay = this.context.time.time - l), gi && console.log("Current latency: " + this._currentDelay.toFixed(4) + " sec", "Clients in room: " + ((o = this._currentInRoom) == null ? void 0 : o.length));
3922
3922
  break;
3923
3923
  }
3924
3924
  const e = t.data;
@@ -3947,7 +3947,7 @@ ${h.href}`);
3947
3947
  return;
3948
3948
  }
3949
3949
  const s = JSON.stringify(this.toMessage(t, e));
3950
- mi && console.log(">>", t), this._ws.send(s);
3950
+ gi && console.log(">>", t), this._ws.send(s);
3951
3951
  }
3952
3952
  onSendQueued(t) {
3953
3953
  const e = this._waitingForSocket[t];
@@ -4140,7 +4140,7 @@ class Tr {
4140
4140
  let i = null;
4141
4141
  const s = (e == null ? void 0 : e.font) || rP((e == null ? void 0 : e.familyFamily) || null);
4142
4142
  s instanceof QS ? i = Uo(this, Bc, dm).call(this, t, s, e) : i == null && (i = new uo());
4143
- const o = (e == null ? void 0 : e.color) || 16777215, a = new X(i, (e == null ? void 0 : e.material) ?? new ri({ color: o }));
4143
+ const o = (e == null ? void 0 : e.color) || 16777215, a = new X(i, (e == null ? void 0 : e.material) ?? new ai({ color: o }));
4144
4144
  return this.applyDefaultObjectOptions(a, e), s instanceof Promise ? s.then((l) => {
4145
4145
  a.geometry = Uo(this, Bc, dm).call(this, t, l, e), e != null && e.onGeometry && e.onGeometry(a);
4146
4146
  }) : e != null && e.onGeometry && e.onGeometry(a), a;
@@ -4161,28 +4161,28 @@ class Tr {
4161
4161
  case "Quad":
4162
4162
  case 0:
4163
4163
  {
4164
- const o = new Xs(1, 1, 1, 1), a = (e == null ? void 0 : e.material) ?? new ri({ color: s });
4164
+ const o = new Xs(1, 1, 1, 1), a = (e == null ? void 0 : e.material) ?? new ai({ color: s });
4165
4165
  e != null && e.texture && "map" in a && (a.map = e.texture), i = new X(o, a), i.name = "Quad";
4166
4166
  }
4167
4167
  break;
4168
4168
  case "Cube":
4169
4169
  case 1:
4170
4170
  {
4171
- const o = new Sc(1, 1, 1), a = (e == null ? void 0 : e.material) ?? new ri({ color: s });
4171
+ const o = new Sc(1, 1, 1), a = (e == null ? void 0 : e.material) ?? new ai({ color: s });
4172
4172
  e != null && e.texture && "map" in a && (a.map = e.texture), i = new X(o, a), i.name = "Cube";
4173
4173
  }
4174
4174
  break;
4175
4175
  case 10:
4176
4176
  case "RoundedCube":
4177
4177
  {
4178
- const o = oP(1, 1, 1, 0.1, 2), a = (e == null ? void 0 : e.material) ?? new ri({ color: s });
4178
+ const o = oP(1, 1, 1, 0.1, 2), a = (e == null ? void 0 : e.material) ?? new ai({ color: s });
4179
4179
  e != null && e.texture && "map" in a && (a.map = e.texture), i = new X(o, a), i.name = "RoundedCube";
4180
4180
  }
4181
4181
  break;
4182
4182
  case "Sphere":
4183
4183
  case 2:
4184
4184
  {
4185
- const o = new _u(0.5, 16, 16), a = (e == null ? void 0 : e.material) ?? new ri({ color: s });
4185
+ const o = new _u(0.5, 16, 16), a = (e == null ? void 0 : e.material) ?? new ai({ color: s });
4186
4186
  e != null && e.texture && "map" in a && (a.map = e.texture), i = new X(o, a), i.name = "Sphere";
4187
4187
  }
4188
4188
  break;
@@ -4219,7 +4219,7 @@ Bc = new WeakSet(), dm = function(t, e, i) {
4219
4219
  bevelOffset: 0.01,
4220
4220
  bevelSize: 0.01
4221
4221
  });
4222
- }, ui(Tr, Bc);
4222
+ }, fi(Tr, Bc);
4223
4223
  function oP(n, t, e, i, s) {
4224
4224
  const o = new Ex(), a = 1e-5, l = i - a;
4225
4225
  o.absarc(a, a, a, -Math.PI / 2, -Math.PI, !0), o.absarc(a, t - l * 2, a, Math.PI, Math.PI / 2, !0), o.absarc(n - l * 2, t - l * 2, a, Math.PI / 2, 0, !0), o.absarc(n - l * 2, a, a, 0, -Math.PI / 2, !0);
@@ -4285,7 +4285,7 @@ function aP(n, t) {
4285
4285
  function __(n, t) {
4286
4286
  var i;
4287
4287
  if ((t == null ? void 0 : t.color) || (t == null ? void 0 : t.material) || (t == null ? void 0 : t.texture)) {
4288
- const s = (t == null ? void 0 : t.material) ?? ((i = n.material) == null ? void 0 : i.clone()) ?? new ri();
4288
+ const s = (t == null ? void 0 : t.material) ?? ((i = n.material) == null ? void 0 : i.clone()) ?? new ai();
4289
4289
  t.color && "color" in s && s.color instanceof ae && s.color.set(t.color), t != null && t.texture && "map" in s && (s.map = t.texture), n.material = s;
4290
4290
  }
4291
4291
  }
@@ -4310,7 +4310,7 @@ const Py = class {
4310
4310
  this.update(t, i), this._camera.parent !== this._scene && this._scene.add(this._camera), this._renderer.render(this._scene, this._camera);
4311
4311
  });
4312
4312
  r(this, "_objects", []);
4313
- this._mode = t, this._init = e, this._session = i, this._session.addEventListener("end", this.onEnd), this._renderer = new Mr({ alpha: !0 }), this._renderer.setAnimationLoop(this.onFrame), this._renderer.xr.setSession(i), this._renderer.xr.enabled = !0, this._camera = new ge(), this._scene = new Ki(), this._scene.fog = new t0(4473924, 10, 250), this._scene.add(this._camera), this.setupScene();
4313
+ this._mode = t, this._init = e, this._session = i, this._session.addEventListener("end", this.onEnd), this._renderer = new Mr({ alpha: !0 }), this._renderer.setAnimationLoop(this.onFrame), this._renderer.xr.setSession(i), this._renderer.xr.enabled = !0, this._camera = new ye(), this._scene = new Ki(), this._scene.fog = new t0(4473924, 10, 250), this._scene.add(this._camera), this.setupScene();
4314
4314
  }
4315
4315
  static get active() {
4316
4316
  return this._active;
@@ -4368,7 +4368,7 @@ const Py = class {
4368
4368
  i.position.set(0, 2, 0), i.castShadow = !1, i.distance = 200, this._scene.add(i);
4369
4369
  const s = 50;
4370
4370
  for (let o = 0; o < 100; o++) {
4371
- const a = new ri({
4371
+ const a = new ai({
4372
4372
  color: 2236962,
4373
4373
  metalness: 1,
4374
4374
  roughness: 0.8
@@ -4699,7 +4699,7 @@ const mn = class {
4699
4699
  // TODO: for scene transitions (e.g. SceneSwitcher) where creating the scene might take a few moments we might want more control over when/how this fading occurs and how long the scene stays black
4700
4700
  r(this, "_transition");
4701
4701
  var o, a;
4702
- performance.mark(v_), hP(t, s.init), this.session = e, this.mode = t, this.context = i, (mt || S("console")) && Sa(!0), this._xr_scripts = [...s.scripts], this._xr_update_scripts = this._xr_scripts.filter((l) => typeof l.onUpdateXR == "function"), this._controllerAdded = s.controller_added, this._controllerRemoved = s.controller_removed, jn(this.onBefore, Ce.LateUpdate), this.context.pre_render_callbacks.push(this.onBeforeRender), this.context.post_render_callbacks.push(this.onAfterRender), ((o = s.init.optionalFeatures) != null && o.includes("hit-test") || (a = s.init.requiredFeatures) != null && a.includes("hit-test")) && e.requestReferenceSpace("viewer").then((l) => {
4702
+ performance.mark(v_), hP(t, s.init), this.session = e, this.mode = t, this.context = i, (mt || S("console")) && Sa(!0), this._xr_scripts = [...s.scripts], this._xr_update_scripts = this._xr_scripts.filter((l) => typeof l.onUpdateXR == "function"), this._controllerAdded = s.controller_added, this._controllerRemoved = s.controller_removed, Ln(this.onBefore, Ce.LateUpdate), this.context.pre_render_callbacks.push(this.onBeforeRender), this.context.post_render_callbacks.push(this.onAfterRender), ((o = s.init.optionalFeatures) != null && o.includes("hit-test") || (a = s.init.requiredFeatures) != null && a.includes("hit-test")) && e.requestReferenceSpace("viewer").then((l) => {
4703
4703
  var c, h;
4704
4704
  return (h = (c = e.requestHitTestSource) == null ? void 0 : c.call(e, { space: l })) == null ? void 0 : h.then((d) => this._viewerHitTestSource = d).catch((d) => console.error(d));
4705
4705
  }).catch((l) => console.error(l)), this.context.mainCamera && (this._originalCameraWorldPosition = ee(this.context.mainCamera, new v()), this._originalCameraWorldRotation = xe(this.context.mainCamera, new W()), this._originalCameraWorldScale = Ie(this.context.mainCamera, new v()), this._originalCameraParent = this.context.mainCamera.parent), this._defaultRig = new VC(), this.context.scene.add(this._defaultRig.gameObject), this.addRig(this._defaultRig);
@@ -5272,11 +5272,11 @@ ${o.hand ? "hand" : "ctrl"} ${o.inputSource.handedness}[${o.index}] con:${o.conn
5272
5272
  const i = Ie(this.rig.gameObject);
5273
5273
  e *= i.x;
5274
5274
  }
5275
- this._camera instanceof ge && this._camera.near > e && (this.originalCameraNearPlane = this._camera.near, this._camera.near = e);
5275
+ this._camera instanceof ye && this._camera.near > e && (this.originalCameraNearPlane = this._camera.near, this._camera.near = e);
5276
5276
  }
5277
5277
  }
5278
5278
  revertCustomForward() {
5279
- this._camera && this._previousCameraParent && this._previousCameraParent.add(this._camera), this._previousCameraParent = null, this._camera instanceof ge && this.originalCameraNearPlane != null && (this._camera.near = this.originalCameraNearPlane);
5279
+ this._camera && this._previousCameraParent && this._previousCameraParent.add(this._camera), this._previousCameraParent = null, this._camera instanceof ye && this.originalCameraNearPlane != null && (this._camera.near = this.originalCameraNearPlane);
5280
5280
  }
5281
5281
  internalUpdateState() {
5282
5282
  const t = this.context.renderer.xr.getReferenceSpace();
@@ -5302,7 +5302,7 @@ ${o.hand ? "hand" : "ctrl"} ${o.inputSource.handedness}[${o.index}] con:${o.conn
5302
5302
  }
5303
5303
  /** e.g. FadeToBlack */
5304
5304
  updateFade(t) {
5305
- this._transition && t instanceof ge && this._transition.update(t, this.context.time.deltaTime);
5305
+ this._transition && t instanceof ye && this._transition.update(t, this.context.time.deltaTime);
5306
5306
  }
5307
5307
  onUpdateFade_PostRender() {
5308
5308
  var t;
@@ -5588,7 +5588,7 @@ class Ae {
5588
5588
  // private static createdLines: number = 0;
5589
5589
  r(Ae, "familyName", "needle-gizmos"), r(Ae, "linesCache", []), r(Ae, "circlesCache", []), r(Ae, "spheresCache", []), r(Ae, "boxesCache", []), r(Ae, "arrowHeadsCache", []), r(Ae, "mesh", []), r(Ae, "textLabelCache", []), r(Ae, "timedObjectsBuffer", new Array()), r(Ae, "timesBuffer", new Array()), r(Ae, "contextPostRenderCallbacks", /* @__PURE__ */ new Map()), r(Ae, "contextBeforeRenderCallbacks", /* @__PURE__ */ new Map()), r(Ae, "tmuiNeedsUpdate", !1);
5590
5590
  const bi = S("debugphysics"), P_ = new vo();
5591
- class En {
5591
+ class An {
5592
5592
  constructor() {
5593
5593
  r(this, "ray");
5594
5594
  r(this, "cam");
@@ -5619,7 +5619,7 @@ class En {
5619
5619
  e ? e.mask = t : this.layerMask = t;
5620
5620
  }
5621
5621
  }
5622
- r(En, "AllLayers", 4294967295);
5622
+ r(An, "AllLayers", 4294967295);
5623
5623
  class J0 {
5624
5624
  constructor(t, e, i) {
5625
5625
  r(this, "distance");
@@ -5634,7 +5634,7 @@ const lu = class {
5634
5634
  r(this, "engine");
5635
5635
  // raycasting
5636
5636
  r(this, "raycaster", new vu());
5637
- r(this, "defaultRaycastOptions", new En());
5637
+ r(this, "defaultRaycastOptions", new An());
5638
5638
  r(this, "targetBuffer", new Array(1));
5639
5639
  r(this, "defaultThresholds", {
5640
5640
  Mesh: {},
@@ -5992,7 +5992,7 @@ function Te(n) {
5992
5992
  }
5993
5993
  if (n[sv] = !0, n instanceof Ki)
5994
5994
  Te(n.environment), Te(n.background), Te(n.customDepthMaterial), Te(n.customDistanceMaterial);
5995
- else if (n instanceof Mn)
5995
+ else if (n instanceof On)
5996
5996
  Te(n.geometry), Te(n.material), Te(n.skeleton), Te(n.bindMatrix), Te(n.bindMatrixInverse), Te(n.customDepthMaterial), Te(n.customDistanceMaterial), n.geometry = null, n.material = null, n.visible = !1;
5997
5997
  else if (n instanceof X)
5998
5998
  Te(n.geometry), Te(n.material), Te(n.customDepthMaterial), Te(n.customDistanceMaterial), n.geometry = null, n.material = null, n.visible = !1;
@@ -6027,7 +6027,7 @@ function Yr(n) {
6027
6027
  n && ((lr || ev() || Au) && console.warn("🧨 FREE", n), n instanceof ImageBitmap ? n.close() : n instanceof zx ? n.data = null : n.dispose());
6028
6028
  }
6029
6029
  function wP(n) {
6030
- (n instanceof X || n instanceof Mn) && (n.material = null, n.geometry = null);
6030
+ (n instanceof X || n instanceof On) && (n.material = null, n.geometry = null);
6031
6031
  }
6032
6032
  const xP = /* @__PURE__ */ new Set();
6033
6033
  function nv(n, t, e = null, i) {
@@ -6761,7 +6761,7 @@ class ss {
6761
6761
  }
6762
6762
  class XP {
6763
6763
  constructor() {
6764
- r(this, "isDevMode", li());
6764
+ r(this, "isDevMode", ci());
6765
6765
  r(this, "cache", {});
6766
6766
  }
6767
6767
  /** only call when assigning values for the very first time */
@@ -6873,7 +6873,7 @@ function _m(n, t, e) {
6873
6873
  const YP = S("noerrors");
6874
6874
  function KP(n, t, e) {
6875
6875
  var o, a;
6876
- if (YP || !t || !li() || !n || n.constructor && n.constructor[UP] === !0)
6876
+ if (YP || !t || !ci() || !n || n.constructor && n.constructor[UP] === !0)
6877
6877
  return;
6878
6878
  const i = (o = n.constructor) == null ? void 0 : o.name, s = Object.getOwnPropertyNames(t);
6879
6879
  for (const l of s) {
@@ -7064,7 +7064,7 @@ function iO() {
7064
7064
  };
7065
7065
  }
7066
7066
  iO();
7067
- Object.defineProperty(ge.prototype, "fov", {
7067
+ Object.defineProperty(ye.prototype, "fov", {
7068
7068
  get: function() {
7069
7069
  return this._fov;
7070
7070
  },
@@ -7074,7 +7074,7 @@ Object.defineProperty(ge.prototype, "fov", {
7074
7074
  },
7075
7075
  configurable: !0
7076
7076
  });
7077
- Object.defineProperty(ge.prototype, "near", {
7077
+ Object.defineProperty(ye.prototype, "near", {
7078
7078
  get: function() {
7079
7079
  return this._near;
7080
7080
  },
@@ -7084,7 +7084,7 @@ Object.defineProperty(ge.prototype, "near", {
7084
7084
  },
7085
7085
  configurable: !0
7086
7086
  });
7087
- Object.defineProperty(ge.prototype, "far", {
7087
+ Object.defineProperty(ye.prototype, "far", {
7088
7088
  get: function() {
7089
7089
  return this._far;
7090
7090
  },
@@ -7830,7 +7830,7 @@ var Ga;
7830
7830
  }
7831
7831
  n.download = h;
7832
7832
  })(Ga || (Ga = {}));
7833
- const Gn = S("debugaddressables");
7833
+ const Hn = S("debugaddressables");
7834
7834
  class yO {
7835
7835
  /** @internal */
7836
7836
  constructor(t) {
@@ -7909,7 +7909,7 @@ const qf = Symbol("assetReference"), Zo = class {
7909
7909
  } else
7910
7910
  i = t.context, t = t.sourceId;
7911
7911
  const s = kr(t, e);
7912
- Gn && console.log("GetOrCreate Addressable from", t, e, "FinalPath=", s);
7912
+ Hn && console.log("GetOrCreate Addressable from", t, e, "FinalPath=", s);
7913
7913
  const o = i.addressables, a = o.findAssetReference(s);
7914
7914
  if (a)
7915
7915
  return a;
@@ -7957,7 +7957,7 @@ const qf = Symbol("assetReference"), Zo = class {
7957
7957
  }
7958
7958
  /** frees previously allocated memory and destroys the current `asset` instance (if any) */
7959
7959
  unload() {
7960
- this.asset && (Gn && console.log("Unload", this.asset), this.asset.scene && es(this.asset.scene, !0, !0), es(this.asset, !0, !0)), this.asset = null, this._rawBinary = void 0, this._glbRoot = null, this._loading = void 0, J.Current && J.Current.addressables.unregisterAssetReference(this);
7960
+ this.asset && (Hn && console.log("Unload", this.asset), this.asset.scene && es(this.asset.scene, !0, !0), es(this.asset, !0, !0)), this.asset = null, this._rawBinary = void 0, this._glbRoot = null, this._loading = void 0, J.Current && J.Current.addressables.unregisterAssetReference(this);
7961
7961
  }
7962
7962
  /** loads the asset binary without creating an instance */
7963
7963
  async preload() {
@@ -7965,7 +7965,7 @@ const qf = Symbol("assetReference"), Zo = class {
7965
7965
  return null;
7966
7966
  if (this._rawBinary !== void 0)
7967
7967
  return this._rawBinary;
7968
- this._isLoadingRawBinary = !0, Gn && console.log("Preload", this._hashedUri);
7968
+ this._isLoadingRawBinary = !0, Hn && console.log("Preload", this._hashedUri);
7969
7969
  const t = await Ga.download(this._hashedUri, (e) => {
7970
7970
  this.raiseProgressEvent(e);
7971
7971
  });
@@ -7976,12 +7976,12 @@ const qf = Symbol("assetReference"), Zo = class {
7976
7976
  * @returns the loaded asset
7977
7977
  */
7978
7978
  async loadAssetAsync(t) {
7979
- if (Gn && console.log("loadAssetAsync", this.url), !this.mustLoad)
7979
+ if (Hn && console.log("loadAssetAsync", this.url), !this.mustLoad)
7980
7980
  return this.asset;
7981
7981
  if (t && this._progressListeners.push(t), this._loading !== void 0)
7982
7982
  return this._loading.then((s) => this.asset);
7983
7983
  const e = J.Current;
7984
- this._rawBinary ? (this._loading = Hs().parseSync(e, this._rawBinary, this.url, null), this.raiseProgressEvent(new ProgressEvent("progress", { loaded: this._rawBinary.byteLength, total: this._rawBinary.byteLength }))) : (Gn && console.log("Load async", this.url), this._loading = Hs().loadSync(e, this._hashedUri, this.url, null, (s) => {
7984
+ this._rawBinary ? (this._loading = Hs().parseSync(e, this._rawBinary, this.url, null), this.raiseProgressEvent(new ProgressEvent("progress", { loaded: this._rawBinary.byteLength, total: this._rawBinary.byteLength }))) : (Hn && console.log("Load async", this.url), this._loading = Hs().loadSync(e, this._hashedUri, this.url, null, (s) => {
7985
7985
  this.raiseProgressEvent(s);
7986
7986
  }));
7987
7987
  const i = await this._loading;
@@ -8009,8 +8009,8 @@ const qf = Symbol("assetReference"), Zo = class {
8009
8009
  }
8010
8010
  async onInstantiate(t, e = !1, i) {
8011
8011
  const s = J.Current, o = new Qs();
8012
- if (t instanceof L ? o.parent = t : t && (Object.assign(o, t), o.cloneAssign(t)), o.parent || (o.parent = s.scene), this.mustLoad && await this.loadAssetAsync(), Gn && console.log("Instantiate", this.url, "parent:", t), this.asset) {
8013
- Gn && console.log("Add to scene", this.asset);
8012
+ if (t instanceof L ? o.parent = t : t && (Object.assign(o, t), o.cloneAssign(t)), o.parent || (o.parent = s.scene), this.mustLoad && await this.loadAssetAsync(), Hn && console.log("Instantiate", this.url, "parent:", t), this.asset) {
8013
+ Hn && console.log("Add to scene", this.asset);
8014
8014
  let a = Zo.currentlyInstantiating.get(this.url);
8015
8015
  if (a !== void 0 && a >= 1e4)
8016
8016
  return console.error("Recursive or too many instantiations of " + this.url + " in the same frame (" + a + ")"), null;
@@ -8033,7 +8033,7 @@ const qf = Symbol("assetReference"), Zo = class {
8033
8033
  });
8034
8034
  }
8035
8035
  } else
8036
- Gn && console.warn("Failed to load asset", this.url);
8036
+ Hn && console.warn("Failed to load asset", this.url);
8037
8037
  return null;
8038
8038
  }
8039
8039
  /**
@@ -8459,7 +8459,7 @@ class OO {
8459
8459
  return o === void 0 || !(o != null && o.length) || o.length <= i ? null : o[i];
8460
8460
  }
8461
8461
  }
8462
- Yt.lights_fragment_maps = Yt.lights_fragment_maps.replace("vec4 lightMapTexel = texture2D( lightMap, vLightMapUv );", `
8462
+ Kt.lights_fragment_maps = Kt.lights_fragment_maps.replace("vec4 lightMapTexel = texture2D( lightMap, vLightMapUv );", `
8463
8463
  vec2 lUv = vLightMapUv.xy * lightmapScaleOffset.xy + vec2(lightmapScaleOffset.z, (1. - (lightmapScaleOffset.y + lightmapScaleOffset.w)));
8464
8464
  vec4 lightMapTexel = texture2D( lightMap, lUv);
8465
8465
  // The range of RGBM lightmaps goes from 0 to 34.49 (5^2.2) in linear space, and from 0 to 5 in gamma space.
@@ -8467,7 +8467,7 @@ Yt.lights_fragment_maps = Yt.lights_fragment_maps.replace("vec4 lightMapTexel =
8467
8467
  lightMapTexel.a = 1.;
8468
8468
  lightMapTexel = conv_sRGBToLinear(lightMapTexel);
8469
8469
  `);
8470
- Yt.lightmap_pars_fragment = `
8470
+ Kt.lightmap_pars_fragment = `
8471
8471
  #ifdef USE_LIGHTMAP
8472
8472
  uniform sampler2D lightMap;
8473
8473
  uniform float lightMapIntensity;
@@ -8479,7 +8479,7 @@ Yt.lightmap_pars_fragment = `
8479
8479
  }
8480
8480
  #endif
8481
8481
  `;
8482
- Yt.lights_fragment_begin = Yt.lights_fragment_begin.replace(
8482
+ Kt.lights_fragment_begin = Kt.lights_fragment_begin.replace(
8483
8483
  "irradiance += getLightProbeIrradiance( lightProbe, geometry.normal );",
8484
8484
  `
8485
8485
  #if defined(USE_LIGHTMAP)
@@ -8798,7 +8798,7 @@ class BO {
8798
8798
  if (s && s.Source) {
8799
8799
  ls && console.log("Setting environment reflection", s);
8800
8800
  const o = this.context.scene, a = s.Source;
8801
- a.mapping = Rn, o.environment = a;
8801
+ a.mapping = Mn, o.environment = a;
8802
8802
  return;
8803
8803
  } else
8804
8804
  ls && console.warn("Could not find reflection for source", t);
@@ -8809,14 +8809,14 @@ class BO {
8809
8809
  case 1:
8810
8810
  if (e.ambientTrilight) {
8811
8811
  const s = e.ambientTrilight, o = EO(s[0], s[1], s[2], 64, 64);
8812
- o.colorSpace = gs, o.mapping = Rn, this.context.scene.environment = o;
8812
+ o.colorSpace = gs, o.mapping = Mn, this.context.scene.environment = o;
8813
8813
  } else
8814
8814
  console.error("Missing ambient trilight", e.sourceId);
8815
8815
  return;
8816
8816
  case 3:
8817
8817
  if (e.ambientLight) {
8818
8818
  const s = Tg(e.ambientLight, 64);
8819
- s.colorSpace = gs, s.mapping = Rn, this.context.scene.environment = s;
8819
+ s.colorSpace = gs, s.mapping = Mn, this.context.scene.environment = s;
8820
8820
  } else
8821
8821
  console.error("Missing ambientlight", e.sourceId);
8822
8822
  return;
@@ -8844,7 +8844,7 @@ class FO {
8844
8844
  constructor(t, e, i = 1) {
8845
8845
  // get Array(): number[] | undefined { return this._sphericalHarmonicsArray; }
8846
8846
  r(this, "_source");
8847
- this._source = e, e.mapping = Rn;
8847
+ this._source = e, e.mapping = Mn;
8848
8848
  }
8849
8849
  get Source() {
8850
8850
  return this._source;
@@ -8991,10 +8991,10 @@ vec3 NeutralToneMapping( vec3 color ) {
8991
8991
  return mix(color, vec3(1, 1, 1), g);
8992
8992
  }
8993
8993
  `, t = "vec3 NeutralToneMapping( vec3 color ) {", e = `return mix( color, vec3( newPeak ), g );
8994
- }`, i = Yt.tonemapping_pars_fragment.indexOf(t), s = Yt.tonemapping_pars_fragment.indexOf(e, i);
8994
+ }`, i = Kt.tonemapping_pars_fragment.indexOf(t), s = Kt.tonemapping_pars_fragment.indexOf(e, i);
8995
8995
  if (i >= 0 && s >= 0) {
8996
- const o = Yt.tonemapping_pars_fragment.substring(i, s + e.length);
8997
- Yt.tonemapping_pars_fragment = Yt.tonemapping_pars_fragment.replace(o, n);
8996
+ const o = Kt.tonemapping_pars_fragment.substring(i, s + e.length);
8997
+ Kt.tonemapping_pars_fragment = Kt.tonemapping_pars_fragment.replace(o, n);
8998
8998
  } else
8999
8999
  U() && console.error("Couldn't find NeutralToneMapping in ShaderChunk.tonemapping_pars_fragment");
9000
9000
  }
@@ -9109,10 +9109,10 @@ vec3 AgXToneMapping( vec3 color ) {
9109
9109
  color = _agxLook(color); // Optional
9110
9110
  color = _agxEotf(color);
9111
9111
  return color;
9112
- `, t = "vec3 AgXToneMapping( vec3 color ) {", e = "return color;", i = Yt.tonemapping_pars_fragment.indexOf(t), s = Yt.tonemapping_pars_fragment.indexOf(e, i);
9112
+ `, t = "vec3 AgXToneMapping( vec3 color ) {", e = "return color;", i = Kt.tonemapping_pars_fragment.indexOf(t), s = Kt.tonemapping_pars_fragment.indexOf(e, i);
9113
9113
  if (i >= 0 && s >= 0) {
9114
- const o = Yt.tonemapping_pars_fragment.substring(i, s + e.length);
9115
- Yt.tonemapping_pars_fragment = Yt.tonemapping_pars_fragment.replace(o, n);
9114
+ const o = Kt.tonemapping_pars_fragment.substring(i, s + e.length);
9115
+ Kt.tonemapping_pars_fragment = Kt.tonemapping_pars_fragment.replace(o, n);
9116
9116
  } else
9117
9117
  U() && console.error("Couldn't find AgXToneMapping in ShaderChunk.tonemapping_pars_fragment");
9118
9118
  }
@@ -9783,11 +9783,11 @@ const My = class extends HTMLElement {
9783
9783
  constructor() {
9784
9784
  var u, p, m, g, y, _;
9785
9785
  super();
9786
- ui(this, zc);
9786
+ fi(this, zc);
9787
9787
  r(this, "_domElement", null);
9788
9788
  r(this, "_context", null);
9789
9789
  r(this, "_sizeChangeInterval");
9790
- ui(this, Fc, (e) => {
9790
+ fi(this, Fc, (e) => {
9791
9791
  if (!e.defaultPrevented && e.target == this._domElement && e instanceof PointerEvent && e.button === 0 && this.root.classList.contains("open")) {
9792
9792
  const i = this.foldout.getBoundingClientRect(), s = e;
9793
9793
  s.clientX > i.left && s.clientX < i.right && s.clientY > i.top && s.clientY < i.bottom || this.root.classList.toggle("open", !1);
@@ -10240,7 +10240,7 @@ const My = class extends HTMLElement {
10240
10240
  const M = this == null ? void 0 : this.parentNode;
10241
10241
  if ((this.style.display != "flex" || this.style.visibility != "visible" || this.style.opacity != "1" || M != ((x = this._domElement) == null ? void 0 : x.shadowRoot)) && !Vs()) {
10242
10242
  const k = l++;
10243
- li() && this._userRequestedMenuVisible === !1 ? (k === 0 && c(M, this._userRequestedMenuVisible), k === 1 && console.warn("Needle Menu Warning: You need a PRO license to hide the Needle Engine menu → The menu will be visible in your deployed website if you don't have a PRO license. See https://needle.tools/pricing for details.")) : k === 0 ? c(M, !0) : setTimeout(() => c(M, !0), 5);
10243
+ ci() && this._userRequestedMenuVisible === !1 ? (k === 0 && c(M, this._userRequestedMenuVisible), k === 1 && console.warn("Needle Menu Warning: You need a PRO license to hide the Needle Engine menu → The menu will be visible in your deployed website if you don't have a PRO license. See https://needle.tools/pricing for details.")) : k === 0 ? c(M, !0) : setTimeout(() => c(M, !0), 5);
10244
10244
  }
10245
10245
  } finally {
10246
10246
  h = !1;
@@ -10265,7 +10265,7 @@ const My = class extends HTMLElement {
10265
10265
  window.removeEventListener("resize", this.handleSizeChange), clearInterval(this._sizeChangeInterval), (e = this._domElement) == null || e.removeEventListener("resize", this.handleSizeChange), (i = this._context) == null || i.domElement.removeEventListener("click", de(this, Fc));
10266
10266
  }
10267
10267
  showNeedleLogo(e) {
10268
- this._userRequestedLogoVisible = e, !(!e && (!Vs() || q_) && (console.warn("Needle Menu: You need a PRO license to hide the Needle Engine logo."), !li())) && Uo(this, zc, Mm).call(this, e);
10268
+ this._userRequestedLogoVisible = e, !(!e && (!Vs() || q_) && (console.warn("Needle Menu: You need a PRO license to hide the Needle Engine logo."), !ci())) && Uo(this, zc, Mm).call(this, e);
10269
10269
  }
10270
10270
  setPosition(e) {
10271
10271
  if (e !== "top" && e !== "bottom")
@@ -10685,7 +10685,7 @@ const Pe = class {
10685
10685
  const t = this.mainCameraComponent;
10686
10686
  return t.threeCamera || t.buildCamera(), t.threeCamera;
10687
10687
  }
10688
- return this._fallbackCamera || (this._fallbackCamera = new ge(75, this.domWidth / this.domHeight, 0.1, 1e3)), this._fallbackCamera;
10688
+ return this._fallbackCamera || (this._fallbackCamera = new ye(75, this.domWidth / this.domHeight, 0.1, 1e3)), this._fallbackCamera;
10689
10689
  }
10690
10690
  /** Set the main camera of the scene. If set to null the camera of the {@link mainCameraComponent} will be used - this camera is used for rendering */
10691
10691
  set mainCamera(t) {
@@ -10735,8 +10735,14 @@ const Pe = class {
10735
10735
  if (!t)
10736
10736
  return;
10737
10737
  e === void 0 && (e = this.domWidth), i === void 0 && (i = this.domHeight);
10738
- const s = t.aspect;
10739
- t.aspect = e / i, s !== t.aspect && t.updateProjectionMatrix();
10738
+ const s = e / i;
10739
+ if (t.isPerspectiveCamera) {
10740
+ const o = t, a = o.aspect;
10741
+ o.aspect = s, a !== o.aspect && t.updateProjectionMatrix();
10742
+ } else if (t.isOrthographicCamera) {
10743
+ const o = t, a = o.top - o.bottom, c = a * s / 2, h = a / 2;
10744
+ (o.left != -c || o.top != h) && (o.left = -c, o.right = c, o.top = h, o.bottom = -h, t.updateProjectionMatrix());
10745
+ }
10740
10746
  }
10741
10747
  /** This will recreate the whole needle engine context and dispose the whole scene content
10742
10748
  * All content will be reloaded (loading times might be faster due to browser caches)
@@ -12233,14 +12239,14 @@ var aM = Object.defineProperty, lM = Object.getOwnPropertyDescriptor, Ir = (n, t
12233
12239
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
12234
12240
  return i && s && aM(t, e, s), s;
12235
12241
  };
12236
- const qn = S("debuganimation");
12242
+ const Gn = S("debuganimation");
12237
12243
  let Dv = class {
12238
12244
  constructor() {
12239
12245
  r(this, "x");
12240
12246
  r(this, "y");
12241
12247
  }
12242
12248
  };
12243
- class Kt extends D {
12249
+ class Zt extends D {
12244
12250
  constructor() {
12245
12251
  super(...arguments);
12246
12252
  r(this, "playAutomatically", !0);
@@ -12290,7 +12296,7 @@ class Kt extends D {
12290
12296
  */
12291
12297
  set clip(e) {
12292
12298
  if (!this.__didAwake) {
12293
- qn && console.warn("Assign clip during serialization", e), this._tempAnimationClipBeforeGameObjectExisted = e;
12299
+ Gn && console.warn("Assign clip during serialization", e), this._tempAnimationClipBeforeGameObjectExisted = e;
12294
12300
  return;
12295
12301
  }
12296
12302
  e && (this.gameObject.animations || (this.gameObject.animations = []), !this.animations.includes(e) && (this.animations.length > 0 ? this.animations.splice(0, 0, e) : this.animations.push(e)));
@@ -12315,7 +12321,7 @@ class Kt extends D {
12315
12321
  }
12316
12322
  /** @internal */
12317
12323
  awake() {
12318
- this.mixer = void 0, qn && console.log("Animation Awake", this.name, this), this._tempAnimationsArray && (this.animations = this._tempAnimationsArray, this._tempAnimationsArray = void 0), this._tempAnimationClipBeforeGameObjectExisted && (this.clip = this._tempAnimationClipBeforeGameObjectExisted, this._tempAnimationClipBeforeGameObjectExisted = null), this.actions = [], this._handles = [];
12324
+ this.mixer = void 0, Gn && console.log("Animation Awake", this.name, this), this._tempAnimationsArray && (this.animations = this._tempAnimationsArray, this._tempAnimationsArray = void 0), this._tempAnimationClipBeforeGameObjectExisted && (this.clip = this._tempAnimationClipBeforeGameObjectExisted, this._tempAnimationClipBeforeGameObjectExisted = null), this.actions = [], this._handles = [];
12319
12325
  }
12320
12326
  /** @internal */
12321
12327
  onEnable() {
@@ -12372,7 +12378,7 @@ class Kt extends D {
12372
12378
  return;
12373
12379
  } else if (typeof e == "number") {
12374
12380
  if (e >= this.animations.length) {
12375
- qn && console.log("No animation at index", e);
12381
+ Gn && console.log("No animation at index", e);
12376
12382
  return;
12377
12383
  }
12378
12384
  e = this.animations[e];
@@ -12401,7 +12407,7 @@ class Kt extends D {
12401
12407
  return;
12402
12408
  } else if (typeof e == "number") {
12403
12409
  if (e >= this.animations.length) {
12404
- qn && console.log("No animation at index", e);
12410
+ Gn && console.log("No animation at index", e);
12405
12411
  return;
12406
12412
  }
12407
12413
  e = this.animations[e];
@@ -12433,15 +12439,15 @@ class Kt extends D {
12433
12439
  * @returns a promise that resolves when the animation is finished (note that it will not resolve if the animation is looping)
12434
12440
  */
12435
12441
  play(e = 0, i) {
12436
- if (qn && console.log("PLAY", e), this.ensureMixer(), !this.mixer) {
12437
- qn && console.warn("Missing mixer", this);
12442
+ if (Gn && console.log("PLAY", e), this.ensureMixer(), !this.mixer) {
12443
+ Gn && console.warn("Missing mixer", this);
12438
12444
  return;
12439
12445
  }
12440
12446
  e === void 0 && (e = 0);
12441
12447
  let s = e;
12442
12448
  if (typeof e == "number") {
12443
12449
  if (e >= this.animations.length) {
12444
- qn && console.log("No animation at index", e);
12450
+ Gn && console.log("No animation at index", e);
12445
12451
  return;
12446
12452
  }
12447
12453
  s = this.animations[e];
@@ -12479,7 +12485,7 @@ class Kt extends D {
12479
12485
  e.time = $.lerp(i.minMaxOffsetNormalized.x, i.minMaxOffsetNormalized.y, Math.random()) * l.duration;
12480
12486
  } else
12481
12487
  e.time >= e.getClip().duration && (e.time = 0);
12482
- i != null && i.minMaxSpeed ? e.timeScale = $.lerp(i.minMaxSpeed.x, i.minMaxSpeed.y, Math.random()) : e.timeScale = (i == null ? void 0 : i.speed) ?? 1, (i == null ? void 0 : i.loop) != null ? e.loop = i.loop ? qx : Zp : e.loop = Zp, i != null && i.clampWhenFinished && (e.clampWhenFinished = !0), e.paused = !1, e.play(), qn && console.log("PLAY", e.getClip().name, e);
12488
+ i != null && i.minMaxSpeed ? e.timeScale = $.lerp(i.minMaxSpeed.x, i.minMaxSpeed.y, Math.random()) : e.timeScale = (i == null ? void 0 : i.speed) ?? 1, (i == null ? void 0 : i.loop) != null ? e.loop = i.loop ? qx : Zp : e.loop = Zp, i != null && i.clampWhenFinished && (e.clampWhenFinished = !0), e.paused = !1, e.play(), Gn && console.log("PLAY", e.getClip().name, e);
12483
12489
  const a = new cM(e, this.mixer, i, (l) => {
12484
12490
  this._handles.splice(this._handles.indexOf(a), 1);
12485
12491
  });
@@ -12500,25 +12506,25 @@ class Kt extends D {
12500
12506
  }
12501
12507
  Ir([
12502
12508
  f()
12503
- ], Kt.prototype, "playAutomatically", 2);
12509
+ ], Zt.prototype, "playAutomatically", 2);
12504
12510
  Ir([
12505
12511
  f()
12506
- ], Kt.prototype, "randomStartTime", 2);
12512
+ ], Zt.prototype, "randomStartTime", 2);
12507
12513
  Ir([
12508
12514
  f(Dv)
12509
- ], Kt.prototype, "minMaxSpeed", 2);
12515
+ ], Zt.prototype, "minMaxSpeed", 2);
12510
12516
  Ir([
12511
12517
  f(Dv)
12512
- ], Kt.prototype, "minMaxOffsetNormalized", 2);
12518
+ ], Zt.prototype, "minMaxOffsetNormalized", 2);
12513
12519
  Ir([
12514
12520
  f()
12515
- ], Kt.prototype, "loop", 2);
12521
+ ], Zt.prototype, "loop", 2);
12516
12522
  Ir([
12517
12523
  f()
12518
- ], Kt.prototype, "clampWhenFinished", 2);
12524
+ ], Zt.prototype, "clampWhenFinished", 2);
12519
12525
  Ir([
12520
12526
  f(rr)
12521
- ], Kt.prototype, "clips", 1);
12527
+ ], Zt.prototype, "clips", 1);
12522
12528
  class cM {
12523
12529
  constructor(t, e, i, s) {
12524
12530
  r(this, "mixer");
@@ -12555,7 +12561,7 @@ var hM = Object.defineProperty, dM = Object.getOwnPropertyDescriptor, Mo = (n, t
12555
12561
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
12556
12562
  return i && s && hM(t, e, s), s;
12557
12563
  };
12558
- class ai {
12564
+ class li {
12559
12565
  constructor(t = 0, e = 0) {
12560
12566
  r(this, "time", 0);
12561
12567
  r(this, "value", 0);
@@ -12569,25 +12575,25 @@ class ai {
12569
12575
  }
12570
12576
  Mo([
12571
12577
  f()
12572
- ], ai.prototype, "time", 2);
12578
+ ], li.prototype, "time", 2);
12573
12579
  Mo([
12574
12580
  f()
12575
- ], ai.prototype, "value", 2);
12581
+ ], li.prototype, "value", 2);
12576
12582
  Mo([
12577
12583
  f()
12578
- ], ai.prototype, "inTangent", 2);
12584
+ ], li.prototype, "inTangent", 2);
12579
12585
  Mo([
12580
12586
  f()
12581
- ], ai.prototype, "inWeight", 2);
12587
+ ], li.prototype, "inWeight", 2);
12582
12588
  Mo([
12583
12589
  f()
12584
- ], ai.prototype, "outTangent", 2);
12590
+ ], li.prototype, "outTangent", 2);
12585
12591
  Mo([
12586
12592
  f()
12587
- ], ai.prototype, "outWeight", 2);
12593
+ ], li.prototype, "outWeight", 2);
12588
12594
  Mo([
12589
12595
  f()
12590
- ], ai.prototype, "weightedMode", 2);
12596
+ ], li.prototype, "weightedMode", 2);
12591
12597
  const $l = class {
12592
12598
  constructor() {
12593
12599
  r(this, "keys", []);
@@ -12596,14 +12602,14 @@ const $l = class {
12596
12602
  * Creates an animation curve that goes from the `from` value to the `to` value over the given `duration`.
12597
12603
  */
12598
12604
  static linearFromTo(n, t, e) {
12599
- const i = new $l(), s = new ai();
12605
+ const i = new $l(), s = new li();
12600
12606
  s.time = 0, s.value = n;
12601
- const o = new ai();
12607
+ const o = new li();
12602
12608
  return o.time = e, o.value = t, i.keys.push(s, o), i;
12603
12609
  }
12604
12610
  /** Creates an animation curve with just one keyframe */
12605
12611
  static constant(n) {
12606
- const t = new $l(), e = new ai();
12612
+ const t = new $l(), e = new li();
12607
12613
  return e.time = 0, e.value = n, t.keys.push(e), t;
12608
12614
  }
12609
12615
  /**
@@ -12613,7 +12619,7 @@ const $l = class {
12613
12619
  var t;
12614
12620
  const n = new $l();
12615
12621
  return n.keys = ((t = this.keys) == null ? void 0 : t.map((e) => {
12616
- const i = new ai();
12622
+ const i = new li();
12617
12623
  return i.time = e.time, i.value = e.value, i.inTangent = e.inTangent, i.inWeight = e.inWeight, i.outTangent = e.outTangent, i.outWeight = e.outWeight, i.weightedMode = e.weightedMode, i;
12618
12624
  })) || [], n;
12619
12625
  }
@@ -12652,7 +12658,7 @@ const $l = class {
12652
12658
  };
12653
12659
  let Ya = $l;
12654
12660
  Mo([
12655
- f(ai)
12661
+ f(li)
12656
12662
  ], Ya.prototype, "keys", 2);
12657
12663
  const vd = Symbol("objectIsAnimatedData");
12658
12664
  function tb(n, t, e) {
@@ -12709,7 +12715,7 @@ function fM(n, t) {
12709
12715
  return {
12710
12716
  name: "Empty",
12711
12717
  isLooping: !1,
12712
- guid: (t == null ? void 0 : t.generateUUID()) ?? On.generateUUID(),
12718
+ guid: (t == null ? void 0 : t.generateUUID()) ?? Pn.generateUUID(),
12713
12719
  index: -1,
12714
12720
  clip: new rr(n, 0, [])
12715
12721
  };
@@ -13571,7 +13577,7 @@ var _M = Object.defineProperty, bM = Object.getOwnPropertyDescriptor, Xc = (n, t
13571
13577
  return i && s && _M(t, e, s), s;
13572
13578
  };
13573
13579
  const Dh = S("debuggroundprojection");
13574
- class Bn extends D {
13580
+ class jn extends D {
13575
13581
  constructor() {
13576
13582
  super(...arguments);
13577
13583
  r(this, "applyOnAwake", !1);
@@ -13707,19 +13713,19 @@ class Bn extends D {
13707
13713
  }
13708
13714
  Xc([
13709
13715
  f()
13710
- ], Bn.prototype, "applyOnAwake", 2);
13716
+ ], jn.prototype, "applyOnAwake", 2);
13711
13717
  Xc([
13712
13718
  f()
13713
- ], Bn.prototype, "autoFit", 2);
13719
+ ], jn.prototype, "autoFit", 2);
13714
13720
  Xc([
13715
13721
  f()
13716
- ], Bn.prototype, "radius", 1);
13722
+ ], jn.prototype, "radius", 1);
13717
13723
  Xc([
13718
13724
  f()
13719
- ], Bn.prototype, "height", 1);
13725
+ ], jn.prototype, "height", 1);
13720
13726
  Xc([
13721
13727
  f()
13722
- ], Bn.prototype, "arBlending", 1);
13728
+ ], jn.prototype, "arBlending", 1);
13723
13729
  const vM = `
13724
13730
  varying vec2 vUv;
13725
13731
 
@@ -13813,25 +13819,25 @@ Ig([
13813
13819
  f(L)
13814
13820
  ], Ka.prototype, "sources", 2);
13815
13821
  function AD(n, t) {
13816
- return jn(n, me.ContextCreated, t), () => Oo(n, me.ContextCreated);
13822
+ return Ln(n, me.ContextCreated, t), () => Oo(n, me.ContextCreated);
13817
13823
  }
13818
13824
  function ED(n, t) {
13819
- return jn(n, me.ContextClearing, t), () => Oo(n, me.ContextClearing);
13825
+ return Ln(n, me.ContextClearing, t), () => Oo(n, me.ContextClearing);
13820
13826
  }
13821
13827
  function ID(n, t) {
13822
- return jn(n, me.ContextDestroying, t), () => Oo(n, me.ContextDestroying);
13828
+ return Ln(n, me.ContextDestroying, t), () => Oo(n, me.ContextDestroying);
13823
13829
  }
13824
13830
  function CM(n, t) {
13825
- return jn(n, Ce.Start, t), () => Oo(n, Ce.Start);
13831
+ return Ln(n, Ce.Start, t), () => Oo(n, Ce.Start);
13826
13832
  }
13827
13833
  function PM(n, t) {
13828
- return jn(n, Ce.Update, t), () => Oo(n, Ce.Update);
13834
+ return Ln(n, Ce.Update, t), () => Oo(n, Ce.Update);
13829
13835
  }
13830
13836
  function DD(n, t) {
13831
- return jn(n, Ce.OnBeforeRender, t), () => Oo(n, Ce.OnBeforeRender);
13837
+ return Ln(n, Ce.OnBeforeRender, t), () => Oo(n, Ce.OnBeforeRender);
13832
13838
  }
13833
13839
  function LD(n, t) {
13834
- return jn(n, Ce.OnAfterRender, t), () => Oo(n, Ce.OnAfterRender);
13840
+ return Ln(n, Ce.OnAfterRender, t), () => Oo(n, Ce.OnAfterRender);
13835
13841
  }
13836
13842
  let fr = class {
13837
13843
  constructor() {
@@ -14378,56 +14384,56 @@ const km = (Fp = class extends D {
14378
14384
  this._lastPosition.copy(km.tempPosition), this._smoothedVelocity.lerp(e, this.context.time.deltaTime / 0.1);
14379
14385
  }
14380
14386
  }, r(Fp, "tempPosition", new v()), Fp);
14381
- let ye = km;
14387
+ let ge = km;
14382
14388
  Mi([
14383
14389
  zt()
14384
- ], ye.prototype, "autoMass", 2);
14390
+ ], ge.prototype, "autoMass", 2);
14385
14391
  Mi([
14386
14392
  f()
14387
- ], ye.prototype, "mass", 1);
14393
+ ], ge.prototype, "mass", 1);
14388
14394
  Mi([
14389
14395
  zt(),
14390
14396
  f()
14391
- ], ye.prototype, "useGravity", 2);
14397
+ ], ge.prototype, "useGravity", 2);
14392
14398
  Mi([
14393
14399
  f(v)
14394
- ], ye.prototype, "centerOfMass", 2);
14400
+ ], ge.prototype, "centerOfMass", 2);
14395
14401
  Mi([
14396
14402
  zt(),
14397
14403
  f()
14398
- ], ye.prototype, "constraints", 2);
14404
+ ], ge.prototype, "constraints", 2);
14399
14405
  Mi([
14400
14406
  zt(),
14401
14407
  f()
14402
- ], ye.prototype, "isKinematic", 2);
14408
+ ], ge.prototype, "isKinematic", 2);
14403
14409
  Mi([
14404
14410
  zt(),
14405
14411
  f()
14406
- ], ye.prototype, "drag", 2);
14412
+ ], ge.prototype, "drag", 2);
14407
14413
  Mi([
14408
14414
  zt(),
14409
14415
  f()
14410
- ], ye.prototype, "angularDrag", 2);
14416
+ ], ge.prototype, "angularDrag", 2);
14411
14417
  Mi([
14412
14418
  zt(),
14413
14419
  f()
14414
- ], ye.prototype, "detectCollisions", 2);
14420
+ ], ge.prototype, "detectCollisions", 2);
14415
14421
  Mi([
14416
14422
  zt(),
14417
14423
  f()
14418
- ], ye.prototype, "sleepThreshold", 2);
14424
+ ], ge.prototype, "sleepThreshold", 2);
14419
14425
  Mi([
14420
14426
  zt(),
14421
14427
  f()
14422
- ], ye.prototype, "collisionDetectionMode", 2);
14428
+ ], ge.prototype, "collisionDetectionMode", 2);
14423
14429
  Mi([
14424
14430
  zt()
14425
- ], ye.prototype, "_gravityScale", 2);
14431
+ ], ge.prototype, "_gravityScale", 2);
14426
14432
  Mi([
14427
14433
  zt()
14428
- ], ye.prototype, "dominanceGroup", 2);
14434
+ ], ge.prototype, "dominanceGroup", 2);
14429
14435
  new v();
14430
- const TM = new W(), AM = new v(), eo = S("debugsync"), Ic = "STRS";
14436
+ const TM = new W(), AM = new v(), Jn = S("debugsync"), Ic = "STRS";
14431
14437
  Y0(Ic, vn.getRootAsSyncedTransformModel);
14432
14438
  const Os = new cg();
14433
14439
  function Bv(n, t, e = !0) {
@@ -14443,9 +14449,9 @@ let Tm = 0, cc = 0;
14443
14449
  PM((n) => {
14444
14450
  var i;
14445
14451
  const e = ((i = n.connection.currentServerUrl) == null ? void 0 : i.includes("glitch")) ? 10 : 40;
14446
- cc = Math.floor(Tm / e), Tm = 0, eo && cc > 0 && console.log("Sync Transform Fast Interval", cc);
14452
+ cc = Math.floor(Tm / e), Tm = 0, Jn && cc > 0 && console.log("Sync Transform Fast Interval", cc);
14447
14453
  });
14448
- class In extends D {
14454
+ class En extends D {
14449
14455
  constructor() {
14450
14456
  super(...arguments);
14451
14457
  // public autoOwnership: boolean = true;
@@ -14473,7 +14479,7 @@ class In extends D {
14473
14479
  }
14474
14480
  /** Request ownership of an object - you need to be connected to a room */
14475
14481
  requestOwnership() {
14476
- eo && console.log("Request ownership"), this._model ? this._model.requestOwnership() : (this._shouldRequestOwnership = !0, this._needsUpdate = !0);
14482
+ Jn && console.log("Request ownership"), this._model ? this._model.requestOwnership() : (this._shouldRequestOwnership = !0, this._needsUpdate = !0);
14477
14483
  }
14478
14484
  hasOwnership() {
14479
14485
  var e;
@@ -14485,7 +14491,7 @@ class In extends D {
14485
14491
  }
14486
14492
  /** @internal */
14487
14493
  awake() {
14488
- eo && console.log("new instance", this.guid, this), this._receivedDataBefore = !1, this._targetPosition = new v(), this._targetRotation = new W(), this.lastWorldPos = new v(), this.lastWorldRotation = new W(), this.rb = C.getComponentInChildren(this.gameObject, ye), this.rb && (this._wasKinematic = this.rb.isKinematic), this.receivedUpdate = !0, this._model = new K0(this.context.connection, this.guid), this.context.connection.isConnected && this.tryGetLastState(), this.joinedRoomCallback = this.tryGetLastState.bind(this), this.context.connection.beginListen(se.JoinedRoom, this.joinedRoomCallback), this.receivedDataCallback = this.onReceivedData.bind(this), this.context.connection.beginListenBinary(Ic, this.receivedDataCallback);
14494
+ Jn && console.log("new instance", this.guid, this), this._receivedDataBefore = !1, this._targetPosition = new v(), this._targetRotation = new W(), this.lastWorldPos = new v(), this.lastWorldRotation = new W(), this.rb = C.getComponentInChildren(this.gameObject, ge), this.rb && (this._wasKinematic = this.rb.isKinematic), this.receivedUpdate = !0, this._model = new K0(this.context.connection, this.guid), this.context.connection.isConnected && this.tryGetLastState(), this.joinedRoomCallback = this.tryGetLastState.bind(this), this.context.connection.beginListen(se.JoinedRoom, this.joinedRoomCallback), this.receivedDataCallback = this.onReceivedData.bind(this), this.context.connection.beginListenBinary(Ic, this.receivedDataCallback);
14489
14495
  }
14490
14496
  /** @internal */
14491
14497
  onDestroy() {
@@ -14498,7 +14504,7 @@ class In extends D {
14498
14504
  onReceivedData(e) {
14499
14505
  var i;
14500
14506
  if (!this.destroyed && typeof e.guid == "function" && e.guid() === this.guid) {
14501
- eo && console.log("new data", this.context.connection.connectionId, this.context.time.frameCount, this.guid, e), this.receivedUpdate = !0, this._receivedFastUpdate = e.fast();
14507
+ Jn && console.log("new data", this.context.connection.connectionId, this.context.time.frameCount, this.guid, e), this.receivedUpdate = !0, this._receivedFastUpdate = e.fast();
14502
14508
  const s = e.transform();
14503
14509
  if (s) {
14504
14510
  ps.markDirty(this.gameObject, !0);
@@ -14523,14 +14529,14 @@ class In extends D {
14523
14529
  if (!this.activeAndEnabled || !this.context.connection.isConnected)
14524
14530
  return;
14525
14531
  if (!this.context.connection.isInRoom || !this._model) {
14526
- eo && console.log("no model or room", this.name, this.guid, this.context.connection.isInRoom);
14532
+ Jn && console.log("no model or room", this.name, this.guid, this.context.connection.isInRoom);
14527
14533
  return;
14528
14534
  }
14529
14535
  this._shouldRequestOwnership && (this._shouldRequestOwnership = !1, this._model.requestOwnership());
14530
14536
  const e = this.worldPosition, i = this.worldQuaternion;
14531
14537
  if (this._model.isOwned && !this.receivedUpdate) {
14532
14538
  const a = e.distanceTo(this.lastWorldPos), l = i.angleTo(this.lastWorldRotation), c = this._model.hasOwnership || this.fastMode ? 1e-4 : 1e-3;
14533
- (a > c || l > c) && (this._model.hasOwnership ? this._needsUpdate = !0 : (eo && console.log(this.guid, "reset because not owned but", this.gameObject.name, this.lastWorldPos), this.worldPosition = this.lastWorldPos, e.copy(this.lastWorldPos), this.worldQuaternion = this.lastWorldRotation, i.copy(this.lastWorldRotation), ps.markDirty(this.gameObject, !0), this._needsUpdate = !1));
14539
+ (a > c || l > c) && (this._model.hasOwnership ? this._needsUpdate = !0 : (Jn && console.log(this.guid, "reset because not owned but", this.gameObject.name, this.lastWorldPos), this.worldPosition = this.lastWorldPos, e.copy(this.lastWorldPos), this.worldQuaternion = this.lastWorldRotation, i.copy(this.lastWorldRotation), ps.markDirty(this.gameObject, !0), this._needsUpdate = !1));
14534
14540
  }
14535
14541
  if (this._model && !this._model.hasOwnership && this._model.isOwned && this._receivedDataBefore) {
14536
14542
  const l = this._receivedFastUpdate || this.fastMode ? 0.5 : 0.3;
@@ -14547,12 +14553,12 @@ class In extends D {
14547
14553
  }
14548
14554
  if (this.receivedUpdate = !1, this.lastWorldPos.copy(e), this.lastWorldRotation.copy(i), !this._model || !this._model || this._model.hasOwnership === void 0 || !this._model.hasOwnership)
14549
14555
  return;
14550
- this.rb && this.overridePhysics && this._wasKinematic !== void 0 && (eo && console.log("reset kinematic", this.rb.name, this._wasKinematic), this.rb.isKinematic = this._wasKinematic);
14556
+ this.rb && this.overridePhysics && this._wasKinematic !== void 0 && (Jn && console.log("reset kinematic", this.rb.name, this._wasKinematic), this.rb.isKinematic = this._wasKinematic);
14551
14557
  const s = 10, o = this.rb || this.fastMode;
14552
14558
  if (this._needsUpdate && (this.context.time.frameCount % s === 0 || o)) {
14553
14559
  if (Tm++, o && cc > 0 && this.context.time.frameCount % cc !== 0)
14554
14560
  return;
14555
- eo && console.log("send update", this.context.connection.connectionId, this.guid, this.gameObject.name, this.gameObject.guid), this._needsUpdate = !1;
14561
+ Jn && console.log("send update", this.context.connection.connectionId, this.guid, this.gameObject.name, this.gameObject.guid), this._needsUpdate = !1;
14556
14562
  const a = Bv(this.guid, this, !!o);
14557
14563
  this.context.connection.sendBinary(a);
14558
14564
  }
@@ -15215,9 +15221,9 @@ class ts extends Yc {
15215
15221
  performRaycast(e = null) {
15216
15222
  if (!this.targets)
15217
15223
  return null;
15218
- e ?? (e = new En()), e.targets = this.targets, e.results = this.raycastHits, e.useAcceleratedRaycast = !0;
15224
+ e ?? (e = new An()), e.targets = this.targets, e.results = this.raycastHits, e.useAcceleratedRaycast = !0;
15219
15225
  const i = e.testObject;
15220
- this.ignoreSkinnedMeshes && (e.testObject = (o) => o instanceof Mn ? "continue in children" : i ? i(o) : !0);
15226
+ this.ignoreSkinnedMeshes && (e.testObject = (o) => o instanceof On ? "continue in children" : i ? i(o) : !0);
15221
15227
  const s = this.context.physics.raycast(e);
15222
15228
  return e.testObject = i, s;
15223
15229
  }
@@ -15351,7 +15357,7 @@ const As = class extends D {
15351
15357
  return;
15352
15358
  const i = new Qc(this.context.input, e);
15353
15359
  this._currentPointerEventName = e.type, i.inputSource = this.context.input, i.isClick = e.isClick, i.isDoubleClick = e.isDoubleClick, i.isDown = e.type == Ne.PointerDown, i.isUp = e.type == Ne.PointerUp, i.isPressed = this.context.input.getPointerPressed(e.pointerId), cn && (i.isDown ? console.log("DOWN", i.pointerId) : i.isUp && console.log("UP", i.pointerId), i.isClick && console.log("CLICK", i.pointerId));
15354
- const s = new En();
15360
+ const s = new An();
15355
15361
  e.hasRay ? s.ray = e.ray : s.screenPoint = this.context.input.getPointerPositionRC(e.pointerId);
15356
15362
  const o = this.performRaycast(s);
15357
15363
  if (o) {
@@ -15436,10 +15442,10 @@ const As = class extends D {
15436
15442
  }
15437
15443
  //@ts-ignore
15438
15444
  static ensureUpdateMeshUI(e, i, s = !1) {
15439
- so.update(e, i, s);
15445
+ io.update(e, i, s);
15440
15446
  }
15441
15447
  static markUIDirty(e) {
15442
- so.markDirty();
15448
+ io.markDirty();
15443
15449
  }
15444
15450
  get hasActiveUI() {
15445
15451
  return this.currentActiveMeshUIComponents.length > 0;
@@ -15483,7 +15489,7 @@ const As = class extends D {
15483
15489
  performRaycast(e) {
15484
15490
  if (!this.raycaster)
15485
15491
  return null;
15486
- this._testObjectsCache.clear(), this._sortedHits.length = 0, e || (e = new En()), e.testObject = this.shouldRaycastObject;
15492
+ this._testObjectsCache.clear(), this._sortedHits.length = 0, e || (e = new An()), e.testObject = this.shouldRaycastObject;
15487
15493
  for (const i of this.raycaster) {
15488
15494
  if (!i.activeAndEnabled)
15489
15495
  continue;
@@ -15677,14 +15683,14 @@ const As = class extends D {
15677
15683
  return !e || !e.isUI ? !0 : this.handleMeshUIIntersection(e, i);
15678
15684
  }
15679
15685
  handleMeshUIIntersection(e, i) {
15680
- const s = so.updateState(e, i);
15686
+ const s = io.updateState(e, i);
15681
15687
  return s && this.currentActiveMeshUIComponents.push(s), s !== null;
15682
15688
  }
15683
15689
  resetMeshUIStates() {
15684
- if (this.context.input.getPointerPressedCount() > 0 && so.resetLastSelected(), !(!this.currentActiveMeshUIComponents || this.currentActiveMeshUIComponents.length <= 0)) {
15690
+ if (this.context.input.getPointerPressedCount() > 0 && io.resetLastSelected(), !(!this.currentActiveMeshUIComponents || this.currentActiveMeshUIComponents.length <= 0)) {
15685
15691
  for (let e = 0; e < this.currentActiveMeshUIComponents.length; e++) {
15686
15692
  const i = this.currentActiveMeshUIComponents[e];
15687
- so.resetState(i);
15693
+ io.resetState(i);
15688
15694
  }
15689
15695
  this.currentActiveMeshUIComponents.length = 0;
15690
15696
  }
@@ -15695,7 +15701,7 @@ const As = class extends D {
15695
15701
  };
15696
15702
  let xi = As;
15697
15703
  r(xi, "_eventSystemMap", /* @__PURE__ */ new Map()), r(xi, "didSearchEventSystem", !1);
15698
- class so {
15704
+ class io {
15699
15705
  static markDirty() {
15700
15706
  this.needsUpdate = !0;
15701
15707
  }
@@ -15736,7 +15742,7 @@ class so {
15736
15742
  return t ? t.isBlock ? t : this.findBlockInParent(t.parent) : null;
15737
15743
  }
15738
15744
  }
15739
- r(so, "lastSelected", null), r(so, "lastUpdateFrame", []), r(so, "needsUpdate", !1);
15745
+ r(io, "lastSelected", null), r(io, "lastUpdateFrame", []), r(io, "needsUpdate", !1);
15740
15746
  var XM = Object.defineProperty, QM = Object.getOwnPropertyDescriptor, ze = (n, t, e, i) => {
15741
15747
  for (var s = i > 1 ? void 0 : i ? QM(t, e) : t, o = n.length - 1, a; o >= 0; o--)
15742
15748
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
@@ -15913,7 +15919,7 @@ class _e extends D {
15913
15919
  const e = C.getComponent(this.gameObject, Re);
15914
15920
  this._camera = e;
15915
15921
  let i = e == null ? void 0 : e.threeCamera;
15916
- if (!i && this.gameObject instanceof ge && (i = this.gameObject), i && Jy(i, this, !0), !this._controls && i instanceof ge) {
15922
+ if (!i && this.gameObject instanceof ye && (i = this.gameObject), i && Jy(i, this, !0), !this._controls && i instanceof L) {
15917
15923
  this._cameraObject = i;
15918
15924
  const s = this.targetElement ?? this.context.renderer.domElement, o = i == null ? void 0 : i.quaternion.clone();
15919
15925
  this._controls = new u0(i, s), i == null || i.quaternion.copy(o), tp === void 0 && (tp = { ...this._controls.keys });
@@ -15928,7 +15934,7 @@ class _e extends D {
15928
15934
  this._controls.stopListenToKeyEvents();
15929
15935
  } catch {
15930
15936
  }
15931
- this._syncedTransform = C.getComponent(this.gameObject, In) ?? void 0, this.context.pre_render_callbacks.push(this.__onPreRender), this._activePointerEvents = [], this.context.input.addEventListener("pointerdown", this._onPointerDown, { queue: $i.Early }), this.context.input.addEventListener("pointerup", this._onPointerUp, { queue: $i.Early }), this.context.input.addEventListener("pointerup", this._onPointerUpLate, { queue: $i.Late });
15937
+ this._syncedTransform = C.getComponent(this.gameObject, En) ?? void 0, this.context.pre_render_callbacks.push(this.__onPreRender), this._activePointerEvents = [], this.context.input.addEventListener("pointerdown", this._onPointerDown, { queue: $i.Early }), this.context.input.addEventListener("pointerup", this._onPointerUp, { queue: $i.Early }), this.context.input.addEventListener("pointerup", this._onPointerUpLate, { queue: $i.Late });
15932
15938
  }
15933
15939
  /** @internal */
15934
15940
  onDisable() {
@@ -15963,7 +15969,7 @@ class _e extends D {
15963
15969
  this.setLookTargetPosition(d, !0);
15964
15970
  }
15965
15971
  if (!this.setLookTargetFromConstraint()) {
15966
- const c = new En();
15972
+ const c = new An();
15967
15973
  c.screenPoint = new oe(0, 0), c.lineThreshold = 0.1;
15968
15974
  const h = this.context.physics.raycast(c);
15969
15975
  h.length > 0 && this.setLookTargetPosition(h[0].point, !0), jh && console.log("OrbitControls hits", ...h);
@@ -16120,7 +16126,7 @@ class _e extends D {
16120
16126
  jh && console.log("Fit camera to objects", { fitHeightDistance: M, fitWidthDistance: k, distance: O, verticalFov: b, horizontalFov: x }), this.maxZoom = O * 10, this.minZoom = O * 0.01;
16121
16127
  const R = 0.05, E = m.clone();
16122
16128
  if (E.y -= p.y * R, this.setLookTargetPosition(E, l), this.setFieldOfView(i.fov, l), this.autoTarget = !1, h == null || h == "auto") {
16123
- const V = C.findObjectOfType(Bn), te = V ? V.radius : 0, K = Math.max(_.x, _.y, _.z, te);
16129
+ const V = C.findObjectOfType(jn), te = V ? V.radius : 0, K = Math.max(_.x, _.y, _.z, te);
16124
16130
  o.near = O / 100, o.far = K + O * 10, V && (this.maxZoom = Math.max(Math.min(this.maxZoom, te * 0.5), O));
16125
16131
  }
16126
16132
  const j = a.getDistance();
@@ -16135,9 +16141,9 @@ class _e extends D {
16135
16141
  }, 1e4), G.DrawWireBox3(y, 65280, 10), this._haveAttachedKeyboardEvents || (this._haveAttachedKeyboardEvents = !0, document.body.addEventListener("keydown", (te) => {
16136
16142
  if (te.code === "KeyF") {
16137
16143
  let K;
16138
- this._cameraObject instanceof ge && (K = Math.random() * Math.random() * 170 + 10), this.fitCamera({ objects: s, fitOffset: d, immediate: !1, fov: K });
16144
+ this._cameraObject instanceof ye && (K = Math.random() * Math.random() * 170 + 10), this.fitCamera({ objects: s, fitOffset: d, immediate: !1, fov: K });
16139
16145
  }
16140
- te.code === "KeyV" && this._cameraObject instanceof ge && (this._cameraObject.fov = 60);
16146
+ te.code === "KeyV" && this._cameraObject instanceof ye && (this._cameraObject.fov = 60);
16141
16147
  }));
16142
16148
  }
16143
16149
  a.update();
@@ -16215,12 +16221,12 @@ ze([
16215
16221
  ze([
16216
16222
  f()
16217
16223
  ], _e.prototype, "targetLerpDuration", 2);
16218
- var KM = Object.defineProperty, ZM = Object.getOwnPropertyDescriptor, Jt = (n, t, e, i) => {
16224
+ var KM = Object.defineProperty, ZM = Object.getOwnPropertyDescriptor, ei = (n, t, e, i) => {
16219
16225
  for (var s = i > 1 ? void 0 : i ? ZM(t, e) : t, o = n.length - 1, a; o >= 0; o--)
16220
16226
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
16221
16227
  return i && s && KM(t, e, s), s;
16222
16228
  }, mr = /* @__PURE__ */ ((n) => (n[n.None = 0] = "None", n[n.Skybox = 1] = "Skybox", n[n.SolidColor = 2] = "SolidColor", n[n.Uninitialized = 4] = "Uninitialized", n))(mr || {});
16223
- const to = S("debugcam"), ob = S("debugscreenpointtoray");
16229
+ const eo = S("debugcam"), ob = S("debugscreenpointtoray");
16224
16230
  var td;
16225
16231
  const Vl = (td = class extends D {
16226
16232
  constructor() {
@@ -16249,18 +16255,18 @@ const Vl = (td = class extends D {
16249
16255
  }
16250
16256
  /** The camera's aspect ratio (width divided by height) if it is a perspective camera */
16251
16257
  get aspect() {
16252
- return this._cam instanceof ge ? this._cam.aspect : this.context.domWidth / this.context.domHeight;
16258
+ return this._cam instanceof ye ? this._cam.aspect : this.context.domWidth / this.context.domHeight;
16253
16259
  }
16254
16260
  set aspect(t) {
16255
- this._cam instanceof ge && this._cam.aspect !== t && (this._cam.aspect = t, this._cam.updateProjectionMatrix());
16261
+ this._cam instanceof ye && this._cam.aspect !== t && (this._cam.aspect = t, this._cam.updateProjectionMatrix());
16256
16262
  }
16257
- /** The camera's field of view in degrees if it is a perspective camera */
16263
+ /** The camera's field of view in degrees if it is a perspective camera. Calls updateProjectionMatrix when set */
16258
16264
  get fieldOfView() {
16259
- return this._cam instanceof ge ? this._cam.fov : this._fov;
16265
+ return this._cam instanceof ye ? this._cam.fov : this._fov;
16260
16266
  }
16261
16267
  set fieldOfView(t) {
16262
16268
  const e = this.fieldOfView != t;
16263
- if (this._fov = t, e && this._cam && this._cam instanceof ge) {
16269
+ if (this._fov = t, e && this._cam && this._cam instanceof ye) {
16264
16270
  if (this._fov === void 0) {
16265
16271
  console.warn("Can not set undefined fov on PerspectiveCamera");
16266
16272
  return;
@@ -16268,7 +16274,7 @@ const Vl = (td = class extends D {
16268
16274
  this._cam.fov = this._fov, this._cam.updateProjectionMatrix();
16269
16275
  }
16270
16276
  }
16271
- /** The camera's near clipping plane */
16277
+ /** The camera's near clipping plane. Calls updateProjectionMatrix when set */
16272
16278
  get nearClipPlane() {
16273
16279
  return this._nearClipPlane;
16274
16280
  }
@@ -16276,10 +16282,7 @@ const Vl = (td = class extends D {
16276
16282
  const e = this._nearClipPlane != t;
16277
16283
  this._nearClipPlane = t, this._cam && (e || this._cam.near != t) && (this._cam.near = t, this._cam.updateProjectionMatrix());
16278
16284
  }
16279
- applyClippingPlane() {
16280
- this._cam && (this._cam.near = this._nearClipPlane, this._cam.far = this._farClipPlane, this._cam.updateProjectionMatrix());
16281
- }
16282
- /** The camera's far clipping plane */
16285
+ /** The camera's far clipping plane. Calls updateProjectionMatrix when set */
16283
16286
  get farClipPlane() {
16284
16287
  return this._farClipPlane;
16285
16288
  }
@@ -16287,6 +16290,12 @@ const Vl = (td = class extends D {
16287
16290
  const e = this._farClipPlane != t;
16288
16291
  this._farClipPlane = t, this._cam && (e || this._cam.far != t) && (this._cam.far = t, this._cam.updateProjectionMatrix());
16289
16292
  }
16293
+ /**
16294
+ * Applys both the camera's near and far plane and calls updateProjectionMatrix on the camera.
16295
+ */
16296
+ applyClippingPlane() {
16297
+ this._cam && (this._cam.near = this._nearClipPlane, this._cam.far = this._farClipPlane, this._cam.updateProjectionMatrix());
16298
+ }
16290
16299
  get clearFlags() {
16291
16300
  return this._clearFlags;
16292
16301
  }
@@ -16399,7 +16408,7 @@ const Vl = (td = class extends D {
16399
16408
  }
16400
16409
  /** @internal */
16401
16410
  onEnable() {
16402
- to && console.log(`Camera enabled: "${this.name}". ClearFlags=${mr[this._clearFlags]}`, this), this.buildCamera(), (this.tag == "MainCamera" || !this.context.mainCameraComponent) && (this.context.setCurrentCamera(this), eR(this)), this.applyClearFlagsIfIsActiveCamera({ applySkybox: !0 });
16411
+ eo && console.log(`Camera enabled: "${this.name}". ClearFlags=${mr[this._clearFlags]}`, this), this.buildCamera(), (this.tag == "MainCamera" || !this.context.mainCameraComponent) && (this.context.setCurrentCamera(this), eR(this)), this.applyClearFlagsIfIsActiveCamera({ applySkybox: !0 });
16403
16412
  }
16404
16413
  /** @internal */
16405
16414
  onDisable() {
@@ -16424,10 +16433,10 @@ const Vl = (td = class extends D {
16424
16433
  return;
16425
16434
  const t = this.gameObject.isCamera;
16426
16435
  let e = null;
16427
- if (t ? (e = this.gameObject, e == null || e.layers.enableAll(), e instanceof ge && (this._fov = e.fov)) : e = this.gameObject.children[0], e && e.isCamera)
16428
- e instanceof ge && (this._fov && (e.fov = this._fov), e.near = this._nearClipPlane, e.far = this._farClipPlane, e.updateProjectionMatrix());
16436
+ if (t ? (e = this.gameObject, e == null || e.layers.enableAll(), e instanceof ye && (this._fov = e.fov)) : e = this.gameObject.children[0], e && e.isCamera)
16437
+ e instanceof ye && (this._fov && (e.fov = this._fov), e.near = this._nearClipPlane, e.far = this._farClipPlane, e.updateProjectionMatrix());
16429
16438
  else if (!this.orthographic)
16430
- e = new ge(this.fieldOfView, window.innerWidth / window.innerHeight, this._nearClipPlane, this._farClipPlane), this.fieldOfView && (e.fov = this.fieldOfView), this.gameObject.add(e);
16439
+ e = new ye(this.fieldOfView, window.innerWidth / window.innerHeight, this._nearClipPlane, this._farClipPlane), this.fieldOfView && (e.fov = this.fieldOfView), this.gameObject.add(e);
16431
16440
  else {
16432
16441
  const i = this.orthographicSize * 100;
16433
16442
  e = new ig(window.innerWidth / -i, window.innerWidth / i, window.innerHeight / i, window.innerHeight / -i, this._nearClipPlane, this._farClipPlane), this.gameObject.add(e);
@@ -16441,10 +16450,10 @@ const Vl = (td = class extends D {
16441
16450
  applyClearFlags(t) {
16442
16451
  var e;
16443
16452
  if (!this._cam) {
16444
- to && console.log("Camera does not exist (apply clear flags)");
16453
+ eo && console.log("Camera does not exist (apply clear flags)");
16445
16454
  return;
16446
16455
  }
16447
- if (this.fieldOfView = this._fov, to) {
16456
+ if (this.fieldOfView = this._fov, eo) {
16448
16457
  const i = `Camera "${this.name}" clear flags: ${mr[this._clearFlags]}`;
16449
16458
  console.debug(i);
16450
16459
  }
@@ -16456,14 +16465,14 @@ const Vl = (td = class extends D {
16456
16465
  this.context.scene.background = null, this.context.renderer.setClearColor(0, 0);
16457
16466
  return;
16458
16467
  }
16459
- (!this.scene.background || !this._skybox || (t == null ? void 0 : t.applySkybox) === !0) && this.applySceneSkybox(), this._backgroundBlurriness !== void 0 ? this.context.scene.backgroundBlurriness = this._backgroundBlurriness : to && console.warn(`Camera "${this.name}" has no background blurriness`), this._backgroundIntensity !== void 0 && (this.context.scene.backgroundIntensity = this._backgroundIntensity), this._backgroundRotation !== void 0 ? this.context.scene.backgroundRotation = this._backgroundRotation : to && console.warn(`Camera "${this.name}" has no background intensity`);
16468
+ (!this.scene.background || !this._skybox || (t == null ? void 0 : t.applySkybox) === !0) && this.applySceneSkybox(), this._backgroundBlurriness !== void 0 ? this.context.scene.backgroundBlurriness = this._backgroundBlurriness : eo && console.warn(`Camera "${this.name}" has no background blurriness`), this._backgroundIntensity !== void 0 && (this.context.scene.backgroundIntensity = this._backgroundIntensity), this._backgroundRotation !== void 0 ? this.context.scene.backgroundRotation = this._backgroundRotation : eo && console.warn(`Camera "${this.name}" has no background intensity`);
16460
16469
  break;
16461
16470
  case 2:
16462
16471
  if (this._backgroundColor) {
16463
16472
  let i = this._backgroundColor.alpha;
16464
16473
  Vl.backgroundShouldBeTransparent(this.context) && (i = this.ARBackgroundAlpha ?? 0), this.context.scene.background = null, (e = this.context.xr) != null && e.isVR ? this.context.renderer.setClearColor(iC(this._backgroundColor).convertLinearToSRGB()) : this.context.renderer.setClearColor(this._backgroundColor, i);
16465
16474
  } else
16466
- to && console.warn(`Camera "${this.name}" has no background color`, this);
16475
+ eo && console.warn(`Camera "${this.name}" has no background color`, this);
16467
16476
  break;
16468
16477
  case 4:
16469
16478
  this.context.scene.background = null, this.context.renderer.setClearColor(0, 0);
@@ -16487,55 +16496,55 @@ const Vl = (td = class extends D {
16487
16496
  if (typeof e._transparent == "boolean")
16488
16497
  return e._transparent;
16489
16498
  const i = e.environmentBlendMode;
16490
- to && $e("Environment blend mode: " + i + " on " + navigator.userAgent);
16499
+ eo && $e("Environment blend mode: " + i + " on " + navigator.userAgent);
16491
16500
  let s = i === "additive" || i === "alpha-blend";
16492
16501
  return t.isInAR && i === "opaque" && ((a = navigator.userAgent) != null && a.includes("OculusBrowser") || (l = navigator.userAgent) != null && l.includes("Mozilla") && ((c = navigator.userAgent) != null && c.includes("Mobile WebXRViewer/v2"))) && (s = !0), e._transparent = s, s;
16493
16502
  }
16494
16503
  }, r(td, "_origin", new v()), r(td, "_direction", new v()), td);
16495
16504
  let Re = Vl;
16496
- Jt([
16505
+ ei([
16497
16506
  f()
16498
16507
  ], Re.prototype, "aspect", 1);
16499
- Jt([
16508
+ ei([
16500
16509
  f()
16501
16510
  ], Re.prototype, "fieldOfView", 1);
16502
- Jt([
16511
+ ei([
16503
16512
  f()
16504
16513
  ], Re.prototype, "nearClipPlane", 1);
16505
- Jt([
16514
+ ei([
16506
16515
  f()
16507
16516
  ], Re.prototype, "farClipPlane", 1);
16508
- Jt([
16517
+ ei([
16509
16518
  f()
16510
16519
  ], Re.prototype, "clearFlags", 1);
16511
- Jt([
16520
+ ei([
16512
16521
  f()
16513
16522
  ], Re.prototype, "orthographic", 2);
16514
- Jt([
16523
+ ei([
16515
16524
  f()
16516
16525
  ], Re.prototype, "orthographicSize", 2);
16517
- Jt([
16526
+ ei([
16518
16527
  f()
16519
16528
  ], Re.prototype, "ARBackgroundAlpha", 2);
16520
- Jt([
16529
+ ei([
16521
16530
  f()
16522
16531
  ], Re.prototype, "cullingMask", 1);
16523
- Jt([
16532
+ ei([
16524
16533
  f()
16525
16534
  ], Re.prototype, "backgroundBlurriness", 1);
16526
- Jt([
16535
+ ei([
16527
16536
  f()
16528
16537
  ], Re.prototype, "backgroundIntensity", 1);
16529
- Jt([
16538
+ ei([
16530
16539
  f(Lt)
16531
16540
  ], Re.prototype, "backgroundRotation", 1);
16532
- Jt([
16541
+ ei([
16533
16542
  f()
16534
16543
  ], Re.prototype, "environmentIntensity", 1);
16535
- Jt([
16544
+ ei([
16536
16545
  f(ve)
16537
16546
  ], Re.prototype, "backgroundColor", 1);
16538
- Jt([
16547
+ ei([
16539
16548
  f(ur)
16540
16549
  ], Re.prototype, "targetTexture", 1);
16541
16550
  class JM {
@@ -16549,7 +16558,7 @@ class JM {
16549
16558
  return (t = this._camera) == null ? void 0 : t.context;
16550
16559
  }
16551
16560
  apply() {
16552
- this._skybox = this.context.lightmaps.tryGetSkybox(this._camera.sourceId), this._skybox ? this.context.scene.background !== this._skybox && (to && console.log(`Camera "${this._camera.name}" set skybox`, this._camera, this._skybox), this._skybox.mapping = Rn, this.context.scene.background = this._skybox) : this._did_log_failed_to_find_skybox || (this._did_log_failed_to_find_skybox = !0, console.warn(`Camera "${this._camera.name}" has no skybox texture. ${this._camera.sourceId}`));
16561
+ this._skybox = this.context.lightmaps.tryGetSkybox(this._camera.sourceId), this._skybox ? this.context.scene.background !== this._skybox && (eo && console.log(`Camera "${this._camera.name}" set skybox`, this._camera, this._skybox), this._skybox.mapping = Mn, this.context.scene.background = this._skybox) : this._did_log_failed_to_find_skybox || (this._did_log_failed_to_find_skybox = !0, console.warn(`Camera "${this._camera.name}" has no skybox texture. ${this._camera.sourceId}`));
16553
16562
  }
16554
16563
  }
16555
16564
  function eR(n) {
@@ -16595,7 +16604,7 @@ var tR = Object.defineProperty, iR = Object.getOwnPropertyDescriptor, bs = (n, t
16595
16604
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
16596
16605
  return i && s && tR(t, e, s), s;
16597
16606
  };
16598
- const At = S("debugaudio"), io = class extends D {
16607
+ const At = S("debugaudio"), to = class extends D {
16599
16608
  constructor() {
16600
16609
  super(...arguments);
16601
16610
  r(this, "clip", "");
@@ -16623,7 +16632,7 @@ const At = S("debugaudio"), io = class extends D {
16623
16632
  (this.playInBackground === !1 || Q.isMobileDevice()) && (this.wasPlaying = this.isPlaying, this.isPlaying && this.pause());
16624
16633
  break;
16625
16634
  case "visible":
16626
- At && console.log("visible", this.enabled, this.playOnAwake, !this.isPlaying, io.userInteractionRegistered, this.wasPlaying), this.enabled && this.playOnAwake && !this.isPlaying && io.userInteractionRegistered && this.wasPlaying && this.play();
16635
+ At && console.log("visible", this.enabled, this.playOnAwake, !this.isPlaying, to.userInteractionRegistered, this.wasPlaying), this.enabled && this.playOnAwake && !this.isPlaying && to.userInteractionRegistered && this.wasPlaying && this.play();
16627
16636
  break;
16628
16637
  }
16629
16638
  });
@@ -16638,7 +16647,7 @@ const At = S("debugaudio"), io = class extends D {
16638
16647
  At && console.warn("Failed getting sound?", this.name);
16639
16648
  return;
16640
16649
  }
16641
- e.isPlaying && e.stop(), t && e.setBuffer(t), e.loop = this._loop, this.context.application.muted ? e.setVolume(0) : e.setVolume(this.volume), e.autoplay = this.shouldPlay && io.userInteractionRegistered, this.applySpatialDistanceSettings(), e.isPlaying && e.stop(), io.registerWaitForAllowAudio(this.__onAllowAudioCallback);
16650
+ e.isPlaying && e.stop(), t && e.setBuffer(t), e.loop = this._loop, this.context.application.muted ? e.setVolume(0) : e.setVolume(this.volume), e.autoplay = this.shouldPlay && to.userInteractionRegistered, this.applySpatialDistanceSettings(), e.isPlaying && e.stop(), to.registerWaitForAllowAudio(this.__onAllowAudioCallback);
16642
16651
  });
16643
16652
  r(this, "__onAllowAudioCallback", () => {
16644
16653
  this.shouldPlay && this.play();
@@ -16734,7 +16743,7 @@ const At = S("debugaudio"), io = class extends D {
16734
16743
  }
16735
16744
  get Sound() {
16736
16745
  var t;
16737
- if (!this.sound && io.userInteractionRegistered) {
16746
+ if (!this.sound && to.userInteractionRegistered) {
16738
16747
  let e = C.getComponent(this.context.mainCamera, gr) ?? C.findObjectOfType(gr, this.context);
16739
16748
  !e && this.context.mainCamera && (e = C.addComponent(this.context.mainCamera, gr)), e != null && e.listener ? (this.sound = new Yx(e.listener), (t = this.gameObject) == null || t.add(this.sound)) : At && console.warn("No audio listener found in scene - can not play audio");
16740
16749
  }
@@ -16783,7 +16792,7 @@ const At = S("debugaudio"), io = class extends D {
16783
16792
  }
16784
16793
  /** @internal */
16785
16794
  onEnable() {
16786
- this.sound && this.gameObject.add(this.sound), io.userInteractionRegistered ? this.playOnAwake && this.context.application.isVisible && this.play() : io.registerWaitForAllowAudio(() => {
16795
+ this.sound && this.gameObject.add(this.sound), to.userInteractionRegistered ? this.playOnAwake && this.context.application.isVisible && this.play() : to.registerWaitForAllowAudio(() => {
16787
16796
  this.enabled && !this.destroyed && this.shouldPlay && this.onNewClip(this.clip);
16788
16797
  }), globalThis.addEventListener("visibilitychange", this.onVisibilityChanged), this.context.application.addEventListener(Sm.MuteChanged, this.onApplicationMuteChanged);
16789
16798
  }
@@ -16859,7 +16868,7 @@ Using the assigned clip instead:`, this.clip), t = this.clip);
16859
16868
  this.helper && (this.isPlaying && this.helper.update(), this.helper.visible = this.isPlaying), this._needUpdateSpatialDistanceSettings && this.applySpatialDistanceSettings(), this.sound && !this.sound.isPlaying && this.shouldPlay && !this._hasEnded && (this._hasEnded = !0, At && console.log("Audio clip ended", this.clip), this.dispatchEvent(new CustomEvent("ended", { detail: this })));
16860
16869
  }
16861
16870
  };
16862
- let Xe = io;
16871
+ let Xe = to;
16863
16872
  bs([
16864
16873
  f(URL)
16865
16874
  ], Xe.prototype, "clip", 2);
@@ -16924,7 +16933,7 @@ const sR = S("debugavatar"), hs = class extends D {
16924
16933
  };
16925
16934
  let bt = hs;
16926
16935
  r(bt, "instances", []), r(bt, "_onNewAvatarMarkerAdded", []), r(bt, "_onAvatarMarkerDestroyed", []);
16927
- class kn {
16936
+ class Rn {
16928
16937
  static Add(t, e, i = null) {
16929
16938
  if (e) {
16930
16939
  for (const s of this.Pois)
@@ -16944,7 +16953,7 @@ class kn {
16944
16953
  }
16945
16954
  }
16946
16955
  }
16947
- r(kn, "Pois", []), r(kn, "LastChangeTime", 0);
16956
+ r(Rn, "Pois", []), r(Rn, "LastChangeTime", 0);
16948
16957
  class nR {
16949
16958
  constructor() {
16950
16959
  r(this, "guid");
@@ -16984,7 +16993,7 @@ class Qd extends D {
16984
16993
  }
16985
16994
  update() {
16986
16995
  var i;
16987
- if ((!this.context.connection.isConnected || (i = this._model) != null && i.hasOwnership) && (kn.LastChangeTime !== this._lastPoiChangedTime && (this._lastPoiChangedTime = kn.LastChangeTime, this._lookDuration = 0), this.selectTarget(), this._currentTargetObject && this.context.time.frameCount % 10 === 0 && this.target)) {
16996
+ if ((!this.context.connection.isConnected || (i = this._model) != null && i.hasOwnership) && (Rn.LastChangeTime !== this._lastPoiChangedTime && (this._lastPoiChangedTime = Rn.LastChangeTime, this._lookDuration = 0), this.selectTarget(), this._currentTargetObject && this.context.time.frameCount % 10 === 0 && this.target)) {
16988
16997
  const s = ee(this._currentTargetObject);
16989
16998
  vt(this.target, s), this.context.connection.isConnected && this.avatar && (this.context.connection.send("avatar-look-target-changed", this._targetModel), this._targetModel.guid = this.avatar.guid, this._targetModel.position.copy(s));
16990
16999
  }
@@ -16992,7 +17001,7 @@ class Qd extends D {
16992
17001
  selectTarget() {
16993
17002
  if (this.context.time.time - this._lastUpdateTime > this._lookDuration) {
16994
17003
  this._lastUpdateTime = this.context.time.time, this._lookDuration = Math.random() * 0.5 + 0.2;
16995
- const i = kn.Pois;
17004
+ const i = Rn.Pois;
16996
17005
  if (i.length > 0) {
16997
17006
  const s = i[Math.floor(Math.random() * i.length)];
16998
17007
  if (s && s.obj) {
@@ -17067,7 +17076,7 @@ class lR {
17067
17076
  }
17068
17077
  }
17069
17078
  const Ze = S("debugnetworkingstreams");
17070
- var Cn = /* @__PURE__ */ ((n) => (n.Connected = "peer-user-connected", n.StreamReceived = "receive-stream", n.StreamEnded = "call-ended", n.Disconnected = "peer-user-disconnected", n.UserJoined = "user-joined", n))(Cn || {});
17079
+ var Sn = /* @__PURE__ */ ((n) => (n.Connected = "peer-user-connected", n.StreamReceived = "receive-stream", n.StreamEnded = "call-ended", n.Disconnected = "peer-user-disconnected", n.UserJoined = "user-joined", n))(Sn || {});
17071
17080
  class Fv {
17072
17081
  constructor(t, e) {
17073
17082
  r(this, "type", "call-ended");
@@ -17120,7 +17129,7 @@ Video:`, a.getVideoTracks()), this._stream = a, s === "incoming") {
17120
17129
  return this._stream;
17121
17130
  }
17122
17131
  close() {
17123
- this._isDisposed || (this._isDisposed = !0, this.call.close(), Pn(this._stream));
17132
+ this._isDisposed || (this._isDisposed = !0, this.call.close(), Cn(this._stream));
17124
17133
  }
17125
17134
  get isOpen() {
17126
17135
  var e;
@@ -17453,7 +17462,7 @@ class $u extends sg {
17453
17462
  }
17454
17463
  // const call = peer.call(peerId, stream);
17455
17464
  }
17456
- function Pn(n) {
17465
+ function Cn(n) {
17457
17466
  if (n && n instanceof MediaStream)
17458
17467
  for (const t of n.getTracks())
17459
17468
  t.stop();
@@ -17486,7 +17495,7 @@ class Dr extends D {
17486
17495
  r(this, "onLeftRoom", () => {
17487
17496
  this.debug && console.log("VOIP: Left room"), this.disconnect();
17488
17497
  for (const e of this._incomingStreams.values())
17489
- Pn(e.srcObject);
17498
+ Cn(e.srcObject);
17490
17499
  this._incomingStreams.clear();
17491
17500
  });
17492
17501
  r(this, "_incomingStreams", /* @__PURE__ */ new Map());
@@ -17501,7 +17510,7 @@ class Dr extends D {
17501
17510
  });
17502
17511
  r(this, "onStreamEnded", (e) => {
17503
17512
  const i = this._incomingStreams.get(e.userId);
17504
- Pn(i == null ? void 0 : i.srcObject), this._incomingStreams.delete(e.userId);
17513
+ Cn(i == null ? void 0 : i.srcObject), this._incomingStreams.delete(e.userId);
17505
17514
  });
17506
17515
  r(this, "onEnabledChanged", () => {
17507
17516
  for (const e of this._incomingStreams) {
@@ -17539,12 +17548,12 @@ class Dr extends D {
17539
17548
  }
17540
17549
  /** @internal */
17541
17550
  onEnable() {
17542
- this._net || (this._net = $u.create(this)), this.debug && (this._net.debug = !0), this._net.addEventListener(Cn.StreamReceived, this.onReceiveStream), this._net.addEventListener(Cn.StreamEnded, this.onStreamEnded), this._net.enable(), this.autoConnect && this.context.connection.isConnected && this.connect(), this.context.connection.beginListen(se.JoinedRoom, this.onJoinedRoom), this.context.connection.beginListen(se.LeftRoom, this.onLeftRoom), this.onEnabledChanged(), this.updateButton(), window.addEventListener("visibilitychange", this.onVisibilityChanged);
17551
+ this._net || (this._net = $u.create(this)), this.debug && (this._net.debug = !0), this._net.addEventListener(Sn.StreamReceived, this.onReceiveStream), this._net.addEventListener(Sn.StreamEnded, this.onStreamEnded), this._net.enable(), this.autoConnect && this.context.connection.isConnected && this.connect(), this.context.connection.beginListen(se.JoinedRoom, this.onJoinedRoom), this.context.connection.beginListen(se.LeftRoom, this.onLeftRoom), this.onEnabledChanged(), this.updateButton(), window.addEventListener("visibilitychange", this.onVisibilityChanged);
17543
17552
  }
17544
17553
  /** @internal */
17545
17554
  onDisable() {
17546
17555
  var e;
17547
- this._net && (this._net.stopSendingStream(this._outputStream), this._net.removeEventListener(Cn.StreamReceived, this.onReceiveStream), this._net.removeEventListener(Cn.StreamEnded, this.onStreamEnded), (e = this._net) == null || e.disable()), this.context.connection.stopListen(se.JoinedRoom, this.onJoinedRoom), this.context.connection.stopListen(se.LeftRoom, this.onLeftRoom), this.onEnabledChanged(), this.updateButton(), window.removeEventListener("visibilitychange", this.onVisibilityChanged);
17556
+ this._net && (this._net.stopSendingStream(this._outputStream), this._net.removeEventListener(Sn.StreamReceived, this.onReceiveStream), this._net.removeEventListener(Sn.StreamEnded, this.onStreamEnded), (e = this._net) == null || e.disable()), this.context.connection.stopListen(se.JoinedRoom, this.onJoinedRoom), this.context.connection.stopListen(se.LeftRoom, this.onLeftRoom), this.onEnabledChanged(), this.updateButton(), window.removeEventListener("visibilitychange", this.onVisibilityChanged);
17548
17557
  }
17549
17558
  /** @internal */
17550
17559
  onDestroy() {
@@ -17567,12 +17576,12 @@ class Dr extends D {
17567
17576
  return console.error("Cannot connect to voice chat - microphone permissions not granted"), this.updateButton(), !1;
17568
17577
  } else
17569
17578
  return console.error("Cannot connect to voice chat - not connected to server"), this.updateButton(), !1;
17570
- return this._allowSending = !0, (i = this._net) == null || i.stopSendingStream(this._outputStream), Pn(this._outputStream), this._outputStream = await this.getAudioStream(e), this._outputStream ? (this.debug && console.log("VOIP: Got audio stream"), (s = this._net) == null || s.startSendingStream(this._outputStream), this.updateButton(), !0) : (this.updateButton(), await Q.microphonePermissionsGranted() ? console.error("VOIP: Could not get audio stream - please make sure to connect an audio device and grant microphone permissions") : Tu("Microphone permissions not granted: Please grant microphone permissions to use voice chat"), (this.debug || U()) && console.log("VOIP: Failed to get audio stream"), !1);
17579
+ return this._allowSending = !0, (i = this._net) == null || i.stopSendingStream(this._outputStream), Cn(this._outputStream), this._outputStream = await this.getAudioStream(e), this._outputStream ? (this.debug && console.log("VOIP: Got audio stream"), (s = this._net) == null || s.startSendingStream(this._outputStream), this.updateButton(), !0) : (this.updateButton(), await Q.microphonePermissionsGranted() ? console.error("VOIP: Could not get audio stream - please make sure to connect an audio device and grant microphone permissions") : Tu("Microphone permissions not granted: Please grant microphone permissions to use voice chat"), (this.debug || U()) && console.log("VOIP: Failed to get audio stream"), !1);
17571
17580
  }
17572
17581
  /** Stop sending audio (muting your own microphone) */
17573
17582
  disconnect(e) {
17574
17583
  var i;
17575
- e != null && e.remember && (this._allowSending = !1), (i = this._net) == null || i.stopSendingStream(this._outputStream), Pn(this._outputStream), this._outputStream = null, this.updateButton();
17584
+ e != null && e.remember && (this._allowSending = !1), (i = this._net) == null || i.stopSendingStream(this._outputStream), Cn(this._outputStream), this._outputStream = null, this.updateButton();
17576
17585
  }
17577
17586
  /**
17578
17587
  * Mute or unmute the audio stream (this will only mute incoming streams and not mute your own microphone. Use disconnect() to mute your own microphone)
@@ -18119,7 +18128,7 @@ const kR = S("gizmos"), TR = S("debugboxhelper"), ds = class extends D {
18119
18128
  };
18120
18129
  let vi = ds;
18121
18130
  r(vi, "testBox", new Ci()), r(vi, "_position", new v()), r(vi, "_size", new v(0.01, 0.01, 0.01)), r(vi, "_emptyObjectSize", new v(0.01, 0.01, 0.01));
18122
- var AR = Object.defineProperty, ER = Object.getOwnPropertyDescriptor, ci = (n, t, e, i) => {
18131
+ var AR = Object.defineProperty, ER = Object.getOwnPropertyDescriptor, hi = (n, t, e, i) => {
18123
18132
  for (var s = i > 1 ? void 0 : i ? ER(t, e) : t, o = n.length - 1, a; o >= 0; o--)
18124
18133
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
18125
18134
  return i && s && AR(t, e, s), s;
@@ -18146,15 +18155,15 @@ class Ri extends D {
18146
18155
  }
18147
18156
  /** @internal */
18148
18157
  awake() {
18149
- super.awake(), this.attachedRigidbody || (this.attachedRigidbody = this.gameObject.getComponentInParent(ye));
18158
+ super.awake(), this.attachedRigidbody || (this.attachedRigidbody = this.gameObject.getComponentInParent(ge));
18150
18159
  }
18151
18160
  /** @internal */
18152
18161
  start() {
18153
- this.attachedRigidbody || (this.attachedRigidbody = this.gameObject.getComponentInParent(ye));
18162
+ this.attachedRigidbody || (this.attachedRigidbody = this.gameObject.getComponentInParent(ge));
18154
18163
  }
18155
18164
  /** @internal */
18156
18165
  onEnable() {
18157
- this.attachedRigidbody || (this.attachedRigidbody = this.gameObject.getComponentInParent(ye));
18166
+ this.attachedRigidbody || (this.attachedRigidbody = this.gameObject.getComponentInParent(ge));
18158
18167
  }
18159
18168
  /** @internal */
18160
18169
  onDisable() {
@@ -18172,19 +18181,19 @@ class Ri extends D {
18172
18181
  (e = this.context.physics.engine) == null || e.updatePhysicsMaterial(this);
18173
18182
  }
18174
18183
  }
18175
- ci([
18176
- f(ye)
18184
+ hi([
18185
+ f(ge)
18177
18186
  ], Ri.prototype, "attachedRigidbody", 2);
18178
- ci([
18187
+ hi([
18179
18188
  f()
18180
18189
  ], Ri.prototype, "isTrigger", 2);
18181
- ci([
18190
+ hi([
18182
18191
  f()
18183
18192
  ], Ri.prototype, "sharedMaterial", 2);
18184
- ci([
18193
+ hi([
18185
18194
  f()
18186
18195
  ], Ri.prototype, "membership", 2);
18187
- ci([
18196
+ hi([
18188
18197
  f()
18189
18198
  ], Ri.prototype, "filter", 2);
18190
18199
  class Jc extends Ri {
@@ -18204,11 +18213,11 @@ class Jc extends Ri {
18204
18213
  this.updateProperties();
18205
18214
  }
18206
18215
  }
18207
- ci([
18216
+ hi([
18208
18217
  zt(),
18209
18218
  f()
18210
18219
  ], Jc.prototype, "radius", 2);
18211
- ci([
18220
+ hi([
18212
18221
  f(v)
18213
18222
  ], Jc.prototype, "center", 2);
18214
18223
  const Hv = class extends Ri {
@@ -18221,7 +18230,7 @@ const Hv = class extends Ri {
18221
18230
  const i = new Hv();
18222
18231
  t.geometry.boundingBox || t.geometry.computeBoundingBox();
18223
18232
  const s = t.geometry.boundingBox;
18224
- return i.size = s.getSize(new v()) || new v(1, 1, 1), i.center = s.getCenter(new v()) || new v(0, 0, 0), Qi(t, i), (e == null ? void 0 : e.rigidbody) === !0 && Qi(t, ye, { isKinematic: !1 }), i;
18233
+ return i.size = s.getSize(new v()) || new v(1, 1, 1), i.center = s.getCenter(new v()) || new v(0, 0, 0), Qi(t, i), (e == null ? void 0 : e.rigidbody) === !0 && Qi(t, ge, { isKinematic: !1 }), i;
18225
18234
  }
18226
18235
  onEnable() {
18227
18236
  var t;
@@ -18235,11 +18244,11 @@ const Hv = class extends Ri {
18235
18244
  }
18236
18245
  };
18237
18246
  let eh = Hv;
18238
- ci([
18247
+ hi([
18239
18248
  zt(),
18240
18249
  f(v)
18241
18250
  ], eh.prototype, "size", 2);
18242
- ci([
18251
+ hi([
18243
18252
  f(v)
18244
18253
  ], eh.prototype, "center", 2);
18245
18254
  class Lr extends Ri {
@@ -18281,10 +18290,10 @@ class Lr extends Ri {
18281
18290
  }
18282
18291
  }
18283
18292
  }
18284
- ci([
18293
+ hi([
18285
18294
  f(X)
18286
18295
  ], Lr.prototype, "sharedMesh", 2);
18287
- ci([
18296
+ hi([
18288
18297
  f()
18289
18298
  ], Lr.prototype, "convex", 2);
18290
18299
  class So extends Ri {
@@ -18299,16 +18308,16 @@ class So extends Ri {
18299
18308
  super.onEnable(), (e = this.context.physics.engine) == null || e.addCapsuleCollider(this, this.height, this.radius);
18300
18309
  }
18301
18310
  }
18302
- ci([
18311
+ hi([
18303
18312
  f(v)
18304
18313
  ], So.prototype, "center", 2);
18305
- ci([
18314
+ hi([
18306
18315
  f()
18307
18316
  ], So.prototype, "radius", 2);
18308
- ci([
18317
+ hi([
18309
18318
  f()
18310
18319
  ], So.prototype, "height", 2);
18311
- var IR = Object.defineProperty, DR = Object.getOwnPropertyDescriptor, Fn = (n, t, e, i) => {
18320
+ var IR = Object.defineProperty, DR = Object.getOwnPropertyDescriptor, Bn = (n, t, e, i) => {
18312
18321
  for (var s = i > 1 ? void 0 : i ? DR(t, e) : t, o = n.length - 1, a; o >= 0; o--)
18313
18322
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
18314
18323
  return i && s && IR(t, e, s), s;
@@ -18325,7 +18334,7 @@ class Ja extends D {
18325
18334
  r(this, "_contactVelocity", new v());
18326
18335
  }
18327
18336
  get rigidbody() {
18328
- return this._rigidbody ? this._rigidbody : (this._rigidbody = this.gameObject.getComponent(ye), this._rigidbody || (this._rigidbody = this.gameObject.addComponent(ye)), this.rigidbody);
18337
+ return this._rigidbody ? this._rigidbody : (this._rigidbody = this.gameObject.getComponent(ge), this._rigidbody || (this._rigidbody = this.gameObject.addComponent(ge)), this.rigidbody);
18329
18338
  }
18330
18339
  awake() {
18331
18340
  this._activeGroundCollisions = /* @__PURE__ */ new Set();
@@ -18361,13 +18370,13 @@ class Ja extends D {
18361
18370
  return this._contactVelocity;
18362
18371
  }
18363
18372
  }
18364
- Fn([
18373
+ Bn([
18365
18374
  f(v)
18366
18375
  ], Ja.prototype, "center", 2);
18367
- Fn([
18376
+ Bn([
18368
18377
  f()
18369
18378
  ], Ja.prototype, "radius", 2);
18370
- Fn([
18379
+ Bn([
18371
18380
  f()
18372
18381
  ], Ja.prototype, "height", 2);
18373
18382
  class Ro extends D {
@@ -18388,7 +18397,7 @@ class Ro extends D {
18388
18397
  r(this, "_temp", new v(0, 0, 0));
18389
18398
  r(this, "_jumpCount", 0);
18390
18399
  r(this, "_currentRotation");
18391
- r(this, "_raycastOptions", new En());
18400
+ r(this, "_raycastOptions", new An());
18392
18401
  }
18393
18402
  awake() {
18394
18403
  this._currentRotation = new W();
@@ -18436,22 +18445,22 @@ class Ro extends D {
18436
18445
  }
18437
18446
  }
18438
18447
  }
18439
- Fn([
18448
+ Bn([
18440
18449
  f(Ja)
18441
18450
  ], Ro.prototype, "controller", 2);
18442
- Fn([
18451
+ Bn([
18443
18452
  f()
18444
18453
  ], Ro.prototype, "movementSpeed", 2);
18445
- Fn([
18454
+ Bn([
18446
18455
  f()
18447
18456
  ], Ro.prototype, "rotationSpeed", 2);
18448
- Fn([
18457
+ Bn([
18449
18458
  f()
18450
18459
  ], Ro.prototype, "jumpForce", 2);
18451
- Fn([
18460
+ Bn([
18452
18461
  f()
18453
18462
  ], Ro.prototype, "doubleJumpForce", 2);
18454
- Fn([
18463
+ Bn([
18455
18464
  f(Bt)
18456
18465
  ], Ro.prototype, "animator", 2);
18457
18466
  var LR = Object.defineProperty, jR = Object.getOwnPropertyDescriptor, el = (n, t, e, i) => {
@@ -18773,7 +18782,7 @@ const ji = (jl = class extends D {
18773
18782
  for (const o of this._dragHandlers.values())
18774
18783
  o.setTargetObject(t);
18775
18784
  const e = "_rigidbody-was-kinematic";
18776
- ((i = this._rigidbody) == null ? void 0 : i[e]) === !1 && (this._rigidbody.isKinematic = !1, this._rigidbody[e] = void 0), this._rigidbody = null, t && (this._rigidbody = C.getComponentInChildren(t, ye), ((s = this._rigidbody) == null ? void 0 : s.isKinematic) === !1 && (this._rigidbody.isKinematic = !0, this._rigidbody[e] = !1));
18785
+ ((i = this._rigidbody) == null ? void 0 : i[e]) === !1 && (this._rigidbody.isKinematic = !1, this._rigidbody[e] = void 0), this._rigidbody = null, t && (this._rigidbody = C.getComponentInChildren(t, ge), ((s = this._rigidbody) == null ? void 0 : s.isKinematic) === !1 && (this._rigidbody.isKinematic = !0, this._rigidbody[e] = !1));
18777
18786
  }
18778
18787
  /** @internal */
18779
18788
  awake() {
@@ -18857,9 +18866,9 @@ const ji = (jl = class extends D {
18857
18866
  if (!i)
18858
18867
  return;
18859
18868
  this._isDragging = !0;
18860
- const s = C.getComponentInChildren(i, In);
18869
+ const s = C.getComponentInChildren(i, En);
18861
18870
  Us && console.log("DRAG START", s, i), s && (s.fastMode = !0, s == null || s.requestOwnership()), this._marker = C.addComponent(i, Hu), this._draggingRigidbodies.length = 0;
18862
- const o = C.getComponentsInChildren(i, ye);
18871
+ const o = C.getComponentsInChildren(i, ge);
18863
18872
  o && this._draggingRigidbodies.push(...o);
18864
18873
  }
18865
18874
  /** Called each frame as long as any pointer is dragging this object. */
@@ -18880,7 +18889,7 @@ const ji = (jl = class extends D {
18880
18889
  for (const i of this._draggingRigidbodies)
18881
18890
  i.setVelocity(i.smoothedVelocity);
18882
18891
  if (this._draggingRigidbodies.length = 0, this._targetObject = null, t != null && t.object) {
18883
- const i = C.getComponentInChildren(t.object, In);
18892
+ const i = C.getComponentInChildren(t.object, En);
18884
18893
  i && (i.fastMode = !1);
18885
18894
  }
18886
18895
  if (this._marker && this._marker.destroy(), !this._dragHelper)
@@ -19260,12 +19269,12 @@ const Ty = class {
19260
19269
  if (this._selected && e)
19261
19270
  for (const i of this._rbs)
19262
19271
  i.wakeUp(), i.setVelocity(0, 0, 0);
19263
- if (this._selected && kn.Remove(e, this._selected), this._selected = t, this._context = e, this._rbs.length = 0, t ? (e.scene.add(this._groundLine), e.scene.add(this._groundMarker)) : (this._groundLine.removeFromParent(), this._groundMarker.removeFromParent()), this._selected) {
19272
+ if (this._selected && Rn.Remove(e, this._selected), this._selected = t, this._context = e, this._rbs.length = 0, t ? (e.scene.add(this._groundLine), e.scene.add(this._groundMarker)) : (this._groundLine.removeFromParent(), this._groundMarker.removeFromParent()), this._selected) {
19264
19273
  if (!e) {
19265
19274
  console.error("DragHelper: no context");
19266
19275
  return;
19267
19276
  }
19268
- kn.Add(e, this._selected, null), this._groundOffsetFactor = 0, this._hasGroundPlane = !0, this._groundOffset.set(0, 0, 0), this._requireUpdateGroundPlane = !0, this.onUpdateScreenSpacePlane();
19277
+ Rn.Add(e, this._selected, null), this._groundOffsetFactor = 0, this._hasGroundPlane = !0, this._groundOffset.set(0, 0, 0), this._requireUpdateGroundPlane = !0, this.onUpdateScreenSpacePlane();
19269
19278
  }
19270
19279
  }
19271
19280
  onUpdate(t) {
@@ -19292,7 +19301,7 @@ const Ty = class {
19292
19301
  onUpdateGroundPlane() {
19293
19302
  if (!this._selected || !this._context)
19294
19303
  return;
19295
- const t = ee(this._selected), e = new Rr(H(0, 0.1, 0).add(t), H(0, -1, 0)), i = new En();
19304
+ const t = ee(this._selected), e = new Rr(H(0, 0.1, 0).add(t), H(0, -1, 0)), i = new An();
19296
19305
  i.testObject = (o) => o !== this._selected;
19297
19306
  const s = this._context.physics.raycastFromRay(e, i);
19298
19307
  for (let o = 0; o < s.length; o++) {
@@ -19560,7 +19569,7 @@ class ko extends D {
19560
19569
  }
19561
19570
  }
19562
19571
  Ec.assignAnimationsFromFile(o, {
19563
- createAnimationComponent: (p) => Qi(p, Kt)
19572
+ createAnimationComponent: (p) => Qi(p, Zt)
19564
19573
  });
19565
19574
  const h = new Vg({
19566
19575
  sender: this,
@@ -19697,8 +19706,8 @@ const Kv = class extends D {
19697
19706
  a || (a = this.object.addComponent(Si, {
19698
19707
  dragMode: Yv.SnapToSurfaces
19699
19708
  }), a.guid = s.generateUUID());
19700
- let l = C.getComponent(a.gameObject, In);
19701
- l || (l = a.gameObject.addComponent(In), l.guid = s.generateUUID());
19709
+ let l = C.getComponent(a.gameObject, En);
19710
+ l || (l = a.gameObject.addComponent(En), l.guid = s.generateUUID());
19702
19711
  }
19703
19712
  this.object.visible = !1;
19704
19713
  const i = this.gameObject.getComponent(Si);
@@ -20166,7 +20175,7 @@ const ak = Symbol("stencils"), Jo = class {
20166
20175
  const o = i[s];
20167
20176
  if (rk(o.layer, t)) {
20168
20177
  ap && console.log(o), setTimeout(() => {
20169
- li() && Rg(t.gameObject) && (be("Stencil not supported on instanced objects"), console.warn("Stencil not supported on instanced objects", t));
20178
+ ci() && Rg(t.gameObject) && (be("Stencil not supported on instanced objects"), console.warn("Stencil not supported on instanced objects", t));
20170
20179
  }, 500);
20171
20180
  for (let a = 0; a < t.sharedMaterials.length; a++) {
20172
20181
  let l = t.sharedMaterials[a];
@@ -20651,7 +20660,7 @@ const dn = (id = class extends D {
20651
20660
  console.error("ReflectionProbe.texture must be a Texture", t);
20652
20661
  return;
20653
20662
  }
20654
- this._texture = t, t && (t.mapping = Rn, t.colorSpace = gs, t.needsUpdate = !0);
20663
+ this._texture = t, t && (t.mapping = Mn, t.colorSpace = gs, t.needsUpdate = !0);
20655
20664
  }
20656
20665
  get texture() {
20657
20666
  return this._texture;
@@ -20661,7 +20670,7 @@ const dn = (id = class extends D {
20661
20670
  return (e = this._boxHelper) == null ? void 0 : e.isInBox(t);
20662
20671
  }
20663
20672
  awake() {
20664
- this._boxHelper = this.gameObject.addComponent(vi), this._boxHelper.updateBox(!0), zh && this._boxHelper.showHelper(5592320, !0), this.texture && (this.texture.mapping = Rn, this.texture.colorSpace = gs, this.texture.needsUpdate = !0);
20673
+ this._boxHelper = this.gameObject.addComponent(vi), this._boxHelper.updateBox(!0), zh && this._boxHelper.showHelper(5592320, !0), this.texture && (this.texture.mapping = Mn, this.texture.colorSpace = gs, this.texture.needsUpdate = !0);
20665
20674
  }
20666
20675
  onDestroy() {
20667
20676
  const t = dn._probes.get(this.context);
@@ -20720,7 +20729,7 @@ nw([
20720
20729
  nw([
20721
20730
  f(v)
20722
20731
  ], th.prototype, "size", 2);
20723
- const ii = S("debuginstancing"), du = class {
20732
+ const si = S("debuginstancing"), du = class {
20724
20733
  constructor() {
20725
20734
  r(this, "objs", []);
20726
20735
  }
@@ -20749,7 +20758,7 @@ const ii = S("debuginstancing"), du = class {
20749
20758
  return null;
20750
20759
  if (i.rend.enableInstancing !== !0) {
20751
20760
  if (s >= i.rend.enableInstancing.length)
20752
- return ii && console.error("Something is wrong with instance setup", t, i.rend.enableInstancing, s), null;
20761
+ return si && console.error("Something is wrong with instance setup", t, i.rend.enableInstancing, s), null;
20753
20762
  if (!i.rend.enableInstancing[s])
20754
20763
  return null;
20755
20764
  }
@@ -20853,7 +20862,7 @@ const vc = class {
20853
20862
  return i(`Instancing: Can not update geometry (${this.name}), reserved index range is too small: ${this.__reservedIndexRange.toLocaleString()} < ${this.indexCount.toLocaleString()} indices for ${this.name}`);
20854
20863
  return this.renderer.updateGeometry(t, this.__geometryIndex);
20855
20864
  function i(s) {
20856
- return e.updateMeshInformation() && (e.renderer.remove(e, !0), e.renderer.add(e)) ? !0 : ((U() || ii) && console.error(s), !1);
20865
+ return e.updateMeshInformation() && (e.renderer.remove(e, !0), e.renderer.add(e)) ? !0 : ((U() || si) && console.error(s), !1);
20857
20866
  }
20858
20867
  }
20859
20868
  /** Adds this object to the instancing renderer (effectively activating instancing) */
@@ -20895,16 +20904,16 @@ class ow {
20895
20904
  r(this, "_needUpdateBounds", !1);
20896
20905
  r(this, "_debugMaterial", null);
20897
20906
  r(this, "onBeforeRender", () => {
20898
- this._batchedMesh.layers.enableAll(), this._needUpdateBounds && this._batchedMesh[Ul] === !0 && (ii && console.log("Update instancing bounds", this.name, this._batchedMesh.matrixWorldNeedsUpdate), this.updateBounds());
20907
+ this._batchedMesh.layers.enableAll(), this._needUpdateBounds && this._batchedMesh[Ul] === !0 && (si && console.log("Update instancing bounds", this.name, this._batchedMesh.matrixWorldNeedsUpdate), this.updateBounds());
20899
20908
  });
20900
20909
  r(this, "onAfterRender", () => {
20901
20910
  this._batchedMesh.layers.disableAll();
20902
20911
  });
20903
20912
  r(this, "_availableBuckets", new Array());
20904
20913
  r(this, "_usedBuckets", new Array());
20905
- this.name = t, this.geometry = e, this.material = i, this._context = o, this._maxInstanceCount = Math.max(2, s), ii && (this._debugMaterial = fb());
20914
+ this.name = t, this.geometry = e, this.material = i, this._context = o, this._maxInstanceCount = Math.max(2, s), si && (this._debugMaterial = fb());
20906
20915
  const a = this.tryEstimateVertexCountSize(this._maxInstanceCount, [e], s);
20907
- this._maxVertexCount = a.vertexCount, this._maxIndexCount = a.indexCount, this._batchedMesh = new By(this._maxInstanceCount, this._maxVertexCount, this._maxIndexCount, this._debugMaterial ?? this.material), this._batchedMesh[Ul] = !0, this._batchedMesh.visible = !0, this._context.scene.add(this._batchedMesh), i instanceof a0 && (i.defines.USE_INSTANCING = !0, i.needsUpdate = !0), o.pre_render_callbacks.push(this.onBeforeRender), o.post_render_callbacks.push(this.onAfterRender), ii && console.log(`Instanced renderer created with ${this._maxInstanceCount} instances, ${this._maxVertexCount} max vertices and ${this._maxIndexCount} max indices for "${t}"`);
20916
+ this._maxVertexCount = a.vertexCount, this._maxIndexCount = a.indexCount, this._batchedMesh = new By(this._maxInstanceCount, this._maxVertexCount, this._maxIndexCount, this._debugMaterial ?? this.material), this._batchedMesh[Ul] = !0, this._batchedMesh.visible = !0, this._context.scene.add(this._batchedMesh), i instanceof a0 && (i.defines.USE_INSTANCING = !0, i.needsUpdate = !0), o.pre_render_callbacks.push(this.onBeforeRender), o.post_render_callbacks.push(this.onAfterRender), si && console.log(`Instanced renderer created with ${this._maxInstanceCount} instances, ${this._maxVertexCount} max vertices and ${this._maxIndexCount} max indices for "${t}"`);
20908
20917
  }
20909
20918
  /** The three instanced mesh
20910
20919
  * @link https://threejs.org/docs/#api/en/objects/InstancedMesh
@@ -20947,7 +20956,7 @@ class ow {
20947
20956
  return this._maxVertexCount > 1e7 || e !== this.material || !this.validateGeometry(t) ? !1 : !!(!this.mustGrow(t) || this.allowResize);
20948
20957
  }
20949
20958
  dispose() {
20950
- ii && console.warn("Dispose instanced renderer", this.name), this._context.scene.remove(this._batchedMesh), this._batchedMesh.dispose(), this._batchedMesh = null, this._handles = [];
20959
+ si && console.warn("Dispose instanced renderer", this.name), this._context.scene.remove(this._batchedMesh), this._batchedMesh.dispose(), this._batchedMesh = null, this._handles = [];
20951
20960
  }
20952
20961
  addInstance(t) {
20953
20962
  const e = new Ta(t, this);
@@ -20982,7 +20991,7 @@ class ow {
20982
20991
  this._batchedMesh.setMatrixAt(e, t), this.markNeedsUpdate();
20983
20992
  }
20984
20993
  updateGeometry(t, e) {
20985
- return this.validateGeometry(t) ? (this.mustGrow() && this.grow(t), ii && console.debug("UPDATE MESH", e, this._batchedMesh._geometryCount, t.name, Ko(t), t.attributes.position.count, t.index ? t.index.count : 0), this._batchedMesh.setGeometryAt(e, t), this.markNeedsUpdate(), !0) : !1;
20994
+ return this.validateGeometry(t) ? (this.mustGrow() && this.grow(t), si && console.debug("UPDATE MESH", e, this._batchedMesh._geometryCount, t.name, Ko(t), t.attributes.position.count, t.index ? t.index.count : 0), this._batchedMesh.setGeometryAt(e, t), this.markNeedsUpdate(), !0) : !1;
20986
20995
  }
20987
20996
  validateGeometry(t) {
20988
20997
  const e = this.geometry;
@@ -20992,7 +21001,7 @@ class ow {
20992
21001
  return !0;
20993
21002
  }
20994
21003
  markNeedsUpdate() {
20995
- ii && console.warn("Marking instanced mesh dirty", this.name), this._needUpdateBounds = !0;
21004
+ si && console.warn("Marking instanced mesh dirty", this.name), this._needUpdateBounds = !0;
20996
21005
  }
20997
21006
  /**
20998
21007
  * @param geo The geometry to add (if none is provided it means the geometry is already added and just updated)
@@ -21007,7 +21016,7 @@ class ow {
21007
21016
  }
21008
21017
  grow(t) {
21009
21018
  const e = this._maxInstanceCount * 2, i = this.tryEstimateVertexCountSize(e, [t]), s = Math.max(this._maxVertexCount, i.vertexCount), o = Math.max(this._maxIndexCount, i.indexCount, this._maxVertexCount * 2);
21010
- if (ii) {
21019
+ if (si) {
21011
21020
  const c = Ko(t);
21012
21021
  console.warn(`Growing batched mesh for "${this.name}/${t.name}" ${c.vertexCount} vertices, ${c.indexCount} indices
21013
21022
  Max count ${this._maxInstanceCount} → ${e}
@@ -21056,22 +21065,22 @@ Max index count ${this._maxIndexCount} -> ${o}`), this._debugMaterial = fb();
21056
21065
  }
21057
21066
  if (i != null) {
21058
21067
  const l = i;
21059
- ii && console.debug(`RE-USE SPACE #${l.geometryIndex}, ${t.maxVertexCount} vertices, ${t.maxIndexCount} indices, ${t.name}`);
21068
+ si && console.debug(`RE-USE SPACE #${l.geometryIndex}, ${t.maxVertexCount} vertices, ${t.maxIndexCount} indices, ${t.name}`);
21060
21069
  try {
21061
21070
  this._batchedMesh.setGeometryAt(l.geometryIndex, t.object.geometry);
21062
21071
  const c = this._batchedMesh.addInstance(l.geometryIndex);
21063
21072
  this._batchedMesh.setMatrixAt(c, t.object.matrixWorld), this._batchedMesh.setVisibleAt(c, !0), t.__instanceIndex = c, this._usedBuckets[l.geometryIndex] = l, this._availableBuckets.splice(s, 1);
21064
21073
  return;
21065
21074
  } catch (c) {
21066
- ii ? console.error("Failed to re-use space", c) : U() && console.warn(`Failed to re-use space "${c instanceof Error ? c.message : c}" in bucket ${l.geometryIndex} (${l.vertexCount}) - will add new geometry instead`);
21075
+ si ? console.error("Failed to re-use space", c) : U() && console.warn(`Failed to re-use space "${c instanceof Error ? c.message : c}" in bucket ${l.geometryIndex} (${l.vertexCount}) - will add new geometry instead`);
21067
21076
  }
21068
21077
  }
21069
21078
  let o = this._geometryIds.get(e);
21070
- o == null ? (ii && console.debug("ADD GEOMETRY & INSTANCE", e.name, `
21079
+ o == null ? (si && console.debug("ADD GEOMETRY & INSTANCE", e.name, `
21071
21080
  vertex:`, `${this._currentVertexCount} + ${t.maxVertexCount} < ${this._maxVertexCount}?`, `
21072
- index:`, t.maxIndexCount, this._currentIndexCount, this._maxIndexCount), o = this._batchedMesh.addGeometry(e, t.maxVertexCount, t.maxIndexCount), this._geometryIds.set(e, o)) : ii && console.log("ADD INSTANCE", o, e.name), this._currentVertexCount += t.maxVertexCount, this._currentIndexCount += t.maxIndexCount;
21081
+ index:`, t.maxIndexCount, this._currentIndexCount, this._maxIndexCount), o = this._batchedMesh.addGeometry(e, t.maxVertexCount, t.maxIndexCount), this._geometryIds.set(e, o)) : si && console.log("ADD INSTANCE", o, e.name), this._currentVertexCount += t.maxVertexCount, this._currentIndexCount += t.maxIndexCount;
21073
21082
  const a = this._batchedMesh.addInstance(o);
21074
- t.__geometryIndex = o, t.__instanceIndex = a, t.__reservedVertexRange = t.maxVertexCount, t.__reservedIndexRange = t.maxIndexCount, this._usedBuckets[a] = { geometryIndex: o, vertexCount: t.maxVertexCount, indexCount: t.maxIndexCount }, this._batchedMesh.setMatrixAt(a, t.object.matrixWorld), ii && console.debug(`ADD MESH & RESERVE SPACE #${a}, ${t.maxVertexCount} vertices, ${t.maxIndexCount} indices, ${t.name} ${t.object.uuid}`);
21083
+ t.__geometryIndex = o, t.__instanceIndex = a, t.__reservedVertexRange = t.maxVertexCount, t.__reservedIndexRange = t.maxIndexCount, this._usedBuckets[a] = { geometryIndex: o, vertexCount: t.maxVertexCount, indexCount: t.maxIndexCount }, this._batchedMesh.setMatrixAt(a, t.object.matrixWorld), si && console.debug(`ADD MESH & RESERVE SPACE #${a}, ${t.maxVertexCount} vertices, ${t.maxIndexCount} indices, ${t.name} ${t.object.uuid}`);
21075
21084
  }
21076
21085
  removeGeometry(t, e) {
21077
21086
  if (t.__instanceIndex < 0) {
@@ -21101,7 +21110,7 @@ function Ko(n) {
21101
21110
  return t = Math.ceil(t), e = Math.ceil(e), { vertexCount: t, indexCount: e };
21102
21111
  }
21103
21112
  function fb() {
21104
- const n = new ri({ color: new ae(Math.random(), Math.random(), Math.random()) });
21113
+ const n = new ai({ color: new ae(Math.random(), Math.random(), Math.random()) });
21105
21114
  return n.emissive = n.color, n.emissiveIntensity = 0.3, S("wireframe") && (n.wireframe = !0), n;
21106
21115
  }
21107
21116
  const Zr = S("debuglightmaps");
@@ -21208,7 +21217,7 @@ Texture:`, i), this.setLightmapDebugMaterial()) : Zr && console.log("Use debugli
21208
21217
  });
21209
21218
  }
21210
21219
  }
21211
- var bk = Object.defineProperty, vk = Object.getOwnPropertyDescriptor, zn = (n, t, e, i) => {
21220
+ var bk = Object.defineProperty, vk = Object.getOwnPropertyDescriptor, Fn = (n, t, e, i) => {
21212
21221
  for (var s = i > 1 ? void 0 : i ? vk(t, e) : t, o = n.length - 1, a; o >= 0; o--)
21213
21222
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
21214
21223
  return i && s && bk(t, e, s), s;
@@ -21264,7 +21273,7 @@ class xk {
21264
21273
  if (a) {
21265
21274
  this._indexMapMaxIndex = c, this._indexMap = l;
21266
21275
  const h = `Renderer ${t.name} was initialized with missing materials - this may lead to unexpected behaviour when trying to access sharedMaterials by index.`;
21267
- console.warn(h), li() && be("Found renderer with missing materials: please check the console for details.");
21276
+ console.warn(h), ci() && be("Found renderer with missing materials: please check the console for details.");
21268
21277
  }
21269
21278
  return new Proxy(this, {
21270
21279
  get(h, d) {
@@ -21644,31 +21653,31 @@ const wd = class extends D {
21644
21653
  }
21645
21654
  };
21646
21655
  let et = wd;
21647
- zn([
21656
+ Fn([
21648
21657
  f()
21649
21658
  ], et.prototype, "receiveShadows", 2);
21650
- zn([
21659
+ Fn([
21651
21660
  f()
21652
21661
  ], et.prototype, "shadowCastingMode", 2);
21653
- zn([
21662
+ Fn([
21654
21663
  f()
21655
21664
  ], et.prototype, "lightmapIndex", 2);
21656
- zn([
21665
+ Fn([
21657
21666
  f(pe)
21658
21667
  ], et.prototype, "lightmapScaleOffset", 2);
21659
- zn([
21668
+ Fn([
21660
21669
  f()
21661
21670
  ], et.prototype, "enableInstancing", 2);
21662
- zn([
21671
+ Fn([
21663
21672
  f()
21664
21673
  ], et.prototype, "renderOrder", 2);
21665
- zn([
21674
+ Fn([
21666
21675
  f()
21667
21676
  ], et.prototype, "allowOcclusionWhenDynamic", 2);
21668
- zn([
21677
+ Fn([
21669
21678
  f(L)
21670
21679
  ], et.prototype, "probeAnchor", 2);
21671
- zn([
21680
+ Fn([
21672
21681
  f()
21673
21682
  ], et.prototype, "reflectionProbeUsage", 2);
21674
21683
  class qu extends et {
@@ -21688,7 +21697,7 @@ class aw extends qu {
21688
21697
  onAfterRender() {
21689
21698
  if (super.onAfterRender(), this._needUpdateBoundingSphere) {
21690
21699
  for (const e of this.sharedMeshes)
21691
- if (e instanceof Mn) {
21700
+ if (e instanceof On) {
21692
21701
  this._needUpdateBoundingSphere = !1;
21693
21702
  const i = e.geometry, s = h0(e);
21694
21703
  s && (e.geometry = s), e.computeBoundingSphere(), e.geometry = i;
@@ -21696,7 +21705,7 @@ class aw extends qu {
21696
21705
  }
21697
21706
  if (pb) {
21698
21707
  for (const e of this.sharedMeshes)
21699
- if (e instanceof Mn && e.boundingSphere) {
21708
+ if (e instanceof On && e.boundingSphere) {
21700
21709
  const i = H(e.boundingSphere.center).applyMatrix4(e.matrixWorld);
21701
21710
  G.DrawWireSphere(i, e.boundingSphere.radius, "red");
21702
21711
  }
@@ -22073,11 +22082,11 @@ const Rk = new v(), kk = new W(), Tk = new v(1, 1, 1), er = class {
22073
22082
  this._isDynamic = t;
22074
22083
  }
22075
22084
  static createEmptyParent(t) {
22076
- const e = new er(On.generateUUID(), t.name + "_empty_" + er.USDObject_export_id++, t.transform), i = t.parent;
22085
+ const e = new er(Pn.generateUUID(), t.name + "_empty_" + er.USDObject_export_id++, t.transform), i = t.parent;
22077
22086
  return i && i.add(e), e.add(t), e.isDynamic = !0, t.transform = null, e;
22078
22087
  }
22079
22088
  static createEmpty() {
22080
- const t = new er(On.generateUUID(), "Empty_" + er.USDObject_export_id++);
22089
+ const t = new er(Pn.generateUUID(), "Empty_" + er.USDObject_export_id++);
22081
22090
  return t.isDynamic = !0, t;
22082
22091
  }
22083
22092
  is(t) {
@@ -22087,7 +22096,7 @@ const Rk = new v(), kk = new W(), Tk = new v(1, 1, 1), er = class {
22087
22096
  return !this.geometry;
22088
22097
  }
22089
22098
  clone() {
22090
- const t = new er(On.generateUUID(), this.name, this.transform, this.geometry, this.material);
22099
+ const t = new er(Pn.generateUUID(), this.name, this.transform, this.geometry, this.material);
22091
22100
  return t.isDynamic = this.isDynamic, t;
22092
22101
  }
22093
22102
  deepClone() {
@@ -22286,7 +22295,7 @@ let Ik = class {
22286
22295
  he.report("export-usdz", "Invoking onBeforeBuildDocument"), await xd(i, "onBeforeBuildDocument"), he.report("export-usdz", "Done onBeforeBuildDocument"), he.report("export-usdz", "Reparent bones to common ancestor");
22287
22296
  const c = [], h = /* @__PURE__ */ new Set();
22288
22297
  t == null || t.traverse((k) => {
22289
- if (!(!e.exportInvisible && !k.visible) && k instanceof Mn) {
22298
+ if (!(!e.exportInvisible && !k.visible) && k instanceof On) {
22290
22299
  const O = k.skeleton.bones, R = dw(O);
22291
22300
  if (R) {
22292
22301
  const E = { object: k, originalParent: k.parent, newParent: R };
@@ -22367,10 +22376,10 @@ function pw(n, t, e, i) {
22367
22376
  return;
22368
22377
  let s, o, a;
22369
22378
  const l = { position: n.position, quaternion: n.quaternion, scale: n.scale };
22370
- if (n.position.x === 0 && n.position.y === 0 && n.position.z === 0 && (l.position = null), n.quaternion.x === 0 && n.quaternion.y === 0 && n.quaternion.z === 0 && n.quaternion.w === 1 && (l.quaternion = null), n.scale.x === 1 && n.scale.y === 1 && n.scale.z === 1 && (l.scale = null), (n instanceof X || n instanceof Mn) && (o = n.geometry, a = n.material), i && !i(n) && (o = void 0, a = void 0), (n instanceof X || n instanceof Mn) && a && (a instanceof ri || a instanceof De || a instanceof Se && a.type === "MeshLineMaterial")) {
22371
- const h = Wh(n), d = n instanceof Mn ? n : null;
22379
+ if (n.position.x === 0 && n.position.y === 0 && n.position.z === 0 && (l.position = null), n.quaternion.x === 0 && n.quaternion.y === 0 && n.quaternion.z === 0 && n.quaternion.w === 1 && (l.quaternion = null), n.scale.x === 1 && n.scale.y === 1 && n.scale.z === 1 && (l.scale = null), (n instanceof X || n instanceof On) && (o = n.geometry, a = n.material), i && !i(n) && (o = void 0, a = void 0), (n instanceof X || n instanceof On) && a && (a instanceof ai || a instanceof De || a instanceof Se && a.type === "MeshLineMaterial")) {
22380
+ const h = Wh(n), d = n instanceof On ? n : null;
22372
22381
  s = new Dt(n.uuid, h, l, o, a, void 0, d, n.animations);
22373
- } else if (n instanceof ge || n instanceof ig) {
22382
+ } else if (n instanceof ye || n instanceof ig) {
22374
22383
  const h = Wh(n);
22375
22384
  s = new Dt(n.uuid, h, l, void 0, void 0, n);
22376
22385
  } else {
@@ -22529,7 +22538,7 @@ async function Lk(n, t = 1 / 0, e = null, i = void 0) {
22529
22538
  }));
22530
22539
  const s = ea.uniforms;
22531
22540
  s.blitTexture.value = n, s.flipY.value = !1, s.scale.value = new pe(1, 1, 1, 1), i !== void 0 && s.scale.value.copy(i), ea.defines.IS_SRGB = n.colorSpace == gs, ea.needsUpdate = !0, $h || ($h = new X(hp, ea), $h.frustumCulled = !1);
22532
- const o = new ge(), a = new Ki();
22541
+ const o = new ye(), a = new Ki();
22533
22542
  a.add($h), e || (e = Nh = new Mr({ antialias: !1, alpha: !0, premultipliedAlpha: !1, preserveDrawingBuffer: !0 }));
22534
22543
  const l = Math.min(n.image.width, t), c = Math.min(n.image.height, t);
22535
22544
  Ht && (Ht.width !== l || Ht.height !== c) && (Ht.dispose(), Ht = null), Ht || (Ht = new wo(l, c, { format: wu, type: PS, minFilter: Fy, magFilter: Fy })), e.setRenderTarget(Ht), e.setSize(l, c), e.clear(), e.render(a, o), Nh && (Nh.dispose(), Nh = null);
@@ -22856,7 +22865,7 @@ function Hk(n, t, e = !1) {
22856
22865
  // MirroredRepeatWrapping
22857
22866
  }, I = b.repeat.clone(), A = b.offset.clone(), V = b.rotation, te = Math.sin(V), K = Math.cos(V);
22858
22867
  A.y = 1 - A.y - I.y, e ? (I.x === 0 && (I.x = 1e-4), I.y === 0 && (I.y = 1e-4), A.x = A.x / I.x, A.y = A.y / I.y, A.x += te / I.x, A.y += K - 1) : (A.x += te * I.x, A.y += (1 - K) * I.y);
22859
- const ie = I.x != 1 || I.y != 1 || A.x != 0 || A.y != 0 || V != 0, le = `${Vt}/${i}/${"uvReader_" + T}.outputs:result>`, ke = `${Vt}/${i}/Transform2d_${x}.outputs:result>`, ot = x !== "normal" && M && (M.r !== 1 || M.g !== 1 || M.b !== 1 || k !== 1) || !1, sn = x === "normal", pt = n instanceof ri && n.normalScale ? n.normalScale.x * 2 : 2, Ss = pt.toFixed(Ee), nn = (-1 * (pt / 2)).toFixed(Ee), zo = (1 - pt).toFixed(Ee);
22868
+ const ie = I.x != 1 || I.y != 1 || A.x != 0 || A.y != 0 || V != 0, le = `${Vt}/${i}/${"uvReader_" + T}.outputs:result>`, ke = `${Vt}/${i}/Transform2d_${x}.outputs:result>`, ot = x !== "normal" && M && (M.r !== 1 || M.g !== 1 || M.b !== 1 || k !== 1) || !1, sn = x === "normal", pt = n instanceof ai && n.normalScale ? n.normalScale.x * 2 : 2, Ss = pt.toFixed(Ee), nn = (-1 * (pt / 2)).toFixed(Ee), zo = (1 - pt).toFixed(Ee);
22860
22869
  return `
22861
22870
  ${ie ? `def Shader "Transform2d_${x}" (
22862
22871
  sdrMetadata = {
@@ -22895,7 +22904,7 @@ function Hk(n, t, e = !1) {
22895
22904
  }`;
22896
22905
  }
22897
22906
  let u = n.transparent || n.alphaTest ? n.opacity : 1, p = !1, m = !1;
22898
- if (n instanceof em && n.transmission !== void 0 && (u *= 1 - n.transmission * (1 - n.roughness * 0.5)), n.map ? (a.push(`${o}color3f inputs:diffuseColor.connect = ${Vt}/${i}/${h(n.map)}_diffuse.outputs:rgb>`), n instanceof De && n.transparent && n.alphaTest == 0 && e ? (a.push(`${o}float inputs:opacity.connect = ${Vt}/${i}/${h(n.map)}_diffuse.outputs:a>`), p = !0, a.push(`${o}float inputs:opacityThreshold = ${1e-10}`), m = !0) : n.transparent ? (a.push(`${o}float inputs:opacity.connect = ${Vt}/${i}/${h(n.map)}_diffuse.outputs:a>`), p = !0) : n.alphaTest > 0 && (a.push(`${o}float inputs:opacity.connect = ${Vt}/${i}/${h(n.map)}_diffuse.outputs:a>`), p = !0, a.push(`${o}float inputs:opacityThreshold = ${n.alphaTest}`), m = !0), l.push(d(n.map, "diffuse", n.color, u))) : a.push(`${o}color3f inputs:diffuseColor = ${vb(n.color)}`), n.alphaHash && e && (m ? console.warn("Opacity threshold for " + n.name + " was already connected. Skipping alphaHash opacity threshold.") : (a.push(`${o}float inputs:opacityThreshold = 0.0000000001`), m = !0)), n.aoMap && (a.push(`${o}float inputs:occlusion.connect = ${Vt}/${i}/${h(n.aoMap)}_occlusion.outputs:r>`), l.push(d(n.aoMap, "occlusion"))), n.alphaMap ? (a.push(`${o}float inputs:opacity.connect = ${Vt}/${i}/${h(n.alphaMap)}_opacity.outputs:r>`), a.push(`${o}float inputs:opacityThreshold = 0.0000000001`), p = !0, m = !0, l.push(d(n.alphaMap, "opacity", new ae(1, 1, 1), u))) : (p ? console.warn("Opacity for " + n.name + " was already connected. Skipping default opacity.") : (a.push(`${o}float inputs:opacity = ${u}`), p = !0), n.alphaTest > 0 && (m ? console.warn("Opacity threshold for " + n.name + " was already connected. Skipping default opacity threshold.") : (a.push(`${o}float inputs:opacityThreshold = ${n.alphaTest}`), m = !0))), n instanceof ri) {
22907
+ if (n instanceof em && n.transmission !== void 0 && (u *= 1 - n.transmission * (1 - n.roughness * 0.5)), n.map ? (a.push(`${o}color3f inputs:diffuseColor.connect = ${Vt}/${i}/${h(n.map)}_diffuse.outputs:rgb>`), n instanceof De && n.transparent && n.alphaTest == 0 && e ? (a.push(`${o}float inputs:opacity.connect = ${Vt}/${i}/${h(n.map)}_diffuse.outputs:a>`), p = !0, a.push(`${o}float inputs:opacityThreshold = ${1e-10}`), m = !0) : n.transparent ? (a.push(`${o}float inputs:opacity.connect = ${Vt}/${i}/${h(n.map)}_diffuse.outputs:a>`), p = !0) : n.alphaTest > 0 && (a.push(`${o}float inputs:opacity.connect = ${Vt}/${i}/${h(n.map)}_diffuse.outputs:a>`), p = !0, a.push(`${o}float inputs:opacityThreshold = ${n.alphaTest}`), m = !0), l.push(d(n.map, "diffuse", n.color, u))) : a.push(`${o}color3f inputs:diffuseColor = ${vb(n.color)}`), n.alphaHash && e && (m ? console.warn("Opacity threshold for " + n.name + " was already connected. Skipping alphaHash opacity threshold.") : (a.push(`${o}float inputs:opacityThreshold = 0.0000000001`), m = !0)), n.aoMap && (a.push(`${o}float inputs:occlusion.connect = ${Vt}/${i}/${h(n.aoMap)}_occlusion.outputs:r>`), l.push(d(n.aoMap, "occlusion"))), n.alphaMap ? (a.push(`${o}float inputs:opacity.connect = ${Vt}/${i}/${h(n.alphaMap)}_opacity.outputs:r>`), a.push(`${o}float inputs:opacityThreshold = 0.0000000001`), p = !0, m = !0, l.push(d(n.alphaMap, "opacity", new ae(1, 1, 1), u))) : (p ? console.warn("Opacity for " + n.name + " was already connected. Skipping default opacity.") : (a.push(`${o}float inputs:opacity = ${u}`), p = !0), n.alphaTest > 0 && (m ? console.warn("Opacity threshold for " + n.name + " was already connected. Skipping default opacity threshold.") : (a.push(`${o}float inputs:opacityThreshold = ${n.alphaTest}`), m = !0))), n instanceof ai) {
22899
22908
  if (n.emissiveMap) {
22900
22909
  a.push(`${o}color3f inputs:emissiveColor.connect = ${Vt}/${i}/${h(n.emissiveMap)}_emissive.outputs:rgb>`);
22901
22910
  const b = n.emissive.clone();
@@ -23701,8 +23710,8 @@ const Ey = class {
23701
23710
  e.beginBlock(`def Preliminary_Trigger "${this.id}"`), this.targetId && (typeof this.targetId != "string" && (this.targetId = Bm(this.targetId, t)), e.appendLine("rel affectedObjects = " + this.targetId)), this.tokenId && e.appendLine(`token info:id = "${this.tokenId}"`), this.type && e.appendLine(`token type = "${this.type}"`), typeof this.distance == "number" && e.appendLine(`double distance = ${this.distance}`), e.closeBlock();
23702
23711
  }
23703
23712
  };
23704
- let Tn = Ey;
23705
- r(Tn, "global_id", 0);
23713
+ let kn = Ey;
23714
+ r(kn, "global_id", 0);
23706
23715
  function xb(n, t = { direct: !0, indirect: !0 }) {
23707
23716
  const e = Dt.createEmpty();
23708
23717
  e.name = "InputTarget_" + e.name, e.displayName = void 0, e.type = "RealityKitComponent", e.onSerialize = (i) => {
@@ -23711,14 +23720,14 @@ function xb(n, t = { direct: !0, indirect: !0 }) {
23711
23720
  }
23712
23721
  class Rt {
23713
23722
  static sceneStartTrigger() {
23714
- const t = new Tn();
23723
+ const t = new kn();
23715
23724
  return t.targetId = void 0, t.tokenId = "SceneTransition", t.type = "enter", t;
23716
23725
  }
23717
23726
  /** Trigger that fires when an object has been tapped/clicked.
23718
23727
  * @param targetObject The object or list of objects that can be interacted with.
23719
23728
  * @param inputMode Input Mode (direct and/or indirect). Only available for USDObject targets. Only supported on Vision OS at the moment. */
23720
23729
  static tapTrigger(t, e = { direct: !0, indirect: !0 }) {
23721
- const i = new Tn(t);
23730
+ const i = new kn(t);
23722
23731
  if (Array.isArray(t) && t.length > 1)
23723
23732
  for (const s of t)
23724
23733
  s instanceof Dt && xb(s, e);
@@ -23730,7 +23739,7 @@ class Rt {
23730
23739
  return (t == null ? void 0 : t.tokenId) === "TapGesture";
23731
23740
  }
23732
23741
  static proximityToCameraTrigger(t, e) {
23733
- const i = new Tn(t);
23742
+ const i = new kn(t);
23734
23743
  return i.tokenId = "ProximityToCamera", i.distance = e, i;
23735
23744
  }
23736
23745
  }
@@ -23814,8 +23823,8 @@ const uu = class {
23814
23823
  e.beginBlock(`def Preliminary_Action "${this.id}"`), this.comment && e.appendLine(`# ${this.comment}`), this.affectedObjects && (typeof this.affectedObjects != "string" && (this.affectedObjects = Bm(this.affectedObjects, t)), e.appendLine("rel affectedObjects = " + this.affectedObjects)), typeof this.duration == "number" && (typeof this.animationSpeed == "number" && this.animationSpeed !== 1 ? e.appendLine(`double duration = ${this.duration / this.animationSpeed} `) : e.appendLine(`double duration = ${this.duration} `)), this.easeType && e.appendLine(`token easeType = "${this.easeType}"`), this.tokenId && e.appendLine(`token info:id = "${this.tokenId}"`), this.tokenId === "ChangeScene" && e.appendLine("rel scene = </StageRoot/Scenes/Scene>"), this.motionType !== void 0 && e.appendLine(`token motionType = "${this.motionType}"`), typeof this.moveDistance == "number" && e.appendLine(`double moveDistance = ${this.moveDistance} `), this.style && e.appendLine(`token style = "${this.style}"`), this.type && e.appendLine(`token type = "${this.type}"`), this.front && e.appendLine(`vector3d front = (${this.front.x}, ${this.front.y}, ${this.front.z})`), this.up && e.appendLine(`vector3d upVector = (${this.up.x}, ${this.up.y}, ${this.up.z})`), typeof this.start == "number" && e.appendLine(`double start = ${this.start} `), typeof this.animationSpeed == "number" && e.appendLine(`double animationSpeed = ${this.animationSpeed.toFixed(2)} `), typeof this.reversed == "boolean" && e.appendLine(`bool reversed = ${this.reversed}`), typeof this.pingPong == "boolean" && e.appendLine(`bool reverses = ${this.pingPong}`), this.xFormTarget && (typeof this.xFormTarget != "string" && (this.xFormTarget = Bm(this.xFormTarget, t)), e.appendLine(`rel xformTarget = ${this.xFormTarget}`)), typeof this.audio == "string" && e.appendLine(`asset audio = @${this.audio}@`), typeof this.gain == "number" && e.appendLine(`double gain = ${this.gain}`), typeof this.auralMode == "string" && e.appendLine(`token auralMode = "${this.auralMode}"`), typeof this.multiplePerformOperation == "string" && e.appendLine(`token multiplePerformOperation = "${this.multiplePerformOperation}"`), typeof this.velocity == "object" && e.appendLine(`vector3d velocity = (${this.velocity.x}, ${this.velocity.y}, ${this.velocity.z})`), e.closeBlock();
23815
23824
  }
23816
23825
  };
23817
- let oi = uu;
23818
- r(oi, "global_id", 0);
23826
+ let ri = uu;
23827
+ r(ri, "global_id", 0);
23819
23828
  class Gi {
23820
23829
  constructor(t, e, i) {
23821
23830
  r(this, "x", 0);
@@ -23847,7 +23856,7 @@ class ue {
23847
23856
  return new co("Group_" + co.getId(), t).makeParallel();
23848
23857
  }
23849
23858
  static fadeAction(t, e, i) {
23850
- const s = new oi(t);
23859
+ const s = new ri(t);
23851
23860
  return s.tokenId = "Visibility", s.type = i ? "show" : "hide", s.duration = e, s.style = "basic", s.motionType = "none", s.moveDistance = 0, s.easeType = "none", s;
23852
23861
  }
23853
23862
  /**
@@ -23856,7 +23865,7 @@ class ue {
23856
23865
  * @param duration in seconds! 0 means play to end
23857
23866
  */
23858
23867
  static startAnimationAction(t, e, i = !1, s = !1) {
23859
- const o = new oi(t);
23868
+ const o = new ri(t);
23860
23869
  o.tokenId = "StartAnimation";
23861
23870
  const a = e.start, l = e.duration, c = e.speed, h = e.clipName;
23862
23871
  if (o.comment = `Animation: ${h}, start=${a * 60}, length=${l * 60}, end=${(a + l) * 60}`, o.animationName = h, o.start = a, o.duration = l, o.animationSpeed = c, o.reversed = i, o.pingPong = s, o.multiplePerformOperation = "allow", i && (o.start -= l), s) {
@@ -23867,28 +23876,28 @@ class ue {
23867
23876
  return o;
23868
23877
  }
23869
23878
  static waitAction(t) {
23870
- const e = new oi();
23879
+ const e = new ri();
23871
23880
  return e.tokenId = "Wait", e.duration = t, e.motionType = void 0, e;
23872
23881
  }
23873
23882
  static lookAtCameraAction(t, e, i, s) {
23874
- const o = new oi(t);
23883
+ const o = new ri(t);
23875
23884
  return o.tokenId = "LookAtCamera", o.duration = e === void 0 ? 9999999999999 : e, o.front = i ?? Gi.forward, o.up = s ?? Gi.up, o;
23876
23885
  }
23877
23886
  static emphasize(t, e, i = "bounce", s = 1, o = "basic") {
23878
- const a = new oi(t);
23887
+ const a = new ri(t);
23879
23888
  return a.tokenId = "Emphasize", a.duration = e, a.style = o ?? "basic", a.motionType = i, a.moveDistance = s, a;
23880
23889
  }
23881
23890
  static transformAction(t, e, i, s, o = "inout") {
23882
- const a = new oi(t);
23891
+ const a = new ri(t);
23883
23892
  return a.tokenId = "Transform", a.duration = i, a.duration = Math.max(1e-6, i), a.type = s, a.easeType = i > 0 ? o : "none", Array.isArray(e) && console.error("Transform target must not be an array", e), a.xFormTarget = e, a;
23884
23893
  }
23885
23894
  static playAudioAction(t, e, i = "play", s = 1, o = "spatial") {
23886
- const a = new oi(t);
23895
+ const a = new ri(t);
23887
23896
  return a.tokenId = "Audio", a.type = i, a.audio = e, a.gain = s, a.auralMode = o, a.multiplePerformOperation = "allow", a;
23888
23897
  }
23889
23898
  // Supported only on VisionOS, Preliminary Behaviours can affect RealityKit physics as well
23890
23899
  static impulseAction(t, e) {
23891
- const i = new oi(t);
23900
+ const i = new ri(t);
23892
23901
  return i.tokenId = "Impulse", i.velocity = e, i;
23893
23902
  }
23894
23903
  // Currently doesn't work on VisionOS, see FB13761990
@@ -24070,7 +24079,7 @@ class Yg {
24070
24079
  `), h(p);
24071
24080
  a && (l += `end
24072
24081
  `);
24073
- } else if (u instanceof oi) {
24082
+ } else if (u instanceof ri) {
24074
24083
  u.tokenId === "StartAnimation" && o.add(u);
24075
24084
  const p = u.affectedObjects;
24076
24085
  if (p)
@@ -24091,7 +24100,7 @@ class Yg {
24091
24100
  for (const m of u)
24092
24101
  d(m, p);
24093
24102
  else
24094
- u instanceof Tn && (typeof u.targetId == "object" && (e.add(u.targetId), a && (c += `${u.targetId.uuid}(("${u.targetId.displayName}")) --> ${u.id}[${u.id}]
24103
+ u instanceof kn && (typeof u.targetId == "object" && (e.add(u.targetId), a && (c += `${u.targetId.uuid}(("${u.targetId.displayName}")) --> ${u.id}[${u.id}]
24095
24104
  `)), a && (l += `${u.id}((${u.id})) -- ${u.tokenId}${u.type ? ":" + u.type : ""} --> ${p.id}[${p.tokenId || p.id}]
24096
24105
  `));
24097
24106
  }
@@ -24656,7 +24665,7 @@ const ks = (nd = class extends D {
24656
24665
  var g, y, _, b, x, M, k, O;
24657
24666
  if (!e)
24658
24667
  return;
24659
- const s = e.getComponent(Bt), o = e.getComponent(Kt);
24668
+ const s = e.getComponent(Bt), o = e.getComponent(Zt);
24660
24669
  if (!s && !o)
24661
24670
  return;
24662
24671
  if (s && !i)
@@ -24846,10 +24855,10 @@ class Kg {
24846
24855
  return "Physics";
24847
24856
  }
24848
24857
  onExportObject(t, e, i) {
24849
- const s = C.getComponents(t, ye).filter((c) => c.enabled), o = C.getComponents(t, Ri).filter((c) => c.enabled && !c.isTrigger);
24858
+ const s = C.getComponents(t, ge).filter((c) => c.enabled), o = C.getComponents(t, Ri).filter((c) => c.enabled && !c.isTrigger);
24850
24859
  let a = s.length > 0 ? s[0] : null;
24851
24860
  const l = o.length > 0 ? o[0] : null;
24852
- l && !a && (a = new ye(), a.isKinematic = !0), a && e.addEventListener("serialize", (c, h) => {
24861
+ l && !a && (a = new ge(), a.isKinematic = !0), a && e.addEventListener("serialize", (c, h) => {
24853
24862
  var d, u, p;
24854
24863
  if (a) {
24855
24864
  if (c.appendLine(), c.beginBlock('def RealityKitComponent "RigidBody"', "{", !0), a.useGravity || c.appendLine("bool gravityEnabled = 0"), c.appendLine('uniform token info:id = "RealityKit.RigidBody"'), a.isKinematic && c.appendLine('token motionType = "Kinematic"'), c.beginBlock('def RealityKitStruct "massFrame"', "{", !0), c.appendLine(`float m_mass = ${a.mass}`), c.beginBlock('def RealityKitStruct "m_pose"', "{", !0), c.appendLine(`float3 position = (${a.centerOfMass.x}, ${a.centerOfMass.y}, ${a.centerOfMass.z})`), c.closeBlock("}"), c.closeBlock("}"), o.length > 0) {
@@ -25099,22 +25108,22 @@ const cs = new v(), kl = new ne(), Gh = new W(), Mw = class extends _s {
25099
25108
  return this._createdTextBlocks.push(e), e;
25100
25109
  }
25101
25110
  };
25102
- let Zt = Mw;
25111
+ let Jt = Mw;
25103
25112
  rh([
25104
25113
  f(oe)
25105
- ], Zt.prototype, "anchoredPosition", 1);
25114
+ ], Jt.prototype, "anchoredPosition", 1);
25106
25115
  rh([
25107
25116
  f(oe)
25108
- ], Zt.prototype, "sizeDelta", 2);
25117
+ ], Jt.prototype, "sizeDelta", 2);
25109
25118
  rh([
25110
25119
  f(oe)
25111
- ], Zt.prototype, "pivot", 2);
25120
+ ], Jt.prototype, "pivot", 2);
25112
25121
  rh([
25113
25122
  f(oe)
25114
- ], Zt.prototype, "anchorMin", 2);
25123
+ ], Jt.prototype, "anchorMin", 2);
25115
25124
  rh([
25116
25125
  f(oe)
25117
- ], Zt.prototype, "anchorMax", 2);
25126
+ ], Jt.prototype, "anchorMax", 2);
25118
25127
  var Jk = Object.defineProperty, eT = Object.getOwnPropertyDescriptor, Rw = (n, t, e, i) => {
25119
25128
  for (var s = i > 1 ? void 0 : i ? eT(t, e) : t, o = n.length - 1, a; o >= 0; o--)
25120
25129
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
@@ -25180,7 +25189,7 @@ const ql = (Np = class extends _s {
25180
25189
  return this._color;
25181
25190
  }
25182
25191
  get rectTransform() {
25183
- if (this._rect || (this._rect = C.getComponent(this.gameObject, Zt)), !this._rect)
25192
+ if (this._rect || (this._rect = C.getComponent(this.gameObject, Jt)), !this._rect)
25184
25193
  throw new Error("Not Supported: Make sure to add a RectTransform component before adding a UI Graphic component.");
25185
25194
  return this._rect;
25186
25195
  }
@@ -25270,14 +25279,14 @@ class Zu extends ol {
25270
25279
  this.uiObject && !this._flippedObject && (this._flippedObject = !0, this.uiObject.scale.y *= -1);
25271
25280
  }
25272
25281
  }
25273
- var sT = Object.defineProperty, nT = Object.getOwnPropertyDescriptor, Un = (n, t, e, i) => {
25282
+ var sT = Object.defineProperty, nT = Object.getOwnPropertyDescriptor, zn = (n, t, e, i) => {
25274
25283
  for (var s = i > 1 ? void 0 : i ? nT(t, e) : t, o = n.length - 1, a; o >= 0; o--)
25275
25284
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
25276
25285
  return i && s && sT(t, e, s), s;
25277
25286
  };
25278
25287
  const $o = S("debugtext");
25279
25288
  var lt = /* @__PURE__ */ ((n) => (n[n.UpperLeft = 0] = "UpperLeft", n[n.UpperCenter = 1] = "UpperCenter", n[n.UpperRight = 2] = "UpperRight", n[n.MiddleLeft = 3] = "MiddleLeft", n[n.MiddleCenter = 4] = "MiddleCenter", n[n.MiddleRight = 5] = "MiddleRight", n[n.LowerLeft = 6] = "LowerLeft", n[n.LowerCenter = 7] = "LowerCenter", n[n.LowerRight = 8] = "LowerRight", n))(lt || {}), Tw = /* @__PURE__ */ ((n) => (n[n.Normal = 0] = "Normal", n[n.Bold = 1] = "Bold", n[n.Italic = 2] = "Italic", n[n.BoldAndItalic = 3] = "BoldAndItalic", n))(Tw || {});
25280
- class ei extends ol {
25289
+ class ti extends ol {
25281
25290
  constructor() {
25282
25291
  super(...arguments);
25283
25292
  r(this, "alignment", 0);
@@ -25576,33 +25585,33 @@ class ei extends ol {
25576
25585
  }
25577
25586
  }
25578
25587
  }
25579
- Un([
25588
+ zn([
25580
25589
  f()
25581
- ], ei.prototype, "alignment", 2);
25582
- Un([
25590
+ ], ti.prototype, "alignment", 2);
25591
+ zn([
25583
25592
  f()
25584
- ], ei.prototype, "verticalOverflow", 2);
25585
- Un([
25593
+ ], ti.prototype, "verticalOverflow", 2);
25594
+ zn([
25586
25595
  f()
25587
- ], ei.prototype, "horizontalOverflow", 2);
25588
- Un([
25596
+ ], ti.prototype, "horizontalOverflow", 2);
25597
+ zn([
25589
25598
  f()
25590
- ], ei.prototype, "lineSpacing", 2);
25591
- Un([
25599
+ ], ti.prototype, "lineSpacing", 2);
25600
+ zn([
25592
25601
  f()
25593
- ], ei.prototype, "supportRichText", 2);
25594
- Un([
25602
+ ], ti.prototype, "supportRichText", 2);
25603
+ zn([
25595
25604
  f(URL)
25596
- ], ei.prototype, "font", 2);
25597
- Un([
25605
+ ], ti.prototype, "font", 2);
25606
+ zn([
25598
25607
  f()
25599
- ], ei.prototype, "fontStyle", 2);
25600
- Un([
25608
+ ], ti.prototype, "fontStyle", 2);
25609
+ zn([
25601
25610
  f()
25602
- ], ei.prototype, "text", 1);
25603
- Un([
25611
+ ], ti.prototype, "text", 1);
25612
+ zn([
25604
25613
  f()
25605
- ], ei.prototype, "fontSize", 1);
25614
+ ], ti.prototype, "fontSize", 1);
25606
25615
  class gp {
25607
25616
  constructor(t, e) {
25608
25617
  r(this, "tag");
@@ -25676,16 +25685,16 @@ class Ju {
25676
25685
  return "text";
25677
25686
  }
25678
25687
  exportText(t, e, i) {
25679
- const s = C.getComponent(t, ei);
25688
+ const s = C.getComponent(t, ti);
25680
25689
  if (!s)
25681
25690
  return;
25682
- const o = C.getComponent(t, Zt);
25691
+ const o = C.getComponent(t, Jt);
25683
25692
  let a = 100, l = 100;
25684
25693
  o && (a = o.width, l = o.height);
25685
25694
  const c = rT.clone();
25686
25695
  o && c.premultiply(aT), e.setMatrix(c);
25687
25696
  const h = s.color.clone();
25688
- e.material = new ri({ color: h, emissive: h }), e.addEventListener("serialize", (d, u) => {
25697
+ e.material = new ai({ color: h, emissive: h }), e.addEventListener("serialize", (d, u) => {
25689
25698
  let p = s.text;
25690
25699
  p = p.replace(/\r/g, ""), p = p.replace(/\n/g, "\\n");
25691
25700
  const m = Zg.multiLine(
@@ -25810,7 +25819,7 @@ class ki extends D {
25810
25819
  this._needsUpdate = !0;
25811
25820
  }
25812
25821
  onEnable() {
25813
- Cb && console.log(this.name, this), this._rectTransform = this.gameObject.getComponent(Zt);
25822
+ Cb && console.log(this.name, this), this._rectTransform = this.gameObject.getComponent(Jt);
25814
25823
  const e = this.gameObject.getComponentInParent(Ft);
25815
25824
  e && e.registerLayoutGroup(this), this._needsUpdate = !0;
25816
25825
  }
@@ -25878,7 +25887,7 @@ class To extends ki {
25878
25887
  c ? b += this.padding.left : b += this.padding.top;
25879
25888
  let x = 0, M = 0;
25880
25889
  for (let T = 0; T < this.gameObject.children.length; T++) {
25881
- const z = this.gameObject.children[T], F = C.getComponent(z, Zt);
25890
+ const z = this.gameObject.children[T], F = C.getComponent(z, Jt);
25882
25891
  F != null && F.activeAndEnabled && (M += 1, c ? x += F.width : x += F.height);
25883
25892
  }
25884
25893
  let k = 0;
@@ -25891,7 +25900,7 @@ class To extends ki {
25891
25900
  R += this.padding.left, R -= this.padding.right, _ !== 0 && (b = y - x, b *= _, b -= O * _, c ? (b -= this.padding.right * _, b += this.padding.left * (1 - _), b < this.padding.left && (b = this.padding.left)) : (b -= this.padding.bottom * _, b += this.padding.top * (1 - _), b < this.padding.top && (b = this.padding.top)));
25892
25901
  let E = 1;
25893
25902
  for (let T = 0; T < this.gameObject.children.length; T++) {
25894
- const z = this.gameObject.children[T], F = C.getComponent(z, Zt);
25903
+ const z = this.gameObject.children[T], F = C.getComponent(z, Jt);
25895
25904
  if (F != null && F.activeAndEnabled) {
25896
25905
  (j = F.pivot) == null || j.set(0.5, 0.5), F.anchorMin.set(0, 1), F.anchorMax.set(0, 1);
25897
25906
  const I = s * 0.5 + R * 0.5;
@@ -26137,7 +26146,7 @@ const yp = S("debuguilayout"), Lw = class extends Nu {
26137
26146
  return;
26138
26147
  const s = i + 0.01;
26139
26148
  this.gameObject.position.x = 0, this.gameObject.position.y = 0, this.gameObject.position.z = -s, this.gameObject.quaternion.identity();
26140
- const o = this.gameObject.getComponent(Zt);
26149
+ const o = this.gameObject.getComponent(Jt);
26141
26150
  let a = !1;
26142
26151
  o.sizeDelta.x !== this.context.domWidth && (a = !0), o.sizeDelta.y !== this.context.domHeight && (a = !0);
26143
26152
  const l = e.fieldOfView * Math.PI / 180, c = 2 * Math.tan(l / 2) * Math.abs(s);
@@ -26235,7 +26244,7 @@ class ey {
26235
26244
  onExportObject(t, e, i) {
26236
26245
  const s = C.getComponent(t, Ft);
26237
26246
  if (s && s.enabled && s.renderMode === Dw.WorldSpace) {
26238
- const o = new Ju(), a = C.getComponent(t, Zt), l = C.getComponent(t, xr), c = new Array();
26247
+ const o = new Ju(), a = C.getComponent(t, Jt), l = C.getComponent(t, xr), c = new Array();
26239
26248
  if (a) {
26240
26249
  if (!C.isActiveSelf(t)) {
26241
26250
  const u = C.isActiveSelf(t);
@@ -26251,11 +26260,11 @@ class ey {
26251
26260
  m && (m.onEnable(), c.push(() => {
26252
26261
  m.onDisable();
26253
26262
  }));
26254
- const g = C.getComponent(u, Zt);
26263
+ const g = C.getComponent(u, Jt);
26255
26264
  g && (g.onEnable(), g.updateTransform(), g.onApplyTransform(), c.push(() => {
26256
26265
  g.onDisable();
26257
26266
  }));
26258
- const y = C.getComponent(u, ei);
26267
+ const y = C.getComponent(u, ti);
26259
26268
  y && (y.onEnable(), c.push(() => {
26260
26269
  y.onDisable();
26261
26270
  })), c.push(() => {
@@ -26476,7 +26485,7 @@ class yT {
26476
26485
  function jw(n) {
26477
26486
  n && (n.colorSpace != gs && (n.colorSpace = gs, n.needsUpdate = !0), n.minFilter == kd && n.magFilter == kd && (n.anisotropy = 1, n.needsUpdate = !0));
26478
26487
  }
26479
- let Nn = class {
26488
+ let Un = class {
26480
26489
  constructor(t) {
26481
26490
  r(this, "guid");
26482
26491
  r(this, "texture");
@@ -26515,19 +26524,19 @@ let Nn = class {
26515
26524
  };
26516
26525
  xt([
26517
26526
  f()
26518
- ], Nn.prototype, "guid", 2);
26527
+ ], Un.prototype, "guid", 2);
26519
26528
  xt([
26520
26529
  f(We)
26521
- ], Nn.prototype, "texture", 2);
26530
+ ], Un.prototype, "texture", 2);
26522
26531
  xt([
26523
26532
  qc()
26524
- ], Nn.prototype, "triangles", 2);
26533
+ ], Un.prototype, "triangles", 2);
26525
26534
  xt([
26526
26535
  qc()
26527
- ], Nn.prototype, "uv", 2);
26536
+ ], Un.prototype, "uv", 2);
26528
26537
  xt([
26529
26538
  qc()
26530
- ], Nn.prototype, "vertices", 2);
26539
+ ], Un.prototype, "vertices", 2);
26531
26540
  const _p = Symbol("spriteOwner");
26532
26541
  class Sr {
26533
26542
  constructor() {
@@ -26535,7 +26544,7 @@ class Sr {
26535
26544
  }
26536
26545
  }
26537
26546
  xt([
26538
- f(Nn)
26547
+ f(Un)
26539
26548
  ], Sr.prototype, "sprites", 2);
26540
26549
  const Bw = class {
26541
26550
  // we don't assign anything here because it's used by the serialization system.
@@ -26642,7 +26651,7 @@ class Ti extends D {
26642
26651
  this.spriteIndex = i;
26643
26652
  return;
26644
26653
  } else
26645
- e instanceof Nn ? (this._spriteSheet || (this._spriteSheet = _o.create()), this._spriteSheet.sprite != e && (this._spriteSheet.sprite = e, this.updateSprite())) : e != this._spriteSheet && (this._spriteSheet = e, this.updateSprite());
26654
+ e instanceof Un ? (this._spriteSheet || (this._spriteSheet = _o.create()), this._spriteSheet.sprite != e && (this._spriteSheet.sprite = e, this.updateSprite())) : e != this._spriteSheet && (this._spriteSheet = e, this.updateSprite());
26646
26655
  }
26647
26656
  /**
26648
26657
  * Set the index of the sprite to be rendered in the currently assigned sprite sheet
@@ -27111,7 +27120,7 @@ const pu = class {
27111
27120
  };
27112
27121
  let fa = pu;
27113
27122
  r(fa, "up", new v(0, 1, 0)), r(fa, "zero", new v(0, 0, 0)), r(fa, "one", new v(1, 1, 1));
27114
- const Sn = S("debugautosync"), bp = Symbol("syncerId");
27123
+ const so = S("debugautosync"), bp = Symbol("syncerId");
27115
27124
  class bT {
27116
27125
  constructor() {
27117
27126
  r(this, "_syncers", {});
@@ -27149,26 +27158,22 @@ class vT {
27149
27158
  return;
27150
27159
  }
27151
27160
  for (const e in this.changedProperties) {
27152
- const i = this.comp.guid + "/" + e, s = this.changedProperties[e];
27153
- Sn && console.log("SEND", this.comp.name, this.networkingKey), t.send(this.networkingKey, { guid: i, data: s }, Is.Queued);
27161
+ const i = this.changedProperties[e];
27162
+ so && console.log("SEND", this.comp.guid, this.networkingKey), t.send(this.networkingKey, { guid: this.comp.guid, property: e, data: i }, Is.Queued), delete this.changedProperties[e];
27154
27163
  }
27155
27164
  });
27156
27165
  r(this, "onHandleReceiving", (t) => {
27157
- if (Sn && console.log("RECEIVE", this.comp.name, this.comp.guid, t), !this._isInit || !this.comp || t.guid.startsWith(this.comp.guid) === !1)
27158
- return;
27159
- const [e, i] = t.guid.split("/");
27160
- Sn && console.log("RECEIVED", this.comp.name, this.comp.guid, t);
27161
- try {
27162
- this._isReceiving = !0, this.comp[i] = t.data;
27163
- } catch (s) {
27164
- console.error(s);
27165
- } finally {
27166
- this._isReceiving = !1;
27167
- }
27166
+ if (so && console.log("SYNCFIELD RECEIVE", this.comp.name, this.comp.guid, t), !!this._isInit && this.comp && t.guid === this.comp.guid)
27167
+ try {
27168
+ this._isReceiving = !0, this.comp[t.property] = t.data;
27169
+ } catch (e) {
27170
+ console.error(e);
27171
+ } finally {
27172
+ this._isReceiving = !1;
27173
+ }
27168
27174
  });
27169
27175
  this.comp = t;
27170
27176
  }
27171
- // private data = {};
27172
27177
  get networkingKey() {
27173
27178
  return this.comp.guid;
27174
27179
  }
@@ -27183,16 +27188,8 @@ class vT {
27183
27188
  this._isInit && (this.comp.context.post_render_callbacks.splice(this.comp.context.post_render_callbacks.indexOf(this.onHandleSending), 1), this.comp.context.connection.stopListen(this.networkingKey, this.onHandleReceiving), this.comp = null, this._isInit = !1);
27184
27189
  }
27185
27190
  notifyChanged(t, e) {
27186
- this._isReceiving || (Sn && console.log("Property changed: " + t, e), this.hasChanges = !0, this.changedProperties[t] = e);
27187
- }
27188
- // private _seen: Set<any> = new Set();
27189
- // private uniqBy(a, key) {
27190
- // this._seen.clear();
27191
- // return a.filter(item => {
27192
- // let k = key(item);
27193
- // return this._seen.has(k) ? false : this._seen.add(k);
27194
- // });
27195
- // }
27191
+ this._isReceiving || (so && console.log("Property changed: " + t, e), this.hasChanges = !0, this.changedProperties[t] = e);
27192
+ }
27196
27193
  }
27197
27194
  function wT(n, t) {
27198
27195
  let e = t !== n;
@@ -27215,13 +27212,13 @@ const Fw = function(n = null) {
27215
27212
  let i = "";
27216
27213
  typeof e == "string" ? i = e : i = e.name;
27217
27214
  let s = null, o;
27218
- typeof n == "string" ? o = t[n] : typeof n == "function" && (o = n), o == null && (U() || Sn) && n != null && console.warn('syncField: no callback function found for property "' + i + '"', '"' + n + '"');
27215
+ typeof n == "string" ? o = t[n] : typeof n == "function" && (o = n), o == null && (U() || so) && n != null && console.warn('syncField: no callback function found for property "' + i + '"', '"' + n + '"');
27219
27216
  const a = t, l = a.__internalAwake;
27220
27217
  if (typeof l != "function") {
27221
- (Sn || U()) && console.error('@syncField can currently only used on Needle Engine Components, custom object of type "' + ((d = t == null ? void 0 : t.constructor) == null ? void 0 : d.name) + '" is not supported', t);
27218
+ (so || U()) && console.error('@syncField can currently only used on Needle Engine Components, custom object of type "' + ((d = t == null ? void 0 : t.constructor) == null ? void 0 : d.name) + '" is not supported', t);
27222
27219
  return;
27223
27220
  }
27224
- Sn && console.log(i);
27221
+ so && console.log(i);
27225
27222
  const c = Symbol(i);
27226
27223
  a.__internalAwake = function() {
27227
27224
  if (this[c] !== void 0)
@@ -27235,13 +27232,13 @@ const Fw = function(n = null) {
27235
27232
  var y;
27236
27233
  const g = this[c];
27237
27234
  if (this[c] = m, p) {
27238
- (U() || Sn) && console.warn("Recursive call detected", i);
27235
+ (U() || so) && console.warn("Recursive call detected", i);
27239
27236
  return;
27240
27237
  }
27241
27238
  p = !0;
27242
27239
  try {
27243
27240
  const _ = wT(m, g);
27244
- Sn && console.log("SyncField assignment", i, "changed?", _, m, o), _ && (o == null ? void 0 : o.call(this, m, g)) !== !1 && ((y = xT(this)) == null || y.notifyChanged(i, m));
27241
+ so && console.log("SyncField assignment", i, "changed?", _, m, o), _ && (o == null ? void 0 : o.call(this, m, g)) !== !1 && ((y = xT(this)) == null || y.notifyChanged(i, m));
27245
27242
  } finally {
27246
27243
  p = !1;
27247
27244
  }
@@ -27266,7 +27263,7 @@ var CT = Object.defineProperty, PT = Object.getOwnPropertyDescriptor, ef = (n, t
27266
27263
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
27267
27264
  return i && s && CT(t, e, s), s;
27268
27265
  };
27269
- const yi = S("debugplayersync"), zw = class extends D {
27266
+ const Xt = S("debugplayersync"), zw = class extends D {
27270
27267
  constructor() {
27271
27268
  super(...arguments);
27272
27269
  r(this, "autoSync", !0);
@@ -27274,12 +27271,12 @@ const yi = S("debugplayersync"), zw = class extends D {
27274
27271
  r(this, "onPlayerSpawned");
27275
27272
  r(this, "_localInstance");
27276
27273
  r(this, "onJoinedRoom", () => {
27277
- yi && console.log("PlayerSync.joinedRoom. autoSync is set to " + this.autoSync), this.autoSync && this.getInstance();
27274
+ Xt && console.log("PlayerSync.joinedRoom. autoSync is set to " + this.autoSync), this.autoSync && this.getInstance();
27278
27275
  });
27279
27276
  r(this, "destroyInstance", () => {
27280
27277
  var t;
27281
27278
  (t = this._localInstance) == null || t.then((e) => {
27282
- yi && console.log("PlayerSync.destroyInstance", e), Iu(e, this.context.connection, !0, { saveInRoom: !1 });
27279
+ Xt && console.log("PlayerSync.destroyInstance", e), Iu(e, this.context.connection, !0, { saveInRoom: !1 });
27283
27280
  }), this._localInstance = void 0;
27284
27281
  });
27285
27282
  }
@@ -27318,13 +27315,13 @@ const yi = S("debugplayersync"), zw = class extends D {
27318
27315
  var e, i, s, o, a, l;
27319
27316
  if (this._localInstance)
27320
27317
  return this._localInstance;
27321
- if (yi && console.log("PlayerSync.createInstance", (e = this.asset) == null ? void 0 : e.url), !((i = this.asset) != null && i.asset) && !((s = this.asset) != null && s.url))
27318
+ if (Xt && console.log("PlayerSync.createInstance", (e = this.asset) == null ? void 0 : e.url), !((i = this.asset) != null && i.asset) && !((s = this.asset) != null && s.url))
27322
27319
  return console.error('PlayerSync: can not create an instance because "asset" is not set and or has no URL!'), null;
27323
27320
  this.gameObject.guid || console.warn("PlayerSync: gameObject has no guid! This might cause issues with syncing the player state."), this._localInstance = (o = this.asset) == null ? void 0 : o.instantiateSynced({ parent: this.gameObject, deleteOnDisconnect: !0 }, !0);
27324
27321
  const t = await this._localInstance;
27325
27322
  if (t) {
27326
27323
  const c = C.getComponentsInChildren(t, Xi);
27327
- if (c != null && c.length) {
27324
+ if (Xt && console.log(`PlayerSync.createInstance: found ${c == null ? void 0 : c.length} PlayerState components. Owner: ${this.context.connection.connectionId}`), c != null && c.length) {
27328
27325
  for (const h of c)
27329
27326
  h.owner = this.context.connection.connectionId;
27330
27327
  (a = this.onPlayerSpawned) == null || a.invoke(t);
@@ -27366,7 +27363,7 @@ const Mt = (Bl = class extends D {
27366
27363
  r(this, "dontDestroy", !1);
27367
27364
  r(this, "onUserLeftRoom", (t) => {
27368
27365
  if (t.userId === this.owner) {
27369
- yi && console.log("PLAYERSYNC LEFT", this.owner), this.doDestroy();
27366
+ Xt && console.log("PLAYERSYNC LEFT", this.owner), this.doDestroy();
27370
27367
  return;
27371
27368
  }
27372
27369
  });
@@ -27412,7 +27409,7 @@ const Mt = (Bl = class extends D {
27412
27409
  }
27413
27410
  onOwnerChange(t, e) {
27414
27411
  var a, l;
27415
- yi && console.log("PlayerSync.onOwnerChange", this, "newOwner", t, "oldOwner", e);
27412
+ Xt && console.log(`PlayerSync.onOwnerChange: ${e} ${t} (me: ${this.context.connection.connectionId})`);
27416
27413
  const i = Mt._local.indexOf(this);
27417
27414
  i >= 0 && Mt._local.splice(i, 1);
27418
27415
  const s = {
@@ -27428,29 +27425,23 @@ const Mt = (Bl = class extends D {
27428
27425
  const o = new CustomEvent("owner-changed", { detail: s });
27429
27426
  this.dispatchEvent(o), Mt.dispatchEvent("ownerChanged", o);
27430
27427
  }
27428
+ /** @internal */
27431
27429
  awake() {
27432
- Mt.all.push(this), yi && console.log("Registered new PlayerState", this.guid, Mt.all.length - 1, Mt.all), this.context.connection.beginListen(se.UserLeftRoom, this.onUserLeftRoom);
27430
+ Mt.all.push(this), Xt && console.log("Registered new PlayerState", this.guid, Mt.all.length - 1, Mt.all), this.context.connection.beginListen(se.UserLeftRoom, this.onUserLeftRoom);
27433
27431
  }
27432
+ /** @internal */
27434
27433
  async start() {
27435
- yi && console.log("PLAYERSTATE.START, owner: " + this.owner, this.context.connection.usersInRoom([])), this.owner ? (this.context.connection.isInRoom || await Gs(300), this.context.connection.userIsInRoom(this.owner) == !1 && (yi && console.log(`PlayerSync.start → doDestroy "${this.name}" because user "${this.owner}" is not in room anymore...`, "Currently in room:", ...this.context.connection.usersInRoom()), this.doDestroy())) : this.owner || (yi && console.warn("PlayerState.start → owner is undefined!", this.name), setTimeout(() => {
27436
- !this.destroyed && !this.owner ? this.dontDestroy ? yi && console.warn("PlayerState.start → owner is still undefined but dontDestroy is set to true", this.name) : (yi && console.warn(`PlayerState.start → owner is still undefined: destroying "${this.name}" instance now`), this.doDestroy()) : yi && console.log("PlayerState.start → owner is assigned", this.owner);
27434
+ Xt && console.log("PLAYERSTATE.START, owner: " + this.owner, this.context.connection.usersInRoom([])), this.owner ? (this.context.connection.isInRoom || await Gs(300), this.context.connection.userIsInRoom(this.owner) == !1 && (Xt && console.log(`PlayerSync.start → doDestroy "${this.name}" because user "${this.owner}" is not in room anymore...`, "Currently in room:", ...this.context.connection.usersInRoom()), this.doDestroy())) : this.owner || (Xt && console.warn("PlayerState.start → owner is undefined!", this.name), setTimeout(() => {
27435
+ !this.destroyed && !this.owner ? this.dontDestroy ? Xt && console.warn("PlayerState.start → owner is still undefined but dontDestroy is set to true", this.name) : (Xt && console.warn(`PlayerState.start → owner is still undefined: destroying "${this.name}" instance now`), this.doDestroy()) : Xt && console.log("PlayerState.start → owner is assigned", this.owner);
27437
27436
  }, 2e3));
27438
27437
  }
27439
- // onEnable() {
27440
- // if (debug) this.startCoroutine(this.debugRoutine());
27441
- // }
27442
- // *debugRoutine() {
27443
- // while (!this.destroyed && this.activeAndEnabled) {
27444
- // Gizmos.DrawLabel(this.gameObject.worldPosition, this.owner ?? "no owner");
27445
- // yield;
27446
- // }
27447
- // }
27448
27438
  /** this tells the server that this client has been destroyed and the networking message for the instantiate will be removed */
27449
27439
  doDestroy() {
27450
- yi && console.log("PlayerSync.doDestroy → syncDestroy", this.name), Iu(this.gameObject, this.context.connection, !0, { saveInRoom: !1 });
27440
+ Xt && console.log("PlayerSync.doDestroy → syncDestroy", this.name), Iu(this.gameObject, this.context.connection, !0, { saveInRoom: !1 });
27451
27441
  }
27442
+ /** @internal */
27452
27443
  onDestroy() {
27453
- if (this.context.connection.stopListen(se.UserLeftRoom, this.onUserLeftRoom), Mt.all.splice(Mt.all.indexOf(this), 1), this.isLocalPlayer) {
27444
+ if (Xt && console.warn("PlayerState.onDestroy", this.owner), this.context.connection.stopListen(se.UserLeftRoom, this.onUserLeftRoom), Mt.all.splice(Mt.all.indexOf(this), 1), this.isLocalPlayer) {
27454
27445
  const t = Mt._local.indexOf(this);
27455
27446
  t >= 0 && Mt._local.splice(t, 1);
27456
27447
  }
@@ -27466,7 +27457,7 @@ var MT = Object.defineProperty, RT = Object.getOwnPropertyDescriptor, rl = (n, t
27466
27457
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
27467
27458
  return i && s && MT(t, e, s), s;
27468
27459
  };
27469
- class $n extends D {
27460
+ class Nn extends D {
27470
27461
  constructor() {
27471
27462
  super(...arguments);
27472
27463
  r(this, "position", "bottom");
@@ -27487,22 +27478,22 @@ class $n extends D {
27487
27478
  }
27488
27479
  rl([
27489
27480
  f()
27490
- ], $n.prototype, "position", 2);
27481
+ ], Nn.prototype, "position", 2);
27491
27482
  rl([
27492
27483
  f()
27493
- ], $n.prototype, "showNeedleLogo", 2);
27484
+ ], Nn.prototype, "showNeedleLogo", 2);
27494
27485
  rl([
27495
27486
  f()
27496
- ], $n.prototype, "showSpatialMenu", 2);
27487
+ ], Nn.prototype, "showSpatialMenu", 2);
27497
27488
  rl([
27498
27489
  f()
27499
- ], $n.prototype, "createFullscreenButton", 2);
27490
+ ], Nn.prototype, "createFullscreenButton", 2);
27500
27491
  rl([
27501
27492
  f()
27502
- ], $n.prototype, "createMuteButton", 2);
27493
+ ], Nn.prototype, "createMuteButton", 2);
27503
27494
  rl([
27504
27495
  f()
27505
- ], $n.prototype, "createQRCodeButton", 2);
27496
+ ], Nn.prototype, "createQRCodeButton", 2);
27506
27497
  var kT = Object.defineProperty, TT = Object.getOwnPropertyDescriptor, iy = (n, t, e, i) => {
27507
27498
  for (var s = i > 1 ? void 0 : i ? TT(t, e) : t, o = n.length - 1, a; o >= 0; o--)
27508
27499
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
@@ -27621,7 +27612,7 @@ class Cr extends D {
27621
27612
  e != null && e.isMesh && this._leftHandMeshes.push(e);
27622
27613
  }), this._rightHandMeshes = [], this.rightHand.asset.traverse((e) => {
27623
27614
  e != null && e.isMesh && this._rightHandMeshes.push(e);
27624
- }), Xi.isLocalPlayer(this.gameObject) && (this._syncTransforms = C.getComponentsInChildren(this.gameObject, In));
27615
+ }), Xi.isLocalPlayer(this.gameObject) && (this._syncTransforms = C.getComponentsInChildren(this.gameObject, En));
27625
27616
  }
27626
27617
  async loadAvatarObjects(e, i, s) {
27627
27618
  const o = e.loadAssetAsync(), a = i.loadAssetAsync(), l = s.loadAssetAsync(), c = new Array();
@@ -27644,8 +27635,8 @@ var AT = Object.defineProperty, ET = Object.getOwnPropertyDescriptor, tf = (n, t
27644
27635
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
27645
27636
  return i && s && AT(t, e, s), s;
27646
27637
  };
27647
- const an = S("debugwebxr"), Xn = new Array();
27648
- class Dn extends D {
27638
+ const an = S("debugwebxr"), qn = new Array();
27639
+ class In extends D {
27649
27640
  constructor() {
27650
27641
  super(...arguments);
27651
27642
  r(this, "createControllerModel", !0);
@@ -27697,9 +27688,9 @@ class Dn extends D {
27697
27688
  this._models.length = 0;
27698
27689
  }
27699
27690
  onBeforeRender() {
27700
- if (Z.active && (an && (Xn[0] = Date.now()), this.updateRendering(Z.active), an)) {
27701
- const e = Date.now() - Xn[0];
27702
- Xn.push(e), Xn.length >= 30 && (Xn[0] = 0, Xn.reduce((i, s) => i + s, 0) / Xn.length, Xn.length = 0);
27691
+ if (Z.active && (an && (qn[0] = Date.now()), this.updateRendering(Z.active), an)) {
27692
+ const e = Date.now() - qn[0];
27693
+ qn.push(e), qn.length >= 30 && (qn[0] = 0, qn.reduce((i, s) => i + s, 0) / qn.length, qn.length = 0);
27703
27694
  }
27704
27695
  }
27705
27696
  updateRendering(e) {
@@ -27780,19 +27771,19 @@ class Dn extends D {
27780
27771
  }
27781
27772
  }
27782
27773
  }
27783
- r(Dn, "factory", new n1());
27774
+ r(In, "factory", new n1());
27784
27775
  tf([
27785
27776
  f()
27786
- ], Dn.prototype, "createControllerModel", 2);
27777
+ ], In.prototype, "createControllerModel", 2);
27787
27778
  tf([
27788
27779
  f()
27789
- ], Dn.prototype, "createHandModel", 2);
27780
+ ], In.prototype, "createHandModel", 2);
27790
27781
  tf([
27791
27782
  f(re)
27792
- ], Dn.prototype, "customLeftHand", 2);
27783
+ ], In.prototype, "customLeftHand", 2);
27793
27784
  tf([
27794
27785
  f(re)
27795
- ], Dn.prototype, "customRightHand", 2);
27786
+ ], In.prototype, "customRightHand", 2);
27796
27787
  class sy extends D {
27797
27788
  }
27798
27789
  var IT = Object.defineProperty, DT = Object.getOwnPropertyDescriptor, Ao = (n, t, e, i) => {
@@ -28181,8 +28172,8 @@ const pa = ($p = class extends D {
28181
28172
  }
28182
28173
  /** Call to enable or disable default controller rendering */
28183
28174
  setDefaultControllerRenderingEnabled(t) {
28184
- let e = this.gameObject.getComponent(Dn);
28185
- return !e && t && (e = this.gameObject.addComponent(Dn), this._createdComponentsInSession.push(e), e.createControllerModel = this.showControllerModels, e.createHandModel == this.showHandModels), e && (e.enabled = t), e;
28175
+ let e = this.gameObject.getComponent(In);
28176
+ return !e && t && (e = this.gameObject.addComponent(In), this._createdComponentsInSession.push(e), e.createControllerModel = this.showControllerModels, e.createHandModel == this.showHandModels), e && (e.enabled = t), e;
28186
28177
  }
28187
28178
  async createLocalAvatar(t) {
28188
28179
  this._playerSync && t.running && typeof this.defaultAvatar != "boolean" && (this._playerSync.asset = this.defaultAvatar, await this._playerSync.getInstance());
@@ -28221,7 +28212,7 @@ const pa = ($p = class extends D {
28221
28212
  this.addButton(i, 50);
28222
28213
  }
28223
28214
  }), this.createQRCode) {
28224
- const e = Og($n);
28215
+ const e = Og(Nn);
28225
28216
  if (e && e.createQRCodeButton === !1)
28226
28217
  U() && console.warn("WebXR: QRCode button is disabled in the Needle Menu component");
28227
28218
  else if (!Q.isMobileDevice()) {
@@ -28297,7 +28288,7 @@ St([
28297
28288
  const Xl = S("debugusdz");
28298
28289
  function zT(n, t) {
28299
28290
  var l;
28300
- const e = [], i = C.getComponentsInChildren(n, Bt), s = C.getComponentsInChildren(n, Kt), o = new Array(), a = new Array();
28291
+ const e = [], i = C.getComponentsInChildren(n, Bt), s = C.getComponentsInChildren(n, Zt), o = new Array(), a = new Array();
28301
28292
  if (t.injectImplicitBehaviours)
28302
28293
  for (const c of i) {
28303
28294
  if (!c || !c.runtimeAnimatorController || !c.enabled)
@@ -28390,7 +28381,7 @@ var $T = Object.defineProperty, WT = Object.getOwnPropertyDescriptor, kt = (n, t
28390
28381
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
28391
28382
  return i && s && $T(t, e, s), s;
28392
28383
  };
28393
- const fi = S("debugusdz"), VT = S("debugusdzpruning");
28384
+ const pi = S("debugusdz"), VT = S("debugusdzpruning");
28394
28385
  class zr {
28395
28386
  constructor() {
28396
28387
  r(this, "callToAction");
@@ -28449,7 +28440,7 @@ const Fm = (od = class extends D {
28449
28440
  /** @internal */
28450
28441
  start() {
28451
28442
  var t, e, i;
28452
- fi && (console.log("USDZExporter", this), console.log("Debug USDZ Mode. Press 'T' to export"), window.addEventListener("keydown", (s) => {
28443
+ pi && (console.log("USDZExporter", this), console.log("Debug USDZ Mode. Press 'T' to export"), window.addEventListener("keydown", (s) => {
28453
28444
  switch (s.key) {
28454
28445
  case "t":
28455
28446
  this.exportAndOpen();
@@ -28461,12 +28452,12 @@ const Fm = (od = class extends D {
28461
28452
  onEnable() {
28462
28453
  var i;
28463
28454
  const t = Q.supportsQuickLookAR(), e = Q.isiOS() || Q.isiPad();
28464
- !this.button && (fi || t || e) && (this.allowCreateQuicklookButton && (this.button = this.createQuicklookButton()), this.lastCallback = this.quicklookCallback.bind(this), this.link = Mb(this.context, t), this.link.addEventListener("message", this.lastCallback)), fi && $e("USDZ Exporter enabled: " + this.name), (i = document.getElementById("open-in-ar")) == null || i.addEventListener("click", this.onClickedOpenInARElement), kc.registerExporter(this);
28455
+ !this.button && (pi || t || e) && (this.allowCreateQuicklookButton && (this.button = this.createQuicklookButton()), this.lastCallback = this.quicklookCallback.bind(this), this.link = Mb(this.context, t), this.link.addEventListener("message", this.lastCallback)), pi && $e("USDZ Exporter enabled: " + this.name), (i = document.getElementById("open-in-ar")) == null || i.addEventListener("click", this.onClickedOpenInARElement), kc.registerExporter(this);
28465
28456
  }
28466
28457
  /** @internal */
28467
28458
  onDisable() {
28468
28459
  var t, e, i;
28469
- (t = this.button) == null || t.remove(), (e = this.link) == null || e.removeEventListener("message", this.lastCallback), fi && $e("USDZ Exporter disabled: " + this.name), (i = document.getElementById("open-in-ar")) == null || i.removeEventListener("click", this.onClickedOpenInARElement), kc.unregisterExporter(this);
28460
+ (t = this.button) == null || t.remove(), (e = this.link) == null || e.removeEventListener("message", this.lastCallback), pi && $e("USDZ Exporter disabled: " + this.name), (i = document.getElementById("open-in-ar")) == null || i.removeEventListener("click", this.onClickedOpenInARElement), kc.unregisterExporter(this);
28470
28461
  }
28471
28462
  /**
28472
28463
  * Creates an USDZ file from the current scene or assigned objectToExport and opens it in QuickLook.
@@ -28484,11 +28475,11 @@ const Fm = (od = class extends D {
28484
28475
  var i;
28485
28476
  let t = this.exportFileName ?? ((i = this.objectToExport) == null ? void 0 : i.name) ?? this.name;
28486
28477
  if (t += "-" + Ok(), dr() || (t !== "" && (t += "-"), t += "MadeWithNeedle"), this.link || (this.link = Mb(this.context, Q.supportsQuickLookAR())), this.customUsdzFile)
28487
- return fi && console.log("Exporting custom usdz", this.customUsdzFile), this.openInQuickLook(this.customUsdzFile, t), null;
28478
+ return pi && console.log("Exporting custom usdz", this.customUsdzFile), this.openInQuickLook(this.customUsdzFile, t), null;
28488
28479
  if (!this.objectToExport)
28489
28480
  return console.warn("No object to export", this), null;
28490
28481
  const e = await this.export(this.objectToExport);
28491
- return e ? (fi && console.log("USDZ generation done. Downloading as " + t), this.openInQuickLook(e, t), e) : (console.error("USDZ generation failed. Please report a bug", this), null);
28482
+ return e ? (pi && console.log("USDZ generation done. Downloading as " + t), this.openInQuickLook(e, t), e) : (console.error("USDZ generation failed. Please report a bug", this), null);
28492
28483
  }
28493
28484
  /**
28494
28485
  * Creates an USDZ file from the current scene or assigned objectToExport and opens it in QuickLook.
@@ -28534,27 +28525,27 @@ const Fm = (od = class extends D {
28534
28525
  }));
28535
28526
  }
28536
28527
  }
28537
- fi && $e("Progressive Loading: " + s.length), await Promise.all(s), fi && $e("Progressive Loading: done"), he.end("export-usdz-textures");
28528
+ pi && $e("Progressive Loading: " + s.length), await Promise.all(s), pi && $e("Progressive Loading: done"), he.end("export-usdz-textures");
28538
28529
  const a = It.Global.Mask;
28539
28530
  It.Global.Set(xn.AR);
28540
28531
  const l = new Ik(), c = new Qu(this.quickLookCompatible);
28541
28532
  let h;
28542
28533
  const d = [];
28543
- this.interactive && (d.push(new Yg()), d.push(new Br()), globalThis.true && C.getComponentsInChildren(t, ye).length > 0 && (this.physics ? (h = new Kg(), d.push(h)) : U() && console.warn("USDZExporter: Physics export is disabled, but there are active Rigidbody components in the scene. They will not be exported.")), d.push(new Ju()), d.push(new ey()));
28534
+ this.interactive && (d.push(new Yg()), d.push(new Br()), globalThis.true && C.getComponentsInChildren(t, ge).length > 0 && (this.physics ? (h = new Kg(), d.push(h)) : U() && console.warn("USDZExporter: Physics export is disabled, but there are active Rigidbody components in the scene. They will not be exported.")), d.push(new Ju()), d.push(new ey()));
28544
28535
  const u = [c, ...d, ...this.extensions], p = { self: this, exporter: l, extensions: u, object: t };
28545
28536
  he.report("export-usdz", "Invoking before-export"), this.dispatchEvent(new CustomEvent("before-export", { detail: p })), this.applyWebARSessionRoot(), this._previousTimeScale = this.context.time.timeScale, this.context.time.timeScale = 0, he.report("export-usdz", "auto export animations and audio sources");
28546
28537
  const m = new Array();
28547
- this.autoExportAnimations && m.push(...zT(t, c)), this.extensions.find((O) => O.extensionName === "Audio") && this.autoExportAudioSources && m.push(...UT(t)), l.debug = fi, l.pruneUnusedNodes = !VT;
28538
+ this.autoExportAnimations && m.push(...zT(t, c)), this.extensions.find((O) => O.extensionName === "Audio") && this.autoExportAudioSources && m.push(...UT(t)), l.debug = pi, l.pruneUnusedNodes = !VT;
28548
28539
  const y = ao.instance.objs.map((O) => O.batchedMesh);
28549
28540
  l.keepObject = (O) => {
28550
28541
  let R = !0;
28551
28542
  const E = C.getComponent(O, et);
28552
- return E && !E.enabled && (R = !1), R && y.includes(O) && (R = !1), R && C.getComponentInParent(O, Ys) && (R = !1), R && C.getComponentInParent(O, Bn) && (R = !1), fi && !R && console.log("USDZExporter: Discarding object", O), R;
28543
+ return E && !E.enabled && (R = !1), R && y.includes(O) && (R = !1), R && C.getComponentInParent(O, Ys) && (R = !1), R && C.getComponentInParent(O, jn) && (R = !1), pi && !R && console.log("USDZExporter: Discarding object", O), R;
28553
28544
  }, l.beforeWritingDocument = () => {
28554
28545
  if (U() && c && h) {
28555
28546
  const O = c.animatedRoots;
28556
28547
  for (const R of O) {
28557
- const E = C.getComponentsInChildren(R, ye).filter((T) => T.enabled), j = C.getComponents(R, Ri).filter((T) => T.enabled && !T.isTrigger);
28548
+ const E = C.getComponentsInChildren(R, ge).filter((T) => T.enabled), j = C.getComponents(R, Ri).filter((T) => T.enabled && !T.isTrigger);
28558
28549
  (E.length > 0 || j.length > 0) && console.error("An animated object has physics components in its child hierarchy. This can lead to undefined behaviour due to a bug in Apple's QuickLook (FB15925487). Remove the physics components from child objects or verify that you get the expected results.", R);
28559
28550
  }
28560
28551
  }
@@ -28593,7 +28584,7 @@ const Fm = (od = class extends D {
28593
28584
  */
28594
28585
  openInQuickLook(t, e) {
28595
28586
  const i = t instanceof Blob ? URL.createObjectURL(t) : t, s = this.buildQuicklookOverlay();
28596
- fi && console.log("QuickLook Overlay", s);
28587
+ pi && console.log("QuickLook Overlay", s);
28597
28588
  const o = s.callToAction ? encodeURIComponent(s.callToAction) : "", a = s.checkoutTitle ? encodeURIComponent(s.checkoutTitle) : "", l = s.checkoutSubtitle ? encodeURIComponent(s.checkoutSubtitle) : "";
28598
28589
  this.link.href = i + `#callToAction=${o}&checkoutTitle=${a}&checkoutSubtitle=${l}&callToActionURL=${s.callToActionURL}`, this.lastCallback || (this.lastCallback = this.quicklookCallback.bind(this), this.link.addEventListener("message", this.lastCallback)), this.link.download = e + ".usdz", this.link.click();
28599
28590
  }
@@ -28610,13 +28601,13 @@ const Fm = (od = class extends D {
28610
28601
  }
28611
28602
  quicklookCallback(t) {
28612
28603
  if ((t == null ? void 0 : t.data) == "_apple_ar_quicklook_button_tapped") {
28613
- fi && be("Quicklook closed via call to action button");
28604
+ pi && be("Quicklook closed via call to action button");
28614
28605
  var e = new CustomEvent("quicklook-button-tapped", { detail: this });
28615
28606
  if (this.dispatchEvent(e), !e.defaultPrevented) {
28616
28607
  const i = new URLSearchParams(this.link.href);
28617
28608
  if (i) {
28618
28609
  const s = i.get("callToActionURL");
28619
- fi && $e("Quicklook url: " + s), s && (dr() ? globalThis.open(s, "_blank") : console.warn("Quicklook closed: custom redirects require a Needle Engine Pro license: https://needle.tools/pricing", s));
28610
+ pi && $e("Quicklook url: " + s), s && (dr() ? globalThis.open(s, "_blank") : console.warn("Quicklook closed: custom redirects require a Needle Engine Pro license: https://needle.tools/pricing", s));
28620
28611
  }
28621
28612
  }
28622
28613
  }
@@ -28830,14 +28821,14 @@ class ly extends D {
28830
28821
  return this._rigidBody;
28831
28822
  }
28832
28823
  onEnable() {
28833
- this._rigidBody || (this._rigidBody = this.gameObject.getComponent(ye)), this.rigidBody && this.connectedBody && this.startCoroutine(this.create());
28824
+ this._rigidBody || (this._rigidBody = this.gameObject.getComponent(ge)), this.rigidBody && this.connectedBody && this.startCoroutine(this.create());
28834
28825
  }
28835
28826
  *create() {
28836
28827
  yield, this.rigidBody && this.connectedBody && this.activeAndEnabled && this.createJoint(this.rigidBody, this.connectedBody);
28837
28828
  }
28838
28829
  }
28839
28830
  ay([
28840
- f(ye)
28831
+ f(ge)
28841
28832
  ], ly.prototype, "connectedBody", 2);
28842
28833
  class Uw extends ly {
28843
28834
  createJoint(t, e) {
@@ -28870,7 +28861,7 @@ var JT = Object.defineProperty, e2 = Object.getOwnPropertyDescriptor, Zs = (n, t
28870
28861
  function wp(n) {
28871
28862
  return n * Math.PI / 180;
28872
28863
  }
28873
- const Rb = 300, Qn = S("debuglights");
28864
+ const Rb = 300, Xn = S("debuglights");
28874
28865
  class Ai extends D {
28875
28866
  constructor() {
28876
28867
  super(...arguments);
@@ -28943,7 +28934,7 @@ class Ai extends D {
28943
28934
  }
28944
28935
  this.light.intensity = e * s;
28945
28936
  }
28946
- Qn && console.log("Set light intensity to " + this._intensity, e, this);
28937
+ Xn && console.log("Set light intensity to " + this._intensity, e, this);
28947
28938
  }
28948
28939
  get intensity() {
28949
28940
  return this._intensity;
@@ -28992,13 +28983,13 @@ class Ai extends D {
28992
28983
  // this.intensity = this._intensity;
28993
28984
  // }
28994
28985
  awake() {
28995
- this.color = new ae(this.color ?? 16777215), Qn && console.log(this.name, this);
28986
+ this.color = new ae(this.color ?? 16777215), Xn && console.log(this.name, this);
28996
28987
  }
28997
28988
  onEnable() {
28998
- Qn && console.log("ENABLE LIGHT", this.name), this.createLight(), !this.isBaked && (this.light && (this.light.visible = !0, this.light.intensity = this._intensity, Qn && console.log("Set light intensity to " + this.light.intensity, this.name), this.selfIsLight || this.light.parent !== this.gameObject && this.gameObject.add(this.light)), this.type === 1 && this.startCoroutine(this.updateMainLightRoutine(), Ce.LateUpdate));
28989
+ Xn && console.log("ENABLE LIGHT", this.name), this.createLight(), !this.isBaked && (this.light && (this.light.visible = !0, this.light.intensity = this._intensity, Xn && console.log("Set light intensity to " + this.light.intensity, this.name), this.selfIsLight || this.light.parent !== this.gameObject && this.gameObject.add(this.light)), this.type === 1 && this.startCoroutine(this.updateMainLightRoutine(), Ce.LateUpdate));
28999
28990
  }
29000
28991
  onDisable() {
29001
- Qn && console.log("DISABLE LIGHT", this.name), this.light && (this.selfIsLight ? this.light.intensity = 0 : this.light.visible = !1);
28992
+ Xn && console.log("DISABLE LIGHT", this.name), this.light && (this.selfIsLight ? this.light.intensity = 0 : this.light.visible = !1);
29002
28993
  }
29003
28994
  onEnterXR(e) {
29004
28995
  this._webARRoot = C.getComponentInParent(this.gameObject, Co) ?? void 0;
@@ -29024,7 +29015,7 @@ class Ai extends D {
29024
29015
  switch (this.type) {
29025
29016
  case 1:
29026
29017
  const i = new Kp(this.color, this.intensity * Math.PI);
29027
- if (i.position.set(0, 0, -Rb * 0.5).applyQuaternion(this.gameObject.quaternion), this.gameObject.add(i.target), za(i.target, 0, 0, 0), this.light = i, this.gameObject.position.set(0, 0, 0), this.gameObject.rotation.set(0, 0, 0), Qn) {
29018
+ if (i.position.set(0, 0, -Rb * 0.5).applyQuaternion(this.gameObject.quaternion), this.gameObject.add(i.target), za(i.target, 0, 0, 0), this.light = i, this.gameObject.position.set(0, 0, 0), this.gameObject.rotation.set(0, 0, 0), Xn) {
29028
29019
  const l = new TS(this.light, 0.2, this.color);
29029
29020
  this.context.scene.add(l);
29030
29021
  }
@@ -29042,7 +29033,7 @@ class Ai extends D {
29042
29033
  }
29043
29034
  if (this.light) {
29044
29035
  if (this._intensity >= 0 ? this.light.intensity = this._intensity : this._intensity = this.light.intensity, this.shadows !== 0 ? this.light.castShadow = !0 : this.light.castShadow = !1, this.light.shadow) {
29045
- this._shadowResolution !== void 0 && this._shadowResolution > 4 ? (this.light.shadow.mapSize.width = this._shadowResolution, this.light.shadow.mapSize.height = this._shadowResolution) : (this.light.shadow.mapSize.width = 2048, this.light.shadow.mapSize.height = 2048), Qn && console.log("Override shadow bias?", this._overrideShadowBiasSettings, this.shadowBias, this.shadowNormalBias), this.light.shadow.bias = this.shadowBias, this.light.shadow.normalBias = this.shadowNormalBias, this.updateShadowSoftHard();
29036
+ this._shadowResolution !== void 0 && this._shadowResolution > 4 ? (this.light.shadow.mapSize.width = this._shadowResolution, this.light.shadow.mapSize.height = this._shadowResolution) : (this.light.shadow.mapSize.width = 2048, this.light.shadow.mapSize.height = 2048), Xn && console.log("Override shadow bias?", this._overrideShadowBiasSettings, this.shadowBias, this.shadowNormalBias), this.light.shadow.bias = this.shadowBias, this.light.shadow.normalBias = this.shadowNormalBias, this.updateShadowSoftHard();
29046
29037
  const i = this.light.shadow.camera;
29047
29038
  if (i.near = this.shadowNearPlane, this._shadowDistance !== void 0 && typeof this._shadowDistance == "number" ? i.far = this._shadowDistance : i.far = Rb * Math.abs(this.gameObject.scale.z), this.gameObject.scale.set(1, 1, 1), this.shadowWidth !== void 0)
29048
29039
  i.left = -this.shadowWidth / 2, i.right = this.shadowWidth / 2;
@@ -29056,7 +29047,7 @@ class Ai extends D {
29056
29047
  const s = this.gameObject.scale.y;
29057
29048
  i.top *= s, i.bottom *= s;
29058
29049
  }
29059
- this.light.shadow.needsUpdate = !0, Qn && this.context.scene.add(new AS(i));
29050
+ this.light.shadow.needsUpdate = !0, Xn && this.context.scene.add(new AS(i));
29060
29051
  }
29061
29052
  this.isBaked ? this.light.removeFromParent() : e || this.gameObject.add(this.light);
29062
29053
  }
@@ -29315,7 +29306,7 @@ const h2 = S("debugnet"), zm = class extends D {
29315
29306
  return i;
29316
29307
  }
29317
29308
  static IsLocalNetwork(t = window.location.hostname) {
29318
- return li(t);
29309
+ return ci(t);
29319
29310
  }
29320
29311
  };
29321
29312
  let uh = zm;
@@ -29539,7 +29530,7 @@ P([
29539
29530
  f()
29540
29531
  ], q.prototype, "curveMultiplier", 2);
29541
29532
  var rd;
29542
- const gi = (rd = class {
29533
+ const yi = (rd = class {
29543
29534
  constructor() {
29544
29535
  r(this, "mode", 0);
29545
29536
  r(this, "color");
@@ -29550,11 +29541,11 @@ const gi = (rd = class {
29550
29541
  r(this, "gradientMax");
29551
29542
  }
29552
29543
  static constant(n) {
29553
- const t = new gi();
29544
+ const t = new yi();
29554
29545
  return t.constant(n), t;
29555
29546
  }
29556
29547
  static betweenTwoColors(n, t) {
29557
- const e = new gi();
29548
+ const e = new yi();
29558
29549
  return e.betweenTwoColors(n, t), e;
29559
29550
  }
29560
29551
  constant(n) {
@@ -29571,39 +29562,39 @@ const gi = (rd = class {
29571
29562
  return this.color;
29572
29563
  case 1:
29573
29564
  case "Gradient":
29574
- return this.gradient.evaluate(n, gi._temp), gi._temp;
29565
+ return this.gradient.evaluate(n, yi._temp), yi._temp;
29575
29566
  case 2:
29576
29567
  case "TwoColors":
29577
- return gi._temp.lerpColors(this.colorMin, this.colorMax, e);
29568
+ return yi._temp.lerpColors(this.colorMin, this.colorMax, e);
29578
29569
  case 3:
29579
29570
  case "TwoGradients":
29580
- return this.gradientMin.evaluate(n, gi._temp), this.gradientMax.evaluate(n, gi._temp2), gi._temp.lerp(gi._temp2, e);
29571
+ return this.gradientMin.evaluate(n, yi._temp), this.gradientMax.evaluate(n, yi._temp2), yi._temp.lerp(yi._temp2, e);
29581
29572
  }
29582
- return gi._temp.set(16711935), gi._temp.alpha = 1, gi._temp;
29573
+ return yi._temp.set(16711935), yi._temp.alpha = 1, yi._temp;
29583
29574
  }
29584
29575
  }, r(rd, "_temp", new ve(0, 0, 0, 1)), r(rd, "_temp2", new ve(0, 0, 0, 1)), rd);
29585
- let hi = gi;
29576
+ let di = yi;
29586
29577
  P([
29587
29578
  f()
29588
- ], hi.prototype, "mode", 2);
29579
+ ], di.prototype, "mode", 2);
29589
29580
  P([
29590
29581
  f(ve)
29591
- ], hi.prototype, "color", 2);
29582
+ ], di.prototype, "color", 2);
29592
29583
  P([
29593
29584
  f(ve)
29594
- ], hi.prototype, "colorMin", 2);
29585
+ ], di.prototype, "colorMin", 2);
29595
29586
  P([
29596
29587
  f(ve)
29597
- ], hi.prototype, "colorMax", 2);
29588
+ ], di.prototype, "colorMax", 2);
29598
29589
  P([
29599
29590
  f(Ur)
29600
- ], hi.prototype, "gradient", 2);
29591
+ ], di.prototype, "gradient", 2);
29601
29592
  P([
29602
29593
  f(Ur)
29603
- ], hi.prototype, "gradientMin", 2);
29594
+ ], di.prototype, "gradientMin", 2);
29604
29595
  P([
29605
29596
  f(Ur)
29606
- ], hi.prototype, "gradientMax", 2);
29597
+ ], di.prototype, "gradientMax", 2);
29607
29598
  var Nm = /* @__PURE__ */ ((n) => (n[n.Hierarchy = 0] = "Hierarchy", n[n.Local = 1] = "Local", n[n.Shape = 2] = "Shape", n))(Nm || {});
29608
29599
  class Ut {
29609
29600
  constructor() {
@@ -29655,7 +29646,7 @@ P([
29655
29646
  f(q)
29656
29647
  ], Ut.prototype, "gravityModifier", 2);
29657
29648
  P([
29658
- f(hi)
29649
+ f(di)
29659
29650
  ], Ut.prototype, "startColor", 2);
29660
29651
  P([
29661
29652
  f(q)
@@ -29730,7 +29721,7 @@ class eu {
29730
29721
  return e;
29731
29722
  }
29732
29723
  }
29733
- class Wn {
29724
+ class $n {
29734
29725
  constructor() {
29735
29726
  r(this, "enabled");
29736
29727
  r(this, "bursts");
@@ -29761,22 +29752,22 @@ class Wn {
29761
29752
  }
29762
29753
  P([
29763
29754
  f()
29764
- ], Wn.prototype, "enabled", 2);
29755
+ ], $n.prototype, "enabled", 2);
29765
29756
  P([
29766
29757
  f()
29767
- ], Wn.prototype, "bursts", 2);
29758
+ ], $n.prototype, "bursts", 2);
29768
29759
  P([
29769
29760
  f(q)
29770
- ], Wn.prototype, "rateOverTime", 2);
29761
+ ], $n.prototype, "rateOverTime", 2);
29771
29762
  P([
29772
29763
  f()
29773
- ], Wn.prototype, "rateOverTimeMultiplier", 2);
29764
+ ], $n.prototype, "rateOverTimeMultiplier", 2);
29774
29765
  P([
29775
29766
  f(q)
29776
- ], Wn.prototype, "rateOverDistance", 2);
29767
+ ], $n.prototype, "rateOverDistance", 2);
29777
29768
  P([
29778
29769
  f()
29779
- ], Wn.prototype, "rateOverDistanceMultiplier", 2);
29770
+ ], $n.prototype, "rateOverDistanceMultiplier", 2);
29780
29771
  class rf {
29781
29772
  constructor() {
29782
29773
  r(this, "enabled");
@@ -29784,7 +29775,7 @@ class rf {
29784
29775
  }
29785
29776
  }
29786
29777
  P([
29787
- f(hi)
29778
+ f(di)
29788
29779
  ], rf.prototype, "color", 2);
29789
29780
  class Nr {
29790
29781
  constructor() {
@@ -30264,10 +30255,10 @@ P([
30264
30255
  f()
30265
30256
  ], He.prototype, "attachRibbonToTransform", 2);
30266
30257
  P([
30267
- f(hi)
30258
+ f(di)
30268
30259
  ], He.prototype, "colorOverLifetime", 2);
30269
30260
  P([
30270
- f(hi)
30261
+ f(di)
30271
30262
  ], He.prototype, "colorOverTrail", 2);
30272
30263
  P([
30273
30264
  f()
@@ -30728,7 +30719,7 @@ P([
30728
30719
  P([
30729
30720
  f()
30730
30721
  ], $r.prototype, "mode", 2);
30731
- class di {
30722
+ class ui {
30732
30723
  constructor() {
30733
30724
  r(this, "enabled");
30734
30725
  r(this, "range");
@@ -30749,37 +30740,37 @@ class di {
30749
30740
  }
30750
30741
  P([
30751
30742
  f()
30752
- ], di.prototype, "enabled", 2);
30743
+ ], ui.prototype, "enabled", 2);
30753
30744
  P([
30754
30745
  f(oe)
30755
- ], di.prototype, "range", 2);
30746
+ ], ui.prototype, "range", 2);
30756
30747
  P([
30757
30748
  f()
30758
- ], di.prototype, "separateAxes", 2);
30749
+ ], ui.prototype, "separateAxes", 2);
30759
30750
  P([
30760
30751
  f(q)
30761
- ], di.prototype, "size", 2);
30752
+ ], ui.prototype, "size", 2);
30762
30753
  P([
30763
30754
  f()
30764
- ], di.prototype, "sizeMultiplier", 2);
30755
+ ], ui.prototype, "sizeMultiplier", 2);
30765
30756
  P([
30766
30757
  f(q)
30767
- ], di.prototype, "x", 2);
30758
+ ], ui.prototype, "x", 2);
30768
30759
  P([
30769
30760
  f()
30770
- ], di.prototype, "xMultiplier", 2);
30761
+ ], ui.prototype, "xMultiplier", 2);
30771
30762
  P([
30772
30763
  f(q)
30773
- ], di.prototype, "y", 2);
30764
+ ], ui.prototype, "y", 2);
30774
30765
  P([
30775
30766
  f()
30776
- ], di.prototype, "yMultiplier", 2);
30767
+ ], ui.prototype, "yMultiplier", 2);
30777
30768
  P([
30778
30769
  f(q)
30779
- ], di.prototype, "z", 2);
30770
+ ], ui.prototype, "z", 2);
30780
30771
  P([
30781
30772
  f()
30782
- ], di.prototype, "zMultiplier", 2);
30773
+ ], ui.prototype, "zMultiplier", 2);
30783
30774
  class hl {
30784
30775
  constructor() {
30785
30776
  r(this, "enabled");
@@ -30798,7 +30789,7 @@ P([
30798
30789
  f(oe)
30799
30790
  ], hl.prototype, "range", 2);
30800
30791
  P([
30801
- f(hi)
30792
+ f(di)
30802
30793
  ], hl.prototype, "color", 2);
30803
30794
  new v(1, 1, 1);
30804
30795
  new v(0, 0, 1);
@@ -31629,7 +31620,7 @@ Ge([
31629
31620
  f(Ut)
31630
31621
  ], ut.prototype, "main", 2);
31631
31622
  Ge([
31632
- f(Wn)
31623
+ f($n)
31633
31624
  ], ut.prototype, "emission", 2);
31634
31625
  Ge([
31635
31626
  f(Nr)
@@ -31665,7 +31656,7 @@ Ge([
31665
31656
  f(ns)
31666
31657
  ], ut.prototype, "rotationBySpeed", 2);
31667
31658
  Ge([
31668
- f(di)
31659
+ f(ui)
31669
31660
  ], ut.prototype, "sizeBySpeed", 2);
31670
31661
  class tu {
31671
31662
  constructor() {
@@ -32043,7 +32034,7 @@ const Hw = (Wp = class extends dt {
32043
32034
  }, this.threshold.onValueChanged = (e) => {
32044
32035
  t.luminanceMaterial.threshold = Math.pow(e, 2.2);
32045
32036
  }, this.scatter.onValueChanged = (e) => {
32046
- t.luminancePass.enabled = !0, t.luminanceMaterial.smoothing = e, t.mipmapBlurPass && (t.mipmapBlurPass.radius = On.lerp(0.1, 0.9, e));
32037
+ t.luminancePass.enabled = !0, t.luminanceMaterial.smoothing = e, t.mipmapBlurPass && (t.mipmapBlurPass.radius = Pn.lerp(0.1, 0.9, e));
32047
32038
  }, t;
32048
32039
  }
32049
32040
  }, /** Whether to use selective bloom by default */
@@ -32371,7 +32362,7 @@ class Eo extends dt {
32371
32362
  return "ScreenSpaceAmbientOcclusion";
32372
32363
  }
32373
32364
  onBeforeRender() {
32374
- if (this._ssao && this.context.mainCamera instanceof ge) {
32365
+ if (this._ssao && this.context.mainCamera instanceof ye) {
32375
32366
  const e = this.context.mainCamera.far - this.context.mainCamera.near;
32376
32367
  this._ssao.ssaoMaterial.worldDistanceFalloff = e * 0.01, this._ssao.ssaoMaterial.worldDistanceThreshold = this.context.mainCamera.far;
32377
32368
  }
@@ -32604,7 +32595,7 @@ var bA = Object.defineProperty, vA = Object.getOwnPropertyDescriptor, ul = (n, t
32604
32595
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
32605
32596
  return i && s && bA(t, e, s), s;
32606
32597
  };
32607
- class Vn extends dt {
32598
+ class Wn extends dt {
32608
32599
  constructor() {
32609
32600
  super(...arguments);
32610
32601
  r(this, "offset", new N(0));
@@ -32633,23 +32624,23 @@ class Vn extends dt {
32633
32624
  }
32634
32625
  ul([
32635
32626
  f(N)
32636
- ], Vn.prototype, "offset", 2);
32627
+ ], Wn.prototype, "offset", 2);
32637
32628
  ul([
32638
32629
  f(N)
32639
- ], Vn.prototype, "rotation", 2);
32630
+ ], Wn.prototype, "rotation", 2);
32640
32631
  ul([
32641
32632
  f(N)
32642
- ], Vn.prototype, "focusArea", 2);
32633
+ ], Wn.prototype, "focusArea", 2);
32643
32634
  ul([
32644
32635
  f(N)
32645
- ], Vn.prototype, "feather", 2);
32636
+ ], Wn.prototype, "feather", 2);
32646
32637
  ul([
32647
32638
  f(N)
32648
- ], Vn.prototype, "kernelSize", 2);
32639
+ ], Wn.prototype, "kernelSize", 2);
32649
32640
  ul([
32650
32641
  f(N)
32651
- ], Vn.prototype, "resolutionScale", 2);
32652
- xs("TiltShiftEffect", Vn);
32642
+ ], Wn.prototype, "resolutionScale", 2);
32643
+ xs("TiltShiftEffect", Wn);
32653
32644
  var wA = Object.defineProperty, xA = Object.getOwnPropertyDescriptor, py = (n, t, e, i) => {
32654
32645
  for (var s = i > 1 ? void 0 : i ? xA(t, e) : t, o = n.length - 1, a; o >= 0; o--)
32655
32646
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
@@ -32692,7 +32683,7 @@ py([
32692
32683
  ], fl.prototype, "center", 2);
32693
32684
  xs("Vignette", fl);
32694
32685
  globalThis.true = globalThis.true !== void 0 ? globalThis.true : !0;
32695
- const Yn = S("debugpost"), Mp = Symbol("needle:postprocessing-handler"), Rp = Symbol("needle:previous-autoclear-state");
32686
+ const Qn = S("debugpost"), Mp = Symbol("needle:postprocessing-handler"), Rp = Symbol("needle:previous-autoclear-state");
32696
32687
  class my {
32697
32688
  constructor(t) {
32698
32689
  r(this, "_composer", null);
@@ -32710,14 +32701,14 @@ class my {
32710
32701
  }
32711
32702
  apply(t) {
32712
32703
  if ("env" in import.meta && {}.VITE_NEEDLE_USE_POSTPROCESSING === "false") {
32713
- Yn ? console.warn("Postprocessing is disabled via vite env setting") : console.debug("Postprocessing is disabled via vite env setting");
32704
+ Qn ? console.warn("Postprocessing is disabled via vite env setting") : console.debug("Postprocessing is disabled via vite env setting");
32714
32705
  return;
32715
32706
  }
32716
32707
  this._isActive = !0, this.onApply(this.context, t);
32717
32708
  }
32718
32709
  unapply() {
32719
32710
  var i;
32720
- if (Yn && console.log("Unapplying postprocessing effects"), this._isActive = !1, this._lastVolumeComponents) {
32711
+ if (Qn && console.log("Unapplying postprocessing effects"), this._isActive = !1, this._lastVolumeComponents) {
32721
32712
  for (const s of this._lastVolumeComponents)
32722
32713
  s.unapply();
32723
32714
  this._lastVolumeComponents.length = 0;
@@ -32738,7 +32729,7 @@ class my {
32738
32729
  B.POSTPROCESSING.load(),
32739
32730
  B.POSTPROCESSING_AO.load()
32740
32731
  // import("./Effects/Sharpening.effect")
32741
- ]), t[Mp] = this, Yn && console.log("Apply Postprocessing Effects", e), this._lastVolumeComponents = [...e], this._effects.length = 0;
32732
+ ]), t[Mp] = this, Qn && console.log("Apply Postprocessing Effects", e), this._lastVolumeComponents = [...e], this._effects.length = 0;
32742
32733
  const i = {
32743
32734
  handler: this,
32744
32735
  components: this._lastVolumeComponents
@@ -32802,11 +32793,11 @@ class my {
32802
32793
  } catch (d) {
32803
32794
  console.error("Error while applying postprocessing effects", d), c.removeAllPasses();
32804
32795
  }
32805
- Yn && console.log("PostProcessing Passes", e, "->", c.passes);
32796
+ Qn && console.log("PostProcessing Passes", e, "->", c.passes);
32806
32797
  }
32807
32798
  orderEffects() {
32808
32799
  var e;
32809
- Yn && console.log("Before ordering effects", [...this._effects]), kp ?? (kp = [
32800
+ Qn && console.log("Before ordering effects", [...this._effects]), kp ?? (kp = [
32810
32801
  B.POSTPROCESSING.MODULE.NormalPass,
32811
32802
  B.POSTPROCESSING.MODULE.DepthDownsamplingPass,
32812
32803
  B.POSTPROCESSING.MODULE.SMAAEffect,
@@ -32827,8 +32818,8 @@ class my {
32827
32818
  const t = this._effects;
32828
32819
  t.sort((i, s) => {
32829
32820
  const o = kp.findIndex((l) => i.constructor.name.endsWith(l.name)), a = kp.findIndex((l) => s.constructor.name.endsWith(l.name));
32830
- return o < 0 ? (Yn && console.warn("Unknown effect found: ", i.constructor.name), -1) : a < 0 ? (Yn && console.warn("Unknown effect found: ", s.constructor.name), 1) : o < 0 ? 1 : a < 0 ? -1 : o - a;
32831
- }), Yn && console.log("After ordering effects", [...this._effects]);
32821
+ return o < 0 ? (Qn && console.warn("Unknown effect found: ", i.constructor.name), -1) : a < 0 ? (Qn && console.warn("Unknown effect found: ", s.constructor.name), 1) : o < 0 ? 1 : a < 0 ? -1 : o - a;
32822
+ }), Qn && console.log("After ordering effects", [...this._effects]);
32832
32823
  for (let i = 0; i < t.length; i++) {
32833
32824
  const s = t[i];
32834
32825
  if (((e = s == null ? void 0 : s.configuration) == null ? void 0 : e.gammaCorrection) !== void 0) {
@@ -33005,9 +32996,9 @@ var OA = Object.defineProperty, MA = Object.getOwnPropertyDescriptor, $t = (n, t
33005
32996
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
33006
32997
  return i && s && OA(t, e, s), s;
33007
32998
  };
33008
- const ni = S("debugsceneswitcher"), RA = S("sceneswitcher:clearscene"), Od = "scene";
32999
+ const oi = S("debugsceneswitcher"), RA = S("sceneswitcher:clearscene"), Od = "scene";
33009
33000
  gy(Od);
33010
- const Kn = Promise.resolve(!1);
33001
+ const Yn = Promise.resolve(!1);
33011
33002
  class Ct extends D {
33012
33003
  constructor() {
33013
33004
  super(...arguments);
@@ -33043,7 +33034,7 @@ class Ct extends D {
33043
33034
  const o = e == null ? void 0 : e.state;
33044
33035
  if (o && o.startsWith(this.guid)) {
33045
33036
  const a = o.substr(this.guid.length + 2);
33046
- ni && console.log("PopState", a), await this.trySelectSceneFromValue(a);
33037
+ oi && console.log("PopState", a), await this.trySelectSceneFromValue(a);
33047
33038
  }
33048
33039
  }
33049
33040
  } finally {
@@ -33121,7 +33112,7 @@ class Ct extends D {
33121
33112
  this.scenes === void 0 && (this.scenes = []);
33122
33113
  for (const e of this.scenes)
33123
33114
  e && !e.hasUrl && e.asset instanceof L && e.asset.removeFromParent();
33124
- ni && console.log("SceneSwitcher", this);
33115
+ oi && console.log("SceneSwitcher", this);
33125
33116
  }
33126
33117
  /** @internal */
33127
33118
  async onEnable() {
@@ -33208,7 +33199,7 @@ class Ct extends D {
33208
33199
  */
33209
33200
  select(e) {
33210
33201
  var s, o, a;
33211
- if (ni && console.log("select", e), typeof e == "object" && console.warn('Switching to "' + e + '" might not work. Please either use an index or a AssetReference (not a scene reference)'), typeof e == "string") {
33202
+ if (oi && console.log("select", e), typeof e == "object" && console.warn('Switching to "' + e + '" might not work. Please either use an index or a AssetReference (not a scene reference)'), typeof e == "string") {
33212
33203
  const l = (s = this.scenes) == null ? void 0 : s.find((c) => c.url === e);
33213
33204
  if (!l) {
33214
33205
  const c = re.getOrCreate(this.sourceId ?? "", e, this.context);
@@ -33217,17 +33208,17 @@ class Ct extends D {
33217
33208
  if (l)
33218
33209
  e = (o = this.scenes) == null ? void 0 : o.indexOf(l);
33219
33210
  else
33220
- return Kn;
33211
+ return Yn;
33221
33212
  }
33222
33213
  if (!((a = this.scenes) != null && a.length))
33223
- return Kn;
33214
+ return Yn;
33224
33215
  if (e < 0) {
33225
33216
  if (this.clamp)
33226
- return Kn;
33217
+ return Yn;
33227
33218
  e = this.scenes.length - 1;
33228
33219
  } else if (e >= this.scenes.length) {
33229
33220
  if (this.clamp)
33230
- return Kn;
33221
+ return Yn;
33231
33222
  e = 0;
33232
33223
  }
33233
33224
  const i = this.scenes[e];
@@ -33273,7 +33264,7 @@ class Ct extends D {
33273
33264
  async __unloadCurrentScene() {
33274
33265
  const e = this._currentScene;
33275
33266
  if (this._currentScene = void 0, e) {
33276
- ni && console.log("UNLOAD", e.url, "HasURL?: " + e.hasUrl);
33267
+ oi && console.log("UNLOAD", e.url, "HasURL?: " + e.hasUrl);
33277
33268
  const i = this.tryGetSceneEventListener(e.asset);
33278
33269
  if (i != null && i.sceneClosing) {
33279
33270
  const s = i.sceneClosing();
@@ -33295,11 +33286,11 @@ class Ct extends D {
33295
33286
  }).catch(console.error), await this.onEndLoading();
33296
33287
  const h = new CustomEvent("loadscene-finished", { detail: { scene: e, switcher: this, index: i } });
33297
33288
  if (this.dispatchEvent(h), this._currentLoadingProgress = void 0, this._currentlyLoadingScene = void 0, h.defaultPrevented)
33298
- return ni && console.warn("Adding loaded scene prevented:", e, h), !1;
33289
+ return oi && console.warn("Adding loaded scene prevented:", e, h), !1;
33299
33290
  if (!e.asset)
33300
- return ni && console.warn("Failed loading scene:", e), !1;
33291
+ return oi && console.warn("Failed loading scene:", e), !1;
33301
33292
  if (this._currentIndex === i) {
33302
- if (ni && console.log("ADD", e.url), this._currentScene = e, RA) {
33293
+ if (oi && console.log("ADD", e.url), this._currentScene = e, RA) {
33303
33294
  const p = ((o = this.context.mainCameraComponent) == null ? void 0 : o.gameObject) || this.context.mainCamera;
33304
33295
  p == null || p.removeFromParent();
33305
33296
  const m = this.gameObject.removeFromParent();
@@ -33307,7 +33298,7 @@ class Ct extends D {
33307
33298
  }
33308
33299
  if (C.add(e.asset, this.gameObject), this.useSceneLighting && this.context.sceneLighting.enable(e), this.useSceneBackground) {
33309
33300
  const p = this.context.lightmaps.tryGetSkybox(e.url);
33310
- p ? (p.mapping = Rn, this.context.scene.background = p) : ni && console.warn("SceneSwitcher: Can't find skybox for scene " + e.url);
33301
+ p ? (p.mapping = Mn, this.context.scene.background = p) : oi && console.warn("SceneSwitcher: Can't find skybox for scene " + e.url);
33311
33302
  }
33312
33303
  if (this.useHistory && i >= 0) {
33313
33304
  let p = i.toString();
@@ -33337,14 +33328,14 @@ class Ct extends D {
33337
33328
  if (i instanceof re)
33338
33329
  return i.preload();
33339
33330
  }
33340
- return Kn;
33331
+ return Yn;
33341
33332
  }
33342
33333
  tryLoadFromQueryParam() {
33343
33334
  var i;
33344
33335
  if (!((i = this.queryParameterName) != null && i.length))
33345
- return Kn;
33336
+ return Yn;
33346
33337
  const e = S(this.queryParameterName);
33347
- return typeof e == "boolean" ? Kn : this.trySelectSceneFromValue(e);
33338
+ return typeof e == "boolean" ? Yn : this.trySelectSceneFromValue(e);
33348
33339
  }
33349
33340
  /** try to select a scene from a string or index */
33350
33341
  trySelectSceneFromValue(e) {
@@ -33362,12 +33353,12 @@ class Ct extends D {
33362
33353
  }
33363
33354
  } else if (typeof e == "number" && e >= 0 && e < this.scenes.length)
33364
33355
  return this.select(e);
33365
- return li() && console.warn('Can not find scene: "' + e + '"', this), Kn;
33356
+ return ci() && console.warn('Can not find scene: "' + e + '"', this), Yn;
33366
33357
  }
33367
33358
  async onStartLoading() {
33368
33359
  var e, i;
33369
33360
  if (this._isCurrentlyLoading = !0, this.loadingScene && (this._lastLoadingScene !== this.loadingScene && (this._loadingScenePromise = void 0), this._lastLoadingScene = this.loadingScene, this._loadingScenePromise || (this._loadingScenePromise = (e = this.loadingScene) == null ? void 0 : e.loadAssetAsync()), await this._loadingScenePromise, this._isCurrentlyLoading && ((i = this.loadingScene) != null && i.asset))) {
33370
- ni && console.log("Add loading scene", this.loadingScene.url, this.loadingScene.asset);
33361
+ oi && console.log("Add loading scene", this.loadingScene.url, this.loadingScene.asset);
33371
33362
  const s = this.loadingScene.asset;
33372
33363
  C.add(s, this.gameObject);
33373
33364
  const o = this.tryGetSceneEventListener(s);
@@ -33387,7 +33378,7 @@ class Ct extends D {
33387
33378
  async onEndLoading() {
33388
33379
  var e;
33389
33380
  if (this._isCurrentlyLoading = !1, (e = this.loadingScene) != null && e.asset) {
33390
- ni && console.log("Remove loading scene", this.loadingScene.url);
33381
+ oi && console.log("Remove loading scene", this.loadingScene.url);
33391
33382
  const i = this.loadingScene.asset, s = this.tryGetSceneEventListener(i);
33392
33383
  if (typeof (s == null ? void 0 : s.sceneClosing) == "function") {
33393
33384
  const o = s.sceneClosing();
@@ -33486,10 +33477,10 @@ class kA {
33486
33477
  begin() {
33487
33478
  if (this._isRunning)
33488
33479
  return;
33489
- ni && console.log("Preload begin"), this._isRunning = !0;
33480
+ oi && console.log("Preload begin"), this._isRunning = !0;
33490
33481
  let t = -1, e, i;
33491
33482
  const s = this._switcher.scenes, o = setInterval(() => {
33492
- if (this.allLoaded() && (ni && console.log("All scenes loaded"), this.stop()), !this._isRunning) {
33483
+ if (this.allLoaded() && (oi && console.log("All scenes loaded"), this.stop()), !this._isRunning) {
33493
33484
  clearInterval(o);
33494
33485
  return;
33495
33486
  }
@@ -33531,7 +33522,7 @@ class TA {
33531
33522
  this.index = t, this.asset = e, this.tasks = i, i.push(this), this.awaitLoading();
33532
33523
  }
33533
33524
  async awaitLoading() {
33534
- this.asset && !this.asset.isLoaded() && (ni && console.log("Preload start: " + this.asset.url, this.index), await this.asset.preload(), ni && console.log("Preload finished: " + this.asset.url, this.index));
33525
+ this.asset && !this.asset.isLoaded() && (oi && console.log("Preload start: " + this.asset.url, this.index), await this.asset.preload(), oi && console.log("Preload finished: " + this.asset.url, this.index));
33535
33526
  const t = this.tasks.indexOf(this);
33536
33527
  t >= 0 && this.tasks.splice(t, 1);
33537
33528
  }
@@ -34276,12 +34267,12 @@ class qr extends D {
34276
34267
  /** @internal */
34277
34268
  onEnable() {
34278
34269
  var e, i, s;
34279
- (e = this._net) == null || e.enable(), (i = this._net) == null || i.addEventListener(Cn.StreamReceived, this.onReceiveStream), (s = this._net) == null || s.addEventListener(Cn.StreamEnded, this.onCallEnded), this.context.connection.beginListen(se.JoinedRoom, this.onJoinedRoom), this.autoConnect && Gs(1e3).then(() => (this.enabled && this.autoConnect && !this.isReceiving && !this.isSending && this.context.connection.isInRoom && this.share(), 0));
34270
+ (e = this._net) == null || e.enable(), (i = this._net) == null || i.addEventListener(Sn.StreamReceived, this.onReceiveStream), (s = this._net) == null || s.addEventListener(Sn.StreamEnded, this.onCallEnded), this.context.connection.beginListen(se.JoinedRoom, this.onJoinedRoom), this.autoConnect && Gs(1e3).then(() => (this.enabled && this.autoConnect && !this.isReceiving && !this.isSending && this.context.connection.isInRoom && this.share(), 0));
34280
34271
  }
34281
34272
  /** @internal */
34282
34273
  onDisable() {
34283
34274
  var e, i, s;
34284
- (e = this._net) == null || e.removeEventListener(Cn.StreamReceived, this.onReceiveStream), (i = this._net) == null || i.removeEventListener(Cn.StreamEnded, this.onCallEnded), this.context.connection.stopListen(se.JoinedRoom, this.onJoinedRoom), (s = this._net) == null || s.disable(), this.close();
34275
+ (e = this._net) == null || e.removeEventListener(Sn.StreamReceived, this.onReceiveStream), (i = this._net) == null || i.removeEventListener(Sn.StreamEnded, this.onCallEnded), this.context.connection.stopListen(se.JoinedRoom, this.onJoinedRoom), (s = this._net) == null || s.disable(), this.close();
34285
34276
  }
34286
34277
  _ensureVideoPlayer() {
34287
34278
  const e = new wt();
@@ -34324,7 +34315,7 @@ class qr extends D {
34324
34315
  c,
34325
34316
  1
34326
34317
  /* Sending */
34327
- ) : Pn(c);
34318
+ ) : Cn(c);
34328
34319
  }
34329
34320
  break;
34330
34321
  case "Canvas":
@@ -34347,7 +34338,7 @@ class qr extends D {
34347
34338
  c,
34348
34339
  1
34349
34340
  /* Sending */
34350
- ) : Pn(c);
34341
+ ) : Cn(c);
34351
34342
  }
34352
34343
  break;
34353
34344
  default:
@@ -34363,7 +34354,7 @@ class qr extends D {
34363
34354
  }
34364
34355
  close() {
34365
34356
  var e;
34366
- this._requestOpen = !1, this._currentStream && (Pt && console.warn("Close current stream / disposing resources, stream was active?", this._currentStream.active), (e = this._net) == null || e.stopSendingStream(this._currentStream), Pn(this._currentStream), this._currentMode = 0, this._currentStream = null);
34357
+ this._requestOpen = !1, this._currentStream && (Pt && console.warn("Close current stream / disposing resources, stream was active?", this._currentStream.active), (e = this._net) == null || e.stopSendingStream(this._currentStream), Cn(this._currentStream), this._currentMode = 0, this._currentStream = null);
34367
34358
  }
34368
34359
  setStream(e, i) {
34369
34360
  var a, l, c;
@@ -34424,7 +34415,7 @@ class qr extends D {
34424
34415
  h,
34425
34416
  1
34426
34417
  /* Sending */
34427
- ), Pt && console.log("Selected camera", a)) : (Pn(h), Pt && console.log("Camera selection cancelled"));
34418
+ ), Pt && console.log("Selected camera", a)) : (Cn(h), Pt && console.log("Camera selection cancelled"));
34428
34419
  break;
34429
34420
  } catch (l) {
34430
34421
  if (l.message === "Failed to allocate videosource" || l.message === "Could not start video source") {
@@ -34473,7 +34464,7 @@ class pf extends D {
34473
34464
  else {
34474
34465
  const e = Tr.createPrimitive($a.Quad, {
34475
34466
  name: "ShadowCatcher",
34476
- material: new ri({
34467
+ material: new ai({
34477
34468
  // HACK heuristic to get approx. the same colors out as with the current default ShadowCatcher material
34478
34469
  // not clear why this is needed; assumption is that the Renderer component does something we're not respecting here
34479
34470
  color: 10066329,
@@ -34568,7 +34559,7 @@ const Ni = S("debugskybox");
34568
34559
  gy("skybox-image");
34569
34560
  gy("environment-image");
34570
34561
  function Fb(n, t, e, i, s) {
34571
- const o = new Ln();
34562
+ const o = new Dn();
34572
34563
  o.allowDrop = !1, o.allowNetworking = !1, o.background = e, o.environment = i, C.addComponent(n.scene, o);
34573
34564
  const a = (l) => {
34574
34565
  typeof l == "string" && (Ni && console.log(s, "CHANGED TO", l), o.setSkybox(l));
@@ -34611,7 +34602,7 @@ function HA(n, t) {
34611
34602
  }
34612
34603
  t.then((i) => iv(i, !1)), e.push({ src: n, texture: t });
34613
34604
  }
34614
- class Ln extends D {
34605
+ class Dn extends D {
34615
34606
  constructor() {
34616
34607
  super(...arguments);
34617
34608
  r(this, "url");
@@ -34758,21 +34749,21 @@ class Ln extends D {
34758
34749
  }
34759
34750
  }
34760
34751
  mh([
34761
- Fw(Ln.prototype.urlChangedSyncField),
34752
+ Fw(Dn.prototype.urlChangedSyncField),
34762
34753
  f(URL)
34763
- ], Ln.prototype, "url", 2);
34754
+ ], Dn.prototype, "url", 2);
34764
34755
  mh([
34765
34756
  f()
34766
- ], Ln.prototype, "allowDrop", 2);
34757
+ ], Dn.prototype, "allowDrop", 2);
34767
34758
  mh([
34768
34759
  f()
34769
- ], Ln.prototype, "background", 2);
34760
+ ], Dn.prototype, "background", 2);
34770
34761
  mh([
34771
34762
  f()
34772
- ], Ln.prototype, "environment", 2);
34763
+ ], Dn.prototype, "environment", 2);
34773
34764
  mh([
34774
34765
  f()
34775
- ], Ln.prototype, "allowNetworking", 2);
34766
+ ], Dn.prototype, "allowNetworking", 2);
34776
34767
  function GA(n, t, e) {
34777
34768
  const i = t && !e;
34778
34769
  switch (n == null ? void 0 : n.toLowerCase()) {
@@ -34846,7 +34837,7 @@ const uc = S("debugspatialtrigger"), Ub = new vo(), Nb = new vo();
34846
34837
  function KA(n, t) {
34847
34838
  return Ub.mask = n, Nb.mask = t, Ub.test(Nb);
34848
34839
  }
34849
- class An extends D {
34840
+ class Tn extends D {
34850
34841
  constructor() {
34851
34842
  super(...arguments);
34852
34843
  r(this, "triggerMask", 0);
@@ -34886,16 +34877,16 @@ class An extends D {
34886
34877
  }
34887
34878
  gh([
34888
34879
  f()
34889
- ], An.prototype, "triggerMask", 2);
34880
+ ], Tn.prototype, "triggerMask", 2);
34890
34881
  gh([
34891
34882
  f(Me)
34892
- ], An.prototype, "onEnter", 2);
34883
+ ], Tn.prototype, "onEnter", 2);
34893
34884
  gh([
34894
34885
  f(Me)
34895
- ], An.prototype, "onStay", 2);
34886
+ ], Tn.prototype, "onStay", 2);
34896
34887
  gh([
34897
34888
  f(Me)
34898
- ], An.prototype, "onExit", 2);
34889
+ ], Tn.prototype, "onExit", 2);
34899
34890
  var Hp;
34900
34891
  const Md = (Hp = class extends D {
34901
34892
  constructor() {
@@ -34919,17 +34910,17 @@ const Md = (Hp = class extends D {
34919
34910
  // private args: SpatialTriggerEventArgs = new SpatialTriggerEventArgs();
34920
34911
  raiseOnEnterEvent(t) {
34921
34912
  C.foreachComponent(this.gameObject, (e) => {
34922
- e !== t && e instanceof An && e.onEnterTrigger(this);
34913
+ e !== t && e instanceof Tn && e.onEnterTrigger(this);
34923
34914
  }, !1);
34924
34915
  }
34925
34916
  raiseOnStayEvent(t) {
34926
34917
  C.foreachComponent(this.gameObject, (e) => {
34927
- e !== t && e instanceof An && e.onStayTrigger(this);
34918
+ e !== t && e instanceof Tn && e.onStayTrigger(this);
34928
34919
  }, !1);
34929
34920
  }
34930
34921
  raiseOnExitEvent(t) {
34931
34922
  C.foreachComponent(this.gameObject, (e) => {
34932
- e !== t && e instanceof An && e.onExitTrigger(this);
34923
+ e !== t && e instanceof Tn && e.onExitTrigger(this);
34933
34924
  }, !1);
34934
34925
  }
34935
34926
  }, r(Hp, "triggers", []), Hp);
@@ -35174,7 +35165,7 @@ class sE {
35174
35165
  });
35175
35166
  }
35176
35167
  trySelectObject() {
35177
- const t = new En();
35168
+ const t = new An();
35178
35169
  t.setMask(16777215);
35179
35170
  const e = this.context.physics.raycast(t);
35180
35171
  if (wi && console.log(...e), e != null && e.length)
@@ -35348,7 +35339,7 @@ var aE = Object.defineProperty, lE = Object.getOwnPropertyDescriptor, cE = (n, t
35348
35339
  };
35349
35340
  const su = "SCAM";
35350
35341
  Y0(su, js.getRootAsSyncedCameraModel);
35351
- const pi = new cg();
35342
+ const mi = new cg();
35352
35343
  class hE {
35353
35344
  // dontSave: boolean = true;
35354
35345
  // pos: { x: number, y: number, z: number } = { x: 0, y: 0, z: 0 };
@@ -35360,13 +35351,13 @@ class hE {
35360
35351
  }
35361
35352
  send(t, e) {
35362
35353
  if (t) {
35363
- pi.clear();
35364
- const i = pi.createString(this.guid), s = pi.createString(this.userId);
35365
- js.startSyncedCameraModel(pi), js.addGuid(pi, i), js.addUserId(pi, s);
35354
+ mi.clear();
35355
+ const i = mi.createString(this.guid), s = mi.createString(this.userId);
35356
+ js.startSyncedCameraModel(mi), js.addGuid(mi, i), js.addUserId(mi, s);
35366
35357
  const o = ee(t), a = Ru(t);
35367
- js.addPos(pi, fr.createVec3(pi, o.x, o.y, o.z)), js.addRot(pi, fr.createVec3(pi, a.x, a.y, a.z));
35368
- const l = js.endSyncedCameraModel(pi);
35369
- pi.finish(l, su), e.sendBinary(pi.asUint8Array());
35358
+ js.addPos(mi, fr.createVec3(mi, o.x, o.y, o.z)), js.addRot(mi, fr.createVec3(mi, a.x, a.y, a.z));
35359
+ const l = js.endSyncedCameraModel(mi);
35360
+ mi.finish(l, su), e.sendBinary(mi.asUint8Array());
35370
35361
  }
35371
35362
  }
35372
35363
  }
@@ -36400,7 +36391,7 @@ const Xm = (Xp = class extends D {
36400
36391
  return this._time;
36401
36392
  }
36402
36393
  set time(t) {
36403
- typeof t == "number" && !Number.isNaN(t) ? this._time = t : (ln || li()) && console.error("INVALID TIMELINE.TIME VALUE", t, this.name);
36394
+ typeof t == "number" && !Number.isNaN(t) ? this._time = t : (ln || ci()) && console.error("INVALID TIMELINE.TIME VALUE", t, this.name);
36404
36395
  }
36405
36396
  /** the duration of the timeline */
36406
36397
  get duration() {
@@ -36785,7 +36776,7 @@ class pl extends D {
36785
36776
  r(this, "onControlChangedEvent", (e) => {
36786
36777
  const i = this.orbit;
36787
36778
  if (i && (i.enabled = !e.value), e.value) {
36788
- const s = C.getComponentInParent(this.gameObject, In);
36779
+ const s = C.getComponentInParent(this.gameObject, En);
36789
36780
  s && s.requestOwnership();
36790
36781
  }
36791
36782
  });
@@ -36865,7 +36856,7 @@ class pl extends D {
36865
36856
  (i = (e = this._control) == null ? void 0 : e.getHelper()) == null || i.removeFromParent(), (s = this._control) == null || s.removeEventListener("dragging-changed", this.onControlChangedEvent), window.removeEventListener("keydown", this.windowKeyDownListener), window.removeEventListener("keyup", this.windowKeyUpListener);
36866
36857
  }
36867
36858
  enableSnapping() {
36868
- this._control && (this._control.setTranslationSnap(this.translationSnap), this._control.setRotationSnap(On.degToRad(this.rotationSnapAngle)), this._control.setScaleSnap(this.scaleSnap));
36859
+ this._control && (this._control.setTranslationSnap(this.translationSnap), this._control.setRotationSnap(Pn.degToRad(this.rotationSnapAngle)), this._control.setScaleSnap(this.scaleSnap));
36869
36860
  }
36870
36861
  disableSnapping() {
36871
36862
  this._control && (this._control.setTranslationSnap(null), this._control.setRotationSnap(null), this._control.setScaleSnap(null));
@@ -37152,7 +37143,7 @@ var kE = Object.defineProperty, TE = Object.getOwnPropertyDescriptor, xf = (n, t
37152
37143
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
37153
37144
  return i && s && kE(t, e, s), s;
37154
37145
  };
37155
- const Zn = S("debuginputfield");
37146
+ const Kn = S("debuginputfield");
37156
37147
  var na;
37157
37148
  const Y = (na = class extends D {
37158
37149
  constructor() {
@@ -37172,7 +37163,7 @@ const Y = (na = class extends D {
37172
37163
  return Y.active === this;
37173
37164
  }
37174
37165
  start() {
37175
- Zn && console.log(this.name, this);
37166
+ Kn && console.log(this.name, this);
37176
37167
  }
37177
37168
  onEnable() {
37178
37169
  var t;
@@ -37195,7 +37186,7 @@ const Y = (na = class extends D {
37195
37186
  this.onDeselected();
37196
37187
  }
37197
37188
  onPointerClick(t) {
37198
- Zn && console.log("CLICK", t, Y.active), Y.activeTime = this.context.time.time, Y.active !== this && this.startCoroutine(this.activeLoop(), Ce.LateUpdate), this.selectInputField();
37189
+ Kn && console.log("CLICK", t, Y.active), Y.activeTime = this.context.time.time, Y.active !== this && this.startCoroutine(this.activeLoop(), Ce.LateUpdate), this.selectInputField();
37199
37190
  }
37200
37191
  *activeLoop() {
37201
37192
  for (this.onSelected(); Y.active === this && !(this.context.input.getPointerClicked(0) && this.context.time.time - Y.activeTime > 0.2); )
@@ -37204,8 +37195,8 @@ const Y = (na = class extends D {
37204
37195
  }
37205
37196
  onSelected() {
37206
37197
  var t, e, i, s;
37207
- if (Y.active !== this && (Zn && console.log("Select", this.name, this, Y.htmlField, this.context.isInXR, this.context.arOverlayElement, (t = this.textComponent) == null ? void 0 : t.text, (e = Y.htmlField) == null ? void 0 : e.value), (i = Y.active) == null || i.onDeselected(), Y.active = this, this.placeholder && C.setActive(this.placeholder.gameObject, !1), Y.htmlField)) {
37208
- if (Y.htmlField.value = ((s = this.textComponent) == null ? void 0 : s.text) || "", Zn && console.log("set input field value", Y.htmlField.value), this.context.isInXR) {
37198
+ if (Y.active !== this && (Kn && console.log("Select", this.name, this, Y.htmlField, this.context.isInXR, this.context.arOverlayElement, (t = this.textComponent) == null ? void 0 : t.text, (e = Y.htmlField) == null ? void 0 : e.value), (i = Y.active) == null || i.onDeselected(), Y.active = this, this.placeholder && C.setActive(this.placeholder.gameObject, !1), Y.htmlField)) {
37199
+ if (Y.htmlField.value = ((s = this.textComponent) == null ? void 0 : s.text) || "", Kn && console.log("set input field value", Y.htmlField.value), this.context.isInXR) {
37209
37200
  const o = this.context.arOverlayElement;
37210
37201
  o && o.append(Y.htmlField);
37211
37202
  }
@@ -37214,7 +37205,7 @@ const Y = (na = class extends D {
37214
37205
  }
37215
37206
  onDeselected() {
37216
37207
  var t;
37217
- Y.active === this && (Y.active = null, Zn && console.log("Deselect", this.name, this), Y.htmlField && (Y.htmlField.blur(), document.body.append(Y.htmlField)), this.placeholder && (!this.textComponent || this.textComponent.text.length <= 0) && C.setActive(this.placeholder.gameObject, !0), Y.htmlField && ((t = this.onEndEdit) == null || t.invoke(Y.htmlField.value)));
37208
+ Y.active === this && (Y.active = null, Kn && console.log("Deselect", this.name, this), Y.htmlField && (Y.htmlField.blur(), document.body.append(Y.htmlField)), this.placeholder && (!this.textComponent || this.textComponent.text.length <= 0) && C.setActive(this.placeholder.gameObject, !0), Y.htmlField && ((t = this.onEndEdit) == null || t.invoke(Y.htmlField.value)));
37218
37209
  }
37219
37210
  // @Marwie, I can provide this fix. But the issue seems to comes from Raycaster+EventSystem
37220
37211
  // As we rollout InputField, and no others elements is behind raycast,
@@ -37226,7 +37217,7 @@ const Y = (na = class extends D {
37226
37217
  onInput(t) {
37227
37218
  var e, i;
37228
37219
  if (Y.active === this) {
37229
- if (Zn && console.log(t.code, t, (e = Y.htmlField) == null ? void 0 : e.value, (i = this.textComponent) == null ? void 0 : i.text), t.code === "Escape" || t.code === "Enter") {
37220
+ if (Kn && console.log(t.code, t, (e = Y.htmlField) == null ? void 0 : e.value, (i = this.textComponent) == null ? void 0 : i.text), t.code === "Escape" || t.code === "Enter") {
37230
37221
  this.onDeselected();
37231
37222
  return;
37232
37223
  }
@@ -37237,7 +37228,7 @@ const Y = (na = class extends D {
37237
37228
  var t;
37238
37229
  if (this.textComponent && Y.htmlField) {
37239
37230
  if (this.textComponent.text !== Y.htmlField.value) {
37240
- Zn && console.log("VALUE CHANGED");
37231
+ Kn && console.log("VALUE CHANGED");
37241
37232
  const e = this.textComponent.text, i = Y.htmlField.value;
37242
37233
  (t = this.onValueChanged) == null || t.invoke(i, e);
37243
37234
  }
@@ -37245,7 +37236,7 @@ const Y = (na = class extends D {
37245
37236
  }
37246
37237
  }
37247
37238
  selectInputField() {
37248
- Y.htmlField && (Zn && console.log("Focus Inputfield", Y.htmlFieldFocused), Y.htmlField.setSelectionRange(Y.htmlField.value.length, Y.htmlField.value.length), Q.isiOS() ? Y.htmlField.focus({ preventScroll: !0 }) : setTimeout(() => {
37239
+ Y.htmlField && (Kn && console.log("Focus Inputfield", Y.htmlFieldFocused), Y.htmlField.setSelectionRange(Y.htmlField.value.length, Y.htmlField.value.length), Q.isiOS() ? Y.htmlField.focus({ preventScroll: !0 }) : setTimeout(() => {
37249
37240
  var t;
37250
37241
  return (t = Y.htmlField) == null ? void 0 : t.focus();
37251
37242
  }, 1));
@@ -37297,10 +37288,10 @@ const Y = (na = class extends D {
37297
37288
  }, r(na, "active", null), r(na, "activeTime", -1), r(na, "htmlField", null), r(na, "htmlFieldFocused", !1), na);
37298
37289
  let ml = Y;
37299
37290
  xf([
37300
- f(ei)
37291
+ f(ti)
37301
37292
  ], ml.prototype, "textComponent", 2);
37302
37293
  xf([
37303
- f(ei)
37294
+ f(ti)
37304
37295
  ], ml.prototype, "placeholder", 2);
37305
37296
  xf([
37306
37297
  f(Me)
@@ -37594,7 +37585,7 @@ function zE(n, t) {
37594
37585
  e.add(n), $b.set(t, e), console.debug("Initialize texture for camera feed");
37595
37586
  const i = new De(), s = new Xs(), o = new Ki();
37596
37587
  o.add(new X(s, i));
37597
- const a = new ge();
37588
+ const a = new ye();
37598
37589
  i.map = t, n.render(o, a);
37599
37590
  }
37600
37591
  function QD(n, t, e, i = "image/webp", s) {
@@ -37612,7 +37603,7 @@ function hx(n) {
37612
37603
  const l = i.renderer, c = l.xr.enabled;
37613
37604
  if (c && i.currentFrameEvent != Ce.EarlyUpdate)
37614
37605
  return console.warn("Screenshot: defer to access XR frame"), new Promise((j) => {
37615
- jn((T) => {
37606
+ Ln((T) => {
37616
37607
  const z = hx(n);
37617
37608
  j(z);
37618
37609
  }, Ce.EarlyUpdate, { once: !0 });
@@ -37633,7 +37624,7 @@ function hx(n) {
37633
37624
  const K = A.instances[te];
37634
37625
  bn(K.object, !0);
37635
37626
  }
37636
- })), t && (i.scene.background = null, l.setClearColor(0, 0)), n.background && (i.scene.background = null, l.setClearColor(n.background), n.background instanceof ve && l.setClearAlpha(n.background.a)), t && l.setClearAlpha(0), l.setSize(s, o, !1), "cam" in a && (a = a.threeCamera), a instanceof ge && (a.aspect = s / o, a.updateProjectionMatrix());
37627
+ })), t && (i.scene.background = null, l.setClearColor(0, 0)), n.background && (i.scene.background = null, l.setClearColor(n.background), n.background instanceof ve && l.setClearAlpha(n.background.a)), t && l.setClearAlpha(0), l.setSize(s, o, !1), "cam" in a && (a = a.threeCamera), a instanceof ye && (a.aspect = s / o, a.updateProjectionMatrix());
37637
37628
  const T = "type" in n && n.type === "texture";
37638
37629
  let z = null;
37639
37630
  T && (z = new wo(s, o, {
@@ -37648,7 +37639,7 @@ function hx(n) {
37648
37639
  scene: i.scene,
37649
37640
  camera: a,
37650
37641
  renderer: l
37651
- })) : i.renderNow(a || null), a instanceof ge && k != null && (a.aspect = k, a.updateProjectionMatrix()), E && j.forEach((A) => A.onAfterRender()), !e && "download_filename" in n && n.download_filename)
37642
+ })) : i.renderNow(a || null), a instanceof ye && k != null && (a.aspect = k, a.updateProjectionMatrix()), E && j.forEach((A) => A.onAfterRender()), !e && "download_filename" in n && n.download_filename)
37652
37643
  switch ((O = n.download_filename.split(".").pop()) == null ? void 0 : O.toLowerCase()) {
37653
37644
  case "png":
37654
37645
  e = "image/png";
@@ -37707,7 +37698,7 @@ function hx(n) {
37707
37698
  }
37708
37699
  return I;
37709
37700
  } finally {
37710
- l.setRenderTarget(_), i.scene.background = M, l.setSize(d, u, !1), l.setClearColor(b, x), k != null && a instanceof ge && (a.aspect = k, a.updateProjectionMatrix()), l.xr.enabled = y, l.xr.isPresenting = c, c || i.updateSize(!0);
37701
+ l.setRenderTarget(_), i.scene.background = M, l.setSize(d, u, !1), l.setClearColor(b, x), k != null && a instanceof ye && (a.aspect = k, a.updateProjectionMatrix()), l.xr.enabled = y, l.xr.isPresenting = c, c || i.updateSize(!0);
37711
37702
  }
37712
37703
  return null;
37713
37704
  }
@@ -37816,7 +37807,7 @@ class Pf extends D {
37816
37807
  r(this, "forceTextureInitialization", function() {
37817
37808
  const e = new De(), i = new Xs(), s = new Ki();
37818
37809
  s.add(new X(i, e));
37819
- const o = new ge();
37810
+ const o = new ye();
37820
37811
  return function(l, c) {
37821
37812
  e.map = c, l.render(s, o), Wb && console.warn("Force texture initialization");
37822
37813
  };
@@ -37955,7 +37946,7 @@ const Vb = S("debugimagetracking"), mu = class {
37955
37946
  };
37956
37947
  let ir = mu;
37957
37948
  r(ir, "_positionBuffer", new Zi(() => new v(), 20)), r(ir, "_rotationBuffer", new Zi(() => new W(), 20));
37958
- class Hn {
37949
+ class Vn {
37959
37950
  constructor() {
37960
37951
  r(this, "image");
37961
37952
  r(this, "widthInMeters", 0.25);
@@ -37967,22 +37958,22 @@ class Hn {
37967
37958
  }
37968
37959
  Bo([
37969
37960
  f(URL)
37970
- ], Hn.prototype, "image", 2);
37961
+ ], Vn.prototype, "image", 2);
37971
37962
  Bo([
37972
37963
  f()
37973
- ], Hn.prototype, "widthInMeters", 2);
37964
+ ], Vn.prototype, "widthInMeters", 2);
37974
37965
  Bo([
37975
37966
  f(re)
37976
- ], Hn.prototype, "object", 2);
37967
+ ], Vn.prototype, "object", 2);
37977
37968
  Bo([
37978
37969
  f()
37979
- ], Hn.prototype, "createObjectInstance", 2);
37970
+ ], Vn.prototype, "createObjectInstance", 2);
37980
37971
  Bo([
37981
37972
  f()
37982
- ], Hn.prototype, "imageDoesNotMove", 2);
37973
+ ], Vn.prototype, "imageDoesNotMove", 2);
37983
37974
  Bo([
37984
37975
  f()
37985
- ], Hn.prototype, "hideWhenTrackingIsLost", 2);
37976
+ ], Vn.prototype, "hideWhenTrackingIsLost", 2);
37986
37977
  class XE {
37987
37978
  constructor(t, e, i) {
37988
37979
  r(this, "filename");
@@ -38185,7 +38176,7 @@ const Zl = (Yp = class extends D {
38185
38176
  }, r(Yp, "_imageElements", /* @__PURE__ */ new Map()), Yp);
38186
38177
  let Xa = Zl;
38187
38178
  Bo([
38188
- f(Hn)
38179
+ f(Vn)
38189
38180
  ], Xa.prototype, "trackedImages", 2);
38190
38181
  Bo([
38191
38182
  f()
@@ -38515,9 +38506,9 @@ const YD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
38515
38506
  __proto__: null,
38516
38507
  ActionBuilder: ue,
38517
38508
  ActionCollection: ww,
38518
- ActionModel: oi,
38509
+ ActionModel: ri,
38519
38510
  AlignmentConstraint: zu,
38520
- Animation: Kt,
38511
+ Animation: Zt,
38521
38512
  AnimationCurve: Ya,
38522
38513
  AnimationExtension: Qu,
38523
38514
  AnimationTrackHandler: by,
@@ -38537,7 +38528,7 @@ const YD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
38537
38528
  Avatar_Brain_LookAt: Qd,
38538
38529
  Avatar_MouthShapes: Wu,
38539
38530
  Avatar_MustacheShake: Uv,
38540
- Avatar_POI: kn,
38531
+ Avatar_POI: Rn,
38541
38532
  AxesHelper: Zc,
38542
38533
  BaseUIComponent: _s,
38543
38534
  BasicIKConstraint: Vv,
@@ -38576,7 +38567,7 @@ const YD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
38576
38567
  DropListenerAddedEvent: Vg,
38577
38568
  Duplicatable: il,
38578
38569
  EffectWrapper: iu,
38579
- EmissionModule: Wn,
38570
+ EmissionModule: $n,
38580
38571
  EmphasizeOnClick: nh,
38581
38572
  EventList: Me,
38582
38573
  EventListEvent: Lg,
@@ -38592,7 +38583,7 @@ const YD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
38592
38583
  GraphicRaycaster: jg,
38593
38584
  GridHelper: hh,
38594
38585
  GridLayoutGroup: Iw,
38595
- GroundProjectedEnv: Bn,
38586
+ GroundProjectedEnv: jn,
38596
38587
  GroupActionModel: co,
38597
38588
  HideOnStart: xw,
38598
38589
  HingeJoint: sf,
@@ -38603,7 +38594,7 @@ const YD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
38603
38594
  InstanceHandle: Ta,
38604
38595
  InstancingHandler: ao,
38605
38596
  Interactable: Xv,
38606
- Keyframe: ai,
38597
+ Keyframe: li,
38607
38598
  LODGroup: nf,
38608
38599
  LODModel: ll,
38609
38600
  Light: Ai,
@@ -38616,8 +38607,8 @@ const YD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
38616
38607
  MeshCollider: Lr,
38617
38608
  MeshRenderer: qu,
38618
38609
  MinMaxCurve: q,
38619
- MinMaxGradient: hi,
38620
- NeedleMenu: $n,
38610
+ MinMaxGradient: di,
38611
+ NeedleMenu: Nn,
38621
38612
  NestedGltf: cy,
38622
38613
  Networking: uh,
38623
38614
  NoiseModule: we,
@@ -38643,13 +38634,13 @@ const YD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
38643
38634
  PreliminaryTrigger: Yu,
38644
38635
  RawImage: xy,
38645
38636
  Rect: Ow,
38646
- RectTransform: Zt,
38637
+ RectTransform: Jt,
38647
38638
  ReflectionProbe: th,
38648
38639
  RegisteredAnimationInfo: lo,
38649
- RemoteSkybox: Ln,
38640
+ RemoteSkybox: Dn,
38650
38641
  Renderer: et,
38651
38642
  RendererLightmap: Zd,
38652
- Rigidbody: ye,
38643
+ Rigidbody: ge,
38653
38644
  RotationBySpeedModule: ns,
38654
38645
  RotationOverLifetimeModule: vs,
38655
38646
  SceneSwitcher: Ct,
@@ -38665,39 +38656,39 @@ const YD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
38665
38656
  SignalReceiverEvent: yh,
38666
38657
  SignalTrackHandler: nu,
38667
38658
  Size: Pw,
38668
- SizeBySpeedModule: di,
38659
+ SizeBySpeedModule: ui,
38669
38660
  SizeOverLifetimeModule: Nr,
38670
38661
  SkinnedMeshRenderer: aw,
38671
38662
  SmoothFollow: Xr,
38672
38663
  SpatialGrabRaycaster: pr,
38673
38664
  SpatialHtml: Sf,
38674
38665
  SpatialTrigger: gf,
38675
- SpatialTriggerReceiver: An,
38666
+ SpatialTriggerReceiver: Tn,
38676
38667
  SpectatorCamera: yy,
38677
38668
  SphereCollider: Jc,
38678
- Sprite: Nn,
38669
+ Sprite: Un,
38679
38670
  SpriteData: _o,
38680
38671
  SpriteRenderer: Ti,
38681
38672
  SpriteSheet: Sr,
38682
38673
  SubEmitterSystem: tu,
38683
38674
  SyncedCamera: _y,
38684
38675
  SyncedRoom: tn,
38685
- SyncedTransform: In,
38676
+ SyncedTransform: En,
38686
38677
  TapGestureTrigger: Sw,
38687
38678
  TeleportTarget: sy,
38688
38679
  TestRunner: ix,
38689
38680
  TestSimulateUserData: sx,
38690
- Text: ei,
38681
+ Text: ti,
38691
38682
  TextBuilder: Zg,
38692
38683
  TextExtension: Ju,
38693
38684
  TextureSheetAnimationModule: Nt,
38694
- TiltShiftEffect: Vn,
38685
+ TiltShiftEffect: Wn,
38695
38686
  ToneMappingEffect: Pr,
38696
38687
  TrailModule: He,
38697
38688
  TransformData: Fe,
38698
38689
  TransformGizmo: pl,
38699
38690
  TriggerBuilder: Rt,
38700
- TriggerModel: Tn,
38691
+ TriggerModel: kn,
38701
38692
  UIRaycastUtils: Bg,
38702
38693
  UIRootComponent: Nu,
38703
38694
  USDZExporter: qe,
@@ -38718,11 +38709,11 @@ const YD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
38718
38709
  WebARSessionRoot: Co,
38719
38710
  WebXR: tt,
38720
38711
  WebXRImageTracking: Xa,
38721
- WebXRImageTrackingModel: Hn,
38712
+ WebXRImageTrackingModel: Vn,
38722
38713
  WebXRPlaneTracking: Fo,
38723
38714
  WebXRTrackedImage: ir,
38724
38715
  XRControllerFollow: jo,
38725
- XRControllerModel: Dn,
38716
+ XRControllerModel: In,
38726
38717
  XRControllerMovement: is,
38727
38718
  XRFlag: Wi,
38728
38719
  XRRig: Cy,
@@ -38739,14 +38730,14 @@ class eI extends D {
38739
38730
  }
38740
38731
  }
38741
38732
  w.add("AlignmentConstraint", zu);
38742
- w.add("Animation", Kt);
38743
- w.add("Keyframe", ai);
38733
+ w.add("Animation", Zt);
38734
+ w.add("Keyframe", li);
38744
38735
  w.add("AnimationCurve", Ya);
38745
38736
  w.add("Animator", Bt);
38746
38737
  w.add("AnimatorController", Yi);
38747
38738
  w.add("AudioListener", gr);
38748
38739
  w.add("AudioSource", Xe);
38749
- w.add("Avatar_POI", kn);
38740
+ w.add("Avatar_POI", Rn);
38750
38741
  w.add("Avatar_Brain_LookAt", Qd);
38751
38742
  w.add("Avatar_MouthShapes", Wu);
38752
38743
  w.add("Avatar_MustacheShake", Uv);
@@ -38800,10 +38791,10 @@ w.add("PreliminaryTrigger", Yu);
38800
38791
  w.add("VisibilityAction", Ku);
38801
38792
  w.add("TapGestureTrigger", Sw);
38802
38793
  w.add("BehaviorModel", ht);
38803
- w.add("TriggerModel", Tn);
38794
+ w.add("TriggerModel", kn);
38804
38795
  w.add("TriggerBuilder", Rt);
38805
38796
  w.add("GroupActionModel", co);
38806
- w.add("ActionModel", oi);
38797
+ w.add("ActionModel", ri);
38807
38798
  w.add("ActionBuilder", ue);
38808
38799
  w.add("PhysicsExtension", Kg);
38809
38800
  w.add("DocumentExtension", Cw);
@@ -38816,7 +38807,7 @@ w.add("USDZExporter", qe);
38816
38807
  w.add("Fog", ch);
38817
38808
  w.add("BoxGizmo", al);
38818
38809
  w.add("GridHelper", hh);
38819
- w.add("GroundProjectedEnv", Bn);
38810
+ w.add("GroundProjectedEnv", jn);
38820
38811
  w.add("UsageMarker", Hu);
38821
38812
  w.add("Interactable", Xv);
38822
38813
  w.add("FixedJoint", Uw);
@@ -38825,7 +38816,7 @@ w.add("Light", Ai);
38825
38816
  w.add("LODModel", ll);
38826
38817
  w.add("LODGroup", nf);
38827
38818
  w.add("LookAtConstraint", Ka);
38828
- w.add("NeedleMenu", $n);
38819
+ w.add("NeedleMenu", Nn);
38829
38820
  w.add("NestedGltf", cy);
38830
38821
  w.add("Networking", uh);
38831
38822
  w.add("OffsetConstraint", cl);
@@ -38836,10 +38827,10 @@ w.add("ParticleSystem", ut);
38836
38827
  w.add("SubEmitterSystem", tu);
38837
38828
  w.add("Gradient", Ur);
38838
38829
  w.add("MinMaxCurve", q);
38839
- w.add("MinMaxGradient", hi);
38830
+ w.add("MinMaxGradient", di);
38840
38831
  w.add("MainModule", Ut);
38841
38832
  w.add("ParticleBurst", eu);
38842
- w.add("EmissionModule", Wn);
38833
+ w.add("EmissionModule", $n);
38843
38834
  w.add("ColorOverLifetimeModule", rf);
38844
38835
  w.add("SizeOverLifetimeModule", Nr);
38845
38836
  w.add("ShapeModule", Qe);
@@ -38851,7 +38842,7 @@ w.add("RotationOverLifetimeModule", vs);
38851
38842
  w.add("RotationBySpeedModule", ns);
38852
38843
  w.add("LimitVelocityOverLifetimeModule", ft);
38853
38844
  w.add("InheritVelocityModule", $r);
38854
- w.add("SizeBySpeedModule", di);
38845
+ w.add("SizeBySpeedModule", ui);
38855
38846
  w.add("ColorBySpeedModule", hl);
38856
38847
  w.add("ParticleSubEmitter", dy);
38857
38848
  w.add("PlayerColor", Lc);
@@ -38865,7 +38856,7 @@ w.add("PixelationEffect", df);
38865
38856
  w.add("ScreenSpaceAmbientOcclusion", Eo);
38866
38857
  w.add("ScreenSpaceAmbientOcclusionN8", en);
38867
38858
  w.add("SharpeningEffect", uf);
38868
- w.add("TiltShiftEffect", Vn);
38859
+ w.add("TiltShiftEffect", Wn);
38869
38860
  w.add("ToneMappingEffect", Pr);
38870
38861
  w.add("Vignette", fl);
38871
38862
  w.add("PostProcessingHandler", my);
@@ -38880,22 +38871,22 @@ w.add("SkinnedMeshRenderer", aw);
38880
38871
  w.add("InstancingHandler", ao);
38881
38872
  w.add("InstanceHandle", Ta);
38882
38873
  w.add("RendererLightmap", Zd);
38883
- w.add("Rigidbody", ye);
38874
+ w.add("Rigidbody", ge);
38884
38875
  w.add("SceneSwitcher", Ct);
38885
38876
  w.add("ScreenCapture", qr);
38886
38877
  w.add("ShadowCatcher", pf);
38887
- w.add("RemoteSkybox", Ln);
38878
+ w.add("RemoteSkybox", Dn);
38888
38879
  w.add("SmoothFollow", Xr);
38889
- w.add("SpatialTriggerReceiver", An);
38880
+ w.add("SpatialTriggerReceiver", Tn);
38890
38881
  w.add("SpatialTrigger", gf);
38891
38882
  w.add("SpectatorCamera", yy);
38892
- w.add("Sprite", Nn);
38883
+ w.add("Sprite", Un);
38893
38884
  w.add("SpriteSheet", Sr);
38894
38885
  w.add("SpriteData", _o);
38895
38886
  w.add("SpriteRenderer", Ti);
38896
38887
  w.add("SyncedCamera", _y);
38897
38888
  w.add("SyncedRoom", tn);
38898
- w.add("SyncedTransform", In);
38889
+ w.add("SyncedTransform", En);
38899
38890
  w.add("TestRunner", ix);
38900
38891
  w.add("TestSimulateUserData", sx);
38901
38892
  w.add("PlayableDirector", Or);
@@ -38930,16 +38921,16 @@ w.add("SpatialGrabRaycaster", pr);
38930
38921
  w.add("UIRaycastUtils", Bg);
38931
38922
  w.add("Size", Pw);
38932
38923
  w.add("Rect", Ow);
38933
- w.add("RectTransform", Zt);
38924
+ w.add("RectTransform", Jt);
38934
38925
  w.add("SpatialHtml", Sf);
38935
- w.add("Text", ei);
38926
+ w.add("Text", ti);
38936
38927
  w.add("LookAt", gl);
38937
38928
  w.add("OpenURL", vh);
38938
38929
  w.add("VideoPlayer", wt);
38939
38930
  w.add("Voip", Dr);
38940
38931
  w.add("Avatar", Cr);
38941
38932
  w.add("XRControllerFollow", jo);
38942
- w.add("XRControllerModel", Dn);
38933
+ w.add("XRControllerModel", In);
38943
38934
  w.add("XRControllerMovement", is);
38944
38935
  w.add("TeleportTarget", sy);
38945
38936
  w.add("WebARCameraBackground", Pf);
@@ -38947,7 +38938,7 @@ w.add("WebARSessionRoot", Co);
38947
38938
  w.add("WebXR", tt);
38948
38939
  w.add("AvatarMarker", bt);
38949
38940
  w.add("WebXRTrackedImage", ir);
38950
- w.add("WebXRImageTrackingModel", Hn);
38941
+ w.add("WebXRImageTrackingModel", Vn);
38951
38942
  w.add("WebXRImageTracking", Xa);
38952
38943
  w.add("WebXRPlaneTracking", Fo);
38953
38944
  w.add("XRRig", Cy);
@@ -39042,7 +39033,7 @@ async function Km(n, t, e, i) {
39042
39033
  }
39043
39034
  if (El.length > 0) {
39044
39035
  const u = El.join(", ");
39045
- console.warn("unknown components: " + u), El.length = 0, li() && $e(`<strong>Unknown components in scene</strong>:
39036
+ console.warn("unknown components: " + u), El.length = 0, ci() && $e(`<strong>Unknown components in scene</strong>:
39046
39037
 
39047
39038
  ${u}
39048
39039
 
@@ -39966,7 +39957,7 @@ function iL(n) {
39966
39957
  }
39967
39958
  return !0;
39968
39959
  }
39969
- const Ke = S("debugphysics"), Dp = S("debugcolliderplacement"), Lp = S("debugcollisions"), bI = S("showcolliders"), jp = S("debugraycasts"), si = Symbol("needle component"), Gt = Symbol("physics body"), Xb = Symbol("rigidbody");
39960
+ const Ke = S("debugphysics"), Dp = S("debugcolliderplacement"), Lp = S("debugcollisions"), bI = S("showcolliders"), jp = S("debugraycasts"), ni = Symbol("needle component"), Gt = Symbol("physics body"), Xb = Symbol("rigidbody");
39970
39961
  globalThis.true = globalThis.true !== void 0 ? globalThis.true : !0;
39971
39962
  Ke && console.log("Use Rapier", !0, globalThis.true);
39972
39963
  fe.registerCallback(me.ContextCreationStart, (n) => {
@@ -40021,7 +40012,7 @@ const xc = class {
40021
40012
  const c = l;
40022
40013
  (i = this.world) == null || i.removeCollider(c, !0);
40023
40014
  const h = c.parent();
40024
- h && h.numColliders() <= 0 && (h[si] || (s = this.world) == null || s.removeRigidBody(h));
40015
+ h && h.numColliders() <= 0 && (h[ni] || (s = this.world) == null || s.removeRigidBody(h));
40025
40016
  } else
40026
40017
  l instanceof B.RAPIER_PHYSICS.MODULE.RigidBody && (l.numColliders() <= 0 ? (o = this.world) == null || o.removeRigidBody(l) : U() && (l.did_log_removing || setTimeout(() => {
40027
40018
  l.numColliders() > 0 && (l.did_log_removing = !0, console.warn("RapierPhysics: removing rigidbody with colliders from the physics world is not possible right now, please remove the colliders first"));
@@ -40126,12 +40117,12 @@ const xc = class {
40126
40117
  return null;
40127
40118
  (this.debugRenderRaycasts || jp) && G.DrawRay(a.origin, a.dir, 255, 1);
40128
40119
  const l = (c = this.world) == null ? void 0 : c.castRay(a, s, o, i == null ? void 0 : i.queryFilterFlags, i == null ? void 0 : i.filterGroups, void 0, void 0, (h) => {
40129
- const d = h[si];
40120
+ const d = h[ni];
40130
40121
  return i != null && i.filterPredicate ? i.filterPredicate(d) : (i == null ? void 0 : i.useIgnoreRaycastLayer) !== !1 ? !(d != null && d.gameObject.layers.isEnabled(2)) : !0;
40131
40122
  });
40132
40123
  if (l) {
40133
40124
  const h = a.pointAt(l.timeOfImpact), d = this.raycastVectorsBuffer.get();
40134
- return d.set(h.x, h.y, h.z), { point: d, collider: l.collider[si] };
40125
+ return d.set(h.x, h.y, h.z), { point: d, collider: l.collider[ni] };
40135
40126
  }
40136
40127
  return null;
40137
40128
  }
@@ -40146,12 +40137,12 @@ const xc = class {
40146
40137
  return null;
40147
40138
  (this.debugRenderRaycasts || jp) && G.DrawRay(a.origin, a.dir, 255, 1);
40148
40139
  const l = (c = this.world) == null ? void 0 : c.castRayAndGetNormal(a, s, o, i == null ? void 0 : i.queryFilterFlags, i == null ? void 0 : i.filterGroups, void 0, void 0, (h) => {
40149
- const d = h[si];
40140
+ const d = h[ni];
40150
40141
  return i != null && i.filterPredicate ? i.filterPredicate(d) : (i == null ? void 0 : i.useIgnoreRaycastLayer) !== !1 ? !(d != null && d.gameObject.layers.isEnabled(2)) : !0;
40151
40142
  });
40152
40143
  if (l) {
40153
40144
  const h = a.pointAt(l.timeOfImpact), d = l.normal, u = this.raycastVectorsBuffer.get(), p = this.raycastVectorsBuffer.get();
40154
- return u.set(h.x, h.y, h.z), p.set(d.x, d.y, d.z), { point: u, normal: p, collider: l.collider[si] };
40145
+ return u.set(h.x, h.y, h.z), p.set(d.x, d.y, d.z), { point: u, normal: p, collider: l.collider[ni] };
40155
40146
  }
40156
40147
  return null;
40157
40148
  }
@@ -40196,7 +40187,7 @@ const xc = class {
40196
40187
  this.rapierIdentityRotation,
40197
40188
  this.rapierSphere,
40198
40189
  (i) => {
40199
- const s = i[si], o = new lR(s.gameObject, s);
40190
+ const s = i[ni], o = new lR(s.gameObject, s);
40200
40191
  return this.rapierColliderArray.push(o), !0;
40201
40192
  },
40202
40193
  // TODO: it seems as QueryFilterFlags.EXCLUDE_SENSORS also excludes DYNAMIC Rigidbodies (only if they're set to kinematic)
@@ -40205,7 +40196,7 @@ const xc = class {
40205
40196
  void 0,
40206
40197
  void 0,
40207
40198
  void 0,
40208
- (i) => i.isSensor() ? !1 : i[si].gameObject.layers.isEnabled(2) == !1
40199
+ (i) => i.isSensor() ? !1 : i[ni].gameObject.layers.isEnabled(2) == !1
40209
40200
  ), this.rapierColliderArray) : this.rapierColliderArray : this.rapierColliderArray;
40210
40201
  }
40211
40202
  /** Get access to the rapier world */
@@ -40346,7 +40337,7 @@ const xc = class {
40346
40337
  }
40347
40338
  /** Get the Needle Engine component for a rapier object */
40348
40339
  getComponent(t) {
40349
- return t ? t[si] : null;
40340
+ return t ? t[ni] : null;
40350
40341
  }
40351
40342
  createCollider(t, e) {
40352
40343
  var a;
@@ -40391,7 +40382,7 @@ const xc = class {
40391
40382
  ((a = t.attachedRigidbody) == null ? void 0 : a.autoMass) === !1 && (e.setDensity(1e-6), e.setMass(1e-6));
40392
40383
  try {
40393
40384
  const l = this.world.createCollider(e, s);
40394
- return l[si] = t, t[Gt] = l, l.setActiveEvents(B.RAPIER_PHYSICS.MODULE.ActiveEvents.COLLISION_EVENTS), l.setActiveCollisionTypes(B.RAPIER_PHYSICS.MODULE.ActiveCollisionTypes.ALL), this.objects.push(t), this.bodies.push(l), this.updateColliderCollisionGroups(t), l;
40385
+ return l[ni] = t, t[Gt] = l, l.setActiveEvents(B.RAPIER_PHYSICS.MODULE.ActiveEvents.COLLISION_EVENTS), l.setActiveCollisionTypes(B.RAPIER_PHYSICS.MODULE.ActiveCollisionTypes.ALL), this.objects.push(t), this.bodies.push(l), this.updateColliderCollisionGroups(t), l;
40395
40386
  } catch (l) {
40396
40387
  return console.error('Error creating collider "' + t.name + `"
40397
40388
  Error:`, l), null;
@@ -40435,10 +40426,10 @@ Error:`, l), null;
40435
40426
  const a = o ? B.RAPIER_PHYSICS.MODULE.RigidBodyDesc.kinematicPositionBased() : B.RAPIER_PHYSICS.MODULE.RigidBodyDesc.dynamic(), l = ee(t.attachedRigidbody.gameObject);
40436
40427
  a.setTranslation(l.x, l.y, l.z), a.setRotation(xe(t.attachedRigidbody.gameObject)), a.centerOfMass = new B.RAPIER_PHYSICS.MODULE.Vector3(s.centerOfMass.x, s.centerOfMass.y, s.centerOfMass.z), i = this.world.createRigidBody(a), this.bodies.push(i), this.objects.push(s);
40437
40428
  }
40438
- i[si] = s, s[Gt] = i, this.internalUpdateRigidbodyProperties(s, i), this.getRigidbodyRelativeMatrix(t.gameObject, s.gameObject, e), t[Xb] = i;
40429
+ i[ni] = s, s[Gt] = i, this.internalUpdateRigidbodyProperties(s, i), this.getRigidbodyRelativeMatrix(t.gameObject, s.gameObject, e), t[Xb] = i;
40439
40430
  } else {
40440
40431
  const s = B.RAPIER_PHYSICS.MODULE.RigidBodyDesc.kinematicPositionBased(), o = ee(t.gameObject);
40441
- s.setTranslation(o.x, o.y, o.z), s.setRotation(xe(t.gameObject)), i = this.world.createRigidBody(s), e.identity(), i[si] = null;
40432
+ s.setTranslation(o.x, o.y, o.z), s.setRotation(xe(t.gameObject)), i = this.world.createRigidBody(s), e.identity(), i[ni] = null;
40442
40433
  }
40443
40434
  return i;
40444
40435
  }
@@ -40556,7 +40547,7 @@ Error:`, l), null;
40556
40547
  }
40557
40548
  } else if (e instanceof B.RAPIER_PHYSICS.MODULE.Collider) {
40558
40549
  t.matrixWorldNeedsUpdate && t.updateWorldMatrix(!0, !1), t.matrixWorld.decompose(this._tempPosition, this._tempQuaternion, this._tempScale);
40559
- const o = this._tempPosition, a = this._tempQuaternion, l = e[si];
40550
+ const o = this._tempPosition, a = this._tempQuaternion, l = e[ni];
40560
40551
  if (this.tryApplyCenter(l, o), i) {
40561
40552
  const c = e.translation();
40562
40553
  (c.x !== o.x || c.y !== o.y || c.z !== o.z) && e.setTranslation(o);
@@ -40629,7 +40620,7 @@ class vI {
40629
40620
  const s = this.world.getCollider(t), o = this.world.getCollider(e);
40630
40621
  if (!s || !o)
40631
40622
  return;
40632
- const a = s[si], l = o[si];
40623
+ const a = s[ni], l = o[ni];
40633
40624
  Lp && console.log("EVT", a.name, l.name, i, s, o), a && l && (i ? (this.onCollisionStarted(a, s, l, o), this.onCollisionStarted(l, o, a, s)) : (this.onCollisionEnded(a, l), this.onCollisionEnded(l, a)));
40634
40625
  });
40635
40626
  }
@@ -40763,7 +40754,7 @@ class sL {
40763
40754
  const b = Ji([_]);
40764
40755
  a += b.getSize(new v()).y, a += 0.1;
40765
40756
  }
40766
- const l = new ge(20);
40757
+ const l = new ye(20);
40767
40758
  o.add(l);
40768
40759
  const c = t.environment || "https://dl.polyhaven.org/file/ph-assets/HDRIs/exr/1k/studio_small_09_1k.exr";
40769
40760
  if (c) {
@@ -40777,7 +40768,7 @@ class sL {
40777
40768
  }
40778
40769
  if (_) {
40779
40770
  const b = await _.loadAsync(c).catch((x) => (console.error(x), null));
40780
- b && (b.mapping = Rn, b.needsUpdate = !0, o.background = b, o.environment = b, o.backgroundBlurriness = 0.75);
40771
+ b && (b.mapping = Mn, b.needsUpdate = !0, o.background = b, o.environment = b, o.backgroundBlurriness = 0.75);
40781
40772
  } else
40782
40773
  console.warn("Unsupported environment map format", c);
40783
40774
  }
@@ -40890,18 +40881,18 @@ var sr, nr, or, qt, yn, La, gu, Px, yu, Ox, Uc;
40890
40881
  class Cx extends HTMLElement {
40891
40882
  constructor() {
40892
40883
  super();
40893
- ui(this, gu);
40894
- ui(this, yu);
40895
- ui(this, sr, void 0);
40896
- ui(this, nr, void 0);
40884
+ fi(this, gu);
40885
+ fi(this, yu);
40886
+ fi(this, sr, void 0);
40887
+ fi(this, nr, void 0);
40897
40888
  /** These are the default styles that can be overridden by the user from the outside by styling <needle-button> */
40898
- ui(this, or, void 0);
40889
+ fi(this, or, void 0);
40899
40890
  /** This is the button that was generated using one of the factories */
40900
- ui(this, qt, void 0);
40891
+ fi(this, qt, void 0);
40901
40892
  /** If AR or VR is requested we create and use the webxr button factory to create a button with default behaviour */
40902
- ui(this, yn, void 0);
40903
- ui(this, La, void 0);
40904
- ui(this, Uc, (e) => {
40893
+ fi(this, yn, void 0);
40894
+ fi(this, La, void 0);
40895
+ fi(this, Uc, (e) => {
40905
40896
  Bp && console.log("Needle Button clicked"), !e.defaultPrevented && de(this, qt) && de(this, qt).click();
40906
40897
  });
40907
40898
  this.removeEventListener("click", de(this, Uc)), this.addEventListener("click", de(this, Uc));
@@ -40965,7 +40956,7 @@ const au = S("debugmissingcamera");
40965
40956
  fe.registerCallback(me.MissingCamera, (n) => {
40966
40957
  var l, c, h;
40967
40958
  au && console.warn("Creating missing camera");
40968
- const t = n.context.scene, e = new ge();
40959
+ const t = n.context.scene, e = new ye();
40969
40960
  e.name = "Default Fallback Camera", t.add(e);
40970
40961
  const i = new Re();
40971
40962
  i.sourceId = ((c = (l = n.files) == null ? void 0 : l[0]) == null ? void 0 : c.src) ?? "unknown", (h = n.context.domElement.getAttribute("skybox-image")) != null && h.length || 0 > 0 || n.context.lightmaps.tryGetSkybox(i.sourceId) ? i.clearFlags = mr.Skybox : i.clearFlags = mr.SolidColor, i.backgroundColor = new ve(0.5, 0.5, 0.5, 1), i.fieldOfView = 35, n.context.domElement.getAttribute("transparent") != null && (i.clearFlags = mr.Uninitialized), i.backgroundBlurriness = 0.2;
@@ -41009,15 +41000,15 @@ fe.registerCallback(me.ContextCreated, (n) => {
41009
41000
  for (const e of n.files)
41010
41001
  C.foreachComponent(e.file.scene, (s) => {
41011
41002
  if (s.enabled !== !1) {
41012
- if (s instanceof Kt && s.playAutomatically || s instanceof Bt || s instanceof Or && s.playOnAwake === !0)
41003
+ if (s instanceof Zt && s.playAutomatically || s instanceof Bt || s instanceof Or && s.playOnAwake === !0)
41013
41004
  return !0;
41014
- if (s instanceof Kt)
41005
+ if (s instanceof Zt)
41015
41006
  return s.playAutomatically = !0, !0;
41016
41007
  if (s instanceof Or)
41017
41008
  return s.playOnAwake = !0, !0;
41018
41009
  }
41019
41010
  }, !0) !== !0 && Ec.assignAnimationsFromFile(e.file, {
41020
- createAnimationComponent: (s, o) => Qi(s, Kt)
41011
+ createAnimationComponent: (s, o) => Qi(s, Zt)
41021
41012
  });
41022
41013
  });
41023
41014
  class OI extends C1 {
@@ -41131,7 +41122,7 @@ export {
41131
41122
  iL as aU,
41132
41123
  _g as aV,
41133
41124
  Ne as aW,
41134
- Jn as aX,
41125
+ Zn as aX,
41135
41126
  Sh as aY,
41136
41127
  uD as aZ,
41137
41128
  $i as a_,
@@ -41170,23 +41161,23 @@ export {
41170
41161
  $ as b4,
41171
41162
  Ef as b5,
41172
41163
  R0 as b6,
41173
- mi as b7,
41164
+ gi as b7,
41174
41165
  Oh as b8,
41175
41166
  tP as b9,
41176
- Cn as bA,
41167
+ Sn as bA,
41177
41168
  Fv as bB,
41178
41169
  cR as bC,
41179
41170
  dR as bD,
41180
41171
  Ra as bE,
41181
41172
  $u as bF,
41182
- Pn as bG,
41173
+ Cn as bG,
41183
41174
  Is as bH,
41184
- li as bI,
41175
+ ci as bI,
41185
41176
  k1 as bJ,
41186
41177
  mg as bK,
41187
41178
  cD as bL,
41188
41179
  jf as bM,
41189
- En as bN,
41180
+ An as bN,
41190
41181
  J0 as bO,
41191
41182
  ic as bP,
41192
41183
  Ot as bQ,
@@ -41410,14 +41401,14 @@ export {
41410
41401
  Yv as en,
41411
41402
  dx as eo,
41412
41403
  zu as ep,
41413
- Kt as eq,
41414
- ai as er,
41404
+ Zt as eq,
41405
+ li as er,
41415
41406
  Ya as es,
41416
41407
  Bt as et,
41417
41408
  Yi as eu,
41418
41409
  gr as ev,
41419
41410
  Xe as ew,
41420
- kn as ex,
41411
+ Rn as ex,
41421
41412
  Qd as ey,
41422
41413
  Wu as ez,
41423
41414
  G as f,
@@ -41434,7 +41425,7 @@ export {
41434
41425
  Yg as f9,
41435
41426
  al as fA,
41436
41427
  hh as fB,
41437
- Bn as fC,
41428
+ jn as fC,
41438
41429
  Hu as fD,
41439
41430
  Xv as fE,
41440
41431
  Uw as fF,
@@ -41443,7 +41434,7 @@ export {
41443
41434
  ll as fI,
41444
41435
  nf as fJ,
41445
41436
  Ka as fK,
41446
- $n as fL,
41437
+ Nn as fL,
41447
41438
  cy as fM,
41448
41439
  uh as fN,
41449
41440
  cl as fO,
@@ -41454,10 +41445,10 @@ export {
41454
41445
  tu as fT,
41455
41446
  Ur as fU,
41456
41447
  q as fV,
41457
- hi as fW,
41448
+ di as fW,
41458
41449
  Ut as fX,
41459
41450
  eu as fY,
41460
- Wn as fZ,
41451
+ $n as fZ,
41461
41452
  rf as f_,
41462
41453
  sl as fa,
41463
41454
  sh as fb,
@@ -41471,10 +41462,10 @@ export {
41471
41462
  Ku as fj,
41472
41463
  Sw as fk,
41473
41464
  ht as fl,
41474
- Tn as fm,
41465
+ kn as fm,
41475
41466
  Rt as fn,
41476
41467
  co as fo,
41477
- oi as fp,
41468
+ ri as fp,
41478
41469
  ue as fq,
41479
41470
  Kg as fr,
41480
41471
  Cw as fs,
@@ -41496,25 +41487,25 @@ export {
41496
41487
  ns as g6,
41497
41488
  ft as g7,
41498
41489
  $r as g8,
41499
- di as g9,
41490
+ ui as g9,
41500
41491
  Ta as gA,
41501
41492
  Zd as gB,
41502
- ye as gC,
41493
+ ge as gC,
41503
41494
  Ct as gD,
41504
41495
  qr as gE,
41505
41496
  pf as gF,
41506
- Ln as gG,
41497
+ Dn as gG,
41507
41498
  Xr as gH,
41508
- An as gI,
41499
+ Tn as gI,
41509
41500
  gf as gJ,
41510
41501
  yy as gK,
41511
- Nn as gL,
41502
+ Un as gL,
41512
41503
  Sr as gM,
41513
41504
  _o as gN,
41514
41505
  Ti as gO,
41515
41506
  _y as gP,
41516
41507
  tn as gQ,
41517
- In as gR,
41508
+ En as gR,
41518
41509
  ix as gS,
41519
41510
  sx as gT,
41520
41511
  Or as gU,
@@ -41537,7 +41528,7 @@ export {
41537
41528
  Eo as gk,
41538
41529
  en as gl,
41539
41530
  uf as gm,
41540
- Vn as gn,
41531
+ Wn as gn,
41541
41532
  Pr as go,
41542
41533
  fl as gp,
41543
41534
  my as gq,
@@ -41567,7 +41558,7 @@ export {
41567
41558
  tt as hC,
41568
41559
  bt as hD,
41569
41560
  ir as hE,
41570
- Hn as hF,
41561
+ Vn as hF,
41571
41562
  Xa as hG,
41572
41563
  Fo as hH,
41573
41564
  Cy as hI,
@@ -41603,16 +41594,16 @@ export {
41603
41594
  Bg as hl,
41604
41595
  Pw as hm,
41605
41596
  Ow as hn,
41606
- Zt as ho,
41597
+ Jt as ho,
41607
41598
  Sf as hp,
41608
- ei as hq,
41599
+ ti as hq,
41609
41600
  gl as hr,
41610
41601
  vh as hs,
41611
41602
  wt as ht,
41612
41603
  Dr as hu,
41613
41604
  Cr as hv,
41614
41605
  jo as hw,
41615
- Dn as hx,
41606
+ In as hx,
41616
41607
  is as hy,
41617
41608
  sy as hz,
41618
41609
  kv as i,