@needle-tools/engine 4.0.2-alpha → 4.0.2-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29770,15 +29770,15 @@ function xIA() {
29770
29770
  return g || null;
29771
29771
  }
29772
29772
  const CW = gA("debugdefines");
29773
- sc('if(!globalThis[""4.0.2-alpha""]) globalThis[""4.0.2-alpha""] = "0.0.0";');
29773
+ sc('if(!globalThis[""4.0.2-alpha.1""]) globalThis[""4.0.2-alpha.1""] = "0.0.0";');
29774
29774
  sc('if(!globalThis[""undefined""]) globalThis[""undefined""] = "unknown";');
29775
- sc('if(!globalThis[""Thu Dec 12 2024 16:46:09 GMT+0100 (Central European Standard Time)""]) globalThis[""Thu Dec 12 2024 16:46:09 GMT+0100 (Central European Standard Time)""] = "unknown";');
29775
+ sc('if(!globalThis[""Thu Dec 12 2024 16:54:42 GMT+0100 (Central European Standard Time)""]) globalThis[""Thu Dec 12 2024 16:54:42 GMT+0100 (Central European Standard Time)""] = "unknown";');
29776
29776
  sc('if(!globalThis[""npk_74222a9fbd1b42572cdd3bf7f639eeb17a07d07f40a6185fac5f722e8fd34df9""]) globalThis[""npk_74222a9fbd1b42572cdd3bf7f639eeb17a07d07f40a6185fac5f722e8fd34df9""] = "unknown";');
29777
- sc('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.0.2-alpha";');
29777
+ sc('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.0.2-alpha.1";');
29778
29778
  sc('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
29779
- sc('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Thu Dec 12 2024 16:46:09 GMT+0100 (Central European Standard Time)";');
29779
+ sc('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Thu Dec 12 2024 16:54:42 GMT+0100 (Central European Standard Time)";');
29780
29780
  sc('globalThis["__NEEDLE_PUBLIC_KEY__"] = "npk_74222a9fbd1b42572cdd3bf7f639eeb17a07d07f40a6185fac5f722e8fd34df9";');
29781
- const Ha = "4.0.2-alpha", mv = "undefined", BW = "Thu Dec 12 2024 16:46:09 GMT+0100 (Central European Standard Time)";
29781
+ const Ha = "4.0.2-alpha.1", mv = "undefined", BW = "Thu Dec 12 2024 16:54:42 GMT+0100 (Central European Standard Time)";
29782
29782
  CW && console.log(`Engine version: ${Ha} (generator: ${mv})
29783
29783
  Project built at ${BW}`);
29784
29784
  const Xm = "npk_74222a9fbd1b42572cdd3bf7f639eeb17a07d07f40a6185fac5f722e8fd34df9", _B = "needle_isActiveInHierarchy", zh = "builtin_components", zm = "needle_editor_guid";
@@ -46396,7 +46396,7 @@ class pCA {
46396
46396
  this.workers.forEach((A) => A.terminate()), this.workersResolve.length = 0, this.workers.length = 0, this.queue.length = 0, this.workerStatus = 0;
46397
46397
  }
46398
46398
  }
