@realsee/dnalogel 2.2.2 → 2.2.3

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 (209) hide show
  1. package/dist/index.cjs.js +13 -13
  2. package/dist/index.js +874 -874
  3. package/dist/index.umd.js +13 -13
  4. package/docs/classes/CruisePluginController.html +4 -4
  5. package/docs/classes/Magnifier.html +4 -4
  6. package/docs/classes/ModelRoomLabelController.html +4 -4
  7. package/docs/classes/Object3DHelperController.html +4 -4
  8. package/docs/classes/PaintBrush.html +4 -4
  9. package/docs/classes/PanoTagPluginController.html +4 -4
  10. package/docs/classes/Util.BetterTween.html +4 -4
  11. package/docs/classes/Util.FivePointSelector.html +4 -4
  12. package/docs/classes/Util.Interval.html +4 -4
  13. package/docs/classes/Util.Magnifier.html +4 -4
  14. package/docs/classes/Util.PointDomHelper.html +4 -4
  15. package/docs/classes/Util.PointHelper.html +4 -4
  16. package/docs/classes/Util.Rectangle.html +4 -4
  17. package/docs/enums/CameraMovementEffect.html +4 -4
  18. package/docs/enums/ContentType.html +4 -4
  19. package/docs/enums/DIRECTION.html +4 -4
  20. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +4 -4
  21. package/docs/enums/DimensionType.html +4 -4
  22. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +4 -4
  23. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +4 -4
  24. package/docs/enums/LinkType.html +4 -4
  25. package/docs/enums/PaintBrushTypeEnum.html +4 -4
  26. package/docs/enums/PointType.html +4 -4
  27. package/docs/enums/Rotation.html +4 -4
  28. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  29. package/docs/functions/CameraMovementPlugin.html +4 -4
  30. package/docs/functions/CruisePlugin.html +4 -4
  31. package/docs/functions/GuideLinePlugin.html +4 -4
  32. package/docs/functions/ItemLabelPlugin.html +4 -4
  33. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  34. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  35. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  36. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  37. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  38. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  39. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  40. package/docs/functions/ModelViewPlugin.html +4 -4
  41. package/docs/functions/Object3DHelperPlugin.html +4 -4
  42. package/docs/functions/PanoCompassPlugin.html +4 -4
  43. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  44. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  45. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  46. package/docs/functions/PanoMeasurePlugin.html +4 -4
  47. package/docs/functions/PanoRulerPlugin.html +4 -4
  48. package/docs/functions/PanoRulerProPlugin.html +4 -4
  49. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  50. package/docs/functions/PanoTagPlugin.html +4 -4
  51. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  52. package/docs/functions/Util.getCoordsFromClient.html +4 -4
  53. package/docs/functions/Util.getCoordsFromElement.html +4 -4
  54. package/docs/functions/Util.getFrameTime.html +4 -4
  55. package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
  56. package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
  57. package/docs/functions/Util.isNil.html +4 -4
  58. package/docs/functions/Util.nextFrame.html +4 -4
  59. package/docs/functions/Util.notNil.html +4 -4
  60. package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
  61. package/docs/functions/Util.tweenProgress.html +4 -4
  62. package/docs/functions/pluginFlag.html +4 -4
  63. package/docs/index.html +4 -4
  64. package/docs/interfaces/CSS3DRenderPluginEventMap.html +4 -4
  65. package/docs/interfaces/CSS3DRenderPluginState.html +4 -4
  66. package/docs/interfaces/CameraMovementPluginExportType.html +4 -4
  67. package/docs/interfaces/ContentTypeMap.html +4 -4
  68. package/docs/interfaces/FloorplanBounding.html +4 -4
  69. package/docs/interfaces/FloorplanData.html +4 -4
  70. package/docs/interfaces/FloorplanEntrance.html +4 -4
  71. package/docs/interfaces/FloorplanExtraObject.html +4 -4
  72. package/docs/interfaces/FloorplanExtraObject3D.html +4 -4
  73. package/docs/interfaces/FloorplanFloorData.html +4 -4
  74. package/docs/interfaces/FloorplanImagePosition.html +4 -4
  75. package/docs/interfaces/FloorplanObserver.html +4 -4
  76. package/docs/interfaces/FloorplanOutlineItem.html +4 -4
  77. package/docs/interfaces/FloorplanPosition.html +4 -4
  78. package/docs/interfaces/FloorplanRoomItem.html +4 -4
  79. package/docs/interfaces/FloorplanRoomLabelItem.html +4 -4
  80. package/docs/interfaces/FloorplanServerBounding.html +4 -4
  81. package/docs/interfaces/FloorplanServerComputedData.html +4 -4
  82. package/docs/interfaces/FloorplanServerData.html +4 -4
  83. package/docs/interfaces/FloorplanServerDoorItem.html +4 -4
  84. package/docs/interfaces/FloorplanServerDoorPosition.html +4 -4
  85. package/docs/interfaces/FloorplanServerEntrance.html +4 -4
  86. package/docs/interfaces/FloorplanServerFloorData.html +4 -4
  87. package/docs/interfaces/FloorplanServerImagePosition.html +4 -4
  88. package/docs/interfaces/FloorplanServerObserver.html +4 -4
  89. package/docs/interfaces/FloorplanServerOutlineItem.html +4 -4
  90. package/docs/interfaces/FloorplanServerPosition.html +4 -4
  91. package/docs/interfaces/FloorplanServerRoomItem.html +4 -4
  92. package/docs/interfaces/FloorplanServerRoomLabelItem.html +4 -4
  93. package/docs/interfaces/ItemLabelPluginData.html +4 -4
  94. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +4 -4
  95. package/docs/interfaces/ItemLabelPluginParametersType.html +4 -4
  96. package/docs/interfaces/LineJson.html +4 -4
  97. package/docs/interfaces/ModelChassisCompassPluginData.html +4 -4
  98. package/docs/interfaces/ModelChassisCompassPluginExportType.html +4 -4
  99. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +4 -4
  100. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +4 -4
  101. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +4 -4
  102. package/docs/interfaces/ModelItemLabelPluginData.html +4 -4
  103. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +4 -4
  104. package/docs/interfaces/ModelItemLabelPluginParametersType.html +4 -4
  105. package/docs/interfaces/ModelRoomLabelPluginData.html +4 -4
  106. package/docs/interfaces/ModelTVVideoPluginData.html +4 -4
  107. package/docs/interfaces/ModelTVVideoPluginExportType.html +4 -4
  108. package/docs/interfaces/ModelTVVideoPluginParameterType.html +4 -4
  109. package/docs/interfaces/ModelViewPluginExportType.html +4 -4
  110. package/docs/interfaces/Object3DHelperState.html +4 -4
  111. package/docs/interfaces/OpenParameter.html +4 -4
  112. package/docs/interfaces/PaintBrushAction.html +4 -4
  113. package/docs/interfaces/PaintBrushConfigs.html +4 -4
  114. package/docs/interfaces/PaintBrushState.html +4 -4
  115. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +4 -4
  116. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
  117. package/docs/interfaces/PanoMeasureParameterType.html +4 -4
  118. package/docs/interfaces/PanoRulerPluginExportType.html +4 -4
  119. package/docs/interfaces/PanoRulerPluginOptions.html +4 -4
  120. package/docs/interfaces/PanoRulerPluginParameterType.html +4 -4
  121. package/docs/interfaces/PanoRulerProPluginExportType.html +4 -4
  122. package/docs/interfaces/PanoRulerProPluginOptions.html +4 -4
  123. package/docs/interfaces/PanoRulerProPluginParameterType.html +4 -4
  124. package/docs/interfaces/PanoRulerProPluginState.html +4 -4
  125. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
  126. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
  127. package/docs/interfaces/PanoSpatialTagPluginData.html +4 -4
  128. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +4 -4
  129. package/docs/interfaces/PanoSpatialTagPluginExportType.html +4 -4
  130. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +4 -4
  131. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +4 -4
  132. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +4 -4
  133. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +4 -4
  134. package/docs/interfaces/Point.html +4 -4
  135. package/docs/interfaces/PointJson.html +4 -4
  136. package/docs/interfaces/Room.html +4 -4
  137. package/docs/interfaces/RoomInfo.html +4 -4
  138. package/docs/interfaces/RoomLabel.html +4 -4
  139. package/docs/interfaces/RoomRules.html +4 -4
  140. package/docs/interfaces/Rooms.html +4 -4
  141. package/docs/interfaces/Scissor.html +4 -4
  142. package/docs/interfaces/TagConfig.html +4 -4
  143. package/docs/interfaces/Tags.html +4 -4
  144. package/docs/interfaces/Util.MagnifierParameter.html +4 -4
  145. package/docs/interfaces/Util.MouseGroupParameter.html +4 -4
  146. package/docs/modules/Util.html +4 -4
  147. package/docs/modules.html +4 -4
  148. package/docs/types/ArrayPosition.html +4 -4
  149. package/docs/types/CSS3DRenderExportType.html +4 -4
  150. package/docs/types/CSS3DRenderPluginExportType.html +4 -4
  151. package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
  152. package/docs/types/Color.html +4 -4
  153. package/docs/types/ContentTypeConfigKey.html +4 -4
  154. package/docs/types/ContentTypeConfigKeyArray.html +4 -4
  155. package/docs/types/Create3DDomContainerReturnType.html +4 -4
  156. package/docs/types/Create3DElementReturnType.html +4 -4
  157. package/docs/types/CruisePluginExportType.html +4 -4
  158. package/docs/types/Direction-1.html +4 -4
  159. package/docs/types/Direction4.html +4 -4
  160. package/docs/types/FloorplanRuleLabels.html +4 -4
  161. package/docs/types/FloorplanServerRuleLabels.html +4 -4
  162. package/docs/types/GuideLinePluginExportType.html +4 -4
  163. package/docs/types/HelperEventMap.html +4 -4
  164. package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
  165. package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
  166. package/docs/types/MediaData.html +4 -4
  167. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
  168. package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
  169. package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
  170. package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
  171. package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
  172. package/docs/types/MoveArgs.html +4 -4
  173. package/docs/types/MoveOpts.html +4 -4
  174. package/docs/types/Object3DHelperEventMap.html +4 -4
  175. package/docs/types/ObjectFit.html +4 -4
  176. package/docs/types/PaintBrushEventMap.html +4 -4
  177. package/docs/types/PanoCompassPluginData.html +4 -4
  178. package/docs/types/PanoCompassPluginExportType.html +4 -4
  179. package/docs/types/PanoCompassPluginParameterType.html +4 -4
  180. package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
  181. package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
  182. package/docs/types/PanoMeasurePluginEvent.html +4 -4
  183. package/docs/types/PanoMeasureReturnType.html +4 -4
  184. package/docs/types/PanoSpatialTagPluginId.html +4 -4
  185. package/docs/types/PanoTagPluginExportInterface.html +4 -4
  186. package/docs/types/PanoTagPluginParamsInterface.html +4 -4
  187. package/docs/types/PlaneTag.html +4 -4
  188. package/docs/types/PointTag.html +4 -4
  189. package/docs/types/Position.html +4 -4
  190. package/docs/types/RotateArgs.html +4 -4
  191. package/docs/types/RotateOpts.html +4 -4
  192. package/docs/types/RuleLabelsKey.html +4 -4
  193. package/docs/types/RuleLabelsValue.html +4 -4
  194. package/docs/types/Tag.html +4 -4
  195. package/docs/types/Tag2D.html +4 -4
  196. package/docs/types/Tag3D.html +4 -4
  197. package/docs/types/TagId.html +4 -4
  198. package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
  199. package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
  200. package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
  201. package/docs/variables/PLUGIN.html +4 -4
  202. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
  203. package/docs/variables/ROOM_TYPE_MAP.html +4 -4
  204. package/docs/variables/VERSION.html +4 -4
  205. package/docs/variables/itemLabelPluginServerParams.html +4 -4
  206. package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
  207. package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
  208. package/libs/PanoDoorLabelPlugin/Controller.js +51 -51
  209. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -34,7 +34,7 @@ import * as P from "three";
34
34
  import { Vector3 as Z, Group as Ci, Raycaster as Tt, MeshBasicMaterial as qt, CanvasTexture as ka, AnimationMixer as Da, Color as tn, TextureLoader as ur, Vector2 as je, PlaneGeometry as La, sRGBEncoding as Sa, Mesh as En, CurvePath as za, LineCurve3 as Ma, TubeGeometry as Ta, ShaderMaterial as ja, SphereGeometry as Ba, DoubleSide as fr, RingGeometry as Qa, Quaternion as hr, Euler as Xi, Object3D as Ra } from "three";
35
35
  import { CSS3DObject as mr, CSS3DRenderer as Yi } from "three/examples/jsm/renderers/CSS3DRenderer";
36
36
  import { Line as pr } from "@realsee/five/line";
37
- import { SvelteComponent as te, init as ne, safe_not_equal as ie, append_styles as ce, element as O, text as Le, space as V, attr as b, set_style as R, toggle_class as q, insert as T, append as Q, listen as Pe, set_data as Se, noop as re, detach as j, add_render_callback as Re, add_resize_listener as gt, group_outros as ue, update_keyed_each as Ye, outro_and_destroy_block as at, check_outros as fe, transition_in as k, transition_out as z, globals as Oa, empty as pe, create_component as _, mount_component as K, destroy_component as $, src_url_equal as et, HtmlTag as xn, binding_callbacks as Qe, assign as Ee, get_spread_update as ze, destroy_block as gr, destroy_each as tt, svg_element as be, run_all as Ei, null_to_empty as Te, create_in_transition as jt, create_out_transition as Nt, bubble as Ha, create_slot as Et, set_attributes as kn, update_slot_base as Pt, get_all_dirty_from_scope as It, get_slot_changes as xt, compute_rest_props as Dn, exclude_internal_props as Ar, stop_propagation as Pi } from "svelte/internal";
37
+ import { SvelteComponent as te, init as ne, safe_not_equal as ie, append_styles as ce, element as O, text as Le, space as V, attr as b, set_style as R, toggle_class as q, insert as T, append as Q, listen as Pe, set_data as Se, noop as re, detach as j, add_render_callback as Re, add_resize_listener as gt, group_outros as ue, update_keyed_each as Ye, outro_and_destroy_block as at, check_outros as fe, transition_in as x, transition_out as M, globals as Oa, empty as pe, create_component as _, mount_component as K, destroy_component as $, src_url_equal as et, HtmlTag as xn, binding_callbacks as Qe, assign as Ee, get_spread_update as ze, destroy_block as gr, destroy_each as tt, svg_element as be, run_all as Ei, null_to_empty as Te, create_in_transition as jt, create_out_transition as Nt, bubble as Ha, create_slot as Et, set_attributes as kn, update_slot_base as Pt, get_all_dirty_from_scope as It, get_slot_changes as xt, compute_rest_props as Dn, exclude_internal_props as Ar, stop_propagation as Pi } from "svelte/internal";
38
38
  import { onDestroy as At, onMount as Ue, afterUpdate as Ii, beforeUpdate as xi, createEventDispatcher as Fa, setContext as ai, tick as Ga, getContext as _t } from "svelte";
39
39
  import { linear as li, cubicInOut as Kt, cubicOut as Na } from "svelte/easing";
40
40
  import { fade as St, draw as Ln, fly as Ui } from "svelte/transition";
