@needle-tools/engine 4.7.0-next.2756168 → 4.7.0-next.4bd7749

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 (44) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/{needle-engine.bundle-S0N_qbSh.js → needle-engine.bundle-BGHUA0S1.js} +370 -366
  3. package/dist/{needle-engine.bundle-lLDHlwZU.umd.cjs → needle-engine.bundle-DQ8S9diA.umd.cjs} +30 -28
  4. package/dist/{needle-engine.bundle-C2wJAuPf.min.js → needle-engine.bundle-kBkeRoLs.min.js} +31 -29
  5. package/dist/needle-engine.js +2 -2
  6. package/dist/needle-engine.min.js +1 -1
  7. package/dist/needle-engine.umd.cjs +1 -1
  8. package/lib/engine/engine_context.js +1 -1
  9. package/lib/engine/engine_context.js.map +1 -1
  10. package/lib/engine/engine_three_utils.js +4 -0
  11. package/lib/engine/engine_three_utils.js.map +1 -1
  12. package/lib/engine/webcomponents/needle-engine.attributes.d.ts +1 -1
  13. package/lib/engine-components/Camera.js +1 -1
  14. package/lib/engine-components/Camera.js.map +1 -1
  15. package/lib/engine-components/CameraUtils.js +5 -3
  16. package/lib/engine-components/CameraUtils.js.map +1 -1
  17. package/lib/engine-components/Skybox.js +4 -4
  18. package/lib/engine-components/Skybox.js.map +1 -1
  19. package/lib/engine-components/postprocessing/Effects/Antialiasing.js +8 -1
  20. package/lib/engine-components/postprocessing/Effects/Antialiasing.js.map +1 -1
  21. package/lib/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusionN8.js +1 -1
  22. package/lib/engine-components/postprocessing/PostProcessingHandler.js.map +1 -1
  23. package/lib/engine-components/postprocessing/Volume.js +1 -1
  24. package/lib/engine-components/postprocessing/Volume.js.map +1 -1
  25. package/package.json +1 -1
  26. package/plugins/common/logger.js +321 -0
  27. package/plugins/types/userconfig.d.ts +6 -2
  28. package/plugins/vite/alias.js +7 -2
  29. package/plugins/vite/imports-logger.js +1 -1
  30. package/plugins/vite/index.js +4 -0
  31. package/plugins/vite/logger.client.js +262 -0
  32. package/plugins/vite/logger.js +101 -0
  33. package/plugins/vite/materialx.js +32 -0
  34. package/plugins/vite/transform.js +1 -0
  35. package/src/engine/engine_context.ts +1 -1
  36. package/src/engine/engine_three_utils.ts +3 -0
  37. package/src/engine/webcomponents/needle-engine.attributes.ts +1 -1
  38. package/src/engine-components/Camera.ts +1 -1
  39. package/src/engine-components/CameraUtils.ts +5 -3
  40. package/src/engine-components/Skybox.ts +5 -5
  41. package/src/engine-components/postprocessing/Effects/Antialiasing.ts +8 -1
  42. package/src/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusionN8.ts +1 -1
  43. package/src/engine-components/postprocessing/PostProcessingHandler.ts +1 -2
  44. package/src/engine-components/postprocessing/Volume.ts +1 -1
