@realsee/dnalogel 2.0.5-alpha.5 → 2.0.5-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/dist/index.cjs.js +12 -12
  2. package/dist/index.es.js +205 -204
  3. package/dist/index.js +205 -204
  4. package/dist/index.umd.js +12 -12
  5. package/docs/classes/CruisePluginController.html +1 -1
  6. package/docs/classes/Magnifier.html +1 -1
  7. package/docs/classes/ModelRoomLabelController.html +1 -1
  8. package/docs/classes/PaintBrush.html +1 -1
  9. package/docs/enums/CameraMovementEffect.html +1 -1
  10. package/docs/enums/DIRECTION.html +1 -1
  11. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
  12. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
  13. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
  14. package/docs/enums/PaintBrushTypeEnum.html +1 -1
  15. package/docs/enums/Rotation.html +1 -1
  16. package/docs/index.html +1 -1
  17. package/docs/interfaces/CSS3DRenderPluginEventMap.html +1 -1
  18. package/docs/interfaces/CSS3DRenderPluginState.html +1 -1
  19. package/docs/interfaces/CameraMovementPluginExportType.html +1 -1
  20. package/docs/interfaces/FloorplanBounding.html +1 -1
  21. package/docs/interfaces/FloorplanData.html +1 -1
  22. package/docs/interfaces/FloorplanEntrance.html +1 -1
  23. package/docs/interfaces/FloorplanExtraObject.html +1 -1
  24. package/docs/interfaces/FloorplanExtraObject3D.html +1 -1
  25. package/docs/interfaces/FloorplanFloorData.html +1 -1
  26. package/docs/interfaces/FloorplanImagePosition.html +1 -1
  27. package/docs/interfaces/FloorplanObserver.html +1 -1
  28. package/docs/interfaces/FloorplanOutlineItem.html +1 -1
  29. package/docs/interfaces/FloorplanPosition.html +1 -1
  30. package/docs/interfaces/FloorplanRoomItem.html +1 -1
  31. package/docs/interfaces/FloorplanRoomLabelItem.html +1 -1
  32. package/docs/interfaces/FloorplanServerBounding.html +1 -1
  33. package/docs/interfaces/FloorplanServerComputedData.html +1 -1
  34. package/docs/interfaces/FloorplanServerData.html +1 -1
  35. package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
  36. package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
  37. package/docs/interfaces/FloorplanServerEntrance.html +1 -1
  38. package/docs/interfaces/FloorplanServerFloorData.html +1 -1
  39. package/docs/interfaces/FloorplanServerImagePosition.html +1 -1
  40. package/docs/interfaces/FloorplanServerObserver.html +1 -1
  41. package/docs/interfaces/FloorplanServerOutlineItem.html +1 -1
  42. package/docs/interfaces/FloorplanServerPosition.html +1 -1
  43. package/docs/interfaces/FloorplanServerRoomItem.html +1 -1
  44. package/docs/interfaces/FloorplanServerRoomLabelItem.html +1 -1
  45. package/docs/interfaces/ItemLabelPluginData.html +1 -1
  46. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
  47. package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
  48. package/docs/interfaces/LineJson.html +1 -1
  49. package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
  50. package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
  51. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
  52. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
  53. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
  54. package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
  55. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
  56. package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
  57. package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
  58. package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
  59. package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
  60. package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
  61. package/docs/interfaces/ModelViewPluginExportType.html +1 -1
  62. package/docs/interfaces/OpenParameter.html +1 -1
  63. package/docs/interfaces/PaintBrushAction.html +1 -1
  64. package/docs/interfaces/PaintBrushConfigs.html +1 -1
  65. package/docs/interfaces/PaintBrushState.html +1 -1
  66. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +1 -1
  67. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
  68. package/docs/interfaces/PanoMeasureParameterType.html +1 -1
  69. package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
  70. package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
  71. package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
  72. package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
  73. package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
  74. package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
  75. package/docs/interfaces/PanoRulerProPluginState.html +1 -1
  76. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
  77. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
  78. package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
  79. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
  80. package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
  81. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
  82. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
  83. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
  84. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
  85. package/docs/interfaces/Point.html +1 -1
  86. package/docs/interfaces/PointJson.html +1 -1
  87. package/docs/interfaces/Room.html +1 -1
  88. package/docs/interfaces/RoomInfo.html +1 -1
  89. package/docs/interfaces/RoomLabel.html +1 -1
  90. package/docs/interfaces/RoomRules.html +1 -1
  91. package/docs/interfaces/Rooms.html +1 -1
  92. package/docs/modules.html +1 -1
  93. package/libs/ModelTVVideoPlugin/Plugin.js +40 -39
  94. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -463,10 +463,10 @@ class ma extends da {
463
463
  if (!g.find((P) => P === y)) {
464
464
  if (g.push(y), console.log("__debug__", l, l[y], y), m.push(di(l[y], v.clientWidth, v.clientHeight)), m.length < 3)
465
465
  return;
466
- const { control: P, end: k } = yn(m);
467
- if (!P || !k)
466
+ const { control: P, end: L } = yn(m);
467
+ if (!P || !L)
468
468
  return;
469
- a.quadraticCurveTo(P.x, P.y, k.x, k.y), a.stroke();
469
+ a.quadraticCurveTo(P.x, P.y, L.x, L.y), a.stroke();
470
470
  }
471
471
  }).onComplete((b) => {
472
472
  v.tween = void 0, v.tweening = !1, g = [], m = [], s && s(), r();
@@ -622,12 +622,12 @@ const Ef = (i, t) => {
622
622
  E.fov = a.fov, E.offset = h, E.distance = c, typeof s.lockedLatitude == "number" && (E.latitude = s.lockedLatitude), typeof s.lockedLongitude == "number" && (E.longitude = s.lockedLongitude), typeof s.lockedPanoIndex == "number" && (E.offset = y(s.lockedPanoIndex)), s.lookAtCurrentCamera && (E.offset = i.camera.position.clone().setY(i.camera.position.y + 1)), a.setFromPose(E), e = !0;
623
623
  }, P = () => {
624
624
  e !== !0 || !n || !n.domElement.parentNode || n.domElement.parentNode.offsetWidth === 0 || (n.render(r, a), e = !1);
625
- }, k = () => {
625
+ }, L = () => {
626
626
  n && n.dispose(), n = null;
627
627
  }, D = (E) => {
628
628
  Object.assign(s, E), I();
629
629
  };
630
- return Object.assign(window, { camera: a }), i.on("modelLoaded", m), i.on("modelWillLoad", u), i.on("cameraDirectionUpdate", I), i.on("dispose", k), i.on("renderFrame", P), i.on("cameraPositionUpdate", I), { appendTo: g, refresh: v, changeConfigs: D };
630
+ return Object.assign(window, { camera: a }), i.on("modelLoaded", m), i.on("modelWillLoad", u), i.on("cameraDirectionUpdate", I), i.on("dispose", L), i.on("renderFrame", P), i.on("cameraPositionUpdate", I), { appendTo: g, refresh: v, changeConfigs: D };
631
631
  };
632
632
  function pa(i) {
633
633
  return typeof Symbol > "u" ? `$Symbol<${i}>$` : Symbol(i);
@@ -696,8 +696,8 @@ class xa extends sa {
696
696
  else {
697
697
  const P = document.createElement("div");
698
698
  P.style.width = `${c}px`, P.style.height = `${h}px`, P.style.pointerEvents = "none";
699
- const k = o / r;
700
- e.style.position = "absolute", e.style.left = "0", e.style.top = "0", e.style.width = `${k * c}px`, e.style.height = `${k * h}px`, P.appendChild(e), u = P;
699
+ const L = o / r;
700
+ e.style.position = "absolute", e.style.left = "0", e.style.top = "0", e.style.width = `${L * c}px`, e.style.height = `${L * h}px`, P.appendChild(e), u = P;
701
701
  }
702
702
  super(u);
703
703
  d(this, "version", Rs);
@@ -766,7 +766,7 @@ class La {
766
766
  css3DScene: new j.Scene(),
767
767
  css3DRenderer: new lo()
768
768
  }), v && (pe.frontModeStore = { css3DScene: new j.Scene(), css3DRenderer: new lo() });
769
- const y = l === "front" ? pe.frontModeStore : pe.behindModeStore, { css3DScene: I, css3DRenderer: P } = y, k = (() => {
769
+ const y = l === "front" ? pe.frontModeStore : pe.behindModeStore, { css3DScene: I, css3DRenderer: P } = y, L = (() => {
770
770
  const S = () => {
771
771
  l === "front" ? this.store.frontModeCSS3DObjects[m.uuid] = {
772
772
  visible: !0,
@@ -800,12 +800,12 @@ class La {
800
800
  S && (S.appendedToPage = !0);
801
801
  }
802
802
  const E = (S) => this.setVisibleById(m.uuid, S), T = (S) => this.setEnabledById(m.uuid, S), C = () => E(!0), z = () => E(!1), R = () => T(!0), H = () => T(!1), _ = () => (delete this.store.frontModeCSS3DObjects[m.uuid], delete this.store.behindModeCSS3DObjects[m.uuid], u.forEach((S) => S == null ? void 0 : S()), I.remove(m), I.children.length === 0 && (typeof y.requestAnimationFrameId == "number" && cancelAnimationFrame(y.requestAnimationFrameId), P.domElement.remove(), l === "front" && (pe.frontModeStore = void 0), l === "behind" && (pe.behindModeStore = void 0), pe.resizeObserver = void 0), !0);
803
- return this.store.disposers.push(_), c && k(), {
803
+ return this.store.disposers.push(_), c && L(), {
804
804
  id: m.uuid,
805
805
  container: h,
806
806
  dispose: _,
807
807
  css3DObject: m,
808
- render: c ? void 0 : k,
808
+ render: c ? void 0 : L,
809
809
  show: C,
810
810
  hide: z,
811
811
  setVisible: E,
@@ -1412,13 +1412,13 @@ function yt(i, t, e, n, o, s, r, a, l, c, h, f) {
1412
1412
  let C = r.get(T);
1413
1413
  C ? n && C.p(E, t) : (C = c(T, E), C.c()), y.set(T, b[g] = C), T in v && I.set(T, Math.abs(g - v[T]));
1414
1414
  }
1415
- const P = /* @__PURE__ */ new Set(), k = /* @__PURE__ */ new Set();
1415
+ const P = /* @__PURE__ */ new Set(), L = /* @__PURE__ */ new Set();
1416
1416
  function D(E) {
1417
1417
  F(E, 1), E.m(a, h), r.set(E.key, E), h = E.first, m--;
1418
1418
  }
1419
1419
  for (; u && m; ) {
1420
1420
  const E = b[m - 1], T = i[u - 1], C = E.key, z = T.key;
1421
- E === T ? (h = E.first, u--, m--) : y.has(z) ? !r.has(C) || P.has(C) ? D(E) : k.has(z) ? u-- : I.get(C) > I.get(z) ? (k.add(C), D(E)) : (P.add(z), u--) : (l(T, r), u--);
1421
+ E === T ? (h = E.first, u--, m--) : y.has(z) ? !r.has(C) || P.has(C) ? D(E) : L.has(z) ? u-- : I.get(C) > I.get(z) ? (L.add(C), D(E)) : (P.add(z), u--) : (l(T, r), u--);
1422
1422
  }
1423
1423
  for (; u--; ) {
1424
1424
  const E = i[u];
@@ -1648,18 +1648,18 @@ function ol(i, t, e) {
1648
1648
  function h(b) {
1649
1649
  if (!(c === null || b.floorIndex === c))
1650
1650
  return !1;
1651
- const I = new Ct(), P = s.camera.position.clone(), k = new $(b.position.x, b.position.y, b.position.z), D = k.distanceTo(P);
1652
- I.set(P.clone(), k.clone().sub(P).normalize());
1651
+ const I = new Ct(), P = s.camera.position.clone(), L = new $(b.position.x, b.position.y, b.position.z), D = L.distanceTo(P);
1652
+ I.set(P.clone(), L.clone().sub(P).normalize());
1653
1653
  const [E] = s.model.intersectRaycaster(I);
1654
1654
  return !(E && E.distance + 1 < D);
1655
1655
  }
1656
1656
  function f(b, y) {
1657
- const P = new $(b.position.x, b.position.y, b.position.z).clone().project(s.camera), k = Math.ceil((P.x + 1) / 2 * y.x), D = Math.ceil((-P.y + 1) / 2 * y.y);
1658
- return `translate(${k}px, ${D}px)`;
1657
+ const P = new $(b.position.x, b.position.y, b.position.z).clone().project(s.camera), L = Math.ceil((P.x + 1) / 2 * y.x), D = Math.ceil((-P.y + 1) / 2 * y.y);
1658
+ return `translate(${L}px, ${D}px)`;
1659
1659
  }
1660
1660
  function u(b) {
1661
1661
  const { rendererSize: y, shownFloor: I } = b, P = /* @__PURE__ */ new Map();
1662
- function k(E) {
1662
+ function L(E) {
1663
1663
  const T = P.get(E.id);
1664
1664
  if (T)
1665
1665
  return T;
@@ -1667,7 +1667,7 @@ function ol(i, t, e) {
1667
1667
  return P.set(E.id, H), H;
1668
1668
  }
1669
1669
  return r.map((E) => {
1670
- const T = h(E), C = T ? f(E, y) : E.transform, z = k(E), H = r.filter((_) => _.visible && k(_) < z).length * 10;
1670
+ const T = h(E), C = T ? f(E, y) : E.transform, z = L(E), H = r.filter((_) => _.visible && L(_) < z).length * 10;
1671
1671
  return Object.assign(Object.assign({}, E), { visible: T, transform: C, zIndex: H });
1672
1672
  });
1673
1673
  }
@@ -2247,9 +2247,9 @@ function Wl(i, t, e) {
2247
2247
  };
2248
2248
  }
2249
2249
  const g = document.body.clientWidth, v = document.body.clientHeight, b = l.roomLabel, y = b.positionInImage.x * 100 + "%", I = b.positionInImage.y * 100 + "%", P = (g < 500 || v < 500 ? 10 : 14) / 16 + "rem";
2250
- let k = !1, D, E;
2250
+ let L = !1, D, E;
2251
2251
  c.subscribe(function(z) {
2252
- e(13, k = !!z && z.id === l.id);
2252
+ e(13, L = !!z && z.id === l.id);
2253
2253
  }), Lt(() => {
2254
2254
  const C = D == null ? void 0 : D.getClientRects()[0];
2255
2255
  e(14, E = {
@@ -2265,7 +2265,7 @@ function Wl(i, t, e) {
2265
2265
  return i.$$set = (C) => {
2266
2266
  "pxmm" in C && e(9, a = C.pxmm), "room" in C && e(0, l = C.room), "hoveredRoom" in C && e(10, c = C.hoveredRoom), "getRoomAreaText" in C && e(11, h = C.getRoomAreaText), "getLabelElement" in C && e(1, f = C.getLabelElement), "adaptiveRoomLabelVisibleEnable" in C && e(12, u = C.adaptiveRoomLabelVisibleEnable);
2267
2267
  }, i.$$.update = () => {
2268
- i.$$.dirty & 2049 && e(5, n = l.size ? h(l.size) : ""), i.$$.dirty & 16385 && e(15, o = E ? m(l, E) : void 0), i.$$.dirty & 3 && e(4, s = f == null ? void 0 : f(l)), i.$$.dirty & 45568 && e(3, r = u ? k ? !0 : !!(o != null && o(a)) : !0);
2268
+ i.$$.dirty & 2049 && e(5, n = l.size ? h(l.size) : ""), i.$$.dirty & 16385 && e(15, o = E ? m(l, E) : void 0), i.$$.dirty & 3 && e(4, s = f == null ? void 0 : f(l)), i.$$.dirty & 45568 && e(3, r = u ? L ? !0 : !!(o != null && o(a)) : !0);
2269
2269
  }, [
2270
2270
  l,
2271
2271
  f,
@@ -2280,7 +2280,7 @@ function Wl(i, t, e) {
2280
2280
  c,
2281
2281
  h,
2282
2282
  u,
2283
- k,
2283
+ L,
2284
2284
  E,
2285
2285
  o,
2286
2286
  T
@@ -2580,8 +2580,8 @@ function _l(i, t, e) {
2580
2580
  });
2581
2581
  f.unshift({ left: 0, bottom: 0 }), f.push(a ? { left: 1, bottom: 0 } : { left: 0, bottom: 1 });
2582
2582
  const u = h[h.length - 1] - h[0], m = h.map((g, v, b) => {
2583
- const y = v === 0 ? 0 : g - b[v - 1], I = v === 0 ? 0 : (g + b[v - 1]) / 2, P = a ? (I - s.min.x - St + jt) / l : 0, k = a ? 0 : (I - s.min.y - St + jt) / c;
2584
- return { left: P, bottom: k, distance: y };
2583
+ const y = v === 0 ? 0 : g - b[v - 1], I = v === 0 ? 0 : (g + b[v - 1]) / 2, P = a ? (I - s.min.x - St + jt) / l : 0, L = a ? 0 : (I - s.min.y - St + jt) / c;
2584
+ return { left: P, bottom: L, distance: y };
2585
2585
  }).filter(({ distance: g }) => g / u > 0.1);
2586
2586
  return i.$$set = (g) => {
2587
2587
  "type" in g && e(0, n = g.type), "data" in g && e(5, o = g.data), "bounding" in g && e(6, s = g.bounding), "getRuleDistanceText" in g && e(1, r = g.getRuleDistanceText);
@@ -3383,13 +3383,13 @@ function zc(i) {
3383
3383
  e.$set(P), y[2] ? u ? (u.p(y, I), I & 4 && F(u, 1)) : (u = Ro(y), u.c(), F(u, 1), u.m(t, o)) : u && (Ee(), q(u, 1, 1, () => {
3384
3384
  u = null;
3385
3385
  }), Ie());
3386
- const k = I & 34 ? Qe(m, [
3386
+ const L = I & 34 ? Qe(m, [
3387
3387
  {
3388
3388
  floorplanData: y[5],
3389
3389
  floorIndex: y[1]
3390
3390
  }
3391
3391
  ]) : {};
3392
- s.$set(k), y[3] ? v ? (v.p(y, I), I & 8 && F(v, 1)) : (v = Bo(y), v.c(), F(v, 1), v.m(t, a)) : v && (Ee(), q(v, 1, 1, () => {
3392
+ s.$set(L), y[3] ? v ? (v.p(y, I), I & 8 && F(v, 1)) : (v = Bo(y), v.c(), F(v, 1), v.m(t, a)) : v && (Ee(), q(v, 1, 1, () => {
3393
3393
  v = null;
3394
3394
  }), Ie()), y[4] ? b ? (b.p(y, I), I & 16 && F(b, 1)) : (b = Ho(y), b.c(), F(b, 1), b.m(t, null)) : b && (Ee(), q(b, 1, 1, () => {
3395
3395
  b = null;
@@ -4678,8 +4678,8 @@ function nh(i, t, e) {
4678
4678
  const b = g.bounding, y = g.observers[v];
4679
4679
  if (!y)
4680
4680
  return "";
4681
- const I = (b.max.x - b.min.x) * r, P = (b.max.y - b.min.y) * r, k = Math.floor(y.positionInImage.x * I), D = Math.floor(y.positionInImage.y * P);
4682
- return `translate(${k}px, ${D}px)`;
4681
+ const I = (b.max.x - b.min.x) * r, P = (b.max.y - b.min.y) * r, L = Math.floor(y.positionInImage.x * I), D = Math.floor(y.positionInImage.y * P);
4682
+ return `translate(${L}px, ${D}px)`;
4683
4683
  }
4684
4684
  function u(g) {
4685
4685
  e(6, c = g);
@@ -5050,10 +5050,10 @@ function fh(i, t, e) {
5050
5050
  "five" in y && e(0, n = y.five), "visible" in y && e(1, o = y.visible), "hoverEnable" in y && e(2, s = y.hoverEnable), "floorplanData" in y && e(3, r = y.floorplanData), "cameraImageUrl" in y && e(4, a = y.cameraImageUrl), "extraObjects" in y && e(5, l = y.extraObjects);
5051
5051
  }, i.$$.update = () => {
5052
5052
  if (i.$$.dirty & 456) {
5053
- const y = Math.min(f, u), { max: I, min: P } = r.bounding, k = I.x - P.x, D = I.y - P.y, E = function() {
5054
- return k > D ? [y, y / k * D] : [y / D * k, y];
5053
+ const y = Math.min(f, u), { max: I, min: P } = r.bounding, L = I.x - P.x, D = I.y - P.y, E = function() {
5054
+ return L > D ? [y, y / L * D] : [y / D * L, y];
5055
5055
  }();
5056
- e(8, m = E[0]), e(11, g = E[1]), e(9, c = m / k);
5056
+ e(8, m = E[0]), e(11, g = E[1]), e(9, c = m / L);
5057
5057
  }
5058
5058
  }, [
5059
5059
  n,
@@ -5342,7 +5342,7 @@ const jf = (i, t) => {
5342
5342
  side: j.DoubleSide,
5343
5343
  blending: j.AdditiveBlending
5344
5344
  });
5345
- const k = [0, m - Math.PI / 2, 0], {
5345
+ const L = [0, m - Math.PI / 2, 0], {
5346
5346
  model: {
5347
5347
  bounding: {
5348
5348
  max: { x: D, z: E },
@@ -5352,7 +5352,7 @@ const jf = (i, t) => {
5352
5352
  } = i;
5353
5353
  o.yBase = C;
5354
5354
  const R = { x: (D + T) / 2, y: C - 1.6, z: (E + z) / 2 }, H = 45e-4 * y;
5355
- return gh(P, { position: R, rotation: k, scale: H }), o.object = P, !0;
5355
+ return gh(P, { position: R, rotation: L, scale: H }), o.object = P, !0;
5356
5356
  }, r = ({ latitude: f }) => {
5357
5357
  if (!o.object)
5358
5358
  return;
@@ -5390,11 +5390,11 @@ const bh = ({ x: i, y: t, z: e }) => new $(i, t, e), Of = (i, t) => {
5390
5390
  const P = (z = I == null ? void 0 : I.position) != null ? z : o;
5391
5391
  if (!P)
5392
5392
  return Promise.reject("ModelEntryDoorGuidePlugin.load(): position is undefined");
5393
- const k = bh(P), D = (R = I == null ? void 0 : I.rad) != null ? R : s, E = (H = I == null ? void 0 : I.fbx_url) != null ? H : r;
5393
+ const L = bh(P), D = (R = I == null ? void 0 : I.rad) != null ? R : s, E = (H = I == null ? void 0 : I.fbx_url) != null ? H : r;
5394
5394
  if (e.rad = D, D === void 0)
5395
5395
  return Promise.reject(`ModelEntryDoorGuidePlugin.load(): rad is ${D}`);
5396
5396
  const T = await new Os().loadAsync(E);
5397
- T.position.copy(k), T.rotation.z = D, T.scale.set(0.8, 0.8, 0.8), er(T, { transparent: !0, side: j.DoubleSide });
5397
+ T.position.copy(L), T.rotation.z = D, T.scale.set(0.8, 0.8, 0.8), er(T, { transparent: !0, side: j.DoubleSide });
5398
5398
  const C = (B = (O = (S = (_ = T.children) == null ? void 0 : _[0]) == null ? void 0 : S.children) == null ? void 0 : O[3]) == null ? void 0 : B.clone();
5399
5399
  return C ? (C.material = new sn({ transparent: !0, map: vh("\u5165\u6237\u95E8") }), C.renderOrder = 3, T.children[0].add(C), e.object = T, !0) : Promise.reject(`ModelEntryDoorGuidePlugin.load(): textMesh is ${C}`);
5400
5400
  }, c = () => {
@@ -5404,8 +5404,8 @@ const bh = ({ x: i, y: t, z: e }) => new $(i, t, e), Of = (i, t) => {
5404
5404
  return console.error("ModelEntryDoorGuidePlugin.initAnimation(): state.object is ", e.object);
5405
5405
  const I = 1, P = new Vr(e.object);
5406
5406
  a.push(P);
5407
- const k = P.clipAction(e.object.animations[0]);
5408
- k.timeScale = I;
5407
+ const L = P.clipAction(e.object.animations[0]);
5408
+ L.timeScale = I;
5409
5409
  let D;
5410
5410
  const E = () => {
5411
5411
  let R = 0, H = 0;
@@ -5418,18 +5418,18 @@ const bh = ({ x: i, y: t, z: e }) => new $(i, t, e), Of = (i, t) => {
5418
5418
  cancelAnimationFrame(R);
5419
5419
  };
5420
5420
  }, z = { play: () => {
5421
- D || (k.play(), D = E(), requestAnimationFrame(() => {
5421
+ D || (L.play(), D = E(), requestAnimationFrame(() => {
5422
5422
  e.object && e.object.rotation.z !== e.rad && (e.object.rotation.z = e.rad);
5423
5423
  }));
5424
5424
  }, stop: () => {
5425
- k.stop(), D == null || D(), D = void 0;
5425
+ L.stop(), D == null || D(), D = void 0;
5426
5426
  } };
5427
5427
  e.animation = z;
5428
5428
  }, h = (I) => {
5429
- var k;
5429
+ var L;
5430
5430
  if (!e.object)
5431
5431
  return console.error("ModelEntryDoorGuidePlugin.enable(): object is ", e.object);
5432
- ((k = I == null ? void 0 : I.animationEnable) != null ? k : n) && (e.animation || c(), e.animation.play()), i.scene.add(e.object), i.needsRender = !0;
5432
+ ((L = I == null ? void 0 : I.animationEnable) != null ? L : n) && (e.animation || c(), e.animation.play()), i.scene.add(e.object), i.needsRender = !0;
5433
5433
  }, f = () => {
5434
5434
  !e.object || (e.animation && e.animation.stop(), i.scene.remove(e.object), i.needsRender = !0);
5435
5435
  }, u = (I) => I === "Floorplan" ? h() : f();
@@ -5724,7 +5724,7 @@ const xh = `<style type="text/css">
5724
5724
  if (!I)
5725
5725
  return !1;
5726
5726
  for (const P in b) {
5727
- const k = b[P], { standingPosition: D } = I.observers[0], E = k.map(({ x: T, z: C, observers: z }) => {
5727
+ const L = b[P], { standingPosition: D } = I.observers[0], E = L.map(({ x: T, z: C, observers: z }) => {
5728
5728
  const R = z.length > 0 ? v.rooms[v.observers[z[0]]].name : "", H = y[R] ? y[R].floor : null;
5729
5729
  let _ = 1 / 0, S = {
5730
5730
  index: 0,
@@ -5771,7 +5771,7 @@ const xh = `<style type="text/css">
5771
5771
  if (!I || !P)
5772
5772
  throw new Error("\u6807\u5C3A\u6570\u636E\u4F9D\u8D56\u4E0D\u9F50\u5168\uFF01");
5773
5773
  return e.loaded = !1, e.options = { ...e.options, ...y || {} }, i.model.loaded ? a(I, P) : await new Promise(
5774
- (k) => i.once("modelLoaded", () => k(a(I, P)))
5774
+ (L) => i.once("modelLoaded", () => L(a(I, P)))
5775
5775
  );
5776
5776
  };
5777
5777
  t.roomInfo && t.roomRules && l(t.roomInfo, t.roomRules);
@@ -5793,12 +5793,12 @@ const xh = `<style type="text/css">
5793
5793
  { x: 0, y: I },
5794
5794
  { x: y, y: I }
5795
5795
  ]
5796
- ], k = [];
5796
+ ], L = [];
5797
5797
  for (let D = 0; D < P.length; D++) {
5798
5798
  const E = nr([v, b], [P[D][0], P[D][1]], !0);
5799
- E && k.push(E);
5799
+ E && L.push(E);
5800
5800
  }
5801
- return k.length === 0 ? !1 : k;
5801
+ return L.length === 0 ? !1 : L;
5802
5802
  }, h = () => {
5803
5803
  var z;
5804
5804
  const v = (z = i.getElement()) == null ? void 0 : z.parentElement;
@@ -5816,7 +5816,7 @@ const xh = `<style type="text/css">
5816
5816
  H.style.display = "none";
5817
5817
  return;
5818
5818
  }
5819
- const k = y.position, D = y.getWorldDirection(new $()), E = v.clientWidth, T = v.clientHeight;
5819
+ const L = y.position, D = y.getWorldDirection(new $()), E = v.clientWidth, T = v.clientHeight;
5820
5820
  if (I !== Se.Mode.Panorama) {
5821
5821
  for (const R in r)
5822
5822
  for (const { $element: H } of r[R].rules)
@@ -5827,7 +5827,7 @@ const xh = `<style type="text/css">
5827
5827
  for (const { $element: H } of r[R].rules)
5828
5828
  H.style.display = R === P ? "block" : "none";
5829
5829
  const [C] = r[P].origins.slice().filter((R) => R.observers.indexOf(b) >= 0).sort((R, H) => {
5830
- const _ = R.clone().setY(0).sub(k).normalize().angleTo(D.clone().setY(0)), S = H.clone().setY(0).sub(k).normalize().angleTo(D.clone().setY(0));
5830
+ const _ = R.clone().setY(0).sub(L).normalize().angleTo(D.clone().setY(0)), S = H.clone().setY(0).sub(L).normalize().angleTo(D.clone().setY(0));
5831
5831
  return _ - S;
5832
5832
  });
5833
5833
  for (const { rule: R, vertical: H, $element: _ } of r[P].rules) {
@@ -5850,16 +5850,16 @@ const xh = `<style type="text/css">
5850
5850
  _.style.display = "none";
5851
5851
  continue;
5852
5852
  }
5853
- if (S.clone().sub(k).normalize().angleTo(D) > Math.PI / 2) {
5853
+ if (S.clone().sub(L).normalize().angleTo(D) > Math.PI / 2) {
5854
5854
  _.style.display = "none";
5855
5855
  continue;
5856
5856
  }
5857
- if (O.clone().sub(k).normalize().angleTo(D) > Math.PI / 2) {
5857
+ if (O.clone().sub(L).normalize().angleTo(D) > Math.PI / 2) {
5858
5858
  _.style.display = "none";
5859
5859
  continue;
5860
5860
  }
5861
5861
  const te = S.distanceTo(O);
5862
- if (O.clone().sub(O.clone().sub(S).divide(new $(2, 2, 2))).distanceTo(k) / te > 8) {
5862
+ if (O.clone().sub(O.clone().sub(S).divide(new $(2, 2, 2))).distanceTo(L) / te > 8) {
5863
5863
  _.style.display = "none";
5864
5864
  continue;
5865
5865
  }
@@ -5890,7 +5890,7 @@ const xh = `<style type="text/css">
5890
5890
  const b = v.distanceText;
5891
5891
  e.options.distanceText = b, Object.values(r).forEach((y) => {
5892
5892
  y.rules.forEach((I) => {
5893
- const [P, k] = I.rule, D = P.distanceTo(k), E = I.$element.querySelector(".PanoRulerPlugin-rule-label-name");
5893
+ const [P, L] = I.rule, D = P.distanceTo(L), E = I.$element.querySelector(".PanoRulerPlugin-rule-label-name");
5894
5894
  !E || (E.innerText = b(D));
5895
5895
  });
5896
5896
  });
@@ -6101,7 +6101,7 @@ function jh(i) {
6101
6101
  function Oh(i, t, e) {
6102
6102
  var n, o, s, r;
6103
6103
  let { five: a } = t, { rulerDatas: l } = t, { options: c } = t, h = [];
6104
- const f = ((o = (n = a.getElement()) === null || n === void 0 ? void 0 : n.parentElement) === null || o === void 0 ? void 0 : o.clientWidth) || 0, u = ((r = (s = a.getElement()) === null || s === void 0 ? void 0 : s.parentElement) === null || r === void 0 ? void 0 : r.clientHeight) || 0, m = (P, k) => {
6104
+ const f = ((o = (n = a.getElement()) === null || n === void 0 ? void 0 : n.parentElement) === null || o === void 0 ? void 0 : o.clientWidth) || 0, u = ((r = (s = a.getElement()) === null || s === void 0 ? void 0 : s.parentElement) === null || r === void 0 ? void 0 : r.clientHeight) || 0, m = (P, L) => {
6105
6105
  const D = [
6106
6106
  [{ x: 0, y: 0 }, { x: f, y: 0 }],
6107
6107
  [{ x: 0, y: 0 }, { x: 0, y: u }],
@@ -6109,12 +6109,12 @@ function Oh(i, t, e) {
6109
6109
  [{ x: 0, y: u }, { x: f, y: u }]
6110
6110
  ], E = [];
6111
6111
  for (let T = 0; T < D.length; T++) {
6112
- const C = nr([P, k], [D[T][0], D[T][1]], !0);
6112
+ const C = nr([P, L], [D[T][0], D[T][1]], !0);
6113
6113
  C && E.push(C);
6114
6114
  }
6115
6115
  return E.length === 0 ? !1 : E;
6116
- }, g = (P, k) => {
6117
- const D = P.clone().project(a.camera), E = (D.x + 1) / 2 * f, T = (-D.y + 1) / 2 * u, C = k.clone().project(a.camera), z = (C.x + 1) / 2 * f, R = (-C.y + 1) / 2 * u, H = Math.sqrt(Math.pow(z - E, 2) + Math.pow(R - T, 2));
6116
+ }, g = (P, L) => {
6117
+ const D = P.clone().project(a.camera), E = (D.x + 1) / 2 * f, T = (-D.y + 1) / 2 * u, C = L.clone().project(a.camera), z = (C.x + 1) / 2 * f, R = (-C.y + 1) / 2 * u, H = Math.sqrt(Math.pow(z - E, 2) + Math.pow(R - T, 2));
6118
6118
  return {
6119
6119
  startLeft: E,
6120
6120
  startTop: T,
@@ -6122,13 +6122,13 @@ function Oh(i, t, e) {
6122
6122
  endTop: R,
6123
6123
  distance: H
6124
6124
  };
6125
- }, v = (P, k, D) => {
6126
- const E = a.camera.position, T = a.camera.getWorldDirection(new $()), C = P.clone().sub(E).normalize().angleTo(T), z = k.clone().sub(E).normalize().angleTo(T), R = P.distanceTo(k), _ = k.clone().sub(k.clone().sub(P).divide(new $(2, 2, 2))).distanceTo(E), { startLeft: S, startTop: O, endLeft: B, endTop: K, distance: U } = g(P, k), W = -((Math.PI / 2 - Math.atan2(B - S, O - K)) / Math.PI) * 180;
6125
+ }, v = (P, L, D) => {
6126
+ const E = a.camera.position, T = a.camera.getWorldDirection(new $()), C = P.clone().sub(E).normalize().angleTo(T), z = L.clone().sub(E).normalize().angleTo(T), R = P.distanceTo(L), _ = L.clone().sub(L.clone().sub(P).divide(new $(2, 2, 2))).distanceTo(E), { startLeft: S, startTop: O, endLeft: B, endTop: K, distance: U } = g(P, L), W = -((Math.PI / 2 - Math.atan2(B - S, O - K)) / Math.PI) * 180;
6127
6127
  let ee = !0;
6128
- D || (ee = !1), !nt(P, D) && !nt(k, D) && (ee = !1), R < 0.3 && (ee = !1), C > Math.PI / 2 && (ee = !1), z > Math.PI / 2 && (ee = !1), _ / R > 8 && (ee = !1);
6128
+ D || (ee = !1), !nt(P, D) && !nt(L, D) && (ee = !1), R < 0.3 && (ee = !1), C > Math.PI / 2 && (ee = !1), z > Math.PI / 2 && (ee = !1), _ / R > 8 && (ee = !1);
6129
6129
  let se = 50, ie = U;
6130
6130
  const ce = m({ x: ~~S, y: ~~O }, { x: ~~B, y: ~~K });
6131
- if (ce && ce.length === 1 && (nt(P, D) ? (ie = Math.sqrt(Math.pow(ce[0].x - S, 2) + Math.pow(ce[0].y - O, 2)), se = ie / U * 50) : nt(k, D) && (ie = Math.sqrt(Math.pow(ce[0].x - B, 2) + Math.pow(ce[0].y - K, 2)), se = 100 - ie / U * 50)), ce && ce.length === 2) {
6131
+ if (ce && ce.length === 1 && (nt(P, D) ? (ie = Math.sqrt(Math.pow(ce[0].x - S, 2) + Math.pow(ce[0].y - O, 2)), se = ie / U * 50) : nt(L, D) && (ie = Math.sqrt(Math.pow(ce[0].x - B, 2) + Math.pow(ce[0].y - K, 2)), se = 100 - ie / U * 50)), ce && ce.length === 2) {
6132
6132
  const Ae = {
6133
6133
  x: (ce[0].x + ce[1].x) / 2,
6134
6134
  y: (ce[0].y + ce[1].y) / 2
@@ -6145,15 +6145,15 @@ function Oh(i, t, e) {
6145
6145
  ruleLength: R
6146
6146
  };
6147
6147
  }, b = () => {
6148
- const P = a.panoIndex, k = l.find((H) => H.panoIndex === P);
6149
- if (!k)
6148
+ const P = a.panoIndex, L = l.find((H) => H.panoIndex === P);
6149
+ if (!L)
6150
6150
  return e(0, h = []);
6151
6151
  if (a.currentMode !== Se.Mode.Panorama)
6152
6152
  return e(0, h = []);
6153
- const D = a.camera.position, E = a.camera.getWorldDirection(new $()), T = k.lines.map((H) => new $(H.start[0], -H.start[1], -H.start[2])), C = k.lines.map((H) => new $(H.end[0], -H.end[1], -H.end[2])), [z] = T.concat(C).sort((H, _) => {
6153
+ const D = a.camera.position, E = a.camera.getWorldDirection(new $()), T = L.lines.map((H) => new $(H.start[0], -H.start[1], -H.start[2])), C = L.lines.map((H) => new $(H.end[0], -H.end[1], -H.end[2])), [z] = T.concat(C).sort((H, _) => {
6154
6154
  const S = H.clone().setY(0).sub(D).normalize().angleTo(E.clone().setY(0)), O = _.clone().setY(0).sub(D).normalize().angleTo(E.clone().setY(0));
6155
6155
  return S - O;
6156
- }), R = k.lines.map((H) => {
6156
+ }), R = L.lines.map((H) => {
6157
6157
  var _, S;
6158
6158
  const O = H.start, B = H.end, { startLeft: K, startTop: U, distance: te, deg: W, visible: ee, labelOffset: se, ruleLength: ie } = v(new $(O[0], -O[1], -O[2]), new $(B[0], -B[1], -B[2]), z), ce = [];
6159
6159
  return H.children && ((_ = H.children) === null || _ === void 0 ? void 0 : _.length) > 0 && ((S = H.children) === null || S === void 0 || S.forEach((Ae) => {
@@ -6485,68 +6485,68 @@ var or = { exports: {} };
6485
6485
  return Array.isArray(p) ? (m(p, w[A], w), !0) : !1;
6486
6486
  }
6487
6487
  function m(p, A, w) {
6488
- var L;
6488
+ var k;
6489
6489
  if (!!p)
6490
6490
  if (p.forEach)
6491
6491
  p.forEach(A, w);
6492
6492
  else if (p.length !== o)
6493
- for (L = 0; L < p.length; )
6494
- A.call(w, p[L], L, p), L++;
6493
+ for (k = 0; k < p.length; )
6494
+ A.call(w, p[k], k, p), k++;
6495
6495
  else
6496
- for (L in p)
6497
- p.hasOwnProperty(L) && A.call(w, p[L], L, p);
6496
+ for (k in p)
6497
+ p.hasOwnProperty(k) && A.call(w, p[k], k, p);
6498
6498
  }
6499
6499
  function g(p, A, w) {
6500
- var L = "DEPRECATED METHOD: " + A + `
6500
+ var k = "DEPRECATED METHOD: " + A + `
6501
6501
  ` + w + ` AT
6502
6502
  `;
6503
6503
  return function() {
6504
6504
  var N = new Error("get-stack-trace"), J = N && N.stack ? N.stack.replace(/^[^\(]+?[\n$]/gm, "").replace(/^\s+at\s+/gm, "").replace(/^Object.<anonymous>\s*\(/gm, "{anonymous}()@") : "Unknown Stack Trace", ae = t.console && (t.console.warn || t.console.log);
6505
- return ae && ae.call(t.console, L, J), p.apply(this, arguments);
6505
+ return ae && ae.call(t.console, k, J), p.apply(this, arguments);
6506
6506
  };
6507
6507
  }
6508
6508
  var v;
6509
6509
  typeof Object.assign != "function" ? v = function(A) {
6510
6510
  if (A === o || A === null)
6511
6511
  throw new TypeError("Cannot convert undefined or null to object");
6512
- for (var w = Object(A), L = 1; L < arguments.length; L++) {
6513
- var N = arguments[L];
6512
+ for (var w = Object(A), k = 1; k < arguments.length; k++) {
6513
+ var N = arguments[k];
6514
6514
  if (N !== o && N !== null)
6515
6515
  for (var J in N)
6516
6516
  N.hasOwnProperty(J) && (w[J] = N[J]);
6517
6517
  }
6518
6518
  return w;
6519
6519
  } : v = Object.assign;
6520
- var b = g(function(A, w, L) {
6520
+ var b = g(function(A, w, k) {
6521
6521
  for (var N = Object.keys(w), J = 0; J < N.length; )
6522
- (!L || L && A[N[J]] === o) && (A[N[J]] = w[N[J]]), J++;
6522
+ (!k || k && A[N[J]] === o) && (A[N[J]] = w[N[J]]), J++;
6523
6523
  return A;
6524
6524
  }, "extend", "Use `assign`."), y = g(function(A, w) {
6525
6525
  return b(A, w, !0);
6526
6526
  }, "merge", "Use `assign`.");
6527
6527
  function I(p, A, w) {
6528
- var L = A.prototype, N;
6529
- N = p.prototype = Object.create(L), N.constructor = p, N._super = L, w && v(N, w);
6528
+ var k = A.prototype, N;
6529
+ N = p.prototype = Object.create(k), N.constructor = p, N._super = k, w && v(N, w);
6530
6530
  }
6531
6531
  function P(p, A) {
6532
6532
  return function() {
6533
6533
  return p.apply(A, arguments);
6534
6534
  };
6535
6535
  }
6536
- function k(p, A) {
6536
+ function L(p, A) {
6537
6537
  return typeof p == a ? p.apply(A && A[0] || o, A) : p;
6538
6538
  }
6539
6539
  function D(p, A) {
6540
6540
  return p === o ? A : p;
6541
6541
  }
6542
6542
  function E(p, A, w) {
6543
- m(R(A), function(L) {
6544
- p.addEventListener(L, w, !1);
6543
+ m(R(A), function(k) {
6544
+ p.addEventListener(k, w, !1);
6545
6545
  });
6546
6546
  }
6547
6547
  function T(p, A, w) {
6548
- m(R(A), function(L) {
6549
- p.removeEventListener(L, w, !1);
6548
+ m(R(A), function(k) {
6549
+ p.removeEventListener(k, w, !1);
6550
6550
  });
6551
6551
  }
6552
6552
  function C(p, A) {
@@ -6566,10 +6566,10 @@ var or = { exports: {} };
6566
6566
  function H(p, A, w) {
6567
6567
  if (p.indexOf && !w)
6568
6568
  return p.indexOf(A);
6569
- for (var L = 0; L < p.length; ) {
6570
- if (w && p[L][w] == A || !w && p[L] === A)
6571
- return L;
6572
- L++;
6569
+ for (var k = 0; k < p.length; ) {
6570
+ if (w && p[k][w] == A || !w && p[k] === A)
6571
+ return k;
6572
+ k++;
6573
6573
  }
6574
6574
  return -1;
6575
6575
  }
@@ -6577,18 +6577,18 @@ var or = { exports: {} };
6577
6577
  return Array.prototype.slice.call(p, 0);
6578
6578
  }
6579
6579
  function S(p, A, w) {
6580
- for (var L = [], N = [], J = 0; J < p.length; ) {
6580
+ for (var k = [], N = [], J = 0; J < p.length; ) {
6581
6581
  var ae = A ? p[J][A] : p[J];
6582
- H(N, ae) < 0 && L.push(p[J]), N[J] = ae, J++;
6582
+ H(N, ae) < 0 && k.push(p[J]), N[J] = ae, J++;
6583
6583
  }
6584
- return w && (A ? L = L.sort(function(De, Ne) {
6584
+ return w && (A ? k = k.sort(function(De, Ne) {
6585
6585
  return De[A] > Ne[A];
6586
- }) : L = L.sort()), L;
6586
+ }) : k = k.sort()), k;
6587
6587
  }
6588
6588
  function O(p, A) {
6589
- for (var w, L, N = A[0].toUpperCase() + A.slice(1), J = 0; J < s.length; ) {
6590
- if (w = s[J], L = w ? w + N : A, L in p)
6591
- return L;
6589
+ for (var w, k, N = A[0].toUpperCase() + A.slice(1), J = 0; J < s.length; ) {
6590
+ if (w = s[J], k = w ? w + N : A, k in p)
6591
+ return k;
6592
6592
  J++;
6593
6593
  }
6594
6594
  return o;
@@ -6604,8 +6604,8 @@ var or = { exports: {} };
6604
6604
  var te = /mobile|tablet|ip(ad|hone|od)|android/i, W = "ontouchstart" in t, ee = O(t, "PointerEvent") !== o, se = W && te.test(navigator.userAgent), ie = "touch", ce = "pen", Ae = "mouse", xe = "kinect", ze = 25, Z = 1, re = 2, oe = 4, V = 8, Be = 1, We = 2, le = 4, He = 8, Fe = 16, me = We | le, we = He | Fe, Ye = me | we, ft = ["x", "y"], Ue = ["clientX", "clientY"];
6605
6605
  function Ce(p, A) {
6606
6606
  var w = this;
6607
- this.manager = p, this.callback = A, this.element = p.element, this.target = p.options.inputTarget, this.domHandler = function(L) {
6608
- k(p.options.enable, [p]) && w.handler(L);
6607
+ this.manager = p, this.callback = A, this.element = p.element, this.target = p.options.inputTarget, this.domHandler = function(k) {
6608
+ L(p.options.enable, [p]) && w.handler(k);
6609
6609
  }, this.init();
6610
6610
  }
6611
6611
  Ce.prototype = {
@@ -6623,33 +6623,33 @@ var or = { exports: {} };
6623
6623
  return w ? A = w : ee ? A = ii : se ? A = fn : W ? A = oi : A = dn, new A(p, Le);
6624
6624
  }
6625
6625
  function Le(p, A, w) {
6626
- var L = w.pointers.length, N = w.changedPointers.length, J = A & Z && L - N === 0, ae = A & (oe | V) && L - N === 0;
6626
+ var k = w.pointers.length, N = w.changedPointers.length, J = A & Z && k - N === 0, ae = A & (oe | V) && k - N === 0;
6627
6627
  w.isFirst = !!J, w.isFinal = !!ae, J && (p.session = {}), w.eventType = A, st(p, w), p.emit("hammer.input", w), p.recognize(w), p.session.prevInput = w;
6628
6628
  }
6629
6629
  function st(p, A) {
6630
- var w = p.session, L = A.pointers, N = L.length;
6630
+ var w = p.session, k = A.pointers, N = k.length;
6631
6631
  w.firstInput || (w.firstInput = Yt(A)), N > 1 && !w.firstMultiple ? w.firstMultiple = Yt(A) : N === 1 && (w.firstMultiple = !1);
6632
- var J = w.firstInput, ae = w.firstMultiple, ke = ae ? ae.center : J.center, De = A.center = cn(L);
6632
+ var J = w.firstInput, ae = w.firstMultiple, ke = ae ? ae.center : J.center, De = A.center = cn(k);
6633
6633
  A.timeStamp = h(), A.deltaTime = A.timeStamp - J.timeStamp, A.angle = Zt(ke, De), A.distance = Dt(ke, De), Tt(w, A), A.offsetDirection = un(A.deltaX, A.deltaY);
6634
6634
  var Ne = hn(A.deltaTime, A.deltaX, A.deltaY);
6635
- A.overallVelocityX = Ne.x, A.overallVelocityY = Ne.y, A.overallVelocity = c(Ne.x) > c(Ne.y) ? Ne.x : Ne.y, A.scale = ae ? Ir(ae.pointers, L) : 1, A.rotation = ae ? Er(ae.pointers, L) : 0, A.maxPointers = w.prevInput ? A.pointers.length > w.prevInput.maxPointers ? A.pointers.length : w.prevInput.maxPointers : A.pointers.length, ni(w, A);
6635
+ A.overallVelocityX = Ne.x, A.overallVelocityY = Ne.y, A.overallVelocity = c(Ne.x) > c(Ne.y) ? Ne.x : Ne.y, A.scale = ae ? Ir(ae.pointers, k) : 1, A.rotation = ae ? Er(ae.pointers, k) : 0, A.maxPointers = w.prevInput ? A.pointers.length > w.prevInput.maxPointers ? A.pointers.length : w.prevInput.maxPointers : A.pointers.length, ni(w, A);
6636
6636
  var et = p.element;
6637
6637
  C(A.srcEvent.target, et) && (et = A.srcEvent.target), A.target = et;
6638
6638
  }
6639
6639
  function Tt(p, A) {
6640
- var w = A.center, L = p.offsetDelta || {}, N = p.prevDelta || {}, J = p.prevInput || {};
6640
+ var w = A.center, k = p.offsetDelta || {}, N = p.prevDelta || {}, J = p.prevInput || {};
6641
6641
  (A.eventType === Z || J.eventType === oe) && (N = p.prevDelta = {
6642
6642
  x: J.deltaX || 0,
6643
6643
  y: J.deltaY || 0
6644
- }, L = p.offsetDelta = {
6644
+ }, k = p.offsetDelta = {
6645
6645
  x: w.x,
6646
6646
  y: w.y
6647
- }), A.deltaX = N.x + (w.x - L.x), A.deltaY = N.y + (w.y - L.y);
6647
+ }), A.deltaX = N.x + (w.x - k.x), A.deltaY = N.y + (w.y - k.y);
6648
6648
  }
6649
6649
  function ni(p, A) {
6650
- var w = p.lastInterval || A, L = A.timeStamp - w.timeStamp, N, J, ae, ke;
6651
- if (A.eventType != V && (L > ze || w.velocity === o)) {
6652
- var De = A.deltaX - w.deltaX, Ne = A.deltaY - w.deltaY, et = hn(L, De, Ne);
6650
+ var w = p.lastInterval || A, k = A.timeStamp - w.timeStamp, N, J, ae, ke;
6651
+ if (A.eventType != V && (k > ze || w.velocity === o)) {
6652
+ var De = A.deltaX - w.deltaX, Ne = A.deltaY - w.deltaY, et = hn(k, De, Ne);
6653
6653
  J = et.x, ae = et.y, N = c(et.x) > c(et.y) ? et.x : et.y, ke = un(De, Ne), p.lastInterval = A;
6654
6654
  } else
6655
6655
  N = w.velocity, J = w.velocityX, ae = w.velocityY, ke = w.direction;
@@ -6676,11 +6676,11 @@ var or = { exports: {} };
6676
6676
  x: l(p[0].clientX),
6677
6677
  y: l(p[0].clientY)
6678
6678
  };
6679
- for (var w = 0, L = 0, N = 0; N < A; )
6680
- w += p[N].clientX, L += p[N].clientY, N++;
6679
+ for (var w = 0, k = 0, N = 0; N < A; )
6680
+ w += p[N].clientX, k += p[N].clientY, N++;
6681
6681
  return {
6682
6682
  x: l(w / A),
6683
- y: l(L / A)
6683
+ y: l(k / A)
6684
6684
  };
6685
6685
  }
6686
6686
  function hn(p, A, w) {
@@ -6694,13 +6694,13 @@ var or = { exports: {} };
6694
6694
  }
6695
6695
  function Dt(p, A, w) {
6696
6696
  w || (w = ft);
6697
- var L = A[w[0]] - p[w[0]], N = A[w[1]] - p[w[1]];
6698
- return Math.sqrt(L * L + N * N);
6697
+ var k = A[w[0]] - p[w[0]], N = A[w[1]] - p[w[1]];
6698
+ return Math.sqrt(k * k + N * N);
6699
6699
  }
6700
6700
  function Zt(p, A, w) {
6701
6701
  w || (w = ft);
6702
- var L = A[w[0]] - p[w[0]], N = A[w[1]] - p[w[1]];
6703
- return Math.atan2(N, L) * 180 / Math.PI;
6702
+ var k = A[w[0]] - p[w[0]], N = A[w[1]] - p[w[1]];
6703
+ return Math.atan2(N, k) * 180 / Math.PI;
6704
6704
  }
6705
6705
  function Er(p, A) {
6706
6706
  return Zt(A[1], A[0], Ue) + Zt(p[1], p[0], Ue);
@@ -6745,13 +6745,13 @@ var or = { exports: {} };
6745
6745
  }
6746
6746
  I(ii, Ce, {
6747
6747
  handler: function(A) {
6748
- var w = this.store, L = !1, N = A.type.toLowerCase().replace("ms", ""), J = kr[N], ae = Tr[A.pointerType] || A.pointerType, ke = ae == ie, De = H(w, A.pointerId, "pointerId");
6749
- J & Z && (A.button === 0 || ke) ? De < 0 && (w.push(A), De = w.length - 1) : J & (oe | V) && (L = !0), !(De < 0) && (w[De] = A, this.callback(this.manager, J, {
6748
+ var w = this.store, k = !1, N = A.type.toLowerCase().replace("ms", ""), J = kr[N], ae = Tr[A.pointerType] || A.pointerType, ke = ae == ie, De = H(w, A.pointerId, "pointerId");
6749
+ J & Z && (A.button === 0 || ke) ? De < 0 && (w.push(A), De = w.length - 1) : J & (oe | V) && (k = !0), !(De < 0) && (w[De] = A, this.callback(this.manager, J, {
6750
6750
  pointers: w,
6751
6751
  changedPointers: [A],
6752
6752
  pointerType: ae,
6753
6753
  srcEvent: A
6754
- }), L && w.splice(De, 1));
6754
+ }), k && w.splice(De, 1));
6755
6755
  }
6756
6756
  });
6757
6757
  var Dr = {
@@ -6767,10 +6767,10 @@ var or = { exports: {} };
6767
6767
  handler: function(A) {
6768
6768
  var w = Dr[A.type];
6769
6769
  if (w === Z && (this.started = !0), !!this.started) {
6770
- var L = Sr.call(this, A, w);
6771
- w & (oe | V) && L[0].length - L[1].length === 0 && (this.started = !1), this.callback(this.manager, w, {
6772
- pointers: L[0],
6773
- changedPointers: L[1],
6770
+ var k = Sr.call(this, A, w);
6771
+ w & (oe | V) && k[0].length - k[1].length === 0 && (this.started = !1), this.callback(this.manager, w, {
6772
+ pointers: k[0],
6773
+ changedPointers: k[1],
6774
6774
  pointerType: ie,
6775
6775
  srcEvent: A
6776
6776
  });
@@ -6778,8 +6778,8 @@ var or = { exports: {} };
6778
6778
  }
6779
6779
  });
6780
6780
  function Sr(p, A) {
6781
- var w = _(p.touches), L = _(p.changedTouches);
6782
- return A & (oe | V) && (w = S(w.concat(L), "identifier", !0)), [w, L];
6781
+ var w = _(p.touches), k = _(p.changedTouches);
6782
+ return A & (oe | V) && (w = S(w.concat(k), "identifier", !0)), [w, k];
6783
6783
  }
6784
6784
  var jr = {
6785
6785
  touchstart: Z,
@@ -6792,27 +6792,27 @@ var or = { exports: {} };
6792
6792
  }
6793
6793
  I(fn, Ce, {
6794
6794
  handler: function(A) {
6795
- var w = jr[A.type], L = Nr.call(this, A, w);
6796
- !L || this.callback(this.manager, w, {
6797
- pointers: L[0],
6798
- changedPointers: L[1],
6795
+ var w = jr[A.type], k = Nr.call(this, A, w);
6796
+ !k || this.callback(this.manager, w, {
6797
+ pointers: k[0],
6798
+ changedPointers: k[1],
6799
6799
  pointerType: ie,
6800
6800
  srcEvent: A
6801
6801
  });
6802
6802
  }
6803
6803
  });
6804
6804
  function Nr(p, A) {
6805
- var w = _(p.touches), L = this.targetIds;
6805
+ var w = _(p.touches), k = this.targetIds;
6806
6806
  if (A & (Z | re) && w.length === 1)
6807
- return L[w[0].identifier] = !0, [w, w];
6807
+ return k[w[0].identifier] = !0, [w, w];
6808
6808
  var N, J, ae = _(p.changedTouches), ke = [], De = this.target;
6809
6809
  if (J = w.filter(function(Ne) {
6810
6810
  return C(Ne.target, De);
6811
6811
  }), A === Z)
6812
6812
  for (N = 0; N < J.length; )
6813
- L[J[N].identifier] = !0, N++;
6813
+ k[J[N].identifier] = !0, N++;
6814
6814
  for (N = 0; N < ae.length; )
6815
- L[ae[N].identifier] && ke.push(ae[N]), A & (oe | V) && delete L[ae[N].identifier], N++;
6815
+ k[ae[N].identifier] && ke.push(ae[N]), A & (oe | V) && delete k[ae[N].identifier], N++;
6816
6816
  if (!!ke.length)
6817
6817
  return [
6818
6818
  S(J.concat(ke), "identifier", !0),
@@ -6826,14 +6826,14 @@ var or = { exports: {} };
6826
6826
  this.touch = new fn(this.manager, p), this.mouse = new dn(this.manager, p), this.primaryTouch = null, this.lastTouches = [];
6827
6827
  }
6828
6828
  I(oi, Ce, {
6829
- handler: function(A, w, L) {
6830
- var N = L.pointerType == ie, J = L.pointerType == Ae;
6831
- if (!(J && L.sourceCapabilities && L.sourceCapabilities.firesTouchEvents)) {
6829
+ handler: function(A, w, k) {
6830
+ var N = k.pointerType == ie, J = k.pointerType == Ae;
6831
+ if (!(J && k.sourceCapabilities && k.sourceCapabilities.firesTouchEvents)) {
6832
6832
  if (N)
6833
- Br.call(this, w, L);
6834
- else if (J && Hr.call(this, L))
6833
+ Br.call(this, w, k);
6834
+ else if (J && Hr.call(this, k))
6835
6835
  return;
6836
- this.callback(A, w, L);
6836
+ this.callback(A, w, k);
6837
6837
  }
6838
6838
  },
6839
6839
  destroy: function() {
@@ -6848,16 +6848,16 @@ var or = { exports: {} };
6848
6848
  if (A.identifier === this.primaryTouch) {
6849
6849
  var w = { x: A.clientX, y: A.clientY };
6850
6850
  this.lastTouches.push(w);
6851
- var L = this.lastTouches, N = function() {
6852
- var J = L.indexOf(w);
6853
- J > -1 && L.splice(J, 1);
6851
+ var k = this.lastTouches, N = function() {
6852
+ var J = k.indexOf(w);
6853
+ J > -1 && k.splice(J, 1);
6854
6854
  };
6855
6855
  setTimeout(N, Rr);
6856
6856
  }
6857
6857
  }
6858
6858
  function Hr(p) {
6859
- for (var A = p.srcEvent.clientX, w = p.srcEvent.clientY, L = 0; L < this.lastTouches.length; L++) {
6860
- var N = this.lastTouches[L], J = Math.abs(A - N.x), ae = Math.abs(w - N.y);
6859
+ for (var A = p.srcEvent.clientX, w = p.srcEvent.clientY, k = 0; k < this.lastTouches.length; k++) {
6860
+ var N = this.lastTouches[k], J = Math.abs(A - N.x), ae = Math.abs(w - N.y);
6861
6861
  if (J <= Ki && ae <= Ki)
6862
6862
  return !0;
6863
6863
  }
@@ -6877,7 +6877,7 @@ var or = { exports: {} };
6877
6877
  compute: function() {
6878
6878
  var p = [];
6879
6879
  return m(this.manager.recognizers, function(A) {
6880
- k(A.options.enable, [A]) && (p = p.concat(A.getTouchAction()));
6880
+ L(A.options.enable, [A]) && (p = p.concat(A.getTouchAction()));
6881
6881
  }), Fr(p.join(" "));
6882
6882
  },
6883
6883
  preventDefaults: function(p) {
@@ -6886,7 +6886,7 @@ var or = { exports: {} };
6886
6886
  A.preventDefault();
6887
6887
  return;
6888
6888
  }
6889
- var L = this.actions, N = z(L, Pt) && !mn[Pt], J = z(L, Ut) && !mn[Ut], ae = z(L, Jt) && !mn[Jt];
6889
+ var k = this.actions, N = z(k, Pt) && !mn[Pt], J = z(k, Ut) && !mn[Ut], ae = z(k, Jt) && !mn[Jt];
6890
6890
  if (N) {
6891
6891
  var ke = p.pointers.length === 1, De = p.distance < 2, Ne = p.deltaTime < 250;
6892
6892
  if (ke && De && Ne)
@@ -6952,10 +6952,10 @@ var or = { exports: {} };
6952
6952
  },
6953
6953
  emit: function(p) {
6954
6954
  var A = this, w = this.state;
6955
- function L(N) {
6955
+ function k(N) {
6956
6956
  A.manager.emit(N, p);
6957
6957
  }
6958
- w < mt && L(A.options.event + io(w)), L(A.options.event), p.additionalEvent && L(p.additionalEvent), w >= mt && L(A.options.event + io(w));
6958
+ w < mt && k(A.options.event + io(w)), k(A.options.event), p.additionalEvent && k(p.additionalEvent), w >= mt && k(A.options.event + io(w));
6959
6959
  },
6960
6960
  tryEmit: function(p) {
6961
6961
  if (this.canEmit())
@@ -6972,7 +6972,7 @@ var or = { exports: {} };
6972
6972
  },
6973
6973
  recognize: function(p) {
6974
6974
  var A = v({}, p);
6975
- if (!k(this.options.enable, [this, A])) {
6975
+ if (!L(this.options.enable, [this, A])) {
6976
6976
  this.reset(), this.state = $e;
6977
6977
  return;
6978
6978
  }
@@ -7007,8 +7007,8 @@ var or = { exports: {} };
7007
7007
  return A === 0 || p.pointers.length === A;
7008
7008
  },
7009
7009
  process: function(p) {
7010
- var A = this.state, w = p.eventType, L = A & (Je | zt), N = this.attrTest(p);
7011
- return L && (w & V || !N) ? A | Vt : L || N ? w & oe ? A | mt : A & Je ? A | zt : Je : $e;
7010
+ var A = this.state, w = p.eventType, k = A & (Je | zt), N = this.attrTest(p);
7011
+ return k && (w & V || !N) ? A | Vt : k || N ? w & oe ? A | mt : A & Je ? A | zt : Je : $e;
7012
7012
  }
7013
7013
  });
7014
7014
  function vn() {
@@ -7026,8 +7026,8 @@ var or = { exports: {} };
7026
7026
  return p & me && A.push(Ut), p & we && A.push(Jt), A;
7027
7027
  },
7028
7028
  directionTest: function(p) {
7029
- var A = this.options, w = !0, L = p.distance, N = p.direction, J = p.deltaX, ae = p.deltaY;
7030
- return N & A.direction || (A.direction & me ? (N = J === 0 ? Be : J < 0 ? We : le, w = J != this.pX, L = Math.abs(p.deltaX)) : (N = ae === 0 ? Be : ae < 0 ? He : Fe, w = ae != this.pY, L = Math.abs(p.deltaY))), p.direction = N, w && L > A.threshold && N & A.direction;
7029
+ var A = this.options, w = !0, k = p.distance, N = p.direction, J = p.deltaX, ae = p.deltaY;
7030
+ return N & A.direction || (A.direction & me ? (N = J === 0 ? Be : J < 0 ? We : le, w = J != this.pX, k = Math.abs(p.deltaX)) : (N = ae === 0 ? Be : ae < 0 ? He : Fe, w = ae != this.pY, k = Math.abs(p.deltaY))), p.direction = N, w && k > A.threshold && N & A.direction;
7031
7031
  },
7032
7032
  attrTest: function(p) {
7033
7033
  return Ve.prototype.attrTest.call(this, p) && (this.state & Je || !(this.state & Je) && this.directionTest(p));
@@ -7075,8 +7075,8 @@ var or = { exports: {} };
7075
7075
  return [no];
7076
7076
  },
7077
7077
  process: function(p) {
7078
- var A = this.options, w = p.pointers.length === A.pointers, L = p.distance < A.threshold, N = p.deltaTime > A.time;
7079
- if (this._input = p, !L || !w || p.eventType & (oe | V) && !N)
7078
+ var A = this.options, w = p.pointers.length === A.pointers, k = p.distance < A.threshold, N = p.deltaTime > A.time;
7079
+ if (this._input = p, !k || !w || p.eventType & (oe | V) && !N)
7080
7080
  this.reset();
7081
7081
  else if (p.eventType & Z)
7082
7082
  this.reset(), this._timer = f(function() {
@@ -7149,10 +7149,10 @@ var or = { exports: {} };
7149
7149
  return [si];
7150
7150
  },
7151
7151
  process: function(p) {
7152
- var A = this.options, w = p.pointers.length === A.pointers, L = p.distance < A.threshold, N = p.deltaTime < A.time;
7152
+ var A = this.options, w = p.pointers.length === A.pointers, k = p.distance < A.threshold, N = p.deltaTime < A.time;
7153
7153
  if (this.reset(), p.eventType & Z && this.count === 0)
7154
7154
  return this.failTimeout();
7155
- if (L && N && w) {
7155
+ if (k && N && w) {
7156
7156
  if (p.eventType != oe)
7157
7157
  return this.failTimeout();
7158
7158
  var J = this.pTime ? p.timeStamp - this.pTime < A.interval : !0, ae = !this.pCenter || Dt(this.pCenter, p.center) < A.posThreshold;
@@ -7207,8 +7207,8 @@ var or = { exports: {} };
7207
7207
  var Xr = 1, so = 2;
7208
7208
  function ui(p, A) {
7209
7209
  this.options = v({}, lt.defaults, A || {}), this.options.inputTarget = this.options.inputTarget || p, this.handlers = {}, this.session = {}, this.recognizers = [], this.oldCssProps = {}, this.element = p, this.input = Pe(this), this.touchAction = new ri(this, this.options.touchAction), ro(this, !0), m(this.options.recognizers, function(w) {
7210
- var L = this.add(new w[0](w[1]));
7211
- w[2] && L.recognizeWith(w[2]), w[3] && L.requireFailure(w[3]);
7210
+ var k = this.add(new w[0](w[1]));
7211
+ w[2] && k.recognizeWith(w[2]), w[3] && k.requireFailure(w[3]);
7212
7212
  }, this);
7213
7213
  }
7214
7214
  ui.prototype = {
@@ -7222,10 +7222,10 @@ var or = { exports: {} };
7222
7222
  var A = this.session;
7223
7223
  if (!A.stopped) {
7224
7224
  this.touchAction.preventDefaults(p);
7225
- var w, L = this.recognizers, N = A.curRecognizer;
7225
+ var w, k = this.recognizers, N = A.curRecognizer;
7226
7226
  (!N || N && N.state & rt) && (N = A.curRecognizer = null);
7227
- for (var J = 0; J < L.length; )
7228
- w = L[J], A.stopped !== so && (!N || w == N || w.canRecognizeWith(N)) ? w.recognize(p) : w.reset(), !N && w.state & (Je | zt | mt) && (N = A.curRecognizer = w), J++;
7227
+ for (var J = 0; J < k.length; )
7228
+ w = k[J], A.stopped !== so && (!N || w == N || w.canRecognizeWith(N)) ? w.recognize(p) : w.reset(), !N && w.state & (Je | zt | mt) && (N = A.curRecognizer = w), J++;
7229
7229
  }
7230
7230
  },
7231
7231
  get: function(p) {
@@ -7254,16 +7254,16 @@ var or = { exports: {} };
7254
7254
  on: function(p, A) {
7255
7255
  if (p !== o && A !== o) {
7256
7256
  var w = this.handlers;
7257
- return m(R(p), function(L) {
7258
- w[L] = w[L] || [], w[L].push(A);
7257
+ return m(R(p), function(k) {
7258
+ w[k] = w[k] || [], w[k].push(A);
7259
7259
  }), this;
7260
7260
  }
7261
7261
  },
7262
7262
  off: function(p, A) {
7263
7263
  if (p !== o) {
7264
7264
  var w = this.handlers;
7265
- return m(R(p), function(L) {
7266
- A ? w[L] && w[L].splice(H(w[L], A), 1) : delete w[L];
7265
+ return m(R(p), function(k) {
7266
+ A ? w[k] && w[k].splice(H(w[k], A), 1) : delete w[k];
7267
7267
  }), this;
7268
7268
  }
7269
7269
  },
@@ -7274,8 +7274,8 @@ var or = { exports: {} };
7274
7274
  A.type = p, A.preventDefault = function() {
7275
7275
  A.srcEvent.preventDefault();
7276
7276
  };
7277
- for (var L = 0; L < w.length; )
7278
- w[L](A), L++;
7277
+ for (var k = 0; k < w.length; )
7278
+ w[k](A), k++;
7279
7279
  }
7280
7280
  },
7281
7281
  destroy: function() {
@@ -7285,9 +7285,9 @@ var or = { exports: {} };
7285
7285
  function ro(p, A) {
7286
7286
  var w = p.element;
7287
7287
  if (!!w.style) {
7288
- var L;
7288
+ var k;
7289
7289
  m(p.options.cssProps, function(N, J) {
7290
- L = O(w.style, J), A ? (p.oldCssProps[L] = w.style[L], w.style[L] = N) : w.style[L] = p.oldCssProps[L] || "";
7290
+ k = O(w.style, J), A ? (p.oldCssProps[k] = w.style[k], w.style[k] = N) : w.style[k] = p.oldCssProps[k] || "";
7291
7291
  }), A || (p.oldCssProps = {});
7292
7292
  }
7293
7293
  }
@@ -7573,8 +7573,8 @@ function ru(i) {
7573
7573
  const b = v.clientWidth, y = v.clientHeight;
7574
7574
  if (a.points.length < 2)
7575
7575
  return;
7576
- const [I, P] = a.points, k = I.position.clone().project(g.camera), D = P.position.clone().project(g.camera), E = k.clone().lerp(D, 0.5), T = new Oe(k.x * b, k.y * y), C = new Oe(D.x * b, D.y * y);
7577
- if ((() => !(Math.abs(k.z) > 1 || Math.abs(D.z) > 1 || !it(k) && !it(D) || !it(E) || T.distanceTo(C) < 20))() === !1) {
7576
+ const [I, P] = a.points, L = I.position.clone().project(g.camera), D = P.position.clone().project(g.camera), E = L.clone().lerp(D, 0.5), T = new Oe(L.x * b, L.y * y), C = new Oe(D.x * b, D.y * y);
7577
+ if ((() => !(Math.abs(L.z) > 1 || Math.abs(D.z) > 1 || !it(L) && !it(D) || !it(E) || T.distanceTo(C) < 20))() === !1) {
7578
7578
  h.style.opacity = "0", h.style.pointerEvents = "none";
7579
7579
  return;
7580
7580
  }
@@ -9239,7 +9239,7 @@ function Ju(i, t, e) {
9239
9239
  Lt(() => {
9240
9240
  m.emit("initTag", { id: n });
9241
9241
  });
9242
- const k = fr.subscribe((E) => {
9242
+ const L = fr.subscribe((E) => {
9243
9243
  if (E === null)
9244
9244
  return;
9245
9245
  const [T, C] = E.split("-PanoSpatialTagPlugin-");
@@ -9253,7 +9253,7 @@ function Ju(i, t, e) {
9253
9253
  Ga(() => {
9254
9254
  e(7, g = b.offsetWidth), e(8, v = b.offsetHeight), !I && e(10, y = !h);
9255
9255
  }), ln(() => {
9256
- m.emit("destroyTag", { id: n }), k(), f();
9256
+ m.emit("destroyTag", { id: n }), L(), f();
9257
9257
  });
9258
9258
  function D(E) {
9259
9259
  Bt[E ? "unshift" : "push"](() => {
@@ -9504,7 +9504,7 @@ const yi = 1e-3, ps = 0.01, ed = "https://vrlab-image4.ljcdn.com/release/web/Pan
9504
9504
  le.destroying && (le.app.$destroy(), le = null);
9505
9505
  }), v.tags = v.tags.filter((le) => !le.destroying), D();
9506
9506
  }, 1900);
9507
- }, k = (Z) => {
9507
+ }, L = (Z) => {
9508
9508
  Z !== Se.Mode.Panorama && !v.forbidden && (b.$set({ origins: [] }), v.tags.forEach((re) => {
9509
9509
  re.app.$destroy(), re = null;
9510
9510
  }), v.origins = [], v.tags = [], v.forbidden = !0);
@@ -9665,11 +9665,11 @@ const yi = 1e-3, ps = 0.01, ed = "https://vrlab-image4.ljcdn.com/release/web/Pan
9665
9665
  }, K = () => {
9666
9666
  i.once("renderFrame", D);
9667
9667
  }, U = () => {
9668
- e || (e = i.getElement().parentElement), e && e.appendChild(u), v.forbidden = !1, n = i.model.bounding.getCenter(new j.Vector3()).y, E(), i.on("panoWillArrive", P), i.on("panoArrived", I), i.on("modeChange", k), i.on("cameraUpdate", y);
9668
+ e || (e = i.getElement().parentElement), e && e.appendChild(u), v.forbidden = !1, n = i.model.bounding.getCenter(new j.Vector3()).y, E(), i.on("panoWillArrive", P), i.on("panoArrived", I), i.on("modeChange", L), i.on("cameraUpdate", y);
9669
9669
  }, te = () => {
9670
9670
  g = null, f.disposeAll(), b.$destroy(), v.tags.forEach((Z) => {
9671
9671
  Z.app.$destroy(), Z = null;
9672
- }), v.origins = [], v.tags = [], i.off("modelLoaded", U), i.off("renderFrame", D), i.off("panoWillArrive", P), i.off("panoArrived", I), i.off("modeChange", k), i.off("cameraUpdate", y), i.off("dispose", te), window.removeEventListener("resize", K, !1);
9672
+ }), v.origins = [], v.tags = [], i.off("modelLoaded", U), i.off("renderFrame", D), i.off("panoWillArrive", P), i.off("panoArrived", I), i.off("modeChange", L), i.off("cameraUpdate", y), i.off("dispose", te), window.removeEventListener("resize", K, !1);
9673
9673
  };
9674
9674
  return window.addEventListener("resize", K, !1), (ze = i == null ? void 0 : i.model) != null && ze.loaded ? U() : i.once("modelLoaded", U), i.on("dispose", te), {
9675
9675
  load: C,
@@ -9862,7 +9862,7 @@ function ld(i, t, e) {
9862
9862
  const B = new o(O.modelPosition[0], O.modelPosition[1], O.modelPosition[2]), K = S.project2d(B), U = K == null ? void 0 : K.x, te = K == null ? void 0 : K.y;
9863
9863
  return [U, te];
9864
9864
  }, I = (S) => `translate(${S[0]}px, ${S[1]}px)`, P = (S, O) => g.length === 0 ? !1 : !!g.find((K) => S[0] >= K[0] - O && S[0] <= K[0] + O || S[1] >= K[1] - bs && S[1] <= K[1] + bs);
9865
- function k(S, O) {
9865
+ function L(S, O) {
9866
9866
  switch (O) {
9867
9867
  case Ot.SMALL:
9868
9868
  return Math.ceil(-27.78 * S + 85);
@@ -9876,7 +9876,7 @@ function ld(i, t, e) {
9876
9876
  }
9877
9877
  const D = (S, O) => {
9878
9878
  const B = O.map((U) => {
9879
- const te = y(S, U), W = U.name.length * ad, ee = k(U.modelPosition[1], c), ie = (r ? b(S, U) : !0) && !P([te[0], te[1] + ee], W);
9879
+ const te = y(S, U), W = U.name.length * ad, ee = L(U.modelPosition[1], c), ie = (r ? b(S, U) : !0) && !P([te[0], te[1] + ee], W);
9880
9880
  if (!ie)
9881
9881
  return Object.assign(Object.assign({}, U), { visible: ie });
9882
9882
  g.push(te);
@@ -10065,19 +10065,19 @@ const Wf = (i, { videoElement: t }) => {
10065
10065
  }, r = () => e.videoTexture ? e.videoTexture.image.muted : !0, a = () => {
10066
10066
  if (e.enabled || !e.videoTexture)
10067
10067
  return;
10068
- e.enabled = !0, e.videoMeshes = c(), e.videoMeshes.forEach((k) => i.scene.add(k)), o.forEach((k) => {
10069
- k.enable();
10068
+ e.enabled = !0, e.videoMeshes = c(), e.videoMeshes.forEach((L) => i.scene.add(L)), o.forEach((L) => {
10069
+ L.enable();
10070
10070
  });
10071
10071
  const P = () => {
10072
10072
  if (!e.videoTexture)
10073
10073
  return;
10074
- const k = () => {
10074
+ const L = () => {
10075
10075
  var D;
10076
- !e.videoTexture || ((D = e.videoTexture) == null || D.image.removeEventListener("timeupdate", k), e.videoTextureEnabled = !0, e.videoMeshes.forEach((E) => {
10076
+ !e.videoTexture || ((D = e.videoTexture) == null || D.image.removeEventListener("timeupdate", L), e.videoTextureEnabled = !0, e.videoMeshes.forEach((E) => {
10077
10077
  E.material.map !== e.videoTexture && (E.material.map = e.videoTexture);
10078
10078
  }), i.needsRender = !0);
10079
10079
  };
10080
- e.videoTexture.image.addEventListener("timeupdate", k), e.videoTexture && e.videoMeshes.length && (e.videoTexture.image.play(), e.videoTexture.image.onplay = () => {
10080
+ e.videoTexture.image.addEventListener("timeupdate", L), e.videoTexture && e.videoMeshes.length && (e.videoTexture.image.play(), e.videoTexture.image.onplay = () => {
10081
10081
  n.hide();
10082
10082
  }, e.videoTexture.image.onpause = () => {
10083
10083
  n.show();
@@ -10096,7 +10096,7 @@ const Wf = (i, { videoElement: t }) => {
10096
10096
  }), o.forEach((P) => {
10097
10097
  P.disable();
10098
10098
  }), e.videoMeshes = [], i.needsRender = !0);
10099
- }, c = () => e.rectPoints.map((P, k) => {
10099
+ }, c = () => e.rectPoints.map((P, L) => {
10100
10100
  const D = new j.BufferGeometry(), E = 128, T = [];
10101
10101
  T.push(...P[0].toArray());
10102
10102
  for (let O = 1; O < E; O++)
@@ -10129,7 +10129,7 @@ const Wf = (i, { videoElement: t }) => {
10129
10129
  map: e.videoTextureEnabled ? e.videoTexture : e.imageTexture,
10130
10130
  side: j.DoubleSide
10131
10131
  }), H = new j.Mesh(D, R);
10132
- H.renderOrder = 1, H.name = `ModelTVVideoPlugin-${k}-${performance.now()}`;
10132
+ H.renderOrder = 1, H.name = `ModelTVVideoPlugin-${L}-${performance.now()}`;
10133
10133
  const _ = [P[1], P[2], P[3], P[0]], S = n.create3DDomContainer(_);
10134
10134
  if (S != null && S.container) {
10135
10135
  const O = document.createElement("div");
@@ -10141,48 +10141,49 @@ const Wf = (i, { videoElement: t }) => {
10141
10141
  }
10142
10142
  return H;
10143
10143
  }), h = (P) => {
10144
- const k = new j.TextureLoader().load(P);
10145
- return k.minFilter = j.LinearFilter, k.magFilter = j.LinearFilter, k.format = j.RGBFormat, k;
10146
- }, f = (P, k) => new Promise((D, E) => {
10144
+ const L = new j.TextureLoader().load(P);
10145
+ return L.minFilter = j.LinearFilter, L.magFilter = j.LinearFilter, L.format = j.RGBFormat, L;
10146
+ }, f = (P, L) => new Promise((D, E) => {
10147
10147
  const T = new XMLHttpRequest();
10148
10148
  T.onreadystatechange = () => {
10149
10149
  if (T.readyState == 4)
10150
10150
  if (T.status == 200) {
10151
10151
  const C = window.URL || window.webkitURL;
10152
- k = k || document.createElement("video"), k.crossOrigin = "anonymous", k.muted = !0, k.loop = !0, k.playsInline = !0, k.src = C.createObjectURL(T.response);
10153
- const z = new j.VideoTexture(k);
10152
+ L = L || document.createElement("video"), L.crossOrigin = "anonymous", L.muted = !0, L.loop = !0, L.playsInline = !0, L.src = C.createObjectURL(T.response);
10153
+ const z = new j.VideoTexture(L);
10154
10154
  z.minFilter = j.LinearFilter, z.magFilter = j.LinearFilter, z.format = j.RGBFormat, D(Object.assign(z, { videoSource: P }));
10155
10155
  } else
10156
10156
  E(new Error("Video download Error: " + T.status));
10157
10157
  }, T.onerror = (C) => E(C), T.open("GET", P), T.responseType = "blob", T.send();
10158
- }), u = async (P, k) => {
10158
+ }), u = async (P, L) => {
10159
10159
  o.forEach((C) => C.dispose()), o.clear();
10160
10160
  const { video_src: D, video_poster_src: E, points: T } = P;
10161
- e.videoSource = D, e.rectPoints = ud(T).map((C) => C.map(({ x: z, y: R, z: H }) => new j.Vector3(z, R, H))), e.imageTexture = h(E), k && (e.videoElement = k), e.videoTexture = await f(e.videoSource, e.videoElement), e.enabled = !!P.enable, e.enabled && a();
10161
+ e.videoSource = D, e.rectPoints = ud(T).map((C) => C.map(({ x: z, y: R, z: H }) => new j.Vector3(z, R, H))), e.imageTexture = h(E), L && (e.videoElement = L), e.videoTexture = await f(e.videoSource, e.videoElement), e.enabled = !!P.enable, e.enabled && a();
10162
10162
  }, m = (P) => {
10163
10163
  if (!e.enabled)
10164
10164
  return;
10165
- const k = e.videoMeshes;
10166
- if (!(!k || P.intersectObjects(k).length === 0))
10165
+ const L = e.videoMeshes;
10166
+ if (!(!L || P.intersectObjects(L).length === 0))
10167
10167
  return e.videoTexture && (e.videoTexture.image.paused || e.videoTexture.image.pause()), !1;
10168
10168
  }, g = (P) => {
10169
- P === "Floorplan" ? n.hide() : e.videoTexture.image.paused ? n.show() : n.hide();
10169
+ var L;
10170
+ P === "Floorplan" ? n.hide() : (L = e.videoTexture) != null && L.image.paused ? n.show() : n.hide();
10170
10171
  }, v = () => {
10171
10172
  if (!e.enabled)
10172
10173
  return;
10173
10174
  const P = i.camera.position;
10174
- if (o.forEach((k, D) => {
10175
- const E = k.css3DObject.position.clone(), T = E.clone().sub(P).normalize(), C = new j.Raycaster(P, T), z = i.model.intersectRaycaster(C)[0], R = E.distanceTo(P), H = 0.01;
10176
- z && z.distance + H < R ? k.hide() : k.show();
10175
+ if (o.forEach((L, D) => {
10176
+ const E = L.css3DObject.position.clone(), T = E.clone().sub(P).normalize(), C = new j.Raycaster(P, T), z = i.model.intersectRaycaster(C)[0], R = E.distanceTo(P), H = 0.01;
10177
+ z && z.distance + H < R ? L.hide() : L.show();
10177
10178
  }), !r()) {
10178
- const k = e.rectPoints.find((D) => {
10179
+ const L = e.rectPoints.find((D) => {
10179
10180
  const E = D[0].clone().add(D[1]).add(D[2]).add(D[3]).divideScalar(4);
10180
10181
  return D.map((T) => T.clone().add(E).divideScalar(2)).filter((T) => {
10181
10182
  const C = T.distanceTo(P), z = new j.Raycaster(P, T.clone().sub(P).normalize()), R = i.model.intersectRaycaster(z)[0], H = 0.01;
10182
10183
  return !(R && R.distance + H < C);
10183
10184
  }).length >= 2;
10184
10185
  });
10185
- (!k || k.length === 0) && s(!0);
10186
+ (!L || L.length === 0) && s(!0);
10186
10187
  }
10187
10188
  }, b = () => {
10188
10189
  v();
@@ -10469,14 +10470,14 @@ function Id(i, t, e) {
10469
10470
  }, P = (B) => {
10470
10471
  const { camera: K, model: U } = s, { x: te, y: W, z: ee } = B.clone().project(K), se = (te + 1) / 2, ie = (2 - (W + 1)) / 2, xe = Math.abs(ee) < 1 && [se, ie].every((ze) => ze < 1 && ze >= 0);
10471
10472
  return Boolean(xe);
10472
- }, k = (B, K) => {
10473
+ }, L = (B, K) => {
10473
10474
  const U = new o(K.modelPosition[0], K.modelPosition[1], K.modelPosition[2]), te = B.project2d(U), W = te == null ? void 0 : te.x, ee = te == null ? void 0 : te.y;
10474
10475
  return [W, ee];
10475
10476
  }, D = (B, K) => {
10476
10477
  const U = K.map((W) => {
10477
10478
  if (B.state.panoIndex !== W.panoIndex)
10478
10479
  return Object.assign(Object.assign({}, W), { visible: !1 });
10479
- const ee = k(B, W);
10480
+ const ee = L(B, W);
10480
10481
  W.name.length * Ed;
10481
10482
  const se = Ad(W.modelPosition[1], c), ie = B.currentMode === Se.Mode.Panorama ? P(new o(W.position[0], W.position[1], W.position[2])) : !0, ce = r ? I(B, W) : !1, Ae = ie && !ce;
10482
10483
  if (!Ae)
@@ -10877,7 +10878,7 @@ class Bd extends kd {
10877
10878
  const { index: u, left: m, top: g } = l[f - 1], { index: v, left: b, top: y } = l[f], I = this.container.children[u], P = this.container.children[v];
10878
10879
  if (!I || !P)
10879
10880
  return;
10880
- const k = {
10881
+ const L = {
10881
10882
  left: s * m / 100,
10882
10883
  top: r * g / 100,
10883
10884
  width: I.children[0].clientWidth,
@@ -10888,7 +10889,7 @@ class Bd extends kd {
10888
10889
  width: P.children[0].clientWidth,
10889
10890
  height: P.children[0].clientHeight
10890
10891
  };
10891
- Sd(k, D) && (h++, c[u].transform = `translate(-50%, ${(h - 1) * 100 - 50}%)`, c[v].transform = `translate(-50%, ${h * 100 - 50}%)`);
10892
+ Sd(L, D) && (h++, c[u].transform = `translate(-50%, ${(h - 1) * 100 - 50}%)`, c[v].transform = `translate(-50%, ${h * 100 - 50}%)`);
10892
10893
  }
10893
10894
  }
10894
10895
  this.labelItems = c, this.render();
@@ -11064,10 +11065,10 @@ function of(i, t) {
11064
11065
  const C = E.distanceTo(g);
11065
11066
  C < y && (b = T, y = C);
11066
11067
  });
11067
- const I = h[b + 1], P = I == null ? void 0 : I.distanceTo(g), k = h[b - 1], D = k == null ? void 0 : k.distanceTo(g);
11068
+ const I = h[b + 1], P = I == null ? void 0 : I.distanceTo(g), L = h[b - 1], D = L == null ? void 0 : L.distanceTo(g);
11068
11069
  if (b > u && b - u > 1) {
11069
11070
  let E = b;
11070
- k !== void 0 && D > 0.8 && (E = b + 1), k !== void 0 && D > 0.2 && D < 0.3 ? E = b : y > 0.2 && y < 0.3 && (E = b + 1);
11071
+ L !== void 0 && D > 0.8 && (E = b + 1), L !== void 0 && D > 0.2 && D < 0.3 ? E = b : y > 0.2 && y < 0.3 && (E = b + 1);
11071
11072
  let T = u;
11072
11073
  if (I !== void 0 && P > 0.2 && P < 0.3 ? T = u + 1 : y > 0.2 && y < 0.3 && (T = u), h[T] && h[T + 1]) {
11073
11074
  const R = m[v - 1];
@@ -11096,7 +11097,7 @@ function Ls(i, t, e) {
11096
11097
  });
11097
11098
  let v = 0;
11098
11099
  for (let y = 0; y < i.length; y++) {
11099
- const [I, P] = r[y][0], k = i[y], { x: D, y: E, z: T } = k, C = new $(D + I * n, E + 0.05, T + P * n);
11100
+ const [I, P] = r[y][0], L = i[y], { x: D, y: E, z: T } = L, C = new $(D + I * n, E + 0.05, T + P * n);
11100
11101
  m[y * 6 + 0] = C.x, m[y * 6 + 1] = C.y, m[y * 6 + 2] = C.z;
11101
11102
  const z = new $(D - I * n, E + 0.05, T - P * n);
11102
11103
  m[y * 6 + 3] = z.x, m[y * 6 + 4] = z.y, m[y * 6 + 5] = z.z, v += y > 0 ? i[y - 1].clone().sub(i[y]).length() : 0;