@@ -494,9 +494,9 @@ class Ka extends qa {
494
494
  let p = [];
495
495
  const g = this;
496
496
  g.tween = Va({ step: 0 }, { step: l.length - 1 }, d).onUpdate(({ step: v }) => {
497
- var w;
497
+ var C;
498
498
  if (g.tweening = !0, !g.ready)
499
- return a.clearRect(0, 0, g.canvas[f].width, g.canvas[f].height), (w = g.tween) == null ? void 0 : w.stop();
499
+ return a.clearRect(0, 0, g.canvas[f].width, g.canvas[f].height), (C = g.tween) == null ? void 0 : C.stop();
500
500
  const A = Math.floor(v);
501
501
  if (!p.find((y) => y === A)) {
502
502
  if (p.push(A), console.log("__debug__", l, l[A], A), m.push(Un(l[A], g.clientWidth, g.clientHeight)), m.length < 3)
@@ -587,85 +587,85 @@ const Hg = (i, t) => {
587
587
  }), t == null ? void 0 : t.config), r = new P.Scene(), a = new xa(60);
588
588
  let l = new P.Object3D(), c, d;
589
589
  {
590
- const C = new P.DirectionalLight(16777215, 0.5);
591
- C.position.copy(new P.Vector3(1, 1, 1)), r.add(C);
590
+ const w = new P.DirectionalLight(16777215, 0.5);
591
+ w.position.copy(new P.Vector3(1, 1, 1)), r.add(w);
592
592
  }
593
593
  {
594
- const C = new P.DirectionalLight(16777215, 0.3);
595
- r.add(C);
594
+ const w = new P.DirectionalLight(16777215, 0.3);
595
+ r.add(w);
596
596
  }
597
597
  {
598
- const C = new P.AmbientLight(16777215, 0.3);
599
- r.add(C);
598
+ const w = new P.AmbientLight(16777215, 0.3);
599
+ r.add(w);
600
600
  }
601
601
  r.add(l);
602
602
  const f = () => {
603
603
  if (!!i.renderer)
604
604
  return n || (n = new P.WebGLRenderer({ antialias: !1, alpha: !0 }), n.setPixelRatio(i.renderer.getPixelRatio()), n.outputEncoding = P.sRGBEncoding, n.setClearColor(1579548, 0), n.autoClear = !0), n;
605
605
  }, u = () => {
606
- l.traverse((C) => {
607
- C instanceof P.Mesh && [].concat(C.material).forEach((D) => D.dispose());
608
- }), r.remove(l), l = new P.Object3D(), r.add(l), w();
606
+ l.traverse((w) => {
607
+ w instanceof P.Mesh && [].concat(w.material).forEach((D) => D.dispose());
608
+ }), r.remove(l), l = new P.Object3D(), r.add(l), C();
609
609
  }, m = () => {
610
610
  c = v(i.model, a.fov, a.aspect), d = i.model.bounding.getCenter(new P.Vector3());
611
- function C(D) {
611
+ function w(D) {
612
612
  const H = D.clone();
613
613
  return H.uniforms.modelAlpha.value = 1, H.uniforms.map.value && (H.uniforms.map.value.needsUpdate = !0), H;
614
614
  }
615
615
  function L(D) {
616
616
  if (D instanceof P.Mesh) {
617
- const H = D.geometry, M = Array.isArray(D.material) ? D.material.map(C) : C(D.material);
618
- return new P.Mesh(H, M);
617
+ const H = D.geometry, B = Array.isArray(D.material) ? D.material.map(w) : w(D.material);
618
+ return new P.Mesh(H, B);
619
619
  } else if (D instanceof P.Group) {
620
620
  const H = new P.Group();
621
- return D.children.forEach((M) => H.add(L(M))), H;
621
+ return D.children.forEach((B) => H.add(L(B))), H;
622
622
  } else {
623
623
  const H = new P.Object3D();
624
- return D.children.forEach((M) => H.add(L(M))), H;
624
+ return D.children.forEach((B) => H.add(L(B))), H;
625
625
  }
626
626
  }
627
- r.remove(l), l = L(i.model), r.add(l), w();
628
- }, p = (C, L = {}) => {
627
+ r.remove(l), l = L(i.model), r.add(l), C();
628
+ }, p = (w, L = {}) => {
629
629
  const D = f();
630
630
  if (!D)
631
631
  return;
632
- C.appendChild(D.domElement), g(L);
633
- const H = window.getComputedStyle(C).position;
634
- H !== "relative" && H !== "absolute" && H !== "fixed" && H !== "sticky" && (C.style.position = "relative");
635
- }, g = (C = {}) => {
632
+ w.appendChild(D.domElement), g(L);
633
+ const H = window.getComputedStyle(w).position;
634
+ H !== "relative" && H !== "absolute" && H !== "fixed" && H !== "sticky" && (w.style.position = "relative");
635
+ }, g = (w = {}) => {
636
636
  if (!n)
637
637
  return;
638
638
  const D = n.domElement.parentNode;
639
639
  if (D != null && D.nodeName) {
640
- const { width: H = D.offsetWidth, height: M = D.offsetHeight } = C;
641
- n.setSize(H, M), a.aspect = H / M, a.updateProjectionMatrix();
640
+ const { width: H = D.offsetWidth, height: B = D.offsetHeight } = w;
641
+ n.setSize(H, B), a.aspect = H / B, a.updateProjectionMatrix();
642
642
  }
643
- w();
643
+ C();
644
644
  };
645
- function v(C, L, D) {
646
- const H = C.bounding, M = Math.pow(
645
+ function v(w, L, D) {
646
+ const H = w.bounding, B = Math.pow(
647
647
  Math.pow(H.max.x - H.min.x + 1, 2) + Math.pow(H.max.y - H.min.y + 1, 2) + Math.pow(H.max.z - H.min.z + 1, 2),
648
648
  1 / 2
649
649
  );
650
- let F = M / 2 / Math.tan(Math.PI * L / 360);
651
- return D < 1 && (F = F / D), isNaN(F) ? M : F;
650
+ let F = B / 2 / Math.tan(Math.PI * L / 360);
651
+ return D < 1 && (F = F / D), isNaN(F) ? B : F;
652
652
  }
653
- function A(C) {
654
- return i.work.observers[C].standingPosition.clone();
653
+ function A(w) {
654
+ return i.work.observers[w].standingPosition.clone();
655
655
  }
656
- const w = () => {
656
+ const C = () => {
657
657
  if (!c || !d)
658
658
  return;
659
- const C = i.getPose();
660
- C.fov = a.fov, C.offset = d, C.distance = c, typeof s.lockedLatitude == "number" && (C.latitude = s.lockedLatitude), typeof s.lockedLongitude == "number" && (C.longitude = s.lockedLongitude), typeof s.lockedPanoIndex == "number" && (C.offset = A(s.lockedPanoIndex)), s.lookAtCurrentCamera && (C.offset = i.camera.position.clone().setY(i.camera.position.y + 1)), a.setFromPose(C), e = !0;
659
+ const w = i.getPose();
660
+ w.fov = a.fov, w.offset = d, w.distance = c, typeof s.lockedLatitude == "number" && (w.latitude = s.lockedLatitude), typeof s.lockedLongitude == "number" && (w.longitude = s.lockedLongitude), typeof s.lockedPanoIndex == "number" && (w.offset = A(s.lockedPanoIndex)), s.lookAtCurrentCamera && (w.offset = i.camera.position.clone().setY(i.camera.position.y + 1)), a.setFromPose(w), e = !0;
661
661
  }, y = () => {
662
662
  e !== !0 || !n || !n.domElement.parentNode || n.domElement.parentNode.offsetWidth === 0 || (n.render(r, a), e = !1);
663
663
  }, I = () => {
664
664
  n && n.dispose(), n = null;
665
- }, x = (C) => {
666
- Object.assign(s, C), w();
665
+ }, k = (w) => {
666
+ Object.assign(s, w), C();
667
667
  };
668
- return Object.assign(window, { camera: a }), i.on("modelLoaded", m), i.on("modelWillLoad", u), i.on("cameraDirectionUpdate", w), i.on("dispose", I), i.on("renderFrame", y), i.on("cameraPositionUpdate", w), { appendTo: p, refresh: g, changeConfigs: x };
668
+ return Object.assign(window, { camera: a }), i.on("modelLoaded", m), i.on("modelWillLoad", u), i.on("cameraDirectionUpdate", C), i.on("dispose", I), i.on("renderFrame", y), i.on("cameraPositionUpdate", C), { appendTo: p, refresh: g, changeConfigs: k };
669
669
  };
670
670
  function $a(i) {
671
671
  return typeof Symbol == "undefined" ? `$Symbol<${i}>$` : Symbol(i);
@@ -734,8 +734,8 @@ class Cr extends mr {
734
734
  else {
735
735
  const I = document.createElement("div");
736
736
  I.style.width = `${d}px`, I.style.height = `${f}px`, I.style.pointerEvents = "none";
737
- const x = o / a;
738
- e.style.position = "absolute", e.style.left = "0", e.style.top = "0", e.style.width = `${x * d}px`, e.style.height = `${x * f}px`, I.appendChild(e), m = I;
737
+ const k = o / a;
738
+ e.style.position = "absolute", e.style.left = "0", e.style.top = "0", e.style.width = `${k * d}px`, e.style.height = `${k * f}px`, I.appendChild(e), m = I;
739
739
  }
740
740
  super(m);
741
741
  h(this, "version", wr);
@@ -759,8 +759,8 @@ class Cr extends mr {
759
759
  e.classList.add(`${nl}__container`);
760
760
  const p = new Z().subVectors(n[1], n[0]), g = new Z().subVectors(n[3], n[0]), v = new Z().crossVectors(p, g).normalize();
761
761
  this.lookAt(v);
762
- const A = this.up.clone().applyQuaternion(this.quaternion), w = g.clone(), y = new Z().crossVectors(A, w).normalize();
763
- this.rotateOnWorldAxis(y, A.angleTo(w)), this.position.copy(u);
762
+ const A = this.up.clone().applyQuaternion(this.quaternion), C = g.clone(), y = new Z().crossVectors(A, C).normalize();
763
+ this.rotateOnWorldAxis(y, A.angleTo(C)), this.position.copy(u);
764
764
  }
765
765
  changeMode(e, n) {
766
766
  if (e === this.mode)
@@ -812,12 +812,12 @@ class Pr {
812
812
  const { ratio: r, devicePixelRatio: a, mode: l, autoRender: c, container: d, pointerEvents: f } = o, u = [], { css3DObject: m, opacityMesh: p } = this.createObject(s, { ratio: r, dpr: a, container: d, mode: l, pointerEvents: f });
813
813
  d.id = `container--${m.uuid}`;
814
814
  const g = l === "front" && !de.frontModeStore, v = l === "behind" && !de.behindModeStore;
815
- l === "front" && this.initGlobalModeStore("front"), l === "behind" && this.initGlobalModeStore("behind", o.scene), m.hooks.on("changeMode", (E, S, B) => {
815
+ l === "front" && this.initGlobalModeStore("front"), l === "behind" && this.initGlobalModeStore("behind", o.scene), m.hooks.on("changeMode", (E, S, z) => {
816
816
  var ae, le, me;
817
817
  if (E === S)
818
818
  return;
819
- E === "front" && this.initGlobalModeStore("front"), E === "behind" && this.initGlobalModeStore("behind", B);
820
- const N = S === "front" ? de.frontModeStore : de.behindModeStore, Y = E === "front" ? de.frontModeStore : de.behindModeStore, ee = S === "behind" ? this.store.behindModeCSS3DObjects : this.store.frontModeCSS3DObjects, W = E === "behind" ? this.store.behindModeCSS3DObjects : this.store.frontModeCSS3DObjects;
819
+ E === "front" && this.initGlobalModeStore("front"), E === "behind" && this.initGlobalModeStore("behind", z);
820
+ const N = S === "front" ? de.frontModeStore : de.behindModeStore, X = E === "front" ? de.frontModeStore : de.behindModeStore, ee = S === "behind" ? this.store.behindModeCSS3DObjects : this.store.frontModeCSS3DObjects, W = E === "behind" ? this.store.behindModeCSS3DObjects : this.store.frontModeCSS3DObjects;
821
821
  if (!ee || !W)
822
822
  return console.error(`${Ct}: changeMode error: prevObjects or nextObjects is undefined`);
823
823
  const U = ee[m.uuid];
@@ -825,13 +825,13 @@ class Pr {
825
825
  return console.error(`${Ct}: changeMode error: prevObject is undefined`);
826
826
  if (E === "behind") {
827
827
  const ye = (ae = U.opacityMesh) != null ? ae : this.createOpacityMesh(U.css3DObject);
828
- N == null || N.css3DScene.remove(U.css3DObject), W[m.uuid] = { css3DObject: m, opacityMesh: ye, visible: !0, enabled: !0, mode: E, scene: B }, Y == null || Y.css3DScene.add(m), B == null || B.add(ye);
828
+ N == null || N.css3DScene.remove(U.css3DObject), W[m.uuid] = { css3DObject: m, opacityMesh: ye, visible: !0, enabled: !0, mode: E, scene: z }, X == null || X.css3DScene.add(m), z == null || z.add(ye);
829
829
  }
830
- E === "front" && (N == null || N.css3DScene.remove(U.css3DObject), (me = (le = ee[m.uuid]) == null ? void 0 : le.scene) == null || me.remove(U.opacityMesh), W[m.uuid] = { css3DObject: m, visible: !0, enabled: !0, mode: E }, Y == null || Y.css3DScene.add(m)), E === "behind" && this.appendToElement(de.behindModeContainer, "behind"), E === "front" && this.appendToElement(de.frontModeContainer, "front"), this.render(t), console.log("change success");
830
+ E === "front" && (N == null || N.css3DScene.remove(U.css3DObject), (me = (le = ee[m.uuid]) == null ? void 0 : le.scene) == null || me.remove(U.opacityMesh), W[m.uuid] = { css3DObject: m, visible: !0, enabled: !0, mode: E }, X == null || X.css3DScene.add(m)), E === "behind" && this.appendToElement(de.behindModeContainer, "behind"), E === "front" && this.appendToElement(de.frontModeContainer, "front"), this.render(t), console.log("change success");
831
831
  });
832
- const A = l === "front" ? de.frontModeStore : de.behindModeStore, { css3DScene: w, css3DRenderer: y } = A, I = (() => {
832
+ const A = l === "front" ? de.frontModeStore : de.behindModeStore, { css3DScene: C, css3DRenderer: y } = A, I = (() => {
833
833
  const E = () => {
834
- var B, N;
834
+ var z, N;
835
835
  const S = m.mode;
836
836
  if (S === "front")
837
837
  this.store.frontModeCSS3DObjects[m.uuid] = {
@@ -852,32 +852,32 @@ class Pr {
852
852
  scene: o.scene
853
853
  };
854
854
  }
855
- w.getObjectById(m.id) || w.add(m), S === "behind" && p && ((B = o.scene) != null && B.getObjectById(p.id) || (N = o.scene) == null || N.add(p), u.push(() => {
856
- var Y;
857
- return p && ((Y = o.scene) == null ? void 0 : Y.remove(p));
855
+ C.getObjectById(m.id) || C.add(m), S === "behind" && p && ((z = o.scene) != null && z.getObjectById(p.id) || (N = o.scene) == null || N.add(p), u.push(() => {
856
+ var X;
857
+ return p && ((X = o.scene) == null ? void 0 : X.remove(p));
858
858
  }));
859
859
  };
860
860
  return g || v ? (y.domElement.style.position = "absolute", y.domElement.style.top = "0", y.domElement.style.userSelect = "none", y.domElement.style.pointerEvents = "none", y.domElement.classList.add(_i(l)), () => {
861
861
  E(), this.render(t);
862
862
  }) : (this.store.rendered = !0, () => E());
863
- })(), x = l === "front" ? de.frontModeContainer : de.behindModeContainer;
864
- if (x) {
865
- this.appendToElement(x, l);
863
+ })(), k = l === "front" ? de.frontModeContainer : de.behindModeContainer;
864
+ if (k) {
865
+ this.appendToElement(k, l);
866
866
  const E = l === "front" ? de.frontModeStore : de.behindModeStore;
867
867
  E && (E.appendedToPage = !0);
868
868
  }
869
- const C = (E) => this.setVisibleById(m.uuid, E), L = (E) => this.setEnabledById(m.uuid, E), D = () => C(!0), H = () => C(!1), M = () => L(!0), F = () => L(!1), X = () => (delete this.store.frontModeCSS3DObjects[m.uuid], delete this.store.behindModeCSS3DObjects[m.uuid], u.forEach((E) => E == null ? void 0 : E()), w.remove(m), w.children.length === 0 && (typeof A.requestAnimationFrameId == "number" && cancelAnimationFrame(A.requestAnimationFrameId), y.domElement.remove(), l === "front" && (de.frontModeStore = void 0), l === "behind" && (de.behindModeStore = void 0), de.frontModeResizeObserver = void 0, de.behindModeResizeObserver = void 0), !0);
870
- return this.store.disposers.push(X), c && I(), {
869
+ const w = (E) => this.setVisibleById(m.uuid, E), L = (E) => this.setEnabledById(m.uuid, E), D = () => w(!0), H = () => w(!1), B = () => L(!0), F = () => L(!1), Y = () => (delete this.store.frontModeCSS3DObjects[m.uuid], delete this.store.behindModeCSS3DObjects[m.uuid], u.forEach((E) => E == null ? void 0 : E()), C.remove(m), C.children.length === 0 && (typeof A.requestAnimationFrameId == "number" && cancelAnimationFrame(A.requestAnimationFrameId), y.domElement.remove(), l === "front" && (de.frontModeStore = void 0), l === "behind" && (de.behindModeStore = void 0), de.frontModeResizeObserver = void 0, de.behindModeResizeObserver = void 0), !0);
870
+ return this.store.disposers.push(Y), c && I(), {
871
871
  id: m.uuid,
872
872
  container: d,
873
- dispose: X,
873
+ dispose: Y,
874
874
  css3DObject: m,
875
875
  render: c ? void 0 : I,
876
876
  show: D,
877
877
  hide: H,
878
- setVisible: C,
878
+ setVisible: w,
879
879
  disable: F,
880
- enable: M,
880
+ enable: B,
881
881
  setEnabled: L,
882
882
  appendToElement: (E) => this.appendToElement(E, l)
883
883
  };
@@ -1177,11 +1177,11 @@ const Fg = (i) => {
1177
1177
  };
1178
1178
  return t.disposers.push(A), { clear: A, pointAxesHelperMesh: v };
1179
1179
  }, s = (d, f = 0) => {
1180
- var A, w;
1180
+ var A, C;
1181
1181
  const u = (A = i == null ? void 0 : i.camera) == null ? void 0 : A.position;
1182
1182
  if (!u)
1183
1183
  return !1;
1184
- const m = d.distanceTo(u), p = d.sub(u).normalize(), g = new Tt(u, p), v = (w = i.model.intersectRaycaster(g)) == null ? void 0 : w[0];
1184
+ const m = d.distanceTo(u), p = d.sub(u).normalize(), g = new Tt(u, p), v = (C = i.model.intersectRaycaster(g)) == null ? void 0 : C[0];
1185
1185
  return !(v && v.distance + f < m);
1186
1186
  }, r = () => t.intersection, a = () => {
1187
1187
  var d, f;
@@ -1262,10 +1262,10 @@ function eo(i, t) {
1262
1262
  r & 1 && (a.roomLabel = t[12]), r & 2 && (a.five = t[1]), n.$set(a);
1263
1263
  },
1264
1264
  i(s) {
1265
- o || (k(n.$$.fragment, s), o = !0);
1265
+ o || (x(n.$$.fragment, s), o = !0);
1266
1266
  },
1267
1267
  o(s) {
1268
- z(n.$$.fragment, s), o = !1;
1268
+ M(n.$$.fragment, s), o = !1;
1269
1269
  },
1270
1270
  d(s) {
1271
1271
  s && j(e), $(n, s);
@@ -1298,13 +1298,13 @@ function pl(i) {
1298
1298
  i(l) {
1299
1299
  if (!s) {
1300
1300
  for (let c = 0; c < r.length; c += 1)
1301
- k(e[c]);
1301
+ x(e[c]);
1302
1302
  s = !0;
1303
1303
  }
1304
1304
  },
1305
1305
  o(l) {
1306
1306
  for (let c = 0; c < e.length; c += 1)
1307
- z(e[c]);
1307
+ M(e[c]);
1308
1308
  s = !1;
1309
1309
  },
1310
1310
  d(l) {
@@ -1321,27 +1321,27 @@ function gl(i, t, e) {
1321
1321
  function c(v) {
1322
1322
  if (!(l === null || v.floorIndex === l))
1323
1323
  return !1;
1324
- const w = new Tt(), y = o.camera.position.clone(), I = new Z(v.position.x, v.position.y, v.position.z), x = I.distanceTo(y);
1325
- w.set(y.clone(), I.clone().sub(y).normalize());
1326
- const [C] = o.model.intersectRaycaster(w);
1327
- return !(C && C.distance + 1 < x);
1324
+ const C = new Tt(), y = o.camera.position.clone(), I = new Z(v.position.x, v.position.y, v.position.z), k = I.distanceTo(y);
1325
+ C.set(y.clone(), I.clone().sub(y).normalize());
1326
+ const [w] = o.model.intersectRaycaster(C);
1327
+ return !(w && w.distance + 1 < k);
1328
1328
  }
1329
1329
  function d(v, A) {
1330
- const y = new Z(v.position.x, v.position.y, v.position.z).clone().project(o.camera), I = Math.ceil((y.x + 1) / 2 * A.x), x = Math.ceil((-y.y + 1) / 2 * A.y);
1331
- return `translate(${I}px, ${x}px)`;
1330
+ const y = new Z(v.position.x, v.position.y, v.position.z).clone().project(o.camera), I = Math.ceil((y.x + 1) / 2 * A.x), k = Math.ceil((-y.y + 1) / 2 * A.y);
1331
+ return `translate(${I}px, ${k}px)`;
1332
1332
  }
1333
1333
  function f(v) {
1334
- const { rendererSize: A, shownFloor: w } = v, y = /* @__PURE__ */ new Map();
1335
- function I(C) {
1336
- const L = y.get(C.id);
1334
+ const { rendererSize: A, shownFloor: C } = v, y = /* @__PURE__ */ new Map();
1335
+ function I(w) {
1336
+ const L = y.get(w.id);
1337
1337
  if (L)
1338
1338
  return L;
1339
- const { x: D, y: H, z: M } = C.position, F = new Z(D, H, M).clone().distanceTo(o.camera.position);
1340
- return y.set(C.id, F), F;
1339
+ const { x: D, y: H, z: B } = w.position, F = new Z(D, H, B).clone().distanceTo(o.camera.position);
1340
+ return y.set(w.id, F), F;
1341
1341
  }
1342
- return s.map((C) => {
1343
- const L = c(C), D = L ? d(C, A) : C.transform, H = I(C), F = s.filter((X) => X.visible && I(X) < H).length * 10;
1344
- return he(G({}, C), { visible: L, transform: D, zIndex: F });
1342
+ return s.map((w) => {
1343
+ const L = c(w), D = L ? d(w, A) : w.transform, H = I(w), F = s.filter((Y) => Y.visible && I(Y) < H).length * 10;
1344
+ return he(G({}, w), { visible: L, transform: D, zIndex: F });
1345
1345
  });
1346
1346
  }
1347
1347
  function u() {
@@ -1536,8 +1536,8 @@ function kl(i) {
1536
1536
  function Dl(i, t, e) {
1537
1537
  let { panoIndex: n } = t, { floorplanData: o } = t, { lastPanoramaLongitude: s } = t, { cameraImageUrl: r } = t;
1538
1538
  const { observers: a } = o, l = a[n], c = l.positionInImage.x, d = l.positionInImage.y, f = c * 100 + "%", u = d * 100 + "%", m = -Il(s) + 45, p = document.body.clientWidth, g = document.body.clientHeight, A = `${(p < 500 || g < 500 ? 17 : 37) / 16}rem`;
1539
- return i.$$set = (w) => {
1540
- "panoIndex" in w && e(5, n = w.panoIndex), "floorplanData" in w && e(6, o = w.floorplanData), "lastPanoramaLongitude" in w && e(7, s = w.lastPanoramaLongitude), "cameraImageUrl" in w && e(0, r = w.cameraImageUrl);
1539
+ return i.$$set = (C) => {
1540
+ "panoIndex" in C && e(5, n = C.panoIndex), "floorplanData" in C && e(6, o = C.floorplanData), "lastPanoramaLongitude" in C && e(7, s = C.lastPanoramaLongitude), "cameraImageUrl" in C && e(0, r = C.cameraImageUrl);
1541
1541
  }, [
1542
1542
  r,
1543
1543
  f,
@@ -1716,10 +1716,10 @@ function Ul(i) {
1716
1716
  o & 2 && (s.url = n[1].url), t.$set(s);
1717
1717
  },
1718
1718
  i(n) {
1719
- e || (k(t.$$.fragment, n), e = !0);
1719
+ e || (x(t.$$.fragment, n), e = !0);
1720
1720
  },
1721
1721
  o(n) {
1722
- z(t.$$.fragment, n), e = !1;
1722
+ M(t.$$.fragment, n), e = !1;
1723
1723
  },
1724
1724
  d(n) {
1725
1725
  $(t, n);
@@ -1742,10 +1742,10 @@ function Jl(i) {
1742
1742
  o & 1 && (s.content = n[0]), t.$set(s);
1743
1743
  },
1744
1744
  i(n) {
1745
- e || (k(t.$$.fragment, n), e = !0);
1745
+ e || (x(t.$$.fragment, n), e = !0);
1746
1746
  },
1747
1747
  o(n) {
1748
- z(t.$$.fragment, n), e = !1;
1748
+ M(t.$$.fragment, n), e = !1;
1749
1749
  },
1750
1750
  d(n) {
1751
1751
  $(t, n);
@@ -1767,15 +1767,15 @@ function Vl(i) {
1767
1767
  },
1768
1768
  p(l, [c]) {
1769
1769
  let d = e;
1770
- e = a(l), e === d ? ~e && r[e].p(l, c) : (n && (ue(), z(r[d], 1, 1, () => {
1770
+ e = a(l), e === d ? ~e && r[e].p(l, c) : (n && (ue(), M(r[d], 1, 1, () => {
1771
1771
  r[d] = null;
1772
- }), fe()), ~e ? (n = r[e], n ? n.p(l, c) : (n = r[e] = s[e](l), n.c()), k(n, 1), n.m(t, null)) : n = null);
1772
+ }), fe()), ~e ? (n = r[e], n ? n.p(l, c) : (n = r[e] = s[e](l), n.c()), x(n, 1), n.m(t, null)) : n = null);
1773
1773
  },
1774
1774
  i(l) {
1775
- o || (k(n), o = !0);
1775
+ o || (x(n), o = !0);
1776
1776
  },
1777
1777
  o(l) {
1778
- z(n), o = !1;
1778
+ M(n), o = !1;
1779
1779
  },
1780
1780
  d(l) {
1781
1781
  l && j(t), ~e && r[e].d();
@@ -1873,53 +1873,53 @@ function tc(i, t, e) {
1873
1873
  function m(D, H) {
1874
1874
  if (H.width === 0 || H.height === 0)
1875
1875
  return () => !1;
1876
- const M = D.path.map(({ x: ee, y: W }) => [ee, W]), F = D.roomLabel.position, { x: X, y: E } = F, { width: S, height: B } = H, N = S / 2, Y = B / 2;
1876
+ const B = D.path.map(({ x: ee, y: W }) => [ee, W]), F = D.roomLabel.position, { x: Y, y: E } = F, { width: S, height: z } = H, N = S / 2, X = z / 2;
1877
1877
  return function(W) {
1878
- const U = X * W, ae = E * W, le = M.map(([ye, Ie]) => [ye * W, Ie * W]);
1878
+ const U = Y * W, ae = E * W, le = B.map(([ye, Ie]) => [ye * W, Ie * W]);
1879
1879
  return [
1880
- [U + N, ae - Y],
1881
- [U - N, ae - Y],
1882
- [U - N, ae + Y],
1883
- [U + N, ae + Y]
1880
+ [U + N, ae - X],
1881
+ [U - N, ae - X],
1882
+ [U - N, ae + X],
1883
+ [U + N, ae + X]
1884
1884
  ].every((ye) => ec(ye, le));
1885
1885
  };
1886
1886
  }
1887
- const p = document.body.clientWidth, g = document.body.clientHeight, v = l.roomLabel, A = v.positionInImage.x * 100 + "%", w = v.positionInImage.y * 100 + "%", y = (p < 500 || g < 500 ? 10 : 14) / 16 + "rem";
1888
- let I = !1, x, C;
1887
+ const p = document.body.clientWidth, g = document.body.clientHeight, v = l.roomLabel, A = v.positionInImage.x * 100 + "%", C = v.positionInImage.y * 100 + "%", y = (p < 500 || g < 500 ? 10 : 14) / 16 + "rem";
1888
+ let I = !1, k, w;
1889
1889
  c.subscribe(function(H) {
1890
1890
  e(13, I = !!H && H.id === l.id);
1891
1891
  }), Ue(() => {
1892
- const D = x == null ? void 0 : x.getClientRects()[0];
1893
- e(14, C = {
1892
+ const D = k == null ? void 0 : k.getClientRects()[0];
1893
+ e(14, w = {
1894
1894
  width: D.width,
1895
1895
  height: D.height
1896
1896
  });
1897
1897
  });
1898
1898
  function L(D) {
1899
1899
  Qe[D ? "unshift" : "push"](() => {
1900
- x = D, e(2, x);
1900
+ k = D, e(2, k);
1901
1901
  });
1902
1902
  }
1903
1903
  return i.$$set = (D) => {
1904
1904
  "pxmm" in D && e(9, a = D.pxmm), "room" in D && e(0, l = D.room), "hoveredRoom" in D && e(10, c = D.hoveredRoom), "getRoomAreaText" in D && e(11, d = D.getRoomAreaText), "getLabelElement" in D && e(1, f = D.getLabelElement), "adaptiveRoomLabelVisibleEnable" in D && e(12, u = D.adaptiveRoomLabelVisibleEnable);
1905
1905
  }, i.$$.update = () => {
1906
- i.$$.dirty & 2049 && e(5, n = l.size ? d(l.size) : ""), i.$$.dirty & 16385 && e(15, o = C ? m(l, C) : void 0), i.$$.dirty & 3 && e(4, s = f == null ? void 0 : f(l)), i.$$.dirty & 45568 && e(3, r = u ? I ? !0 : !!(o != null && o(a)) : !0);
1906
+ i.$$.dirty & 2049 && e(5, n = l.size ? d(l.size) : ""), i.$$.dirty & 16385 && e(15, o = w ? m(l, w) : void 0), i.$$.dirty & 3 && e(4, s = f == null ? void 0 : f(l)), i.$$.dirty & 45568 && e(3, r = u ? I ? !0 : !!(o != null && o(a)) : !0);
1907
1907
  }, [
1908
1908
  l,
1909
1909
  f,
1910
- x,
1910
+ k,
1911
1911
  r,
1912
1912
  s,
1913
1913
  n,
1914
1914
  A,
1915
- w,
1915
+ C,
1916
1916
  y,
1917
1917
  a,
1918
1918
  c,
1919
1919
  d,
1920
1920
  u,
1921
1921
  I,
1922
- C,
1922
+ w,
1923
1923
  o,
1924
1924
  L
1925
1925
  ];
@@ -1977,13 +1977,13 @@ function no(i) {
1977
1977
  i(l) {
1978
1978
  if (!s) {
1979
1979
  for (let c = 0; c < r.length; c += 1)
1980
- k(e[c]);
1980
+ x(e[c]);
1981
1981
  s = !0;
1982
1982
  }
1983
1983
  },
1984
1984
  o(l) {
1985
1985
  for (let c = 0; c < e.length; c += 1)
1986
- z(e[c]);
1986
+ M(e[c]);
1987
1987
  s = !1;
1988
1988
  },
1989
1989
  d(l) {
@@ -2033,10 +2033,10 @@ function io(i, t) {
2033
2033
  n.$set(c);
2034
2034
  },
2035
2035
  i(a) {
2036
- o || (k(n.$$.fragment, a), o = !0);
2036
+ o || (x(n.$$.fragment, a), o = !0);
2037
2037
  },
2038
2038
  o(a) {
2039
- z(n.$$.fragment, a), o = !1;
2039
+ M(n.$$.fragment, a), o = !1;
2040
2040
  },
2041
2041
  d(a) {
2042
2042
  a && j(e), $(n, a);
@@ -2053,15 +2053,15 @@ function oc(i) {
2053
2053
  n && n.m(o, s), T(o, t, s), e = !0;
2054
2054
  },
2055
2055
  p(o, [s]) {
2056
- o[6] ? n ? (n.p(o, s), s & 64 && k(n, 1)) : (n = no(o), n.c(), k(n, 1), n.m(t.parentNode, t)) : n && (ue(), z(n, 1, 1, () => {
2056
+ o[6] ? n ? (n.p(o, s), s & 64 && x(n, 1)) : (n = no(o), n.c(), x(n, 1), n.m(t.parentNode, t)) : n && (ue(), M(n, 1, 1, () => {
2057
2057
  n = null;
2058
2058
  }), fe());
2059
2059
  },
2060
2060
  i(o) {
2061
- e || (k(n), e = !0);
2061
+ e || (x(n), e = !0);
2062
2062
  },
2063
2063
  o(o) {
2064
- z(n), e = !1;
2064
+ M(n), e = !1;
2065
2065
  },
2066
2066
  d(o) {
2067
2067
  n && n.d(o), o && j(t);
@@ -2218,7 +2218,7 @@ function cc(i, t, e) {
2218
2218
  });
2219
2219
  f.unshift({ left: 0, bottom: 0 }), f.push(a ? { left: 1, bottom: 0 } : { left: 0, bottom: 1 });
2220
2220
  const u = d[d.length - 1] - d[0], m = d.map((p, g, v) => {
2221
- const A = g === 0 ? 0 : p - v[g - 1], w = g === 0 ? 0 : (p + v[g - 1]) / 2, y = a ? (w - s.min.x - Rt + Ot) / l : 0, I = a ? 0 : (w - s.min.y - Rt + Ot) / c;
2221
+ const A = g === 0 ? 0 : p - v[g - 1], C = g === 0 ? 0 : (p + v[g - 1]) / 2, y = a ? (C - s.min.x - Rt + Ot) / l : 0, I = a ? 0 : (C - s.min.y - Rt + Ot) / c;
2222
2222
  return { left: y, bottom: I, distance: A };
2223
2223
  }).filter(({ distance: p }) => p / u > 0.1);
2224
2224
  return i.$$set = (p) => {
@@ -2285,10 +2285,10 @@ function co(i, t) {
2285
2285
  n.$set(c);
2286
2286
  },
2287
2287
  i(a) {
2288
- o || (k(n.$$.fragment, a), o = !0);
2288
+ o || (x(n.$$.fragment, a), o = !0);
2289
2289
  },
2290
2290
  o(a) {
2291
- z(n.$$.fragment, a), o = !1;
2291
+ M(n.$$.fragment, a), o = !1;
2292
2292
  },
2293
2293
  d(a) {
2294
2294
  a && j(e), $(n, a);
@@ -2321,13 +2321,13 @@ function fc(i) {
2321
2321
  i(a) {
2322
2322
  if (!o) {
2323
2323
  for (let l = 0; l < s.length; l += 1)
2324
- k(e[l]);
2324
+ x(e[l]);
2325
2325
  o = !0;
2326
2326
  }
2327
2327
  },
2328
2328
  o(a) {
2329
2329
  for (let l = 0; l < e.length; l += 1)
2330
- z(e[l]);
2330
+ M(e[l]);
2331
2331
  o = !1;
2332
2332
  },
2333
2333
  d(a) {
@@ -2524,10 +2524,10 @@ function Dc(i) {
2524
2524
  o & 1 && (s.path = n[5].path), t.$set(s);
2525
2525
  },
2526
2526
  i(n) {
2527
- e || (k(t.$$.fragment, n), e = !0);
2527
+ e || (x(t.$$.fragment, n), e = !0);
2528
2528
  },
2529
2529
  o(n) {
2530
- z(t.$$.fragment, n), e = !1;
2530
+ M(t.$$.fragment, n), e = !1;
2531
2531
  },
2532
2532
  d(n) {
2533
2533
  $(t, n);
@@ -2548,10 +2548,10 @@ function Lc(i) {
2548
2548
  o & 1 && (s.path = n[5].path), t.$set(s);
2549
2549
  },
2550
2550
  i(n) {
2551
- e || (k(t.$$.fragment, n), e = !0);
2551
+ e || (x(t.$$.fragment, n), e = !0);
2552
2552
  },
2553
2553
  o(n) {
2554
- z(t.$$.fragment, n), e = !1;
2554
+ M(t.$$.fragment, n), e = !1;
2555
2555
  },
2556
2556
  d(n) {
2557
2557
  $(t, n);
@@ -2572,10 +2572,10 @@ function Sc(i) {
2572
2572
  o & 1 && (s.path = n[5].path), t.$set(s);
2573
2573
  },
2574
2574
  i(n) {
2575
- e || (k(t.$$.fragment, n), e = !0);
2575
+ e || (x(t.$$.fragment, n), e = !0);
2576
2576
  },
2577
2577
  o(n) {
2578
- z(t.$$.fragment, n), e = !1;
2578
+ M(t.$$.fragment, n), e = !1;
2579
2579
  },
2580
2580
  d(n) {
2581
2581
  $(t, n);
@@ -2597,15 +2597,15 @@ function mo(i) {
2597
2597
  },
2598
2598
  p(l, c) {
2599
2599
  let d = e;
2600
- e = a(l), e === d ? r[e].p(l, c) : (ue(), z(r[d], 1, 1, () => {
2600
+ e = a(l), e === d ? r[e].p(l, c) : (ue(), M(r[d], 1, 1, () => {
2601
2601
  r[d] = null;
2602
- }), fe(), n = r[e], n ? n.p(l, c) : (n = r[e] = s[e](l), n.c()), k(n, 1), n.m(t, null));
2602
+ }), fe(), n = r[e], n ? n.p(l, c) : (n = r[e] = s[e](l), n.c()), x(n, 1), n.m(t, null));
2603
2603
  },
2604
2604
  i(l) {
2605
- o || (k(n), o = !0);
2605
+ o || (x(n), o = !0);
2606
2606
  },
2607
2607
  o(l) {
2608
- z(n), o = !1;
2608
+ M(n), o = !1;
2609
2609
  },
2610
2610
  d(l) {
2611
2611
  l && j(t), r[e].d();
@@ -2616,7 +2616,7 @@ function zc(i) {
2616
2616
  let t, e, n = i[0], o = [];
2617
2617
  for (let r = 0; r < n.length; r += 1)
2618
2618
  o[r] = mo(ho(i, n, r));
2619
- const s = (r) => z(o[r], 1, 1, () => {
2619
+ const s = (r) => M(o[r], 1, 1, () => {
2620
2620
  o[r] = null;
2621
2621
  });
2622
2622
  return {
@@ -2638,7 +2638,7 @@ function zc(i) {
2638
2638
  let l;
2639
2639
  for (l = 0; l < n.length; l += 1) {
2640
2640
  const c = ho(r, n, l);
2641
- o[l] ? (o[l].p(c, a), k(o[l], 1)) : (o[l] = mo(c), o[l].c(), k(o[l], 1), o[l].m(t, null));
2641
+ o[l] ? (o[l].p(c, a), x(o[l], 1)) : (o[l] = mo(c), o[l].c(), x(o[l], 1), o[l].m(t, null));
2642
2642
  }
2643
2643
  for (ue(), l = n.length; l < o.length; l += 1)
2644
2644
  s(l);
@@ -2648,14 +2648,14 @@ function zc(i) {
2648
2648
  i(r) {
2649
2649
  if (!e) {
2650
2650
  for (let a = 0; a < n.length; a += 1)
2651
- k(o[a]);
2651
+ x(o[a]);
2652
2652
  e = !0;
2653
2653
  }
2654
2654
  },
2655
2655
  o(r) {
2656
2656
  o = o.filter(Boolean);
2657
2657
  for (let a = 0; a < o.length; a += 1)
2658
- z(o[a]);
2658
+ M(o[a]);
2659
2659
  e = !1;
2660
2660
  },
2661
2661
  d(r) {
@@ -2775,10 +2775,10 @@ function go(i, t) {
2775
2775
  n.$set(c);
2776
2776
  },
2777
2777
  i(a) {
2778
- o || (k(n.$$.fragment, a), o = !0);
2778
+ o || (x(n.$$.fragment, a), o = !0);
2779
2779
  },
2780
2780
  o(a) {
2781
- z(n.$$.fragment, a), o = !1;
2781
+ M(n.$$.fragment, a), o = !1;
2782
2782
  },
2783
2783
  d(a) {
2784
2784
  a && j(e), $(n, a);
@@ -2811,13 +2811,13 @@ function Hc(i) {
2811
2811
  i(l) {
2812
2812
  if (!s) {
2813
2813
  for (let c = 0; c < r.length; c += 1)
2814
- k(n[c]);
2814
+ x(n[c]);
2815
2815
  s = !0;
2816
2816
  }
2817
2817
  },
2818
2818
  o(l) {
2819
2819
  for (let c = 0; c < n.length; c += 1)
2820
- z(n[c]);
2820
+ M(n[c]);
2821
2821
  s = !1;
2822
2822
  },
2823
2823
  d(l) {
@@ -2884,10 +2884,10 @@ function Ao(i) {
2884
2884
  t.$set(a);
2885
2885
  },
2886
2886
  i(s) {
2887
- e || (k(t.$$.fragment, s), e = !0);
2887
+ e || (x(t.$$.fragment, s), e = !0);
2888
2888
  },
2889
2889
  o(s) {
2890
- z(t.$$.fragment, s), e = !1;
2890
+ M(t.$$.fragment, s), e = !1;
2891
2891
  },
2892
2892
  d(s) {
2893
2893
  $(t, s);
@@ -2930,10 +2930,10 @@ function vo(i) {
2930
2930
  t.$set(a);
2931
2931
  },
2932
2932
  i(s) {
2933
- e || (k(t.$$.fragment, s), e = !0);
2933
+ e || (x(t.$$.fragment, s), e = !0);
2934
2934
  },
2935
2935
  o(s) {
2936
- z(t.$$.fragment, s), e = !1;
2936
+ M(t.$$.fragment, s), e = !1;
2937
2937
  },
2938
2938
  d(s) {
2939
2939
  $(t, s);
@@ -2970,10 +2970,10 @@ function bo(i) {
2970
2970
  t.$set(a);
2971
2971
  },
2972
2972
  i(s) {
2973
- e || (k(t.$$.fragment, s), e = !0);
2973
+ e || (x(t.$$.fragment, s), e = !0);
2974
2974
  },
2975
2975
  o(s) {
2976
- z(t.$$.fragment, s), e = !1;
2976
+ M(t.$$.fragment, s), e = !1;
2977
2977
  },
2978
2978
  d(s) {
2979
2979
  $(t, s);
@@ -3008,36 +3008,36 @@ function Nc(i) {
3008
3008
  c() {
3009
3009
  t = O("div"), _(e.$$.fragment), n = V(), u && u.c(), o = V(), _(s.$$.fragment), r = V(), g && g.c(), a = V(), v && v.c(), b(t, "class", l = Te(`floorplan-plugin__floor${i[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz");
3010
3010
  },
3011
- m(A, w) {
3012
- T(A, t, w), K(e, t, null), Q(t, n), u && u.m(t, null), Q(t, o), K(s, t, null), Q(t, r), g && g.m(t, null), Q(t, a), v && v.m(t, null), c = !0;
3011
+ m(A, C) {
3012
+ T(A, t, C), K(e, t, null), Q(t, n), u && u.m(t, null), Q(t, o), K(s, t, null), Q(t, r), g && g.m(t, null), Q(t, a), v && v.m(t, null), c = !0;
3013
3013
  },
3014
- p(A, [w]) {
3015
- const y = w & 34 ? ze(d, [
3014
+ p(A, [C]) {
3015
+ const y = C & 34 ? ze(d, [
3016
3016
  {
3017
3017
  floorIndex: A[1],
3018
3018
  floorplanData: A[5]
3019
3019
  }
3020
3020
  ]) : {};
3021
- e.$set(y), A[2] ? u ? (u.p(A, w), w & 4 && k(u, 1)) : (u = Ao(A), u.c(), k(u, 1), u.m(t, o)) : u && (ue(), z(u, 1, 1, () => {
3021
+ e.$set(y), A[2] ? u ? (u.p(A, C), C & 4 && x(u, 1)) : (u = Ao(A), u.c(), x(u, 1), u.m(t, o)) : u && (ue(), M(u, 1, 1, () => {
3022
3022
  u = null;
3023
3023
  }), fe());
3024
- const I = w & 34 ? ze(m, [
3024
+ const I = C & 34 ? ze(m, [
3025
3025
  {
3026
3026
  floorplanData: A[5],
3027
3027
  floorIndex: A[1]
3028
3028
  }
3029
3029
  ]) : {};
3030
- s.$set(I), A[3] ? g ? (g.p(A, w), w & 8 && k(g, 1)) : (g = vo(A), g.c(), k(g, 1), g.m(t, a)) : g && (ue(), z(g, 1, 1, () => {
3030
+ s.$set(I), A[3] ? g ? (g.p(A, C), C & 8 && x(g, 1)) : (g = vo(A), g.c(), x(g, 1), g.m(t, a)) : g && (ue(), M(g, 1, 1, () => {
3031
3031
  g = null;
3032
- }), fe()), A[4] ? v ? (v.p(A, w), w & 16 && k(v, 1)) : (v = bo(A), v.c(), k(v, 1), v.m(t, null)) : v && (ue(), z(v, 1, 1, () => {
3032
+ }), fe()), A[4] ? v ? (v.p(A, C), C & 16 && x(v, 1)) : (v = bo(A), v.c(), x(v, 1), v.m(t, null)) : v && (ue(), M(v, 1, 1, () => {
3033
3033
  v = null;
3034
- }), fe()), (!c || w & 1 && l !== (l = Te(`floorplan-plugin__floor${A[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz")) && b(t, "class", l);
3034
+ }), fe()), (!c || C & 1 && l !== (l = Te(`floorplan-plugin__floor${A[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz")) && b(t, "class", l);
3035
3035
  },
3036
3036
  i(A) {
3037
- c || (k(e.$$.fragment, A), k(u), k(s.$$.fragment, A), k(g), k(v), c = !0);
3037
+ c || (x(e.$$.fragment, A), x(u), x(s.$$.fragment, A), x(g), x(v), c = !0);
3038
3038
  },
3039
3039
  o(A) {
3040
- z(e.$$.fragment, A), z(u), z(s.$$.fragment, A), z(g), z(v), c = !1;
3040
+ M(e.$$.fragment, A), M(u), M(s.$$.fragment, A), M(g), M(v), c = !1;
3041
3041
  },
3042
3042
  d(A) {
3043
3043
  A && j(t), $(e), u && u.d(), $(s), g && g.d(), v && v.d();
@@ -3098,7 +3098,7 @@ function wo(i) {
3098
3098
  let t, e, n, o, s, r, a = i[9].floorDatas, l = [];
3099
3099
  for (let m = 0; m < a.length; m += 1)
3100
3100
  l[m] = Co(yo(i, a, m));
3101
- const c = (m) => z(l[m], 1, 1, () => {
3101
+ const c = (m) => M(l[m], 1, 1, () => {
3102
3102
  l[m] = null;
3103
3103
  }), d = [
3104
3104
  {
@@ -3132,7 +3132,7 @@ function wo(i) {
3132
3132
  let v;
3133
3133
  for (v = 0; v < a.length; v += 1) {
3134
3134
  const A = yo(i, a, v);
3135
- l[v] ? (l[v].p(A, p), k(l[v], 1)) : (l[v] = Co(A), l[v].c(), k(l[v], 1), l[v].m(t, e));
3135
+ l[v] ? (l[v].p(A, p), x(l[v], 1)) : (l[v] = Co(A), l[v].c(), x(l[v], 1), l[v].m(t, e));
3136
3136
  }
3137
3137
  for (ue(), v = a.length; v < l.length; v += 1)
3138
3138
  c(v);
@@ -3146,15 +3146,15 @@ function wo(i) {
3146
3146
  cameraImageUrl: i[11]
3147
3147
  }
3148
3148
  ]) : {};
3149
- n.$set(g), i[6] ? u ? (u.p(i, p), p & 64 && k(u, 1)) : (u = Eo(i), u.c(), k(u, 1), u.m(t, null)) : u && (ue(), z(u, 1, 1, () => {
3149
+ n.$set(g), i[6] ? u ? (u.p(i, p), p & 64 && x(u, 1)) : (u = Eo(i), u.c(), x(u, 1), u.m(t, null)) : u && (ue(), M(u, 1, 1, () => {
3150
3150
  u = null;
3151
3151
  }), fe());
3152
3152
  },
3153
3153
  i(m) {
3154
3154
  if (!r) {
3155
3155
  for (let p = 0; p < a.length; p += 1)
3156
- k(l[p]);
3157
- k(n.$$.fragment, m), k(u), s || Re(() => {
3156
+ x(l[p]);
3157
+ x(n.$$.fragment, m), x(u), s || Re(() => {
3158
3158
  s = jt(t, St, {
3159
3159
  duration: i[0],
3160
3160
  easing: li
@@ -3165,8 +3165,8 @@ function wo(i) {
3165
3165
  o(m) {
3166
3166
  l = l.filter(Boolean);
3167
3167
  for (let p = 0; p < l.length; p += 1)
3168
- z(l[p]);
3169
- z(n.$$.fragment, m), z(u), r = !1;
3168
+ M(l[p]);
3169
+ M(n.$$.fragment, m), M(u), r = !1;
3170
3170
  },
3171
3171
  d(m) {
3172
3172
  m && j(t), tt(l, m), $(n), u && u.d();
@@ -3225,10 +3225,10 @@ function Co(i) {
3225
3225
  t.$set(a);
3226
3226
  },
3227
3227
  i(s) {
3228
- e || (k(t.$$.fragment, s), e = !0);
3228
+ e || (x(t.$$.fragment, s), e = !0);
3229
3229
  },
3230
3230
  o(s) {
3231
- z(t.$$.fragment, s), e = !1;
3231
+ M(t.$$.fragment, s), e = !1;
3232
3232
  },
3233
3233
  d(s) {
3234
3234
  $(t, s);
@@ -3254,10 +3254,10 @@ function Eo(i) {
3254
3254
  o & 512 && (s.floorplanData = n[9]), o & 4 && (s.northDesc = n[2]), t.$set(s);
3255
3255
  },
3256
3256
  i(n) {
3257
- e || (k(t.$$.fragment, n), e = !0);
3257
+ e || (x(t.$$.fragment, n), e = !0);
3258
3258
  },
3259
3259
  o(n) {
3260
- z(t.$$.fragment, n), e = !1;
3260
+ M(t.$$.fragment, n), e = !1;
3261
3261
  },
3262
3262
  d(n) {
3263
3263
  $(t, n);
@@ -3274,15 +3274,15 @@ function Uc(i) {
3274
3274
  n && n.m(o, s), T(o, t, s), e = !0;
3275
3275
  },
3276
3276
  p(o, [s]) {
3277
- o[1] ? n ? (n.p(o, s), s & 2 && k(n, 1)) : (n = wo(o), n.c(), k(n, 1), n.m(t.parentNode, t)) : n && (ue(), z(n, 1, 1, () => {
3277
+ o[1] ? n ? (n.p(o, s), s & 2 && x(n, 1)) : (n = wo(o), n.c(), x(n, 1), n.m(t.parentNode, t)) : n && (ue(), M(n, 1, 1, () => {
3278
3278
  n = null;
3279
3279
  }), fe());
3280
3280
  },
3281
3281
  i(o) {
3282
- e || (k(n), e = !0);
3282
+ e || (x(n), e = !0);
3283
3283
  },
3284
3284
  o(o) {
3285
- z(n), e = !1;
3285
+ M(n), e = !1;
3286
3286
  },
3287
3287
  d(o) {
3288
3288
  n && n.d(o), o && j(t);
@@ -3290,9 +3290,9 @@ function Uc(i) {
3290
3290
  };
3291
3291
  }
3292
3292
  function Jc(i, t, e) {
3293
- let { duration: n = 0 } = t, { visible: o } = t, { northDesc: s } = t, { panoIndex: r } = t, { floorIndex: a } = t, { hoverEnable: l } = t, { compassEnable: c } = t, { roomLabelsEnable: d } = t, { ruleLabelsEnable: f } = t, { floorplanData: u } = t, { lastPanoramaLongitude: m } = t, { cameraImageUrl: p } = t, { getRoomAreaText: g } = t, { getLabelElement: v } = t, { getRuleDistanceText: A } = t, { adaptiveRoomLabelVisibleEnable: w } = t;
3293
+ let { duration: n = 0 } = t, { visible: o } = t, { northDesc: s } = t, { panoIndex: r } = t, { floorIndex: a } = t, { hoverEnable: l } = t, { compassEnable: c } = t, { roomLabelsEnable: d } = t, { ruleLabelsEnable: f } = t, { floorplanData: u } = t, { lastPanoramaLongitude: m } = t, { cameraImageUrl: p } = t, { getRoomAreaText: g } = t, { getLabelElement: v } = t, { getRuleDistanceText: A } = t, { adaptiveRoomLabelVisibleEnable: C } = t;
3294
3294
  return i.$$set = (y) => {
3295
- "duration" in y && e(0, n = y.duration), "visible" in y && e(1, o = y.visible), "northDesc" in y && e(2, s = y.northDesc), "panoIndex" in y && e(3, r = y.panoIndex), "floorIndex" in y && e(4, a = y.floorIndex), "hoverEnable" in y && e(5, l = y.hoverEnable), "compassEnable" in y && e(6, c = y.compassEnable), "roomLabelsEnable" in y && e(7, d = y.roomLabelsEnable), "ruleLabelsEnable" in y && e(8, f = y.ruleLabelsEnable), "floorplanData" in y && e(9, u = y.floorplanData), "lastPanoramaLongitude" in y && e(10, m = y.lastPanoramaLongitude), "cameraImageUrl" in y && e(11, p = y.cameraImageUrl), "getRoomAreaText" in y && e(12, g = y.getRoomAreaText), "getLabelElement" in y && e(13, v = y.getLabelElement), "getRuleDistanceText" in y && e(14, A = y.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in y && e(15, w = y.adaptiveRoomLabelVisibleEnable);
3295
+ "duration" in y && e(0, n = y.duration), "visible" in y && e(1, o = y.visible), "northDesc" in y && e(2, s = y.northDesc), "panoIndex" in y && e(3, r = y.panoIndex), "floorIndex" in y && e(4, a = y.floorIndex), "hoverEnable" in y && e(5, l = y.hoverEnable), "compassEnable" in y && e(6, c = y.compassEnable), "roomLabelsEnable" in y && e(7, d = y.roomLabelsEnable), "ruleLabelsEnable" in y && e(8, f = y.ruleLabelsEnable), "floorplanData" in y && e(9, u = y.floorplanData), "lastPanoramaLongitude" in y && e(10, m = y.lastPanoramaLongitude), "cameraImageUrl" in y && e(11, p = y.cameraImageUrl), "getRoomAreaText" in y && e(12, g = y.getRoomAreaText), "getLabelElement" in y && e(13, v = y.getLabelElement), "getRuleDistanceText" in y && e(14, A = y.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in y && e(15, C = y.adaptiveRoomLabelVisibleEnable);
3296
3296
  }, [
3297
3297
  n,
3298
3298
  o,
@@ -3309,7 +3309,7 @@ function Jc(i, t, e) {
3309
3309
  g,
3310
3310
  v,
3311
3311
  A,
3312
- w
3312
+ C
3313
3313
  ];
3314
3314
  }
3315
3315
  class Li extends te {
@@ -4344,8 +4344,8 @@ function hd(i, t, e) {
4344
4344
  const v = p.bounding, A = p.observers[g];
4345
4345
  if (!A)
4346
4346
  return "";
4347
- const w = (v.max.x - v.min.x) * r, y = (v.max.y - v.min.y) * r, I = Math.floor(A.positionInImage.x * w), x = Math.floor(A.positionInImage.y * y);
4348
- return `translate(${I}px, ${x}px)`;
4347
+ const C = (v.max.x - v.min.x) * r, y = (v.max.y - v.min.y) * r, I = Math.floor(A.positionInImage.x * C), k = Math.floor(A.positionInImage.y * y);
4348
+ return `translate(${I}px, ${k}px)`;
4349
4349
  }
4350
4350
  function u(p) {
4351
4351
  e(6, c = p);
@@ -4493,10 +4493,10 @@ function ko(i) {
4493
4493
  t.$set(a);
4494
4494
  },
4495
4495
  i(s) {
4496
- e || (k(t.$$.fragment, s), e = !0);
4496
+ e || (x(t.$$.fragment, s), e = !0);
4497
4497
  },
4498
4498
  o(s) {
4499
- z(t.$$.fragment, s), e = !1;
4499
+ M(t.$$.fragment, s), e = !1;
4500
4500
  },
4501
4501
  d(s) {
4502
4502
  $(t, s);
@@ -4536,15 +4536,15 @@ function bd(i) {
4536
4536
  ]) : {};
4537
4537
  t.$set(u);
4538
4538
  const m = {};
4539
- f & 32 && (m.extraObjects = d[5]), n.$set(m), d[3] ? c ? (c.p(d, f), f & 8 && k(c, 1)) : (c = ko(d), c.c(), k(c, 1), c.m(s.parentNode, s)) : c && (ue(), z(c, 1, 1, () => {
4539
+ f & 32 && (m.extraObjects = d[5]), n.$set(m), d[3] ? c ? (c.p(d, f), f & 8 && x(c, 1)) : (c = ko(d), c.c(), x(c, 1), c.m(s.parentNode, s)) : c && (ue(), M(c, 1, 1, () => {
4540
4540
  c = null;
4541
4541
  }), fe());
4542
4542
  },
4543
4543
  i(d) {
4544
- r || (k(t.$$.fragment, d), k(n.$$.fragment, d), k(c), r = !0);
4544
+ r || (x(t.$$.fragment, d), x(n.$$.fragment, d), x(c), r = !0);
4545
4545
  },
4546
4546
  o(d) {
4547
- z(t.$$.fragment, d), z(n.$$.fragment, d), z(c), r = !1;
4547
+ M(t.$$.fragment, d), M(n.$$.fragment, d), M(c), r = !1;
4548
4548
  },
4549
4549
  d(d) {
4550
4550
  $(t, d), d && j(e), $(n, d), d && j(o), c && c.d(d), d && j(s);
@@ -4594,15 +4594,15 @@ function Do(i) {
4594
4594
  T(s, t, r), o && o.m(t, null), e = gt(t, i[12].bind(t)), n = !0;
4595
4595
  },
4596
4596
  p(s, r) {
4597
- s[6] !== 0 ? o ? (o.p(s, r), r & 64 && k(o, 1)) : (o = Lo(s), o.c(), k(o, 1), o.m(t, null)) : o && (ue(), z(o, 1, 1, () => {
4597
+ s[6] !== 0 ? o ? (o.p(s, r), r & 64 && x(o, 1)) : (o = Lo(s), o.c(), x(o, 1), o.m(t, null)) : o && (ue(), M(o, 1, 1, () => {
4598
4598
  o = null;
4599
4599
  }), fe());
4600
4600
  },
4601
4601
  i(s) {
4602
- n || (k(o), n = !0);
4602
+ n || (x(o), n = !0);
4603
4603
  },
4604
4604
  o(s) {
4605
- z(o), n = !1;
4605
+ M(o), n = !1;
4606
4606
  },
4607
4607
  d(s) {
4608
4608
  s && j(t), o && o.d(), e();
@@ -4666,10 +4666,10 @@ function Lo(i) {
4666
4666
  o.$set(g), m & 256 && s !== (s = `${u[8]}px`) && R(t, "width", s, !1), m & 2048 && r !== (r = `${u[11]}px`) && R(t, "height", r, !1);
4667
4667
  },
4668
4668
  i(u) {
4669
- a || (k(e.$$.fragment, u), k(o.$$.fragment, u), a = !0);
4669
+ a || (x(e.$$.fragment, u), x(o.$$.fragment, u), a = !0);
4670
4670
  },
4671
4671
  o(u) {
4672
- z(e.$$.fragment, u), z(o.$$.fragment, u), a = !1;
4672
+ M(e.$$.fragment, u), M(o.$$.fragment, u), a = !1;
4673
4673
  },
4674
4674
  d(u) {
4675
4675
  u && j(t), $(e), $(o);
@@ -4686,15 +4686,15 @@ function Ed(i) {
4686
4686
  n && n.m(o, s), T(o, t, s), e = !0;
4687
4687
  },
4688
4688
  p(o, [s]) {
4689
- o[1] ? n ? (n.p(o, s), s & 2 && k(n, 1)) : (n = Do(o), n.c(), k(n, 1), n.m(t.parentNode, t)) : n && (ue(), z(n, 1, 1, () => {
4689
+ o[1] ? n ? (n.p(o, s), s & 2 && x(n, 1)) : (n = Do(o), n.c(), x(n, 1), n.m(t.parentNode, t)) : n && (ue(), M(n, 1, 1, () => {
4690
4690
  n = null;
4691
4691
  }), fe());
4692
4692
  },
4693
4693
  i(o) {
4694
- e || (k(n), e = !0);
4694
+ e || (x(n), e = !0);
4695
4695
  },
4696
4696
  o(o) {
4697
- z(n), e = !1;
4697
+ M(n), e = !1;
4698
4698
  },
4699
4699
  d(o) {
4700
4700
  n && n.d(o), o && j(t);
@@ -4702,8 +4702,8 @@ function Ed(i) {
4702
4702
  };
4703
4703
  }
4704
4704
  function Pd(i, t, e) {
4705
- var A, w;
4706
- let { five: n } = t, { visible: o } = t, { hoverEnable: s } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, c = 0, d = (w = (A = n.work.observers[n.getCurrentState().panoIndex]) == null ? void 0 : A.floorIndex) != null ? w : 0, f = 0, u = 0, m = 0, p = 0;
4705
+ var A, C;
4706
+ let { five: n } = t, { visible: o } = t, { hoverEnable: s } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, c = 0, d = (C = (A = n.work.observers[n.getCurrentState().panoIndex]) == null ? void 0 : A.floorIndex) != null ? C : 0, f = 0, u = 0, m = 0, p = 0;
4707
4707
  function g(y) {
4708
4708
  e(10, d = n.work.observers[y].floorIndex);
4709
4709
  }
@@ -4717,10 +4717,10 @@ function Pd(i, t, e) {
4717
4717
  "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);
4718
4718
  }, i.$$.update = () => {
4719
4719
  if (i.$$.dirty & 456) {
4720
- const y = Math.min(f, u), { max: I, min: x } = r.bounding, C = I.x - x.x, L = I.y - x.y, D = function() {
4721
- return C > L ? [y, y / C * L] : [y / L * C, y];
4720
+ const y = Math.min(f, u), { max: I, min: k } = r.bounding, w = I.x - k.x, L = I.y - k.y, D = function() {
4721
+ return w > L ? [y, y / w * L] : [y / L * w, y];
4722
4722
  }();
4723
- e(8, m = D[0]), e(11, p = D[1]), e(9, c = m / C);
4723
+ e(8, m = D[0]), e(11, p = D[1]), e(9, c = m / w);
4724
4724
  }
4725
4725
  }, [
4726
4726
  n,
@@ -5006,8 +5006,8 @@ function zr(i, t) {
5006
5006
  const qg = (i, t) => {
5007
5007
  var d;
5008
5008
  const e = t.fbx_url || "//vrlab-static.ljcdn.com/release/web/v3/dipan3/dipan.FBX", n = (d = t.north_rad) != null ? d : void 0, o = {}, s = (f) => J(void 0, null, function* () {
5009
- var X;
5010
- const u = (f == null ? void 0 : f.fbx_url) || e, m = (X = f == null ? void 0 : f.north_rad) != null ? X : n;
5009
+ var Y;
5010
+ const u = (f == null ? void 0 : f.fbx_url) || e, m = (Y = f == null ? void 0 : f.north_rad) != null ? Y : n;
5011
5011
  if (typeof m != "number")
5012
5012
  throw new Error('"northRad"\u914D\u7F6E\u53C2\u6570\u7F3A\u5931\uFF1A\u672A\u914D\u7F6E\u6307\u5357\u9488\u6307\u5411\uFF01');
5013
5013
  const p = i.model.bounding, g = p.max.x - p.min.x, v = p.max.z - p.min.z, A = Math.max(g, v), y = yield new vr().loadAsync(u);
@@ -5019,14 +5019,14 @@ const qg = (i, t) => {
5019
5019
  const I = [0, m - Math.PI / 2, 0], {
5020
5020
  model: {
5021
5021
  bounding: {
5022
- max: { x, z: C },
5022
+ max: { x: k, z: w },
5023
5023
  min: { x: L, y: D, z: H }
5024
5024
  }
5025
5025
  }
5026
5026
  } = i;
5027
5027
  o.yBase = D;
5028
- const M = { x: (x + L) / 2, y: D - 1.6, z: (C + H) / 2 }, F = 45e-4 * A;
5029
- return kd(y, { position: M, rotation: I, scale: F }), o.object = y, !0;
5028
+ const B = { x: (k + L) / 2, y: D - 1.6, z: (w + H) / 2 }, F = 45e-4 * A;
5029
+ return kd(y, { position: B, rotation: I, scale: F }), o.object = y, !0;
5030
5030
  }), r = ({ latitude: f }) => {
5031
5031
  if (!o.object)
5032
5032
  return;
@@ -5059,55 +5059,55 @@ function Dd(i, t) {
5059
5059
  }
5060
5060
  const Ld = ({ x: i, y: t, z: e }) => new Z(i, t, e), _g = (i, t) => {
5061
5061
  var g, v, A;
5062
- const e = {}, n = (g = t.animationEnabled) != null ? g : !0, o = (v = t.position) != null ? v : void 0, s = (A = t.rad) != null ? A : void 0, r = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", a = [], l = (w) => J(void 0, null, function* () {
5063
- var H, M, F, X, E, S, B;
5064
- const y = (H = w == null ? void 0 : w.position) != null ? H : o;
5062
+ const e = {}, n = (g = t.animationEnabled) != null ? g : !0, o = (v = t.position) != null ? v : void 0, s = (A = t.rad) != null ? A : void 0, r = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", a = [], l = (C) => J(void 0, null, function* () {
5063
+ var H, B, F, Y, E, S, z;
5064
+ const y = (H = C == null ? void 0 : C.position) != null ? H : o;
5065
5065
  if (!y)
5066
5066
  return Promise.reject("ModelEntryDoorGuidePlugin.load(): position is undefined");
5067
- const I = Ld(y), x = (M = w == null ? void 0 : w.rad) != null ? M : s, C = (F = w == null ? void 0 : w.fbx_url) != null ? F : r;
5068
- if (e.rad = x, x === void 0)
5069
- return Promise.reject(`ModelEntryDoorGuidePlugin.load(): rad is ${x}`);
5070
- const L = yield new vr().loadAsync(C);
5071
- L.position.copy(I), L.rotation.z = x, L.scale.set(0.8, 0.8, 0.8), zr(L, { transparent: !0, side: P.DoubleSide });
5072
- const D = (B = (S = (E = (X = L.children) == null ? void 0 : X[0]) == null ? void 0 : E.children) == null ? void 0 : S[3]) == null ? void 0 : B.clone();
5067
+ const I = Ld(y), k = (B = C == null ? void 0 : C.rad) != null ? B : s, w = (F = C == null ? void 0 : C.fbx_url) != null ? F : r;
5068
+ if (e.rad = k, k === void 0)
5069
+ return Promise.reject(`ModelEntryDoorGuidePlugin.load(): rad is ${k}`);
5070
+ const L = yield new vr().loadAsync(w);
5071
+ L.position.copy(I), L.rotation.z = k, L.scale.set(0.8, 0.8, 0.8), zr(L, { transparent: !0, side: P.DoubleSide });
5072
+ const D = (z = (S = (E = (Y = L.children) == null ? void 0 : Y[0]) == null ? void 0 : E.children) == null ? void 0 : S[3]) == null ? void 0 : z.clone();
5073
5073
  return D ? (D.material = new qt({ transparent: !0, map: Dd("\u5165\u6237\u95E8") }), D.renderOrder = 3, L.children[0].add(D), e.object = L, !0) : Promise.reject(`ModelEntryDoorGuidePlugin.load(): textMesh is ${D}`);
5074
5074
  }), c = () => {
5075
5075
  if (e.animation)
5076
5076
  return;
5077
5077
  if (!e.object)
5078
5078
  return console.error("ModelEntryDoorGuidePlugin.initAnimation(): state.object is ", e.object);
5079
- const w = 1, y = new Da(e.object);
5079
+ const C = 1, y = new Da(e.object);
5080
5080
  a.push(y);
5081
5081
  const I = y.clipAction(e.object.animations[0]);
5082
- I.timeScale = w;
5083
- let x;
5084
- const C = () => {
5085
- let M = 0, F = 0;
5086
- const X = 1e3 / 30, E = (S) => {
5087
- M = requestAnimationFrame(E);
5088
- const B = S - F;
5089
- B < X || (F = S, a.forEach((N) => N.update(B / 1e3)), i.needsRender = !0);
5082
+ I.timeScale = C;
5083
+ let k;
5084
+ const w = () => {
5085
+ let B = 0, F = 0;
5086
+ const Y = 1e3 / 30, E = (S) => {
5087
+ B = requestAnimationFrame(E);
5088
+ const z = S - F;
5089
+ z < Y || (F = S, a.forEach((N) => N.update(z / 1e3)), i.needsRender = !0);
5090
5090
  };
5091
- return M = requestAnimationFrame(E), () => {
5092
- cancelAnimationFrame(M);
5091
+ return B = requestAnimationFrame(E), () => {
5092
+ cancelAnimationFrame(B);
5093
5093
  };
5094
5094
  }, H = { play: () => {
5095
- x || (I.play(), x = C(), requestAnimationFrame(() => {
5095
+ k || (I.play(), k = w(), requestAnimationFrame(() => {
5096
5096
  e.object && e.object.rotation.z !== e.rad && (e.object.rotation.z = e.rad);
5097
5097
  }));
5098
5098
  }, stop: () => {
5099
- I.stop(), x == null || x(), x = void 0;
5099
+ I.stop(), k == null || k(), k = void 0;
5100
5100
  } };
5101
5101
  e.animation = H;
5102
- }, d = (w) => {
5102
+ }, d = (C) => {
5103
5103
  var I;
5104
5104
  if (!e.object)
5105
5105
  return console.error("ModelEntryDoorGuidePlugin.enable(): object is ", e.object);
5106
- ((I = w == null ? void 0 : w.animationEnable) != null ? I : n) && (e.animation || c(), e.animation.play()), i.scene.add(e.object), i.needsRender = !0;
5106
+ ((I = C == null ? void 0 : C.animationEnable) != null ? I : n) && (e.animation || c(), e.animation.play()), i.scene.add(e.object), i.needsRender = !0;
5107
5107
  }, f = () => {
5108
5108
  !e.object || (e.animation && e.animation.stop(), i.scene.remove(e.object), i.needsRender = !0);
5109
- }, u = (w) => w === "Floorplan" ? d() : f();
5110
- return { load: l, enable: (w) => (e.enabled || (e.enabled = !0, u(i.currentMode), i.on("modeChange", u), d(w)), !0), disable: () => (e.enabled && (e.enabled = !1, f(), i.off("modeChange", u)), !0) };
5109
+ }, u = (C) => C === "Floorplan" ? d() : f();
5110
+ return { load: l, enable: (C) => (e.enabled || (e.enabled = !0, u(i.currentMode), i.on("modeChange", u), d(C)), !0), disable: () => (e.enabled && (e.enabled = !1, f(), i.off("modeChange", u)), !0) };
5111
5111
  };
5112
5112
  class ji extends Zt.Tween {
5113
5113
  constructor() {
@@ -5234,9 +5234,9 @@ const ui = (i, t, e) => {
5234
5234
  m(!0);
5235
5235
  }, v = () => {
5236
5236
  m(!1);
5237
- }, A = s.rotateSpeed ? Math.ceil(Math.abs(u.longitude - f.longitude) / s.rotateSpeed * 1e3) : r, w = jd(A, Qn.Easing.Linear.None).onUpdate(p).onComplete(g).onDestroy(v);
5238
- s.rotation === ot.Loop && w.repeat(1 / 0).yoyo(!0), t.interruptCallback = (y = !0) => {
5239
- w.destroy(), t.interruptCallback = void 0, t.timeoutId && (clearTimeout(t.timeoutId), t.timeoutId = void 0), m(y);
5237
+ }, A = s.rotateSpeed ? Math.ceil(Math.abs(u.longitude - f.longitude) / s.rotateSpeed * 1e3) : r, C = jd(A, Qn.Easing.Linear.None).onUpdate(p).onComplete(g).onDestroy(v);
5238
+ s.rotation === ot.Loop && C.repeat(1 / 0).yoyo(!0), t.interruptCallback = (y = !0) => {
5239
+ C.destroy(), t.interruptCallback = void 0, t.timeoutId && (clearTimeout(t.timeoutId), t.timeoutId = void 0), m(y);
5240
5240
  }, t.timeoutId = setTimeout(() => {
5241
5241
  t.interruptCallback && t.interruptCallback(!0);
5242
5242
  }, r);
@@ -5410,8 +5410,8 @@ const Rd = `<style type="text/css">
5410
5410
  <div class="PanoRulerPlugin-rule-label-name">${e.options.distanceText(v)}</div>
5411
5411
  </div>
5412
5412
  </div>
5413
- `, w = document.createElement("div");
5414
- return w.setAttribute("class", "PanoRulerPlugin-rule"), w.setAttribute("data-name", g), w.setAttribute("style", "display: none"), w.innerHTML = A, w;
5413
+ `, C = document.createElement("div");
5414
+ return C.setAttribute("class", "PanoRulerPlugin-rule"), C.setAttribute("data-name", g), C.setAttribute("style", "display: none"), C.innerHTML = A, C;
5415
5415
  }, o = document.createElement("div");
5416
5416
  o.setAttribute(
5417
5417
  "style",
@@ -5422,62 +5422,62 @@ const Rd = `<style type="text/css">
5422
5422
  const r = {}, a = (g, v) => {
5423
5423
  if (e.loaded)
5424
5424
  throw new Error("\u6807\u5C3A\u88AB\u91CD\u590D\u521D\u59CB\u5316\uFF01");
5425
- const A = Hd(g, i), w = i.work;
5426
- if (!w)
5425
+ const A = Hd(g, i), C = i.work;
5426
+ if (!C)
5427
5427
  return !1;
5428
5428
  for (const y in v) {
5429
- const I = v[y], { standingPosition: x } = w.observers[0], C = I.map(({ x: L, z: D, observers: H }) => {
5430
- const M = H.length > 0 ? g.rooms[g.observers[H[0]]].name : "", F = A[M] ? A[M].floor : null;
5431
- let X = 1 / 0, E = {
5429
+ const I = v[y], { standingPosition: k } = C.observers[0], w = I.map(({ x: L, z: D, observers: H }) => {
5430
+ const B = H.length > 0 ? g.rooms[g.observers[H[0]]].name : "", F = A[B] ? A[B].floor : null;
5431
+ let Y = 1 / 0, E = {
5432
5432
  index: 0,
5433
- x: x.x,
5434
- y: x.y,
5435
- z: x.z
5433
+ x: k.x,
5434
+ y: k.y,
5435
+ z: k.z
5436
5436
  };
5437
5437
  H.forEach((W) => {
5438
- if (!w.observers[W])
5438
+ if (!C.observers[W])
5439
5439
  return;
5440
- const { standingPosition: U } = w.observers[W], ae = {
5440
+ const { standingPosition: U } = C.observers[W], ae = {
5441
5441
  index: W,
5442
5442
  x: U.x,
5443
5443
  y: U.y,
5444
5444
  z: U.z
5445
5445
  }, le = Od({ x: L, z: D }, ae);
5446
- F ? le < X && Math.abs(ae.y - F) < 0.3 && (X = le, E = ae) : le < X && (X = le, E = ae);
5446
+ F ? le < Y && Math.abs(ae.y - F) < 0.3 && (Y = le, E = ae) : le < Y && (Y = le, E = ae);
5447
5447
  });
5448
5448
  const S = new Z(L, E.y, D);
5449
5449
  Object.assign(S, { observers: H });
5450
- const B = A[M] ? A[M].roof : null, N = B ? new Z(L, B, D) : null;
5450
+ const z = A[B] ? A[B].roof : null, N = z ? new Z(L, z, D) : null;
5451
5451
  return N && Object.assign(N, { observers: H }), { origin: S, vertical: N };
5452
5452
  });
5453
5453
  r[y] = {
5454
- origins: C.map((L) => L.origin),
5454
+ origins: w.map((L) => L.origin),
5455
5455
  rules: []
5456
5456
  };
5457
- for (const { origin: L, vertical: D } of C) {
5457
+ for (const { origin: L, vertical: D } of w) {
5458
5458
  if (!D)
5459
5459
  continue;
5460
5460
  const H = n(y, L.distanceTo(D));
5461
5461
  o.append(H), r[y].rules.push({ vertical: !0, rule: [L, D], $element: H });
5462
5462
  }
5463
- for (let L = 0; L < C.length; L++) {
5463
+ for (let L = 0; L < w.length; L++) {
5464
5464
  let D = L + 1;
5465
- D >= C.length && (D = 0);
5466
- const { origin: H } = C[L], { origin: M } = C[D], F = n(y, H.distanceTo(M));
5467
- o.append(F), r[y].rules.push({ vertical: !1, rule: [H, M], $element: F });
5465
+ D >= w.length && (D = 0);
5466
+ const { origin: H } = w[L], { origin: B } = w[D], F = n(y, H.distanceTo(B));
5467
+ o.append(F), r[y].rules.push({ vertical: !1, rule: [H, B], $element: F });
5468
5468
  }
5469
5469
  }
5470
5470
  return e.loaded = !0, !0;
5471
5471
  }, l = (g, v, A) => J(void 0, null, function* () {
5472
- const w = g || t.roomInfo, y = v || t.roomRules;
5473
- if (!w || !y)
5472
+ const C = g || t.roomInfo, y = v || t.roomRules;
5473
+ if (!C || !y)
5474
5474
  throw new Error("\u6807\u5C3A\u6570\u636E\u4F9D\u8D56\u4E0D\u9F50\u5168\uFF01");
5475
- return e.loaded = !1, e.options = G(G({}, e.options), A || {}), i.model.loaded ? a(w, y) : yield new Promise(
5476
- (I) => i.once("modelLoaded", () => I(a(w, y)))
5475
+ return e.loaded = !1, e.options = G(G({}, e.options), A || {}), i.model.loaded ? a(C, y) : yield new Promise(
5476
+ (I) => i.once("modelLoaded", () => I(a(C, y)))
5477
5477
  );
5478
5478
  });
5479
5479
  t.roomInfo && t.roomRules && l(t.roomInfo, t.roomRules);
5480
- const c = (g, v, A, w) => {
5480
+ const c = (g, v, A, C) => {
5481
5481
  const y = [
5482
5482
  [
5483
5483
  { x: 0, y: 0 },
@@ -5485,20 +5485,20 @@ const Rd = `<style type="text/css">
5485
5485
  ],
5486
5486
  [
5487
5487
  { x: 0, y: 0 },
5488
- { x: 0, y: w }
5488
+ { x: 0, y: C }
5489
5489
  ],
5490
5490
  [
5491
5491
  { x: A, y: 0 },
5492
- { x: A, y: w }
5492
+ { x: A, y: C }
5493
5493
  ],
5494
5494
  [
5495
- { x: 0, y: w },
5496
- { x: A, y: w }
5495
+ { x: 0, y: C },
5496
+ { x: A, y: C }
5497
5497
  ]
5498
5498
  ], I = [];
5499
- for (let x = 0; x < y.length; x++) {
5500
- const C = jr([g, v], [y[x][0], y[x][1]], !0);
5501
- C && I.push(C);
5499
+ for (let k = 0; k < y.length; k++) {
5500
+ const w = jr([g, v], [y[k][0], y[k][1]], !0);
5501
+ w && I.push(w);
5502
5502
  }
5503
5503
  return I.length === 0 ? !1 : I;
5504
5504
  }, d = () => {
@@ -5506,71 +5506,71 @@ const Rd = `<style type="text/css">
5506
5506
  const g = (H = i.getElement()) == null ? void 0 : H.parentElement;
5507
5507
  if (!g || !e.loaded || Object.keys(r).length <= 0)
5508
5508
  return;
5509
- const { panoIndex: v, camera: A, currentMode: w } = i;
5509
+ const { panoIndex: v, camera: A, currentMode: C } = i;
5510
5510
  if (v === void 0)
5511
5511
  return;
5512
5512
  let y;
5513
- for (const M in r)
5514
- M.split(",").indexOf(v.toString()) >= 0 && (y = M);
5513
+ for (const B in r)
5514
+ B.split(",").indexOf(v.toString()) >= 0 && (y = B);
5515
5515
  if (!y) {
5516
- for (const M in r)
5517
- for (const { $element: F } of r[M].rules)
5516
+ for (const B in r)
5517
+ for (const { $element: F } of r[B].rules)
5518
5518
  F.style.display = "none";
5519
5519
  return;
5520
5520
  }
5521
- const I = A.position, x = A.getWorldDirection(new Z()), C = g.clientWidth, L = g.clientHeight;
5522
- if (w !== Me.Mode.Panorama) {
5523
- for (const M in r)
5524
- for (const { $element: F } of r[M].rules)
5521
+ const I = A.position, k = A.getWorldDirection(new Z()), w = g.clientWidth, L = g.clientHeight;
5522
+ if (C !== Me.Mode.Panorama) {
5523
+ for (const B in r)
5524
+ for (const { $element: F } of r[B].rules)
5525
5525
  F.style.display = "none";
5526
5526
  return;
5527
5527
  }
5528
- for (const M in r)
5529
- for (const { $element: F } of r[M].rules)
5530
- F.style.display = M === y ? "block" : "none";
5531
- const [D] = r[y].origins.slice().filter((M) => M.observers.indexOf(v) >= 0).sort((M, F) => {
5532
- const X = M.clone().setY(0).sub(I).normalize().angleTo(x.clone().setY(0)), E = F.clone().setY(0).sub(I).normalize().angleTo(x.clone().setY(0));
5533
- return X - E;
5528
+ for (const B in r)
5529
+ for (const { $element: F } of r[B].rules)
5530
+ F.style.display = B === y ? "block" : "none";
5531
+ const [D] = r[y].origins.slice().filter((B) => B.observers.indexOf(v) >= 0).sort((B, F) => {
5532
+ const Y = B.clone().setY(0).sub(I).normalize().angleTo(k.clone().setY(0)), E = F.clone().setY(0).sub(I).normalize().angleTo(k.clone().setY(0));
5533
+ return Y - E;
5534
5534
  });
5535
- for (const { rule: M, vertical: F, $element: X } of r[y].rules) {
5536
- const [E, S] = M, B = X.querySelector(".PanoRulerPlugin-rule-line");
5537
- if (!B)
5535
+ for (const { rule: B, vertical: F, $element: Y } of r[y].rules) {
5536
+ const [E, S] = B, z = Y.querySelector(".PanoRulerPlugin-rule-line");
5537
+ if (!z)
5538
5538
  return;
5539
5539
  if (!D) {
5540
- X.style.display = "none";
5540
+ Y.style.display = "none";
5541
5541
  continue;
5542
5542
  }
5543
5543
  if (E !== D && S !== D) {
5544
- X.style.display = "none";
5544
+ Y.style.display = "none";
5545
5545
  continue;
5546
5546
  }
5547
5547
  if (E.distanceTo(S) < 0.3) {
5548
- X.style.display = "none";
5548
+ Y.style.display = "none";
5549
5549
  continue;
5550
5550
  }
5551
5551
  if (E.observers.indexOf(v) === -1 || S.observers.indexOf(v) === -1) {
5552
- X.style.display = "none";
5552
+ Y.style.display = "none";
5553
5553
  continue;
5554
5554
  }
5555
- if (E.clone().sub(I).normalize().angleTo(x) > Math.PI / 2) {
5556
- X.style.display = "none";
5555
+ if (E.clone().sub(I).normalize().angleTo(k) > Math.PI / 2) {
5556
+ Y.style.display = "none";
5557
5557
  continue;
5558
5558
  }
5559
- if (S.clone().sub(I).normalize().angleTo(x) > Math.PI / 2) {
5560
- X.style.display = "none";
5559
+ if (S.clone().sub(I).normalize().angleTo(k) > Math.PI / 2) {
5560
+ Y.style.display = "none";
5561
5561
  continue;
5562
5562
  }
5563
5563
  const ee = E.distanceTo(S);
5564
5564
  if (S.clone().sub(S.clone().sub(E).divide(new Z(2, 2, 2))).distanceTo(I) / ee > 8) {
5565
- X.style.display = "none";
5565
+ Y.style.display = "none";
5566
5566
  continue;
5567
5567
  }
5568
- const ae = E.clone().project(A), le = (ae.x + 1) / 2 * C, me = (-ae.y + 1) / 2 * L, ye = S.clone().project(A), Ie = (ye.x + 1) / 2 * C, Oe = (-ye.y + 1) / 2 * L, oe = Math.sqrt(Math.pow(Ie - le, 2) + Math.pow(Oe - me, 2));
5568
+ const ae = E.clone().project(A), le = (ae.x + 1) / 2 * w, me = (-ae.y + 1) / 2 * L, ye = S.clone().project(A), Ie = (ye.x + 1) / 2 * w, Oe = (-ye.y + 1) / 2 * L, oe = Math.sqrt(Math.pow(Ie - le, 2) + Math.pow(Oe - me, 2));
5569
5569
  let ve = oe, we = 50;
5570
5570
  const se = c({ x: ~~le, y: ~~me }, {
5571
5571
  x: ~~Ie,
5572
5572
  y: ~~Oe
5573
- }, C, L);
5573
+ }, w, L);
5574
5574
  if (se && se.length === 1 && (D === E ? (ve = Math.sqrt(Math.pow(se[0].x - le, 2) + Math.pow(se[0].y - me, 2)), we = ve / oe * 50) : D === S && (ve = Math.sqrt(Math.pow(se[0].x - Ie, 2) + Math.pow(se[0].y - Oe, 2)), we = 100 - ve / oe * 50)), se && se.length === 2) {
5575
5575
  const ct = {
5576
5576
  x: (se[0].x + se[1].x) / 2,
@@ -5580,8 +5580,8 @@ const Rd = `<style type="text/css">
5580
5580
  Math.pow(ct.x - le, 2) + Math.pow(ct.y - me, 2)
5581
5581
  ) / oe * 100;
5582
5582
  }
5583
- const vt = (Math.PI / 2 - Math.atan2(Ie - le, me - Oe)) / Math.PI * 180, Ae = B.querySelector(".PanoRulerPlugin-rule-label"), lt = Ae.children[0].clientWidth;
5584
- lt >= oe || lt / 2 >= we / 100 * oe || lt / 2 >= (1 - we / 100) * oe ? B.style.display = "none" : (B.style.display = "block", B.style.width = oe + "px", B.style.left = le + "px", B.style.top = me + "px", B.style.transform = `rotate(${-vt}deg)`, Ae.style.left = `${we}%`);
5583
+ const vt = (Math.PI / 2 - Math.atan2(Ie - le, me - Oe)) / Math.PI * 180, Ae = z.querySelector(".PanoRulerPlugin-rule-label"), lt = Ae.children[0].clientWidth;
5584
+ lt >= oe || lt / 2 >= we / 100 * oe || lt / 2 >= (1 - we / 100) * oe ? z.style.display = "none" : (z.style.display = "block", z.style.width = oe + "px", z.style.left = le + "px", z.style.top = me + "px", z.style.transform = `rotate(${-vt}deg)`, Ae.style.left = `${we}%`);
5585
5585
  }
5586
5586
  }, f = () => Br(d), u = () => {
5587
5587
  var g, v;
@@ -5591,9 +5591,9 @@ const Rd = `<style type="text/css">
5591
5591
  if (g.distanceText && g.distanceText !== e.options.distanceText) {
5592
5592
  const v = g.distanceText;
5593
5593
  e.options.distanceText = v, Object.values(r).forEach((A) => {
5594
- A.rules.forEach((w) => {
5595
- const [y, I] = w.rule, x = y.distanceTo(I), C = w.$element.querySelector(".PanoRulerPlugin-rule-label-name");
5596
- !C || (C.innerText = v(x));
5594
+ A.rules.forEach((C) => {
5595
+ const [y, I] = C.rule, k = y.distanceTo(I), w = C.$element.querySelector(".PanoRulerPlugin-rule-label-name");
5596
+ !w || (w.innerText = v(k));
5597
5597
  });
5598
5598
  });
5599
5599
  }
@@ -5750,10 +5750,10 @@ function Qo(i) {
5750
5750
  o & 1 && (s.rulerItemProp = n[12]), t.$set(s);
5751
5751
  },
5752
5752
  i(n) {
5753
- e || (k(t.$$.fragment, n), e = !0);
5753
+ e || (x(t.$$.fragment, n), e = !0);
5754
5754
  },
5755
5755
  o(n) {
5756
- z(t.$$.fragment, n), e = !1;
5756
+ M(t.$$.fragment, n), e = !1;
5757
5757
  },
5758
5758
  d(n) {
5759
5759
  $(t, n);
@@ -5764,7 +5764,7 @@ function Ud(i) {
5764
5764
  let t, e, n = i[0], o = [];
5765
5765
  for (let r = 0; r < n.length; r += 1)
5766
5766
  o[r] = Qo(Bo(i, n, r));
5767
- const s = (r) => z(o[r], 1, 1, () => {
5767
+ const s = (r) => M(o[r], 1, 1, () => {
5768
5768
  o[r] = null;
5769
5769
  });
5770
5770
  return {
@@ -5785,7 +5785,7 @@ function Ud(i) {
5785
5785
  let l;
5786
5786
  for (l = 0; l < n.length; l += 1) {
5787
5787
  const c = Bo(r, n, l);
5788
- o[l] ? (o[l].p(c, a), k(o[l], 1)) : (o[l] = Qo(c), o[l].c(), k(o[l], 1), o[l].m(t, null));
5788
+ o[l] ? (o[l].p(c, a), x(o[l], 1)) : (o[l] = Qo(c), o[l].c(), x(o[l], 1), o[l].m(t, null));
5789
5789
  }
5790
5790
  for (ue(), l = n.length; l < o.length; l += 1)
5791
5791
  s(l);
@@ -5795,14 +5795,14 @@ function Ud(i) {
5795
5795
  i(r) {
5796
5796
  if (!e) {
5797
5797
  for (let a = 0; a < n.length; a += 1)
5798
- k(o[a]);
5798
+ x(o[a]);
5799
5799
  e = !0;
5800
5800
  }
5801
5801
  },
5802
5802
  o(r) {
5803
5803
  o = o.filter(Boolean);
5804
5804
  for (let a = 0; a < o.length; a += 1)
5805
- z(o[a]);
5805
+ M(o[a]);
5806
5806
  e = !1;
5807
5807
  },
5808
5808
  d(r) {
@@ -5811,50 +5811,50 @@ function Ud(i) {
5811
5811
  };
5812
5812
  }
5813
5813
  function Jd(i, t, e) {
5814
- var g, v, A, w;
5814
+ var g, v, A, C;
5815
5815
  let { five: n } = t, { rulerDatas: o } = t, { options: s } = t, r = [];
5816
- const a = ((v = (g = n.getElement()) == null ? void 0 : g.parentElement) == null ? void 0 : v.clientWidth) || 0, l = ((w = (A = n.getElement()) == null ? void 0 : A.parentElement) == null ? void 0 : w.clientHeight) || 0, c = (y, I) => {
5817
- const x = [
5816
+ const a = ((v = (g = n.getElement()) == null ? void 0 : g.parentElement) == null ? void 0 : v.clientWidth) || 0, l = ((C = (A = n.getElement()) == null ? void 0 : A.parentElement) == null ? void 0 : C.clientHeight) || 0, c = (y, I) => {
5817
+ const k = [
5818
5818
  [{ x: 0, y: 0 }, { x: a, y: 0 }],
5819
5819
  [{ x: 0, y: 0 }, { x: 0, y: l }],
5820
5820
  [{ x: a, y: 0 }, { x: a, y: l }],
5821
5821
  [{ x: 0, y: l }, { x: a, y: l }]
5822
- ], C = [];
5823
- for (let L = 0; L < x.length; L++) {
5824
- const D = jr([y, I], [x[L][0], x[L][1]], !0);
5825
- D && C.push(D);
5822
+ ], w = [];
5823
+ for (let L = 0; L < k.length; L++) {
5824
+ const D = jr([y, I], [k[L][0], k[L][1]], !0);
5825
+ D && w.push(D);
5826
5826
  }
5827
- return C.length === 0 ? !1 : C;
5827
+ return w.length === 0 ? !1 : w;
5828
5828
  }, d = (y, I) => {
5829
- const x = y.clone().project(n.camera), C = (x.x + 1) / 2 * a, L = (-x.y + 1) / 2 * l, D = I.clone().project(n.camera), H = (D.x + 1) / 2 * a, M = (-D.y + 1) / 2 * l, F = Math.sqrt(Math.pow(H - C, 2) + Math.pow(M - L, 2));
5829
+ const k = y.clone().project(n.camera), w = (k.x + 1) / 2 * a, L = (-k.y + 1) / 2 * l, D = I.clone().project(n.camera), H = (D.x + 1) / 2 * a, B = (-D.y + 1) / 2 * l, F = Math.sqrt(Math.pow(H - w, 2) + Math.pow(B - L, 2));
5830
5830
  return {
5831
- startLeft: C,
5831
+ startLeft: w,
5832
5832
  startTop: L,
5833
5833
  endLeft: H,
5834
- endTop: M,
5834
+ endTop: B,
5835
5835
  distance: F
5836
5836
  };
5837
- }, f = (y, I, x) => {
5838
- const C = n.camera.position, L = n.camera.getWorldDirection(new Z()), D = y.clone().sub(C).normalize().angleTo(L), H = I.clone().sub(C).normalize().angleTo(L), M = y.distanceTo(I), X = I.clone().sub(I.clone().sub(y).divide(new Z(2, 2, 2))).distanceTo(C), { startLeft: E, startTop: S, endLeft: B, endTop: N, distance: Y } = d(y, I), W = -((Math.PI / 2 - Math.atan2(B - E, S - N)) / Math.PI) * 180;
5837
+ }, f = (y, I, k) => {
5838
+ const w = n.camera.position, L = n.camera.getWorldDirection(new Z()), D = y.clone().sub(w).normalize().angleTo(L), H = I.clone().sub(w).normalize().angleTo(L), B = y.distanceTo(I), Y = I.clone().sub(I.clone().sub(y).divide(new Z(2, 2, 2))).distanceTo(w), { startLeft: E, startTop: S, endLeft: z, endTop: N, distance: X } = d(y, I), W = -((Math.PI / 2 - Math.atan2(z - E, S - N)) / Math.PI) * 180;
5839
5839
  let U = !0;
5840
- x || (U = !1), !_e(y, x) && !_e(I, x) && (U = !1), M < 0.3 && (U = !1), D > Math.PI / 2 && (U = !1), H > Math.PI / 2 && (U = !1), X / M > 8 && (U = !1);
5841
- let ae = 50, le = Y;
5842
- const me = c({ x: ~~E, y: ~~S }, { x: ~~B, y: ~~N });
5843
- if (me && me.length === 1 && (_e(y, x) ? (le = Math.sqrt(Math.pow(me[0].x - E, 2) + Math.pow(me[0].y - S, 2)), ae = le / Y * 50) : _e(I, x) && (le = Math.sqrt(Math.pow(me[0].x - B, 2) + Math.pow(me[0].y - N, 2)), ae = 100 - le / Y * 50)), me && me.length === 2) {
5840
+ k || (U = !1), !_e(y, k) && !_e(I, k) && (U = !1), B < 0.3 && (U = !1), D > Math.PI / 2 && (U = !1), H > Math.PI / 2 && (U = !1), Y / B > 8 && (U = !1);
5841
+ let ae = 50, le = X;
5842
+ const me = c({ x: ~~E, y: ~~S }, { x: ~~z, y: ~~N });
5843
+ if (me && me.length === 1 && (_e(y, k) ? (le = Math.sqrt(Math.pow(me[0].x - E, 2) + Math.pow(me[0].y - S, 2)), ae = le / X * 50) : _e(I, k) && (le = Math.sqrt(Math.pow(me[0].x - z, 2) + Math.pow(me[0].y - N, 2)), ae = 100 - le / X * 50)), me && me.length === 2) {
5844
5844
  const ye = {
5845
5845
  x: (me[0].x + me[1].x) / 2,
5846
5846
  y: (me[0].y + me[1].y) / 2
5847
5847
  };
5848
- ae = Math.sqrt(Math.pow(ye.x - E, 2) + Math.pow(ye.y - S, 2)) / Y * 100;
5848
+ ae = Math.sqrt(Math.pow(ye.x - E, 2) + Math.pow(ye.y - S, 2)) / X * 100;
5849
5849
  }
5850
5850
  return {
5851
5851
  startLeft: E,
5852
5852
  startTop: S,
5853
- distance: Y,
5853
+ distance: X,
5854
5854
  deg: W,
5855
5855
  visible: U,
5856
5856
  labelOffset: ae,
5857
- ruleLength: M
5857
+ ruleLength: B
5858
5858
  };
5859
5859
  }, u = () => {
5860
5860
  const y = n.panoIndex, I = o.find((F) => F.panoIndex === y);
@@ -5862,20 +5862,20 @@ function Jd(i, t, e) {
5862
5862
  return e(0, r = []);
5863
5863
  if (n.currentMode !== Me.Mode.Panorama)
5864
5864
  return e(0, r = []);
5865
- const x = n.camera.position, C = n.camera.getWorldDirection(new Z()), L = I.lines.map((F) => new Z(F.start[0], -F.start[1], -F.start[2])), D = I.lines.map((F) => new Z(F.end[0], -F.end[1], -F.end[2])), [H] = L.concat(D).sort((F, X) => {
5866
- const E = F.clone().setY(0).sub(x).normalize().angleTo(C.clone().setY(0)), S = X.clone().setY(0).sub(x).normalize().angleTo(C.clone().setY(0));
5865
+ const k = n.camera.position, w = n.camera.getWorldDirection(new Z()), L = I.lines.map((F) => new Z(F.start[0], -F.start[1], -F.start[2])), D = I.lines.map((F) => new Z(F.end[0], -F.end[1], -F.end[2])), [H] = L.concat(D).sort((F, Y) => {
5866
+ const E = F.clone().setY(0).sub(k).normalize().angleTo(w.clone().setY(0)), S = Y.clone().setY(0).sub(k).normalize().angleTo(w.clone().setY(0));
5867
5867
  return E - S;
5868
- }), M = I.lines.map((F) => {
5868
+ }), B = I.lines.map((F) => {
5869
5869
  var le, me;
5870
- const X = F.start, E = F.end, { startLeft: S, startTop: B, distance: N, deg: Y, visible: ee, labelOffset: W, ruleLength: U } = f(new Z(X[0], -X[1], -X[2]), new Z(E[0], -E[1], -E[2]), H), ae = [];
5870
+ const Y = F.start, E = F.end, { startLeft: S, startTop: z, distance: N, deg: X, visible: ee, labelOffset: W, ruleLength: U } = f(new Z(Y[0], -Y[1], -Y[2]), new Z(E[0], -E[1], -E[2]), H), ae = [];
5871
5871
  return F.children && ((le = F.children) == null ? void 0 : le.length) > 0 && ((me = F.children) == null || me.forEach((ye) => {
5872
5872
  const Ie = ye.start, Oe = ye.end, { distance: oe } = d(new Z(Ie[0], -Ie[1], -Ie[2]), new Z(Oe[0], -Oe[1], -Oe[2]));
5873
5873
  ae.push({ width: oe, state: ye.state });
5874
5874
  })), {
5875
5875
  width: N,
5876
5876
  left: S,
5877
- top: B,
5878
- rotateDeg: Y,
5877
+ top: z,
5878
+ rotateDeg: X,
5879
5879
  state: F.state,
5880
5880
  children: ae,
5881
5881
  labelOffset: W,
@@ -5883,7 +5883,7 @@ function Jd(i, t, e) {
5883
5883
  labelElement: s.distanceText(U)
5884
5884
  };
5885
5885
  });
5886
- e(0, r = M);
5886
+ e(0, r = B);
5887
5887
  }, m = () => Gn(u), p = Ti(u, 80);
5888
5888
  return Ue(() => {
5889
5889
  u(), n.on("panoArrived", u), n.on("modeChange", u), n.on("cameraDirectionUpdate", m), n.on("movingToPano", m), n.on("mouseWheel", () => p()), n.on("pinchGesture", () => p());
@@ -6394,15 +6394,15 @@ function gu(i) {
6394
6394
  const v = g.clientWidth, A = g.clientHeight;
6395
6395
  if (a.points.length < 2)
6396
6396
  return;
6397
- const [w, y] = a.points, I = w.position.clone().project(p.camera), x = y.position.clone().project(p.camera), C = I.clone().lerp(x, 0.5), L = new je(I.x * v, I.y * A), D = new je(x.x * v, x.y * A);
6398
- if ((() => !(Math.abs(I.z) > 1 || Math.abs(x.z) > 1 || !Ke(I) && !Ke(x) || !Ke(C) || L.distanceTo(D) < 20))() === !1) {
6397
+ const [C, y] = a.points, I = C.position.clone().project(p.camera), k = y.position.clone().project(p.camera), w = I.clone().lerp(k, 0.5), L = new je(I.x * v, I.y * A), D = new je(k.x * v, k.y * A);
6398
+ if ((() => !(Math.abs(I.z) > 1 || Math.abs(k.z) > 1 || !Ke(I) && !Ke(k) || !Ke(w) || L.distanceTo(D) < 20))() === !1) {
6399
6399
  d.style.opacity = "0", d.style.pointerEvents = "none";
6400
6400
  return;
6401
6401
  }
6402
- const M = (C.x + 1) / 2 * v, F = -(C.y - 1) / 2 * A, E = -(Math.atan((L.y - D.y) / (L.x - D.x)) * 180) / Math.PI;
6403
- d.style.transform = `translate(${M}px, ${F}px) rotate(${E}deg)`, d.style.opacity = "1", d.style.pointerEvents = "all", f && f.update({ line: a.toCompletelyJson(), polyline: a.getPolyline().toCompletelyJson() });
6404
- const S = w.position.clone().distanceTo(y.position), B = i.line.model.params.getDistanceText(S);
6405
- c.innerText !== B && (c.innerText = B);
6402
+ const B = (w.x + 1) / 2 * v, F = -(w.y - 1) / 2 * A, E = -(Math.atan((L.y - D.y) / (L.x - D.x)) * 180) / Math.PI;
6403
+ d.style.transform = `translate(${B}px, ${F}px) rotate(${E}deg)`, d.style.opacity = "1", d.style.pointerEvents = "all", f && f.update({ line: a.toCompletelyJson(), polyline: a.getPolyline().toCompletelyJson() });
6404
+ const S = C.position.clone().distanceTo(y.position), z = i.line.model.params.getDistanceText(S);
6405
+ c.innerText !== z && (c.innerText = z);
6406
6406
  }
6407
6407
  function s(p) {
6408
6408
  p.appendChild(d), d.addEventListener("click", t);
@@ -6749,14 +6749,14 @@ class vu extends Wn {
6749
6749
  const [p, g] = m.points, v = p.position.clone().project(o), A = g.position.clone().project(o);
6750
6750
  if (!Ke(v) && !Ke(A))
6751
6751
  return null;
6752
- const w = new je(
6752
+ const C = new je(
6753
6753
  v.x * r,
6754
6754
  v.y * a
6755
6755
  ), y = new je(
6756
6756
  A.x * r,
6757
6757
  A.y * a
6758
6758
  );
6759
- return { id: m.id, points: [w, y] };
6759
+ return { id: m.id, points: [C, y] };
6760
6760
  }).filter((m) => !!m);
6761
6761
  if (c.length === 0)
6762
6762
  return;
@@ -6961,14 +6961,14 @@ class Kn extends Wn {
6961
6961
  const [p, g] = m.points, v = p.position.clone().project(o), A = g.position.clone().project(o);
6962
6962
  if (!Ke(v) && !Ke(A))
6963
6963
  return null;
6964
- const w = new je(
6964
+ const C = new je(
6965
6965
  v.x * r,
6966
6966
  v.y * a
6967
6967
  ), y = new je(
6968
6968
  A.x * r,
6969
6969
  A.y * a
6970
6970
  );
6971
- return { id: m.id, points: [w, y] };
6971
+ return { id: m.id, points: [C, y] };
6972
6972
  }).filter((m) => !!m);
6973
6973
  if (c.length === 0)
6974
6974
  return;
@@ -7061,8 +7061,8 @@ class Fo extends Wn {
7061
7061
  const [p, g] = m.points, v = p.position.clone().project(o), A = g.position.clone().project(o);
7062
7062
  if (!Ke(v) && !Ke(A))
7063
7063
  return null;
7064
- const w = new je(v.x * r, v.y * a), y = new je(A.x * r, A.y * a);
7065
- return { id: m.id, points: [w, y] };
7064
+ const C = new je(v.x * r, v.y * a), y = new je(A.x * r, A.y * a);
7065
+ return { id: m.id, points: [C, y] };
7066
7066
  }).filter((m) => !!m);
7067
7067
  if (c.length === 0)
7068
7068
  return;
@@ -7162,8 +7162,8 @@ void main() {
7162
7162
  }
7163
7163
  `;
7164
7164
  function Hr(i) {
7165
- var A, w;
7166
- const t = (A = i.isMobile) != null ? A : !0, e = (w = i.useNormalVector) != null ? w : !0;
7165
+ var A, C;
7166
+ const t = (A = i.isMobile) != null ? A : !0, e = (C = i.useNormalVector) != null ? C : !0;
7167
7167
  let n = 10349931;
7168
7168
  e && i.ballColor >= 0 && (n = i.ballColor);
7169
7169
  const o = new Ci(), s = new La(0.3, 0.3), r = t ? Eu : Pu, a = new ur().load(r);
@@ -8033,15 +8033,15 @@ function tf(i) {
8033
8033
  };
8034
8034
  }
8035
8035
  function nf(i, t, e) {
8036
- let { id: n } = t, { upsideDown: o } = t, { content: s } = t, { contentZoom: r } = t, { lineWidthZoom: a } = t, { lineHeightZoom: l } = t, { destroying: c = !1 } = t, { folded: d } = t, { dispose: f } = t, { events: u } = t, { hooks: m } = t, p = 0, g = 0, v, A, w = setTimeout(
8036
+ let { id: n } = t, { upsideDown: o } = t, { content: s } = t, { contentZoom: r } = t, { lineWidthZoom: a } = t, { lineHeightZoom: l } = t, { destroying: c = !1 } = t, { folded: d } = t, { dispose: f } = t, { events: u } = t, { hooks: m } = t, p = 0, g = 0, v, A, C = setTimeout(
8037
8037
  () => {
8038
- d || e(10, A = !0), w = void 0;
8038
+ d || e(10, A = !0), C = void 0;
8039
8039
  },
8040
8040
  100
8041
8041
  );
8042
- const y = (C) => {
8042
+ const y = (w) => {
8043
8043
  const L = Object.keys(u);
8044
- let D = C.target;
8044
+ let D = w.target;
8045
8045
  for (; D; ) {
8046
8046
  const H = D.getAttribute("class");
8047
8047
  if (!H) {
@@ -8052,37 +8052,37 @@ function nf(i, t, e) {
8052
8052
  D = null;
8053
8053
  break;
8054
8054
  }
8055
- L.forEach((M) => {
8056
- H.includes(M) && u[M](n);
8055
+ L.forEach((B) => {
8056
+ H.includes(B) && u[B](n);
8057
8057
  }), D = D.parentNode;
8058
8058
  }
8059
8059
  };
8060
8060
  Ue(() => {
8061
8061
  m.emit("initTag", { id: n });
8062
8062
  });
8063
- const I = Yr.subscribe((C) => {
8064
- if (C === null)
8063
+ const I = Yr.subscribe((w) => {
8064
+ if (w === null)
8065
8065
  return;
8066
- const [L, D] = C.split("-PanoSpatialTagPlugin-");
8067
- n === L && (m.emit("clickOrigin", { id: n, show: A }), w || (e(10, A = d), e(12, d = !d), w = setTimeout(
8066
+ const [L, D] = w.split("-PanoSpatialTagPlugin-");
8067
+ n === L && (m.emit("clickOrigin", { id: n, show: A }), C || (e(10, A = d), e(12, d = !d), C = setTimeout(
8068
8068
  () => {
8069
- w = void 0;
8069
+ C = void 0;
8070
8070
  },
8071
8071
  1500
8072
8072
  )));
8073
8073
  });
8074
8074
  Ii(() => {
8075
- e(7, p = v.offsetWidth), e(8, g = v.offsetHeight), !w && e(10, A = !d);
8075
+ e(7, p = v.offsetWidth), e(8, g = v.offsetHeight), !C && e(10, A = !d);
8076
8076
  }), At(() => {
8077
8077
  m.emit("destroyTag", { id: n }), I(), f();
8078
8078
  });
8079
- function x(C) {
8080
- Qe[C ? "unshift" : "push"](() => {
8081
- v = C, e(9, v);
8079
+ function k(w) {
8080
+ Qe[w ? "unshift" : "push"](() => {
8081
+ v = w, e(9, v);
8082
8082
  });
8083
8083
  }
8084
- return i.$$set = (C) => {
8085
- "id" in C && e(0, n = C.id), "upsideDown" in C && e(1, o = C.upsideDown), "content" in C && e(2, s = C.content), "contentZoom" in C && e(3, r = C.contentZoom), "lineWidthZoom" in C && e(4, a = C.lineWidthZoom), "lineHeightZoom" in C && e(5, l = C.lineHeightZoom), "destroying" in C && e(6, c = C.destroying), "folded" in C && e(12, d = C.folded), "dispose" in C && e(13, f = C.dispose), "events" in C && e(14, u = C.events), "hooks" in C && e(15, m = C.hooks);
8084
+ return i.$$set = (w) => {
8085
+ "id" in w && e(0, n = w.id), "upsideDown" in w && e(1, o = w.upsideDown), "content" in w && e(2, s = w.content), "contentZoom" in w && e(3, r = w.contentZoom), "lineWidthZoom" in w && e(4, a = w.lineWidthZoom), "lineHeightZoom" in w && e(5, l = w.lineHeightZoom), "destroying" in w && e(6, c = w.destroying), "folded" in w && e(12, d = w.folded), "dispose" in w && e(13, f = w.dispose), "events" in w && e(14, u = w.events), "hooks" in w && e(15, m = w.hooks);
8086
8086
  }, [
8087
8087
  n,
8088
8088
  o,
@@ -8100,7 +8100,7 @@ function nf(i, t, e) {
8100
8100
  f,
8101
8101
  u,
8102
8102
  m,
8103
- x
8103
+ k
8104
8104
  ];
8105
8105
  }
8106
8106
  class of extends te {
@@ -8291,9 +8291,9 @@ const $n = 1e-3, Zo = 0.01, df = "https://vrlab-image4.ljcdn.com/release/web/Pan
8291
8291
  target: u,
8292
8292
  props: { origins: g.origins }
8293
8293
  }), A = (oe, ve) => {
8294
- x(), ve && C();
8295
- }, w = () => {
8296
- g.forbidden && (g.forbidden = !1, C());
8294
+ k(), ve && w();
8295
+ }, C = () => {
8296
+ g.forbidden && (g.forbidden = !1, w());
8297
8297
  }, y = (oe, ve) => {
8298
8298
  if (g.tags.length === 0)
8299
8299
  return;
@@ -8323,13 +8323,13 @@ const $n = 1e-3, Zo = 0.01, df = "https://vrlab-image4.ljcdn.com/release/web/Pan
8323
8323
  }), setTimeout(() => {
8324
8324
  g.tags.forEach((Ae) => {
8325
8325
  Ae.destroying && (Ae.app.$destroy(), Ae = null);
8326
- }), g.tags = g.tags.filter((Ae) => !Ae.destroying), x();
8326
+ }), g.tags = g.tags.filter((Ae) => !Ae.destroying), k();
8327
8327
  }, 1900);
8328
8328
  }, I = (oe) => {
8329
8329
  oe !== Me.Mode.Panorama && !g.forbidden && (v.$set({ origins: [] }), g.tags.forEach((ve) => {
8330
8330
  ve.app.$destroy(), ve = null;
8331
8331
  }), g.origins = [], g.tags = [], g.forbidden = !0);
8332
- }, x = () => {
8332
+ }, k = () => {
8333
8333
  if (g.forbidden || !g.enabled)
8334
8334
  return;
8335
8335
  const oe = i.camera, ve = oe.getWorldDirection(new P.Vector3());
@@ -8343,11 +8343,11 @@ const $n = 1e-3, Zo = 0.01, df = "https://vrlab-image4.ljcdn.com/release/web/Pan
8343
8343
  destroying: we.destroying
8344
8344
  };
8345
8345
  }), v.$set({ origins: g.origins });
8346
- }, C = () => {
8346
+ }, w = () => {
8347
8347
  g.forbidden || !g.enabled || (g.timeoutId && clearTimeout(g.timeoutId), g.timeoutId = setTimeout(() => {
8348
8348
  g.timeoutId = void 0;
8349
8349
  const oe = L();
8350
- oe.length && (g.tags = g.tags.concat(oe), x());
8350
+ oe.length && (g.tags = g.tags.concat(oe), k());
8351
8351
  }, o));
8352
8352
  }, L = () => {
8353
8353
  const { clientWidth: oe, clientHeight: ve } = i.getElement(), we = [], se = i.camera, it = new P.Frustum(), vt = new P.Matrix4(), Ae = se.getWorldDirection(new P.Vector3());
@@ -8460,14 +8460,14 @@ const $n = 1e-3, Zo = 0.01, df = "https://vrlab-image4.ljcdn.com/release/web/Pan
8460
8460
  };
8461
8461
  }), oe.render && (g.render = oe.render), oe.template && (g.template = oe.template), oe.events && (g.events = oe.events), oe.enabled === !1 && (g.enabled = oe.enabled), oe.folded === !0 && (g.folded = oe.folded);
8462
8462
  }, H = (oe) => {
8463
- g.intersectObjects = oe, C();
8464
- }, M = () => {
8465
- g.enabled = !0, C();
8463
+ g.intersectObjects = oe, w();
8464
+ }, B = () => {
8465
+ g.enabled = !0, w();
8466
8466
  }, F = () => {
8467
8467
  g.enabled = !1, v.$set({ origins: [] }), g.tags.forEach((oe) => {
8468
8468
  oe.app.$destroy(), oe = null;
8469
8469
  }), g.origins = [], g.tags = [];
8470
- }, X = () => {
8470
+ }, Y = () => {
8471
8471
  g.folded = !1, g.tags.forEach((oe) => {
8472
8472
  oe.app.$set({ folded: g.folded });
8473
8473
  });
@@ -8479,27 +8479,27 @@ const $n = 1e-3, Zo = 0.01, df = "https://vrlab-image4.ljcdn.com/release/web/Pan
8479
8479
  g.tags.forEach((ve) => {
8480
8480
  ve.id === oe && ve.app.$set({ folded: !1 });
8481
8481
  });
8482
- }, B = (oe) => {
8482
+ }, z = (oe) => {
8483
8483
  g.tags.forEach((ve) => {
8484
8484
  ve.id === oe && ve.app.$set({ folded: !0 });
8485
8485
  });
8486
8486
  }, N = () => {
8487
- i.once("renderFrame", x);
8488
- }, Y = () => {
8489
- e || (e = i.getElement().parentElement), e && e.appendChild(u), g.forbidden = !1, n = i.model.bounding.getCenter(new P.Vector3()).y, C(), i.on("panoWillArrive", y), i.on("panoArrived", w), i.on("modeChange", I), i.on("cameraUpdate", A);
8487
+ i.once("renderFrame", k);
8488
+ }, X = () => {
8489
+ e || (e = i.getElement().parentElement), e && e.appendChild(u), g.forbidden = !1, n = i.model.bounding.getCenter(new P.Vector3()).y, w(), i.on("panoWillArrive", y), i.on("panoArrived", C), i.on("modeChange", I), i.on("cameraUpdate", A);
8490
8490
  }, ee = () => {
8491
8491
  p = null, f.disposeAll(), v.$destroy(), g.tags.forEach((oe) => {
8492
8492
  oe.app.$destroy(), oe = null;
8493
- }), g.origins = [], g.tags = [], i.off("modelLoaded", Y), i.off("renderFrame", x), i.off("panoWillArrive", y), i.off("panoArrived", w), i.off("modeChange", I), i.off("cameraUpdate", A), i.off("dispose", ee), window.removeEventListener("resize", N, !1);
8493
+ }), g.origins = [], g.tags = [], i.off("modelLoaded", X), i.off("renderFrame", k), i.off("panoWillArrive", y), i.off("panoArrived", C), i.off("modeChange", I), i.off("cameraUpdate", A), i.off("dispose", ee), window.removeEventListener("resize", N, !1);
8494
8494
  };
8495
- return window.addEventListener("resize", N, !1), (Oe = i == null ? void 0 : i.model) != null && Oe.loaded ? Y() : i.once("modelLoaded", Y), i.on("dispose", ee), {
8495
+ return window.addEventListener("resize", N, !1), (Oe = i == null ? void 0 : i.model) != null && Oe.loaded ? X() : i.once("modelLoaded", X), i.on("dispose", ee), {
8496
8496
  load: D,
8497
8497
  setIntersectObjects: H,
8498
- unfoldAll: X,
8498
+ unfoldAll: Y,
8499
8499
  foldAll: E,
8500
8500
  unfold: S,
8501
- fold: B,
8502
- enable: M,
8501
+ fold: z,
8502
+ enable: B,
8503
8503
  disable: F,
8504
8504
  hooks: m,
8505
8505
  dispose: ee
@@ -8581,10 +8581,10 @@ function _o(i, t) {
8581
8581
  r & 2 && (a.itemLabel = t[26]), r & 1 && (a.hooks = t[0]), n.$set(a);
8582
8582
  },
8583
8583
  i(s) {
8584
- o || (k(n.$$.fragment, s), o = !0);
8584
+ o || (x(n.$$.fragment, s), o = !0);
8585
8585
  },
8586
8586
  o(s) {
8587
- z(n.$$.fragment, s), o = !1;
8587
+ M(n.$$.fragment, s), o = !1;
8588
8588
  },
8589
8589
  d(s) {
8590
8590
  s && j(e), $(n, s);
@@ -8617,13 +8617,13 @@ function gf(i) {
8617
8617
  i(l) {
8618
8618
  if (!s) {
8619
8619
  for (let c = 0; c < r.length; c += 1)
8620
- k(e[c]);
8620
+ x(e[c]);
8621
8621
  s = !0;
8622
8622
  }
8623
8623
  },
8624
8624
  o(l) {
8625
8625
  for (let c = 0; c < e.length; c += 1)
8626
- z(e[c]);
8626
+ M(e[c]);
8627
8627
  s = !1;
8628
8628
  },
8629
8629
  d(l) {
@@ -8639,14 +8639,14 @@ function vf(i, t, e) {
8639
8639
  const { Raycaster: n, Vector3: o } = P;
8640
8640
  let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, d = null, f = null, u, m, p = [], g = !0;
8641
8641
  const v = (E, S) => {
8642
- const B = new n(), N = E.camera.position.clone(), Y = new o().fromArray(S.modelPosition), ee = Y.distanceTo(N);
8643
- B.set(N.clone(), Y.clone().sub(N).normalize());
8644
- const [W] = E.model.intersectRaycaster(B);
8642
+ const z = new n(), N = E.camera.position.clone(), X = new o().fromArray(S.modelPosition), ee = X.distanceTo(N);
8643
+ z.set(N.clone(), X.clone().sub(N).normalize());
8644
+ const [W] = E.model.intersectRaycaster(z);
8645
8645
  return !(W && W.distance + 1 < ee);
8646
8646
  }, A = (E, S) => {
8647
- const B = new o(S.modelPosition[0], S.modelPosition[1], S.modelPosition[2]), N = E.project2d(B), Y = N == null ? void 0 : N.x, ee = N == null ? void 0 : N.y;
8648
- return [Y, ee];
8649
- }, w = (E) => `translate(${E[0]}px, ${E[1]}px)`, y = (E, S) => p.length === 0 ? !1 : !!p.find((N) => E[0] >= N[0] - S && E[0] <= N[0] + S || E[1] >= N[1] - Ko && E[1] <= N[1] + Ko);
8647
+ const z = new o(S.modelPosition[0], S.modelPosition[1], S.modelPosition[2]), N = E.project2d(z), X = N == null ? void 0 : N.x, ee = N == null ? void 0 : N.y;
8648
+ return [X, ee];
8649
+ }, C = (E) => `translate(${E[0]}px, ${E[1]}px)`, y = (E, S) => p.length === 0 ? !1 : !!p.find((N) => E[0] >= N[0] - S && E[0] <= N[0] + S || E[1] >= N[1] - Ko && E[1] <= N[1] + Ko);
8650
8650
  function I(E, S) {
8651
8651
  switch (S) {
8652
8652
  case Ht.SMALL:
@@ -8659,54 +8659,54 @@ function vf(i, t, e) {
8659
8659
  return Math.ceil(-92.59 * E + 300);
8660
8660
  }
8661
8661
  }
8662
- const x = (E, S) => {
8663
- const B = S.map((Y) => {
8664
- const ee = A(E, Y), W = Y.name.length * Af, U = I(Y.modelPosition[1], c), le = (r ? v(E, Y) : !0) && !y([ee[0], ee[1] + U], W);
8662
+ const k = (E, S) => {
8663
+ const z = S.map((X) => {
8664
+ const ee = A(E, X), W = X.name.length * Af, U = I(X.modelPosition[1], c), le = (r ? v(E, X) : !0) && !y([ee[0], ee[1] + U], W);
8665
8665
  if (!le)
8666
- return he(G({}, Y), { visible: le });
8666
+ return he(G({}, X), { visible: le });
8667
8667
  p.push(ee);
8668
- const me = w(ee);
8669
- return he(G({}, Y), {
8668
+ const me = C(ee);
8669
+ return he(G({}, X), {
8670
8670
  visible: le,
8671
8671
  transform: me,
8672
8672
  strokeLength: U
8673
8673
  });
8674
- }), N = B.filter(({ visible: Y }) => Y).map((Y) => ({
8675
- itemLabelItem: Y,
8676
- distance: new o(Y.modelPosition[0], Y.modelPosition[1], Y.modelPosition[2]).clone().distanceTo(E.camera.position)
8677
- })).sort((Y, ee) => Y.distance - ee.distance);
8678
- return B.map((Y) => {
8679
- const ee = N.findIndex((W) => W.itemLabelItem.id === Y.id);
8680
- return ee !== void 0 ? he(G({}, Y), { zIndex: ee * 10 }) : Y;
8674
+ }), N = z.filter(({ visible: X }) => X).map((X) => ({
8675
+ itemLabelItem: X,
8676
+ distance: new o(X.modelPosition[0], X.modelPosition[1], X.modelPosition[2]).clone().distanceTo(E.camera.position)
8677
+ })).sort((X, ee) => X.distance - ee.distance);
8678
+ return z.map((X) => {
8679
+ const ee = N.findIndex((W) => W.itemLabelItem.id === X.id);
8680
+ return ee !== void 0 ? he(G({}, X), { zIndex: ee * 10 }) : X;
8681
8681
  });
8682
- }, C = () => {
8683
- p = [], e(1, f = x(s, f));
8682
+ }, w = () => {
8683
+ p = [], e(1, f = k(s, f));
8684
8684
  };
8685
8685
  xi(() => {
8686
- M();
8686
+ B();
8687
8687
  });
8688
8688
  const L = () => {
8689
8689
  e(4, g = !1), D();
8690
8690
  };
8691
8691
  Ue(() => {
8692
- e(1, f = a), d = a, C(), H(), s.on("cameraUpdate", L);
8692
+ e(1, f = a), d = a, w(), H(), s.on("cameraUpdate", L);
8693
8693
  });
8694
8694
  const D = Ur(
8695
8695
  () => {
8696
- e(4, g = !0), C();
8696
+ e(4, g = !0), w();
8697
8697
  },
8698
8698
  300
8699
8699
  ), H = () => {
8700
8700
  window.addEventListener("resize", F, !1);
8701
- }, M = () => {
8702
- d !== a && (e(1, f = a), d = a, C());
8701
+ }, B = () => {
8702
+ d !== a && (e(1, f = a), d = a, w());
8703
8703
  }, F = () => {
8704
- s.once("renderFrame", C);
8704
+ s.once("renderFrame", w);
8705
8705
  };
8706
8706
  At(() => {
8707
8707
  s.off("cameraUpdate", L), window.removeEventListener("resize", F, !1);
8708
8708
  });
8709
- function X() {
8709
+ function Y() {
8710
8710
  u = this.clientWidth, m = this.clientHeight, e(2, u), e(3, m);
8711
8711
  }
8712
8712
  return i.$$set = (E) => {
@@ -8721,7 +8721,7 @@ function vf(i, t, e) {
8721
8721
  r,
8722
8722
  a,
8723
8723
  c,
8724
- X
8724
+ Y
8725
8725
  ];
8726
8726
  }
8727
8727
  class bf extends te {
@@ -8853,17 +8853,17 @@ const r0 = (i, { videoElement: t }) => {
8853
8853
  }, r = () => e.videoTexture ? e.videoTexture.image.muted : !0, a = () => {
8854
8854
  if (e.enabled || !e.videoTexture)
8855
8855
  return;
8856
- e.enabled = !0, e.videoMeshes = c(), e.videoMeshes.forEach((w) => i.scene.add(w));
8856
+ e.enabled = !0, e.videoMeshes = c(), e.videoMeshes.forEach((C) => i.scene.add(C));
8857
8857
  const A = () => {
8858
8858
  if (!e.videoTexture)
8859
8859
  return;
8860
- const w = () => {
8860
+ const C = () => {
8861
8861
  var y;
8862
- !e.videoTexture || ((y = e.videoTexture) == null || y.image.removeEventListener("timeupdate", w), e.videoTextureEnabled = !0, e.videoMeshes.forEach((I) => {
8862
+ !e.videoTexture || ((y = e.videoTexture) == null || y.image.removeEventListener("timeupdate", C), e.videoTextureEnabled = !0, e.videoMeshes.forEach((I) => {
8863
8863
  I.material.map !== e.videoTexture && (I.material.map = e.videoTexture);
8864
8864
  }), i.needsRender = !0);
8865
8865
  };
8866
- e.videoTexture.image.addEventListener("timeupdate", w), e.videoTexture && e.videoMeshes.length && (e.videoTexture.image.play(), e.videoTexture.image.onplay = () => {
8866
+ e.videoTexture.image.addEventListener("timeupdate", C), e.videoTexture && e.videoMeshes.length && (e.videoTexture.image.play(), e.videoTexture.image.onplay = () => {
8867
8867
  n.hide();
8868
8868
  }, e.videoTexture.image.onpause = () => {
8869
8869
  n.show();
@@ -8879,75 +8879,75 @@ const r0 = (i, { videoElement: t }) => {
8879
8879
  !e.enabled || (e.enabled = !1, e.videoMeshes.forEach((A) => {
8880
8880
  A.geometry.dispose(), A.material.dispose(), i.scene.remove(A), e.videoTexture && e.videoTexture.image.pause();
8881
8881
  }), e.videoMeshes = [], i.needsRender = !0);
8882
- }, c = () => e.rectPoints.map((A, w) => {
8883
- const y = new P.BufferGeometry(), I = 128, x = [];
8884
- x.push(...A[0].toArray());
8882
+ }, c = () => e.rectPoints.map((A, C) => {
8883
+ const y = new P.BufferGeometry(), I = 128, k = [];
8884
+ k.push(...A[0].toArray());
8885
8885
  for (let E = 1; E < I; E++)
8886
- x.push(
8886
+ k.push(
8887
8887
  A[0].x + (A[1].x - A[0].x) * E / I,
8888
8888
  A[0].y + (A[1].y - A[0].y) * E / I,
8889
8889
  A[0].z + (A[1].z - A[0].z) * E / I
8890
8890
  );
8891
- x.push(...A[1].toArray()), x.push(...A[2].toArray());
8891
+ k.push(...A[1].toArray()), k.push(...A[2].toArray());
8892
8892
  for (let E = 1; E < I; E++)
8893
- x.push(
8893
+ k.push(
8894
8894
  A[2].x + (A[3].x - A[2].x) * E / I,
8895
8895
  A[2].y + (A[3].y - A[2].y) * E / I,
8896
8896
  A[2].z + (A[3].z - A[2].z) * E / I
8897
8897
  );
8898
- x.push(...A[3].toArray());
8899
- const C = [];
8900
- C.push(0, 1);
8898
+ k.push(...A[3].toArray());
8899
+ const w = [];
8900
+ w.push(0, 1);
8901
8901
  for (let E = 1; E < I; E++)
8902
- C.push(0, 1 - E / I);
8903
- C.push(0, 0), C.push(1, 0);
8902
+ w.push(0, 1 - E / I);
8903
+ w.push(0, 0), w.push(1, 0);
8904
8904
  for (let E = 1; E < I; E++)
8905
- C.push(1, E / I);
8906
- C.push(1, 1);
8905
+ w.push(1, E / I);
8906
+ w.push(1, 1);
8907
8907
  const L = [];
8908
8908
  for (let E = 0; E < I; E++)
8909
8909
  L.push(E, E + 1, I * 2 - E, E, I * 2 - E, I * 2 + 1 - E);
8910
- y.setAttribute("position", new P.BufferAttribute(new Float32Array(x), 3)), y.setAttribute("uv", new P.BufferAttribute(new Float32Array(C), 2)), y.setIndex(new P.BufferAttribute(new Uint32Array(L), 1));
8910
+ y.setAttribute("position", new P.BufferAttribute(new Float32Array(k), 3)), y.setAttribute("uv", new P.BufferAttribute(new Float32Array(w), 2)), y.setIndex(new P.BufferAttribute(new Uint32Array(L), 1));
8911
8911
  const D = new P.AxesHelper(10);
8912
8912
  i.scene.add(D);
8913
8913
  const H = new P.MeshBasicMaterial({
8914
8914
  map: e.videoTextureEnabled ? e.videoTexture : e.imageTexture,
8915
8915
  side: P.DoubleSide
8916
- }), M = new P.Mesh(y, H);
8917
- M.renderOrder = 1, M.name = `ModelTVVideoPlugin-${w}-${performance.now()}`;
8918
- const F = [A[1], A[2], A[3], A[0]], X = n.create3DDomContainer(F);
8919
- if (X != null && X.container) {
8916
+ }), B = new P.Mesh(y, H);
8917
+ B.renderOrder = 1, B.name = `ModelTVVideoPlugin-${C}-${performance.now()}`;
8918
+ const F = [A[1], A[2], A[3], A[0]], Y = n.create3DDomContainer(F);
8919
+ if (Y != null && Y.container) {
8920
8920
  const E = document.createElement("div");
8921
- E.classList.add("play-icon"), E.style.width = "100%", E.style.height = "100%", E.style.display = "flex", E.style.justifyContent = "center", E.style.alignItems = "center", E.style.pointerEvents = "none", X.container.appendChild(E);
8921
+ E.classList.add("play-icon"), E.style.width = "100%", E.style.height = "100%", E.style.display = "flex", E.style.justifyContent = "center", E.style.alignItems = "center", E.style.pointerEvents = "none", Y.container.appendChild(E);
8922
8922
  const S = document.createElement("img");
8923
8923
  S.src = "//vrlab-static.ljcdn.com/release/web/play.2ada5b6f.png", S.style.width = "200px", S.style.pointerEvents = "auto", S.onclick = () => {
8924
8924
  e.videoTexture.image.muted = !1, e.videoTexture.image.play();
8925
- }, E.appendChild(S), o.set(M, X);
8925
+ }, E.appendChild(S), o.set(B, Y);
8926
8926
  }
8927
- return M;
8927
+ return B;
8928
8928
  }), d = (A) => {
8929
- const w = new P.TextureLoader().load(A);
8930
- return w.minFilter = P.LinearFilter, w.magFilter = P.LinearFilter, w.format = P.RGBFormat, w;
8931
- }, f = (A, w) => new Promise((y, I) => {
8932
- const x = new XMLHttpRequest();
8933
- x.onreadystatechange = () => {
8934
- if (x.readyState == 4)
8935
- if (x.status == 200) {
8936
- const C = window.URL || window.webkitURL;
8937
- w = w || document.createElement("video"), w.crossOrigin = "anonymous", w.muted = !0, w.loop = !0, w.playsInline = !0, w.src = C.createObjectURL(x.response);
8938
- const L = new P.VideoTexture(w);
8929
+ const C = new P.TextureLoader().load(A);
8930
+ return C.minFilter = P.LinearFilter, C.magFilter = P.LinearFilter, C.format = P.RGBFormat, C;
8931
+ }, f = (A, C) => new Promise((y, I) => {
8932
+ const k = new XMLHttpRequest();
8933
+ k.onreadystatechange = () => {
8934
+ if (k.readyState == 4)
8935
+ if (k.status == 200) {
8936
+ const w = window.URL || window.webkitURL;
8937
+ C = C || document.createElement("video"), C.crossOrigin = "anonymous", C.muted = !0, C.loop = !0, C.playsInline = !0, C.src = w.createObjectURL(k.response);
8938
+ const L = new P.VideoTexture(C);
8939
8939
  L.minFilter = P.LinearFilter, L.magFilter = P.LinearFilter, L.format = P.RGBFormat, y(Object.assign(L, { videoSource: A }));
8940
8940
  } else
8941
- I(new Error("Video download Error: " + x.status));
8942
- }, x.onerror = (C) => I(C), x.open("GET", A), x.responseType = "blob", x.send();
8943
- }), u = (A, w) => J(void 0, null, function* () {
8944
- const { video_src: y, video_poster_src: I, points: x } = A;
8945
- e.videoSource = y, e.rectPoints = wf(x).map((C) => C.map(({ x: L, y: D, z: H }) => new P.Vector3(L, D, H))), e.imageTexture = d(I), w && (e.videoElement = w), e.videoTexture = yield f(e.videoSource, e.videoElement), e.enabled = !!A.enable, e.enabled && a();
8941
+ I(new Error("Video download Error: " + k.status));
8942
+ }, k.onerror = (w) => I(w), k.open("GET", A), k.responseType = "blob", k.send();
8943
+ }), u = (A, C) => J(void 0, null, function* () {
8944
+ const { video_src: y, video_poster_src: I, points: k } = A;
8945
+ e.videoSource = y, e.rectPoints = wf(k).map((w) => w.map(({ x: L, y: D, z: H }) => new P.Vector3(L, D, H))), e.imageTexture = d(I), C && (e.videoElement = C), e.videoTexture = yield f(e.videoSource, e.videoElement), e.enabled = !!A.enable, e.enabled && a();
8946
8946
  }), m = (A) => {
8947
8947
  if (!e.enabled)
8948
8948
  return;
8949
- const w = e.videoMeshes;
8950
- if (!(!w || A.intersectObjects(w).length === 0))
8949
+ const C = e.videoMeshes;
8950
+ if (!(!C || A.intersectObjects(C).length === 0))
8951
8951
  return e.videoTexture && (e.videoTexture.image.paused || e.videoTexture.image.pause()), !1;
8952
8952
  }, p = (A) => {
8953
8953
  A === "Floorplan" ? n.hide() : n.show();
@@ -8955,18 +8955,18 @@ const r0 = (i, { videoElement: t }) => {
8955
8955
  if (!e.enabled)
8956
8956
  return;
8957
8957
  const A = i.camera.position;
8958
- if (o.forEach((w, y) => {
8959
- const I = w.css3DObject.position.clone(), x = I.clone().sub(A).normalize(), C = new P.Raycaster(A, x), L = i.model.intersectRaycaster(C)[0], D = I.distanceTo(A), H = 0.01;
8960
- L && L.distance + H < D ? w.hide() : w.show();
8958
+ if (o.forEach((C, y) => {
8959
+ const I = C.css3DObject.position.clone(), k = I.clone().sub(A).normalize(), w = new P.Raycaster(A, k), L = i.model.intersectRaycaster(w)[0], D = I.distanceTo(A), H = 0.01;
8960
+ L && L.distance + H < D ? C.hide() : C.show();
8961
8961
  }), !r()) {
8962
- const w = e.rectPoints.find((y) => {
8962
+ const C = e.rectPoints.find((y) => {
8963
8963
  const I = y[0].clone().add(y[1]).add(y[2]).add(y[3]).divideScalar(4);
8964
- return y.map((x) => x.clone().add(I).divideScalar(2)).filter((x) => {
8965
- const C = x.distanceTo(A), L = new P.Raycaster(A, x.clone().sub(A).normalize()), D = i.model.intersectRaycaster(L)[0], H = 0.01;
8966
- return !(D && D.distance + H < C);
8964
+ return y.map((k) => k.clone().add(I).divideScalar(2)).filter((k) => {
8965
+ const w = k.distanceTo(A), L = new P.Raycaster(A, k.clone().sub(A).normalize()), D = i.model.intersectRaycaster(L)[0], H = 0.01;
8966
+ return !(D && D.distance + H < w);
8967
8967
  }).length >= 2;
8968
8968
  });
8969
- (!w || w.length === 0) && s(!0);
8969
+ (!C || C.length === 0) && s(!0);
8970
8970
  }
8971
8971
  }, v = () => {
8972
8972
  l(), e.videoTexture = void 0, i.off("modeChange", p), i.off("wantsTapGesture", m), i.off("panoArrived", g), i.off("renderFrame", () => {
@@ -9164,10 +9164,10 @@ function is(i) {
9164
9164
  o[0] & 2 && (s.itemLabel = n[30]), o[0] & 1 && (s.hooks = n[0]), o[0] & 4 && (s.anchorEnabled = n[2]), t.$set(s);
9165
9165
  },
9166
9166
  i(n) {
9167
- e || (k(t.$$.fragment, n), e = !0);
9167
+ e || (x(t.$$.fragment, n), e = !0);
9168
9168
  },
9169
9169
  o(n) {
9170
- z(t.$$.fragment, n), e = !1;
9170
+ M(t.$$.fragment, n), e = !1;
9171
9171
  },
9172
9172
  d(n) {
9173
9173
  $(t, n);
@@ -9186,15 +9186,15 @@ function os(i, t) {
9186
9186
  T(r, e, a), s && s.m(r, a), T(r, n, a), o = !0;
9187
9187
  },
9188
9188
  p(r, a) {
9189
- t = r, t[30].visible ? s ? (s.p(t, a), a[0] & 2 && k(s, 1)) : (s = is(t), s.c(), k(s, 1), s.m(n.parentNode, n)) : s && (ue(), z(s, 1, 1, () => {
9189
+ t = r, t[30].visible ? s ? (s.p(t, a), a[0] & 2 && x(s, 1)) : (s = is(t), s.c(), x(s, 1), s.m(n.parentNode, n)) : s && (ue(), M(s, 1, 1, () => {
9190
9190
  s = null;
9191
9191
  }), fe());
9192
9192
  },
9193
9193
  i(r) {
9194
- o || (k(s), o = !0);
9194
+ o || (x(s), o = !0);
9195
9195
  },
9196
9196
  o(r) {
9197
- z(s), o = !1;
9197
+ M(s), o = !1;
9198
9198
  },
9199
9199
  d(r) {
9200
9200
  r && j(e), s && s.d(r), r && j(n);
@@ -9227,13 +9227,13 @@ function Mf(i) {
9227
9227
  i(l) {
9228
9228
  if (!s) {
9229
9229
  for (let c = 0; c < r.length; c += 1)
9230
- k(e[c]);
9230
+ x(e[c]);
9231
9231
  s = !0;
9232
9232
  }
9233
9233
  },
9234
9234
  o(l) {
9235
9235
  for (let c = 0; c < e.length; c += 1)
9236
- z(e[c]);
9236
+ M(e[c]);
9237
9237
  s = !1;
9238
9238
  },
9239
9239
  d(l) {
@@ -9248,22 +9248,22 @@ let Tf = 11;
9248
9248
  function jf(i, t, e) {
9249
9249
  const { Raycaster: n, Vector3: o } = P;
9250
9250
  let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, { maxVisibleDistance: d } = t, f = null, u = null, m = (s == null ? void 0 : s.currentMode) === Me.Mode.Panorama, p, g, v = [], A = !0;
9251
- const w = (B, N) => {
9252
- const Y = B.camera.position.clone(), ee = new o(N.modelPosition[0], N.modelPosition[1], N.modelPosition[2]), W = ee.distanceTo(Y);
9253
- return d !== void 0 && B.state.mode === Me.Mode.Panorama && W > d ? !1 : es(B, ee.clone().sub(Y).normalize(), Y, W);
9254
- }, y = (B) => {
9255
- const { camera: N, model: Y } = s, { x: ee, y: W, z: U } = B.clone().project(N), ae = (ee + 1) / 2, le = (2 - (W + 1)) / 2, Ie = Math.abs(U) < 1 && [ae, le].every((Oe) => Oe < 1 && Oe >= 0);
9251
+ const C = (z, N) => {
9252
+ const X = z.camera.position.clone(), ee = new o(N.modelPosition[0], N.modelPosition[1], N.modelPosition[2]), W = ee.distanceTo(X);
9253
+ return d !== void 0 && z.state.mode === Me.Mode.Panorama && W > d ? !1 : es(z, ee.clone().sub(X).normalize(), X, W);
9254
+ }, y = (z) => {
9255
+ const { camera: N, model: X } = s, { x: ee, y: W, z: U } = z.clone().project(N), ae = (ee + 1) / 2, le = (2 - (W + 1)) / 2, Ie = Math.abs(U) < 1 && [ae, le].every((Oe) => Oe < 1 && Oe >= 0);
9256
9256
  return Boolean(Ie);
9257
- }, I = (B, N) => {
9258
- const Y = new o(N.modelPosition[0], N.modelPosition[1], N.modelPosition[2]), ee = B.project2d(Y), W = ee == null ? void 0 : ee.x, U = ee == null ? void 0 : ee.y;
9257
+ }, I = (z, N) => {
9258
+ const X = new o(N.modelPosition[0], N.modelPosition[1], N.modelPosition[2]), ee = z.project2d(X), W = ee == null ? void 0 : ee.x, U = ee == null ? void 0 : ee.y;
9259
9259
  return [W, U];
9260
- }, x = (B, N) => {
9261
- const Y = N.map((W) => {
9262
- if (B.state.panoIndex !== W.panoIndex)
9260
+ }, k = (z, N) => {
9261
+ const X = N.map((W) => {
9262
+ if (z.state.panoIndex !== W.panoIndex)
9263
9263
  return he(G({}, W), { visible: !1 });
9264
- const U = I(B, W);
9264
+ const U = I(z, W);
9265
9265
  W.name.length * Tf;
9266
- const ae = Lf(W.modelPosition[1], c), le = B.currentMode === Me.Mode.Panorama ? y(new o(W.position[0], W.position[1], W.position[2])) : !0, me = r ? w(B, W) : !1, ye = le && !me;
9266
+ const ae = Lf(W.modelPosition[1], c), le = z.currentMode === Me.Mode.Panorama ? y(new o(W.position[0], W.position[1], W.position[2])) : !0, me = r ? C(z, W) : !1, ye = le && !me;
9267
9267
  if (!ye)
9268
9268
  return he(G({}, W), { visible: ye });
9269
9269
  v.push(U);
@@ -9273,60 +9273,60 @@ function jf(i, t, e) {
9273
9273
  transform: Ie,
9274
9274
  strokeLength: ae
9275
9275
  });
9276
- }), ee = Y.filter(({ visible: W }) => W).map((W) => ({
9276
+ }), ee = X.filter(({ visible: W }) => W).map((W) => ({
9277
9277
  itemLabelItem: W,
9278
- distance: new o(W.modelPosition[0], W.modelPosition[1], W.modelPosition[2]).clone().distanceTo(B.camera.position)
9278
+ distance: new o(W.modelPosition[0], W.modelPosition[1], W.modelPosition[2]).clone().distanceTo(z.camera.position)
9279
9279
  })).sort((W, U) => W.distance - U.distance);
9280
- return Y.map((W) => {
9280
+ return X.map((W) => {
9281
9281
  const U = ee.findIndex((ae) => ae.itemLabelItem.id === W.id);
9282
9282
  return U !== void 0 ? he(G({}, W), { zIndex: U * 10 }) : W;
9283
9283
  });
9284
- }, C = () => {
9285
- v = [], e(1, u = x(s, u));
9284
+ }, w = () => {
9285
+ v = [], e(1, u = k(s, u));
9286
9286
  }, L = () => {
9287
9287
  e(5, A = !1), D();
9288
9288
  }, D = Ur(
9289
9289
  () => {
9290
- e(5, A = !0), C();
9290
+ e(5, A = !0), w();
9291
9291
  },
9292
9292
  300
9293
9293
  ), H = () => {
9294
- s.once("renderFrame", C);
9295
- }, M = () => {
9294
+ s.once("renderFrame", w);
9295
+ }, B = () => {
9296
9296
  window.addEventListener("resize", H, !1);
9297
9297
  }, F = () => {
9298
- f !== a && (e(1, u = ts(a)), f = a, C());
9299
- }, X = (B, N) => {
9300
- let Y = [];
9298
+ f !== a && (e(1, u = ts(a)), f = a, w());
9299
+ }, Y = (z, N) => {
9300
+ let X = [];
9301
9301
  for (let W = 0; W < N.length; W++) {
9302
- const { position: U, panoIndex: ae } = N[W], le = B.distanceTo(U);
9303
- (d === void 0 || le <= d || s.state.mode !== Me.Mode.Panorama) && Y.push({ panoIndex: ae, obVector: U, distance: le });
9302
+ const { position: U, panoIndex: ae } = N[W], le = z.distanceTo(U);
9303
+ (d === void 0 || le <= d || s.state.mode !== Me.Mode.Panorama) && X.push({ panoIndex: ae, obVector: U, distance: le });
9304
9304
  }
9305
- Y = Y.sort((W, U) => W.distance - U.distance);
9305
+ X = X.sort((W, U) => W.distance - U.distance);
9306
9306
  let ee;
9307
- for (let W = 0; W < Y.length; W++) {
9308
- const { obVector: U, distance: ae, panoIndex: le } = Y[W];
9309
- if (!es(s, B, U, ae)) {
9307
+ for (let W = 0; W < X.length; W++) {
9308
+ const { obVector: U, distance: ae, panoIndex: le } = X[W];
9309
+ if (!es(s, z, U, ae)) {
9310
9310
  ee = le;
9311
9311
  break;
9312
9312
  }
9313
9313
  }
9314
9314
  return typeof ee == "number" ? N[ee] : void 0;
9315
- }, E = (B) => {
9315
+ }, E = (z) => {
9316
9316
  if (s.state.mode === Me.Mode.Panorama)
9317
9317
  return;
9318
- const N = s.work.observers, Y = new o().fromArray(B.position), ee = X(Y, N);
9319
- if (ee && (B.observerIndex = ee.panoIndex), typeof B.observerIndex == "number") {
9320
- const W = N[B.observerIndex], U = Y.clone().sub(W.position).normalize(), ae = {
9318
+ const N = s.work.observers, X = new o().fromArray(z.position), ee = Y(X, N);
9319
+ if (ee && (z.observerIndex = ee.panoIndex), typeof z.observerIndex == "number") {
9320
+ const W = N[z.observerIndex], U = X.clone().sub(W.position).normalize(), ae = {
9321
9321
  longitude: Math.PI + Math.atan2(U.x, U.z),
9322
9322
  latitude: Math.acos(U.y / U.length()) - Math.PI / 2
9323
9323
  };
9324
9324
  s.setState(he(G({}, ae), {
9325
9325
  mode: Me.Mode.Panorama,
9326
- panoIndex: B.observerIndex
9326
+ panoIndex: z.observerIndex
9327
9327
  })), s.once("initAnimationEnded", () => {
9328
9328
  e(1, u = u.map((le) => he(G({}, le), {
9329
- isFold: le.id !== B.id
9329
+ isFold: le.id !== z.id
9330
9330
  }))), s.once("cameraUpdate", () => {
9331
9331
  e(1, u = u.map((le) => he(G({}, le), { isFold: !1 })));
9332
9332
  });
@@ -9336,15 +9336,15 @@ function jf(i, t, e) {
9336
9336
  xi(() => {
9337
9337
  F();
9338
9338
  }), Ue(() => {
9339
- e(1, u = ts(a)), f = a, C(), M(), s.on("cameraUpdate", L);
9339
+ e(1, u = ts(a)), f = a, w(), B(), s.on("cameraUpdate", L);
9340
9340
  }), At(() => {
9341
9341
  s.off("cameraUpdate", L), window.removeEventListener("resize", H, !1);
9342
9342
  });
9343
9343
  function S() {
9344
9344
  p = this.clientWidth, g = this.clientHeight, e(3, p), e(4, g);
9345
9345
  }
9346
- return i.$$set = (B) => {
9347
- "five" in B && e(7, s = B.five), "modelOcclusionEnable" in B && e(8, r = B.modelOcclusionEnable), "itemLabels" in B && e(9, a = B.itemLabels), "hooks" in B && e(0, l = B.hooks), "displayStrategyType" in B && e(10, c = B.displayStrategyType), "maxVisibleDistance" in B && e(11, d = B.maxVisibleDistance);
9346
+ return i.$$set = (z) => {
9347
+ "five" in z && e(7, s = z.five), "modelOcclusionEnable" in z && e(8, r = z.modelOcclusionEnable), "itemLabels" in z && e(9, a = z.itemLabels), "hooks" in z && e(0, l = z.hooks), "displayStrategyType" in z && e(10, c = z.displayStrategyType), "maxVisibleDistance" in z && e(11, d = z.maxVisibleDistance);
9348
9348
  }, [
9349
9349
  l,
9350
9350
  u,
@@ -9533,8 +9533,8 @@ function Gf(i, t, e) {
9533
9533
  const p = () => {
9534
9534
  if (!r || !a || !l || !s)
9535
9535
  return;
9536
- const A = s.current.clientWidth / window.innerWidth * 100, w = s.current.clientHeight / window.innerHeight * 100;
9537
- if (r <= A / 2 || r >= 100 - A / 2 || a <= w / 2 || a >= 100 - w / 2)
9536
+ const A = s.current.clientWidth / window.innerWidth * 100, C = s.current.clientHeight / window.innerHeight * 100;
9537
+ if (r <= A / 2 || r >= 100 - A / 2 || a <= C / 2 || a >= 100 - C / 2)
9538
9538
  return;
9539
9539
  d !== m && (console.log("panoDoorLabelPlugin", d, "\u89E6\u53D1\u57CB\u70B9"), m = d);
9540
9540
  }, g = (A) => {
@@ -9648,38 +9648,38 @@ class Vf extends Of {
9648
9648
  }), this.fixDoorPosition();
9649
9649
  });
9650
9650
  h(this, "fixDoorPosition", () => {
9651
- var d, f, u, m, p, g, v, A, w, y;
9651
+ var d, f, u, m, p, g, v, A, C, y, I, k;
9652
9652
  const { panoIndex: e, camera: n } = this.five;
9653
9653
  if (e === null)
9654
9654
  return;
9655
9655
  if (this.five.currentMode !== "Panorama")
9656
9656
  return this.hideAllLabels();
9657
9657
  const o = this.five.getElement(), s = o.clientWidth, r = o.clientHeight, a = n.getWorldDirection(new Z()), l = [], c = [...this.labelItems];
9658
- if (c.forEach((I, x) => {
9659
- if (I.visible) {
9660
- const C = n.position.distanceTo(I.position), L = I.position.clone().add(new Z(0, this.OffsetHeight, 0)), H = L.clone().sub(n.position).normalize().angleTo(a), M = L.clone().project(n), F = (M.x + 1) / 2.2 * 100, X = (-M.y + 1) / 2.2 * 100, E = F >= 0 && F <= 100 && X >= 0 && X <= 100 && C > this.MinVisibledistance && C <= this.MaxVisibledistance;
9661
- I.left = F, I.top = X, I.inSight = E && H < Math.PI / 2, I.cameraToward = Xf(this.five), E ? l.push({ disFromCameraToLabel: C, left: F, top: X, index: x }) : I.transform = "translate(-50%, -50%)";
9658
+ if (c.forEach((w, L) => {
9659
+ if (w.visible) {
9660
+ const D = n.position.distanceTo(w.position), H = w.position.clone().add(new Z(0, this.OffsetHeight, 0)), F = H.clone().sub(n.position).normalize().angleTo(a), Y = H.clone().project(n), E = (Y.x + 1) / 2.2 * 100, S = (-Y.y + 1) / 2.2 * 100, z = E >= 0 && E <= 100 && S >= 0 && S <= 100 && D > this.MinVisibledistance && D <= this.MaxVisibledistance;
9661
+ w.left = E, w.top = S, w.inSight = z && F < Math.PI / 2, w.cameraToward = Xf(this.five), z ? l.push({ disFromCameraToLabel: D, left: E, top: S, index: L }) : w.transform = "translate(-50%, -50%)";
9662
9662
  } else
9663
- I.inSight = !1;
9663
+ w.inSight = !1;
9664
9664
  }), l.length > 1) {
9665
- let I = 0;
9666
- l.sort((x, C) => C.disFromCameraToLabel - x.disFromCameraToLabel);
9667
- for (let x = 1; x < l.length; x++) {
9668
- const { index: C, left: L, top: D } = l[x - 1], { index: H, left: M, top: F } = l[x], X = this.container.children[C], E = this.container.children[H];
9669
- if (!X || !E || !((d = X == null ? void 0 : X.children) != null && d[0]) || !((f = E == null ? void 0 : E.children) != null && f[0]))
9665
+ let w = 0;
9666
+ l.sort((L, D) => D.disFromCameraToLabel - L.disFromCameraToLabel);
9667
+ for (let L = 1; L < l.length; L++) {
9668
+ const { index: D, left: H, top: B } = l[L - 1], { index: F, left: Y, top: E } = l[L], S = this.container.children[D], z = this.container.children[F];
9669
+ if (!S || !z)
9670
9670
  return;
9671
- const S = {
9672
- left: s * L / 100,
9673
- top: r * D / 100,
9674
- width: (m = (u = X.children[0]) == null ? void 0 : u.clientWidth) != null ? m : 0,
9675
- height: (g = (p = X.children[0]) == null ? void 0 : p.clientHeight) != null ? g : 0
9676
- }, B = {
9677
- left: s * M / 100,
9678
- top: r * F / 100,
9679
- width: (A = (v = E.children[0]) == null ? void 0 : v.clientWidth) != null ? A : 0,
9680
- height: (y = (w = E.children[0]) == null ? void 0 : w.clientHeight) != null ? y : 0
9671
+ const N = {
9672
+ left: s * H / 100,
9673
+ top: r * B / 100,
9674
+ width: (u = (f = (d = S.children) == null ? void 0 : d[0]) == null ? void 0 : f.clientWidth) != null ? u : 0,
9675
+ height: (g = (p = (m = S.children) == null ? void 0 : m[0]) == null ? void 0 : p.clientHeight) != null ? g : 0
9676
+ }, X = {
9677
+ left: s * Y / 100,
9678
+ top: r * E / 100,
9679
+ width: (C = (A = (v = z.children) == null ? void 0 : v[0]) == null ? void 0 : A.clientWidth) != null ? C : 0,
9680
+ height: (k = (I = (y = z.children) == null ? void 0 : y[0]) == null ? void 0 : I.clientHeight) != null ? k : 0
9681
9681
  };
9682
- Wf(S, B) && (I++, c[C].transform = `translate(-50%, ${(I - 1) * 100 - 50}%)`, c[H].transform = `translate(-50%, ${I * 100 - 50}%)`);
9682
+ Wf(N, X) && (w++, c[D].transform = `translate(-50%, ${(w - 1) * 100 - 50}%)`, c[F].transform = `translate(-50%, ${w * 100 - 50}%)`);
9683
9683
  }
9684
9684
  }
9685
9685
  this.labelItems = c, this.render();
@@ -9721,8 +9721,8 @@ class Vf extends Of {
9721
9721
  x: v.x,
9722
9722
  y: v.y,
9723
9723
  z: v.z
9724
- }, w = Yf(f, A);
9725
- w < u && (u = w, m = A);
9724
+ }, C = Yf(f, A);
9725
+ C < u && (u = C, m = A);
9726
9726
  }), m && (f.y = m.y + 0.01);
9727
9727
  const p = new Z(f.x, f.y, f.z);
9728
9728
  p.add(new Z(-0.2, 1.8, 0).applyEuler(new Xi(0, d.rad, 0))), this.doorLabels.push({
@@ -9794,28 +9794,28 @@ function $f(i, t) {
9794
9794
  const m = i;
9795
9795
  return m.forEach((p, g) => {
9796
9796
  let v = 0, A = 99999999;
9797
- d.forEach((C, L) => {
9798
- const D = C.distanceTo(p);
9797
+ d.forEach((w, L) => {
9798
+ const D = w.distanceTo(p);
9799
9799
  D < A && (v = L, A = D);
9800
9800
  });
9801
- const w = d[v + 1], y = w == null ? void 0 : w.distanceTo(p), I = d[v - 1], x = I == null ? void 0 : I.distanceTo(p);
9801
+ const C = d[v + 1], y = C == null ? void 0 : C.distanceTo(p), I = d[v - 1], k = I == null ? void 0 : I.distanceTo(p);
9802
9802
  if (v > u && v - u > 1) {
9803
- let C = v;
9804
- I !== void 0 && x > 0.8 && (C = v + 1), I !== void 0 && x > 0.2 && x < 0.3 ? C = v : A > 0.2 && A < 0.3 && (C = v + 1);
9803
+ let w = v;
9804
+ I !== void 0 && k > 0.8 && (w = v + 1), I !== void 0 && k > 0.2 && k < 0.3 ? w = v : A > 0.2 && A < 0.3 && (w = v + 1);
9805
9805
  let L = u;
9806
- if (w !== void 0 && y > 0.2 && y < 0.3 ? L = u + 1 : A > 0.2 && A < 0.3 && (L = u), d[L] && d[L + 1]) {
9807
- const M = m[g - 1];
9808
- if (M)
9809
- if (M.equals(d[L]))
9806
+ if (C !== void 0 && y > 0.2 && y < 0.3 ? L = u + 1 : A > 0.2 && A < 0.3 && (L = u), d[L] && d[L + 1]) {
9807
+ const B = m[g - 1];
9808
+ if (B)
9809
+ if (B.equals(d[L]))
9810
9810
  L += 1;
9811
9811
  else {
9812
- const F = new Z().subVectors(d[L + 1], d[L]), X = new Z().subVectors(M, d[L]);
9813
- F.angleTo(X) < Math.PI / 2 && (L += 1);
9812
+ const F = new Z().subVectors(d[L + 1], d[L]), Y = new Z().subVectors(B, d[L]);
9813
+ F.angleTo(Y) < Math.PI / 2 && (L += 1);
9814
9814
  }
9815
9815
  }
9816
- if (C < L || C - L <= 1)
9816
+ if (w < L || w - L <= 1)
9817
9817
  return;
9818
- const D = d.slice(L, C), H = ss(D, e, n);
9818
+ const D = d.slice(L, w), H = ss(D, e, n);
9819
9819
  f.push(H), u = v;
9820
9820
  }
9821
9821
  }), f;
@@ -9826,16 +9826,16 @@ function $f(i, t) {
9826
9826
  }
9827
9827
  function ss(i, t, e) {
9828
9828
  const n = t / 2, o = e / t, s = i.length, r = Wa(i.map((A) => [A.x, A.z])), l = (i.length - 1) * Zf * qf, c = 2 * s, d = c * _f, f = c * Kf, u = new Uint32Array(l), m = new Float32Array(d), p = new Float32Array(f);
9829
- i.forEach((A, w) => {
9829
+ i.forEach((A, C) => {
9830
9830
  });
9831
9831
  let g = 0;
9832
9832
  for (let A = 0; A < i.length; A++) {
9833
- const [w, y] = r[A][0], I = i[A], { x, y: C, z: L } = I, D = new Z(x + w * n, C + 0.05, L + y * n);
9833
+ const [C, y] = r[A][0], I = i[A], { x: k, y: w, z: L } = I, D = new Z(k + C * n, w + 0.05, L + y * n);
9834
9834
  m[A * 6 + 0] = D.x, m[A * 6 + 1] = D.y, m[A * 6 + 2] = D.z;
9835
- const H = new Z(x - w * n, C + 0.05, L - y * n);
9835
+ const H = new Z(k - C * n, w + 0.05, L - y * n);
9836
9836
  m[A * 6 + 3] = H.x, m[A * 6 + 4] = H.y, m[A * 6 + 5] = H.z, g += A > 0 ? i[A - 1].clone().sub(i[A]).length() : 0;
9837
- const M = g / t / o;
9838
- p[A * 4 + 0] = 0, p[A * 4 + 1] = M, p[A * 4 + 2] = 1, p[A * 4 + 3] = M, A !== i.length - 1 && (u[A * 6 + 0] = A * 2 + 0, u[A * 6 + 1] = A * 2 + 2, u[A * 6 + 2] = A * 2 + 1, u[A * 6 + 3] = A * 2 + 2, u[A * 6 + 4] = A * 2 + 3, u[A * 6 + 5] = A * 2 + 1);
9837
+ const B = g / t / o;
9838
+ p[A * 4 + 0] = 0, p[A * 4 + 1] = B, p[A * 4 + 2] = 1, p[A * 4 + 3] = B, A !== i.length - 1 && (u[A * 6 + 0] = A * 2 + 0, u[A * 6 + 1] = A * 2 + 2, u[A * 6 + 2] = A * 2 + 1, u[A * 6 + 3] = A * 2 + 2, u[A * 6 + 4] = A * 2 + 3, u[A * 6 + 5] = A * 2 + 1);
9839
9839
  }
9840
9840
  const v = new P.BufferGeometry();
9841
9841
  return v.setAttribute("position", new P.BufferAttribute(m, 3)), v.setAttribute("uv", new P.BufferAttribute(p, 2)), v.setIndex(new P.BufferAttribute(u, 1)), v;
@@ -10059,12 +10059,12 @@ class Kr extends Bt {
10059
10059
  var A;
10060
10060
  return g.data.panoIndex !== ((A = c[v - 1]) == null ? void 0 : A.data.panoIndex);
10061
10061
  }).map((g) => g.data.panoIndex).forEach((g) => {
10062
- var A, w;
10062
+ var A, C;
10063
10063
  const v = (A = this.five.work.observers[g]) == null ? void 0 : A.floorIndex;
10064
10064
  if (v !== void 0)
10065
10065
  if (l === v) {
10066
10066
  const y = a.length - 1;
10067
- a[y] = [...(w = a[y]) != null ? w : [], g];
10067
+ a[y] = [...(C = a[y]) != null ? C : [], g];
10068
10068
  } else {
10069
10069
  l = v;
10070
10070
  const y = a.length;
@@ -10135,12 +10135,12 @@ class Kr extends Bt {
10135
10135
  const { moveEffect: r, moveToFirstPanoEffect: a } = o;
10136
10136
  return this.privateState.moveToFirstPanoEffect = a, o.panoIndexList.forEach((l, c) => {
10137
10137
  const d = (() => {
10138
- var g, v, A, w;
10138
+ var g, v, A, C;
10139
10139
  const f = o.panoIndexList.slice(c).find((y) => y !== l);
10140
10140
  if (f === void 0)
10141
10141
  return;
10142
10142
  const u = (g = n[l]) == null ? void 0 : g.position, m = (v = n[f]) == null ? void 0 : v.position;
10143
- if (!m || !u || ((A = n[l]) == null ? void 0 : A.floorIndex) !== ((w = n[f]) == null ? void 0 : w.floorIndex))
10143
+ if (!m || !u || ((A = n[l]) == null ? void 0 : A.floorIndex) !== ((C = n[f]) == null ? void 0 : C.floorIndex))
10144
10144
  return;
10145
10145
  const p = new P.Vector3().subVectors(m, u);
10146
10146
  return rh(p);
@@ -10589,15 +10589,15 @@ function Ah(i) {
10589
10589
  T(a, t, l), Q(t, e), Q(e, n), Q(n, o), Q(n, s), r && r.m(t, null);
10590
10590
  },
10591
10591
  p(a, [l]) {
10592
- a[3] ? r ? (r.p(a, l), l & 8 && k(r, 1)) : (r = us(a), r.c(), k(r, 1), r.m(t, null)) : r && (ue(), z(r, 1, 1, () => {
10592
+ a[3] ? r ? (r.p(a, l), l & 8 && x(r, 1)) : (r = us(a), r.c(), x(r, 1), r.m(t, null)) : r && (ue(), M(r, 1, 1, () => {
10593
10593
  r = null;
10594
10594
  }), fe());
10595
10595
  },
10596
10596
  i(a) {
10597
- k(r);
10597
+ x(r);
10598
10598
  },
10599
10599
  o(a) {
10600
- z(r);
10600
+ M(r);
10601
10601
  },
10602
10602
  d(a) {
10603
10603
  a && j(t), r && r.d();
@@ -10681,15 +10681,15 @@ function yh(i) {
10681
10681
  e && e.m(n, o), T(n, t, o);
10682
10682
  },
10683
10683
  p(n, [o]) {
10684
- n[2] ? e ? (e.p(n, o), o & 4 && k(e, 1)) : (e = fs(n), e.c(), k(e, 1), e.m(t.parentNode, t)) : e && (ue(), z(e, 1, 1, () => {
10684
+ n[2] ? e ? (e.p(n, o), o & 4 && x(e, 1)) : (e = fs(n), e.c(), x(e, 1), e.m(t.parentNode, t)) : e && (ue(), M(e, 1, 1, () => {
10685
10685
  e = null;
10686
10686
  }), fe());
10687
10687
  },
10688
10688
  i(n) {
10689
- k(e);
10689
+ x(e);
10690
10690
  },
10691
10691
  o(n) {
10692
- z(e);
10692
+ M(e);
10693
10693
  },
10694
10694
  d(n) {
10695
10695
  e && e.d(n), n && j(t);
@@ -10896,7 +10896,7 @@ function vs(i) {
10896
10896
  i = f, (!l || u & 1 && s !== (s = "arrow " + i[0] + " svelte-1ogmlqq")) && b(o, "class", s);
10897
10897
  },
10898
10898
  i(f) {
10899
- l || (k(e.$$.fragment, f), f && Re(() => {
10899
+ l || (x(e.$$.fragment, f), f && Re(() => {
10900
10900
  a && a.end(1), r = jt(o, St, {
10901
10901
  duration: i[2],
10902
10902
  delay: i[3],
@@ -10905,7 +10905,7 @@ function vs(i) {
10905
10905
  }), l = !0);
10906
10906
  },
10907
10907
  o(f) {
10908
- z(e.$$.fragment, f), r && r.invalidate(), f && (a = Nt(o, St, {
10908
+ M(e.$$.fragment, f), r && r.invalidate(), f && (a = Nt(o, St, {
10909
10909
  duration: i[2],
10910
10910
  delay: i[4],
10911
10911
  easing: Kt
@@ -10926,15 +10926,15 @@ function Dh(i) {
10926
10926
  n && n.m(o, s), T(o, t, s), e = !0;
10927
10927
  },
10928
10928
  p(o, [s]) {
10929
- o[1] ? n ? (n.p(o, s), s & 2 && k(n, 1)) : (n = vs(o), n.c(), k(n, 1), n.m(t.parentNode, t)) : n && (ue(), z(n, 1, 1, () => {
10929
+ o[1] ? n ? (n.p(o, s), s & 2 && x(n, 1)) : (n = vs(o), n.c(), x(n, 1), n.m(t.parentNode, t)) : n && (ue(), M(n, 1, 1, () => {
10930
10930
  n = null;
10931
10931
  }), fe());
10932
10932
  },
10933
10933
  i(o) {
10934
- e || (k(n), e = !0);
10934
+ e || (x(n), e = !0);
10935
10935
  },
10936
10936
  o(o) {
10937
- z(n), e = !1;
10937
+ M(n), e = !1;
10938
10938
  },
10939
10939
  d(o) {
10940
10940
  n && n.d(o), o && j(t);
@@ -11009,10 +11009,10 @@ function ys(i, t) {
11009
11009
  r & 1 && (a.unfolded = t[0]), r & 2 && (a.content = t[12]), r & 32 && (a.outDelay = t[5]), n.$set(a), r & 128 && R(e, "transform", t[7], !1);
11010
11010
  },
11011
11011
  i(s) {
11012
- o || (k(n.$$.fragment, s), o = !0);
11012
+ o || (x(n.$$.fragment, s), o = !0);
11013
11013
  },
11014
11014
  o(s) {
11015
- z(n.$$.fragment, s), o = !1;
11015
+ M(n.$$.fragment, s), o = !1;
11016
11016
  },
11017
11017
  d(s) {
11018
11018
  s && j(e), $(n), t[10](null);
@@ -11040,10 +11040,10 @@ function ws(i) {
11040
11040
  s & 64 && (r.direction = o[6]), s & 1 && (r.visible = o[0]), e.$set(r);
11041
11041
  },
11042
11042
  i(o) {
11043
- n || (k(e.$$.fragment, o), n = !0);
11043
+ n || (x(e.$$.fragment, o), n = !0);
11044
11044
  },
11045
11045
  o(o) {
11046
- z(e.$$.fragment, o), n = !1;
11046
+ M(e.$$.fragment, o), n = !1;
11047
11047
  },
11048
11048
  d(o) {
11049
11049
  o && j(t), $(e);
@@ -11070,21 +11070,21 @@ function Th(i) {
11070
11070
  T(c, n, d), l && l.m(c, d), T(c, o, d), s = !0;
11071
11071
  },
11072
11072
  p(c, [d]) {
11073
- d & 167 && (r = c[1], ue(), t = Ye(t, d, a, 1, c, r, e, n.parentNode, at, ys, n, bs), fe()), c[3] < c[4] ? l ? (l.p(c, d), d & 24 && k(l, 1)) : (l = ws(c), l.c(), k(l, 1), l.m(o.parentNode, o)) : l && (ue(), z(l, 1, 1, () => {
11073
+ d & 167 && (r = c[1], ue(), t = Ye(t, d, a, 1, c, r, e, n.parentNode, at, ys, n, bs), fe()), c[3] < c[4] ? l ? (l.p(c, d), d & 24 && x(l, 1)) : (l = ws(c), l.c(), x(l, 1), l.m(o.parentNode, o)) : l && (ue(), M(l, 1, 1, () => {
11074
11074
  l = null;
11075
11075
  }), fe());
11076
11076
  },
11077
11077
  i(c) {
11078
11078
  if (!s) {
11079
11079
  for (let d = 0; d < r.length; d += 1)
11080
- k(t[d]);
11081
- k(l), s = !0;
11080
+ x(t[d]);
11081
+ x(l), s = !0;
11082
11082
  }
11083
11083
  },
11084
11084
  o(c) {
11085
11085
  for (let d = 0; d < t.length; d += 1)
11086
- z(t[d]);
11087
- z(l), s = !1;
11086
+ M(t[d]);
11087
+ M(l), s = !1;
11088
11088
  },
11089
11089
  d(c) {
11090
11090
  for (let d = 0; d < t.length; d += 1)
@@ -11181,14 +11181,14 @@ function Cs(i) {
11181
11181
  g & 4 && (v.visible = p[2]), g & 8 && (v.left = p[3] / 2 + "px"), t.$set(v);
11182
11182
  const A = {};
11183
11183
  g & 4 && (A.unfolded = p[2]), g & 48 && (A.outDelay = p[5] + 40 * Math.min((I = (y = p[4][0]) == null ? void 0 : y.content.length) != null ? I : 10, 15)), o.$set(A), g & 8 && R(n, "width", p[3] + "px", !1);
11184
- const w = {};
11185
- g & 4 && (w.visible = p[2]), g & 2 && (w.textUnfolded = p[1]), g & 16 && (w.textItems = p[4]), a.$set(w);
11184
+ const C = {};
11185
+ g & 4 && (C.visible = p[2]), g & 2 && (C.textUnfolded = p[1]), g & 16 && (C.textItems = p[4]), a.$set(C);
11186
11186
  },
11187
11187
  i(p) {
11188
- c || (k(t.$$.fragment, p), k(o.$$.fragment, p), k(a.$$.fragment, p), c = !0);
11188
+ c || (x(t.$$.fragment, p), x(o.$$.fragment, p), x(a.$$.fragment, p), c = !0);
11189
11189
  },
11190
11190
  o(p) {
11191
- z(t.$$.fragment, p), z(o.$$.fragment, p), z(a.$$.fragment, p), c = !1;
11191
+ M(t.$$.fragment, p), M(o.$$.fragment, p), M(a.$$.fragment, p), c = !1;
11192
11192
  },
11193
11193
  d(p) {
11194
11194
  $(t, p), p && j(e), p && j(n), $(o), p && j(s), p && j(r), $(a), l(), d = !1, f();
@@ -11205,15 +11205,15 @@ function Qh(i) {
11205
11205
  n && n.m(o, s), T(o, t, s), e = !0;
11206
11206
  },
11207
11207
  p(o, [s]) {
11208
- o[0].state ? n ? (n.p(o, s), s & 1 && k(n, 1)) : (n = Cs(o), n.c(), k(n, 1), n.m(t.parentNode, t)) : n && (ue(), z(n, 1, 1, () => {
11208
+ o[0].state ? n ? (n.p(o, s), s & 1 && x(n, 1)) : (n = Cs(o), n.c(), x(n, 1), n.m(t.parentNode, t)) : n && (ue(), M(n, 1, 1, () => {
11209
11209
  n = null;
11210
11210
  }), fe());
11211
11211
  },
11212
11212
  i(o) {
11213
- e || (k(n), e = !0);
11213
+ e || (x(n), e = !0);
11214
11214
  },
11215
11215
  o(o) {
11216
- z(n), e = !1;
11216
+ M(n), e = !1;
11217
11217
  },
11218
11218
  d(o) {
11219
11219
  n && n.d(o), o && j(t);
@@ -11301,15 +11301,15 @@ function Fh(i) {
11301
11301
  T(a, t, l), Q(t, e), Q(e, n), Q(n, o), Q(n, s), r && r.m(t, null);
11302
11302
  },
11303
11303
  p(a, [l]) {
11304
- a[3] ? r ? (r.p(a, l), l & 8 && k(r, 1)) : (r = Es(a), r.c(), k(r, 1), r.m(t, null)) : r && (ue(), z(r, 1, 1, () => {
11304
+ a[3] ? r ? (r.p(a, l), l & 8 && x(r, 1)) : (r = Es(a), r.c(), x(r, 1), r.m(t, null)) : r && (ue(), M(r, 1, 1, () => {
11305
11305
  r = null;
11306
11306
  }), fe());
11307
11307
  },
11308
11308
  i(a) {
11309
- k(r);
11309
+ x(r);
11310
11310
  },
11311
11311
  o(a) {
11312
- z(r);
11312
+ M(r);
11313
11313
  },
11314
11314
  d(a) {
11315
11315
  a && j(t), r && r.d();
@@ -11543,7 +11543,7 @@ function Uh({
11543
11543
  scrollbarEl: r,
11544
11544
  paginationEl: a
11545
11545
  }) {
11546
- const l = n.filter((x) => x !== "children" && x !== "direction"), {
11546
+ const l = n.filter((k) => k !== "children" && k !== "direction"), {
11547
11547
  params: c,
11548
11548
  pagination: d,
11549
11549
  navigation: f,
@@ -11551,19 +11551,19 @@ function Uh({
11551
11551
  virtual: m,
11552
11552
  thumbs: p
11553
11553
  } = i;
11554
- let g, v, A, w, y;
11555
- n.includes("thumbs") && e.thumbs && e.thumbs.swiper && c.thumbs && !c.thumbs.swiper && (g = !0), n.includes("controller") && e.controller && e.controller.control && c.controller && !c.controller.control && (v = !0), n.includes("pagination") && e.pagination && (e.pagination.el || a) && (c.pagination || c.pagination === !1) && d && !d.el && (A = !0), n.includes("scrollbar") && e.scrollbar && (e.scrollbar.el || r) && (c.scrollbar || c.scrollbar === !1) && u && !u.el && (w = !0), n.includes("navigation") && e.navigation && (e.navigation.prevEl || s) && (e.navigation.nextEl || o) && (c.navigation || c.navigation === !1) && f && !f.prevEl && !f.nextEl && (y = !0);
11556
- const I = (x) => {
11557
- !i[x] || (i[x].destroy(), x === "navigation" ? (c[x].prevEl = void 0, c[x].nextEl = void 0, i[x].prevEl = void 0, i[x].nextEl = void 0) : (c[x].el = void 0, i[x].el = void 0));
11554
+ let g, v, A, C, y;
11555
+ n.includes("thumbs") && e.thumbs && e.thumbs.swiper && c.thumbs && !c.thumbs.swiper && (g = !0), n.includes("controller") && e.controller && e.controller.control && c.controller && !c.controller.control && (v = !0), n.includes("pagination") && e.pagination && (e.pagination.el || a) && (c.pagination || c.pagination === !1) && d && !d.el && (A = !0), n.includes("scrollbar") && e.scrollbar && (e.scrollbar.el || r) && (c.scrollbar || c.scrollbar === !1) && u && !u.el && (C = !0), n.includes("navigation") && e.navigation && (e.navigation.prevEl || s) && (e.navigation.nextEl || o) && (c.navigation || c.navigation === !1) && f && !f.prevEl && !f.nextEl && (y = !0);
11556
+ const I = (k) => {
11557
+ !i[k] || (i[k].destroy(), k === "navigation" ? (c[k].prevEl = void 0, c[k].nextEl = void 0, i[k].prevEl = void 0, i[k].nextEl = void 0) : (c[k].el = void 0, i[k].el = void 0));
11558
11558
  };
11559
- l.forEach((x) => {
11560
- if (Mt(c[x]) && Mt(e[x]))
11561
- ht(c[x], e[x]);
11559
+ l.forEach((k) => {
11560
+ if (Mt(c[k]) && Mt(e[k]))
11561
+ ht(c[k], e[k]);
11562
11562
  else {
11563
- const C = e[x];
11564
- (C === !0 || C === !1) && (x === "navigation" || x === "pagination" || x === "scrollbar") ? C === !1 && I(x) : c[x] = e[x];
11563
+ const w = e[k];
11564
+ (w === !0 || w === !1) && (k === "navigation" || k === "pagination" || k === "scrollbar") ? w === !1 && I(k) : c[k] = e[k];
11565
11565
  }
11566
- }), l.includes("controller") && !v && i.controller && i.controller.control && c.controller && c.controller.control && (i.controller.control = c.controller.control), n.includes("children") && t && m && c.virtual.enabled ? (m.slides = t, m.update(!0)) : n.includes("children") && i.lazy && i.params.lazy.enabled && i.lazy.load(), g && p.init() && p.update(!0), v && (i.controller.control = c.controller.control), A && (a && (c.pagination.el = a), d.init(), d.render(), d.update()), w && (r && (c.scrollbar.el = r), u.init(), u.updateSize(), u.setTranslate()), y && (o && (c.navigation.nextEl = o), s && (c.navigation.prevEl = s), f.init(), f.update()), n.includes("allowSlideNext") && (i.allowSlideNext = e.allowSlideNext), n.includes("allowSlidePrev") && (i.allowSlidePrev = e.allowSlidePrev), n.includes("direction") && i.changeDirection(e.direction, !1), i.update();
11566
+ }), l.includes("controller") && !v && i.controller && i.controller.control && c.controller && c.controller.control && (i.controller.control = c.controller.control), n.includes("children") && t && m && c.virtual.enabled ? (m.slides = t, m.update(!0)) : n.includes("children") && i.lazy && i.params.lazy.enabled && i.lazy.load(), g && p.init() && p.update(!0), v && (i.controller.control = c.controller.control), A && (a && (c.pagination.el = a), d.init(), d.render(), d.update()), C && (r && (c.scrollbar.el = r), u.init(), u.updateSize(), u.setTranslate()), y && (o && (c.navigation.nextEl = o), s && (c.navigation.prevEl = s), f.init(), f.update()), n.includes("allowSlideNext") && (i.allowSlideNext = e.allowSlideNext), n.includes("allowSlidePrev") && (i.allowSlidePrev = e.allowSlidePrev), n.includes("direction") && i.changeDirection(e.direction, !1), i.update();
11567
11567
  }
11568
11568
  const Jh = (i) => ({ virtualData: i & 512 }), Ps = (i) => ({ virtualData: i[9] }), Vh = (i) => ({ virtualData: i & 512 }), Is = (i) => ({ virtualData: i[9] }), Zh = (i) => ({ virtualData: i & 512 }), xs = (i) => ({ virtualData: i[9] }), qh = (i) => ({ virtualData: i & 512 }), ks = (i) => ({ virtualData: i[9] }), _h = (i) => ({ virtualData: i & 512 }), Ds = (i) => ({ virtualData: i[9] });
11569
11569
  function Ls(i) {
@@ -11613,73 +11613,73 @@ function zs(i) {
11613
11613
  }
11614
11614
  function Kh(i) {
11615
11615
  let t, e, n, o, s, r, a = gi(i[2]), l, c = vi(i[2]), d, f = Ai(i[2]), u, m, p;
11616
- const g = i[12]["container-start"], v = Et(g, i, i[11], Ds), A = i[12]["wrapper-start"], w = Et(A, i, i[11], ks), y = i[12].default, I = Et(y, i, i[11], xs), x = i[12]["wrapper-end"], C = Et(x, i, i[11], Is);
11616
+ const g = i[12]["container-start"], v = Et(g, i, i[11], Ds), A = i[12]["wrapper-start"], C = Et(A, i, i[11], ks), y = i[12].default, I = Et(y, i, i[11], xs), k = i[12]["wrapper-end"], w = Et(k, i, i[11], Is);
11617
11617
  let L = a && Ls(i), D = c && Ss(i), H = f && zs(i);
11618
- const M = i[12]["container-end"], F = Et(M, i, i[11], Ps);
11619
- let X = [
11618
+ const B = i[12]["container-end"], F = Et(B, i, i[11], Ps);
11619
+ let Y = [
11620
11620
  {
11621
11621
  class: m = Bn(`${i[1]}${i[0] ? ` ${i[0]}` : ""}`)
11622
11622
  },
11623
11623
  i[3]
11624
11624
  ], E = {};
11625
- for (let S = 0; S < X.length; S += 1)
11626
- E = Ee(E, X[S]);
11625
+ for (let S = 0; S < Y.length; S += 1)
11626
+ E = Ee(E, Y[S]);
11627
11627
  return {
11628
11628
  c() {
11629
- t = O("div"), v && v.c(), e = V(), n = O("div"), w && w.c(), o = V(), I && I.c(), s = V(), C && C.c(), r = V(), L && L.c(), l = V(), D && D.c(), d = V(), H && H.c(), u = V(), F && F.c(), b(n, "class", "swiper-wrapper"), kn(t, E);
11629
+ t = O("div"), v && v.c(), e = V(), n = O("div"), C && C.c(), o = V(), I && I.c(), s = V(), w && w.c(), r = V(), L && L.c(), l = V(), D && D.c(), d = V(), H && H.c(), u = V(), F && F.c(), b(n, "class", "swiper-wrapper"), kn(t, E);
11630
11630
  },
11631
- m(S, B) {
11632
- T(S, t, B), v && v.m(t, null), Q(t, e), Q(t, n), w && w.m(n, null), Q(n, o), I && I.m(n, null), Q(n, s), C && C.m(n, null), Q(t, r), L && L.m(t, null), Q(t, l), D && D.m(t, null), Q(t, d), H && H.m(t, null), Q(t, u), F && F.m(t, null), i[17](t), p = !0;
11631
+ m(S, z) {
11632
+ T(S, t, z), v && v.m(t, null), Q(t, e), Q(t, n), C && C.m(n, null), Q(n, o), I && I.m(n, null), Q(n, s), w && w.m(n, null), Q(t, r), L && L.m(t, null), Q(t, l), D && D.m(t, null), Q(t, d), H && H.m(t, null), Q(t, u), F && F.m(t, null), i[17](t), p = !0;
11633
11633
  },
11634
- p(S, [B]) {
11635
- v && v.p && (!p || B & 2560) && Pt(
11634
+ p(S, [z]) {
11635
+ v && v.p && (!p || z & 2560) && Pt(
11636
11636
  v,
11637
11637
  g,
11638
11638
  S,
11639
11639
  S[11],
11640
- p ? xt(g, S[11], B, _h) : It(S[11]),
11640
+ p ? xt(g, S[11], z, _h) : It(S[11]),
11641
11641
  Ds
11642
- ), w && w.p && (!p || B & 2560) && Pt(
11643
- w,
11642
+ ), C && C.p && (!p || z & 2560) && Pt(
11643
+ C,
11644
11644
  A,
11645
11645
  S,
11646
11646
  S[11],
11647
- p ? xt(A, S[11], B, qh) : It(S[11]),
11647
+ p ? xt(A, S[11], z, qh) : It(S[11]),
11648
11648
  ks
11649
- ), I && I.p && (!p || B & 2560) && Pt(
11649
+ ), I && I.p && (!p || z & 2560) && Pt(
11650
11650
  I,
11651
11651
  y,
11652
11652
  S,
11653
11653
  S[11],
11654
- p ? xt(y, S[11], B, Zh) : It(S[11]),
11654
+ p ? xt(y, S[11], z, Zh) : It(S[11]),
11655
11655
  xs
11656
- ), C && C.p && (!p || B & 2560) && Pt(
11657
- C,
11658
- x,
11656
+ ), w && w.p && (!p || z & 2560) && Pt(
11657
+ w,
11658
+ k,
11659
11659
  S,
11660
11660
  S[11],
11661
- p ? xt(x, S[11], B, Vh) : It(S[11]),
11661
+ p ? xt(k, S[11], z, Vh) : It(S[11]),
11662
11662
  Is
11663
- ), B & 4 && (a = gi(S[2])), a ? L ? L.p(S, B) : (L = Ls(S), L.c(), L.m(t, l)) : L && (L.d(1), L = null), B & 4 && (c = vi(S[2])), c ? D ? D.p(S, B) : (D = Ss(S), D.c(), D.m(t, d)) : D && (D.d(1), D = null), B & 4 && (f = Ai(S[2])), f ? H ? H.p(S, B) : (H = zs(S), H.c(), H.m(t, u)) : H && (H.d(1), H = null), F && F.p && (!p || B & 2560) && Pt(
11663
+ ), z & 4 && (a = gi(S[2])), a ? L ? L.p(S, z) : (L = Ls(S), L.c(), L.m(t, l)) : L && (L.d(1), L = null), z & 4 && (c = vi(S[2])), c ? D ? D.p(S, z) : (D = Ss(S), D.c(), D.m(t, d)) : D && (D.d(1), D = null), z & 4 && (f = Ai(S[2])), f ? H ? H.p(S, z) : (H = zs(S), H.c(), H.m(t, u)) : H && (H.d(1), H = null), F && F.p && (!p || z & 2560) && Pt(
11664
11664
  F,
11665
- M,
11665
+ B,
11666
11666
  S,
11667
11667
  S[11],
11668
- p ? xt(M, S[11], B, Jh) : It(S[11]),
11668
+ p ? xt(B, S[11], z, Jh) : It(S[11]),
11669
11669
  Ps
11670
- ), kn(t, E = ze(X, [
11671
- (!p || B & 3 && m !== (m = Bn(`${S[1]}${S[0] ? ` ${S[0]}` : ""}`))) && { class: m },
11672
- B & 8 && S[3]
11670
+ ), kn(t, E = ze(Y, [
11671
+ (!p || z & 3 && m !== (m = Bn(`${S[1]}${S[0] ? ` ${S[0]}` : ""}`))) && { class: m },
11672
+ z & 8 && S[3]
11673
11673
  ]));
11674
11674
  },
11675
11675
  i(S) {
11676
- p || (k(v, S), k(w, S), k(I, S), k(C, S), k(F, S), p = !0);
11676
+ p || (x(v, S), x(C, S), x(I, S), x(w, S), x(F, S), p = !0);
11677
11677
  },
11678
11678
  o(S) {
11679
- z(v, S), z(w, S), z(I, S), z(C, S), z(F, S), p = !1;
11679
+ M(v, S), M(C, S), M(I, S), M(w, S), M(F, S), p = !1;
11680
11680
  },
11681
11681
  d(S) {
11682
- S && j(t), v && v.d(S), w && w.d(S), I && I.d(S), C && C.d(S), L && L.d(), D && D.d(), H && H.d(), F && F.d(S), i[17](null);
11682
+ S && j(t), v && v.d(S), C && C.d(S), I && I.d(S), w && w.d(S), L && L.d(), D && D.d(), H && H.d(), F && F.d(S), i[17](null);
11683
11683
  }
11684
11684
  };
11685
11685
  }
@@ -11687,35 +11687,35 @@ function $h(i, t, e) {
11687
11687
  const n = ["class", "swiper"];
11688
11688
  let o = Dn(t, n), { $$slots: s = {}, $$scope: r } = t;
11689
11689
  const a = Fa();
11690
- let { class: l = void 0 } = t, c = "swiper", d = !1, f = null, u = null, m, p, g, v, A = null, w = null, y = null, I = null, x = null, C = { slides: [] };
11690
+ let { class: l = void 0 } = t, c = "swiper", d = !1, f = null, u = null, m, p, g, v, A = null, C = null, y = null, I = null, k = null, w = { slides: [] };
11691
11691
  function L() {
11692
11692
  return f;
11693
11693
  }
11694
11694
  const D = (N) => {
11695
- e(9, C = N), Ga().then(() => {
11696
- f.$wrapperEl.children(".swiper-slide").each((Y) => {
11697
- Y.onSwiper && Y.onSwiper(f);
11695
+ e(9, w = N), Ga().then(() => {
11696
+ f.$wrapperEl.children(".swiper-slide").each((X) => {
11697
+ X.onSwiper && X.onSwiper(f);
11698
11698
  }), f.updateSlides(), f.updateProgress(), f.updateSlidesClasses(), f.lazy && f.params.lazy.enabled && f.lazy.load();
11699
11699
  });
11700
11700
  }, H = () => {
11701
11701
  m = Wh(o), e(2, p = m.params), g = m.passedParams, e(3, v = m.rest);
11702
11702
  };
11703
11703
  H(), u = g;
11704
- const M = () => {
11704
+ const B = () => {
11705
11705
  d = !0;
11706
11706
  };
11707
- if (p.onAny = (N, ...Y) => {
11708
- a(N, Y);
11707
+ if (p.onAny = (N, ...X) => {
11708
+ a(N, X);
11709
11709
  }, Object.assign(p.on, {
11710
- _beforeBreakpoint: M,
11711
- _containerClasses(N, Y) {
11712
- e(1, c = Y);
11710
+ _beforeBreakpoint: B,
11711
+ _containerClasses(N, X) {
11712
+ e(1, c = X);
11713
11713
  }
11714
11714
  }), f = new ci(p), ai("swiper", f), f.virtual && f.params.virtual.enabled) {
11715
11715
  const N = {
11716
11716
  cache: !1,
11717
- renderExternal: (Y) => {
11718
- D(Y), p.virtual && p.virtual.renderExternal && p.virtual.renderExternal(Y);
11717
+ renderExternal: (X) => {
11718
+ D(X), p.virtual && p.virtual.renderExternal && p.virtual.renderExternal(X);
11719
11719
  },
11720
11720
  renderExternalUpdate: !1
11721
11721
  };
@@ -11726,8 +11726,8 @@ function $h(i, t, e) {
11726
11726
  {
11727
11727
  el: A,
11728
11728
  nextEl: y,
11729
- prevEl: w,
11730
- paginationEl: x,
11729
+ prevEl: C,
11730
+ paginationEl: k,
11731
11731
  scrollbarEl: I,
11732
11732
  swiper: f
11733
11733
  },
@@ -11745,19 +11745,19 @@ function $h(i, t, e) {
11745
11745
  passedParams: g,
11746
11746
  changedParams: N,
11747
11747
  nextEl: y,
11748
- prevEl: w,
11748
+ prevEl: C,
11749
11749
  scrollbarEl: I,
11750
- paginationEl: x
11750
+ paginationEl: k
11751
11751
  }), d = !1, u = g;
11752
11752
  }), At(() => {
11753
11753
  typeof window != "undefined" && f && !f.destroyed && f.destroy(!0, !1);
11754
11754
  });
11755
11755
  function F(N) {
11756
11756
  Qe[N ? "unshift" : "push"](() => {
11757
- w = N, e(5, w);
11757
+ C = N, e(5, C);
11758
11758
  });
11759
11759
  }
11760
- function X(N) {
11760
+ function Y(N) {
11761
11761
  Qe[N ? "unshift" : "push"](() => {
11762
11762
  y = N, e(6, y);
11763
11763
  });
@@ -11769,10 +11769,10 @@ function $h(i, t, e) {
11769
11769
  }
11770
11770
  function S(N) {
11771
11771
  Qe[N ? "unshift" : "push"](() => {
11772
- x = N, e(8, x);
11772
+ k = N, e(8, k);
11773
11773
  });
11774
11774
  }
11775
- function B(N) {
11775
+ function z(N) {
11776
11776
  Qe[N ? "unshift" : "push"](() => {
11777
11777
  A = N, e(4, A);
11778
11778
  });
@@ -11785,19 +11785,19 @@ function $h(i, t, e) {
11785
11785
  p,
11786
11786
  v,
11787
11787
  A,
11788
- w,
11788
+ C,
11789
11789
  y,
11790
11790
  I,
11791
- x,
11792
- C,
11791
+ k,
11792
+ w,
11793
11793
  L,
11794
11794
  r,
11795
11795
  s,
11796
11796
  F,
11797
- X,
11797
+ Y,
11798
11798
  E,
11799
11799
  S,
11800
- B
11800
+ z
11801
11801
  ];
11802
11802
  }
11803
11803
  class em extends te {
@@ -11830,10 +11830,10 @@ function im(i) {
11830
11830
  );
11831
11831
  },
11832
11832
  i(o) {
11833
- t || (k(n, o), t = !0);
11833
+ t || (x(n, o), t = !0);
11834
11834
  },
11835
11835
  o(o) {
11836
- z(n, o), t = !1;
11836
+ M(n, o), t = !1;
11837
11837
  },
11838
11838
  d(o) {
11839
11839
  n && n.d(o);
@@ -11861,10 +11861,10 @@ function om(i) {
11861
11861
  ), (!n || a & 1 && e !== (e = typeof r[0] == "number" ? r[0] : void 0)) && b(t, "data-swiper-zoom", e);
11862
11862
  },
11863
11863
  i(r) {
11864
- n || (k(s, r), n = !0);
11864
+ n || (x(s, r), n = !0);
11865
11865
  },
11866
11866
  o(r) {
11867
- z(s, r), n = !1;
11867
+ M(s, r), n = !1;
11868
11868
  },
11869
11869
  d(r) {
11870
11870
  r && j(t), s && s.d(r);
@@ -11898,9 +11898,9 @@ function sm(i) {
11898
11898
  },
11899
11899
  p(f, [u]) {
11900
11900
  let m = e;
11901
- e = l(f), e === m ? a[e].p(f, u) : (ue(), z(a[m], 1, 1, () => {
11901
+ e = l(f), e === m ? a[e].p(f, u) : (ue(), M(a[m], 1, 1, () => {
11902
11902
  a[m] = null;
11903
- }), fe(), n = a[e], n ? n.p(f, u) : (n = a[e] = r[e](f), n.c()), k(n, 1), n.m(t, null)), kn(t, d = ze(c, [
11903
+ }), fe(), n = a[e], n ? n.p(f, u) : (n = a[e] = r[e](f), n.c()), x(n, 1), n.m(t, null)), kn(t, d = ze(c, [
11904
11904
  (!s || u & 12 && o !== (o = Bn(`${f[3]}${f[2] ? ` ${f[2]}` : ""}`))) && { class: o },
11905
11905
  (!s || u & 2) && {
11906
11906
  "data-swiper-slide-index": f[1]
@@ -11909,10 +11909,10 @@ function sm(i) {
11909
11909
  ]));
11910
11910
  },
11911
11911
  i(f) {
11912
- s || (k(n), s = !0);
11912
+ s || (x(n), s = !0);
11913
11913
  },
11914
11914
  o(f) {
11915
- z(n), s = !1;
11915
+ M(n), s = !1;
11916
11916
  },
11917
11917
  d(f) {
11918
11918
  f && j(t), a[e].d(), i[9](null);
@@ -11923,8 +11923,8 @@ function rm(i, t, e) {
11923
11923
  let n;
11924
11924
  const o = ["zoom", "virtualIndex", "class"];
11925
11925
  let s = Dn(t, o), { $$slots: r = {}, $$scope: a } = t, { zoom: l = void 0 } = t, { virtualIndex: c = void 0 } = t, { class: d = void 0 } = t, f = null, u = "swiper-slide", m = _t("swiper"), p = !1;
11926
- const g = (y, I, x) => {
11927
- I === f && e(3, u = x);
11926
+ const g = (y, I, k) => {
11927
+ I === f && e(3, u = k);
11928
11928
  }, v = () => {
11929
11929
  !m || p || (m.on("_slideClass", g), p = !0);
11930
11930
  }, A = () => {
@@ -11951,7 +11951,7 @@ function rm(i, t, e) {
11951
11951
  }), At(() => {
11952
11952
  !m || A();
11953
11953
  });
11954
- function w(y) {
11954
+ function C(y) {
11955
11955
  Qe[y ? "unshift" : "push"](() => {
11956
11956
  f = y, e(4, f);
11957
11957
  });
@@ -11976,7 +11976,7 @@ function rm(i, t, e) {
11976
11976
  s,
11977
11977
  a,
11978
11978
  r,
11979
- w
11979
+ C
11980
11980
  ];
11981
11981
  }
11982
11982
  class am extends te {
@@ -12141,12 +12141,12 @@ function Qs(i) {
12141
12141
  p(d, f) {
12142
12142
  i = d;
12143
12143
  let u = e;
12144
- e = c(i), e === u ? l[e].p(i, f) : (ue(), z(l[u], 1, 1, () => {
12144
+ e = c(i), e === u ? l[e].p(i, f) : (ue(), M(l[u], 1, 1, () => {
12145
12145
  l[u] = null;
12146
- }), fe(), n = l[e], n ? n.p(i, f) : (n = l[e] = a[e](i), n.c()), k(n, 1), n.m(t, null)), f & 16 && q(t, "unfolded", i[4]);
12146
+ }), fe(), n = l[e], n ? n.p(i, f) : (n = l[e] = a[e](i), n.c()), x(n, 1), n.m(t, null)), f & 16 && q(t, "unfolded", i[4]);
12147
12147
  },
12148
12148
  i(d) {
12149
- r || (k(n), d && Re(() => {
12149
+ r || (x(n), d && Re(() => {
12150
12150
  s && s.end(1), o = jt(t, Ui, i[5] ? {
12151
12151
  y: 4,
12152
12152
  duration: i[3],
@@ -12156,7 +12156,7 @@ function Qs(i) {
12156
12156
  }), r = !0);
12157
12157
  },
12158
12158
  o(d) {
12159
- z(n), o && o.invalidate(), d && (s = Nt(t, Ui, i[5] ? {
12159
+ M(n), o && o.invalidate(), d && (s = Nt(t, Ui, i[5] ? {
12160
12160
  y: 4,
12161
12161
  duration: i[3],
12162
12162
  delay: i[2],
@@ -12189,10 +12189,10 @@ function mm(i) {
12189
12189
  o & 1 && (s.media = n[0][0]), o & 256 && (s.objectFit = n[8]), o & 64 && (s.playButtonIfNeed = n[6]), o & 128 && (s.canPlay = n[7]), t.$set(s);
12190
12190
  },
12191
12191
  i(n) {
12192
- e || (k(t.$$.fragment, n), e = !0);
12192
+ e || (x(t.$$.fragment, n), e = !0);
12193
12193
  },
12194
12194
  o(n) {
12195
- z(t.$$.fragment, n), e = !1;
12195
+ M(t.$$.fragment, n), e = !1;
12196
12196
  },
12197
12197
  d(n) {
12198
12198
  $(t, n);
@@ -12231,10 +12231,10 @@ function pm(i) {
12231
12231
  }) : !1), o & 67111360 && (s.$$scope = { dirty: o, ctx: n }), t.$set(s);
12232
12232
  },
12233
12233
  i(n) {
12234
- e || (k(t.$$.fragment, n), e = !0);
12234
+ e || (x(t.$$.fragment, n), e = !0);
12235
12235
  },
12236
12236
  o(n) {
12237
- z(t.$$.fragment, n), e = !1;
12237
+ M(t.$$.fragment, n), e = !1;
12238
12238
  },
12239
12239
  d(n) {
12240
12240
  $(t, n);
@@ -12262,10 +12262,10 @@ function gm(i) {
12262
12262
  s & 2048 && (r.media = o[23]), s & 256 && (r.objectFit = o[8]), s & 64 && (r.playButtonIfNeed = o[6]), s & 128 && (r.canPlay = o[7]), t.$set(r);
12263
12263
  },
12264
12264
  i(o) {
12265
- n || (k(t.$$.fragment, o), n = !0);
12265
+ n || (x(t.$$.fragment, o), n = !0);
12266
12266
  },
12267
12267
  o(o) {
12268
- z(t.$$.fragment, o), n = !1;
12268
+ M(t.$$.fragment, o), n = !1;
12269
12269
  },
12270
12270
  d(o) {
12271
12271
  $(t, o), o && j(e);
@@ -12291,10 +12291,10 @@ function Rs(i) {
12291
12291
  o & 67111360 && (s.$$scope = { dirty: o, ctx: n }), t.$set(s);
12292
12292
  },
12293
12293
  i(n) {
12294
- e || (k(t.$$.fragment, n), e = !0);
12294
+ e || (x(t.$$.fragment, n), e = !0);
12295
12295
  },
12296
12296
  o(n) {
12297
- z(t.$$.fragment, n), e = !1;
12297
+ M(t.$$.fragment, n), e = !1;
12298
12298
  },
12299
12299
  d(n) {
12300
12300
  $(t, n);
@@ -12305,7 +12305,7 @@ function Am(i) {
12305
12305
  let t, e, n = i[11], o = [];
12306
12306
  for (let r = 0; r < n.length; r += 1)
12307
12307
  o[r] = Rs(Bs(i, n, r));
12308
- const s = (r) => z(o[r], 1, 1, () => {
12308
+ const s = (r) => M(o[r], 1, 1, () => {
12309
12309
  o[r] = null;
12310
12310
  });
12311
12311
  return {
@@ -12325,7 +12325,7 @@ function Am(i) {
12325
12325
  let l;
12326
12326
  for (l = 0; l < n.length; l += 1) {
12327
12327
  const c = Bs(r, n, l);
12328
- o[l] ? (o[l].p(c, a), k(o[l], 1)) : (o[l] = Rs(c), o[l].c(), k(o[l], 1), o[l].m(t.parentNode, t));
12328
+ o[l] ? (o[l].p(c, a), x(o[l], 1)) : (o[l] = Rs(c), o[l].c(), x(o[l], 1), o[l].m(t.parentNode, t));
12329
12329
  }
12330
12330
  for (ue(), l = n.length; l < o.length; l += 1)
12331
12331
  s(l);
@@ -12335,14 +12335,14 @@ function Am(i) {
12335
12335
  i(r) {
12336
12336
  if (!e) {
12337
12337
  for (let a = 0; a < n.length; a += 1)
12338
- k(o[a]);
12338
+ x(o[a]);
12339
12339
  e = !0;
12340
12340
  }
12341
12341
  },
12342
12342
  o(r) {
12343
12343
  o = o.filter(Boolean);
12344
12344
  for (let a = 0; a < o.length; a += 1)
12345
- z(o[a]);
12345
+ M(o[a]);
12346
12346
  e = !1;
12347
12347
  },
12348
12348
  d(r) {
@@ -12360,15 +12360,15 @@ function vm(i) {
12360
12360
  n && n.m(o, s), T(o, t, s), e = !0;
12361
12361
  },
12362
12362
  p(o, [s]) {
12363
- o[4] ? n ? (n.p(o, s), s & 16 && k(n, 1)) : (n = Qs(o), n.c(), k(n, 1), n.m(t.parentNode, t)) : n && (ue(), z(n, 1, 1, () => {
12363
+ o[4] ? n ? (n.p(o, s), s & 16 && x(n, 1)) : (n = Qs(o), n.c(), x(n, 1), n.m(t.parentNode, t)) : n && (ue(), M(n, 1, 1, () => {
12364
12364
  n = null;
12365
12365
  }), fe());
12366
12366
  },
12367
12367
  i(o) {
12368
- e || (k(n), e = !0);
12368
+ e || (x(n), e = !0);
12369
12369
  },
12370
12370
  o(o) {
12371
- z(n), e = !1;
12371
+ M(n), e = !1;
12372
12372
  },
12373
12373
  d(o) {
12374
12374
  n && n.d(o), o && j(t);
@@ -12377,56 +12377,56 @@ function vm(i) {
12377
12377
  }
12378
12378
  function bm(i, t, e) {
12379
12379
  let n, o, s, { tag: r } = t, { mediaData: a } = t, { inDelay: l = 0 } = t, { outDelay: c = 0 } = t, { duration: d = 0 } = t, { unfolded: f = !0 } = t, { animation: u = !0 } = t, { playButtonIfNeed: m = "small" } = t, { canPlay: p = !0 } = t, { objectFit: g = "cover" } = t, { enableCarousel: v = !0 } = t, { autoplayConfig: A = { autoplay: !0, autoplayVideo: !1 } } = t;
12380
- const w = _t("mediaStore"), y = _t("hooks");
12380
+ const C = _t("mediaStore"), y = _t("hooks");
12381
12381
  let I;
12382
- function x(M) {
12383
- !n || !I || (w.set({ currentMediaUrl: this.src }), y.emit("playStateChange", {
12384
- event: M,
12382
+ function k(B) {
12383
+ !n || !I || (C.set({ currentMediaUrl: this.src }), y.emit("playStateChange", {
12384
+ event: B,
12385
12385
  state: "playing",
12386
12386
  tag: r,
12387
12387
  mediaInstance: this
12388
12388
  }), I.autoplay.stop());
12389
12389
  }
12390
- function C(M) {
12390
+ function w(B) {
12391
12391
  !n || !I || (y.emit("playStateChange", {
12392
- event: M,
12392
+ event: B,
12393
12393
  state: "paused",
12394
12394
  tag: r,
12395
12395
  mediaInstance: this
12396
12396
  }), I.autoplay.running || I.autoplay.start());
12397
12397
  }
12398
12398
  let L = null;
12399
- const D = (M) => {
12400
- e(10, I = M.detail[0]);
12401
- }, H = (M) => J(this, null, function* () {
12402
- var N, Y, ee;
12399
+ const D = (B) => {
12400
+ e(10, I = B.detail[0]);
12401
+ }, H = (B) => J(this, null, function* () {
12402
+ var N, X, ee;
12403
12403
  if (!s || !A.autoplayVideo)
12404
12404
  return;
12405
- const F = M.detail[0];
12405
+ const F = B.detail[0];
12406
12406
  if (!F)
12407
12407
  return;
12408
- const X = F.realIndex;
12409
- if (X === L)
12408
+ const Y = F.realIndex;
12409
+ if (Y === L)
12410
12410
  return;
12411
- e(12, L = X);
12412
- const E = o[X];
12411
+ e(12, L = Y);
12412
+ const E = o[Y];
12413
12413
  if (!E || E.type !== "Video")
12414
12414
  return;
12415
12415
  F.autoplay.stop(), F.slides.map((W) => W.querySelector("video")).filter(zt).forEach((W) => W.pause());
12416
- const B = (N = F.slides[F.activeIndex]) == null ? void 0 : N.querySelector("video");
12417
- if (B && (B.removeEventListener("play", x), B.removeEventListener("pause", C), B.addEventListener("play", x), B.addEventListener("pause", C)), B) {
12418
- B.addEventListener("click", () => B.pause());
12419
- const W = (ee = (Y = B.parentElement) == null ? void 0 : Y.getElementsByClassName("video-play-button-container")) == null ? void 0 : ee[0];
12420
- B.addEventListener("play", () => W == null ? void 0 : W.classList.remove("showPlayButton")), B.addEventListener("pause", () => W == null ? void 0 : W.classList.add("showPlayButton")), W && (B.paused ? W.classList.add("showPlayButton") : W.classList.remove("showPlayButton"), W.addEventListener("click", () => B.play()));
12416
+ const z = (N = F.slides[F.activeIndex]) == null ? void 0 : N.querySelector("video");
12417
+ if (z && (z.removeEventListener("play", k), z.removeEventListener("pause", w), z.addEventListener("play", k), z.addEventListener("pause", w)), z) {
12418
+ z.addEventListener("click", () => z.pause());
12419
+ const W = (ee = (X = z.parentElement) == null ? void 0 : X.getElementsByClassName("video-play-button-container")) == null ? void 0 : ee[0];
12420
+ z.addEventListener("play", () => W == null ? void 0 : W.classList.remove("showPlayButton")), z.addEventListener("pause", () => W == null ? void 0 : W.classList.add("showPlayButton")), W && (z.paused ? W.classList.add("showPlayButton") : W.classList.remove("showPlayButton"), W.addEventListener("click", () => z.play()));
12421
12421
  }
12422
12422
  });
12423
- return i.$$set = (M) => {
12424
- "tag" in M && e(17, r = M.tag), "mediaData" in M && e(0, a = M.mediaData), "inDelay" in M && e(1, l = M.inDelay), "outDelay" in M && e(2, c = M.outDelay), "duration" in M && e(3, d = M.duration), "unfolded" in M && e(4, f = M.unfolded), "animation" in M && e(5, u = M.animation), "playButtonIfNeed" in M && e(6, m = M.playButtonIfNeed), "canPlay" in M && e(7, p = M.canPlay), "objectFit" in M && e(8, g = M.objectFit), "enableCarousel" in M && e(18, v = M.enableCarousel), "autoplayConfig" in M && e(9, A = M.autoplayConfig);
12423
+ return i.$$set = (B) => {
12424
+ "tag" in B && e(17, r = B.tag), "mediaData" in B && e(0, a = B.mediaData), "inDelay" in B && e(1, l = B.inDelay), "outDelay" in B && e(2, c = B.outDelay), "duration" in B && e(3, d = B.duration), "unfolded" in B && e(4, f = B.unfolded), "animation" in B && e(5, u = B.animation), "playButtonIfNeed" in B && e(6, m = B.playButtonIfNeed), "canPlay" in B && e(7, p = B.canPlay), "objectFit" in B && e(8, g = B.objectFit), "enableCarousel" in B && e(18, v = B.enableCarousel), "autoplayConfig" in B && e(9, A = B.autoplayConfig);
12425
12425
  }, i.$$.update = () => {
12426
- i.$$.dirty & 262145 && e(13, n = v && (a == null ? void 0 : a.length) > 1), i.$$.dirty & 1 && e(11, o = a), i.$$.dirty & 2560 && e(14, s = o.length > 1 && A.autoplay), i.$$.dirty & 1024 && I && I.slides.forEach((M) => {
12427
- const F = M.querySelector("video");
12428
- F && w.subscribe(({ currentMediaUrl: X }) => {
12429
- X !== F.src && F.pause();
12426
+ i.$$.dirty & 262145 && e(13, n = v && (a == null ? void 0 : a.length) > 1), i.$$.dirty & 1 && e(11, o = a), i.$$.dirty & 2560 && e(14, s = o.length > 1 && A.autoplay), i.$$.dirty & 1024 && I && I.slides.forEach((B) => {
12427
+ const F = B.querySelector("video");
12428
+ F && C.subscribe(({ currentMediaUrl: Y }) => {
12429
+ Y !== F.src && F.pause();
12430
12430
  });
12431
12431
  });
12432
12432
  }, [
@@ -12445,8 +12445,8 @@ function bm(i, t, e) {
12445
12445
  L,
12446
12446
  n,
12447
12447
  s,
12448
- x,
12449
- C,
12448
+ k,
12449
+ w,
12450
12450
  r,
12451
12451
  v,
12452
12452
  D,
@@ -12528,23 +12528,23 @@ function Hs(i) {
12528
12528
  const v = {};
12529
12529
  g & 16 && (v.visible = p[4]), t.$set(v);
12530
12530
  const A = {};
12531
- g & 16 && (A.unfolded = p[4]), o.$set(A), g & 20 && (f = p[2], ue(), r = Ye(r, g, u, 1, p, f, a, l.parentNode, at, Fs, l, Os), fe()), p[3] ? m ? (m.p(p, g), g & 8 && k(m, 1)) : (m = Gs(p), m.c(), k(m, 1), m.m(c.parentNode, c)) : m && (ue(), z(m, 1, 1, () => {
12531
+ g & 16 && (A.unfolded = p[4]), o.$set(A), g & 20 && (f = p[2], ue(), r = Ye(r, g, u, 1, p, f, a, l.parentNode, at, Fs, l, Os), fe()), p[3] ? m ? (m.p(p, g), g & 8 && x(m, 1)) : (m = Gs(p), m.c(), x(m, 1), m.m(c.parentNode, c)) : m && (ue(), M(m, 1, 1, () => {
12532
12532
  m = null;
12533
12533
  }), fe());
12534
12534
  },
12535
12535
  i(p) {
12536
12536
  if (!d) {
12537
- k(t.$$.fragment, p), k(o.$$.fragment, p);
12537
+ x(t.$$.fragment, p), x(o.$$.fragment, p);
12538
12538
  for (let g = 0; g < f.length; g += 1)
12539
- k(r[g]);
12540
- k(m), d = !0;
12539
+ x(r[g]);
12540
+ x(m), d = !0;
12541
12541
  }
12542
12542
  },
12543
12543
  o(p) {
12544
- z(t.$$.fragment, p), z(o.$$.fragment, p);
12544
+ M(t.$$.fragment, p), M(o.$$.fragment, p);
12545
12545
  for (let g = 0; g < r.length; g += 1)
12546
- z(r[g]);
12547
- z(m), d = !1;
12546
+ M(r[g]);
12547
+ M(m), d = !1;
12548
12548
  },
12549
12549
  d(p) {
12550
12550
  $(t, p), p && j(e), p && j(n), $(o), p && j(s);
@@ -12577,10 +12577,10 @@ function Fs(i, t) {
12577
12577
  r & 16 && (a.unfolded = t[4]), r & 4 && (a.content = t[1]), n.$set(a);
12578
12578
  },
12579
12579
  i(s) {
12580
- o || (k(n.$$.fragment, s), o = !0);
12580
+ o || (x(n.$$.fragment, s), o = !0);
12581
12581
  },
12582
12582
  o(s) {
12583
- z(n.$$.fragment, s), o = !1;
12583
+ M(n.$$.fragment, s), o = !1;
12584
12584
  },
12585
12585
  d(s) {
12586
12586
  s && j(e), $(n);
@@ -12613,10 +12613,10 @@ function Gs(i) {
12613
12613
  s & 16 && (r.unfolded = o[4]), s & 8 && (r.mediaData = o[3]), s & 1 && (r.tag = o[0]), e.$set(r);
12614
12614
  },
12615
12615
  i(o) {
12616
- n || (k(e.$$.fragment, o), n = !0);
12616
+ n || (x(e.$$.fragment, o), n = !0);
12617
12617
  },
12618
12618
  o(o) {
12619
- z(e.$$.fragment, o), n = !1;
12619
+ M(e.$$.fragment, o), n = !1;
12620
12620
  },
12621
12621
  d(o) {
12622
12622
  o && j(t), $(e);
@@ -12633,15 +12633,15 @@ function wm(i) {
12633
12633
  n && n.m(o, s), T(o, t, s), e = !0;
12634
12634
  },
12635
12635
  p(o, [s]) {
12636
- o[0].state ? n ? (n.p(o, s), s & 1 && k(n, 1)) : (n = Hs(o), n.c(), k(n, 1), n.m(t.parentNode, t)) : n && (ue(), z(n, 1, 1, () => {
12636
+ o[0].state ? n ? (n.p(o, s), s & 1 && x(n, 1)) : (n = Hs(o), n.c(), x(n, 1), n.m(t.parentNode, t)) : n && (ue(), M(n, 1, 1, () => {
12637
12637
  n = null;
12638
12638
  }), fe());
12639
12639
  },
12640
12640
  i(o) {
12641
- e || (k(n), e = !0);
12641
+ e || (x(n), e = !0);
12642
12642
  },
12643
12643
  o(o) {
12644
- z(n), e = !1;
12644
+ M(n), e = !1;
12645
12645
  },
12646
12646
  d(o) {
12647
12647
  n && n.d(o), o && j(t);
@@ -12793,8 +12793,8 @@ function qs(i) {
12793
12793
  };
12794
12794
  }
12795
12795
  function Im(i) {
12796
- var F, X;
12797
- let t, e, n, o, s, r, a, l, c, d, f, u, m, p, g = i[2].title + "", v, A, w, y, I;
12796
+ var F, Y;
12797
+ let t, e, n, o, s, r, a, l, c, d, f, u, m, p, g = i[2].title + "", v, A, C, y, I;
12798
12798
  e = new Je({
12799
12799
  props: {
12800
12800
  visible: i[1],
@@ -12805,29 +12805,29 @@ function Im(i) {
12805
12805
  spreadRadius: 75
12806
12806
  }
12807
12807
  });
12808
- let x = i[2].brandTags || [], C = [];
12809
- for (let E = 0; E < x.length; E += 1)
12810
- C[E] = Ys(Ws(i, x, E));
12808
+ let k = i[2].brandTags || [], w = [];
12809
+ for (let E = 0; E < k.length; E += 1)
12810
+ w[E] = Ys(Ws(i, k, E));
12811
12811
  let L = i[2].tags || [], D = [];
12812
12812
  for (let E = 0; E < L.length; E += 1)
12813
12813
  D[E] = Js(Ns(i, L, E));
12814
- let H = ((F = i[2].price) == null ? void 0 : F.value) !== void 0 && ((X = i[2].price) == null ? void 0 : X.value) !== null && Vs(i), M = i[2].highlightText && qs(i);
12814
+ let H = ((F = i[2].price) == null ? void 0 : F.value) !== void 0 && ((Y = i[2].price) == null ? void 0 : Y.value) !== null && Vs(i), B = i[2].highlightText && qs(i);
12815
12815
  return {
12816
12816
  c() {
12817
12817
  var E, S;
12818
12818
  t = O("div"), _(e.$$.fragment), n = V(), o = O("div"), s = V(), r = O("div"), a = O("img"), c = V(), d = O("div");
12819
- for (let B = 0; B < C.length; B += 1)
12820
- C[B].c();
12819
+ for (let z = 0; z < w.length; z += 1)
12820
+ w[z].c();
12821
12821
  f = V();
12822
- for (let B = 0; B < D.length; B += 1)
12823
- D[B].c();
12824
- u = V(), m = O("div"), p = O("div"), v = Le(g), A = V(), w = O("div"), H && H.c(), y = V(), M && M.c(), b(o, "class", "line svelte-8mby9k"), R(
12822
+ for (let z = 0; z < D.length; z += 1)
12823
+ D[z].c();
12824
+ u = V(), m = O("div"), p = O("div"), v = Le(g), A = V(), C = O("div"), H && H.c(), y = V(), B && B.c(), b(o, "class", "line svelte-8mby9k"), R(
12825
12825
  o,
12826
12826
  "transition-delay",
12827
12827
  i[1] ? yn + "ms" : wn + Ks - _s - 40 + "ms",
12828
12828
  !1
12829
- ), b(a, "class", "headerImage svelte-8mby9k"), et(a.src, l = i[2].headerPictureUrl) || b(a, "src", l), b(a, "alt", ""), b(d, "class", "tag svelte-8mby9k"), b(p, "class", "text svelte-8mby9k"), b(m, "class", "title svelte-8mby9k"), b(w, "class", "footer svelte-8mby9k"), R(
12830
- w,
12829
+ ), b(a, "class", "headerImage svelte-8mby9k"), et(a.src, l = i[2].headerPictureUrl) || b(a, "src", l), b(a, "alt", ""), b(d, "class", "tag svelte-8mby9k"), b(p, "class", "text svelte-8mby9k"), b(m, "class", "title svelte-8mby9k"), b(C, "class", "footer svelte-8mby9k"), R(
12830
+ C,
12831
12831
  "height",
12832
12832
  ((E = i[2].price) == null ? void 0 : E.value) !== void 0 && ((S = i[2].price) == null ? void 0 : S.value) !== null && i[2].highlightText ? void 0 : "1rem",
12833
12833
  !1
@@ -12840,31 +12840,31 @@ function Im(i) {
12840
12840
  },
12841
12841
  m(E, S) {
12842
12842
  T(E, t, S), K(e, t, null), Q(t, n), Q(t, o), Q(t, s), Q(t, r), Q(r, a), Q(r, c), Q(r, d);
12843
- for (let B = 0; B < C.length; B += 1)
12844
- C[B].m(d, null);
12843
+ for (let z = 0; z < w.length; z += 1)
12844
+ w[z].m(d, null);
12845
12845
  Q(d, f);
12846
- for (let B = 0; B < D.length; B += 1)
12847
- D[B].m(d, null);
12848
- Q(r, u), Q(r, m), Q(m, p), Q(p, v), Q(r, A), Q(r, w), H && H.m(w, null), Q(w, y), M && M.m(w, null), I = !0;
12846
+ for (let z = 0; z < D.length; z += 1)
12847
+ D[z].m(d, null);
12848
+ Q(r, u), Q(r, m), Q(m, p), Q(p, v), Q(r, A), Q(r, C), H && H.m(C, null), Q(C, y), B && B.m(C, null), I = !0;
12849
12849
  },
12850
12850
  p(E, [S]) {
12851
- var N, Y, ee, W;
12852
- const B = {};
12853
- if (S & 2 && (B.visible = E[1]), e.$set(B), S & 2 && R(
12851
+ var N, X, ee, W;
12852
+ const z = {};
12853
+ if (S & 2 && (z.visible = E[1]), e.$set(z), S & 2 && R(
12854
12854
  o,
12855
12855
  "transition-delay",
12856
12856
  E[1] ? yn + "ms" : wn + Ks - _s - 40 + "ms",
12857
12857
  !1
12858
12858
  ), (!I || S & 4 && !et(a.src, l = E[2].headerPictureUrl)) && b(a, "src", l), S & 4) {
12859
- x = E[2].brandTags || [];
12859
+ k = E[2].brandTags || [];
12860
12860
  let U;
12861
- for (U = 0; U < x.length; U += 1) {
12862
- const ae = Ws(E, x, U);
12863
- C[U] ? C[U].p(ae, S) : (C[U] = Ys(ae), C[U].c(), C[U].m(d, f));
12861
+ for (U = 0; U < k.length; U += 1) {
12862
+ const ae = Ws(E, k, U);
12863
+ w[U] ? w[U].p(ae, S) : (w[U] = Ys(ae), w[U].c(), w[U].m(d, f));
12864
12864
  }
12865
- for (; U < C.length; U += 1)
12866
- C[U].d(1);
12867
- C.length = x.length;
12865
+ for (; U < w.length; U += 1)
12866
+ w[U].d(1);
12867
+ w.length = k.length;
12868
12868
  }
12869
12869
  if (S & 4) {
12870
12870
  L = E[2].tags || [];
@@ -12877,8 +12877,8 @@ function Im(i) {
12877
12877
  D[U].d(1);
12878
12878
  D.length = L.length;
12879
12879
  }
12880
- (!I || S & 4) && g !== (g = E[2].title + "") && Se(v, g), ((N = E[2].price) == null ? void 0 : N.value) !== void 0 && ((Y = E[2].price) == null ? void 0 : Y.value) !== null ? H ? H.p(E, S) : (H = Vs(E), H.c(), H.m(w, y)) : H && (H.d(1), H = null), E[2].highlightText ? M ? M.p(E, S) : (M = qs(E), M.c(), M.m(w, null)) : M && (M.d(1), M = null), S & 4 && R(
12881
- w,
12880
+ (!I || S & 4) && g !== (g = E[2].title + "") && Se(v, g), ((N = E[2].price) == null ? void 0 : N.value) !== void 0 && ((X = E[2].price) == null ? void 0 : X.value) !== null ? H ? H.p(E, S) : (H = Vs(E), H.c(), H.m(C, y)) : H && (H.d(1), H = null), E[2].highlightText ? B ? B.p(E, S) : (B = qs(E), B.c(), B.m(C, null)) : B && (B.d(1), B = null), S & 4 && R(
12881
+ C,
12882
12882
  "height",
12883
12883
  ((ee = E[2].price) == null ? void 0 : ee.value) !== void 0 && ((W = E[2].price) == null ? void 0 : W.value) !== null && E[2].highlightText ? void 0 : "1rem",
12884
12884
  !1
@@ -12890,13 +12890,13 @@ function Im(i) {
12890
12890
  ), S & 2 && q(t, "unfolded", E[1]), S & 8 && q(t, "folded", E[3]);
12891
12891
  },
12892
12892
  i(E) {
12893
- I || (k(e.$$.fragment, E), I = !0);
12893
+ I || (x(e.$$.fragment, E), I = !0);
12894
12894
  },
12895
12895
  o(E) {
12896
- z(e.$$.fragment, E), I = !1;
12896
+ M(e.$$.fragment, E), I = !1;
12897
12897
  },
12898
12898
  d(E) {
12899
- E && j(t), $(e), tt(C, E), tt(D, E), H && H.d(), M && M.d();
12899
+ E && j(t), $(e), tt(w, E), tt(D, E), H && H.d(), B && B.d();
12900
12900
  }
12901
12901
  };
12902
12902
  }
@@ -12941,7 +12941,7 @@ function $s(i) {
12941
12941
  i = p, (!f || g & 8 && !et(r.src, a = i[3])) && b(r, "src", a), g & 64 && l !== (l = i[6]) && r[l ? "pause" : "play"](), g & 64 && q(t, "paused", i[6]);
12942
12942
  },
12943
12943
  i(p) {
12944
- f || (k(e.$$.fragment, p), p && Re(() => {
12944
+ f || (x(e.$$.fragment, p), p && Re(() => {
12945
12945
  d && d.end(1), c = jt(t, St, {
12946
12946
  duration: i[2],
12947
12947
  delay: i[0],
@@ -12950,7 +12950,7 @@ function $s(i) {
12950
12950
  }), f = !0);
12951
12951
  },
12952
12952
  o(p) {
12953
- z(e.$$.fragment, p), c && c.invalidate(), p && (d = Nt(t, St, {
12953
+ M(e.$$.fragment, p), c && c.invalidate(), p && (d = Nt(t, St, {
12954
12954
  duration: i[2],
12955
12955
  delay: i[1],
12956
12956
  easing: Kt
@@ -12971,15 +12971,15 @@ function Lm(i) {
12971
12971
  n && n.m(o, s), T(o, t, s), e = !0;
12972
12972
  },
12973
12973
  p(o, [s]) {
12974
- o[4] ? n ? (n.p(o, s), s & 16 && k(n, 1)) : (n = $s(o), n.c(), k(n, 1), n.m(t.parentNode, t)) : n && (ue(), z(n, 1, 1, () => {
12974
+ o[4] ? n ? (n.p(o, s), s & 16 && x(n, 1)) : (n = $s(o), n.c(), x(n, 1), n.m(t.parentNode, t)) : n && (ue(), M(n, 1, 1, () => {
12975
12975
  n = null;
12976
12976
  }), fe());
12977
12977
  },
12978
12978
  i(o) {
12979
- e || (k(n), e = !0);
12979
+ e || (x(n), e = !0);
12980
12980
  },
12981
12981
  o(o) {
12982
- z(n), e = !1;
12982
+ M(n), e = !1;
12983
12983
  },
12984
12984
  d(o) {
12985
12985
  n && n.d(o), o && j(t);
@@ -13066,7 +13066,7 @@ function Mm(i) {
13066
13066
  ce(i, "svelte-4r8s18", ".audio-tag.svelte-4r8s18.svelte-4r8s18{position:absolute;left:0;top:0;width:0;height:0;overflow:visible}.line.svelte-4r8s18.svelte-4r8s18{display:flex;position:absolute;top:0;left:0;width:10.125rem;height:0.0625rem;transform:translate3d(0, -50%, 0.625rem)}.content.svelte-4r8s18.svelte-4r8s18{width:-moz-max-content;width:max-content;height:3.375rem;padding:2.25rem 0.25rem 0 1rem;position:absolute;left:0;bottom:0.125rem;overflow:hidden;box-sizing:border-box;font-size:0;white-space:nowrap;font-weight:600}.wrapper.svelte-4r8s18.svelte-4r8s18{position:relative;width:100%;height:100%}.audio-icon.svelte-4r8s18.svelte-4r8s18{vertical-align:top;display:inline-block;width:1rem;height:1rem;margin-right:0.25rem;margin-top:0.0625rem}.unfolded.svelte-4r8s18 .audio-icon.svelte-4r8s18{pointer-events:auto}");
13067
13067
  }
13068
13068
  function er(i) {
13069
- var w, y, I, x;
13069
+ var C, y, I, k;
13070
13070
  let t, e, n, o, s, r, a, l, c, d, f, u, m, p, g, v, A;
13071
13071
  return e = new Je({
13072
13072
  props: {
@@ -13081,14 +13081,14 @@ function er(i) {
13081
13081
  props: {
13082
13082
  unfolded: i[5],
13083
13083
  duration: 1e3,
13084
- outDelay: i[4] + 20 * Math.min((y = (w = i[3][0]) == null ? void 0 : w.content.length) != null ? y : 10, 15)
13084
+ outDelay: i[4] + 20 * Math.min((y = (C = i[3][0]) == null ? void 0 : C.content.length) != null ? y : 10, 15)
13085
13085
  }
13086
13086
  }), d = new zm({
13087
13087
  props: {
13088
13088
  unfolded: i[5],
13089
13089
  url: i[0].data.audioUrl,
13090
13090
  duration: 1e3,
13091
- outDelay: 20 * Math.min((x = (I = i[3][0]) == null ? void 0 : I.content.length) != null ? x : 10, 15),
13091
+ outDelay: 20 * Math.min((k = (I = i[3][0]) == null ? void 0 : I.content.length) != null ? k : 10, 15),
13092
13092
  hooksInfo: { tag: i[0] }
13093
13093
  }
13094
13094
  }), m = new na({
@@ -13101,28 +13101,28 @@ function er(i) {
13101
13101
  c() {
13102
13102
  t = O("div"), _(e.$$.fragment), n = V(), o = O("div"), _(s.$$.fragment), r = V(), a = O("div"), l = O("div"), c = O("div"), _(d.$$.fragment), f = V(), u = O("div"), _(m.$$.fragment), b(o, "class", "line svelte-4r8s18"), R(o, "width", i[2] + "px", !1), b(c, "class", "audio-icon svelte-4r8s18"), R(u, "display", "inline-block", !1), b(l, "class", "wrapper svelte-4r8s18"), b(a, "class", "content svelte-4r8s18"), Re(() => i[8].call(a)), b(t, "class", "audio-tag svelte-4r8s18"), q(t, "unfolded", i[5]);
13103
13103
  },
13104
- m(C, L) {
13105
- T(C, t, L), K(e, t, null), Q(t, n), Q(t, o), K(s, o, null), Q(t, r), Q(t, a), Q(a, l), Q(l, c), K(d, c, null), Q(l, f), Q(l, u), K(m, u, null), p = gt(a, i[8].bind(a)), g = !0, v || (A = Pe(u, "click", i[6]), v = !0);
13104
+ m(w, L) {
13105
+ T(w, t, L), K(e, t, null), Q(t, n), Q(t, o), K(s, o, null), Q(t, r), Q(t, a), Q(a, l), Q(l, c), K(d, c, null), Q(l, f), Q(l, u), K(m, u, null), p = gt(a, i[8].bind(a)), g = !0, v || (A = Pe(u, "click", i[6]), v = !0);
13106
13106
  },
13107
- p(C, L) {
13108
- var X, E, S, B;
13107
+ p(w, L) {
13108
+ var Y, E, S, z;
13109
13109
  const D = {};
13110
- L & 32 && (D.visible = C[5]), L & 4 && (D.left = C[2] / 2 + "px"), e.$set(D);
13110
+ L & 32 && (D.visible = w[5]), L & 4 && (D.left = w[2] / 2 + "px"), e.$set(D);
13111
13111
  const H = {};
13112
- L & 32 && (H.unfolded = C[5]), L & 24 && (H.outDelay = C[4] + 20 * Math.min((E = (X = C[3][0]) == null ? void 0 : X.content.length) != null ? E : 10, 15)), s.$set(H), L & 4 && R(o, "width", C[2] + "px", !1);
13113
- const M = {};
13114
- L & 32 && (M.unfolded = C[5]), L & 1 && (M.url = C[0].data.audioUrl), L & 8 && (M.outDelay = 20 * Math.min((B = (S = C[3][0]) == null ? void 0 : S.content.length) != null ? B : 10, 15)), L & 1 && (M.hooksInfo = { tag: C[0] }), d.$set(M);
13112
+ L & 32 && (H.unfolded = w[5]), L & 24 && (H.outDelay = w[4] + 20 * Math.min((E = (Y = w[3][0]) == null ? void 0 : Y.content.length) != null ? E : 10, 15)), s.$set(H), L & 4 && R(o, "width", w[2] + "px", !1);
13113
+ const B = {};
13114
+ L & 32 && (B.unfolded = w[5]), L & 1 && (B.url = w[0].data.audioUrl), L & 8 && (B.outDelay = 20 * Math.min((z = (S = w[3][0]) == null ? void 0 : S.content.length) != null ? z : 10, 15)), L & 1 && (B.hooksInfo = { tag: w[0] }), d.$set(B);
13115
13115
  const F = {};
13116
- L & 32 && (F.visible = C[5]), L & 2 && (F.textUnfolded = C[1]), L & 8 && (F.textItems = C[3]), m.$set(F), L & 32 && q(t, "unfolded", C[5]);
13116
+ L & 32 && (F.visible = w[5]), L & 2 && (F.textUnfolded = w[1]), L & 8 && (F.textItems = w[3]), m.$set(F), L & 32 && q(t, "unfolded", w[5]);
13117
13117
  },
13118
- i(C) {
13119
- g || (k(e.$$.fragment, C), k(s.$$.fragment, C), k(d.$$.fragment, C), k(m.$$.fragment, C), g = !0);
13118
+ i(w) {
13119
+ g || (x(e.$$.fragment, w), x(s.$$.fragment, w), x(d.$$.fragment, w), x(m.$$.fragment, w), g = !0);
13120
13120
  },
13121
- o(C) {
13122
- z(e.$$.fragment, C), z(s.$$.fragment, C), z(d.$$.fragment, C), z(m.$$.fragment, C), g = !1;
13121
+ o(w) {
13122
+ M(e.$$.fragment, w), M(s.$$.fragment, w), M(d.$$.fragment, w), M(m.$$.fragment, w), g = !1;
13123
13123
  },
13124
- d(C) {
13125
- C && j(t), $(e), $(s), $(d), $(m), p(), v = !1, A();
13124
+ d(w) {
13125
+ w && j(t), $(e), $(s), $(d), $(m), p(), v = !1, A();
13126
13126
  }
13127
13127
  };
13128
13128
  }
@@ -13136,15 +13136,15 @@ function Tm(i) {
13136
13136
  n && n.m(o, s), T(o, t, s), e = !0;
13137
13137
  },
13138
13138
  p(o, [s]) {
13139
- o[0].state ? n ? (n.p(o, s), s & 1 && k(n, 1)) : (n = er(o), n.c(), k(n, 1), n.m(t.parentNode, t)) : n && (ue(), z(n, 1, 1, () => {
13139
+ o[0].state ? n ? (n.p(o, s), s & 1 && x(n, 1)) : (n = er(o), n.c(), x(n, 1), n.m(t.parentNode, t)) : n && (ue(), M(n, 1, 1, () => {
13140
13140
  n = null;
13141
13141
  }), fe());
13142
13142
  },
13143
13143
  i(o) {
13144
- e || (k(n), e = !0);
13144
+ e || (x(n), e = !0);
13145
13145
  },
13146
13146
  o(o) {
13147
- z(n), e = !1;
13147
+ M(n), e = !1;
13148
13148
  },
13149
13149
  d(o) {
13150
13150
  n && n.d(o), o && j(t);
@@ -13211,10 +13211,10 @@ function tr(i) {
13211
13211
  s & 32 && (r.unfolded = o[5]), s & 16 && (r.mediaData = o[4]), s & 4 && (r.objectFit = o[2]), s & 2 && (r.enableCarousel = o[1]), s & 8 && (r.autoplayConfig = o[3]), s & 1 && (r.tag = o[0]), e.$set(r);
13212
13212
  },
13213
13213
  i(o) {
13214
- n || (k(e.$$.fragment, o), n = !0);
13214
+ n || (x(e.$$.fragment, o), n = !0);
13215
13215
  },
13216
13216
  o(o) {
13217
- z(e.$$.fragment, o), n = !1;
13217
+ M(e.$$.fragment, o), n = !1;
13218
13218
  },
13219
13219
  d(o) {
13220
13220
  o && j(t), $(e);
@@ -13231,15 +13231,15 @@ function Rm(i) {
13231
13231
  n && n.m(o, s), T(o, t, s), e = !0;
13232
13232
  },
13233
13233
  p(o, [s]) {
13234
- o[0].state && o[4] ? n ? (n.p(o, s), s & 17 && k(n, 1)) : (n = tr(o), n.c(), k(n, 1), n.m(t.parentNode, t)) : n && (ue(), z(n, 1, 1, () => {
13234
+ o[0].state && o[4] ? n ? (n.p(o, s), s & 17 && x(n, 1)) : (n = tr(o), n.c(), x(n, 1), n.m(t.parentNode, t)) : n && (ue(), M(n, 1, 1, () => {
13235
13235
  n = null;
13236
13236
  }), fe());
13237
13237
  },
13238
13238
  i(o) {
13239
- e || (k(n), e = !0);
13239
+ e || (x(n), e = !0);
13240
13240
  },
13241
13241
  o(o) {
13242
- z(n), e = !1;
13242
+ M(n), e = !1;
13243
13243
  },
13244
13244
  d(o) {
13245
13245
  n && n.d(o), o && j(t);
@@ -13287,10 +13287,10 @@ function Gm(i) {
13287
13287
  K(t, s, r), T(s, e, r), T(s, n, r), o = !0;
13288
13288
  },
13289
13289
  i(s) {
13290
- o || (k(t.$$.fragment, s), o = !0);
13290
+ o || (x(t.$$.fragment, s), o = !0);
13291
13291
  },
13292
13292
  o(s) {
13293
- z(t.$$.fragment, s), o = !1;
13293
+ M(t.$$.fragment, s), o = !1;
13294
13294
  },
13295
13295
  d(s) {
13296
13296
  $(t, s), s && j(e), s && j(n);
@@ -13318,10 +13318,10 @@ function Nm(i) {
13318
13318
  K(t, c, d), T(c, e, d), T(c, n, d), T(c, o, d), T(c, s, d), T(c, r, d), T(c, a, d), l = !0;
13319
13319
  },
13320
13320
  i(c) {
13321
- l || (k(t.$$.fragment, c), l = !0);
13321
+ l || (x(t.$$.fragment, c), l = !0);
13322
13322
  },
13323
13323
  o(c) {
13324
- z(t.$$.fragment, c), l = !1;
13324
+ M(t.$$.fragment, c), l = !1;
13325
13325
  },
13326
13326
  d(c) {
13327
13327
  $(t, c), c && j(e), c && j(n), c && j(o), c && j(s), c && j(r), c && j(a);
@@ -13354,16 +13354,16 @@ function Wm(i) {
13354
13354
  T(v, t, A), Q(t, e), ~n && p[n].m(e, null), Q(t, s), Q(t, r), K(a, r, null), Q(r, l), Q(r, c), Q(c, f), u = !0;
13355
13355
  },
13356
13356
  p(v, [A]) {
13357
- let w = n;
13358
- n = g(v), n !== w && (o && (ue(), z(p[w], 1, 1, () => {
13359
- p[w] = null;
13360
- }), fe()), ~n ? (o = p[n], o || (o = p[n] = m[n](v), o.c()), k(o, 1), o.m(e, null)) : o = null), (!u || A & 1) && d !== (d = v[0].text + "") && Se(f, d);
13357
+ let C = n;
13358
+ n = g(v), n !== C && (o && (ue(), M(p[C], 1, 1, () => {
13359
+ p[C] = null;
13360
+ }), fe()), ~n ? (o = p[n], o || (o = p[n] = m[n](v), o.c()), x(o, 1), o.m(e, null)) : o = null), (!u || A & 1) && d !== (d = v[0].text + "") && Se(f, d);
13361
13361
  },
13362
13362
  i(v) {
13363
- u || (k(o), k(a.$$.fragment, v), u = !0);
13363
+ u || (x(o), x(a.$$.fragment, v), u = !0);
13364
13364
  },
13365
13365
  o(v) {
13366
- z(o), z(a.$$.fragment, v), u = !1;
13366
+ M(o), M(a.$$.fragment, v), u = !1;
13367
13367
  },
13368
13368
  d(v) {
13369
13369
  v && j(t), ~n && p[n].d(), $(a);
@@ -13472,10 +13472,10 @@ function _m(i) {
13472
13472
  o & 2 && (s.tag = ke(n[1])), t.$set(s);
13473
13473
  },
13474
13474
  i(n) {
13475
- e || (k(t.$$.fragment, n), e = !0);
13475
+ e || (x(t.$$.fragment, n), e = !0);
13476
13476
  },
13477
13477
  o(n) {
13478
- z(t.$$.fragment, n), e = !1;
13478
+ M(t.$$.fragment, n), e = !1;
13479
13479
  },
13480
13480
  d(n) {
13481
13481
  $(t, n);
@@ -13498,10 +13498,10 @@ function Km(i) {
13498
13498
  o & 2 && (s.tag = ke(n[1])), t.$set(s);
13499
13499
  },
13500
13500
  i(n) {
13501
- e || (k(t.$$.fragment, n), e = !0);
13501
+ e || (x(t.$$.fragment, n), e = !0);
13502
13502
  },
13503
13503
  o(n) {
13504
- z(t.$$.fragment, n), e = !1;
13504
+ M(t.$$.fragment, n), e = !1;
13505
13505
  },
13506
13506
  d(n) {
13507
13507
  $(t, n);
@@ -13524,10 +13524,10 @@ function $m(i) {
13524
13524
  o & 2 && (s.tag = ke(n[1])), t.$set(s);
13525
13525
  },
13526
13526
  i(n) {
13527
- e || (k(t.$$.fragment, n), e = !0);
13527
+ e || (x(t.$$.fragment, n), e = !0);
13528
13528
  },
13529
13529
  o(n) {
13530
- z(t.$$.fragment, n), e = !1;
13530
+ M(t.$$.fragment, n), e = !1;
13531
13531
  },
13532
13532
  d(n) {
13533
13533
  $(t, n);
@@ -13550,10 +13550,10 @@ function ep(i) {
13550
13550
  o & 2 && (s.tag = ke(n[1])), t.$set(s);
13551
13551
  },
13552
13552
  i(n) {
13553
- e || (k(t.$$.fragment, n), e = !0);
13553
+ e || (x(t.$$.fragment, n), e = !0);
13554
13554
  },
13555
13555
  o(n) {
13556
- z(t.$$.fragment, n), e = !1;
13556
+ M(t.$$.fragment, n), e = !1;
13557
13557
  },
13558
13558
  d(n) {
13559
13559
  $(t, n);
@@ -13576,10 +13576,10 @@ function tp(i) {
13576
13576
  o & 2 && (s.tag = ke(n[1])), t.$set(s);
13577
13577
  },
13578
13578
  i(n) {
13579
- e || (k(t.$$.fragment, n), e = !0);
13579
+ e || (x(t.$$.fragment, n), e = !0);
13580
13580
  },
13581
13581
  o(n) {
13582
- z(t.$$.fragment, n), e = !1;
13582
+ M(t.$$.fragment, n), e = !1;
13583
13583
  },
13584
13584
  d(n) {
13585
13585
  $(t, n);
@@ -13602,10 +13602,10 @@ function np(i) {
13602
13602
  o & 2 && (s.tag = ke(n[1])), t.$set(s);
13603
13603
  },
13604
13604
  i(n) {
13605
- e || (k(t.$$.fragment, n), e = !0);
13605
+ e || (x(t.$$.fragment, n), e = !0);
13606
13606
  },
13607
13607
  o(n) {
13608
- z(t.$$.fragment, n), e = !1;
13608
+ M(t.$$.fragment, n), e = !1;
13609
13609
  },
13610
13610
  d(n) {
13611
13611
  $(t, n);
@@ -13628,10 +13628,10 @@ function ip(i) {
13628
13628
  o & 2 && (s.tag = ke(n[1])), t.$set(s);
13629
13629
  },
13630
13630
  i(n) {
13631
- e || (k(t.$$.fragment, n), e = !0);
13631
+ e || (x(t.$$.fragment, n), e = !0);
13632
13632
  },
13633
13633
  o(n) {
13634
- z(t.$$.fragment, n), e = !1;
13634
+ M(t.$$.fragment, n), e = !1;
13635
13635
  },
13636
13636
  d(n) {
13637
13637
  $(t, n);
@@ -13661,17 +13661,17 @@ function op(i) {
13661
13661
  T(m, t, p), Q(t, e), Q(e, n), ~o && f[o].m(n, null), a = !0, l || (c = Pe(t, "click", Pi(i[11])), l = !0);
13662
13662
  },
13663
13663
  p(m, [p]) {
13664
- var v, A, w;
13664
+ var v, A, C;
13665
13665
  let g = o;
13666
- o = u(m), o === g ? ~o && f[o].p(m, p) : (s && (ue(), z(f[g], 1, 1, () => {
13666
+ o = u(m), o === g ? ~o && f[o].p(m, p) : (s && (ue(), M(f[g], 1, 1, () => {
13667
13667
  f[g] = null;
13668
- }), fe()), ~o ? (s = f[o], s ? s.p(m, p) : (s = f[o] = d[o](m), s.c()), k(s, 1), s.m(n, null)) : s = null), p & 2 && q(n, "unfolded", (v = m[1].state) == null ? void 0 : v.unfolded), (!a || p & 2 && r !== (r = m[1].id)) && b(t, "data-id", r), p & 2 && q(t, "disable", m[1].enabled === !1 || ((A = m[1].temporaryState) == null ? void 0 : A.visible) === !1), p & 26 && q(t, "hide", !m[3].visible || !m[3].enabled || !m[4].visible || !((w = m[1].state) != null && w.visible)), p & 1 && q(t, "withAnimation", m[0]), p & 2 && q(t, "unClickable", m[1].clickable === !1), p & 2 && R(t, "width", m[1].pointType === "PointTag" ? 0 : "100%", !1), p & 2 && R(t, "height", m[1].pointType === "PointTag" ? 0 : "100%", !1);
13668
+ }), fe()), ~o ? (s = f[o], s ? s.p(m, p) : (s = f[o] = d[o](m), s.c()), x(s, 1), s.m(n, null)) : s = null), p & 2 && q(n, "unfolded", (v = m[1].state) == null ? void 0 : v.unfolded), (!a || p & 2 && r !== (r = m[1].id)) && b(t, "data-id", r), p & 2 && q(t, "disable", m[1].enabled === !1 || ((A = m[1].temporaryState) == null ? void 0 : A.visible) === !1), p & 26 && q(t, "hide", !m[3].visible || !m[3].enabled || !m[4].visible || !((C = m[1].state) != null && C.visible)), p & 1 && q(t, "withAnimation", m[0]), p & 2 && q(t, "unClickable", m[1].clickable === !1), p & 2 && R(t, "width", m[1].pointType === "PointTag" ? 0 : "100%", !1), p & 2 && R(t, "height", m[1].pointType === "PointTag" ? 0 : "100%", !1);
13669
13669
  },
13670
13670
  i(m) {
13671
- a || (k(s), a = !0);
13671
+ a || (x(s), a = !0);
13672
13672
  },
13673
13673
  o(m) {
13674
- z(s), a = !1;
13674
+ M(s), a = !1;
13675
13675
  },
13676
13676
  d(m) {
13677
13677
  m && j(t), ~o && f[o].d(), l = !1, c();
@@ -13689,8 +13689,8 @@ function sp(i, t, e) {
13689
13689
  return i.$$set = (A) => {
13690
13690
  "withAnimation" in A && e(0, a = A.withAnimation), "tag" in A && e(1, l = A.tag), "hooks" in A && e(2, c = A.hooks), "state" in A && e(3, d = A.state), "mediaStore" in A && e(5, f = A.mediaStore), "temporaryState" in A && e(4, u = A.temporaryState);
13691
13691
  }, i.$$.update = () => {
13692
- var A, w;
13693
- i.$$.dirty & 2 && e(9, n = (A = l.state) == null ? void 0 : A.unfolded), i.$$.dirty & 2 && e(8, o = (w = l.state) == null ? void 0 : w.visible), i.$$.dirty & 280 && e(10, s = d.visible && u.visible && o), i.$$.dirty & 2 && (r = l.id), i.$$.dirty & 1024 && g(s), i.$$.dirty & 962 && l.hooks && (n !== void 0 && n !== p && (e(7, p = n), n ? l.hooks.emit("unfolded") : l.hooks.emit("folded")), o !== void 0 && o !== m && (e(6, m = o), o ? l.hooks.emit("show") : l.hooks.emit("hide")));
13692
+ var A, C;
13693
+ i.$$.dirty & 2 && e(9, n = (A = l.state) == null ? void 0 : A.unfolded), i.$$.dirty & 2 && e(8, o = (C = l.state) == null ? void 0 : C.visible), i.$$.dirty & 280 && e(10, s = d.visible && u.visible && o), i.$$.dirty & 2 && (r = l.id), i.$$.dirty & 1024 && g(s), i.$$.dirty & 962 && l.hooks && (n !== void 0 && n !== p && (e(7, p = n), n ? l.hooks.emit("unfolded") : l.hooks.emit("folded")), o !== void 0 && o !== m && (e(6, m = o), o ? l.hooks.emit("show") : l.hooks.emit("hide")));
13694
13694
  }, [
13695
13695
  a,
13696
13696
  l,
@@ -13748,10 +13748,10 @@ function ap(i) {
13748
13748
  c & 12 && R(o, "transition-delay", l[3] ? l[2] + "ms" : "0ms", !1), (!a || c & 2) && R(r, "--iconUrl", "url(" + l[1] + ")"), c & 12 && R(r, "transition-delay", l[3] ? l[2] + "ms" : "0ms", !1), c & 8 && q(t, "folded", l[3]), c & 1 && q(t, "unfolded", l[0]);
13749
13749
  },
13750
13750
  i(l) {
13751
- a || (k(e.$$.fragment, l), a = !0);
13751
+ a || (x(e.$$.fragment, l), a = !0);
13752
13752
  },
13753
13753
  o(l) {
13754
- z(e.$$.fragment, l), a = !1;
13754
+ M(e.$$.fragment, l), a = !1;
13755
13755
  },
13756
13756
  d(l) {
13757
13757
  l && j(t), $(e);
@@ -13793,10 +13793,10 @@ function up(i) {
13793
13793
  c & 6 && R(o, "transition-delay", l[2] ? l[1] + "ms" : "0ms", !1), c & 6 && R(r, "transition-delay", l[2] ? l[1] + "ms" : "0ms", !1), c & 1 && q(t, "unfolded", l[0]), c & 4 && q(t, "folded", l[2]);
13794
13794
  },
13795
13795
  i(l) {
13796
- a || (k(e.$$.fragment, l), a = !0);
13796
+ a || (x(e.$$.fragment, l), a = !0);
13797
13797
  },
13798
13798
  o(l) {
13799
- z(e.$$.fragment, l), a = !1;
13799
+ M(e.$$.fragment, l), a = !1;
13800
13800
  },
13801
13801
  d(l) {
13802
13802
  l && j(t), $(e);
@@ -13829,15 +13829,15 @@ function ir(i) {
13829
13829
  n && n.m(o, s), T(o, t, s), e = !0;
13830
13830
  },
13831
13831
  p(o, s) {
13832
- o[0].contentType !== Xe.Link ? n ? (n.p(o, s), s & 1 && k(n, 1)) : (n = or(o), n.c(), k(n, 1), n.m(t.parentNode, t)) : n && (ue(), z(n, 1, 1, () => {
13832
+ o[0].contentType !== Xe.Link ? n ? (n.p(o, s), s & 1 && x(n, 1)) : (n = or(o), n.c(), x(n, 1), n.m(t.parentNode, t)) : n && (ue(), M(n, 1, 1, () => {
13833
13833
  n = null;
13834
13834
  }), fe());
13835
13835
  },
13836
13836
  i(o) {
13837
- e || (k(n), e = !0);
13837
+ e || (x(n), e = !0);
13838
13838
  },
13839
13839
  o(o) {
13840
- z(n), e = !1;
13840
+ M(n), e = !1;
13841
13841
  },
13842
13842
  d(o) {
13843
13843
  n && n.d(o), o && j(t);
@@ -13860,15 +13860,15 @@ function or(i) {
13860
13860
  },
13861
13861
  p(d, f) {
13862
13862
  let u = n;
13863
- n = c(d), n === u ? l[n].p(d, f) : (ue(), z(l[u], 1, 1, () => {
13863
+ n = c(d), n === u ? l[n].p(d, f) : (ue(), M(l[u], 1, 1, () => {
13864
13864
  l[u] = null;
13865
- }), fe(), o = l[n], o ? o.p(d, f) : (o = l[n] = a[n](d), o.c()), k(o, 1), o.m(s.parentNode, s));
13865
+ }), fe(), o = l[n], o ? o.p(d, f) : (o = l[n] = a[n](d), o.c()), x(o, 1), o.m(s.parentNode, s));
13866
13866
  },
13867
13867
  i(d) {
13868
- r || (k(o), r = !0);
13868
+ r || (x(o), r = !0);
13869
13869
  },
13870
13870
  o(d) {
13871
- z(o), r = !1;
13871
+ M(o), r = !1;
13872
13872
  },
13873
13873
  d(d) {
13874
13874
  d && j(t), d && j(e), l[n].d(d), d && j(s);
@@ -13894,10 +13894,10 @@ function pp(i) {
13894
13894
  o & 1 && (s.unfolded = n[0].state.unfolded), o & 2 && (s.foldDelay = n[1]), t.$set(s);
13895
13895
  },
13896
13896
  i(n) {
13897
- e || (k(t.$$.fragment, n), e = !0);
13897
+ e || (x(t.$$.fragment, n), e = !0);
13898
13898
  },
13899
13899
  o(n) {
13900
- z(t.$$.fragment, n), e = !1;
13900
+ M(t.$$.fragment, n), e = !1;
13901
13901
  },
13902
13902
  d(n) {
13903
13903
  $(t, n);
@@ -13924,10 +13924,10 @@ function gp(i) {
13924
13924
  o & 1 && (s.iconUrl = n[0].style.point.iconUrl), o & 1 && (s.unfolded = n[0].state.unfolded), o & 2 && (s.foldDelay = n[1]), t.$set(s);
13925
13925
  },
13926
13926
  i(n) {
13927
- e || (k(t.$$.fragment, n), e = !0);
13927
+ e || (x(t.$$.fragment, n), e = !0);
13928
13928
  },
13929
13929
  o(n) {
13930
- z(t.$$.fragment, n), e = !1;
13930
+ M(t.$$.fragment, n), e = !1;
13931
13931
  },
13932
13932
  d(n) {
13933
13933
  $(t, n);
@@ -13946,15 +13946,15 @@ function Ap(i) {
13946
13946
  },
13947
13947
  p(a, [l]) {
13948
13948
  var c, d, f;
13949
- ((c = a[0].pointTagStyle) == null ? void 0 : c.leftPercent) && ((d = a[0].pointTagStyle) == null ? void 0 : d.topPercent) && a[0].enabled !== !1 && a[0].state && ((f = a[0].temporaryState) == null ? void 0 : f.visible) !== !1 ? n ? (n.p(a, l), l & 1 && k(n, 1)) : (n = ir(a), n.c(), k(n, 1), n.m(t.parentNode, t)) : n && (ue(), z(n, 1, 1, () => {
13949
+ ((c = a[0].pointTagStyle) == null ? void 0 : c.leftPercent) && ((d = a[0].pointTagStyle) == null ? void 0 : d.topPercent) && a[0].enabled !== !1 && a[0].state && ((f = a[0].temporaryState) == null ? void 0 : f.visible) !== !1 ? n ? (n.p(a, l), l & 1 && x(n, 1)) : (n = ir(a), n.c(), x(n, 1), n.m(t.parentNode, t)) : n && (ue(), M(n, 1, 1, () => {
13950
13950
  n = null;
13951
13951
  }), fe());
13952
13952
  },
13953
13953
  i(a) {
13954
- e || (k(n), e = !0);
13954
+ e || (x(n), e = !0);
13955
13955
  },
13956
13956
  o(a) {
13957
- z(n), e = !1;
13957
+ M(n), e = !1;
13958
13958
  },
13959
13959
  d(a) {
13960
13960
  n && n.d(a), a && j(t);
@@ -14001,10 +14001,10 @@ function sr(i) {
14001
14001
  o & 16 && (s.mediaStore = n[4]), o & 1 && (s.withAnimation = n[0]), o & 2 && (s.tag = ke(n[1])), o & 4 && (s.hooks = n[2]), o & 8 && (s.state = n[3]), o & 32 && (s.temporaryState = n[5]), t.$set(s);
14002
14002
  },
14003
14003
  i(n) {
14004
- e || (k(t.$$.fragment, n), e = !0);
14004
+ e || (x(t.$$.fragment, n), e = !0);
14005
14005
  },
14006
14006
  o(n) {
14007
- z(t.$$.fragment, n), e = !1;
14007
+ M(t.$$.fragment, n), e = !1;
14008
14008
  },
14009
14009
  d(n) {
14010
14010
  $(t, n);
@@ -14025,10 +14025,10 @@ function rr(i) {
14025
14025
  a & 2 && (l.tag = r[1]), e.$set(l);
14026
14026
  },
14027
14027
  i(r) {
14028
- n || (k(e.$$.fragment, r), n = !0);
14028
+ n || (x(e.$$.fragment, r), n = !0);
14029
14029
  },
14030
14030
  o(r) {
14031
- z(e.$$.fragment, r), n = !1;
14031
+ M(e.$$.fragment, r), n = !1;
14032
14032
  },
14033
14033
  d(r) {
14034
14034
  r && j(t), $(e), o = !1, s();
@@ -14047,17 +14047,17 @@ function wp(i) {
14047
14047
  },
14048
14048
  p(c, [d]) {
14049
14049
  var f, u;
14050
- c[1].dimensionType === qe.Two ? s ? (s.p(c, d), d & 2 && k(s, 1)) : (s = sr(c), s.c(), k(s, 1), s.m(t, e)) : s && (ue(), z(s, 1, 1, () => {
14050
+ c[1].dimensionType === qe.Two ? s ? (s.p(c, d), d & 2 && x(s, 1)) : (s = sr(c), s.c(), x(s, 1), s.m(t, e)) : s && (ue(), M(s, 1, 1, () => {
14051
14051
  s = null;
14052
- }), fe()), c[1].pointType === We.PointTag && ((u = (f = c[1].style) == null ? void 0 : f.point) == null ? void 0 : u.style) !== "noPoint" ? r ? (r.p(c, d), d & 2 && k(r, 1)) : (r = rr(c), r.c(), k(r, 1), r.m(t, null)) : r && (ue(), z(r, 1, 1, () => {
14052
+ }), fe()), c[1].pointType === We.PointTag && ((u = (f = c[1].style) == null ? void 0 : f.point) == null ? void 0 : u.style) !== "noPoint" ? r ? (r.p(c, d), d & 2 && x(r, 1)) : (r = rr(c), r.c(), x(r, 1), r.m(t, null)) : r && (ue(), M(r, 1, 1, () => {
14053
14053
  r = null;
14054
14054
  }), fe()), (!o || d & 2 && n !== (n = c[1].id)) && b(t, "data-id", n), d & 1024 && q(t, "hide", c[10]), d & 64 && q(t, "unfolded", c[6]), d & 512 && R(t, "left", c[9], !1), d & 256 && R(t, "top", c[8], !1), d & 128 && R(t, "z-index", c[7], !1);
14055
14055
  },
14056
14056
  i(c) {
14057
- o || (k(s), k(r), o = !0);
14057
+ o || (x(s), x(r), o = !0);
14058
14058
  },
14059
14059
  o(c) {
14060
- z(s), z(r), o = !1;
14060
+ M(s), M(r), o = !1;
14061
14061
  },
14062
14062
  d(c) {
14063
14063
  c && j(t), s && s.d(), r && r.d();
@@ -14074,14 +14074,14 @@ function Cp(i, t, e) {
14074
14074
  800
14075
14075
  );
14076
14076
  }
14077
- const w = (y) => {
14077
+ const C = (y) => {
14078
14078
  v || f.emit("click", { event: y, target: "TagPoint", tag: d });
14079
14079
  };
14080
14080
  return i.$$set = (y) => {
14081
14081
  "withAnimation" in y && e(0, c = y.withAnimation), "tag" in y && e(1, d = y.tag), "hooks" in y && e(2, f = y.hooks), "state" in y && e(3, u = y.state), "mediaStore" in y && e(4, m = y.mediaStore), "temporaryState" in y && e(5, p = y.temporaryState);
14082
14082
  }, i.$$.update = () => {
14083
- var y, I, x, C;
14084
- i.$$.dirty & 2 && e(12, n = (y = d.state) == null ? void 0 : y.visible), i.$$.dirty & 4096 && e(10, o = !n), i.$$.dirty & 2 && e(6, s = (I = d.state) == null ? void 0 : I.unfolded), i.$$.dirty & 2 && e(9, r = ((x = d.pointTagStyle) == null ? void 0 : x.leftPercent) + "%"), i.$$.dirty & 2 && e(8, a = ((C = d.pointTagStyle) == null ? void 0 : C.topPercent) + "%"), i.$$.dirty & 2 && e(7, l = d.contentType === Xe.Link ? 1 : 0), i.$$.dirty & 64 && A();
14083
+ var y, I, k, w;
14084
+ i.$$.dirty & 2 && e(12, n = (y = d.state) == null ? void 0 : y.visible), i.$$.dirty & 4096 && e(10, o = !n), i.$$.dirty & 2 && e(6, s = (I = d.state) == null ? void 0 : I.unfolded), i.$$.dirty & 2 && e(9, r = ((k = d.pointTagStyle) == null ? void 0 : k.leftPercent) + "%"), i.$$.dirty & 2 && e(8, a = ((w = d.pointTagStyle) == null ? void 0 : w.topPercent) + "%"), i.$$.dirty & 2 && e(7, l = d.contentType === Xe.Link ? 1 : 0), i.$$.dirty & 64 && A();
14085
14085
  }, [
14086
14086
  c,
14087
14087
  d,
@@ -14094,7 +14094,7 @@ function Cp(i, t, e) {
14094
14094
  a,
14095
14095
  r,
14096
14096
  o,
14097
- w,
14097
+ C,
14098
14098
  n
14099
14099
  ];
14100
14100
  }
@@ -14151,13 +14151,13 @@ function lr(i) {
14151
14151
  i(a) {
14152
14152
  if (!o) {
14153
14153
  for (let l = 0; l < s.length; l += 1)
14154
- k(e[l]);
14154
+ x(e[l]);
14155
14155
  o = !0;
14156
14156
  }
14157
14157
  },
14158
14158
  o(a) {
14159
14159
  for (let l = 0; l < e.length; l += 1)
14160
- z(e[l]);
14160
+ M(e[l]);
14161
14161
  o = !1;
14162
14162
  },
14163
14163
  d(a) {
@@ -14208,10 +14208,10 @@ function cr(i, t) {
14208
14208
  n.$set(d), c & 2 && q(e, "hide", !((f = t[6].pointTagStyle) != null && f.leftPercent) || !((u = t[6].pointTagStyle) != null && u.topPercent) || t[6].enabled === !1 || !t[6].state || ((m = t[6].temporaryState) == null ? void 0 : m.visible) === !1);
14209
14209
  },
14210
14210
  i(l) {
14211
- s || (k(n.$$.fragment, l), s = !0);
14211
+ s || (x(n.$$.fragment, l), s = !0);
14212
14212
  },
14213
14213
  o(l) {
14214
- z(n.$$.fragment, l), s = !1;
14214
+ M(n.$$.fragment, l), s = !1;
14215
14215
  },
14216
14216
  d(l) {
14217
14217
  l && j(e), $(n);
@@ -14228,15 +14228,15 @@ function Ip(i) {
14228
14228
  n && n.m(o, s), T(o, t, s), e = !0;
14229
14229
  },
14230
14230
  p(o, [s]) {
14231
- o[3].enabled ? n ? (n.p(o, s), s & 8 && k(n, 1)) : (n = lr(o), n.c(), k(n, 1), n.m(t.parentNode, t)) : n && (ue(), z(n, 1, 1, () => {
14231
+ o[3].enabled ? n ? (n.p(o, s), s & 8 && x(n, 1)) : (n = lr(o), n.c(), x(n, 1), n.m(t.parentNode, t)) : n && (ue(), M(n, 1, 1, () => {
14232
14232
  n = null;
14233
14233
  }), fe());
14234
14234
  },
14235
14235
  i(o) {
14236
- e || (k(n), e = !0);
14236
+ e || (x(n), e = !0);
14237
14237
  },
14238
14238
  o(o) {
14239
- z(n), e = !1;
14239
+ M(n), e = !1;
14240
14240
  },
14241
14241
  d(o) {
14242
14242
  n && n.d(o), o && j(t);
@@ -14382,8 +14382,8 @@ class Sp extends Lp {
14382
14382
  throw new Error(`getVisible(): observerPosition is ${g}`);
14383
14383
  const v = vn(e.position).sub(g).normalize();
14384
14384
  this.raycaster.set(g, v);
14385
- const [A] = this.five.model.intersectRaycaster(this.raycaster), w = (p = (m = l.intersectRaycaster) == null ? void 0 : m.distanceAccuracy) != null ? p : 0.01;
14386
- if (A && A.distance + w < c)
14385
+ const [A] = this.five.model.intersectRaycaster(this.raycaster), C = (p = (m = l.intersectRaycaster) == null ? void 0 : m.distanceAccuracy) != null ? p : 0.01;
14386
+ if (A && A.distance + C < c)
14387
14387
  return !1;
14388
14388
  }
14389
14389
  return !(l.angleRange && e.dimensionType === qe.Three && bn(this.getAngle(e), l.angleRange) === !1);
@@ -16008,12 +16008,12 @@ class $p extends Hi {
16008
16008
  if (this.rotations.length === 1)
16009
16009
  return u.angleTo(s.baseAxes) > r.angleTo(s.baseAxes);
16010
16010
  {
16011
- const g = this.rotations[this.rotations.length - 1], v = this.rotations[this.rotations.length - 2], A = u.angleTo(v.vector), w = u.angleTo(g.vector), y = g.vector.angleTo(v.vector);
16012
- if (y === 0 || w === 0 || A === 0)
16011
+ const g = this.rotations[this.rotations.length - 1], v = this.rotations[this.rotations.length - 2], A = u.angleTo(v.vector), C = u.angleTo(g.vector), y = g.vector.angleTo(v.vector);
16012
+ if (y === 0 || C === 0 || A === 0)
16013
16013
  return;
16014
- if (A > w && A > y)
16014
+ if (A > C && A > y)
16015
16015
  return g.direction;
16016
- if (A < y && w < y || A < w && w > y)
16016
+ if (A < y && C < y || A < C && C > y)
16017
16017
  return !g.direction;
16018
16018
  }
16019
16019
  })();
@@ -16107,7 +16107,7 @@ class eg extends Hi {
16107
16107
  this.scale(n), console.log("%c RectangleScaleController dragging", "color: #49de1b");
16108
16108
  }
16109
16109
  scale(e) {
16110
- var H, M;
16110
+ var H, B;
16111
16111
  if (!this.startInfo)
16112
16112
  return;
16113
16113
  const n = this.originObject3D, { startPoint: o, plane: s } = this.startInfo, r = this.helperObject3D.cornerPositions;
@@ -16117,33 +16117,33 @@ class eg extends Hi {
16117
16117
  if (!a || Hp(a, this.camera.position))
16118
16118
  return;
16119
16119
  const l = new Z().addVectors(r[0], r[2]).divideScalar(2), { position: c, direction: d } = o, f = new Z().subVectors(r[1], r[0]), u = new Z().subVectors(r[3], r[0]), m = (F) => {
16120
- const X = new Z(0, 0, 0);
16120
+ const Y = new Z(0, 0, 0);
16121
16121
  if (!this.startInfo)
16122
- return X;
16123
- const E = (F === "ew" ? f : u).clone(), S = c.clone().projectOnVector(E), B = a.clone().projectOnVector(E), N = l.clone().projectOnVector(E);
16124
- if (B.equals(S))
16125
- return X;
16122
+ return Y;
16123
+ const E = (F === "ew" ? f : u).clone(), S = c.clone().projectOnVector(E), z = a.clone().projectOnVector(E), N = l.clone().projectOnVector(E);
16124
+ if (z.equals(S))
16125
+ return Y;
16126
16126
  if (F === "ns" && typeof this.startInfo.dragPointInCenterBottom != "boolean") {
16127
- const W = new Z().subVectors(B, N), U = W.x < 0 && E.x >= 0, ae = W.y < 0 && E.y >= 0, le = W.z < 0 && E.z >= 0;
16127
+ const W = new Z().subVectors(z, N), U = W.x < 0 && E.x >= 0, ae = W.y < 0 && E.y >= 0, le = W.z < 0 && E.z >= 0;
16128
16128
  this.startInfo.dragPointInCenterBottom = U || ae || le;
16129
16129
  }
16130
16130
  if (F === "ew" && typeof this.startInfo.dragPointInCenterLeft != "boolean") {
16131
- const W = new Z().subVectors(B, N), U = W.x < 0 && E.x >= 0, ae = W.y < 0 && E.y >= 0, le = W.z < 0 && E.z >= 0;
16131
+ const W = new Z().subVectors(z, N), U = W.x < 0 && E.x >= 0, ae = W.y < 0 && E.y >= 0, le = W.z < 0 && E.z >= 0;
16132
16132
  this.startInfo.dragPointInCenterLeft = U || ae || le;
16133
16133
  }
16134
- const Y = new Z().subVectors(B, S), ee = Y.length();
16135
- return ee > 0.3 ? (console.warn("offset.length() > 0.3, skipped", ee), X) : Y;
16134
+ const X = new Z().subVectors(z, S), ee = X.length();
16135
+ return ee > 0.3 ? (console.warn("offset.length() > 0.3, skipped", ee), Y) : X;
16136
16136
  }, p = m("ew"), g = m("ns"), v = () => {
16137
16137
  const F = p;
16138
- this.helperObject3D.cornerPositions.forEach((X, E) => {
16138
+ this.helperObject3D.cornerPositions.forEach((Y, E) => {
16139
16139
  var S;
16140
- (S = this.startInfo) != null && S.dragPointInCenterLeft ? (E === 0 || E === 3) && X.add(F) : (E === 1 || E === 2) && X.add(F);
16140
+ (S = this.startInfo) != null && S.dragPointInCenterLeft ? (E === 0 || E === 3) && Y.add(F) : (E === 1 || E === 2) && Y.add(F);
16141
16141
  });
16142
16142
  }, A = () => {
16143
16143
  const F = g;
16144
- this.helperObject3D.cornerPositions.forEach((X, E) => {
16144
+ this.helperObject3D.cornerPositions.forEach((Y, E) => {
16145
16145
  var S;
16146
- (S = this.startInfo) != null && S.dragPointInCenterBottom ? (E === 0 || E === 1) && X.add(F) : (E === 2 || E === 3) && X.add(F);
16146
+ (S = this.startInfo) != null && S.dragPointInCenterBottom ? (E === 0 || E === 1) && Y.add(F) : (E === 2 || E === 3) && Y.add(F);
16147
16147
  });
16148
16148
  };
16149
16149
  switch (d) {
@@ -16157,10 +16157,10 @@ class eg extends Hi {
16157
16157
  case "nwse":
16158
16158
  v(), A();
16159
16159
  }
16160
- const w = new Z().subVectors(r[1], r[0]).length() / f.length(), y = new Z().subVectors(r[3], r[0]).length() / u.length(), I = new Z(w, y, 1), x = new P.Matrix4().scale(I);
16161
- n.isCSS3DObjectPlus ? n.applyScaleMatrix4(x) : n.scale.applyMatrix4(x), o.position.copy(a);
16162
- const C = new Z().addVectors(r[0], r[2]).divideScalar(2), L = new Z().subVectors(C, l), D = new P.Matrix4().setPosition(L);
16163
- n.applyMatrix4(D), (H = this.helperObject3D.css3DInstance) == null || H.css3DObject.applyMatrix4(D), (M = this.helperObject3D.plane) == null || M.applyMatrix4(D), this.hooks.emit("scaleUpdate", { matrix4: x, helperOrigin: l }), this.hooks.emit("positionUpdate", { matrix4: D }), this.render();
16160
+ const C = new Z().subVectors(r[1], r[0]).length() / f.length(), y = new Z().subVectors(r[3], r[0]).length() / u.length(), I = new Z(C, y, 1), k = new P.Matrix4().scale(I);
16161
+ n.isCSS3DObjectPlus ? n.applyScaleMatrix4(k) : n.scale.applyMatrix4(k), o.position.copy(a);
16162
+ const w = new Z().addVectors(r[0], r[2]).divideScalar(2), L = new Z().subVectors(w, l), D = new P.Matrix4().setPosition(L);
16163
+ n.applyMatrix4(D), (H = this.helperObject3D.css3DInstance) == null || H.css3DObject.applyMatrix4(D), (B = this.helperObject3D.plane) == null || B.applyMatrix4(D), this.hooks.emit("scaleUpdate", { matrix4: k, helperOrigin: l }), this.hooks.emit("positionUpdate", { matrix4: D }), this.render();
16164
16164
  }
16165
16165
  dragEnd() {
16166
16166
  !this.isDragging || (this.startInfo = void 0, this.isDragging = !1, this.hooks.emit("scaleEnd"), this.render(), console.log("%c RectangleScaleController dragEnd", "color: #e94e4e"));