@realsee/dnalogel 2.16.0-3 → 2.16.0-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (289) hide show
  1. package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +4 -1
  2. package/dist/index.cjs.js +39 -22
  3. package/dist/index.js +521 -505
  4. package/dist/index.umd.js +35 -18
  5. package/docs/classes/CSS3DRender.html +31 -31
  6. package/docs/classes/CruisePluginController.html +26 -26
  7. package/docs/classes/GuideLineItem.GuideLineItem.html +13 -13
  8. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +22 -22
  9. package/docs/classes/Magnifier.html +20 -20
  10. package/docs/classes/ModelRoomLabelController.html +11 -11
  11. package/docs/classes/Object3DHelperController.html +25 -25
  12. package/docs/classes/PaintBrush.html +15 -15
  13. package/docs/classes/PanoMeasurePluginLine.html +23 -23
  14. package/docs/classes/PanoMeasurePluginModel.html +22 -22
  15. package/docs/classes/PanoMeasurePluginPoint.html +14 -14
  16. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  17. package/docs/classes/PanoTagPluginController.html +47 -47
  18. package/docs/classes/Util.BetterTween.html +8 -8
  19. package/docs/classes/Util.FivePointSelector.html +12 -12
  20. package/docs/classes/Util.Interval.html +12 -12
  21. package/docs/classes/Util.Magnifier.html +17 -17
  22. package/docs/classes/Util.PointDomHelper.html +11 -11
  23. package/docs/classes/Util.PointHelper.html +11 -11
  24. package/docs/classes/Util.Rectangle.html +13 -13
  25. package/docs/enums/CameraMovementEffect.html +7 -7
  26. package/docs/enums/ContentType.html +19 -19
  27. package/docs/enums/DIRECTION.html +9 -9
  28. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  29. package/docs/enums/DimensionType.html +7 -7
  30. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  31. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  32. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  33. package/docs/enums/Rotation.html +8 -8
  34. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  35. package/docs/functions/CameraMovementPlugin.html +4 -4
  36. package/docs/functions/CruisePlugin.html +4 -4
  37. package/docs/functions/GuideLinePlugin.html +5 -5
  38. package/docs/functions/ItemLabelPlugin.html +4 -4
  39. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  40. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  41. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  42. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  43. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  44. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  45. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  46. package/docs/functions/ModelViewPlugin.html +4 -4
  47. package/docs/functions/Object3DHelperPlugin.html +4 -4
  48. package/docs/functions/PanoCompassPlugin.html +4 -4
  49. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  50. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  51. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  52. package/docs/functions/PanoMeasurePlugin.html +4 -4
  53. package/docs/functions/PanoRulerPlugin.html +4 -4
  54. package/docs/functions/PanoRulerProPlugin.html +4 -4
  55. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  56. package/docs/functions/PanoTagPlugin.html +4 -4
  57. package/docs/functions/PanoVideoPlugin.html +4 -4
  58. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  59. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  60. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  61. package/docs/functions/Util.getFrameTime.html +5 -5
  62. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  63. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  64. package/docs/functions/Util.isAbsoluteURL.html +5 -5
  65. package/docs/functions/Util.isModelLike.html +5 -5
  66. package/docs/functions/Util.isNil.html +5 -5
  67. package/docs/functions/Util.isPanoramaLike.html +5 -5
  68. package/docs/functions/Util.nextFrame.html +5 -5
  69. package/docs/functions/Util.notNil.html +5 -5
  70. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  71. package/docs/functions/Util.tweenProgress.html +5 -5
  72. package/docs/functions/Util.uuid.html +5 -5
  73. package/docs/functions/pluginFlag.html +5 -5
  74. package/docs/index.html +4 -4
  75. package/docs/interfaces/AddTagConfig.html +6 -6
  76. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  77. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  78. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  79. package/docs/interfaces/EventMap.html +15 -15
  80. package/docs/interfaces/FloorplanBounding.html +8 -8
  81. package/docs/interfaces/FloorplanData.html +10 -10
  82. package/docs/interfaces/FloorplanEntrance.html +11 -11
  83. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  84. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  85. package/docs/interfaces/FloorplanFloorData.html +9 -9
  86. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  87. package/docs/interfaces/FloorplanObserver.html +9 -9
  88. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  89. package/docs/interfaces/FloorplanPosition.html +7 -7
  90. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  91. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  92. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  93. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  94. package/docs/interfaces/FloorplanServerData.html +7 -7
  95. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  96. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  97. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  98. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  99. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  100. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  101. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  102. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  103. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  104. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  105. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +10 -10
  106. package/docs/interfaces/GuideLinePluginType.EventMap.html +13 -13
  107. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +8 -8
  108. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +6 -6
  109. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +11 -11
  110. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +8 -8
  111. package/docs/interfaces/GuideLinePluginType.PluginDataV1.html +7 -7
  112. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +6 -6
  113. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +7 -7
  114. package/docs/interfaces/GuideLinePluginType.PluginState.html +9 -9
  115. package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
  116. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +9 -9
  117. package/docs/interfaces/HelperOffset.html +8 -8
  118. package/docs/interfaces/ImagePlaneGroup.html +6 -6
  119. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  120. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  121. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  122. package/docs/interfaces/MinMax.html +7 -7
  123. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  124. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  125. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  126. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  127. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  128. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  129. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  130. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  131. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  132. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  133. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  134. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  135. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  136. package/docs/interfaces/Object3DHelperState.html +8 -8
  137. package/docs/interfaces/ObjectHelperControllers.html +9 -9
  138. package/docs/interfaces/PaintBrushAction.html +12 -12
  139. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  140. package/docs/interfaces/PaintBrushState.html +10 -10
  141. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  142. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  143. package/docs/interfaces/PanoMeasureParameterType.html +14 -14
  144. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
  145. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
  146. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
  147. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
  148. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  149. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  150. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  151. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  152. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  153. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  154. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  155. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  156. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  157. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  158. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  159. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  160. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  161. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  162. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  163. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  164. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -6
  165. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
  166. package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
  167. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
  168. package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
  169. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
  170. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
  171. package/docs/interfaces/Point.html +8 -8
  172. package/docs/interfaces/Room.html +9 -9
  173. package/docs/interfaces/RoomInfo.html +7 -7
  174. package/docs/interfaces/RoomLabel.html +14 -14
  175. package/docs/interfaces/RoomRules.html +5 -5
  176. package/docs/interfaces/Rooms.html +5 -5
  177. package/docs/interfaces/Scissor.html +9 -9
  178. package/docs/interfaces/State.html +8 -8
  179. package/docs/interfaces/TagCacheInterface.html +12 -12
  180. package/docs/interfaces/TagConfig.html +11 -11
  181. package/docs/interfaces/TagGLTFObjectGroup.html +6 -6
  182. package/docs/interfaces/TagIconUrl.html +11 -11
  183. package/docs/interfaces/TagObjectGroup.html +6 -6
  184. package/docs/interfaces/TagStyle.html +6 -6
  185. package/docs/interfaces/Tags.html +9 -9
  186. package/docs/interfaces/TemporaryState.html +6 -6
  187. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  188. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  189. package/docs/modules/GuideLineItem.html +5 -5
  190. package/docs/modules/GuideLineModeItem.html +5 -5
  191. package/docs/modules/GuideLinePluginType.html +5 -5
  192. package/docs/modules/PanoVideoPluginType.html +5 -5
  193. package/docs/modules/Util.html +5 -5
  194. package/docs/modules.html +4 -4
  195. package/docs/types/ArrayPosition.html +5 -5
  196. package/docs/types/AudioAppearance.html +5 -5
  197. package/docs/types/AudioTagTypeConfigKey.html +5 -5
  198. package/docs/types/CSS3DRenderExportType.html +5 -5
  199. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  200. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  201. package/docs/types/ClassFunctionParameters.html +5 -5
  202. package/docs/types/Color.html +5 -5
  203. package/docs/types/ContentTypeConfigKey.html +5 -5
  204. package/docs/types/ContentTypeConfigKeySplit.html +5 -5
  205. package/docs/types/ContentTypeMap.html +5 -5
  206. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  207. package/docs/types/Create3DElementReturnType.html +5 -5
  208. package/docs/types/CruisePluginExportType.html +5 -5
  209. package/docs/types/Direction-1.html +5 -5
  210. package/docs/types/Direction4.html +5 -5
  211. package/docs/types/FloorplanRuleLabels.html +5 -5
  212. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  213. package/docs/types/GuideLinePluginExportType.html +5 -5
  214. package/docs/types/GuideLinePluginType.GuideLineItem.html +5 -5
  215. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +5 -5
  216. package/docs/types/GuideLinePluginType.GuideLineStyle.html +5 -5
  217. package/docs/types/GuideLinePluginType.PathItem.html +5 -5
  218. package/docs/types/GuideLinePluginType.PluginData.html +5 -5
  219. package/docs/types/HelperEventMap.html +5 -5
  220. package/docs/types/LoadTagConfig.html +5 -5
  221. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  222. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  223. package/docs/types/MediaData.html +5 -5
  224. package/docs/types/MediaStore.html +5 -5
  225. package/docs/types/ModelElement.html +5 -5
  226. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  227. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  228. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  229. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  230. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  231. package/docs/types/MoveArgs.html +5 -5
  232. package/docs/types/MoveOpts.html +5 -5
  233. package/docs/types/Object3DHelperEventMap.html +5 -5
  234. package/docs/types/ObjectFit.html +5 -5
  235. package/docs/types/PaintBrushEventMap.html +5 -5
  236. package/docs/types/PanoCompassPluginData.html +5 -5
  237. package/docs/types/PanoCompassPluginExportType.html +5 -5
  238. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  239. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  240. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  241. package/docs/types/PanoIndex.html +5 -5
  242. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  243. package/docs/types/PanoMeasureReturnType.html +5 -5
  244. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  245. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  246. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  247. package/docs/types/PanoVideoPluginParameterType.html +5 -5
  248. package/docs/types/PanoVideoPluginReturnType.html +5 -5
  249. package/docs/types/PlaneTag.html +5 -5
  250. package/docs/types/PlaneTagElement.html +5 -5
  251. package/docs/types/Point2DElement.html +5 -5
  252. package/docs/types/Point2DTag.html +5 -5
  253. package/docs/types/Point3DElement.html +5 -5
  254. package/docs/types/Point3DTag.html +5 -5
  255. package/docs/types/PointTag.html +5 -5
  256. package/docs/types/PointTagElement.html +5 -5
  257. package/docs/types/Position.html +5 -5
  258. package/docs/types/RotateArgs.html +5 -5
  259. package/docs/types/RotateOpts.html +5 -5
  260. package/docs/types/RuleLabelsKey.html +5 -5
  261. package/docs/types/RuleLabelsValue.html +5 -5
  262. package/docs/types/StickType.html +5 -5
  263. package/docs/types/Tag.html +5 -5
  264. package/docs/types/Tag2D.html +5 -5
  265. package/docs/types/Tag3D.html +5 -5
  266. package/docs/types/TagContentType.html +5 -5
  267. package/docs/types/TagDimensionType.html +5 -5
  268. package/docs/types/TagElement.html +5 -5
  269. package/docs/types/TagEvents.html +5 -5
  270. package/docs/types/TagGLTFObject.html +5 -5
  271. package/docs/types/TagHooks.html +5 -5
  272. package/docs/types/TagIconSize.html +5 -5
  273. package/docs/types/TagId.html +5 -5
  274. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  275. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  276. package/docs/types/WorkCode.html +5 -5
  277. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  278. package/docs/variables/PLUGIN.html +5 -5
  279. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  280. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  281. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  282. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  283. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  284. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +53 -35
  285. package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +4 -1
  286. package/libs/GuideLinePlugin/utils/createLineGeometry.js +22 -24
  287. package/libs/base/BasePlugin.js +1 -1
  288. package/libs/index.js +1 -1
  289. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -599,21 +599,21 @@ const I1 = (i, t) => {
599
599
  const m = () => {
600
600
  if (n)
601
601
  return;
602
- h = C(i.model, c.fov, c.aspect), d = i.model.bounding.getCenter(new E.Vector3()), l.remove(u), u = H(i.model), l.add(u), n = !0, B();
602
+ h = I(i.model, c.fov, c.aspect), d = i.model.bounding.getCenter(new E.Vector3()), l.remove(u), u = H(i.model), l.add(u), n = !0, T();
603
603
  function Q(N) {
604
604
  const _ = N.clone();
605
605
  return _.uniforms.modelAlpha.value = 1, _.uniforms.map.value && (_.uniforms.map.value.needsUpdate = !0), _;
606
606
  }
607
607
  function H(N) {
608
608
  if (N instanceof E.Mesh) {
609
- const _ = N.geometry, ee = Array.isArray(N.material) ? N.material.map(Q) : Q(N.material);
610
- return new E.Mesh(_, ee);
609
+ const _ = N.geometry, $ = Array.isArray(N.material) ? N.material.map(Q) : Q(N.material);
610
+ return new E.Mesh(_, $);
611
611
  } else if (N instanceof E.Group) {
612
612
  const _ = new E.Group();
613
- return N.children.forEach((ee) => _.add(H(ee))), _;
613
+ return N.children.forEach(($) => _.add(H($))), _;
614
614
  } else {
615
615
  const _ = new E.Object3D();
616
- return N.children.forEach((ee) => _.add(H(ee))), _;
616
+ return N.children.forEach(($) => _.add(H($))), _;
617
617
  }
618
618
  }
619
619
  }, g = () => {
@@ -622,11 +622,11 @@ const I1 = (i, t) => {
622
622
  }, p = () => {
623
623
  u.traverse((Q) => {
624
624
  Q instanceof E.Mesh && [].concat(Q.material).forEach((N) => N.dispose());
625
- }), l.remove(u), u = new E.Object3D(), l.add(u), n = !1, B();
625
+ }), l.remove(u), u = new E.Object3D(), l.add(u), n = !1, T();
626
626
  }, A = () => {
627
627
  !e || n || m();
628
628
  }, v = () => {
629
- e || (e = !0, l.add(u), !n && i.model.loaded && m(), B());
629
+ e || (e = !0, l.add(u), !n && i.model.loaded && m(), T());
630
630
  }, b = () => {
631
631
  !e || (l.remove(u), o = !0, x(), e = !1);
632
632
  }, w = (Q, H = {}) => {
@@ -641,37 +641,37 @@ const I1 = (i, t) => {
641
641
  return;
642
642
  const N = s.domElement.parentNode;
643
643
  if (N != null && N.nodeName) {
644
- const { width: _ = N.offsetWidth, height: ee = N.offsetHeight } = Q;
645
- s.setSize(_, ee), c.aspect = _ / ee, c.updateProjectionMatrix();
644
+ const { width: _ = N.offsetWidth, height: $ = N.offsetHeight } = Q;
645
+ s.setSize(_, $), c.aspect = _ / $, c.updateProjectionMatrix();
646
646
  }
647
- B();
647
+ T();
648
648
  };
649
- function C(Q, H, N) {
650
- const _ = Q.bounding, ee = Math.pow(
649
+ function I(Q, H, N) {
650
+ const _ = Q.bounding, $ = Math.pow(
651
651
  Math.pow(_.max.x - _.min.x + 1, 2) + Math.pow(_.max.y - _.min.y + 1, 2) + Math.pow(_.max.z - _.min.z + 1, 2),
652
652
  1 / 2
653
653
  );
654
- let Y = ee / 2 / Math.tan(Math.PI * H / 360);
655
- return N < 1 && (Y = Y / N), isNaN(Y) ? ee : Y;
654
+ let Y = $ / 2 / Math.tan(Math.PI * H / 360);
655
+ return N < 1 && (Y = Y / N), isNaN(Y) ? $ : Y;
656
656
  }
657
- function I(Q) {
657
+ function C(Q) {
658
658
  return i.work.observers[Q].standingPosition.clone();
659
659
  }
660
- const B = () => {
660
+ const T = () => {
661
661
  if (!e || !h || !d)
662
662
  return;
663
663
  const Q = i.getPose();
664
- Q.fov = c.fov, Q.offset = d, Q.distance = h, typeof a.lockedLatitude == "number" && (Q.latitude = a.lockedLatitude), typeof a.lockedLongitude == "number" && (Q.longitude = a.lockedLongitude), typeof a.lockedPanoIndex == "number" && (Q.offset = I(a.lockedPanoIndex)), a.lookAtCurrentCamera && (Q.offset = i.camera.position.clone().setY(i.camera.position.y + 1)), c.setFromPose(Q), o = !0;
664
+ Q.fov = c.fov, Q.offset = d, Q.distance = h, typeof a.lockedLatitude == "number" && (Q.latitude = a.lockedLatitude), typeof a.lockedLongitude == "number" && (Q.longitude = a.lockedLongitude), typeof a.lockedPanoIndex == "number" && (Q.offset = C(a.lockedPanoIndex)), a.lookAtCurrentCamera && (Q.offset = i.camera.position.clone().setY(i.camera.position.y + 1)), c.setFromPose(Q), o = !0;
665
665
  }, x = () => {
666
666
  !e || o !== !0 || !s || !s.domElement.parentNode || s.domElement.parentNode.offsetWidth === 0 || (s.render(l, c), o = !1);
667
667
  }, F = () => {
668
668
  s && s.dispose(), s = null;
669
669
  }, W = (Q) => {
670
- Object.assign(a, Q), B();
670
+ Object.assign(a, Q), T();
671
671
  }, O = () => ({
672
672
  enabled: e
673
673
  });
674
- return Object.assign(window, { camera: c }), i.on("modelLoaded", A), i.on("modelWillLoad", p), i.on("cameraDirectionUpdate", B), i.on("dispose", F), i.on("renderFrame", x), i.on("cameraPositionUpdate", B), { appendTo: w, refresh: k, changeConfigs: W, enable: v, disable: b, getCurrentState: O };
674
+ return Object.assign(window, { camera: c }), i.on("modelLoaded", A), i.on("modelWillLoad", p), i.on("cameraDirectionUpdate", T), i.on("dispose", F), i.on("renderFrame", x), i.on("cameraPositionUpdate", T), { appendTo: w, refresh: k, changeConfigs: W, enable: v, disable: b, getCurrentState: O };
675
675
  };
676
676
  function pt(...i) {
677
677
  const t = [];
@@ -806,8 +806,8 @@ function Mn(...i) {
806
806
  const Sa = 1, qc = `CSS3DObjectPlus@${Sa}`, Jc = 216e-5, Zc = 3e-3;
807
807
  class Kc extends Ki {
808
808
  constructor(e) {
809
- var C, I, B;
810
- const n = e.container, o = e.cornerPoints, s = (C = e.ratio) != null ? C : Zc, r = (I = e.dpr) != null ? I : 1, a = (B = e.pointerEvents) != null ? B : "auto", l = Math.max(Jc, s), c = o[0].distanceTo(o[1]), u = o[1].distanceTo(o[2]), h = si(c / s * r), d = si(u / s * r), m = Mn(...o);
809
+ var I, C, T;
810
+ const n = e.container, o = e.cornerPoints, s = (I = e.ratio) != null ? I : Zc, r = (C = e.dpr) != null ? C : 1, a = (T = e.pointerEvents) != null ? T : "auto", l = Math.max(Jc, s), c = o[0].distanceTo(o[1]), u = o[1].distanceTo(o[2]), h = si(c / s * r), d = si(u / s * r), m = Mn(...o);
811
811
  let g;
812
812
  if (l === s)
813
813
  n.style.width = `${h}px`, n.style.height = `${d}px`, g = n;
@@ -1902,7 +1902,7 @@ function j(i, t) {
1902
1902
  function le(i, t, e) {
1903
1903
  const n = yo(i);
1904
1904
  if (!n.getElementById(t)) {
1905
- const o = z("style");
1905
+ const o = B("style");
1906
1906
  o.id = t, o.textContent = e, Ua(n, o);
1907
1907
  }
1908
1908
  }
@@ -1913,7 +1913,7 @@ function yo(i) {
1913
1913
  return t && t.host ? t : i.ownerDocument;
1914
1914
  }
1915
1915
  function ku(i) {
1916
- const t = z("style");
1916
+ const t = B("style");
1917
1917
  return Ua(yo(i), t), t.sheet;
1918
1918
  }
1919
1919
  function Ua(i, t) {
@@ -1929,7 +1929,7 @@ function dt(i, t) {
1929
1929
  for (let e = 0; e < i.length; e += 1)
1930
1930
  i[e] && i[e].d(t);
1931
1931
  }
1932
- function z(i) {
1932
+ function B(i) {
1933
1933
  return document.createElement(i);
1934
1934
  }
1935
1935
  function we(i) {
@@ -1938,7 +1938,7 @@ function we(i) {
1938
1938
  function ke(i) {
1939
1939
  return document.createTextNode(i);
1940
1940
  }
1941
- function $() {
1941
+ function ee() {
1942
1942
  return ke(" ");
1943
1943
  }
1944
1944
  function ge() {
@@ -1961,7 +1961,7 @@ function xu(i) {
1961
1961
  function Se(i, t) {
1962
1962
  t = "" + t, i.wholeText !== t && (i.data = t);
1963
1963
  }
1964
- function T(i, t, e, n) {
1964
+ function z(i, t, e, n) {
1965
1965
  e === null ? i.style.removeProperty(t) : i.style.setProperty(t, e, n ? "important" : "");
1966
1966
  }
1967
1967
  let Wn;
@@ -1978,7 +1978,7 @@ function Du() {
1978
1978
  }
1979
1979
  function wi(i, t) {
1980
1980
  getComputedStyle(i).position === "static" && (i.style.position = "relative");
1981
- const n = z("iframe");
1981
+ const n = B("iframe");
1982
1982
  n.setAttribute("style", "display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
1983
1983
  const o = Du();
1984
1984
  let s;
@@ -2005,7 +2005,7 @@ class ri {
2005
2005
  this.h(t);
2006
2006
  }
2007
2007
  m(t, e, n = null) {
2008
- this.e || (this.is_svg ? this.e = we(e.nodeName) : this.e = z(e.nodeName), this.t = e, this.c(t)), this.i(n);
2008
+ this.e || (this.is_svg ? this.e = we(e.nodeName) : this.e = B(e.nodeName), this.t = e, this.c(t)), this.i(n);
2009
2009
  }
2010
2010
  h(t) {
2011
2011
  this.e.innerHTML = t, this.n = Array.from(this.e.childNodes);
@@ -2296,24 +2296,24 @@ function $e(i, t, e, n, o, s, r, a, l, c, u, h) {
2296
2296
  p[i[g].key] = g;
2297
2297
  const A = [], v = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map();
2298
2298
  for (g = m; g--; ) {
2299
- const I = h(o, s, g), B = e(I);
2300
- let x = r.get(B);
2301
- x ? n && x.p(I, t) : (x = c(B, I), x.c()), v.set(B, A[g] = x), B in p && b.set(B, Math.abs(g - p[B]));
2299
+ const C = h(o, s, g), T = e(C);
2300
+ let x = r.get(T);
2301
+ x ? n && x.p(C, t) : (x = c(T, C), x.c()), v.set(T, A[g] = x), T in p && b.set(T, Math.abs(g - p[T]));
2302
2302
  }
2303
2303
  const w = /* @__PURE__ */ new Set(), k = /* @__PURE__ */ new Set();
2304
- function C(I) {
2305
- P(I, 1), I.m(a, u), r.set(I.key, I), u = I.first, m--;
2304
+ function I(C) {
2305
+ P(C, 1), C.m(a, u), r.set(C.key, C), u = C.first, m--;
2306
2306
  }
2307
2307
  for (; d && m; ) {
2308
- const I = A[m - 1], B = i[d - 1], x = I.key, F = B.key;
2309
- I === B ? (u = I.first, d--, m--) : v.has(F) ? !r.has(x) || w.has(x) ? C(I) : k.has(F) ? d-- : b.get(x) > b.get(F) ? (k.add(x), C(I)) : (w.add(F), d--) : (l(B, r), d--);
2308
+ const C = A[m - 1], T = i[d - 1], x = C.key, F = T.key;
2309
+ C === T ? (u = C.first, d--, m--) : v.has(F) ? !r.has(x) || w.has(x) ? I(C) : k.has(F) ? d-- : b.get(x) > b.get(F) ? (k.add(x), I(C)) : (w.add(F), d--) : (l(T, r), d--);
2310
2310
  }
2311
2311
  for (; d--; ) {
2312
- const I = i[d];
2313
- v.has(I.key) || l(I, r);
2312
+ const C = i[d];
2313
+ v.has(C.key) || l(C, r);
2314
2314
  }
2315
2315
  for (; m; )
2316
- C(A[m - 1]);
2316
+ I(A[m - 1]);
2317
2317
  return A;
2318
2318
  }
2319
2319
  function Fe(i, t) {
@@ -2420,13 +2420,13 @@ function Ou(i) {
2420
2420
  let t, e, n = i[0].name + "", o, s, r, a, l;
2421
2421
  return {
2422
2422
  c() {
2423
- t = z("div"), e = z("span"), o = ke(n), s = $(), r = z("div"), y(e, "class", "room-label-item__text svelte-1d7uzh5"), T(e, "background-image", "url(" + ju + ")"), U(e, "wide", i[0].name.length > 3), y(r, "class", "room-label-item__bar svelte-1d7uzh5"), y(t, "class", "room-label-item svelte-1d7uzh5"), T(t, "z-index", i[0].zIndex), T(t, "transform", i[0].transform), T(t, "opacity", i[0].visible ? 1 : 0);
2423
+ t = B("div"), e = B("span"), o = ke(n), s = ee(), r = B("div"), y(e, "class", "room-label-item__text svelte-1d7uzh5"), z(e, "background-image", "url(" + ju + ")"), U(e, "wide", i[0].name.length > 3), y(r, "class", "room-label-item__bar svelte-1d7uzh5"), y(t, "class", "room-label-item svelte-1d7uzh5"), z(t, "z-index", i[0].zIndex), z(t, "transform", i[0].transform), z(t, "opacity", i[0].visible ? 1 : 0);
2424
2424
  },
2425
2425
  m(c, u) {
2426
2426
  M(c, t, u), j(t, e), j(e, o), j(t, s), j(t, r), a || (l = me(e, "click", i[1]), a = !0);
2427
2427
  },
2428
2428
  p(c, [u]) {
2429
- u & 1 && n !== (n = c[0].name + "") && Se(o, n), u & 1 && U(e, "wide", c[0].name.length > 3), u & 1 && T(t, "z-index", c[0].zIndex), u & 1 && T(t, "transform", c[0].transform), u & 1 && T(t, "opacity", c[0].visible ? 1 : 0);
2429
+ u & 1 && n !== (n = c[0].name + "") && Se(o, n), u & 1 && U(e, "wide", c[0].name.length > 3), u & 1 && z(t, "z-index", c[0].zIndex), u & 1 && z(t, "transform", c[0].transform), u & 1 && z(t, "opacity", c[0].visible ? 1 : 0);
2430
2430
  },
2431
2431
  i: X,
2432
2432
  o: X,
@@ -2777,7 +2777,7 @@ function rd(i) {
2777
2777
  }
2778
2778
  return {
2779
2779
  c() {
2780
- t = z("div");
2780
+ t = B("div");
2781
2781
  for (let c = 0; c < e.length; c += 1)
2782
2782
  e[c].c();
2783
2783
  y(t, "class", "room-labels-container svelte-9eg4zi");
@@ -2821,27 +2821,27 @@ function ad(i, t, e) {
2821
2821
  function c(v) {
2822
2822
  if (!(l === null || v.floorIndex === l))
2823
2823
  return !1;
2824
- const w = new St(), k = o.camera.position.clone(), C = new q(v.position.x, v.position.y, v.position.z), I = C.distanceTo(k);
2825
- w.set(k.clone(), C.clone().sub(k).normalize());
2826
- const [B] = o.model.intersectRaycaster(w);
2827
- return !(B && B.distance + 1 < I);
2824
+ const w = new St(), k = o.camera.position.clone(), I = new q(v.position.x, v.position.y, v.position.z), C = I.distanceTo(k);
2825
+ w.set(k.clone(), I.clone().sub(k).normalize());
2826
+ const [T] = o.model.intersectRaycaster(w);
2827
+ return !(T && T.distance + 1 < C);
2828
2828
  }
2829
2829
  function u(v, b) {
2830
- const k = new q(v.position.x, v.position.y, v.position.z).clone().project(o.camera), C = Math.ceil((k.x + 1) / 2 * b.x), I = Math.ceil((-k.y + 1) / 2 * b.y);
2831
- return `translate(${C}px, ${I}px)`;
2830
+ const k = new q(v.position.x, v.position.y, v.position.z).clone().project(o.camera), I = Math.ceil((k.x + 1) / 2 * b.x), C = Math.ceil((-k.y + 1) / 2 * b.y);
2831
+ return `translate(${I}px, ${C}px)`;
2832
2832
  }
2833
2833
  function h(v) {
2834
2834
  const { rendererSize: b, shownFloor: w } = v, k = /* @__PURE__ */ new Map();
2835
- function C(B) {
2836
- const x = k.get(B.id);
2835
+ function I(T) {
2836
+ const x = k.get(T.id);
2837
2837
  if (x)
2838
2838
  return x;
2839
- const { x: F, y: W, z: O } = B.position, V = new q(F, W, O).clone().distanceTo(o.camera.position);
2840
- return k.set(B.id, V), V;
2839
+ const { x: F, y: W, z: O } = T.position, V = new q(F, W, O).clone().distanceTo(o.camera.position);
2840
+ return k.set(T.id, V), V;
2841
2841
  }
2842
- return s.map((B) => {
2843
- const x = c(B), F = x ? u(B, b) : B.transform, W = C(B), V = s.filter((S) => S.visible && C(S) < W).length * 10;
2844
- return fe(R({}, B), { visible: x, transform: F, zIndex: V });
2842
+ return s.map((T) => {
2843
+ const x = c(T), F = x ? u(T, b) : T.transform, W = I(T), V = s.filter((S) => S.visible && I(S) < W).length * 10;
2844
+ return fe(R({}, T), { visible: x, transform: F, zIndex: V });
2845
2845
  });
2846
2846
  }
2847
2847
  function d() {
@@ -3063,13 +3063,13 @@ function Ad(i) {
3063
3063
  let t, e;
3064
3064
  return {
3065
3065
  c() {
3066
- t = z("div"), e = z("div"), y(e, "class", "floorplan__camera-rotate svelte-17cl35n"), T(e, "background-image", `url(${i[0] || bt})`), T(e, "width", i[4]), T(e, "height", i[4]), T(e, "left", "-" + i[4]), T(e, "top", "-" + i[4]), T(e, "transform", `rotate(${i[3]}deg)`), T(e, "transform-origin", `${i[4]} ${i[4]}`), y(t, "class", "floorplan__camera-position svelte-17cl35n"), T(t, "left", i[1]), T(t, "top", i[2]);
3066
+ t = B("div"), e = B("div"), y(e, "class", "floorplan__camera-rotate svelte-17cl35n"), z(e, "background-image", `url(${i[0] || bt})`), z(e, "width", i[4]), z(e, "height", i[4]), z(e, "left", "-" + i[4]), z(e, "top", "-" + i[4]), z(e, "transform", `rotate(${i[3]}deg)`), z(e, "transform-origin", `${i[4]} ${i[4]}`), y(t, "class", "floorplan__camera-position svelte-17cl35n"), z(t, "left", i[1]), z(t, "top", i[2]);
3067
3067
  },
3068
3068
  m(n, o) {
3069
3069
  M(n, t, o), j(t, e);
3070
3070
  },
3071
3071
  p(n, [o]) {
3072
- o & 1 && T(e, "background-image", `url(${n[0] || bt})`);
3072
+ o & 1 && z(e, "background-image", `url(${n[0] || bt})`);
3073
3073
  },
3074
3074
  i: X,
3075
3075
  o: X,
@@ -3120,7 +3120,7 @@ function Cd(i) {
3120
3120
  let t, e, n, o, s;
3121
3121
  return {
3122
3122
  c() {
3123
- t = z("div"), e = z("div"), n = $(), o = z("span"), s = ke(i[0]), y(e, "class", "floorplan-plugin__compass-image svelte-rpkaro"), T(e, "background-image", `url(${yd})`), y(o, "class", "floorplan-plugin__compass-text svelte-rpkaro"), y(t, "class", "floorplan-plugin__compass svelte-rpkaro"), T(t, "transform", i[2]);
3123
+ t = B("div"), e = B("div"), n = ee(), o = B("span"), s = ke(i[0]), y(e, "class", "floorplan-plugin__compass-image svelte-rpkaro"), z(e, "background-image", `url(${yd})`), y(o, "class", "floorplan-plugin__compass-text svelte-rpkaro"), y(t, "class", "floorplan-plugin__compass svelte-rpkaro"), z(t, "transform", i[2]);
3124
3124
  },
3125
3125
  m(r, a) {
3126
3126
  M(r, t, a), j(t, e), j(t, n), j(t, o), j(o, s);
@@ -3202,7 +3202,7 @@ function Dd(i) {
3202
3202
  let t, e;
3203
3203
  return {
3204
3204
  c() {
3205
- t = z("img"), Ye(t.src, e = i[0]) || y(t, "src", e), y(t, "alt", "floorplan iamge"), y(t, "class", "svelte-1gfoniz");
3205
+ t = B("img"), Ye(t.src, e = i[0]) || y(t, "src", e), y(t, "alt", "floorplan iamge"), y(t, "class", "svelte-1gfoniz");
3206
3206
  },
3207
3207
  m(n, o) {
3208
3208
  M(n, t, o);
@@ -3235,7 +3235,7 @@ function Td(i) {
3235
3235
  let t, e, n, o;
3236
3236
  return {
3237
3237
  c() {
3238
- t = z("div"), e = new ri(!1), n = $(), o = new ri(!1), e.a = n, o.a = null, y(t, "class", "floorplan-plugin__base-image svelte-ub47ya");
3238
+ t = B("div"), e = new ri(!1), n = ee(), o = new ri(!1), e.a = n, o.a = null, y(t, "class", "floorplan-plugin__base-image svelte-ub47ya");
3239
3239
  },
3240
3240
  m(s, r) {
3241
3241
  M(s, t, r), e.m(i[1], t), j(t, n), o.m(i[0], t);
@@ -3332,7 +3332,7 @@ function Rd(i) {
3332
3332
  }
3333
3333
  return ~(e = a(i)) && (n = r[e] = s[e](i)), {
3334
3334
  c() {
3335
- t = z("div"), n && n.c(), y(t, "class", "floorplan-plugin__base-image svelte-ozpg4a");
3335
+ t = B("div"), n && n.c(), y(t, "class", "floorplan-plugin__base-image svelte-ozpg4a");
3336
3336
  },
3337
3337
  m(l, c) {
3338
3338
  M(l, t, c), ~e && r[e].m(t, null), o = !0;
@@ -3392,7 +3392,7 @@ function Gd(i) {
3392
3392
  let t, e, n = i[1] && ts(i), o = i[0] && ns(i);
3393
3393
  return {
3394
3394
  c() {
3395
- n && n.c(), t = $(), o && o.c(), e = ge();
3395
+ n && n.c(), t = ee(), o && o.c(), e = ge();
3396
3396
  },
3397
3397
  m(s, r) {
3398
3398
  n && n.m(s, r), M(s, t, r), o && o.m(s, r), M(s, e, r);
@@ -3409,7 +3409,7 @@ function ts(i) {
3409
3409
  let t, e = i[2].name + "", n;
3410
3410
  return {
3411
3411
  c() {
3412
- t = z("span"), n = ke(e), y(t, "class", "floorplan-plugin__room-name");
3412
+ t = B("span"), n = ke(e), y(t, "class", "floorplan-plugin__room-name");
3413
3413
  },
3414
3414
  m(o, s) {
3415
3415
  M(o, t, s), j(t, n);
@@ -3426,7 +3426,7 @@ function ns(i) {
3426
3426
  let t, e;
3427
3427
  return {
3428
3428
  c() {
3429
- t = z("span"), e = ke(i[7]), y(t, "class", "floorplan-plugin__room-size svelte-12pzct5");
3429
+ t = B("span"), e = ke(i[7]), y(t, "class", "floorplan-plugin__room-size svelte-12pzct5");
3430
3430
  },
3431
3431
  m(n, o) {
3432
3432
  M(n, t, o), j(t, e);
@@ -3450,7 +3450,7 @@ function _d(i) {
3450
3450
  let s = o(i), r = s && s(i);
3451
3451
  return {
3452
3452
  c() {
3453
- t = z("div"), r && r.c(), y(t, "class", "floorplan-plugin__room-label-item svelte-12pzct5"), T(t, "left", i[9]), T(t, "top", i[10]), T(t, "font-size", i[11]), T(t, "opacity", i[6] ? "1" : "0");
3453
+ t = B("div"), r && r.c(), y(t, "class", "floorplan-plugin__room-label-item svelte-12pzct5"), z(t, "left", i[9]), z(t, "top", i[10]), z(t, "font-size", i[11]), z(t, "opacity", i[6] ? "1" : "0");
3454
3454
  },
3455
3455
  m(a, l) {
3456
3456
  M(a, t, l), r && r.m(t, null), e || (n = [
@@ -3460,7 +3460,7 @@ function _d(i) {
3460
3460
  ], e = !0);
3461
3461
  },
3462
3462
  p(a, [l]) {
3463
- s === (s = o(a)) && r ? r.p(a, l) : (r && r.d(1), r = s && s(a), r && (r.c(), r.m(t, null))), l & 64 && T(t, "opacity", a[6] ? "1" : "0");
3463
+ s === (s = o(a)) && r ? r.p(a, l) : (r && r.d(1), r = s && s(a), r && (r.c(), r.m(t, null))), l & 64 && z(t, "opacity", a[6] ? "1" : "0");
3464
3464
  },
3465
3465
  i: X,
3466
3466
  o: X,
@@ -3483,7 +3483,7 @@ function Nd(i, t, e) {
3483
3483
  function A(V, S) {
3484
3484
  if (S.width === 0 || S.height === 0)
3485
3485
  return () => !1;
3486
- const Q = V.path.map(({ x: de, y: pe }) => [de, pe]), H = V.roomLabel.position, { x: N, y: _ } = H, { width: ee, height: Y } = S, ae = ee / 2, he = Y / 2;
3486
+ const Q = V.path.map(({ x: de, y: pe }) => [de, pe]), H = V.roomLabel.position, { x: N, y: _ } = H, { width: $, height: Y } = S, ae = $ / 2, he = Y / 2;
3487
3487
  return function(pe) {
3488
3488
  const Ee = N * pe, Ie = _ * pe, Me = Q.map(([Ae, Ce]) => [Ae * pe, Ce * pe]);
3489
3489
  return [
@@ -3494,33 +3494,33 @@ function Nd(i, t, e) {
3494
3494
  ].every((Ae) => Wd(Ae, Me));
3495
3495
  };
3496
3496
  }
3497
- const v = document.body.clientWidth, b = document.body.clientHeight, w = h.roomLabel, k = w.positionInImage.x * 100 + "%", C = w.positionInImage.y * 100 + "%", I = (v < 500 || b < 500 ? 10 : 14) + "px";
3498
- let B = 0, x = 0, F = !1;
3497
+ const v = document.body.clientWidth, b = document.body.clientHeight, w = h.roomLabel, k = w.positionInImage.x * 100 + "%", I = w.positionInImage.y * 100 + "%", C = (v < 500 || b < 500 ? 10 : 14) + "px";
3498
+ let T = 0, x = 0, F = !1;
3499
3499
  d.subscribe(function(S) {
3500
3500
  e(16, F = !!S && S.id === h.id);
3501
3501
  });
3502
3502
  const W = (V) => {
3503
- e(4, B = V.detail);
3503
+ e(4, T = V.detail);
3504
3504
  }, O = (V) => {
3505
3505
  e(5, x = V.detail);
3506
3506
  };
3507
3507
  return i.$$set = (V) => {
3508
3508
  "pxmm" in V && e(12, l = V.pxmm), "roomAreaEnable" in V && e(0, c = V.roomAreaEnable), "roomNameEnable" in V && e(1, u = V.roomNameEnable), "room" in V && e(2, h = V.room), "hoveredRoom" in V && e(13, d = V.hoveredRoom), "getRoomAreaText" in V && e(14, m = V.getRoomAreaText), "getLabelElement" in V && e(3, g = V.getLabelElement), "adaptiveRoomLabelVisibleEnable" in V && e(15, p = V.adaptiveRoomLabelVisibleEnable);
3509
3509
  }, i.$$.update = () => {
3510
- i.$$.dirty & 12 && e(8, n = g == null ? void 0 : g(h)), i.$$.dirty & 16388 && e(7, o = h.size ? m(h.size) : ""), i.$$.dirty & 48 && e(18, s = { width: B, height: x }), i.$$.dirty & 262148 && e(17, r = s ? A(h, s) : void 0), i.$$.dirty & 233472 && e(6, a = p ? F ? !0 : !!(r != null && r(l)) : !0);
3510
+ i.$$.dirty & 12 && e(8, n = g == null ? void 0 : g(h)), i.$$.dirty & 16388 && e(7, o = h.size ? m(h.size) : ""), i.$$.dirty & 48 && e(18, s = { width: T, height: x }), i.$$.dirty & 262148 && e(17, r = s ? A(h, s) : void 0), i.$$.dirty & 233472 && e(6, a = p ? F ? !0 : !!(r != null && r(l)) : !0);
3511
3511
  }, [
3512
3512
  c,
3513
3513
  u,
3514
3514
  h,
3515
3515
  g,
3516
- B,
3516
+ T,
3517
3517
  x,
3518
3518
  a,
3519
3519
  o,
3520
3520
  n,
3521
3521
  k,
3522
- C,
3523
3522
  I,
3523
+ C,
3524
3524
  l,
3525
3525
  d,
3526
3526
  m,
@@ -3570,7 +3570,7 @@ function os(i) {
3570
3570
  }
3571
3571
  return {
3572
3572
  c() {
3573
- t = z("div");
3573
+ t = B("div");
3574
3574
  for (let c = 0; c < e.length; c += 1)
3575
3575
  e[c].c();
3576
3576
  y(t, "class", "floorplan-plugin__room-labels svelte-13xux0b");
@@ -3749,7 +3749,7 @@ function ls(i) {
3749
3749
  let t;
3750
3750
  return {
3751
3751
  c() {
3752
- t = z("div"), y(t, "class", "floorplan-plugin__rule-scale svelte-djlmk4"), T(t, "left", i[14].left * 100 + "%"), T(t, "bottom", i[14].bottom * 100 + "%");
3752
+ t = B("div"), y(t, "class", "floorplan-plugin__rule-scale svelte-djlmk4"), z(t, "left", i[14].left * 100 + "%"), z(t, "bottom", i[14].bottom * 100 + "%");
3753
3753
  },
3754
3754
  m(e, n) {
3755
3755
  M(e, t, n);
@@ -3766,7 +3766,7 @@ function cs(i, t) {
3766
3766
  key: i,
3767
3767
  first: null,
3768
3768
  c() {
3769
- e = z("div"), n = z("div"), s = ke(o), r = $(), y(n, "class", "floorplan-plugin__rule-text svelte-djlmk4"), U(n, "is-row", t[2]), y(e, "class", "floorplan-plugin__rule-text-item svelte-djlmk4"), T(e, "left", t[11].left * 100 + "%"), T(e, "bottom", t[11].bottom * 100 + "%"), this.first = e;
3769
+ e = B("div"), n = B("div"), s = ke(o), r = ee(), y(n, "class", "floorplan-plugin__rule-text svelte-djlmk4"), U(n, "is-row", t[2]), y(e, "class", "floorplan-plugin__rule-text-item svelte-djlmk4"), z(e, "left", t[11].left * 100 + "%"), z(e, "bottom", t[11].bottom * 100 + "%"), this.first = e;
3770
3770
  },
3771
3771
  m(a, l) {
3772
3772
  M(a, e, l), j(e, n), j(n, s), j(e, r);
@@ -3791,13 +3791,13 @@ function Kd(i) {
3791
3791
  }
3792
3792
  return {
3793
3793
  c() {
3794
- t = z("div"), e = z("div"), n = $(), o = z("div");
3794
+ t = B("div"), e = B("div"), n = ee(), o = B("div");
3795
3795
  for (let g = 0; g < h.length; g += 1)
3796
3796
  h[g].c();
3797
- s = $(), r = z("div");
3797
+ s = ee(), r = B("div");
3798
3798
  for (let g = 0; g < a.length; g += 1)
3799
3799
  a[g].c();
3800
- y(e, "class", "floorplan-plugin__rule-line svelte-djlmk4"), y(o, "class", "floorplan-plugin__rule-scale-wrapper svelte-djlmk4"), U(o, "is-row", i[2]), y(r, "class", "floorplan-plugin__rule-text-wrapper svelte-djlmk4"), y(t, "class", c = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + i[0] + " svelte-djlmk4"), U(t, "is-row", i[2]), T(t, "width", i[2] ? "100%" : 1 / 16 + "rem"), T(t, "height", i[2] ? 1 / 16 + "rem" : "100%");
3800
+ y(e, "class", "floorplan-plugin__rule-line svelte-djlmk4"), y(o, "class", "floorplan-plugin__rule-scale-wrapper svelte-djlmk4"), U(o, "is-row", i[2]), y(r, "class", "floorplan-plugin__rule-text-wrapper svelte-djlmk4"), y(t, "class", c = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + i[0] + " svelte-djlmk4"), U(t, "is-row", i[2]), z(t, "width", i[2] ? "100%" : 1 / 16 + "rem"), z(t, "height", i[2] ? 1 / 16 + "rem" : "100%");
3801
3801
  },
3802
3802
  m(g, p) {
3803
3803
  M(g, t, p), j(t, e), j(t, n), j(t, o);
@@ -3925,10 +3925,10 @@ function nh(i) {
3925
3925
  }
3926
3926
  return {
3927
3927
  c() {
3928
- t = z("div");
3928
+ t = B("div");
3929
3929
  for (let a = 0; a < e.length; a += 1)
3930
3930
  e[a].c();
3931
- y(t, "class", "floorplan-plugin__rule-labels-wrapper svelte-1mzj9p3"), T(t, "width", i[3]), T(t, "height", i[2]);
3931
+ y(t, "class", "floorplan-plugin__rule-labels-wrapper svelte-1mzj9p3"), z(t, "width", i[3]), z(t, "height", i[2]);
3932
3932
  },
3933
3933
  m(a, l) {
3934
3934
  M(a, t, l);
@@ -3937,7 +3937,7 @@ function nh(i) {
3937
3937
  o = !0;
3938
3938
  },
3939
3939
  p(a, [l]) {
3940
- l & 19 && (s = a[4], se(), e = $e(e, l, r, 1, a, s, n, t, Pt, ds, null, us), re()), l & 8 && T(t, "width", a[3]), l & 4 && T(t, "height", a[2]);
3940
+ l & 19 && (s = a[4], se(), e = $e(e, l, r, 1, a, s, n, t, Pt, ds, null, us), re()), l & 8 && z(t, "width", a[3]), l & 4 && z(t, "height", a[2]);
3941
3941
  },
3942
3942
  i(a) {
3943
3943
  if (!o) {
@@ -4062,7 +4062,7 @@ function dh(i) {
4062
4062
  let t, e, n, o, s, r;
4063
4063
  return {
4064
4064
  c() {
4065
- t = we("defs"), e = we("pattern"), n = we("rect"), o = we("path"), s = $(), r = we("path"), y(n, "x", "0"), y(n, "y", "0"), y(n, "width", i[1]), y(n, "height", i[1]), y(n, "fill", "#323747"), y(o, "d", i[2]), y(o, "stroke", "#ffffff"), y(o, "stroke-opacity", "0.06"), y(o, "stroke-width", "0.5"), y(o, "fill", "none"), y(e, "id", "fpm-room-pattern-0"), y(e, "x", "0"), y(e, "y", "0"), y(e, "width", i[1]), y(e, "height", i[1]), y(e, "patternUnits", "userSpaceOnUse"), y(e, "patternTransform", "scale(50 50)"), y(r, "d", i[0]), y(r, "fill", "url(#fpm-room-pattern-0)");
4065
+ t = we("defs"), e = we("pattern"), n = we("rect"), o = we("path"), s = ee(), r = we("path"), y(n, "x", "0"), y(n, "y", "0"), y(n, "width", i[1]), y(n, "height", i[1]), y(n, "fill", "#323747"), y(o, "d", i[2]), y(o, "stroke", "#ffffff"), y(o, "stroke-opacity", "0.06"), y(o, "stroke-width", "0.5"), y(o, "fill", "none"), y(e, "id", "fpm-room-pattern-0"), y(e, "x", "0"), y(e, "y", "0"), y(e, "width", i[1]), y(e, "height", i[1]), y(e, "patternUnits", "userSpaceOnUse"), y(e, "patternTransform", "scale(50 50)"), y(r, "d", i[0]), y(r, "fill", "url(#fpm-room-pattern-0)");
4066
4066
  },
4067
4067
  m(a, l) {
4068
4068
  M(a, t, l), j(t, e), j(e, n), j(e, o), M(a, s, l), M(a, r, l);
@@ -4096,7 +4096,7 @@ function mh(i) {
4096
4096
  let t, e, n, o, s, r, a, l, c, u, h;
4097
4097
  return {
4098
4098
  c() {
4099
- t = we("defs"), e = we("pattern"), n = we("rect"), o = we("pattern"), s = we("rect"), r = $(), a = we("path"), l = $(), c = we("path"), u = $(), h = we("path"), y(n, "x", "0"), y(n, "y", "0"), y(n, "width", "6"), y(n, "height", "50"), y(n, "fill", "none"), y(n, "stroke", "#4B4B57"), y(n, "stroke-width", "0.5"), y(e, "id", "room-material-pattern-1"), y(e, "x", "0"), y(e, "y", "0"), y(e, "width", "12"), y(e, "height", "50"), y(e, "patternUnits", "userSpaceOnUse"), y(e, "patternTransform", "scale(50 50)"), y(s, "x", "0"), y(s, "y", "0"), y(s, "width", "6"), y(s, "height", "50"), y(s, "fill", "none"), y(s, "stroke", "#4B4B57"), y(s, "stroke-width", "0.5"), y(o, "id", "room-material-pattern-2"), y(o, "x", "6"), y(o, "y", "25"), y(o, "width", "12"), y(o, "height", "50"), y(o, "patternUnits", "userSpaceOnUse"), y(o, "patternTransform", "scale(50 50)"), y(a, "d", i[0]), y(a, "fill", "#43434D"), y(c, "d", i[0]), y(c, "fill", "url(#room-material-pattern-1)"), y(h, "d", i[0]), y(h, "fill", "url(#room-material-pattern-2)");
4099
+ t = we("defs"), e = we("pattern"), n = we("rect"), o = we("pattern"), s = we("rect"), r = ee(), a = we("path"), l = ee(), c = we("path"), u = ee(), h = we("path"), y(n, "x", "0"), y(n, "y", "0"), y(n, "width", "6"), y(n, "height", "50"), y(n, "fill", "none"), y(n, "stroke", "#4B4B57"), y(n, "stroke-width", "0.5"), y(e, "id", "room-material-pattern-1"), y(e, "x", "0"), y(e, "y", "0"), y(e, "width", "12"), y(e, "height", "50"), y(e, "patternUnits", "userSpaceOnUse"), y(e, "patternTransform", "scale(50 50)"), y(s, "x", "0"), y(s, "y", "0"), y(s, "width", "6"), y(s, "height", "50"), y(s, "fill", "none"), y(s, "stroke", "#4B4B57"), y(s, "stroke-width", "0.5"), y(o, "id", "room-material-pattern-2"), y(o, "x", "6"), y(o, "y", "25"), y(o, "width", "12"), y(o, "height", "50"), y(o, "patternUnits", "userSpaceOnUse"), y(o, "patternTransform", "scale(50 50)"), y(a, "d", i[0]), y(a, "fill", "#43434D"), y(c, "d", i[0]), y(c, "fill", "url(#room-material-pattern-1)"), y(h, "d", i[0]), y(h, "fill", "url(#room-material-pattern-2)");
4100
4100
  },
4101
4101
  m(d, m) {
4102
4102
  M(d, t, m), j(t, e), j(e, n), j(t, o), j(o, s), M(d, r, m), M(d, a, m), M(d, l, m), M(d, c, m), M(d, u, m), M(d, h, m);
@@ -4242,7 +4242,7 @@ function wh(i) {
4242
4242
  });
4243
4243
  return {
4244
4244
  c() {
4245
- t = z("div");
4245
+ t = B("div");
4246
4246
  for (let r = 0; r < o.length; r += 1)
4247
4247
  o[r].c();
4248
4248
  y(t, "class", "floorplan-plugin__room-material svelte-1dykexu");
@@ -4436,7 +4436,7 @@ function Lh(i) {
4436
4436
  }
4437
4437
  return {
4438
4438
  c() {
4439
- t = z("div"), e = we("svg");
4439
+ t = B("div"), e = we("svg");
4440
4440
  for (let l = 0; l < n.length; l += 1)
4441
4441
  n[l].c();
4442
4442
  y(e, "width", "100%"), y(e, "height", "100%"), y(e, "viewBox", `0 0 ${i[4]} ${i[5]}`), y(e, "class", "svelte-1kqo6e4"), y(t, "class", "floorplan-plugin__room-highlight svelte-1kqo6e4");
@@ -4662,7 +4662,7 @@ function Th(i) {
4662
4662
  let p = i[4] && bs(i), A = i[7] && ys(i);
4663
4663
  return {
4664
4664
  c() {
4665
- t = z("div"), K(e.$$.fragment), n = $(), d && d.c(), o = $(), K(s.$$.fragment), r = $(), p && p.c(), a = $(), A && A.c(), y(t, "class", l = Pe(`floorplan-plugin__floor${i[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz");
4665
+ t = B("div"), K(e.$$.fragment), n = ee(), d && d.c(), o = ee(), K(s.$$.fragment), r = ee(), p && p.c(), a = ee(), A && A.c(), y(t, "class", l = Pe(`floorplan-plugin__floor${i[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz");
4666
4666
  },
4667
4667
  m(v, b) {
4668
4668
  M(v, t, b), J(e, t, null), j(t, n), d && d.m(t, null), j(t, o), J(s, t, null), j(t, r), p && p.m(t, null), j(t, a), A && A.m(t, null), c = !0;
@@ -4768,10 +4768,10 @@ function Cs(i) {
4768
4768
  let c = i[5] && Ps(i), u = i[8] && Is(i);
4769
4769
  return {
4770
4770
  c() {
4771
- t = z("div");
4771
+ t = B("div");
4772
4772
  for (let h = 0; h < a.length; h += 1)
4773
4773
  a[h].c();
4774
- e = $(), c && c.c(), n = $(), u && u.c(), y(t, "class", "floorplan-main svelte-86bqav");
4774
+ e = ee(), c && c.c(), n = ee(), u && u.c(), y(t, "class", "floorplan-main svelte-86bqav");
4775
4775
  },
4776
4776
  m(h, d) {
4777
4777
  M(h, t, d);
@@ -4987,9 +4987,9 @@ function Vh(i) {
4987
4987
  };
4988
4988
  }
4989
4989
  function Oh(i, t, e) {
4990
- let { duration: n = 0 } = t, { visible: o } = t, { northDesc: s } = t, { panoIndex: r } = t, { floorIndex: a } = t, { cameraEnable: l } = t, { hoverEnable: c } = t, { highlightEnable: u } = t, { compassEnable: h } = t, { roomLabelsEnable: d } = t, { roomAreaEnable: m } = t, { roomNameEnable: g } = t, { ruleLabelsEnable: p } = t, { floorplanData: A } = t, { lastPanoramaLongitude: v } = t, { cameraImageUrl: b } = t, { getRoomAreaText: w } = t, { getLabelElement: k } = t, { getRuleDistanceText: C } = t, { adaptiveRoomLabelVisibleEnable: I } = t, { highlightData: B } = t;
4990
+ let { duration: n = 0 } = t, { visible: o } = t, { northDesc: s } = t, { panoIndex: r } = t, { floorIndex: a } = t, { cameraEnable: l } = t, { hoverEnable: c } = t, { highlightEnable: u } = t, { compassEnable: h } = t, { roomLabelsEnable: d } = t, { roomAreaEnable: m } = t, { roomNameEnable: g } = t, { ruleLabelsEnable: p } = t, { floorplanData: A } = t, { lastPanoramaLongitude: v } = t, { cameraImageUrl: b } = t, { getRoomAreaText: w } = t, { getLabelElement: k } = t, { getRuleDistanceText: I } = t, { adaptiveRoomLabelVisibleEnable: C } = t, { highlightData: T } = t;
4991
4991
  return i.$$set = (x) => {
4992
- "duration" in x && e(0, n = x.duration), "visible" in x && e(1, o = x.visible), "northDesc" in x && e(2, s = x.northDesc), "panoIndex" in x && e(3, r = x.panoIndex), "floorIndex" in x && e(4, a = x.floorIndex), "cameraEnable" in x && e(5, l = x.cameraEnable), "hoverEnable" in x && e(6, c = x.hoverEnable), "highlightEnable" in x && e(7, u = x.highlightEnable), "compassEnable" in x && e(8, h = x.compassEnable), "roomLabelsEnable" in x && e(9, d = x.roomLabelsEnable), "roomAreaEnable" in x && e(10, m = x.roomAreaEnable), "roomNameEnable" in x && e(11, g = x.roomNameEnable), "ruleLabelsEnable" in x && e(12, p = x.ruleLabelsEnable), "floorplanData" in x && e(13, A = x.floorplanData), "lastPanoramaLongitude" in x && e(14, v = x.lastPanoramaLongitude), "cameraImageUrl" in x && e(15, b = x.cameraImageUrl), "getRoomAreaText" in x && e(16, w = x.getRoomAreaText), "getLabelElement" in x && e(17, k = x.getLabelElement), "getRuleDistanceText" in x && e(18, C = x.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in x && e(19, I = x.adaptiveRoomLabelVisibleEnable), "highlightData" in x && e(20, B = x.highlightData);
4992
+ "duration" in x && e(0, n = x.duration), "visible" in x && e(1, o = x.visible), "northDesc" in x && e(2, s = x.northDesc), "panoIndex" in x && e(3, r = x.panoIndex), "floorIndex" in x && e(4, a = x.floorIndex), "cameraEnable" in x && e(5, l = x.cameraEnable), "hoverEnable" in x && e(6, c = x.hoverEnable), "highlightEnable" in x && e(7, u = x.highlightEnable), "compassEnable" in x && e(8, h = x.compassEnable), "roomLabelsEnable" in x && e(9, d = x.roomLabelsEnable), "roomAreaEnable" in x && e(10, m = x.roomAreaEnable), "roomNameEnable" in x && e(11, g = x.roomNameEnable), "ruleLabelsEnable" in x && e(12, p = x.ruleLabelsEnable), "floorplanData" in x && e(13, A = x.floorplanData), "lastPanoramaLongitude" in x && e(14, v = x.lastPanoramaLongitude), "cameraImageUrl" in x && e(15, b = x.cameraImageUrl), "getRoomAreaText" in x && e(16, w = x.getRoomAreaText), "getLabelElement" in x && e(17, k = x.getLabelElement), "getRuleDistanceText" in x && e(18, I = x.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in x && e(19, C = x.adaptiveRoomLabelVisibleEnable), "highlightData" in x && e(20, T = x.highlightData);
4993
4993
  }, [
4994
4994
  n,
4995
4995
  o,
@@ -5009,9 +5009,9 @@ function Oh(i, t, e) {
5009
5009
  b,
5010
5010
  w,
5011
5011
  k,
5012
- C,
5013
5012
  I,
5014
- B
5013
+ C,
5014
+ T
5015
5015
  ];
5016
5016
  }
5017
5017
  class Io extends oe {
@@ -5157,7 +5157,7 @@ function xo(i, t, e, n) {
5157
5157
  }
5158
5158
  class Bn {
5159
5159
  constructor(t, e) {
5160
- f(this, "VERSION", "2.16.0-3");
5160
+ f(this, "VERSION", "2.16.0-4");
5161
5161
  f(this, "five");
5162
5162
  f(this, "hooks", new Jt());
5163
5163
  f(this, "staticPrefix", "//vrlab-static.ljcdn.com");
@@ -6067,13 +6067,13 @@ function tf(i) {
6067
6067
  let t, e, n;
6068
6068
  return {
6069
6069
  c() {
6070
- t = z("div"), e = z("div"), n = z("div"), y(n, "class", "plugin-radar__camera-rotate svelte-1nqrlxd"), T(n, "background-image", "url(" + (i[0] || bt) + ")"), T(n, "transform", i[1]), y(e, "class", "plugin-radar__camera-position svelte-1nqrlxd"), T(e, "transform", i[2]), y(t, "class", "plugin-radar__camera-wrapper svelte-1nqrlxd");
6070
+ t = B("div"), e = B("div"), n = B("div"), y(n, "class", "plugin-radar__camera-rotate svelte-1nqrlxd"), z(n, "background-image", "url(" + (i[0] || bt) + ")"), z(n, "transform", i[1]), y(e, "class", "plugin-radar__camera-position svelte-1nqrlxd"), z(e, "transform", i[2]), y(t, "class", "plugin-radar__camera-wrapper svelte-1nqrlxd");
6071
6071
  },
6072
6072
  m(o, s) {
6073
6073
  M(o, t, s), j(t, e), j(e, n);
6074
6074
  },
6075
6075
  p(o, [s]) {
6076
- s & 1 && T(n, "background-image", "url(" + (o[0] || bt) + ")"), s & 2 && T(n, "transform", o[1]), s & 4 && T(e, "transform", o[2]);
6076
+ s & 1 && z(n, "background-image", "url(" + (o[0] || bt) + ")"), s & 2 && z(n, "transform", o[1]), s & 4 && z(e, "transform", o[2]);
6077
6077
  },
6078
6078
  i: X,
6079
6079
  o: X,
@@ -6091,8 +6091,8 @@ function of(i, t, e) {
6091
6091
  const A = g.bounding, v = g.observers[p];
6092
6092
  if (!v)
6093
6093
  return "";
6094
- const b = (A.max.x - A.min.x) * r, w = (A.max.y - A.min.y) * r, k = Math.floor(v.positionInImage.x * b), C = Math.floor(v.positionInImage.y * w);
6095
- return `translate(${k}px, ${C}px)`;
6094
+ const b = (A.max.x - A.min.x) * r, w = (A.max.y - A.min.y) * r, k = Math.floor(v.positionInImage.x * b), I = Math.floor(v.positionInImage.y * w);
6095
+ return `translate(${k}px, ${I}px)`;
6096
6096
  }
6097
6097
  function d(g) {
6098
6098
  e(6, c = g);
@@ -6151,13 +6151,13 @@ function Ds(i, t) {
6151
6151
  key: i,
6152
6152
  first: null,
6153
6153
  c() {
6154
- e = z("div"), n = z("div"), r = $(), y(n, "class", "plugin-pano-floorplan__extra-object-item svelte-1i87fz7"), T(n, "background-image", `url(${t[1].icon.url})`), T(n, "width", o), T(n, "height", s), y(e, "class", "plugin-pano-floorplan__extra-object-item--position svelte-1i87fz7"), T(e, "top", a), T(e, "left", l), this.first = e;
6154
+ e = B("div"), n = B("div"), r = ee(), y(n, "class", "plugin-pano-floorplan__extra-object-item svelte-1i87fz7"), z(n, "background-image", `url(${t[1].icon.url})`), z(n, "width", o), z(n, "height", s), y(e, "class", "plugin-pano-floorplan__extra-object-item--position svelte-1i87fz7"), z(e, "top", a), z(e, "left", l), this.first = e;
6155
6155
  },
6156
6156
  m(c, u) {
6157
6157
  M(c, e, u), j(e, n), j(e, r);
6158
6158
  },
6159
6159
  p(c, u) {
6160
- t = c, u & 1 && T(n, "background-image", `url(${t[1].icon.url})`), u & 1 && o !== (o = `${t[1].icon.width / 16}rem`) && T(n, "width", o), u & 1 && s !== (s = `${t[1].icon.height / 16}rem`) && T(n, "height", s), u & 1 && a !== (a = `${t[1].positionInImage.y * 100}%`) && T(e, "top", a), u & 1 && l !== (l = `${t[1].positionInImage.x * 100}%`) && T(e, "left", l);
6160
+ t = c, u & 1 && z(n, "background-image", `url(${t[1].icon.url})`), u & 1 && o !== (o = `${t[1].icon.width / 16}rem`) && z(n, "width", o), u & 1 && s !== (s = `${t[1].icon.height / 16}rem`) && z(n, "height", s), u & 1 && a !== (a = `${t[1].positionInImage.y * 100}%`) && z(e, "top", a), u & 1 && l !== (l = `${t[1].positionInImage.x * 100}%`) && z(e, "left", l);
6161
6161
  },
6162
6162
  d(c) {
6163
6163
  c && L(e);
@@ -6173,7 +6173,7 @@ function af(i) {
6173
6173
  }
6174
6174
  return {
6175
6175
  c() {
6176
- t = z("div");
6176
+ t = B("div");
6177
6177
  for (let r = 0; r < e.length; r += 1)
6178
6178
  e[r].c();
6179
6179
  y(t, "class", "plugin-pano-floorplan__extra-objects svelte-1i87fz7");
@@ -6271,7 +6271,7 @@ function uf(i) {
6271
6271
  let c = i[3] && Ls(i);
6272
6272
  return {
6273
6273
  c() {
6274
- K(t.$$.fragment), e = $(), K(n.$$.fragment), o = $(), c && c.c(), s = ge();
6274
+ K(t.$$.fragment), e = ee(), K(n.$$.fragment), o = ee(), c && c.c(), s = ge();
6275
6275
  },
6276
6276
  m(u, h) {
6277
6277
  J(t, u, h), M(u, e, h), J(n, u, h), M(u, o, h), c && c.m(u, h), M(u, s, h), r = !0;
@@ -6339,7 +6339,7 @@ function Ss(i) {
6339
6339
  let t, e, n, o, s = i[7] !== 0 && Ms(i);
6340
6340
  return {
6341
6341
  c() {
6342
- t = z("div"), s && s.c(), y(t, "class", "plugin-floorplan-radar svelte-1mvqyqq");
6342
+ t = B("div"), s && s.c(), y(t, "class", "plugin-floorplan-radar svelte-1mvqyqq");
6343
6343
  },
6344
6344
  m(r, a) {
6345
6345
  M(r, t, a), s && s.m(t, null), e = !0, n || (o = [
@@ -6394,7 +6394,7 @@ function Ms(i) {
6394
6394
  h = ze(h, u[d]);
6395
6395
  return o = new sf({ props: h }), {
6396
6396
  c() {
6397
- t = z("div"), K(e.$$.fragment), n = $(), K(o.$$.fragment), y(t, "class", "plugin-floorplan-radar-container svelte-1mvqyqq"), T(t, "width", s), T(t, "height", r);
6397
+ t = B("div"), K(e.$$.fragment), n = ee(), K(o.$$.fragment), y(t, "class", "plugin-floorplan-radar-container svelte-1mvqyqq"), z(t, "width", s), z(t, "height", r);
6398
6398
  },
6399
6399
  m(d, m) {
6400
6400
  M(d, t, m), J(e, t, null), j(t, n), J(o, t, null), a = !0;
@@ -6420,7 +6420,7 @@ function Ms(i) {
6420
6420
  cameraImageUrl: d[4]
6421
6421
  }
6422
6422
  ]) : {};
6423
- o.$set(p), m & 512 && s !== (s = `${d[9]}px`) && T(t, "width", s), m & 4096 && r !== (r = `${d[12]}px`) && T(t, "height", r);
6423
+ o.$set(p), m & 512 && s !== (s = `${d[9]}px`) && z(t, "width", s), m & 4096 && r !== (r = `${d[12]}px`) && z(t, "height", r);
6424
6424
  },
6425
6425
  i(d) {
6426
6426
  a || (P(e.$$.fragment, d), P(o.$$.fragment, d), a = !0);
@@ -6461,23 +6461,23 @@ function mf(i) {
6461
6461
  function gf(i, t, e) {
6462
6462
  var w, k;
6463
6463
  let { five: n } = t, { visible: o } = t, { hoverEnable: s } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, { highlightData: c } = t, u = 0, h = (k = (w = n.work.observers[n.getCurrentState().panoIndex]) == null ? void 0 : w.floorIndex) != null ? k : 0, d = 0, m = 0, g = 0, p = 0;
6464
- function A(C) {
6465
- e(11, h = n.work.observers[C].floorIndex);
6464
+ function A(I) {
6465
+ e(11, h = n.work.observers[I].floorIndex);
6466
6466
  }
6467
6467
  Ke(() => (n.on("panoArrived", A), () => {
6468
6468
  n.off("panoArrived", A);
6469
6469
  }));
6470
- const v = (C) => {
6471
- e(7, d = C.detail);
6472
- }, b = (C) => {
6473
- e(8, m = C.detail);
6470
+ const v = (I) => {
6471
+ e(7, d = I.detail);
6472
+ }, b = (I) => {
6473
+ e(8, m = I.detail);
6474
6474
  };
6475
- return i.$$set = (C) => {
6476
- "five" in C && e(0, n = C.five), "visible" in C && e(1, o = C.visible), "hoverEnable" in C && e(2, s = C.hoverEnable), "floorplanData" in C && e(3, r = C.floorplanData), "cameraImageUrl" in C && e(4, a = C.cameraImageUrl), "extraObjects" in C && e(5, l = C.extraObjects), "highlightData" in C && e(6, c = C.highlightData);
6475
+ return i.$$set = (I) => {
6476
+ "five" in I && e(0, n = I.five), "visible" in I && e(1, o = I.visible), "hoverEnable" in I && e(2, s = I.hoverEnable), "floorplanData" in I && e(3, r = I.floorplanData), "cameraImageUrl" in I && e(4, a = I.cameraImageUrl), "extraObjects" in I && e(5, l = I.extraObjects), "highlightData" in I && e(6, c = I.highlightData);
6477
6477
  }, i.$$.update = () => {
6478
6478
  if (i.$$.dirty & 904) {
6479
- const C = Math.min(d, m), { max: I, min: B } = r.bounding, x = I.x - B.x, F = I.y - B.y, W = function() {
6480
- return x > F ? [C, C / x * F] : [C / F * x, C];
6479
+ const I = Math.min(d, m), { max: C, min: T } = r.bounding, x = C.x - T.x, F = C.y - T.y, W = function() {
6480
+ return x > F ? [I, I / x * F] : [I / F * x, I];
6481
6481
  }();
6482
6482
  e(9, g = W[0]), e(12, p = W[1]), e(10, u = g / x);
6483
6483
  }
@@ -6790,13 +6790,13 @@ const O1 = (i, t) => {
6790
6790
  const k = [0, m - Math.PI / 2, 0], {
6791
6791
  model: {
6792
6792
  bounding: {
6793
- max: { x: C, z: I },
6794
- min: { x: B, y: x, z: F }
6793
+ max: { x: I, z: C },
6794
+ min: { x: T, y: x, z: F }
6795
6795
  }
6796
6796
  }
6797
6797
  } = i;
6798
6798
  o.yBase = x;
6799
- const W = { x: (C + B) / 2, y: x - 1.6, z: (I + F) / 2 }, O = 45e-4 * v;
6799
+ const W = { x: (I + T) / 2, y: x - 1.6, z: (C + F) / 2 }, O = 45e-4 * v;
6800
6800
  return vf(w, { position: W, rotation: k, scale: O }), o.object = w, !0;
6801
6801
  }), r = ({ latitude: h }) => {
6802
6802
  if (!o.object)
@@ -6835,16 +6835,16 @@ const yf = ({ x: i, y: t, z: e }) => new q(i, t, e), R1 = (i, t) => {
6835
6835
  const w = (W = b == null ? void 0 : b.position) != null ? W : o;
6836
6836
  if (!w)
6837
6837
  return Promise.reject(new Error("ModelEntryDoorGuidePlugin.load(): position is undefined"));
6838
- const k = yf(w), C = (O = b == null ? void 0 : b.rad) != null ? O : s, I = (V = b == null ? void 0 : b.fbx_url) != null ? V : r;
6839
- if (e.rad = C, C === void 0)
6840
- return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): rad is ${C}`));
6841
- const B = yield new Da().loadAsync(I);
6842
- B.position.copy(k), B.rotation.z = C, B.scale.set(0.8, 0.8, 0.8), wl(B, { transparent: !0, side: E.DoubleSide });
6843
- const x = (N = (H = (Q = (S = B.children) == null ? void 0 : S[0]) == null ? void 0 : Q.children) == null ? void 0 : H[3]) == null ? void 0 : N.clone();
6838
+ const k = yf(w), I = (O = b == null ? void 0 : b.rad) != null ? O : s, C = (V = b == null ? void 0 : b.fbx_url) != null ? V : r;
6839
+ if (e.rad = I, I === void 0)
6840
+ return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): rad is ${I}`));
6841
+ const T = yield new Da().loadAsync(C);
6842
+ T.position.copy(k), T.rotation.z = I, T.scale.set(0.8, 0.8, 0.8), wl(T, { transparent: !0, side: E.DoubleSide });
6843
+ const x = (N = (H = (Q = (S = T.children) == null ? void 0 : S[0]) == null ? void 0 : Q.children) == null ? void 0 : H[3]) == null ? void 0 : N.clone();
6844
6844
  if (!x)
6845
6845
  return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): textMesh is ${x}`));
6846
6846
  const F = (_ = t.name) != null ? _ : "\u5165\u6237\u95E8";
6847
- return x.material = new En({ transparent: !0, map: bf(F) }), x.renderOrder = 3, B.children[0].add(x), e.object = B, !0;
6847
+ return x.material = new En({ transparent: !0, map: bf(F) }), x.renderOrder = 3, T.children[0].add(x), e.object = T, !0;
6848
6848
  }), c = () => {
6849
6849
  if (e.animation)
6850
6850
  return;
@@ -6854,8 +6854,8 @@ const yf = ({ x: i, y: t, z: e }) => new q(i, t, e), R1 = (i, t) => {
6854
6854
  a.push(w);
6855
6855
  const k = w.clipAction(e.object.animations[0]);
6856
6856
  k.timeScale = b;
6857
- let C;
6858
- const I = () => {
6857
+ let I;
6858
+ const C = () => {
6859
6859
  let W = 0, O = 0;
6860
6860
  const V = 1e3 / 30, S = (Q) => {
6861
6861
  W = requestAnimationFrame(S);
@@ -6866,11 +6866,11 @@ const yf = ({ x: i, y: t, z: e }) => new q(i, t, e), R1 = (i, t) => {
6866
6866
  cancelAnimationFrame(W);
6867
6867
  };
6868
6868
  }, F = { play: () => {
6869
- C || (k.play(), C = I(), requestAnimationFrame(() => {
6869
+ I || (k.play(), I = C(), requestAnimationFrame(() => {
6870
6870
  e.object && e.object.rotation.z !== e.rad && (e.object.rotation.z = e.rad);
6871
6871
  }));
6872
6872
  }, stop: () => {
6873
- k.stop(), C == null || C(), C = void 0;
6873
+ k.stop(), I == null || I(), I = void 0;
6874
6874
  } };
6875
6875
  e.animation = F;
6876
6876
  }, u = (b) => {
@@ -7160,13 +7160,13 @@ const kf = `<style type="text/css">
7160
7160
  if (!b)
7161
7161
  return !1;
7162
7162
  for (const w in A) {
7163
- const k = A[w], { standingPosition: C } = b.observers[0], I = k.map(({ x: B, z: x, observers: F }) => {
7163
+ const k = A[w], { standingPosition: I } = b.observers[0], C = k.map(({ x: T, z: x, observers: F }) => {
7164
7164
  const W = F.length > 0 ? p.rooms[p.observers[F[0]]].name : "", O = v[W] ? v[W].floor : null;
7165
7165
  let V = 1 / 0, S = {
7166
7166
  index: 0,
7167
- x: C.x,
7168
- y: C.y,
7169
- z: C.z
7167
+ x: I.x,
7168
+ y: I.y,
7169
+ z: I.z
7170
7170
  };
7171
7171
  F.forEach((Y) => {
7172
7172
  if (!b.observers[Y])
@@ -7176,28 +7176,28 @@ const kf = `<style type="text/css">
7176
7176
  x: ae.x,
7177
7177
  y: ae.y,
7178
7178
  z: ae.z
7179
- }, de = xf({ x: B, z: x }, he);
7179
+ }, de = xf({ x: T, z: x }, he);
7180
7180
  O ? de < V && Math.abs(he.y - O) < 0.3 && (V = de, S = he) : de < V && (V = de, S = he);
7181
7181
  });
7182
- const Q = new q(B, S.y, x);
7182
+ const Q = new q(T, S.y, x);
7183
7183
  Object.assign(Q, { observers: F });
7184
- const H = v[W] ? v[W].roof : null, N = H ? new q(B, H, x) : null;
7184
+ const H = v[W] ? v[W].roof : null, N = H ? new q(T, H, x) : null;
7185
7185
  return N && Object.assign(N, { observers: F }), { origin: Q, vertical: N };
7186
7186
  });
7187
7187
  r[w] = {
7188
- origins: I.map((B) => B.origin),
7188
+ origins: C.map((T) => T.origin),
7189
7189
  rules: []
7190
7190
  };
7191
- for (const { origin: B, vertical: x } of I) {
7191
+ for (const { origin: T, vertical: x } of C) {
7192
7192
  if (!x)
7193
7193
  continue;
7194
- const F = n(w, B.distanceTo(x));
7195
- o.append(F), r[w].rules.push({ vertical: !0, rule: [B, x], $element: F });
7194
+ const F = n(w, T.distanceTo(x));
7195
+ o.append(F), r[w].rules.push({ vertical: !0, rule: [T, x], $element: F });
7196
7196
  }
7197
- for (let B = 0; B < I.length; B++) {
7198
- let x = B + 1;
7199
- x >= I.length && (x = 0);
7200
- const { origin: F } = I[B], { origin: W } = I[x], O = n(w, F.distanceTo(W));
7197
+ for (let T = 0; T < C.length; T++) {
7198
+ let x = T + 1;
7199
+ x >= C.length && (x = 0);
7200
+ const { origin: F } = C[T], { origin: W } = C[x], O = n(w, F.distanceTo(W));
7201
7201
  o.append(O), r[w].rules.push({ vertical: !1, rule: [F, W], $element: O });
7202
7202
  }
7203
7203
  }
@@ -7230,9 +7230,9 @@ const kf = `<style type="text/css">
7230
7230
  { x: v, y: b }
7231
7231
  ]
7232
7232
  ], k = [];
7233
- for (let C = 0; C < w.length; C++) {
7234
- const I = El([p, A], [w[C][0], w[C][1]], !0);
7235
- I && k.push(I);
7233
+ for (let I = 0; I < w.length; I++) {
7234
+ const C = El([p, A], [w[I][0], w[I][1]], !0);
7235
+ C && k.push(C);
7236
7236
  }
7237
7237
  return k.length === 0 ? !1 : k;
7238
7238
  }, u = () => {
@@ -7252,7 +7252,7 @@ const kf = `<style type="text/css">
7252
7252
  O.style.display = "none";
7253
7253
  return;
7254
7254
  }
7255
- const k = v.position, C = v.getWorldDirection(new q()), I = p.clientWidth, B = p.clientHeight;
7255
+ const k = v.position, I = v.getWorldDirection(new q()), C = p.clientWidth, T = p.clientHeight;
7256
7256
  if (b !== Ve.Mode.Panorama) {
7257
7257
  for (const W in r)
7258
7258
  for (const { $element: O } of r[W].rules)
@@ -7263,7 +7263,7 @@ const kf = `<style type="text/css">
7263
7263
  for (const { $element: O } of r[W].rules)
7264
7264
  O.style.display = W === w ? "block" : "none";
7265
7265
  const [x] = r[w].origins.slice().filter((W) => W.observers.indexOf(A) >= 0).sort((W, O) => {
7266
- const V = W.clone().setY(0).sub(k).normalize().angleTo(C.clone().setY(0)), S = O.clone().setY(0).sub(k).normalize().angleTo(C.clone().setY(0));
7266
+ const V = W.clone().setY(0).sub(k).normalize().angleTo(I.clone().setY(0)), S = O.clone().setY(0).sub(k).normalize().angleTo(I.clone().setY(0));
7267
7267
  return V - S;
7268
7268
  });
7269
7269
  for (const { rule: W, vertical: O, $element: V } of r[w].rules) {
@@ -7286,25 +7286,25 @@ const kf = `<style type="text/css">
7286
7286
  V.style.display = "none";
7287
7287
  continue;
7288
7288
  }
7289
- if (S.clone().sub(k).normalize().angleTo(C) > Math.PI / 2) {
7289
+ if (S.clone().sub(k).normalize().angleTo(I) > Math.PI / 2) {
7290
7290
  V.style.display = "none";
7291
7291
  continue;
7292
7292
  }
7293
- if (Q.clone().sub(k).normalize().angleTo(C) > Math.PI / 2) {
7293
+ if (Q.clone().sub(k).normalize().angleTo(I) > Math.PI / 2) {
7294
7294
  V.style.display = "none";
7295
7295
  continue;
7296
7296
  }
7297
- const ee = S.distanceTo(Q);
7298
- if (Q.clone().sub(Q.clone().sub(S).divide(new q(2, 2, 2))).distanceTo(k) / ee > 8) {
7297
+ const $ = S.distanceTo(Q);
7298
+ if (Q.clone().sub(Q.clone().sub(S).divide(new q(2, 2, 2))).distanceTo(k) / $ > 8) {
7299
7299
  V.style.display = "none";
7300
7300
  continue;
7301
7301
  }
7302
- const he = S.clone().project(v), de = (he.x + 1) / 2 * I, pe = (-he.y + 1) / 2 * B, Ee = Q.clone().project(v), Ie = (Ee.x + 1) / 2 * I, Me = (-Ee.y + 1) / 2 * B, ce = Math.sqrt(Math.pow(Ie - de, 2) + Math.pow(Me - pe, 2));
7302
+ const he = S.clone().project(v), de = (he.x + 1) / 2 * C, pe = (-he.y + 1) / 2 * T, Ee = Q.clone().project(v), Ie = (Ee.x + 1) / 2 * C, Me = (-Ee.y + 1) / 2 * T, ce = Math.sqrt(Math.pow(Ie - de, 2) + Math.pow(Me - pe, 2));
7303
7303
  let Ae = ce, Ce = 50;
7304
7304
  const ue = c({ x: ~~de, y: ~~pe }, {
7305
7305
  x: ~~Ie,
7306
7306
  y: ~~Me
7307
- }, I, B);
7307
+ }, C, T);
7308
7308
  if (ue && ue.length === 1 && (x === S ? (Ae = Math.sqrt(Math.pow(ue[0].x - de, 2) + Math.pow(ue[0].y - pe, 2)), Ce = Ae / ce * 50) : x === Q && (Ae = Math.sqrt(Math.pow(ue[0].x - Ie, 2) + Math.pow(ue[0].y - Me, 2)), Ce = 100 - Ae / ce * 50)), ue && ue.length === 2) {
7309
7309
  const te = {
7310
7310
  x: (ue[0].x + ue[1].x) / 2,
@@ -7326,8 +7326,8 @@ const kf = `<style type="text/css">
7326
7326
  const A = p.distanceText;
7327
7327
  e.options.distanceText = A, Object.values(r).forEach((v) => {
7328
7328
  v.rules.forEach((b) => {
7329
- const [w, k] = b.rule, C = w.distanceTo(k), I = b.$element.querySelector(".PanoRulerPlugin-rule-label-name");
7330
- !I || (I.innerText = A(C));
7329
+ const [w, k] = b.rule, I = w.distanceTo(k), C = b.$element.querySelector(".PanoRulerPlugin-rule-label-name");
7330
+ !C || (C.innerText = A(I));
7331
7331
  });
7332
7332
  });
7333
7333
  }
@@ -7353,7 +7353,7 @@ function Sf(i) {
7353
7353
  n[o] = Vs(js(i, e, o));
7354
7354
  return {
7355
7355
  c() {
7356
- t = z("div");
7356
+ t = B("div");
7357
7357
  for (let o = 0; o < n.length; o += 1)
7358
7358
  n[o].c();
7359
7359
  y(t, "class", "rule-mixed-line svelte-1h27ktp");
@@ -7385,7 +7385,7 @@ function Mf(i) {
7385
7385
  let t, e;
7386
7386
  return {
7387
7387
  c() {
7388
- t = z("em"), y(t, "class", e = Pe(i[0].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp"), y(t, "style", i[3]);
7388
+ t = B("em"), y(t, "class", e = Pe(i[0].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp"), y(t, "style", i[3]);
7389
7389
  },
7390
7390
  m(n, o) {
7391
7391
  M(n, t, o);
@@ -7402,13 +7402,13 @@ function Vs(i) {
7402
7402
  let t, e, n = `${i[6].width}px`;
7403
7403
  return {
7404
7404
  c() {
7405
- t = z("div"), y(t, "class", e = Pe(i[6].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp"), y(t, "style", i[3]), T(t, "width", n);
7405
+ t = B("div"), y(t, "class", e = Pe(i[6].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp"), y(t, "style", i[3]), z(t, "width", n);
7406
7406
  },
7407
7407
  m(o, s) {
7408
7408
  M(o, t, s);
7409
7409
  },
7410
7410
  p(o, s) {
7411
- s & 1 && e !== (e = Pe(o[6].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp") && y(t, "class", e), s & 8 && y(t, "style", o[3]), s & 1 && n !== (n = `${o[6].width}px`) && T(t, "width", n);
7411
+ s & 1 && e !== (e = Pe(o[6].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp") && y(t, "class", e), s & 8 && y(t, "style", o[3]), s & 1 && n !== (n = `${o[6].width}px`) && z(t, "width", n);
7412
7412
  },
7413
7413
  d(o) {
7414
7414
  o && L(t);
@@ -7423,13 +7423,13 @@ function Tf(i) {
7423
7423
  let g = m(i), p = g(i);
7424
7424
  return {
7425
7425
  c() {
7426
- t = z("div"), p.c(), e = $(), n = z("div"), o = z("div"), r = ke(s), y(o, "class", "PanoRulerPlugin-rule-label-name svelte-1h27ktp"), Qe(() => i[4].call(o)), y(n, "class", "PanoRulerPlugin-rule-label svelte-1h27ktp"), T(n, "left", l), y(t, "class", "PanoRulerPlugin-rule-line svelte-1h27ktp"), T(t, "width", c), T(t, "left", u), T(t, "top", h), T(t, "transform", d), T(t, "display", i[0].visible && i[2] ? "block" : "none");
7426
+ t = B("div"), p.c(), e = ee(), n = B("div"), o = B("div"), r = ke(s), y(o, "class", "PanoRulerPlugin-rule-label-name svelte-1h27ktp"), Qe(() => i[4].call(o)), y(n, "class", "PanoRulerPlugin-rule-label svelte-1h27ktp"), z(n, "left", l), y(t, "class", "PanoRulerPlugin-rule-line svelte-1h27ktp"), z(t, "width", c), z(t, "left", u), z(t, "top", h), z(t, "transform", d), z(t, "display", i[0].visible && i[2] ? "block" : "none");
7427
7427
  },
7428
7428
  m(A, v) {
7429
7429
  M(A, t, v), p.m(t, null), j(t, e), j(t, n), j(n, o), j(o, r), a = wi(o, i[4].bind(o));
7430
7430
  },
7431
7431
  p(A, [v]) {
7432
- g === (g = m(A)) && p ? p.p(A, v) : (p.d(1), p = g(A), p && (p.c(), p.m(t, e))), v & 1 && s !== (s = A[0].labelElement + "") && Se(r, s), v & 1 && l !== (l = `${A[0].labelOffset}%`) && T(n, "left", l), v & 1 && c !== (c = `${A[0].width}px`) && T(t, "width", c), v & 1 && u !== (u = `${A[0].left}px`) && T(t, "left", u), v & 1 && h !== (h = `${A[0].top}px`) && T(t, "top", h), v & 1 && d !== (d = `rotate(${A[0].rotateDeg}deg)`) && T(t, "transform", d), v & 5 && T(t, "display", A[0].visible && A[2] ? "block" : "none");
7432
+ g === (g = m(A)) && p ? p.p(A, v) : (p.d(1), p = g(A), p && (p.c(), p.m(t, e))), v & 1 && s !== (s = A[0].labelElement + "") && Se(r, s), v & 1 && l !== (l = `${A[0].labelOffset}%`) && z(n, "left", l), v & 1 && c !== (c = `${A[0].width}px`) && z(t, "width", c), v & 1 && u !== (u = `${A[0].left}px`) && z(t, "left", u), v & 1 && h !== (h = `${A[0].top}px`) && z(t, "top", h), v & 1 && d !== (d = `rotate(${A[0].rotateDeg}deg)`) && z(t, "transform", d), v & 5 && z(t, "display", A[0].visible && A[2] ? "block" : "none");
7433
7433
  },
7434
7434
  i: X,
7435
7435
  o: X,
@@ -7493,7 +7493,7 @@ function jf(i) {
7493
7493
  });
7494
7494
  return {
7495
7495
  c() {
7496
- t = z("div");
7496
+ t = B("div");
7497
7497
  for (let r = 0; r < o.length; r += 1)
7498
7498
  o[r].c();
7499
7499
  },
@@ -7538,33 +7538,33 @@ function Vf(i, t, e) {
7538
7538
  var p, A, v, b;
7539
7539
  let { five: n } = t, { rulerDatas: o } = t, { options: s } = t, r = [];
7540
7540
  const a = ((A = (p = n.getElement()) == null ? void 0 : p.parentElement) == null ? void 0 : A.clientWidth) || 0, l = ((b = (v = n.getElement()) == null ? void 0 : v.parentElement) == null ? void 0 : b.clientHeight) || 0, c = (w, k) => {
7541
- const C = [
7541
+ const I = [
7542
7542
  [{ x: 0, y: 0 }, { x: a, y: 0 }],
7543
7543
  [{ x: 0, y: 0 }, { x: 0, y: l }],
7544
7544
  [{ x: a, y: 0 }, { x: a, y: l }],
7545
7545
  [{ x: 0, y: l }, { x: a, y: l }]
7546
- ], I = [];
7547
- for (let B = 0; B < C.length; B++) {
7548
- const x = El([w, k], [C[B][0], C[B][1]], !0);
7549
- x && I.push(x);
7546
+ ], C = [];
7547
+ for (let T = 0; T < I.length; T++) {
7548
+ const x = El([w, k], [I[T][0], I[T][1]], !0);
7549
+ x && C.push(x);
7550
7550
  }
7551
- return I.length === 0 ? !1 : I;
7551
+ return C.length === 0 ? !1 : C;
7552
7552
  }, u = (w, k) => {
7553
- const C = w.clone().project(n.camera), I = (C.x + 1) / 2 * a, B = (-C.y + 1) / 2 * l, x = k.clone().project(n.camera), F = (x.x + 1) / 2 * a, W = (-x.y + 1) / 2 * l, O = Math.sqrt(Math.pow(F - I, 2) + Math.pow(W - B, 2));
7553
+ const I = w.clone().project(n.camera), C = (I.x + 1) / 2 * a, T = (-I.y + 1) / 2 * l, x = k.clone().project(n.camera), F = (x.x + 1) / 2 * a, W = (-x.y + 1) / 2 * l, O = Math.sqrt(Math.pow(F - C, 2) + Math.pow(W - T, 2));
7554
7554
  return {
7555
- startLeft: I,
7556
- startTop: B,
7555
+ startLeft: C,
7556
+ startTop: T,
7557
7557
  endLeft: F,
7558
7558
  endTop: W,
7559
7559
  distance: O
7560
7560
  };
7561
- }, h = (w, k, C) => {
7562
- const I = n.camera.position, B = n.camera.getWorldDirection(new q()), x = w.clone().sub(I).normalize().angleTo(B), F = k.clone().sub(I).normalize().angleTo(B), W = w.distanceTo(k), V = k.clone().sub(k.clone().sub(w).divide(new q(2, 2, 2))).distanceTo(I), { startLeft: S, startTop: Q, endLeft: H, endTop: N, distance: _ } = u(w, k), Y = -((Math.PI / 2 - Math.atan2(H - S, Q - N)) / Math.PI) * 180;
7561
+ }, h = (w, k, I) => {
7562
+ const C = n.camera.position, T = n.camera.getWorldDirection(new q()), x = w.clone().sub(C).normalize().angleTo(T), F = k.clone().sub(C).normalize().angleTo(T), W = w.distanceTo(k), V = k.clone().sub(k.clone().sub(w).divide(new q(2, 2, 2))).distanceTo(C), { startLeft: S, startTop: Q, endLeft: H, endTop: N, distance: _ } = u(w, k), Y = -((Math.PI / 2 - Math.atan2(H - S, Q - N)) / Math.PI) * 180;
7563
7563
  let ae = !0;
7564
- C || (ae = !1), !nt(w, C) && !nt(k, C) && (ae = !1), W < 0.3 && (ae = !1), x > Math.PI / 2 && (ae = !1), F > Math.PI / 2 && (ae = !1), V / W > 8 && (ae = !1);
7564
+ I || (ae = !1), !nt(w, I) && !nt(k, I) && (ae = !1), W < 0.3 && (ae = !1), x > Math.PI / 2 && (ae = !1), F > Math.PI / 2 && (ae = !1), V / W > 8 && (ae = !1);
7565
7565
  let he = 50, de = _;
7566
7566
  const pe = c({ x: ~~S, y: ~~Q }, { x: ~~H, y: ~~N });
7567
- if (pe && pe.length === 1 && (nt(w, C) ? (de = Math.sqrt(Math.pow(pe[0].x - S, 2) + Math.pow(pe[0].y - Q, 2)), he = de / _ * 50) : nt(k, C) && (de = Math.sqrt(Math.pow(pe[0].x - H, 2) + Math.pow(pe[0].y - N, 2)), he = 100 - de / _ * 50)), pe && pe.length === 2) {
7567
+ if (pe && pe.length === 1 && (nt(w, I) ? (de = Math.sqrt(Math.pow(pe[0].x - S, 2) + Math.pow(pe[0].y - Q, 2)), he = de / _ * 50) : nt(k, I) && (de = Math.sqrt(Math.pow(pe[0].x - H, 2) + Math.pow(pe[0].y - N, 2)), he = 100 - de / _ * 50)), pe && pe.length === 2) {
7568
7568
  const Ee = {
7569
7569
  x: (pe[0].x + pe[1].x) / 2,
7570
7570
  y: (pe[0].y + pe[1].y) / 2
@@ -7586,12 +7586,12 @@ function Vf(i, t, e) {
7586
7586
  return e(0, r = []);
7587
7587
  if (n.currentMode !== Ve.Mode.Panorama)
7588
7588
  return e(0, r = []);
7589
- const C = n.camera.position, I = n.camera.getWorldDirection(new q()), B = k.lines.map((O) => new q(O.start[0], -O.start[1], -O.start[2])), x = k.lines.map((O) => new q(O.end[0], -O.end[1], -O.end[2])), [F] = B.concat(x).sort((O, V) => {
7590
- const S = O.clone().setY(0).sub(C).normalize().angleTo(I.clone().setY(0)), Q = V.clone().setY(0).sub(C).normalize().angleTo(I.clone().setY(0));
7589
+ const I = n.camera.position, C = n.camera.getWorldDirection(new q()), T = k.lines.map((O) => new q(O.start[0], -O.start[1], -O.start[2])), x = k.lines.map((O) => new q(O.end[0], -O.end[1], -O.end[2])), [F] = T.concat(x).sort((O, V) => {
7590
+ const S = O.clone().setY(0).sub(I).normalize().angleTo(C.clone().setY(0)), Q = V.clone().setY(0).sub(I).normalize().angleTo(C.clone().setY(0));
7591
7591
  return S - Q;
7592
7592
  }), W = k.lines.map((O) => {
7593
7593
  var de, pe;
7594
- const V = O.start, S = O.end, { startLeft: Q, startTop: H, distance: N, deg: _, visible: ee, labelOffset: Y, ruleLength: ae } = h(new q(V[0], -V[1], -V[2]), new q(S[0], -S[1], -S[2]), F), he = [];
7594
+ const V = O.start, S = O.end, { startLeft: Q, startTop: H, distance: N, deg: _, visible: $, labelOffset: Y, ruleLength: ae } = h(new q(V[0], -V[1], -V[2]), new q(S[0], -S[1], -S[2]), F), he = [];
7595
7595
  return O.children && ((de = O.children) == null ? void 0 : de.length) > 0 && ((pe = O.children) == null || pe.forEach((Ee) => {
7596
7596
  const Ie = Ee.start, Me = Ee.end, { distance: ce } = u(new q(Ie[0], -Ie[1], -Ie[2]), new q(Me[0], -Me[1], -Me[2]));
7597
7597
  he.push({ width: ce, state: Ee.state });
@@ -7603,7 +7603,7 @@ function Vf(i, t, e) {
7603
7603
  state: O.state,
7604
7604
  children: he,
7605
7605
  labelOffset: Y,
7606
- visible: ee,
7606
+ visible: $,
7607
7607
  labelElement: s.distanceText(ae)
7608
7608
  };
7609
7609
  });
@@ -8263,10 +8263,10 @@ function rm(i) {
8263
8263
  const b = v.getElement();
8264
8264
  if (!b)
8265
8265
  return;
8266
- const w = b.clientWidth, k = b.clientHeight, C = w / 2, I = k / 2;
8266
+ const w = b.clientWidth, k = b.clientHeight, I = w / 2, C = k / 2;
8267
8267
  if (e.points.length < 2)
8268
8268
  return;
8269
- const [B, x] = e.points, F = B.position.clone().project(v.camera), W = x.position.clone().project(v.camera), O = F.clone().lerp(W, 0.5), V = new Ne(F.x * C, F.y * I), S = new Ne(W.x * C, W.y * I), Q = V.distanceTo(S);
8269
+ const [T, x] = e.points, F = T.position.clone().project(v.camera), W = x.position.clone().project(v.camera), O = F.clone().lerp(W, 0.5), V = new Ne(F.x * I, F.y * C), S = new Ne(W.x * I, W.y * C), Q = V.distanceTo(S);
8270
8270
  if ((() => !(Math.abs(F.z) > 1 || Math.abs(W.z) > 1 || !Qi(F) && !Qi(W) || !Qi(O) || Q === 0))() === !1) {
8271
8271
  s.style.opacity = "0", s.style.pointerEvents = "none";
8272
8272
  return;
@@ -8283,11 +8283,11 @@ function rm(i) {
8283
8283
  o.removeEventListener("click", c), s.remove();
8284
8284
  }
8285
8285
  function p() {
8286
- var B, x, F;
8286
+ var T, x, F;
8287
8287
  if (e.points.length < 2)
8288
8288
  return "";
8289
- const [v, b] = e.points, w = v.position.clone().distanceTo(b.position), k = (B = i.line.text) != null ? B : i.line.model.config.defaultText, C = (F = (x = i.line.model.config) == null ? void 0 : x.getDistanceText) == null ? void 0 : F.call(x, w), I = k != null ? k : C;
8290
- return I != null ? I : w.toFixed(2) + "m";
8289
+ const [v, b] = e.points, w = v.position.clone().distanceTo(b.position), k = (T = i.line.text) != null ? T : i.line.model.config.defaultText, I = (F = (x = i.line.model.config) == null ? void 0 : x.getDistanceText) == null ? void 0 : F.call(x, w), C = k != null ? k : I;
8290
+ return C != null ? C : w.toFixed(2) + "m";
8291
8291
  }
8292
8292
  function A(v) {
8293
8293
  t = v;
@@ -9775,13 +9775,13 @@ function Ns(i) {
9775
9775
  }
9776
9776
  return {
9777
9777
  c() {
9778
- t = z("i"), y(t, "class", "svelte-19zi46m"), U(t, "PanoSpatialTagPlugin__tag-origin", !0), U(t, "PanoSpatialTagPlugin__tag-origin-destroy", i[3].destroying), T(t, "top", e), T(t, "left", n), T(t, "visibility", i[3].front ? "visible" : "hidden");
9778
+ t = B("i"), y(t, "class", "svelte-19zi46m"), U(t, "PanoSpatialTagPlugin__tag-origin", !0), U(t, "PanoSpatialTagPlugin__tag-origin-destroy", i[3].destroying), z(t, "top", e), z(t, "left", n), z(t, "visibility", i[3].front ? "visible" : "hidden");
9779
9779
  },
9780
9780
  m(a, l) {
9781
9781
  M(a, t, l), o || (s = me(t, "click", r), o = !0);
9782
9782
  },
9783
9783
  p(a, l) {
9784
- i = a, l & 1 && U(t, "PanoSpatialTagPlugin__tag-origin-destroy", i[3].destroying), l & 1 && e !== (e = `${i[3].top}%`) && T(t, "top", e), l & 1 && n !== (n = `${i[3].left}%`) && T(t, "left", n), l & 1 && T(t, "visibility", i[3].front ? "visible" : "hidden");
9784
+ i = a, l & 1 && U(t, "PanoSpatialTagPlugin__tag-origin-destroy", i[3].destroying), l & 1 && e !== (e = `${i[3].top}%`) && z(t, "top", e), l & 1 && n !== (n = `${i[3].left}%`) && z(t, "left", n), l & 1 && z(t, "visibility", i[3].front ? "visible" : "hidden");
9785
9785
  },
9786
9786
  d(a) {
9787
9787
  a && L(t), o = !1, s();
@@ -9844,13 +9844,13 @@ function Gm(i) {
9844
9844
  let t, e, n, o, s, r, a, l, c, u, h, d, m, g, p;
9845
9845
  return {
9846
9846
  c() {
9847
- t = z("div"), e = z("div"), n = $(), o = z("div"), s = z("i"), r = $(), a = z("i"), l = $(), c = z("i"), u = $(), h = z("div"), d = z("div"), y(e, "class", "PanoSpatialTagPlugin__tag-shadow svelte-1i5h9zh"), T(e, "transform", "translate(" + i[7] / 2 * i[3] * 3 + "px, " + i[8] / 2 * (i[1] ? -1 : 1) * i[3] * 3 + "px) scale(" + 1 / i[3] + ")"), y(s, "class", "PanoSpatialTagPlugin__tag-flagpole svelte-1i5h9zh"), T(s, "width", i[4] + "rem"), y(a, "class", "PanoSpatialTagPlugin__tag-line1 svelte-1i5h9zh"), y(c, "class", "PanoSpatialTagPlugin__tag-line2 svelte-1i5h9zh"), y(o, "class", "PanoSpatialTagPlugin__tag-line svelte-1i5h9zh"), y(d, "class", "PanoSpatialTagPlugin__tag-content svelte-1i5h9zh"), y(h, "class", "PanoSpatialTagPlugin__tag-animate svelte-1i5h9zh"), T(h, "transform", "scale(" + i[3] * 3 + ")"), y(t, "id", m = "PanoSpatialTagPlugin__" + i[0]), T(t, "height", 20 * i[5] + "rem"), y(t, "class", "svelte-1i5h9zh"), U(t, "PanoSpatialTagPlugin__tag-x", !0), U(t, "PanoSpatialTagPlugin__tag-upside-down", i[1]), U(t, "PanoSpatialTagPlugin__tag-show", i[10]), U(t, "PanoSpatialTagPlugin__tag-hide", i[10] === !1 || i[6]);
9847
+ t = B("div"), e = B("div"), n = ee(), o = B("div"), s = B("i"), r = ee(), a = B("i"), l = ee(), c = B("i"), u = ee(), h = B("div"), d = B("div"), y(e, "class", "PanoSpatialTagPlugin__tag-shadow svelte-1i5h9zh"), z(e, "transform", "translate(" + i[7] / 2 * i[3] * 3 + "px, " + i[8] / 2 * (i[1] ? -1 : 1) * i[3] * 3 + "px) scale(" + 1 / i[3] + ")"), y(s, "class", "PanoSpatialTagPlugin__tag-flagpole svelte-1i5h9zh"), z(s, "width", i[4] + "rem"), y(a, "class", "PanoSpatialTagPlugin__tag-line1 svelte-1i5h9zh"), y(c, "class", "PanoSpatialTagPlugin__tag-line2 svelte-1i5h9zh"), y(o, "class", "PanoSpatialTagPlugin__tag-line svelte-1i5h9zh"), y(d, "class", "PanoSpatialTagPlugin__tag-content svelte-1i5h9zh"), y(h, "class", "PanoSpatialTagPlugin__tag-animate svelte-1i5h9zh"), z(h, "transform", "scale(" + i[3] * 3 + ")"), y(t, "id", m = "PanoSpatialTagPlugin__" + i[0]), z(t, "height", 20 * i[5] + "rem"), y(t, "class", "svelte-1i5h9zh"), U(t, "PanoSpatialTagPlugin__tag-x", !0), U(t, "PanoSpatialTagPlugin__tag-upside-down", i[1]), U(t, "PanoSpatialTagPlugin__tag-show", i[10]), U(t, "PanoSpatialTagPlugin__tag-hide", i[10] === !1 || i[6]);
9848
9848
  },
9849
9849
  m(A, v) {
9850
9850
  M(A, t, v), j(t, e), j(t, n), j(t, o), j(o, s), j(o, r), j(o, a), j(o, l), j(o, c), j(t, u), j(t, h), j(h, d), d.innerHTML = i[2], i[16](d), g || (p = me(d, "click", i[11]), g = !0);
9851
9851
  },
9852
9852
  p(A, [v]) {
9853
- v & 394 && T(e, "transform", "translate(" + A[7] / 2 * A[3] * 3 + "px, " + A[8] / 2 * (A[1] ? -1 : 1) * A[3] * 3 + "px) scale(" + 1 / A[3] + ")"), v & 16 && T(s, "width", A[4] + "rem"), v & 4 && (d.innerHTML = A[2]), v & 8 && T(h, "transform", "scale(" + A[3] * 3 + ")"), v & 1 && m !== (m = "PanoSpatialTagPlugin__" + A[0]) && y(t, "id", m), v & 32 && T(t, "height", 20 * A[5] + "rem"), v & 2 && U(t, "PanoSpatialTagPlugin__tag-upside-down", A[1]), v & 1024 && U(t, "PanoSpatialTagPlugin__tag-show", A[10]), v & 1088 && U(t, "PanoSpatialTagPlugin__tag-hide", A[10] === !1 || A[6]);
9853
+ v & 394 && z(e, "transform", "translate(" + A[7] / 2 * A[3] * 3 + "px, " + A[8] / 2 * (A[1] ? -1 : 1) * A[3] * 3 + "px) scale(" + 1 / A[3] + ")"), v & 16 && z(s, "width", A[4] + "rem"), v & 4 && (d.innerHTML = A[2]), v & 8 && z(h, "transform", "scale(" + A[3] * 3 + ")"), v & 1 && m !== (m = "PanoSpatialTagPlugin__" + A[0]) && y(t, "id", m), v & 32 && z(t, "height", 20 * A[5] + "rem"), v & 2 && U(t, "PanoSpatialTagPlugin__tag-upside-down", A[1]), v & 1024 && U(t, "PanoSpatialTagPlugin__tag-show", A[10]), v & 1088 && U(t, "PanoSpatialTagPlugin__tag-hide", A[10] === !1 || A[6]);
9854
9854
  },
9855
9855
  i: X,
9856
9856
  o: X,
@@ -9866,9 +9866,9 @@ function _m(i, t, e) {
9866
9866
  },
9867
9867
  100
9868
9868
  );
9869
- const w = (I) => {
9870
- const B = Object.keys(d);
9871
- let x = I.target;
9869
+ const w = (C) => {
9870
+ const T = Object.keys(d);
9871
+ let x = C.target;
9872
9872
  for (; x; ) {
9873
9873
  const F = x.getAttribute("class");
9874
9874
  if (!F) {
@@ -9879,7 +9879,7 @@ function _m(i, t, e) {
9879
9879
  x = null;
9880
9880
  break;
9881
9881
  }
9882
- B.forEach((W) => {
9882
+ T.forEach((W) => {
9883
9883
  F.includes(W) && d[W](n);
9884
9884
  }), x = x.parentNode;
9885
9885
  }
@@ -9887,11 +9887,11 @@ function _m(i, t, e) {
9887
9887
  Ke(() => {
9888
9888
  m.emit("initTag", { id: n });
9889
9889
  });
9890
- const k = Bl.subscribe((I) => {
9891
- if (I === null)
9890
+ const k = Bl.subscribe((C) => {
9891
+ if (C === null)
9892
9892
  return;
9893
- const [B, x] = I.split("-PanoSpatialTagPlugin-");
9894
- n === B && (m.emit("clickOrigin", { id: n, show: v }), b || (e(10, v = u), e(12, u = !u), b = setTimeout(
9893
+ const [T, x] = C.split("-PanoSpatialTagPlugin-");
9894
+ n === T && (m.emit("clickOrigin", { id: n, show: v }), b || (e(10, v = u), e(12, u = !u), b = setTimeout(
9895
9895
  () => {
9896
9896
  b = void 0;
9897
9897
  },
@@ -9903,13 +9903,13 @@ function _m(i, t, e) {
9903
9903
  }), Et(() => {
9904
9904
  m.emit("destroyTag", { id: n }), k(), h();
9905
9905
  });
9906
- function C(I) {
9907
- Be[I ? "unshift" : "push"](() => {
9908
- A = I, e(9, A);
9906
+ function I(C) {
9907
+ Be[C ? "unshift" : "push"](() => {
9908
+ A = C, e(9, A);
9909
9909
  });
9910
9910
  }
9911
- return i.$$set = (I) => {
9912
- "id" in I && e(0, n = I.id), "upsideDown" in I && e(1, o = I.upsideDown), "content" in I && e(2, s = I.content), "contentZoom" in I && e(3, r = I.contentZoom), "lineWidthZoom" in I && e(4, a = I.lineWidthZoom), "lineHeightZoom" in I && e(5, l = I.lineHeightZoom), "destroying" in I && e(6, c = I.destroying), "folded" in I && e(12, u = I.folded), "dispose" in I && e(13, h = I.dispose), "events" in I && e(14, d = I.events), "hooks" in I && e(15, m = I.hooks);
9911
+ return i.$$set = (C) => {
9912
+ "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, u = C.folded), "dispose" in C && e(13, h = C.dispose), "events" in C && e(14, d = C.events), "hooks" in C && e(15, m = C.hooks);
9913
9913
  }, [
9914
9914
  n,
9915
9915
  o,
@@ -9927,7 +9927,7 @@ function _m(i, t, e) {
9927
9927
  h,
9928
9928
  d,
9929
9929
  m,
9930
- C
9930
+ I
9931
9931
  ];
9932
9932
  }
9933
9933
  class Wm extends oe {
@@ -10118,9 +10118,9 @@ const Hi = 1e-3, Zs = 0.01, Jm = "https://vrlab-image4.ljcdn.com/release/web/Pan
10118
10118
  target: d,
10119
10119
  props: { origins: p.origins }
10120
10120
  }), v = (ce, Ae) => {
10121
- C(), Ae && I();
10121
+ I(), Ae && C();
10122
10122
  }, b = () => {
10123
- p.forbidden && (p.forbidden = !1, I());
10123
+ p.forbidden && (p.forbidden = !1, C());
10124
10124
  }, w = (ce, Ae) => {
10125
10125
  if (p.tags.length === 0)
10126
10126
  return;
@@ -10150,13 +10150,13 @@ const Hi = 1e-3, Zs = 0.01, Jm = "https://vrlab-image4.ljcdn.com/release/web/Pan
10150
10150
  }), setTimeout(() => {
10151
10151
  p.tags.forEach((ye) => {
10152
10152
  ye.destroying && (ye.app.$destroy(), ye = null);
10153
- }), p.tags = p.tags.filter((ye) => !ye.destroying), C();
10153
+ }), p.tags = p.tags.filter((ye) => !ye.destroying), I();
10154
10154
  }, 1900);
10155
10155
  }, k = (ce) => {
10156
10156
  ce !== Ve.Mode.Panorama && !p.forbidden && (A.$set({ origins: [] }), p.tags.forEach((Ae) => {
10157
10157
  Ae.app.$destroy(), Ae = null;
10158
10158
  }), p.origins = [], p.tags = [], p.forbidden = !0);
10159
- }, C = () => {
10159
+ }, I = () => {
10160
10160
  if (p.forbidden || !p.enabled)
10161
10161
  return;
10162
10162
  const ce = i.camera, Ae = ce.getWorldDirection(new E.Vector3());
@@ -10170,13 +10170,13 @@ const Hi = 1e-3, Zs = 0.01, Jm = "https://vrlab-image4.ljcdn.com/release/web/Pan
10170
10170
  destroying: Ce.destroying
10171
10171
  };
10172
10172
  }), A.$set({ origins: p.origins });
10173
- }, I = () => {
10173
+ }, C = () => {
10174
10174
  p.forbidden || !p.enabled || (p.timeoutId && clearTimeout(p.timeoutId), p.timeoutId = setTimeout(() => {
10175
10175
  p.timeoutId = void 0;
10176
- const ce = B();
10177
- ce.length && (p.tags = p.tags.concat(ce), C());
10176
+ const ce = T();
10177
+ ce.length && (p.tags = p.tags.concat(ce), I());
10178
10178
  }, o));
10179
- }, B = () => {
10179
+ }, T = () => {
10180
10180
  const { clientWidth: ce, clientHeight: Ae } = i.getElement(), Ce = [], ue = i.camera, qe = new E.Frustum(), rt = new E.Matrix4(), ye = ue.getWorldDirection(new E.Vector3());
10181
10181
  rt.multiplyMatrices(
10182
10182
  ue.projectionMatrix,
@@ -10287,9 +10287,9 @@ const Hi = 1e-3, Zs = 0.01, Jm = "https://vrlab-image4.ljcdn.com/release/web/Pan
10287
10287
  };
10288
10288
  }), ce.render && (p.render = ce.render), ce.template && (p.template = ce.template), ce.events && (p.events = ce.events), ce.enabled === !1 && (p.enabled = ce.enabled), ce.folded === !0 && (p.folded = ce.folded);
10289
10289
  }, F = (ce) => {
10290
- p.intersectObjects = ce, I();
10290
+ p.intersectObjects = ce, C();
10291
10291
  }, W = () => {
10292
- p.enabled = !0, I();
10292
+ p.enabled = !0, C();
10293
10293
  }, O = () => {
10294
10294
  p.enabled = !1, A.$set({ origins: [] }), p.tags.forEach((ce) => {
10295
10295
  ce.app.$destroy(), ce = null;
@@ -10311,15 +10311,15 @@ const Hi = 1e-3, Zs = 0.01, Jm = "https://vrlab-image4.ljcdn.com/release/web/Pan
10311
10311
  Ae.id === ce && Ae.app.$set({ folded: !0 });
10312
10312
  });
10313
10313
  }, N = () => {
10314
- i.once("renderFrame", C);
10314
+ i.once("renderFrame", I);
10315
10315
  }, _ = () => {
10316
- e || (e = i.getElement().parentElement), e && e.appendChild(d), p.forbidden = !1, n = i.model.bounding.getCenter(new E.Vector3()).y, I(), i.on("panoWillArrive", w), i.on("panoArrived", b), i.on("modeChange", k), i.on("cameraUpdate", v);
10317
- }, ee = () => {
10316
+ e || (e = i.getElement().parentElement), e && e.appendChild(d), p.forbidden = !1, n = i.model.bounding.getCenter(new E.Vector3()).y, C(), i.on("panoWillArrive", w), i.on("panoArrived", b), i.on("modeChange", k), i.on("cameraUpdate", v);
10317
+ }, $ = () => {
10318
10318
  g = null, h.disposeAll(), A.$destroy(), p.tags.forEach((ce) => {
10319
10319
  ce.app.$destroy(), ce = null;
10320
- }), p.origins = [], p.tags = [], i.off("modelLoaded", _), i.off("renderFrame", C), i.off("panoWillArrive", w), i.off("panoArrived", b), i.off("modeChange", k), i.off("cameraUpdate", v), i.off("dispose", ee), window.removeEventListener("resize", N, !1);
10320
+ }), p.origins = [], p.tags = [], i.off("modelLoaded", _), i.off("renderFrame", I), i.off("panoWillArrive", w), i.off("panoArrived", b), i.off("modeChange", k), i.off("cameraUpdate", v), i.off("dispose", $), window.removeEventListener("resize", N, !1);
10321
10321
  };
10322
- return window.addEventListener("resize", N, !1), (Me = i == null ? void 0 : i.model) != null && Me.loaded ? _() : i.once("modelLoaded", _), i.on("dispose", ee), {
10322
+ return window.addEventListener("resize", N, !1), (Me = i == null ? void 0 : i.model) != null && Me.loaded ? _() : i.once("modelLoaded", _), i.on("dispose", $), {
10323
10323
  load: x,
10324
10324
  setIntersectObjects: F,
10325
10325
  unfoldAll: V,
@@ -10329,7 +10329,7 @@ const Hi = 1e-3, Zs = 0.01, Jm = "https://vrlab-image4.ljcdn.com/release/web/Pan
10329
10329
  enable: W,
10330
10330
  disable: O,
10331
10331
  hooks: m,
10332
- dispose: ee
10332
+ dispose: $
10333
10333
  };
10334
10334
  };
10335
10335
  var Rt = /* @__PURE__ */ ((i) => (i.SMALL = "small", i.MIDLLE = "middle", i.LARGE = "large", i.EXTRA_LARGE = "x-large", i))(Rt || {});
@@ -10342,13 +10342,13 @@ function Km(i) {
10342
10342
  let t, e, n, o = (i[0].name.length > 6 ? `${i[0].name.slice(0, 6)}...` : i[0].name) + "", s, r, a, l, c, u;
10343
10343
  return {
10344
10344
  c() {
10345
- t = z("div"), e = z("div"), n = z("span"), s = ke(o), r = $(), a = z("div"), y(n, "class", "item-label-item__text svelte-1ir3cyd"), y(e, "class", "item-label-item__text-wrap svelte-1ir3cyd"), T(e, "top", `-${i[0].strokeLength + 26}px`), y(a, "class", "item-label-item__bar svelte-1ir3cyd"), T(a, "height", `${i[0].strokeLength}px`), y(t, "class", l = Pe(Oe("item-label-item", { visible: i[0].visible })) + " svelte-1ir3cyd"), T(t, "z-index", i[0].zIndex), T(t, "transform", i[0].transform);
10345
+ t = B("div"), e = B("div"), n = B("span"), s = ke(o), r = ee(), a = B("div"), y(n, "class", "item-label-item__text svelte-1ir3cyd"), y(e, "class", "item-label-item__text-wrap svelte-1ir3cyd"), z(e, "top", `-${i[0].strokeLength + 26}px`), y(a, "class", "item-label-item__bar svelte-1ir3cyd"), z(a, "height", `${i[0].strokeLength}px`), y(t, "class", l = Pe(Oe("item-label-item", { visible: i[0].visible })) + " svelte-1ir3cyd"), z(t, "z-index", i[0].zIndex), z(t, "transform", i[0].transform);
10346
10346
  },
10347
10347
  m(h, d) {
10348
10348
  M(h, t, d), j(t, e), j(e, n), j(n, s), j(t, r), j(t, a), c || (u = me(n, "click", i[1]), c = !0);
10349
10349
  },
10350
10350
  p(h, [d]) {
10351
- d & 1 && o !== (o = (h[0].name.length > 6 ? `${h[0].name.slice(0, 6)}...` : h[0].name) + "") && Se(s, o), d & 1 && T(e, "top", `-${h[0].strokeLength + 26}px`), d & 1 && T(a, "height", `${h[0].strokeLength}px`), d & 1 && l !== (l = Pe(Oe("item-label-item", { visible: h[0].visible })) + " svelte-1ir3cyd") && y(t, "class", l), d & 1 && T(t, "z-index", h[0].zIndex), d & 1 && T(t, "transform", h[0].transform);
10351
+ d & 1 && o !== (o = (h[0].name.length > 6 ? `${h[0].name.slice(0, 6)}...` : h[0].name) + "") && Se(s, o), d & 1 && z(e, "top", `-${h[0].strokeLength + 26}px`), d & 1 && z(a, "height", `${h[0].strokeLength}px`), d & 1 && l !== (l = Pe(Oe("item-label-item", { visible: h[0].visible })) + " svelte-1ir3cyd") && y(t, "class", l), d & 1 && z(t, "z-index", h[0].zIndex), d & 1 && z(t, "transform", h[0].transform);
10352
10352
  },
10353
10353
  i: X,
10354
10354
  o: X,
@@ -10427,10 +10427,10 @@ function ng(i) {
10427
10427
  }
10428
10428
  return {
10429
10429
  c() {
10430
- t = z("div");
10430
+ t = B("div");
10431
10431
  for (let l = 0; l < e.length; l += 1)
10432
10432
  e[l].c();
10433
- y(t, "class", "item-labels-container svelte-gk8s47"), Qe(() => i[9].call(t)), T(t, "opacity", i[4] ? 1 : 0);
10433
+ y(t, "class", "item-labels-container svelte-gk8s47"), Qe(() => i[9].call(t)), z(t, "opacity", i[4] ? 1 : 0);
10434
10434
  },
10435
10435
  m(l, c) {
10436
10436
  M(l, t, c);
@@ -10439,7 +10439,7 @@ function ng(i) {
10439
10439
  o = wi(t, i[9].bind(t)), s = !0;
10440
10440
  },
10441
10441
  p(l, [c]) {
10442
- c & 3 && (r = l[1], se(), e = $e(e, c, a, 1, l, r, n, t, Pt, $s, null, Ks), re()), c & 16 && T(t, "opacity", l[4] ? 1 : 0);
10442
+ c & 3 && (r = l[1], se(), e = $e(e, c, a, 1, l, r, n, t, Pt, $s, null, Ks), re()), c & 16 && z(t, "opacity", l[4] ? 1 : 0);
10443
10443
  },
10444
10444
  i(l) {
10445
10445
  if (!s) {
@@ -10466,13 +10466,13 @@ function og(i, t, e) {
10466
10466
  const { Raycaster: n, Vector3: o } = E;
10467
10467
  let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, u = null, h = null, d, m, g = [], p = !0;
10468
10468
  const A = (S, Q) => {
10469
- const H = new n(), N = S.camera.position.clone(), _ = new o().fromArray(Q.modelPosition), ee = _.distanceTo(N);
10469
+ const H = new n(), N = S.camera.position.clone(), _ = new o().fromArray(Q.modelPosition), $ = _.distanceTo(N);
10470
10470
  H.set(N.clone(), _.clone().sub(N).normalize());
10471
10471
  const [Y] = S.model.intersectRaycaster(H);
10472
- return !(Y && Y.distance + 1 < ee);
10472
+ return !(Y && Y.distance + 1 < $);
10473
10473
  }, v = (S, Q) => {
10474
- const H = new o(Q.modelPosition[0], Q.modelPosition[1], Q.modelPosition[2]), N = S.project2d(H), _ = N == null ? void 0 : N.x, ee = N == null ? void 0 : N.y;
10475
- return [_, ee];
10474
+ const H = new o(Q.modelPosition[0], Q.modelPosition[1], Q.modelPosition[2]), N = S.project2d(H), _ = N == null ? void 0 : N.x, $ = N == null ? void 0 : N.y;
10475
+ return [_, $];
10476
10476
  }, b = (S) => `translate(${S[0]}px, ${S[1]}px)`, w = (S, Q) => g.length === 0 ? !1 : !!g.find((N) => S[0] >= N[0] - Q && S[0] <= N[0] + Q || S[1] >= N[1] - er && S[1] <= N[1] + er);
10477
10477
  function k(S, Q) {
10478
10478
  switch (Q) {
@@ -10486,13 +10486,13 @@ function og(i, t, e) {
10486
10486
  return Math.ceil(-92.59 * S + 300);
10487
10487
  }
10488
10488
  }
10489
- const C = (S, Q) => {
10489
+ const I = (S, Q) => {
10490
10490
  const H = Q.map((_) => {
10491
- const ee = v(S, _), Y = _.name.length * ig, ae = k(_.modelPosition[1], c), de = (r ? A(S, _) : !0) && !w([ee[0], ee[1] + ae], Y);
10491
+ const $ = v(S, _), Y = _.name.length * ig, ae = k(_.modelPosition[1], c), de = (r ? A(S, _) : !0) && !w([$[0], $[1] + ae], Y);
10492
10492
  if (!de)
10493
10493
  return fe(R({}, _), { visible: de });
10494
- g.push(ee);
10495
- const pe = b(ee);
10494
+ g.push($);
10495
+ const pe = b($);
10496
10496
  return fe(R({}, _), {
10497
10497
  visible: de,
10498
10498
  transform: pe,
@@ -10501,37 +10501,37 @@ function og(i, t, e) {
10501
10501
  }), N = H.filter(({ visible: _ }) => _).map((_) => ({
10502
10502
  itemLabelItem: _,
10503
10503
  distance: new o(_.modelPosition[0], _.modelPosition[1], _.modelPosition[2]).clone().distanceTo(S.camera.position)
10504
- })).sort((_, ee) => _.distance - ee.distance);
10504
+ })).sort((_, $) => _.distance - $.distance);
10505
10505
  return H.map((_) => {
10506
- const ee = N.findIndex((Y) => Y.itemLabelItem.id === _.id);
10507
- return ee !== void 0 ? fe(R({}, _), { zIndex: ee * 10 }) : _;
10506
+ const $ = N.findIndex((Y) => Y.itemLabelItem.id === _.id);
10507
+ return $ !== void 0 ? fe(R({}, _), { zIndex: $ * 10 }) : _;
10508
10508
  });
10509
- }, I = () => {
10510
- g = [], e(1, h = C(s, h));
10509
+ }, C = () => {
10510
+ g = [], e(1, h = I(s, h));
10511
10511
  };
10512
10512
  Ka(() => {
10513
10513
  W();
10514
10514
  });
10515
- const B = () => {
10515
+ const T = () => {
10516
10516
  e(4, p = !1), x();
10517
10517
  };
10518
10518
  Ke(() => {
10519
- e(1, h = a), u = a, I(), F(), s.on("cameraUpdate", B);
10519
+ e(1, h = a), u = a, C(), F(), s.on("cameraUpdate", T);
10520
10520
  });
10521
10521
  const x = jl(
10522
10522
  () => {
10523
- e(4, p = !0), I();
10523
+ e(4, p = !0), C();
10524
10524
  },
10525
10525
  300
10526
10526
  ), F = () => {
10527
10527
  window.addEventListener("resize", O, !1);
10528
10528
  }, W = () => {
10529
- u !== a && (e(1, h = a), u = a, I());
10529
+ u !== a && (e(1, h = a), u = a, C());
10530
10530
  }, O = () => {
10531
- s.once("renderFrame", I);
10531
+ s.once("renderFrame", C);
10532
10532
  };
10533
10533
  Et(() => {
10534
- s.off("cameraUpdate", B), window.removeEventListener("resize", O, !1);
10534
+ s.off("cameraUpdate", T), window.removeEventListener("resize", O, !1);
10535
10535
  });
10536
10536
  function V() {
10537
10537
  d = this.clientWidth, m = this.clientHeight, e(2, d), e(3, m);
@@ -10707,34 +10707,34 @@ const Y1 = (i, { videoElement: t }) => {
10707
10707
  v.geometry.dispose(), v.material.dispose(), i.scene.remove(v), e.videoTexture && e.videoTexture.image.pause();
10708
10708
  }), e.videoMeshes = [], i.needsRender = !0);
10709
10709
  }, c = () => e.rectPoints.map((v, b) => {
10710
- const w = new E.BufferGeometry(), k = 128, C = [];
10711
- C.push(...v[0].toArray());
10710
+ const w = new E.BufferGeometry(), k = 128, I = [];
10711
+ I.push(...v[0].toArray());
10712
10712
  for (let S = 1; S < k; S++)
10713
- C.push(
10713
+ I.push(
10714
10714
  v[0].x + (v[1].x - v[0].x) * S / k,
10715
10715
  v[0].y + (v[1].y - v[0].y) * S / k,
10716
10716
  v[0].z + (v[1].z - v[0].z) * S / k
10717
10717
  );
10718
- C.push(...v[1].toArray()), C.push(...v[2].toArray());
10718
+ I.push(...v[1].toArray()), I.push(...v[2].toArray());
10719
10719
  for (let S = 1; S < k; S++)
10720
- C.push(
10720
+ I.push(
10721
10721
  v[2].x + (v[3].x - v[2].x) * S / k,
10722
10722
  v[2].y + (v[3].y - v[2].y) * S / k,
10723
10723
  v[2].z + (v[3].z - v[2].z) * S / k
10724
10724
  );
10725
- C.push(...v[3].toArray());
10726
- const I = [];
10727
- I.push(0, 1);
10725
+ I.push(...v[3].toArray());
10726
+ const C = [];
10727
+ C.push(0, 1);
10728
10728
  for (let S = 1; S < k; S++)
10729
- I.push(0, 1 - S / k);
10730
- I.push(0, 0), I.push(1, 0);
10729
+ C.push(0, 1 - S / k);
10730
+ C.push(0, 0), C.push(1, 0);
10731
10731
  for (let S = 1; S < k; S++)
10732
- I.push(1, S / k);
10733
- I.push(1, 1);
10734
- const B = [];
10732
+ C.push(1, S / k);
10733
+ C.push(1, 1);
10734
+ const T = [];
10735
10735
  for (let S = 0; S < k; S++)
10736
- B.push(S, S + 1, k * 2 - S, S, k * 2 - S, k * 2 + 1 - S);
10737
- w.setAttribute("position", new E.BufferAttribute(new Float32Array(C), 3)), w.setAttribute("uv", new E.BufferAttribute(new Float32Array(I), 2)), w.setIndex(new E.BufferAttribute(new Uint32Array(B), 1));
10736
+ T.push(S, S + 1, k * 2 - S, S, k * 2 - S, k * 2 + 1 - S);
10737
+ w.setAttribute("position", new E.BufferAttribute(new Float32Array(I), 3)), w.setAttribute("uv", new E.BufferAttribute(new Float32Array(C), 2)), w.setIndex(new E.BufferAttribute(new Uint32Array(T), 1));
10738
10738
  const x = new E.AxesHelper(10);
10739
10739
  i.scene.add(x);
10740
10740
  const F = new E.MeshBasicMaterial({
@@ -10756,20 +10756,20 @@ const Y1 = (i, { videoElement: t }) => {
10756
10756
  const b = new E.TextureLoader().load(v);
10757
10757
  return b.minFilter = E.LinearFilter, b.magFilter = E.LinearFilter, b.format = E.RGBFormat, b;
10758
10758
  }, h = (v, b) => new Promise((w, k) => {
10759
- const C = new XMLHttpRequest();
10760
- C.onreadystatechange = () => {
10761
- if (C.readyState == 4)
10762
- if (C.status == 200) {
10763
- const I = window.URL || window.webkitURL;
10764
- b = b || document.createElement("video"), b.crossOrigin = "anonymous", b.muted = !0, b.loop = !0, b.playsInline = !0, b.src = I.createObjectURL(C.response);
10765
- const B = new E.VideoTexture(b);
10766
- B.minFilter = E.LinearFilter, B.magFilter = E.LinearFilter, B.format = E.RGBFormat, w(Object.assign(B, { videoSource: v }));
10759
+ const I = new XMLHttpRequest();
10760
+ I.onreadystatechange = () => {
10761
+ if (I.readyState == 4)
10762
+ if (I.status == 200) {
10763
+ const C = window.URL || window.webkitURL;
10764
+ b = b || document.createElement("video"), b.crossOrigin = "anonymous", b.muted = !0, b.loop = !0, b.playsInline = !0, b.src = C.createObjectURL(I.response);
10765
+ const T = new E.VideoTexture(b);
10766
+ T.minFilter = E.LinearFilter, T.magFilter = E.LinearFilter, T.format = E.RGBFormat, w(Object.assign(T, { videoSource: v }));
10767
10767
  } else
10768
- k(new Error("Video download Error: " + C.status));
10769
- }, C.onerror = (I) => k(I), C.open("GET", v), C.responseType = "blob", C.send();
10768
+ k(new Error("Video download Error: " + I.status));
10769
+ }, I.onerror = (C) => k(C), I.open("GET", v), I.responseType = "blob", I.send();
10770
10770
  }), d = (v, b) => G(void 0, null, function* () {
10771
- const { video_src: w, video_poster_src: k, points: C } = v;
10772
- e.videoSource = w, e.rectPoints = ag(C).map((I) => I.map(({ x: B, y: x, z: F }) => new E.Vector3(B, x, F))), e.imageTexture = u(k), b && (e.videoElement = b), e.videoTexture = yield h(e.videoSource, e.videoElement), e.enabled = !!v.enable, e.enabled && a();
10771
+ const { video_src: w, video_poster_src: k, points: I } = v;
10772
+ e.videoSource = w, e.rectPoints = ag(I).map((C) => C.map(({ x: T, y: x, z: F }) => new E.Vector3(T, x, F))), e.imageTexture = u(k), b && (e.videoElement = b), e.videoTexture = yield h(e.videoSource, e.videoElement), e.enabled = !!v.enable, e.enabled && a();
10773
10773
  }), m = (v) => {
10774
10774
  if (!e.enabled)
10775
10775
  return;
@@ -10783,14 +10783,14 @@ const Y1 = (i, { videoElement: t }) => {
10783
10783
  return;
10784
10784
  const v = i.camera.position;
10785
10785
  if (o.forEach((b, w) => {
10786
- const k = b.css3DObject.position.clone(), C = k.clone().sub(v).normalize(), I = new E.Raycaster(v, C), B = i.model.intersectRaycaster(I)[0], x = k.distanceTo(v), F = 0.01;
10787
- B && B.distance + F < x ? b.hide() : b.show();
10786
+ const k = b.css3DObject.position.clone(), I = k.clone().sub(v).normalize(), C = new E.Raycaster(v, I), T = i.model.intersectRaycaster(C)[0], x = k.distanceTo(v), F = 0.01;
10787
+ T && T.distance + F < x ? b.hide() : b.show();
10788
10788
  }), !r()) {
10789
10789
  const b = e.rectPoints.find((w) => {
10790
10790
  const k = w[0].clone().add(w[1]).add(w[2]).add(w[3]).divideScalar(4);
10791
- return w.map((C) => C.clone().add(k).divideScalar(2)).filter((C) => {
10792
- const I = C.distanceTo(v), B = new E.Raycaster(v, C.clone().sub(v).normalize()), x = i.model.intersectRaycaster(B)[0], F = 0.01;
10793
- return !(x && x.distance + F < I);
10791
+ return w.map((I) => I.clone().add(k).divideScalar(2)).filter((I) => {
10792
+ const C = I.distanceTo(v), T = new E.Raycaster(v, I.clone().sub(v).normalize()), x = i.model.intersectRaycaster(T)[0], F = 0.01;
10793
+ return !(x && x.distance + F < C);
10794
10794
  }).length >= 2;
10795
10795
  });
10796
10796
  (!b || b.length === 0) && s(!0);
@@ -10817,7 +10817,7 @@ function cg(i) {
10817
10817
  let t, e, n, o = (i[0].code || i[0].id) + "", s, r, a, l = i[0].name + "", c, u = i[0].icon && tr(i);
10818
10818
  return {
10819
10819
  c() {
10820
- u && u.c(), t = $(), e = z("div"), n = z("span"), s = ke(o), r = $(), a = z("span"), c = ke(l), y(n, "class", "item-model svelte-gduhqw"), y(a, "class", "item-name svelte-gduhqw"), y(e, "class", "item-label-text svelte-gduhqw");
10820
+ u && u.c(), t = ee(), e = B("div"), n = B("span"), s = ke(o), r = ee(), a = B("span"), c = ke(l), y(n, "class", "item-model svelte-gduhqw"), y(a, "class", "item-name svelte-gduhqw"), y(e, "class", "item-label-text svelte-gduhqw");
10821
10821
  },
10822
10822
  m(h, d) {
10823
10823
  u && u.m(h, d), M(h, t, d), M(h, e, d), j(e, n), j(n, s), j(e, r), j(e, a), j(a, c);
@@ -10834,7 +10834,7 @@ function ug(i) {
10834
10834
  let t;
10835
10835
  return {
10836
10836
  c() {
10837
- t = z("div");
10837
+ t = B("div");
10838
10838
  },
10839
10839
  m(e, n) {
10840
10840
  M(e, t, n), i[6](t);
@@ -10849,7 +10849,7 @@ function tr(i) {
10849
10849
  let t, e, n, o, s;
10850
10850
  return {
10851
10851
  c() {
10852
- t = z("div"), e = z("div"), y(e, "class", "icon svelte-gduhqw"), y(e, "style", n = `background-image: url(${i[0].icon})`), y(t, "class", "icon-wrap svelte-gduhqw");
10852
+ t = B("div"), e = B("div"), y(e, "class", "icon svelte-gduhqw"), y(e, "style", n = `background-image: url(${i[0].icon})`), y(t, "class", "icon-wrap svelte-gduhqw");
10853
10853
  },
10854
10854
  m(r, a) {
10855
10855
  M(r, t, a), j(t, e), o || (s = me(t, "click", i[7]), o = !0);
@@ -10870,9 +10870,9 @@ function dg(i) {
10870
10870
  let d = h(i, -1), m = d(i);
10871
10871
  return {
10872
10872
  c() {
10873
- t = z("div"), e = z("div"), m.c(), s = $(), r = z("div"), y(e, "class", o = Pe(Oe("item-label-item__text-wrap", {
10873
+ t = B("div"), e = B("div"), m.c(), s = ee(), r = B("div"), y(e, "class", o = Pe(Oe("item-label-item__text-wrap", {
10874
10874
  "item-label-item__custom": Boolean(typeof i[0].render == "function")
10875
- })) + " svelte-gduhqw"), T(e, "bottom", `${i[0].strokeLength}px`), y(r, "class", a = Pe(Oe("item-label-item__bar", { anchor: i[1] })) + " svelte-gduhqw"), T(r, "height", `${i[0].strokeLength}px`), y(t, "class", l = Pe(Oe("item-label-item", { fold: i[0].isFold })) + " svelte-gduhqw"), T(t, "z-index", i[0].zIndex), T(t, "transform", i[0].transform);
10875
+ })) + " svelte-gduhqw"), z(e, "bottom", `${i[0].strokeLength}px`), y(r, "class", a = Pe(Oe("item-label-item__bar", { anchor: i[1] })) + " svelte-gduhqw"), z(r, "height", `${i[0].strokeLength}px`), y(t, "class", l = Pe(Oe("item-label-item", { fold: i[0].isFold })) + " svelte-gduhqw"), z(t, "z-index", i[0].zIndex), z(t, "transform", i[0].transform);
10876
10876
  },
10877
10877
  m(g, p) {
10878
10878
  M(g, t, p), j(t, e), m.m(e, null), j(t, s), j(t, r), c || (u = me(e, "click", i[4]), c = !0);
@@ -10880,7 +10880,7 @@ function dg(i) {
10880
10880
  p(g, [p]) {
10881
10881
  d === (d = h(g, p)) && m ? m.p(g, p) : (m.d(1), m = d(g), m && (m.c(), m.m(e, null))), p & 1 && o !== (o = Pe(Oe("item-label-item__text-wrap", {
10882
10882
  "item-label-item__custom": Boolean(typeof g[0].render == "function")
10883
- })) + " svelte-gduhqw") && y(e, "class", o), p & 1 && T(e, "bottom", `${g[0].strokeLength}px`), p & 2 && a !== (a = Pe(Oe("item-label-item__bar", { anchor: g[1] })) + " svelte-gduhqw") && y(r, "class", a), p & 1 && T(r, "height", `${g[0].strokeLength}px`), p & 1 && l !== (l = Pe(Oe("item-label-item", { fold: g[0].isFold })) + " svelte-gduhqw") && y(t, "class", l), p & 1 && T(t, "z-index", g[0].zIndex), p & 1 && T(t, "transform", g[0].transform);
10883
+ })) + " svelte-gduhqw") && y(e, "class", o), p & 1 && z(e, "bottom", `${g[0].strokeLength}px`), p & 2 && a !== (a = Pe(Oe("item-label-item__bar", { anchor: g[1] })) + " svelte-gduhqw") && y(r, "class", a), p & 1 && z(r, "height", `${g[0].strokeLength}px`), p & 1 && l !== (l = Pe(Oe("item-label-item", { fold: g[0].isFold })) + " svelte-gduhqw") && y(t, "class", l), p & 1 && z(t, "z-index", g[0].zIndex), p & 1 && z(t, "transform", g[0].transform);
10884
10884
  },
10885
10885
  i: X,
10886
10886
  o: X,
@@ -11037,10 +11037,10 @@ function vg(i) {
11037
11037
  }
11038
11038
  return {
11039
11039
  c() {
11040
- t = z("div");
11040
+ t = B("div");
11041
11041
  for (let l = 0; l < e.length; l += 1)
11042
11042
  e[l].c();
11043
- y(t, "class", "item-labels-container svelte-gk8s47"), Qe(() => i[12].call(t)), T(t, "opacity", i[5] ? 1 : 0);
11043
+ y(t, "class", "item-labels-container svelte-gk8s47"), Qe(() => i[12].call(t)), z(t, "opacity", i[5] ? 1 : 0);
11044
11044
  },
11045
11045
  m(l, c) {
11046
11046
  M(l, t, c);
@@ -11049,7 +11049,7 @@ function vg(i) {
11049
11049
  o = wi(t, i[12].bind(t)), s = !0;
11050
11050
  },
11051
11051
  p(l, c) {
11052
- c[0] & 71 && (r = l[1], se(), e = $e(e, c, a, 1, l, r, n, t, Pt, rr, null, or), re()), c[0] & 32 && T(t, "opacity", l[5] ? 1 : 0);
11052
+ c[0] & 71 && (r = l[1], se(), e = $e(e, c, a, 1, l, r, n, t, Pt, rr, null, or), re()), c[0] & 32 && z(t, "opacity", l[5] ? 1 : 0);
11053
11053
  },
11054
11054
  i(l) {
11055
11055
  if (!s) {
@@ -11076,15 +11076,15 @@ function yg(i, t, e) {
11076
11076
  const { Raycaster: n, Vector3: o } = E;
11077
11077
  let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, { maxVisibleDistance: u } = t, h = null, d = null, m = (s == null ? void 0 : s.currentMode) === Ve.Mode.Panorama, g, p, A = [], v = !0;
11078
11078
  const b = (H, N) => {
11079
- const _ = H.camera.position.clone(), ee = new o(N.modelPosition[0], N.modelPosition[1], N.modelPosition[2]), Y = ee.distanceTo(_);
11080
- return u !== void 0 && H.state.mode === Ve.Mode.Panorama && Y > u ? !1 : nr(H, ee.clone().sub(_).normalize(), _, Y);
11079
+ const _ = H.camera.position.clone(), $ = new o(N.modelPosition[0], N.modelPosition[1], N.modelPosition[2]), Y = $.distanceTo(_);
11080
+ return u !== void 0 && H.state.mode === Ve.Mode.Panorama && Y > u ? !1 : nr(H, $.clone().sub(_).normalize(), _, Y);
11081
11081
  }, w = (H) => {
11082
- const { camera: N, model: _ } = s, { x: ee, y: Y, z: ae } = H.clone().project(N), he = (ee + 1) / 2, de = (2 - (Y + 1)) / 2, Ie = Math.abs(ae) < 1 && [he, de].every((Me) => Me < 1 && Me >= 0);
11082
+ const { camera: N, model: _ } = s, { x: $, y: Y, z: ae } = H.clone().project(N), he = ($ + 1) / 2, de = (2 - (Y + 1)) / 2, Ie = Math.abs(ae) < 1 && [he, de].every((Me) => Me < 1 && Me >= 0);
11083
11083
  return Boolean(Ie);
11084
11084
  }, k = (H, N) => {
11085
- const _ = new o(N.modelPosition[0], N.modelPosition[1], N.modelPosition[2]), ee = H.project2d(_), Y = ee == null ? void 0 : ee.x, ae = ee == null ? void 0 : ee.y;
11085
+ const _ = new o(N.modelPosition[0], N.modelPosition[1], N.modelPosition[2]), $ = H.project2d(_), Y = $ == null ? void 0 : $.x, ae = $ == null ? void 0 : $.y;
11086
11086
  return [Y, ae];
11087
- }, C = (H, N) => {
11087
+ }, I = (H, N) => {
11088
11088
  const _ = N.map((Y) => {
11089
11089
  if (H.state.panoIndex !== Y.panoIndex)
11090
11090
  return fe(R({}, Y), { visible: !1 });
@@ -11100,29 +11100,29 @@ function yg(i, t, e) {
11100
11100
  transform: Ie,
11101
11101
  strokeLength: he
11102
11102
  });
11103
- }), ee = _.filter(({ visible: Y }) => Y).map((Y) => ({
11103
+ }), $ = _.filter(({ visible: Y }) => Y).map((Y) => ({
11104
11104
  itemLabelItem: Y,
11105
11105
  distance: new o(Y.modelPosition[0], Y.modelPosition[1], Y.modelPosition[2]).clone().distanceTo(H.camera.position)
11106
11106
  })).sort((Y, ae) => Y.distance - ae.distance);
11107
11107
  return _.map((Y) => {
11108
- const ae = ee.findIndex((he) => he.itemLabelItem.id === Y.id);
11108
+ const ae = $.findIndex((he) => he.itemLabelItem.id === Y.id);
11109
11109
  return ae !== void 0 ? fe(R({}, Y), { zIndex: ae * 10 }) : Y;
11110
11110
  });
11111
- }, I = () => {
11112
- A = [], e(1, d = C(s, d));
11113
- }, B = () => {
11111
+ }, C = () => {
11112
+ A = [], e(1, d = I(s, d));
11113
+ }, T = () => {
11114
11114
  e(5, v = !1), x();
11115
11115
  }, x = jl(
11116
11116
  () => {
11117
- e(5, v = !0), I();
11117
+ e(5, v = !0), C();
11118
11118
  },
11119
11119
  300
11120
11120
  ), F = () => {
11121
- s.once("renderFrame", I);
11121
+ s.once("renderFrame", C);
11122
11122
  }, W = () => {
11123
11123
  window.addEventListener("resize", F, !1);
11124
11124
  }, O = () => {
11125
- h !== a && (e(1, d = ir(a)), h = a, I());
11125
+ h !== a && (e(1, d = ir(a)), h = a, C());
11126
11126
  }, V = (H, N) => {
11127
11127
  let _ = [];
11128
11128
  for (let Y = 0; Y < N.length; Y++) {
@@ -11130,20 +11130,20 @@ function yg(i, t, e) {
11130
11130
  (u === void 0 || de <= u || s.state.mode !== Ve.Mode.Panorama) && _.push({ panoIndex: he, obVector: ae, distance: de });
11131
11131
  }
11132
11132
  _ = _.sort((Y, ae) => Y.distance - ae.distance);
11133
- let ee;
11133
+ let $;
11134
11134
  for (let Y = 0; Y < _.length; Y++) {
11135
11135
  const { obVector: ae, distance: he, panoIndex: de } = _[Y];
11136
11136
  if (!nr(s, H, ae, he)) {
11137
- ee = de;
11137
+ $ = de;
11138
11138
  break;
11139
11139
  }
11140
11140
  }
11141
- return typeof ee == "number" ? N[ee] : void 0;
11141
+ return typeof $ == "number" ? N[$] : void 0;
11142
11142
  }, S = (H) => {
11143
11143
  if (s.state.mode === Ve.Mode.Panorama)
11144
11144
  return;
11145
- const N = s.work.observers, _ = new o().fromArray(H.position), ee = V(_, N);
11146
- if (ee && (H.observerIndex = ee.panoIndex), typeof H.observerIndex == "number") {
11145
+ const N = s.work.observers, _ = new o().fromArray(H.position), $ = V(_, N);
11146
+ if ($ && (H.observerIndex = $.panoIndex), typeof H.observerIndex == "number") {
11147
11147
  const Y = N[H.observerIndex], ae = _.clone().sub(Y.position).normalize(), he = {
11148
11148
  longitude: Math.PI + Math.atan2(ae.x, ae.z),
11149
11149
  latitude: Math.acos(ae.y / ae.length()) - Math.PI / 2
@@ -11163,9 +11163,9 @@ function yg(i, t, e) {
11163
11163
  Ka(() => {
11164
11164
  O();
11165
11165
  }), Ke(() => {
11166
- e(1, d = ir(a)), h = a, I(), W(), s.on("cameraUpdate", B);
11166
+ e(1, d = ir(a)), h = a, C(), W(), s.on("cameraUpdate", T);
11167
11167
  }), Et(() => {
11168
- s.off("cameraUpdate", B), window.removeEventListener("resize", F, !1);
11168
+ s.off("cameraUpdate", T), window.removeEventListener("resize", F, !1);
11169
11169
  });
11170
11170
  function Q() {
11171
11171
  g = this.clientWidth, p = this.clientHeight, e(3, g), e(4, p);
@@ -11340,7 +11340,7 @@ function kg(i) {
11340
11340
  let t, e, n, o, s, r, a, l;
11341
11341
  return {
11342
11342
  c() {
11343
- t = z("div"), e = z("div"), n = z("span"), n.textContent = `${i[8]}`, o = $(), s = z("i"), y(n, "class", "plugin-DoorLabelPlugin-txt svelte-wpy7pz"), y(s, "class", "plugin-DoorLabelPlugin-icon svelte-wpy7pz"), y(e, "class", r = Pe(Oe("plugin-DoorLabelPlugin-cnt", i[0].toward)) + " svelte-wpy7pz"), y(e, "style", `transform: ${i[6] || "initial"};pointer-events: ${i[5] ? "auto" : "none"};opacity: ${i[5] ? 1 : 0}`), y(e, "data-camera-toward", i[7]), y(t, "style", `left: ${i[3] || 0}%;top: ${i[4] || 0}%;opacity: ${i[5] ? 1 : 0}`), y(t, "class", "plugin-DoorLabelPlugin-item svelte-wpy7pz");
11343
+ t = B("div"), e = B("div"), n = B("span"), n.textContent = `${i[8]}`, o = ee(), s = B("i"), y(n, "class", "plugin-DoorLabelPlugin-txt svelte-wpy7pz"), y(s, "class", "plugin-DoorLabelPlugin-icon svelte-wpy7pz"), y(e, "class", r = Pe(Oe("plugin-DoorLabelPlugin-cnt", i[0].toward)) + " svelte-wpy7pz"), y(e, "style", `transform: ${i[6] || "initial"};pointer-events: ${i[5] ? "auto" : "none"};opacity: ${i[5] ? 1 : 0}`), y(e, "data-camera-toward", i[7]), y(t, "style", `left: ${i[3] || 0}%;top: ${i[4] || 0}%;opacity: ${i[5] ? 1 : 0}`), y(t, "class", "plugin-DoorLabelPlugin-item svelte-wpy7pz");
11344
11344
  },
11345
11345
  m(c, u) {
11346
11346
  M(c, t, u), j(t, e), j(e, n), j(e, o), j(e, s), i[10](t), a || (l = me(e, "click", i[9]), a = !0);
@@ -11473,24 +11473,24 @@ class Bg extends Pg {
11473
11473
  }), this.fixDoorPosition();
11474
11474
  });
11475
11475
  f(this, "fixDoorPosition", () => {
11476
- var u, h, d, m, g, p, A, v, b, w, k, C;
11476
+ var u, h, d, m, g, p, A, v, b, w, k, I;
11477
11477
  const { panoIndex: e, camera: n } = this.five;
11478
11478
  if (e === null)
11479
11479
  return;
11480
11480
  if (this.five.currentMode !== "Panorama")
11481
11481
  return this.hideAllLabels();
11482
11482
  const o = this.five.getElement(), s = o.clientWidth, r = o.clientHeight, a = n.getWorldDirection(new q()), l = [], c = [...this.labelItems];
11483
- if (c.forEach((I, B) => {
11484
- if (I.visible) {
11485
- const x = n.position.distanceTo(I.position), F = I.position.clone().add(new q(0, this.OffsetHeight, 0)), O = F.clone().sub(n.position).normalize().angleTo(a), V = F.clone().project(n), S = (V.x + 1) / 2.2 * 100, Q = (-V.y + 1) / 2.2 * 100, H = S >= 0 && S <= 100 && Q >= 0 && Q <= 100 && x > this.MinVisibledistance && x <= this.MaxVisibledistance;
11486
- I.left = S, I.top = Q, I.inSight = H && O < Math.PI / 2, I.cameraToward = Sg(this.five), H ? l.push({ disFromCameraToLabel: x, left: S, top: Q, index: B }) : I.transform = "translate(-50%, -50%)";
11483
+ if (c.forEach((C, T) => {
11484
+ if (C.visible) {
11485
+ const x = n.position.distanceTo(C.position), F = C.position.clone().add(new q(0, this.OffsetHeight, 0)), O = F.clone().sub(n.position).normalize().angleTo(a), V = F.clone().project(n), S = (V.x + 1) / 2.2 * 100, Q = (-V.y + 1) / 2.2 * 100, H = S >= 0 && S <= 100 && Q >= 0 && Q <= 100 && x > this.MinVisibledistance && x <= this.MaxVisibledistance;
11486
+ C.left = S, C.top = Q, C.inSight = H && O < Math.PI / 2, C.cameraToward = Sg(this.five), H ? l.push({ disFromCameraToLabel: x, left: S, top: Q, index: T }) : C.transform = "translate(-50%, -50%)";
11487
11487
  } else
11488
- I.inSight = !1;
11488
+ C.inSight = !1;
11489
11489
  }), l.length > 1) {
11490
- let I = 0;
11491
- l.sort((B, x) => x.disFromCameraToLabel - B.disFromCameraToLabel);
11492
- for (let B = 1; B < l.length; B++) {
11493
- const { index: x, left: F, top: W } = l[B - 1], { index: O, left: V, top: S } = l[B], Q = this.container.children[x], H = this.container.children[O];
11490
+ let C = 0;
11491
+ l.sort((T, x) => x.disFromCameraToLabel - T.disFromCameraToLabel);
11492
+ for (let T = 1; T < l.length; T++) {
11493
+ const { index: x, left: F, top: W } = l[T - 1], { index: O, left: V, top: S } = l[T], Q = this.container.children[x], H = this.container.children[O];
11494
11494
  if (!Q || !H)
11495
11495
  return;
11496
11496
  const N = {
@@ -11502,9 +11502,9 @@ class Bg extends Pg {
11502
11502
  left: s * V / 100,
11503
11503
  top: r * S / 100,
11504
11504
  width: (b = (v = (A = H.children) == null ? void 0 : A[0]) == null ? void 0 : v.clientWidth) != null ? b : 0,
11505
- height: (C = (k = (w = H.children) == null ? void 0 : w[0]) == null ? void 0 : k.clientHeight) != null ? C : 0
11505
+ height: (I = (k = (w = H.children) == null ? void 0 : w[0]) == null ? void 0 : k.clientHeight) != null ? I : 0
11506
11506
  };
11507
- Lg(N, _) && (I++, c[x].transform = `translate(-50%, ${(I - 1) * 100 - 50}%)`, c[O].transform = `translate(-50%, ${I * 100 - 50}%)`);
11507
+ Lg(N, _) && (C++, c[x].transform = `translate(-50%, ${(C - 1) * 100 - 50}%)`, c[O].transform = `translate(-50%, ${C * 100 - 50}%)`);
11508
11508
  }
11509
11509
  }
11510
11510
  this.labelItems = c, this.render();
@@ -11617,28 +11617,26 @@ const Og = 2, Rg = 3, Qg = 3, Fg = 2;
11617
11617
  function Hg(i) {
11618
11618
  const t = i.width, n = i.unitLength / t, o = t / 2, s = i.path, r = new E.CurvePath();
11619
11619
  s.forEach((C) => {
11620
- const I = Gg(C);
11621
- I && r.add(I);
11620
+ const T = Gg(C);
11621
+ T && r.add(T);
11622
11622
  });
11623
11623
  const a = Math.ceil(r.getLength() * 100), l = r.getPoints(a), c = l.length, u = Tc(l.map((C) => [C.x, C.z])), d = (c - 1) * Og * Rg, m = 2 * c, g = m * Qg, p = m * Fg, A = new Uint32Array(d), v = new Float32Array(g), b = new Float32Array(p);
11624
- let w = 0;
11624
+ let w = 0, k = 0;
11625
11625
  for (let C = 0; C < l.length; C++) {
11626
- const [I, B] = u[C][0], x = l[C], { x: F, y: W, z: O } = x;
11627
- w += C > 0 ? l[C - 1].clone().sub(l[C]).length() : 0;
11628
- const V = new q(F + I * o, W + 0.05, O + B * o);
11629
- v[C * 6 + 0] = V.x, v[C * 6 + 1] = V.y, v[C * 6 + 2] = V.z;
11630
- const S = new q(F - I * o, W + 0.05, O - B * o);
11631
- v[C * 6 + 3] = S.x, v[C * 6 + 4] = S.y, v[C * 6 + 5] = S.z;
11632
- const Q = w / t / n;
11633
- if (b[C * 4 + 0] = 0, b[C * 4 + 1] = Q, b[C * 4 + 2] = 1, b[C * 4 + 3] = Q, i.skipPositions) {
11634
- const H = new E.Vector3().lerpVectors(V, S, 0.5);
11635
- if (i.skipPositions.some((_) => _.distanceTo(H) < 0.26))
11626
+ const [T, x] = u[C][0], F = l[C], { x: W, y: O, z: V } = F, S = new q(W + T * o, O + 0.05, V + x * o);
11627
+ v[C * 6 + 0] = S.x, v[C * 6 + 1] = S.y, v[C * 6 + 2] = S.z;
11628
+ const Q = new q(W - T * o, O + 0.05, V - x * o);
11629
+ v[C * 6 + 3] = Q.x, v[C * 6 + 4] = Q.y, v[C * 6 + 5] = Q.z, w += C > 0 ? l[C - 1].clone().sub(l[C]).length() : 0;
11630
+ const H = w / t / n;
11631
+ if (k = H, b[C * 4 + 0] = 0, b[C * 4 + 1] = H, b[C * 4 + 2] = 1, b[C * 4 + 3] = H, i.skipPositions) {
11632
+ const N = new E.Vector3().lerpVectors(S, Q, 0.5);
11633
+ if (i.skipPositions.some(($) => $.distanceTo(N) < 0.26))
11636
11634
  continue;
11637
11635
  }
11638
11636
  C !== l.length - 1 && (A[C * 6 + 0] = C * 2 + 0, A[C * 6 + 1] = C * 2 + 2, A[C * 6 + 2] = C * 2 + 1, A[C * 6 + 3] = C * 2 + 2, A[C * 6 + 4] = C * 2 + 3, A[C * 6 + 5] = C * 2 + 1);
11639
11637
  }
11640
- const k = new E.BufferGeometry();
11641
- return k.setAttribute("position", new E.BufferAttribute(v, 3)), k.setAttribute("uv", new E.BufferAttribute(b, 2)), k.setIndex(new E.BufferAttribute(A, 1)), k;
11638
+ const I = new E.BufferGeometry();
11639
+ return I.setAttribute("position", new E.BufferAttribute(v, 3)), I.setAttribute("uv", new E.BufferAttribute(b, 2)), I.setIndex(new E.BufferAttribute(A, 1)), { geometry: I, maxU: k };
11642
11640
  }
11643
11641
  function Gg(i) {
11644
11642
  if (_g(i)) {
@@ -11671,6 +11669,8 @@ const Wg = `
11671
11669
  uniform float backgroundOpacity;
11672
11670
  // \u6574\u4F53\u900F\u660E\u5EA6
11673
11671
  uniform float opacity;
11672
+ // \u6700\u5927 U \u503C
11673
+ uniform float maxU;
11674
11674
  // \u7EB9\u7406\u5750\u6807
11675
11675
  varying vec2 vUv;
11676
11676
 
@@ -11687,6 +11687,20 @@ const Wg = `
11687
11687
  return image;
11688
11688
  }
11689
11689
 
11690
+ // \u83B7\u53D6\u7EBF\u6027\u6E10\u53D8\u7684\u900F\u660E\u5EA6
11691
+ float linearGradientOpacity() {
11692
+ // \u5F53\u524D\u7684 u \u503C
11693
+ float u = vUv.y;
11694
+ float gradientLength = 1.0;
11695
+ if (u <= gradientLength) {
11696
+ return u / gradientLength; // \u5728 [0, gradientLength] \u8303\u56F4\u5185\uFF0C\u900F\u660E\u5EA6\u4E3A [0, 1]
11697
+ } else if (u <= maxU - gradientLength) {
11698
+ return 1.0; // \u5728 (gradientLength, maxU - gradientLength) \u8303\u56F4\u5185\uFF0C\u900F\u660E\u5EA6\u4E3A 1
11699
+ } else {
11700
+ return (maxU - u) / gradientLength; // \u5728 [maxU - gradientLength, maxU] \u8303\u56F4\u5185\uFF0C\u900F\u660E\u5EA6\u4E3A [1, 0]
11701
+ }
11702
+ }
11703
+
11690
11704
  void main() {
11691
11705
  vec4 image = getTextureColor();
11692
11706
  // \u8BBE\u7F6E\u80CC\u666F\u989C\u8272
@@ -11695,6 +11709,7 @@ const Wg = `
11695
11709
  gl_FragColor = mix(gl_FragColor, image, image.a);
11696
11710
  // \u8BBE\u7F6E\u6574\u4F53\u900F\u660E\u5EA6
11697
11711
  gl_FragColor.a = gl_FragColor.a * opacity;
11712
+ gl_FragColor.a = gl_FragColor.a * linearGradientOpacity();
11698
11713
  }
11699
11714
  `;
11700
11715
  class uo {
@@ -11743,7 +11758,8 @@ class uo {
11743
11758
  mapOpacity: { value: 1 },
11744
11759
  backgroundColor: { value: new E.Color() },
11745
11760
  backgroundOpacity: { value: 0 },
11746
- opacity: { value: 1 }
11761
+ opacity: { value: 1 },
11762
+ maxU: { value: 0 }
11747
11763
  }
11748
11764
  });
11749
11765
  this.mesh = new E.Mesh(n, o), this.mesh.name = "GuideLineModeItem", this.plugin.hooks.on("show", this.onPluginShow), this.plugin.hooks.on("hide", this.onPluginHide), this.plugin.hooks.on("enable", this.onPluginEnable), this.plugin.hooks.on("disable", this.onPluginDisable), this.five.on("modeChange", this.onFiveModeChange), this.onFiveModeChange(this.five.getCurrentState().mode);
@@ -11780,18 +11796,18 @@ class uo {
11780
11796
  this.path = n, this.setGeometryByPath(n, e);
11781
11797
  }
11782
11798
  setGeometryByPath(t, e) {
11783
- var a, l, c;
11799
+ var l, c, u;
11784
11800
  if (this.disposed)
11785
11801
  return this.logError("disposed");
11786
- const n = (a = e == null ? void 0 : e.scale) != null ? a : this.scale, o = (l = e == null ? void 0 : e.width) != null ? l : this.width, s = (c = e == null ? void 0 : e.unit_length) != null ? c : this.unitLength;
11802
+ const n = (l = e == null ? void 0 : e.scale) != null ? l : this.scale, o = (c = e == null ? void 0 : e.width) != null ? c : this.width, s = (u = e == null ? void 0 : e.unit_length) != null ? u : this.unitLength;
11787
11803
  this.path = t, this.scale = n, this.width = o, this.unitLength = s;
11788
- const r = Hg({
11804
+ const { geometry: r, maxU: a } = Hg({
11789
11805
  path: t,
11790
11806
  width: o * n,
11791
11807
  unitLength: s * n,
11792
11808
  skipPositions: this.skippedPositions
11793
11809
  });
11794
- this.mesh.geometry = r;
11810
+ this.mesh.geometry = r, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = a, this.five.needsRender = !0;
11795
11811
  }
11796
11812
  setSkippedPanoGroup(t) {
11797
11813
  if (this.disposed)
@@ -13508,7 +13524,7 @@ function fr(i) {
13508
13524
  let t, e, n, o, s, r, a, l = i[3] && mr(i);
13509
13525
  return {
13510
13526
  c() {
13511
- t = z("div"), e = we("svg"), n = we("defs"), o = we("linearGradient"), s = we("stop"), r = we("stop"), l && l.c(), y(s, "offset", "25%"), y(s, "stop-color", i[5]), y(s, "stop-opacity", "1"), y(r, "offset", "100%"), y(r, "stop-color", i[5]), y(r, "stop-opacity", "0.5"), y(o, "x1", 0.5), y(o, "y1", 0.5), y(o, "x2", i[8]), y(o, "y2", 0.5), y(o, "id", i[10]), y(o, "gradientUnits", "userSpaceOnUse"), y(e, "class", "straight-line svelte-xuejcm"), y(e, "viewBox", a = "0 0 " + i[8] + " " + i[7]), y(e, "preserveAspectRatio", "none"), y(t, "class", "line svelte-xuejcm"), U(t, "vertical", i[9]), U(t, "horizontal", !i[9]), T(t, "width", i[8] + "px"), T(t, "height", i[7] + "px");
13527
+ t = B("div"), e = we("svg"), n = we("defs"), o = we("linearGradient"), s = we("stop"), r = we("stop"), l && l.c(), y(s, "offset", "25%"), y(s, "stop-color", i[5]), y(s, "stop-opacity", "1"), y(r, "offset", "100%"), y(r, "stop-color", i[5]), y(r, "stop-opacity", "0.5"), y(o, "x1", 0.5), y(o, "y1", 0.5), y(o, "x2", i[8]), y(o, "y2", 0.5), y(o, "id", i[10]), y(o, "gradientUnits", "userSpaceOnUse"), y(e, "class", "straight-line svelte-xuejcm"), y(e, "viewBox", a = "0 0 " + i[8] + " " + i[7]), y(e, "preserveAspectRatio", "none"), y(t, "class", "line svelte-xuejcm"), U(t, "vertical", i[9]), U(t, "horizontal", !i[9]), z(t, "width", i[8] + "px"), z(t, "height", i[7] + "px");
13512
13528
  },
13513
13529
  m(c, u) {
13514
13530
  M(c, t, u), j(t, e), j(e, n), j(n, o), j(o, s), j(o, r), l && l.m(e, null);
@@ -13516,7 +13532,7 @@ function fr(i) {
13516
13532
  p(c, u) {
13517
13533
  u & 32 && y(s, "stop-color", c[5]), u & 32 && y(r, "stop-color", c[5]), u & 256 && y(o, "x2", c[8]), c[3] ? l ? (l.p(c, u), u & 8 && P(l, 1)) : (l = mr(c), l.c(), P(l, 1), l.m(e, null)) : l && (se(), D(l, 1, 1, () => {
13518
13534
  l = null;
13519
- }), re()), u & 384 && a !== (a = "0 0 " + c[8] + " " + c[7]) && y(e, "viewBox", a), u & 512 && U(t, "vertical", c[9]), u & 512 && U(t, "horizontal", !c[9]), u & 256 && T(t, "width", c[8] + "px"), u & 128 && T(t, "height", c[7] + "px");
13535
+ }), re()), u & 384 && a !== (a = "0 0 " + c[8] + " " + c[7]) && y(e, "viewBox", a), u & 512 && U(t, "vertical", c[9]), u & 512 && U(t, "horizontal", !c[9]), u & 256 && z(t, "width", c[8] + "px"), u & 128 && z(t, "height", c[7] + "px");
13520
13536
  },
13521
13537
  d(c) {
13522
13538
  c && L(t), l && l.d();
@@ -13627,14 +13643,14 @@ function gr(i) {
13627
13643
  let t, e, n, o, s;
13628
13644
  return {
13629
13645
  c() {
13630
- t = z("div"), y(t, "class", "shadow svelte-faoauy"), y(t, "style", e = `
13646
+ t = B("div"), y(t, "class", "shadow svelte-faoauy"), y(t, "style", e = `
13631
13647
  left:${Xe(i[5])};
13632
13648
  bottom:${Xe(i[6])};
13633
13649
  box-shadow: 0 0 ${Xe(i[10])} ${Xe(i[11])} rgba(0, 0, 0, ${i[12]});
13634
13650
  ${i[8] ? "transform: translateX(-50%); left: 50%" : ""}
13635
13651
  ${i[9] ? "transform: translateX(-50%); top: 50%" : ""}
13636
13652
  ${i[7] ? "transform: translate(-50%, -50%); left: 50%; top: 50%;" : ""}
13637
- `), T(t, "width", Xe(i[3])), T(t, "height", Xe(i[4])), T(t, "z-index", i[13]);
13653
+ `), z(t, "width", Xe(i[3])), z(t, "height", Xe(i[4])), z(t, "z-index", i[13]);
13638
13654
  },
13639
13655
  m(r, a) {
13640
13656
  M(r, t, a), s = !0;
@@ -13647,7 +13663,7 @@ function gr(i) {
13647
13663
  ${i[8] ? "transform: translateX(-50%); left: 50%" : ""}
13648
13664
  ${i[9] ? "transform: translateX(-50%); top: 50%" : ""}
13649
13665
  ${i[7] ? "transform: translate(-50%, -50%); left: 50%; top: 50%;" : ""}
13650
- `)) && y(t, "style", e), a & 8 && T(t, "width", Xe(i[3])), a & 16 && T(t, "height", Xe(i[4])), a & 8192 && T(t, "z-index", i[13]);
13666
+ `)) && y(t, "style", e), a & 8 && z(t, "width", Xe(i[3])), a & 16 && z(t, "height", Xe(i[4])), a & 8192 && z(t, "z-index", i[13]);
13651
13667
  },
13652
13668
  i(r) {
13653
13669
  s || (r && Qe(() => {
@@ -13755,7 +13771,7 @@ function Mp(i) {
13755
13771
  const s = () => i[9](t, o), r = () => i[9](null, o);
13756
13772
  return {
13757
13773
  c() {
13758
- t = z("span"), n = ke(e), y(t, "class", "text-char svelte-1b2n9wi");
13774
+ t = B("span"), n = ke(e), y(t, "class", "text-char svelte-1b2n9wi");
13759
13775
  },
13760
13776
  m(a, l) {
13761
13777
  M(a, t, l), j(t, n), s();
@@ -13773,7 +13789,7 @@ function Tp(i) {
13773
13789
  const n = () => i[8](t, e), o = () => i[8](null, e);
13774
13790
  return {
13775
13791
  c() {
13776
- t = z("span"), t.textContent = "\xA0", y(t, "class", "text-char svelte-1b2n9wi");
13792
+ t = B("span"), t.textContent = "\xA0", y(t, "class", "text-char svelte-1b2n9wi");
13777
13793
  },
13778
13794
  m(s, r) {
13779
13795
  M(s, t, r), n();
@@ -13843,34 +13859,34 @@ function Bp(i, t, e) {
13843
13859
  let n, { inDelay: o = 0 } = t, { outDelay: s = 0 } = t, { content: r } = t, { unfolded: a } = t, { isFistUnfoldedUpdate: l = !0 } = t;
13844
13860
  const c = `__EMOJI_SPLIT_${Wi}__`, u = `__EMOJI_${Wi}__`, h = `__SPACE_${Wi}__`;
13845
13861
  let d, m, g = [];
13846
- function p(C) {
13847
- const I = [], B = new RegExp(new RegExp("\\p{Regional_Indicator}\\p{Regional_Indicator}|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?(\\u200D\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?)+|\\p{Emoji_Presentation}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)", "gu"));
13848
- return C.slice().replace(B, (x) => `${c}${u}${x}${c}`).split(c).forEach((x) => x.startsWith(u) ? I.push({
13862
+ function p(I) {
13863
+ const C = [], T = new RegExp(new RegExp("\\p{Regional_Indicator}\\p{Regional_Indicator}|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?(\\u200D\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?)+|\\p{Emoji_Presentation}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)", "gu"));
13864
+ return I.slice().replace(T, (x) => `${c}${u}${x}${c}`).split(c).forEach((x) => x.startsWith(u) ? C.push({
13849
13865
  id: Ge(),
13850
13866
  content: x.slice(u.length)
13851
- }) : I.push(...x.split("").map((F) => F === " " ? h : F).map((F) => ({ id: Ge(), content: F })))), I;
13867
+ }) : C.push(...x.split("").map((F) => F === " " ? h : F).map((F) => ({ id: Ge(), content: F })))), C;
13852
13868
  }
13853
13869
  function A() {
13854
13870
  if (!m)
13855
13871
  return;
13856
- const C = !a;
13857
- m.reversed !== C && m.reverse(), m.play();
13872
+ const I = !a;
13873
+ m.reversed !== I && m.reverse(), m.play();
13858
13874
  }
13859
- function v(C) {
13875
+ function v(I) {
13860
13876
  if (l) {
13861
13877
  e(4, l = !1);
13862
13878
  return;
13863
13879
  }
13864
- clearTimeout(d), d = setTimeout(A, C ? o : s);
13880
+ clearTimeout(d), d = setTimeout(A, I ? o : s);
13865
13881
  }
13866
- function b(C) {
13867
- const I = function() {
13868
- const B = fp((x) => C[x].getBoundingClientRect().x, [Math.min(C.length - 1, 10), Math.min(C.length - 1, 30)]);
13869
- if (B > 0)
13870
- return B;
13882
+ function b(I) {
13883
+ const C = function() {
13884
+ const T = fp((x) => I[x].getBoundingClientRect().x, [Math.min(I.length - 1, 10), Math.min(I.length - 1, 30)]);
13885
+ if (T > 0)
13886
+ return T;
13871
13887
  }();
13872
13888
  m = _o({
13873
- targets: C.slice(0, I).filter(Zt),
13889
+ targets: I.slice(0, C).filter(Zt),
13874
13890
  autoplay: !1,
13875
13891
  duration: 400,
13876
13892
  scale: [0.7, 1],
@@ -13882,20 +13898,20 @@ function Bp(i, t, e) {
13882
13898
  easing: "easeInOutCubic"
13883
13899
  }), a && m.seek(m.duration);
13884
13900
  }
13885
- function w(C, I) {
13886
- Be[C ? "unshift" : "push"](() => {
13887
- g[I] = C, e(1, g);
13901
+ function w(I, C) {
13902
+ Be[I ? "unshift" : "push"](() => {
13903
+ g[C] = I, e(1, g);
13888
13904
  });
13889
13905
  }
13890
- function k(C, I) {
13891
- Be[C ? "unshift" : "push"](() => {
13892
- g[I] = C, e(1, g);
13906
+ function k(I, C) {
13907
+ Be[I ? "unshift" : "push"](() => {
13908
+ g[C] = I, e(1, g);
13893
13909
  });
13894
13910
  }
13895
- return i.$$set = (C) => {
13896
- "inDelay" in C && e(5, o = C.inDelay), "outDelay" in C && e(6, s = C.outDelay), "content" in C && e(0, r = C.content), "unfolded" in C && e(7, a = C.unfolded), "isFistUnfoldedUpdate" in C && e(4, l = C.isFistUnfoldedUpdate);
13911
+ return i.$$set = (I) => {
13912
+ "inDelay" in I && e(5, o = I.inDelay), "outDelay" in I && e(6, s = I.outDelay), "content" in I && e(0, r = I.content), "unfolded" in I && e(7, a = I.unfolded), "isFistUnfoldedUpdate" in I && e(4, l = I.isFistUnfoldedUpdate);
13897
13913
  }, i.$$.update = () => {
13898
- i.$$.dirty & 1 && e(2, n = p(r)), i.$$.dirty & 128 && v(a), i.$$.dirty & 2 && b(g.filter((C) => !!C));
13914
+ i.$$.dirty & 1 && e(2, n = p(r)), i.$$.dirty & 128 && v(a), i.$$.dirty & 2 && b(g.filter((I) => !!I));
13899
13915
  }, [
13900
13916
  r,
13901
13917
  g,
@@ -13942,7 +13958,7 @@ function vr(i) {
13942
13958
  }
13943
13959
  }), {
13944
13960
  c() {
13945
- t = z("div"), K(e.$$.fragment), n = $(), o = z("div"), y(o, "class", s = "arrow " + i[0] + " svelte-1ogmlqq"), T(o, "background-image", "url(" + jp + ")"), y(t, "class", "arrow-wrapper svelte-1ogmlqq");
13961
+ t = B("div"), K(e.$$.fragment), n = ee(), o = B("div"), y(o, "class", s = "arrow " + i[0] + " svelte-1ogmlqq"), z(o, "background-image", "url(" + jp + ")"), y(t, "class", "arrow-wrapper svelte-1ogmlqq");
13946
13962
  },
13947
13963
  m(h, d) {
13948
13964
  M(h, t, d), J(e, t, null), j(t, n), j(t, o), l = !0, c || (u = me(o, "click", i[5]), c = !0);
@@ -14047,14 +14063,14 @@ function br(i) {
14047
14063
  }
14048
14064
  }), {
14049
14065
  c() {
14050
- t = z("div"), K(e.$$.fragment), y(t, "class", "text svelte-1fuzm7v"), T(t, "transform", i[7]);
14066
+ t = B("div"), K(e.$$.fragment), y(t, "class", "text svelte-1fuzm7v"), z(t, "transform", i[7]);
14051
14067
  },
14052
14068
  m(o, s) {
14053
14069
  M(o, t, s), J(e, t, null), i[10](t), n = !0;
14054
14070
  },
14055
14071
  p(o, s) {
14056
14072
  const r = {};
14057
- s & 1 && (r.unfolded = o[0]), s & 2 && (r.content = o[1]), s & 32 && (r.outDelay = o[5]), e.$set(r), s & 128 && T(t, "transform", o[7]);
14073
+ s & 1 && (r.unfolded = o[0]), s & 2 && (r.content = o[1]), s & 32 && (r.outDelay = o[5]), e.$set(r), s & 128 && z(t, "transform", o[7]);
14058
14074
  },
14059
14075
  i(o) {
14060
14076
  n || (P(e.$$.fragment, o), n = !0);
@@ -14078,7 +14094,7 @@ function yr(i) {
14078
14094
  }
14079
14095
  }), {
14080
14096
  c() {
14081
- t = z("div"), K(e.$$.fragment), y(t, "class", "arrow svelte-1fuzm7v");
14097
+ t = B("div"), K(e.$$.fragment), y(t, "class", "arrow svelte-1fuzm7v");
14082
14098
  },
14083
14099
  m(o, s) {
14084
14100
  M(o, t, s), J(e, t, null), n = !0;
@@ -14102,7 +14118,7 @@ function Np(i) {
14102
14118
  let t, e, n, o = i[1] && br(i), s = i[3] < i[4] && yr(i);
14103
14119
  return {
14104
14120
  c() {
14105
- o && o.c(), t = $(), s && s.c(), e = ge();
14121
+ o && o.c(), t = ee(), s && s.c(), e = ge();
14106
14122
  },
14107
14123
  m(r, a) {
14108
14124
  o && o.m(r, a), M(r, t, a), s && s.m(r, a), M(r, e, a), n = !0;
@@ -14191,7 +14207,7 @@ function wr(i) {
14191
14207
  }
14192
14208
  }), {
14193
14209
  c() {
14194
- K(t.$$.fragment), e = $(), K(n.$$.fragment), o = $(), s = z("div"), K(r.$$.fragment), y(s, "class", "content svelte-nlvd3x");
14210
+ K(t.$$.fragment), e = ee(), K(n.$$.fragment), o = ee(), s = B("div"), K(r.$$.fragment), y(s, "class", "content svelte-nlvd3x");
14195
14211
  },
14196
14212
  m(d, m) {
14197
14213
  J(t, d, m), M(d, e, m), J(n, d, m), M(d, o, m), M(d, s, m), J(r, s, null), a = !0, l || (c = [
@@ -14322,7 +14338,7 @@ function $p(i) {
14322
14338
  let t, e, n = ((s = i[3]) == null ? void 0 : s.inputting) && Cr(), o = ((r = i[3]) == null ? void 0 : r.placeholder) && Er(i);
14323
14339
  return {
14324
14340
  c() {
14325
- n && n.c(), t = $(), o && o.c(), e = ge();
14341
+ n && n.c(), t = ee(), o && o.c(), e = ge();
14326
14342
  },
14327
14343
  m(a, l) {
14328
14344
  n && n.m(a, l), M(a, t, l), o && o.m(a, l), M(a, e, l);
@@ -14361,7 +14377,7 @@ function Cr(i) {
14361
14377
  let t;
14362
14378
  return {
14363
14379
  c() {
14364
- t = z("div"), y(t, "class", "caret svelte-i9wdo4");
14380
+ t = B("div"), y(t, "class", "caret svelte-i9wdo4");
14365
14381
  },
14366
14382
  m(e, n) {
14367
14383
  M(e, t, n);
@@ -14375,7 +14391,7 @@ function Er(i) {
14375
14391
  let t, e = i[3].placeholder + "", n;
14376
14392
  return {
14377
14393
  c() {
14378
- t = z("span"), n = ke(e), y(t, "class", "placeholder svelte-i9wdo4");
14394
+ t = B("span"), n = ke(e), y(t, "class", "placeholder svelte-i9wdo4");
14379
14395
  },
14380
14396
  m(o, s) {
14381
14397
  M(o, t, s), j(t, n);
@@ -14396,7 +14412,7 @@ function t0(i) {
14396
14412
  }
14397
14413
  return e = a(i), n = r[e] = s[e](i), {
14398
14414
  c() {
14399
- t = z("div"), n.c(), y(t, "class", "text svelte-i9wdo4"), T(t, "max-width", typeof i[1] == "number" ? it(i[1]) : i[1]), T(t, "-webkit-line-clamp", i[0]);
14415
+ t = B("div"), n.c(), y(t, "class", "text svelte-i9wdo4"), z(t, "max-width", typeof i[1] == "number" ? it(i[1]) : i[1]), z(t, "-webkit-line-clamp", i[0]);
14400
14416
  },
14401
14417
  m(l, c) {
14402
14418
  M(l, t, c), r[e].m(t, null), o = !0;
@@ -14405,7 +14421,7 @@ function t0(i) {
14405
14421
  let u = e;
14406
14422
  e = a(l), e === u ? r[e].p(l, c) : (se(), D(r[u], 1, 1, () => {
14407
14423
  r[u] = null;
14408
- }), re(), n = r[e], n ? n.p(l, c) : (n = r[e] = s[e](l), n.c()), P(n, 1), n.m(t, null)), c & 2 && T(t, "max-width", typeof l[1] == "number" ? it(l[1]) : l[1]), c & 1 && T(t, "-webkit-line-clamp", l[0]);
14424
+ }), re(), n = r[e], n ? n.p(l, c) : (n = r[e] = s[e](l), n.c()), P(n, 1), n.m(t, null)), c & 2 && z(t, "max-width", typeof l[1] == "number" ? it(l[1]) : l[1]), c & 1 && z(t, "-webkit-line-clamp", l[0]);
14409
14425
  },
14410
14426
  i(l) {
14411
14427
  o || (P(n), o = !0);
@@ -14468,7 +14484,7 @@ function Pr(i) {
14468
14484
  let u = (i[0].data.description || ((d = i[0].data.edit) == null ? void 0 : d.description)) && Ir(i);
14469
14485
  return {
14470
14486
  c() {
14471
- K(t.$$.fragment), e = $(), n = z("div"), o = z("div"), s = z("div"), r = z("div"), K(a.$$.fragment), l = $(), u && u.c(), y(r, "class", "title svelte-1oxrkr1"), y(s, "class", "plane svelte-1oxrkr1"), y(o, "class", "plane__wrapper svelte-1oxrkr1"), T(o, "transform", i[1] ? "translateY(-15px)" : "translateY(0)"), y(n, "class", "plane__container svelte-1oxrkr1"), U(n, "unfolded", i[1]), U(n, "folded", i[3]);
14487
+ K(t.$$.fragment), e = ee(), n = B("div"), o = B("div"), s = B("div"), r = B("div"), K(a.$$.fragment), l = ee(), u && u.c(), y(r, "class", "title svelte-1oxrkr1"), y(s, "class", "plane svelte-1oxrkr1"), y(o, "class", "plane__wrapper svelte-1oxrkr1"), z(o, "transform", i[1] ? "translateY(-15px)" : "translateY(0)"), y(n, "class", "plane__container svelte-1oxrkr1"), U(n, "unfolded", i[1]), U(n, "folded", i[3]);
14472
14488
  },
14473
14489
  m(m, g) {
14474
14490
  J(t, m, g), M(m, e, g), M(m, n, g), j(n, o), j(o, s), j(s, r), J(a, r, null), j(s, l), u && u.m(s, null), c = !0;
@@ -14480,7 +14496,7 @@ function Pr(i) {
14480
14496
  const A = {};
14481
14497
  g & 4 && (A.text = m[2]), g & 1 && (A.edit = (v = m[0].data.edit) == null ? void 0 : v.title), a.$set(A), m[0].data.description || ((b = m[0].data.edit) == null ? void 0 : b.description) ? u ? (u.p(m, g), g & 1 && P(u, 1)) : (u = Ir(m), u.c(), P(u, 1), u.m(s, null)) : u && (se(), D(u, 1, 1, () => {
14482
14498
  u = null;
14483
- }), re()), g & 2 && T(o, "transform", m[1] ? "translateY(-15px)" : "translateY(0)"), (!c || g & 2) && U(n, "unfolded", m[1]), (!c || g & 8) && U(n, "folded", m[3]);
14499
+ }), re()), g & 2 && z(o, "transform", m[1] ? "translateY(-15px)" : "translateY(0)"), (!c || g & 2) && U(n, "unfolded", m[1]), (!c || g & 8) && U(n, "folded", m[3]);
14484
14500
  },
14485
14501
  i(m) {
14486
14502
  c || (P(t.$$.fragment, m), P(a.$$.fragment, m), P(u), c = !0);
@@ -14504,7 +14520,7 @@ function Ir(i) {
14504
14520
  }
14505
14521
  }), {
14506
14522
  c() {
14507
- t = z("div"), K(e.$$.fragment), y(t, "class", "description svelte-1oxrkr1");
14523
+ t = B("div"), K(e.$$.fragment), y(t, "class", "description svelte-1oxrkr1");
14508
14524
  },
14509
14525
  m(s, r) {
14510
14526
  M(s, t, r), J(e, t, null), n = !0;
@@ -14751,7 +14767,7 @@ function A0(i) {
14751
14767
  let t, e, n;
14752
14768
  return {
14753
14769
  c() {
14754
- t = z("button"), y(t, "class", "sc-carousel-button sc-carousel-dot__dot svelte-1mgyhhn"), U(t, "sc-carousel-dot__dot_active", i[0]);
14770
+ t = B("button"), y(t, "class", "sc-carousel-button sc-carousel-dot__dot svelte-1mgyhhn"), U(t, "sc-carousel-dot__dot_active", i[0]);
14755
14771
  },
14756
14772
  m(o, s) {
14757
14773
  M(o, t, s), e || (n = me(t, "click", i[1]), e = !0);
@@ -14800,7 +14816,7 @@ function Dr(i, t) {
14800
14816
  key: i,
14801
14817
  first: null,
14802
14818
  c() {
14803
- e = z("div"), K(n.$$.fragment), o = $(), y(e, "class", "sc-carousel-dots__dot-container svelte-670fde"), this.first = e;
14819
+ e = B("div"), K(n.$$.fragment), o = ee(), y(e, "class", "sc-carousel-dots__dot-container svelte-670fde"), this.first = e;
14804
14820
  },
14805
14821
  m(a, l) {
14806
14822
  M(a, e, l), J(n, e, null), j(e, o), s = !0;
@@ -14830,7 +14846,7 @@ function w0(i) {
14830
14846
  }
14831
14847
  return {
14832
14848
  c() {
14833
- t = z("div");
14849
+ t = B("div");
14834
14850
  for (let a = 0; a < e.length; a += 1)
14835
14851
  e[a].c();
14836
14852
  y(t, "class", "sc-carousel-dots__container svelte-670fde");
@@ -14887,7 +14903,7 @@ function I0(i) {
14887
14903
  let t, e, n, o;
14888
14904
  return {
14889
14905
  c() {
14890
- t = z("button"), e = z("i"), y(e, "class", "sc-carousel-arrow__arrow svelte-1bftafx"), U(e, "sc-carousel-arrow__arrow-next", i[0] === wt), U(e, "sc-carousel-arrow__arrow-prev", i[0] === qt), y(t, "class", "sc-carousel-button sc-carousel-arrow__circle svelte-1bftafx"), U(t, "sc-carousel-arrow__circle_disabled", i[1]);
14906
+ t = B("button"), e = B("i"), y(e, "class", "sc-carousel-arrow__arrow svelte-1bftafx"), U(e, "sc-carousel-arrow__arrow-next", i[0] === wt), U(e, "sc-carousel-arrow__arrow-prev", i[0] === qt), y(t, "class", "sc-carousel-button sc-carousel-arrow__circle svelte-1bftafx"), U(t, "sc-carousel-arrow__circle_disabled", i[1]);
14891
14907
  },
14892
14908
  m(s, r) {
14893
14909
  M(s, t, r), j(t, e), n || (o = me(t, "click", i[2]), n = !0);
@@ -14923,13 +14939,13 @@ function D0(i) {
14923
14939
  let t;
14924
14940
  return {
14925
14941
  c() {
14926
- t = z("div"), y(t, "class", "sc-carousel-progress__indicator svelte-i7yfid"), T(t, "width", i[0] + "%");
14942
+ t = B("div"), y(t, "class", "sc-carousel-progress__indicator svelte-i7yfid"), z(t, "width", i[0] + "%");
14927
14943
  },
14928
14944
  m(e, n) {
14929
14945
  M(e, t, n);
14930
14946
  },
14931
14947
  p(e, [n]) {
14932
- n & 1 && T(t, "width", e[0] + "%");
14948
+ n & 1 && z(t, "width", e[0] + "%");
14933
14949
  },
14934
14950
  i: X,
14935
14951
  o: X,
@@ -15746,7 +15762,7 @@ function PA(i) {
15746
15762
  }
15747
15763
  }), e.$on("click", i[23]), {
15748
15764
  c() {
15749
- t = z("div"), K(e.$$.fragment), y(t, "class", "sc-carousel__arrow-container svelte-sme1z4");
15765
+ t = B("div"), K(e.$$.fragment), y(t, "class", "sc-carousel__arrow-container svelte-sme1z4");
15750
15766
  },
15751
15767
  m(o, s) {
15752
15768
  M(o, t, s), J(e, t, null), n = !0;
@@ -15772,7 +15788,7 @@ function Fr(i) {
15772
15788
  props: { value: i[7] }
15773
15789
  }), {
15774
15790
  c() {
15775
- t = z("div"), K(e.$$.fragment), y(t, "class", "sc-carousel-progress__container svelte-sme1z4");
15791
+ t = B("div"), K(e.$$.fragment), y(t, "class", "sc-carousel-progress__container svelte-sme1z4");
15776
15792
  },
15777
15793
  m(o, s) {
15778
15794
  M(o, t, s), J(e, t, null), n = !0;
@@ -15832,7 +15848,7 @@ function IA(i) {
15832
15848
  }
15833
15849
  }), e.$on("click", i[14].showNextPage), {
15834
15850
  c() {
15835
- t = z("div"), K(e.$$.fragment), y(t, "class", "sc-carousel__arrow-container svelte-sme1z4");
15851
+ t = B("div"), K(e.$$.fragment), y(t, "class", "sc-carousel__arrow-container svelte-sme1z4");
15836
15852
  },
15837
15853
  m(o, s) {
15838
15854
  M(o, t, s), J(e, t, null), n = !0;
@@ -15918,7 +15934,7 @@ function xA(i) {
15918
15934
  let A = i[3] && Fr(i), v = i[1] && Hr(i), b = i[4] && Gr(i);
15919
15935
  return {
15920
15936
  c() {
15921
- t = z("div"), e = z("div"), m && m.c(), n = $(), o = z("div"), s = z("div"), p && p.c(), a = $(), A && A.c(), l = $(), v && v.c(), c = $(), b && b.c(), y(s, "class", "sc-carousel__pages-container svelte-sme1z4"), T(s, "transform", "translateX(" + i[8] + "px)"), T(s, "transition-duration", i[9] + "ms"), T(s, "transition-timing-function", i[0]), y(o, "class", "sc-carousel__pages-window svelte-sme1z4"), y(e, "class", "sc-carousel__content-container svelte-sme1z4"), y(t, "class", "sc-carousel__carousel-container svelte-sme1z4");
15937
+ t = B("div"), e = B("div"), m && m.c(), n = ee(), o = B("div"), s = B("div"), p && p.c(), a = ee(), A && A.c(), l = ee(), v && v.c(), c = ee(), b && b.c(), y(s, "class", "sc-carousel__pages-container svelte-sme1z4"), z(s, "transform", "translateX(" + i[8] + "px)"), z(s, "transition-duration", i[9] + "ms"), z(s, "transition-timing-function", i[0]), y(o, "class", "sc-carousel__pages-window svelte-sme1z4"), y(e, "class", "sc-carousel__content-container svelte-sme1z4"), y(t, "class", "sc-carousel__carousel-container svelte-sme1z4");
15922
15938
  },
15923
15939
  m(w, k) {
15924
15940
  M(w, t, k), j(t, e), m && m.m(e, null), j(e, n), j(e, o), j(o, s), p && p.m(s, null), i[39](s), j(o, a), A && A.m(o, null), i[40](o), j(e, l), v && v.m(e, null), j(t, c), b && b.m(t, null), u = !0, h || (d = [
@@ -15946,7 +15962,7 @@ function xA(i) {
15946
15962
  w[36],
15947
15963
  u ? en(g, w[36], k, CA) : nn(w[36]),
15948
15964
  Or
15949
- ), (!u || k[0] & 256) && T(s, "transform", "translateX(" + w[8] + "px)"), (!u || k[0] & 512) && T(s, "transition-duration", w[9] + "ms"), (!u || k[0] & 1) && T(s, "transition-timing-function", w[0]), r && Kt(r.update) && k[0] & 2048 && r.update.call(null, {
15965
+ ), (!u || k[0] & 256) && z(s, "transform", "translateX(" + w[8] + "px)"), (!u || k[0] & 512) && z(s, "transition-duration", w[9] + "ms"), (!u || k[0] & 1) && z(s, "transition-timing-function", w[0]), r && Kt(r.update) && k[0] & 2048 && r.update.call(null, {
15950
15966
  thresholdProvider: w[38]
15951
15967
  }), w[3] ? A ? (A.p(w, k), k[0] & 8 && P(A, 1)) : (A = Fr(w), A.c(), P(A, 1), A.m(o, null)) : A && (se(), D(A, 1, 1, () => {
15952
15968
  A = null;
@@ -15979,7 +15995,7 @@ function DA(i, t, e) {
15979
15995
  loaded: () => e(6, s = ve)
15980
15996
  })(te);
15981
15997
  }), p = Ci();
15982
- let { timingFunction: A = "ease-in-out" } = t, { arrows: v = !0 } = t, { infinite: b = !0 } = t, { initialPageIndex: w = 0 } = t, { duration: k = 500 } = t, { autoplay: C = !1 } = t, { autoplayDuration: I = 3e3 } = t, { autoplayDirection: B = wt } = t, { pauseOnFocus: x = !1 } = t, { autoplayProgressVisible: F = !1 } = t, { dots: W = !0 } = t, { swiping: O = !0 } = t, { particlesToShow: V = 1 } = t, { particlesToScroll: S = 1 } = t;
15998
+ let { timingFunction: A = "ease-in-out" } = t, { arrows: v = !0 } = t, { infinite: b = !0 } = t, { initialPageIndex: w = 0 } = t, { duration: k = 500 } = t, { autoplay: I = !1 } = t, { autoplayDuration: C = 3e3 } = t, { autoplayDirection: T = wt } = t, { pauseOnFocus: x = !1 } = t, { autoplayProgressVisible: F = !1 } = t, { dots: W = !0 } = t, { swiping: O = !0 } = t, { particlesToShow: V = 1 } = t, { particlesToScroll: S = 1 } = t;
15983
15999
  function Q(te, ve) {
15984
16000
  return G(this, null, function* () {
15985
16001
  const je = wn(ve, "animated", !0);
@@ -16000,7 +16016,7 @@ function DA(i, t, e) {
16000
16016
  yield m.showNextPage({ animated: ve });
16001
16017
  });
16002
16018
  }
16003
- let _ = 0, ee, Y;
16019
+ let _ = 0, $, Y;
16004
16020
  const ae = iA(({ width: te }) => {
16005
16021
  e(11, _ = te), h.particleWidth = _ / h.particlesToShow, nA({
16006
16022
  particlesContainerChildren: Y.children,
@@ -16021,7 +16037,7 @@ function DA(i, t, e) {
16021
16037
  }
16022
16038
  Ke(() => {
16023
16039
  G(this, null, function* () {
16024
- yield Jo(), Y && ee && (h.particlesCountWithoutClones = Y.children.length, yield Jo(), h.infinite && he(), h.particlesCount = Y.children.length, m.showPage(w, { animated: !1 }), ae.observe(ee));
16040
+ yield Jo(), Y && $ && (h.particlesCountWithoutClones = Y.children.length, yield Jo(), h.infinite && he(), h.particlesCount = Y.children.length, m.showPage(w, { animated: !1 }), ae.observe($));
16025
16041
  });
16026
16042
  }), Et(() => {
16027
16043
  ae.disconnect(), d.reset();
@@ -16070,14 +16086,14 @@ function DA(i, t, e) {
16070
16086
  }
16071
16087
  function ye(te) {
16072
16088
  Be[te ? "unshift" : "push"](() => {
16073
- ee = te, e(12, ee);
16089
+ $ = te, e(12, $);
16074
16090
  });
16075
16091
  }
16076
16092
  const et = (te) => de(te.detail);
16077
16093
  return i.$$set = (te) => {
16078
- "timingFunction" in te && e(0, A = te.timingFunction), "arrows" in te && e(1, v = te.arrows), "infinite" in te && e(2, b = te.infinite), "initialPageIndex" in te && e(24, w = te.initialPageIndex), "duration" in te && e(25, k = te.duration), "autoplay" in te && e(26, C = te.autoplay), "autoplayDuration" in te && e(27, I = te.autoplayDuration), "autoplayDirection" in te && e(28, B = te.autoplayDirection), "pauseOnFocus" in te && e(29, x = te.pauseOnFocus), "autoplayProgressVisible" in te && e(3, F = te.autoplayProgressVisible), "dots" in te && e(4, W = te.dots), "swiping" in te && e(30, O = te.swiping), "particlesToShow" in te && e(31, V = te.particlesToShow), "particlesToScroll" in te && e(32, S = te.particlesToScroll), "$$scope" in te && e(36, o = te.$$scope);
16094
+ "timingFunction" in te && e(0, A = te.timingFunction), "arrows" in te && e(1, v = te.arrows), "infinite" in te && e(2, b = te.infinite), "initialPageIndex" in te && e(24, w = te.initialPageIndex), "duration" in te && e(25, k = te.duration), "autoplay" in te && e(26, I = te.autoplay), "autoplayDuration" in te && e(27, C = te.autoplayDuration), "autoplayDirection" in te && e(28, T = te.autoplayDirection), "pauseOnFocus" in te && e(29, x = te.pauseOnFocus), "autoplayProgressVisible" in te && e(3, F = te.autoplayProgressVisible), "dots" in te && e(4, W = te.dots), "swiping" in te && e(30, O = te.swiping), "particlesToShow" in te && e(31, V = te.particlesToShow), "particlesToScroll" in te && e(32, S = te.particlesToScroll), "$$scope" in te && e(36, o = te.$$scope);
16079
16095
  }, i.$$.update = () => {
16080
- i.$$.dirty[0] & 32 && p("pageChange", r), i.$$.dirty[0] & 4 && (h.infinite = b), i.$$.dirty[0] & 33554432 && (h.durationMsInit = k), i.$$.dirty[0] & 67108864 && (h.autoplay = C), i.$$.dirty[0] & 134217728 && (h.autoplayDuration = I), i.$$.dirty[0] & 268435456 && (h.autoplayDirection = B), i.$$.dirty[0] & 536870912 && (h.pauseOnFocus = x), i.$$.dirty[1] & 1 && (h.particlesToShowInit = V), i.$$.dirty[1] & 2 && (h.particlesToScrollInit = S);
16096
+ i.$$.dirty[0] & 32 && p("pageChange", r), i.$$.dirty[0] & 4 && (h.infinite = b), i.$$.dirty[0] & 33554432 && (h.durationMsInit = k), i.$$.dirty[0] & 67108864 && (h.autoplay = I), i.$$.dirty[0] & 134217728 && (h.autoplayDuration = C), i.$$.dirty[0] & 268435456 && (h.autoplayDirection = T), i.$$.dirty[0] & 536870912 && (h.pauseOnFocus = x), i.$$.dirty[1] & 1 && (h.particlesToShowInit = V), i.$$.dirty[1] & 2 && (h.particlesToScrollInit = S);
16081
16097
  }, [
16082
16098
  A,
16083
16099
  v,
@@ -16091,7 +16107,7 @@ function DA(i, t, e) {
16091
16107
  c,
16092
16108
  u,
16093
16109
  _,
16094
- ee,
16110
+ $,
16095
16111
  Y,
16096
16112
  m,
16097
16113
  de,
@@ -16105,9 +16121,9 @@ function DA(i, t, e) {
16105
16121
  ue,
16106
16122
  w,
16107
16123
  k,
16108
- C,
16109
16124
  I,
16110
- B,
16125
+ C,
16126
+ T,
16111
16127
  x,
16112
16128
  O,
16113
16129
  V,
@@ -16178,7 +16194,7 @@ function _r(i) {
16178
16194
  let n = e(i), o = n && n(i);
16179
16195
  return {
16180
16196
  c() {
16181
- t = z("div"), o && o.c(), y(t, "class", "media-item svelte-159ski6"), y(t, "draggable", "false");
16197
+ t = B("div"), o && o.c(), y(t, "class", "media-item svelte-159ski6"), y(t, "draggable", "false");
16182
16198
  },
16183
16199
  m(s, r) {
16184
16200
  M(s, t, r), o && o.m(t, null);
@@ -16199,13 +16215,13 @@ function MA(i) {
16199
16215
  let l = a(i), c = l(i);
16200
16216
  return {
16201
16217
  c() {
16202
- c.c(), t = $(), e = z("div"), n = z("div"), o = z("div"), y(o, "class", "video-icon-img svelte-159ski6"), T(o, "background-image", "url(" + i[20]() + ")"), U(o, "canPlay", i[5]), y(n, "class", "video-icon svelte-159ski6"), U(n, "large", i[4] === "large"), U(n, "small", i[4] === "small"), y(e, "class", "video-play-button-container svelte-159ski6"), U(e, "showPlayButton", i[10]);
16218
+ c.c(), t = ee(), e = B("div"), n = B("div"), o = B("div"), y(o, "class", "video-icon-img svelte-159ski6"), z(o, "background-image", "url(" + i[20]() + ")"), U(o, "canPlay", i[5]), y(n, "class", "video-icon svelte-159ski6"), U(n, "large", i[4] === "large"), U(n, "small", i[4] === "small"), y(e, "class", "video-play-button-container svelte-159ski6"), U(e, "showPlayButton", i[10]);
16203
16219
  },
16204
16220
  m(u, h) {
16205
16221
  c.m(u, h), M(u, t, h), M(u, e, h), j(e, n), j(n, o), s || (r = me(o, "click", i[21]), s = !0);
16206
16222
  },
16207
16223
  p(u, h) {
16208
- l === (l = a(u)) && c ? c.p(u, h) : (c.d(1), c = l(u), c && (c.c(), c.m(t.parentNode, t))), h & 8 && T(o, "background-image", "url(" + u[20]() + ")"), h & 32 && U(o, "canPlay", u[5]), h & 16 && U(n, "large", u[4] === "large"), h & 16 && U(n, "small", u[4] === "small"), h & 1024 && U(e, "showPlayButton", u[10]);
16224
+ l === (l = a(u)) && c ? c.p(u, h) : (c.d(1), c = l(u), c && (c.c(), c.m(t.parentNode, t))), h & 8 && z(o, "background-image", "url(" + u[20]() + ")"), h & 32 && U(o, "canPlay", u[5]), h & 16 && U(n, "large", u[4] === "large"), h & 16 && U(n, "small", u[4] === "small"), h & 1024 && U(e, "showPlayButton", u[10]);
16209
16225
  },
16210
16226
  d(u) {
16211
16227
  c.d(u), u && L(t), u && L(e), s = !1, r();
@@ -16216,7 +16232,7 @@ function TA(i) {
16216
16232
  let t, e, n, o;
16217
16233
  return {
16218
16234
  c() {
16219
- t = z("img"), y(t, "class", "media-content svelte-159ski6"), y(t, "style", e = `object-fit: ${i[6]};`), Ye(t.src, n = i[2].url) || y(t, "src", n), y(t, "alt", o = i[2].name), y(t, "draggable", !1);
16235
+ t = B("img"), y(t, "class", "media-content svelte-159ski6"), y(t, "style", e = `object-fit: ${i[6]};`), Ye(t.src, n = i[2].url) || y(t, "src", n), y(t, "alt", o = i[2].name), y(t, "draggable", !1);
16220
16236
  },
16221
16237
  m(s, r) {
16222
16238
  M(s, t, r);
@@ -16233,7 +16249,7 @@ function zA(i) {
16233
16249
  let t, e, n, o, s, r, a;
16234
16250
  return {
16235
16251
  c() {
16236
- t = z("video"), y(t, "class", "media-content svelte-159ski6"), y(t, "style", e = `object-fit: ${i[6]};`), Ye(t.src, n = i[2].videoCoverUrl ? i[2].url : i[2].url + "#t=0.1") || y(t, "src", n), y(t, "poster", o = i[2].videoCoverUrl), y(t, "preload", s = i[2].videoCoverUrl ? "none" : "auto"), y(t, "disablepictureinpicture", ""), t.playsInline = !0, y(t, "paused", ""), t.muted = !0, y(t, "draggable", !1), t.loop = !1, y(t, "crossorigin", ""), t.controls = !1, U(t, "showPlayButton", i[10]);
16252
+ t = B("video"), y(t, "class", "media-content svelte-159ski6"), y(t, "style", e = `object-fit: ${i[6]};`), Ye(t.src, n = i[2].videoCoverUrl ? i[2].url : i[2].url + "#t=0.1") || y(t, "src", n), y(t, "poster", o = i[2].videoCoverUrl), y(t, "preload", s = i[2].videoCoverUrl ? "none" : "auto"), y(t, "disablepictureinpicture", ""), t.playsInline = !0, y(t, "paused", ""), t.muted = !0, y(t, "draggable", !1), t.loop = !1, y(t, "crossorigin", ""), t.controls = !1, U(t, "showPlayButton", i[10]);
16237
16253
  },
16238
16254
  m(l, c) {
16239
16255
  M(l, t, c), i[19](t), r || (a = [
@@ -16256,7 +16272,7 @@ function BA(i) {
16256
16272
  let t, e, n, o;
16257
16273
  return {
16258
16274
  c() {
16259
- t = z("img"), y(t, "class", "media-content svelte-159ski6"), y(t, "style", e = `object-fit: ${i[6]};`), Ye(t.src, n = i[2].videoCoverUrl) || y(t, "src", n), y(t, "alt", o = i[2].name), y(t, "draggable", !1);
16275
+ t = B("img"), y(t, "class", "media-content svelte-159ski6"), y(t, "style", e = `object-fit: ${i[6]};`), Ye(t.src, n = i[2].videoCoverUrl) || y(t, "src", n), y(t, "alt", o = i[2].name), y(t, "draggable", !1);
16260
16276
  },
16261
16277
  m(s, r) {
16262
16278
  M(s, t, r);
@@ -16315,21 +16331,21 @@ function VA(i, t, e) {
16315
16331
  tag: r,
16316
16332
  mediaInstance: n
16317
16333
  });
16318
- }, C = (O) => {
16334
+ }, I = (O) => {
16319
16335
  e(10, m = !0), e(0, s.paused = !0, s), v.emit("playStateChange", {
16320
16336
  event: O,
16321
16337
  state: "paused",
16322
16338
  tag: r,
16323
16339
  mediaInstance: n
16324
16340
  });
16325
- }, I = (O) => {
16341
+ }, C = (O) => {
16326
16342
  e(10, m = !0), e(0, s.paused = !0, s), v.emit("playStateChange", {
16327
16343
  event: O,
16328
16344
  state: "paused",
16329
16345
  tag: r,
16330
16346
  mediaInstance: n
16331
16347
  });
16332
- }, B = (O) => {
16348
+ }, T = (O) => {
16333
16349
  n && n.pause();
16334
16350
  };
16335
16351
  function x(O) {
@@ -16364,9 +16380,9 @@ function VA(i, t, e) {
16364
16380
  o,
16365
16381
  w,
16366
16382
  k,
16367
- C,
16368
16383
  I,
16369
- B,
16384
+ C,
16385
+ T,
16370
16386
  x,
16371
16387
  F,
16372
16388
  W
@@ -16409,7 +16425,7 @@ function Nr(i) {
16409
16425
  }
16410
16426
  return n = u(i), o = c[n] = l[n](i), {
16411
16427
  c() {
16412
- t = z("div"), e = z("div"), o.c(), y(e, "class", "media-list svelte-1mrbqlg"), U(e, "carouselEnabled", i[13]), y(t, "class", "media-list-wrapper svelte-1mrbqlg"), U(t, "unfolded", i[5]);
16428
+ t = B("div"), e = B("div"), o.c(), y(e, "class", "media-list svelte-1mrbqlg"), U(e, "carouselEnabled", i[13]), y(t, "class", "media-list-wrapper svelte-1mrbqlg"), U(t, "unfolded", i[5]);
16413
16429
  },
16414
16430
  m(h, d) {
16415
16431
  M(h, t, d), j(t, e), c[n].m(e, null), a = !0;
@@ -16628,15 +16644,15 @@ function HA(i) {
16628
16644
  }
16629
16645
  function GA(i, t, e) {
16630
16646
  let n, o, s, r, { tag: a } = t, { mediaData: l } = t, { inDelay: c = 0 } = t, { outDelay: u = 0 } = t, { duration: h = 0 } = t, { unfolded: d = !0 } = t, { animation: m = !0 } = t, { mediaItemConfig: g } = t, { enableCarousel: p = !0 } = t, { autoplayConfig: A = { autoplay: !0, autoplayVideo: !1 } } = t, v = [], b = 0, w, k = null;
16631
- const C = vt("hooks"), I = vt("mediaStore");
16632
- function B() {
16647
+ const I = vt("hooks"), C = vt("mediaStore");
16648
+ function T() {
16633
16649
  const V = v[b], S = V == null ? void 0 : V.videoInstance;
16634
16650
  !S || (S.paused ? (S.muted = !1, S.play()) : S.pause());
16635
16651
  }
16636
16652
  Ke(() => {
16637
- C.on("click", (V) => {
16653
+ I.on("click", (V) => {
16638
16654
  var S, Q, H;
16639
- !((H = (Q = (S = a.tag3DContentSvelte) == null ? void 0 : S.domContainer) == null ? void 0 : Q.css3DObject) != null && H.opacityMesh) || V.tag.id === a.id && B();
16655
+ !((H = (Q = (S = a.tag3DContentSvelte) == null ? void 0 : S.domContainer) == null ? void 0 : Q.css3DObject) != null && H.opacityMesh) || V.tag.id === a.id && T();
16640
16656
  }), k = setInterval(
16641
16657
  () => {
16642
16658
  r && (w == null || w.goToNext());
@@ -16644,7 +16660,7 @@ function GA(i, t, e) {
16644
16660
  3e3
16645
16661
  );
16646
16662
  }), Et(() => {
16647
- clearInterval(k), C.off("click", B);
16663
+ clearInterval(k), I.off("click", T);
16648
16664
  });
16649
16665
  function x(V, S) {
16650
16666
  i.$$.not_equal(v[S], V) && (v[S] = V, e(8, v));
@@ -16655,7 +16671,7 @@ function GA(i, t, e) {
16655
16671
  });
16656
16672
  }
16657
16673
  const W = (V) => {
16658
- n || I.set({ currentMediaElement: null }), e(11, b = V.detail);
16674
+ n || C.set({ currentMediaElement: null }), e(11, b = V.detail);
16659
16675
  };
16660
16676
  function O(V) {
16661
16677
  i.$$.not_equal(v[0], V) && (v[0] = V, e(8, v));
@@ -16679,7 +16695,7 @@ function GA(i, t, e) {
16679
16695
  b,
16680
16696
  w,
16681
16697
  o,
16682
- I,
16698
+ C,
16683
16699
  p,
16684
16700
  A,
16685
16701
  x,
@@ -16735,7 +16751,7 @@ function Yr(i) {
16735
16751
  let c = i[2] && Ur(i), u = i[1] && qr(i);
16736
16752
  return {
16737
16753
  c() {
16738
- K(t.$$.fragment), e = $(), n = z("div"), K(o.$$.fragment), s = $(), c && c.c(), r = $(), u && u.c(), a = ge(), y(n, "class", "line svelte-1f7m1lj");
16754
+ K(t.$$.fragment), e = ee(), n = B("div"), K(o.$$.fragment), s = ee(), c && c.c(), r = ee(), u && u.c(), a = ge(), y(n, "class", "line svelte-1f7m1lj");
16739
16755
  },
16740
16756
  m(h, d) {
16741
16757
  J(t, h, d), M(h, e, d), M(h, n, d), J(o, n, null), M(h, s, d), c && c.m(h, d), M(h, r, d), u && u.m(h, d), M(h, a, d), l = !0;
@@ -16771,7 +16787,7 @@ function Ur(i) {
16771
16787
  }
16772
16788
  }), {
16773
16789
  c() {
16774
- t = z("div"), K(e.$$.fragment), y(t, "class", "text svelte-1f7m1lj");
16790
+ t = B("div"), K(e.$$.fragment), y(t, "class", "text svelte-1f7m1lj");
16775
16791
  },
16776
16792
  m(o, s) {
16777
16793
  M(o, t, s), J(e, t, null), n = !0;
@@ -16810,7 +16826,7 @@ function qr(i) {
16810
16826
  }
16811
16827
  }), {
16812
16828
  c() {
16813
- t = z("div"), K(e.$$.fragment), y(t, "class", "media-wrapper svelte-1f7m1lj");
16829
+ t = B("div"), K(e.$$.fragment), y(t, "class", "media-wrapper svelte-1f7m1lj");
16814
16830
  },
16815
16831
  m(o, s) {
16816
16832
  M(o, t, s), J(e, t, null), n = !0;
@@ -16884,7 +16900,7 @@ function Kr(i) {
16884
16900
  let t, e;
16885
16901
  return {
16886
16902
  c() {
16887
- t = z("img"), y(t, "class", "headerImage svelte-sezqcq"), Ye(t.src, e = i[3].headerPictureUrl) || y(t, "src", e), y(t, "alt", "");
16903
+ t = B("img"), y(t, "class", "headerImage svelte-sezqcq"), Ye(t.src, e = i[3].headerPictureUrl) || y(t, "src", e), y(t, "alt", "");
16888
16904
  },
16889
16905
  m(n, o) {
16890
16906
  M(n, t, o);
@@ -16906,10 +16922,10 @@ function $r(i) {
16906
16922
  l[c] = ta(Jr(i, a, c));
16907
16923
  return {
16908
16924
  c() {
16909
- t = z("div"), e = z("div");
16925
+ t = B("div"), e = B("div");
16910
16926
  for (let c = 0; c < r.length; c += 1)
16911
16927
  r[c].c();
16912
- n = $();
16928
+ n = ee();
16913
16929
  for (let c = 0; c < l.length; c += 1)
16914
16930
  l[c].c();
16915
16931
  y(e, "class", "tags svelte-sezqcq"), Qe(() => i[11].call(e)), y(t, "class", "tags-wrapper svelte-sezqcq");
@@ -16956,7 +16972,7 @@ function ea(i) {
16956
16972
  let t, e = i[0] + "", n;
16957
16973
  return {
16958
16974
  c() {
16959
- t = z("div"), n = ke(e), y(t, "class", "tag primary-tag svelte-sezqcq"), T(t, "min-width", Vo);
16975
+ t = B("div"), n = ke(e), y(t, "class", "tag primary-tag svelte-sezqcq"), z(t, "min-width", Vo);
16960
16976
  },
16961
16977
  m(o, s) {
16962
16978
  M(o, t, s), j(t, n);
@@ -16973,7 +16989,7 @@ function ta(i) {
16973
16989
  let t, e = i[0] + "", n;
16974
16990
  return {
16975
16991
  c() {
16976
- t = z("div"), n = ke(e), y(t, "class", "tag secondary-tag svelte-sezqcq"), T(t, "min-width", Vo);
16992
+ t = B("div"), n = ke(e), y(t, "class", "tag secondary-tag svelte-sezqcq"), z(t, "min-width", Vo);
16977
16993
  },
16978
16994
  m(o, s) {
16979
16995
  M(o, t, s), j(t, n);
@@ -16990,7 +17006,7 @@ function na(i) {
16990
17006
  let t, e, n = i[7] && ia(i), o = i[3].highlightText && sa(i);
16991
17007
  return {
16992
17008
  c() {
16993
- t = z("div"), n && n.c(), e = $(), o && o.c(), y(t, "class", "footer svelte-sezqcq");
17009
+ t = B("div"), n && n.c(), e = ee(), o && o.c(), y(t, "class", "footer svelte-sezqcq");
16994
17010
  },
16995
17011
  m(s, r) {
16996
17012
  M(s, t, r), n && n.m(t, null), j(t, e), o && o.m(t, null);
@@ -17007,7 +17023,7 @@ function ia(i) {
17007
17023
  let t, e, n = i[3].price.value + "", o, s, r = i[3].price.unit && oa(i);
17008
17024
  return {
17009
17025
  c() {
17010
- t = z("div"), e = z("span"), o = ke(n), s = $(), r && r.c(), y(e, "class", "value svelte-sezqcq"), y(t, "class", "price svelte-sezqcq");
17026
+ t = B("div"), e = B("span"), o = ke(n), s = ee(), r && r.c(), y(e, "class", "value svelte-sezqcq"), y(t, "class", "price svelte-sezqcq");
17011
17027
  },
17012
17028
  m(a, l) {
17013
17029
  M(a, t, l), j(t, e), j(e, o), j(t, s), r && r.m(t, null);
@@ -17024,7 +17040,7 @@ function oa(i) {
17024
17040
  let t, e = i[3].price.unit + "", n;
17025
17041
  return {
17026
17042
  c() {
17027
- t = z("span"), n = ke(e), y(t, "class", "unit svelte-sezqcq");
17043
+ t = B("span"), n = ke(e), y(t, "class", "unit svelte-sezqcq");
17028
17044
  },
17029
17045
  m(o, s) {
17030
17046
  M(o, t, s), j(t, n);
@@ -17041,7 +17057,7 @@ function sa(i) {
17041
17057
  let t, e, n, o, s = i[3].highlightText + "", r, a, l;
17042
17058
  return {
17043
17059
  c() {
17044
- t = z("div"), e = z("div"), n = $(), o = z("span"), r = ke(s), a = $(), l = z("div"), l.innerHTML = '<svg class="arrow svelte-sezqcq" viewBox="0 0 6 9"><g transform="translate(-3, -2)" fill-rule="nonzero" class="svelte-sezqcq"><path d="M4.43868724,2.12056563 C4.28121824,1.95989074 4.02582143,1.95979988 3.86824251,2.1203627 C3.72498894,2.26632889 3.71189225,2.49481723 3.82900374,2.65587166 L6.57092402,5.92894326 C6.72651763,6.11470411 6.72651763,6.38529589 6.57092402,6.57105674 L3.86804348,9.79798499 C3.72488984,9.94405307 3.71194952,10.1725507 3.8291712,10.3335217 L3.86824251,10.3796373 C4.01149607,10.5256035 4.23559087,10.5387981 4.39346025,10.4192733 L4.43868724,10.3794344 L8.1144599,6.5985342 C8.30312347,6.40447482 8.30312347,6.09552518 8.1144599,5.9014658 L4.43868724,2.12056563 Z" class="svelte-sezqcq"></path></g></svg>', y(e, "class", "gap svelte-sezqcq"), y(o, "class", "text svelte-sezqcq"), y(t, "class", "goto-button goto-icon svelte-sezqcq"), y(l, "class", "arrow-wrapper svelte-sezqcq");
17060
+ t = B("div"), e = B("div"), n = ee(), o = B("span"), r = ke(s), a = ee(), l = B("div"), l.innerHTML = '<svg class="arrow svelte-sezqcq" viewBox="0 0 6 9"><g transform="translate(-3, -2)" fill-rule="nonzero" class="svelte-sezqcq"><path d="M4.43868724,2.12056563 C4.28121824,1.95989074 4.02582143,1.95979988 3.86824251,2.1203627 C3.72498894,2.26632889 3.71189225,2.49481723 3.82900374,2.65587166 L6.57092402,5.92894326 C6.72651763,6.11470411 6.72651763,6.38529589 6.57092402,6.57105674 L3.86804348,9.79798499 C3.72488984,9.94405307 3.71194952,10.1725507 3.8291712,10.3335217 L3.86824251,10.3796373 C4.01149607,10.5256035 4.23559087,10.5387981 4.39346025,10.4192733 L4.43868724,10.3794344 L8.1144599,6.5985342 C8.30312347,6.40447482 8.30312347,6.09552518 8.1144599,5.9014658 L4.43868724,2.12056563 Z" class="svelte-sezqcq"></path></g></svg>', y(e, "class", "gap svelte-sezqcq"), y(o, "class", "text svelte-sezqcq"), y(t, "class", "goto-button goto-icon svelte-sezqcq"), y(l, "class", "arrow-wrapper svelte-sezqcq");
17045
17061
  },
17046
17062
  m(c, u) {
17047
17063
  M(c, t, u), j(t, e), j(t, n), j(t, o), j(o, r), M(c, a, u), M(c, l, u);
@@ -17055,7 +17071,7 @@ function sa(i) {
17055
17071
  };
17056
17072
  }
17057
17073
  function UA(i) {
17058
- var k, C;
17074
+ var k, I;
17059
17075
  let t, e, n, o, s, r, a, l, c, u, h = i[3].title + "", d, m, g, p, A;
17060
17076
  e = new st({
17061
17077
  props: {
@@ -17067,27 +17083,27 @@ function UA(i) {
17067
17083
  spreadRadius: 75
17068
17084
  }
17069
17085
  });
17070
- let v = i[3].headerPictureUrl && Kr(i), b = ((k = i[2].length) != null ? k : 0) + ((C = i[5].length) != null ? C : 0) > 0 && $r(i), w = (i[7] || i[3].highlightText) && na(i);
17086
+ let v = i[3].headerPictureUrl && Kr(i), b = ((k = i[2].length) != null ? k : 0) + ((I = i[5].length) != null ? I : 0) > 0 && $r(i), w = (i[7] || i[3].highlightText) && na(i);
17071
17087
  return {
17072
17088
  c() {
17073
- t = z("div"), K(e.$$.fragment), n = $(), o = z("div"), s = $(), r = z("div"), v && v.c(), a = $(), l = z("div"), c = z("div"), u = z("div"), d = ke(h), m = $(), b && b.c(), g = $(), w && w.c(), y(o, "class", "line svelte-sezqcq"), T(o, "transition-delay", i[4] ? $n + "ms" : ei + aa - ra - 40 + "ms"), y(u, "class", "text svelte-sezqcq"), y(c, "class", "title svelte-sezqcq"), y(l, "class", "title-wrapper svelte-sezqcq"), y(r, "class", "content svelte-sezqcq"), T(r, "max-width", it(i[9])), T(r, "transition-delay", i[4] ? $n + ei + "ms" : "0ms"), y(t, "class", p = Pe(`marketing ${i[6]}`) + " svelte-sezqcq"), U(t, "unfolded", i[4]), U(t, "folded", i[8]);
17089
+ t = B("div"), K(e.$$.fragment), n = ee(), o = B("div"), s = ee(), r = B("div"), v && v.c(), a = ee(), l = B("div"), c = B("div"), u = B("div"), d = ke(h), m = ee(), b && b.c(), g = ee(), w && w.c(), y(o, "class", "line svelte-sezqcq"), z(o, "transition-delay", i[4] ? $n + "ms" : ei + aa - ra - 40 + "ms"), y(u, "class", "text svelte-sezqcq"), y(c, "class", "title svelte-sezqcq"), y(l, "class", "title-wrapper svelte-sezqcq"), y(r, "class", "content svelte-sezqcq"), z(r, "max-width", it(i[9])), z(r, "transition-delay", i[4] ? $n + ei + "ms" : "0ms"), y(t, "class", p = Pe(`marketing ${i[6]}`) + " svelte-sezqcq"), U(t, "unfolded", i[4]), U(t, "folded", i[8]);
17074
17090
  },
17075
- m(I, B) {
17076
- M(I, t, B), J(e, t, null), j(t, n), j(t, o), j(t, s), j(t, r), v && v.m(r, null), j(r, a), j(r, l), j(l, c), j(c, u), j(u, d), j(r, m), b && b.m(r, null), j(r, g), w && w.m(r, null), A = !0;
17091
+ m(C, T) {
17092
+ M(C, t, T), J(e, t, null), j(t, n), j(t, o), j(t, s), j(t, r), v && v.m(r, null), j(r, a), j(r, l), j(l, c), j(c, u), j(u, d), j(r, m), b && b.m(r, null), j(r, g), w && w.m(r, null), A = !0;
17077
17093
  },
17078
- p(I, [B]) {
17094
+ p(C, [T]) {
17079
17095
  var F, W;
17080
17096
  const x = {};
17081
- B & 16 && (x.visible = I[4]), e.$set(x), B & 16 && T(o, "transition-delay", I[4] ? $n + "ms" : ei + aa - ra - 40 + "ms"), I[3].headerPictureUrl ? v ? v.p(I, B) : (v = Kr(I), v.c(), v.m(r, a)) : v && (v.d(1), v = null), (!A || B & 8) && h !== (h = I[3].title + "") && Se(d, h), ((F = I[2].length) != null ? F : 0) + ((W = I[5].length) != null ? W : 0) > 0 ? b ? b.p(I, B) : (b = $r(I), b.c(), b.m(r, g)) : b && (b.d(1), b = null), I[7] || I[3].highlightText ? w ? w.p(I, B) : (w = na(I), w.c(), w.m(r, null)) : w && (w.d(1), w = null), B & 16 && T(r, "transition-delay", I[4] ? $n + ei + "ms" : "0ms"), (!A || B & 64 && p !== (p = Pe(`marketing ${I[6]}`) + " svelte-sezqcq")) && y(t, "class", p), (!A || B & 80) && U(t, "unfolded", I[4]), (!A || B & 320) && U(t, "folded", I[8]);
17097
+ T & 16 && (x.visible = C[4]), e.$set(x), T & 16 && z(o, "transition-delay", C[4] ? $n + "ms" : ei + aa - ra - 40 + "ms"), C[3].headerPictureUrl ? v ? v.p(C, T) : (v = Kr(C), v.c(), v.m(r, a)) : v && (v.d(1), v = null), (!A || T & 8) && h !== (h = C[3].title + "") && Se(d, h), ((F = C[2].length) != null ? F : 0) + ((W = C[5].length) != null ? W : 0) > 0 ? b ? b.p(C, T) : (b = $r(C), b.c(), b.m(r, g)) : b && (b.d(1), b = null), C[7] || C[3].highlightText ? w ? w.p(C, T) : (w = na(C), w.c(), w.m(r, null)) : w && (w.d(1), w = null), T & 16 && z(r, "transition-delay", C[4] ? $n + ei + "ms" : "0ms"), (!A || T & 64 && p !== (p = Pe(`marketing ${C[6]}`) + " svelte-sezqcq")) && y(t, "class", p), (!A || T & 80) && U(t, "unfolded", C[4]), (!A || T & 320) && U(t, "folded", C[8]);
17082
17098
  },
17083
- i(I) {
17084
- A || (P(e.$$.fragment, I), A = !0);
17099
+ i(C) {
17100
+ A || (P(e.$$.fragment, C), A = !0);
17085
17101
  },
17086
- o(I) {
17087
- D(e.$$.fragment, I), A = !1;
17102
+ o(C) {
17103
+ D(e.$$.fragment, C), A = !1;
17088
17104
  },
17089
- d(I) {
17090
- I && L(t), Z(e), v && v.d(), b && b.d(), w && w.d();
17105
+ d(C) {
17106
+ C && L(t), Z(e), v && v.d(), b && b.d(), w && w.d();
17091
17107
  }
17092
17108
  };
17093
17109
  }
@@ -17230,7 +17246,7 @@ function $A(i) {
17230
17246
  const s = i[8].default, r = $t(s, i, i[7], null);
17231
17247
  return {
17232
17248
  c() {
17233
- t = z("div"), r && r.c(), y(t, "class", "audio svelte-13e7hxv"), y(t, "style", i[0]);
17249
+ t = B("div"), r && r.c(), y(t, "class", "audio svelte-13e7hxv"), y(t, "style", i[0]);
17234
17250
  },
17235
17251
  m(a, l) {
17236
17252
  M(a, t, l), r && r.m(t, null), e = !0, n || (o = me(t, "click", qa(i[1])), n = !0);
@@ -17382,7 +17398,7 @@ function nv(i) {
17382
17398
  let t, e, n, o, s, r = i[1] && la();
17383
17399
  return {
17384
17400
  c() {
17385
- t = z("div"), r && r.c(), e = $(), n = z("div"), o = z("div"), o.innerHTML = '<svg width="100%" height="100%" viewBox="0 0 128 128"><g transform="rotate(-45 12 64) translate(12 64)" fill="black" stroke="black" fill-opacity="0.6" stroke-opacity="0.6"><path stroke="none" class="sound-wave sound-wave-1 svelte-srt2pi" d="M0,23 A23,23 0 0,0 23,0 L0,0"></path><path fill="none" stroke-width="15" class="sound-wave sound-wave-2 svelte-srt2pi" d="M0,46 A46,46 0 0,0 46,0"></path><path fill="none" stroke-width="15" class="sound-wave sound-wave-3 svelte-srt2pi" d="M0,80 A80,80 0 0,0 80,0"></path></g></svg>', y(o, "class", "sound-wave__container svelte-srt2pi"), y(n, "class", "audio-icon svelte-srt2pi"), U(n, "playing", i[0]), y(t, "class", "audio-icon__wrapper svelte-srt2pi"), y(t, "style", i[2]), T(t, "width", i[5]), T(t, "height", i[5]);
17401
+ t = B("div"), r && r.c(), e = ee(), n = B("div"), o = B("div"), o.innerHTML = '<svg width="100%" height="100%" viewBox="0 0 128 128"><g transform="rotate(-45 12 64) translate(12 64)" fill="black" stroke="black" fill-opacity="0.6" stroke-opacity="0.6"><path stroke="none" class="sound-wave sound-wave-1 svelte-srt2pi" d="M0,23 A23,23 0 0,0 23,0 L0,0"></path><path fill="none" stroke-width="15" class="sound-wave sound-wave-2 svelte-srt2pi" d="M0,46 A46,46 0 0,0 46,0"></path><path fill="none" stroke-width="15" class="sound-wave sound-wave-3 svelte-srt2pi" d="M0,80 A80,80 0 0,0 80,0"></path></g></svg>', y(o, "class", "sound-wave__container svelte-srt2pi"), y(n, "class", "audio-icon svelte-srt2pi"), U(n, "playing", i[0]), y(t, "class", "audio-icon__wrapper svelte-srt2pi"), y(t, "style", i[2]), z(t, "width", i[5]), z(t, "height", i[5]);
17386
17402
  },
17387
17403
  m(a, l) {
17388
17404
  M(a, t, l), r && r.m(t, null), j(t, e), j(t, n), j(n, o), i[7](o), i[8](t), s = !0;
@@ -17390,7 +17406,7 @@ function nv(i) {
17390
17406
  p(a, [l]) {
17391
17407
  a[1] ? r ? l & 2 && P(r, 1) : (r = la(), r.c(), P(r, 1), r.m(t, e)) : r && (se(), D(r, 1, 1, () => {
17392
17408
  r = null;
17393
- }), re()), (!s || l & 1) && U(n, "playing", a[0]), (!s || l & 4) && y(t, "style", a[2]), l & 32 && T(t, "width", a[5]), l & 32 && T(t, "height", a[5]);
17409
+ }), re()), (!s || l & 1) && U(n, "playing", a[0]), (!s || l & 4) && y(t, "style", a[2]), l & 32 && z(t, "width", a[5]), l & 32 && z(t, "height", a[5]);
17394
17410
  },
17395
17411
  i(a) {
17396
17412
  s || (P(r), s = !0);
@@ -17481,7 +17497,7 @@ function ca(i) {
17481
17497
  }
17482
17498
  }), {
17483
17499
  c() {
17484
- t = z("div"), K(e.$$.fragment), n = $(), o = z("div"), s = z("div"), r = z("div"), p && p.c(), a = $(), l = z("div"), K(c.$$.fragment), u = $(), K(h.$$.fragment), y(r, "class", "audio-icon svelte-1s6gk4a"), T(l, "display", "inline-block"), y(s, "class", "wrapper svelte-1s6gk4a"), y(o, "class", "content svelte-1s6gk4a"), y(t, "class", "audio-tag svelte-1s6gk4a"), U(t, "unfolded", i[6]);
17500
+ t = B("div"), K(e.$$.fragment), n = ee(), o = B("div"), s = B("div"), r = B("div"), p && p.c(), a = ee(), l = B("div"), K(c.$$.fragment), u = ee(), K(h.$$.fragment), y(r, "class", "audio-icon svelte-1s6gk4a"), z(l, "display", "inline-block"), y(s, "class", "wrapper svelte-1s6gk4a"), y(o, "class", "content svelte-1s6gk4a"), y(t, "class", "audio-tag svelte-1s6gk4a"), U(t, "unfolded", i[6]);
17485
17501
  },
17486
17502
  m(b, w) {
17487
17503
  M(b, t, w), J(e, t, null), j(t, n), j(t, o), j(o, s), j(s, r), p && p.m(r, null), j(s, a), j(s, l), J(c, l, null), j(t, u), J(h, t, null), d = !0, m || (g = [
@@ -17491,15 +17507,15 @@ function ca(i) {
17491
17507
  ], m = !0);
17492
17508
  },
17493
17509
  p(b, w) {
17494
- var B, x;
17510
+ var T, x;
17495
17511
  const k = {};
17496
17512
  w & 64 && (k.visible = b[6]), w & 8 && (k.left = b[3] / 2 + "px"), e.$set(k), b[6] ? p ? (p.p(b, w), w & 64 && P(p, 1)) : (p = ua(b), p.c(), P(p, 1), p.m(r, null)) : p && (se(), D(p, 1, 1, () => {
17497
17513
  p = null;
17498
17514
  }), re());
17499
- const C = {};
17500
- w & 64 && (C.visible = b[6]), w & 2 && (C.textUnfolded = b[1]), w & 32 && (C.content = b[5]), c.$set(C);
17501
17515
  const I = {};
17502
- w & 64 && (I.unfolded = b[6]), w & 8 && (I.length = b[3]), w & 48 && (I.outDelay = b[4] + 20 * Math.min((x = (B = b[5]) == null ? void 0 : B.length) != null ? x : 10, 15)), h.$set(I), (!d || w & 64) && U(t, "unfolded", b[6]);
17516
+ w & 64 && (I.visible = b[6]), w & 2 && (I.textUnfolded = b[1]), w & 32 && (I.content = b[5]), c.$set(I);
17517
+ const C = {};
17518
+ w & 64 && (C.unfolded = b[6]), w & 8 && (C.length = b[3]), w & 48 && (C.outDelay = b[4] + 20 * Math.min((x = (T = b[5]) == null ? void 0 : T.length) != null ? x : 10, 15)), h.$set(C), (!d || w & 64) && U(t, "unfolded", b[6]);
17503
17519
  },
17504
17520
  i(b) {
17505
17521
  d || (P(e.$$.fragment, b), P(p), P(c.$$.fragment, b), P(h.$$.fragment, b), d = !0);
@@ -17530,7 +17546,7 @@ function ua(i) {
17530
17546
  }
17531
17547
  }), o.$on("play", i[8]), o.$on("pause", i[9]), o.$on("error", i[10]), o.$on("audioRef", i[11]), {
17532
17548
  c() {
17533
- t = z("div"), K(e.$$.fragment), n = $(), K(o.$$.fragment), y(t, "class", "audio svelte-1s6gk4a");
17549
+ t = B("div"), K(e.$$.fragment), n = ee(), K(o.$$.fragment), y(t, "class", "audio svelte-1s6gk4a");
17534
17550
  },
17535
17551
  m(l, c) {
17536
17552
  M(l, t, c), J(e, t, null), j(t, n), J(o, t, null), a = !0;
@@ -17566,7 +17582,7 @@ function sv(i) {
17566
17582
  let t, e, n;
17567
17583
  return e = new Jl({ props: { playing: i[2] } }), {
17568
17584
  c() {
17569
- t = z("div"), K(e.$$.fragment), y(t, "class", "audio-icon__wrapper svelte-1s6gk4a");
17585
+ t = B("div"), K(e.$$.fragment), y(t, "class", "audio-icon__wrapper svelte-1s6gk4a");
17570
17586
  },
17571
17587
  m(o, s) {
17572
17588
  M(o, t, s), J(e, t, null), n = !0;
@@ -17671,14 +17687,14 @@ function da(i) {
17671
17687
  }
17672
17688
  }), n.$on("play", i[6]), n.$on("pause", i[7]), n.$on("error", i[8]), n.$on("timeupdate", i[9]), n.$on("duration", i[10]), n.$on("audioRef", i[11]), {
17673
17689
  c() {
17674
- t = z("div"), e = z("div"), K(n.$$.fragment), y(e, "class", "audio-tag svelte-58hfjf"), T(e, "background-color", i[4].bgColor), T(e, "color", i[4].fontColor), y(t, "class", "audio-tag__wrapper svelte-58hfjf");
17690
+ t = B("div"), e = B("div"), K(n.$$.fragment), y(e, "class", "audio-tag svelte-58hfjf"), z(e, "background-color", i[4].bgColor), z(e, "color", i[4].fontColor), y(t, "class", "audio-tag__wrapper svelte-58hfjf");
17675
17691
  },
17676
17692
  m(s, r) {
17677
17693
  M(s, t, r), j(t, e), J(n, e, null), o = !0;
17678
17694
  },
17679
17695
  p(s, r) {
17680
17696
  const a = {};
17681
- r & 1 && (a.enable = s[0].state.visible), r & 1 && (a.url = s[0].data.audioUrl), r & 1 && (a.hooksInfo = { tag: s[0] }), r & 8232 && (a.$$scope = { dirty: r, ctx: s }), n.$set(a), r & 16 && T(e, "background-color", s[4].bgColor), r & 16 && T(e, "color", s[4].fontColor);
17697
+ r & 1 && (a.enable = s[0].state.visible), r & 1 && (a.url = s[0].data.audioUrl), r & 1 && (a.hooksInfo = { tag: s[0] }), r & 8232 && (a.$$scope = { dirty: r, ctx: s }), n.$set(a), r & 16 && z(e, "background-color", s[4].bgColor), r & 16 && z(e, "color", s[4].fontColor);
17682
17698
  },
17683
17699
  i(s) {
17684
17700
  o || (P(n.$$.fragment, s), o = !0);
@@ -17718,7 +17734,7 @@ function dv(i) {
17718
17734
  }
17719
17735
  }), {
17720
17736
  c() {
17721
- t = z("div"), e = z("div"), K(n.$$.fragment), o = $(), s = z("div"), K(r.$$.fragment), y(e, "class", "audio-icon__wrapper svelte-58hfjf"), y(s, "class", "text svelte-58hfjf"), y(t, "class", "audio__inner svelte-58hfjf");
17737
+ t = B("div"), e = B("div"), K(n.$$.fragment), o = ee(), s = B("div"), K(r.$$.fragment), y(e, "class", "audio-icon__wrapper svelte-58hfjf"), y(s, "class", "text svelte-58hfjf"), y(t, "class", "audio__inner svelte-58hfjf");
17722
17738
  },
17723
17739
  m(l, c) {
17724
17740
  M(l, t, c), j(t, e), J(n, e, null), j(t, o), j(t, s), J(r, s, null), a = !0;
@@ -17937,7 +17953,7 @@ function ha(i) {
17937
17953
  }
17938
17954
  }), {
17939
17955
  c() {
17940
- t = z("div"), K(e.$$.fragment), y(t, "class", "media-wrapper svelte-10cw0el");
17956
+ t = B("div"), K(e.$$.fragment), y(t, "class", "media-wrapper svelte-10cw0el");
17941
17957
  },
17942
17958
  m(s, r) {
17943
17959
  M(s, t, r), J(e, t, null), n = !0;
@@ -18059,7 +18075,7 @@ function ga(i) {
18059
18075
  let r = s(i), a = r(i);
18060
18076
  return {
18061
18077
  c() {
18062
- t = z("div"), o && o.c(), e = $(), a.c(), y(t, "class", "icon"), T(t, "width", i[1]);
18078
+ t = B("div"), o && o.c(), e = ee(), a.c(), y(t, "class", "icon"), z(t, "width", i[1]);
18063
18079
  },
18064
18080
  m(l, c) {
18065
18081
  M(l, t, c), o && o.m(t, null), j(t, e), a.m(t, null), n = !0;
@@ -18067,7 +18083,7 @@ function ga(i) {
18067
18083
  p(l, c) {
18068
18084
  l[0] ? o ? c & 1 && P(o, 1) : (o = pa(), o.c(), P(o, 1), o.m(t, e)) : o && (se(), D(o, 1, 1, () => {
18069
18085
  o = null;
18070
- }), re()), r === (r = s(l)) && a ? a.p(l, c) : (a.d(1), a = r(l), a && (a.c(), a.m(t, null))), c & 2 && T(t, "width", l[1]);
18086
+ }), re()), r === (r = s(l)) && a ? a.p(l, c) : (a.d(1), a = r(l), a && (a.c(), a.m(t, null))), c & 2 && z(t, "width", l[1]);
18071
18087
  },
18072
18088
  i(l) {
18073
18089
  n || (P(o), n = !0);
@@ -18188,7 +18204,7 @@ function Sv(i) {
18188
18204
  let t, e;
18189
18205
  return {
18190
18206
  c() {
18191
- t = z("img"), y(t, "alt", "tag-icon"), y(t, "class", "icon-image svelte-316sq3"), Ye(t.src, e = i[7]) || y(t, "src", e), T(t, "width", it(Ft({
18207
+ t = B("img"), y(t, "alt", "tag-icon"), y(t, "class", "icon-image svelte-316sq3"), Ye(t.src, e = i[7]) || y(t, "src", e), z(t, "width", it(Ft({
18192
18208
  originWidth: i[1],
18193
18209
  scale: i[4],
18194
18210
  wantedWidth: i[3]
@@ -18198,7 +18214,7 @@ function Sv(i) {
18198
18214
  M(n, t, o);
18199
18215
  },
18200
18216
  p(n, o) {
18201
- fa(n), o & 128 && !Ye(t.src, e = n[7]) && y(t, "src", e), o & 184 && T(t, "width", it(Ft({
18217
+ fa(n), o & 128 && !Ye(t.src, e = n[7]) && y(t, "src", e), o & 184 && z(t, "width", it(Ft({
18202
18218
  originWidth: n[1],
18203
18219
  scale: n[4],
18204
18220
  wantedWidth: n[3]
@@ -18220,33 +18236,33 @@ function zv(i) {
18220
18236
  let t, e = `url(${i[7]})`, n = `steps(${i[17]}, jump-none)`;
18221
18237
  return {
18222
18238
  c() {
18223
- t = z("div"), y(t, "class", "icon-keyframe svelte-316sq3"), T(t, "width", it(Ft({
18239
+ t = B("div"), y(t, "class", "icon-keyframe svelte-316sq3"), z(t, "width", it(Ft({
18224
18240
  originWidth: i[1],
18225
18241
  originHeight: i[16],
18226
18242
  scale: i[4],
18227
18243
  wantedWidth: i[3]
18228
- }).width)), T(t, "height", it(Ft({
18244
+ }).width)), z(t, "height", it(Ft({
18229
18245
  originWidth: i[1],
18230
18246
  originHeight: i[16],
18231
18247
  scale: i[4],
18232
18248
  wantedWidth: i[3]
18233
- }).height)), T(t, "background-image", e), T(t, "animation-duration", i[18]), T(t, "animation-timing-function", n);
18249
+ }).height)), z(t, "background-image", e), z(t, "animation-duration", i[18]), z(t, "animation-timing-function", n);
18234
18250
  },
18235
18251
  m(o, s) {
18236
18252
  M(o, t, s);
18237
18253
  },
18238
18254
  p(o, s) {
18239
- ma(o), s & 252 && T(t, "width", it(Ft({
18255
+ ma(o), s & 252 && z(t, "width", it(Ft({
18240
18256
  originWidth: o[1],
18241
18257
  originHeight: o[16],
18242
18258
  scale: o[4],
18243
18259
  wantedWidth: o[3]
18244
- }).width)), s & 252 && T(t, "height", it(Ft({
18260
+ }).width)), s & 252 && z(t, "height", it(Ft({
18245
18261
  originWidth: o[1],
18246
18262
  originHeight: o[16],
18247
18263
  scale: o[4],
18248
18264
  wantedWidth: o[3]
18249
- }).height)), s & 128 && e !== (e = `url(${o[7]})`) && T(t, "background-image", e), s & 228 && T(t, "animation-duration", o[18]), s & 228 && n !== (n = `steps(${o[17]}, jump-none)`) && T(t, "animation-timing-function", n);
18265
+ }).height)), s & 128 && e !== (e = `url(${o[7]})`) && z(t, "background-image", e), s & 228 && z(t, "animation-duration", o[18]), s & 228 && n !== (n = `steps(${o[17]}, jump-none)`) && z(t, "animation-timing-function", n);
18250
18266
  },
18251
18267
  d(o) {
18252
18268
  o && L(t);
@@ -18357,7 +18373,7 @@ function Aa(i) {
18357
18373
  }
18358
18374
  }), {
18359
18375
  c() {
18360
- t = z("div"), K(e.$$.fragment), n = $(), o = z("div"), s = ke(i[1]), y(o, "class", "text svelte-e58ijk"), y(t, "class", "text-wrapper svelte-e58ijk");
18376
+ t = B("div"), K(e.$$.fragment), n = ee(), o = B("div"), s = ke(i[1]), y(o, "class", "text svelte-e58ijk"), y(t, "class", "text-wrapper svelte-e58ijk");
18361
18377
  },
18362
18378
  m(a, l) {
18363
18379
  M(a, t, l), J(e, t, null), j(t, n), j(t, o), j(o, s), r = !0;
@@ -18384,7 +18400,7 @@ function Rv(i) {
18384
18400
  let s = i[1] && i[2] && Aa(i);
18385
18401
  return {
18386
18402
  c() {
18387
- t = z("div"), K(e.$$.fragment), n = $(), s && s.c(), y(t, "class", "wrapper svelte-e58ijk");
18403
+ t = B("div"), K(e.$$.fragment), n = ee(), s && s.c(), y(t, "class", "wrapper svelte-e58ijk");
18388
18404
  },
18389
18405
  m(r, a) {
18390
18406
  M(r, t, a), J(e, t, null), j(t, n), s && s.m(t, null), o = !0;
@@ -18447,7 +18463,7 @@ function Gv(i) {
18447
18463
  let t, e = typeof i[0].element == "string" && va(i);
18448
18464
  return {
18449
18465
  c() {
18450
- t = z("div"), e && e.c(), y(t, "class", "customElement__container svelte-kzl2aj");
18466
+ t = B("div"), e && e.c(), y(t, "class", "customElement__container svelte-kzl2aj");
18451
18467
  },
18452
18468
  m(n, o) {
18453
18469
  M(n, t, o), e && e.m(t, null), i[2](t);
@@ -18498,7 +18514,7 @@ function Xv(i) {
18498
18514
  let t, e;
18499
18515
  return {
18500
18516
  c() {
18501
- t = z("div"), y(t, "data-info", "tag content is keep folded"), y(t, "data-id", e = i[1].id);
18517
+ t = B("div"), y(t, "data-info", "tag content is keep folded"), y(t, "data-id", e = i[1].id);
18502
18518
  },
18503
18519
  m(n, o) {
18504
18520
  M(n, t, o);
@@ -18529,7 +18545,7 @@ function Yv(i) {
18529
18545
  return ~(o = m(i)) && (s = d[o] = h[o](i)), {
18530
18546
  c() {
18531
18547
  var g;
18532
- t = z("div"), e = z("div"), n = z("div"), s && s.c(), y(n, "class", "content svelte-1r4fqvg"), U(n, "unfolded", (g = i[1].state) == null ? void 0 : g.unfolded), y(e, "class", "content__wrapper svelte-1r4fqvg"), y(t, "class", r = Pe(Oe("content__container", i[1].className)) + " svelte-1r4fqvg"), y(t, "data-id", a = i[1].id), U(t, "disable", i[1].enabled === !1), U(t, "hide", i[4]), U(t, "withAnimation", i[0]), U(t, "unClickable", i[1].mergedConfig.clickable === !1), T(t, "width", i[1].stickType === "Plane" || i[1].contentType === "MediaModel" ? "100%" : 0), T(t, "height", i[1].stickType === "Plane" || i[1].contentType === "MediaModel" ? "100%" : 0);
18548
+ t = B("div"), e = B("div"), n = B("div"), s && s.c(), y(n, "class", "content svelte-1r4fqvg"), U(n, "unfolded", (g = i[1].state) == null ? void 0 : g.unfolded), y(e, "class", "content__wrapper svelte-1r4fqvg"), y(t, "class", r = Pe(Oe("content__container", i[1].className)) + " svelte-1r4fqvg"), y(t, "data-id", a = i[1].id), U(t, "disable", i[1].enabled === !1), U(t, "hide", i[4]), U(t, "withAnimation", i[0]), U(t, "unClickable", i[1].mergedConfig.clickable === !1), z(t, "width", i[1].stickType === "Plane" || i[1].contentType === "MediaModel" ? "100%" : 0), z(t, "height", i[1].stickType === "Plane" || i[1].contentType === "MediaModel" ? "100%" : 0);
18533
18549
  },
18534
18550
  m(g, p) {
18535
18551
  M(g, t, p), j(t, e), j(e, n), ~o && d[o].m(n, null), l = !0, c || (u = me(t, "click", qa(i[14])), c = !0);
@@ -18539,7 +18555,7 @@ function Yv(i) {
18539
18555
  let A = o;
18540
18556
  o = m(g), o === A ? ~o && d[o].p(g, p) : (s && (se(), D(d[A], 1, 1, () => {
18541
18557
  d[A] = null;
18542
- }), re()), ~o ? (s = d[o], s ? s.p(g, p) : (s = d[o] = h[o](g), s.c()), P(s, 1), s.m(n, null)) : s = null), (!l || p & 2) && U(n, "unfolded", (v = g[1].state) == null ? void 0 : v.unfolded), (!l || p & 2 && r !== (r = Pe(Oe("content__container", g[1].className)) + " svelte-1r4fqvg")) && y(t, "class", r), (!l || p & 2 && a !== (a = g[1].id)) && y(t, "data-id", a), (!l || p & 2) && U(t, "disable", g[1].enabled === !1), (!l || p & 18) && U(t, "hide", g[4]), (!l || p & 3) && U(t, "withAnimation", g[0]), (!l || p & 2) && U(t, "unClickable", g[1].mergedConfig.clickable === !1), p & 2 && T(t, "width", g[1].stickType === "Plane" || g[1].contentType === "MediaModel" ? "100%" : 0), p & 2 && T(t, "height", g[1].stickType === "Plane" || g[1].contentType === "MediaModel" ? "100%" : 0);
18558
+ }), re()), ~o ? (s = d[o], s ? s.p(g, p) : (s = d[o] = h[o](g), s.c()), P(s, 1), s.m(n, null)) : s = null), (!l || p & 2) && U(n, "unfolded", (v = g[1].state) == null ? void 0 : v.unfolded), (!l || p & 2 && r !== (r = Pe(Oe("content__container", g[1].className)) + " svelte-1r4fqvg")) && y(t, "class", r), (!l || p & 2 && a !== (a = g[1].id)) && y(t, "data-id", a), (!l || p & 2) && U(t, "disable", g[1].enabled === !1), (!l || p & 18) && U(t, "hide", g[4]), (!l || p & 3) && U(t, "withAnimation", g[0]), (!l || p & 2) && U(t, "unClickable", g[1].mergedConfig.clickable === !1), p & 2 && z(t, "width", g[1].stickType === "Plane" || g[1].contentType === "MediaModel" ? "100%" : 0), p & 2 && z(t, "height", g[1].stickType === "Plane" || g[1].contentType === "MediaModel" ? "100%" : 0);
18543
18559
  },
18544
18560
  i(g) {
18545
18561
  l || (P(s), l = !0);
@@ -18558,7 +18574,7 @@ function Uv(i) {
18558
18574
  props: { tag: De(i[1]) }
18559
18575
  }), {
18560
18576
  c() {
18561
- t = z("div"), K(e.$$.fragment), y(t, "class", n = Pe(Oe("content__container", i[1].className)) + " svelte-1r4fqvg"), y(t, "data-id", o = i[1].id), U(t, "custom-tag-disable", i[1].enabled === !1), U(t, "custom-tag-hide", i[4]);
18577
+ t = B("div"), K(e.$$.fragment), y(t, "class", n = Pe(Oe("content__container", i[1].className)) + " svelte-1r4fqvg"), y(t, "data-id", o = i[1].id), U(t, "custom-tag-disable", i[1].enabled === !1), U(t, "custom-tag-hide", i[4]);
18562
18578
  },
18563
18579
  m(l, c) {
18564
18580
  M(l, t, c), J(e, t, null), s = !0, r || (a = me(t, "click", i[13]), r = !0);
@@ -18768,19 +18784,19 @@ function nb(i, t, e) {
18768
18784
  let n, o, s, r, a, l, { withAnimation: c = !1 } = t, { tag: u } = t, { hooks: h } = t, { state: d } = t, { mediaStore: m } = t, { temporaryState: g } = t;
18769
18785
  no("hooks", h), no("mediaStore", m);
18770
18786
  let p, A;
18771
- function v(C) {
18772
- C ? h.emit("exposure", { id: r, type: "start" }) : h.emit("exposure", { id: r, type: "end" });
18787
+ function v(I) {
18788
+ I ? h.emit("exposure", { id: r, type: "start" }) : h.emit("exposure", { id: r, type: "end" });
18773
18789
  }
18774
- function b(C, I, B) {
18790
+ function b(I, C, T) {
18775
18791
  var x, F;
18776
- return !(!I.visible || !I.enabled || !B.visible || !((x = C.state) != null && x.visible) || ((F = C.temporaryState) == null ? void 0 : F.visible) === !1 || Re(C) && !C.mediaVisible);
18792
+ return !(!C.visible || !C.enabled || !T.visible || !((x = I.state) != null && x.visible) || ((F = I.temporaryState) == null ? void 0 : F.visible) === !1 || Re(I) && !I.mediaVisible);
18777
18793
  }
18778
- const w = (C) => h.emit("click", { event: C, target: "TagContent", tag: u }), k = (C) => h.emit("click", { event: C, target: "TagContent", tag: u });
18779
- return i.$$set = (C) => {
18780
- "withAnimation" in C && e(0, c = C.withAnimation), "tag" in C && e(1, u = C.tag), "hooks" in C && e(2, h = C.hooks), "state" in C && e(5, d = C.state), "mediaStore" in C && e(6, m = C.mediaStore), "temporaryState" in C && e(7, g = C.temporaryState);
18794
+ const w = (I) => h.emit("click", { event: I, target: "TagContent", tag: u }), k = (I) => h.emit("click", { event: I, target: "TagContent", tag: u });
18795
+ return i.$$set = (I) => {
18796
+ "withAnimation" in I && e(0, c = I.withAnimation), "tag" in I && e(1, u = I.tag), "hooks" in I && e(2, h = I.hooks), "state" in I && e(5, d = I.state), "mediaStore" in I && e(6, m = I.mediaStore), "temporaryState" in I && e(7, g = I.temporaryState);
18781
18797
  }, i.$$.update = () => {
18782
- var C, I, B, x, F, W, O, V, S, Q, H;
18783
- i.$$.dirty & 2 && e(11, n = (C = u.state) == null ? void 0 : C.unfolded), i.$$.dirty & 2 && e(10, o = (I = u.state) == null ? void 0 : I.visible), i.$$.dirty & 162 && e(12, s = d.visible && g.visible && ((B = u.state) == null ? void 0 : B.visible)), i.$$.dirty & 2 && (r = u.id), i.$$.dirty & 162 && e(4, a = !b(u, d, g)), i.$$.dirty & 4096 && v(s), i.$$.dirty & 3842 && u.hooks && (n !== void 0 && n !== A && (e(9, A = n), n ? (F = (x = u.hooks).emit) == null || F.call(x, "unfolded") : (O = u == null ? void 0 : (W = u.hooks).emit) == null || O.call(W, "folded")), o !== void 0 && o !== p && (e(8, p = o), o ? (S = (V = u.hooks).emit) == null || S.call(V, "show") : (H = (Q = u.hooks).emit) == null || H.call(Q, "hide"))), i.$$.dirty & 2 && e(3, l = (() => !(typeof u.mergedConfig.unfoldedConfig == "object" && u.mergedConfig.unfoldedConfig.keep === "folded"))());
18798
+ var I, C, T, x, F, W, O, V, S, Q, H;
18799
+ i.$$.dirty & 2 && e(11, n = (I = u.state) == null ? void 0 : I.unfolded), i.$$.dirty & 2 && e(10, o = (C = u.state) == null ? void 0 : C.visible), i.$$.dirty & 162 && e(12, s = d.visible && g.visible && ((T = u.state) == null ? void 0 : T.visible)), i.$$.dirty & 2 && (r = u.id), i.$$.dirty & 162 && e(4, a = !b(u, d, g)), i.$$.dirty & 4096 && v(s), i.$$.dirty & 3842 && u.hooks && (n !== void 0 && n !== A && (e(9, A = n), n ? (F = (x = u.hooks).emit) == null || F.call(x, "unfolded") : (O = u == null ? void 0 : (W = u.hooks).emit) == null || O.call(W, "folded")), o !== void 0 && o !== p && (e(8, p = o), o ? (S = (V = u.hooks).emit) == null || S.call(V, "show") : (H = (Q = u.hooks).emit) == null || H.call(Q, "hide"))), i.$$.dirty & 2 && e(3, l = (() => !(typeof u.mergedConfig.unfoldedConfig == "object" && u.mergedConfig.unfoldedConfig.keep === "folded"))());
18784
18800
  }, [
18785
18801
  c,
18786
18802
  u,
@@ -18838,15 +18854,15 @@ function ob(i) {
18838
18854
  }
18839
18855
  }), c.$on("iconLoaded", i[7]), {
18840
18856
  c() {
18841
- t = z("div"), e = z("div"), n = $(), K(o.$$.fragment), s = $(), r = z("div"), a = $(), l = z("div"), K(c.$$.fragment), y(e, "class", "tag-point-click-helper svelte-1jkrwn7"), y(r, "class", "tag-unfolded-point svelte-1jkrwn7"), T(r, "transition-delay", (i[3] ? i[5] : 0) + "ms"), y(l, "class", "tag-folded-point svelte-1jkrwn7"), T(l, "transition-delay", (i[3] ? i[5] : 0) + "ms"), y(t, "class", "tag-point-wrapper svelte-1jkrwn7"), U(t, "unfolded", i[0]), U(t, "folded", i[3]);
18857
+ t = B("div"), e = B("div"), n = ee(), K(o.$$.fragment), s = ee(), r = B("div"), a = ee(), l = B("div"), K(c.$$.fragment), y(e, "class", "tag-point-click-helper svelte-1jkrwn7"), y(r, "class", "tag-unfolded-point svelte-1jkrwn7"), z(r, "transition-delay", (i[3] ? i[5] : 0) + "ms"), y(l, "class", "tag-folded-point svelte-1jkrwn7"), z(l, "transition-delay", (i[3] ? i[5] : 0) + "ms"), y(t, "class", "tag-point-wrapper svelte-1jkrwn7"), U(t, "unfolded", i[0]), U(t, "folded", i[3]);
18842
18858
  },
18843
18859
  m(m, g) {
18844
18860
  M(m, t, g), j(t, e), j(t, n), J(o, t, null), j(t, s), j(t, r), j(t, a), j(t, l), J(c, l, null), u = !0, h || (d = me(e, "click", i[4]), h = !0);
18845
18861
  },
18846
18862
  p(m, [g]) {
18847
- g & 8 && T(r, "transition-delay", (m[3] ? m[5] : 0) + "ms");
18863
+ g & 8 && z(r, "transition-delay", (m[3] ? m[5] : 0) + "ms");
18848
18864
  const p = {};
18849
- g & 4 && (p.icon = m[2]), g & 2 && (p.width = m[1]), c.$set(p), g & 8 && T(l, "transition-delay", (m[3] ? m[5] : 0) + "ms"), (!u || g & 1) && U(t, "unfolded", m[0]), (!u || g & 8) && U(t, "folded", m[3]);
18865
+ g & 4 && (p.icon = m[2]), g & 2 && (p.width = m[1]), c.$set(p), g & 8 && z(l, "transition-delay", (m[3] ? m[5] : 0) + "ms"), (!u || g & 1) && U(t, "unfolded", m[0]), (!u || g & 8) && U(t, "folded", m[3]);
18850
18866
  },
18851
18867
  i(m) {
18852
18868
  u || (P(o.$$.fragment, m), P(c.$$.fragment, m), u = !0);
@@ -18881,11 +18897,11 @@ function sb(i, t, e) {
18881
18897
  }, i.$$.update = () => {
18882
18898
  var p, A, v, b;
18883
18899
  i.$$.dirty & 64 && e(0, n = (p = l.state) == null ? void 0 : p.unfolded), i.$$.dirty & 1 && e(3, o = !n), i.$$.dirty & 64 && e(2, s = (v = (A = l.style) == null ? void 0 : A.point) != null && v.url ? (b = l.style) == null ? void 0 : b.point : { url: Rp }), i.$$.dirty & 64 && e(1, r = (() => {
18884
- var C, I, B, x;
18885
- const w = (I = (C = l.style) == null ? void 0 : C.point) == null ? void 0 : I.width;
18900
+ var I, C, T, x;
18901
+ const w = (C = (I = l.style) == null ? void 0 : I.point) == null ? void 0 : C.width;
18886
18902
  if (typeof w == "number")
18887
18903
  return w;
18888
- const k = (x = (B = l.style) == null ? void 0 : B.point) == null ? void 0 : x.size;
18904
+ const k = (x = (T = l.style) == null ? void 0 : T.point) == null ? void 0 : x.size;
18889
18905
  if (typeof k == "number")
18890
18906
  return k;
18891
18907
  if (k === "S")
@@ -18920,7 +18936,7 @@ function lb(i) {
18920
18936
  let t;
18921
18937
  return {
18922
18938
  c() {
18923
- t = z("div"), y(t, "data-info", "tag content is disable");
18939
+ t = B("div"), y(t, "data-info", "tag content is disable");
18924
18940
  },
18925
18941
  m(e, n) {
18926
18942
  M(e, t, n);
@@ -18970,7 +18986,7 @@ function ub(i) {
18970
18986
  let t;
18971
18987
  return {
18972
18988
  c() {
18973
- t = z("div"), y(t, "data-info", "tag point is disable");
18989
+ t = B("div"), y(t, "data-info", "tag point is disable");
18974
18990
  },
18975
18991
  m(e, n) {
18976
18992
  M(e, t, n);
@@ -19020,7 +19036,7 @@ function hb(i) {
19020
19036
  }
19021
19037
  return r = A(i), a = p[r] = g[r](i), {
19022
19038
  c() {
19023
- t = z("div"), e = z("div"), o.c(), s = $(), a.c(), y(e, "class", l = Pe(Oe("wrapper", i[1].className ? `${i[1].className}__wrapper` : void 0)) + " svelte-pzwdws"), y(e, "data-tag-unfolded", i[8]), y(e, "data-tag-id", i[11]), y(e, "data-content-type", c = i[1].contentType), T(e, "left", i[7]), T(e, "top", i[6]), T(e, "z-index", i[5]), y(t, "class", "tag svelte-pzwdws"), y(t, "data-tag-id", i[11]), U(t, "unClickable", i[1].mergedConfig.clickable === !1), U(t, "disable", i[10]), U(t, "hide", i[9]), U(t, "withAnimation", i[0]);
19039
+ t = B("div"), e = B("div"), o.c(), s = ee(), a.c(), y(e, "class", l = Pe(Oe("wrapper", i[1].className ? `${i[1].className}__wrapper` : void 0)) + " svelte-pzwdws"), y(e, "data-tag-unfolded", i[8]), y(e, "data-tag-id", i[11]), y(e, "data-content-type", c = i[1].contentType), z(e, "left", i[7]), z(e, "top", i[6]), z(e, "z-index", i[5]), y(t, "class", "tag svelte-pzwdws"), y(t, "data-tag-id", i[11]), U(t, "unClickable", i[1].mergedConfig.clickable === !1), U(t, "disable", i[10]), U(t, "hide", i[9]), U(t, "withAnimation", i[0]);
19024
19040
  },
19025
19041
  m(v, b) {
19026
19042
  M(v, t, b), j(t, e), d[n].m(e, null), j(e, s), p[r].m(e, null), u = !0;
@@ -19033,7 +19049,7 @@ function hb(i) {
19033
19049
  let k = r;
19034
19050
  r = A(v), r === k ? p[r].p(v, b) : (se(), D(p[k], 1, 1, () => {
19035
19051
  p[k] = null;
19036
- }), re(), a = p[r], a ? a.p(v, b) : (a = p[r] = g[r](v), a.c()), P(a, 1), a.m(e, null)), (!u || b & 2 && l !== (l = Pe(Oe("wrapper", v[1].className ? `${v[1].className}__wrapper` : void 0)) + " svelte-pzwdws")) && y(e, "class", l), (!u || b & 256) && y(e, "data-tag-unfolded", v[8]), (!u || b & 2048) && y(e, "data-tag-id", v[11]), (!u || b & 2 && c !== (c = v[1].contentType)) && y(e, "data-content-type", c), b & 128 && T(e, "left", v[7]), b & 64 && T(e, "top", v[6]), b & 32 && T(e, "z-index", v[5]), (!u || b & 2048) && y(t, "data-tag-id", v[11]), (!u || b & 2) && U(t, "unClickable", v[1].mergedConfig.clickable === !1), (!u || b & 1024) && U(t, "disable", v[10]), (!u || b & 512) && U(t, "hide", v[9]), (!u || b & 1) && U(t, "withAnimation", v[0]);
19052
+ }), re(), a = p[r], a ? a.p(v, b) : (a = p[r] = g[r](v), a.c()), P(a, 1), a.m(e, null)), (!u || b & 2 && l !== (l = Pe(Oe("wrapper", v[1].className ? `${v[1].className}__wrapper` : void 0)) + " svelte-pzwdws")) && y(e, "class", l), (!u || b & 256) && y(e, "data-tag-unfolded", v[8]), (!u || b & 2048) && y(e, "data-tag-id", v[11]), (!u || b & 2 && c !== (c = v[1].contentType)) && y(e, "data-content-type", c), b & 128 && z(e, "left", v[7]), b & 64 && z(e, "top", v[6]), b & 32 && z(e, "z-index", v[5]), (!u || b & 2048) && y(t, "data-tag-id", v[11]), (!u || b & 2) && U(t, "unClickable", v[1].mergedConfig.clickable === !1), (!u || b & 1024) && U(t, "disable", v[10]), (!u || b & 512) && U(t, "hide", v[9]), (!u || b & 1) && U(t, "withAnimation", v[0]);
19037
19053
  },
19038
19054
  i(v) {
19039
19055
  u || (P(o), P(a), u = !0);
@@ -19052,8 +19068,8 @@ function fb(i, t, e) {
19052
19068
  return i.$$set = (b) => {
19053
19069
  "withAnimation" in b && e(0, d = b.withAnimation), "tag" in b && e(1, m = b.tag), "mediaStore" in b && e(2, g = b.mediaStore), "state" in b && e(3, p = b.state), "temporaryState" in b && e(4, A = b.temporaryState);
19054
19070
  }, i.$$.update = () => {
19055
- var b, w, k, C, I, B, x, F;
19056
- i.$$.dirty & 2 && e(13, n = (() => !(m.contentType === "Sticker" || m.contentType === "Link" || m.contentType === "VRLink" || m.contentType === "PanoLink" || m.contentType === "Audio" && m.data.appearance === "plane"))()), i.$$.dirty & 2 && e(12, o = (() => m.stickType === "2DPoint")()), i.$$.dirty & 2 && e(11, s = m.id), i.$$.dirty & 2 && e(10, r = !((b = m.pointTagStyle) != null && b.leftPercent) || !((w = m.pointTagStyle) != null && w.topPercent) || m.enabled === !1 || !m.state), i.$$.dirty & 2 && e(9, a = !((k = m.state) != null && k.visible) || ((C = m.temporaryState) == null ? void 0 : C.visible) === !1), i.$$.dirty & 2 && e(8, l = (I = m.state) == null ? void 0 : I.unfolded), i.$$.dirty & 2 && e(7, c = ((B = m.pointTagStyle) == null ? void 0 : B.leftPercent) + "%"), i.$$.dirty & 2 && e(6, u = ((x = m.pointTagStyle) == null ? void 0 : x.topPercent) + "%"), i.$$.dirty & 2 && e(5, h = (F = m.state) != null && F.unfolded ? 1 : 0);
19071
+ var b, w, k, I, C, T, x, F;
19072
+ i.$$.dirty & 2 && e(13, n = (() => !(m.contentType === "Sticker" || m.contentType === "Link" || m.contentType === "VRLink" || m.contentType === "PanoLink" || m.contentType === "Audio" && m.data.appearance === "plane"))()), i.$$.dirty & 2 && e(12, o = (() => m.stickType === "2DPoint")()), i.$$.dirty & 2 && e(11, s = m.id), i.$$.dirty & 2 && e(10, r = !((b = m.pointTagStyle) != null && b.leftPercent) || !((w = m.pointTagStyle) != null && w.topPercent) || m.enabled === !1 || !m.state), i.$$.dirty & 2 && e(9, a = !((k = m.state) != null && k.visible) || ((I = m.temporaryState) == null ? void 0 : I.visible) === !1), i.$$.dirty & 2 && e(8, l = (C = m.state) == null ? void 0 : C.unfolded), i.$$.dirty & 2 && e(7, c = ((T = m.pointTagStyle) == null ? void 0 : T.leftPercent) + "%"), i.$$.dirty & 2 && e(6, u = ((x = m.pointTagStyle) == null ? void 0 : x.topPercent) + "%"), i.$$.dirty & 2 && e(5, h = (F = m.state) != null && F.unfolded ? 1 : 0);
19057
19073
  }, [
19058
19074
  d,
19059
19075
  m,
@@ -19107,7 +19123,7 @@ function ya(i) {
19107
19123
  }
19108
19124
  return {
19109
19125
  c() {
19110
- t = z("div");
19126
+ t = B("div");
19111
19127
  for (let a = 0; a < e.length; a += 1)
19112
19128
  e[a].c();
19113
19129
  y(t, "class", "tag--container svelte-uq11d5"), U(t, "hide", !i[3].visible || !i[4].visible), U(t, "withAnimation", i[0]);
@@ -20910,8 +20926,8 @@ class Jb extends jn {
20910
20926
  const Y = new q().subVectors(H, N), ae = Y.x < 0 && S.x >= 0, he = Y.y < 0 && S.y >= 0, de = Y.z < 0 && S.z >= 0;
20911
20927
  this.startInfo.dragPointInCenterLeft = ae || he || de;
20912
20928
  }
20913
- const _ = new q().subVectors(H, Q), ee = _.length();
20914
- return ee > 0.3 ? (console.warn("offset.length() > 0.3, skipped", ee), V) : _;
20929
+ const _ = new q().subVectors(H, Q), $ = _.length();
20930
+ return $ > 0.3 ? (console.warn("offset.length() > 0.3, skipped", $), V) : _;
20915
20931
  }, g = m("ew"), p = m("ns"), A = () => {
20916
20932
  const O = g;
20917
20933
  this.helperObject3D.cornerPositions.forEach((V, S) => {
@@ -20936,10 +20952,10 @@ class Jb extends jn {
20936
20952
  case "nwse":
20937
20953
  A(), v();
20938
20954
  }
20939
- const b = new q().subVectors(r[1], r[0]).length() / h.length(), w = new q().subVectors(r[3], r[0]).length() / d.length(), k = new q(b, w, 1), C = new E.Matrix4().scale(k);
20940
- n.isCSS3DObjectPlus ? n.applyScaleMatrix4(C) : n.scale.applyMatrix4(C), o.position.copy(a);
20941
- const I = new q().addVectors(r[0], r[2]).divideScalar(2), B = new q().subVectors(I, l), x = new E.Matrix4().setPosition(B);
20942
- n.applyMatrix4(x), (F = this.helperObject3D.css3DInstance) == null || F.css3DObject.applyMatrix4(x), (W = this.helperObject3D.plane) == null || W.applyMatrix4(x), this.hooks.emit("applyObjectScale", { matrix: C }), this.hooks.emit("applyObjectPosition", { matrix: x }), this.render();
20955
+ const b = new q().subVectors(r[1], r[0]).length() / h.length(), w = new q().subVectors(r[3], r[0]).length() / d.length(), k = new q(b, w, 1), I = new E.Matrix4().scale(k);
20956
+ n.isCSS3DObjectPlus ? n.applyScaleMatrix4(I) : n.scale.applyMatrix4(I), o.position.copy(a);
20957
+ const C = new q().addVectors(r[0], r[2]).divideScalar(2), T = new q().subVectors(C, l), x = new E.Matrix4().setPosition(T);
20958
+ n.applyMatrix4(x), (F = this.helperObject3D.css3DInstance) == null || F.css3DObject.applyMatrix4(x), (W = this.helperObject3D.plane) == null || W.applyMatrix4(x), this.hooks.emit("applyObjectScale", { matrix: I }), this.hooks.emit("applyObjectPosition", { matrix: x }), this.render();
20943
20959
  }
20944
20960
  dragEnd() {
20945
20961
  !this.isDragging || (this.startInfo = void 0, this.isDragging = !1, this.hooks.emit("scaleEnd"), this.render());
@@ -21427,7 +21443,7 @@ class a1 extends Bn {
21427
21443
  const oy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21428
21444
  __proto__: null
21429
21445
  }, Symbol.toStringTag, { value: "Module" })), sy = (i) => new a1(i);
21430
- console.info("@realsee/dnalogel %cv2.16.0-3", "background-color: #12ce9b;color:black;padding:0 6px;border-radius: 3px");
21446
+ console.info("@realsee/dnalogel %cv2.16.0-4", "background-color: #12ce9b;color:black;padding:0 6px;border-radius: 3px");
21431
21447
  export {
21432
21448
  In as CSS3DRender,
21433
21449
  zn as CSS3DRenderPlugin,