46399
- const fCA = 0, JY = 2, DCA = 1, vY = 2, yCA = 0, wCA = 1, mCA = 10, SCA = 0, VW = 9, XW = 15, zW = 16, jW = 22, $W = 37, AV = 43, eV = 76, tV = 83, iV = 97, gV = 100, oV = 103, IV = 109, sV = 165, nV = 166;
46399
+ const fCA = 0, JY = 2, DCA = 1, vY = 2, yCA = 0, wCA = 1, mCA = 10, SCA = 0, VW = 9, XW = 15, zW = 16, jW = 22, $W = 37, A5 = 43, e5 = 76, t5 = 83, i5 = 97, g5 = 100, o5 = 103, I5 = 109, s5 = 165, n5 = 166;
46400
46400
  class GCA {
46401
46401
  constructor() {
46402
46402
  this.vkFormat = 0, this.typeSize = 1, this.pixelWidth = 0, this.pixelHeight = 0, this.pixelDepth = 0, this.layerCount = 0, this.faceCount = 1, this.supercompressionScheme = 0, this.levels = [], this.dataFormatDescriptor = [{ vendorId: 0, descriptorType: 0, descriptorBlockSize: 0, versionNumber: 2, colorModel: 0, colorPrimaries: 1, transferFunction: 2, flags: 0, texelBlockDimension: [0, 0, 0, 0], bytesPlane: [0, 0, 0, 0, 0, 0, 0, 0], samples: [] }], this.keyValue = {}, this.globalData = null;
@@ -46587,7 +46587,7 @@ class va extends ac {
46587
46587
  const C = t[0].mipmaps;
46588
46588
  r = e.layerCount > 1 ? new orA(C, i, o, e.layerCount, I, js) : new Vk(C, i, o, I, js);
46589
46589
  }
46590
- return r.minFilter = t[0].mipmaps.length === 1 ? ID : Pk, r.magFilter = ID, r.generateMipmaps = !1, r.needsUpdate = !0, r.colorSpace = aV(e), r.premultiplyAlpha = !!(a & DCA), r;
46590
+ return r.minFilter = t[0].mipmaps.length === 1 ? ID : Pk, r.magFilter = ID, r.generateMipmaps = !1, r.needsUpdate = !0, r.colorSpace = a5(e), r.premultiplyAlpha = !!(a & DCA), r;
46591
46591
  }
46592
46592
  /**
46593
46593
  * @param {ArrayBuffer} buffer
@@ -46792,35 +46792,35 @@ va.BasisWorker = function() {
46792
46792
  }
46793
46793
  };
46794
46794
  const RCA = /* @__PURE__ */ new Set([kB, wp, hE]), aN = {
46795
- [IV]: kB,
46796
- [iV]: kB,
46795
+ [I5]: kB,
46796
+ [i5]: kB,
46797
46797
  [$W]: kB,
46798
- [AV]: kB,
46799
- [oV]: wp,
46800
- [tV]: wp,
46798
+ [A5]: kB,
46799
+ [o5]: wp,
46800
+ [t5]: wp,
46801
46801
  [zW]: wp,
46802
46802
  [jW]: wp,
46803
- [gV]: hE,
46804
- [eV]: hE,
46803
+ [g5]: hE,
46804
+ [e5]: hE,
46805
46805
  [XW]: hE,
46806
46806
  [VW]: hE,
46807
- [nV]: LH,
46808
- [sV]: LH
46807
+ [n5]: LH,
46808
+ [s5]: LH
46809
46809
  }, rN = {
46810
- [IV]: Fl,
46811
- [iV]: jm,
46810
+ [I5]: Fl,
46811
+ [i5]: jm,
46812
46812
  [$W]: js,
46813
- [AV]: js,
46814
- [oV]: Fl,
46815
- [tV]: jm,
46813
+ [A5]: js,
46814
+ [o5]: Fl,
46815
+ [t5]: jm,
46816
46816
  [zW]: js,
46817
46817
  [jW]: js,
46818
- [gV]: Fl,
46819
- [eV]: jm,
46818
+ [g5]: Fl,
46819
+ [e5]: jm,
46820
46820
  [XW]: js,
46821
46821
  [VW]: js,
46822
- [nV]: js,
46823
- [sV]: js
46822
+ [n5]: js,
46823
+ [s5]: js
46824
46824
  };
46825
46825
  async function UCA(g) {
46826
46826
  const { vkFormat: A } = g;
@@ -46865,9 +46865,9 @@ async function UCA(g) {
46865
46865
  throw new Error("THREE.KTX2Loader: Unsupported pixelDepth.");
46866
46866
  i = new Vk(t, g.pixelWidth, g.pixelHeight);
46867
46867
  }
46868
- return i.mipmaps = t, i.type = rN[A], i.format = aN[A], i.colorSpace = aV(g), i.needsUpdate = !0, Promise.resolve(i);
46868
+ return i.mipmaps = t, i.type = rN[A], i.format = aN[A], i.colorSpace = a5(g), i.needsUpdate = !0, Promise.resolve(i);
46869
46869
  }
46870
- function aV(g) {
46870
+ function a5(g) {
46871
46871
  const A = g.dataFormatDescriptor[0];
46872
46872
  return A.colorPrimaries === wCA ? A.transferFunction === vY ? Ho : zI : A.colorPrimaries === mCA ? A.transferFunction === vY ? xW : Fv : (A.colorPrimaries === yCA || console.warn(`THREE.KTX2Loader: Unsupported color primaries, "${A.colorPrimaries}"`), zS);
46873
46873
  }
@@ -46886,7 +46886,7 @@ let jh, $m, $h;
46886
46886
  function Pv(g) {
46887
46887
  return jh || (jh = new dCA(), jh.setDecoderPath(FE), jh.setDecoderConfig({ type: "js" })), $h || ($h = new va(), $h.setTranscoderPath(rD)), $m || ($m = ECA), g ? $h.detectSupport(g) : g !== null && console.warn("No renderer provided to detect ktx2 support - loading KTX2 textures might fail"), { dracoLoader: jh, ktx2Loader: $h, meshoptDecoder: $m };
46888
46888
  }
46889
- function rV(g) {
46889
+ function r5(g) {
46890
46890
  g.dracoLoader || g.setDRACOLoader(jh), g.ktx2Loader || g.setKTX2Loader($h), g.meshoptDecoder || g.setMeshoptDecoder($m);
46891
46891
  }
46892
46892
  const mK = /* @__PURE__ */ new WeakMap();
@@ -47261,7 +47261,7 @@ const Xg = class {
47261
47261
  }
47262
47262
  const Q = o, d = new Promise(async (E, p) => {
47263
47263
  const u = new Ov();
47264
- rV(u), Bi && (await new Promise((k) => setTimeout(k, 1e3)), e && console.warn("Start loading (delayed) " + C, Q.guid));
47264
+ r5(u), Bi && (await new Promise((k) => setTimeout(k, 1e3)), e && console.warn("Start loading (delayed) " + C, Q.guid));
47265
47265
  let f = C;
47266
47266
  if (Q && Array.isArray(Q.lods)) {
47267
47267
  const k = Q.lods[A];
@@ -47385,14 +47385,14 @@ class TCA {
47385
47385
  this.url = A, this.key = e, this.level = t, i != null && (this.index = i), o != null && (this.density = o);
47386
47386
  }
47387
47387
  }
47388
- var CV = (g, A, e) => {
47388
+ var C5 = (g, A, e) => {
47389
47389
  if (!A.has(g))
47390
47390
  throw TypeError("Cannot " + e);
47391
- }, ri = (g, A, e) => (CV(g, A, "read from private field"), e ? e.call(g) : A.get(g)), qc = (g, A, e) => {
47391
+ }, ri = (g, A, e) => (C5(g, A, "read from private field"), e ? e.call(g) : A.get(g)), qc = (g, A, e) => {
47392
47392
  if (A.has(g))
47393
47393
  throw TypeError("Cannot add the same private member more than once");
47394
47394
  A instanceof WeakSet ? A.add(g) : A.set(g, e);
47395
- }, wr = (g, A, e, t) => (CV(g, A, "write to private field"), t ? t.call(g, e) : A.set(g, e), e), xI, cB, MK, AE, mp, AS, lB;
47395
+ }, wr = (g, A, e, t) => (C5(g, A, "write to private field"), t ? t.call(g, e) : A.set(g, e), e), xI, cB, MK, AE, mp, AS, lB;
47396
47396
  const Un = ty("debugprogressive"), HCA = ty("noprogressive"), BN = Symbol("Needle:LODSManager"), cN = Symbol("Needle:LODState"), yh = Symbol("Needle:CurrentLOD"), Nn = { mesh_lod: -1, texture_lod: -1 }, _s = class {
47397
47397
  // readonly plugins: NEEDLE_progressive_plugin[] = [];
47398
47398
  constructor(g, A) {
@@ -47702,14 +47702,14 @@ class YCA {
47702
47702
  }
47703
47703
  const TY = Symbol("NEEDLE_mesh_lod"), l0 = Symbol("NEEDLE_texture_lod");
47704
47704
  let qu = null;
47705
- function BV() {
47705
+ function B5() {
47706
47706
  const g = OCA();
47707
47707
  g && (g.mapURLs(function(A) {
47708
47708
  return HY(), A;
47709
47709
  }), HY(), qu == null || qu.disconnect(), qu = new MutationObserver((A) => {
47710
47710
  A.forEach((e) => {
47711
47711
  e.addedNodes.forEach((t) => {
47712
- t instanceof HTMLElement && t.tagName.toLowerCase() === "model-viewer" && cV(t);
47712
+ t instanceof HTMLElement && t.tagName.toLowerCase() === "model-viewer" && c5(t);
47713
47713
  });
47714
47714
  });
47715
47715
  }), qu.observe(document, { childList: !0, subtree: !0 }));
@@ -47719,19 +47719,19 @@ function OCA() {
47719
47719
  return null;
47720
47720
  const g = customElements.get("model-viewer");
47721
47721
  return g || (customElements.whenDefined("model-viewer").then(() => {
47722
- console.debug("[gltf-progressive] model-viewer defined"), BV();
47722
+ console.debug("[gltf-progressive] model-viewer defined"), B5();
47723
47723
  }), null);
47724
47724
  }
47725
47725
  function HY() {
47726
47726
  if (typeof document > "u")
47727
47727
  return;
47728
47728
  document.querySelectorAll("model-viewer").forEach((A) => {
47729
- cV(A);
47729
+ c5(A);
47730
47730
  });
47731
47731
  }
47732
47732
  const YY = /* @__PURE__ */ new WeakSet();
47733
47733
  let PCA = 0;
47734
- function cV(g) {
47734
+ function c5(g) {
47735
47735
  if (!g || YY.has(g))
47736
47736
  return null;
47737
47737
  YY.add(g), console.debug("[gltf-progressive] found new model-viewer..." + ++PCA + `
@@ -47839,7 +47839,7 @@ class ZCA {
47839
47839
  }
47840
47840
  }
47841
47841
  }
47842
- BV();
47842
+ B5();
47843
47843
  const sd = [];
47844
47844
  function Zv(g) {
47845
47845
  sd.indexOf(g) === -1 && sd.push(g);
@@ -47849,7 +47849,7 @@ function wRA(g) {
47849
47849
  A !== -1 && sd.splice(A, 1);
47850
47850
  }
47851
47851
  const nd = [];
47852
- function lV(g) {
47852
+ function l5(g) {
47853
47853
  nd.indexOf(g) === -1 && nd.push(g);
47854
47854
  }
47855
47855
  function mRA(g) {
@@ -47897,7 +47897,7 @@ const Vg = {
47897
47897
  VISIBILITY: "visibility"
47898
47898
  })
47899
47899
  };
47900
- async function QV(g) {
47900
+ async function Q5(g) {
47901
47901
  const A = await fetch(g);
47902
47902
  if (A.ok)
47903
47903
  return A.json();
@@ -47906,7 +47906,7 @@ async function QV(g) {
47906
47906
  async function XCA(g) {
47907
47907
  if (!g)
47908
47908
  throw new Error("No basePath supplied");
47909
- return await QV(`${g}/profilesList.json`);
47909
+ return await Q5(`${g}/profilesList.json`);
47910
47910
  }
47911
47911
  async function zCA(g, A, e = null, t = !0) {
47912
47912
  if (!g)
@@ -47934,7 +47934,7 @@ async function zCA(g, A, e = null, t = !0) {
47934
47934
  deprecated: !!n.deprecated
47935
47935
  };
47936
47936
  }
47937
- const I = await QV(o.profilePath);
47937
+ const I = await Q5(o.profilePath);
47938
47938
  let s;
47939
47939
  if (t) {
47940
47940
  let n;
@@ -48850,7 +48850,7 @@ class oBA {
48850
48850
  }
48851
48851
  }
48852
48852
  const Ca = gA("debugwebxr"), h0 = gA("debugcustomgesture"), IBA = "https://cdn.jsdelivr.net/npm/@webxr-input-profiles/assets@1.0/dist/profiles", sBA = "generic-trigger", nBA = new GA().setFromEuler(new rt(ct.degToRad(0), ct.degToRad(-90), ct.degToRad(-90))), aBA = new S(0.04, -0.04, 0);
48853
- class hV {
48853
+ class h5 {
48854
48854
  constructor(A, e, t) {
48855
48855
  /** the Needle XR Session */
48856
48856
  c(this, "xr");
@@ -49528,10 +49528,10 @@ function Cc(g, A) {
49528
49528
  }
49529
49529
  }
49530
49530
  function Ba(g, A) {
49531
- A === Rt.ContextCreated && RK.delete(g), EV(g, A);
49531
+ A === Rt.ContextCreated && RK.delete(g), E5(g, A);
49532
49532
  }
49533
- function EV(g, A) {
49534
- A === pi.Start && KE.get(Rt.ContextCreated) && EV(g, Rt.ContextCreated);
49533
+ function E5(g, A) {
49534
+ A === pi.Start && KE.get(Rt.ContextCreated) && E5(g, Rt.ContextCreated);
49535
49535
  const e = A === pi.Start || A === Rt.ContextCreated, t = dE.get(A);
49536
49536
  t && t.length > 0 && VY(g, t, e);
49537
49537
  const i = KE.get(A);
@@ -50203,12 +50203,12 @@ class gy {
50203
50203
  return e(this, A.length), this.createObjectOffsetList(A), this.endVector();
50204
50204
  }
50205
50205
  }
50206
- const dV = {};
50207
- function uV(g, A) {
50208
- dV[g] = A;
50206
+ const d5 = {};
50207
+ function u5(g, A) {
50208
+ d5[g] = A;
50209
50209
  }
50210
50210
  function rBA(g) {
50211
- const A = g.getBufferIdentifier(), e = dV[A];
50211
+ const A = g.getBufferIdentifier(), e = d5[A];
50212
50212
  return e(g);
50213
50213
  }
50214
50214
  function CBA(g) {
@@ -50217,7 +50217,7 @@ function CBA(g) {
50217
50217
  function zk(g) {
50218
50218
  return g && g.__esModule && Object.prototype.hasOwnProperty.call(g, "default") ? g.default : g;
50219
50219
  }
50220
- var pV = { exports: {} };
50220
+ var p5 = { exports: {} };
50221
50221
  (function(g) {
50222
50222
  var A = {};
50223
50223
  A.useBlobBuilder = function() {
@@ -50253,8 +50253,8 @@ var pV = { exports: {} };
50253
50253
  } else
50254
50254
  return new Blob(this._parts);
50255
50255
  }, g.exports.BufferBuilder = t;
50256
- })(pV);
50257
- var fV = pV.exports, BBA = fV.BufferBuilder, jY = fV.binaryFeatures, cBA = {
50256
+ })(p5);
50257
+ var f5 = p5.exports, BBA = f5.BufferBuilder, jY = f5.binaryFeatures, cBA = {
50258
50258
  unpack: function(g) {
50259
50259
  var A = new ko(g);
50260
50260
  return A.unpack();
@@ -50563,7 +50563,7 @@ function hBA(g) {
50563
50563
  return g.length > 600 ? new Blob([g]).size : g.replace(/[^\u0000-\u007F]/g, QBA).length;
50564
50564
  }
50565
50565
  const $Y = /* @__PURE__ */ zk(lBA);
50566
- let DV = !0, yV = !0;
50566
+ let D5 = !0, y5 = !0;
50567
50567
  function Sp(g, A, e) {
50568
50568
  const t = g.match(A);
50569
50569
  return t && t.length >= e && parseInt(t[e], 10);
@@ -50613,20 +50613,20 @@ function Fd(g, A, e) {
50613
50613
  });
50614
50614
  }
50615
50615
  function EBA(g) {
50616
- return typeof g != "boolean" ? new Error("Argument type: " + typeof g + ". Please use a boolean.") : (DV = g, g ? "adapter.js logging disabled" : "adapter.js logging enabled");
50616
+ return typeof g != "boolean" ? new Error("Argument type: " + typeof g + ". Please use a boolean.") : (D5 = g, g ? "adapter.js logging disabled" : "adapter.js logging enabled");
50617
50617
  }
50618
50618
  function dBA(g) {
50619
- return typeof g != "boolean" ? new Error("Argument type: " + typeof g + ". Please use a boolean.") : (yV = !g, "adapter.js deprecation warnings " + (g ? "disabled" : "enabled"));
50619
+ return typeof g != "boolean" ? new Error("Argument type: " + typeof g + ". Please use a boolean.") : (y5 = !g, "adapter.js deprecation warnings " + (g ? "disabled" : "enabled"));
50620
50620
  }
50621
50621
  function Xv() {
50622
50622
  if (typeof window == "object") {
50623
- if (DV)
50623
+ if (D5)
50624
50624
  return;
50625
50625
  typeof console < "u" && typeof console.log == "function" && console.log.apply(console, arguments);
50626
50626
  }
50627
50627
  }
50628
50628
  function jk(g, A) {
50629
- yV && console.warn(g + " is deprecated, please use " + A + " instead.");
50629
+ y5 && console.warn(g + " is deprecated, please use " + A + " instead.");
50630
50630
  }
50631
50631
  function uBA(g) {
50632
50632
  const A = { browser: null, version: null };
@@ -50664,9 +50664,9 @@ function uBA(g) {
50664
50664
  function A2(g) {
50665
50665
  return Object.prototype.toString.call(g) === "[object Object]";
50666
50666
  }
50667
- function wV(g) {
50667
+ function w5(g) {
50668
50668
  return A2(g) ? Object.keys(g).reduce(function(A, e) {
50669
- const t = A2(g[e]), i = t ? wV(g[e]) : g[e], o = t && !Object.keys(i).length;
50669
+ const t = A2(g[e]), i = t ? w5(g[e]) : g[e], o = t && !Object.keys(i).length;
50670
50670
  return i === void 0 || o ? A : Object.assign(A, { [e]: i });
50671
50671
  }, {}) : g;
50672
50672
  }
@@ -50691,7 +50691,7 @@ function e2(g, A, e) {
50691
50691
  }), i;
50692
50692
  }
50693
50693
  const t2 = Xv;
50694
- function mV(g, A) {
50694
+ function m5(g, A) {
50695
50695
  const e = g && g.navigator;
50696
50696
  if (!e.mediaDevices)
50697
50697
  return;
@@ -50803,10 +50803,10 @@ function pBA(g, A) {
50803
50803
  };
50804
50804
  }
50805
50805
  }
50806
- function SV(g) {
50806
+ function S5(g) {
50807
50807
  g.MediaStream = g.MediaStream || g.webkitMediaStream;
50808
50808
  }
50809
- function GV(g) {
50809
+ function G5(g) {
50810
50810
  if (typeof g == "object" && g.RTCPeerConnection && !("ontrack" in g.RTCPeerConnection.prototype)) {
50811
50811
  Object.defineProperty(g.RTCPeerConnection.prototype, "ontrack", {
50812
50812
  get() {
@@ -50841,7 +50841,7 @@ function GV(g) {
50841
50841
  { value: { receiver: A.receiver } }
50842
50842
  ), A));
50843
50843
  }
50844
- function kV(g) {
50844
+ function k5(g) {
50845
50845
  if (typeof g == "object" && g.RTCPeerConnection && !("getSenders" in g.RTCPeerConnection.prototype) && "createDTMFSender" in g.RTCPeerConnection.prototype) {
50846
50846
  const A = function(i, o) {
50847
50847
  return {
@@ -50893,7 +50893,7 @@ function kV(g) {
50893
50893
  });
50894
50894
  }
50895
50895
  }
50896
- function MV(g) {
50896
+ function M5(g) {
50897
50897
  if (!g.RTCPeerConnection)
50898
50898
  return;
50899
50899
  const A = g.RTCPeerConnection.prototype.getStats;
@@ -50940,7 +50940,7 @@ function MV(g) {
50940
50940
  }).then(i, o);
50941
50941
  };
50942
50942
  }
50943
- function RV(g) {
50943
+ function R5(g) {
50944
50944
  if (!(typeof g == "object" && g.RTCPeerConnection && g.RTCRtpSender && g.RTCRtpReceiver))
50945
50945
  return;
50946
50946
  if (!("getStats" in g.RTCRtpSender.prototype)) {
@@ -50994,7 +50994,7 @@ function RV(g) {
50994
50994
  return A.apply(this, arguments);
50995
50995
  };
50996
50996
  }
50997
- function UV(g) {
50997
+ function U5(g) {
50998
50998
  g.RTCPeerConnection.prototype.getLocalStreams = function() {
50999
50999
  return this._shimmedLocalStreams = this._shimmedLocalStreams || {}, Object.keys(this._shimmedLocalStreams).map((I) => this._shimmedLocalStreams[I][0]);
51000
51000
  };
@@ -51032,11 +51032,11 @@ function UV(g) {
51032
51032
  }), i.apply(this, arguments);
51033
51033
  };
51034
51034
  }
51035
- function NV(g, A) {
51035
+ function N5(g, A) {
51036
51036
  if (!g.RTCPeerConnection)
51037
51037
  return;
51038
51038
  if (g.RTCPeerConnection.prototype.addTrack && A.version >= 65)
51039
- return UV(g);
51039
+ return U5(g);
51040
51040
  const e = g.RTCPeerConnection.prototype.getLocalStreams;
51041
51041
  g.RTCPeerConnection.prototype.getLocalStreams = function() {
51042
51042
  const r = e.apply(this);
@@ -51175,7 +51175,7 @@ function FK(g, A) {
51175
51175
  g.RTCPeerConnection.prototype[e] = i[e];
51176
51176
  });
51177
51177
  }
51178
- function FV(g, A) {
51178
+ function F5(g, A) {
51179
51179
  Fd(g, "negotiationneeded", (e) => {
51180
51180
  const t = e.target;
51181
51181
  if (!((A.version < 72 || t.getConfiguration && t.getConfiguration().sdpSemantics === "plan-b") && t.signalingState !== "stable"))
@@ -51184,17 +51184,17 @@ function FV(g, A) {
51184
51184
  }
51185
51185
  const i2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
51186
51186
  __proto__: null,
51187
- fixNegotiationNeeded: FV,
51188
- shimAddTrackRemoveTrack: NV,
51189
- shimAddTrackRemoveTrackWithNative: UV,
51187
+ fixNegotiationNeeded: F5,
51188
+ shimAddTrackRemoveTrack: N5,
51189
+ shimAddTrackRemoveTrackWithNative: U5,
51190
51190
  shimGetDisplayMedia: pBA,
51191
- shimGetSendersWithDtmf: kV,
51192
- shimGetStats: MV,
51193
- shimGetUserMedia: mV,
51194
- shimMediaStream: SV,
51195
- shimOnTrack: GV,
51191
+ shimGetSendersWithDtmf: k5,
51192
+ shimGetStats: M5,
51193
+ shimGetUserMedia: m5,
51194
+ shimMediaStream: S5,
51195
+ shimOnTrack: G5,
51196
51196
  shimPeerConnection: FK,
51197
- shimSenderReceiverGetStats: RV
51197
+ shimSenderReceiverGetStats: R5
51198
51198
  }, Symbol.toStringTag, { value: "Module" }));
51199
51199
  function fBA(g, A) {
51200
51200
  let e = !1;
@@ -51212,7 +51212,7 @@ function fBA(g, A) {
51212
51212
  }
51213
51213
  });
51214
51214
  }
51215
- var bV = { exports: {} };
51215
+ var b5 = { exports: {} };
51216
51216
  (function(g) {
51217
51217
  var A = {};
51218
51218
  A.generateIdentifier = function() {
@@ -51623,10 +51623,10 @@ t=0 0\r
51623
51623
  return !1;
51624
51624
  return !0;
51625
51625
  }, g.exports = A;
51626
- })(bV);
51627
- var KV = bV.exports;
51628
- const eS = /* @__PURE__ */ zk(KV);
51629
- var Pe = KV;
51626
+ })(b5);
51627
+ var K5 = b5.exports;
51628
+ const eS = /* @__PURE__ */ zk(K5);
51629
+ var Pe = K5;
51630
51630
  function DBA(g) {
51631
51631
  return {
51632
51632
  inboundrtp: "inbound-rtp",
@@ -52563,7 +52563,7 @@ a=mid:` + B.mid + `\r
52563
52563
  }), o;
52564
52564
  };
52565
52565
  const mBA = /* @__PURE__ */ zk(wBA);
52566
- function xV(g) {
52566
+ function x5(g) {
52567
52567
  const A = g && g.navigator, e = function(i) {
52568
52568
  return {
52569
52569
  name: { PermissionDeniedError: "NotAllowedError" }[i.name] || i.name,
@@ -52578,7 +52578,7 @@ function xV(g) {
52578
52578
  return t(i).catch((o) => Promise.reject(e(o)));
52579
52579
  };
52580
52580
  }
52581
- function JV(g) {
52581
+ function J5(g) {
52582
52582
  "getDisplayMedia" in g.navigator && g.navigator.mediaDevices && (g.navigator.mediaDevices && "getDisplayMedia" in g.navigator.mediaDevices || (g.navigator.mediaDevices.getDisplayMedia = g.navigator.getDisplayMedia.bind(g.navigator)));
52583
52583
  }
52584
52584
  function bK(g, A) {
@@ -52615,17 +52615,17 @@ function bK(g, A) {
52615
52615
  ), Xv("ICE servers after filtering:", i.iceServers)), new e(i);
52616
52616
  }, g.RTCPeerConnection.prototype = e.prototype;
52617
52617
  }
52618
- function vV(g) {
52618
+ function v5(g) {
52619
52619
  g.RTCRtpSender && !("replaceTrack" in g.RTCRtpSender.prototype) && (g.RTCRtpSender.prototype.replaceTrack = g.RTCRtpSender.prototype.setTrack);
52620
52620
  }
52621
52621
  const I2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
52622
52622
  __proto__: null,
52623
- shimGetDisplayMedia: JV,
52624
- shimGetUserMedia: xV,
52623
+ shimGetDisplayMedia: J5,
52624
+ shimGetUserMedia: x5,
52625
52625
  shimPeerConnection: bK,
52626
- shimReplaceTrack: vV
52626
+ shimReplaceTrack: v5
52627
52627
  }, Symbol.toStringTag, { value: "Module" }));
52628
- function LV(g, A) {
52628
+ function L5(g, A) {
52629
52629
  const e = g && g.navigator, t = g && g.MediaStreamTrack;
52630
52630
  if (e.getUserMedia = function(i, o, I) {
52631
52631
  jk(
@@ -52662,7 +52662,7 @@ function SBA(g, A) {
52662
52662
  return t.video === !0 ? t.video = { mediaSource: A } : t.video.mediaSource = A, g.navigator.mediaDevices.getUserMedia(t);
52663
52663
  });
52664
52664
  }
52665
- function qV(g) {
52665
+ function q5(g) {
52666
52666
  typeof g == "object" && g.RTCTrackEvent && "receiver" in g.RTCTrackEvent.prototype && !("transceiver" in g.RTCTrackEvent.prototype) && Object.defineProperty(g.RTCTrackEvent.prototype, "transceiver", {
52667
52667
  get() {
52668
52668
  return { receiver: this.receiver };
@@ -52706,7 +52706,7 @@ function KK(g, A) {
52706
52706
  }).then(I, s);
52707
52707
  };
52708
52708
  }
52709
- function _V(g) {
52709
+ function _5(g) {
52710
52710
  if (!(typeof g == "object" && g.RTCPeerConnection && g.RTCRtpSender) || g.RTCRtpSender && "getStats" in g.RTCRtpSender.prototype)
52711
52711
  return;
52712
52712
  const A = g.RTCPeerConnection.prototype.getSenders;
@@ -52722,7 +52722,7 @@ function _V(g) {
52722
52722
  return this.track ? this._pc.getStats(this.track) : Promise.resolve(/* @__PURE__ */ new Map());
52723
52723
  };
52724
52724
  }
52725
- function TV(g) {
52725
+ function T5(g) {
52726
52726
  if (!(typeof g == "object" && g.RTCPeerConnection && g.RTCRtpSender) || g.RTCRtpSender && "getStats" in g.RTCRtpReceiver.prototype)
52727
52727
  return;
52728
52728
  const A = g.RTCPeerConnection.prototype.getReceivers;
@@ -52733,17 +52733,17 @@ function TV(g) {
52733
52733
  return this._pc.getStats(this.track);
52734
52734
  };
52735
52735
  }
52736
- function HV(g) {
52736
+ function H5(g) {
52737
52737
  !g.RTCPeerConnection || "removeStream" in g.RTCPeerConnection.prototype || (g.RTCPeerConnection.prototype.removeStream = function(e) {
52738
52738
  jk("removeStream", "removeTrack"), this.getSenders().forEach((t) => {
52739
52739
  t.track && e.getTracks().includes(t.track) && this.removeTrack(t);
52740
52740
  });
52741
52741
  });
52742
52742
  }
52743
- function YV(g) {
52743
+ function Y5(g) {
52744
52744
  g.DataChannel && !g.RTCDataChannel && (g.RTCDataChannel = g.DataChannel);
52745
52745
  }
52746
- function OV(g) {
52746
+ function O5(g) {
52747
52747
  if (!(typeof g == "object" && g.RTCPeerConnection))
52748
52748
  return;
52749
52749
  const A = g.RTCPeerConnection.prototype.addTransceiver;
@@ -52773,7 +52773,7 @@ function OV(g) {
52773
52773
  return o;
52774
52774
  });
52775
52775
  }
52776
- function PV(g) {
52776
+ function P5(g) {
52777
52777
  if (!(typeof g == "object" && g.RTCRtpSender))
52778
52778
  return;
52779
52779
  const A = g.RTCRtpSender.prototype.getParameters;
@@ -52782,7 +52782,7 @@ function PV(g) {
52782
52782
  return "encodings" in t || (t.encodings = [].concat(this.sendEncodings || [{}])), t;
52783
52783
  });
52784
52784
  }
52785
- function ZV(g) {
52785
+ function Z5(g) {
52786
52786
  if (!(typeof g == "object" && g.RTCPeerConnection))
52787
52787
  return;
52788
52788
  const A = g.RTCPeerConnection.prototype.createOffer;
@@ -52792,7 +52792,7 @@ function ZV(g) {
52792
52792
  }) : A.apply(this, arguments);
52793
52793
  };
52794
52794
  }
52795
- function WV(g) {
52795
+ function W5(g) {
52796
52796
  if (!(typeof g == "object" && g.RTCPeerConnection))
52797
52797
  return;
52798
52798
  const A = g.RTCPeerConnection.prototype.createAnswer;
@@ -52804,20 +52804,20 @@ function WV(g) {
52804
52804
  }
52805
52805
  const s2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
52806
52806
  __proto__: null,
52807
- shimAddTransceiver: OV,
52808
- shimCreateAnswer: WV,
52809
- shimCreateOffer: ZV,
52807
+ shimAddTransceiver: O5,
52808
+ shimCreateAnswer: W5,
52809
+ shimCreateOffer: Z5,
52810
52810
  shimGetDisplayMedia: SBA,
52811
- shimGetParameters: PV,
52812
- shimGetUserMedia: LV,
52813
- shimOnTrack: qV,
52811
+ shimGetParameters: P5,
52812
+ shimGetUserMedia: L5,
52813
+ shimOnTrack: q5,
52814
52814
  shimPeerConnection: KK,
52815
- shimRTCDataChannel: YV,
52816
- shimReceiverGetStats: TV,
52817
- shimRemoveStream: HV,
52818
- shimSenderGetStats: _V
52815
+ shimRTCDataChannel: Y5,
52816
+ shimReceiverGetStats: T5,
52817
+ shimRemoveStream: H5,
52818
+ shimSenderGetStats: _5
52819
52819
  }, Symbol.toStringTag, { value: "Module" }));
52820
- function VV(g) {
52820
+ function V5(g) {
52821
52821
  if (!(typeof g != "object" || !g.RTCPeerConnection)) {
52822
52822
  if ("getLocalStreams" in g.RTCPeerConnection.prototype || (g.RTCPeerConnection.prototype.getLocalStreams = function() {
52823
52823
  return this._localStreams || (this._localStreams = []), this._localStreams;
@@ -52852,7 +52852,7 @@ function VV(g) {
52852
52852
  });
52853
52853
  }
52854
52854
  }
52855
- function XV(g) {
52855
+ function X5(g) {
52856
52856
  if (!(typeof g != "object" || !g.RTCPeerConnection) && ("getRemoteStreams" in g.RTCPeerConnection.prototype || (g.RTCPeerConnection.prototype.getRemoteStreams = function() {
52857
52857
  return this._remoteStreams ? this._remoteStreams : [];
52858
52858
  }), !("onaddstream" in g.RTCPeerConnection.prototype))) {
@@ -52887,7 +52887,7 @@ function XV(g) {
52887
52887
  };
52888
52888
  }
52889
52889
  }
52890
- function zV(g) {
52890
+ function z5(g) {
52891
52891
  if (typeof g != "object" || !g.RTCPeerConnection)
52892
52892
  return;
52893
52893
  const A = g.RTCPeerConnection.prototype, e = A.createOffer, t = A.createAnswer, i = A.setLocalDescription, o = A.setRemoteDescription, I = A.addIceCandidate;
@@ -52910,24 +52910,24 @@ function zV(g) {
52910
52910
  return r ? (C.then(a, r), Promise.resolve()) : C;
52911
52911
  }, A.addIceCandidate = s;
52912
52912
  }
52913
- function jV(g) {
52913
+ function j5(g) {
52914
52914
  const A = g && g.navigator;
52915
52915
  if (A.mediaDevices && A.mediaDevices.getUserMedia) {
52916
52916
  const e = A.mediaDevices, t = e.getUserMedia.bind(e);
52917
- A.mediaDevices.getUserMedia = (i) => t($V(i));
52917
+ A.mediaDevices.getUserMedia = (i) => t($5(i));
52918
52918
  }
52919
52919
  !A.getUserMedia && A.mediaDevices && A.mediaDevices.getUserMedia && (A.getUserMedia = function(t, i, o) {
52920
52920
  A.mediaDevices.getUserMedia(t).then(i, o);
52921
52921
  }.bind(A));
52922
52922
  }
52923
- function $V(g) {
52923
+ function $5(g) {
52924
52924
  return g && g.video !== void 0 ? Object.assign(
52925
52925
  {},
52926
52926
  g,
52927
- { video: wV(g.video) }
52927
+ { video: w5(g.video) }
52928
52928
  ) : g;
52929
52929
  }
52930
- function A5(g) {
52930
+ function AV(g) {
52931
52931
  if (!g.RTCPeerConnection)
52932
52932
  return;
52933
52933
  const A = g.RTCPeerConnection;
@@ -52947,14 +52947,14 @@ function A5(g) {
52947
52947
  }
52948
52948
  });
52949
52949
  }
52950
- function e5(g) {
52950
+ function eV(g) {
52951
52951
  typeof g == "object" && g.RTCTrackEvent && "receiver" in g.RTCTrackEvent.prototype && !("transceiver" in g.RTCTrackEvent.prototype) && Object.defineProperty(g.RTCTrackEvent.prototype, "transceiver", {
52952
52952
  get() {
52953
52953
  return { receiver: this.receiver };
52954
52954
  }
52955
52955
  });
52956
52956
  }
52957
- function t5(g) {
52957
+ function tV(g) {
52958
52958
  const A = g.RTCPeerConnection.prototype.createOffer;
52959
52959
  g.RTCPeerConnection.prototype.createOffer = function(t) {
52960
52960
  if (t) {
@@ -52967,20 +52967,20 @@ function t5(g) {
52967
52967
  return A.apply(this, arguments);
52968
52968
  };
52969
52969
  }
52970
- function i5(g) {
52970
+ function iV(g) {
52971
52971
  typeof g != "object" || g.AudioContext || (g.AudioContext = g.webkitAudioContext);
52972
52972
  }
52973
52973
  const n2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
52974
52974
  __proto__: null,
52975
- shimAudioContext: i5,
52976
- shimCallbacksAPI: zV,
52977
- shimConstraints: $V,
52978
- shimCreateOfferLegacy: t5,
52979
- shimGetUserMedia: jV,
52980
- shimLocalStreamsAPI: VV,
52981
- shimRTCIceServerUrls: A5,
52982
- shimRemoteStreamsAPI: XV,
52983
- shimTrackEventTransceiver: e5
52975
+ shimAudioContext: iV,
52976
+ shimCallbacksAPI: z5,
52977
+ shimConstraints: $5,
52978
+ shimCreateOfferLegacy: tV,
52979
+ shimGetUserMedia: j5,
52980
+ shimLocalStreamsAPI: V5,
52981
+ shimRTCIceServerUrls: AV,
52982
+ shimRemoteStreamsAPI: X5,
52983
+ shimTrackEventTransceiver: eV
52984
52984
  }, Symbol.toStringTag, { value: "Module" }));
52985
52985
  function tS(g) {
52986
52986
  if (!g.RTCIceCandidate || g.RTCIceCandidate && "foundation" in g.RTCIceCandidate.prototype)
@@ -53184,22 +53184,22 @@ function kBA({ window: g } = {}, A = {
53184
53184
  return e("Chrome shim is not included in this adapter release."), i;
53185
53185
  if (t.version === null)
53186
53186
  return e("Chrome shim can not determine version, not shimming."), i;
53187
- e("adapter.js shimming chrome."), i.browserShim = i2, iS(g, t), mV(g, t), SV(g), FK(g, t), GV(g), NV(g, t), kV(g), MV(g), RV(g), FV(g, t), tS(g), xK(g), Gp(g, t), kp(g), JK(g, t);
53187
+ e("adapter.js shimming chrome."), i.browserShim = i2, iS(g, t), m5(g, t), S5(g), FK(g, t), G5(g), N5(g, t), k5(g), M5(g), R5(g), F5(g, t), tS(g), xK(g), Gp(g, t), kp(g), JK(g, t);
53188
53188
  break;
53189
53189
  case "firefox":
53190
53190
  if (!s2 || !KK || !A.shimFirefox)
53191
53191
  return e("Firefox shim is not included in this adapter release."), i;
53192
- e("adapter.js shimming firefox."), i.browserShim = s2, iS(g, t), LV(g, t), KK(g, t), qV(g), HV(g), _V(g), TV(g), YV(g), OV(g), PV(g), ZV(g), WV(g), tS(g), xK(g), Gp(g, t), kp(g);
53192
+ e("adapter.js shimming firefox."), i.browserShim = s2, iS(g, t), L5(g, t), KK(g, t), q5(g), H5(g), _5(g), T5(g), Y5(g), O5(g), P5(g), Z5(g), W5(g), tS(g), xK(g), Gp(g, t), kp(g);
53193
53193
  break;
53194
53194
  case "edge":
53195
53195
  if (!I2 || !bK || !A.shimEdge)
53196
53196
  return e("MS edge shim is not included in this adapter release."), i;
53197
- e("adapter.js shimming edge."), i.browserShim = I2, xV(g), JV(g), bK(g, t), vV(g), Gp(g, t), kp(g);
53197
+ e("adapter.js shimming edge."), i.browserShim = I2, x5(g), J5(g), bK(g, t), v5(g), Gp(g, t), kp(g);
53198
53198
  break;
53199
53199
  case "safari":
53200
53200
  if (!n2 || !A.shimSafari)
53201
53201
  return e("Safari shim is not included in this adapter release."), i;
53202
- e("adapter.js shimming safari."), i.browserShim = n2, iS(g, t), A5(g), t5(g), zV(g), VV(g), XV(g), e5(g), jV(g), i5(g), tS(g), Gp(g, t), kp(g), JK(g, t);
53202
+ e("adapter.js shimming safari."), i.browserShim = n2, iS(g, t), AV(g), tV(g), z5(g), V5(g), X5(g), eV(g), j5(g), iV(g), tS(g), Gp(g, t), kp(g), JK(g, t);
53203
53203
  break;
53204
53204
  default:
53205
53205
  e("Unsupported browser!");
@@ -53346,8 +53346,8 @@ var hN = (
53346
53346
  return location.protocol === "https:";
53347
53347
  }, g;
53348
53348
  }()
53349
- ), Ft = new MBA(), g5 = {};
53350
- tr(g5, "Peer", () => qK, (g) => qK = g);
53349
+ ), Ft = new MBA(), gV = {};
53350
+ tr(gV, "Peer", () => qK, (g) => qK = g);
53351
53351
  var oy = {}, RBA = Object.prototype.hasOwnProperty, MI = "~";
53352
53352
  function BD() {
53353
53353
  }
@@ -53355,7 +53355,7 @@ Object.create && (BD.prototype = /* @__PURE__ */ Object.create(null), new BD()._
53355
53355
  function UBA(g, A, e) {
53356
53356
  this.fn = g, this.context = A, this.once = e || !1;
53357
53357
  }
53358
- function o5(g, A, e, t, i) {
53358
+ function oV(g, A, e, t, i) {
53359
53359
  if (typeof e != "function")
53360
53360
  throw new TypeError("The listener must be a function");
53361
53361
  var o = new UBA(e, t || g, i), I = MI ? MI + A : A;
@@ -53443,10 +53443,10 @@ $o.prototype.emit = function(A, e, t, i, o, I) {
53443
53443
  return !0;
53444
53444
  };
53445
53445
  $o.prototype.on = function(A, e, t) {
53446
- return o5(this, A, e, t, !1);
53446
+ return oV(this, A, e, t, !1);
53447
53447
  };
53448
53448
  $o.prototype.once = function(A, e, t) {
53449
- return o5(this, A, e, t, !0);
53449
+ return oV(this, A, e, t, !0);
53450
53450
  };
53451
53451
  $o.prototype.removeListener = function(A, e, t, i) {
53452
53452
  var o = MI ? MI + A : A;
@@ -53556,8 +53556,8 @@ var FBA = (
53556
53556
  ], _c(i), !1));
53557
53557
  }, g;
53558
53558
  }()
53559
- ), C2 = new FBA(), I5 = {};
53560
- tr(I5, "Socket", () => B2, (g) => B2 = g);
53559
+ ), C2 = new FBA(), IV = {};
53560
+ tr(IV, "Socket", () => B2, (g) => B2 = g);
53561
53561
  var Wn;
53562
53562
  (function(g) {
53563
53563
  g.Data = "data", g.Media = "media";
@@ -54320,8 +54320,8 @@ var vBA = function() {
54320
54320
  }($v.BaseConnection)
54321
54321
  ), LK = {};
54322
54322
  tr(LK, "DataConnection", () => E2, (g) => E2 = g);
54323
- var s5 = {};
54324
- tr(s5, "EncodingQueue", () => h2, (g) => h2 = g);
54323
+ var sV = {};
54324
+ tr(sV, "EncodingQueue", () => h2, (g) => h2 = g);
54325
54325
  var _BA = function() {
54326
54326
  var g = function(A, e) {
54327
54327
  return g = Object.setPrototypeOf || {
@@ -54420,7 +54420,7 @@ var _BA = function() {
54420
54420
  TBA(A, g);
54421
54421
  function A(e, t, i) {
54422
54422
  var o = g.call(this, e, t, i) || this;
54423
- return o.stringify = JSON.stringify, o.parse = JSON.parse, o._buffer = [], o._bufferSize = 0, o._buffering = !1, o._chunkedData = {}, o._encodingQueue = new s5.EncodingQueue(), o.connectionId = o.options.connectionId || A.ID_PREFIX + Ft.randomToken(), o.label = o.options.label || o.connectionId, o.serialization = o.options.serialization || qr.Binary, o.reliable = !!o.options.reliable, o._encodingQueue.on("done", function(I) {
54423
+ return o.stringify = JSON.stringify, o.parse = JSON.parse, o._buffer = [], o._bufferSize = 0, o._buffering = !1, o._chunkedData = {}, o._encodingQueue = new sV.EncodingQueue(), o.connectionId = o.options.connectionId || A.ID_PREFIX + Ft.randomToken(), o.label = o.options.label || o.connectionId, o.serialization = o.options.serialization || qr.Binary, o.reliable = !!o.options.reliable, o._encodingQueue.on("done", function(I) {
54424
54424
  o._bufferedSend(I);
54425
54425
  }), o._encodingQueue.on("error", function() {
54426
54426
  de.default.error("DC#".concat(o.connectionId, ": Error occured in encoding from blob to arraybuffer, close DC")), o.close();
@@ -54566,8 +54566,8 @@ var _BA = function() {
54566
54566
  }
54567
54567
  }, A.ID_PREFIX = "dc_", A.MAX_BUFFERED_AMOUNT = 8388608, A;
54568
54568
  }($v.BaseConnection)
54569
- ), n5 = {};
54570
- tr(n5, "API", () => p2, (g) => p2 = g);
54569
+ ), nV = {};
54570
+ tr(nV, "API", () => p2, (g) => p2 = g);
54571
54571
  var d2 = function(g, A, e, t) {
54572
54572
  function i(o) {
54573
54573
  return o instanceof e ? o : new e(function(I) {
@@ -54842,7 +54842,7 @@ var d2 = function(g, A, e, t) {
54842
54842
  token: Ft.randomToken(),
54843
54843
  config: Ft.defaultConfig,
54844
54844
  referrerPolicy: "strict-origin-when-cross-origin"
54845
- }, t), i._options = t, i._options.host === "/" && (i._options.host = window.location.hostname), i._options.path && (i._options.path[0] !== "/" && (i._options.path = "/" + i._options.path), i._options.path[i._options.path.length - 1] !== "/" && (i._options.path += "/")), i._options.secure === void 0 && i._options.host !== Ft.CLOUD_HOST ? i._options.secure = Ft.isSecure() : i._options.host == Ft.CLOUD_HOST && (i._options.secure = !0), i._options.logFunction && de.default.setLogFunction(i._options.logFunction), de.default.logLevel = i._options.debug || 0, i._api = new n5.API(t), i._socket = i._createServerConnection(), !Ft.supports.audioVideo && !Ft.supports.data ? (i._delayedAbort(ng.BrowserIncompatible, "The current browser does not support WebRTC"), i) : o && !Ft.validateId(o) ? (i._delayedAbort(ng.InvalidID, 'ID "'.concat(o, '" is invalid')), i) : (o ? i._initialize(o) : i._api.retrieveId().then(function(I) {
54845
+ }, t), i._options = t, i._options.host === "/" && (i._options.host = window.location.hostname), i._options.path && (i._options.path[0] !== "/" && (i._options.path = "/" + i._options.path), i._options.path[i._options.path.length - 1] !== "/" && (i._options.path += "/")), i._options.secure === void 0 && i._options.host !== Ft.CLOUD_HOST ? i._options.secure = Ft.isSecure() : i._options.host == Ft.CLOUD_HOST && (i._options.secure = !0), i._options.logFunction && de.default.setLogFunction(i._options.logFunction), de.default.logLevel = i._options.debug || 0, i._api = new nV.API(t), i._socket = i._createServerConnection(), !Ft.supports.audioVideo && !Ft.supports.data ? (i._delayedAbort(ng.BrowserIncompatible, "The current browser does not support WebRTC"), i) : o && !Ft.validateId(o) ? (i._delayedAbort(ng.InvalidID, 'ID "'.concat(o, '" is invalid')), i) : (o ? i._initialize(o) : i._api.retrieveId().then(function(I) {
54846
54846
  return i._initialize(I);
54847
54847
  }).catch(function(I) {
54848
54848
  return i._abort(ng.ServerError, I);
@@ -54923,7 +54923,7 @@ var d2 = function(g, A, e, t) {
54923
54923
  enumerable: !1,
54924
54924
  configurable: !0
54925
54925
  }), A.prototype._createServerConnection = function() {
54926
- var e = this, t = new I5.Socket(this._options.secure, this._options.host, this._options.port, this._options.path, this._options.key, this._options.pingInterval);
54926
+ var e = this, t = new IV.Socket(this._options.secure, this._options.host, this._options.port, this._options.path, this._options.key, this._options.pingInterval);
54927
54927
  return t.on(gC.Message, function(i) {
54928
54928
  e._handleMessage(i);
54929
54929
  }), t.on(gC.Error, function(i) {
@@ -55143,7 +55143,7 @@ var d2 = function(g, A, e, t) {
55143
55143
  });
55144
55144
  }, A.DEFAULT_KEY = "peerjs", A;
55145
55145
  }(oy.EventEmitter)
55146
- ), _K = g5.Peer;
55146
+ ), _K = gV.Peer;
55147
55147
  const PBA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
55148
55148
  __proto__: null,
55149
55149
  get Peer() {
@@ -55278,7 +55278,7 @@ class bRA {
55278
55278
  }
55279
55279
  }
55280
55280
  var jBA = /* @__PURE__ */ ((g) => (g.RequestHasOwner = "request-has-owner", g.ResponseHasOwner = "response-has-owner", g.RequestIsOwner = "request-is-owner", g.ResponseIsOwner = "response-is-owner", g.RequestOwnership = "request-ownership", g.GainedOwnership = "gained-ownership", g.RemoveOwnership = "remove-ownership", g.LostOwnership = "lost-ownership", g.GainedOwnershipBroadcast = "gained-ownership-broadcast", g.LostOwnershipBroadcast = "lost-ownership-broadcast", g))(jBA || {});
55281
- class a5 {
55281
+ class aV {
55282
55282
  constructor(A, e) {
55283
55283
  c(this, "guid");
55284
55284
  c(this, "connection");
@@ -55924,10 +55924,10 @@ class tcA extends mg {
55924
55924
  }, t, i);
55925
55925
  }
55926
55926
  parse(A) {
55927
- return new r5(A);
55927
+ return new rV(A);
55928
55928
  }
55929
55929
  }
55930
- class r5 {
55930
+ class rV {
55931
55931
  constructor(A) {
55932
55932
  this.isFont = !0, this.type = "Font", this.data = A;
55933
55933
  }
@@ -56156,7 +56156,7 @@ class EC extends mg {
56156
56156
  if (typeof A == "string")
56157
56157
  o = JSON.parse(A);
56158
56158
  else if (A instanceof ArrayBuffer)
56159
- if (n.decode(new Uint8Array(A, 0, 4)) === C5) {
56159
+ if (n.decode(new Uint8Array(A, 0, 4)) === CV) {
56160
56160
  try {
56161
56161
  I[pt.KHR_BINARY_GLTF] = new wcA(A);
56162
56162
  } catch (C) {
@@ -56620,7 +56620,7 @@ let ycA = class {
56620
56620
  }));
56621
56621
  }
56622
56622
  };
56623
- const C5 = "glTF", Hu = 12, m2 = { JSON: 1313821514, BIN: 5130562 };
56623
+ const CV = "glTF", Hu = 12, m2 = { JSON: 1313821514, BIN: 5130562 };
56624
56624
  class wcA {
56625
56625
  constructor(A) {
56626
56626
  this.name = pt.KHR_BINARY_GLTF, this.content = null, this.body = null;
@@ -56629,7 +56629,7 @@ class wcA {
56629
56629
  magic: t.decode(new Uint8Array(A.slice(0, 4))),
56630
56630
  version: e.getUint32(4, !0),
56631
56631
  length: e.getUint32(8, !0)
56632
- }, this.header.magic !== C5)
56632
+ }, this.header.magic !== CV)
56633
56633
  throw new Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");
56634
56634
  if (this.header.version < 2)
56635
56635
  throw new Error("THREE.GLTFLoader: Legacy binary file detected.");
@@ -56697,7 +56697,7 @@ class GcA {
56697
56697
  this.name = pt.KHR_MESH_QUANTIZATION;
56698
56698
  }
56699
56699
  }
56700
- class B5 extends Md {
56700
+ class BV extends Md {
56701
56701
  constructor(A, e, t, i) {
56702
56702
  super(A, e, t, i);
56703
56703
  }
@@ -56717,7 +56717,7 @@ class B5 extends Md {
56717
56717
  }
56718
56718
  }
56719
56719
  const kcA = new GA();
56720
- class McA extends B5 {
56720
+ class McA extends BV {
56721
56721
  interpolate_(A, e, t, i) {
56722
56722
  const o = super.interpolate_(A, e, t, i);
56723
56723
  return kcA.fromArray(o).normalize().toArray(o), o;
@@ -57579,7 +57579,7 @@ class JcA {
57579
57579
  }
57580
57580
  _createCubicSplineTrackInterpolant(A) {
57581
57581
  A.createInterpolant = function(t) {
57582
- const i = this instanceof $n ? McA : B5;
57582
+ const i = this instanceof $n ? McA : BV;
57583
57583
  return new i(this.times, this.values, this.getValueSize() / 3, t);
57584
57584
  }, A.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline = !0;
57585
57585
  }
@@ -57656,7 +57656,7 @@ class uQ {
57656
57656
  static createText(A, e) {
57657
57657
  let t = null;
57658
57658
  const i = (e == null ? void 0 : e.font) || qcA((e == null ? void 0 : e.familyFamily) || null);
57659
- i instanceof r5 ? t = yc(this, bD, YK).call(this, A, i, e) : t == null && (t = new pe());
57659
+ i instanceof rV ? t = yc(this, bD, YK).call(this, A, i, e) : t == null && (t = new pe());
57660
57660
  const o = (e == null ? void 0 : e.color) || 16777215, I = new QA(t, (e == null ? void 0 : e.material) ?? new xg({ color: o }));
57661
57661
  return this.applyDefaultObjectOptions(I, e), i instanceof Promise ? i.then((s) => {
57662
57662
  I.geometry = yc(this, bD, YK).call(this, A, s, e), e != null && e.onGeometry && e.onGeometry(I);
@@ -57969,7 +57969,7 @@ async function HcA() {
57969
57969
  RE(!0), console.log("Received Session Granted..."), await za(100);
57970
57970
  const A = sessionStorage.getItem("needle_xr_session_mode"), e = sessionStorage.getItem("needle_xr_session_init") ?? null, t = e ? JSON.parse(e) : null;
57971
57971
  let i = null;
57972
- if (c5() && (await RB.start(A || "immersive-vr", t || Me.getDefaultSessionInit("immersive-vr")), await PcA(), i = await RB.handoff()), i)
57972
+ if (cV() && (await RB.start(A || "immersive-vr", t || Me.getDefaultSessionInit("immersive-vr")), await PcA(), i = await RB.handoff()), i)
57973
57973
  Me.setSession(i.mode, i.session, i.init, Ke.Current);
57974
57974
  else if (A && e) {
57975
57975
  console.log("Session Granted: Restore last session");
@@ -57993,13 +57993,13 @@ kt.registerCallback(Rt.ContextCreationStart, async (g) => {
57993
57993
  kt.registerCallback(Rt.ContextCreated, async (g) => {
57994
57994
  eL.delete(g.context);
57995
57995
  });
57996
- function c5() {
57996
+ function cV() {
57997
57997
  return eL.size > 0;
57998
57998
  }
57999
57999
  function PcA() {
58000
58000
  return new Promise((g) => {
58001
58001
  const A = Date.now(), e = setInterval(() => {
58002
- (!c5() || Date.now() - A > 6e4) && (clearInterval(e), g());
58002
+ (!cV() || Date.now() - A > 6e4) && (clearInterval(e), g());
58003
58003
  }, 100);
58004
58004
  });
58005
58005
  }
@@ -58061,7 +58061,7 @@ const _r = class {
58061
58061
  console.debug("Controller already registered for input source", e);
58062
58062
  return;
58063
58063
  }
58064
- const t = new hV(this, A, e);
58064
+ const t = new h5(this, A, e);
58065
58065
  this._newControllers.push(t);
58066
58066
  });
58067
58067
  c(this, "_ended", !1);
@@ -59137,7 +59137,7 @@ class dC {
59137
59137
  }
59138
59138
  }
59139
59139
  c(dC, "AllLayers", 4294967295);
59140
- class l5 {
59140
+ class lV {
59141
59141
  constructor(A, e, t) {
59142
59142
  c(this, "distance");
59143
59143
  c(this, "point");
@@ -59280,7 +59280,7 @@ const TG = class {
59280
59280
  r.matrixWorldNeedsUpdate && r.updateWorldMatrix(!1, !1);
59281
59281
  const B = this.tempBoundingBox.copy(C.boundingBox).applyMatrix4(r.matrixWorld), l = this.sphere;
59282
59282
  if (l.center.copy(e), l.radius = t, l.intersectsBox(B)) {
59283
- const Q = Oe(A), d = Q.distanceTo(l.center), h = new l5(A, d, Q);
59283
+ const Q = Oe(A), d = Q.distanceTo(l.center), h = new lV(A, d, Q);
59284
59284
  if (o.push(h), !I)
59285
59285
  return;
59286
59286
  }
@@ -59381,7 +59381,7 @@ var tG;
59381
59381
  if (M) {
59382
59382
  const m = E;
59383
59383
  if (n.copy(p.matrixWorld).invert(), m.applyMatrix4(n), M.intersectsSphere(m)) {
59384
- const N = Oe(p), K = N.distanceTo(m.center), F = new l5(p, K, N);
59384
+ const N = Oe(p), K = N.distanceTo(m.center), F = new lV(p, K, N);
59385
59385
  u.push(F);
59386
59386
  }
59387
59387
  }
@@ -59472,7 +59472,7 @@ class $cA {
59472
59472
  }
59473
59473
  }
59474
59474
  const $k = gA("trackresources");
59475
- function Q5() {
59475
+ function QV() {
59476
59476
  return $k === "dispose";
59477
59477
  }
59478
59478
  let pQ = !0;
@@ -59483,22 +59483,22 @@ function ZRA(g) {
59483
59483
  function AlA() {
59484
59484
  return pQ;
59485
59485
  }
59486
- const h5 = Symbol("disposable");
59487
- function E5(g, A) {
59488
- g && (g[h5] = A, Kl && console.warn("Set disposable", A, g));
59486
+ const hV = Symbol("disposable");
59487
+ function EV(g, A) {
59488
+ g && (g[hV] = A, Kl && console.warn("Set disposable", A, g));
59489
59489
  }
59490
- const d5 = Symbol("disposed");
59490
+ const dV = Symbol("disposed");
59491
59491
  function WRA(g) {
59492
- return g[d5] === !0;
59492
+ return g[dV] === !0;
59493
59493
  }
59494
59494
  function Ci(g) {
59495
59495
  var A;
59496
59496
  if (g) {
59497
- if (g[h5] === !1) {
59497
+ if (g[hV] === !1) {
59498
59498
  Kl && console.warn("Object is marked as not disposable", g);
59499
59499
  return;
59500
59500
  }
59501
- if (g[d5] = !0, g instanceof to)
59501
+ if (g[dV] = !0, g instanceof to)
59502
59502
  Ci(g.environment), Ci(g.background), Ci(g.customDepthMaterial), Ci(g.customDistanceMaterial);
59503
59503
  else if (g instanceof PI)
59504
59504
  Ci(g.geometry), Ci(g.material), Ci(g.skeleton), Ci(g.bindMatrix), Ci(g.bindMatrixInverse), Ci(g.customDepthMaterial), Ci(g.customDistanceMaterial), g.geometry = null, g.material = null, g.visible = !1;
@@ -59532,19 +59532,19 @@ function Ci(g) {
59532
59532
  }
59533
59533
  }
59534
59534
  function wh(g) {
59535
- g && ((Kl || Q5() || $k) && console.warn("🧨 FREE", g), g instanceof ImageBitmap ? g.close() : g instanceof eC ? g.data = null : g.dispose());
59535
+ g && ((Kl || QV() || $k) && console.warn("🧨 FREE", g), g instanceof ImageBitmap ? g.close() : g instanceof eC ? g.data = null : g.dispose());
59536
59536
  }
59537
59537
  function elA(g) {
59538
59538
  (g instanceof QA || g instanceof PI) && (g.material = null, g.geometry = null);
59539
59539
  }
59540
59540
  const tlA = /* @__PURE__ */ new Set();
59541
- function u5(g, A, e = null, t) {
59541
+ function uV(g, A, e = null, t) {
59542
59542
  if (t || (t = tlA, t.clear()), !g)
59543
59543
  return t;
59544
59544
  const i = g[lD];
59545
59545
  if (i)
59546
59546
  for (const o of i)
59547
- t.has(o) || (e == null ? void 0 : e.call(null, o)) !== !1 && (t.add(o), A && u5(o, !0, e, t));
59547
+ t.has(o) || (e == null ? void 0 : e.call(null, o)) !== !1 && (t.add(o), A && uV(o, !0, e, t));
59548
59548
  return t;
59549
59549
  }
59550
59550
  function VRA(g) {
@@ -59589,7 +59589,7 @@ function iG(g, A, e, t) {
59589
59589
  } else if (A && i.has(A)) {
59590
59590
  i.delete(A);
59591
59591
  let o = e[Mp] || 0;
59592
- o > 0 && (o -= 1, e[Mp] = o), Kl && console.warn(`🔴 Removed user of "${e.type}"`, A, e, o, "users:", i), o <= 0 && (Qf.isLoading(e) || ($k && console.warn(`🔴 Removed all user of "${e.type}"`, e), Q5() && Ci(e)));
59592
+ o > 0 && (o -= 1, e[Mp] = o), Kl && console.warn(`🔴 Removed user of "${e.type}"`, A, e, o, "users:", i), o <= 0 && (Qf.isLoading(e) || ($k && console.warn(`🔴 Removed all user of "${e.type}"`, e), QV() && Ci(e)));
59593
59593
  }
59594
59594
  e[g] = i;
59595
59595
  }
@@ -59629,17 +59629,17 @@ class AM {
59629
59629
  }
59630
59630
  }
59631
59631
  c(AM, "eventListeners", /* @__PURE__ */ new Map());
59632
- const QD = Symbol("NEEDLE_NEED_UPDATE_INSTANCE"), p5 = Symbol("isUsingInstancing"), f5 = Symbol("instancingRenderer"), Rp = Symbol("instancingAutoUpdateBounds");
59632
+ const QD = Symbol("NEEDLE_NEED_UPDATE_INSTANCE"), pV = Symbol("isUsingInstancing"), fV = Symbol("instancingRenderer"), Rp = Symbol("instancingAutoUpdateBounds");
59633
59633
  class jn {
59634
59634
  /** Is this object rendered using a InstancedMesh */
59635
59635
  static isUsingInstancing(A) {
59636
- return A[p5] === !0;
59636
+ return A[pV] === !0;
59637
59637
  }
59638
59638
  /** Returns the instanced mesh IF the object is rendered by an instanced mesh
59639
59639
  * @link https://threejs.org/docs/#api/en/objects/InstancedMesh
59640
59640
  */
59641
59641
  static getRenderer(A) {
59642
- return A[f5] || null;
59642
+ return A[fV] || null;
59643
59643
  }
59644
59644
  setAutoUpdateBounds(A, e) {
59645
59645
  const t = jn.getRenderer(A);
@@ -59737,7 +59737,7 @@ Did you add and remove a component in the same frame?`), wi.splice(A, 1), A--;
59737
59737
  function IlA(g) {
59738
59738
  g && (g.__internalDisable(!0), Vr(g, g.context));
59739
59739
  }
59740
- function D5(g, A) {
59740
+ function DV(g, A) {
59741
59741
  for (let e = 0; e < g.new_script_start.length; e++)
59742
59742
  try {
59743
59743
  const t = g.new_script_start[e];
@@ -59773,10 +59773,10 @@ function oS(g) {
59773
59773
  return;
59774
59774
  }
59775
59775
  const A = ny(g);
59776
- y5(g, A, !0) || (ZK || XA() ? console.error(`Error updating hierarchy
59776
+ yV(g, A, !0) || (ZK || XA() ? console.error(`Error updating hierarchy
59777
59777
  Do you have circular references in your project? <a target="_blank" href="https://docs.needle.tools/circular-reference"> Click here for more information.`, g) : console.error('Failed to update active state in hierarchy of "' + g.name + '"', g), console.warn(" ↑ this error might be caused by circular references. Please make sure you don't have files with circular references (e.g. one GLB 1 is loading GLB 2 which is then loading GLB 1 again)."));
59778
59778
  }
59779
- function y5(g, A, e, t = 0) {
59779
+ function yV(g, A, e, t = 0) {
59780
59780
  if (t > 1e3)
59781
59781
  return console.warn("Hierarchy is too deep (> 1000 level) - will abort updating active state"), !1;
59782
59782
  const i = ny(g);
@@ -59792,7 +59792,7 @@ function y5(g, A, e, t = 0) {
59792
59792
  if (g.children) {
59793
59793
  const n = t + 1;
59794
59794
  for (const a of g.children)
59795
- y5(a, A, e, n) === !1 && (s = !1);
59795
+ yV(a, A, e, n) === !1 && (s = !1);
59796
59796
  }
59797
59797
  return s;
59798
59798
  }
@@ -59817,9 +59817,9 @@ function slA(g, A) {
59817
59817
  for (const t of g.userData.components)
59818
59818
  A(t);
59819
59819
  }
59820
- const IS = /* @__PURE__ */ new Map(), w5 = Symbol("prewarmFlag"), WK = Symbol("waitingForPrewarm"), VK = gA("debugprewarm");
59820
+ const IS = /* @__PURE__ */ new Map(), wV = Symbol("prewarmFlag"), WK = Symbol("waitingForPrewarm"), VK = gA("debugprewarm");
59821
59821
  function nlA(g, A) {
59822
- if (!g || g[w5] === !0 || g[WK] === !0)
59822
+ if (!g || g[wV] === !0 || g[WK] === !0)
59823
59823
  return;
59824
59824
  IS.has(A) || IS.set(A, []), g[WK] = !0, IS.get(A).push(g), VK && console.debug("register prewarm", g.name);
59825
59825
  }
@@ -59838,7 +59838,7 @@ function alA(g) {
59838
59838
  const i = g.scene;
59839
59839
  t.compile(i, e), q2 ?? (q2 = new fJ(64)), _2 ?? (_2 = new pJ(1e-3, 9999999, q2)), _2.update(t, i);
59840
59840
  for (const o of A)
59841
- o[w5] = !0, o[WK] = !1;
59841
+ o[wV] = !0, o[WK] = !1;
59842
59842
  A.length = 0, VK && console.log("prewarm done");
59843
59843
  }
59844
59844
  }
@@ -60001,16 +60001,16 @@ function eM(g, A, e = !0, t) {
60001
60001
  console.warn("Can not send destroy: failed to find guid", g);
60002
60002
  return;
60003
60003
  }
60004
- m5(o, A, t);
60004
+ mV(o, A, t);
60005
60005
  }
60006
- function m5(g, A, e) {
60006
+ function mV(g, A, e) {
60007
60007
  const t = new DlA(g);
60008
60008
  (e == null ? void 0 : e.saveInRoom) === !1 && (t.dontSave = !0), A.send("instance-destroyed", t, ma.Queued);
60009
60009
  }
60010
60010
  function ylA(g) {
60011
60011
  g.connection.beginListen("instance-destroyed", (A) => {
60012
60012
  oG && console.log("[Remote] Destroyed", g.scene, A);
60013
- const e = J5(A.guid, g.scene);
60013
+ const e = JV(A.guid, g.scene);
60014
60014
  e && Qn(e);
60015
60015
  });
60016
60016
  }
@@ -60046,7 +60046,7 @@ class wlA {
60046
60046
  this.originalGuid = A, this.guid = e;
60047
60047
  }
60048
60048
  }
60049
- function S5(g, A, e, t) {
60049
+ function SV(g, A, e, t) {
60050
60050
  var n, a;
60051
60051
  const i = g;
60052
60052
  if (!i.guid)
@@ -60098,27 +60098,27 @@ function GlA(g, A) {
60098
60098
  const i = ay(g, t);
60099
60099
  return { seed: e, instance: i };
60100
60100
  }
60101
- const G5 = {};
60101
+ const GV = {};
60102
60102
  function klA(g, A) {
60103
- G5[g] = A;
60103
+ GV[g] = A;
60104
60104
  }
60105
60105
  async function MlA(g, A) {
60106
- const e = G5[g];
60106
+ const e = GV[g];
60107
60107
  if (e != null) {
60108
60108
  const t = await e(g);
60109
60109
  if (t)
60110
60110
  return t;
60111
60111
  }
60112
- return k5(g, A);
60112
+ return kV(g, A);
60113
60113
  }
60114
- function k5(g, A) {
60114
+ function kV(g, A) {
60115
60115
  if (A === null || !g)
60116
60116
  return null;
60117
60117
  if (A.guid === g)
60118
60118
  return A;
60119
60119
  if (A.children)
60120
60120
  for (const e of A.children) {
60121
- const t = k5(g, e);
60121
+ const t = kV(g, e);
60122
60122
  if (t)
60123
60123
  return t;
60124
60124
  }
@@ -60205,7 +60205,7 @@ function XK(g, A, e, t) {
60205
60205
  continue;
60206
60206
  }
60207
60207
  for (const a of g) {
60208
- const r = M5(a.prefix, s);
60208
+ const r = MV(a.prefix, s);
60209
60209
  if (r >= 0) {
60210
60210
  gL && console.log(a, r, a.dependencyName), t.push(A.getDependency(a.dependencyName, r).then((C) => o[I] = C));
60211
60211
  break;
@@ -60240,13 +60240,13 @@ function Y2(g, A) {
60240
60240
  }
60241
60241
  function O2(g, A, e) {
60242
60242
  for (const t of g) {
60243
- const i = M5(t.prefix, e);
60243
+ const i = MV(t.prefix, e);
60244
60244
  if (i >= 0)
60245
60245
  return gL && console.warn("GET DEPENDENCY", t, i, t.dependencyName), A.getDependency(t.dependencyName, i);
60246
60246
  }
60247
60247
  return null;
60248
60248
  }
60249
- function M5(g, A) {
60249
+ function MV(g, A) {
60250
60250
  if (typeof A == "string" && A.startsWith(g)) {
60251
60251
  const e = A.substring(g.length), t = Number.parseInt(e);
60252
60252
  if (t >= 0)
@@ -60379,7 +60379,7 @@ class LlA {
60379
60379
  return this.cache[A] === void 0 ? !1 : this.cache[A].includes(e);
60380
60380
  }
60381
60381
  }
60382
- class R5 {
60382
+ class RV {
60383
60383
  constructor(A) {
60384
60384
  c(this, "root");
60385
60385
  c(this, "gltf");
@@ -60419,12 +60419,12 @@ function qlA(g, A) {
60419
60419
  return t.name = g.constructor.name, typeof g.guid == "string" && (t.guid = g.guid), t;
60420
60420
  }
60421
60421
  const sS = [];
60422
- function U5(g, A) {
60422
+ function UV(g, A) {
60423
60423
  if (!g)
60424
60424
  return A;
60425
60425
  typeof g.$serializedTypes == "object" && (A || (A = {}), Object.assign(A, g.$serializedTypes));
60426
60426
  const e = Object.getPrototypeOf(g);
60427
- return U5(e, A);
60427
+ return UV(e, A);
60428
60428
  }
60429
60429
  function zK(g, A, e) {
60430
60430
  if (!g)
@@ -60434,7 +60434,7 @@ function zK(g, A, e) {
60434
60434
  if (typeof i == "boolean")
60435
60435
  return i;
60436
60436
  }
60437
- const t = U5(g);
60437
+ const t = UV(g);
60438
60438
  if (A) {
60439
60439
  if (typeof A.guid == "string" && (g.guid = A.guid), t)
60440
60440
  for (const i in t) {
@@ -60644,9 +60644,9 @@ function PlA(g, A) {
60644
60644
  while (!e && (g = Object.getPrototypeOf(g)));
60645
60645
  return e;
60646
60646
  }
60647
- const N5 = Symbol("customVisibilityFlag");
60647
+ const NV = Symbol("customVisibilityFlag");
60648
60648
  function Xr(g, A) {
60649
- g.layers[N5] = A;
60649
+ g.layers[NV] = A;
60650
60650
  }
60651
60651
  const Z2 = Symbol("DidPatchLayers");
60652
60652
  function ZlA() {
@@ -60656,7 +60656,7 @@ function ZlA() {
60656
60656
  g[Z2] = !0;
60657
60657
  const A = g.test;
60658
60658
  g.test = function(e) {
60659
- return this[N5] === !1 ? !1 : A.call(this, e);
60659
+ return this[NV] === !1 ? !1 : A.call(this, e);
60660
60660
  };
60661
60661
  }
60662
60662
  ZlA();
@@ -60690,7 +60690,7 @@ Object.defineProperty(xe.prototype, "far", {
60690
60690
  },
60691
60691
  configurable: !0
60692
60692
  });
60693
- const F5 = /* @__PURE__ */ new Map();
60693
+ const FV = /* @__PURE__ */ new Map();
60694
60694
  function WlA(g, A) {
60695
60695
  if (!g)
60696
60696
  return;
@@ -60698,12 +60698,12 @@ function WlA(g, A) {
60698
60698
  console.warn("No prototype found", g, g.prototype, g.constructor);
60699
60699
  return;
60700
60700
  }
60701
- const e = F5.get(A);
60701
+ const e = FV.get(A);
60702
60702
  e && e.apply(g);
60703
60703
  }
60704
60704
  function VlA(g) {
60705
60705
  const A = XlA(g.prototype);
60706
- F5.set(g, A);
60706
+ FV.set(g, A);
60707
60707
  }
60708
60708
  function XlA(g) {
60709
60709
  return new zlA(g);
@@ -61195,7 +61195,7 @@ const oQA = gA("debuggetcomponent"), e1 = () => oQA || globalThis.NEEDLE_DEBUG_G
61195
61195
  function IQA(g) {
61196
61196
  return g == null || g.isObject3D ? g : g.object && g.object.isObject3D ? g.object : g;
61197
61197
  }
61198
- function b5(g, A) {
61198
+ function bV(g, A) {
61199
61199
  if (!g || !g.userData.components)
61200
61200
  return A;
61201
61201
  const e = g.userData.components.indexOf(A);
@@ -61205,9 +61205,9 @@ function tM(g, A, e) {
61205
61205
  const t = bd(g, A);
61206
61206
  return t || Cn(g, A, e);
61207
61207
  }
61208
- const K5 = new zo("addComponentIdProvider");
61208
+ const KV = new zo("addComponentIdProvider");
61209
61209
  function vE(g, A, e = !0) {
61210
- g.userData || (g.userData = {}), g.userData.components || (g.userData.components = []), g.userData.components.push(A), A.gameObject = g, (A.guid === void 0 || A.guid === "invalid") && (A.guid = K5.generateUUID()), aL(g), hL(A, A.context);
61210
+ g.userData || (g.userData = {}), g.userData.components || (g.userData.components = []), g.userData.components.push(A), A.gameObject = g, (A.guid === void 0 || A.guid === "invalid") && (A.guid = KV.generateUUID()), aL(g), hL(A, A.context);
61211
61211
  try {
61212
61212
  e && A.__internalAwake && (hf(g), A.activeAndEnabled && A.__internalAwake()), AM.dispatchComponentLifecycleEvent("component-added", A);
61213
61213
  } catch (t) {
@@ -61234,7 +61234,7 @@ function Cn(g, A, e, t) {
61234
61234
  g.userData.components = [];
61235
61235
  else if (g.userData.components.includes(A))
61236
61236
  return A;
61237
- return g.userData.components.push(A), A.gameObject = g, (A.guid === void 0 || A.guid === "invalid") && (A.guid = K5.generateUUID()), e && A._internalInit(e), hL(A, A.context), A;
61237
+ return g.userData.components.push(A), A.gameObject = g, (A.guid === void 0 || A.guid === "invalid") && (A.guid = KV.generateUUID()), e && A._internalInit(e), hL(A, A.context), A;
61238
61238
  }
61239
61239
  function sQA(g) {
61240
61240
  if (g.gameObject && g.gameObject.userData.components) {
@@ -61244,7 +61244,7 @@ function sQA(g) {
61244
61244
  g.__internalDisable && g.__internalDisable(), Vr(g, g.context ?? Ke.Current), g.destroy(), g.gameObject = null;
61245
61245
  }
61246
61246
  let t1 = !1;
61247
- function x5(g, A, e) {
61247
+ function xV(g, A, e) {
61248
61248
  var t;
61249
61249
  if (g == null)
61250
61250
  return null;
@@ -61272,11 +61272,11 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects
61272
61272
  return e || null;
61273
61273
  }
61274
61274
  function bd(g, A) {
61275
- const e = x5(g, A);
61275
+ const e = xV(g, A);
61276
61276
  return e ? Array.isArray(e) ? e[0] : e : null;
61277
61277
  }
61278
61278
  function iM(g, A, e, t = !0) {
61279
- return e || (e = []), t && (e.length = 0), x5(g, A, e), e;
61279
+ return e || (e = []), t && (e.length = 0), xV(g, A, e), e;
61280
61280
  }
61281
61281
  function gM(g, A, e) {
61282
61282
  var i;
@@ -61368,7 +61368,7 @@ uA.prototype.addNewComponent = function(g, A) {
61368
61368
  return Cn(this, g, A);
61369
61369
  };
61370
61370
  uA.prototype.removeComponent = function(g) {
61371
- return b5(this, g);
61371
+ return bV(this, g);
61372
61372
  };
61373
61373
  uA.prototype.getOrAddComponent = function(g, A) {
61374
61374
  return tM(this, g, A);
@@ -61522,20 +61522,20 @@ function rQA(g) {
61522
61522
  return g[_B] || rL(g);
61523
61523
  }
61524
61524
  function CQA(g, A) {
61525
- g[p5] = A;
61525
+ g[pV] = A;
61526
61526
  }
61527
61527
  function rL(g) {
61528
61528
  return jn.isUsingInstancing(g);
61529
61529
  }
61530
- function J5(g, A) {
61530
+ function JV(g, A) {
61531
61531
  return Xf(g, A, !0, !0);
61532
61532
  }
61533
- const v5 = Symbol("isDestroyed");
61533
+ const vV = Symbol("isDestroyed");
61534
61534
  function Cd(g) {
61535
- return g[v5];
61535
+ return g[vV];
61536
61536
  }
61537
61537
  function BQA(g, A) {
61538
- g[v5] = A;
61538
+ g[vV] = A;
61539
61539
  }
61540
61540
  const Ax = Symbol("isDontDestroy");
61541
61541
  function Pu(g, A = !0) {
@@ -61581,7 +61581,7 @@ function ex(g, A = !0, e = !0) {
61581
61581
  e && i.removeFromParent();
61582
61582
  }
61583
61583
  function Bd(g, A, e = !0) {
61584
- return L5(g, A, e);
61584
+ return LV(g, A, e);
61585
61585
  }
61586
61586
  function* CL(g, A, e = !1, t = 999, i = 0) {
61587
61587
  if (g != null && g.userData.components && !(i > t)) {
@@ -61592,7 +61592,7 @@ function* CL(g, A, e = !1, t = 999, i = 0) {
61592
61592
  yield* CL(o, A, !0, t, i + 1);
61593
61593
  }
61594
61594
  }
61595
- function L5(g, A, e, t = 0) {
61595
+ function LV(g, A, e, t = 0) {
61596
61596
  var i;
61597
61597
  if (g) {
61598
61598
  if (g.isObject3D, t > 1e3) {
@@ -61614,7 +61614,7 @@ function L5(g, A, e, t = 0) {
61614
61614
  const s = g.children[I];
61615
61615
  if (!s)
61616
61616
  continue;
61617
- const n = L5(s, A, e, o);
61617
+ const n = LV(s, A, e, o);
61618
61618
  if (n !== void 0)
61619
61619
  return n;
61620
61620
  }
@@ -61626,7 +61626,7 @@ function ay(g, A = null) {
61626
61626
  A !== null && (A.x !== void 0 ? (e = new ir(), e.position = A) : e = A);
61627
61627
  let t = Ke.Current;
61628
61628
  e != null && e.context && (t = e.context), aS && t.alias && console.log("context", t.alias), e && !e.idProvider && (e.idProvider = new zo(Date.now()));
61629
- const i = [], o = {}, I = {}, s = q5(t, g, e, i, o, I);
61629
+ const i = [], o = {}, I = {}, s = qV(t, g, e, i, o, I);
61630
61630
  s && (lQA(o), cQA(I, o)), aS && (aK(g, !0), aK(s, !0));
61631
61631
  const n = {};
61632
61632
  if ((e == null ? void 0 : e.components) !== !1) {
@@ -61642,7 +61642,7 @@ function ay(g, A = null) {
61642
61642
  }
61643
61643
  return s;
61644
61644
  }
61645
- function q5(g, A, e, t, i, o) {
61645
+ function qV(g, A, e, t, i, o) {
61646
61646
  var r;
61647
61647
  if (!A)
61648
61648
  return null;
@@ -61678,7 +61678,7 @@ function q5(g, A, e, t, i, o) {
61678
61678
  }
61679
61679
  e && (e.position = void 0, e.rotation = void 0, e.scale = void 0, e.parent = void 0);
61680
61680
  for (const C in A.children) {
61681
- const B = A.children[C], l = q5(g, B, e, t, i, o);
61681
+ const B = A.children[C], l = qV(g, B, e, t, i, o);
61682
61682
  l && n.add(l);
61683
61683
  }
61684
61684
  return n;
@@ -61765,7 +61765,7 @@ function i1(g, A, e, t) {
61765
61765
  return e.__internalOnInstantiate(t);
61766
61766
  }
61767
61767
  }
61768
- var _5 = { exports: {} }, T5 = { exports: {} };
61768
+ var _V = { exports: {} }, TV = { exports: {} };
61769
61769
  (function() {
61770
61770
  var g = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", A = {
61771
61771
  // Bit-wise rotation left
@@ -61829,9 +61829,9 @@ var _5 = { exports: {} }, T5 = { exports: {} };
61829
61829
  return t;
61830
61830
  }
61831
61831
  };
61832
- T5.exports = A;
61832
+ TV.exports = A;
61833
61833
  })();
61834
- var QQA = T5.exports, tx = {
61834
+ var QQA = TV.exports, tx = {
61835
61835
  // UTF-8 encoding
61836
61836
  utf8: {
61837
61837
  // Convert a string to a byte array
@@ -61866,13 +61866,13 @@ var QQA = T5.exports, tx = {
61866
61866
  * @license MIT
61867
61867
  */
61868
61868
  var hQA = function(g) {
61869
- return g != null && (H5(g) || EQA(g) || !!g._isBuffer);
61869
+ return g != null && (HV(g) || EQA(g) || !!g._isBuffer);
61870
61870
  };
61871
- function H5(g) {
61871
+ function HV(g) {
61872
61872
  return !!g.constructor && typeof g.constructor.isBuffer == "function" && g.constructor.isBuffer(g);
61873
61873
  }
61874
61874
  function EQA(g) {
61875
- return typeof g.readFloatLE == "function" && typeof g.slice == "function" && H5(g.slice(0, 0));
61875
+ return typeof g.readFloatLE == "function" && typeof g.slice == "function" && HV(g.slice(0, 0));
61876
61876
  }
61877
61877
  (function() {
61878
61878
  var g = QQA, A = g1.utf8, e = hQA, t = g1.bin, i = function(o, I) {
@@ -61898,14 +61898,14 @@ function EQA(g) {
61898
61898
  }, i._ii = function(o, I, s, n, a, r, C) {
61899
61899
  var B = o + (s ^ (I | ~n)) + (a >>> 0) + C;
61900
61900
  return (B << r | B >>> 32 - r) + I;
61901
- }, i._blocksize = 16, i._digestsize = 16, _5.exports = function(o, I) {
61901
+ }, i._blocksize = 16, i._digestsize = 16, _V.exports = function(o, I) {
61902
61902
  if (o == null)
61903
61903
  throw new Error("Illegal argument " + o);
61904
61904
  var s = g.wordsToBytes(i(o, I));
61905
61905
  return I && I.asBytes ? s : I && I.asString ? t.bytesToString(s) : g.bytesToHex(s);
61906
61906
  };
61907
61907
  })();
61908
- var dQA = _5.exports;
61908
+ var dQA = _V.exports;
61909
61909
  const o1 = /* @__PURE__ */ zk(dQA);
61910
61910
  var cd;
61911
61911
  ((g) => {
@@ -62219,7 +62219,7 @@ const FN = Symbol("assetReference"), ll = class {
62219
62219
  o.context = i;
62220
62220
  const s = this.asset;
62221
62221
  s.guid = this.url;
62222
- const n = S5(s, o, void 0, t);
62222
+ const n = SV(s, o, void 0, t);
62223
62223
  if (n)
62224
62224
  return n;
62225
62225
  } else {
@@ -62663,16 +62663,16 @@ var Dg = Uint8Array, yI = Uint16Array, ld = Uint32Array, oM = new Dg([
62663
62663
  /* unused */
62664
62664
  0,
62665
62665
  0
62666
- ]), gx = new Dg([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), Y5 = function(g, A) {
62666
+ ]), gx = new Dg([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), YV = function(g, A) {
62667
62667
  for (var e = new yI(31), t = 0; t < 31; ++t)
62668
62668
  e[t] = A += 1 << g[t - 1];
62669
62669
  for (var i = new ld(e[30]), t = 1; t < 30; ++t)
62670
62670
  for (var o = e[t]; o < e[t + 1]; ++o)
62671
62671
  i[o] = o - e[t] << 5 | t;
62672
62672
  return [e, i];
62673
- }, O5 = Y5(oM, 2), P5 = O5[0], ox = O5[1];
62674
- P5[28] = 258, ox[258] = 28;
62675
- var Z5 = Y5(IM, 0), GQA = Z5[0], s1 = Z5[1], Ix = new yI(32768);
62673
+ }, OV = YV(oM, 2), PV = OV[0], ox = OV[1];
62674
+ PV[28] = 258, ox[258] = 28;
62675
+ var ZV = YV(IM, 0), GQA = ZV[0], s1 = ZV[1], Ix = new yI(32768);
62676
62676
  for (var Ei = 0; Ei < 32768; ++Ei) {
62677
62677
  var IB = (Ei & 43690) >>> 1 | (Ei & 21845) << 1;
62678
62678
  IB = (IB & 52428) >>> 2 | (IB & 13107) << 2, IB = (IB & 61680) >>> 4 | (IB & 3855) << 4, Ix[Ei] = ((IB & 65280) >>> 8 | (IB & 255) << 8) >>> 1;
@@ -62800,7 +62800,7 @@ var kQA = /* @__PURE__ */ Pa(jB, 9, 0), MQA = /* @__PURE__ */ Pa(jB, 9, 1), RQA
62800
62800
  var nA = z - 254;
62801
62801
  if (z > 264) {
62802
62802
  var k = z - 257, CA = oM[k];
62803
- nA = bn(g, n, (1 << CA) - 1) + P5[k], n += CA;
62803
+ nA = bn(g, n, (1 << CA) - 1) + PV[k], n += CA;
62804
62804
  }
62805
62805
  var NA = C[KN(g, n) & q], IA = NA >>> 4;
62806
62806
  if (!NA)
@@ -63014,7 +63014,7 @@ var kQA = /* @__PURE__ */ Pa(jB, 9, 0), MQA = /* @__PURE__ */ Pa(jB, 9, 1), RQA
63014
63014
  };
63015
63015
  }, JQA = function(g, A, e, t, i) {
63016
63016
  return bQA(g, A.level == null ? 6 : A.level, A.mem == null ? Math.ceil(Math.max(8, Math.min(13, Math.log(g.length))) * 1.5) : 12 + A.mem, e, t, !i);
63017
- }, W5 = function(g, A) {
63017
+ }, WV = function(g, A) {
63018
63018
  var e = {};
63019
63019
  for (var t in g)
63020
63020
  e[t] = g[t];
@@ -63036,10 +63036,10 @@ function LQA(g, A) {
63036
63036
  function Fp(g, A) {
63037
63037
  return NQA((vQA(g), g.subarray(2, -4)), A);
63038
63038
  }
63039
- var V5 = function(g, A, e, t) {
63039
+ var VV = function(g, A, e, t) {
63040
63040
  for (var i in g) {
63041
63041
  var o = g[i], I = A + i;
63042
- o instanceof Dg ? e[I] = [o, t] : Array.isArray(o) ? e[I] = [o[0], W5(t, o[1])] : V5(o, I + "/", e, t);
63042
+ o instanceof Dg ? e[I] = [o, t] : Array.isArray(o) ? e[I] = [o[0], WV(t, o[1])] : VV(o, I + "/", e, t);
63043
63043
  }
63044
63044
  }, r1 = typeof TextEncoder < "u" && /* @__PURE__ */ new TextEncoder(), qQA = typeof TextDecoder < "u" && /* @__PURE__ */ new TextDecoder(), _QA = 0;
63045
63045
  try {
@@ -63094,14 +63094,14 @@ var nx = function(g) {
63094
63094
  function HQA(g, A) {
63095
63095
  A || (A = {});
63096
63096
  var e = {}, t = [];
63097
- V5(g, "", e, A);
63097
+ VV(g, "", e, A);
63098
63098
  var i = 0, o = 0;
63099
63099
  for (var I in e) {
63100
63100
  var s = e[I], n = s[0], a = s[1], r = a.level == 0 ? 0 : 8, C = aG(I), B = C.length, l = a.comment, Q = l && aG(l), d = Q && Q.length, h = nx(a.extra);
63101
63101
  if (B > 65535)
63102
63102
  throw "filename too long";
63103
63103
  var E = r ? LQA(n, a) : n, p = E.length, u = xQA();
63104
- u.p(n), t.push(W5(a, {
63104
+ u.p(n), t.push(WV(a, {
63105
63105
  size: n.length,
63106
63106
  crc: u.d(),
63107
63107
  c: E,
@@ -64660,10 +64660,10 @@ class IhA {
64660
64660
  }
64661
64661
  }
64662
64662
  let E1 = !1;
64663
- function X5(g) {
64663
+ function XV(g) {
64664
64664
  E1 || (E1 = !0, shA(), nhA());
64665
64665
  }
64666
- X5();
64666
+ XV();
64667
64667
  function shA() {
64668
64668
  const g = `
64669
64669
  float startCompression = 0.8;
@@ -64951,7 +64951,7 @@ const HG = class {
64951
64951
  hideElementDuringXRSession(A) {
64952
64952
  Zv((e) => {
64953
64953
  A["previous-display"] = A.style.display, A.style.display = "none";
64954
- }), lV((e) => {
64954
+ }), l5((e) => {
64955
64955
  A["previous-display"] != null && (A.style.display = A["previous-display"]);
64956
64956
  });
64957
64957
  }
@@ -64968,11 +64968,11 @@ function BG(g, A) {
64968
64968
  for (let i = 0; i < t.length; i++)
64969
64969
  A != null && A.loadedCallback && t[i].addEventListener("load", A.loadedCallback);
64970
64970
  }
64971
- function z5() {
64971
+ function zV() {
64972
64972
  BG("https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap");
64973
64973
  }
64974
64974
  const Cx = "https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0", cG = "needle-logo-element";
64975
- class j5 extends HTMLElement {
64975
+ class jV extends HTMLElement {
64976
64976
  constructor() {
64977
64977
  super();
64978
64978
  c(this, "_root");
@@ -65026,7 +65026,7 @@ class j5 extends HTMLElement {
65026
65026
  this.logoElement.style.display = e ? "block" : "none";
65027
65027
  }
65028
65028
  }
65029
- customElements.get(cG) || customElements.define(cG, j5);
65029
+ customElements.get(cG) || customElements.define(cG, jV);
65030
65030
  const LN = gA("debugspatialmenu");
65031
65031
  class rhA {
65032
65032
  constructor(A, e) {
@@ -65896,12 +65896,12 @@ const C_ = class extends HTMLElement {
65896
65896
  </div>
65897
65897
  `;
65898
65898
  const t = this.attachShadow({ mode: "open" });
65899
- z5(), BG(Cx, { loadedCallback: () => {
65899
+ zV(), BG(Cx, { loadedCallback: () => {
65900
65900
  this.handleSizeChange();
65901
65901
  } }), BG(Cx, { element: t });
65902
65902
  const i = e.content.cloneNode(!0);
65903
65903
  t == null || t.appendChild(i), this.root = t.querySelector("#root"), this.wrapper = (C = this.root) == null ? void 0 : C.querySelector(".wrapper"), this.options = (B = this.root) == null ? void 0 : B.querySelector(".options"), this.logoContainer = (l = this.root) == null ? void 0 : l.querySelector(".logo"), this.compactMenuButton = (Q = this.root) == null ? void 0 : Q.querySelector(".compact-menu-button"), this.compactMenuButton.append(Oo("more_vert")), this.foldout = (d = this.root) == null ? void 0 : d.querySelector(".foldout"), (h = this.root) == null || h.appendChild(this.wrapper), this.wrapper.classList.add("wrapper");
65904
- const o = j5.create();
65904
+ const o = jV.create();
65905
65905
  o.style.minHeight = "1rem", this.logoContainer.append(o), this.logoContainer.addEventListener("click", () => {
65906
65906
  globalThis.open("https://needle.tools", "_blank");
65907
65907
  });
@@ -66749,7 +66749,7 @@ Start a coroutine from a component by calling "this.startCoroutine(myCoroutine()
66749
66749
  }
66750
66750
  if ((i = this._stats) == null || i.begin(), ii.Current = this, this.onHandlePaused())
66751
66751
  return !1;
66752
- for (ii.Current = this, this.time.update(), QhA && console.log("FPS", this.time.smoothedFps.toFixed(0)), gG(this), oS(this.scene), D5(this), Ba(
66752
+ for (ii.Current = this, this.time.update(), QhA && console.log("FPS", this.time.smoothedFps.toFixed(0)), gG(this), oS(this.scene), DV(this), Ba(
66753
66753
  this,
66754
66754
  -1
66755
66755
  /* Start */
@@ -66867,7 +66867,7 @@ Memory:`, { ...this.renderer.info.memory }, `
66867
66867
  Target Framerate: ` + this.targetFrameRate)), this._dispatchReadyAfterFrame && (this._dispatchReadyAfterFrame = !1, this.domElement.dispatchEvent(new CustomEvent("ready")), kt.dispatchCallback(Rt.ContextFirstFrameRendered, this));
66868
66868
  }
66869
66869
  renderNow(A) {
66870
- return !A && (A = this.mainCamera, !A) ? !1 : (this.handleRendererContextLost(), this._isRendering = !0, this.renderRequiredTextures(), this.renderer.toneMapping !== wI && X5(), this.composer && !this.isInXR ? this.composer.render(this.time.deltaTime) : A && (this.isInXR && me.isMacOS() && this.renderer.clearDepth(), this.renderer.render(this.scene, A)), this._isRendering = !1, !0);
66870
+ return !A && (A = this.mainCamera, !A) ? !1 : (this.handleRendererContextLost(), this._isRendering = !0, this.renderRequiredTextures(), this.renderer.toneMapping !== wI && XV(), this.composer && !this.isInXR ? this.composer.render(this.time.deltaTime) : A && (this.isInXR && me.isMacOS() && this.renderer.clearDepth(), this.renderer.render(this.scene, A)), this._isRendering = !1, !0);
66871
66871
  }
66872
66872
  handleRendererContextLost() {
66873
66873
  this.renderer.getContext().isContextLost() && (console.warn("Attempting to recover WebGL context..."), this.renderer.forceContextRestore());
@@ -66964,7 +66964,7 @@ function vl() {
66964
66964
  }
66965
66965
  return !1;
66966
66966
  }
66967
- function $5() {
66967
+ function $V() {
66968
66968
  switch (Jl) {
66969
66969
  case "indie":
66970
66970
  return !0;
@@ -66972,11 +66972,11 @@ function $5() {
66972
66972
  return !1;
66973
66973
  }
66974
66974
  function Za() {
66975
- return vl() || $5();
66975
+ return vl() || $V();
66976
66976
  }
66977
66977
  const AX = [];
66978
66978
  function EhA(g) {
66979
- if (vl() || $5())
66979
+ if (vl() || $V())
66980
66980
  return g(!0);
66981
66981
  AX.push(g);
66982
66982
  }
@@ -67403,7 +67403,7 @@ function S1(g) {
67403
67403
  }
67404
67404
  function nM(g, A) {
67405
67405
  const e = sM();
67406
- return A.renderer ? e.ktx2Loader.detectSupport(A.renderer) : console.warn("No renderer provided to detect ktx2 support - loading KTX2 textures will probably fail"), rV(g), g.dracoLoader || g.setDRACOLoader(e.dracoLoader), g.ktx2Loader || g.setKTX2Loader(e.ktx2Loader), g.meshoptDecoder || g.setMeshoptDecoder(e.meshoptDecoder), xCA(g, {
67406
+ return A.renderer ? e.ktx2Loader.detectSupport(A.renderer) : console.warn("No renderer provided to detect ktx2 support - loading KTX2 textures will probably fail"), r5(g), g.dracoLoader || g.setDRACOLoader(e.dracoLoader), g.ktx2Loader || g.setKTX2Loader(e.ktx2Loader), g.meshoptDecoder || g.setMeshoptDecoder(e.meshoptDecoder), xCA(g, {
67407
67407
  progressive: !0
67408
67408
  }), g;
67409
67409
  }
@@ -70962,7 +70962,7 @@ class oA extends uA {
70962
70962
  return Cd(e);
70963
70963
  }
70964
70964
  static setActive(e, t, i = !0) {
70965
- e && (CS(e, t), oS(e), t && i && D5(Ke.Current, e));
70965
+ e && (CS(e, t), oS(e), t && i && DV(Ke.Current, e));
70966
70966
  }
70967
70967
  /** If the object is active (same as go.visible) */
70968
70968
  static isActiveSelf(e) {
@@ -70994,7 +70994,7 @@ class oA extends uA {
70994
70994
  * @param opts options for the instantiation
70995
70995
  */
70996
70996
  static instantiateSynced(e, t) {
70997
- return e ? S5(e, t) : null;
70997
+ return e ? SV(e, t) : null;
70998
70998
  }
70999
70999
  /** Creates a new instance of the provided object (like cloning it including all components and children)
71000
71000
  * @param instance object to instantiate
@@ -71083,7 +71083,7 @@ class oA extends uA {
71083
71083
  * @param instance component to remove
71084
71084
  */
71085
71085
  static removeComponent(e) {
71086
- return b5(e.gameObject, e), e;
71086
+ return bV(e.gameObject, e), e;
71087
71087
  }
71088
71088
  static getOrAddComponent(e, t) {
71089
71089
  return tM(e, t);
@@ -71096,7 +71096,7 @@ class oA extends uA {
71096
71096
  return e === null ? i ?? [] : iM(e, t, i);
71097
71097
  }
71098
71098
  static findByGuid(e, t) {
71099
- return J5(e, t);
71099
+ return JV(e, t);
71100
71100
  }
71101
71101
  static findObjectOfType(e, t, i = !0) {
71102
71102
  return nL(e, t ?? Ke.Current, i);
@@ -73401,7 +73401,7 @@ const H1 = Symbol("previous-visibility"), wE = class extends tt {
73401
73401
  }
73402
73402
  onBeforeRender() {
73403
73403
  wE._userSet.clear();
73404
- const A = u5(this.texture, !0, null, wE._userSet);
73404
+ const A = uV(this.texture, !0, null, wE._userSet);
73405
73405
  for (const e of A)
73406
73406
  e instanceof QA && (e[H1] = e.visible, e.visible = !1);
73407
73407
  }
@@ -74649,7 +74649,7 @@ ks([
74649
74649
  ], Kt.prototype, "dominanceGroup", 2);
74650
74650
  new S();
74651
74651
  const PEA = new GA(), ZEA = new S(), hB = gA("debugsync"), uD = "STRS";
74652
- uV(uD, zr.getRootAsSyncedTransformModel);
74652
+ u5(uD, zr.getRootAsSyncedTransformModel);
74653
74653
  const la = new gy();
74654
74654
  function kX(g, A, e = !0) {
74655
74655
  la.clear();
@@ -74706,11 +74706,11 @@ class uC extends FA {
74706
74706
  }
74707
74707
  /** @internal */
74708
74708
  awake() {
74709
- hB && console.log("new instance", this.guid, this), this._receivedDataBefore = !1, this._targetPosition = new S(), this._targetRotation = new GA(), this.lastWorldPos = new S(), this.lastWorldRotation = new GA(), this.rb = oA.getComponentInChildren(this.gameObject, Kt), this.rb && (this._wasKinematic = this.rb.isKinematic), this.receivedUpdate = !0, this._model = new a5(this.context.connection, this.guid), this.context.connection.isConnected && this.tryGetLastState(), this.joinedRoomCallback = this.tryGetLastState.bind(this), this.context.connection.beginListen(Ve.JoinedRoom, this.joinedRoomCallback), this.receivedDataCallback = this.onReceivedData.bind(this), this.context.connection.beginListenBinary(uD, this.receivedDataCallback);
74709
+ hB && console.log("new instance", this.guid, this), this._receivedDataBefore = !1, this._targetPosition = new S(), this._targetRotation = new GA(), this.lastWorldPos = new S(), this.lastWorldRotation = new GA(), this.rb = oA.getComponentInChildren(this.gameObject, Kt), this.rb && (this._wasKinematic = this.rb.isKinematic), this.receivedUpdate = !0, this._model = new aV(this.context.connection, this.guid), this.context.connection.isConnected && this.tryGetLastState(), this.joinedRoomCallback = this.tryGetLastState.bind(this), this.context.connection.beginListen(Ve.JoinedRoom, this.joinedRoomCallback), this.receivedDataCallback = this.onReceivedData.bind(this), this.context.connection.beginListenBinary(uD, this.receivedDataCallback);
74710
74710
  }
74711
74711
  /** @internal */
74712
74712
  onDestroy() {
74713
- this.syncDestroy && m5(this.guid, this.context.connection), this._model = null, this.context.connection.stopListen(Ve.JoinedRoom, this.joinedRoomCallback), this.context.connection.stopListenBinary(uD, this.receivedDataCallback);
74713
+ this.syncDestroy && mV(this.guid, this.context.connection), this._model = null, this.context.connection.stopListen(Ve.JoinedRoom, this.joinedRoomCallback), this.context.connection.stopListenBinary(uD, this.receivedDataCallback);
74714
74714
  }
74715
74715
  tryGetLastState() {
74716
74716
  const e = this.context.connection.tryGetState(this.guid);
@@ -76139,12 +76139,28 @@ class qt extends FA {
76139
76139
  const i = this.targetElement ?? this.context.renderer.domElement, o = t == null ? void 0 : t.quaternion.clone();
76140
76140
  this._controls = new wX(t, i), t == null || t.quaternion.copy(o), eF === void 0 && (eF = { ...this._controls.keys });
76141
76141
  }
76142
- this._controls && (AF && (this.enablePan = !0, this.enableZoom = !0, this.middleClickToFocus = !0, me.isMobileDevice() && (this.doubleClickToFocus = !0)), this._controls.addEventListener("start", this.onControlsChangeStarted), !this._startedListeningToKeyEvents && this.enableKeys ? (this._startedListeningToKeyEvents = !0, this._controls.listenToKeyEvents(this.context.domElement)) : this._controls.stopListenToKeyEvents()), this._syncedTransform = oA.getComponent(this.gameObject, uC) ?? void 0, this.context.pre_render_callbacks.push(this.__onPreRender), this._activePointerEvents = [], this.context.input.addEventListener("pointerdown", this._onPointerDown, { queue: en.Early }), this.context.input.addEventListener("pointerup", this._onPointerUp, { queue: en.Early }), this.context.input.addEventListener("pointerup", this._onPointerUpLate, { queue: en.Late });
76142
+ if (this._controls)
76143
+ if (AF && (this.enablePan = !0, this.enableZoom = !0, this.middleClickToFocus = !0, me.isMobileDevice() && (this.doubleClickToFocus = !0)), this._controls.addEventListener("start", this.onControlsChangeStarted), !this._startedListeningToKeyEvents && this.enableKeys)
76144
+ this._startedListeningToKeyEvents = !0, this._controls.listenToKeyEvents(this.context.domElement);
76145
+ else
76146
+ try {
76147
+ this._controls.stopListenToKeyEvents();
76148
+ } catch {
76149
+ }
76150
+ this._syncedTransform = oA.getComponent(this.gameObject, uC) ?? void 0, this.context.pre_render_callbacks.push(this.__onPreRender), this._activePointerEvents = [], this.context.input.addEventListener("pointerdown", this._onPointerDown, { queue: en.Early }), this.context.input.addEventListener("pointerup", this._onPointerUp, { queue: en.Early }), this.context.input.addEventListener("pointerup", this._onPointerUpLate, { queue: en.Late });
76143
76151
  }
76144
76152
  /** @internal */
76145
76153
  onDisable() {
76146
76154
  var e;
76147
- (e = this._camera) != null && e.threeCamera && QH(this._camera.threeCamera, this, !1), this._controls && (this._controls.enabled = !1, this._controls.autoRotate = !1, this._controls.removeEventListener("start", this.onControlsChangeStarted), this._controls.stopListenToKeyEvents(), this._startedListeningToKeyEvents = !1), this._activePointerEvents.length = 0, this.context.input.removeEventListener("pointerdown", this._onPointerDown), this.context.input.removeEventListener("pointerup", this._onPointerUp), this.context.input.removeEventListener("pointerup", this._onPointerUpLate);
76155
+ if ((e = this._camera) != null && e.threeCamera && QH(this._camera.threeCamera, this, !1), this._controls) {
76156
+ this._controls.enabled = !1, this._controls.autoRotate = !1, this._controls.removeEventListener("start", this.onControlsChangeStarted);
76157
+ try {
76158
+ this._controls.stopListenToKeyEvents();
76159
+ } catch {
76160
+ }
76161
+ this._startedListeningToKeyEvents = !1;
76162
+ }
76163
+ this._activePointerEvents.length = 0, this.context.input.removeEventListener("pointerdown", this._onPointerDown), this.context.input.removeEventListener("pointerup", this._onPointerUp), this.context.input.removeEventListener("pointerup", this._onPointerUpLate);
76148
76164
  }
76149
76165
  afterHandleInput(e) {
76150
76166
  e.detail.args.pointerId === 0 && (e.detail.args.isDown ? this._controls && this._eventSystem && (this._shouldDisable = this._eventSystem.hasActiveUI) : (!e.detail.args.isPressed || e.detail.args.isUp) && (this._shouldDisable = !1));
@@ -79051,7 +79067,7 @@ class uG extends FA {
79051
79067
  awake() {
79052
79068
  if (this.avatar = oA.getComponentInParent(this.gameObject, Ao), this.avatar) {
79053
79069
  const e = oA.getComponentInParent(this.gameObject, Ao);
79054
- this._model = new a5(this.context.connection, this.guid), e != null && e.isLocalAvatar && this._model.requestOwnership();
79070
+ this._model = new aV(this.context.connection, this.guid), e != null && e.isLocalAvatar && this._model.requestOwnership();
79055
79071
  }
79056
79072
  this.context.connection.beginListen("avatar-look-target-changed", (e) => {
79057
79073
  var t;
@@ -83895,7 +83911,7 @@ const Ff = class {
83895
83911
  c(this, "__reservedIndexRange", 0);
83896
83912
  /** The mesh information of the object */
83897
83913
  c(this, "meshInformation");
83898
- this.__instanceIndex = -1, this.object = A, this.renderer = e, A[f5] = e, this.meshInformation = IE(A.geometry), Ff.all.push(this);
83914
+ this.__instanceIndex = -1, this.object = A, this.renderer = e, A[fV] = e, this.meshInformation = IE(A.geometry), Ff.all.push(this);
83899
83915
  }
83900
83916
  /** The name of the object */
83901
83917
  get name() {
@@ -86565,7 +86581,7 @@ const nO = [], CF = new Array(), E_ = class {
86565
86581
  hideElementDuringXRSession(A) {
86566
86582
  Zv((e) => {
86567
86583
  A["previous-display"] = A.style.display, A.style.display = "none";
86568
- }), lV((e) => {
86584
+ }), l5((e) => {
86569
86585
  A["previous-display"] != null && (A.style.display = A["previous-display"]);
86570
86586
  });
86571
86587
  }
@@ -86933,7 +86949,7 @@ class Ac extends FA {
86933
86949
  return;
86934
86950
  }
86935
86951
  let i = this._hits[0];
86936
- if (e && e.origin instanceof hV) {
86952
+ if (e && e.origin instanceof h5) {
86937
86953
  const I = this._reticle[e.origin.index];
86938
86954
  I && (t = I, i = this._hits[e.origin.index]);
86939
86955
  }
@@ -92868,7 +92884,7 @@ const rE = class extends FA {
92868
92884
  oA.isActiveInHierarchy(a.gameObject) && a.setInstancingEnabled(!1);
92869
92885
  }));
92870
92886
  });
92871
- const I = new R5(o);
92887
+ const I = new RV(o);
92872
92888
  return this.ext && (this.ext.context = I), new Promise((n, a) => {
92873
92889
  em && console.log("Starting glTF export.");
92874
92890
  try {
@@ -100923,7 +100939,7 @@ function CP(g) {
100923
100939
  }
100924
100940
  async function ZwA(g) {
100925
100941
  const A = await g;
100926
- E5(A, !0), Ci(A);
100942
+ EV(A, !0), Ci(A);
100927
100943
  }
100928
100944
  function WwA(g, A) {
100929
100945
  const e = Zz();
@@ -100931,7 +100947,7 @@ function WwA(g, A) {
100931
100947
  const t = e.shift();
100932
100948
  t && ZwA(t.texture);
100933
100949
  }
100934
- A.then((t) => E5(t, !1)), e.push({ src: g, texture: A });
100950
+ A.then((t) => EV(t, !1)), e.push({ src: g, texture: A });
100935
100951
  }
100936
100952
  class fC extends FA {
100937
100953
  constructor() {
@@ -103592,7 +103608,7 @@ var x0A = Object.defineProperty, J0A = Object.getOwnPropertyDescriptor, v0A = (g
103592
103608
  return t && i && x0A(A, e, i), i;
103593
103609
  };
103594
103610
  const MG = "SCAM";
103595
- uV(MG, Ma.getRootAsSyncedCameraModel);
103611
+ u5(MG, Ma.getRootAsSyncedCameraModel);
103596
103612
  const as = new gy();
103597
103613
  class L0A {
103598
103614
  // dontSave: boolean = true;
@@ -105602,7 +105618,7 @@ async function pmA(g, A, e, t = null, i) {
105602
105618
  typeof o == "number" && (o = new zo(t));
105603
105619
  const I = A.indexOf("?");
105604
105620
  A = I === -1 ? A : A.substring(0, I);
105605
- const s = new R5(e.scene);
105621
+ const s = new RV(e.scene);
105606
105622
  s.gltfId = A, s.context = g, s.gltf = e, s.nodeToObject = i == null ? void 0 : i.nodeToObjectMap, s.implementationInformation = umA;
105607
105623
  let n = g[xF];
105608
105624
  if (n || (n = g[xF] = []), e.scenes)
@@ -106004,7 +106020,7 @@ class hj extends HTMLElement {
106004
106020
  return (e = this._loadingView) == null ? void 0 : e.setMessage("Loading failed!");
106005
106021
  });
106006
106022
  c(this, "_previouslyRegisteredMap", /* @__PURE__ */ new Map());
106007
- this._overlay_ar = new mhA(), this.addEventListener("ready", this.onReady), z5(), this.attachShadow({ mode: "open" });
106023
+ this._overlay_ar = new mhA(), this.addEventListener("ready", this.onReady), zV(), this.attachShadow({ mode: "open" });
106008
106024
  const e = document.createElement("template");
106009
106025
  e.innerHTML = `<style>
106010
106026
  @import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap');
@@ -116870,7 +116886,7 @@ export {
116870
116886
  bC as NeedleMenu,
116871
116887
  kU as NeedlePatchesKey,
116872
116888
  gEA as NeedleUSDZExporter,
116873
- hV as NeedleXRController,
116889
+ h5 as NeedleXRController,
116874
116890
  Me as NeedleXRSession,
116875
116891
  AcA as NeedleXRSync,
116876
116892
  ZcA as NeedleXRUtils,
@@ -116890,7 +116906,7 @@ export {
116890
116906
  qt as OrbitControls,
116891
116907
  Dy as Outline,
116892
116908
  jBA as OwnershipEvent,
116893
- a5 as OwnershipModel,
116909
+ aV as OwnershipModel,
116894
116910
  Xm as PUBLIC_KEY,
116895
116911
  mQ as Padding,
116896
116912
  DG as ParticleBurst,
@@ -116951,7 +116967,7 @@ export {
116951
116967
  uc as ScreenSpaceAmbientOcclusion,
116952
116968
  nr as ScreenSpaceAmbientOcclusionN8,
116953
116969
  ma as SendQueue,
116954
- R5 as SerializationContext,
116970
+ RV as SerializationContext,
116955
116971
  Hd as SetActiveOnClick,
116956
116972
  VM as ShadowCatcher,
116957
116973
  ig as ShapeModule,
@@ -116971,7 +116987,7 @@ export {
116971
116987
  BC as SpatialTriggerReceiver,
116972
116988
  cq as SpectatorCamera,
116973
116989
  py as SphereCollider,
116974
- l5 as SphereIntersection,
116990
+ lV as SphereIntersection,
116975
116991
  ruA as SphereOverlapResult,
116976
116992
  FC as Sprite,
116977
116993
  PB as SpriteData,
@@ -117060,7 +117076,7 @@ export {
117060
117076
  WlA as applyPrototypeExtensions,
117061
117077
  ylA as beginListenDestroy,
117062
117078
  SlA as beginListenInstantiate,
117063
- dV as binaryIdentifierCasts,
117079
+ d5 as binaryIdentifierCasts,
117064
117080
  AUA as build_scene_functions,
117065
117081
  zh as builtinComponentKeyName,
117066
117082
  eX as calculateProgress01,
@@ -117088,10 +117104,10 @@ export {
117088
117104
  lUA as euler,
117089
117105
  QUA as eventListSerializer,
117090
117106
  bUA as exportAsGLTF,
117091
- J5 as findByGuid,
117107
+ JV as findByGuid,
117092
117108
  nL as findObjectOfType,
117093
117109
  nQA as findObjectsOfType,
117094
- u5 as findResourceUsers,
117110
+ uV as findResourceUsers,
117095
117111
  DIA as fitObjectIntoVolume,
117096
117112
  Bd as foreachComponent,
117097
117113
  CL as foreachComponentEnumerator,
@@ -117132,7 +117148,7 @@ export {
117132
117148
  Tk as getWorldRotation,
117133
117149
  hi as getWorldScale,
117134
117150
  Za as hasCommercialLicense,
117135
- $5 as hasIndieLicense,
117151
+ $V as hasIndieLicense,
117136
117152
  ux as hasPointerEventComponent,
117137
117153
  vl as hasProLicense,
117138
117154
  MIA as hideDebugConsole,
@@ -117187,7 +117203,7 @@ export {
117187
117203
  nUA as onInitialized,
117188
117204
  mX as onStart,
117189
117205
  SX as onUpdate,
117190
- lV as onXRSessionEnd,
117206
+ l5 as onXRSessionEnd,
117191
117207
  Zv as onXRSessionStart,
117192
117208
  SmA as parseSync,
117193
117209
  yIA as placeOnSurface,
@@ -117195,7 +117211,7 @@ export {
117195
117211
  BUA as prefix,
117196
117212
  BtA as pushState,
117197
117213
  pMA as randomNumber,
117198
- uV as registerBinaryType,
117214
+ u5 as registerBinaryType,
117199
117215
  hL as registerComponent,
117200
117216
  qL as registerComponentExtension,
117201
117217
  sa as registerCustomEffectType,
@@ -117208,7 +117224,7 @@ export {
117208
117224
  zRA as registerType,
117209
117225
  QtA as relativePathPrefix,
117210
117226
  utA as removeAttributeChangeCallback,
117211
- b5 as removeComponent,
117227
+ bV as removeComponent,
117212
117228
  pUA as removeCustomImportExtensionType,
117213
117229
  SUA as removeGltfLoadEventListener,
117214
117230
  VMA as removePatch,
@@ -117217,7 +117233,7 @@ export {
117217
117233
  VmA as saveImage,
117218
117234
  NUA as screenshot,
117219
117235
  WmA as screenshot2,
117220
- m5 as sendDestroyed,
117236
+ mV as sendDestroyed,
117221
117237
  G as serializable,
117222
117238
  qlA as serializeObject,
117223
117239
  Cy as serializeable,
@@ -117228,7 +117244,7 @@ export {
117228
117244
  QH as setCameraController,
117229
117245
  BQA as setDestroyed,
117230
117246
  YMA as setDevEnvironment,
117231
- E5 as setDisposable,
117247
+ EV as setDisposable,
117232
117248
  Pu as setDontDestroy,
117233
117249
  AH as setOrAddParamsToUrl,
117234
117250
  dMA as setParam,
@@ -117252,7 +117268,7 @@ export {
117252
117268
  LMA as slerp,
117253
117269
  eM as syncDestroy,
117254
117270
  FX as syncField,
117255
- S5 as syncInstantiate,
117271
+ SV as syncInstantiate,
117256
117272
  HMA as textureToCanvas,
117257
117273
  rBA as tryCastBinary,
117258
117274
  ymA as tryDetermineFileTypeFromBinary,