@@ -87,10 +87,10 @@ class fe {
87
87
  /** All currently registered Needle Engine contexts. Do not modify */
88
88
  r(fe, "Registered", []), r(fe, "_callbacks", {});
89
89
  const m1 = () => (o) => o;
90
- function rL(o) {
90
+ function aL(o) {
91
91
  return m1()(o);
92
92
  }
93
- function aL() {
93
+ function lL() {
94
94
  return !!S("debug");
95
95
  }
96
96
  class on {
@@ -146,7 +146,7 @@ function S(o) {
146
146
  return !1;
147
147
  }
148
148
  br = S("help");
149
- function lL(o, t) {
149
+ function cL(o, t) {
150
150
  const e = Nu();
151
151
  e.has(o) ? e.set(o, t) : e.append(o, t), document.location.search = e.toString();
152
152
  }
@@ -163,12 +163,12 @@ function g1(o, t, e) {
163
163
  function U0(o, t, e) {
164
164
  window.history.replaceState(e, o, "?" + t.toString());
165
165
  }
166
- function cL(o) {
166
+ function hL(o) {
167
167
  for (var t = "", e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", i = e.length, n = 0; n < o; n++)
168
168
  t += e.charAt(Math.floor(Math.random() * i));
169
169
  return t;
170
170
  }
171
- function hL(o, t) {
171
+ function dL(o, t) {
172
172
  return Math.floor(Math.random() * (t - o + 1)) + o;
173
173
  }
174
174
  const f_ = ["smol", "tiny", "giant", "interesting", "smart", "bright", "dull", "extreme", "beautiful", "pretty", "dark", "epic", "salty", "silly", "funny", "lame", "lazy", "loud", "lucky", "mad", "mean", "mighty", "mysterious", "nasty", "odd", "old", "powerful", "quiet", "rapid", "scary", "shiny", "shy", "silly", "smooth", "sour", "spicy", "stupid", "sweet", "tasty", "terrible", "ugly", "unusual", "vast", "wet", "wild", "witty", "wrong", "zany", "zealous", "zippy", "zombie", "zorro"], p_ = ["cat", "dog", "mouse", "pig", "cow", "horse", "sheep", "chicken", "duck", "goat", "panda", "tiger", "lion", "elephant", "monkey", "bird", "fish", "snake", "frog", "turtle", "hamster", "penguin", "kangaroo", "whale", "dolphin", "crocodile", "snail", "ant", "bee", "beetle", "butterfly", "dragon", "eagle", "fish", "giraffe", "lizard", "panda", "penguin", "rabbit", "snake", "spider", "tiger", "zebra"];
@@ -231,7 +231,7 @@ function Wu(o, t) {
231
231
  });
232
232
  }
233
233
  const zh = S("debugresolveurl"), b1 = "rel:";
234
- function dL(o, t) {
234
+ function uL(o, t) {
235
235
  return Jr(o, t);
236
236
  }
237
237
  function Jr(o, t) {
@@ -445,37 +445,37 @@ var Q;
445
445
  }
446
446
  o.getChromeVersion = F;
447
447
  })(Q || (Q = {}));
448
- function uL() {
449
- return Q.isDesktop();
450
- }
451
448
  function fL() {
452
- return Q.isMobileDevice();
449
+ return Q.isDesktop();
453
450
  }
454
451
  function pL() {
455
- return Q.isiPad();
452
+ return Q.isMobileDevice();
456
453
  }
457
454
  function mL() {
458
455
  return Q.isiPad();
459
456
  }
460
457
  function gL() {
461
- return Q.isAndroidDevice();
458
+ return Q.isiPad();
462
459
  }
463
460
  function yL() {
464
- return Q.isMozillaXR();
461
+ return Q.isAndroidDevice();
465
462
  }
466
463
  function _L() {
467
- return Q.isMacOS();
464
+ return Q.isMozillaXR();
468
465
  }
469
466
  function bL() {
470
- return Q.isiOS();
467
+ return Q.isMacOS();
471
468
  }
472
469
  function vL() {
473
- return Q.isSafari();
470
+ return Q.isiOS();
474
471
  }
475
472
  function wL() {
473
+ return Q.isSafari();
474
+ }
475
+ function xL() {
476
476
  return Q.isQuest();
477
477
  }
478
- async function xL() {
478
+ async function SL() {
479
479
  return Q.microphonePermissionsGranted();
480
480
  }
481
481
  const Eo = /* @__PURE__ */ new WeakMap();
@@ -635,7 +635,7 @@ const V0 = console.error, H0 = function(...o) {
635
635
  function M1(o) {
636
636
  Vc = !o, o ? console.error = H0 : console.error = V0;
637
637
  }
638
- function SL(o) {
638
+ function CL(o) {
639
639
  return M1(o);
640
640
  }
641
641
  function R1() {
@@ -696,7 +696,7 @@ function E1(o, t, e) {
696
696
  };
697
697
  wc.set(n, a), setTimeout(a, 1e4);
698
698
  }
699
- function CL() {
699
+ function PL() {
700
700
  W0 && console.log("Clearing messages");
701
701
  for (const o of wc.values())
702
702
  o == null || o.call(o);
@@ -985,12 +985,12 @@ function F1(o) {
985
985
  function pm(o, t) {
986
986
  o[fm] = t;
987
987
  }
988
- function PL(o, t, e) {
988
+ function OL(o, t, e) {
989
989
  const i = o.length(), n = t.length(), s = $.lerp(i, n, e);
990
990
  return o.lerp(t, e).normalize().multiplyScalar(s);
991
991
  }
992
992
  const tp = new W(), Q0 = new W().setFromAxisAngle(new w(0, 1, 0), Math.PI);
993
- function OL(o, t) {
993
+ function kL(o, t) {
994
994
  o.lookAt(t), o.quaternion.multiply(Q0);
995
995
  }
996
996
  function Vu(o, t, e = !0, i = !1) {
@@ -1007,7 +1007,7 @@ function Vu(o, t, e = !0, i = !1) {
1007
1007
  }
1008
1008
  e && (n.y = s.y), o.lookAt(n), Number.isNaN(o.quaternion.x) && o.quaternion.copy(tp);
1009
1009
  }
1010
- function kL(o, t, e, i = 1) {
1010
+ function ML(o, t, e, i = 1) {
1011
1011
  if (e) {
1012
1012
  const n = q(0, 0, 0), s = t.x / window.innerWidth * 2 - 1, a = -(t.y / window.innerHeight) * 2 + 1;
1013
1013
  n.set(
@@ -1082,7 +1082,7 @@ function Hc(o, t) {
1082
1082
  o.parent.getWorldScale(e), o.scale.copy(t), o.scale.divide(e);
1083
1083
  }
1084
1084
  const H1 = new w(), v_ = new W();
1085
- function ML(o) {
1085
+ function RL(o) {
1086
1086
  return Oe(o, v_), H1.set(0, 0, 1).applyQuaternion(v_);
1087
1087
  }
1088
1088
  const G1 = new on(() => new w(), 100), w_ = new W();
@@ -1117,7 +1117,7 @@ function mm(o, t = !0) {
1117
1117
  console.log(i + e.name + " <" + e.type + ">");
1118
1118
  }));
1119
1119
  }
1120
- function RL(o) {
1120
+ function TL(o) {
1121
1121
  let t = (o == null ? void 0 : o.name) || "";
1122
1122
  if (!o) return t;
1123
1123
  let e = o.parent;
@@ -1236,7 +1236,7 @@ let il = vn;
1236
1236
  function K1(o) {
1237
1237
  return il.copyTexture(o);
1238
1238
  }
1239
- function TL(o, t = !1) {
1239
+ function EL(o, t = !1) {
1240
1240
  return il.textureToCanvas(o, t);
1241
1241
  }
1242
1242
  function Z1(o) {
@@ -1279,7 +1279,7 @@ function Fi(o, t = void 0, e = void 0, i = void 0) {
1279
1279
  console.warn(`Object "${c.name}" has NaN values in position or scale.... will ignore it`, u, f);
1280
1280
  return;
1281
1281
  }
1282
- n.expandByObject(c, !0), c.children = d;
1282
+ c.geometry === null && (c.geometry = void 0), n.expandByObject(c, !0), c.children = d;
1283
1283
  }
1284
1284
  for (const d of c.children)
1285
1285
  a(d);
@@ -1618,7 +1618,7 @@ function z() {
1618
1618
  let o = _i();
1619
1619
  return o || (o = window.location.hostname.endsWith(".local-credentialless.webcontainer.io")), np = o, o;
1620
1620
  }
1621
- function EL(o) {
1621
+ function AL(o) {
1622
1622
  gm = o;
1623
1623
  }
1624
1624
  let ti, Oi = null, Gn = null, Wl = !1, C_ = null;
@@ -1804,11 +1804,11 @@ qo('if(!globalThis["NEEDLE_ENGINE_VERSION"]) globalThis["NEEDLE_ENGINE_VERSION"]
1804
1804
  qo('if(!globalThis["NEEDLE_ENGINE_GENERATOR"]) globalThis["NEEDLE_ENGINE_GENERATOR"] = "unknown";');
1805
1805
  qo('if(!globalThis["NEEDLE_PROJECT_BUILD_TIME"]) globalThis["NEEDLE_PROJECT_BUILD_TIME"] = "unknown";');
1806
1806
  qo('if(!globalThis["NEEDLE_PUBLIC_KEY"]) globalThis["NEEDLE_PUBLIC_KEY"] = "unknown";');
1807
- qo('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.7.0-alpha";');
1807
+ qo('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.7.0";');
1808
1808
  qo('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
1809
- qo('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Thu Jul 24 2025 10:53:04 GMT+0000 (Coordinated Universal Time)";');
1809
+ qo('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Mon Jul 28 2025 09:07:25 GMT+0000 (Coordinated Universal Time)";');
1810
1810
  qo('globalThis["__NEEDLE_PUBLIC_KEY__"] = "' + NEEDLE_PUBLIC_KEY + '";');
1811
- const es = "4.7.0-alpha", Tg = "undefined", av = "Thu Jul 24 2025 10:53:04 GMT+0000 (Coordinated Universal Time)";
1811
+ const es = "4.7.0", Tg = "undefined", av = "Mon Jul 28 2025 09:07:25 GMT+0000 (Coordinated Universal Time)";
1812
1812
  rv && console.log(`Engine version: ${es} (generator: ${Tg})
1813
1813
  Project built at ${av}`);
1814
1814
  const cc = NEEDLE_PUBLIC_KEY, zo = "needle_isActiveInHierarchy", Sa = "builtin_components", bd = "needle_editor_guid";
@@ -1853,7 +1853,7 @@ function Eg(o, t, e, i) {
1853
1853
  }
1854
1854
  }));
1855
1855
  }
1856
- function AL(o, t, e) {
1856
+ function IL(o, t, e) {
1857
1857
  const i = Ag(o, t);
1858
1858
  if (i)
1859
1859
  for (let n = i.length - 1; n >= 0; n--) {
@@ -1909,7 +1909,7 @@ const nl = [];
1909
1909
  function Ig(o) {
1910
1910
  nl.indexOf(o) === -1 && nl.push(o);
1911
1911
  }
1912
- function IL(o) {
1912
+ function LL(o) {
1913
1913
  const t = nl.indexOf(o);
1914
1914
  t !== -1 && nl.splice(t, 1);
1915
1915
  }
@@ -1917,7 +1917,7 @@ const sl = [];
1917
1917
  function uv(o) {
1918
1918
  sl.indexOf(o) === -1 && sl.push(o);
1919
1919
  }
1920
- function LL(o) {
1920
+ function DL(o) {
1921
1921
  const t = sl.indexOf(o);
1922
1922
  t !== -1 && sl.splice(t, 1);
1923
1923
  }
@@ -2036,7 +2036,7 @@ class Nh extends KeyboardEvent {
2036
2036
  super.stopImmediatePropagation(), (e = this.source) == null || e.stopImmediatePropagation();
2037
2037
  }
2038
2038
  }
2039
- class DL {
2039
+ class jL {
2040
2040
  constructor(t) {
2041
2041
  r(this, "key");
2042
2042
  r(this, "keyType");
@@ -3512,10 +3512,10 @@ function MP(o) {
3512
3512
  return typeof o.guid == "function" ? o.guid() : null;
3513
3513
  }
3514
3514
  let Dg;
3515
- function jL() {
3515
+ function BL() {
3516
3516
  return Dg;
3517
3517
  }
3518
- function BL(o) {
3518
+ function FL(o) {
3519
3519
  Dg = o;
3520
3520
  }
3521
3521
  function RP(o, t) {
@@ -3614,7 +3614,7 @@ const D_ = "https://urls.needle.tools/default-networking-backend/index";
3614
3614
  let hi = "wss://networking.needle.tools/socket";
3615
3615
  const Ci = !!S("debugnet"), Vh = !!(Ci || S("debugowner")), Hh = S("debugnetbin");
3616
3616
  var IP = /* @__PURE__ */ ((o) => (o.ConnectionInfo = "connection-start-info", o))(IP || {}), se = /* @__PURE__ */ ((o) => (o.Join = "join-room", o.Leave = "leave-room", o.JoinedRoom = "joined-room", o.LeftRoom = "left-room", o.UserJoinedRoom = "user-joined-room", o.UserLeftRoom = "user-left-room", o.RoomStateSent = "room-state-sent", o))(se || {});
3617
- class FL {
3617
+ class zL {
3618
3618
  constructor() {
3619
3619
  r(this, "room");
3620
3620
  // room name
@@ -3624,13 +3624,13 @@ class FL {
3624
3624
  }
3625
3625
  // connection ids
3626
3626
  }
3627
- class zL {
3627
+ class UL {
3628
3628
  constructor() {
3629
3629
  r(this, "room");
3630
3630
  }
3631
3631
  // room name
3632
3632
  }
3633
- class UL {
3633
+ class NL {
3634
3634
  constructor() {
3635
3635
  r(this, "userId");
3636
3636
  }
@@ -6095,7 +6095,7 @@ var Gd;
6095
6095
  let h = !1, d = !1, u = null;
6096
6096
  const f = Symbol("Needle:MeshBVH-Worker"), m = Symbol("Needle:MeshBVH-CanUseWorker"), g = [], _ = [];
6097
6097
  function y() {
6098
- h = !0, d = !0, Promise.resolve().then(() => ZI).then((b) => {
6098
+ h = !0, d = !0, Promise.resolve().then(() => JI).then((b) => {
6099
6099
  u = b.GenerateMeshBVHWorker;
6100
6100
  }).catch((b) => {
6101
6101
  (ki || z()) && console.warn("Failed to setup mesh bvh worker");
@@ -6169,7 +6169,7 @@ function vv() {
6169
6169
  }
6170
6170
  let ia = !0;
6171
6171
  qu === 0 && (ia = !1);
6172
- function NL(o) {
6172
+ function $L(o) {
6173
6173
  ia = o;
6174
6174
  }
6175
6175
  function JP() {
@@ -6180,7 +6180,7 @@ function xv(o, t) {
6180
6180
  o && (o[wv] = t, Fr && console.warn("Set disposable", t, o));
6181
6181
  }
6182
6182
  const Sv = Symbol("disposed");
6183
- function $L(o) {
6183
+ function WL(o) {
6184
6184
  return o[Sv] === !0;
6185
6185
  }
6186
6186
  function Ie(o) {
@@ -6237,7 +6237,7 @@ function Cv(o, t, e = null, i) {
6237
6237
  i.has(s) || (e == null ? void 0 : e.call(null, s)) !== !1 && (i.add(s), t && Cv(s, !0, e, i));
6238
6238
  return i;
6239
6239
  }
6240
- function WL(o) {
6240
+ function VL(o) {
6241
6241
  return o[hc];
6242
6242
  }
6243
6243
  const Fr = S("debugresourceusers") || S("debugmemory"), qc = Symbol("needle-resource-users"), hc = Symbol("needle-resource-users-count");
@@ -6597,7 +6597,7 @@ function dO(o) {
6597
6597
  e && rn(e);
6598
6598
  });
6599
6599
  }
6600
- class VL {
6600
+ class HL {
6601
6601
  constructor(t, e, i) {
6602
6602
  /** File to download */
6603
6603
  r(this, "filename");
@@ -6733,7 +6733,7 @@ class _O {
6733
6733
  return null;
6734
6734
  }
6735
6735
  }
6736
- const bO = Symbol("BuiltInType"), M = new _O(), HL = function(o) {
6736
+ const bO = Symbol("BuiltInType"), M = new _O(), GL = function(o) {
6737
6737
  M.get(o.name) || M.add(o.name, o);
6738
6738
  }, zg = S("debugresolvedependencies"), vO = ["/extensions/", "extensions/"], wO = [
6739
6739
  { prefix: "/nodes/", dependencyName: "node" },
@@ -8454,7 +8454,7 @@ function* Gv(o, t = null) {
8454
8454
  for (; e.time - i < o; )
8455
8455
  yield;
8456
8456
  }
8457
- function* GL(o) {
8457
+ function* qL(o) {
8458
8458
  for (let t = 0; t < o; t++)
8459
8459
  yield;
8460
8460
  }
@@ -10515,8 +10515,8 @@ const Zy = class Zy extends HTMLElement {
10515
10515
  lh = new WeakMap();
10516
10516
  let su = Zy;
10517
10517
  customElements.get(vr) || customElements.define(vr, su);
10518
- const nt = S("debugcontext"), Sk = S("stats"), Ck = S("debugactive"), Pk = S("debugframerate"), Ok = S("debugcoroutine"), XL = {};
10519
- class QL {
10518
+ const nt = S("debugcontext"), Sk = S("stats"), Ck = S("debugactive"), Pk = S("debugframerate"), Ok = S("debugcoroutine"), QL = {};
10519
+ class YL {
10520
10520
  constructor() {
10521
10521
  r(this, "name");
10522
10522
  /** for debugging only */
@@ -11835,7 +11835,7 @@ function mb(o) {
11835
11835
  const No = S("debughotreload");
11836
11836
  let Yc = !1;
11837
11837
  const kc = /* @__PURE__ */ new Map();
11838
- function YL() {
11838
+ function KL() {
11839
11839
  return Yc;
11840
11840
  }
11841
11841
  function gb() {
@@ -11878,7 +11878,7 @@ function jk() {
11878
11878
  o.apply(console, t);
11879
11879
  };
11880
11880
  }
11881
- function KL(o) {
11881
+ function ZL(o) {
11882
11882
  No && console.log("[HMR] Apply changes", o, Object.keys(o)), jk();
11883
11883
  for (const t of Object.keys(o))
11884
11884
  try {
@@ -12634,7 +12634,7 @@ const So = class So {
12634
12634
  };
12635
12635
  r(So, "_forward", new w()), r(So, "_right", new w()), r(So, "_up", new w());
12636
12636
  let j = So;
12637
- const ZL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12637
+ const JL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12638
12638
  __proto__: null,
12639
12639
  Behaviour: j,
12640
12640
  Component: j,
@@ -13000,7 +13000,7 @@ function Nk(o) {
13000
13000
  const t = o[kd];
13001
13001
  return t !== void 0 && t.size > 0;
13002
13002
  }
13003
- class e2 {
13003
+ class t2 {
13004
13004
  constructor() {
13005
13005
  r(this, "_context");
13006
13006
  }
@@ -14324,10 +14324,10 @@ Qg([
14324
14324
  function Zk(o, t) {
14325
14325
  return eo(o, me.ContextCreated, t), () => Xo(o, me.ContextCreated);
14326
14326
  }
14327
- function t2(o, t) {
14327
+ function i2(o, t) {
14328
14328
  return eo(o, me.ContextClearing, t), () => Xo(o, me.ContextClearing);
14329
14329
  }
14330
- function i2(o, t) {
14330
+ function n2(o, t) {
14331
14331
  return eo(o, me.ContextDestroying, t), () => Xo(o, me.ContextDestroying);
14332
14332
  }
14333
14333
  function Jk(o, t) {
@@ -14336,10 +14336,10 @@ function Jk(o, t) {
14336
14336
  function eM(o, t) {
14337
14337
  return eo(o, Re.Update, t), () => Xo(o, Re.Update);
14338
14338
  }
14339
- function n2(o, t) {
14339
+ function s2(o, t) {
14340
14340
  return eo(o, Re.OnBeforeRender, t), () => Xo(o, Re.OnBeforeRender);
14341
14341
  }
14342
- function s2(o, t) {
14342
+ function o2(o, t) {
14343
14343
  return eo(o, Re.OnAfterRender, t), () => Xo(o, Re.OnAfterRender);
14344
14344
  }
14345
14345
  let Nr = class {
@@ -14550,7 +14550,7 @@ function tM(o, t, e, i, n) {
14550
14550
  };
14551
14551
  }
14552
14552
  }
14553
- const r2 = function(o) {
14553
+ const a2 = function(o) {
14554
14554
  return function(t, e, i) {
14555
14555
  let n = "";
14556
14556
  typeof e == "string" ? n = e : n = e.name;
@@ -15378,7 +15378,7 @@ class rM extends dn {
15378
15378
  return t.a !== void 0 ? { r: t.r, g: t.g, b: t.b, a: t.a } : { r: t.r, g: t.g, b: t.b };
15379
15379
  }
15380
15380
  }
15381
- const a2 = new rM();
15381
+ const l2 = new rM();
15382
15382
  class aM extends dn {
15383
15383
  constructor() {
15384
15384
  super([Ft], "EulerSerializer");
@@ -15395,7 +15395,7 @@ class aM extends dn {
15395
15395
  return { x: t.x, y: t.y, z: t.z, order: t.order };
15396
15396
  }
15397
15397
  }
15398
- const l2 = new aM();
15398
+ const c2 = new aM();
15399
15399
  class lM extends dn {
15400
15400
  constructor() {
15401
15401
  super(L, "ObjectSerializer");
@@ -15576,7 +15576,7 @@ Could not find method ${h.method} on object ${u.name}`, u, typeof u[h.method]);
15576
15576
  // };
15577
15577
  // }
15578
15578
  }
15579
- const c2 = new dM(), ou = /* @__PURE__ */ new WeakMap(), uM = Fe.prototype.clone;
15579
+ const h2 = new dM(), ou = /* @__PURE__ */ new WeakMap(), uM = Fe.prototype.clone;
15580
15580
  Fe.prototype.clone = function() {
15581
15581
  const o = uM.call(this);
15582
15582
  return ou.has(o) || ou.set(o, this), o;
@@ -16943,7 +16943,7 @@ const Vt = (Sn = class extends j {
16943
16943
  const s = `[Camera] Apply ClearFlags: ${$r[this._clearFlags]} - "${this.name}"`;
16944
16944
  console.debug(s);
16945
16945
  }
16946
- const i = this.context.domElement.getAttribute("background-image") || this.context.domElement.getAttribute("background-color") || this.context.domElement.getAttribute("skybox-image");
16946
+ const i = this.context.domElement.getAttribute("background-image") || this.context.domElement.getAttribute("background-color");
16947
16947
  switch (this._clearFlags) {
16948
16948
  case 0:
16949
16949
  return;
@@ -17568,7 +17568,7 @@ var ey = /* @__PURE__ */ ((o) => (o[o.None = 0] = "None", o[o.DontExport = 1] =
17568
17568
  function TM(o) {
17569
17569
  return o && o.isComponent;
17570
17570
  }
17571
- const h2 = Symbol("object"), Sp = new on(() => new w(), 20);
17571
+ const d2 = Symbol("object"), Sp = new on(() => new w(), 20);
17572
17572
  class EM {
17573
17573
  /** @internal */
17574
17574
  constructor(t, e, i, n, s, a) {
@@ -19904,7 +19904,7 @@ const Ru = class Ru {
19904
19904
  r(Ru, "geometry", new Jn().setFromPoints([new w(0, 0, 0), new w(0, -1, 0)]));
19905
19905
  let kb = Ru;
19906
19906
  var sR = /* @__PURE__ */ ((o) => (o.File_Spawned = "file-spawned", o))(sR || {});
19907
- class d2 {
19907
+ class u2 {
19908
19908
  constructor(t, e, i, n, s, a, l, c, h) {
19909
19909
  r(this, "guid");
19910
19910
  r(this, "file_name");
@@ -21370,10 +21370,10 @@ let du;
21370
21370
  const MR = import("./three-examples-B50TT3Iu.js").then((o) => o.GLTFLoaderAnimationPointer).then(async (o) => (du = o.GLTFAnimationPointerExtension, du)).catch((o) => {
21371
21371
  console.warn("Failed to import GLTFLoaderAnimationPointer. Please use @needle-tools/three for full KHR_animation support", o);
21372
21372
  }), Gr = new Array();
21373
- function u2(o) {
21373
+ function f2(o) {
21374
21374
  Gr.includes(o) || Gr.push(o);
21375
21375
  }
21376
- function f2(o) {
21376
+ function p2(o) {
21377
21377
  const t = Gr.indexOf(o);
21378
21378
  t >= 0 && Gr.splice(t, 1);
21379
21379
  }
@@ -33399,6 +33399,7 @@ var qE = Object.defineProperty, XE = (o, t, e, i) => {
33399
33399
  (a = o[s]) && (n = a(t, e, n) || n);
33400
33400
  return n && qE(t, e, n), n;
33401
33401
  };
33402
+ const QE = S("debugpost");
33402
33403
  class Mf extends ft {
33403
33404
  constructor() {
33404
33405
  super(...arguments);
@@ -33409,14 +33410,15 @@ class Mf extends ft {
33409
33410
  }
33410
33411
  // 2 is HIGH: https://github.com/pmndrs/postprocessing/blob/main/src/enums/SMAAPreset.js#L14
33411
33412
  onCreateEffect() {
33413
+ var i;
33412
33414
  const e = new D.POSTPROCESSING.MODULE.SMAAEffect({
33413
- preset: D.POSTPROCESSING.MODULE.SMAAPreset.HIGH,
33415
+ preset: ((i = this.preset) == null ? void 0 : i.value) ?? D.POSTPROCESSING.MODULE.SMAAPreset.HIGH,
33414
33416
  edgeDetectionMode: D.POSTPROCESSING.MODULE.EdgeDetectionMode.LUMA
33415
33417
  // Keep predication mode disabled (default) since it looks better
33416
33418
  // predicationMode: MODULES.POSTPROCESSING.MODULE.PredicationMode.DEPTH,
33417
33419
  });
33418
- return this.preset.onValueChanged = (i) => {
33419
- e.applyPreset(i);
33420
+ return this.preset.onValueChanged = (n) => {
33421
+ QE && console.log("Antialiasing preset changed to", n), e.applyPreset(n);
33420
33422
  }, e;
33421
33423
  }
33422
33424
  }
@@ -33424,10 +33426,10 @@ XE([
33424
33426
  p(N)
33425
33427
  ], Mf.prototype, "preset");
33426
33428
  Dn("Antialiasing", Mf);
33427
- var QE = Object.defineProperty, Ly = (o, t, e, i) => {
33429
+ var YE = Object.defineProperty, Ly = (o, t, e, i) => {
33428
33430
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
33429
33431
  (a = o[s]) && (n = a(t, e, n) || n);
33430
- return n && QE(t, e, n), n;
33432
+ return n && YE(t, e, n), n;
33431
33433
  }, Er;
33432
33434
  const Rf = (Er = class extends ft {
33433
33435
  constructor() {
@@ -33491,10 +33493,10 @@ Ly([
33491
33493
  ], Rf.prototype, "scatter");
33492
33494
  let Dy = Rf;
33493
33495
  Dn("Bloom", Dy);
33494
- var YE = Object.defineProperty, KE = (o, t, e, i) => {
33496
+ var KE = Object.defineProperty, ZE = (o, t, e, i) => {
33495
33497
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
33496
33498
  (a = o[s]) && (n = a(t, e, n) || n);
33497
- return n && YE(t, e, n), n;
33499
+ return n && KE(t, e, n), n;
33498
33500
  };
33499
33501
  class Tf extends ft {
33500
33502
  constructor() {
@@ -33511,7 +33513,7 @@ class Tf extends ft {
33511
33513
  }, e;
33512
33514
  }
33513
33515
  }
33514
- KE([
33516
+ ZE([
33515
33517
  p(N)
33516
33518
  ], Tf.prototype, "intensity");
33517
33519
  Dn("ChromaticAberration", Tf);
@@ -33533,7 +33535,7 @@ function Qp(o) {
33533
33535
  return t0.has(o) || (t0.set(o, !0), console.warn("[Postprocessing] Unknown tone mapping mode", o)), Ja;
33534
33536
  }
33535
33537
  }
33536
- function ZE(o) {
33538
+ function JE(o) {
33537
33539
  switch (o) {
33538
33540
  case xg:
33539
33541
  return 0;
@@ -33565,10 +33567,10 @@ function Id(o) {
33565
33567
  return D.POSTPROCESSING.MODULE.ToneMappingMode.LINEAR;
33566
33568
  }
33567
33569
  }
33568
- var JE = Object.defineProperty, vx = (o, t, e, i) => {
33570
+ var eA = Object.defineProperty, vx = (o, t, e, i) => {
33569
33571
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
33570
33572
  (a = o[s]) && (n = a(t, e, n) || n);
33571
- return n && JE(t, e, n), n;
33573
+ return n && eA(t, e, n), n;
33572
33574
  };
33573
33575
  const Yp = S("debugpost");
33574
33576
  class Yr extends ft {
@@ -33596,7 +33598,7 @@ class Yr extends ft {
33596
33598
  onCreateEffect() {
33597
33599
  var n;
33598
33600
  if (this.mode.isInitialized == !1) {
33599
- const s = ZE(this.context.renderer.toneMapping);
33601
+ const s = JE(this.context.renderer.toneMapping);
33600
33602
  Yp && console.log("[PostProcessing] Initializing ToneMapping mode to renderer.toneMapping", this.context.renderer.toneMapping + " → " + s), this.mode.initialize(s);
33601
33603
  }
33602
33604
  (n = this._tonemappingEffect) == null || n.dispose();
@@ -33628,10 +33630,10 @@ vx([
33628
33630
  p(N)
33629
33631
  ], Yr.prototype, "exposure");
33630
33632
  Dn("Tonemapping", Yr);
33631
- var eA = Object.defineProperty, Ef = (o, t, e, i) => {
33633
+ var tA = Object.defineProperty, Ef = (o, t, e, i) => {
33632
33634
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
33633
33635
  (a = o[s]) && (n = a(t, e, n) || n);
33634
- return n && eA(t, e, n), n;
33636
+ return n && tA(t, e, n), n;
33635
33637
  };
33636
33638
  class ca extends ft {
33637
33639
  constructor() {
@@ -33681,12 +33683,12 @@ Ef([
33681
33683
  p(N)
33682
33684
  ], ca.prototype, "saturation");
33683
33685
  Dn("ColorAdjustments", ca);
33684
- var tA = Object.defineProperty, ha = (o, t, e, i) => {
33686
+ var iA = Object.defineProperty, ha = (o, t, e, i) => {
33685
33687
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
33686
33688
  (a = o[s]) && (n = a(t, e, n) || n);
33687
- return n && tA(t, e, n), n;
33689
+ return n && iA(t, e, n), n;
33688
33690
  };
33689
- const iA = S("debugpost");
33691
+ const nA = S("debugpost");
33690
33692
  class ps extends ft {
33691
33693
  constructor() {
33692
33694
  super(...arguments);
@@ -33714,7 +33716,7 @@ class ps extends ft {
33714
33716
  }
33715
33717
  onCreateEffect() {
33716
33718
  if (this.mode === 0) {
33717
- iA && console.warn("DepthOfField: Mode is set to Off");
33719
+ nA && console.warn("DepthOfField: Mode is set to Off");
33718
33720
  return;
33719
33721
  }
33720
33722
  const e = new D.POSTPROCESSING.MODULE.DepthOfFieldEffect(this.context.mainCamera, {
@@ -33765,10 +33767,10 @@ class yu extends ft {
33765
33767
  return this.effect;
33766
33768
  }
33767
33769
  }
33768
- var nA = Object.defineProperty, sA = (o, t, e, i) => {
33770
+ var sA = Object.defineProperty, oA = (o, t, e, i) => {
33769
33771
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
33770
33772
  (a = o[s]) && (n = a(t, e, n) || n);
33771
- return n && nA(t, e, n), n;
33773
+ return n && sA(t, e, n), n;
33772
33774
  };
33773
33775
  class Af extends ft {
33774
33776
  constructor() {
@@ -33785,14 +33787,14 @@ class Af extends ft {
33785
33787
  }, e;
33786
33788
  }
33787
33789
  }
33788
- sA([
33790
+ oA([
33789
33791
  p(N)
33790
33792
  ], Af.prototype, "granularity");
33791
33793
  Dn("PixelationEffect", Af);
33792
- var oA = Object.defineProperty, Rh = (o, t, e, i) => {
33794
+ var rA = Object.defineProperty, Rh = (o, t, e, i) => {
33793
33795
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
33794
33796
  (a = o[s]) && (n = a(t, e, n) || n);
33795
- return n && oA(t, e, n), n;
33797
+ return n && rA(t, e, n), n;
33796
33798
  };
33797
33799
  class sr extends ft {
33798
33800
  constructor() {
@@ -33860,12 +33862,12 @@ Rh([
33860
33862
  p(N)
33861
33863
  ], sr.prototype, "luminanceInfluence");
33862
33864
  Dn("ScreenSpaceAmbientOcclusion", sr);
33863
- var rA = Object.defineProperty, da = (o, t, e, i) => {
33865
+ var aA = Object.defineProperty, da = (o, t, e, i) => {
33864
33866
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
33865
33867
  (a = o[s]) && (n = a(t, e, n) || n);
33866
- return n && rA(t, e, n), n;
33868
+ return n && aA(t, e, n), n;
33867
33869
  };
33868
- const aA = S("debugN8AO");
33870
+ const lA = S("debugN8AO");
33869
33871
  var lg = /* @__PURE__ */ ((o) => (o[o.Performance = 0] = "Performance", o[o.Low = 1] = "Low", o[o.Medium = 2] = "Medium", o[o.High = 3] = "High", o[o.Ultra = 4] = "Ultra", o))(lg || {});
33870
33872
  class ms extends ft {
33871
33873
  constructor() {
@@ -33895,11 +33897,11 @@ class ms extends ft {
33895
33897
  i,
33896
33898
  n
33897
33899
  );
33898
- s.name = "SSAO N8";
33900
+ s.name = "SSAO_N8";
33899
33901
  const a = lg[this.quality];
33900
33902
  s.setQualityMode(a), s.configuration.transparencyAware = !1;
33901
33903
  const l = new ns(i, n);
33902
- return s.configuration.beautyRenderTarget = l, s.configuration.autoRenderBeauty = !1, s.configuration.gammaCorrection = this.gammaCorrection, s.configuration.screenSpaceRadius = this.screenspaceRadius, aA && (s.enableDebugMode(), console.log(s), setInterval(() => {
33904
+ return s.configuration.beautyRenderTarget = l, s.configuration.autoRenderBeauty = !1, s.configuration.gammaCorrection = this.gammaCorrection, s.configuration.screenSpaceRadius = this.screenspaceRadius, lA && (s.enableDebugMode(), console.log(s), setInterval(() => {
33903
33905
  console.log("SSAO", s.lastTime);
33904
33906
  }, 1e3), setInterval(() => {
33905
33907
  console.log("SSAO", s.enabled, { ssao: s, autoRenderBeauty: s.configuration.autoRenderBeauty });
@@ -33939,10 +33941,10 @@ da([
33939
33941
  p()
33940
33942
  ], ms.prototype, "quality");
33941
33943
  Dn("ScreenSpaceAmbientOcclusionN8", ms);
33942
- var lA = Object.defineProperty, cA = Object.getOwnPropertyDescriptor, wx = (o, t, e, i) => {
33943
- for (var n = cA(t, e), s = o.length - 1, a; s >= 0; s--)
33944
+ var cA = Object.defineProperty, hA = Object.getOwnPropertyDescriptor, wx = (o, t, e, i) => {
33945
+ for (var n = hA(t, e), s = o.length - 1, a; s >= 0; s--)
33944
33946
  (a = o[s]) && (n = a(t, e, n) || n);
33945
- return n && lA(t, e, n), n;
33947
+ return n && cA(t, e, n), n;
33946
33948
  };
33947
33949
  class If extends ft {
33948
33950
  constructor() {
@@ -33956,7 +33958,7 @@ class If extends ft {
33956
33958
  return "Sharpening";
33957
33959
  }
33958
33960
  onCreateEffect() {
33959
- return this._effect ?? (this._effect = new (hA())()), this.effect;
33961
+ return this._effect ?? (this._effect = new (dA())()), this.effect;
33960
33962
  }
33961
33963
  get effect() {
33962
33964
  return this._effect;
@@ -33987,7 +33989,7 @@ wx([
33987
33989
  wx([
33988
33990
  p()
33989
33991
  ], If.prototype, "radius");
33990
- function hA() {
33992
+ function dA() {
33991
33993
  const o = `
33992
33994
  void mainSupport() {
33993
33995
  vUv = uv;
@@ -34049,10 +34051,10 @@ function hA() {
34049
34051
  }
34050
34052
  return e;
34051
34053
  }
34052
- var dA = Object.defineProperty, Ll = (o, t, e, i) => {
34054
+ var uA = Object.defineProperty, Ll = (o, t, e, i) => {
34053
34055
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
34054
34056
  (a = o[s]) && (n = a(t, e, n) || n);
34055
- return n && dA(t, e, n), n;
34057
+ return n && uA(t, e, n), n;
34056
34058
  };
34057
34059
  class ao extends ft {
34058
34060
  constructor() {
@@ -34100,10 +34102,10 @@ Ll([
34100
34102
  p(N)
34101
34103
  ], ao.prototype, "resolutionScale");
34102
34104
  Dn("TiltShiftEffect", ao);
34103
- var uA = Object.defineProperty, jy = (o, t, e, i) => {
34105
+ var fA = Object.defineProperty, jy = (o, t, e, i) => {
34104
34106
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
34105
34107
  (a = o[s]) && (n = a(t, e, n) || n);
34106
- return n && uA(t, e, n), n;
34108
+ return n && fA(t, e, n), n;
34107
34109
  };
34108
34110
  class Dl extends ft {
34109
34111
  constructor() {
@@ -34379,10 +34381,10 @@ class xx {
34379
34381
  }
34380
34382
  }
34381
34383
  }
34382
- var fA = Object.defineProperty, Sx = (o, t, e, i) => {
34384
+ var pA = Object.defineProperty, Sx = (o, t, e, i) => {
34383
34385
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
34384
34386
  (a = o[s]) && (n = a(t, e, n) || n);
34385
- return n && fA(t, e, n), n;
34387
+ return n && pA(t, e, n), n;
34386
34388
  };
34387
34389
  const mr = S("debugpost");
34388
34390
  class Th extends j {
@@ -34463,7 +34465,9 @@ class Th extends j {
34463
34465
  if (!this.context.isInXR && (this.context.mainCamera && this._isDirty && this.apply(), this.context.composer && this._postprocessing && this._postprocessing.composer === this.context.composer)) {
34464
34466
  if (this.context.renderer.getContext().isContextLost() && this.context.renderer.forceContextRestore(), this.context.composer.getRenderer() !== this.context.renderer && this.context.composer.setRenderer(this.context.renderer), this.context.composer.setMainScene(this.context.scene), this.multisampling === "auto")
34465
34467
  if (this._postprocessing && this._postprocessing.hasSmaaEffect)
34466
- this._postprocessing.multisampling !== 0 && (this._postprocessing.multisampling = 0, (mr || z()) && console.warn("[PostProcessing] Disabling multisampling you're using SMAA and have set the 'multisampling: auto' on your PostprocessingManager/Volume component. If you need anti-aliasing, consider adding an Antialiasing component or SMAA effect to the PostprocessingManager."));
34468
+ this._postprocessing.multisampling !== 0 && (this._postprocessing.multisampling = 0, (mr || z()) && console.log(`[PostProcessing] multisampling is disabled because it's set to 'auto' on your PostprocessingManager/Volume component that also has an SMAA effect.
34469
+
34470
+ If you need multisampling consider changing 'auto' to a fixed value (e.g. 4).`));
34467
34471
  else {
34468
34472
  const e = this.context.time.realtimeSinceStartup - this._multisampleAutoChangeTime;
34469
34473
  if (this.context.time.realtimeSinceStartup - this._componentEnabledTime > 2 && e > 0.5) {
@@ -34573,15 +34577,15 @@ Sx([
34573
34577
  const yd = /* @__PURE__ */ new Map();
34574
34578
  LE(Th);
34575
34579
  async function By(o) {
34576
- const { NeedleEngineWebComponent: t } = await Promise.resolve().then(() => NI);
34580
+ const { NeedleEngineWebComponent: t } = await Promise.resolve().then(() => $I);
34577
34581
  t.observedAttributes.includes(o) || t.observedAttributes.push(o);
34578
34582
  }
34579
- var pA = Object.defineProperty, Ot = (o, t, e, i) => {
34583
+ var mA = Object.defineProperty, Ot = (o, t, e, i) => {
34580
34584
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
34581
34585
  (a = o[s]) && (n = a(t, e, n) || n);
34582
- return n && pA(t, e, n), n;
34586
+ return n && mA(t, e, n), n;
34583
34587
  };
34584
- const It = S("debugsceneswitcher"), mA = S("sceneswitcher:clearscene"), Ld = "scene";
34588
+ const It = S("debugsceneswitcher"), gA = S("sceneswitcher:clearscene"), Ld = "scene";
34585
34589
  By(Ld);
34586
34590
  const po = Promise.resolve(!1);
34587
34591
  class lt extends j {
@@ -34708,7 +34712,7 @@ class lt extends j {
34708
34712
  }
34709
34713
  })), this._engineElementOverserver.observe(this.context.domElement, {
34710
34714
  attributes: !0
34711
- }), this._preloadScheduler || (this._preloadScheduler = new gA(this)), this._preloadScheduler.maxLoadAhead = this.preloadNext, this._preloadScheduler.maxLoadBehind = this.preloadPrevious, this._preloadScheduler.maxConcurrent = this.preloadConcurrent, this._preloadScheduler.begin(2e3), this.autoLoadFirstScene && this._currentIndex === -1 && !await this.tryLoadFromQueryParam()) {
34715
+ }), this._preloadScheduler || (this._preloadScheduler = new yA(this)), this._preloadScheduler.maxLoadAhead = this.preloadNext, this._preloadScheduler.maxLoadBehind = this.preloadPrevious, this._preloadScheduler.maxConcurrent = this.preloadConcurrent, this._preloadScheduler.begin(2e3), this.autoLoadFirstScene && this._currentIndex === -1 && !await this.tryLoadFromQueryParam()) {
34712
34716
  const e = this.context.domElement.getAttribute(Ld);
34713
34717
  try {
34714
34718
  (e === null || !await this.trySelectSceneFromValue(e)) && this._currentIndex === -1 && this.select(0);
@@ -34883,7 +34887,7 @@ class lt extends j {
34883
34887
  if (!e.asset)
34884
34888
  return It && console.warn("Failed loading scene:", e), !1;
34885
34889
  if (this._currentIndex === i) {
34886
- if (It && console.log("ADD", e.url), this._currentScene = e, mA) {
34890
+ if (It && console.log("ADD", e.url), this._currentScene = e, gA) {
34887
34891
  const m = ((a = this.context.mainCameraComponent) == null ? void 0 : a.gameObject) || this.context.mainCamera;
34888
34892
  m == null || m.removeFromParent();
34889
34893
  const g = this.gameObject.removeFromParent();
@@ -35060,7 +35064,7 @@ function i0(o) {
35060
35064
  const t = o.split("/").pop(), e = t == null ? void 0 : t.split(".").shift();
35061
35065
  return e != null && e.length ? e : o;
35062
35066
  }
35063
- class gA {
35067
+ class yA {
35064
35068
  /**
35065
35069
  * Creates a new PreLoadScheduler instance
35066
35070
  * @param rooms The SceneSwitcher that this scheduler belongs to
@@ -35103,7 +35107,7 @@ class gA {
35103
35107
  const d = c ? e + i : e - i;
35104
35108
  if (!(d < 0) && !(d < 0 || d >= s.length) && !this._loadTasks.some((u) => u.index === d)) {
35105
35109
  const u = s[d];
35106
- It && console.log("Preload scene", { roomIndex: d, searchForward: c, lastRoom: e, currentIndex: this._switcher.currentIndex, tasks: this._loadTasks.length }, u == null ? void 0 : u.url), new yA(d, u, this._loadTasks);
35110
+ It && console.log("Preload scene", { roomIndex: d, searchForward: c, lastRoom: e, currentIndex: this._switcher.currentIndex, tasks: this._loadTasks.length }, u == null ? void 0 : u.url), new _A(d, u, this._loadTasks);
35107
35111
  }
35108
35112
  }, 200);
35109
35113
  }
@@ -35133,7 +35137,7 @@ class gA {
35133
35137
  return !0;
35134
35138
  }
35135
35139
  }
35136
- class yA {
35140
+ class _A {
35137
35141
  /**
35138
35142
  * Creates a new LoadTask and begins loading immediately
35139
35143
  * @param index The index of the scene in the scenes array
@@ -35158,7 +35162,7 @@ class yA {
35158
35162
  t >= 0 && this.tasks.splice(t, 1);
35159
35163
  }
35160
35164
  }
35161
- function _A() {
35165
+ function bA() {
35162
35166
  return new Promise((o, t) => {
35163
35167
  const i = () => {
35164
35168
  i != null && (document.removeEventListener("pointerdown", i), document.removeEventListener("click", i), document.removeEventListener("dragstart", i), document.removeEventListener("touchstart", i), o());
@@ -35166,13 +35170,13 @@ function _A() {
35166
35170
  document.addEventListener("pointerdown", i), document.addEventListener("click", i), document.addEventListener("dragstart", i), document.addEventListener("touchstart", i);
35167
35171
  });
35168
35172
  }
35169
- async function bA(o) {
35170
- await _A(), o();
35173
+ async function vA(o) {
35174
+ await bA(), o();
35171
35175
  }
35172
- var vA = Object.defineProperty, wA = Object.getOwnPropertyDescriptor, Hi = (o, t, e, i) => {
35173
- for (var n = i > 1 ? void 0 : i ? wA(t, e) : t, s = o.length - 1, a; s >= 0; s--)
35176
+ var wA = Object.defineProperty, xA = Object.getOwnPropertyDescriptor, Hi = (o, t, e, i) => {
35177
+ for (var n = i > 1 ? void 0 : i ? xA(t, e) : t, s = o.length - 1, a; s >= 0; s--)
35174
35178
  (a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
35175
- return i && n && vA(t, e, n), n;
35179
+ return i && n && wA(t, e, n), n;
35176
35180
  };
35177
35181
  const mt = S("debugvideo");
35178
35182
  var Cx = /* @__PURE__ */ ((o) => (o[o.None = 0] = "None", o[o.AdjustHeight = 1] = "AdjustHeight", o[o.AdjustWidth = 2] = "AdjustWidth", o))(Cx || {}), Px = /* @__PURE__ */ ((o) => (o[o.VideoClip = 0] = "VideoClip", o[o.Url = 1] = "Url", o))(Px || {}), Ox = /* @__PURE__ */ ((o) => (o[o.CameraFarPlane = 0] = "CameraFarPlane", o[o.CameraNearPlane = 1] = "CameraNearPlane", o[o.RenderTexture = 2] = "RenderTexture", o[o.MaterialOverride = 3] = "MaterialOverride", o))(Ox || {});
@@ -35225,7 +35229,7 @@ class xt extends j {
35225
35229
  var e;
35226
35230
  mt && console.log("HLS: available", this.clip), !(!this.shouldUseM3U || !this.url) && (this._hls || (this._hls = new Hls()), this.videoElement.autoplay = !0, this._hls.loadSource(this.url), this._hls.attachMedia(this.videoElement), (e = this._videoElement) == null || e.play(), mt && console.log("HLS: loaded", this.clip));
35227
35231
  });
35228
- bA(() => {
35232
+ vA(() => {
35229
35233
  this._receivedInput = !0, this.updateVideoElementSettings();
35230
35234
  }), this._targetObjects = [], S("videoscreenspace") && window.addEventListener("keydown", (e) => {
35231
35235
  e.key === "f" && (this.screenspace = !this.screenspace);
@@ -35434,7 +35438,7 @@ class xt extends j {
35434
35438
  var i;
35435
35439
  if (e) {
35436
35440
  if (!this._videoTexture) return;
35437
- this._overlay || (this._overlay = new xA(this.context)), this._overlay.add(this._videoTexture);
35441
+ this._overlay || (this._overlay = new SA(this.context)), this._overlay.add(this._videoTexture);
35438
35442
  } else (i = this._overlay) == null || i.remove(this._videoTexture);
35439
35443
  this._overlay && (this._overlay.enabled = e);
35440
35444
  }
@@ -35577,14 +35581,14 @@ Hi([
35577
35581
  Hi([
35578
35582
  p()
35579
35583
  ], xt.prototype, "audioOutputMode", 1);
35580
- class xA {
35584
+ class SA {
35581
35585
  constructor(t) {
35582
35586
  r(this, "context");
35583
35587
  r(this, "_videos", []);
35584
35588
  r(this, "_screenspaceModeQuad");
35585
35589
  r(this, "_isInScreenspaceMode", !1);
35586
35590
  r(this, "_input");
35587
- this.context = t, this._input = new SA(this);
35591
+ this.context = t, this._input = new CA(this);
35588
35592
  }
35589
35593
  get enabled() {
35590
35594
  return this._isInScreenspaceMode;
@@ -35607,7 +35611,7 @@ class xA {
35607
35611
  if (!t) return;
35608
35612
  if (this._isInScreenspaceMode = !0, !this._screenspaceModeQuad) {
35609
35613
  if (this._screenspaceModeQuad = ta.createPrimitive(ol.Quad, {
35610
- material: new CA(t)
35614
+ material: new PA(t)
35611
35615
  }), !this._screenspaceModeQuad) return;
35612
35616
  this._screenspaceModeQuad.geometry.scale(2, 2, 2);
35613
35617
  }
@@ -35626,7 +35630,7 @@ class xA {
35626
35630
  t && (t.screenAspect = this.context.domElement.clientWidth / this.context.domElement.clientHeight);
35627
35631
  }
35628
35632
  }
35629
- class SA {
35633
+ class CA {
35630
35634
  constructor(t) {
35631
35635
  r(this, "_onResizeScreenFn");
35632
35636
  r(this, "_onKeyUpFn");
@@ -35678,7 +35682,7 @@ class SA {
35678
35682
  this._onResizeScreenFn && (window.removeEventListener("resize", this._onResizeScreenFn), this._onResizeScreenFn = void 0), this._onKeyUpFn && (window.removeEventListener("keyup", this._onKeyUpFn), this._onKeyUpFn = void 0), this._onMouseWheelFn && (window.removeEventListener("wheel", this._onMouseWheelFn), this._onMouseWheelFn = void 0);
35679
35683
  }
35680
35684
  }
35681
- class CA extends is {
35685
+ class PA extends is {
35682
35686
  // maxZoom : number = 10
35683
35687
  constructor(e) {
35684
35688
  super();
@@ -35764,10 +35768,10 @@ class CA extends is {
35764
35768
  this.offset = this.offset.set(0, 0), this.zoom = 1, this.needsUpdate = !0;
35765
35769
  }
35766
35770
  }
35767
- var PA = Object.defineProperty, OA = Object.getOwnPropertyDescriptor, Eh = (o, t, e, i) => {
35768
- for (var n = i > 1 ? void 0 : i ? OA(t, e) : t, s = o.length - 1, a; s >= 0; s--)
35771
+ var OA = Object.defineProperty, kA = Object.getOwnPropertyDescriptor, Eh = (o, t, e, i) => {
35772
+ for (var n = i > 1 ? void 0 : i ? kA(t, e) : t, s = o.length - 1, a; s >= 0; s--)
35769
35773
  (a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
35770
- return i && n && PA(t, e, n), n;
35774
+ return i && n && OA(t, e, n), n;
35771
35775
  };
35772
35776
  const Rt = S("debugscreensharing");
35773
35777
  var kx = /* @__PURE__ */ ((o) => (o[o.Screen = 0] = "Screen", o[o.Camera = 1] = "Camera", o[o.Canvas = 2] = "Canvas", o[o.Microphone = 3] = "Microphone", o))(kx || {});
@@ -36063,10 +36067,10 @@ Eh([
36063
36067
  Eh([
36064
36068
  p()
36065
36069
  ], ua.prototype, "deviceName", 2);
36066
- var kA = Object.defineProperty, Mx = (o, t, e, i) => {
36070
+ var MA = Object.defineProperty, Mx = (o, t, e, i) => {
36067
36071
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
36068
36072
  (a = o[s]) && (n = a(t, e, n) || n);
36069
- return n && kA(t, e, n), n;
36073
+ return n && MA(t, e, n), n;
36070
36074
  };
36071
36075
  class Lf extends j {
36072
36076
  constructor() {
@@ -36167,13 +36171,13 @@ Mx([
36167
36171
  Mx([
36168
36172
  p(ce)
36169
36173
  ], Lf.prototype, "shadowColor");
36170
- var MA = Object.defineProperty, Ah = (o, t, e, i) => {
36174
+ var RA = Object.defineProperty, Ah = (o, t, e, i) => {
36171
36175
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
36172
36176
  (a = o[s]) && (n = a(t, e, n) || n);
36173
- return n && MA(t, e, n), n;
36177
+ return n && RA(t, e, n), n;
36174
36178
  };
36175
36179
  const Lt = S("debugskybox");
36176
- By("skybox-image");
36180
+ By("background-image");
36177
36181
  By("environment-image");
36178
36182
  function n0(o, t, e, i, n) {
36179
36183
  const s = new Fy();
@@ -36188,10 +36192,10 @@ function n0(o, t, e, i, n) {
36188
36192
  const _u = new Array();
36189
36193
  fe.registerCallback(me.ContextCreationStart, (o) => {
36190
36194
  var n;
36191
- const t = o.context, e = t.domElement.getAttribute("skybox-image") || t.domElement.getAttribute("background-image"), i = t.domElement.getAttribute("environment-image");
36195
+ const t = o.context, e = t.domElement.getAttribute("background-image"), i = t.domElement.getAttribute("environment-image");
36192
36196
  if (e) {
36193
- Lt && console.log("Creating remote skybox to load " + e), ((n = t.mainCameraComponent) == null ? void 0 : n.clearFlags) !== $r.Skybox && console.warn('"skybox-image"/"background-image" attribute has no effect: camera clearflags are not set to "Skybox"');
36194
- const s = n0(t, e, !0, !1, "skybox-image");
36197
+ Lt && console.log("Creating remote skybox to load " + e), ((n = t.mainCameraComponent) == null ? void 0 : n.clearFlags) !== $r.Skybox && console.warn('"background-image" attribute has no effect: camera clear flags are not set to "Skybox"');
36198
+ const s = n0(t, e, !0, !1, "background-image");
36195
36199
  _u.push(s);
36196
36200
  }
36197
36201
  if (i) {
@@ -36210,15 +36214,15 @@ function s0(o) {
36210
36214
  const e = Rx().find((i) => i.src === o);
36211
36215
  return e ? (Lt && console.log("Skybox: Found previously loaded texture for " + o), e.texture) : null;
36212
36216
  }
36213
- async function RA(o) {
36217
+ async function TA(o) {
36214
36218
  const t = await o;
36215
36219
  xv(t, !0), Ie(t);
36216
36220
  }
36217
- function TA(o, t) {
36221
+ function EA(o, t) {
36218
36222
  const e = Rx();
36219
36223
  for (; e.length > 5; ) {
36220
36224
  const i = e.shift();
36221
- i && RA(i.texture);
36225
+ i && TA(i.texture);
36222
36226
  }
36223
36227
  t.then((i) => xv(i, !1)), e.push({ src: o, texture: t });
36224
36228
  }
@@ -36307,7 +36311,7 @@ const Kr = class extends j {
36307
36311
  */
36308
36312
  async setSkybox(e, i) {
36309
36313
  var a;
36310
- if (!this.activeAndEnabled || (e = EA(e, this.environment, this.background), !e)) return !1;
36314
+ if (!this.activeAndEnabled || (e = AA(e, this.environment, this.background), !e)) return !1;
36311
36315
  if (i ?? (i = e), this.isValidTextureType(i) || console.warn("Potentially invalid skybox url", i, "on", this.name), Lt && console.log("Set remote skybox url: " + e), this._prevUrl === e && this._prevLoadedEnvironment)
36312
36316
  return this.apply(), !0;
36313
36317
  (a = this._prevLoadedEnvironment) == null || a.dispose(), this._prevLoadedEnvironment = void 0, this._prevUrl = e;
@@ -36345,7 +36349,7 @@ const Kr = class extends j {
36345
36349
  this._loader instanceof $a || (this._loader = new $a());
36346
36350
  Lt && console.log("Loading skybox: " + e);
36347
36351
  const c = this._loader.loadAsync(e);
36348
- return TA(i, c), await c;
36352
+ return EA(i, c), await c;
36349
36353
  }
36350
36354
  apply() {
36351
36355
  var i;
@@ -36384,7 +36388,7 @@ Ah([
36384
36388
  p()
36385
36389
  ], Kr.prototype, "allowNetworking");
36386
36390
  let Fy = Kr;
36387
- function EA(o, t, e) {
36391
+ function AA(o, t, e) {
36388
36392
  const i = t && !e;
36389
36393
  switch (o == null ? void 0 : o.toLowerCase()) {
36390
36394
  case "studio":
@@ -36398,10 +36402,10 @@ function EA(o, t, e) {
36398
36402
  }
36399
36403
  return o === void 0 ? null : o;
36400
36404
  }
36401
- var AA = Object.defineProperty, Df = (o, t, e, i) => {
36405
+ var IA = Object.defineProperty, Df = (o, t, e, i) => {
36402
36406
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
36403
36407
  (a = o[s]) && (n = a(t, e, n) || n);
36404
- return n && AA(t, e, n), n;
36408
+ return n && IA(t, e, n), n;
36405
36409
  }, Ar;
36406
36410
  const Ih = (Ar = class extends j {
36407
36411
  constructor() {
@@ -36448,13 +36452,13 @@ Df([
36448
36452
  p()
36449
36453
  ], Ih.prototype, "positionAxes");
36450
36454
  let zy = Ih;
36451
- var IA = Object.defineProperty, Lh = (o, t, e, i) => {
36455
+ var LA = Object.defineProperty, Lh = (o, t, e, i) => {
36452
36456
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
36453
36457
  (a = o[s]) && (n = a(t, e, n) || n);
36454
- return n && IA(t, e, n), n;
36458
+ return n && LA(t, e, n), n;
36455
36459
  };
36456
36460
  const Ic = S("debugspatialtrigger"), o0 = new Wo(), r0 = new Wo();
36457
- function LA(o, t) {
36461
+ function DA(o, t) {
36458
36462
  return o0.mask = o, r0.mask = t, o0.test(r0);
36459
36463
  }
36460
36464
  class Hs extends j {
@@ -36484,7 +36488,7 @@ class Hs extends j {
36484
36488
  update() {
36485
36489
  this.currentIntersected.length = 0;
36486
36490
  for (const e of Uy.triggers)
36487
- LA(e.triggerMask, this.triggerMask) && e.test(this.gameObject) && this.currentIntersected.push(e);
36491
+ DA(e.triggerMask, this.triggerMask) && e.test(this.gameObject) && this.currentIntersected.push(e);
36488
36492
  for (let e = this.lastIntersected.length - 1; e >= 0; e--) {
36489
36493
  const i = this.lastIntersected[e];
36490
36494
  this.currentIntersected.indexOf(i) < 0 && (this.onExitTrigger(i), this.lastIntersected.splice(e, 1));
@@ -36599,10 +36603,10 @@ Lh([
36599
36603
  p()
36600
36604
  ], Tx.prototype, "triggerMask");
36601
36605
  let Uy = Tx;
36602
- var DA = Object.defineProperty, jA = (o, t, e, i) => {
36606
+ var jA = Object.defineProperty, BA = (o, t, e, i) => {
36603
36607
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
36604
36608
  (a = o[s]) && (n = a(t, e, n) || n);
36605
- return n && DA(t, e, n), n;
36609
+ return n && jA(t, e, n), n;
36606
36610
  };
36607
36611
  const Ei = S("debugspectator");
36608
36612
  class Ny extends j {
@@ -36696,11 +36700,11 @@ class Ny extends j {
36696
36700
  return this.isSpectating && ((e = this.target) == null ? void 0 : e.currentObject) === ((i = this.context.players.getPlayerView(this.localId)) == null ? void 0 : i.currentObject);
36697
36701
  }
36698
36702
  awake() {
36699
- if (this._debug = new zA(this.context, this), this._networking = new $A(this.context, this), this._networking.awake(), C.setActive(this.gameObject, !1), this.cam = C.getComponent(this.gameObject, Ai), !this.cam) {
36703
+ if (this._debug = new UA(this.context, this), this._networking = new WA(this.context, this), this._networking.awake(), C.setActive(this.gameObject, !1), this.cam = C.getComponent(this.gameObject, Ai), !this.cam) {
36700
36704
  console.warn("SpectatorCamera: Spectator camera needs camera component on the same object.", this);
36701
36705
  return;
36702
36706
  }
36703
- !this._handler && this.cam && (this._handler = new BA(this.context, this.cam, this)), this.orbit = C.getComponent(this.context.mainCamera, xe);
36707
+ !this._handler && this.cam && (this._handler = new FA(this.context, this.cam, this)), this.orbit = C.getComponent(this.context.mainCamera, xe);
36704
36708
  }
36705
36709
  onDestroy() {
36706
36710
  var e, i;
@@ -36804,10 +36808,10 @@ class Ny extends j {
36804
36808
  }
36805
36809
  }
36806
36810
  }
36807
- jA([
36811
+ BA([
36808
36812
  p()
36809
36813
  ], Ny.prototype, "useKeys");
36810
- class BA {
36814
+ class FA {
36811
36815
  constructor(t, e, i) {
36812
36816
  r(this, "context");
36813
36817
  r(this, "cam");
@@ -36869,12 +36873,12 @@ class BA {
36869
36873
  this.follow.followFactor = 3, this.follow.rotateFactor = 2, i.position.set(0, 0.5, 1.5);
36870
36874
  break;
36871
36875
  }
36872
- this.follow.flipForward = !1, ((h = this.view) == null ? void 0 : h.viewDevice) !== Ur.Browser ? i.quaternion.copy(FA) : i.quaternion.identity();
36876
+ this.follow.flipForward = !1, ((h = this.view) == null ? void 0 : h.viewDevice) !== Ur.Browser ? i.quaternion.copy(zA) : i.quaternion.identity();
36873
36877
  }
36874
36878
  }
36875
36879
  }
36876
- const FA = new W().setFromAxisAngle(new w(0, 1, 0), Math.PI);
36877
- class zA {
36880
+ const zA = new W().setFromAxisAngle(new w(0, 1, 0), Math.PI);
36881
+ class UA {
36878
36882
  constructor(t, e) {
36879
36883
  r(this, "context");
36880
36884
  r(this, "spectator");
@@ -36909,7 +36913,7 @@ class zA {
36909
36913
  }
36910
36914
  }
36911
36915
  }
36912
- class UA {
36916
+ class NA {
36913
36917
  constructor(t, e, i) {
36914
36918
  /** The user ID that is following */
36915
36919
  r(this, "guid");
@@ -36921,14 +36925,14 @@ class UA {
36921
36925
  this.guid = t, this.targetUserId = e, this.stoppedFollowing = i;
36922
36926
  }
36923
36927
  }
36924
- class NA {
36928
+ class $A {
36925
36929
  constructor(t, e) {
36926
36930
  r(this, "guid");
36927
36931
  r(this, "userId");
36928
36932
  this.guid = t.guid, this.userId = e;
36929
36933
  }
36930
36934
  }
36931
- class $A {
36935
+ class WA {
36932
36936
  constructor(t, e) {
36933
36937
  /** List of user IDs currently following this player */
36934
36938
  r(this, "followers", []);
@@ -36962,7 +36966,7 @@ class $A {
36962
36966
  */
36963
36967
  onSpectatedObjectChanged(t, e) {
36964
36968
  if (Ei && console.log(this.context.connection.connectionId, "onSpectatedObjectChanged", t, e), this.context.connection.connectionId) {
36965
- const i = (t == null ? void 0 : t.userId) === void 0, n = i ? e : t == null ? void 0 : t.userId, s = new UA(this.context.connection.connectionId, n, i);
36969
+ const i = (t == null ? void 0 : t.userId) === void 0, n = i ? e : t == null ? void 0 : t.userId, s = new NA(this.context.connection.connectionId, n, i);
36966
36970
  this.context.connection.send("spectator-follower-changed", s);
36967
36971
  }
36968
36972
  }
@@ -36973,7 +36977,7 @@ class $A {
36973
36977
  onRequestFollowMe(t = !1) {
36974
36978
  if (Ei && console.log("Request follow", this.context.connection.connectionId), this.context.connection.connectionId) {
36975
36979
  this.spectator.stopSpectating();
36976
- const e = t ? void 0 : this.context.connection.connectionId, i = new NA(this.spectator, e);
36980
+ const e = t ? void 0 : this.context.connection.connectionId, i = new $A(this.spectator, e);
36977
36981
  this.context.connection.send("spectator-request-follow", i);
36978
36982
  }
36979
36983
  }
@@ -37095,15 +37099,15 @@ class Vn {
37095
37099
  t.finish(e, void 0, !0);
37096
37100
  }
37097
37101
  }
37098
- var WA = Object.defineProperty, VA = (o, t, e, i) => {
37102
+ var VA = Object.defineProperty, HA = (o, t, e, i) => {
37099
37103
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
37100
37104
  (a = o[s]) && (n = a(t, e, n) || n);
37101
- return n && WA(t, e, n), n;
37105
+ return n && VA(t, e, n), n;
37102
37106
  };
37103
37107
  const bu = "SCAM";
37104
37108
  gv(bu, Vn.getRootAsSyncedCameraModel);
37105
37109
  const Si = new Pg();
37106
- class HA {
37110
+ class GA {
37107
37111
  // dontSave: boolean = true;
37108
37112
  // pos: { x: number, y: number, z: number } = { x: 0, y: 0, z: 0 };
37109
37113
  // rot: { x: number, y: number, z: number } = { x: 0, y: 0, z: 0 };
@@ -37171,7 +37175,7 @@ const Ex = (Lo = class extends j {
37171
37175
  return;
37172
37176
  }
37173
37177
  if (!this.context.connection.isConnected || this.context.connection.connectionId === null) return;
37174
- this._model === null && (this._model = new HA(this.context.connection.connectionId, this.context.connection.connectionId + "_camera"));
37178
+ this._model === null && (this._model = new GA(this.context.connection.connectionId, this.context.connection.connectionId + "_camera"));
37175
37179
  const i = te(e), n = Oe(e);
37176
37180
  (i.distanceTo(this._lastWorldPosition) > 1e-3 || n.angleTo(this._lastWorldQuaternion) > 0.01) && (this._needsUpdate = !0), this._lastWorldPosition.copy(i), this._lastWorldQuaternion.copy(n), !((!this._needsUpdate || this.context.time.frameCount % 2 !== 0) && !(this.context.time.realtimeSinceStartup - this._lastUpdateTime > this._camTimeoutInSeconds * 0.5)) && (this._lastUpdateTime = this.context.time.realtimeSinceStartup, this._needsUpdate = !1, this._model.send(e, this.context.connection), this.context.isInXR || this.context.players.setPlayerView(this.context.connection.connectionId, e, Ur.Browser));
37177
37181
  }
@@ -37199,14 +37203,14 @@ const Ex = (Lo = class extends j {
37199
37203
  c && Hu(a, c.x(), c.y(), c.z());
37200
37204
  }
37201
37205
  }, r(Lo, "instances", []), Lo);
37202
- VA([
37206
+ HA([
37203
37207
  p([L, le])
37204
37208
  ], Ex.prototype, "cameraPrefab");
37205
37209
  let Ax = Ex;
37206
- var GA = Object.defineProperty, qA = Object.getOwnPropertyDescriptor, or = (o, t, e, i) => {
37207
- for (var n = i > 1 ? void 0 : i ? qA(t, e) : t, s = o.length - 1, a; s >= 0; s--)
37210
+ var qA = Object.defineProperty, XA = Object.getOwnPropertyDescriptor, or = (o, t, e, i) => {
37211
+ for (var n = i > 1 ? void 0 : i ? XA(t, e) : t, s = o.length - 1, a; s >= 0; s--)
37208
37212
  (a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
37209
- return i && n && GA(t, e, n), n;
37213
+ return i && n && qA(t, e, n), n;
37210
37214
  };
37211
37215
  const Zp = "view", Jp = S("debugsyncedroom");
37212
37216
  class gs extends j {
@@ -37387,11 +37391,11 @@ or([
37387
37391
  or([
37388
37392
  p()
37389
37393
  ], gs.prototype, "roomPrefix", 1);
37390
- function XA() {
37394
+ function QA() {
37391
37395
  const o = S("testwindowcount") || 0;
37392
- o && o > 0 && QA(o);
37396
+ o && o > 0 && YA(o);
37393
37397
  }
37394
- function QA(o) {
37398
+ function YA(o) {
37395
37399
  if (S("testwindow")) return null;
37396
37400
  const t = new URL(window.location.href);
37397
37401
  u_(t.searchParams, zM, 1), u_(t.searchParams, "testwindow", 1);
@@ -37424,7 +37428,7 @@ function QA(o) {
37424
37428
  }
37425
37429
  class Ix extends j {
37426
37430
  awake() {
37427
- XA();
37431
+ QA();
37428
37432
  }
37429
37433
  }
37430
37434
  class Lx extends j {
@@ -37490,12 +37494,12 @@ class Dx {
37490
37494
  }
37491
37495
  }
37492
37496
  r(Dx, "temp", new w());
37493
- var YA = Object.defineProperty, jf = (o, t, e, i) => {
37497
+ var KA = Object.defineProperty, jf = (o, t, e, i) => {
37494
37498
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
37495
37499
  (a = o[s]) && (n = a(t, e, n) || n);
37496
- return n && YA(t, e, n), n;
37500
+ return n && KA(t, e, n), n;
37497
37501
  };
37498
- const KA = S("debugsignals");
37502
+ const ZA = S("debugsignals");
37499
37503
  class $y {
37500
37504
  constructor() {
37501
37505
  r(this, "guid");
@@ -37532,7 +37536,7 @@ const jx = (mi = class extends j {
37532
37536
  }
37533
37537
  /** @internal */
37534
37538
  awake() {
37535
- KA && console.log("SignalReceiver awake", this);
37539
+ ZA && console.log("SignalReceiver awake", this);
37536
37540
  }
37537
37541
  /** @internal */
37538
37542
  onEnable() {
@@ -37634,7 +37638,7 @@ class zf {
37634
37638
  return 0;
37635
37639
  }
37636
37640
  }
37637
- class ZA {
37641
+ class JA {
37638
37642
  constructor(t) {
37639
37643
  r(this, "clip");
37640
37644
  r(this, "rootPositionOffset");
@@ -37742,7 +37746,7 @@ class Wy extends zf {
37742
37746
  if (!this._didBind) {
37743
37747
  this._didBind = !0, Qn && console.log(this.models), this.mixer ? this.target = this.mixer.getRoot() : console.warn("No mixer was assigned to animation track");
37744
37748
  for (const e of this.actions) {
37745
- const i = new ZA(e);
37749
+ const i = new JA(e);
37746
37750
  this._actionOffsets.push(i);
37747
37751
  }
37748
37752
  this.target && (this._animator = C.getComponent(this.target, $t) ?? null, this._animator && _b(this._animator.gameObject, this, !0));
@@ -37862,7 +37866,7 @@ class Wy extends zf {
37862
37866
  };
37863
37867
  }
37864
37868
  }
37865
- const JA = S("mutetimeline"), kr = class kr extends zf {
37869
+ const eI = S("mutetimeline"), kr = class kr extends zf {
37866
37870
  constructor() {
37867
37871
  super(...arguments);
37868
37872
  r(this, "models", []);
@@ -37924,7 +37928,7 @@ const JA = S("mutetimeline"), kr = class kr extends zf {
37924
37928
  this._playableDirectorResumed = this.director.isPlaying;
37925
37929
  }
37926
37930
  evaluate(e) {
37927
- if (JA || this.track.muted || this.director.speed < 0)
37931
+ if (eI || this.track.muted || this.director.speed < 0)
37928
37932
  return;
37929
37933
  const i = this.director.context.application.muted, n = this._playableDirectorResumed;
37930
37934
  this._playableDirectorResumed = !1;
@@ -38082,10 +38086,10 @@ class Vy extends zf {
38082
38086
  }
38083
38087
  }
38084
38088
  }
38085
- var eI = Object.defineProperty, Fx = (o, t, e, i) => {
38089
+ var tI = Object.defineProperty, Fx = (o, t, e, i) => {
38086
38090
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
38087
38091
  (a = o[s]) && (n = a(t, e, n) || n);
38088
- return n && eI(t, e, n), n;
38092
+ return n && tI(t, e, n), n;
38089
38093
  };
38090
38094
  const xs = S("debugtimeline");
38091
38095
  var Do;
@@ -38502,10 +38506,10 @@ Fx([
38502
38506
  p()
38503
38507
  ], Hy.prototype, "extrapolationMode");
38504
38508
  let rh = Hy;
38505
- var tI = Object.defineProperty, Uf = (o, t, e, i) => {
38509
+ var iI = Object.defineProperty, Uf = (o, t, e, i) => {
38506
38510
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
38507
38511
  (a = o[s]) && (n = a(t, e, n) || n);
38508
- return n && tI(t, e, n), n;
38512
+ return n && iI(t, e, n), n;
38509
38513
  };
38510
38514
  class jl extends j {
38511
38515
  constructor() {
@@ -38647,10 +38651,10 @@ Uf([
38647
38651
  Uf([
38648
38652
  p()
38649
38653
  ], jl.prototype, "scaleSnap");
38650
- var iI = Object.defineProperty, nI = Object.getOwnPropertyDescriptor, Nf = (o, t, e, i) => {
38651
- for (var n = i > 1 ? void 0 : i ? nI(t, e) : t, s = o.length - 1, a; s >= 0; s--)
38654
+ var nI = Object.defineProperty, sI = Object.getOwnPropertyDescriptor, Nf = (o, t, e, i) => {
38655
+ for (var n = i > 1 ? void 0 : i ? sI(t, e) : t, s = o.length - 1, a; s >= 0; s--)
38652
38656
  (a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
38653
- return i && n && iI(t, e, n), n;
38657
+ return i && n && nI(t, e, n), n;
38654
38658
  };
38655
38659
  class Gy {
38656
38660
  constructor() {
@@ -38724,10 +38728,10 @@ class qy extends xf {
38724
38728
  Nf([
38725
38729
  p(Fe)
38726
38730
  ], qy.prototype, "mainTexture", 1);
38727
- var sI = Object.defineProperty, oI = Object.getOwnPropertyDescriptor, Gi = (o, t, e, i) => {
38728
- for (var n = i > 1 ? void 0 : i ? oI(t, e) : t, s = o.length - 1, a; s >= 0; s--)
38731
+ var oI = Object.defineProperty, rI = Object.getOwnPropertyDescriptor, Gi = (o, t, e, i) => {
38732
+ for (var n = i > 1 ? void 0 : i ? rI(t, e) : t, s = o.length - 1, a; s >= 0; s--)
38729
38733
  (a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
38730
- return i && n && sI(t, e, n), n;
38734
+ return i && n && oI(t, e, n), n;
38731
38735
  };
38732
38736
  const gr = S("debugbutton");
38733
38737
  class rr {
@@ -38762,7 +38766,7 @@ Gi([
38762
38766
  Gi([
38763
38767
  p(ce)
38764
38768
  ], rr.prototype, "selectedColor", 2);
38765
- class rI {
38769
+ class aI {
38766
38770
  constructor() {
38767
38771
  r(this, "disabledTrigger");
38768
38772
  r(this, "highlightedTrigger");
@@ -38903,7 +38907,7 @@ Gi([
38903
38907
  p()
38904
38908
  ], ar.prototype, "transition", 2);
38905
38909
  Gi([
38906
- p(rI)
38910
+ p(aI)
38907
38911
  ], ar.prototype, "animationTriggers", 2);
38908
38912
  Gi([
38909
38913
  p($t)
@@ -38911,10 +38915,10 @@ Gi([
38911
38915
  Gi([
38912
38916
  p()
38913
38917
  ], ar.prototype, "interactable", 1);
38914
- var aI = Object.defineProperty, $f = (o, t, e, i) => {
38918
+ var lI = Object.defineProperty, $f = (o, t, e, i) => {
38915
38919
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
38916
38920
  (a = o[s]) && (n = a(t, e, n) || n);
38917
- return n && aI(t, e, n), n;
38921
+ return n && lI(t, e, n), n;
38918
38922
  };
38919
38923
  const mo = S("debuginputfield");
38920
38924
  var X;
@@ -39076,10 +39080,10 @@ $f([
39076
39080
  p(Se)
39077
39081
  ], jh.prototype, "onEndEdit");
39078
39082
  let zx = jh;
39079
- var lI = Object.defineProperty, Ux = (o, t, e, i) => {
39083
+ var cI = Object.defineProperty, Ux = (o, t, e, i) => {
39080
39084
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
39081
39085
  (a = o[s]) && (n = a(t, e, n) || n);
39082
- return n && lI(t, e, n), n;
39086
+ return n && cI(t, e, n), n;
39083
39087
  };
39084
39088
  class Wf extends j {
39085
39089
  constructor() {
@@ -39146,7 +39150,7 @@ Ux([
39146
39150
  * See the License for the specific language governing permissions and
39147
39151
  * limitations under the License.
39148
39152
  */
39149
- const cI = {
39153
+ const hI = {
39150
39154
  topLight: {
39151
39155
  intensity: 500,
39152
39156
  position: [0.418, 16.199, 0.3]
@@ -39219,7 +39223,7 @@ const cI = {
39219
39223
  scale: [1, 0.1, 1]
39220
39224
  }
39221
39225
  ]
39222
- }, hI = {
39226
+ }, dI = {
39223
39227
  topLight: {
39224
39228
  intensity: 400,
39225
39229
  position: [0.5, 14, 0.5]
@@ -39303,7 +39307,7 @@ class Xy extends ji {
39303
39307
  super(), this.position.y = -3.5;
39304
39308
  const e = new Ka();
39305
39309
  e.deleteAttribute("uv");
39306
- const i = new yt({ metalness: 0, side: Uu }), n = new yt({ metalness: 0 }), s = t == "legacy" ? cI : hI, a = new gg(16777215, s.topLight.intensity, 28, 2);
39310
+ const i = new yt({ metalness: 0, side: Uu }), n = new yt({ metalness: 0 }), s = t == "legacy" ? hI : dI, a = new gg(16777215, s.topLight.intensity, 28, 2);
39307
39311
  a.position.set(...s.topLight.position), this.add(a);
39308
39312
  const l = new G(e, i);
39309
39313
  l.position.set(...s.room.position), l.scale.set(...s.room.scale), this.add(l);
@@ -39321,10 +39325,10 @@ class Xy extends ji {
39321
39325
  return e.color.setScalar(t), e;
39322
39326
  }
39323
39327
  }
39324
- var dI = Object.defineProperty, Vf = (o, t, e, i) => {
39328
+ var uI = Object.defineProperty, Vf = (o, t, e, i) => {
39325
39329
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
39326
39330
  (a = o[s]) && (n = a(t, e, n) || n);
39327
- return n && dI(t, e, n), n;
39331
+ return n && uI(t, e, n), n;
39328
39332
  }, Ir;
39329
39333
  const Bh = (Ir = class extends j {
39330
39334
  constructor() {
@@ -39378,10 +39382,10 @@ Vf([
39378
39382
  p()
39379
39383
  ], Bh.prototype, "copyTargetRotation");
39380
39384
  let Nx = Bh;
39381
- var uI = Object.defineProperty, Qy = (o, t, e, i) => {
39385
+ var fI = Object.defineProperty, Qy = (o, t, e, i) => {
39382
39386
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
39383
39387
  (a = o[s]) && (n = a(t, e, n) || n);
39384
- return n && uI(t, e, n), n;
39388
+ return n && fI(t, e, n), n;
39385
39389
  };
39386
39390
  class Fh extends j {
39387
39391
  constructor() {
@@ -39442,10 +39446,10 @@ Qy([
39442
39446
  Qy([
39443
39447
  p()
39444
39448
  ], Fh.prototype, "clickable");
39445
- var fI = Object.defineProperty, Bl = (o, t, e, i) => {
39449
+ var pI = Object.defineProperty, Bl = (o, t, e, i) => {
39446
39450
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
39447
39451
  (a = o[s]) && (n = a(t, e, n) || n);
39448
- return n && fI(t, e, n), n;
39452
+ return n && pI(t, e, n), n;
39449
39453
  };
39450
39454
  class lr extends j {
39451
39455
  constructor() {
@@ -39528,7 +39532,7 @@ NeedleXRSession.onSessionRequestStart(evt => {
39528
39532
  if (a || (a = new XRWebGLBinding(e.session, o.getContext())), a) {
39529
39533
  let l = null;
39530
39534
  if ("getCameraImage" in a) {
39531
- pI(o, t);
39535
+ mI(o, t);
39532
39536
  const c = o.properties.get(t);
39533
39537
  if (c)
39534
39538
  return l = a.getCameraImage(s.camera), c.__webglTexture = l, !0;
@@ -39543,7 +39547,7 @@ NeedleXRSession.onSessionRequestStart(evt => {
39543
39547
  return !1;
39544
39548
  }
39545
39549
  const a0 = /* @__PURE__ */ new WeakMap();
39546
- function pI(o, t) {
39550
+ function mI(o, t) {
39547
39551
  const e = a0.get(t) || /* @__PURE__ */ new WeakSet();
39548
39552
  if (e.has(o))
39549
39553
  return;
@@ -39553,7 +39557,7 @@ function pI(o, t) {
39553
39557
  const a = new ve();
39554
39558
  i.map = t, o.render(s, a);
39555
39559
  }
39556
- function b2(o, t, e, i = "image/webp", n) {
39560
+ function v2(o, t, e, i = "image/webp", n) {
39557
39561
  return Wx({ context: o, width: t, height: e, mimeType: i, camera: n });
39558
39562
  }
39559
39563
  function Wx(o) {
@@ -39619,7 +39623,7 @@ function Wx(o) {
39619
39623
  break;
39620
39624
  }
39621
39625
  if (t && o.trim === !0) {
39622
- const B = mI(Y);
39626
+ const B = gI(Y);
39623
39627
  B && (Y = B);
39624
39628
  }
39625
39629
  if ("type" in o) {
@@ -39664,7 +39668,7 @@ function Wx(o) {
39664
39668
  let ee = 0;
39665
39669
  localStorage.getItem(V) && (ee = parseInt(sessionStorage.getItem(V) || "0")), ee > 0 && (B = `${J.join()}-${ee}.${ie}`), ee += 1, sessionStorage.setItem(V, ee.toString());
39666
39670
  }
39667
- gI(F, B);
39671
+ yI(F, B);
39668
39672
  }
39669
39673
  return F;
39670
39674
  } finally {
@@ -39672,7 +39676,7 @@ function Wx(o) {
39672
39676
  }
39673
39677
  return null;
39674
39678
  }
39675
- function mI(o) {
39679
+ function gI(o) {
39676
39680
  if (!("document" in globalThis)) return null;
39677
39681
  const t = document.createElement("canvas");
39678
39682
  t.width = o.width, t.height = o.height;
@@ -39690,7 +39694,7 @@ function mI(o) {
39690
39694
  return g ? (m.width = u, m.height = f, g.drawImage(t, c, l, u, f, 0, 0, u, f), m) : null;
39691
39695
  }
39692
39696
  let ec = null;
39693
- function gI(o, t) {
39697
+ function yI(o, t) {
39694
39698
  if (o) {
39695
39699
  if (!o.startsWith("data:image")) {
39696
39700
  console.error("Can not save image: Data url is not an image", o);
@@ -39760,10 +39764,10 @@ void main() {
39760
39764
  }
39761
39765
  o.makeFullscreenPlane = c;
39762
39766
  })(wu || (wu = {}));
39763
- var yI = Object.defineProperty, _I = (o, t, e, i) => {
39767
+ var _I = Object.defineProperty, bI = (o, t, e, i) => {
39764
39768
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
39765
39769
  (a = o[s]) && (n = a(t, e, n) || n);
39766
- return n && yI(t, e, n), n;
39770
+ return n && _I(t, e, n), n;
39767
39771
  };
39768
39772
  const l0 = S("debugarcamera");
39769
39773
  class Hf extends j {
@@ -39794,7 +39798,7 @@ class Hf extends j {
39794
39798
  tint: { value: new ye(n.r, n.g, n.b, n.a) }
39795
39799
  },
39796
39800
  vertexShader: Fd.background.vertexShader,
39797
- fragmentShader: bI,
39801
+ fragmentShader: vI,
39798
39802
  side: Bi,
39799
39803
  depthTest: !1,
39800
39804
  depthWrite: !1,
@@ -39835,10 +39839,10 @@ class Hf extends j {
39835
39839
  this.backgroundPlane && (this.threeTexture = e, this.backgroundPlane.setTexture(this.threeTexture), this.backgroundPlane.visible = !0);
39836
39840
  }
39837
39841
  }
39838
- _I([
39842
+ bI([
39839
39843
  p(ce)
39840
39844
  ], Hf.prototype, "backgroundTint");
39841
- const bI = (
39845
+ const vI = (
39842
39846
  /* glsl */
39843
39847
  `
39844
39848
  uniform sampler2D t2D;
@@ -39861,10 +39865,10 @@ void main() {
39861
39865
  }
39862
39866
  `
39863
39867
  );
39864
- var vI = Object.defineProperty, cr = (o, t, e, i) => {
39868
+ var wI = Object.defineProperty, cr = (o, t, e, i) => {
39865
39869
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
39866
39870
  (a = o[s]) && (n = a(t, e, n) || n);
39867
- return n && vI(t, e, n), n;
39871
+ return n && wI(t, e, n), n;
39868
39872
  };
39869
39873
  const c0 = S("debugimagetracking"), Na = class Na {
39870
39874
  constructor(t, e, i, n, s, a) {
@@ -39941,7 +39945,7 @@ cr([
39941
39945
  cr([
39942
39946
  p()
39943
39947
  ], hr.prototype, "hideWhenTrackingIsLost");
39944
- class wI {
39948
+ class xI {
39945
39949
  constructor(t, e, i) {
39946
39950
  r(this, "filename");
39947
39951
  r(this, "widthInMeters");
@@ -40035,7 +40039,7 @@ const Yy = (Zn = class extends j {
40035
40039
  if (a) {
40036
40040
  const c = await (await a.convertToBlob({ type: "image/png" })).arrayBuffer(), h = C.findObjectOfType(Vs);
40037
40041
  h && this.trackedImages && (h.extensions.push(
40038
- new wI("marker.png", new Uint8Array(c), this.trackedImages[0].widthInMeters)
40042
+ new xI("marker.png", new Uint8Array(c), this.trackedImages[0].widthInMeters)
40039
40043
  ), h.anchoringType = "image");
40040
40044
  }
40041
40045
  });
@@ -40144,10 +40148,10 @@ cr([
40144
40148
  p()
40145
40149
  ], Yy.prototype, "smooth");
40146
40150
  let Su = Yy;
40147
- var xI = Object.defineProperty, Fl = (o, t, e, i) => {
40151
+ var SI = Object.defineProperty, Fl = (o, t, e, i) => {
40148
40152
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
40149
40153
  (a = o[s]) && (n = a(t, e, n) || n);
40150
- return n && xI(t, e, n), n;
40154
+ return n && SI(t, e, n), n;
40151
40155
  };
40152
40156
  const yr = S("debugplanetracking");
40153
40157
  class dr extends j {
@@ -40399,10 +40403,10 @@ Fl([
40399
40403
  Fl([
40400
40404
  p()
40401
40405
  ], dr.prototype, "runInVR");
40402
- var SI = Object.defineProperty, CI = (o, t, e, i) => {
40406
+ var CI = Object.defineProperty, PI = (o, t, e, i) => {
40403
40407
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
40404
40408
  (a = o[s]) && (n = a(t, e, n) || n);
40405
- return n && SI(t, e, n), n;
40409
+ return n && CI(t, e, n), n;
40406
40410
  };
40407
40411
  const h0 = S("debugwebxr");
40408
40412
  class Ky extends j {
@@ -40454,10 +40458,10 @@ class Ky extends j {
40454
40458
  e.xr.removeRig(this), this._startScale && this.gameObject && this.gameObject.scale.copy(this._startScale);
40455
40459
  }
40456
40460
  }
40457
- CI([
40461
+ PI([
40458
40462
  p()
40459
40463
  ], Ky.prototype, "priority");
40460
- class PI extends j {
40464
+ class OI extends j {
40461
40465
  constructor() {
40462
40466
  super(...arguments);
40463
40467
  r(this, "toggleKey", "KeyP");
@@ -40613,15 +40617,15 @@ M.add("XRRig", Ky);
40613
40617
  M.add("XRFlag", xn);
40614
40618
  M.add("PlayerSync", Yw);
40615
40619
  M.add("PlayerState", Xn);
40616
- M.add("PresentationMode", PI);
40617
- const Lc = bt, OI = S("debugtypestore");
40618
- OI && console.log(M);
40619
- function kI(o, t) {
40620
+ M.add("PresentationMode", OI);
40621
+ const Lc = bt, kI = S("debugtypestore");
40622
+ kI && console.log(M);
40623
+ function MI(o, t) {
40620
40624
  const i = MO(o, t);
40621
40625
  return i !== void 0 ? i : null;
40622
40626
  }
40623
- const MI = new kO(), em = Symbol("deserialize-queue");
40624
- async function RI(o, t, e, i = null, n) {
40627
+ const RI = new kO(), em = Symbol("deserialize-queue");
40628
+ async function TI(o, t, e, i = null, n) {
40625
40629
  if (!e) {
40626
40630
  console.debug("Can not create component instances: gltf is null");
40627
40631
  return;
@@ -40631,7 +40635,7 @@ async function RI(o, t, e, i = null, n) {
40631
40635
  const a = t.indexOf("?");
40632
40636
  t = a === -1 ? t : t.substring(0, a);
40633
40637
  const l = new Dv(e.scene);
40634
- l.gltfId = t, l.context = o, l.gltf = e, l.nodeToObject = n == null ? void 0 : n.nodeToObjectMap, l.implementationInformation = MI;
40638
+ l.gltfId = t, l.context = o, l.gltf = e, l.nodeToObject = n == null ? void 0 : n.nodeToObjectMap, l.implementationInformation = RI;
40635
40639
  let c = o[em];
40636
40640
  if (c || (c = o[em] = []), e.scenes)
40637
40641
  for (const h of e.scenes)
@@ -40643,7 +40647,7 @@ async function RI(o, t, e, i = null, n) {
40643
40647
  const h = o[em];
40644
40648
  if (h) {
40645
40649
  for (const d of h)
40646
- TI(d, l);
40650
+ EI(d, l);
40647
40651
  h.length = 0;
40648
40652
  }
40649
40653
  if (s) {
@@ -40708,29 +40712,29 @@ This could mean you forgot to add a npmdef to your ExportInfo
40708
40712
  for (const d of t.children)
40709
40713
  await dg(o, d, e);
40710
40714
  }
40711
- function TI(o, t) {
40715
+ function EI(o, t) {
40712
40716
  const { instance: e, compData: i, obj: n } = o;
40713
40717
  t.object = n, t.target = e, Mm(e, i, t), Lc && console.debug("add " + i.name, i, e);
40714
40718
  }
40715
40719
  class Vx {
40716
40720
  createBuiltinComponents(t, e, i, n, s) {
40717
- return RI(t, e, i, n, s);
40721
+ return TI(t, e, i, n, s);
40718
40722
  }
40719
40723
  writeBuiltinComponentData(t, e) {
40720
- return kI(t, e);
40724
+ return MI(t, e);
40721
40725
  }
40722
40726
  parseSync(t, e, i, n) {
40723
- return AI(t, e, i, n);
40727
+ return II(t, e, i, n);
40724
40728
  }
40725
40729
  loadSync(t, e, i, n, s) {
40726
40730
  return qx(t, e, i, n, s);
40727
40731
  }
40728
40732
  }
40729
40733
  cv(Vx);
40730
- const Hx = S("printGltf") || S("printgltf"), EI = S("debugfileformat");
40734
+ const Hx = S("printGltf") || S("printgltf"), AI = S("debugfileformat");
40731
40735
  async function Gx(o, t) {
40732
40736
  const e = await rR(o, { useExtension: !0 }) || "unknown";
40733
- EI && console.debug(`Determined file type: '${e}' for url '${o}'`, { registeredModelLoaderCallbacks: Aa });
40737
+ AI && console.debug(`Determined file type: '${e}' for url '${o}'`, { registeredModelLoaderCallbacks: Aa });
40734
40738
  for (const i of Aa) {
40735
40739
  const { callback: n } = i, s = n({ context: t, url: o, mimetype: e });
40736
40740
  if (s instanceof Promise && await s, s)
@@ -40763,10 +40767,10 @@ Use import { NeedleEngineModelLoader } from "@needle-tools/engine" namespace to
40763
40767
  }
40764
40768
  }
40765
40769
  }
40766
- function v2(o, t) {
40770
+ function w2(o, t) {
40767
40771
  return qx((t == null ? void 0 : t.context) || Z.Current, o, o, (t == null ? void 0 : t.seed) || null, t == null ? void 0 : t.onprogress);
40768
40772
  }
40769
- async function AI(o, t, e, i) {
40773
+ async function II(o, t, e, i) {
40770
40774
  typeof e != "string" && (console.warn("Parse gltf binary without path, this might lead to errors in resolving extensions. Please provide the source path of the gltf/glb file", e, typeof e), e = ""), Hx && console.log("Parse glTF", e);
40771
40775
  const n = await Gx(e, o);
40772
40776
  if (!n)
@@ -40802,7 +40806,7 @@ async function AI(o, t, e, i) {
40802
40806
  });
40803
40807
  }
40804
40808
  async function qx(o, t, e, i, n) {
40805
- LI(t);
40809
+ DI(t);
40806
40810
  const s = await Gx(t, o);
40807
40811
  if (!s)
40808
40812
  return;
@@ -40864,9 +40868,9 @@ async function Dc(o, t, e, i, n, s) {
40864
40868
  if (e.includes("?") && (e = e.split("?")[0]), "scenes" in i)
40865
40869
  for (const l of i.scenes)
40866
40870
  l && !((a = l.animations) != null && a.length) && (l.animations = [...i.animations]);
40867
- return DI(o, i), RM(i) && (TR(e, i, t), await os().createBuiltinComponents(t, e, i, n, s || void 0)), await II(i.scene, t, t.mainCamera), i;
40871
+ return jI(o, i), RM(i) && (TR(e, i, t), await os().createBuiltinComponents(t, e, i, n, s || void 0)), await LI(i.scene, t, t.mainCamera), i;
40868
40872
  }
40869
- async function II(o, t, e) {
40873
+ async function LI(o, t, e) {
40870
40874
  e || (e = t.mainCamera);
40871
40875
  try {
40872
40876
  e ? await t.renderer.compileAsync(o, e, t.scene).catch((i) => {
@@ -40876,14 +40880,14 @@ async function II(o, t, e) {
40876
40880
  console.warn((i == null ? void 0 : i.message) || i);
40877
40881
  }
40878
40882
  }
40879
- function LI(o) {
40883
+ function DI(o) {
40880
40884
  if (new URL(o, window.location.href).href.startsWith("file://")) {
40881
40885
  const e = `Hi - it looks like you are trying to load a local file which will not work. You need to use a webserver to serve your files.
40882
40886
  Please refer to the documentation on <a href="https://fwd.needle.tools/needle-engine/docs/local-server">https://docs.needle.tools</a> or ask for help in our <a href="https://discord.needle.tools">discord community</a>`;
40883
40887
  Ve(e), console.warn(e);
40884
40888
  }
40885
40889
  }
40886
- function DI(o, t) {
40890
+ function jI(o, t) {
40887
40891
  if (o instanceof D0 || o instanceof Cg) {
40888
40892
  let e = t;
40889
40893
  e instanceof L || (e = t.scene), e.traverse((i) => {
@@ -40892,8 +40896,8 @@ function DI(o, t) {
40892
40896
  });
40893
40897
  }
40894
40898
  }
40895
- const ic = S("debugoverlay"), Qx = "ar", jI = "quit-ar";
40896
- class BI {
40899
+ const ic = S("debugoverlay"), Qx = "ar", BI = "quit-ar";
40900
+ class FI {
40897
40901
  constructor() {
40898
40902
  r(this, "arContainer", null);
40899
40903
  r(this, "currentSession", null);
@@ -40954,7 +40958,7 @@ class BI {
40954
40958
  ensureQuitARButton(t) {
40955
40959
  const e = document.createElement("slot");
40956
40960
  e.setAttribute("name", "quit-ar"), this.appendElement(e, t), this._createdAROnlyElements.push(e), e.style.pointerEvents = "auto";
40957
- const i = document.querySelector(`.${jI}`);
40961
+ const i = document.querySelector(`.${BI}`);
40958
40962
  if (i) {
40959
40963
  i.addEventListener("click", this.requestEndAR), ic && i.addEventListener("click", () => console.log("Clicked quit-ar button"));
40960
40964
  return;
@@ -40990,7 +40994,7 @@ class BI {
40990
40994
  }
40991
40995
  }
40992
40996
  const Sr = S("debugloading"), nc = S("debugloadingrendering"), d0 = S("debuglicense");
40993
- class w2 {
40997
+ class x2 {
40994
40998
  constructor() {
40995
40999
  r(this, "className");
40996
41000
  r(this, "additionalClasses");
@@ -41130,7 +41134,7 @@ CLICK HERE TO GET A LICENSE`, i.style.cursor = "pointer", i.style.userSelect = "
41130
41134
  r(Nc, "LoadingContainerClassName", "loading");
41131
41135
  let ug = Nc;
41132
41136
  cv(Vx);
41133
- const Ae = S("debugwebcomponent"), f0 = "needle-engine", Kx = "vr", Zx = "desktop", FI = [Qx, Kx, Zx], oc = "ar-session-active", rc = "desktop-session-active", zI = [
41137
+ const Ae = S("debugwebcomponent"), f0 = "needle-engine", Kx = "vr", Zx = "desktop", zI = [Qx, Kx, Zx], oc = "ar-session-active", rc = "desktop-session-active", UI = [
41134
41138
  "public-key",
41135
41139
  "version",
41136
41140
  "hash",
@@ -41178,7 +41182,7 @@ class Jx extends HTMLElement {
41178
41182
  return (e = this._loadingView) == null ? void 0 : e.setMessage("Loading failed!");
41179
41183
  });
41180
41184
  r(this, "_previouslyRegisteredMap", /* @__PURE__ */ new Map());
41181
- this._overlay_ar = new BI(), this.addEventListener("ready", this.onReady), Qv(), this.attachShadow({ mode: "open" });
41185
+ this._overlay_ar = new FI(), this.addEventListener("ready", this.onReady), Qv(), this.attachShadow({ mode: "open" });
41182
41186
  const e = document.createElement("template");
41183
41187
  e.innerHTML = `<style>
41184
41188
  @import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap');
@@ -41260,7 +41264,7 @@ class Jx extends HTMLElement {
41260
41264
  `, this.shadowRoot && this.shadowRoot.appendChild(e.content.cloneNode(!0)), this._context = new Z({ domElement: this }), this.addEventListener("error", this.onError);
41261
41265
  }
41262
41266
  static get observedAttributes() {
41263
- return zI;
41267
+ return UI;
41264
41268
  }
41265
41269
  get loadingProgress01() {
41266
41270
  return this._loadingProgress01;
@@ -41439,7 +41443,7 @@ Needle Engine: Begin loading ` + i + `
41439
41443
  var x;
41440
41444
  if (Ae && console.debug("Loading progress: ", b), u.signal.aborted) return;
41441
41445
  const v = b.index;
41442
- !d[v] && b.name && (d[v] = UI(b.name)), b.name = d[v], a && ((x = this._loadingView) == null || x.onLoadingUpdate(b)), c.name = b.name, c.progress = b.progress, this._loadingProgress01 = Yx(b), c.totalProgress01 = this._loadingProgress01, this.dispatchEvent(h);
41446
+ !d[v] && b.name && (d[v] = NI(b.name)), b.name = d[v], a && ((x = this._loadingView) == null || x.onLoadingUpdate(b)), c.name = b.name, c.progress = b.progress, this._loadingProgress01 = Yx(b), c.totalProgress01 = this._loadingProgress01, this.dispatchEvent(h);
41443
41447
  },
41444
41448
  onLoadingFinished: (b, v, x) => {
41445
41449
  Ae && console.debug(`Finished loading "${v}" (aborted? ${u.signal.aborted})`), !u.signal.aborted && x && l.push({
@@ -41598,7 +41602,7 @@ Needle Engine: finished loading ` + i + `
41598
41602
  if (e.classList.contains(i))
41599
41603
  e.style.visibility = "visible", e.style.display === "none" && (e.style.display = "block");
41600
41604
  else
41601
- for (const c of FI)
41605
+ for (const c of zI)
41602
41606
  e.classList.contains(c) && (e.style.visibility = "hidden", e.style.display = "none");
41603
41607
  }
41604
41608
  foreachHtmlElement(e) {
@@ -41617,7 +41621,7 @@ Needle Engine: finished loading ` + i + `
41617
41621
  }
41618
41622
  }
41619
41623
  typeof window < "u" && !window.customElements.get(f0) && window.customElements.define(f0, Jx);
41620
- function UI(o) {
41624
+ function NI(o) {
41621
41625
  if (o.startsWith("blob:"))
41622
41626
  return "blob";
41623
41627
  const t = o.split("/");
@@ -41638,11 +41642,11 @@ function UI(o) {
41638
41642
  }
41639
41643
  return z() && console.debug("Loading: use default name", e), e;
41640
41644
  }
41641
- const NI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41645
+ const $I = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41642
41646
  __proto__: null,
41643
41647
  NeedleEngineWebComponent: Jx
41644
41648
  }, Symbol.toStringTag, { value: "Module" }));
41645
- function $I() {
41649
+ function WI() {
41646
41650
  rs.registerWaitForInteraction(() => {
41647
41651
  const o = vC.getContext();
41648
41652
  o.addEventListener("statechange", () => {
@@ -41657,8 +41661,8 @@ function $I() {
41657
41661
  });
41658
41662
  });
41659
41663
  }
41660
- setTimeout($I, 1e3);
41661
- const st = S("debugphysics"), tm = S("debugcolliderplacement"), im = S("debugcollisions"), WI = S("showcolliders"), nm = S("debugraycasts"), ui = Symbol("needle component"), Xt = Symbol("physics body"), p0 = Symbol("rigidbody");
41664
+ setTimeout(WI, 1e3);
41665
+ const st = S("debugphysics"), tm = S("debugcolliderplacement"), im = S("debugcollisions"), VI = S("showcolliders"), nm = S("debugraycasts"), ui = Symbol("needle component"), Xt = Symbol("physics body"), p0 = Symbol("rigidbody");
41662
41666
  globalThis.NEEDLE_USE_RAPIER = globalThis.NEEDLE_USE_RAPIER !== void 0 ? globalThis.NEEDLE_USE_RAPIER : !0;
41663
41667
  st && console.log("Use Rapier", !0, globalThis.NEEDLE_USE_RAPIER);
41664
41668
  fe.registerCallback(me.ContextCreationStart, (o) => {
@@ -42179,11 +42183,11 @@ Error:`, l), null;
42179
42183
  }
42180
42184
  }
42181
42185
  postStep() {
42182
- this.world && this.enabled && (this._isUpdatingPhysicsWorld = !0, this.syncObjects(), this._isUpdatingPhysicsWorld = !1, this.eventQueue && !this.collisionHandler && (this.collisionHandler = new VI(this.world, this.eventQueue)), this.collisionHandler && (this.collisionHandler.handleCollisionEvents(), this.collisionHandler.update()), this.updateDebugRendering(this.world));
42186
+ this.world && this.enabled && (this._isUpdatingPhysicsWorld = !0, this.syncObjects(), this._isUpdatingPhysicsWorld = !1, this.eventQueue && !this.collisionHandler && (this.collisionHandler = new HI(this.world, this.eventQueue)), this.collisionHandler && (this.collisionHandler.handleCollisionEvents(), this.collisionHandler.update()), this.updateDebugRendering(this.world));
42183
42187
  }
42184
42188
  updateDebugRendering(t) {
42185
42189
  var e, i, n, s;
42186
- if (st || tm || WI || this.debugRenderColliders === !0) {
42190
+ if (st || tm || VI || this.debugRenderColliders === !0) {
42187
42191
  if (!this.lines) {
42188
42192
  const l = new C0({
42189
42193
  color: 7855479,
@@ -42296,7 +42300,7 @@ Error:`, l), null;
42296
42300
  };
42297
42301
  r(Os, "_didLoadPhysicsEngine", !1), r(Os, "_matricesBuffer", []), r(Os, "centerConnectionPos", { x: 0, y: 0, z: 0 }), r(Os, "centerConnectionRot", { x: 0, y: 0, z: 0, w: 1 });
42298
42302
  let fg = Os;
42299
- class VI {
42303
+ class HI {
42300
42304
  constructor(t, e) {
42301
42305
  r(this, "world");
42302
42306
  r(this, "eventQueue");
@@ -42416,7 +42420,7 @@ class VI {
42416
42420
  }
42417
42421
  }
42418
42422
  }
42419
- class x2 {
42423
+ class S2 {
42420
42424
  /**
42421
42425
  * Use this method to quickly setup a scene to compare multiple models.
42422
42426
  * @example
@@ -42472,26 +42476,26 @@ let pg = 0;
42472
42476
  function m0(o) {
42473
42477
  o ? pg++ : pg--;
42474
42478
  }
42475
- function S2() {
42479
+ function C2() {
42476
42480
  return pg > 0;
42477
42481
  }
42478
- const HI = {
42482
+ const GI = {
42479
42483
  binary: !0,
42480
42484
  animations: !0
42481
42485
  };
42482
- async function C2(o) {
42486
+ async function P2(o) {
42483
42487
  if (!o.context)
42484
42488
  throw new Error("No context provided to exportAsGLTF");
42485
42489
  o.scene || (o.scene = o.context.scene);
42486
42490
  const t = {
42487
- ...HI,
42491
+ ...GI,
42488
42492
  ...o
42489
42493
  }, { context: e } = t, i = new I0();
42490
42494
  i.register((l) => new kw(l)), i.register((l) => new pR(l)), i.register((l) => new ww(l)), Ow(i, t.context);
42491
42495
  const n = {
42492
42496
  binary: t.binary,
42493
- animations: qI(e, t.scene, [])
42494
- }, s = new GI();
42497
+ animations: XI(e, t.scene, [])
42498
+ }, s = new qI();
42495
42499
  console.debug("Exporting GLTF", n), s.onBeforeExport(t), m0(!0);
42496
42500
  const a = await i.parseAsync(t.scene, n).catch((l) => (console.error(l), null));
42497
42501
  if (m0(!1), s.onAfterExport(t), !a)
@@ -42508,7 +42512,7 @@ async function C2(o) {
42508
42512
  return a;
42509
42513
  }
42510
42514
  const g0 = Symbol("needle:weight");
42511
- class GI {
42515
+ class qI {
42512
42516
  constructor() {
42513
42517
  r(this, "_undo", []);
42514
42518
  }
@@ -42534,7 +42538,7 @@ class GI {
42534
42538
  this._undo.forEach((e) => e()), this._undo.length = 0;
42535
42539
  }
42536
42540
  }
42537
- function qI(o, t, e) {
42541
+ function XI(o, t, e) {
42538
42542
  o.animations.mixers.forEach((n) => {
42539
42543
  const s = Qc.tryGetActionsFromMixer(n);
42540
42544
  if (s)
@@ -42653,7 +42657,7 @@ class nS {
42653
42657
  return this.head !== null && this.head !== void 0;
42654
42658
  }
42655
42659
  }
42656
- class XI {
42660
+ class QI {
42657
42661
  constructor() {
42658
42662
  r(this, "avatarRegistryUrl", null);
42659
42663
  }
@@ -42777,16 +42781,16 @@ class XI {
42777
42781
  return t;
42778
42782
  }
42779
42783
  }
42780
- class QI {
42784
+ class YI {
42781
42785
  get extensionName() {
42782
42786
  return "DocumentExtension";
42783
42787
  }
42784
42788
  onAfterBuildDocument(t) {
42785
42789
  }
42786
42790
  }
42787
- class YI {
42791
+ class KI {
42788
42792
  }
42789
- const P2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42793
+ const O2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42790
42794
  __proto__: null,
42791
42795
  ActionBuilder: be,
42792
42796
  ActionCollection: hT,
@@ -42806,7 +42810,7 @@ const P2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42806
42810
  Avatar: Xr,
42807
42811
  AvatarBlink_Simple: bl,
42808
42812
  AvatarEyeLook_Rotation: dw,
42809
- AvatarLoader: XI,
42813
+ AvatarLoader: QI,
42810
42814
  AvatarMarker: oi,
42811
42815
  AvatarModel: nS,
42812
42816
  Avatar_Brain_LookAt: lu,
@@ -42845,7 +42849,7 @@ const P2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42845
42849
  DeleteBox: Zc,
42846
42850
  DepthOfField: ps,
42847
42851
  DeviceFlag: ry,
42848
- DocumentExtension: QI,
42852
+ DocumentExtension: YI,
42849
42853
  DragControls: Ea,
42850
42854
  DropListener: Ko,
42851
42855
  Duplicatable: bw,
@@ -43002,26 +43006,26 @@ const P2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
43002
43006
  XRFlag: xn,
43003
43007
  XRRig: Ky,
43004
43008
  XRState: gi,
43005
- __Ignore: YI
43009
+ __Ignore: KI
43006
43010
  }, Symbol.toStringTag, { value: "Module" })), Cu = S("debugmissingcamera");
43007
43011
  fe.registerCallback(me.MissingCamera, (o) => {
43008
- var l, c, h, d;
43012
+ var l, c, h;
43009
43013
  Cu && console.warn("Creating missing camera");
43010
43014
  const t = o.context.scene, e = new ve();
43011
43015
  e.name = "Default Fallback Camera", t.add(e);
43012
43016
  const i = new Ai();
43013
43017
  if (i.sourceId = ((c = (l = o.files) == null ? void 0 : l[0]) == null ? void 0 : c.src) ?? "unknown", i.fieldOfView = 35, o.context.domElement.getAttribute("transparent") != null)
43014
43018
  i.clearFlags = $r.Uninitialized;
43015
- else if ((h = o.context.domElement.getAttribute("skybox-image")) != null && h.length || (d = o.context.domElement.getAttribute("background-image")) != null && d.length || o.context.lightmaps.tryGetSkybox(i.sourceId))
43016
- i.clearFlags = $r.Skybox, i.backgroundBlurriness = 0.2;
43019
+ else if ((h = o.context.domElement.getAttribute("background-image")) != null && h.length || o.context.lightmaps.tryGetSkybox(i.sourceId))
43020
+ i.clearFlags = $r.Skybox, o.context.domElement.getAttribute("background-blurriness") === null && (o.context.scene.backgroundBlurriness = 0.2);
43017
43021
  else {
43018
43022
  if (i.clearFlags = $r.SolidColor, !o.context.domElement.getAttribute("background-color")) {
43019
- let u = "#efefef";
43020
- typeof window !== void 0 && window.matchMedia("(prefers-color-scheme: dark)").matches && (u = "#1f1f1f"), t.background = new re(u);
43023
+ let d = "#efefef";
43024
+ typeof window !== void 0 && window.matchMedia("(prefers-color-scheme: dark)").matches && (d = "#1f1f1f"), t.background = new re(d);
43021
43025
  }
43022
43026
  if (!t.environment) {
43023
- const u = new wC(o.context.renderer), f = new Xy("neutral");
43024
- t.environment = u.fromScene(f, 0.025).texture;
43027
+ const d = new wC(o.context.renderer), u = new Xy("neutral");
43028
+ t.environment = d.fromScene(u, 0.025).texture;
43025
43029
  }
43026
43030
  }
43027
43031
  const s = qa(e, i, !0);
@@ -43075,7 +43079,7 @@ fe.registerCallback(me.ContextCreated, (o) => {
43075
43079
  createAnimationComponent: (n, s) => sn(n, si)
43076
43080
  });
43077
43081
  });
43078
- class KI extends t1 {
43082
+ class ZI extends t1 {
43079
43083
  constructor() {
43080
43084
  super(new Worker(new URL(
43081
43085
  /* @vite-ignore */
@@ -43121,12 +43125,12 @@ class KI extends t1 {
43121
43125
  });
43122
43126
  }
43123
43127
  }
43124
- const ZI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
43128
+ const JI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
43125
43129
  __proto__: null,
43126
- GenerateMeshBVHWorker: KI
43130
+ GenerateMeshBVHWorker: ZI
43127
43131
  }, Symbol.toStringTag, { value: "Module" }));
43128
43132
  export {
43129
- h2 as $physicsKey,
43133
+ d2 as $physicsKey,
43130
43134
  be as ActionBuilder,
43131
43135
  hT as ActionCollection,
43132
43136
  Ji as ActionModel,
@@ -43154,7 +43158,7 @@ export {
43154
43158
  Xr as Avatar,
43155
43159
  bl as AvatarBlink_Simple,
43156
43160
  dw as AvatarEyeLook_Rotation,
43157
- XI as AvatarLoader,
43161
+ QI as AvatarLoader,
43158
43162
  oi as AvatarMarker,
43159
43163
  nS as AvatarModel,
43160
43164
  lu as Avatar_Brain_LookAt,
@@ -43196,15 +43200,15 @@ export {
43196
43200
  ca as ColorAdjustments,
43197
43201
  Mh as ColorBySpeedModule,
43198
43202
  Ey as ColorOverLifetimeModule,
43199
- ZL as Component,
43203
+ JL as Component,
43200
43204
  j as Component$1,
43201
43205
  Xu as ComponentLifecycleEvents,
43202
- P2 as Components,
43206
+ O2 as Components,
43203
43207
  IP as ConnectionEvents,
43204
43208
  EM as ContactPoint,
43205
43209
  cf as ContactShadows,
43206
43210
  Z as Context,
43207
- QL as ContextArgs,
43211
+ YL as ContextArgs,
43208
43212
  me as ContextEvent,
43209
43213
  fe as ContextRegistry,
43210
43214
  Vy as ControlTrackHandler,
@@ -43216,7 +43220,7 @@ export {
43216
43220
  ps as DepthOfField,
43217
43221
  ry as DeviceFlag,
43218
43222
  Q as DeviceUtilities,
43219
- QI as DocumentExtension,
43223
+ YI as DocumentExtension,
43220
43224
  Ea as DragControls,
43221
43225
  yw as DragMode,
43222
43226
  Ko as DropListener,
@@ -43233,7 +43237,7 @@ export {
43233
43237
  LR as FieldWithDefault,
43234
43238
  eu as FileReference,
43235
43239
  JO as FileReferenceSerializer,
43236
- d2 as FileSpawnModel,
43240
+ u2 as FileSpawnModel,
43237
43241
  sR as File_Event,
43238
43242
  hx as FixedJoint,
43239
43243
  Sh as Fog,
@@ -43255,7 +43259,7 @@ export {
43255
43259
  eh as HideOnStart,
43256
43260
  Sf as HingeJoint,
43257
43261
  ox as HorizontalLayoutGroup,
43258
- VL as HostData,
43262
+ HL as HostData,
43259
43263
  Dh as Image,
43260
43264
  Jd as ImageReference,
43261
43265
  ZO as ImageReferenceSerializer,
@@ -43272,16 +43276,16 @@ export {
43272
43276
  cs as InstantiateOptions,
43273
43277
  mw as Interactable,
43274
43278
  wu as InternalScreenshotUtils,
43275
- FL as JoinedRoomResponse,
43276
- DL as KeyEventArgs,
43279
+ zL as JoinedRoomResponse,
43280
+ jL as KeyEventArgs,
43277
43281
  Ii as Keyframe,
43278
43282
  Cf as LODGroup,
43279
43283
  Oh as LODModel,
43280
- zL as LeftRoomResponse,
43284
+ UL as LeftRoomResponse,
43281
43285
  Wi as Light,
43282
43286
  mk as LightData,
43283
43287
  Pt as LimitVelocityOverLifetimeModule,
43284
- w2 as LoadingElementOptions,
43288
+ x2 as LoadingElementOptions,
43285
43289
  pw as LogStats,
43286
43290
  nn as LogType,
43287
43291
  Nx as LookAt,
@@ -43409,7 +43413,7 @@ export {
43409
43413
  Ec as SpriteData,
43410
43414
  Ni as SpriteRenderer,
43411
43415
  th as SpriteSheet,
43412
- e2 as StateMachineBehaviour,
43416
+ t2 as StateMachineBehaviour,
43413
43417
  rw as StreamEndedEvent,
43414
43418
  LM as StreamReceivedEvent,
43415
43419
  og as SubEmitterSystem,
@@ -43419,7 +43423,7 @@ export {
43419
43423
  Gw as TapGestureTrigger,
43420
43424
  by as TeleportTarget,
43421
43425
  Ix as TestRunner,
43422
- x2 as TestSceneUtils,
43426
+ S2 as TestSceneUtils,
43423
43427
  Lx as TestSimulateUserData,
43424
43428
  ai as Text,
43425
43429
  nx as TextBuilder,
@@ -43447,7 +43451,7 @@ export {
43447
43451
  cx as USDZUIExtension,
43448
43452
  pM as UriSerializer,
43449
43453
  hf as UsageMarker,
43450
- UL as UserJoinedOrLeftRoomModel,
43454
+ NL as UserJoinedOrLeftRoomModel,
43451
43455
  es as VERSION,
43452
43456
  Ww as VariantAction,
43453
43457
  Je as VelocityOverLifetimeModule,
@@ -43460,7 +43464,7 @@ export {
43460
43464
  Th as Volume,
43461
43465
  N as VolumeParameter,
43462
43466
  Iy as VolumeProfile,
43463
- GL as WaitForFrames,
43467
+ qL as WaitForFrames,
43464
43468
  tk as WaitForPromise,
43465
43469
  Gv as WaitForSeconds,
43466
43470
  Fo as Watch,
@@ -43479,25 +43483,25 @@ export {
43479
43483
  Ky as XRRig,
43480
43484
  gi as XRState,
43481
43485
  As as XRStateFlag,
43482
- YI as __Ignore,
43486
+ KI as __Ignore,
43483
43487
  eO as __internalNotifyObjectDestroyed,
43484
43488
  zo as activeInHierarchyFieldName,
43485
43489
  w1 as addAttributeChangeCallback,
43486
43490
  sn as addComponent,
43487
- u2 as addCustomExtensionPlugin,
43491
+ f2 as addCustomExtensionPlugin,
43488
43492
  qa as addNewComponent,
43489
43493
  Eg as addPatch,
43490
43494
  $g as apply,
43491
- KL as applyHMRChanges,
43495
+ ZL as applyHMRChanges,
43492
43496
  jO as applyPrototypeExtensions,
43493
43497
  dO as beginListenDestroy,
43494
43498
  pO as beginListenInstantiate,
43495
43499
  mv as binaryIdentifierCasts,
43496
- XL as build_scene_functions,
43500
+ QL as build_scene_functions,
43497
43501
  Sa as builtinComponentKeyName,
43498
43502
  Yx as calculateProgress01,
43499
- CL as clearMessages,
43500
- a2 as colorSerializer,
43503
+ PL as clearMessages,
43504
+ l2 as colorSerializer,
43501
43505
  xO as compareAssociation,
43502
43506
  vp as componentSerializer,
43503
43507
  K1 as copyTexture,
@@ -43516,9 +43520,9 @@ export {
43516
43520
  js as disposeStream,
43517
43521
  bd as editorGuidKeyName,
43518
43522
  Wa as enableSpatialConsole,
43519
- l2 as euler,
43520
- c2 as eventListSerializer,
43521
- C2 as exportAsGLTF,
43523
+ c2 as euler,
43524
+ h2 as eventListSerializer,
43525
+ P2 as exportAsGLTF,
43522
43526
  $v as findByGuid,
43523
43527
  Ju as findObjectOfType,
43524
43528
  WO as findObjectsOfType,
@@ -43526,7 +43530,7 @@ export {
43526
43530
  tP as fitObjectIntoVolume,
43527
43531
  cl as foreachComponent,
43528
43532
  Vg as foreachComponentEnumerator,
43529
- ML as forward,
43533
+ RL as forward,
43530
43534
  C1 as generateQRCode,
43531
43535
  fO as generateSeed,
43532
43536
  Fi as getBoundingBox,
@@ -43543,11 +43547,11 @@ export {
43543
43547
  os as getLoader,
43544
43548
  Yu as getOrAddComponent,
43545
43549
  S as getParam,
43546
- RL as getParentHierarchyPath,
43547
- dL as getPath,
43548
- jL as getPeerOptions,
43550
+ TL as getParentHierarchyPath,
43551
+ uL as getPath,
43552
+ BL as getPeerOptions,
43549
43553
  RP as getPeerjsInstance,
43550
- WL as getResourceUserCount,
43554
+ VL as getResourceUserCount,
43551
43555
  N1 as getTempColor,
43552
43556
  Un as getTempQuaternion,
43553
43557
  q as getTempVector,
@@ -43571,62 +43575,62 @@ export {
43571
43575
  _P as invokeXRSessionStart,
43572
43576
  VO as isActiveInHierarchy,
43573
43577
  uh as isActiveSelf,
43574
- gL as isAndroidDevice,
43578
+ yL as isAndroidDevice,
43575
43579
  Y1 as isAnimationAction,
43576
43580
  TM as isComponent,
43577
- aL as isDebugMode,
43578
- uL as isDesktop,
43581
+ lL as isDebugMode,
43582
+ fL as isDesktop,
43579
43583
  ll as isDestroyed,
43580
43584
  z as isDevEnvironment,
43581
- $L as isDisposed,
43582
- S2 as isExporting,
43585
+ WL as isDisposed,
43586
+ C2 as isExporting,
43583
43587
  RM as isGLTFModel,
43584
43588
  r1 as isHostedOnGlitch,
43585
43589
  gb as isHotReloadEnabled,
43586
- YL as isHotReloading,
43587
- pL as isIPad,
43590
+ KL as isHotReloading,
43591
+ mL as isIPad,
43588
43592
  bk as isIconElement,
43589
43593
  _i as isLocalNetwork,
43590
- _L as isMacOS,
43591
- fL as isMobileDevice,
43592
- yL as isMozillaXR,
43593
- wL as isQuest,
43594
+ bL as isMacOS,
43595
+ pL as isMobileDevice,
43596
+ _L as isMozillaXR,
43597
+ xL as isQuest,
43594
43598
  JP as isResourceTrackingEnabled,
43595
- vL as isSafari,
43599
+ wL as isSafari,
43596
43600
  Wg as isUsingInstancing,
43597
- bL as isiOS,
43598
- mL as isiPad,
43599
- v2 as loadAsset,
43601
+ vL as isiOS,
43602
+ gL as isiPad,
43603
+ w2 as loadAsset,
43600
43604
  qx as loadSync,
43601
43605
  mm as logHierarchy,
43602
- OL as lookAtInverse,
43606
+ kL as lookAtInverse,
43603
43607
  Vu as lookAtObject,
43604
- kL as lookAtScreenPoint,
43605
- cL as makeId,
43608
+ ML as lookAtScreenPoint,
43609
+ hL as makeId,
43606
43610
  y1 as makeIdFromRandomWords,
43607
43611
  Tn as makeNameSafe,
43608
43612
  HO as markAsInstancedRendered,
43609
- xL as microphonePermissionsGranted,
43610
- rL as nameof,
43613
+ SL as microphonePermissionsGranted,
43614
+ aL as nameof,
43611
43615
  m1 as nameofFactory,
43612
43616
  cM as objectSerializer,
43613
- LL as offXRSessionEnd,
43614
- IL as offXRSessionStart,
43615
- s2 as onAfterRender,
43616
- n2 as onBeforeRender,
43617
- t2 as onClear,
43618
- i2 as onDestroy,
43617
+ DL as offXRSessionEnd,
43618
+ LL as offXRSessionStart,
43619
+ o2 as onAfterRender,
43620
+ s2 as onBeforeRender,
43621
+ i2 as onClear,
43622
+ n2 as onDestroy,
43619
43623
  Zk as onInitialized,
43620
43624
  Jk as onStart,
43621
43625
  eM as onUpdate,
43622
43626
  uv as onXRSessionEnd,
43623
43627
  Ig as onXRSessionStart,
43624
- AI as parseSync,
43628
+ II as parseSync,
43625
43629
  iP as placeOnSurface,
43626
43630
  ev as postprocessFBXMaterials,
43627
- r2 as prefix,
43631
+ a2 as prefix,
43628
43632
  g1 as pushState,
43629
- hL as randomNumber,
43633
+ dL as randomNumber,
43630
43634
  gv as registerBinaryType,
43631
43635
  Gg as registerComponent,
43632
43636
  Pw as registerComponentExtension,
@@ -43637,16 +43641,16 @@ export {
43637
43641
  cv as registerLoader,
43638
43642
  gO as registerPrefabProvider,
43639
43643
  BO as registerPrototypeExtensions,
43640
- HL as registerType,
43644
+ GL as registerType,
43641
43645
  b1 as relativePathPrefix,
43642
43646
  x1 as removeAttributeChangeCallback,
43643
43647
  zv as removeComponent,
43644
- f2 as removeCustomImportExtensionType,
43645
- AL as removePatch,
43648
+ p2 as removeCustomImportExtensionType,
43649
+ IL as removePatch,
43646
43650
  Jr as resolveUrl,
43647
43651
  _1 as sanitizeString,
43648
- gI as saveImage,
43649
- b2 as screenshot,
43652
+ yI as saveImage,
43653
+ v2 as screenshot,
43650
43654
  Wx as screenshot2,
43651
43655
  Tv as sendDestroyed,
43652
43656
  p as serializable,
@@ -43654,18 +43658,18 @@ export {
43654
43658
  yl as serializeable,
43655
43659
  Cd as setActive,
43656
43660
  M1 as setAllowBalloonMessages,
43657
- SL as setAllowOverlayMessages,
43661
+ CL as setAllowOverlayMessages,
43658
43662
  pm as setAutoFitEnabled,
43659
43663
  __ as setCameraController,
43660
43664
  GO as setDestroyed,
43661
- EL as setDevEnvironment,
43665
+ AL as setDevEnvironment,
43662
43666
  xv as setDisposable,
43663
43667
  Vl as setDontDestroy,
43664
43668
  u_ as setOrAddParamsToUrl,
43665
- lL as setParam,
43669
+ cL as setParam,
43666
43670
  Ud as setParamWithoutReload,
43667
- BL as setPeerOptions,
43668
- NL as setResourceTrackingEnabled,
43671
+ FL as setPeerOptions,
43672
+ $L as setResourceTrackingEnabled,
43669
43673
  U0 as setState,
43670
43674
  J0 as setVisibleInCustomShadowRendering,
43671
43675
  Z0 as setWorldEuler,
@@ -43680,11 +43684,11 @@ export {
43680
43684
  Ve as showBalloonMessage,
43681
43685
  we as showBalloonWarning,
43682
43686
  nv as showDebugConsole,
43683
- PL as slerp,
43687
+ OL as slerp,
43684
43688
  Qu as syncDestroy,
43685
43689
  Xw as syncField,
43686
43690
  Ev as syncInstantiate,
43687
- TL as textureToCanvas,
43691
+ EL as textureToCanvas,
43688
43692
  kP as tryCastBinary,
43689
43693
  aR as tryDetermineMimetypeFromBinary,
43690
43694
  rR as tryDetermineMimetypeFromURL,