@realsee/dnalogel 3.69.1-alpha.1 → 3.69.1-alpha.2

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 (467) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/index.cjs.js +30 -30
  3. package/dist/index.js +801 -792
  4. package/dist/index.umd.js +30 -30
  5. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +2 -2
  6. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +2 -2
  7. package/docs/classes/CSS3DRender.html +2 -2
  8. package/docs/classes/GuideLineItem.GuideLineItem.html +2 -2
  9. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +2 -2
  10. package/docs/classes/ModelMakerPluginInstance.html +2 -2
  11. package/docs/classes/ModelMakerPluginType.ModelMakerBoxItem.html +2 -2
  12. package/docs/classes/ModelMakerPluginType.ModelMakerPolygonItem.html +2 -2
  13. package/docs/classes/ModelMakerPluginType.ModelMakerPrismItem.html +2 -2
  14. package/docs/classes/ModelRoomLabelController.html +2 -2
  15. package/docs/classes/MoveController.html +2 -2
  16. package/docs/classes/Object3DHelperController.html +2 -2
  17. package/docs/classes/PaintBrush.html +2 -2
  18. package/docs/classes/PanoMeasurePluginLine.html +2 -2
  19. package/docs/classes/PanoMeasurePluginModel.html +2 -2
  20. package/docs/classes/PanoMeasurePluginPoint.html +2 -2
  21. package/docs/classes/PanoMeasurePluginPolyline.html +2 -2
  22. package/docs/classes/PanoTagPluginController.html +2 -2
  23. package/docs/classes/Sculpt.html +2 -2
  24. package/docs/classes/Util.BetterTween.html +2 -2
  25. package/docs/classes/Util.FiveDomEvents.html +2 -2
  26. package/docs/classes/Util.FivePuppet.html +2 -2
  27. package/docs/classes/Util.Interval.html +2 -2
  28. package/docs/classes/Util.LegacyPointHelper.html +2 -2
  29. package/docs/classes/Util.LightTag.html +2 -2
  30. package/docs/classes/Util.LineSegments.html +2 -2
  31. package/docs/classes/Util.Magnifier.html +2 -2
  32. package/docs/classes/Util.Object3D.html +2 -2
  33. package/docs/classes/Util.PointDomHelper.html +2 -2
  34. package/docs/classes/Util.PointHelper.html +2 -2
  35. package/docs/classes/Util.PointSelector.html +2 -2
  36. package/docs/classes/Util.PointSelectorHelper.html +2 -2
  37. package/docs/classes/Util.Rectangle.html +2 -2
  38. package/docs/classes/Util.sculpt.BaseEditor.html +2 -2
  39. package/docs/classes/Util.sculpt.BoxMesh.html +2 -2
  40. package/docs/classes/Util.sculpt.BoxMeshEditor.html +2 -2
  41. package/docs/classes/Util.sculpt.CircleMesh.html +2 -2
  42. package/docs/classes/Util.sculpt.CircleMeshEditor.html +2 -2
  43. package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +2 -2
  44. package/docs/classes/Util.sculpt.CylinderMesh.html +2 -2
  45. package/docs/classes/Util.sculpt.CylinderMeshEditor.html +2 -2
  46. package/docs/classes/Util.sculpt.LineMesh.html +2 -2
  47. package/docs/classes/Util.sculpt.PointMesh.html +2 -2
  48. package/docs/classes/Util.sculpt.PolygonMesh.html +2 -2
  49. package/docs/classes/Util.sculpt.PrismMesh.html +2 -2
  50. package/docs/classes/Util.sculpt.PrismMeshEditor.html +2 -2
  51. package/docs/classes/Util.sculpt.RectangleMesh.html +2 -2
  52. package/docs/classes/Util.sculpt.RectangleMeshEditor.html +2 -2
  53. package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +2 -2
  54. package/docs/classes/WalkController.html +2 -2
  55. package/docs/enums/CameraMovementEffect.html +2 -2
  56. package/docs/enums/ContentType.html +2 -2
  57. package/docs/enums/DIRECTION.html +2 -2
  58. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
  59. package/docs/enums/DimensionType.html +2 -2
  60. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +2 -2
  61. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +2 -2
  62. package/docs/enums/PaintBrushTypeEnum.html +2 -2
  63. package/docs/enums/PointType.html +2 -2
  64. package/docs/enums/Rotation.html +2 -2
  65. package/docs/functions/AreaMakerPlugin.html +1 -1
  66. package/docs/functions/CSS3DRenderPlugin.html +1 -1
  67. package/docs/functions/CameraMovementPlugin.html +2 -2
  68. package/docs/functions/CruisePlugin.html +1 -1
  69. package/docs/functions/CurrentPanoImagePlugin.html +1 -1
  70. package/docs/functions/GuideLinePlugin.html +1 -1
  71. package/docs/functions/ItemLabelPlugin.html +1 -1
  72. package/docs/functions/MapviewFloorplanPlugin.html +1 -1
  73. package/docs/functions/MeasurePlugin.html +1 -1
  74. package/docs/functions/ModelChassisCompassPlugin.html +2 -2
  75. package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -2
  76. package/docs/functions/ModelFloorplanPlugin.html +1 -1
  77. package/docs/functions/ModelItemLabelPlugin.html +1 -1
  78. package/docs/functions/ModelMakerPlugin.html +1 -1
  79. package/docs/functions/ModelRoomLabelPlugin.html +1 -1
  80. package/docs/functions/ModelTVVideoPlugin.html +1 -1
  81. package/docs/functions/ModelViewPlugin.html +2 -2
  82. package/docs/functions/MovePlugin.html +1 -1
  83. package/docs/functions/Object3DHelperPlugin.html +1 -1
  84. package/docs/functions/PanoCompassPlugin.html +1 -1
  85. package/docs/functions/PanoCursorRaycasterPlugin.html +2 -2
  86. package/docs/functions/PanoDoorLabelPlugin.html +1 -1
  87. package/docs/functions/PanoFloorplanRadarPlugin.html +1 -1
  88. package/docs/functions/PanoMeasurePlugin.html +1 -1
  89. package/docs/functions/PanoRulerPlugin.html +2 -2
  90. package/docs/functions/PanoRulerProPlugin.html +2 -2
  91. package/docs/functions/PanoSpatialTagPlugin.html +2 -2
  92. package/docs/functions/PanoTagPlugin.html +1 -1
  93. package/docs/functions/PanoVideoPlugin.html +2 -2
  94. package/docs/functions/PipelinePlugin.html +1 -1
  95. package/docs/functions/SculptPlugin.html +2 -2
  96. package/docs/functions/SculptPluginForFive.html +2 -2
  97. package/docs/functions/TopviewFloorplanPlugin.html +1 -1
  98. package/docs/functions/Util.awaitNextFrame.html +1 -1
  99. package/docs/functions/Util.blink.html +2 -2
  100. package/docs/functions/Util.bounding.html +1 -1
  101. package/docs/functions/Util.boundingBox.html +1 -1
  102. package/docs/functions/Util.boundingSphere.html +1 -1
  103. package/docs/functions/Util.boxVertex.html +2 -2
  104. package/docs/functions/Util.boxVertexes.html +1 -1
  105. package/docs/functions/Util.checkFiveModelLoaded.html +2 -2
  106. package/docs/functions/Util.convexHull.html +2 -2
  107. package/docs/functions/Util.equal.html +2 -2
  108. package/docs/functions/Util.fiveModelIsLoaded.html +2 -2
  109. package/docs/functions/Util.getCoordsFromClient.html +1 -1
  110. package/docs/functions/Util.getCoordsFromElement.html +1 -1
  111. package/docs/functions/Util.getFrameTime.html +2 -2
  112. package/docs/functions/Util.getIntersectFromRelativePosition.html +1 -1
  113. package/docs/functions/Util.getRaycasterFromFivePointer.html +1 -1
  114. package/docs/functions/Util.initialCSS3DRender.html +1 -1
  115. package/docs/functions/Util.inside.html +1 -1
  116. package/docs/functions/Util.isModelLike.html +1 -1
  117. package/docs/functions/Util.isNil.html +2 -2
  118. package/docs/functions/Util.isPanoramaLike.html +1 -1
  119. package/docs/functions/Util.lookObject.html +2 -2
  120. package/docs/functions/Util.lookPoint.html +2 -2
  121. package/docs/functions/Util.nextFrame.html +1 -1
  122. package/docs/functions/Util.notNil.html +2 -2
  123. package/docs/functions/Util.reblink.html +2 -2
  124. package/docs/functions/Util.replaceStaticPrefix.html +2 -2
  125. package/docs/functions/Util.requestAnimationFrameInterval.html +2 -2
  126. package/docs/functions/Util.sculpt.createBox.html +1 -1
  127. package/docs/functions/Util.sculpt.createCircle.html +1 -1
  128. package/docs/functions/Util.sculpt.createCylinder.html +1 -1
  129. package/docs/functions/Util.sculpt.createLine.html +2 -2
  130. package/docs/functions/Util.sculpt.createPoint.html +1 -1
  131. package/docs/functions/Util.sculpt.createPolygon.html +1 -1
  132. package/docs/functions/Util.sculpt.createPrism.html +1 -1
  133. package/docs/functions/Util.sculpt.createRectangle.html +2 -2
  134. package/docs/functions/Util.tag.html +1 -1
  135. package/docs/functions/Util.tweenProgress.html +1 -1
  136. package/docs/functions/Util.uuid.html +2 -2
  137. package/docs/functions/Util.waitFiveModelLoaded.html +2 -2
  138. package/docs/functions/Util.worldBounding.html +1 -1
  139. package/docs/functions/Util.worldBoundingBox.html +1 -1
  140. package/docs/functions/Util.worldBoundingSphere.html +1 -1
  141. package/docs/functions/createPolyline.html +2 -2
  142. package/docs/functions/pluginFlag.html +1 -1
  143. package/docs/hierarchy.html +1 -1
  144. package/docs/index.html +2 -2
  145. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +2 -2
  146. package/docs/interfaces/AreaMakerPluginType.Config.html +2 -2
  147. package/docs/interfaces/AreaMakerPluginType.EventMap.html +2 -2
  148. package/docs/interfaces/AreaMakerPluginType.Params.html +2 -2
  149. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +2 -2
  150. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +2 -2
  151. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +2 -2
  152. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +2 -2
  153. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
  154. package/docs/interfaces/AreaMakerPluginType.State.html +2 -2
  155. package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
  156. package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
  157. package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
  158. package/docs/interfaces/ContentTypeMapInterface.html +2 -2
  159. package/docs/interfaces/CruisePluginTypes.Config.html +2 -2
  160. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
  161. package/docs/interfaces/CruisePluginTypes.EventMap.html +2 -2
  162. package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +2 -2
  163. package/docs/interfaces/CruisePluginTypes.MoveAction.html +2 -2
  164. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +2 -2
  165. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +2 -2
  166. package/docs/interfaces/CruisePluginTypes.PluginData.html +2 -2
  167. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
  168. package/docs/interfaces/CruisePluginTypes.PluginState.html +2 -2
  169. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +2 -2
  170. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +2 -2
  171. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +2 -2
  172. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
  173. package/docs/interfaces/CurrentPanoImagePluginType.State.html +2 -2
  174. package/docs/interfaces/FloorplanBounding.html +2 -2
  175. package/docs/interfaces/FloorplanData.html +2 -2
  176. package/docs/interfaces/FloorplanEntrance.html +2 -2
  177. package/docs/interfaces/FloorplanExtraObject.html +2 -2
  178. package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
  179. package/docs/interfaces/FloorplanFloorData.html +2 -2
  180. package/docs/interfaces/FloorplanImagePosition.html +2 -2
  181. package/docs/interfaces/FloorplanObserver.html +2 -2
  182. package/docs/interfaces/FloorplanOutlineItem.html +2 -2
  183. package/docs/interfaces/FloorplanPosition.html +2 -2
  184. package/docs/interfaces/FloorplanRoomItem.html +2 -2
  185. package/docs/interfaces/FloorplanRoomLabelItem.html +2 -2
  186. package/docs/interfaces/FloorplanServerBounding.html +2 -2
  187. package/docs/interfaces/FloorplanServerComputedData.html +2 -2
  188. package/docs/interfaces/FloorplanServerData.html +2 -2
  189. package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
  190. package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
  191. package/docs/interfaces/FloorplanServerEntrance.html +2 -2
  192. package/docs/interfaces/FloorplanServerFloorData.html +2 -2
  193. package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
  194. package/docs/interfaces/FloorplanServerObserver.html +2 -2
  195. package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
  196. package/docs/interfaces/FloorplanServerPosition.html +2 -2
  197. package/docs/interfaces/FloorplanServerRoomItem.html +2 -2
  198. package/docs/interfaces/FloorplanServerRoomLabelItem.html +2 -2
  199. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
  200. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +2 -2
  201. package/docs/interfaces/GuideLinePluginType.EventMap.html +2 -2
  202. package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +2 -2
  203. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +2 -2
  204. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
  205. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +2 -2
  206. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +2 -2
  207. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
  208. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +2 -2
  209. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
  210. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +2 -2
  211. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
  212. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
  213. package/docs/interfaces/GuideLinePluginType.PluginState.html +2 -2
  214. package/docs/interfaces/GuideLinePluginType.Route.html +2 -2
  215. package/docs/interfaces/HelperOffset.html +2 -2
  216. package/docs/interfaces/ImagePlaneGroup.html +2 -2
  217. package/docs/interfaces/ItemLabelPluginData.html +2 -2
  218. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +2 -2
  219. package/docs/interfaces/ItemLabelPluginParametersType.html +2 -2
  220. package/docs/interfaces/MinMax.html +2 -2
  221. package/docs/interfaces/ModelChassisCompassPluginData.html +2 -2
  222. package/docs/interfaces/ModelChassisCompassPluginExportType.html +2 -2
  223. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +2 -2
  224. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +2 -2
  225. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +2 -2
  226. package/docs/interfaces/ModelItemLabelPluginData.html +2 -2
  227. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +2 -2
  228. package/docs/interfaces/ModelItemLabelPluginParametersType.html +2 -2
  229. package/docs/interfaces/ModelMakerPluginType.BoxItemObjectData.html +2 -2
  230. package/docs/interfaces/ModelMakerPluginType.EventMap.html +2 -2
  231. package/docs/interfaces/ModelMakerPluginType.PrismItemObjectData.html +2 -2
  232. package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +2 -2
  233. package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +2 -2
  234. package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
  235. package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +2 -2
  236. package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +2 -2
  237. package/docs/interfaces/ModelMakerPluginType.State.html +2 -2
  238. package/docs/interfaces/ModelMakerPluginType.TrianglesItemObjectData.html +2 -2
  239. package/docs/interfaces/ModelRoomLabelPluginData.html +2 -2
  240. package/docs/interfaces/ModelTVVideoPluginData.html +2 -2
  241. package/docs/interfaces/ModelTVVideoPluginExportType.html +2 -2
  242. package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -2
  243. package/docs/interfaces/ModelViewPluginExportType.html +2 -2
  244. package/docs/interfaces/Object3DHelperState.html +2 -2
  245. package/docs/interfaces/ObjectHelperControllers.html +2 -2
  246. package/docs/interfaces/PaintBrushAction.html +2 -2
  247. package/docs/interfaces/PaintBrushConfigs.html +2 -2
  248. package/docs/interfaces/PaintBrushState.html +2 -2
  249. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +2 -2
  250. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
  251. package/docs/interfaces/PanoMeasureParameterType.html +2 -2
  252. package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
  253. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +2 -2
  254. package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
  255. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +2 -2
  256. package/docs/interfaces/PanoRulerPluginExportType.html +2 -2
  257. package/docs/interfaces/PanoRulerPluginOptions.html +2 -2
  258. package/docs/interfaces/PanoRulerPluginParameterType.html +2 -2
  259. package/docs/interfaces/PanoRulerProPluginExportType.html +2 -2
  260. package/docs/interfaces/PanoRulerProPluginOptions.html +2 -2
  261. package/docs/interfaces/PanoRulerProPluginParameterType.html +2 -2
  262. package/docs/interfaces/PanoRulerProPluginState.html +2 -2
  263. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
  264. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
  265. package/docs/interfaces/PanoSpatialTagPluginData.html +2 -2
  266. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +2 -2
  267. package/docs/interfaces/PanoSpatialTagPluginExportType.html +2 -2
  268. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +2 -2
  269. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +2 -2
  270. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +2 -2
  271. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +2 -2
  272. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +2 -2
  273. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +2 -2
  274. package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
  275. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +2 -2
  276. package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
  277. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +2 -2
  278. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +2 -2
  279. package/docs/interfaces/PluginEventMap.html +2 -2
  280. package/docs/interfaces/Point.html +2 -2
  281. package/docs/interfaces/Room.html +2 -2
  282. package/docs/interfaces/RoomInfo.html +2 -2
  283. package/docs/interfaces/RoomLabel.html +2 -2
  284. package/docs/interfaces/RoomRules.html +1 -1
  285. package/docs/interfaces/Rooms.html +1 -1
  286. package/docs/interfaces/Scissor.html +2 -2
  287. package/docs/interfaces/SculptConfig.html +2 -2
  288. package/docs/interfaces/State.html +2 -2
  289. package/docs/interfaces/TagCacheInterface.html +2 -2
  290. package/docs/interfaces/TagConfig.html +2 -2
  291. package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
  292. package/docs/interfaces/TagIconUrl.html +2 -2
  293. package/docs/interfaces/TagObjectGroup.html +2 -2
  294. package/docs/interfaces/TagState.html +2 -2
  295. package/docs/interfaces/TagStyle.html +2 -2
  296. package/docs/interfaces/Tags.html +2 -2
  297. package/docs/interfaces/TemporaryState.html +2 -2
  298. package/docs/interfaces/Util.AnimeInstance.html +2 -2
  299. package/docs/interfaces/Util.BlinkAnimeOptions.html +2 -2
  300. package/docs/interfaces/Util.EventHandlerConfig.html +2 -2
  301. package/docs/interfaces/Util.FiveDomEvent.html +2 -2
  302. package/docs/interfaces/Util.FiveDomEventMap.html +2 -2
  303. package/docs/interfaces/Util.LegacyMouseGroupParameter.html +2 -2
  304. package/docs/interfaces/Util.MagnifierParameter.html +2 -2
  305. package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
  306. package/docs/interfaces/Util.PointIntersection.html +2 -2
  307. package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
  308. package/docs/interfaces/Util.ReBlinkAnimeOptions.html +2 -2
  309. package/docs/modules/AreaMakerPluginType.html +2 -2
  310. package/docs/modules/CruisePluginTypes.html +2 -2
  311. package/docs/modules/CurrentPanoImagePluginType.html +2 -2
  312. package/docs/modules/GuideLineItem.html +2 -2
  313. package/docs/modules/GuideLineModeItem.html +2 -2
  314. package/docs/modules/GuideLinePluginType.html +2 -2
  315. package/docs/modules/ModelMakerPluginType.html +2 -2
  316. package/docs/modules/PanoVideoPluginType.html +2 -2
  317. package/docs/modules/SculptData.html +2 -2
  318. package/docs/modules/SculptType.html +2 -2
  319. package/docs/modules/Util.html +2 -2
  320. package/docs/modules/Util.sculpt.html +2 -2
  321. package/docs/modules.html +2 -2
  322. package/docs/types/AddObject3DHelperConfig.html +2 -2
  323. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +2 -2
  324. package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -1
  325. package/docs/types/AreaMakerPluginType.PluginData.html +2 -2
  326. package/docs/types/AreaMakerPluginType.ServerData.html +2 -2
  327. package/docs/types/ArrayPosition.html +1 -1
  328. package/docs/types/AudioAppearance.html +1 -1
  329. package/docs/types/CSS3DRenderExportType.html +1 -1
  330. package/docs/types/CSS3DRenderPluginExportType.html +1 -1
  331. package/docs/types/CSS3DRenderPluginParameterType.html +1 -1
  332. package/docs/types/ClassFunctionParameters.html +1 -1
  333. package/docs/types/Color.html +1 -1
  334. package/docs/types/ContentTypeConfigKey.html +1 -1
  335. package/docs/types/ContentTypeConfigKeySplit.html +1 -1
  336. package/docs/types/ContentTypeMap.html +1 -1
  337. package/docs/types/Create3DDomContainerReturnType.html +1 -1
  338. package/docs/types/Create3DElementReturnType.html +1 -1
  339. package/docs/types/CruisePluginExportType.html +1 -1
  340. package/docs/types/CruisePluginTypes.CruiseData.html +2 -2
  341. package/docs/types/CruisePluginTypes.MoveEffect.html +1 -1
  342. package/docs/types/CurrentPanoImagePluginExportType.html +1 -1
  343. package/docs/types/DeprecatedMediaPlaneProperty.html +2 -2
  344. package/docs/types/DeprecatedTagProperty.html +2 -2
  345. package/docs/types/Direction-1.html +1 -1
  346. package/docs/types/Direction4.html +1 -1
  347. package/docs/types/ElementRenderer.html +2 -2
  348. package/docs/types/FloorplanRuleLabels.html +2 -2
  349. package/docs/types/FloorplanServerRuleLabels.html +1 -1
  350. package/docs/types/GuideLinePluginExportType.html +1 -1
  351. package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -2
  352. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -1
  353. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -1
  354. package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -2
  355. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -2
  356. package/docs/types/GuideLinePluginType.PathItem.html +2 -2
  357. package/docs/types/GuideLinePluginType.PluginData.html +2 -2
  358. package/docs/types/GuideLinePluginType.RouteConfig.html +2 -2
  359. package/docs/types/HelperEventMap.html +1 -1
  360. package/docs/types/InternalHelperEventMap.html +1 -1
  361. package/docs/types/MapviewFloorplanPluginParameterType.html +1 -1
  362. package/docs/types/MapviewFloorplanPluginReturnType.html +1 -1
  363. package/docs/types/MeasureEndReason.html +1 -1
  364. package/docs/types/MeasurePluginConfig.html +2 -2
  365. package/docs/types/MediaData.html +2 -2
  366. package/docs/types/MediaStore.html +1 -1
  367. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -1
  368. package/docs/types/ModelFloorplanPluginParameterType.html +1 -1
  369. package/docs/types/ModelFloorplanPluginReturnType.html +1 -1
  370. package/docs/types/ModelId.html +1 -1
  371. package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -1
  372. package/docs/types/ModelMakerPluginType.ItemType.html +2 -2
  373. package/docs/types/ModelMakerPluginType.MarkerItem.html +1 -1
  374. package/docs/types/ModelMakerPluginType.ServerItem.html +2 -2
  375. package/docs/types/ModelRoomLabelPluginParameters.html +1 -1
  376. package/docs/types/ModelRoomLabelPluginReturnType.html +1 -1
  377. package/docs/types/MoveArgs.html +2 -2
  378. package/docs/types/MoveOpts.html +2 -2
  379. package/docs/types/Object3DHelperEventMap.html +1 -1
  380. package/docs/types/ObjectFit.html +1 -1
  381. package/docs/types/PaintBrushEventMap.html +1 -1
  382. package/docs/types/PanoCompassPluginData.html +1 -1
  383. package/docs/types/PanoCompassPluginExportType.html +1 -1
  384. package/docs/types/PanoCompassPluginParameterType.html +1 -1
  385. package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -1
  386. package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -1
  387. package/docs/types/PanoIndex.html +1 -1
  388. package/docs/types/PanoMeasurePluginEvent.html +1 -1
  389. package/docs/types/PanoMeasureReturnType.html +1 -1
  390. package/docs/types/PanoSpatialTagPluginId.html +1 -1
  391. package/docs/types/PanoTagPluginExportInterface.html +1 -1
  392. package/docs/types/PanoTagPluginParamsInterface.html +1 -1
  393. package/docs/types/PanoVideoPluginParameterType.html +1 -1
  394. package/docs/types/PanoVideoPluginReturnType.html +1 -1
  395. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -2
  396. package/docs/types/PipelinePluginParameterType.html +1 -1
  397. package/docs/types/PipelinePluginReturnType.html +1 -1
  398. package/docs/types/PlaneTag.html +2 -2
  399. package/docs/types/Point2DTag.html +2 -2
  400. package/docs/types/Point3DTag.html +2 -2
  401. package/docs/types/PointTagInstance.html +1 -1
  402. package/docs/types/Position.html +1 -1
  403. package/docs/types/PositionFrom.html +1 -1
  404. package/docs/types/RotateArgs.html +2 -2
  405. package/docs/types/RotateOpts.html +2 -2
  406. package/docs/types/RuleLabelsKey.html +1 -1
  407. package/docs/types/RuleLabelsValue.html +1 -1
  408. package/docs/types/ScaleCallback.html +1 -1
  409. package/docs/types/ScalePosition.html +2 -2
  410. package/docs/types/SculptData.BoxData.html +1 -1
  411. package/docs/types/SculptData.CircleData.html +1 -1
  412. package/docs/types/SculptData.CylinderData.html +1 -1
  413. package/docs/types/SculptData.PointData.html +1 -1
  414. package/docs/types/SculptData.PolygonData.html +1 -1
  415. package/docs/types/SculptData.PolylineData.html +1 -1
  416. package/docs/types/SculptData.PrismData.html +1 -1
  417. package/docs/types/SculptData.RectangleData.html +1 -1
  418. package/docs/types/SculptType.Theme.html +2 -2
  419. package/docs/types/StickType.html +1 -1
  420. package/docs/types/Tag.html +2 -2
  421. package/docs/types/Tag2D.html +2 -2
  422. package/docs/types/Tag3D.html +2 -2
  423. package/docs/types/TagClickParams.html +1 -1
  424. package/docs/types/TagConfigByKey.html +1 -1
  425. package/docs/types/TagContentType.html +1 -1
  426. package/docs/types/TagContentTypeMapping.html +1 -1
  427. package/docs/types/TagDimensionType.html +1 -1
  428. package/docs/types/TagElement.html +2 -2
  429. package/docs/types/TagEvents.html +1 -1
  430. package/docs/types/TagGLTFObject.html +1 -1
  431. package/docs/types/TagHooks.html +1 -1
  432. package/docs/types/TagId.html +1 -1
  433. package/docs/types/TagInstance.html +1 -1
  434. package/docs/types/TagPlacement.html +2 -2
  435. package/docs/types/TagPointType.html +2 -2
  436. package/docs/types/TagRendererMap.html +1 -1
  437. package/docs/types/TopviewFloorplanPluginParameterType.html +1 -1
  438. package/docs/types/TopviewFloorplanPluginReturnType.html +1 -1
  439. package/docs/types/Util.ActionIfNoIntersection.html +1 -1
  440. package/docs/types/Util.AdherePoint.html +2 -2
  441. package/docs/types/Util.PointSelectorConfig.html +1 -1
  442. package/docs/types/WorkCode.html +1 -1
  443. package/docs/variables/FLOOR_TYPE_MAP.html +2 -2
  444. package/docs/variables/PLUGIN.html +1 -1
  445. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -2
  446. package/docs/variables/ROOM_TYPE_MAP.html +2 -2
  447. package/docs/variables/Util.CURRENT_PANO_IMAGE_DEFAULT_IMAGE.html +2 -2
  448. package/docs/variables/Util.DEFAULT_STATIC_PREFIX.html +2 -2
  449. package/docs/variables/Util.DNALOGEL_DEFAULT_ASSETS.html +2 -2
  450. package/docs/variables/Util.ENTRY_DOOR_DEFAULT_IMAGE.html +2 -2
  451. package/docs/variables/Util.FLOORPLAN_DEFAULT_IMAGE.html +2 -2
  452. package/docs/variables/Util.GUIDELINE_DEFAULT_ARROW_TEXTURE.html +2 -2
  453. package/docs/variables/Util.GUIDELINE_WHITE_ARROW_TEXTURE.html +2 -2
  454. package/docs/variables/Util.MODEL_CHASSIS_COMPASS_DEFAULT_MODEL.html +2 -2
  455. package/docs/variables/Util.MODEL_ENTRY_DOOR_GUIDE_PLUGIN_DEFAULT_MODEL.html +2 -2
  456. package/docs/variables/Util.PANO_COMPASS_DEFAULT_IMAGE.html +2 -2
  457. package/docs/variables/Util.PANO_SPATIAL_TAG_BLUR_IMAGE.html +2 -2
  458. package/docs/variables/Util.PANO_TAG_DEFAULT_LINK_ICON.html +2 -2
  459. package/docs/variables/Util.animeMap.html +1 -1
  460. package/docs/variables/defaultGlobalConfig.html +1 -1
  461. package/docs/variables/itemLabelPluginServerParams.html +1 -1
  462. package/docs/variables/modelItemLabelPluginServerParams.html +1 -1
  463. package/docs/variables/modelRoomLabelPluginServerParams.html +1 -1
  464. package/libs/MeasurePlugin/Controller.js +183 -174
  465. package/libs/base/BasePlugin.js +1 -1
  466. package/libs/shared-utils/logger.js +1 -1
  467. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -43,7 +43,7 @@ import { LineGeometry as yA, LineMaterial as wA, THREE_Line2 as PA, Line as CA }
43
43
  import { GLTFLoader as IA } from "@realsee/five/gltf-loader";
44
44
  function EA() {
45
45
  console.debug(
46
- "%c %c@realsee/dnalogel %cv3.69.1-alpha.1",
46
+ "%c %c@realsee/dnalogel %cv3.69.1-alpha.2",
47
47
  [
48
48
  "background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
49
49
  "background-repeat: no-repeat",
@@ -967,13 +967,13 @@ let HA = class extends BA {
967
967
  if (g.tweening = !0, !g.ready)
968
968
  return a.clearRect(0, 0, g.canvas[u].width, g.canvas[u].height), (w = g.tween) == null ? void 0 : w.stop();
969
969
  const A = Math.floor(v);
970
- if (!p.find((M) => M === A)) {
970
+ if (!p.find((E) => E === A)) {
971
971
  if (p.push(A), m.push(Ql(l[A], g.clientWidth, g.clientHeight)), m.length < 3)
972
972
  return;
973
- const { control: M, end: k } = ua(m);
974
- if (!M || !k)
973
+ const { control: E, end: k } = ua(m);
974
+ if (!E || !k)
975
975
  return;
976
- a.quadraticCurveTo(M.x, M.y, k.x, k.y), a.stroke();
976
+ a.quadraticCurveTo(E.x, E.y, k.x, k.y), a.stroke();
977
977
  }
978
978
  }).onComplete((v) => {
979
979
  g.tween = void 0, g.tweening = !1, p = [], m = [], o && o(), r();
@@ -1629,7 +1629,7 @@ var ki = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
1629
1629
  (function(t, e, i, s) {
1630
1630
  var o = ["", "webkit", "Moz", "MS", "ms", "o"], r = e.createElement("div"), a = "function", l = Math.round, c = Math.abs, h = Date.now;
1631
1631
  function u(O, G, Z) {
1632
- return setTimeout(M(O, Z), G);
1632
+ return setTimeout(E(O, Z), G);
1633
1633
  }
1634
1634
  function f(O, G, Z) {
1635
1635
  return Array.isArray(O) ? (m(O, Z[G], Z), !0) : !1;
@@ -1678,7 +1678,7 @@ var ki = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
1678
1678
  var ne = G.prototype, be;
1679
1679
  be = O.prototype = Object.create(ne), be.constructor = O, be._super = ne, Z && g(be, Z);
1680
1680
  }
1681
- function M(O, G) {
1681
+ function E(O, G) {
1682
1682
  return function() {
1683
1683
  return O.apply(G, arguments);
1684
1684
  };
@@ -1726,7 +1726,7 @@ var ki = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
1726
1726
  function I(O) {
1727
1727
  return Array.prototype.slice.call(O, 0);
1728
1728
  }
1729
- function E(O, G, Z) {
1729
+ function M(O, G, Z) {
1730
1730
  for (var ne = [], be = [], Oe = 0; Oe < O.length; ) {
1731
1731
  var Qe = G ? O[Oe][G] : O[Oe];
1732
1732
  C(be, Qe) < 0 && ne.push(O[Oe]), be[Oe] = Qe, Oe++;
@@ -1948,7 +1948,7 @@ var ki = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
1948
1948
  });
1949
1949
  function Wi(O, G) {
1950
1950
  var Z = I(O.touches), ne = I(O.changedTouches);
1951
- return G & (Le | $) && (Z = E(Z.concat(ne), "identifier", !0)), [Z, ne];
1951
+ return G & (Le | $) && (Z = M(Z.concat(ne), "identifier", !0)), [Z, ne];
1952
1952
  }
1953
1953
  var Qs = {
1954
1954
  touchstart: fe,
@@ -1985,14 +1985,14 @@ var ki = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
1985
1985
  if (bt.length)
1986
1986
  return [
1987
1987
  // merge targetTouches with changedTargetTouches so it contains ALL touches, including 'end' and 'cancel'
1988
- E(Oe.concat(bt), "identifier", !0),
1988
+ M(Oe.concat(bt), "identifier", !0),
1989
1989
  bt
1990
1990
  ];
1991
1991
  }
1992
1992
  var Zo = 2500, vs = 25;
1993
1993
  function on() {
1994
1994
  Je.apply(this, arguments);
1995
- var O = M(this.handler, this);
1995
+ var O = E(this.handler, this);
1996
1996
  this.touch = new zn(this.manager, O), this.mouse = new Ci(this.manager, O), this.primaryTouch = null, this.lastTouches = [];
1997
1997
  }
1998
1998
  w(on, Je, {
@@ -2789,7 +2789,7 @@ var ki = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
2789
2789
  extend: v,
2790
2790
  assign: g,
2791
2791
  inherit: w,
2792
- bindFn: M,
2792
+ bindFn: E,
2793
2793
  prefixed: S
2794
2794
  });
2795
2795
  var tr = typeof t != "undefined" ? t : typeof self != "undefined" ? self : {};
@@ -3090,7 +3090,7 @@ let $A = function(n) {
3090
3090
  for (let A = 0, w = g.children.length; A < w; A++)
3091
3091
  m(g.children[A]);
3092
3092
  }
3093
- function p(g, v, A, w, M) {
3093
+ function p(g, v, A, w, E) {
3094
3094
  var k;
3095
3095
  if (g.visible === !1) {
3096
3096
  m(g);
@@ -3100,7 +3100,7 @@ let $A = function(n) {
3100
3100
  const L = (k = g.mode) != null ? k : "front";
3101
3101
  if (n && L !== n)
3102
3102
  return;
3103
- g.flag = M;
3103
+ g.flag = E;
3104
3104
  const D = g.layers.test(A.layers) === !0, j = g.element;
3105
3105
  if (j.style.display = D === !0 ? "" : "none", D) {
3106
3106
  g.onBeforeRender(t, v, A);
@@ -3116,13 +3116,13 @@ let $A = function(n) {
3116
3116
  }
3117
3117
  }
3118
3118
  for (let L = 0, D = g.children.length; L < D; L++)
3119
- p(g.children[L], v, A, w, M);
3119
+ p(g.children[L], v, A, w, E);
3120
3120
  }
3121
3121
  this.render = function(g, v) {
3122
3122
  let A = v.projectionMatrix.elements[5] * o;
3123
3123
  if (a.camera.fov !== A && (v.isPerspectiveCamera ? (l.style.WebkitPerspective = A + "px", l.style.perspective = A + "px") : (l.style.WebkitPerspective = "", l.style.perspective = ""), a.camera.fov = A), g.autoUpdate === !0 && g.updateMatrixWorld(), v.parent === null && v.updateMatrixWorld(), v.isOrthographicCamera)
3124
- var w = -(v.right + v.left) / 2, M = (v.top + v.bottom) / 2;
3125
- let k = v.isOrthographicCamera ? "scale(" + A + ")translate(" + h(w) + "px," + h(M) + "px)" + u(v.matrixWorldInverse) : "translateZ(" + A + "px)" + u(v.matrixWorldInverse), L = k + "translate(" + s + "px," + o + "px)";
3124
+ var w = -(v.right + v.left) / 2, E = (v.top + v.bottom) / 2;
3125
+ let k = v.isOrthographicCamera ? "scale(" + A + ")translate(" + h(w) + "px," + h(E) + "px)" + u(v.matrixWorldInverse) : "translateZ(" + A + "px)" + u(v.matrixWorldInverse), L = k + "translate(" + s + "px," + o + "px)";
3126
3126
  a.camera.style !== L && (c.style.WebkitTransform = L, c.style.transform = L, a.camera.style = L);
3127
3127
  const D = g.uuid + "_" + performance.now().toString();
3128
3128
  p(g, g, v, k, D), a.objects.forEach(function(j, z) {
@@ -4012,15 +4012,15 @@ class wi extends fi {
4012
4012
  const b = this.five.getElement();
4013
4013
  if (!b)
4014
4014
  return 0;
4015
- const C = b.clientWidth, I = b.clientHeight, E = C / 2, S = I / 2, T = o.clone().project(this.five.camera), N = r.clone().project(this.five.camera), _ = {
4016
- x: T.x * E,
4015
+ const C = b.clientWidth, I = b.clientHeight, M = C / 2, S = I / 2, T = o.clone().project(this.five.camera), N = r.clone().project(this.five.camera), _ = {
4016
+ x: T.x * M,
4017
4017
  y: T.y * S
4018
4018
  }, q = {
4019
- x: N.x * E,
4019
+ x: N.x * M,
4020
4020
  y: N.y * S
4021
4021
  };
4022
4022
  return Math.sqrt(Math.pow(q.x - _.x, 2) + Math.pow(q.y - _.y, 2));
4023
- })(), w = (() => !this.five || !this.five.camera ? 20 : si(o, r).distanceTo(this.five.camera.position))(), M = ((v = (g = this.five) == null ? void 0 : g.camera) == null ? void 0 : v.fov) || 60, k = 2 * Math.tan(0.5 * M / 180 * Math.PI), D = `--distance-scale: ${Math.max(Math.min(1 - k * w / 40, 1), 0)};`, j = (b) => {
4023
+ })(), w = (() => !this.five || !this.five.camera ? 20 : si(o, r).distanceTo(this.five.camera.position))(), E = ((v = (g = this.five) == null ? void 0 : g.camera) == null ? void 0 : v.fov) || 60, k = 2 * Math.tan(0.5 * E / 180 * Math.PI), D = `--distance-scale: ${Math.max(Math.min(1 - k * w / 40, 1), 0)};`, j = (b) => {
4024
4024
  const C = document.createElement("div");
4025
4025
  C.classList.add("LineLengthTag"), C.style.visibility = "hidden", C.style.position = "absolute", C.style.padding = "2px 8px", C.style.fontFamily = "Arial-BoldMT", C.style.fontSize = "14px", C.innerText = b, document.body.appendChild(C);
4026
4026
  const I = C.offsetWidth;
@@ -4513,12 +4513,12 @@ class pl extends Ct {
4513
4513
  const w = {
4514
4514
  x: (A.x + 1) / 2,
4515
4515
  y: (1 - A.y) / 2
4516
- }, M = {
4516
+ }, E = {
4517
4517
  x: Math.abs(w.x - f.x) * m.width,
4518
4518
  y: Math.abs(w.y - f.y) * m.height
4519
4519
  };
4520
4520
  let k = v.clone();
4521
- M.x < 10 && M.y < 10 && (!this.plane || this.plane.distanceToPoint(k) < 0.01) && (k = (c = (l = this.plane) == null ? void 0 : l.projectPoint(k, new P.Vector3())) != null ? c : k, i.point = k.clone(), i.adhereLine = p.clone(), i.isAdsorbed = !0);
4521
+ E.x < 10 && E.y < 10 && (!this.plane || this.plane.distanceToPoint(k) < 0.01) && (k = (c = (l = this.plane) == null ? void 0 : l.projectPoint(k, new P.Vector3())) != null ? c : k, i.point = k.clone(), i.adhereLine = p.clone(), i.isAdsorbed = !0);
4522
4522
  }
4523
4523
  }
4524
4524
  }
@@ -4533,12 +4533,12 @@ class pl extends Ct {
4533
4533
  const A = g.clone().project(this.five.camera);
4534
4534
  if (A.z > 1)
4535
4535
  continue;
4536
- const w = this.five.renderer.getSize(new P.Vector2()), M = {
4536
+ const w = this.five.renderer.getSize(new P.Vector2()), E = {
4537
4537
  x: (A.x + 1) / 2,
4538
4538
  y: (1 - A.y) / 2
4539
4539
  }, k = {
4540
- x: Math.abs(M.x - f.x) * w.width,
4541
- y: Math.abs(M.y - f.y) * w.height
4540
+ x: Math.abs(E.x - f.x) * w.width,
4541
+ y: Math.abs(E.y - f.y) * w.height
4542
4542
  };
4543
4543
  if (k.x < 10 && k.y < 10) {
4544
4544
  let L = !1;
@@ -4719,8 +4719,8 @@ let Qm = class extends yn {
4719
4719
  i.classList.add(`${nd}__container`);
4720
4720
  const g = new Ae().subVectors(s[1], s[0]), v = new Ae().subVectors(s[3], s[0]), A = new Ae().crossVectors(g, v).normalize();
4721
4721
  this.lookAt(A);
4722
- const w = this.up.clone().applyQuaternion(this.quaternion), M = v.clone(), k = new Ae().crossVectors(w, M).normalize();
4723
- this.rotateOnWorldAxis(k, w.angleTo(M)), this.position.copy(m), this.addEventListener("added", () => {
4722
+ const w = this.up.clone().applyQuaternion(this.quaternion), E = v.clone(), k = new Ae().crossVectors(w, E).normalize();
4723
+ this.rotateOnWorldAxis(k, w.angleTo(E)), this.position.copy(m), this.addEventListener("added", () => {
4724
4724
  var b;
4725
4725
  this.mode === "front" && ((b = this.opacityMesh) == null || b.removeFromParent());
4726
4726
  }), this.addEventListener("removed", () => {
@@ -5017,11 +5017,11 @@ function Eh(n, t) {
5017
5017
  return e && e.applyMatrix4(Rb(n.matrixWorld.clone())), e;
5018
5018
  }
5019
5019
  const Rb = (n) => {
5020
- const t = n.elements, e = t[0], i = t[1], s = t[2], o = t[3], r = t[4], a = t[5], l = t[6], c = t[7], h = t[8], u = t[9], f = t[10], m = t[11], p = t[12], g = t[13], v = t[14], A = t[15], w = u * v * c - g * f * c + g * l * m - a * v * m - u * l * A + a * f * A, M = p * f * c - h * v * c - p * l * m + r * v * m + h * l * A - r * f * A, k = h * g * c - p * u * c + p * a * m - r * g * m - h * a * A + r * u * A, L = p * u * l - h * g * l - p * a * f + r * g * f + h * a * v - r * u * v, D = e * w + i * M + s * k + o * L;
5020
+ const t = n.elements, e = t[0], i = t[1], s = t[2], o = t[3], r = t[4], a = t[5], l = t[6], c = t[7], h = t[8], u = t[9], f = t[10], m = t[11], p = t[12], g = t[13], v = t[14], A = t[15], w = u * v * c - g * f * c + g * l * m - a * v * m - u * l * A + a * f * A, E = p * f * c - h * v * c - p * l * m + r * v * m + h * l * A - r * f * A, k = h * g * c - p * u * c + p * a * m - r * g * m - h * a * A + r * u * A, L = p * u * l - h * g * l - p * a * f + r * g * f + h * a * v - r * u * v, D = e * w + i * E + s * k + o * L;
5021
5021
  if (D === 0)
5022
5022
  return n.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
5023
5023
  const j = 1 / D;
5024
- return t[0] = w * j, t[1] = (g * f * o - u * v * o - g * s * m + i * v * m + u * s * A - i * f * A) * j, t[2] = (a * v * o - g * l * o + g * s * c - i * v * c - a * s * A + i * l * A) * j, t[3] = (u * l * o - a * f * o - u * s * c + i * f * c + a * s * m - i * l * m) * j, t[4] = M * j, t[5] = (h * v * o - p * f * o + p * s * m - e * v * m - h * s * A + e * f * A) * j, t[6] = (p * l * o - r * v * o - p * s * c + e * v * c + r * s * A - e * l * A) * j, t[7] = (r * f * o - h * l * o + h * s * c - e * f * c - r * s * m + e * l * m) * j, t[8] = k * j, t[9] = (p * u * o - h * g * o - p * i * m + e * g * m + h * i * A - e * u * A) * j, t[10] = (r * g * o - p * a * o + p * i * c - e * g * c - r * i * A + e * a * A) * j, t[11] = (h * a * o - r * u * o - h * i * c + e * u * c + r * i * m - e * a * m) * j, t[12] = L * j, t[13] = (h * g * s - p * u * s + p * i * f - e * g * f - h * i * v + e * u * v) * j, t[14] = (p * a * s - r * g * s - p * i * l + e * g * l + r * i * v - e * a * v) * j, t[15] = (r * u * s - h * a * s + h * i * l - e * u * l - r * i * f + e * a * f) * j, n;
5024
+ return t[0] = w * j, t[1] = (g * f * o - u * v * o - g * s * m + i * v * m + u * s * A - i * f * A) * j, t[2] = (a * v * o - g * l * o + g * s * c - i * v * c - a * s * A + i * l * A) * j, t[3] = (u * l * o - a * f * o - u * s * c + i * f * c + a * s * m - i * l * m) * j, t[4] = E * j, t[5] = (h * v * o - p * f * o + p * s * m - e * v * m - h * s * A + e * f * A) * j, t[6] = (p * l * o - r * v * o - p * s * c + e * v * c + r * s * A - e * l * A) * j, t[7] = (r * f * o - h * l * o + h * s * c - e * f * c - r * s * m + e * l * m) * j, t[8] = k * j, t[9] = (p * u * o - h * g * o - p * i * m + e * g * m + h * i * A - e * u * A) * j, t[10] = (r * g * o - p * a * o + p * i * c - e * g * c - r * i * A + e * a * A) * j, t[11] = (h * a * o - r * u * o - h * i * c + e * u * c + r * i * m - e * a * m) * j, t[12] = L * j, t[13] = (h * g * s - p * u * s + p * i * f - e * g * f - h * i * v + e * u * v) * j, t[14] = (p * a * s - r * g * s - p * i * l + e * g * l + r * i * v - e * a * v) * j, t[15] = (r * u * s - h * a * s + h * i * l - e * u * l - r * i * f + e * a * f) * j, n;
5025
5025
  };
5026
5026
  var $m = {
5027
5027
  update: null,
@@ -5176,10 +5176,10 @@ var Vb = function() {
5176
5176
  for (var g = 0; g < n; ++g)
5177
5177
  p[g] = o(g * t, h, f);
5178
5178
  function v(A) {
5179
- for (var w = 0, M = 1, k = n - 1; M !== k && p[M] <= A; ++M)
5179
+ for (var w = 0, E = 1, k = n - 1; E !== k && p[E] <= A; ++E)
5180
5180
  w += t;
5181
- --M;
5182
- var L = (A - p[M]) / (p[M + 1] - p[M]), D = w + L * t, j = r(D, h, f);
5181
+ --E;
5182
+ var L = (A - p[E]) / (p[E + 1] - p[E]), D = w + L * t, j = r(D, h, f);
5183
5183
  return j >= 1e-3 ? l(A, D, h, f) : j === 0 ? D : a(A, w, w + t, h, f);
5184
5184
  }
5185
5185
  return function(A) {
@@ -5713,17 +5713,17 @@ function ut(n) {
5713
5713
  n === void 0 && (n = {});
5714
5714
  var t = 0, e = 0, i = 0, s, o = 0, r = null;
5715
5715
  function a(w) {
5716
- var M = window.Promise && new Promise(function(k) {
5716
+ var E = window.Promise && new Promise(function(k) {
5717
5717
  return r = k;
5718
5718
  });
5719
- return w.finished = M, M;
5719
+ return w.finished = E, E;
5720
5720
  }
5721
5721
  var l = ay(n);
5722
5722
  a(l);
5723
5723
  function c() {
5724
5724
  var w = l.direction;
5725
- w !== "alternate" && (l.direction = w !== "normal" ? "normal" : "reverse"), l.reversed = !l.reversed, s.forEach(function(M) {
5726
- return M.reversed = l.reversed;
5725
+ w !== "alternate" && (l.direction = w !== "normal" ? "normal" : "reverse"), l.reversed = !l.reversed, s.forEach(function(E) {
5726
+ return E.reversed = l.reversed;
5727
5727
  });
5728
5728
  }
5729
5729
  function h(w) {
@@ -5732,39 +5732,39 @@ function ut(n) {
5732
5732
  function u() {
5733
5733
  t = 0, e = h(l.currentTime) * (1 / ut.speed);
5734
5734
  }
5735
- function f(w, M) {
5736
- M && M.seek(w - M.timelineOffset);
5735
+ function f(w, E) {
5736
+ E && E.seek(w - E.timelineOffset);
5737
5737
  }
5738
5738
  function m(w) {
5739
5739
  if (l.reversePlayback)
5740
5740
  for (var k = o; k--; )
5741
5741
  f(w, s[k]);
5742
5742
  else
5743
- for (var M = 0; M < o; M++)
5744
- f(w, s[M]);
5743
+ for (var E = 0; E < o; E++)
5744
+ f(w, s[E]);
5745
5745
  }
5746
5746
  function p(w) {
5747
- for (var M = 0, k = l.animations, L = k.length; M < L; ) {
5748
- var D = k[M], j = D.animatable, z = D.tweens, B = z.length - 1, b = z[B];
5747
+ for (var E = 0, k = l.animations, L = k.length; E < L; ) {
5748
+ var D = k[E], j = D.animatable, z = D.tweens, B = z.length - 1, b = z[B];
5749
5749
  B && (b = ml(z, function(Te) {
5750
5750
  return w < Te.end;
5751
5751
  })[0] || b);
5752
- for (var C = Zi(w - b.start - b.delay, 0, b.duration) / b.duration, I = isNaN(C) ? 1 : b.easing(C), E = b.to.strings, S = b.round, T = [], N = b.to.numbers.length, _ = void 0, q = 0; q < N; q++) {
5752
+ for (var C = Zi(w - b.start - b.delay, 0, b.duration) / b.duration, I = isNaN(C) ? 1 : b.easing(C), M = b.to.strings, S = b.round, T = [], N = b.to.numbers.length, _ = void 0, q = 0; q < N; q++) {
5753
5753
  var ee = void 0, K = b.to.numbers[q], se = b.from.numbers[q] || 0;
5754
5754
  b.isPath ? ee = $b(b.value, I * K, b.isPathTargetInsideSVG) : ee = se + I * (K - se), S && (b.isColor && q > 2 || (ee = Math.round(ee * S) / S)), T.push(ee);
5755
5755
  }
5756
- var te = E.length;
5756
+ var te = M.length;
5757
5757
  if (!te)
5758
5758
  _ = T[0];
5759
5759
  else {
5760
- _ = E[0];
5760
+ _ = M[0];
5761
5761
  for (var le = 0; le < te; le++) {
5762
- E[le];
5763
- var Se = E[le + 1], ue = T[le];
5762
+ M[le];
5763
+ var Se = M[le + 1], ue = T[le];
5764
5764
  isNaN(ue) || (Se ? _ += ue + Se : _ += ue + " ");
5765
5765
  }
5766
5766
  }
5767
- u0[D.type](j.target, D.property, _, j.transforms), D.currentValue = _, M++;
5767
+ u0[D.type](j.target, D.property, _, j.transforms), D.currentValue = _, E++;
5768
5768
  }
5769
5769
  }
5770
5770
  function g(w) {
@@ -5774,17 +5774,17 @@ function ut(n) {
5774
5774
  l.remaining && l.remaining !== !0 && l.remaining--;
5775
5775
  }
5776
5776
  function A(w) {
5777
- var M = l.duration, k = l.delay, L = M - l.endDelay, D = h(w);
5778
- l.progress = Zi(D / M * 100, 0, 100), l.reversePlayback = D < l.currentTime, s && m(D), !l.began && l.currentTime > 0 && (l.began = !0, g("begin")), !l.loopBegan && l.currentTime > 0 && (l.loopBegan = !0, g("loopBegin")), D <= k && l.currentTime !== 0 && p(0), (D >= L && l.currentTime !== M || !M) && p(M), D > k && D < L ? (l.changeBegan || (l.changeBegan = !0, l.changeCompleted = !1, g("changeBegin")), g("change"), p(D)) : l.changeBegan && (l.changeCompleted = !0, l.changeBegan = !1, g("changeComplete")), l.currentTime = Zi(D, 0, M), l.began && g("update"), w >= M && (e = 0, v(), l.remaining ? (t = i, g("loopComplete"), l.loopBegan = !1, l.direction === "alternate" && c()) : (l.paused = !0, l.completed || (l.completed = !0, g("loopComplete"), g("complete"), !l.passThrough && "Promise" in window && (r(), a(l)))));
5777
+ var E = l.duration, k = l.delay, L = E - l.endDelay, D = h(w);
5778
+ l.progress = Zi(D / E * 100, 0, 100), l.reversePlayback = D < l.currentTime, s && m(D), !l.began && l.currentTime > 0 && (l.began = !0, g("begin")), !l.loopBegan && l.currentTime > 0 && (l.loopBegan = !0, g("loopBegin")), D <= k && l.currentTime !== 0 && p(0), (D >= L && l.currentTime !== E || !E) && p(E), D > k && D < L ? (l.changeBegan || (l.changeBegan = !0, l.changeCompleted = !1, g("changeBegin")), g("change"), p(D)) : l.changeBegan && (l.changeCompleted = !0, l.changeBegan = !1, g("changeComplete")), l.currentTime = Zi(D, 0, E), l.began && g("update"), w >= E && (e = 0, v(), l.remaining ? (t = i, g("loopComplete"), l.loopBegan = !1, l.direction === "alternate" && c()) : (l.paused = !0, l.completed || (l.completed = !0, g("loopComplete"), g("complete"), !l.passThrough && "Promise" in window && (r(), a(l)))));
5779
5779
  }
5780
5780
  return l.reset = function() {
5781
5781
  var w = l.direction;
5782
5782
  l.passThrough = !1, l.currentTime = 0, l.progress = 0, l.paused = !0, l.began = !1, l.loopBegan = !1, l.changeBegan = !1, l.completed = !1, l.changeCompleted = !1, l.reversePlayback = !1, l.reversed = w === "reverse", l.remaining = l.loop, s = l.children, o = s.length;
5783
- for (var M = o; M--; )
5784
- l.children[M].reset();
5783
+ for (var E = o; E--; )
5784
+ l.children[E].reset();
5785
5785
  (l.reversed && l.loop !== !0 || w === "alternate" && l.loop === 1) && l.remaining++, p(l.reversed ? l.duration : 0);
5786
- }, l._onDocumentVisibility = u, l.set = function(w, M) {
5787
- return d0(w, M), l;
5786
+ }, l._onDocumentVisibility = u, l.set = function(w, E) {
5787
+ return d0(w, E), l;
5788
5788
  }, l.tick = function(w) {
5789
5789
  i = w, t || (t = i), A((i + (e - t)) * ut.speed);
5790
5790
  }, l.seek = function(w) {
@@ -5798,8 +5798,8 @@ function ut(n) {
5798
5798
  }, l.restart = function() {
5799
5799
  l.reset(), l.play();
5800
5800
  }, l.remove = function(w) {
5801
- var M = jh(w);
5802
- g0(M, l);
5801
+ var E = jh(w);
5802
+ g0(E, l);
5803
5803
  }, l.reset(), l.autoplay && l.play(), l;
5804
5804
  }
5805
5805
  function ld(n, t) {
@@ -5824,9 +5824,9 @@ function ly(n) {
5824
5824
  function cy(n, t) {
5825
5825
  t === void 0 && (t = {});
5826
5826
  var e = t.direction || "normal", i = t.easing ? kh(t.easing) : null, s = t.grid, o = t.axis, r = t.from || 0, a = r === "first", l = r === "center", c = r === "last", h = He.arr(n), u = parseFloat(h ? n[0] : n), f = h ? parseFloat(n[1]) : 0, m = bn(h ? n[1] : n) || 0, p = t.start || 0 + (h ? u : 0), g = [], v = 0;
5827
- return function(A, w, M) {
5828
- if (a && (r = 0), l && (r = (M - 1) / 2), c && (r = M - 1), !g.length) {
5829
- for (var k = 0; k < M; k++) {
5827
+ return function(A, w, E) {
5828
+ if (a && (r = 0), l && (r = (E - 1) / 2), c && (r = E - 1), !g.length) {
5829
+ for (var k = 0; k < E; k++) {
5830
5830
  if (!s)
5831
5831
  g.push(Math.abs(r - k));
5832
5832
  else {
@@ -5835,10 +5835,10 @@ function cy(n, t) {
5835
5835
  }
5836
5836
  v = Math.max.apply(Math, g);
5837
5837
  }
5838
- i && (g = g.map(function(E) {
5839
- return i(E / v) * v;
5840
- })), e === "reverse" && (g = g.map(function(E) {
5841
- return o ? E < 0 ? E * -1 : -E : Math.abs(v - E);
5838
+ i && (g = g.map(function(M) {
5839
+ return i(M / v) * v;
5840
+ })), e === "reverse" && (g = g.map(function(M) {
5841
+ return o ? M < 0 ? M * -1 : -M : Math.abs(v - M);
5842
5842
  }));
5843
5843
  }
5844
5844
  var I = h ? (f - u) / v : u;
@@ -6162,7 +6162,7 @@ class Sr {
6162
6162
  L && L.add(p);
6163
6163
  }, v = () => {
6164
6164
  m || (g(), this.render(t), this.hooks.emit("render"));
6165
- }, A = (L) => this.setVisibleById(p.id, L), w = (L) => this.setEnabledById(p.id, L), M = () => (m = !0, p.removeFromParent(), !0), k = l === "front" ? Et.frontModeStore.css3DRenderer : Et.behindModeStore.css3DRenderer;
6165
+ }, A = (L) => this.setVisibleById(p.id, L), w = (L) => this.setEnabledById(p.id, L), E = () => (m = !0, p.removeFromParent(), !0), k = l === "front" ? Et.frontModeStore.css3DRenderer : Et.behindModeStore.css3DRenderer;
6166
6166
  return c && v(), {
6167
6167
  id: p.uuid,
6168
6168
  container: h,
@@ -6174,7 +6174,7 @@ class Sr {
6174
6174
  enable: () => w(!0),
6175
6175
  disable: () => w(!1),
6176
6176
  setEnabled: w,
6177
- dispose: M,
6177
+ dispose: E,
6178
6178
  appendToElement: (L) => k.setWrapper(L)
6179
6179
  };
6180
6180
  });
@@ -6565,7 +6565,7 @@ function Qr(n) {
6565
6565
  }
6566
6566
  function Dy(n, t, e) {
6567
6567
  return ie(this, null, function* () {
6568
- var w, M, k;
6568
+ var w, E, k;
6569
6569
  if (!t)
6570
6570
  return;
6571
6571
  const i = Km(t);
@@ -6580,7 +6580,7 @@ function Dy(n, t, e) {
6580
6580
  for (; f !== 360; ) {
6581
6581
  let L = 0;
6582
6582
  const D = p(f), j = (b) => {
6583
- const C = b.distanceTo(D), I = new P.Raycaster(b, D.clone().sub(b).normalize()), E = s.model.intersectRaycaster(I, void 0, !0)[0], S = E == null ? void 0 : E.distance;
6583
+ const C = b.distanceTo(D), I = new P.Raycaster(b, D.clone().sub(b).normalize()), M = s.model.intersectRaycaster(I, void 0, !0)[0], S = M == null ? void 0 : M.distance;
6584
6584
  Fe(S) ? S > C && (L += 1) : L += 1;
6585
6585
  }, z = i.clampPoint(D, new P.Vector3());
6586
6586
  j(z);
@@ -6589,7 +6589,7 @@ function Dy(n, t, e) {
6589
6589
  break;
6590
6590
  f += 30;
6591
6591
  }
6592
- const g = p((k = (M = m[2]) != null ? M : m[1]) != null ? k : 0), v = g.distanceTo(r), A = Qr(r.clone().sub(g).normalize());
6592
+ const g = p((k = (E = m[2]) != null ? E : m[1]) != null ? k : 0), v = g.distanceTo(r), A = Qr(r.clone().sub(g).normalize());
6593
6593
  if (n.state.mode === "Mapview")
6594
6594
  return n.updateCamera(
6595
6595
  V({
@@ -6738,7 +6738,7 @@ class xo {
6738
6738
  return !!e;
6739
6739
  });
6740
6740
  d(this, "notify", (t) => {
6741
- var g, v, A, w, M, k, L;
6741
+ var g, v, A, w, E, k, L;
6742
6742
  const { eventName: e, object: i, originEvent: s, raycaster: o, intersects: r, fiveModelIntersects: a } = t;
6743
6743
  if (!i)
6744
6744
  return !1;
@@ -6770,11 +6770,11 @@ class xo {
6770
6770
  continue;
6771
6771
  if (b.skipPano && a) {
6772
6772
  const I = (v = a[0]) == null ? void 0 : v.point;
6773
- if (I && ((M = (w = (A = this.five.observers) == null ? void 0 : A[this.five.panoIndex]) == null ? void 0 : w.accessibleNodes) != null && M.some((E) => {
6773
+ if (I && ((E = (w = (A = this.five.observers) == null ? void 0 : A[this.five.panoIndex]) == null ? void 0 : w.accessibleNodes) != null && E.some((M) => {
6774
6774
  var T;
6775
6775
  const S = (T = this.five.works.getResolvedObserver({
6776
6776
  workCode: this.five.state.workCode,
6777
- panoIndex: E
6777
+ panoIndex: M
6778
6778
  })) == null ? void 0 : T.standingPosition;
6779
6779
  return (S == null ? void 0 : S.distanceTo(I)) < 0.3;
6780
6780
  })))
@@ -7087,16 +7087,16 @@ const fS = (n, t) => {
7087
7087
  h.near = 1, h.updateTime(Date.now());
7088
7088
  let u = new P.Object3D(), f, m;
7089
7089
  {
7090
- const E = new P.DirectionalLight(16777215, 0.5);
7091
- E.position.copy(new P.Vector3(1, 1, 1)), c.add(E);
7090
+ const M = new P.DirectionalLight(16777215, 0.5);
7091
+ M.position.copy(new P.Vector3(1, 1, 1)), c.add(M);
7092
7092
  }
7093
7093
  {
7094
- const E = new P.DirectionalLight(16777215, 0.3);
7095
- c.add(E);
7094
+ const M = new P.DirectionalLight(16777215, 0.3);
7095
+ c.add(M);
7096
7096
  }
7097
7097
  {
7098
- const E = new P.AmbientLight(16777215, 0.3);
7099
- c.add(E);
7098
+ const M = new P.AmbientLight(16777215, 0.3);
7099
+ c.add(M);
7100
7100
  }
7101
7101
  c.add(u);
7102
7102
  const p = () => ie(void 0, null, function* () {
@@ -7111,8 +7111,8 @@ const fS = (n, t) => {
7111
7111
  const te = se.scene;
7112
7112
  return te.rotateX(-Math.PI / 2), te;
7113
7113
  });
7114
- const E = Ns(u), S = new P.Box3();
7115
- S.expandByPoint(new P.Vector3(E.min.x, E.min.z, -E.min.y)), S.expandByPoint(new P.Vector3(E.max.x, E.max.z, -E.max.y));
7114
+ const M = Ns(u), S = new P.Box3();
7115
+ S.expandByPoint(new P.Vector3(M.min.x, M.min.z, -M.min.y)), S.expandByPoint(new P.Vector3(M.max.x, M.max.z, -M.max.y));
7116
7116
  const T = Math.pow(
7117
7117
  Math.pow(S.max.x - S.min.x + 1, 2) + Math.pow(S.max.y - S.min.y + 1, 2) + Math.pow(S.max.z - S.min.z + 1, 2),
7118
7118
  1 / 2
@@ -7129,41 +7129,41 @@ const fS = (n, t) => {
7129
7129
  }, A = () => {
7130
7130
  i && (s || p());
7131
7131
  }, w = () => {
7132
- var E, S;
7133
- i || (i = !0, c.add(u), !s && ((S = (E = n.work) == null ? void 0 : E.model) != null && S.file) && p(), D());
7134
- }, M = () => {
7132
+ var M, S;
7133
+ i || (i = !0, c.add(u), !s && ((S = (M = n.work) == null ? void 0 : M.model) != null && S.file) && p(), D());
7134
+ }, E = () => {
7135
7135
  i && (c.remove(u), o = !0, j(), i = !1);
7136
- }, k = (E, S = {}) => {
7136
+ }, k = (M, S = {}) => {
7137
7137
  const T = g();
7138
7138
  if (!T)
7139
7139
  return;
7140
- E.appendChild(T.domElement), L(S);
7141
- const N = window.getComputedStyle(E).position;
7142
- N !== "relative" && N !== "absolute" && N !== "fixed" && N !== "sticky" && (E.style.position = "relative");
7143
- }, L = (E = {}) => {
7140
+ M.appendChild(T.domElement), L(S);
7141
+ const N = window.getComputedStyle(M).position;
7142
+ N !== "relative" && N !== "absolute" && N !== "fixed" && N !== "sticky" && (M.style.position = "relative");
7143
+ }, L = (M = {}) => {
7144
7144
  if (!r)
7145
7145
  return;
7146
7146
  const T = r.domElement.parentNode;
7147
7147
  if (T != null && T.nodeName) {
7148
- const { width: N = T.offsetWidth, height: _ = T.offsetHeight } = E;
7148
+ const { width: N = T.offsetWidth, height: _ = T.offsetHeight } = M;
7149
7149
  r.setSize(N, _), h.aspect = N / _, h.updateProjectionMatrix();
7150
7150
  }
7151
7151
  D();
7152
7152
  }, D = () => {
7153
7153
  if (!i || !f || !m)
7154
7154
  return;
7155
- const E = n.getPose();
7156
- E.fov = h.fov, E.offset = m, E.distance = f, typeof l.lockedLatitude == "number" && (E.latitude = l.lockedLatitude), typeof l.lockedLongitude == "number" && (E.longitude = l.lockedLongitude), typeof l.lockedPanoIndex == "number" && (E.offset = n.work.observers[l.lockedPanoIndex].standingPosition.clone()), l.lookAtCurrentCamera && (E.offset = n.camera.position.clone().setY(n.camera.position.y + 1)), h.setFromPose(E), o = !0;
7155
+ const M = n.getPose();
7156
+ M.fov = h.fov, M.offset = m, M.distance = f, typeof l.lockedLatitude == "number" && (M.latitude = l.lockedLatitude), typeof l.lockedLongitude == "number" && (M.longitude = l.lockedLongitude), typeof l.lockedPanoIndex == "number" && (M.offset = n.work.observers[l.lockedPanoIndex].standingPosition.clone()), l.lookAtCurrentCamera && (M.offset = n.camera.position.clone().setY(n.camera.position.y + 1)), h.setFromPose(M), o = !0;
7157
7157
  }, j = () => {
7158
7158
  !i || o !== !0 || !r || !r.domElement.parentNode || r.domElement.parentNode.offsetWidth === 0 || (r.render(c, h), o = !1);
7159
7159
  }, z = () => {
7160
7160
  r && r.dispose(), r = null;
7161
- }, B = (E) => {
7162
- Object.assign(l, E), D();
7161
+ }, B = (M) => {
7162
+ Object.assign(l, M), D();
7163
7163
  }, b = () => ({
7164
7164
  enabled: i
7165
7165
  });
7166
- return n.on("loaded", A), n.on("willLoad", v), n.on("cameraDirectionUpdate", D), n.on("dispose", z), n.on("renderFrame", j), n.on("cameraPositionUpdate", D), { appendTo: k, refresh: L, changeConfigs: B, enable: w, disable: M, getCurrentState: b, hooks: e };
7166
+ return n.on("loaded", A), n.on("willLoad", v), n.on("cameraDirectionUpdate", D), n.on("dispose", z), n.on("renderFrame", j), n.on("cameraPositionUpdate", D), { appendTo: k, refresh: L, changeConfigs: B, enable: w, disable: E, getCurrentState: b, hooks: e };
7167
7167
  };
7168
7168
  class P0 extends CA {
7169
7169
  constructor(...t) {
@@ -7645,12 +7645,12 @@ function hs(n, t, e) {
7645
7645
  const { delay: f = 0, duration: m = 300, easing: p = wn, tick: g = oe, css: v } = s || Kh;
7646
7646
  v && (r = Qa(n, 0, 1, m, f, p, v, l++)), g(0, 1);
7647
7647
  const A = Uh() + f, w = A + m;
7648
- a && a.abort(), o = !0, At(() => ks(n, !0, "start")), a = Xh((M) => {
7648
+ a && a.abort(), o = !0, At(() => ks(n, !0, "start")), a = Xh((E) => {
7649
7649
  if (o) {
7650
- if (M >= w)
7650
+ if (E >= w)
7651
7651
  return g(1, 0), ks(n, !0, "end"), c(), o = !1;
7652
- if (M >= A) {
7653
- const k = p((M - A) / m);
7652
+ if (E >= A) {
7653
+ const k = p((E - A) / m);
7654
7654
  g(k, 1 - k);
7655
7655
  }
7656
7656
  }
@@ -7718,11 +7718,11 @@ function Di(n, t, e, i) {
7718
7718
  };
7719
7719
  }
7720
7720
  function f(m) {
7721
- const { delay: p = 0, duration: g = 300, easing: v = wn, tick: A = oe, css: w } = o || Kh, M = {
7721
+ const { delay: p = 0, duration: g = 300, easing: v = wn, tick: A = oe, css: w } = o || Kh, E = {
7722
7722
  start: Uh() + p,
7723
7723
  b: m
7724
7724
  };
7725
- m || (M.group = Ji, Ji.r += 1), a || l ? l = M : (w && (h(), c = Qa(n, r, m, g, p, v, w)), m && A(0, 1), a = u(M, g), At(() => ks(n, m, "start")), Xh((k) => {
7725
+ m || (E.group = Ji, Ji.r += 1), a || l ? l = E : (w && (h(), c = Qa(n, r, m, g, p, v, w)), m && A(0, 1), a = u(E, g), At(() => ks(n, m, "start")), Xh((k) => {
7726
7726
  if (l && k > l.start && (a = u(l, g), l = null, ks(n, a.b, "start"), w && (h(), c = Qa(n, r, a.b, a.duration, 0, v, o.css))), a) {
7727
7727
  if (k >= a.end)
7728
7728
  A(r = a.b, 1 - r), ks(n, a.b, "end"), l || (a.b ? h() : --a.group.r || pt(a.group.c)), a = null;
@@ -7794,11 +7794,11 @@ function Ti(n, t, e, i, s, o, r, a, l, c, h, u) {
7794
7794
  const g = {};
7795
7795
  for (; p--; )
7796
7796
  g[n[p].key] = p;
7797
- const v = [], A = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map(), M = [];
7797
+ const v = [], A = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map(), E = [];
7798
7798
  for (p = m; p--; ) {
7799
7799
  const j = u(s, o, p), z = e(j);
7800
7800
  let B = r.get(z);
7801
- B ? i && M.push(() => B.p(j, t)) : (B = c(z, j), B.c()), A.set(z, v[p] = B), z in g && w.set(z, Math.abs(p - g[z]));
7801
+ B ? i && E.push(() => B.p(j, t)) : (B = c(z, j), B.c()), A.set(z, v[p] = B), z in g && w.set(z, Math.abs(p - g[z]));
7802
7802
  }
7803
7803
  const k = /* @__PURE__ */ new Set(), L = /* @__PURE__ */ new Set();
7804
7804
  function D(j) {
@@ -7814,7 +7814,7 @@ function Ti(n, t, e, i, s, o, r, a, l, c, h, u) {
7814
7814
  }
7815
7815
  for (; m; )
7816
7816
  D(v[m - 1]);
7817
- return pt(M), v;
7817
+ return pt(E), v;
7818
7818
  }
7819
7819
  function jt(n, t) {
7820
7820
  const e = {}, i = {}, s = { $$scope: 1 };
@@ -8584,53 +8584,53 @@ function Dw(n, t, e) {
8584
8584
  let i, { five: s } = t, { roomLabels: o } = t, r, a, l = (w = s.model.shownFloor) != null ? w : null;
8585
8585
  const c = Yr();
8586
8586
  let h = Wo();
8587
- typeof c == "object" && "subscribe" in c && c.subscribe((M) => {
8588
- e(4, h = M);
8587
+ typeof c == "object" && "subscribe" in c && c.subscribe((E) => {
8588
+ e(4, h = E);
8589
8589
  });
8590
- function u(M) {
8591
- if (!(l === null || M.floorIndex === l))
8590
+ function u(E) {
8591
+ if (!(l === null || E.floorIndex === l))
8592
8592
  return !1;
8593
- const L = new Ho(), D = s.camera.position.clone(), j = new Ae(M.position.x, M.position.y, M.position.z), z = j.distanceTo(D);
8593
+ const L = new Ho(), D = s.camera.position.clone(), j = new Ae(E.position.x, E.position.y, E.position.z), z = j.distanceTo(D);
8594
8594
  L.set(D.clone(), j.clone().sub(D).normalize());
8595
8595
  const [B] = s.model.intersectRaycaster(L);
8596
8596
  return !(B && B.distance + 1 < z);
8597
8597
  }
8598
- function f(M, k) {
8599
- const D = new Ae(M.position.x, M.position.y, M.position.z).clone().project(s.camera), j = Math.ceil((D.x + 1) / 2 * k.x), z = Math.ceil((-D.y + 1) / 2 * k.y);
8598
+ function f(E, k) {
8599
+ const D = new Ae(E.position.x, E.position.y, E.position.z).clone().project(s.camera), j = Math.ceil((D.x + 1) / 2 * k.x), z = Math.ceil((-D.y + 1) / 2 * k.y);
8600
8600
  return `translate(${j}px, ${z}px)`;
8601
8601
  }
8602
- function m(M) {
8603
- const { rendererSize: k } = M, L = /* @__PURE__ */ new Map();
8602
+ function m(E) {
8603
+ const { rendererSize: k } = E, L = /* @__PURE__ */ new Map();
8604
8604
  function D(z) {
8605
8605
  const B = L.get(z.id);
8606
8606
  if (B)
8607
8607
  return B;
8608
- const { x: b, y: C, z: I } = z.position, E = new Ae(b, C, I).clone().distanceTo(s.camera.position);
8609
- return L.set(z.id, E), E;
8608
+ const { x: b, y: C, z: I } = z.position, M = new Ae(b, C, I).clone().distanceTo(s.camera.position);
8609
+ return L.set(z.id, M), M;
8610
8610
  }
8611
8611
  return o.map((z) => {
8612
- const B = u(z), b = B ? f(z, k) : z.transform, C = D(z), E = o.filter((S) => S.visible && D(S) < C).length * 10;
8613
- return ce(V({}, z), { visible: B, transform: b, zIndex: E });
8612
+ const B = u(z), b = B ? f(z, k) : z.transform, C = D(z), M = o.filter((S) => S.visible && D(S) < C).length * 10;
8613
+ return ce(V({}, z), { visible: B, transform: b, zIndex: M });
8614
8614
  });
8615
8615
  }
8616
8616
  function p() {
8617
8617
  e(0, o = m({ rendererSize: i, shownFloor: l }));
8618
8618
  }
8619
- function g(M) {
8620
- e(5, l = M);
8619
+ function g(E) {
8620
+ e(5, l = E);
8621
8621
  }
8622
8622
  s.on("cameraUpdate", p), s.on("modelShownFloorChange", g), qh(() => {
8623
8623
  e(0, o = m({ rendererSize: i, shownFloor: l }));
8624
8624
  }), ri(() => {
8625
8625
  s.off("cameraUpdate", p), s.off("modelShownFloorChange", g);
8626
8626
  });
8627
- const v = (M) => {
8628
- e(2, r = M.detail);
8629
- }, A = (M) => {
8630
- e(3, a = M.detail);
8627
+ const v = (E) => {
8628
+ e(2, r = E.detail);
8629
+ }, A = (E) => {
8630
+ e(3, a = E.detail);
8631
8631
  };
8632
- return n.$$set = (M) => {
8633
- "five" in M && e(1, s = M.five), "roomLabels" in M && e(0, o = M.roomLabels);
8632
+ return n.$$set = (E) => {
8633
+ "five" in E && e(1, s = E.five), "roomLabels" in E && e(0, o = E.roomLabels);
8634
8634
  }, n.$$.update = () => {
8635
8635
  n.$$.dirty & /*containerWidth, containerHeight*/
8636
8636
  12 && e(6, i = { x: r, y: a }), n.$$.dirty & /*rendererSize, shownFloor*/
@@ -9562,7 +9562,7 @@ function o2(n, t) {
9562
9562
  return s;
9563
9563
  }
9564
9564
  function r2(n, t, e) {
9565
- let i, s, o, r, a, l, c, h, u, f, m, p, g, v, A, w, { pxmm: M } = t, { roomAreaEnable: k } = t, { roomNameEnable: L } = t, { roomNameOtherTypeEnable: D } = t, { roomDimensionEnable: j } = t, { room: z } = t, { hoveredRoom: B } = t, { getRoomAreaText: b } = t, { getRoomDimensionText: C } = t, { getLabelElement: I } = t, { adaptiveRoomLabelVisibleEnable: E } = t, { fontSize: S } = t;
9565
+ let i, s, o, r, a, l, c, h, u, f, m, p, g, v, A, w, { pxmm: E } = t, { roomAreaEnable: k } = t, { roomNameEnable: L } = t, { roomNameOtherTypeEnable: D } = t, { roomDimensionEnable: j } = t, { room: z } = t, { hoveredRoom: B } = t, { getRoomAreaText: b } = t, { getRoomDimensionText: C } = t, { getLabelElement: I } = t, { adaptiveRoomLabelVisibleEnable: M } = t, { fontSize: S } = t;
9566
9566
  function T(he, Le) {
9567
9567
  if (Le.width === 0 || Le.height === 0)
9568
9568
  return () => !1;
@@ -9592,7 +9592,7 @@ function r2(n, t, e) {
9592
9592
  e(7, K = he.detail);
9593
9593
  };
9594
9594
  return n.$$set = (he) => {
9595
- "pxmm" in he && e(21, M = he.pxmm), "roomAreaEnable" in he && e(0, k = he.roomAreaEnable), "roomNameEnable" in he && e(1, L = he.roomNameEnable), "roomNameOtherTypeEnable" in he && e(2, D = he.roomNameOtherTypeEnable), "roomDimensionEnable" in he && e(3, j = he.roomDimensionEnable), "room" in he && e(4, z = he.room), "hoveredRoom" in he && e(22, B = he.hoveredRoom), "getRoomAreaText" in he && e(23, b = he.getRoomAreaText), "getRoomDimensionText" in he && e(24, C = he.getRoomDimensionText), "getLabelElement" in he && e(5, I = he.getLabelElement), "adaptiveRoomLabelVisibleEnable" in he && e(25, E = he.adaptiveRoomLabelVisibleEnable), "fontSize" in he && e(26, S = he.fontSize);
9595
+ "pxmm" in he && e(21, E = he.pxmm), "roomAreaEnable" in he && e(0, k = he.roomAreaEnable), "roomNameEnable" in he && e(1, L = he.roomNameEnable), "roomNameOtherTypeEnable" in he && e(2, D = he.roomNameOtherTypeEnable), "roomDimensionEnable" in he && e(3, j = he.roomDimensionEnable), "room" in he && e(4, z = he.room), "hoveredRoom" in he && e(22, B = he.hoveredRoom), "getRoomAreaText" in he && e(23, b = he.getRoomAreaText), "getRoomDimensionText" in he && e(24, C = he.getRoomDimensionText), "getLabelElement" in he && e(5, I = he.getLabelElement), "adaptiveRoomLabelVisibleEnable" in he && e(25, M = he.adaptiveRoomLabelVisibleEnable), "fontSize" in he && e(26, S = he.fontSize);
9596
9596
  }, n.$$.update = () => {
9597
9597
  var he, Le;
9598
9598
  n.$$.dirty[0] & /*fontSize*/
@@ -9604,7 +9604,7 @@ function r2(n, t, e) {
9604
9604
  16 | n.$$.dirty[1] & /*labelElementSize*/
9605
9605
  8 && e(33, l = a ? T(z, a) : void 0), n.$$.dirty[0] & /*adaptiveRoomLabelVisibleEnable, pxmm*/
9606
9606
  35651584 | n.$$.dirty[1] & /*isLabelInRoom*/
9607
- 4 && e(30, c = E ? !!(l != null && l(M)) : !0), n.$$.dirty[0] & /*wrapperClientWidth, wrapperClientHeight*/
9607
+ 4 && e(30, c = M ? !!(l != null && l(E)) : !0), n.$$.dirty[0] & /*wrapperClientWidth, wrapperClientHeight*/
9608
9608
  192 && e(32, h = {
9609
9609
  width: ee,
9610
9610
  height: K
@@ -9612,7 +9612,7 @@ function r2(n, t, e) {
9612
9612
  16 | n.$$.dirty[1] & /*wrapperLabelElementSize*/
9613
9613
  2 && e(31, u = h ? T(z, h) : void 0), n.$$.dirty[0] & /*adaptiveRoomLabelVisibleEnable, pxmm*/
9614
9614
  35651584 | n.$$.dirty[1] & /*isAllLabelInRoom*/
9615
- 1 && e(29, f = E ? !!(u != null && u(M)) : !0), n.$$.dirty[0] & /*wrapperLabelVisible, mainLabelVisible, isHovered*/
9615
+ 1 && e(29, f = M ? !!(u != null && u(E)) : !0), n.$$.dirty[0] & /*wrapperLabelVisible, mainLabelVisible, isHovered*/
9616
9616
  1744830464 && e(15, m = f || c || le), n.$$.dirty[0] & /*mainLabelVisible, isHovered*/
9617
9617
  1207959552 && e(14, p = c || le), n.$$.dirty[0] & /*wrapperLabelVisible, isHovered*/
9618
9618
  671088640 && e(13, g = f || le), n.$$.dirty[0] & /*mainLabelVisible, wrapperLabelVisible*/
@@ -9641,11 +9641,11 @@ function r2(n, t, e) {
9641
9641
  s,
9642
9642
  _,
9643
9643
  q,
9644
- M,
9644
+ E,
9645
9645
  B,
9646
9646
  b,
9647
9647
  C,
9648
- E,
9648
+ M,
9649
9649
  S,
9650
9650
  le,
9651
9651
  i,
@@ -9925,7 +9925,7 @@ function h2(n, t, e) {
9925
9925
  typeof A == "object" && "subscribe" in A && A.subscribe((k) => {
9926
9926
  e(11, w = k);
9927
9927
  });
9928
- const M = (k) => {
9928
+ const E = (k) => {
9929
9929
  e(9, g = k.detail);
9930
9930
  };
9931
9931
  return n.$$set = (k) => {
@@ -9953,7 +9953,7 @@ function h2(n, t, e) {
9953
9953
  i,
9954
9954
  s,
9955
9955
  c,
9956
- M
9956
+ E
9957
9957
  ];
9958
9958
  }
9959
9959
  class u2 extends Ee {
@@ -10160,8 +10160,8 @@ function p2(n, t, e) {
10160
10160
  });
10161
10161
  u.unshift({ left: 0, bottom: 0 }), u.push(a ? { left: 1, bottom: 0 } : { left: 0, bottom: 1 });
10162
10162
  const f = h[h.length - 1] - h[0], m = h.map((p, g, v) => {
10163
- const A = g === 0 ? 0 : p - v[g - 1], w = g === 0 ? 0 : (p + v[g - 1]) / 2, M = a ? (w - o.min.x - ao + lo) / l : 0, k = a ? 0 : (w - o.min.y - ao + lo) / c;
10164
- return { left: M, bottom: k, distance: A };
10163
+ const A = g === 0 ? 0 : p - v[g - 1], w = g === 0 ? 0 : (p + v[g - 1]) / 2, E = a ? (w - o.min.x - ao + lo) / l : 0, k = a ? 0 : (w - o.min.y - ao + lo) / c;
10164
+ return { left: E, bottom: k, distance: A };
10165
10165
  }).filter(({ distance: p }) => p / f > 0.1);
10166
10166
  return n.$$set = (p) => {
10167
10167
  "type" in p && e(0, i = p.type), "data" in p && e(5, s = p.data), "bounding" in p && e(6, o = p.bounding), "getRuleDistanceText" in p && e(1, r = p.getRuleDistanceText);
@@ -11593,10 +11593,10 @@ function h3(n) {
11593
11593
  )
11594
11594
  }
11595
11595
  ];
11596
- let M = {};
11596
+ let E = {};
11597
11597
  for (let z = 0; z < w.length; z += 1)
11598
- M = Tt(M, w[z]);
11599
- r = new e2({ props: M });
11598
+ E = Tt(E, w[z]);
11599
+ r = new e2({ props: E });
11600
11600
  let k = (
11601
11601
  /*roomLabelsEnable*/
11602
11602
  n[6] && Gd(n)
@@ -12126,12 +12126,12 @@ function d3(n) {
12126
12126
  };
12127
12127
  }
12128
12128
  function f3(n, t, e) {
12129
- let i, s, { panoIndex: o } = t, { isCurrent: r } = t, { floorIndex: a } = t, { highlightEnable: l } = t, { cameraEnable: c } = t, { hoverEnable: h } = t, { roomLabelsEnable: u } = t, { roomAreaEnable: f } = t, { roomNameEnable: m } = t, { roomNameOtherTypeEnable: p } = t, { roomDimensionEnable: g } = t, { ruleLabelsEnable: v } = t, { floorplanData: A } = t, { getRoomAreaText: w } = t, { getRoomDimensionText: M } = t, { getLabelElement: k } = t, { getRuleDistanceText: L } = t, { adaptiveRoomLabelVisibleEnable: D } = t, { highlightData: j } = t, { missingFloorConfig: z } = t, { lastPanoramaLongitude: B } = t, { cameraImageUrl: b } = t, { northDesc: C } = t, { compassEnable: I } = t, { store: E = void 0 } = t;
12129
+ let i, s, { panoIndex: o } = t, { isCurrent: r } = t, { floorIndex: a } = t, { highlightEnable: l } = t, { cameraEnable: c } = t, { hoverEnable: h } = t, { roomLabelsEnable: u } = t, { roomAreaEnable: f } = t, { roomNameEnable: m } = t, { roomNameOtherTypeEnable: p } = t, { roomDimensionEnable: g } = t, { ruleLabelsEnable: v } = t, { floorplanData: A } = t, { getRoomAreaText: w } = t, { getRoomDimensionText: E } = t, { getLabelElement: k } = t, { getRuleDistanceText: L } = t, { adaptiveRoomLabelVisibleEnable: D } = t, { highlightData: j } = t, { missingFloorConfig: z } = t, { lastPanoramaLongitude: B } = t, { cameraImageUrl: b } = t, { northDesc: C } = t, { compassEnable: I } = t, { store: M = void 0 } = t;
12130
12130
  const S = eu(void 0);
12131
12131
  return S.subscribe((T) => {
12132
- E && e(26, E.roomOnMouse = T, E);
12132
+ M && e(26, M.roomOnMouse = T, M);
12133
12133
  }), n.$$set = (T) => {
12134
- "panoIndex" in T && e(0, o = T.panoIndex), "isCurrent" in T && e(1, r = T.isCurrent), "floorIndex" in T && e(2, a = T.floorIndex), "highlightEnable" in T && e(3, l = T.highlightEnable), "cameraEnable" in T && e(4, c = T.cameraEnable), "hoverEnable" in T && e(5, h = T.hoverEnable), "roomLabelsEnable" in T && e(6, u = T.roomLabelsEnable), "roomAreaEnable" in T && e(7, f = T.roomAreaEnable), "roomNameEnable" in T && e(8, m = T.roomNameEnable), "roomNameOtherTypeEnable" in T && e(9, p = T.roomNameOtherTypeEnable), "roomDimensionEnable" in T && e(10, g = T.roomDimensionEnable), "ruleLabelsEnable" in T && e(11, v = T.ruleLabelsEnable), "floorplanData" in T && e(12, A = T.floorplanData), "getRoomAreaText" in T && e(13, w = T.getRoomAreaText), "getRoomDimensionText" in T && e(14, M = T.getRoomDimensionText), "getLabelElement" in T && e(15, k = T.getLabelElement), "getRuleDistanceText" in T && e(16, L = T.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in T && e(17, D = T.adaptiveRoomLabelVisibleEnable), "highlightData" in T && e(18, j = T.highlightData), "missingFloorConfig" in T && e(19, z = T.missingFloorConfig), "lastPanoramaLongitude" in T && e(20, B = T.lastPanoramaLongitude), "cameraImageUrl" in T && e(21, b = T.cameraImageUrl), "northDesc" in T && e(22, C = T.northDesc), "compassEnable" in T && e(23, I = T.compassEnable), "store" in T && e(26, E = T.store);
12134
+ "panoIndex" in T && e(0, o = T.panoIndex), "isCurrent" in T && e(1, r = T.isCurrent), "floorIndex" in T && e(2, a = T.floorIndex), "highlightEnable" in T && e(3, l = T.highlightEnable), "cameraEnable" in T && e(4, c = T.cameraEnable), "hoverEnable" in T && e(5, h = T.hoverEnable), "roomLabelsEnable" in T && e(6, u = T.roomLabelsEnable), "roomAreaEnable" in T && e(7, f = T.roomAreaEnable), "roomNameEnable" in T && e(8, m = T.roomNameEnable), "roomNameOtherTypeEnable" in T && e(9, p = T.roomNameOtherTypeEnable), "roomDimensionEnable" in T && e(10, g = T.roomDimensionEnable), "ruleLabelsEnable" in T && e(11, v = T.ruleLabelsEnable), "floorplanData" in T && e(12, A = T.floorplanData), "getRoomAreaText" in T && e(13, w = T.getRoomAreaText), "getRoomDimensionText" in T && e(14, E = T.getRoomDimensionText), "getLabelElement" in T && e(15, k = T.getLabelElement), "getRuleDistanceText" in T && e(16, L = T.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in T && e(17, D = T.adaptiveRoomLabelVisibleEnable), "highlightData" in T && e(18, j = T.highlightData), "missingFloorConfig" in T && e(19, z = T.missingFloorConfig), "lastPanoramaLongitude" in T && e(20, B = T.lastPanoramaLongitude), "cameraImageUrl" in T && e(21, b = T.cameraImageUrl), "northDesc" in T && e(22, C = T.northDesc), "compassEnable" in T && e(23, I = T.compassEnable), "store" in T && e(26, M = T.store);
12135
12135
  }, n.$$.update = () => {
12136
12136
  n.$$.dirty & /*floorplanData, floorIndex*/
12137
12137
  4100 && e(27, i = A.floorDatas[a]), n.$$.dirty & /*floorData*/
@@ -12151,7 +12151,7 @@ function f3(n, t, e) {
12151
12151
  v,
12152
12152
  A,
12153
12153
  w,
12154
- M,
12154
+ E,
12155
12155
  k,
12156
12156
  L,
12157
12157
  D,
@@ -12163,7 +12163,7 @@ function f3(n, t, e) {
12163
12163
  I,
12164
12164
  s,
12165
12165
  S,
12166
- E,
12166
+ M,
12167
12167
  i
12168
12168
  ];
12169
12169
  }
@@ -12565,9 +12565,9 @@ function m3(n) {
12565
12565
  };
12566
12566
  }
12567
12567
  function v3(n, t, e) {
12568
- let { duration: i = 0 } = t, { visible: s } = t, { northDesc: o } = t, { panoIndex: r } = t, { floorIndex: a } = t, { cameraEnable: l } = t, { hoverEnable: c } = t, { highlightEnable: h } = t, { compassEnable: u } = t, { roomLabelsEnable: f } = t, { roomAreaEnable: m } = t, { roomNameEnable: p } = t, { roomNameOtherTypeEnable: g } = t, { roomDimensionEnable: v } = t, { ruleLabelsEnable: A } = t, { floorplanData: w } = t, { lastPanoramaLongitude: M } = t, { cameraImageUrl: k } = t, { getRoomAreaText: L } = t, { getRoomDimensionText: D } = t, { getLabelElement: j } = t, { getRuleDistanceText: z } = t, { adaptiveRoomLabelVisibleEnable: B } = t, { highlightData: b } = t, { missingFloorConfig: C } = t, { store: I = void 0 } = t;
12569
- return n.$$set = (E) => {
12570
- "duration" in E && e(0, i = E.duration), "visible" in E && e(1, s = E.visible), "northDesc" in E && e(2, o = E.northDesc), "panoIndex" in E && e(3, r = E.panoIndex), "floorIndex" in E && e(4, a = E.floorIndex), "cameraEnable" in E && e(5, l = E.cameraEnable), "hoverEnable" in E && e(6, c = E.hoverEnable), "highlightEnable" in E && e(7, h = E.highlightEnable), "compassEnable" in E && e(8, u = E.compassEnable), "roomLabelsEnable" in E && e(9, f = E.roomLabelsEnable), "roomAreaEnable" in E && e(10, m = E.roomAreaEnable), "roomNameEnable" in E && e(11, p = E.roomNameEnable), "roomNameOtherTypeEnable" in E && e(12, g = E.roomNameOtherTypeEnable), "roomDimensionEnable" in E && e(13, v = E.roomDimensionEnable), "ruleLabelsEnable" in E && e(14, A = E.ruleLabelsEnable), "floorplanData" in E && e(15, w = E.floorplanData), "lastPanoramaLongitude" in E && e(16, M = E.lastPanoramaLongitude), "cameraImageUrl" in E && e(17, k = E.cameraImageUrl), "getRoomAreaText" in E && e(18, L = E.getRoomAreaText), "getRoomDimensionText" in E && e(19, D = E.getRoomDimensionText), "getLabelElement" in E && e(20, j = E.getLabelElement), "getRuleDistanceText" in E && e(21, z = E.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in E && e(22, B = E.adaptiveRoomLabelVisibleEnable), "highlightData" in E && e(23, b = E.highlightData), "missingFloorConfig" in E && e(24, C = E.missingFloorConfig), "store" in E && e(25, I = E.store);
12568
+ let { duration: i = 0 } = t, { visible: s } = t, { northDesc: o } = t, { panoIndex: r } = t, { floorIndex: a } = t, { cameraEnable: l } = t, { hoverEnable: c } = t, { highlightEnable: h } = t, { compassEnable: u } = t, { roomLabelsEnable: f } = t, { roomAreaEnable: m } = t, { roomNameEnable: p } = t, { roomNameOtherTypeEnable: g } = t, { roomDimensionEnable: v } = t, { ruleLabelsEnable: A } = t, { floorplanData: w } = t, { lastPanoramaLongitude: E } = t, { cameraImageUrl: k } = t, { getRoomAreaText: L } = t, { getRoomDimensionText: D } = t, { getLabelElement: j } = t, { getRuleDistanceText: z } = t, { adaptiveRoomLabelVisibleEnable: B } = t, { highlightData: b } = t, { missingFloorConfig: C } = t, { store: I = void 0 } = t;
12569
+ return n.$$set = (M) => {
12570
+ "duration" in M && e(0, i = M.duration), "visible" in M && e(1, s = M.visible), "northDesc" in M && e(2, o = M.northDesc), "panoIndex" in M && e(3, r = M.panoIndex), "floorIndex" in M && e(4, a = M.floorIndex), "cameraEnable" in M && e(5, l = M.cameraEnable), "hoverEnable" in M && e(6, c = M.hoverEnable), "highlightEnable" in M && e(7, h = M.highlightEnable), "compassEnable" in M && e(8, u = M.compassEnable), "roomLabelsEnable" in M && e(9, f = M.roomLabelsEnable), "roomAreaEnable" in M && e(10, m = M.roomAreaEnable), "roomNameEnable" in M && e(11, p = M.roomNameEnable), "roomNameOtherTypeEnable" in M && e(12, g = M.roomNameOtherTypeEnable), "roomDimensionEnable" in M && e(13, v = M.roomDimensionEnable), "ruleLabelsEnable" in M && e(14, A = M.ruleLabelsEnable), "floorplanData" in M && e(15, w = M.floorplanData), "lastPanoramaLongitude" in M && e(16, E = M.lastPanoramaLongitude), "cameraImageUrl" in M && e(17, k = M.cameraImageUrl), "getRoomAreaText" in M && e(18, L = M.getRoomAreaText), "getRoomDimensionText" in M && e(19, D = M.getRoomDimensionText), "getLabelElement" in M && e(20, j = M.getLabelElement), "getRuleDistanceText" in M && e(21, z = M.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in M && e(22, B = M.adaptiveRoomLabelVisibleEnable), "highlightData" in M && e(23, b = M.highlightData), "missingFloorConfig" in M && e(24, C = M.missingFloorConfig), "store" in M && e(25, I = M.store);
12571
12571
  }, [
12572
12572
  i,
12573
12573
  s,
@@ -12585,7 +12585,7 @@ function v3(n, t, e) {
12585
12585
  v,
12586
12586
  A,
12587
12587
  w,
12588
- M,
12588
+ E,
12589
12589
  k,
12590
12590
  L,
12591
12591
  D,
@@ -12749,7 +12749,7 @@ let us = class {
12749
12749
  /**
12750
12750
  * @realsee/dnalogel 版本号
12751
12751
  */
12752
- d(this, "VERSION", "3.69.1-alpha.1");
12752
+ d(this, "VERSION", "3.69.1-alpha.2");
12753
12753
  d(this, "NAME");
12754
12754
  d(this, "five");
12755
12755
  d(this, "workUtil");
@@ -16135,7 +16135,7 @@ let R3 = class extends kn {
16135
16135
  const { min: i, max: s } = this.data.bounding, o = s.x - i.x, r = s.y - i.y;
16136
16136
  this.data.floorDatas.forEach((a, l) => {
16137
16137
  a.items = e[l].filter((c) => c.displayName === "Item-SimpleItem").map((c) => {
16138
- const { x: h, y: u, width: f, height: m, notes: p, type: g, id: v, rotateX: A, rotateY: w, rotateZ: M = 0 } = c;
16138
+ const { x: h, y: u, width: f, height: m, notes: p, type: g, id: v, rotateX: A, rotateY: w, rotateZ: E = 0 } = c;
16139
16139
  return {
16140
16140
  id: v,
16141
16141
  positionInImage: { x: (h - i.x) / o, y: (s.y - u) / r },
@@ -16145,7 +16145,7 @@ let R3 = class extends kn {
16145
16145
  notes: p || Kd[g].description,
16146
16146
  rotateX: A,
16147
16147
  rotateY: w,
16148
- rotateZ: M
16148
+ rotateZ: E
16149
16149
  };
16150
16150
  });
16151
16151
  });
@@ -16580,8 +16580,8 @@ function H3(n) {
16580
16580
  return `rotate(${Math.floor(n / Math.PI * 180) * -1 + 45}deg)`;
16581
16581
  }
16582
16582
  function F3(n, t, e) {
16583
- var w, M;
16584
- let i, s, o, r, { five: a } = t, { pxmm: l } = t, { floorplanData: c } = t, { cameraImageUrl: h } = t, u = a.getCurrentState().panoIndex, f = a.getCurrentState().longitude, m = (M = (w = a.work.observers[a.getCurrentState().panoIndex]) == null ? void 0 : w.floorIndex) != null ? M : 0;
16583
+ var w, E;
16584
+ let i, s, o, r, { five: a } = t, { pxmm: l } = t, { floorplanData: c } = t, { cameraImageUrl: h } = t, u = a.getCurrentState().panoIndex, f = a.getCurrentState().longitude, m = (E = (w = a.work.observers[a.getCurrentState().panoIndex]) == null ? void 0 : w.floorIndex) != null ? E : 0;
16585
16585
  function p(k, L) {
16586
16586
  const D = k.bounding, j = k.observers[L];
16587
16587
  if (!j)
@@ -17233,7 +17233,7 @@ function t5(n, t, e) {
17233
17233
  }));
17234
17234
  const w = (D) => {
17235
17235
  e(8, m = D.detail);
17236
- }, M = (D) => {
17236
+ }, E = (D) => {
17237
17237
  e(9, p = D.detail);
17238
17238
  };
17239
17239
  return n.$$set = (D) => {
@@ -17262,7 +17262,7 @@ function t5(n, t, e) {
17262
17262
  f,
17263
17263
  v,
17264
17264
  w,
17265
- M
17265
+ E
17266
17266
  ];
17267
17267
  }
17268
17268
  class i5 extends Ee {
@@ -17629,7 +17629,7 @@ ds.prototype.k = function() {
17629
17629
  this.j(r5, a5);
17630
17630
  break;
17631
17631
  case 2:
17632
- for (var h = Mi(this, 5) + 257, u = Mi(this, 5) + 1, f = Mi(this, 4) + 4, m = new (ht ? Uint8Array : Array)(oc.length), p = vi, g = vi, v = vi, A = vi, w = vi, M = vi, k = vi, D = vi, L = vi, D = 0; D < f; ++D)
17632
+ for (var h = Mi(this, 5) + 257, u = Mi(this, 5) + 1, f = Mi(this, 4) + 4, m = new (ht ? Uint8Array : Array)(oc.length), p = vi, g = vi, v = vi, A = vi, w = vi, E = vi, k = vi, D = vi, L = vi, D = 0; D < f; ++D)
17633
17633
  m[oc[D]] = Mi(this, 3);
17634
17634
  if (!ht)
17635
17635
  for (D = f, f = m.length; D < f; ++D)
@@ -17638,20 +17638,20 @@ ds.prototype.k = function() {
17638
17638
  switch (w = zr(this, p), w) {
17639
17639
  case 16:
17640
17640
  for (k = 3 + Mi(this, 2); k--; )
17641
- A[D++] = M;
17641
+ A[D++] = E;
17642
17642
  break;
17643
17643
  case 17:
17644
17644
  for (k = 3 + Mi(this, 3); k--; )
17645
17645
  A[D++] = 0;
17646
- M = 0;
17646
+ E = 0;
17647
17647
  break;
17648
17648
  case 18:
17649
17649
  for (k = 11 + Mi(this, 7); k--; )
17650
17650
  A[D++] = 0;
17651
- M = 0;
17651
+ E = 0;
17652
17652
  break;
17653
17653
  default:
17654
- M = A[D++] = w;
17654
+ E = A[D++] = w;
17655
17655
  }
17656
17656
  g = Cs(ht ? A.subarray(0, h) : A.slice(0, h)), v = Cs(ht ? A.subarray(h) : A.slice(h)), this.j(g, v);
17657
17657
  break;
@@ -17920,20 +17920,20 @@ var gf = Y0.Zlib, J0 = {
17920
17920
  for (var v = 0, A = 1, w = [], r = 0; r <= e; ++r)
17921
17921
  w[r] = o.slice(0);
17922
17922
  w[0][0] = 1;
17923
- for (var M = 1; M <= i; ++M) {
17924
- var k = 0, L = B - M, D = e - M;
17925
- B >= M && (w[A][0] = w[v][0] / l[D + 1][L], k = w[A][0] * l[L][D]);
17926
- for (var j = L >= -1 ? 1 : -L, z = B - 1 <= D ? M - 1 : e - B, u = j; u <= z; ++u)
17923
+ for (var E = 1; E <= i; ++E) {
17924
+ var k = 0, L = B - E, D = e - E;
17925
+ B >= E && (w[A][0] = w[v][0] / l[D + 1][L], k = w[A][0] * l[L][D]);
17926
+ for (var j = L >= -1 ? 1 : -L, z = B - 1 <= D ? E - 1 : e - B, u = j; u <= z; ++u)
17927
17927
  w[A][u] = (w[v][u] - w[v][u - 1]) / l[D + 1][L + u], k += w[A][u] * l[L + u][D];
17928
- B <= D && (w[A][M] = -w[v][M - 1] / l[D + 1][B], k += w[A][M] * l[B][D]), a[M][B] = k;
17928
+ B <= D && (w[A][E] = -w[v][E - 1] / l[D + 1][B], k += w[A][E] * l[B][D]), a[E][B] = k;
17929
17929
  var u = v;
17930
17930
  v = A, A = u;
17931
17931
  }
17932
17932
  }
17933
- for (var B = e, M = 1; M <= i; ++M) {
17933
+ for (var B = e, E = 1; E <= i; ++E) {
17934
17934
  for (var u = 0; u <= e; ++u)
17935
- a[M][u] *= B;
17936
- B *= e - M;
17935
+ a[E][u] *= B;
17936
+ B *= e - E;
17937
17937
  }
17938
17938
  return a;
17939
17939
  },
@@ -18056,7 +18056,7 @@ var K0 = function() {
18056
18056
  }
18057
18057
  i.prototype = Object.assign(Object.create(Nu.prototype), {
18058
18058
  constructor: i,
18059
- load: function(b, C, I, E) {
18059
+ load: function(b, C, I, M) {
18060
18060
  var S = this, T = S.path === "" ? Wl.extractUrlBase(b) : S.path, N = new Wv(this.manager);
18061
18061
  N.setPath(S.path), N.setResponseType("arraybuffer"), N.load(
18062
18062
  b,
@@ -18064,11 +18064,11 @@ var K0 = function() {
18064
18064
  try {
18065
18065
  C(S.parse(_, T));
18066
18066
  } catch (q) {
18067
- E ? E(q) : console.error(q), S.manager.itemError(b);
18067
+ M ? M(q) : console.error(q), S.manager.itemError(b);
18068
18068
  }
18069
18069
  },
18070
18070
  I,
18071
- E
18071
+ M
18072
18072
  );
18073
18073
  },
18074
18074
  parse: function(b, C) {
@@ -18082,8 +18082,8 @@ var K0 = function() {
18082
18082
  throw new Error("THREE.FBXLoader: FBX version not supported, FileVersion: " + m(I));
18083
18083
  n = new a().parse(I);
18084
18084
  }
18085
- var E = new mh(this.manager).setPath(this.resourcePath || C).setCrossOrigin(this.crossOrigin);
18086
- return new s(E, this.manager).parse(n);
18085
+ var M = new mh(this.manager).setPath(this.resourcePath || C).setCrossOrigin(this.crossOrigin);
18086
+ return new s(M, this.manager).parse(n);
18087
18087
  }
18088
18088
  });
18089
18089
  function s(b, C) {
@@ -18093,8 +18093,8 @@ var K0 = function() {
18093
18093
  constructor: s,
18094
18094
  parse: function() {
18095
18095
  t = this.parseConnections();
18096
- var b = this.parseImages(), C = this.parseTextures(b), I = this.parseMaterials(C), E = this.parseDeformers(), S = new o().parse(E);
18097
- return this.parseScene(E, S, I), e;
18096
+ var b = this.parseImages(), C = this.parseTextures(b), I = this.parseMaterials(C), M = this.parseDeformers(), S = new o().parse(M);
18097
+ return this.parseScene(M, S, I), e;
18098
18098
  },
18099
18099
  // Parses FBXTree.Connections which holds parent-child connections between objects (e.g. material -> texture, model->geometry )
18100
18100
  // and details the connection type
@@ -18103,17 +18103,17 @@ var K0 = function() {
18103
18103
  if ("Connections" in n) {
18104
18104
  var C = n.Connections.connections;
18105
18105
  C.forEach(function(I) {
18106
- var E = I[0], S = I[1], T = I[2];
18107
- b.has(E) || b.set(E, {
18106
+ var M = I[0], S = I[1], T = I[2];
18107
+ b.has(M) || b.set(M, {
18108
18108
  parents: [],
18109
18109
  children: []
18110
18110
  });
18111
18111
  var N = { ID: S, relationship: T };
18112
- b.get(E).parents.push(N), b.has(S) || b.set(S, {
18112
+ b.get(M).parents.push(N), b.has(S) || b.set(S, {
18113
18113
  parents: [],
18114
18114
  children: []
18115
18115
  });
18116
- var _ = { ID: E, relationship: T };
18116
+ var _ = { ID: M, relationship: T };
18117
18117
  b.get(S).children.push(_);
18118
18118
  });
18119
18119
  }
@@ -18126,12 +18126,12 @@ var K0 = function() {
18126
18126
  var b = {}, C = {};
18127
18127
  if ("Video" in n.Objects) {
18128
18128
  var I = n.Objects.Video;
18129
- for (var E in I) {
18130
- var S = I[E], T = parseInt(E);
18129
+ for (var M in I) {
18130
+ var S = I[M], T = parseInt(M);
18131
18131
  if (b[T] = S.RelativeFilename || S.Filename, "Content" in S) {
18132
18132
  var N = S.Content instanceof ArrayBuffer && S.Content.byteLength > 0, _ = typeof S.Content == "string" && S.Content !== "";
18133
18133
  if (N || _) {
18134
- var q = this.parseImage(I[E]);
18134
+ var q = this.parseImage(I[M]);
18135
18135
  C[S.RelativeFilename || S.Filename] = q;
18136
18136
  }
18137
18137
  }
@@ -18145,8 +18145,8 @@ var K0 = function() {
18145
18145
  },
18146
18146
  // Parse embedded image data in FBXTree.Video.Content
18147
18147
  parseImage: function(b) {
18148
- var C = b.Content, I = b.RelativeFilename || b.Filename, E = I.slice(I.lastIndexOf(".") + 1).toLowerCase(), S;
18149
- switch (E) {
18148
+ var C = b.Content, I = b.RelativeFilename || b.Filename, M = I.slice(I.lastIndexOf(".") + 1).toLowerCase(), S;
18149
+ switch (M) {
18150
18150
  case "bmp":
18151
18151
  S = "image/bmp";
18152
18152
  break;
@@ -18164,7 +18164,7 @@ var K0 = function() {
18164
18164
  this.manager.getHandler(".tga") === null && console.warn("FBXLoader: TGA loader not found, skipping ", I), S = "image/tga";
18165
18165
  break;
18166
18166
  default:
18167
- console.warn('FBXLoader: Image type "' + E + '" is not supported.');
18167
+ console.warn('FBXLoader: Image type "' + M + '" is not supported.');
18168
18168
  return;
18169
18169
  }
18170
18170
  if (typeof C == "string")
@@ -18179,9 +18179,9 @@ var K0 = function() {
18179
18179
  var C = /* @__PURE__ */ new Map();
18180
18180
  if ("Texture" in n.Objects) {
18181
18181
  var I = n.Objects.Texture;
18182
- for (var E in I) {
18183
- var S = this.parseTexture(I[E], b);
18184
- C.set(parseInt(E), S);
18182
+ for (var M in I) {
18183
+ var S = this.parseTexture(I[M], b);
18184
+ C.set(parseInt(M), S);
18185
18185
  }
18186
18186
  }
18187
18187
  return C;
@@ -18190,7 +18190,7 @@ var K0 = function() {
18190
18190
  parseTexture: function(b, C) {
18191
18191
  var I = this.loadTexture(b, C);
18192
18192
  I.ID = b.id, I.name = b.attrName;
18193
- var E = b.WrapModeU, S = b.WrapModeV, T = E !== void 0 ? E.value : 0, N = S !== void 0 ? S.value : 0;
18193
+ var M = b.WrapModeU, S = b.WrapModeV, T = M !== void 0 ? M.value : 0, N = S !== void 0 ? S.value : 0;
18194
18194
  if (I.wrapS = T === 0 ? Gu : Wu, I.wrapT = N === 0 ? Gu : Wu, "Scaling" in b) {
18195
18195
  var _ = b.Scaling.value;
18196
18196
  I.repeat.x = _[0], I.repeat.y = _[1];
@@ -18199,7 +18199,7 @@ var K0 = function() {
18199
18199
  },
18200
18200
  // load a texture specified as a blob or data URI, or via an external URL using TextureLoader
18201
18201
  loadTexture: function(b, C) {
18202
- var I, E = this.textureLoader.path, S = t.get(b.id).children;
18202
+ var I, M = this.textureLoader.path, S = t.get(b.id).children;
18203
18203
  S !== void 0 && S.length > 0 && C[S[0].ID] !== void 0 && (I = C[S[0].ID], (I.indexOf("blob:") === 0 || I.indexOf("data:") === 0) && this.textureLoader.setPath(void 0));
18204
18204
  var T, N = b.FileName.slice(-3).toLowerCase();
18205
18205
  if (N === "tga") {
@@ -18207,16 +18207,16 @@ var K0 = function() {
18207
18207
  _ === null ? (console.warn("FBXLoader: TGA loader not found, creating placeholder texture for", b.RelativeFilename), T = new Uu()) : T = _.load(I);
18208
18208
  } else
18209
18209
  N === "psd" ? (console.warn("FBXLoader: PSD textures are not supported, creating placeholder texture for", b.RelativeFilename), T = new Uu()) : T = this.textureLoader.load(I);
18210
- return this.textureLoader.setPath(E), T;
18210
+ return this.textureLoader.setPath(M), T;
18211
18211
  },
18212
18212
  // Parse nodes in FBXTree.Objects.Material
18213
18213
  parseMaterials: function(b) {
18214
18214
  var C = /* @__PURE__ */ new Map();
18215
18215
  if ("Material" in n.Objects) {
18216
18216
  var I = n.Objects.Material;
18217
- for (var E in I) {
18218
- var S = this.parseMaterial(I[E], b);
18219
- S !== null && C.set(parseInt(E), S);
18217
+ for (var M in I) {
18218
+ var S = this.parseMaterial(I[M], b);
18219
+ S !== null && C.set(parseInt(M), S);
18220
18220
  }
18221
18221
  }
18222
18222
  return C;
@@ -18225,7 +18225,7 @@ var K0 = function() {
18225
18225
  // Materials are connected to texture maps in FBXTree.Objects.Textures
18226
18226
  // FBX format currently only supports Lambert and Phong shading models
18227
18227
  parseMaterial: function(b, C) {
18228
- var I = b.id, E = b.attrName, S = b.ShadingModel;
18228
+ var I = b.id, M = b.attrName, S = b.ShadingModel;
18229
18229
  if (typeof S == "object" && (S = S.value), !t.has(I))
18230
18230
  return null;
18231
18231
  var T = this.parseParameters(b, C, I), N;
@@ -18240,46 +18240,46 @@ var K0 = function() {
18240
18240
  console.warn('THREE.FBXLoader: unknown material type "%s". Defaulting to MeshPhongMaterial.', S), N = new Ul();
18241
18241
  break;
18242
18242
  }
18243
- return N.setValues(T), N.name = E, N;
18243
+ return N.setValues(T), N.name = M, N;
18244
18244
  },
18245
18245
  // Parse FBX material and return parameters suitable for a three.js material
18246
18246
  // Also parse the texture map and return any textures associated with the material
18247
18247
  parseParameters: function(b, C, I) {
18248
- var E = {};
18249
- b.BumpFactor && (E.bumpScale = b.BumpFactor.value), b.Diffuse ? E.color = new Xt().fromArray(b.Diffuse.value) : b.DiffuseColor && b.DiffuseColor.type === "Color" && (E.color = new Xt().fromArray(b.DiffuseColor.value)), b.DisplacementFactor && (E.displacementScale = b.DisplacementFactor.value), b.Emissive ? E.emissive = new Xt().fromArray(b.Emissive.value) : b.EmissiveColor && b.EmissiveColor.type === "Color" && (E.emissive = new Xt().fromArray(b.EmissiveColor.value)), b.EmissiveFactor && (E.emissiveIntensity = parseFloat(b.EmissiveFactor.value)), b.Opacity && (E.opacity = parseFloat(b.Opacity.value)), E.opacity < 1 && (E.transparent = !0), b.ReflectionFactor && (E.reflectivity = b.ReflectionFactor.value), b.Shininess && (E.shininess = b.Shininess.value), b.Specular ? E.specular = new Xt().fromArray(b.Specular.value) : b.SpecularColor && b.SpecularColor.type === "Color" && (E.specular = new Xt().fromArray(b.SpecularColor.value));
18248
+ var M = {};
18249
+ b.BumpFactor && (M.bumpScale = b.BumpFactor.value), b.Diffuse ? M.color = new Xt().fromArray(b.Diffuse.value) : b.DiffuseColor && b.DiffuseColor.type === "Color" && (M.color = new Xt().fromArray(b.DiffuseColor.value)), b.DisplacementFactor && (M.displacementScale = b.DisplacementFactor.value), b.Emissive ? M.emissive = new Xt().fromArray(b.Emissive.value) : b.EmissiveColor && b.EmissiveColor.type === "Color" && (M.emissive = new Xt().fromArray(b.EmissiveColor.value)), b.EmissiveFactor && (M.emissiveIntensity = parseFloat(b.EmissiveFactor.value)), b.Opacity && (M.opacity = parseFloat(b.Opacity.value)), M.opacity < 1 && (M.transparent = !0), b.ReflectionFactor && (M.reflectivity = b.ReflectionFactor.value), b.Shininess && (M.shininess = b.Shininess.value), b.Specular ? M.specular = new Xt().fromArray(b.Specular.value) : b.SpecularColor && b.SpecularColor.type === "Color" && (M.specular = new Xt().fromArray(b.SpecularColor.value));
18250
18250
  var S = this;
18251
18251
  return t.get(I).children.forEach(function(T) {
18252
18252
  var N = T.relationship;
18253
18253
  switch (N) {
18254
18254
  case "Bump":
18255
- E.bumpMap = S.getTexture(C, T.ID);
18255
+ M.bumpMap = S.getTexture(C, T.ID);
18256
18256
  break;
18257
18257
  case "Maya|TEX_ao_map":
18258
- E.aoMap = S.getTexture(C, T.ID);
18258
+ M.aoMap = S.getTexture(C, T.ID);
18259
18259
  break;
18260
18260
  case "DiffuseColor":
18261
18261
  case "Maya|TEX_color_map":
18262
- E.map = S.getTexture(C, T.ID), E.map.encoding = dr;
18262
+ M.map = S.getTexture(C, T.ID), M.map.encoding = dr;
18263
18263
  break;
18264
18264
  case "DisplacementColor":
18265
- E.displacementMap = S.getTexture(C, T.ID);
18265
+ M.displacementMap = S.getTexture(C, T.ID);
18266
18266
  break;
18267
18267
  case "EmissiveColor":
18268
- E.emissiveMap = S.getTexture(C, T.ID), E.emissiveMap.encoding = dr;
18268
+ M.emissiveMap = S.getTexture(C, T.ID), M.emissiveMap.encoding = dr;
18269
18269
  break;
18270
18270
  case "NormalMap":
18271
18271
  case "Maya|TEX_normal_map":
18272
- E.normalMap = S.getTexture(C, T.ID);
18272
+ M.normalMap = S.getTexture(C, T.ID);
18273
18273
  break;
18274
18274
  case "ReflectionColor":
18275
- E.envMap = S.getTexture(C, T.ID), E.envMap.mapping = Qv, E.envMap.encoding = dr;
18275
+ M.envMap = S.getTexture(C, T.ID), M.envMap.mapping = Qv, M.envMap.encoding = dr;
18276
18276
  break;
18277
18277
  case "SpecularColor":
18278
- E.specularMap = S.getTexture(C, T.ID), E.specularMap.encoding = dr;
18278
+ M.specularMap = S.getTexture(C, T.ID), M.specularMap.encoding = dr;
18279
18279
  break;
18280
18280
  case "TransparentColor":
18281
18281
  case "TransparencyFactor":
18282
- E.alphaMap = S.getTexture(C, T.ID), E.transparent = !0;
18282
+ M.alphaMap = S.getTexture(C, T.ID), M.transparent = !0;
18283
18283
  break;
18284
18284
  case "AmbientColor":
18285
18285
  case "ShininessExponent":
@@ -18289,7 +18289,7 @@ var K0 = function() {
18289
18289
  console.warn("THREE.FBXLoader: %s map is not supported in three.js, skipping texture.", N);
18290
18290
  break;
18291
18291
  }
18292
- }), E;
18292
+ }), M;
18293
18293
  },
18294
18294
  // get a texture from the textureMap for use by a material.
18295
18295
  getTexture: function(b, C) {
@@ -18302,16 +18302,16 @@ var K0 = function() {
18302
18302
  var b = {}, C = {};
18303
18303
  if ("Deformer" in n.Objects) {
18304
18304
  var I = n.Objects.Deformer;
18305
- for (var E in I) {
18306
- var S = I[E], T = t.get(parseInt(E));
18305
+ for (var M in I) {
18306
+ var S = I[M], T = t.get(parseInt(M));
18307
18307
  if (S.attrType === "Skin") {
18308
18308
  var N = this.parseSkeleton(T, I);
18309
- N.ID = E, T.parents.length > 1 && console.warn("THREE.FBXLoader: skeleton attached to more than one geometry is not supported."), N.geometryID = T.parents[0].ID, b[E] = N;
18309
+ N.ID = M, T.parents.length > 1 && console.warn("THREE.FBXLoader: skeleton attached to more than one geometry is not supported."), N.geometryID = T.parents[0].ID, b[M] = N;
18310
18310
  } else if (S.attrType === "BlendShape") {
18311
18311
  var _ = {
18312
- id: E
18312
+ id: M
18313
18313
  };
18314
- _.rawTargets = this.parseMorphTargets(T, I), _.id = E, T.parents.length > 1 && console.warn("THREE.FBXLoader: morph target attached to more than one geometry is not supported."), C[E] = _;
18314
+ _.rawTargets = this.parseMorphTargets(T, I), _.id = M, T.parents.length > 1 && console.warn("THREE.FBXLoader: morph target attached to more than one geometry is not supported."), C[M] = _;
18315
18315
  }
18316
18316
  }
18317
18317
  }
@@ -18325,11 +18325,11 @@ var K0 = function() {
18325
18325
  // Each skin node represents a skeleton and each cluster node represents a bone
18326
18326
  parseSkeleton: function(b, C) {
18327
18327
  var I = [];
18328
- return b.children.forEach(function(E) {
18329
- var S = C[E.ID];
18328
+ return b.children.forEach(function(M) {
18329
+ var S = C[M.ID];
18330
18330
  if (S.attrType === "Cluster") {
18331
18331
  var T = {
18332
- ID: E.ID,
18332
+ ID: M.ID,
18333
18333
  indices: [],
18334
18334
  weights: [],
18335
18335
  transformLink: new nt().fromArray(S.TransformLink.a)
@@ -18345,8 +18345,8 @@ var K0 = function() {
18345
18345
  },
18346
18346
  // The top level morph deformer node has type "BlendShape" and sub nodes have type "BlendShapeChannel"
18347
18347
  parseMorphTargets: function(b, C) {
18348
- for (var I = [], E = 0; E < b.children.length; E++) {
18349
- var S = b.children[E], T = C[S.ID], N = {
18348
+ for (var I = [], M = 0; M < b.children.length; M++) {
18349
+ var S = b.children[M], T = C[S.ID], N = {
18350
18350
  name: T.attrName,
18351
18351
  initialWeight: T.DeformPercent,
18352
18352
  id: T.id,
@@ -18363,19 +18363,19 @@ var K0 = function() {
18363
18363
  // create the main Group() to be returned by the loader
18364
18364
  parseScene: function(b, C, I) {
18365
18365
  e = new vn();
18366
- var E = this.parseModels(b.skeletons, C, I), S = n.Objects.Model, T = this;
18367
- E.forEach(function(_) {
18366
+ var M = this.parseModels(b.skeletons, C, I), S = n.Objects.Model, T = this;
18367
+ M.forEach(function(_) {
18368
18368
  var q = S[_.ID];
18369
18369
  T.setLookAtProperties(_, q);
18370
18370
  var ee = t.get(_.ID).parents;
18371
18371
  ee.forEach(function(K) {
18372
- var se = E.get(K.ID);
18372
+ var se = M.get(K.ID);
18373
18373
  se !== void 0 && se.add(_);
18374
18374
  }), _.parent === null && e.add(_);
18375
- }), this.bindSkeleton(b.skeletons, C, E), this.createAmbientLight(), this.setupMorphMaterials(), e.traverse(function(_) {
18375
+ }), this.bindSkeleton(b.skeletons, C, M), this.createAmbientLight(), this.setupMorphMaterials(), e.traverse(function(_) {
18376
18376
  if (_.userData.transformData) {
18377
18377
  _.parent && (_.userData.transformData.parentMatrixWorld = _.parent.matrix);
18378
- var q = M(_.userData.transformData);
18378
+ var q = E(_.userData.transformData);
18379
18379
  _.applyMatrix4(q);
18380
18380
  }
18381
18381
  });
@@ -18384,7 +18384,7 @@ var K0 = function() {
18384
18384
  },
18385
18385
  // parse nodes in FBXTree.Objects.Model
18386
18386
  parseModels: function(b, C, I) {
18387
- var E = /* @__PURE__ */ new Map(), S = n.Objects.Model;
18387
+ var M = /* @__PURE__ */ new Map(), S = n.Objects.Model;
18388
18388
  for (var T in S) {
18389
18389
  var N = parseInt(T), _ = S[T], q = t.get(N), ee = this.buildSkeleton(q, b, N, _.attrName);
18390
18390
  if (!ee) {
@@ -18412,11 +18412,11 @@ var K0 = function() {
18412
18412
  }
18413
18413
  ee.name = _.attrName ? la.sanitizeNodeName(_.attrName) : "", ee.ID = N;
18414
18414
  }
18415
- this.getTransformData(ee, _), E.set(N, ee);
18415
+ this.getTransformData(ee, _), M.set(N, ee);
18416
18416
  }
18417
- return E;
18417
+ return M;
18418
18418
  },
18419
- buildSkeleton: function(b, C, I, E) {
18419
+ buildSkeleton: function(b, C, I, M) {
18420
18420
  var S = null;
18421
18421
  return b.parents.forEach(function(T) {
18422
18422
  for (var N in C) {
@@ -18424,7 +18424,7 @@ var K0 = function() {
18424
18424
  _.rawBones.forEach(function(q, ee) {
18425
18425
  if (q.ID === T.ID) {
18426
18426
  var K = S;
18427
- S = new Qu(), S.matrixWorld.copy(q.transformLink), S.name = E ? la.sanitizeNodeName(E) : "", S.ID = I, _.bones[ee] = S, K !== null && S.add(K);
18427
+ S = new Qu(), S.matrixWorld.copy(q.transformLink), S.name = M ? la.sanitizeNodeName(M) : "", S.ID = I, _.bones[ee] = S, K !== null && S.add(K);
18428
18428
  }
18429
18429
  });
18430
18430
  }
@@ -18439,8 +18439,8 @@ var K0 = function() {
18439
18439
  }), I === void 0)
18440
18440
  C = new Ao();
18441
18441
  else {
18442
- var E = 0;
18443
- I.CameraProjectionType !== void 0 && I.CameraProjectionType.value === 1 && (E = 1);
18442
+ var M = 0;
18443
+ I.CameraProjectionType !== void 0 && I.CameraProjectionType.value === 1 && (M = 1);
18444
18444
  var S = 1;
18445
18445
  I.NearPlane !== void 0 && (S = I.NearPlane.value / 1e3);
18446
18446
  var T = 1e3;
@@ -18450,7 +18450,7 @@ var K0 = function() {
18450
18450
  var q = N / _, ee = 45;
18451
18451
  I.FieldOfView !== void 0 && (ee = I.FieldOfView.value);
18452
18452
  var K = I.FocalLength ? I.FocalLength.value : null;
18453
- switch (E) {
18453
+ switch (M) {
18454
18454
  case 0:
18455
18455
  C = new Yv(ee, q, S, T), K !== null && C.setFocalLength(K);
18456
18456
  break;
@@ -18458,7 +18458,7 @@ var K0 = function() {
18458
18458
  C = new Xv(-N / 2, N / 2, _ / 2, -_ / 2, S, T);
18459
18459
  break;
18460
18460
  default:
18461
- console.warn("THREE.FBXLoader: Unknown camera type " + E + "."), C = new Ao();
18461
+ console.warn("THREE.FBXLoader: Unknown camera type " + M + "."), C = new Ao();
18462
18462
  break;
18463
18463
  }
18464
18464
  }
@@ -18473,8 +18473,8 @@ var K0 = function() {
18473
18473
  }), I === void 0)
18474
18474
  C = new Ao();
18475
18475
  else {
18476
- var E;
18477
- I.LightType === void 0 ? E = 0 : E = I.LightType.value;
18476
+ var M;
18477
+ I.LightType === void 0 ? M = 0 : M = I.LightType.value;
18478
18478
  var S = 16777215;
18479
18479
  I.Color !== void 0 && (S = new Xt().fromArray(I.Color.value));
18480
18480
  var T = I.Intensity === void 0 ? 1 : I.Intensity.value / 100;
@@ -18482,7 +18482,7 @@ var K0 = function() {
18482
18482
  var N = 0;
18483
18483
  I.FarAttenuationEnd !== void 0 && (I.EnableFarAttenuation !== void 0 && I.EnableFarAttenuation.value === 0 ? N = 0 : N = I.FarAttenuationEnd.value);
18484
18484
  var _ = 1;
18485
- switch (E) {
18485
+ switch (M) {
18486
18486
  case 0:
18487
18487
  C = new Xu(S, T, N, _);
18488
18488
  break;
@@ -18504,20 +18504,20 @@ var K0 = function() {
18504
18504
  return C;
18505
18505
  },
18506
18506
  createMesh: function(b, C, I) {
18507
- var E, S = null, T = null, N = [];
18507
+ var M, S = null, T = null, N = [];
18508
18508
  return b.children.forEach(function(_) {
18509
18509
  C.has(_.ID) && (S = C.get(_.ID)), I.has(_.ID) && N.push(I.get(_.ID));
18510
18510
  }), N.length > 1 ? T = N : N.length > 0 ? T = N[0] : (T = new Ul({ color: 13421772 }), N.push(T)), "color" in S.attributes && N.forEach(function(_) {
18511
18511
  _.vertexColors = !0;
18512
18512
  }), S.FBX_Deformer ? (N.forEach(function(_) {
18513
18513
  _.skinning = !0;
18514
- }), E = new Jv(S, T), E.normalizeSkinWeights()) : E = new bo(S, T), E;
18514
+ }), M = new Jv(S, T), M.normalizeSkinWeights()) : M = new bo(S, T), M;
18515
18515
  },
18516
18516
  createCurve: function(b, C) {
18517
18517
  var I = b.children.reduce(function(S, T) {
18518
18518
  return C.has(T.ID) && (S = C.get(T.ID)), S;
18519
- }, null), E = new Kv({ color: 3342591, linewidth: 1 });
18520
- return new $v(I, E);
18519
+ }, null), M = new Kv({ color: 3342591, linewidth: 1 });
18520
+ return new $v(I, M);
18521
18521
  },
18522
18522
  // parse the model node for transform data
18523
18523
  getTransformData: function(b, C) {
@@ -18527,9 +18527,9 @@ var K0 = function() {
18527
18527
  setLookAtProperties: function(b, C) {
18528
18528
  if ("LookAtProperty" in C) {
18529
18529
  var I = t.get(b.ID).children;
18530
- I.forEach(function(E) {
18531
- if (E.relationship === "LookAtProperty") {
18532
- var S = n.Objects.Model[E.ID];
18530
+ I.forEach(function(M) {
18531
+ if (M.relationship === "LookAtProperty") {
18532
+ var S = n.Objects.Model[M.ID];
18533
18533
  if ("Lcl_Translation" in S) {
18534
18534
  var T = S.Lcl_Translation.value;
18535
18535
  b.target !== void 0 ? (b.target.position.fromArray(T), e.add(b.target)) : b.lookAt(new Ae().fromArray(T));
@@ -18539,7 +18539,7 @@ var K0 = function() {
18539
18539
  }
18540
18540
  },
18541
18541
  bindSkeleton: function(b, C, I) {
18542
- var E = this.parsePoseNodes();
18542
+ var M = this.parsePoseNodes();
18543
18543
  for (var S in b) {
18544
18544
  var T = b[S], N = t.get(parseInt(T.ID)).parents;
18545
18545
  N.forEach(function(_) {
@@ -18548,7 +18548,7 @@ var K0 = function() {
18548
18548
  ee.parents.forEach(function(K) {
18549
18549
  if (I.has(K.ID)) {
18550
18550
  var se = I.get(K.ID);
18551
- se.bind(new eA(T.bones), E[K.ID]);
18551
+ se.bind(new eA(T.bones), M[K.ID]);
18552
18552
  }
18553
18553
  });
18554
18554
  }
@@ -18561,10 +18561,10 @@ var K0 = function() {
18561
18561
  var C = n.Objects.Pose;
18562
18562
  for (var I in C)
18563
18563
  if (C[I].attrType === "BindPose") {
18564
- var E = C[I].PoseNode;
18565
- Array.isArray(E) ? E.forEach(function(S) {
18564
+ var M = C[I].PoseNode;
18565
+ Array.isArray(M) ? M.forEach(function(S) {
18566
18566
  b[S.Node] = new nt().fromArray(S.Matrix.a);
18567
- }) : b[E.Node] = new nt().fromArray(E.Matrix.a);
18567
+ }) : b[M.Node] = new nt().fromArray(M.Matrix.a);
18568
18568
  }
18569
18569
  }
18570
18570
  return b;
@@ -18572,9 +18572,9 @@ var K0 = function() {
18572
18572
  // Parse ambient color in FBXTree.GlobalSettings - if it's not set to black (default), create an ambient light
18573
18573
  createAmbientLight: function() {
18574
18574
  if ("GlobalSettings" in n && "AmbientColor" in n.GlobalSettings) {
18575
- var b = n.GlobalSettings.AmbientColor.value, C = b[0], I = b[1], E = b[2];
18576
- if (C !== 0 || I !== 0 || E !== 0) {
18577
- var S = new Xt(C, I, E);
18575
+ var b = n.GlobalSettings.AmbientColor.value, C = b[0], I = b[1], M = b[2];
18576
+ if (C !== 0 || I !== 0 || M !== 0) {
18577
+ var S = new Xt(C, I, M);
18578
18578
  e.add(new tA(S, 1));
18579
18579
  }
18580
18580
  }
@@ -18582,17 +18582,17 @@ var K0 = function() {
18582
18582
  setupMorphMaterials: function() {
18583
18583
  var b = this;
18584
18584
  e.traverse(function(C) {
18585
- C.isMesh && C.geometry.morphAttributes.position && C.geometry.morphAttributes.position.length && (Array.isArray(C.material) ? C.material.forEach(function(I, E) {
18586
- b.setupMorphMaterial(C, I, E);
18585
+ C.isMesh && C.geometry.morphAttributes.position && C.geometry.morphAttributes.position.length && (Array.isArray(C.material) ? C.material.forEach(function(I, M) {
18586
+ b.setupMorphMaterial(C, I, M);
18587
18587
  }) : b.setupMorphMaterial(C, C.material));
18588
18588
  });
18589
18589
  },
18590
18590
  setupMorphMaterial: function(b, C, I) {
18591
- var E = b.uuid, S = C.uuid, T = !1;
18591
+ var M = b.uuid, S = C.uuid, T = !1;
18592
18592
  if (e.traverse(function(_) {
18593
18593
  _.isMesh && (Array.isArray(_.material) ? _.material.forEach(function(q) {
18594
- q.uuid === S && _.uuid !== E && (T = !0);
18595
- }) : _.material.uuid === S && _.uuid !== E && (T = !0));
18594
+ q.uuid === S && _.uuid !== M && (T = !0);
18595
+ }) : _.material.uuid === S && _.uuid !== M && (T = !0));
18596
18596
  }), T === !0) {
18597
18597
  var N = C.clone();
18598
18598
  N.morphTargets = !0, I === void 0 ? b.material = N : b.material[I] = N;
@@ -18609,9 +18609,9 @@ var K0 = function() {
18609
18609
  var C = /* @__PURE__ */ new Map();
18610
18610
  if ("Geometry" in n.Objects) {
18611
18611
  var I = n.Objects.Geometry;
18612
- for (var E in I) {
18613
- var S = t.get(parseInt(E)), T = this.parseGeometry(S, I[E], b);
18614
- C.set(parseInt(E), T);
18612
+ for (var M in I) {
18613
+ var S = t.get(parseInt(M)), T = this.parseGeometry(S, I[M], b);
18614
+ C.set(parseInt(M), T);
18615
18615
  }
18616
18616
  }
18617
18617
  return C;
@@ -18627,29 +18627,29 @@ var K0 = function() {
18627
18627
  },
18628
18628
  // Parse single node mesh geometry in FBXTree.Objects.Geometry
18629
18629
  parseMeshGeometry: function(b, C, I) {
18630
- var E = I.skeletons, S = [], T = b.parents.map(function(K) {
18630
+ var M = I.skeletons, S = [], T = b.parents.map(function(K) {
18631
18631
  return n.Objects.Model[K.ID];
18632
18632
  });
18633
18633
  if (T.length !== 0) {
18634
18634
  var N = b.children.reduce(function(K, se) {
18635
- return E[se.ID] !== void 0 && (K = E[se.ID]), K;
18635
+ return M[se.ID] !== void 0 && (K = M[se.ID]), K;
18636
18636
  }, null);
18637
18637
  b.children.forEach(function(K) {
18638
18638
  I.morphTargets[K.ID] !== void 0 && S.push(I.morphTargets[K.ID]);
18639
18639
  });
18640
18640
  var _ = T[0], q = {};
18641
18641
  "RotationOrder" in _ && (q.eulerOrder = k(_.RotationOrder.value)), "InheritType" in _ && (q.inheritType = parseInt(_.InheritType.value)), "GeometricTranslation" in _ && (q.translation = _.GeometricTranslation.value), "GeometricRotation" in _ && (q.rotation = _.GeometricRotation.value), "GeometricScaling" in _ && (q.scale = _.GeometricScaling.value);
18642
- var ee = M(q);
18642
+ var ee = E(q);
18643
18643
  return this.genGeometry(C, N, S, ee);
18644
18644
  }
18645
18645
  },
18646
18646
  // Generate a BufferGeometry from a node in FBXTree.Objects.Geometry
18647
- genGeometry: function(b, C, I, E) {
18647
+ genGeometry: function(b, C, I, M) {
18648
18648
  var S = new ca();
18649
18649
  b.attrName && (S.name = b.attrName);
18650
18650
  var T = this.parseGeoNode(b, C), N = this.genBuffers(T), _ = new io(N.vertex, 3);
18651
- if (_.applyMatrix4(E), S.setAttribute("position", _), N.colors.length > 0 && S.setAttribute("color", new io(N.colors, 3)), C && (S.setAttribute("skinIndex", new iA(N.weightsIndices, 4)), S.setAttribute("skinWeight", new io(N.vertexWeights, 4)), S.FBX_Deformer = C), N.normal.length > 0) {
18652
- var q = new nA().getNormalMatrix(E), ee = new io(N.normal, 3);
18651
+ if (_.applyMatrix4(M), S.setAttribute("position", _), N.colors.length > 0 && S.setAttribute("color", new io(N.colors, 3)), C && (S.setAttribute("skinIndex", new iA(N.weightsIndices, 4)), S.setAttribute("skinWeight", new io(N.vertexWeights, 4)), S.FBX_Deformer = C), N.normal.length > 0) {
18652
+ var q = new nA().getNormalMatrix(M), ee = new io(N.normal, 3);
18653
18653
  ee.applyNormalMatrix(q), S.setAttribute("normal", ee);
18654
18654
  }
18655
18655
  if (N.uvs.forEach(function(Se, ue) {
@@ -18665,14 +18665,14 @@ var K0 = function() {
18665
18665
  }
18666
18666
  S.groups.length === 0 && S.addGroup(0, N.materialIndex.length, N.materialIndex[0]);
18667
18667
  }
18668
- return this.addMorphTargets(S, b, I, E), S;
18668
+ return this.addMorphTargets(S, b, I, M), S;
18669
18669
  },
18670
18670
  parseGeoNode: function(b, C) {
18671
18671
  var I = {};
18672
18672
  if (I.vertexPositions = b.Vertices !== void 0 ? b.Vertices.a : [], I.vertexIndices = b.PolygonVertexIndex !== void 0 ? b.PolygonVertexIndex.a : [], b.LayerElementColor && (I.color = this.parseVertexColors(b.LayerElementColor[0])), b.LayerElementMaterial && (I.material = this.parseMaterialIndices(b.LayerElementMaterial[0])), b.LayerElementNormal && (I.normal = this.parseNormals(b.LayerElementNormal[0])), b.LayerElementUV) {
18673
18673
  I.uv = [];
18674
- for (var E = 0; b.LayerElementUV[E]; )
18675
- I.uv.push(this.parseUVs(b.LayerElementUV[E])), E++;
18674
+ for (var M = 0; b.LayerElementUV[M]; )
18675
+ I.uv.push(this.parseUVs(b.LayerElementUV[M])), M++;
18676
18676
  }
18677
18677
  return I.weightTable = {}, C !== null && (I.skeleton = C, C.rawBones.forEach(function(S, T) {
18678
18678
  S.indices.forEach(function(N, _) {
@@ -18692,7 +18692,7 @@ var K0 = function() {
18692
18692
  materialIndex: [],
18693
18693
  vertexWeights: [],
18694
18694
  weightsIndices: []
18695
- }, I = 0, E = 0, S = !1, T = [], N = [], _ = [], q = [], ee = [], K = [], se = this;
18695
+ }, I = 0, M = 0, S = !1, T = [], N = [], _ = [], q = [], ee = [], K = [], se = this;
18696
18696
  return b.vertexIndices.forEach(function(te, le) {
18697
18697
  var Se = !1;
18698
18698
  te < 0 && (te = te ^ -1, Se = !0);
@@ -18732,7 +18732,7 @@ var K0 = function() {
18732
18732
  b.uv && b.uv.forEach(function(Re, ve) {
18733
18733
  var Be = v(le, I, te, Re);
18734
18734
  q[ve] === void 0 && (q[ve] = []), q[ve].push(Be[0]), q[ve].push(Be[1]);
18735
- }), E++, Se && (se.genFace(
18735
+ }), M++, Se && (se.genFace(
18736
18736
  C,
18737
18737
  b,
18738
18738
  T,
@@ -18742,25 +18742,25 @@ var K0 = function() {
18742
18742
  q,
18743
18743
  ee,
18744
18744
  K,
18745
- E
18746
- ), I++, E = 0, T = [], N = [], _ = [], q = [], ee = [], K = []);
18745
+ M
18746
+ ), I++, M = 0, T = [], N = [], _ = [], q = [], ee = [], K = []);
18747
18747
  }), C;
18748
18748
  },
18749
18749
  // Generate data for a single face in a geometry. If the face is a quad then split it into 2 tris
18750
- genFace: function(b, C, I, E, S, T, N, _, q, ee) {
18750
+ genFace: function(b, C, I, M, S, T, N, _, q, ee) {
18751
18751
  for (var K = 2; K < ee; K++)
18752
- b.vertex.push(C.vertexPositions[I[0]]), b.vertex.push(C.vertexPositions[I[1]]), b.vertex.push(C.vertexPositions[I[2]]), b.vertex.push(C.vertexPositions[I[(K - 1) * 3]]), b.vertex.push(C.vertexPositions[I[(K - 1) * 3 + 1]]), b.vertex.push(C.vertexPositions[I[(K - 1) * 3 + 2]]), b.vertex.push(C.vertexPositions[I[K * 3]]), b.vertex.push(C.vertexPositions[I[K * 3 + 1]]), b.vertex.push(C.vertexPositions[I[K * 3 + 2]]), C.skeleton && (b.vertexWeights.push(_[0]), b.vertexWeights.push(_[1]), b.vertexWeights.push(_[2]), b.vertexWeights.push(_[3]), b.vertexWeights.push(_[(K - 1) * 4]), b.vertexWeights.push(_[(K - 1) * 4 + 1]), b.vertexWeights.push(_[(K - 1) * 4 + 2]), b.vertexWeights.push(_[(K - 1) * 4 + 3]), b.vertexWeights.push(_[K * 4]), b.vertexWeights.push(_[K * 4 + 1]), b.vertexWeights.push(_[K * 4 + 2]), b.vertexWeights.push(_[K * 4 + 3]), b.weightsIndices.push(q[0]), b.weightsIndices.push(q[1]), b.weightsIndices.push(q[2]), b.weightsIndices.push(q[3]), b.weightsIndices.push(q[(K - 1) * 4]), b.weightsIndices.push(q[(K - 1) * 4 + 1]), b.weightsIndices.push(q[(K - 1) * 4 + 2]), b.weightsIndices.push(q[(K - 1) * 4 + 3]), b.weightsIndices.push(q[K * 4]), b.weightsIndices.push(q[K * 4 + 1]), b.weightsIndices.push(q[K * 4 + 2]), b.weightsIndices.push(q[K * 4 + 3])), C.color && (b.colors.push(T[0]), b.colors.push(T[1]), b.colors.push(T[2]), b.colors.push(T[(K - 1) * 3]), b.colors.push(T[(K - 1) * 3 + 1]), b.colors.push(T[(K - 1) * 3 + 2]), b.colors.push(T[K * 3]), b.colors.push(T[K * 3 + 1]), b.colors.push(T[K * 3 + 2])), C.material && C.material.mappingType !== "AllSame" && (b.materialIndex.push(E), b.materialIndex.push(E), b.materialIndex.push(E)), C.normal && (b.normal.push(S[0]), b.normal.push(S[1]), b.normal.push(S[2]), b.normal.push(S[(K - 1) * 3]), b.normal.push(S[(K - 1) * 3 + 1]), b.normal.push(S[(K - 1) * 3 + 2]), b.normal.push(S[K * 3]), b.normal.push(S[K * 3 + 1]), b.normal.push(S[K * 3 + 2])), C.uv && C.uv.forEach(function(se, te) {
18752
+ b.vertex.push(C.vertexPositions[I[0]]), b.vertex.push(C.vertexPositions[I[1]]), b.vertex.push(C.vertexPositions[I[2]]), b.vertex.push(C.vertexPositions[I[(K - 1) * 3]]), b.vertex.push(C.vertexPositions[I[(K - 1) * 3 + 1]]), b.vertex.push(C.vertexPositions[I[(K - 1) * 3 + 2]]), b.vertex.push(C.vertexPositions[I[K * 3]]), b.vertex.push(C.vertexPositions[I[K * 3 + 1]]), b.vertex.push(C.vertexPositions[I[K * 3 + 2]]), C.skeleton && (b.vertexWeights.push(_[0]), b.vertexWeights.push(_[1]), b.vertexWeights.push(_[2]), b.vertexWeights.push(_[3]), b.vertexWeights.push(_[(K - 1) * 4]), b.vertexWeights.push(_[(K - 1) * 4 + 1]), b.vertexWeights.push(_[(K - 1) * 4 + 2]), b.vertexWeights.push(_[(K - 1) * 4 + 3]), b.vertexWeights.push(_[K * 4]), b.vertexWeights.push(_[K * 4 + 1]), b.vertexWeights.push(_[K * 4 + 2]), b.vertexWeights.push(_[K * 4 + 3]), b.weightsIndices.push(q[0]), b.weightsIndices.push(q[1]), b.weightsIndices.push(q[2]), b.weightsIndices.push(q[3]), b.weightsIndices.push(q[(K - 1) * 4]), b.weightsIndices.push(q[(K - 1) * 4 + 1]), b.weightsIndices.push(q[(K - 1) * 4 + 2]), b.weightsIndices.push(q[(K - 1) * 4 + 3]), b.weightsIndices.push(q[K * 4]), b.weightsIndices.push(q[K * 4 + 1]), b.weightsIndices.push(q[K * 4 + 2]), b.weightsIndices.push(q[K * 4 + 3])), C.color && (b.colors.push(T[0]), b.colors.push(T[1]), b.colors.push(T[2]), b.colors.push(T[(K - 1) * 3]), b.colors.push(T[(K - 1) * 3 + 1]), b.colors.push(T[(K - 1) * 3 + 2]), b.colors.push(T[K * 3]), b.colors.push(T[K * 3 + 1]), b.colors.push(T[K * 3 + 2])), C.material && C.material.mappingType !== "AllSame" && (b.materialIndex.push(M), b.materialIndex.push(M), b.materialIndex.push(M)), C.normal && (b.normal.push(S[0]), b.normal.push(S[1]), b.normal.push(S[2]), b.normal.push(S[(K - 1) * 3]), b.normal.push(S[(K - 1) * 3 + 1]), b.normal.push(S[(K - 1) * 3 + 2]), b.normal.push(S[K * 3]), b.normal.push(S[K * 3 + 1]), b.normal.push(S[K * 3 + 2])), C.uv && C.uv.forEach(function(se, te) {
18753
18753
  b.uvs[te] === void 0 && (b.uvs[te] = []), b.uvs[te].push(N[te][0]), b.uvs[te].push(N[te][1]), b.uvs[te].push(N[te][(K - 1) * 2]), b.uvs[te].push(N[te][(K - 1) * 2 + 1]), b.uvs[te].push(N[te][K * 2]), b.uvs[te].push(N[te][K * 2 + 1]);
18754
18754
  });
18755
18755
  },
18756
- addMorphTargets: function(b, C, I, E) {
18756
+ addMorphTargets: function(b, C, I, M) {
18757
18757
  if (I.length !== 0) {
18758
18758
  b.morphTargetsRelative = !0, b.morphAttributes.position = [];
18759
18759
  var S = this;
18760
18760
  I.forEach(function(T) {
18761
18761
  T.rawTargets.forEach(function(N) {
18762
18762
  var _ = n.Objects.Geometry[N.geoID];
18763
- _ !== void 0 && S.genMorphGeometry(b, C, _, E, N.name);
18763
+ _ !== void 0 && S.genMorphGeometry(b, C, _, M, N.name);
18764
18764
  });
18765
18765
  });
18766
18766
  }
@@ -18769,7 +18769,7 @@ var K0 = function() {
18769
18769
  // in FBXTree.Objects.Geometry, however it can only have attributes for position, normal
18770
18770
  // and a special attribute Index defining which vertices of the original geometry are affected
18771
18771
  // Normal and position attributes only have data for the vertices that are affected by the morph
18772
- genMorphGeometry: function(b, C, I, E, S) {
18772
+ genMorphGeometry: function(b, C, I, M, S) {
18773
18773
  for (var T = C.PolygonVertexIndex !== void 0 ? C.PolygonVertexIndex.a : [], N = I.Vertices !== void 0 ? I.Vertices.a : [], _ = I.Indexes !== void 0 ? I.Indexes.a : [], q = b.attributes.position.count * 3, ee = new Float32Array(q), K = 0; K < _.length; K++) {
18774
18774
  var se = _[K] * 3;
18775
18775
  ee[se] = N[K * 3], ee[se + 1] = N[K * 3 + 1], ee[se + 2] = N[K * 3 + 2];
@@ -18778,14 +18778,14 @@ var K0 = function() {
18778
18778
  vertexIndices: T,
18779
18779
  vertexPositions: ee
18780
18780
  }, le = this.genBuffers(te), Se = new io(le.vertex, 3);
18781
- Se.name = S || I.attrName, Se.applyMatrix4(E), b.morphAttributes.position.push(Se);
18781
+ Se.name = S || I.attrName, Se.applyMatrix4(M), b.morphAttributes.position.push(Se);
18782
18782
  },
18783
18783
  // Parse normal from FBXTree.Objects.Geometry.LayerElementNormal if it exists
18784
18784
  parseNormals: function(b) {
18785
- var C = b.MappingInformationType, I = b.ReferenceInformationType, E = b.Normals.a, S = [];
18785
+ var C = b.MappingInformationType, I = b.ReferenceInformationType, M = b.Normals.a, S = [];
18786
18786
  return I === "IndexToDirect" && ("NormalIndex" in b ? S = b.NormalIndex.a : "NormalsIndex" in b && (S = b.NormalsIndex.a)), {
18787
18787
  dataSize: 3,
18788
- buffer: E,
18788
+ buffer: M,
18789
18789
  indices: S,
18790
18790
  mappingType: C,
18791
18791
  referenceType: I
@@ -18793,10 +18793,10 @@ var K0 = function() {
18793
18793
  },
18794
18794
  // Parse UVs from FBXTree.Objects.Geometry.LayerElementUV if it exists
18795
18795
  parseUVs: function(b) {
18796
- var C = b.MappingInformationType, I = b.ReferenceInformationType, E = b.UV.a, S = [];
18796
+ var C = b.MappingInformationType, I = b.ReferenceInformationType, M = b.UV.a, S = [];
18797
18797
  return I === "IndexToDirect" && (S = b.UVIndex.a), {
18798
18798
  dataSize: 2,
18799
- buffer: E,
18799
+ buffer: M,
18800
18800
  indices: S,
18801
18801
  mappingType: C,
18802
18802
  referenceType: I
@@ -18804,10 +18804,10 @@ var K0 = function() {
18804
18804
  },
18805
18805
  // Parse Vertex Colors from FBXTree.Objects.Geometry.LayerElementColor if it exists
18806
18806
  parseVertexColors: function(b) {
18807
- var C = b.MappingInformationType, I = b.ReferenceInformationType, E = b.Colors.a, S = [];
18807
+ var C = b.MappingInformationType, I = b.ReferenceInformationType, M = b.Colors.a, S = [];
18808
18808
  return I === "IndexToDirect" && (S = b.ColorIndex.a), {
18809
18809
  dataSize: 4,
18810
- buffer: E,
18810
+ buffer: M,
18811
18811
  indices: S,
18812
18812
  mappingType: C,
18813
18813
  referenceType: I
@@ -18824,11 +18824,11 @@ var K0 = function() {
18824
18824
  mappingType: "AllSame",
18825
18825
  referenceType: I
18826
18826
  };
18827
- for (var E = b.Materials.a, S = [], T = 0; T < E.length; ++T)
18827
+ for (var M = b.Materials.a, S = [], T = 0; T < M.length; ++T)
18828
18828
  S.push(T);
18829
18829
  return {
18830
18830
  dataSize: 1,
18831
- buffer: E,
18831
+ buffer: M,
18832
18832
  indices: S,
18833
18833
  mappingType: C,
18834
18834
  referenceType: I
@@ -18843,17 +18843,17 @@ var K0 = function() {
18843
18843
  var C = parseInt(b.Order);
18844
18844
  if (isNaN(C))
18845
18845
  return console.error("THREE.FBXLoader: Invalid Order %s given for geometry ID: %s", b.Order, b.id), new ca();
18846
- for (var I = C - 1, E = b.KnotVector.a, S = [], T = b.Points.a, N = 0, _ = T.length; N < _; N += 4)
18846
+ for (var I = C - 1, M = b.KnotVector.a, S = [], T = b.Points.a, N = 0, _ = T.length; N < _; N += 4)
18847
18847
  S.push(new Is().fromArray(T, N));
18848
18848
  var q, ee;
18849
18849
  if (b.Form === "Closed")
18850
18850
  S.push(S[0]);
18851
18851
  else if (b.Form === "Periodic") {
18852
- q = I, ee = E.length - 1 - q;
18852
+ q = I, ee = M.length - 1 - q;
18853
18853
  for (var N = 0; N < I; ++N)
18854
18854
  S.push(S[N]);
18855
18855
  }
18856
- var K = new Rs(I, E, S, q, ee), se = K.getPoints(S.length * 7), te = new Float32Array(se.length * 3);
18856
+ var K = new Rs(I, M, S, q, ee), se = K.getPoints(S.length * 7), te = new Float32Array(se.length * 3);
18857
18857
  se.forEach(function(Se, ue) {
18858
18858
  Se.toArray(te, ue * 3);
18859
18859
  });
@@ -18870,7 +18870,7 @@ var K0 = function() {
18870
18870
  var b = [], C = this.parseClips();
18871
18871
  if (C !== void 0)
18872
18872
  for (var I in C) {
18873
- var E = C[I], S = this.addClip(E);
18873
+ var M = C[I], S = this.addClip(M);
18874
18874
  b.push(S);
18875
18875
  }
18876
18876
  return b;
@@ -18889,11 +18889,11 @@ var K0 = function() {
18889
18889
  parseAnimationCurveNodes: function() {
18890
18890
  var b = n.Objects.AnimationCurveNode, C = /* @__PURE__ */ new Map();
18891
18891
  for (var I in b) {
18892
- var E = b[I];
18893
- if (E.attrName.match(/S|R|T|DeformPercent/) !== null) {
18892
+ var M = b[I];
18893
+ if (M.attrName.match(/S|R|T|DeformPercent/) !== null) {
18894
18894
  var S = {
18895
- id: E.id,
18896
- attr: E.attrName,
18895
+ id: M.id,
18896
+ attr: M.attrName,
18897
18897
  curves: {}
18898
18898
  };
18899
18899
  C.set(S.id, S);
@@ -18907,14 +18907,14 @@ var K0 = function() {
18907
18907
  parseAnimationCurves: function(b) {
18908
18908
  var C = n.Objects.AnimationCurve;
18909
18909
  for (var I in C) {
18910
- var E = {
18910
+ var M = {
18911
18911
  id: C[I].id,
18912
18912
  times: C[I].KeyTime.a.map(p),
18913
18913
  values: C[I].KeyValueFloat.a
18914
- }, S = t.get(E.id);
18914
+ }, S = t.get(M.id);
18915
18915
  if (S !== void 0) {
18916
18916
  var T = S.parents[0].ID, N = S.parents[0].relationship;
18917
- N.match(/X/) ? b.get(T).curves.x = E : N.match(/Y/) ? b.get(T).curves.y = E : N.match(/Z/) ? b.get(T).curves.z = E : N.match(/d|DeformPercent/) && b.has(T) && (b.get(T).curves.morph = E);
18917
+ N.match(/X/) ? b.get(T).curves.x = M : N.match(/Y/) ? b.get(T).curves.y = M : N.match(/Z/) ? b.get(T).curves.z = M : N.match(/d|DeformPercent/) && b.has(T) && (b.get(T).curves.morph = M);
18918
18918
  }
18919
18919
  }
18920
18920
  },
@@ -18923,8 +18923,8 @@ var K0 = function() {
18923
18923
  // note: theoretically a stack can have multiple layers, however in practice there always seems to be one per stack
18924
18924
  parseAnimationLayers: function(b) {
18925
18925
  var C = n.Objects.AnimationLayer, I = /* @__PURE__ */ new Map();
18926
- for (var E in C) {
18927
- var S = [], T = t.get(parseInt(E));
18926
+ for (var M in C) {
18927
+ var S = [], T = t.get(parseInt(M));
18928
18928
  if (T !== void 0) {
18929
18929
  var N = T.children;
18930
18930
  N.forEach(function(_, q) {
@@ -18967,7 +18967,7 @@ var K0 = function() {
18967
18967
  S[q][ee.attr] = ee;
18968
18968
  }
18969
18969
  }
18970
- }), I.set(parseInt(E), S);
18970
+ }), I.set(parseInt(M), S);
18971
18971
  }
18972
18972
  }
18973
18973
  return I;
@@ -18976,14 +18976,14 @@ var K0 = function() {
18976
18976
  // hierarchy. Each Stack node will be used to create a AnimationClip
18977
18977
  parseAnimStacks: function(b) {
18978
18978
  var C = n.Objects.AnimationStack, I = {};
18979
- for (var E in C) {
18980
- var S = t.get(parseInt(E)).children;
18979
+ for (var M in C) {
18980
+ var S = t.get(parseInt(M)).children;
18981
18981
  S.length > 1 && console.warn(
18982
18982
  "THREE.FBXLoader: Encountered an animation stack with multiple layers, this is currently not supported. Ignoring subsequent layers."
18983
18983
  );
18984
18984
  var T = b.get(S[0].ID);
18985
- I[E] = {
18986
- name: C[E].attrName,
18985
+ I[M] = {
18986
+ name: C[M].attrName,
18987
18987
  layer: T
18988
18988
  };
18989
18989
  }
@@ -18991,13 +18991,13 @@ var K0 = function() {
18991
18991
  },
18992
18992
  addClip: function(b) {
18993
18993
  var C = [], I = this;
18994
- return b.layer.forEach(function(E) {
18995
- C = C.concat(I.generateTracks(E));
18994
+ return b.layer.forEach(function(M) {
18995
+ C = C.concat(I.generateTracks(M));
18996
18996
  }), new oA(b.name, -1, C);
18997
18997
  },
18998
18998
  generateTracks: function(b) {
18999
- var C = [], I = new Ae(), E = new Es(), S = new Ae();
19000
- if (b.transform && b.transform.decompose(I, E, S), I = I.toArray(), E = new Xn().setFromQuaternion(E, b.eulerOrder).toArray(), S = S.toArray(), b.T !== void 0 && Object.keys(b.T.curves).length > 0) {
18999
+ var C = [], I = new Ae(), M = new Es(), S = new Ae();
19000
+ if (b.transform && b.transform.decompose(I, M, S), I = I.toArray(), M = new Xn().setFromQuaternion(M, b.eulerOrder).toArray(), S = S.toArray(), b.T !== void 0 && Object.keys(b.T.curves).length > 0) {
19001
19001
  var T = this.generateVectorTrack(b.modelName, b.T.curves, I, "position");
19002
19002
  T !== void 0 && C.push(T);
19003
19003
  }
@@ -19005,7 +19005,7 @@ var K0 = function() {
19005
19005
  var N = this.generateRotationTrack(
19006
19006
  b.modelName,
19007
19007
  b.R.curves,
19008
- E,
19008
+ M,
19009
19009
  b.preRotation,
19010
19010
  b.postRotation,
19011
19011
  b.eulerOrder
@@ -19022,52 +19022,52 @@ var K0 = function() {
19022
19022
  }
19023
19023
  return C;
19024
19024
  },
19025
- generateVectorTrack: function(b, C, I, E) {
19025
+ generateVectorTrack: function(b, C, I, M) {
19026
19026
  var S = this.getTimesForAllAxes(C), T = this.getKeyframeTrackValues(S, C, I);
19027
- return new rA(b + "." + E, S, T);
19027
+ return new rA(b + "." + M, S, T);
19028
19028
  },
19029
- generateRotationTrack: function(b, C, I, E, S, T) {
19029
+ generateRotationTrack: function(b, C, I, M, S, T) {
19030
19030
  C.x !== void 0 && (this.interpolateRotations(C.x), C.x.values = C.x.values.map(Yi.degToRad)), C.y !== void 0 && (this.interpolateRotations(C.y), C.y.values = C.y.values.map(Yi.degToRad)), C.z !== void 0 && (this.interpolateRotations(C.z), C.z.values = C.z.values.map(Yi.degToRad));
19031
19031
  var N = this.getTimesForAllAxes(C), _ = this.getKeyframeTrackValues(N, C, I);
19032
- E !== void 0 && (E = E.map(Yi.degToRad), E.push(T), E = new Xn().fromArray(E), E = new Es().setFromEuler(E)), S !== void 0 && (S = S.map(Yi.degToRad), S.push(T), S = new Xn().fromArray(S), S = new Es().setFromEuler(S).inverse());
19032
+ M !== void 0 && (M = M.map(Yi.degToRad), M.push(T), M = new Xn().fromArray(M), M = new Es().setFromEuler(M)), S !== void 0 && (S = S.map(Yi.degToRad), S.push(T), S = new Xn().fromArray(S), S = new Es().setFromEuler(S).inverse());
19033
19033
  for (var q = new Es(), ee = new Xn(), K = [], se = 0; se < _.length; se += 3)
19034
- ee.set(_[se], _[se + 1], _[se + 2], T), q.setFromEuler(ee), E !== void 0 && q.premultiply(E), S !== void 0 && q.multiply(S), q.toArray(K, se / 3 * 4);
19034
+ ee.set(_[se], _[se + 1], _[se + 2], T), q.setFromEuler(ee), M !== void 0 && q.premultiply(M), S !== void 0 && q.multiply(S), q.toArray(K, se / 3 * 4);
19035
19035
  return new aA(b + ".quaternion", N, K);
19036
19036
  },
19037
19037
  generateMorphTrack: function(b) {
19038
19038
  var C = b.DeformPercent.curves.morph, I = C.values.map(function(S) {
19039
19039
  return S / 100;
19040
- }), E = e.getObjectByName(b.modelName).morphTargetDictionary[b.morphName];
19041
- return new lA(b.modelName + ".morphTargetInfluences[" + E + "]", C.times, I);
19040
+ }), M = e.getObjectByName(b.modelName).morphTargetDictionary[b.morphName];
19041
+ return new lA(b.modelName + ".morphTargetInfluences[" + M + "]", C.times, I);
19042
19042
  },
19043
19043
  // For all animated objects, times are defined separately for each axis
19044
19044
  // Here we'll combine the times into one sorted array without duplicates
19045
19045
  getTimesForAllAxes: function(b) {
19046
19046
  var C = [];
19047
- return b.x !== void 0 && (C = C.concat(b.x.times)), b.y !== void 0 && (C = C.concat(b.y.times)), b.z !== void 0 && (C = C.concat(b.z.times)), C = C.sort(function(I, E) {
19048
- return I - E;
19049
- }).filter(function(I, E, S) {
19050
- return S.indexOf(I) == E;
19047
+ return b.x !== void 0 && (C = C.concat(b.x.times)), b.y !== void 0 && (C = C.concat(b.y.times)), b.z !== void 0 && (C = C.concat(b.z.times)), C = C.sort(function(I, M) {
19048
+ return I - M;
19049
+ }).filter(function(I, M, S) {
19050
+ return S.indexOf(I) == M;
19051
19051
  }), C;
19052
19052
  },
19053
19053
  getKeyframeTrackValues: function(b, C, I) {
19054
- var E = I, S = [], T = -1, N = -1, _ = -1;
19054
+ var M = I, S = [], T = -1, N = -1, _ = -1;
19055
19055
  return b.forEach(function(q) {
19056
19056
  if (C.x && (T = C.x.times.indexOf(q)), C.y && (N = C.y.times.indexOf(q)), C.z && (_ = C.z.times.indexOf(q)), T !== -1) {
19057
19057
  var ee = C.x.values[T];
19058
- S.push(ee), E[0] = ee;
19058
+ S.push(ee), M[0] = ee;
19059
19059
  } else
19060
- S.push(E[0]);
19060
+ S.push(M[0]);
19061
19061
  if (N !== -1) {
19062
19062
  var K = C.y.values[N];
19063
- S.push(K), E[1] = K;
19063
+ S.push(K), M[1] = K;
19064
19064
  } else
19065
- S.push(E[1]);
19065
+ S.push(M[1]);
19066
19066
  if (_ !== -1) {
19067
19067
  var se = C.z.values[_];
19068
- S.push(se), E[2] = se;
19068
+ S.push(se), M[2] = se;
19069
19069
  } else
19070
- S.push(E[2]);
19070
+ S.push(M[2]);
19071
19071
  }), S;
19072
19072
  },
19073
19073
  // Rotations are defined as Euler angles which can have values of any size
@@ -19075,9 +19075,9 @@ var K0 = function() {
19075
19075
  // PI, so we'll interpolate large rotations
19076
19076
  interpolateRotations: function(b) {
19077
19077
  for (var C = 1; C < b.values.length; C++) {
19078
- var I = b.values[C - 1], E = b.values[C] - I, S = Math.abs(E);
19078
+ var I = b.values[C - 1], M = b.values[C] - I, S = Math.abs(M);
19079
19079
  if (S >= 180) {
19080
- for (var T = S / 180, N = E / T, _ = I + N, q = b.times[C - 1], ee = b.times[C] - q, K = ee / T, se = q + K, te = [], le = []; se < b.times[C]; )
19080
+ for (var T = S / 180, N = M / T, _ = I + N, q = b.times[C - 1], ee = b.times[C] - q, K = ee / T, se = q + K, te = [], le = []; se < b.times[C]; )
19081
19081
  te.push(se), se += K, le.push(_), _ += N;
19082
19082
  b.times = B(b.times, C, te), b.values = B(b.values, C, le);
19083
19083
  }
@@ -19109,41 +19109,41 @@ var K0 = function() {
19109
19109
  parse: function(b) {
19110
19110
  this.currentIndent = 0, this.allNodes = new h(), this.nodeStack = [], this.currentProp = [], this.currentPropName = "";
19111
19111
  var C = this, I = b.split(/[\r\n]+/);
19112
- return I.forEach(function(E, S) {
19113
- var T = E.match(/^[\s\t]*;/), N = E.match(/^[\s\t]*$/);
19112
+ return I.forEach(function(M, S) {
19113
+ var T = M.match(/^[\s\t]*;/), N = M.match(/^[\s\t]*$/);
19114
19114
  if (!(T || N)) {
19115
- var _ = E.match("^\\t{" + C.currentIndent + "}(\\w+):(.*){", ""), q = E.match("^\\t{" + C.currentIndent + "}(\\w+):[\\s\\t\\r\\n](.*)"), ee = E.match("^\\t{" + (C.currentIndent - 1) + "}}");
19116
- _ ? C.parseNodeBegin(E, _) : q ? C.parseNodeProperty(E, q, I[++S]) : ee ? C.popStack() : E.match(/^[^\s\t}]/) && C.parseNodePropertyContinued(E);
19115
+ var _ = M.match("^\\t{" + C.currentIndent + "}(\\w+):(.*){", ""), q = M.match("^\\t{" + C.currentIndent + "}(\\w+):[\\s\\t\\r\\n](.*)"), ee = M.match("^\\t{" + (C.currentIndent - 1) + "}}");
19116
+ _ ? C.parseNodeBegin(M, _) : q ? C.parseNodeProperty(M, q, I[++S]) : ee ? C.popStack() : M.match(/^[^\s\t}]/) && C.parseNodePropertyContinued(M);
19117
19117
  }
19118
19118
  }), this.allNodes;
19119
19119
  },
19120
19120
  parseNodeBegin: function(b, C) {
19121
- var I = C[1].trim().replace(/^"/, "").replace(/"$/, ""), E = C[2].split(",").map(function(_) {
19121
+ var I = C[1].trim().replace(/^"/, "").replace(/"$/, ""), M = C[2].split(",").map(function(_) {
19122
19122
  return _.trim().replace(/^"/, "").replace(/"$/, "");
19123
- }), S = { name: I }, T = this.parseNodeAttr(E), N = this.getCurrentNode();
19123
+ }), S = { name: I }, T = this.parseNodeAttr(M), N = this.getCurrentNode();
19124
19124
  this.currentIndent === 0 ? this.allNodes.add(I, S) : I in N ? (I === "PoseNode" ? N.PoseNode.push(S) : N[I].id !== void 0 && (N[I] = {}, N[I][N[I].id] = N[I]), T.id !== "" && (N[I][T.id] = S)) : typeof T.id == "number" ? (N[I] = {}, N[I][T.id] = S) : I !== "Properties70" && (I === "PoseNode" ? N[I] = [S] : N[I] = S), typeof T.id == "number" && (S.id = T.id), T.name !== "" && (S.attrName = T.name), T.type !== "" && (S.attrType = T.type), this.pushStack(S);
19125
19125
  },
19126
19126
  parseNodeAttr: function(b) {
19127
19127
  var C = b[0];
19128
19128
  b[0] !== "" && (C = parseInt(b[0]), isNaN(C) && (C = b[0]));
19129
- var I = "", E = "";
19130
- return b.length > 1 && (I = b[1].replace(/^(\w+)::/, ""), E = b[2]), { id: C, name: I, type: E };
19129
+ var I = "", M = "";
19130
+ return b.length > 1 && (I = b[1].replace(/^(\w+)::/, ""), M = b[2]), { id: C, name: I, type: M };
19131
19131
  },
19132
19132
  parseNodeProperty: function(b, C, I) {
19133
- var E = C[1].replace(/^"/, "").replace(/"$/, "").trim(), S = C[2].replace(/^"/, "").replace(/"$/, "").trim();
19134
- E === "Content" && S === "," && (S = I.replace(/"/g, "").replace(/,$/, "").trim());
19133
+ var M = C[1].replace(/^"/, "").replace(/"$/, "").trim(), S = C[2].replace(/^"/, "").replace(/"$/, "").trim();
19134
+ M === "Content" && S === "," && (S = I.replace(/"/g, "").replace(/,$/, "").trim());
19135
19135
  var T = this.getCurrentNode(), N = T.name;
19136
19136
  if (N === "Properties70") {
19137
- this.parseNodeSpecialProperty(b, E, S);
19137
+ this.parseNodeSpecialProperty(b, M, S);
19138
19138
  return;
19139
19139
  }
19140
- if (E === "C") {
19140
+ if (M === "C") {
19141
19141
  var _ = S.split(",").slice(1), q = parseInt(_[0]), ee = parseInt(_[1]), K = S.split(",").slice(3);
19142
19142
  K = K.map(function(se) {
19143
19143
  return se.trim().replace(/^"/, "");
19144
- }), E = "connections", S = [q, ee], j(S, K), T[E] === void 0 && (T[E] = []);
19144
+ }), M = "connections", S = [q, ee], j(S, K), T[M] === void 0 && (T[M] = []);
19145
19145
  }
19146
- E === "Node" && (T.id = S), E in T && Array.isArray(T[E]) ? T[E].push(S) : E !== "a" ? T[E] = S : T.a = S, this.setCurrentProp(T, E), E === "a" && S.slice(-1) !== "," && (T.a = L(S));
19146
+ M === "Node" && (T.id = S), M in T && Array.isArray(T[M]) ? T[M].push(S) : M !== "a" ? T[M] = S : T.a = S, this.setCurrentProp(T, M), M === "a" && S.slice(-1) !== "," && (T.a = L(S));
19147
19147
  },
19148
19148
  parseNodePropertyContinued: function(b) {
19149
19149
  var C = this.getCurrentNode();
@@ -19151,9 +19151,9 @@ var K0 = function() {
19151
19151
  },
19152
19152
  // parse "Property70"
19153
19153
  parseNodeSpecialProperty: function(b, C, I) {
19154
- var E = I.split('",').map(function(ee) {
19154
+ var M = I.split('",').map(function(ee) {
19155
19155
  return ee.trim().replace(/^\"/, "").replace(/\s/, "_");
19156
- }), S = E[0], T = E[1], N = E[2], _ = E[3], q = E[4];
19156
+ }), S = M[0], T = M[1], N = M[2], _ = M[3], q = M[4];
19157
19157
  switch (T) {
19158
19158
  case "int":
19159
19159
  case "enum":
@@ -19190,11 +19190,11 @@ var K0 = function() {
19190
19190
  C.skip(23);
19191
19191
  var I = C.getUint32();
19192
19192
  console.info("THREE.FBXLoader: FBX binary version: " + I);
19193
- for (var E = new h(); !this.endOfContent(C); ) {
19193
+ for (var M = new h(); !this.endOfContent(C); ) {
19194
19194
  var S = this.parseNode(C, I);
19195
- S !== null && E.add(S.name, S);
19195
+ S !== null && M.add(S.name, S);
19196
19196
  }
19197
- return E;
19197
+ return M;
19198
19198
  },
19199
19199
  // Check if reader has reached the end of content.
19200
19200
  endOfContent: function(b) {
@@ -19202,15 +19202,15 @@ var K0 = function() {
19202
19202
  },
19203
19203
  // recursively parse nodes until the end of the file is reached
19204
19204
  parseNode: function(b, C) {
19205
- var I = {}, E = C >= 7500 ? b.getUint64() : b.getUint32(), S = C >= 7500 ? b.getUint64() : b.getUint32();
19205
+ var I = {}, M = C >= 7500 ? b.getUint64() : b.getUint32(), S = C >= 7500 ? b.getUint64() : b.getUint32();
19206
19206
  C >= 7500 ? b.getUint64() : b.getUint32();
19207
19207
  var T = b.getUint8(), N = b.getString(T);
19208
- if (E === 0)
19208
+ if (M === 0)
19209
19209
  return null;
19210
19210
  for (var _ = [], q = 0; q < S; q++)
19211
19211
  _.push(this.parseProperty(b));
19212
19212
  var ee = _.length > 0 ? _[0] : "", K = _.length > 1 ? _[1] : "", se = _.length > 2 ? _[2] : "";
19213
- for (I.singleProperty = S === 1 && b.getOffset() === E; E > b.getOffset(); ) {
19213
+ for (I.singleProperty = S === 1 && b.getOffset() === M; M > b.getOffset(); ) {
19214
19214
  var te = this.parseNode(b, C);
19215
19215
  te !== null && this.parseSubNode(N, I, te);
19216
19216
  }
@@ -19218,8 +19218,8 @@ var K0 = function() {
19218
19218
  },
19219
19219
  parseSubNode: function(b, C, I) {
19220
19220
  if (I.singleProperty === !0) {
19221
- var E = I.propertyList[0];
19222
- Array.isArray(E) ? (C[I.name] = I, I.a = E) : C[I.name] = E;
19221
+ var M = I.propertyList[0];
19222
+ Array.isArray(M) ? (C[I.name] = I, I.a = M) : C[I.name] = M;
19223
19223
  } else if (b === "Connections" && I.name === "C") {
19224
19224
  var S = [];
19225
19225
  I.propertyList.forEach(function(se, te) {
@@ -19268,20 +19268,20 @@ var K0 = function() {
19268
19268
  case "f":
19269
19269
  case "i":
19270
19270
  case "l":
19271
- var E = b.getUint32(), S = b.getUint32(), T = b.getUint32();
19271
+ var M = b.getUint32(), S = b.getUint32(), T = b.getUint32();
19272
19272
  if (S === 0)
19273
19273
  switch (C) {
19274
19274
  case "b":
19275
19275
  case "c":
19276
- return b.getBooleanArray(E);
19276
+ return b.getBooleanArray(M);
19277
19277
  case "d":
19278
- return b.getFloat64Array(E);
19278
+ return b.getFloat64Array(M);
19279
19279
  case "f":
19280
- return b.getFloat32Array(E);
19280
+ return b.getFloat32Array(M);
19281
19281
  case "i":
19282
- return b.getInt32Array(E);
19282
+ return b.getInt32Array(M);
19283
19283
  case "l":
19284
- return b.getInt64Array(E);
19284
+ return b.getInt64Array(M);
19285
19285
  }
19286
19286
  typeof gf == "undefined" && console.error(
19287
19287
  "THREE.FBXLoader: External library Inflate.min.js required, obtain or import from https://github.com/imaya/zlib.js"
@@ -19290,15 +19290,15 @@ var K0 = function() {
19290
19290
  switch (C) {
19291
19291
  case "b":
19292
19292
  case "c":
19293
- return _.getBooleanArray(E);
19293
+ return _.getBooleanArray(M);
19294
19294
  case "d":
19295
- return _.getFloat64Array(E);
19295
+ return _.getFloat64Array(M);
19296
19296
  case "f":
19297
- return _.getFloat32Array(E);
19297
+ return _.getFloat32Array(M);
19298
19298
  case "i":
19299
- return _.getInt32Array(E);
19299
+ return _.getInt32Array(M);
19300
19300
  case "l":
19301
- return _.getInt64Array(E);
19301
+ return _.getInt64Array(M);
19302
19302
  }
19303
19303
  default:
19304
19304
  throw new Error("THREE.FBXLoader: Unknown property type " + C);
@@ -19395,8 +19395,8 @@ var K0 = function() {
19395
19395
  getString: function(b) {
19396
19396
  for (var C = [], I = 0; I < b; I++)
19397
19397
  C[I] = this.getUint8();
19398
- var E = C.indexOf(0);
19399
- return E >= 0 && (C = C.slice(0, E)), Wl.decodeText(new Uint8Array(C));
19398
+ var M = C.indexOf(0);
19399
+ return M >= 0 && (C = C.slice(0, M)), Wl.decodeText(new Uint8Array(C));
19400
19400
  }
19401
19401
  };
19402
19402
  function h() {
@@ -19413,12 +19413,12 @@ var K0 = function() {
19413
19413
  }
19414
19414
  function f(b) {
19415
19415
  var C = ["K", "a", "y", "d", "a", "r", "a", "\\", "F", "B", "X", "\\", "B", "i", "n", "a", "r", "y", "\\", "\\"], I = 0;
19416
- function E(N) {
19416
+ function M(N) {
19417
19417
  var _ = b[N - 1];
19418
19418
  return b = b.slice(I + N), I++, _;
19419
19419
  }
19420
19420
  for (var S = 0; S < C.length; ++S) {
19421
- var T = E(1);
19421
+ var T = M(1);
19422
19422
  if (T === C[S])
19423
19423
  return !1;
19424
19424
  }
@@ -19427,8 +19427,8 @@ var K0 = function() {
19427
19427
  function m(b) {
19428
19428
  var C = /FBXVersion: (\d+)/, I = b.match(C);
19429
19429
  if (I) {
19430
- var E = parseInt(I[1]);
19431
- return E;
19430
+ var M = parseInt(I[1]);
19431
+ return M;
19432
19432
  }
19433
19433
  throw new Error("THREE.FBXLoader: Cannot find the version number for the file given.");
19434
19434
  }
@@ -19436,9 +19436,9 @@ var K0 = function() {
19436
19436
  return b / 46186158e3;
19437
19437
  }
19438
19438
  var g = [];
19439
- function v(b, C, I, E) {
19439
+ function v(b, C, I, M) {
19440
19440
  var S;
19441
- switch (E.mappingType) {
19441
+ switch (M.mappingType) {
19442
19442
  case "ByPolygonVertex":
19443
19443
  S = b;
19444
19444
  break;
@@ -19449,32 +19449,32 @@ var K0 = function() {
19449
19449
  S = I;
19450
19450
  break;
19451
19451
  case "AllSame":
19452
- S = E.indices[0];
19452
+ S = M.indices[0];
19453
19453
  break;
19454
19454
  default:
19455
- console.warn("THREE.FBXLoader: unknown attribute mapping type " + E.mappingType);
19455
+ console.warn("THREE.FBXLoader: unknown attribute mapping type " + M.mappingType);
19456
19456
  }
19457
- E.referenceType === "IndexToDirect" && (S = E.indices[S]);
19458
- var T = S * E.dataSize, N = T + E.dataSize;
19459
- return z(g, E.buffer, T, N);
19457
+ M.referenceType === "IndexToDirect" && (S = M.indices[S]);
19458
+ var T = S * M.dataSize, N = T + M.dataSize;
19459
+ return z(g, M.buffer, T, N);
19460
19460
  }
19461
19461
  var A = new Xn(), w = new Ae();
19462
- function M(b) {
19463
- var C = new nt(), I = new nt(), E = new nt(), S = new nt(), T = new nt(), N = new nt(), _ = new nt(), q = new nt(), ee = new nt(), K = new nt(), se = new nt(), te = b.inheritType ? b.inheritType : 0;
19462
+ function E(b) {
19463
+ var C = new nt(), I = new nt(), M = new nt(), S = new nt(), T = new nt(), N = new nt(), _ = new nt(), q = new nt(), ee = new nt(), K = new nt(), se = new nt(), te = b.inheritType ? b.inheritType : 0;
19464
19464
  if (b.translation && C.setPosition(w.fromArray(b.translation)), b.preRotation) {
19465
19465
  var le = b.preRotation.map(Yi.degToRad);
19466
19466
  le.push(b.eulerOrder), I.makeRotationFromEuler(A.fromArray(le));
19467
19467
  }
19468
19468
  if (b.rotation) {
19469
19469
  var le = b.rotation.map(Yi.degToRad);
19470
- le.push(b.eulerOrder), E.makeRotationFromEuler(A.fromArray(le));
19470
+ le.push(b.eulerOrder), M.makeRotationFromEuler(A.fromArray(le));
19471
19471
  }
19472
19472
  if (b.postRotation) {
19473
19473
  var le = b.postRotation.map(Yi.degToRad);
19474
19474
  le.push(b.eulerOrder), S.makeRotationFromEuler(A.fromArray(le));
19475
19475
  }
19476
19476
  b.scale && T.scale(w.fromArray(b.scale)), b.scalingOffset && _.setPosition(w.fromArray(b.scalingOffset)), b.scalingPivot && N.setPosition(w.fromArray(b.scalingPivot)), b.rotationOffset && q.setPosition(w.fromArray(b.rotationOffset)), b.rotationPivot && ee.setPosition(w.fromArray(b.rotationPivot)), b.parentMatrixWorld && (K = b.parentMatrixWorld);
19477
- var Se = I.multiply(E).multiply(S), ue = new nt();
19477
+ var Se = I.multiply(M).multiply(S), ue = new nt();
19478
19478
  K.extractRotation(ue);
19479
19479
  var Te = new nt();
19480
19480
  Te.copyPosition(K);
@@ -19490,7 +19490,7 @@ var K0 = function() {
19490
19490
  he.copy(ue).multiply(Se).multiply($).multiply(T);
19491
19491
  }
19492
19492
  var Me = new nt().getInverse(ee), Re = new nt().getInverse(N), ve = new nt();
19493
- ve.copy(C).multiply(q).multiply(ee).multiply(I).multiply(E).multiply(S).multiply(Me).multiply(_).multiply(N).multiply(T).multiply(Re);
19493
+ ve.copy(C).multiply(q).multiply(ee).multiply(I).multiply(M).multiply(S).multiply(Me).multiply(_).multiply(N).multiply(T).multiply(Re);
19494
19494
  var Be = new nt().copyPosition(ve), de = new nt().copy(K).multiply(Be);
19495
19495
  return se.copyPosition(de), ve = new nt().multiply(se).multiply(he), ve;
19496
19496
  }
@@ -19523,11 +19523,11 @@ var K0 = function() {
19523
19523
  return C === void 0 && (C = 0), I === void 0 && (I = b.byteLength), Wl.decodeText(new Uint8Array(b, C, I));
19524
19524
  }
19525
19525
  function j(b, C) {
19526
- for (var I = 0, E = b.length, S = C.length; I < S; I++, E++)
19527
- b[E] = C[I];
19526
+ for (var I = 0, M = b.length, S = C.length; I < S; I++, M++)
19527
+ b[M] = C[I];
19528
19528
  }
19529
- function z(b, C, I, E) {
19530
- for (var S = I, T = 0; S < E; S++, T++)
19529
+ function z(b, C, I, M) {
19530
+ for (var S = I, T = 0; S < M; S++, T++)
19531
19531
  b[T] = C[S];
19532
19532
  return b;
19533
19533
  }
@@ -19546,12 +19546,12 @@ const zS = (n, t) => {
19546
19546
  const A = (v == null ? void 0 : v.fbx_url) || e;
19547
19547
  if (l = (k = v == null ? void 0 : v.north_rad) != null ? k : i, typeof l != "number")
19548
19548
  throw new Error('"northRad"配置参数缺失:未配置指南针指向!');
19549
- const M = yield new K0().loadAsync(A);
19550
- return X0(M, {
19549
+ const E = yield new K0().loadAsync(A);
19550
+ return X0(E, {
19551
19551
  transparent: !0,
19552
19552
  side: P.DoubleSide,
19553
19553
  blending: P.AdditiveBlending
19554
- }), s.object = M, p(), !0;
19554
+ }), s.object = E, p(), !0;
19555
19555
  }), h = ({ latitude: v }) => {
19556
19556
  if (!s.object)
19557
19557
  return;
@@ -19577,7 +19577,7 @@ const zS = (n, t) => {
19577
19577
  const v = s.object;
19578
19578
  if (!v)
19579
19579
  return;
19580
- const A = n.model.bounding, w = A.max.x - A.min.x, M = A.max.z - A.min.z, k = Math.max(w, M), {
19580
+ const A = n.model.bounding, w = A.max.x - A.min.x, E = A.max.z - A.min.z, k = Math.max(w, E), {
19581
19581
  max: { x: L, z: D },
19582
19582
  min: { x: j, y: z, z: B }
19583
19583
  } = A;
@@ -19595,16 +19595,16 @@ function l5(n, t) {
19595
19595
  const c5 = ({ x: n, y: t, z: e }) => new Ae(n, t, e), OS = (n, t) => {
19596
19596
  var g, v, A;
19597
19597
  const e = {}, i = (g = t == null ? void 0 : t.animationEnabled) != null ? g : !0, s = (v = t == null ? void 0 : t.position) != null ? v : void 0, o = (A = t == null ? void 0 : t.rad) != null ? A : void 0, r = (t == null ? void 0 : t.fbx_url) || Fh, a = [], l = (w) => ie(void 0, null, function* () {
19598
- var b, C, I, E, S, T, N, _;
19599
- const M = (b = w == null ? void 0 : w.position) != null ? b : s;
19600
- if (!M)
19598
+ var b, C, I, M, S, T, N, _;
19599
+ const E = (b = w == null ? void 0 : w.position) != null ? b : s;
19600
+ if (!E)
19601
19601
  return Promise.reject(new Error("ModelEntryDoorGuidePlugin.load(): position is undefined"));
19602
- const k = c5(M), L = (C = w == null ? void 0 : w.rad) != null ? C : o, D = (I = w == null ? void 0 : w.fbx_url) != null ? I : r;
19602
+ const k = c5(E), L = (C = w == null ? void 0 : w.rad) != null ? C : o, D = (I = w == null ? void 0 : w.fbx_url) != null ? I : r;
19603
19603
  if (e.rad = L, L === void 0)
19604
19604
  return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): rad is ${L}`));
19605
19605
  const j = yield new K0().loadAsync(D);
19606
19606
  j.position.copy(k), j.rotation.z = L, j.scale.set(0.8, 0.8, 0.8), X0(j, { transparent: !0, side: P.DoubleSide });
19607
- const z = (N = (T = (S = (E = j.children) == null ? void 0 : E[0]) == null ? void 0 : S.children) == null ? void 0 : T[3]) == null ? void 0 : N.clone();
19607
+ const z = (N = (T = (S = (M = j.children) == null ? void 0 : M[0]) == null ? void 0 : S.children) == null ? void 0 : T[3]) == null ? void 0 : N.clone();
19608
19608
  if (!z)
19609
19609
  return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): textMesh is ${z}`));
19610
19610
  const B = (_ = t.name) != null ? _ : "入户门";
@@ -19614,19 +19614,19 @@ const c5 = ({ x: n, y: t, z: e }) => new Ae(n, t, e), OS = (n, t) => {
19614
19614
  return;
19615
19615
  if (!e.object)
19616
19616
  return console.error("ModelEntryDoorGuidePlugin.initAnimation(): state.object is ", e.object);
19617
- const w = 1, M = new hA(e.object);
19618
- a.push(M);
19619
- const k = M.clipAction(e.object.animations[0]);
19617
+ const w = 1, E = new hA(e.object);
19618
+ a.push(E);
19619
+ const k = E.clipAction(e.object.animations[0]);
19620
19620
  k.timeScale = w;
19621
19621
  let L;
19622
19622
  const D = () => {
19623
19623
  let b = 0, C = 0;
19624
- const I = 1e3 / 30, E = (S) => {
19625
- b = requestAnimationFrame(E);
19624
+ const I = 1e3 / 30, M = (S) => {
19625
+ b = requestAnimationFrame(M);
19626
19626
  const T = S - C;
19627
19627
  T < I || (C = S, a.forEach((N) => N.update(T / 1e3)), n.needsRender = !0);
19628
19628
  };
19629
- return b = requestAnimationFrame(E), () => {
19629
+ return b = requestAnimationFrame(M), () => {
19630
19630
  cancelAnimationFrame(b);
19631
19631
  };
19632
19632
  }, B = { play: () => {
@@ -19724,16 +19724,16 @@ const Uc = (n, t, e) => {
19724
19724
  })), a.asyncEndCallback && (yield a.asyncEndCallback());
19725
19725
  const { from: u, to: f } = i(o);
19726
19726
  return yield new Promise((m) => {
19727
- const p = ({ progress: M }) => {
19727
+ const p = ({ progress: E }) => {
19728
19728
  const k = {};
19729
- k.longitude = rc(u.longitude, f.longitude, M), k.latitude = rc(u.latitude, f.latitude, M), k.fov = rc(u.fov, f.fov, M), n.setState(k, !0);
19729
+ k.longitude = rc(u.longitude, f.longitude, E), k.latitude = rc(u.latitude, f.latitude, E), k.fov = rc(u.fov, f.fov, E), n.setState(k, !0);
19730
19730
  }, g = () => {
19731
19731
  m(!0);
19732
19732
  }, v = () => {
19733
19733
  m(!1);
19734
19734
  }, A = o.rotateSpeed ? Math.ceil(Math.abs(f.longitude - u.longitude) / o.rotateSpeed * 1e3) : r, w = d5(A, Vi.Linear.None).onUpdate(p).onComplete(g).onDestroy(v);
19735
- o.rotation === gn.Loop && w.repeat(1 / 0).yoyo(!0), t.interruptCallback = (M = !0) => {
19736
- w.destroy(), t.interruptCallback = void 0, t.timeoutId && (clearTimeout(t.timeoutId), t.timeoutId = void 0), m(M);
19735
+ o.rotation === gn.Loop && w.repeat(1 / 0).yoyo(!0), t.interruptCallback = (E = !0) => {
19736
+ w.destroy(), t.interruptCallback = void 0, t.timeoutId && (clearTimeout(t.timeoutId), t.timeoutId = void 0), m(E);
19737
19737
  }, t.timeoutId = setTimeout(() => {
19738
19738
  t.interruptCallback && t.interruptCallback(!0);
19739
19739
  }, r);
@@ -19920,19 +19920,19 @@ const m5 = `<style type="text/css">
19920
19920
  const o = document.createElement("div");
19921
19921
  o.innerHTML = m5, s.appendChild(o);
19922
19922
  const r = {}, a = (g, v) => {
19923
- var M;
19923
+ var E;
19924
19924
  if (e.loaded)
19925
19925
  throw new Error("标尺被重复初始化!");
19926
19926
  const A = A5(g, n), w = n.work;
19927
19927
  if (!w)
19928
19928
  return !1;
19929
19929
  for (const k in v) {
19930
- const L = v[k], D = (M = w.observers[0]) == null ? void 0 : M.standingPosition;
19930
+ const L = v[k], D = (E = w.observers[0]) == null ? void 0 : E.standingPosition;
19931
19931
  if (!D)
19932
19932
  return;
19933
19933
  const j = L.map(({ x: z, z: B, observers: b }) => {
19934
19934
  const C = b.length > 0 ? g.rooms[g.observers[b[0]]].name : "", I = A[C] ? A[C].floor : null;
19935
- let E = 1 / 0, S = {
19935
+ let M = 1 / 0, S = {
19936
19936
  index: 0,
19937
19937
  x: D.x,
19938
19938
  y: D.y,
@@ -19947,7 +19947,7 @@ const m5 = `<style type="text/css">
19947
19947
  y: se.y,
19948
19948
  z: se.z
19949
19949
  }, le = v5({ x: z, z: B }, te);
19950
- I ? le < E && Math.abs(te.y - I) < 0.3 && (E = le, S = te) : le < E && (E = le, S = te);
19950
+ I ? le < M && Math.abs(te.y - I) < 0.3 && (M = le, S = te) : le < M && (M = le, S = te);
19951
19951
  });
19952
19952
  const T = new Ae(z, S.y, B);
19953
19953
  Object.assign(T, { observers: b });
@@ -19973,14 +19973,14 @@ const m5 = `<style type="text/css">
19973
19973
  }
19974
19974
  return e.loaded = !0, !0;
19975
19975
  }, l = (g, v, A) => ie(void 0, null, function* () {
19976
- const w = g || t.roomInfo, M = v || t.roomRules;
19977
- if (!w || !M)
19976
+ const w = g || t.roomInfo, E = v || t.roomRules;
19977
+ if (!w || !E)
19978
19978
  throw new Error("标尺数据依赖不齐全!");
19979
- return e.loaded = !1, e.options = V(V({}, e.options), A || {}), n.model.loaded ? a(w, M) : yield new Promise((k) => n.once("modelLoaded", () => k(a(w, M))));
19979
+ return e.loaded = !1, e.options = V(V({}, e.options), A || {}), n.model.loaded ? a(w, E) : yield new Promise((k) => n.once("modelLoaded", () => k(a(w, E))));
19980
19980
  });
19981
19981
  t.roomInfo && t.roomRules && l(t.roomInfo, t.roomRules);
19982
19982
  const c = (g, v, A, w) => {
19983
- const M = [
19983
+ const E = [
19984
19984
  [
19985
19985
  { x: 0, y: 0 },
19986
19986
  { x: A, y: 0 }
@@ -19998,8 +19998,8 @@ const m5 = `<style type="text/css">
19998
19998
  { x: A, y: w }
19999
19999
  ]
20000
20000
  ], k = [];
20001
- for (let L = 0; L < M.length; L++) {
20002
- const D = e1([g, v], [M[L][0], M[L][1]], !0);
20001
+ for (let L = 0; L < E.length; L++) {
20002
+ const D = e1([g, v], [E[L][0], E[L][1]], !0);
20003
20003
  D && k.push(D);
20004
20004
  }
20005
20005
  return k.length === 0 ? !1 : k;
@@ -20011,10 +20011,10 @@ const m5 = `<style type="text/css">
20011
20011
  const { panoIndex: v, camera: A, currentMode: w } = n;
20012
20012
  if (v === void 0)
20013
20013
  return;
20014
- let M;
20014
+ let E;
20015
20015
  for (const b in r)
20016
- b.split(",").indexOf(v.toString()) >= 0 && (M = b);
20017
- if (!M) {
20016
+ b.split(",").indexOf(v.toString()) >= 0 && (E = b);
20017
+ if (!E) {
20018
20018
  for (const b in r)
20019
20019
  for (const { $element: C } of r[b].rules)
20020
20020
  C.style.display = "none";
@@ -20029,32 +20029,32 @@ const m5 = `<style type="text/css">
20029
20029
  }
20030
20030
  for (const b in r)
20031
20031
  for (const { $element: C } of r[b].rules)
20032
- C.style.display = b === M ? "block" : "none";
20033
- const [z] = r[M].origins.slice().filter((b) => b.observers.indexOf(v) >= 0).sort((b, C) => {
20034
- const I = b.clone().setY(0).sub(k).normalize().angleTo(L.clone().setY(0)), E = C.clone().setY(0).sub(k).normalize().angleTo(L.clone().setY(0));
20035
- return I - E;
20032
+ C.style.display = b === E ? "block" : "none";
20033
+ const [z] = r[E].origins.slice().filter((b) => b.observers.indexOf(v) >= 0).sort((b, C) => {
20034
+ const I = b.clone().setY(0).sub(k).normalize().angleTo(L.clone().setY(0)), M = C.clone().setY(0).sub(k).normalize().angleTo(L.clone().setY(0));
20035
+ return I - M;
20036
20036
  });
20037
- for (const { rule: b, vertical: C, $element: I } of r[M].rules) {
20038
- const [E, S] = b, T = I.querySelector(".PanoRulerPlugin-rule-line");
20037
+ for (const { rule: b, vertical: C, $element: I } of r[E].rules) {
20038
+ const [M, S] = b, T = I.querySelector(".PanoRulerPlugin-rule-line");
20039
20039
  if (!T)
20040
20040
  return;
20041
20041
  if (!z) {
20042
20042
  I.style.display = "none";
20043
20043
  continue;
20044
20044
  }
20045
- if (E !== z && S !== z) {
20045
+ if (M !== z && S !== z) {
20046
20046
  I.style.display = "none";
20047
20047
  continue;
20048
20048
  }
20049
- if (E.distanceTo(S) < 0.3) {
20049
+ if (M.distanceTo(S) < 0.3) {
20050
20050
  I.style.display = "none";
20051
20051
  continue;
20052
20052
  }
20053
- if (E.observers.indexOf(v) === -1 || S.observers.indexOf(v) === -1) {
20053
+ if (M.observers.indexOf(v) === -1 || S.observers.indexOf(v) === -1) {
20054
20054
  I.style.display = "none";
20055
20055
  continue;
20056
20056
  }
20057
- if (E.clone().sub(k).normalize().angleTo(L) > Math.PI / 2) {
20057
+ if (M.clone().sub(k).normalize().angleTo(L) > Math.PI / 2) {
20058
20058
  I.style.display = "none";
20059
20059
  continue;
20060
20060
  }
@@ -20062,14 +20062,14 @@ const m5 = `<style type="text/css">
20062
20062
  I.style.display = "none";
20063
20063
  continue;
20064
20064
  }
20065
- const q = E.distanceTo(S);
20065
+ const q = M.distanceTo(S);
20066
20066
  if (S.clone().sub(
20067
- S.clone().sub(E).divide(new Ae(2, 2, 2))
20067
+ S.clone().sub(M).divide(new Ae(2, 2, 2))
20068
20068
  ).distanceTo(k) / q > 8) {
20069
20069
  I.style.display = "none";
20070
20070
  continue;
20071
20071
  }
20072
- const se = E.clone().project(A), te = (se.x + 1) / 2 * D, le = (-se.y + 1) / 2 * j, Se = S.clone().project(A), ue = (Se.x + 1) / 2 * D, Te = (-Se.y + 1) / 2 * j, fe = Math.sqrt(Math.pow(ue - te, 2) + Math.pow(Te - le, 2));
20072
+ const se = M.clone().project(A), te = (se.x + 1) / 2 * D, le = (-se.y + 1) / 2 * j, Se = S.clone().project(A), ue = (Se.x + 1) / 2 * D, Te = (-Se.y + 1) / 2 * j, fe = Math.sqrt(Math.pow(ue - te, 2) + Math.pow(Te - le, 2));
20073
20073
  let he = fe, Le = 50;
20074
20074
  const $ = c(
20075
20075
  { x: ~~te, y: ~~le },
@@ -20080,7 +20080,7 @@ const m5 = `<style type="text/css">
20080
20080
  D,
20081
20081
  j
20082
20082
  );
20083
- if ($ && $.length === 1 && (z === E ? (he = Math.sqrt(Math.pow($[0].x - te, 2) + Math.pow($[0].y - le, 2)), Le = he / fe * 50) : z === S && (he = Math.sqrt(Math.pow($[0].x - ue, 2) + Math.pow($[0].y - Te, 2)), Le = 100 - he / fe * 50)), $ && $.length === 2) {
20083
+ if ($ && $.length === 1 && (z === M ? (he = Math.sqrt(Math.pow($[0].x - te, 2) + Math.pow($[0].y - le, 2)), Le = he / fe * 50) : z === S && (he = Math.sqrt(Math.pow($[0].x - ue, 2) + Math.pow($[0].y - Te, 2)), Le = 100 - he / fe * 50)), $ && $.length === 2) {
20084
20084
  const de = {
20085
20085
  x: ($[0].x + $[1].x) / 2,
20086
20086
  y: ($[0].y + $[1].y) / 2
@@ -20099,7 +20099,7 @@ const m5 = `<style type="text/css">
20099
20099
  const v = g.distanceText;
20100
20100
  e.options.distanceText = v, Object.values(r).forEach((A) => {
20101
20101
  A.rules.forEach((w) => {
20102
- const [M, k] = w.rule, L = M.distanceTo(k), D = w.$element.querySelector(".PanoRulerPlugin-rule-label-name");
20102
+ const [E, k] = w.rule, L = E.distanceTo(k), D = w.$element.querySelector(".PanoRulerPlugin-rule-label-name");
20103
20103
  D && (D.innerText = v(L));
20104
20104
  });
20105
20105
  });
@@ -20409,7 +20409,7 @@ function E5(n) {
20409
20409
  function M5(n, t, e) {
20410
20410
  var g, v, A, w;
20411
20411
  let { five: i } = t, { rulerDatas: s } = t, { options: o } = t, r = [];
20412
- const a = ((v = (g = i.getElement()) == null ? void 0 : g.parentElement) == null ? void 0 : v.clientWidth) || 0, l = ((w = (A = i.getElement()) == null ? void 0 : A.parentElement) == null ? void 0 : w.clientHeight) || 0, c = (M, k) => {
20412
+ const a = ((v = (g = i.getElement()) == null ? void 0 : g.parentElement) == null ? void 0 : v.clientWidth) || 0, l = ((w = (A = i.getElement()) == null ? void 0 : A.parentElement) == null ? void 0 : w.clientHeight) || 0, c = (E, k) => {
20413
20413
  const L = [
20414
20414
  [{ x: 0, y: 0 }, { x: a, y: 0 }],
20415
20415
  [{ x: 0, y: 0 }, { x: 0, y: l }],
@@ -20417,12 +20417,12 @@ function M5(n, t, e) {
20417
20417
  [{ x: 0, y: l }, { x: a, y: l }]
20418
20418
  ], D = [];
20419
20419
  for (let j = 0; j < L.length; j++) {
20420
- const z = e1([M, k], [L[j][0], L[j][1]], !0);
20420
+ const z = e1([E, k], [L[j][0], L[j][1]], !0);
20421
20421
  z && D.push(z);
20422
20422
  }
20423
20423
  return D.length === 0 ? !1 : D;
20424
- }, h = (M, k) => {
20425
- const L = M.clone().project(i.camera), D = (L.x + 1) / 2 * a, j = (-L.y + 1) / 2 * l, z = k.clone().project(i.camera), B = (z.x + 1) / 2 * a, b = (-z.y + 1) / 2 * l, C = Math.sqrt(Math.pow(B - D, 2) + Math.pow(b - j, 2));
20424
+ }, h = (E, k) => {
20425
+ const L = E.clone().project(i.camera), D = (L.x + 1) / 2 * a, j = (-L.y + 1) / 2 * l, z = k.clone().project(i.camera), B = (z.x + 1) / 2 * a, b = (-z.y + 1) / 2 * l, C = Math.sqrt(Math.pow(B - D, 2) + Math.pow(b - j, 2));
20426
20426
  return {
20427
20427
  startLeft: D,
20428
20428
  startTop: j,
@@ -20430,21 +20430,21 @@ function M5(n, t, e) {
20430
20430
  endTop: b,
20431
20431
  distance: C
20432
20432
  };
20433
- }, u = (M, k, L) => {
20434
- const D = i.camera.position, j = i.camera.getWorldDirection(new Ae()), z = M.clone().sub(D).normalize().angleTo(j), B = k.clone().sub(D).normalize().angleTo(j), b = M.distanceTo(k), I = k.clone().sub(k.clone().sub(M).divide(new Ae(2, 2, 2))).distanceTo(D), { startLeft: E, startTop: S, endLeft: T, endTop: N, distance: _ } = h(M, k), ee = -((Math.PI / 2 - Math.atan2(T - E, S - N)) / Math.PI) * 180;
20433
+ }, u = (E, k, L) => {
20434
+ const D = i.camera.position, j = i.camera.getWorldDirection(new Ae()), z = E.clone().sub(D).normalize().angleTo(j), B = k.clone().sub(D).normalize().angleTo(j), b = E.distanceTo(k), I = k.clone().sub(k.clone().sub(E).divide(new Ae(2, 2, 2))).distanceTo(D), { startLeft: M, startTop: S, endLeft: T, endTop: N, distance: _ } = h(E, k), ee = -((Math.PI / 2 - Math.atan2(T - M, S - N)) / Math.PI) * 180;
20435
20435
  let K = !0;
20436
- L || (K = !1), !qt(M, L) && !qt(k, L) && (K = !1), b < 0.3 && (K = !1), z > Math.PI / 2 && (K = !1), B > Math.PI / 2 && (K = !1), I / b > 8 && (K = !1);
20436
+ L || (K = !1), !qt(E, L) && !qt(k, L) && (K = !1), b < 0.3 && (K = !1), z > Math.PI / 2 && (K = !1), B > Math.PI / 2 && (K = !1), I / b > 8 && (K = !1);
20437
20437
  let se = 50, te = _;
20438
- const le = c({ x: ~~E, y: ~~S }, { x: ~~T, y: ~~N });
20439
- if (le && le.length === 1 && (qt(M, L) ? (te = Math.sqrt(Math.pow(le[0].x - E, 2) + Math.pow(le[0].y - S, 2)), se = te / _ * 50) : qt(k, L) && (te = Math.sqrt(Math.pow(le[0].x - T, 2) + Math.pow(le[0].y - N, 2)), se = 100 - te / _ * 50)), le && le.length === 2) {
20438
+ const le = c({ x: ~~M, y: ~~S }, { x: ~~T, y: ~~N });
20439
+ if (le && le.length === 1 && (qt(E, L) ? (te = Math.sqrt(Math.pow(le[0].x - M, 2) + Math.pow(le[0].y - S, 2)), se = te / _ * 50) : qt(k, L) && (te = Math.sqrt(Math.pow(le[0].x - T, 2) + Math.pow(le[0].y - N, 2)), se = 100 - te / _ * 50)), le && le.length === 2) {
20440
20440
  const Se = {
20441
20441
  x: (le[0].x + le[1].x) / 2,
20442
20442
  y: (le[0].y + le[1].y) / 2
20443
20443
  };
20444
- se = Math.sqrt(Math.pow(Se.x - E, 2) + Math.pow(Se.y - S, 2)) / _ * 100;
20444
+ se = Math.sqrt(Math.pow(Se.x - M, 2) + Math.pow(Se.y - S, 2)) / _ * 100;
20445
20445
  }
20446
20446
  return {
20447
- startLeft: E,
20447
+ startLeft: M,
20448
20448
  startTop: S,
20449
20449
  distance: _,
20450
20450
  deg: ee,
@@ -20453,17 +20453,17 @@ function M5(n, t, e) {
20453
20453
  ruleLength: b
20454
20454
  };
20455
20455
  }, f = () => {
20456
- const M = i.panoIndex, k = s.find((C) => C.panoIndex === M);
20456
+ const E = i.panoIndex, k = s.find((C) => C.panoIndex === E);
20457
20457
  if (!k)
20458
20458
  return e(0, r = []);
20459
20459
  if (i.currentMode !== Vt.Mode.Panorama)
20460
20460
  return e(0, r = []);
20461
20461
  const L = i.camera.position, D = i.camera.getWorldDirection(new Ae()), j = k.lines.map((C) => new Ae(C.start[0], -C.start[1], -C.start[2])), z = k.lines.map((C) => new Ae(C.end[0], -C.end[1], -C.end[2])), [B] = j.concat(z).sort((C, I) => {
20462
- const E = C.clone().setY(0).sub(L).normalize().angleTo(D.clone().setY(0)), S = I.clone().setY(0).sub(L).normalize().angleTo(D.clone().setY(0));
20463
- return E - S;
20462
+ const M = C.clone().setY(0).sub(L).normalize().angleTo(D.clone().setY(0)), S = I.clone().setY(0).sub(L).normalize().angleTo(D.clone().setY(0));
20463
+ return M - S;
20464
20464
  }), b = k.lines.map((C) => {
20465
20465
  var te, le;
20466
- const I = C.start, E = C.end, { startLeft: S, startTop: T, distance: N, deg: _, visible: q, labelOffset: ee, ruleLength: K } = u(new Ae(I[0], -I[1], -I[2]), new Ae(E[0], -E[1], -E[2]), B), se = [];
20466
+ const I = C.start, M = C.end, { startLeft: S, startTop: T, distance: N, deg: _, visible: q, labelOffset: ee, ruleLength: K } = u(new Ae(I[0], -I[1], -I[2]), new Ae(M[0], -M[1], -M[2]), B), se = [];
20467
20467
  return C.children && ((te = C.children) == null ? void 0 : te.length) > 0 && ((le = C.children) == null || le.forEach((Se) => {
20468
20468
  const ue = Se.start, Te = Se.end, { distance: fe } = h(new Ae(ue[0], -ue[1], -ue[2]), new Ae(Te[0], -Te[1], -Te[2]));
20469
20469
  se.push({ width: fe, state: Se.state });
@@ -20485,8 +20485,8 @@ function M5(n, t, e) {
20485
20485
  f(), i.on("panoArrived", f), i.on("modeChange", f), i.on("cameraDirectionUpdate", m), i.on("movingToPano", m), i.on("mouseWheel", () => p()), i.on("pinchGesture", () => p());
20486
20486
  }), ri(() => {
20487
20487
  i.off("panoArrived", f), i.off("modeChange", f), i.off("cameraDirectionUpdate", m), i.off("movingToPano", m), i.off("mouseWheel", () => p()), i.off("pinchGesture", () => p());
20488
- }), n.$$set = (M) => {
20489
- "five" in M && e(1, i = M.five), "rulerDatas" in M && e(2, s = M.rulerDatas), "options" in M && e(3, o = M.options);
20488
+ }), n.$$set = (E) => {
20489
+ "five" in E && e(1, i = E.five), "rulerDatas" in E && e(2, s = E.rulerDatas), "options" in E && e(3, o = E.options);
20490
20490
  }, [r, i, s, o];
20491
20491
  }
20492
20492
  class k5 extends Ee {
@@ -21061,12 +21061,12 @@ class X5 extends s1 {
21061
21061
  const s = i.clientWidth, o = i.clientHeight, r = s / 2, a = o / 2;
21062
21062
  if (this.line.points.length < 2)
21063
21063
  return;
21064
- const [l, c] = this.line.points.map((E) => E.position.clone().applyMatrix4(this.line.mesh.matrixWorld)), h = l.clone().project(e.camera), u = c.clone().project(e.camera), f = si(l, c).clone().project(e.camera), m = new Ht(h.x * r, h.y * a), p = new Ht(u.x * r, u.y * a), g = m.distanceTo(p);
21064
+ const [l, c] = this.line.points.map((M) => M.position.clone().applyMatrix4(this.line.mesh.matrixWorld)), h = l.clone().project(e.camera), u = c.clone().project(e.camera), f = si(l, c).clone().project(e.camera), m = new Ht(h.x * r, h.y * a), p = new Ht(u.x * r, u.y * a), g = m.distanceTo(p);
21065
21065
  if ((() => !(Math.abs(h.z) > 1 || Math.abs(u.z) > 1 || !Oa(h) && !Oa(u) || !Oa(f) || g === 0))() === !1) {
21066
21066
  this.hide();
21067
21067
  return;
21068
21068
  }
21069
- const w = si(l, c).distanceTo(e.camera.position), M = e.camera.fov || 60, k = 2 * Math.tan(0.5 * M / 180 * Math.PI), L = Math.max(Math.min(1 - k * w / 40, 1), 0);
21069
+ const w = si(l, c).distanceTo(e.camera.position), E = e.camera.fov || 60, k = 2 * Math.tan(0.5 * E / 180 * Math.PI), L = Math.max(Math.min(1 - k * w / 40, 1), 0);
21070
21070
  this.contentDom.style.setProperty("--distance-scale", L.toString());
21071
21071
  const D = (f.x + 1) / 2 * s, j = -(f.y - 1) / 2 * o, B = -(Math.atan((m.y - p.y) / (m.x - p.x)) * 180) / Math.PI, b = this.containerDom.parentElement && this.contentDom.clientWidth > g ? -20 : 0;
21072
21072
  this.containerDom.style.transform = `translate(${D}px, ${j}px) rotate(${B}deg) translateY(${b}px)`, this.show(), (I = this.params.userDistanceItem) == null || I.update({ line: this.line, polyline: this.line.getPolyline() });
@@ -21417,15 +21417,15 @@ function q5(n, t, e, i) {
21417
21417
  var s = n.prev, o = n, r = n.next;
21418
21418
  if (gt(s, o, r) >= 0)
21419
21419
  return !1;
21420
- for (var a = s.x, l = o.x, c = r.x, h = s.y, u = o.y, f = r.y, m = a < l ? a < c ? a : c : l < c ? l : c, p = h < u ? h < f ? h : f : u < f ? u : f, g = a > l ? a > c ? a : c : l > c ? l : c, v = h > u ? h > f ? h : f : u > f ? u : f, A = Qc(m, p, t, e, i), w = Qc(g, v, t, e, i), M = n.prevZ, k = n.nextZ; M && M.z >= A && k && k.z <= w; ) {
21421
- if (M.x >= m && M.x <= g && M.y >= p && M.y <= v && M !== s && M !== r && uo(a, h, l, u, c, f, M.x, M.y) && gt(M.prev, M, M.next) >= 0 || (M = M.prevZ, k.x >= m && k.x <= g && k.y >= p && k.y <= v && k !== s && k !== r && uo(a, h, l, u, c, f, k.x, k.y) && gt(k.prev, k, k.next) >= 0))
21420
+ for (var a = s.x, l = o.x, c = r.x, h = s.y, u = o.y, f = r.y, m = a < l ? a < c ? a : c : l < c ? l : c, p = h < u ? h < f ? h : f : u < f ? u : f, g = a > l ? a > c ? a : c : l > c ? l : c, v = h > u ? h > f ? h : f : u > f ? u : f, A = Qc(m, p, t, e, i), w = Qc(g, v, t, e, i), E = n.prevZ, k = n.nextZ; E && E.z >= A && k && k.z <= w; ) {
21421
+ if (E.x >= m && E.x <= g && E.y >= p && E.y <= v && E !== s && E !== r && uo(a, h, l, u, c, f, E.x, E.y) && gt(E.prev, E, E.next) >= 0 || (E = E.prevZ, k.x >= m && k.x <= g && k.y >= p && k.y <= v && k !== s && k !== r && uo(a, h, l, u, c, f, k.x, k.y) && gt(k.prev, k, k.next) >= 0))
21422
21422
  return !1;
21423
21423
  k = k.nextZ;
21424
21424
  }
21425
- for (; M && M.z >= A; ) {
21426
- if (M.x >= m && M.x <= g && M.y >= p && M.y <= v && M !== s && M !== r && uo(a, h, l, u, c, f, M.x, M.y) && gt(M.prev, M, M.next) >= 0)
21425
+ for (; E && E.z >= A; ) {
21426
+ if (E.x >= m && E.x <= g && E.y >= p && E.y <= v && E !== s && E !== r && uo(a, h, l, u, c, f, E.x, E.y) && gt(E.prev, E, E.next) >= 0)
21427
21427
  return !1;
21428
- M = M.prevZ;
21428
+ E = E.prevZ;
21429
21429
  }
21430
21430
  for (; k && k.z <= w; ) {
21431
21431
  if (k.x >= m && k.x <= g && k.y >= p && k.y <= v && k !== s && k !== r && uo(a, h, l, u, c, f, k.x, k.y) && gt(k.prev, k, k.next) >= 0)
@@ -22072,8 +22072,8 @@ class Zn extends Sl {
22072
22072
  ), w = new P.Line3(
22073
22073
  m.localToWorld(new P.Vector3(0, 1, 0)).add(v),
22074
22074
  m.localToWorld(new P.Vector3(0, -1, 0)).add(v)
22075
- ), M = A.closestPointToPoint(g, !1, new P.Vector3()), k = w.closestPointToPoint(g, !1, new P.Vector3());
22076
- return [M, k];
22075
+ ), E = A.closestPointToPoint(g, !1, new P.Vector3()), k = w.closestPointToPoint(g, !1, new P.Vector3());
22076
+ return [E, k];
22077
22077
  }
22078
22078
  return [];
22079
22079
  };
@@ -22148,7 +22148,7 @@ class Zn extends Sl {
22148
22148
  if (s != null && s.isPolygonMesh) {
22149
22149
  const A = this.model.areas.find((w) => w.polygon === s);
22150
22150
  if (A) {
22151
- const { x: w, y: M } = i[0].point.clone().project(this.five.camera), k = `${(w + 1) / 2 * 100}%`, L = `${(-M + 1) / 2 * 100}%`;
22151
+ const { x: w, y: E } = i[0].point.clone().project(this.five.camera), k = `${(w + 1) / 2 * 100}%`, L = `${(-E + 1) / 2 * 100}%`;
22152
22152
  return this.chooseArea(A, { left: k, top: L }), !1;
22153
22153
  }
22154
22154
  }
@@ -22156,7 +22156,7 @@ class Zn extends Sl {
22156
22156
  if (!o)
22157
22157
  return;
22158
22158
  const r = this.five.camera, a = o.point.clone().project(r), l = this.container.clientWidth, c = this.container.clientHeight, h = new Ht(a.x * l, a.y * c), u = this.model.getAllLines().map((A) => {
22159
- const [w, M] = A.points, k = w.position.clone().project(r), L = M.position.clone().project(r);
22159
+ const [w, E] = A.points, k = w.position.clone().project(r), L = E.position.clone().project(r);
22160
22160
  if (!_s(k) && !_s(L))
22161
22161
  return null;
22162
22162
  const D = new Ht(k.x * l, k.y * c), j = new Ht(L.x * l, L.y * c);
@@ -22400,7 +22400,7 @@ class Tf extends Sl {
22400
22400
  if (s instanceof d1) {
22401
22401
  const A = this.model.areas.find((w) => w.polygon === s);
22402
22402
  if (A) {
22403
- const { x: w, y: M } = i[0].point.clone().project(this.five.camera), k = `${(w + 1) / 2 * 100}%`, L = `${(-M + 1) / 2 * 100}%`;
22403
+ const { x: w, y: E } = i[0].point.clone().project(this.five.camera), k = `${(w + 1) / 2 * 100}%`, L = `${(-E + 1) / 2 * 100}%`;
22404
22404
  return this.chooseArea(A, { left: k, top: L }), !1;
22405
22405
  }
22406
22406
  }
@@ -22408,7 +22408,7 @@ class Tf extends Sl {
22408
22408
  if (!r)
22409
22409
  return;
22410
22410
  const a = this.five.camera, l = r.point.clone().project(a), c = this.container.clientWidth, h = this.container.clientHeight, u = new Ht(l.x * c, l.y * h), f = this.model.getAllLines().map((A) => {
22411
- const [w, M] = A.points, k = w.position.clone().project(a), L = M.position.clone().project(a);
22411
+ const [w, E] = A.points, k = w.position.clone().project(a), L = E.position.clone().project(a);
22412
22412
  if (!_s(k) && !_s(L))
22413
22413
  return null;
22414
22414
  const D = new Ht(k.x * c, k.y * h), j = new Ht(L.x * c, L.y * h);
@@ -22761,8 +22761,8 @@ class lr extends Sl {
22761
22761
  const [g, v] = p.points, A = g.position.clone().project(o), w = v.position.clone().project(o);
22762
22762
  if (!_s(A) && !_s(w))
22763
22763
  return null;
22764
- const M = new Ht(A.x * a, A.y * l), k = new Ht(w.x * a, w.y * l);
22765
- return { id: p.id, points: [M, k] };
22764
+ const E = new Ht(A.x * a, A.y * l), k = new Ht(w.x * a, w.y * l);
22765
+ return { id: p.id, points: [E, k] };
22766
22766
  }).filter((p) => !!p);
22767
22767
  if (h.length === 0)
22768
22768
  return;
@@ -24281,41 +24281,41 @@ function cC(n) {
24281
24281
  t = U("div"), p && p.c(), e = ae(), i = U("div"), s = U("div"), o = ae(), r = U("div"), g && g.c(), a = ae(), l = U("div"), v && v.c(), c = ae(), h = U("div"), me(u.$$.fragment), f = ae(), A && A.c(), y(s, "class", "mask svelte-ldjbp8"), y(h, "class", "main-button svelte-ldjbp8"), Pe(h, "forbid", !/*allowAddPoint*/
24282
24282
  n[5]), y(l, "class", "controller svelte-ldjbp8"), y(r, "class", "center svelte-ldjbp8"), y(i, "class", "bottom svelte-ldjbp8"), y(t, "class", "Measure-Controller svelte-ldjbp8");
24283
24283
  },
24284
- m(w, M) {
24285
- Y(w, t, M), p && p.m(t, null), R(t, e), R(t, i), R(i, s), R(i, o), R(i, r), g && g.m(r, null), R(r, a), R(r, l), v && v.m(l, null), R(l, c), R(l, h), pe(u, h, null), R(l, f), A && A.m(l, null), m = !0;
24284
+ m(w, E) {
24285
+ Y(w, t, E), p && p.m(t, null), R(t, e), R(t, i), R(i, s), R(i, o), R(i, r), g && g.m(r, null), R(r, a), R(r, l), v && v.m(l, null), R(l, c), R(l, h), pe(u, h, null), R(l, f), A && A.m(l, null), m = !0;
24286
24286
  },
24287
- p(w, [M]) {
24287
+ p(w, [E]) {
24288
24288
  /*showExit*/
24289
- w[1] ? p ? (p.p(w, M), M & /*showExit*/
24289
+ w[1] ? p ? (p.p(w, E), E & /*showExit*/
24290
24290
  2 && F(p, 1)) : (p = Wf(w), p.c(), F(p, 1), p.m(t, e)) : p && (ke(), X(p, 1, 1, () => {
24291
24291
  p = null;
24292
24292
  }), xe()), /*measureController*/
24293
24293
  w[0].allowMeasureType.length >= 2 && /*buttonState*/
24294
- w[3] === "start" ? g ? (g.p(w, M), M & /*measureController, buttonState*/
24294
+ w[3] === "start" ? g ? (g.p(w, E), E & /*measureController, buttonState*/
24295
24295
  9 && F(g, 1)) : (g = Uf(w), g.c(), F(g, 1), g.m(r, a)) : g && (ke(), X(g, 1, 1, () => {
24296
24296
  g = null;
24297
24297
  }), xe()), /*showButton*/
24298
- w[4] ? v ? (v.p(w, M), M & /*showButton*/
24298
+ w[4] ? v ? (v.p(w, E), E & /*showButton*/
24299
24299
  16 && F(v, 1)) : (v = Qf(w), v.c(), F(v, 1), v.m(l, c)) : v && (ke(), X(v, 1, 1, () => {
24300
24300
  v = null;
24301
24301
  }), xe());
24302
24302
  const k = {};
24303
- M & /*buttonState*/
24303
+ E & /*buttonState*/
24304
24304
  8 && (k.onClick = /*func*/
24305
- w[14]), M & /*buttonState*/
24305
+ w[14]), E & /*buttonState*/
24306
24306
  8 && (k.text = /*buttonTextMap*/
24307
24307
  w[6][
24308
24308
  /*buttonState*/
24309
24309
  w[3]
24310
- ]), M & /*buttonState*/
24310
+ ]), E & /*buttonState*/
24311
24311
  8 && (k.color = /*buttonColorMap*/
24312
24312
  w[7][
24313
24313
  /*buttonState*/
24314
24314
  w[3]
24315
- ]), u.$set(k), (!m || M & /*allowAddPoint*/
24315
+ ]), u.$set(k), (!m || E & /*allowAddPoint*/
24316
24316
  32) && Pe(h, "forbid", !/*allowAddPoint*/
24317
24317
  w[5]), /*showButton*/
24318
- w[4] ? A ? (A.p(w, M), M & /*showButton*/
24318
+ w[4] ? A ? (A.p(w, E), E & /*showButton*/
24319
24319
  16 && F(A, 1)) : (A = Xf(w), A.c(), F(A, 1), A.m(l, null)) : A && (ke(), X(A, 1, 1, () => {
24320
24320
  A = null;
24321
24321
  }), xe());
@@ -24360,7 +24360,7 @@ function hC(n, t, e) {
24360
24360
  g("complete");
24361
24361
  }, w = () => {
24362
24362
  i.currentMeasureType === "area" && h === "complete" && g("add");
24363
- }, M = (b) => {
24363
+ }, E = (b) => {
24364
24364
  b.length;
24365
24365
  }, k = () => {
24366
24366
  g("start"), L("allow");
@@ -24372,9 +24372,9 @@ function hC(n, t, e) {
24372
24372
  b.isEmpty && g("start");
24373
24373
  };
24374
24374
  Lt(() => {
24375
- i.hook.on("revoke", j), i.hook.on("measureTypeChange", D), i.hook.on("modeChange", k), i.hook.on("pointsChange", M), i.hook.on("allowAddPointStateChange", L), i.hook.on("readyComplete", A), i.hook.on("notReadyComplete", w), i.hook.on("complete", k);
24375
+ i.hook.on("revoke", j), i.hook.on("measureTypeChange", D), i.hook.on("modeChange", k), i.hook.on("pointsChange", E), i.hook.on("allowAddPointStateChange", L), i.hook.on("readyComplete", A), i.hook.on("notReadyComplete", w), i.hook.on("complete", k);
24376
24376
  }), ri(() => {
24377
- i.hook.off("measureTypeChange", D), i.hook.off("modeChange", k), i.hook.off("allowAddPointStateChange", L), i.hook.off("readyComplete", A), i.hook.off("pointsChange", M), i.hook.off("notReadyComplete", w), i.hook.off("complete", k);
24377
+ i.hook.off("measureTypeChange", D), i.hook.off("modeChange", k), i.hook.off("allowAddPointStateChange", L), i.hook.off("readyComplete", A), i.hook.off("pointsChange", E), i.hook.off("notReadyComplete", w), i.hook.off("complete", k);
24378
24378
  });
24379
24379
  const z = () => i.revoke(), B = () => {
24380
24380
  h === "start" ? f() : h === "add" ? m() : (h === "end" || h === "complete") && v();
@@ -24602,9 +24602,9 @@ function gC(n) {
24602
24602
  function mC(n, t, e) {
24603
24603
  let { measureController: i } = t, { i18n: s = (w) => w } = t, { tips: o } = t, { tipStyle: r = {} } = t, { visible: a = !0 } = t, l = null;
24604
24604
  const c = (w) => {
24605
- const M = i.currentMeasureType;
24605
+ const E = i.currentMeasureType;
24606
24606
  let k = "";
24607
- return k = o[w], k === void 0 && (k = o[M][w]), k;
24607
+ return k = o[w], k === void 0 && (k = o[E][w]), k;
24608
24608
  }, h = (w) => {
24609
24609
  e(2, f = s(c(w)));
24610
24610
  }, u = () => {
@@ -25818,7 +25818,7 @@ class HC extends Ct {
25818
25818
  * @description 开始测量
25819
25819
  */
25820
25820
  d(this, "measure", () => {
25821
- this.repositioningState && this.cancelRepositioning(), this.listener.addMeasureListener(), ct.unbind("delete, backspace"), this.group.children.forEach((p) => p.unselect()), this.cursor.removeDeleteButton();
25821
+ this.repositioningState && this.cancelRepositioning(), this.listener.addMeasureListener(), ct.unbind("delete, backspace"), this.group.children.forEach((E) => E.unselect()), this.cursor.removeDeleteButton();
25822
25822
  const e = new qf({
25823
25823
  lineStyle: this.lineStyle,
25824
25824
  polygonStyle: this.polygonStyle
@@ -25834,44 +25834,53 @@ class HC extends Ct {
25834
25834
  lineColor: 3407837,
25835
25835
  dashed: !0,
25836
25836
  cssStyle: "pointer-events: none; opacity: 0.5;"
25837
- })), l = new Cn({ occlusionMode: "depthTest", occlusionVisibility: !0, color: 3407837, opacity: 0.5 }), c = () => {
25837
+ })), l = new Cn({ occlusionMode: "depthTest", occlusionVisibility: !0, color: 3407837, opacity: 0.5 });
25838
+ let c = null, h = !1, u = !1;
25839
+ const f = (E) => {
25840
+ E.key === "Shift" && (u = !0);
25841
+ }, m = (E) => {
25842
+ E.key === "Shift" && (u = !1);
25843
+ }, p = () => {
25838
25844
  i.removeFromParent(), s.removeFromParent(), o.removeFromParent(), r.removeFromParent(), a.removeFromParent(), l.removeFromParent();
25839
25845
  };
25840
- this.group.add(e);
25841
- const h = (p) => {
25842
- if (!p) {
25843
- c();
25846
+ this.group.add(e), document.addEventListener("keydown", f), document.addEventListener("keyup", m);
25847
+ const g = (E) => {
25848
+ if (!E) {
25849
+ p(), c = null, h = !1;
25844
25850
  return;
25845
25851
  }
25846
- if (e.points.length === 0 && (this.pointSelector.actionIfNoIntersection = "disable", this.group.addIfNotExists(i), i.position.copy(p.point)), e.points.length >= 1)
25847
- if (this.pointSelector.actionIfNoIntersection = "virtualPoint", i.removeFromParent(), this.group.addIfNotExists(s), s.setPoints([e.points.at(-1), p.point]), p.isAdsorbed)
25848
- r.removeFromParent(), a.removeFromParent(), l.removeFromParent();
25852
+ if (e.points.length === 0 && (this.pointSelector.actionIfNoIntersection = "disable", this.group.addIfNotExists(i), i.position.copy(E.point), c = null, h = !1), e.points.length >= 1)
25853
+ if (this.pointSelector.actionIfNoIntersection = "virtualPoint", i.removeFromParent(), this.group.addIfNotExists(s), s.setPoints([e.points.at(-1), E.point]), E.isAdsorbed)
25854
+ r.removeFromParent(), a.removeFromParent(), l.removeFromParent(), c = null, h = !1;
25849
25855
  else {
25850
- const g = e.points.at(-1);
25851
- if (Math.abs(p.point.y - g.y) > 0.2) {
25852
- const A = new P.Vector3(p.point.x, g.y, p.point.z);
25853
- r.setPoints([g, A]), a.setPoints([A, p.point]), l.position.copy(A);
25856
+ const k = e.points.at(-1);
25857
+ if (Math.abs(E.point.y - k.y) > 0.2) {
25858
+ const D = new P.Vector3(E.point.x, k.y, E.point.z);
25859
+ r.setPoints([k, D]), a.setPoints([D, E.point]), l.position.copy(D), c = D.clone(), h = !0;
25854
25860
  } else {
25855
- let A = new P.Vector3();
25856
- Math.abs(p.point.x - g.x) < Math.abs(p.point.z - g.z) ? A = new P.Vector3(p.point.x, g.y, g.z) : A = new P.Vector3(g.x, g.y, p.point.z), r.setPoints([g, A]), a.setPoints([A, p.point]), l.position.copy(A);
25861
+ let D = new P.Vector3();
25862
+ Math.abs(E.point.x - k.x) < Math.abs(E.point.z - k.z) ? D = new P.Vector3(E.point.x, k.y, k.z) : D = new P.Vector3(k.x, k.y, E.point.z), r.setPoints([k, D]), a.setPoints([D, E.point]), l.position.copy(D), c = D.clone(), h = !0;
25857
25863
  }
25858
25864
  this.group.addIfNotExists(r, a, l);
25859
25865
  }
25860
25866
  if (e.points.length >= 2) {
25861
- const g = [...e.points, p.point];
25862
- C1(g) ? (o.setPoints(g), this.group.addIfNotExists(o)) : o.removeFromParent();
25867
+ const k = [...e.points, E.point];
25868
+ C1(k) ? (o.setPoints(k), this.group.addIfNotExists(o)) : o.removeFromParent();
25863
25869
  }
25864
- }, u = (p) => {
25865
- p && (c(), e.setPoints([...e.points, p.point]), this.updateSelectAdsorbedHelper(), e.isPolygon && (this.currentEndReason = "polygon", this.pointSelector.disable()));
25866
- }, f = () => {
25867
- var p, g;
25868
- e == null || e.setPoints(e.points.slice(0, -1)), c(), (g = (p = this.pointSelector.pointSelectorHelper) == null ? void 0 : p.magnifier) == null || g.render(), this.updateSelectAdsorbedHelper(), this.five.needsRender = !0;
25869
- }, m = () => {
25870
- this.pointSelector.off("intersectionUpdate", h), this.pointSelector.off("select", u), this.pointSelector.off("disable", m), this.off("undo", f), e.line.setStyle({ cssStyle: "pointer-events: auto;" }), c();
25871
- let p = this.currentEndReason;
25872
- e.points.length < 2 ? (e.removeFromParent(), p = "points_insufficient") : this.addMeshEventListeners(e), e.__five_pano_index = this.five.panoIndex, this.currentMeasureMesh = null, this.listener.removeMeasureListener(), this.emit("measureEnd", p), this.currentEndReason = "enter";
25870
+ }, v = (E) => {
25871
+ if (!E)
25872
+ return;
25873
+ let k = E.point;
25874
+ u && h && c && e.points.length >= 1 && (k = c.clone()), p(), e.setPoints([...e.points, k]), this.updateSelectAdsorbedHelper(), e.isPolygon && (this.currentEndReason = "polygon", this.pointSelector.disable());
25875
+ }, A = () => {
25876
+ var E, k;
25877
+ e == null || e.setPoints(e.points.slice(0, -1)), p(), (k = (E = this.pointSelector.pointSelectorHelper) == null ? void 0 : E.magnifier) == null || k.render(), this.updateSelectAdsorbedHelper(), this.five.needsRender = !0;
25878
+ }, w = () => {
25879
+ this.pointSelector.off("intersectionUpdate", g), this.pointSelector.off("select", v), this.pointSelector.off("disable", w), this.off("undo", A), document.removeEventListener("keydown", f), document.removeEventListener("keyup", m), e.line.setStyle({ cssStyle: "pointer-events: auto;" }), p();
25880
+ let E = this.currentEndReason;
25881
+ e.points.length < 2 ? (e.removeFromParent(), E = "points_insufficient") : this.addMeshEventListeners(e), e.__five_pano_index = this.five.panoIndex, this.currentMeasureMesh = null, this.listener.removeMeasureListener(), this.emit("measureEnd", E), this.currentEndReason = "enter";
25873
25882
  };
25874
- this.on("undo", f), this.pointSelector.on("intersectionUpdate", h), this.pointSelector.on("select", u), this.pointSelector.on("disable", m), this.pointSelector.enable();
25883
+ this.on("undo", A), this.pointSelector.on("intersectionUpdate", g), this.pointSelector.on("select", v), this.pointSelector.on("disable", w), this.pointSelector.enable();
25875
25884
  });
25876
25885
  /**
25877
25886
  * @description 结束测量
@@ -26733,9 +26742,9 @@ function QC(n) {
26733
26742
  };
26734
26743
  }
26735
26744
  function XC(n, t, e) {
26736
- let { id: i } = t, { upsideDown: s } = t, { content: o } = t, { contentZoom: r } = t, { lineWidthZoom: a } = t, { lineHeightZoom: l } = t, { destroying: c = !1 } = t, { folded: h } = t, { dispose: u } = t, { events: f } = t, { hooks: m } = t, { blurImageUrl: p } = t, g = 0, v = 0, A, w, M = setTimeout(
26745
+ let { id: i } = t, { upsideDown: s } = t, { content: o } = t, { contentZoom: r } = t, { lineWidthZoom: a } = t, { lineHeightZoom: l } = t, { destroying: c = !1 } = t, { folded: h } = t, { dispose: u } = t, { events: f } = t, { hooks: m } = t, { blurImageUrl: p } = t, g = 0, v = 0, A, w, E = setTimeout(
26737
26746
  () => {
26738
- h || e(11, w = !0), M = void 0;
26747
+ h || e(11, w = !0), E = void 0;
26739
26748
  },
26740
26749
  100
26741
26750
  );
@@ -26764,15 +26773,15 @@ function XC(n, t, e) {
26764
26773
  if (j === null)
26765
26774
  return;
26766
26775
  const [z, B] = j.split("-PanoSpatialTagPlugin-");
26767
- i === z && (m.emit("clickOrigin", { id: i, show: w }), M || (e(11, w = h), e(13, h = !h), M = setTimeout(
26776
+ i === z && (m.emit("clickOrigin", { id: i, show: w }), E || (e(11, w = h), e(13, h = !h), E = setTimeout(
26768
26777
  () => {
26769
- M = void 0;
26778
+ E = void 0;
26770
26779
  },
26771
26780
  1500
26772
26781
  )));
26773
26782
  });
26774
26783
  qh(() => {
26775
- e(8, g = A.offsetWidth), e(9, v = A.offsetHeight), !M && e(11, w = !h);
26784
+ e(8, g = A.offsetWidth), e(9, v = A.offsetHeight), !E && e(11, w = !h);
26776
26785
  }), ri(() => {
26777
26786
  m.emit("destroyTag", { id: i }), L(), u();
26778
26787
  });
@@ -26996,7 +27005,7 @@ const hc = 1e-3, rp = 0.01, ap = _h, QS = (n, t) => {
26996
27005
  L(), he && D();
26997
27006
  }, w = () => {
26998
27007
  g.forbidden && (g.forbidden = !1, D());
26999
- }, M = (fe, he) => {
27008
+ }, E = (fe, he) => {
27000
27009
  if (g.tags.length === 0)
27001
27010
  return;
27002
27011
  const Le = he.longitude - n.state.longitude, $ = n.camera.clone();
@@ -27162,7 +27171,7 @@ const hc = 1e-3, rp = 0.01, ap = _h, QS = (n, t) => {
27162
27171
  g.folded = !1, g.tags.forEach((fe) => {
27163
27172
  fe.app.$set({ folded: g.folded });
27164
27173
  });
27165
- }, E = () => {
27174
+ }, M = () => {
27166
27175
  g.folded = !0, g.tags.forEach((fe) => {
27167
27176
  fe.app.$set({ folded: g.folded });
27168
27177
  });
@@ -27177,17 +27186,17 @@ const hc = 1e-3, rp = 0.01, ap = _h, QS = (n, t) => {
27177
27186
  }, N = () => {
27178
27187
  n.once("renderFrame", L);
27179
27188
  }, _ = () => {
27180
- e || (e = n.getElement().parentElement), e && e.appendChild(f), g.forbidden = !1, i = n.model.bounding.getCenter(new P.Vector3()).y, D(), n.on("panoWillArrive", M), n.on("panoArrived", w), n.on("modeChange", k), n.on("cameraUpdate", A);
27189
+ e || (e = n.getElement().parentElement), e && e.appendChild(f), g.forbidden = !1, i = n.model.bounding.getCenter(new P.Vector3()).y, D(), n.on("panoWillArrive", E), n.on("panoArrived", w), n.on("modeChange", k), n.on("cameraUpdate", A);
27181
27190
  }, q = () => {
27182
27191
  p = null, u.disposeAll(), v.$destroy(), g.tags.forEach((fe) => {
27183
27192
  fe.app.$destroy(), fe = null;
27184
- }), g.origins = [], g.tags = [], n.off("modelLoaded", _), n.off("renderFrame", L), n.off("panoWillArrive", M), n.off("panoArrived", w), n.off("modeChange", k), n.off("cameraUpdate", A), n.off("dispose", q), window.removeEventListener("resize", N, !1);
27193
+ }), g.origins = [], g.tags = [], n.off("modelLoaded", _), n.off("renderFrame", L), n.off("panoWillArrive", E), n.off("panoArrived", w), n.off("modeChange", k), n.off("cameraUpdate", A), n.off("dispose", q), window.removeEventListener("resize", N, !1);
27185
27194
  };
27186
27195
  return window.addEventListener("resize", N, !1), (Te = n == null ? void 0 : n.model) != null && Te.loaded ? _() : n.once("modelLoaded", _), n.on("dispose", q), {
27187
27196
  load: z,
27188
27197
  setIntersectObjects: B,
27189
27198
  unfoldAll: I,
27190
- foldAll: E,
27199
+ foldAll: M,
27191
27200
  unfold: S,
27192
27201
  fold: T,
27193
27202
  enable: b,
@@ -27459,30 +27468,30 @@ let hp = 26, a4 = 11;
27459
27468
  function l4(n, t, e) {
27460
27469
  const { Raycaster: i, Vector3: s } = P;
27461
27470
  let { five: o } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, h = null, u = null, f, m, p = [], g = !0;
27462
- const v = (E, S) => {
27463
- const T = new i(), N = E.camera.position.clone(), _ = new s().fromArray(S.modelPosition), q = _.distanceTo(N);
27471
+ const v = (M, S) => {
27472
+ const T = new i(), N = M.camera.position.clone(), _ = new s().fromArray(S.modelPosition), q = _.distanceTo(N);
27464
27473
  T.set(N.clone(), _.clone().sub(N).normalize());
27465
- const [ee] = E.model.intersectRaycaster(T);
27474
+ const [ee] = M.model.intersectRaycaster(T);
27466
27475
  return !(ee && ee.distance + 1 < q);
27467
- }, A = (E, S) => {
27468
- const T = new s(S.modelPosition[0], S.modelPosition[1], S.modelPosition[2]), N = E.project2d(T), _ = N == null ? void 0 : N.x, q = N == null ? void 0 : N.y;
27476
+ }, A = (M, S) => {
27477
+ const T = new s(S.modelPosition[0], S.modelPosition[1], S.modelPosition[2]), N = M.project2d(T), _ = N == null ? void 0 : N.x, q = N == null ? void 0 : N.y;
27469
27478
  return [_, q];
27470
- }, w = (E) => `translate(${E[0]}px, ${E[1]}px)`, M = (E, S) => p.length === 0 ? !1 : !!p.find((N) => E[0] >= N[0] - S && E[0] <= N[0] + S || E[1] >= N[1] - hp && E[1] <= N[1] + hp);
27471
- function k(E, S) {
27479
+ }, w = (M) => `translate(${M[0]}px, ${M[1]}px)`, E = (M, S) => p.length === 0 ? !1 : !!p.find((N) => M[0] >= N[0] - S && M[0] <= N[0] + S || M[1] >= N[1] - hp && M[1] <= N[1] + hp);
27480
+ function k(M, S) {
27472
27481
  switch (S) {
27473
27482
  case fo.SMALL:
27474
- return Math.ceil(-27.78 * E + 85);
27483
+ return Math.ceil(-27.78 * M + 85);
27475
27484
  case fo.MIDLLE:
27476
- return Math.ceil(-38.9 * E + 130);
27485
+ return Math.ceil(-38.9 * M + 130);
27477
27486
  case fo.LARGE:
27478
- return Math.ceil(-44.44 * E + 140);
27487
+ return Math.ceil(-44.44 * M + 140);
27479
27488
  case fo.EXTRA_LARGE:
27480
- return Math.ceil(-92.59 * E + 300);
27489
+ return Math.ceil(-92.59 * M + 300);
27481
27490
  }
27482
27491
  }
27483
- const L = (E, S) => {
27492
+ const L = (M, S) => {
27484
27493
  const T = S.map((_) => {
27485
- const q = A(E, _), ee = _.name.length * a4, K = k(_.modelPosition[1], c), te = (r ? v(E, _) : !0) && !M([q[0], q[1] + K], ee);
27494
+ const q = A(M, _), ee = _.name.length * a4, K = k(_.modelPosition[1], c), te = (r ? v(M, _) : !0) && !E([q[0], q[1] + K], ee);
27486
27495
  if (!te)
27487
27496
  return ce(V({}, _), { visible: te });
27488
27497
  p.push(q);
@@ -27494,7 +27503,7 @@ function l4(n, t, e) {
27494
27503
  });
27495
27504
  }), N = T.filter(({ visible: _ }) => _).map((_) => ({
27496
27505
  itemLabelItem: _,
27497
- distance: new s(_.modelPosition[0], _.modelPosition[1], _.modelPosition[2]).clone().distanceTo(E.camera.position)
27506
+ distance: new s(_.modelPosition[0], _.modelPosition[1], _.modelPosition[2]).clone().distanceTo(M.camera.position)
27498
27507
  })).sort((_, q) => _.distance - q.distance);
27499
27508
  return T.map((_) => {
27500
27509
  const q = N.findIndex((ee) => ee.itemLabelItem.id === _.id);
@@ -27530,8 +27539,8 @@ function l4(n, t, e) {
27530
27539
  function I() {
27531
27540
  f = this.clientWidth, m = this.clientHeight, e(2, f), e(3, m);
27532
27541
  }
27533
- return n.$$set = (E) => {
27534
- "five" in E && e(5, o = E.five), "modelOcclusionEnable" in E && e(6, r = E.modelOcclusionEnable), "itemLabels" in E && e(7, a = E.itemLabels), "hooks" in E && e(0, l = E.hooks), "displayStrategyType" in E && e(8, c = E.displayStrategyType);
27542
+ return n.$$set = (M) => {
27543
+ "five" in M && e(5, o = M.five), "modelOcclusionEnable" in M && e(6, r = M.modelOcclusionEnable), "itemLabels" in M && e(7, a = M.itemLabels), "hooks" in M && e(0, l = M.hooks), "displayStrategyType" in M && e(8, c = M.displayStrategyType);
27535
27544
  }, [
27536
27545
  l,
27537
27546
  u,
@@ -27678,8 +27687,8 @@ const d4 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
27678
27687
  if (!e.videoTexture)
27679
27688
  return;
27680
27689
  const w = () => {
27681
- var M;
27682
- e.videoTexture && ((M = e.videoTexture) == null || M.image.removeEventListener("timeupdate", w), e.videoTextureEnabled = !0, e.videoMeshes.forEach((k) => {
27690
+ var E;
27691
+ e.videoTexture && ((E = e.videoTexture) == null || E.image.removeEventListener("timeupdate", w), e.videoTextureEnabled = !0, e.videoMeshes.forEach((k) => {
27683
27692
  k.material.map !== e.videoTexture && (k.material.map = e.videoTexture);
27684
27693
  }), n.needsRender = !0);
27685
27694
  };
@@ -27700,7 +27709,7 @@ const d4 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
27700
27709
  A.geometry.dispose(), A.material.dispose(), n.scene.remove(A), e.videoTexture && e.videoTexture.image.pause();
27701
27710
  }), e.videoMeshes = [], n.needsRender = !0);
27702
27711
  }, c = () => e.rectPoints.map((A, w) => {
27703
- const M = new P.BufferGeometry(), k = 128, L = [];
27712
+ const E = new P.BufferGeometry(), k = 128, L = [];
27704
27713
  L.push(...A[0].toArray());
27705
27714
  for (let I = 1; I < k; I++)
27706
27715
  L.push(
@@ -27727,43 +27736,43 @@ const d4 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
27727
27736
  const j = [];
27728
27737
  for (let I = 0; I < k; I++)
27729
27738
  j.push(I, I + 1, k * 2 - I, I, k * 2 - I, k * 2 + 1 - I);
27730
- M.setAttribute("position", new P.BufferAttribute(new Float32Array(L), 3)), M.setAttribute("uv", new P.BufferAttribute(new Float32Array(D), 2)), M.setIndex(new P.BufferAttribute(new Uint32Array(j), 1));
27739
+ E.setAttribute("position", new P.BufferAttribute(new Float32Array(L), 3)), E.setAttribute("uv", new P.BufferAttribute(new Float32Array(D), 2)), E.setIndex(new P.BufferAttribute(new Uint32Array(j), 1));
27731
27740
  const z = new P.MeshBasicMaterial({
27732
27741
  map: e.videoTextureEnabled ? e.videoTexture : e.imageTexture,
27733
27742
  side: P.DoubleSide
27734
- }), B = new P.Mesh(M, z);
27743
+ }), B = new P.Mesh(E, z);
27735
27744
  B.renderOrder = 1, B.name = `ModelTVVideoPlugin-${w}-${performance.now()}`;
27736
27745
  const b = [A[1], A[2], A[3], A[0]], C = i.create3DDomContainer(b);
27737
27746
  if (C != null && C.container) {
27738
27747
  const I = document.createElement("div");
27739
27748
  I.classList.add("play-icon"), I.style.width = "100%", I.style.height = "100%", I.style.display = "flex", I.style.justifyContent = "center", I.style.alignItems = "center", I.style.pointerEvents = "none", C.container.appendChild(I);
27740
- const E = document.createElement("img");
27741
- E.src = pu, E.style.width = "200px", E.style.pointerEvents = "auto", E.onclick = () => {
27749
+ const M = document.createElement("img");
27750
+ M.src = pu, M.style.width = "200px", M.style.pointerEvents = "auto", M.onclick = () => {
27742
27751
  e.videoTexture.image.muted = !1, e.videoTexture.image.play();
27743
- }, I.appendChild(E), s.set(B, C);
27752
+ }, I.appendChild(M), s.set(B, C);
27744
27753
  }
27745
27754
  return B;
27746
27755
  }), h = (A) => {
27747
27756
  const w = new P.TextureLoader().load(A);
27748
27757
  return w.minFilter = P.LinearFilter, w.magFilter = P.LinearFilter, w.format = P.RGBFormat, w;
27749
27758
  }, u = (A, w) => {
27750
- let M = w;
27759
+ let E = w;
27751
27760
  return new Promise((k, L) => {
27752
27761
  const D = new XMLHttpRequest();
27753
27762
  D.onreadystatechange = () => {
27754
27763
  if (D.readyState === 4)
27755
27764
  if (D.status === 200) {
27756
27765
  const j = window.URL || window.webkitURL;
27757
- M = M || document.createElement("video"), M.crossOrigin = "anonymous", M.muted = !0, M.loop = !0, M.playsInline = !0, M.src = j.createObjectURL(D.response);
27758
- const z = new P.VideoTexture(M);
27766
+ E = E || document.createElement("video"), E.crossOrigin = "anonymous", E.muted = !0, E.loop = !0, E.playsInline = !0, E.src = j.createObjectURL(D.response);
27767
+ const z = new P.VideoTexture(E);
27759
27768
  z.minFilter = P.LinearFilter, z.magFilter = P.LinearFilter, z.format = P.RGBFormat, k(Object.assign(z, { videoSource: A }));
27760
27769
  } else
27761
27770
  L(new Error("Video download Error: " + D.status));
27762
27771
  }, D.onerror = (j) => L(j), D.open("GET", A), D.responseType = "blob", D.send();
27763
27772
  });
27764
27773
  }, f = (A, w) => ie(void 0, null, function* () {
27765
- const { video_src: M, video_poster_src: k, points: L } = A;
27766
- e.videoSource = M, e.rectPoints = u4(L).map((D) => D.map(({ x: j, y: z, z: B }) => new P.Vector3(j, z, B))), e.imageTexture = h(k), w && (e.videoElement = w), e.videoTexture = yield u(e.videoSource, e.videoElement), e.enabled = !!A.enable, e.enabled && a();
27774
+ const { video_src: E, video_poster_src: k, points: L } = A;
27775
+ e.videoSource = E, e.rectPoints = u4(L).map((D) => D.map(({ x: j, y: z, z: B }) => new P.Vector3(j, z, B))), e.imageTexture = h(k), w && (e.videoElement = w), e.videoTexture = yield u(e.videoSource, e.videoElement), e.enabled = !!A.enable, e.enabled && a();
27767
27776
  }), m = (A) => {
27768
27777
  if (!e.enabled)
27769
27778
  return;
@@ -27776,13 +27785,13 @@ const d4 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
27776
27785
  if (!e.enabled)
27777
27786
  return;
27778
27787
  const A = n.camera.position;
27779
- if (s.forEach((w, M) => {
27788
+ if (s.forEach((w, E) => {
27780
27789
  const k = w.css3DObject.position.clone(), L = k.clone().sub(A).normalize(), D = new P.Raycaster(A, L), j = n.model.intersectRaycaster(D)[0], z = k.distanceTo(A), B = 0.01;
27781
27790
  j && j.distance + B < z ? w.hide() : w.show();
27782
27791
  }), !r()) {
27783
- const w = e.rectPoints.find((M) => {
27784
- const k = M[0].clone().add(M[1]).add(M[2]).add(M[3]).divideScalar(4);
27785
- return M.map((L) => L.clone().add(k).divideScalar(2)).filter((L) => {
27792
+ const w = e.rectPoints.find((E) => {
27793
+ const k = E[0].clone().add(E[1]).add(E[2]).add(E[3]).divideScalar(4);
27794
+ return E.map((L) => L.clone().add(k).divideScalar(2)).filter((L) => {
27786
27795
  const D = L.distanceTo(A), j = new P.Raycaster(A, L.clone().sub(A).normalize()), z = n.model.intersectRaycaster(j)[0], B = 0.01;
27787
27796
  return !(z && z.distance + B < D);
27788
27797
  }).length >= 2;
@@ -28200,14 +28209,14 @@ function M4(n, t, e) {
28200
28209
  }, w = (S) => {
28201
28210
  const { camera: T, model: N } = s, { x: _, y: q, z: ee } = S.clone().project(T), K = (_ + 1) / 2, se = (2 - (q + 1)) / 2;
28202
28211
  return !!(Math.abs(ee) < 1 && [K, se].every((ue) => ue < 1 && ue >= 0));
28203
- }, M = (S, T) => {
28212
+ }, E = (S, T) => {
28204
28213
  const N = new i(T.modelPosition[0], T.modelPosition[1], T.modelPosition[2]), _ = S.project2d(N), q = _ == null ? void 0 : _.x, ee = _ == null ? void 0 : _.y;
28205
28214
  return [q, ee];
28206
28215
  }, k = (S, T) => {
28207
28216
  const N = T.map((q) => {
28208
28217
  if (S.state.panoIndex !== q.panoIndex)
28209
28218
  return ce(V({}, q), { visible: !1 });
28210
- const ee = M(S, q);
28219
+ const ee = E(S, q);
28211
28220
  q.name.length * E4;
28212
28221
  const K = w4(q.modelPosition[1], l), se = S.currentMode === Vt.Mode.Panorama ? w(new i(q.position[0], q.position[1], q.position[2])) : !0, te = o ? A(S, q) : !1, le = se && !te;
28213
28222
  if (!le)
@@ -28286,7 +28295,7 @@ function M4(n, t, e) {
28286
28295
  }), ri(() => {
28287
28296
  s.off("cameraUpdate", D), window.removeEventListener("resize", z, !1);
28288
28297
  });
28289
- function E() {
28298
+ function M() {
28290
28299
  m = this.clientWidth, p = this.clientHeight, e(3, m), e(4, p);
28291
28300
  }
28292
28301
  return n.$$set = (S) => {
@@ -28304,7 +28313,7 @@ function M4(n, t, e) {
28304
28313
  r,
28305
28314
  l,
28306
28315
  c,
28307
- E
28316
+ M
28308
28317
  ];
28309
28318
  }
28310
28319
  class k4 extends Ee {
@@ -28580,7 +28589,7 @@ class V4 extends us {
28580
28589
  }), this.fixDoorPosition();
28581
28590
  });
28582
28591
  d(this, "fixDoorPosition", () => {
28583
- var c, h, u, f, m, p, g, v, A, w, M, k;
28592
+ var c, h, u, f, m, p, g, v, A, w, E, k;
28584
28593
  if (!this.state.enabled || !this.state.visible)
28585
28594
  return;
28586
28595
  const { panoIndex: e, camera: i } = this.five;
@@ -28602,19 +28611,19 @@ class V4 extends us {
28602
28611
  let L = 0;
28603
28612
  l.sort((D, j) => j.disFromCameraToLabel - D.disFromCameraToLabel);
28604
28613
  for (let D = 1; D < l.length; D++) {
28605
- const { index: j, left: z, top: B } = l[D - 1], { index: b, left: C, top: I } = l[D], E = this.container.children[j], S = this.container.children[b];
28606
- if (!E || !S)
28614
+ const { index: j, left: z, top: B } = l[D - 1], { index: b, left: C, top: I } = l[D], M = this.container.children[j], S = this.container.children[b];
28615
+ if (!M || !S)
28607
28616
  return;
28608
28617
  const T = {
28609
28618
  left: o * z / 100,
28610
28619
  top: r * B / 100,
28611
- width: (u = (h = (c = E.children) == null ? void 0 : c[0]) == null ? void 0 : h.clientWidth) != null ? u : 0,
28612
- height: (p = (m = (f = E.children) == null ? void 0 : f[0]) == null ? void 0 : m.clientHeight) != null ? p : 0
28620
+ width: (u = (h = (c = M.children) == null ? void 0 : c[0]) == null ? void 0 : h.clientWidth) != null ? u : 0,
28621
+ height: (p = (m = (f = M.children) == null ? void 0 : f[0]) == null ? void 0 : m.clientHeight) != null ? p : 0
28613
28622
  }, N = {
28614
28623
  left: o * C / 100,
28615
28624
  top: r * I / 100,
28616
28625
  width: (A = (v = (g = S.children) == null ? void 0 : g[0]) == null ? void 0 : v.clientWidth) != null ? A : 0,
28617
- height: (k = (M = (w = S.children) == null ? void 0 : w[0]) == null ? void 0 : M.clientHeight) != null ? k : 0
28626
+ height: (k = (E = (w = S.children) == null ? void 0 : w[0]) == null ? void 0 : E.clientHeight) != null ? k : 0
28618
28627
  };
28619
28628
  O4(T, N) && (L++, this.labelItems[j].transform = `translate(-50%, ${(L - 1) * 100 - 50}%)`, this.labelItems[b].transform = `translate(-50%, ${L * 100 - 50}%)`);
28620
28629
  }
@@ -28826,14 +28835,14 @@ function o8(n) {
28826
28835
  if (l <= 2)
28827
28836
  return { geometry: new P.BufferGeometry(), maxV: 0, curvePath: null, curvePoints: null };
28828
28837
  const c = $4(a.map((B) => [B.x, B.z])), u = (l - 1) * t8 * i8, f = 2 * l, m = f * n8, p = f * s8, g = new Uint32Array(u), v = new Float32Array(m), A = new Float32Array(p);
28829
- let w = 0, M = 0;
28838
+ let w = 0, E = 0;
28830
28839
  for (let B = 0; B < l; B++) {
28831
- const [b, C] = c[B][0], I = a[B], { x: E, y: S, z: T } = I, N = new Ae(E + b * i, S + 0.05, T + C * i);
28840
+ const [b, C] = c[B][0], I = a[B], { x: M, y: S, z: T } = I, N = new Ae(M + b * i, S + 0.05, T + C * i);
28832
28841
  v[B * 6 + 0] = N.x, v[B * 6 + 1] = N.y, v[B * 6 + 2] = N.z;
28833
- const _ = new Ae(E - b * i, S + 0.05, T - C * i);
28842
+ const _ = new Ae(M - b * i, S + 0.05, T - C * i);
28834
28843
  v[B * 6 + 3] = _.x, v[B * 6 + 4] = _.y, v[B * 6 + 5] = _.z, w += B > 0 ? a[B - 1].clone().sub(a[B]).length() : 0;
28835
28844
  const q = w / e;
28836
- M = q, A[B * 4 + 0] = 0, A[B * 4 + 1] = q, A[B * 4 + 2] = 1, A[B * 4 + 3] = q;
28845
+ E = q, A[B * 4 + 0] = 0, A[B * 4 + 1] = q, A[B * 4 + 2] = 1, A[B * 4 + 3] = q;
28837
28846
  const ee = new P.Vector3().lerpVectors(N, _, 0.5);
28838
28847
  n.skipPositions && n.skipPositions.some((se) => se.distanceTo(ee) < 0.26) || B !== l - 1 && (g[B * 6 + 0] = B * 2 + 0, g[B * 6 + 1] = B * 2 + 2, g[B * 6 + 2] = B * 2 + 1, g[B * 6 + 3] = B * 2 + 2, g[B * 6 + 4] = B * 2 + 3, g[B * 6 + 5] = B * 2 + 1);
28839
28848
  }
@@ -28849,16 +28858,16 @@ function o8(n) {
28849
28858
  }, I = {
28850
28859
  x: v[B * 6 + 3],
28851
28860
  y: v[B * 6 + 5]
28852
- }, E = {
28861
+ }, M = {
28853
28862
  x: v[b * 6 + 0],
28854
28863
  y: v[b * 6 + 2]
28855
28864
  }, S = {
28856
28865
  x: v[b * 6 + 3],
28857
28866
  y: v[b * 6 + 5]
28858
- }, T = O1([C, I], [E, S]);
28867
+ }, T = O1([C, I], [M, S]);
28859
28868
  if (T && k.push(B), !T && k.length) {
28860
28869
  k.push(B);
28861
- const N = new P.Vector2(C.x, C.y).distanceTo(new P.Vector2(E.x, E.y)), _ = new P.Vector2(I.x, I.y).distanceTo(new P.Vector2(S.x, S.y)), q = 300, ee = [], K = [], se = Math.max(0, k[0] - e * q), te = k[0];
28870
+ const N = new P.Vector2(C.x, C.y).distanceTo(new P.Vector2(M.x, M.y)), _ = new P.Vector2(I.x, I.y).distanceTo(new P.Vector2(S.x, S.y)), q = 300, ee = [], K = [], se = Math.max(0, k[0] - e * q), te = k[0];
28862
28871
  for (let Te = se; Te < te; Te++)
28863
28872
  N < _ ? ee.push({ x: v[Te * 6 + 0], y: v[Te * 6 + 2] }) : ee.push({ x: v[Te * 6 + 3], y: v[Te * 6 + 5] });
28864
28873
  const le = k[k.length - 1], Se = Math.min(l - 1, k[k.length - 1] + e * q);
@@ -28900,7 +28909,7 @@ function o8(n) {
28900
28909
  b >= B.start && b <= B.end ? (j[b * 2 + 0] = 1, j[b * 2 + 1] = 1) : j[b] !== 1 && (j[b * 2 + 0] = 0, j[b * 2 + 1] = 0);
28901
28910
  });
28902
28911
  const z = new P.BufferGeometry();
28903
- return z.setAttribute("position", new P.BufferAttribute(v, 3)), z.setAttribute("uv", new P.BufferAttribute(A, 2)), z.setIndex(new P.BufferAttribute(g, 1)), { geometry: z, maxV: M, animationWillError: D, curvePath: o, curvePoints: a };
28912
+ return z.setAttribute("position", new P.BufferAttribute(v, 3)), z.setAttribute("uv", new P.BufferAttribute(A, 2)), z.setIndex(new P.BufferAttribute(g, 1)), { geometry: z, maxV: E, animationWillError: D, curvePath: o, curvePoints: a };
28904
28913
  }
28905
28914
  function r8(n) {
28906
28915
  var t, e;
@@ -29847,38 +29856,38 @@ class D8 extends us {
29847
29856
  return e.config;
29848
29857
  }
29849
29858
  const o = {}, r = {}, a = {};
29850
- this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([M, k]) => {
29859
+ this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([E, k]) => {
29851
29860
  var C, I;
29852
- const L = M, D = L.split("-"), j = M.startsWith("["), z = j ? D[0].slice(1, -1) : void 0, B = j ? D.slice(1) : D, b = z ? ["PanoramaLike", "ModelLike"].includes(z) ? (C = r[z]) != null ? C : r[z] = {} : (I = a[z]) != null ? I : a[z] = {} : o;
29861
+ const L = E, D = L.split("-"), j = E.startsWith("["), z = j ? D[0].slice(1, -1) : void 0, B = j ? D.slice(1) : D, b = z ? ["PanoramaLike", "ModelLike"].includes(z) ? (C = r[z]) != null ? C : r[z] = {} : (I = a[z]) != null ? I : a[z] = {} : o;
29853
29862
  if (!b[L]) {
29854
29863
  if (B.length === 0 && (b[L] = k), B.length === 1) {
29855
- const [E] = B;
29856
- (e.contentType === E || E === "Any") && (b[L] = k);
29864
+ const [M] = B;
29865
+ (e.contentType === M || M === "Any") && (b[L] = k);
29857
29866
  }
29858
29867
  if (B.length === 2) {
29859
- const [E = "Any", S = "Any"] = B;
29860
- E === "Mixin" && e.contentType === S && (b[L] = k), (e.stickType === E || E === "Any") && (e.contentType === S || S === "Any") && (b[L] = k);
29868
+ const [M = "Any", S = "Any"] = B;
29869
+ M === "Mixin" && e.contentType === S && (b[L] = k), (e.stickType === M || M === "Any") && (e.contentType === S || S === "Any") && (b[L] = k);
29861
29870
  }
29862
29871
  if (B.length === 3) {
29863
- const [E = "Any", S, T] = B;
29872
+ const [M = "Any", S, T] = B;
29864
29873
  if (S === "Audio" && e.contentType === "Audio") {
29865
29874
  const N = e;
29866
- (N.stickType === E || E === "Any") && N.data.appearance === T && (b[L] = k);
29875
+ (N.stickType === M || M === "Any") && N.data.appearance === T && (b[L] = k);
29867
29876
  }
29868
29877
  }
29869
29878
  }
29870
29879
  });
29871
29880
  const l = (w = e.initialConfig) != null ? w : {}, c = et({}, V1, this.config.globalConfig, ...Object.values(o)), h = et({}, c, l), u = {}, f = Object.values(Vt.Mode);
29872
- rl(r).forEach(([M, k]) => {
29881
+ rl(r).forEach(([E, k]) => {
29873
29882
  f.forEach((L) => {
29874
- (M === "PanoramaLike" && Jn(L) || M === "ModelLike" && Ai(L)) && (u[L] = et({}, c, ...Object.values(k), l, { _isMerged: !0 }));
29883
+ (E === "PanoramaLike" && Jn(L) || E === "ModelLike" && Ai(L)) && (u[L] = et({}, c, ...Object.values(k), l, { _isMerged: !0 }));
29875
29884
  });
29876
- }), rl(a).forEach(([M, k]) => {
29877
- const L = u[M];
29878
- u[M] = et({}, c, L, ...Object.values(k), l, { _isMerged: !0 });
29885
+ }), rl(a).forEach(([E, k]) => {
29886
+ const L = u[E];
29887
+ u[E] = et({}, c, L, ...Object.values(k), l, { _isMerged: !0 });
29879
29888
  });
29880
29889
  const m = ce(V({}, h), { configWithFiveMode: u });
29881
- return al(m), Object.values(u).forEach((M) => al(M)), m._isMerged = !0, m;
29890
+ return al(m), Object.values(u).forEach((E) => al(E)), m._isMerged = !0, m;
29882
29891
  }
29883
29892
  }
29884
29893
  class T8 extends D8 {
@@ -29995,35 +30004,35 @@ function fc(n, t, e) {
29995
30004
  return n.config;
29996
30005
  }
29997
30006
  const s = {}, o = {}, r = {};
29998
- t.contentTypeConfig && Object.entries(t.contentTypeConfig).forEach(([w, M]) => {
30007
+ t.contentTypeConfig && Object.entries(t.contentTypeConfig).forEach(([w, E]) => {
29999
30008
  var b, C;
30000
30009
  const k = w, L = k.split("-"), D = w.startsWith("["), j = D ? L[0].slice(1, -1) : void 0, z = D ? L.slice(1) : L, B = j ? ["PanoramaLike", "ModelLike"].includes(j) ? (b = o[j]) != null ? b : o[j] = {} : (C = r[j]) != null ? C : r[j] = {} : s;
30001
30010
  if (!B[k]) {
30002
- if (z.length === 0 && (B[k] = M), z.length === 1) {
30011
+ if (z.length === 0 && (B[k] = E), z.length === 1) {
30003
30012
  const [I] = z;
30004
- (n.contentType === I || I === "Any") && (B[k] = M);
30013
+ (n.contentType === I || I === "Any") && (B[k] = E);
30005
30014
  }
30006
30015
  if (z.length === 2) {
30007
- const [I = "Any", E = "Any"] = z;
30008
- I === "Mixin" && n.contentType === E && (B[k] = M), (n.stickType === I || I === "Any") && (n.contentType === E || E === "Any") && (B[k] = M);
30016
+ const [I = "Any", M = "Any"] = z;
30017
+ I === "Mixin" && n.contentType === M && (B[k] = E), (n.stickType === I || I === "Any") && (n.contentType === M || M === "Any") && (B[k] = E);
30009
30018
  }
30010
30019
  if (z.length === 3) {
30011
- const [I = "Any", E, S] = z;
30012
- if (E === "Audio" && n.contentType === "Audio") {
30020
+ const [I = "Any", M, S] = z;
30021
+ if (M === "Audio" && n.contentType === "Audio") {
30013
30022
  const T = n;
30014
- (T.stickType === I || I === "Any") && T.data.appearance === S && (B[k] = M);
30023
+ (T.stickType === I || I === "Any") && T.data.appearance === S && (B[k] = E);
30015
30024
  }
30016
30025
  }
30017
30026
  }
30018
30027
  });
30019
30028
  const a = (A = n.initialConfig) != null ? A : {}, l = et({}, V1, t.globalConfig, ...Object.values(s)), c = et({}, l, a), h = {}, u = Object.values(Vt.Mode);
30020
- rl(o).forEach(([w, M]) => {
30029
+ rl(o).forEach(([w, E]) => {
30021
30030
  u.forEach((k) => {
30022
- (w === "PanoramaLike" && Jn(k) || w === "ModelLike" && Ai(k)) && (h[k] = et({}, l, ...Object.values(M), a, { _isMerged: !0 }));
30031
+ (w === "PanoramaLike" && Jn(k) || w === "ModelLike" && Ai(k)) && (h[k] = et({}, l, ...Object.values(E), a, { _isMerged: !0 }));
30023
30032
  });
30024
- }), rl(r).forEach(([w, M]) => {
30033
+ }), rl(r).forEach(([w, E]) => {
30025
30034
  const k = h[w];
30026
- h[w] = et({}, l, k, ...Object.values(M), a, { _isMerged: !0 });
30035
+ h[w] = et({}, l, k, ...Object.values(E), a, { _isMerged: !0 });
30027
30036
  });
30028
30037
  const f = ce(V({}, c), { configWithFiveMode: h });
30029
30038
  return al(f), Object.values(h).forEach((w) => al(w)), f._isMerged = !0, f;
@@ -30824,8 +30833,8 @@ class W1 extends yn {
30824
30833
  this.domWidthPx = u, this.domHeightPx = f, i.classList.add(`${Pp}__container`);
30825
30834
  const g = new Ae().subVectors(s[1], s[0]), v = new Ae().subVectors(s[3], s[0]), A = new Ae().crossVectors(g, v).normalize();
30826
30835
  this.lookAt(A);
30827
- const w = this.up.clone().applyQuaternion(this.quaternion), M = v.clone(), k = new Ae().crossVectors(w, M).normalize();
30828
- this.rotateOnWorldAxis(k, w.angleTo(M)), this.position.copy(m), this._opacityMesh = new Wm(u, f), this._opacityMesh.visible = e.mode === "behind", this.add(this._opacityMesh);
30836
+ const w = this.up.clone().applyQuaternion(this.quaternion), E = v.clone(), k = new Ae().crossVectors(w, E).normalize();
30837
+ this.rotateOnWorldAxis(k, w.angleTo(E)), this.position.copy(m), this._opacityMesh = new Wm(u, f), this._opacityMesh.visible = e.mode === "behind", this.add(this._opacityMesh);
30829
30838
  }
30830
30839
  get mode() {
30831
30840
  return this._mode;
@@ -31477,7 +31486,7 @@ function K8(n, t, e) {
31477
31486
  }
31478
31487
  clearTimeout(m), m = setTimeout(A, D ? s : o);
31479
31488
  }
31480
- function M(D) {
31489
+ function E(D) {
31481
31490
  const j = function() {
31482
31491
  const z = g8((B) => D[B].getBoundingClientRect().x, [Math.min(D.length - 1, 10), Math.min(D.length - 1, 30)]);
31483
31492
  if (z > 0)
@@ -31512,7 +31521,7 @@ function K8(n, t, e) {
31512
31521
  n.$$.dirty & /*content*/
31513
31522
  1 && e(2, i = v(r)), n.$$.dirty & /*unfolded*/
31514
31523
  256 && w(a), n.$$.dirty & /*spanEleList*/
31515
- 2 && M(g.filter((D) => !!D));
31524
+ 2 && E(g.filter((D) => !!D));
31516
31525
  }, [
31517
31526
  r,
31518
31527
  g,
@@ -33596,8 +33605,8 @@ var ka = m9, ll = {}, v9 = {
33596
33605
  }
33597
33606
  };
33598
33607
  (function(n, t) {
33599
- var e = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, o = "[object Arguments]", r = "[object Array]", a = "[object Boolean]", l = "[object Date]", c = "[object Error]", h = "[object Function]", u = "[object GeneratorFunction]", f = "[object Map]", m = "[object Number]", p = "[object Object]", g = "[object Promise]", v = "[object RegExp]", A = "[object Set]", w = "[object String]", M = "[object Symbol]", k = "[object WeakMap]", L = "[object ArrayBuffer]", D = "[object DataView]", j = "[object Float32Array]", z = "[object Float64Array]", B = "[object Int8Array]", b = "[object Int16Array]", C = "[object Int32Array]", I = "[object Uint8Array]", E = "[object Uint8ClampedArray]", S = "[object Uint16Array]", T = "[object Uint32Array]", N = /[\\^$.*+?()[\]{}|]/g, _ = /\w*$/, q = /^\[object .+?Constructor\]$/, ee = /^(?:0|[1-9]\d*)$/, K = {};
33600
- K[o] = K[r] = K[L] = K[D] = K[a] = K[l] = K[j] = K[z] = K[B] = K[b] = K[C] = K[f] = K[m] = K[p] = K[v] = K[A] = K[w] = K[M] = K[I] = K[E] = K[S] = K[T] = !0, K[c] = K[h] = K[k] = !1;
33608
+ var e = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, o = "[object Arguments]", r = "[object Array]", a = "[object Boolean]", l = "[object Date]", c = "[object Error]", h = "[object Function]", u = "[object GeneratorFunction]", f = "[object Map]", m = "[object Number]", p = "[object Object]", g = "[object Promise]", v = "[object RegExp]", A = "[object Set]", w = "[object String]", E = "[object Symbol]", k = "[object WeakMap]", L = "[object ArrayBuffer]", D = "[object DataView]", j = "[object Float32Array]", z = "[object Float64Array]", B = "[object Int8Array]", b = "[object Int16Array]", C = "[object Int32Array]", I = "[object Uint8Array]", M = "[object Uint8ClampedArray]", S = "[object Uint16Array]", T = "[object Uint32Array]", N = /[\\^$.*+?()[\]{}|]/g, _ = /\w*$/, q = /^\[object .+?Constructor\]$/, ee = /^(?:0|[1-9]\d*)$/, K = {};
33609
+ K[o] = K[r] = K[L] = K[D] = K[a] = K[l] = K[j] = K[z] = K[B] = K[b] = K[C] = K[f] = K[m] = K[p] = K[v] = K[A] = K[w] = K[E] = K[I] = K[M] = K[S] = K[T] = !0, K[c] = K[h] = K[k] = !1;
33601
33610
  var se = typeof ki == "object" && ki && ki.Object === Object && ki, te = typeof self == "object" && self && self.Object === Object && self, le = se || te || Function("return this")(), Se = t && !t.nodeType && t, ue = Se && !0 && n && !n.nodeType && n, Te = ue && ue.exports === Se;
33602
33611
  function fe(x, H) {
33603
33612
  return x.set(H[0], H[1]), x;
@@ -33953,7 +33962,7 @@ var ka = m9, ll = {}, v9 = {
33953
33962
  case b:
33954
33963
  case C:
33955
33964
  case I:
33956
- case E:
33965
+ case M:
33957
33966
  case S:
33958
33967
  case T:
33959
33968
  return $s(x, re);
@@ -33966,7 +33975,7 @@ var ka = m9, ll = {}, v9 = {
33966
33975
  return cn(x);
33967
33976
  case A:
33968
33977
  return mi(x, re, J);
33969
- case M:
33978
+ case E:
33970
33979
  return $o(x);
33971
33980
  }
33972
33981
  }
@@ -34049,8 +34058,8 @@ var cl = {}, b9 = {
34049
34058
  }
34050
34059
  };
34051
34060
  (function(n, t) {
34052
- var e = 200, i = "__lodash_hash_undefined__", s = 1, o = 2, r = 9007199254740991, a = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", h = "[object Boolean]", u = "[object Date]", f = "[object Error]", m = "[object Function]", p = "[object GeneratorFunction]", g = "[object Map]", v = "[object Number]", A = "[object Null]", w = "[object Object]", M = "[object Promise]", k = "[object Proxy]", L = "[object RegExp]", D = "[object Set]", j = "[object String]", z = "[object Symbol]", B = "[object Undefined]", b = "[object WeakMap]", C = "[object ArrayBuffer]", I = "[object DataView]", E = "[object Float32Array]", S = "[object Float64Array]", T = "[object Int8Array]", N = "[object Int16Array]", _ = "[object Int32Array]", q = "[object Uint8Array]", ee = "[object Uint8ClampedArray]", K = "[object Uint16Array]", se = "[object Uint32Array]", te = /[\\^$.*+?()[\]{}|]/g, le = /^\[object .+?Constructor\]$/, Se = /^(?:0|[1-9]\d*)$/, ue = {};
34053
- ue[E] = ue[S] = ue[T] = ue[N] = ue[_] = ue[q] = ue[ee] = ue[K] = ue[se] = !0, ue[a] = ue[l] = ue[C] = ue[h] = ue[I] = ue[u] = ue[f] = ue[m] = ue[g] = ue[v] = ue[w] = ue[L] = ue[D] = ue[j] = ue[b] = !1;
34061
+ var e = 200, i = "__lodash_hash_undefined__", s = 1, o = 2, r = 9007199254740991, a = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", h = "[object Boolean]", u = "[object Date]", f = "[object Error]", m = "[object Function]", p = "[object GeneratorFunction]", g = "[object Map]", v = "[object Number]", A = "[object Null]", w = "[object Object]", E = "[object Promise]", k = "[object Proxy]", L = "[object RegExp]", D = "[object Set]", j = "[object String]", z = "[object Symbol]", B = "[object Undefined]", b = "[object WeakMap]", C = "[object ArrayBuffer]", I = "[object DataView]", M = "[object Float32Array]", S = "[object Float64Array]", T = "[object Int8Array]", N = "[object Int16Array]", _ = "[object Int32Array]", q = "[object Uint8Array]", ee = "[object Uint8ClampedArray]", K = "[object Uint16Array]", se = "[object Uint32Array]", te = /[\\^$.*+?()[\]{}|]/g, le = /^\[object .+?Constructor\]$/, Se = /^(?:0|[1-9]\d*)$/, ue = {};
34062
+ ue[M] = ue[S] = ue[T] = ue[N] = ue[_] = ue[q] = ue[ee] = ue[K] = ue[se] = !0, ue[a] = ue[l] = ue[C] = ue[h] = ue[I] = ue[u] = ue[f] = ue[m] = ue[g] = ue[v] = ue[w] = ue[L] = ue[D] = ue[j] = ue[b] = !1;
34054
34063
  var Te = typeof ki == "object" && ki && ki.Object === Object && ki, fe = typeof self == "object" && self && self.Object === Object && self, he = Te || fe || Function("return this")(), Le = t && !t.nodeType && t, $ = Le && !0 && n && !n.nodeType && n, Me = $ && $.exports === Le, Re = Me && Te.process, ve = function() {
34055
34064
  try {
34056
34065
  return Re && Re.binding && Re.binding("util");
@@ -34434,7 +34443,7 @@ var cl = {}, b9 = {
34434
34443
  return Sn.call(x, H);
34435
34444
  }));
34436
34445
  } : Fl, Oe = Oi;
34437
- (nn && Oe(new nn(new ArrayBuffer(1))) != I || sn && Oe(new sn()) != g || gs && Oe(gs.resolve()) != M || ms && Oe(new ms()) != D || Ln && Oe(new Ln()) != b) && (Oe = function(x) {
34446
+ (nn && Oe(new nn(new ArrayBuffer(1))) != I || sn && Oe(new sn()) != g || gs && Oe(gs.resolve()) != E || ms && Oe(new ms()) != D || Ln && Oe(new Ln()) != b) && (Oe = function(x) {
34438
34447
  var H = Oi(x), J = H == w ? x.constructor : void 0, re = J ? ti(J) : "";
34439
34448
  if (re)
34440
34449
  switch (re) {
@@ -34443,7 +34452,7 @@ var cl = {}, b9 = {
34443
34452
  case Li:
34444
34453
  return g;
34445
34454
  case zn:
34446
- return M;
34455
+ return E;
34447
34456
  case Yo:
34448
34457
  return D;
34449
34458
  case Zo:
@@ -34577,19 +34586,19 @@ function M9(n, t) {
34577
34586
  let p = !1;
34578
34587
  const g = (A) => (...w) => {
34579
34588
  p = !0;
34580
- const M = A(...w);
34581
- return p = !1, M;
34589
+ const E = A(...w);
34590
+ return p = !1, E;
34582
34591
  };
34583
34592
  Object.entries(s).forEach(([A, w]) => {
34584
34593
  f[A] = g(
34585
- (...M) => w(m(), ...M)
34594
+ (...E) => w(m(), ...E)
34586
34595
  ), Object.defineProperty(f[A], "name", { value: A });
34587
34596
  }), u = new Proxy(A9(e), {
34588
34597
  get(A, w) {
34589
34598
  return h() && !p && r(h(), { prop: w, value: A[w] }), Reflect.get(...arguments);
34590
34599
  },
34591
- set(A, w, M) {
34592
- return A[w] === M || (Reflect.set(...arguments), h() || (o && o(w, M), a(u, w))), !0;
34600
+ set(A, w, E) {
34601
+ return A[w] === E || (Reflect.set(...arguments), h() || (o && o(w, E), a(u, w))), !0;
34593
34602
  }
34594
34603
  }), Object.entries(i).forEach(([A, w]) => {
34595
34604
  c(A, () => {
@@ -35342,8 +35351,8 @@ function F9(n) {
35342
35351
  n[0]
35343
35352
  ), y(s, "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");
35344
35353
  },
35345
- m(M, k) {
35346
- Y(M, t, k), R(t, e), m && m.m(e, null), R(e, i), R(e, s), R(s, o), g && g.m(o, null), n[39](o), R(s, a), v && v.m(s, null), n[40](s), R(e, l), A && A.m(e, null), R(t, c), w && w.m(t, null), h = !0, u || (f = [
35354
+ m(E, k) {
35355
+ Y(E, t, k), R(t, e), m && m.m(e, null), R(e, i), R(e, s), R(s, o), g && g.m(o, null), n[39](o), R(s, a), v && v.m(s, null), n[40](s), R(e, l), A && A.m(e, null), R(t, c), w && w.m(t, null), h = !0, u || (f = [
35347
35356
  Si(r = $I.call(null, o, {
35348
35357
  thresholdProvider: (
35349
35358
  /*swipeable_function*/
@@ -35396,72 +35405,72 @@ function F9(n) {
35396
35405
  )
35397
35406
  ], u = !0);
35398
35407
  },
35399
- p(M, k) {
35408
+ p(E, k) {
35400
35409
  /*arrows*/
35401
- M[1] ? m ? (m.p(M, k), k[0] & /*arrows*/
35402
- 2 && F(m, 1)) : (m = $p(M), m.c(), F(m, 1), m.m(e, i)) : m && (ke(), X(m, 1, 1, () => {
35410
+ E[1] ? m ? (m.p(E, k), k[0] & /*arrows*/
35411
+ 2 && F(m, 1)) : (m = $p(E), m.c(), F(m, 1), m.m(e, i)) : m && (ke(), X(m, 1, 1, () => {
35403
35412
  m = null;
35404
35413
  }), xe()), g && g.p && (!h || k[0] & /*loaded, currentPageIndex*/
35405
35414
  96 | k[1] & /*$$scope*/
35406
35415
  32) && ns(
35407
35416
  g,
35408
35417
  p,
35409
- M,
35418
+ E,
35410
35419
  /*$$scope*/
35411
- M[36],
35420
+ E[36],
35412
35421
  h ? is(
35413
35422
  p,
35414
35423
  /*$$scope*/
35415
- M[36],
35424
+ E[36],
35416
35425
  k,
35417
35426
  R9
35418
35427
  ) : ss(
35419
35428
  /*$$scope*/
35420
- M[36]
35429
+ E[36]
35421
35430
  ),
35422
35431
  Jp
35423
35432
  ), (!h || k[0] & /*offset*/
35424
35433
  256) && W(o, "transform", "translateX(" + /*offset*/
35425
- M[8] + "px)"), (!h || k[0] & /*durationMs*/
35434
+ E[8] + "px)"), (!h || k[0] & /*durationMs*/
35426
35435
  512) && W(
35427
35436
  o,
35428
35437
  "transition-duration",
35429
35438
  /*durationMs*/
35430
- M[9] + "ms"
35439
+ E[9] + "ms"
35431
35440
  ), (!h || k[0] & /*timingFunction*/
35432
35441
  1) && W(
35433
35442
  o,
35434
35443
  "transition-timing-function",
35435
35444
  /*timingFunction*/
35436
- M[0]
35445
+ E[0]
35437
35446
  ), r && ni(r.update) && k[0] & /*pageWindowWidth*/
35438
35447
  2048 && r.update.call(null, {
35439
35448
  thresholdProvider: (
35440
35449
  /*swipeable_function*/
35441
- M[38]
35450
+ E[38]
35442
35451
  )
35443
35452
  }), /*autoplayProgressVisible*/
35444
- M[3] ? v ? (v.p(M, k), k[0] & /*autoplayProgressVisible*/
35445
- 8 && F(v, 1)) : (v = eg(M), v.c(), F(v, 1), v.m(s, null)) : v && (ke(), X(v, 1, 1, () => {
35453
+ E[3] ? v ? (v.p(E, k), k[0] & /*autoplayProgressVisible*/
35454
+ 8 && F(v, 1)) : (v = eg(E), v.c(), F(v, 1), v.m(s, null)) : v && (ke(), X(v, 1, 1, () => {
35446
35455
  v = null;
35447
35456
  }), xe()), /*arrows*/
35448
- M[1] ? A ? (A.p(M, k), k[0] & /*arrows*/
35449
- 2 && F(A, 1)) : (A = tg(M), A.c(), F(A, 1), A.m(e, null)) : A && (ke(), X(A, 1, 1, () => {
35457
+ E[1] ? A ? (A.p(E, k), k[0] & /*arrows*/
35458
+ 2 && F(A, 1)) : (A = tg(E), A.c(), F(A, 1), A.m(e, null)) : A && (ke(), X(A, 1, 1, () => {
35450
35459
  A = null;
35451
35460
  }), xe()), /*dots*/
35452
- M[4] ? w ? (w.p(M, k), k[0] & /*dots*/
35453
- 16 && F(w, 1)) : (w = ig(M), w.c(), F(w, 1), w.m(t, null)) : w && (ke(), X(w, 1, 1, () => {
35461
+ E[4] ? w ? (w.p(E, k), k[0] & /*dots*/
35462
+ 16 && F(w, 1)) : (w = ig(E), w.c(), F(w, 1), w.m(t, null)) : w && (ke(), X(w, 1, 1, () => {
35454
35463
  w = null;
35455
35464
  }), xe());
35456
35465
  },
35457
- i(M) {
35458
- h || (F(m), F(g, M), F(v), F(A), F(w), h = !0);
35466
+ i(E) {
35467
+ h || (F(m), F(g, E), F(v), F(A), F(w), h = !0);
35459
35468
  },
35460
- o(M) {
35461
- X(m), X(g, M), X(v), X(A), X(w), h = !1;
35469
+ o(E) {
35470
+ X(m), X(g, E), X(v), X(A), X(w), h = !1;
35462
35471
  },
35463
- d(M) {
35464
- M && Q(t), m && m.d(), g && g.d(M), n[39](null), v && v.d(), n[40](null), A && A.d(), w && w.d(), u = !1, pt(f);
35472
+ d(E) {
35473
+ E && Q(t), m && m.d(), g && g.d(E), n[39](null), v && v.d(), n[40](null), A && A.d(), w && w.d(), u = !1, pt(f);
35465
35474
  }
35466
35475
  };
35467
35476
  }
@@ -35477,7 +35486,7 @@ function N9(n, t, e) {
35477
35486
  loaded: () => e(6, o = ye)
35478
35487
  })(de);
35479
35488
  }), g = cs();
35480
- let { timingFunction: v = "ease-in-out" } = t, { arrows: A = !0 } = t, { infinite: w = !0 } = t, { initialPageIndex: M = 0 } = t, { duration: k = 500 } = t, { autoplay: L = !1 } = t, { autoplayDuration: D = 3e3 } = t, { autoplayDirection: j = as } = t, { pauseOnFocus: z = !1 } = t, { autoplayProgressVisible: B = !1 } = t, { dots: b = !0 } = t, { swiping: C = !0 } = t, { particlesToShow: I = 1 } = t, { particlesToScroll: E = 1 } = t;
35489
+ let { timingFunction: v = "ease-in-out" } = t, { arrows: A = !0 } = t, { infinite: w = !0 } = t, { initialPageIndex: E = 0 } = t, { duration: k = 500 } = t, { autoplay: L = !1 } = t, { autoplayDuration: D = 3e3 } = t, { autoplayDirection: j = as } = t, { pauseOnFocus: z = !1 } = t, { autoplayProgressVisible: B = !1 } = t, { dots: b = !0 } = t, { swiping: C = !0 } = t, { particlesToShow: I = 1 } = t, { particlesToScroll: M = 1 } = t;
35481
35490
  function S(de, ye) {
35482
35491
  return ie(this, null, function* () {
35483
35492
  const ze = Ir(ye, "animated", !0);
@@ -35519,7 +35528,7 @@ function N9(n, t, e) {
35519
35528
  }
35520
35529
  Lt(() => {
35521
35530
  ie(this, null, function* () {
35522
- yield pd(), ee && q && (u.particlesCountWithoutClones = ee.children.length, yield pd(), u.infinite && se(), u.particlesCount = ee.children.length, m.showPage(M, { animated: !1 }), K.observe(q));
35531
+ yield pd(), ee && q && (u.particlesCountWithoutClones = ee.children.length, yield pd(), u.infinite && se(), u.particlesCount = ee.children.length, m.showPage(E, { animated: !1 }), K.observe(q));
35523
35532
  });
35524
35533
  }), ri(() => {
35525
35534
  K.disconnect(), f.reset();
@@ -35573,7 +35582,7 @@ function N9(n, t, e) {
35573
35582
  }
35574
35583
  const Be = (de) => te(de.detail);
35575
35584
  return n.$$set = (de) => {
35576
- "timingFunction" in de && e(0, v = de.timingFunction), "arrows" in de && e(1, A = de.arrows), "infinite" in de && e(2, w = de.infinite), "initialPageIndex" in de && e(24, M = de.initialPageIndex), "duration" in de && e(25, k = de.duration), "autoplay" in de && e(26, L = de.autoplay), "autoplayDuration" in de && e(27, D = de.autoplayDuration), "autoplayDirection" in de && e(28, j = de.autoplayDirection), "pauseOnFocus" in de && e(29, z = de.pauseOnFocus), "autoplayProgressVisible" in de && e(3, B = de.autoplayProgressVisible), "dots" in de && e(4, b = de.dots), "swiping" in de && e(30, C = de.swiping), "particlesToShow" in de && e(31, I = de.particlesToShow), "particlesToScroll" in de && e(32, E = de.particlesToScroll), "$$scope" in de && e(36, s = de.$$scope);
35585
+ "timingFunction" in de && e(0, v = de.timingFunction), "arrows" in de && e(1, A = de.arrows), "infinite" in de && e(2, w = de.infinite), "initialPageIndex" in de && e(24, E = de.initialPageIndex), "duration" in de && e(25, k = de.duration), "autoplay" in de && e(26, L = de.autoplay), "autoplayDuration" in de && e(27, D = de.autoplayDuration), "autoplayDirection" in de && e(28, j = de.autoplayDirection), "pauseOnFocus" in de && e(29, z = de.pauseOnFocus), "autoplayProgressVisible" in de && e(3, B = de.autoplayProgressVisible), "dots" in de && e(4, b = de.dots), "swiping" in de && e(30, C = de.swiping), "particlesToShow" in de && e(31, I = de.particlesToShow), "particlesToScroll" in de && e(32, M = de.particlesToScroll), "$$scope" in de && e(36, s = de.$$scope);
35577
35586
  }, n.$$.update = () => {
35578
35587
  n.$$.dirty[0] & /*currentPageIndex*/
35579
35588
  32 && g("pageChange", r), n.$$.dirty[0] & /*infinite*/
@@ -35584,7 +35593,7 @@ function N9(n, t, e) {
35584
35593
  268435456 && (u.autoplayDirection = j), n.$$.dirty[0] & /*pauseOnFocus*/
35585
35594
  536870912 && (u.pauseOnFocus = z), n.$$.dirty[1] & /*particlesToShow*/
35586
35595
  1 && (u.particlesToShowInit = I), n.$$.dirty[1] & /*particlesToScroll*/
35587
- 2 && (u.particlesToScrollInit = E);
35596
+ 2 && (u.particlesToScrollInit = M);
35588
35597
  }, [
35589
35598
  v,
35590
35599
  A,
@@ -35610,7 +35619,7 @@ function N9(n, t, e) {
35610
35619
  he,
35611
35620
  Le,
35612
35621
  $,
35613
- M,
35622
+ E,
35614
35623
  k,
35615
35624
  L,
35616
35625
  D,
@@ -35618,7 +35627,7 @@ function N9(n, t, e) {
35618
35627
  z,
35619
35628
  C,
35620
35629
  I,
35621
- E,
35630
+ M,
35622
35631
  S,
35623
35632
  T,
35624
35633
  N,
@@ -35971,10 +35980,10 @@ function q9(n, t, e) {
35971
35980
  function v() {
35972
35981
  e(9, g = (a == null ? void 0 : a.type) === "Video" && !!a.videoCoverUrl);
35973
35982
  }
35974
- const A = en("mediaStore"), w = en("hooks"), M = () => {
35983
+ const A = en("mediaStore"), w = en("hooks"), E = () => {
35975
35984
  g || i && (e(10, i.muted = !0, i), i.play(), i.pause(), e(10, i.muted = !1, i), e(9, g = !0));
35976
35985
  };
35977
- w.on("loadVideoFirstFrame", M), Lt(() => {
35986
+ w.on("loadVideoFirstFrame", E), Lt(() => {
35978
35987
  A.subscribe(({ currentMediaElement: I }) => {
35979
35988
  I !== i && (i == null || i.pause());
35980
35989
  });
@@ -36028,7 +36037,7 @@ function q9(n, t, e) {
36028
36037
  1024 && i && e(11, p = i.paused), n.$$.dirty & /*media, videoPosterLoaded, videoInstance*/
36029
36038
  1540 && (a == null ? void 0 : a.type) === "Video" && !g) {
36030
36039
  const I = navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1, S = navigator.userAgent.toLowerCase().indexOf("iphone") !== -1 && I;
36031
- i && S && i.paused && (document.removeEventListener("WeixinJSBridgeReady", M), document.removeEventListener("touchstart", M), document.removeEventListener("click", M), document.addEventListener("WeixinJSBridgeReady", M), document.addEventListener("touchstart", M), document.addEventListener("click", M));
36040
+ i && S && i.paused && (document.removeEventListener("WeixinJSBridgeReady", E), document.removeEventListener("touchstart", E), document.removeEventListener("click", E), document.addEventListener("WeixinJSBridgeReady", E), document.addEventListener("touchstart", E), document.addEventListener("click", E));
36032
36041
  }
36033
36042
  }, [
36034
36043
  o,
@@ -36451,7 +36460,7 @@ function tM(n) {
36451
36460
  }
36452
36461
  function iM(n, t, e) {
36453
36462
  let i, s, o, r, { tag: a } = t, { mediaData: l } = t, { inDelay: c = 0 } = t, { outDelay: h = 0 } = t, { duration: u = 0 } = t, { unfolded: f = !0 } = t, { animation: m = !0 } = t, { mediaItemConfig: p } = t, { enableCarousel: g = !0 } = t, { autoplayConfig: v = {} } = t;
36454
- const { autoplayVideo: A = !1, autoplayCarousel: w = !0, autoplayVideoInCarousel: M = !1 } = v;
36463
+ const { autoplayVideo: A = !1, autoplayCarousel: w = !0, autoplayVideoInCarousel: E = !1 } = v;
36455
36464
  let k = [], L = 0, D, j = null;
36456
36465
  const z = en("hooks"), B = en("mediaStore");
36457
36466
  function b() {
@@ -36493,7 +36502,7 @@ function iM(n, t, e) {
36493
36502
  D = T, e(12, D);
36494
36503
  });
36495
36504
  }
36496
- const E = (T) => {
36505
+ const M = (T) => {
36497
36506
  i || B.set({ currentMediaElement: null }), e(11, L = T.detail);
36498
36507
  };
36499
36508
  function S(T) {
@@ -36528,7 +36537,7 @@ function iM(n, t, e) {
36528
36537
  v,
36529
36538
  C,
36530
36539
  I,
36531
- E,
36540
+ M,
36532
36541
  S
36533
36542
  ];
36534
36543
  }
@@ -37035,14 +37044,14 @@ function lM(n) {
37035
37044
  ), w = (
37036
37045
  /*hasTags*/
37037
37046
  n[6] && fg(n)
37038
- ), M = (
37047
+ ), E = (
37039
37048
  /*havePrice*/
37040
37049
  (n[2] || /*data*/
37041
37050
  n[1].highlightText) && mg(n)
37042
37051
  );
37043
37052
  return {
37044
37053
  c() {
37045
- t = U("div"), me(e.$$.fragment), i = ae(), s = U("div"), o = ae(), r = U("div"), A && A.c(), a = ae(), l = U("div"), c = U("div"), h = U("div"), f = _e(u), m = ae(), w && w.c(), p = ae(), M && M.c(), y(s, "class", "line svelte-1707m54"), W(
37054
+ t = U("div"), me(e.$$.fragment), i = ae(), s = U("div"), o = ae(), r = U("div"), A && A.c(), a = ae(), l = U("div"), c = U("div"), h = U("div"), f = _e(u), m = ae(), w && w.c(), p = ae(), E && E.c(), y(s, "class", "line svelte-1707m54"), W(
37046
37055
  s,
37047
37056
  "transition-delay",
37048
37057
  /*unfolded*/
@@ -37078,7 +37087,7 @@ function lM(n) {
37078
37087
  );
37079
37088
  },
37080
37089
  m(k, L) {
37081
- Y(k, t, L), pe(e, t, null), R(t, i), R(t, s), R(t, o), R(t, r), A && A.m(r, null), R(r, a), R(r, l), R(l, c), R(c, h), R(h, f), R(r, m), w && w.m(r, null), R(r, p), M && M.m(r, null), v = !0;
37090
+ Y(k, t, L), pe(e, t, null), R(t, i), R(t, s), R(t, o), R(t, r), A && A.m(r, null), R(r, a), R(r, l), R(l, c), R(c, h), R(h, f), R(r, m), w && w.m(r, null), R(r, p), E && E.m(r, null), v = !0;
37082
37091
  },
37083
37092
  p(k, [L]) {
37084
37093
  const D = {};
@@ -37102,7 +37111,7 @@ function lM(n) {
37102
37111
  k[1].title + "") && Ne(f, u), /*hasTags*/
37103
37112
  k[6] ? w ? w.p(k, L) : (w = fg(k), w.c(), w.m(r, p)) : w && (w.d(1), w = null), /*havePrice*/
37104
37113
  k[2] || /*data*/
37105
- k[1].highlightText ? M ? M.p(k, L) : (M = mg(k), M.c(), M.m(r, null)) : M && (M.d(1), M = null), L & /*unfolded, contentDelayUnfolded*/
37114
+ k[1].highlightText ? E ? E.p(k, L) : (E = mg(k), E.c(), E.m(r, null)) : E && (E.d(1), E = null), L & /*unfolded, contentDelayUnfolded*/
37106
37115
  160 && W(
37107
37116
  r,
37108
37117
  "transition-delay",
@@ -37134,7 +37143,7 @@ function lM(n) {
37134
37143
  X(e.$$.fragment, k), v = !1;
37135
37144
  },
37136
37145
  d(k) {
37137
- k && Q(t), ge(e), A && A.d(), w && w.d(), M && M.d();
37146
+ k && Q(t), ge(e), A && A.d(), w && w.d(), E && E.d();
37138
37147
  }
37139
37148
  };
37140
37149
  }
@@ -37147,11 +37156,11 @@ function cM(n, t, e) {
37147
37156
  return D;
37148
37157
  if (D === !0)
37149
37158
  return 172;
37150
- })(), w = 0, M = !1;
37159
+ })(), w = 0, E = !1;
37151
37160
  function k(D) {
37152
37161
  Math.abs(v - D) > 5 && (e(14, v = D), setTimeout(
37153
37162
  () => {
37154
- e(16, M = !1);
37163
+ e(16, E = !1);
37155
37164
  },
37156
37165
  100
37157
37166
  ));
@@ -37167,7 +37176,7 @@ function cM(n, t, e) {
37167
37176
  1 && e(1, o = g.data), n.$$.dirty & /*data*/
37168
37177
  2 && e(2, r = Fe((z = o.price) == null ? void 0 : z.value) && ((B = o.price) == null ? void 0 : B.value) !== ""), n.$$.dirty & /*tag*/
37169
37178
  1 && e(10, a = g.data.theme || "light"), n.$$.dirty & /*tagsCalculated, tagsOffsetHeight, maxTagsLength*/
37170
- 114688 && (!M || A && A > 0) && (e(15, w = Math.max(1, Math.floor(((A || 172) - 20) / Eu))), v !== void 0 && v > 40 && e(15, w = Math.max(1, w - 1)), e(16, M = !0)), n.$$.dirty & /*data, maxTagsLength*/
37179
+ 114688 && (!E || A && A > 0) && (e(15, w = Math.max(1, Math.floor(((A || 172) - 20) / Eu))), v !== void 0 && v > 40 && e(15, w = Math.max(1, w - 1)), e(16, E = !0)), n.$$.dirty & /*data, maxTagsLength*/
37171
37180
  32770 && e(4, l = (o.brandTags || []).filter(Boolean).slice(0, w)), n.$$.dirty & /*maxTagsLength, primaryTags*/
37172
37181
  32784 && e(17, c = Math.max(0, w - l.length)), n.$$.dirty & /*data, secondaryTagsLimit*/
37173
37182
  131074 && e(3, h = (o.tags || []).filter(Boolean).slice(0, c)), n.$$.dirty & /*primaryTags, secondaryTags*/
@@ -37190,7 +37199,7 @@ function cM(n, t, e) {
37190
37199
  k,
37191
37200
  v,
37192
37201
  w,
37193
- M,
37202
+ E,
37194
37203
  c,
37195
37204
  L
37196
37205
  ];
@@ -37889,8 +37898,8 @@ function Pg(n) {
37889
37898
  n[6]
37890
37899
  );
37891
37900
  },
37892
- m(w, M) {
37893
- Y(w, t, M), pe(e, t, null), R(t, i), R(t, s), R(s, o), R(o, r), g && g.m(r, null), R(o, a), R(o, l), pe(c, l, null), R(t, h), pe(u, t, null), f = !0, m || (p = [
37901
+ m(w, E) {
37902
+ Y(w, t, E), pe(e, t, null), R(t, i), R(t, s), R(s, o), R(o, r), g && g.m(r, null), R(o, a), R(o, l), pe(c, l, null), R(t, h), pe(u, t, null), f = !0, m || (p = [
37894
37903
  je(
37895
37904
  l,
37896
37905
  "click",
@@ -37906,38 +37915,38 @@ function Pg(n) {
37906
37915
  )
37907
37916
  ], m = !0);
37908
37917
  },
37909
- p(w, M) {
37918
+ p(w, E) {
37910
37919
  var j, z;
37911
37920
  const k = {};
37912
- M & /*unfolded*/
37921
+ E & /*unfolded*/
37913
37922
  64 && (k.visible = /*unfolded*/
37914
- w[6]), M & /*contentWidth*/
37923
+ w[6]), E & /*contentWidth*/
37915
37924
  8 && (k.left = /*contentWidth*/
37916
37925
  w[3] / 2 + "px"), e.$set(k), /*unfolded*/
37917
- w[6] ? g ? (g.p(w, M), M & /*unfolded*/
37926
+ w[6] ? g ? (g.p(w, E), E & /*unfolded*/
37918
37927
  64 && F(g, 1)) : (g = Cg(w), g.c(), F(g, 1), g.m(r, null)) : g && (ke(), X(g, 1, 1, () => {
37919
37928
  g = null;
37920
37929
  }), xe());
37921
37930
  const L = {};
37922
- M & /*unfolded*/
37931
+ E & /*unfolded*/
37923
37932
  64 && (L.visible = /*unfolded*/
37924
- w[6]), M & /*textUnfolded*/
37933
+ w[6]), E & /*textUnfolded*/
37925
37934
  2 && (L.textUnfolded = /*textUnfolded*/
37926
- w[1]), M & /*content*/
37935
+ w[1]), E & /*content*/
37927
37936
  32 && (L.content = /*content*/
37928
37937
  w[5]), c.$set(L);
37929
37938
  const D = {};
37930
- M & /*unfolded*/
37939
+ E & /*unfolded*/
37931
37940
  64 && (D.unfolded = /*unfolded*/
37932
- w[6]), M & /*contentWidth*/
37941
+ w[6]), E & /*contentWidth*/
37933
37942
  8 && (D.length = /*contentWidth*/
37934
- w[3]), M & /*foldTextDelay, content*/
37943
+ w[3]), E & /*foldTextDelay, content*/
37935
37944
  48 && (D.outDelay = /*foldTextDelay*/
37936
37945
  w[4] + 20 * Math.min(
37937
37946
  /*content*/
37938
37947
  (z = (j = w[5]) == null ? void 0 : j.length) != null ? z : 10,
37939
37948
  15
37940
- )), u.$set(D), (!f || M & /*unfolded*/
37949
+ )), u.$set(D), (!f || E & /*unfolded*/
37941
37950
  64) && Pe(
37942
37951
  t,
37943
37952
  "unfolded",
@@ -39118,7 +39127,7 @@ function qM(n, t, e) {
39118
39127
  return A("iconLoaded", D), D;
39119
39128
  });
39120
39129
  }
39121
- function M(L) {
39130
+ function E(L) {
39122
39131
  return ie(this, null, function* () {
39123
39132
  if (typeof m == "number")
39124
39133
  return ce(V({}, L), { width: m });
@@ -39168,7 +39177,7 @@ function qM(n, t, e) {
39168
39177
  o,
39169
39178
  s,
39170
39179
  w,
39171
- M,
39180
+ E,
39172
39181
  g
39173
39182
  ];
39174
39183
  }
@@ -39287,12 +39296,12 @@ function e7(n, t, e) {
39287
39296
  return n.$$set = (f) => {
39288
39297
  "tag" in f && e(4, h = f.tag);
39289
39298
  }, n.$$.update = () => {
39290
- var f, m, p, g, v, A, w, M;
39299
+ var f, m, p, g, v, A, w, E;
39291
39300
  n.$$.dirty & /*tag*/
39292
39301
  16 && e(2, s = (f = h.data.title) != null ? f : h.data.text), n.$$.dirty & /*tag*/
39293
39302
  16 && e(0, o = (p = h.data.icon) != null ? p : (m = h.style) == null ? void 0 : m.point), n.$$.dirty & /*tag*/
39294
39303
  16 && e(6, r = (v = (g = h.style) == null ? void 0 : g.point) == null ? void 0 : v.width), n.$$.dirty & /*tag*/
39295
- 16 && e(5, a = (M = (w = (A = h.style) == null ? void 0 : A.point) == null ? void 0 : w.scale) != null ? M : 1), n.$$.dirty & /*icon*/
39304
+ 16 && e(5, a = (E = (w = (A = h.style) == null ? void 0 : A.point) == null ? void 0 : w.scale) != null ? E : 1), n.$$.dirty & /*icon*/
39296
39305
  1 && e(7, l = o == null ? void 0 : o.bgcolor), n.$$.dirty & /*bgcolor, width, scale*/
39297
39306
  224 && e(1, c = l && r && typeof r == "number" ? Bi(r * 0.414 * a / 2 + $M) : 0);
39298
39307
  }, e(3, i = !1), [
@@ -39411,28 +39420,28 @@ function n7(n) {
39411
39420
  n[0]
39412
39421
  );
39413
39422
  },
39414
- m(w, M) {
39415
- Y(w, t, M), v && v.m(t, null), R(t, e), A && A.m(t, null), R(t, i), R(t, s), R(s, o), R(o, r), R(o, a), R(s, l), R(l, c), R(l, h), R(s, u), R(u, f), R(u, m), R(u, p), g = !0;
39423
+ m(w, E) {
39424
+ Y(w, t, E), v && v.m(t, null), R(t, e), A && A.m(t, null), R(t, i), R(t, s), R(s, o), R(o, r), R(o, a), R(s, l), R(l, c), R(l, h), R(s, u), R(u, f), R(u, m), R(u, p), g = !0;
39416
39425
  },
39417
- p(w, [M]) {
39426
+ p(w, [E]) {
39418
39427
  /*shadow*/
39419
- w[1] ? v ? M & /*shadow*/
39428
+ w[1] ? v ? E & /*shadow*/
39420
39429
  2 && F(v, 1) : (v = Lg(), v.c(), F(v, 1), v.m(t, e)) : v && (ke(), X(v, 1, 1, () => {
39421
39430
  v = null;
39422
39431
  }), xe()), /*bgcolor*/
39423
- w[4] ? A ? A.p(w, M) : (A = zg(w), A.c(), A.m(t, i)) : A && (A.d(1), A = null), (!g || M & /*finalWidth*/
39432
+ w[4] ? A ? A.p(w, E) : (A = zg(w), A.c(), A.m(t, i)) : A && (A.d(1), A = null), (!g || E & /*finalWidth*/
39424
39433
  4) && y(
39425
39434
  s,
39426
39435
  "height",
39427
39436
  /*finalWidth*/
39428
39437
  w[2]
39429
- ), (!g || M & /*finalWidth*/
39438
+ ), (!g || E & /*finalWidth*/
39430
39439
  4) && y(
39431
39440
  s,
39432
39441
  "width",
39433
39442
  /*finalWidth*/
39434
39443
  w[2]
39435
- ), M & /*width*/
39444
+ ), E & /*width*/
39436
39445
  1 && W(
39437
39446
  t,
39438
39447
  "width",
@@ -39645,7 +39654,7 @@ function A7(n) {
39645
39654
  P7,
39646
39655
  w7,
39647
39656
  y7
39648
- ], M = [];
39657
+ ], E = [];
39649
39658
  function k(L, D) {
39650
39659
  return D & /*tag, contentTypeMap*/
39651
39660
  9 && (s = null), D & /*tag, contentTypeMap*/
@@ -39719,7 +39728,7 @@ function A7(n) {
39719
39728
  )
39720
39729
  ))), h ? 6 : -1))))));
39721
39730
  }
39722
- return ~(u = k(n, -1)) && (f = M[u] = w[u](n)), {
39731
+ return ~(u = k(n, -1)) && (f = E[u] = w[u](n)), {
39723
39732
  c() {
39724
39733
  var L;
39725
39734
  t = U("div"), e = U("div"), i = U("div"), f && f.c(), y(i, "class", "content svelte-1fy4duy"), Pe(
@@ -39762,7 +39771,7 @@ function A7(n) {
39762
39771
  );
39763
39772
  },
39764
39773
  m(L, D) {
39765
- Y(L, t, D), R(t, e), R(e, i), ~u && M[u].m(i, null), n[16](t), g = !0, v || (A = je(
39774
+ Y(L, t, D), R(t, e), R(e, i), ~u && E[u].m(i, null), n[16](t), g = !0, v || (A = je(
39766
39775
  t,
39767
39776
  "click",
39768
39777
  /*click_handler_1*/
@@ -39773,9 +39782,9 @@ function A7(n) {
39773
39782
  p(L, D) {
39774
39783
  var z;
39775
39784
  let j = u;
39776
- u = k(L, D), u === j ? ~u && M[u].p(L, D) : (f && (ke(), X(M[j], 1, 1, () => {
39777
- M[j] = null;
39778
- }), xe()), ~u ? (f = M[u], f ? f.p(L, D) : (f = M[u] = w[u](L), f.c()), F(f, 1), f.m(i, null)) : f = null), (!g || D & /*tag*/
39785
+ u = k(L, D), u === j ? ~u && E[u].p(L, D) : (f && (ke(), X(E[j], 1, 1, () => {
39786
+ E[j] = null;
39787
+ }), xe()), ~u ? (f = E[u], f ? f.p(L, D) : (f = E[u] = w[u](L), f.c()), F(f, 1), f.m(i, null)) : f = null), (!g || D & /*tag*/
39779
39788
  1) && Pe(
39780
39789
  i,
39781
39790
  "unfolded",
@@ -39829,7 +39838,7 @@ function A7(n) {
39829
39838
  X(f), g = !1;
39830
39839
  },
39831
39840
  d(L) {
39832
- L && Q(t), ~u && M[u].d(), n[16](null), v = !1, A();
39841
+ L && Q(t), ~u && E[u].d(), n[16](null), v = !1, A();
39833
39842
  }
39834
39843
  };
39835
39844
  }
@@ -40190,7 +40199,7 @@ function x7(n, t, e) {
40190
40199
  function w(z) {
40191
40200
  z ? h.emit("exposure", { id: r, type: "start" }) : h.emit("exposure", { id: r, type: "end" });
40192
40201
  }
40193
- function M(z, B, b) {
40202
+ function E(z, B, b) {
40194
40203
  var C, I;
40195
40204
  return !(!z.enabled || !B.visible || !B.enabled || !b.visible || !((C = z.state) != null && C.visible) || ((I = z.temporaryState) == null ? void 0 : I.visible) === !1 || z instanceof lv && z.loading);
40196
40205
  }
@@ -40211,15 +40220,15 @@ function x7(n, t, e) {
40211
40220
  return n.$$set = (z) => {
40212
40221
  "tag" in z && e(0, c = z.tag), "hooks" in z && e(1, h = z.hooks), "rendererMap" in z && e(2, u = z.rendererMap), "contentTypeMap" in z && e(3, f = z.contentTypeMap), "state" in z && e(6, m = z.state), "mediaStore" in z && e(7, p = z.mediaStore), "temporaryState" in z && e(8, g = z.temporaryState);
40213
40222
  }, n.$$.update = () => {
40214
- var z, B, b, C, I, E, S, T, N, _, q;
40223
+ var z, B, b, C, I, M, S, T, N, _, q;
40215
40224
  n.$$.dirty & /*tag*/
40216
40225
  1 && e(12, i = (z = c.state) == null ? void 0 : z.unfolded), n.$$.dirty & /*tag*/
40217
40226
  1 && e(11, s = (B = c.state) == null ? void 0 : B.visible), n.$$.dirty & /*state, temporaryState, tag*/
40218
40227
  321 && e(13, o = m.visible && g.visible && ((b = c.state) == null ? void 0 : b.visible)), n.$$.dirty & /*tag*/
40219
40228
  1 && (r = c.id), n.$$.dirty & /*tag, state, temporaryState*/
40220
- 321 && e(5, a = !M(c, m, g)), n.$$.dirty & /*isVisible*/
40229
+ 321 && e(5, a = !E(c, m, g)), n.$$.dirty & /*isVisible*/
40221
40230
  8192 && w(o), n.$$.dirty & /*tag, unfolded, lastUnfoldedState, visible, lastVisibleState*/
40222
- 7681 && c.hooks && (i !== void 0 && i !== A && (e(10, A = i), i ? (I = (C = c.hooks).emit) == null || I.call(C, "unfolded") : (S = c == null ? void 0 : (E = c.hooks).emit) == null || S.call(E, "folded")), s !== void 0 && s !== v && (e(9, v = s), s ? (N = (T = c.hooks).emit) == null || N.call(T, "show") : (q = (_ = c.hooks).emit) == null || q.call(_, "hide"))), n.$$.dirty & /*tag*/
40231
+ 7681 && c.hooks && (i !== void 0 && i !== A && (e(10, A = i), i ? (I = (C = c.hooks).emit) == null || I.call(C, "unfolded") : (S = c == null ? void 0 : (M = c.hooks).emit) == null || S.call(M, "folded")), s !== void 0 && s !== v && (e(9, v = s), s ? (N = (T = c.hooks).emit) == null || N.call(T, "show") : (q = (_ = c.hooks).emit) == null || q.call(_, "hide"))), n.$$.dirty & /*tag*/
40223
40232
  1 && e(4, l = (() => !(typeof c.config.unfoldedConfig == "object" && c.config.unfoldedConfig.keep === "folded"))());
40224
40233
  }, [
40225
40234
  c,
@@ -40899,9 +40908,9 @@ function N7(n) {
40899
40908
  A[11]
40900
40909
  ) : 0) + "ms"
40901
40910
  );
40902
- let M = l;
40903
- l = v(A), l === M ? g[l].p(A, w) : (ke(), X(g[M], 1, 1, () => {
40904
- g[M] = null;
40911
+ let E = l;
40912
+ l = v(A), l === E ? g[l].p(A, w) : (ke(), X(g[E], 1, 1, () => {
40913
+ g[E] = null;
40905
40914
  }), xe(), c = g[l], c ? c.p(A, w) : (c = g[l] = p[l](A), c.c()), F(c, 1), c.m(a, null)), w & /*folded*/
40906
40915
  512 && W(
40907
40916
  a,
@@ -40959,7 +40968,7 @@ function G7(n, t, e) {
40959
40968
  }, g = (() => h.contentType === "Text" && h.data.appearance === "plane" ? 500 : 800)();
40960
40969
  let { tagPointClickHelper: v = null } = t, { handleMouseEnter: A = () => {
40961
40970
  } } = t, { handleMouseLeave: w = () => {
40962
- } } = t, { handleTagPointClick: M = () => {
40971
+ } } = t, { handleTagPointClick: E = () => {
40963
40972
  } } = t;
40964
40973
  const k = () => !0, L = (N = (T = h.config.popoverConfig) == null ? void 0 : T.beforeOpen) != null ? N : k;
40965
40974
  let { audioInstance: D = null } = t;
@@ -40972,7 +40981,7 @@ function G7(n, t, e) {
40972
40981
  timeupdate: (_) => c("audioTimeUpdate", _.detail),
40973
40982
  duration: (_) => c("audioDuration", _.detail)
40974
40983
  }, z = (_) => {
40975
- M(_), p(_);
40984
+ E(_), p(_);
40976
40985
  }, B = (_) => {
40977
40986
  L(h) && A(_);
40978
40987
  };
@@ -40987,15 +40996,15 @@ function G7(n, t, e) {
40987
40996
  });
40988
40997
  }
40989
40998
  const I = (_) => {
40990
- M(_), p(_);
40991
- }, E = (_) => {
40999
+ E(_), p(_);
41000
+ }, M = (_) => {
40992
41001
  L(h) && A(_);
40993
41002
  };
40994
41003
  function S(_) {
40995
41004
  Pn.call(this, n, _);
40996
41005
  }
40997
41006
  return n.$$set = (_) => {
40998
- "tag" in _ && e(1, h = _.tag), "tagPointClickHelper" in _ && e(0, v = _.tagPointClickHelper), "handleMouseEnter" in _ && e(2, A = _.handleMouseEnter), "handleMouseLeave" in _ && e(3, w = _.handleMouseLeave), "handleTagPointClick" in _ && e(4, M = _.handleTagPointClick), "audioInstance" in _ && e(14, D = _.audioInstance);
41007
+ "tag" in _ && e(1, h = _.tag), "tagPointClickHelper" in _ && e(0, v = _.tagPointClickHelper), "handleMouseEnter" in _ && e(2, A = _.handleMouseEnter), "handleMouseLeave" in _ && e(3, w = _.handleMouseLeave), "handleTagPointClick" in _ && e(4, E = _.handleTagPointClick), "audioInstance" in _ && e(14, D = _.audioInstance);
40999
41008
  }, n.$$.update = () => {
41000
41009
  var _, q, ee, K;
41001
41010
  n.$$.dirty & /*tag*/
@@ -41025,7 +41034,7 @@ function G7(n, t, e) {
41025
41034
  h,
41026
41035
  A,
41027
41036
  w,
41028
- M,
41037
+ E,
41029
41038
  i,
41030
41039
  a,
41031
41040
  r,
@@ -41041,7 +41050,7 @@ function G7(n, t, e) {
41041
41050
  b,
41042
41051
  C,
41043
41052
  I,
41044
- E,
41053
+ M,
41045
41054
  S
41046
41055
  ];
41047
41056
  }
@@ -41993,8 +42002,8 @@ function Pk(n) {
41993
42002
  n[13].length > 0) && Hg(n)
41994
42003
  );
41995
42004
  const A = [bk, Ak, vk], w = [];
41996
- function M(C, I) {
41997
- var E;
42005
+ function E(C, I) {
42006
+ var M;
41998
42007
  return (
41999
42008
  /*isExternalVideo*/
42000
42009
  C[6] && /*formattedVideoUrl*/
@@ -42004,12 +42013,12 @@ function Pk(n) {
42004
42013
  /*isVideoMedia*/
42005
42014
  C[7] && /*tag*/
42006
42015
  C[2].data.mediaData && /*tag*/
42007
- ((E = C[2].data.mediaData[0]) != null && E.url) ? 2 : -1
42016
+ ((M = C[2].data.mediaData[0]) != null && M.url) ? 2 : -1
42008
42017
  )
42009
42018
  )
42010
42019
  );
42011
42020
  }
42012
- ~(o = M(n)) && (r = w[o] = A[o](n));
42021
+ ~(o = E(n)) && (r = w[o] = A[o](n));
42013
42022
  let k = (
42014
42023
  /*finalDescription*/
42015
42024
  n[20] && Qg(n)
@@ -42054,9 +42063,9 @@ function Pk(n) {
42054
42063
  C[3] && /*primaryTags*/
42055
42064
  (C[4].length > 0 || /*secondaryTags*/
42056
42065
  C[13].length > 0) ? v ? v.p(C, I) : (v = Hg(C), v.c(), v.m(e, s)) : v && (v.d(1), v = null);
42057
- let E = o;
42058
- o = M(C), o === E ? ~o && w[o].p(C, I) : (r && (ke(), X(w[E], 1, 1, () => {
42059
- w[E] = null;
42066
+ let M = o;
42067
+ o = E(C), o === M ? ~o && w[o].p(C, I) : (r && (ke(), X(w[M], 1, 1, () => {
42068
+ w[M] = null;
42060
42069
  }), xe()), ~o ? (r = w[o], r ? r.p(C, I) : (r = w[o] = A[o](C), r.c()), F(r, 1), r.m(e, a)) : r = null), /*finalDescription*/
42061
42070
  C[20] ? k ? k.p(C, I) : (k = Qg(C), k.c(), k.m(e, l)) : k && (k.d(1), k = null), /*isAudioTag*/
42062
42071
  C[8] ? L ? (L.p(C, I), I[0] & /*isAudioTag*/
@@ -42121,7 +42130,7 @@ function Ck(n) {
42121
42130
  return `${t.toString().padStart(2, "0")}:${e.toString().padStart(2, "0")}`;
42122
42131
  }
42123
42132
  function Ik(n, t, e) {
42124
- let i, s, o, r, a, l, c, h, u, f, m, p, g, v, A, w, M, k, L, D, j, z, B, b, C, I, { $$slots: E = {}, $$scope: S } = t, { tag: T } = t, { config: N = {} } = t, { theme: _ = void 0 } = t, { placement: q = "right-top" } = t, { audioInstance: ee = null } = t, { audioPlaying: K = !1 } = t, { audioCurrentTime: se = 0 } = t, { audioDuration: te = 0 } = t, le = 0, Se = "00:00", ue = null, Te = 0, fe = 0;
42133
+ let i, s, o, r, a, l, c, h, u, f, m, p, g, v, A, w, E, k, L, D, j, z, B, b, C, I, { $$slots: M = {}, $$scope: S } = t, { tag: T } = t, { config: N = {} } = t, { theme: _ = void 0 } = t, { placement: q = "right-top" } = t, { audioInstance: ee = null } = t, { audioPlaying: K = !1 } = t, { audioCurrentTime: se = 0 } = t, { audioDuration: te = 0 } = t, le = 0, Se = "00:00", ue = null, Te = 0, fe = 0;
42125
42134
  function he() {
42126
42135
  return te > 0 ? se / te * 100 : 0;
42127
42136
  }
@@ -42203,7 +42212,7 @@ function Ik(n, t, e) {
42203
42212
  3 && e(6, A = g || v), n.$$.dirty[0] & /*isExternalVideo, tag*/
42204
42213
  68 && e(17, w = A && T.data.mediaData && ((de = T.data.mediaData[0]) != null && de.url) ? m8(T.data.mediaData[0].url, { autoplay: 0 }) : ""), n.$$.dirty[0] & /*finalTitle*/
42205
42214
  32 | n.$$.dirty[1] & /*isYouTubeVideo, isVimeoVideo*/
42206
- 3 && e(16, M = g ? "YouTube video player" : v ? "Vimeo video player" : c), n.$$.dirty[0] & /*tag*/
42215
+ 3 && e(16, E = g ? "YouTube video player" : v ? "Vimeo video player" : c), n.$$.dirty[0] & /*tag*/
42207
42216
  4 && e(15, k = ((ye = T.data.mediaData) == null ? void 0 : ye.length) || 0), n.$$.dirty[0] & /*isMarketingTag, tag*/
42208
42217
  12 && e(30, D = i ? T.data.brandTags || [] : []), n.$$.dirty[0] & /*isMarketingTag, tag*/
42209
42218
  12 && e(29, j = i ? T.data.tags || [] : []), n.$$.dirty[0] & /*marketingBrandTags*/
@@ -42229,7 +42238,7 @@ function Ik(n, t, e) {
42229
42238
  b,
42230
42239
  L,
42231
42240
  k,
42232
- M,
42241
+ E,
42233
42242
  w,
42234
42243
  p,
42235
42244
  f,
@@ -42251,7 +42260,7 @@ function Ik(n, t, e) {
42251
42260
  a,
42252
42261
  o,
42253
42262
  S,
42254
- E
42263
+ M
42255
42264
  ];
42256
42265
  }
42257
42266
  class Ek extends Ee {
@@ -43236,9 +43245,9 @@ function Fk(n) {
43236
43245
  function Nk(n, t, e) {
43237
43246
  let i, s, o, r, a, l, c, h, u, f;
43238
43247
  const m = en("hooks");
43239
- let { tag: p } = t, { config: g = {} } = t, { triggerElement: v } = t, { wrapperElement: A = document.body } = t, { popoverContainer: w = null } = t, { theme: M = void 0 } = t, { visible: k = !0 } = t, { closePopover: L = void 0 } = t, { audioInstance: D = null } = t, { audioPlaying: j = !1 } = t, { audioCurrentTime: z = 0 } = t, { audioDuration: B = 0 } = t;
43248
+ let { tag: p } = t, { config: g = {} } = t, { triggerElement: v } = t, { wrapperElement: A = document.body } = t, { popoverContainer: w = null } = t, { theme: E = void 0 } = t, { visible: k = !0 } = t, { closePopover: L = void 0 } = t, { audioInstance: D = null } = t, { audioPlaying: j = !1 } = t, { audioCurrentTime: z = 0 } = t, { audioDuration: B = 0 } = t;
43240
43249
  const b = cs();
43241
- let C, I = { width: 0, height: 0 }, E = null, S = s;
43250
+ let C, I = { width: 0, height: 0 }, M = null, S = s;
43242
43251
  function T($, { duration: Me = 400, easing: Re = Lr, x: ve = 0, y: Be = 0 }) {
43243
43252
  return {
43244
43253
  duration: Me,
@@ -43344,10 +43353,10 @@ function Nk(n, t, e) {
43344
43353
  });
43345
43354
  }
43346
43355
  return n.$$set = ($) => {
43347
- "tag" in $ && e(0, p = $.tag), "config" in $ && e(1, g = $.config), "triggerElement" in $ && e(26, v = $.triggerElement), "wrapperElement" in $ && e(25, A = $.wrapperElement), "popoverContainer" in $ && e(27, w = $.popoverContainer), "theme" in $ && e(2, M = $.theme), "visible" in $ && e(3, k = $.visible), "closePopover" in $ && e(28, L = $.closePopover), "audioInstance" in $ && e(4, D = $.audioInstance), "audioPlaying" in $ && e(5, j = $.audioPlaying), "audioCurrentTime" in $ && e(6, z = $.audioCurrentTime), "audioDuration" in $ && e(7, B = $.audioDuration);
43356
+ "tag" in $ && e(0, p = $.tag), "config" in $ && e(1, g = $.config), "triggerElement" in $ && e(26, v = $.triggerElement), "wrapperElement" in $ && e(25, A = $.wrapperElement), "popoverContainer" in $ && e(27, w = $.popoverContainer), "theme" in $ && e(2, E = $.theme), "visible" in $ && e(3, k = $.visible), "closePopover" in $ && e(28, L = $.closePopover), "audioInstance" in $ && e(4, D = $.audioInstance), "audioPlaying" in $ && e(5, j = $.audioPlaying), "audioCurrentTime" in $ && e(6, z = $.audioCurrentTime), "audioDuration" in $ && e(7, B = $.audioDuration);
43348
43357
  }, n.$$.update = () => {
43349
43358
  if (n.$$.dirty[0] & /*theme, tag*/
43350
- 5 && e(18, i = (() => Fe(M) ? M : Fe(p.data.theme) && ["light", "dark"].includes(p.data.theme) ? p.data.theme : p.contentType === "Marketing" ? "light" : "dark")()), n.$$.dirty[0] & /*config*/
43359
+ 5 && e(18, i = (() => Fe(E) ? E : Fe(p.data.theme) && ["light", "dark"].includes(p.data.theme) ? p.data.theme : p.contentType === "Marketing" ? "light" : "dark")()), n.$$.dirty[0] & /*config*/
43351
43360
  2 && e(32, s = (g == null ? void 0 : g.placement) || "right-top"), n.$$.dirty[0] & /*config*/
43352
43361
  2 && e(16, a = (() => typeof (g == null ? void 0 : g.toolbar) == "boolean" ? g.toolbar ? { showMore: !0, showShare: !0 } : { showMore: !1, showShare: !1 } : (g == null ? void 0 : g.toolbar) || { showMore: !0, showShare: !0 })()), n.$$.dirty[1] & /*placement*/
43353
43362
  2 && (s === "auto" ? e(8, S = N()) : e(8, S = s)), n.$$.dirty[0] & /*config*/
@@ -43356,10 +43365,10 @@ function Nk(n, t, e) {
43356
43365
  536870912 && I.width > 0 && I.height > 0 && e(8, S = N()), n.$$.dirty[0] & /*tag, adjustedPlacement, triggerElement*/
43357
43366
  67109121 && p.screenPosition && S && v) {
43358
43367
  const $ = v.getBoundingClientRect();
43359
- $.width > 0 && $.height > 0 && e(30, E = _(S, $));
43368
+ $.width > 0 && $.height > 0 && e(30, M = _(S, $));
43360
43369
  }
43361
43370
  n.$$.dirty[0] & /*anchorPosition*/
43362
- 1073741824 && e(14, c = E), n.$$.dirty[1] & /*arrow*/
43371
+ 1073741824 && e(14, c = M), n.$$.dirty[1] & /*arrow*/
43363
43372
  1 && e(13, h = typeof o == "boolean" ? o : !0), n.$$.dirty[0] & /*adjustedPlacement*/
43364
43373
  256 && e(12, u = (() => {
43365
43374
  switch (S) {
@@ -43387,7 +43396,7 @@ function Nk(n, t, e) {
43387
43396
  }, e(31, o = !0), e(17, r = 1060), [
43388
43397
  p,
43389
43398
  g,
43390
- M,
43399
+ E,
43391
43400
  k,
43392
43401
  D,
43393
43402
  j,
@@ -43415,7 +43424,7 @@ function Nk(n, t, e) {
43415
43424
  w,
43416
43425
  L,
43417
43426
  I,
43418
- E,
43427
+ M,
43419
43428
  o,
43420
43429
  s,
43421
43430
  Te,
@@ -43515,9 +43524,9 @@ function em(n) {
43515
43524
  Y(A, t, w), f[e].m(t, null), R(t, s), g[o].m(t, null), n[36](t), h = !0;
43516
43525
  },
43517
43526
  p(A, w) {
43518
- let M = e;
43519
- e = m(A), e === M ? f[e].p(A, w) : (ke(), X(f[M], 1, 1, () => {
43520
- f[M] = null;
43527
+ let E = e;
43528
+ e = m(A), e === E ? f[e].p(A, w) : (ke(), X(f[E], 1, 1, () => {
43529
+ f[E] = null;
43521
43530
  }), xe(), i = f[e], i ? i.p(A, w) : (i = f[e] = u[e](A), i.c()), F(i, 1), i.m(t, s));
43522
43531
  let k = o;
43523
43532
  o = v(A), o === k ? g[o].p(A, w) : (ke(), X(g[k], 1, 1, () => {
@@ -43914,9 +43923,9 @@ function Zk(n) {
43914
43923
  };
43915
43924
  }
43916
43925
  function qk(n, t, e) {
43917
- let i, s, o, r, a, l, c, h, u, f, m, { tag: p } = t, { mediaStore: g } = t, { rendererMap: v = /* @__PURE__ */ new Map() } = t, { contentTypeMap: A = /* @__PURE__ */ new Map() } = t, { state: w } = t, { temporaryState: M } = t, { wrapperElement: k = null } = t, { popoverContainer: L = null } = t;
43926
+ let i, s, o, r, a, l, c, h, u, f, m, { tag: p } = t, { mediaStore: g } = t, { rendererMap: v = /* @__PURE__ */ new Map() } = t, { contentTypeMap: A = /* @__PURE__ */ new Map() } = t, { state: w } = t, { temporaryState: E } = t, { wrapperElement: k = null } = t, { popoverContainer: L = null } = t;
43918
43927
  const D = en("hooks");
43919
- let j = !1, z, B, b = null, C = !1, I = !1, E = null, S = null, T = !1, N = 0, _ = 0;
43928
+ let j = !1, z, B, b = null, C = !1, I = !1, M = null, S = null, T = !1, N = 0, _ = 0;
43920
43929
  const q = {
43921
43930
  audioInstanceReady: ($) => {
43922
43931
  e(14, S = $.detail), e(15, T = !S.paused);
@@ -43982,7 +43991,7 @@ function qk(n, t, e) {
43982
43991
  }
43983
43992
  function he($) {
43984
43993
  qe[$ ? "unshift" : "push"](() => {
43985
- E = $, e(13, E);
43994
+ M = $, e(13, M);
43986
43995
  });
43987
43996
  }
43988
43997
  function Le($) {
@@ -43991,7 +44000,7 @@ function qk(n, t, e) {
43991
44000
  });
43992
44001
  }
43993
44002
  return n.$$set = ($) => {
43994
- "tag" in $ && e(0, p = $.tag), "mediaStore" in $ && e(1, g = $.mediaStore), "rendererMap" in $ && e(2, v = $.rendererMap), "contentTypeMap" in $ && e(3, A = $.contentTypeMap), "state" in $ && e(4, w = $.state), "temporaryState" in $ && e(5, M = $.temporaryState), "wrapperElement" in $ && e(6, k = $.wrapperElement), "popoverContainer" in $ && e(7, L = $.popoverContainer);
44003
+ "tag" in $ && e(0, p = $.tag), "mediaStore" in $ && e(1, g = $.mediaStore), "rendererMap" in $ && e(2, v = $.rendererMap), "contentTypeMap" in $ && e(3, A = $.contentTypeMap), "state" in $ && e(4, w = $.state), "temporaryState" in $ && e(5, E = $.temporaryState), "wrapperElement" in $ && e(6, k = $.wrapperElement), "popoverContainer" in $ && e(7, L = $.popoverContainer);
43995
44004
  }, n.$$.update = () => {
43996
44005
  var $, Me, Re, ve;
43997
44006
  n.$$.dirty[0] & /*tag, rendererMap*/
@@ -44018,7 +44027,7 @@ function qk(n, t, e) {
44018
44027
  v,
44019
44028
  A,
44020
44029
  w,
44021
- M,
44030
+ E,
44022
44031
  k,
44023
44032
  L,
44024
44033
  h,
@@ -44026,7 +44035,7 @@ function qk(n, t, e) {
44026
44035
  i,
44027
44036
  j,
44028
44037
  b,
44029
- E,
44038
+ M,
44030
44039
  S,
44031
44040
  T,
44032
44041
  N,
@@ -45046,16 +45055,16 @@ function s6(n) {
45046
45055
  };
45047
45056
  }
45048
45057
  function o6(n, t, e) {
45049
- let i, s, o, r, a, l, c, h, { text: u = "" } = t, { icon_url: f = "" } = t, { distance: m = 0 } = t, { opacity: p = 1 } = t, { name: g = "" } = t, { i18n: v = (M) => M } = t, { fontSize: A = "md" } = t;
45058
+ let i, s, o, r, a, l, c, h, { text: u = "" } = t, { icon_url: f = "" } = t, { distance: m = 0 } = t, { opacity: p = 1 } = t, { name: g = "" } = t, { i18n: v = (E) => E } = t, { fontSize: A = "md" } = t;
45050
45059
  const w = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHUAAAA2CAMAAADOFiZMAAACEFBMVEUAAACIiIheXl5oaGh6enpsbGxiYmJ9fX1wcHBXV1eBgYFzc3NSUlKNjY2Dg4NOTk51dXVXV1dmZmZTU1N3d3dcXFyMjIyEhIRNTU2QkJC0tLS5ubnHx8fOzs6np6exsbHKysqoqKi9vb3U1NTPz8/Nzc2vr6/Dw8OysrK/v7/X19fS0tKurq62traqqqrJycmurq64uLifn5/Dw8O6urqQkJC6urro6Ojt7e3o6OjU1NS3t7fBwcGjo6Ozs7Orq6u1tbXAwMCurq6rq6vy8vLx8fHr6+vp6enZ2dnd3d3a2trX19fV1dW/v7/IyMihoaGampqVlZWLi4uCgoK+vr6urq7m5ubw8PDk5OTu7u7i4uLg4ODe3t7q6urS0tLi4uLOzs7e3t7Hx8fa2tqrq6vExMTAwMCnp6efn5+WlpaHh4ezs7OoqKiJiYm6urqZmZmurq59fX29vb23t7e4uLipqanp6enc3Nza2trW1tbT09Pm5ubj4+PQ0NDg4ODExMTCwsK7u7vBwcG8vLy5ubm8vLy+vr64uLiysrKdnZ3CwsJoaGisrKzHx8ekpKTExMTv7+/i4uLa2trm5ubk5OTLy8vKysrExMTQ0NDX19ecnJzT09N/f3+dnZ12dnaQkJCXl5etra3Pz8+4uLiXl5fGxsaqqqrr6+vQ0NDKysrNzc3W1takpKShoaGsrKysrKyduRZkAAAAsHRSTlMATE1NTExMTUxNTExMTExNTExMTU1MTU1MTICFc313fnl0iIWAe3h3aYqIgXx7eXZzcnFwaGggxLiog4J0dG9mZF82FMfEtK2pkYqKh3x4cm1rZmEmH8G/vry6trOxoZ2clpKOe3ptbWZjYmFgXFpaVlFPSDYlx7CspaSjoJ6akY6HfXt4bGpmY1xUU0g2LSzCuK6lopiWhoF3YmFaVlZUUU5KPyEJCcl/fXNdXFxZUIUrIQsAAAV6SURBVFjDvZj3VxNBEMePBBIOQgmEQGghISSASSBBUQFBVIpUEaR3aVJExN4F6fbee6//opPN2507E3P7fD4+b54z+935zt7lvPsBYbZ5lyXT7R5xms2ppaVpV615eVeuXL48PPzw4YPBwYsX+/vPnT1bW1t75u7p0729PT13urs7O9vbt2/ffurUp1OQ2ts7O7u77/T09PaevnvmTG3t2XPn+vsvDg4+GH5UVjl/SAjGe29La2vr5EFgm4+WlpYDgNfrbW7etQuuKDPTPTIy4nSa4bJ8lKYBV69arXmA1WpN81FamgqYzU6n0+12ZwI+qzPtyvDlR0dPCoGsecW4FEZcShwEyUDIGvtD+DcOZlrzFvcE3qylFXZ1cTqIgGk0K1xRSL84abaWtwl/8KM5kTiok04B2BpAPUWXAoGnQK3gn0xNW90ryDhpafXvJsYlJuoSdRCyTJHqBOxR9IvbUl1/PN5pL9tFR4gTJJmi7N+wl8qf7k33S+YQE0VRJwZz42RogDZcAxx+sTn1jSDho6VFBKAbp9K1XqfXi3oRgmSqQ2AGePziNpfs2GN2lV5Pp+IJkkwIrDFz+Y+Y90h/Yvtz+f0o1YGnc/lVXvshASk8IHUm6ZMIYhI6YAEyqyHkE/n8Kkuh5AX6ZVdBlypJpRJVIgTJ0IluEGCb1BDYCzWFx79h/yl5ZV3PVUSVAQIDFhCyLO/h9E9KfuOPriOqzUFjmRYYueOqTWLGfhPfHZcGrkOlgcAGskZdAV7/eIVA2eN6qZGA3Yhcxxozn3+mkD3ZQ64Z3EnQJEBouMB+Xr+68LpAuTZBOokDoPXfNIK85vZP5AqUreNqdYI6AUINkBrAtUatgaA67mEft38GvxRThWopOAFrBbj9kYXsa3z0mnrTsLAHe3yRzxGhjoBQ0BT848foqfONkT6FAAWrce3PeEpA5vZPsDf23aIhgpfIiEiIiH/mKftPfKJxTjaNv8bM6zlSzk5dmIsMDk7EGrMEbj+e+q5xLjoyOrQbGiCCaZh5/PgLzy8YiIrgNPmaZtQovP6J3ezNafTvxEfHQ2An8v/2K47hV4J0ExVBDbNCD4e/nH0lKj1+1RBvMEQboiEMUJI1BOmmGq0pVOP1z3nYF3G53EAIN4SHx4djNyxAkutQA1QnGeD2z3rY199RIZ+EtVxDPaDm9VdspYcWj65pteFaonIDBghpzeXyzNNTbyy8CpgCyCehjnvYx+uf9RTTU9cbo7SbRPmKQBnzaKMI2igthD8jVAvIuM/rXytjfyz4MFqBDgLWPGuA05/sqRQobaOzsBMbFQsRhaAWco/A6Z92FAuU446wWL+aHJWcHJtMOzEDwWrU+PyvHEcFRlkutELInT4NFiCRGqA6yQDWfH5jWdFegXLL8V3qDIsNIySHoRsWIGMN/wBY8/mXRosFxrrDCE20EwJzCGQ9XP7crBN46AdHbthmkPvluICccLzgchnDjBD/eqaxKOOtIKGyiEzDqSFOCt7D4X/dlHFDkNCWPu3fjTHGQBgpbI06TkeIpuQ37bbltAlSKstM/g6EdYcEr0jJv2rLfrZXkFKcPhVjMsWY0GGSrTn00H7TakbD11sChd7qa+gCSKdJVitpyvWLlab6uifsieKtLk1N7QZWtvpYXl4aGxsrAtIJBQVNWVlZOTkZGRm2z7bHW0q2lJRkZ2c3NOTn19fV19fn5zfAsmQL8Nhmg66cHOhvKigoSC/Iysk+vH9//jd2n8g6TG7yjbXZYCAMq6s7fBiah4aGLl0aGLhw4f758zuBmpq+vurq6h07dnR1dXTcrqqq2uejqup2R0dXF8jV1X19NTU1O3feu3f+/oWBgUtD++uePHtbLAThNzRClbi+VnseAAAAAElFTkSuQmCC";
45051
- return n.$$set = (M) => {
45052
- "text" in M && e(0, u = M.text), "icon_url" in M && e(1, f = M.icon_url), "distance" in M && e(2, m = M.distance), "opacity" in M && e(3, p = M.opacity), "name" in M && e(4, g = M.name), "i18n" in M && e(5, v = M.i18n), "fontSize" in M && e(11, A = M.fontSize);
45060
+ return n.$$set = (E) => {
45061
+ "text" in E && e(0, u = E.text), "icon_url" in E && e(1, f = E.icon_url), "distance" in E && e(2, m = E.distance), "opacity" in E && e(3, p = E.opacity), "name" in E && e(4, g = E.name), "i18n" in E && e(5, v = E.i18n), "fontSize" in E && e(11, A = E.fontSize);
45053
45062
  }, n.$$.update = () => {
45054
- var M, k;
45063
+ var E, k;
45055
45064
  n.$$.dirty & /*fontSize*/
45056
45065
  2048 && e(13, i = Ml[A]), n.$$.dirty & /*fontConfig*/
45057
45066
  8192 && e(9, s = Yt((i == null ? void 0 : i.name) || 12)), n.$$.dirty & /*fontConfig*/
45058
- 8192 && e(15, o = ((M = i == null ? void 0 : i.padding) == null ? void 0 : M.guide) || [8, 2]), n.$$.dirty & /*padding*/
45067
+ 8192 && e(15, o = ((E = i == null ? void 0 : i.padding) == null ? void 0 : E.guide) || [8, 2]), n.$$.dirty & /*padding*/
45059
45068
  32768 && e(8, r = `${Yt(o[1])} ${Yt(o[0])}`), n.$$.dirty & /*fontConfig*/
45060
45069
  8192 && e(14, a = ((k = i == null ? void 0 : i.padding) == null ? void 0 : k.distance) || [4, 2]), n.$$.dirty & /*distancePadding*/
45061
45070
  16384 && e(7, l = `${Yt(a[1])} ${Yt(a[0])}`), n.$$.dirty & /*fontConfig*/
@@ -45114,8 +45123,8 @@ function l6(n, t, e) {
45114
45123
  if (l || (l = (m = (f = t.observers[r]) == null ? void 0 : f.standingPosition) == null ? void 0 : m.toArray()), !l)
45115
45124
  return;
45116
45125
  const c = n[a - 1], h = (w = (g = (p = e == null ? void 0 : e.node_pair_to_route_points) == null ? void 0 : p[`${c}:${r}`]) == null ? void 0 : g.slice()) != null ? w : (A = (v = e == null ? void 0 : e.node_pair_to_route_points) == null ? void 0 : v[`${r}:${c}`]) == null ? void 0 : A.slice().reverse();
45117
- h == null || h.forEach((M) => {
45118
- i.push(M);
45126
+ h == null || h.forEach((E) => {
45127
+ i.push(E);
45119
45128
  }), i.push(l);
45120
45129
  });
45121
45130
  const s = t.transform, o = i.map((r) => Eo(new P.Vector3().fromArray(r), s).toArray());
@@ -46458,7 +46467,7 @@ let v6 = class extends kn {
46458
46467
  }
46459
46468
  load(e, i, s = !0) {
46460
46469
  return ie(this, null, function* () {
46461
- var p, g, v, A, w, M, k;
46470
+ var p, g, v, A, w, E, k;
46462
46471
  const o = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, r = yield this.formatData(e);
46463
46472
  this.hooks.emit("dataChange", r, o), this.data = r;
46464
46473
  const a = r.config, l = !r.lines && r.routes, c = (p = a == null ? void 0 : a.arrowTextureUrl) != null ? p : Kn(this.staticPrefix, Rh), h = ce(V({}, a), {
@@ -46474,7 +46483,7 @@ let v6 = class extends kn {
46474
46483
  }), u = (w = (A = r.routes) == null ? void 0 : A.map((L) => {
46475
46484
  var D;
46476
46485
  return et({}, h, { id: (D = L.id) != null ? D : Dt(), pano_group: L.panoIndexList });
46477
- })) != null ? w : [], f = (k = (M = r.lines) == null ? void 0 : M.map((L) => et({}, h, L))) != null ? k : [], m = [...u, ...f];
46486
+ })) != null ? w : [], f = (k = (E = r.lines) == null ? void 0 : E.map((L) => et({}, h, L))) != null ? k : [], m = [...u, ...f];
46478
46487
  yield yi(this.five), this.clear(), m.forEach((L) => {
46479
46488
  this.addGuideLineItem(this.processItemUrls(L));
46480
46489
  }), this.updateTagsEnable(), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), i && this.setState(i, { userAction: s }), this.hooks.emit("dataLoaded", r), console.debug(`${cm} loaded`, r);
@@ -47929,30 +47938,30 @@ class Y6 extends Kr {
47929
47938
  const I = new Ae(0, 0, 0);
47930
47939
  if (!this.startInfo)
47931
47940
  return I;
47932
- const E = (C === "ew" ? u : f).clone(), S = c.clone().projectOnVector(E), T = a.clone().projectOnVector(E), N = l.clone().projectOnVector(E);
47941
+ const M = (C === "ew" ? u : f).clone(), S = c.clone().projectOnVector(M), T = a.clone().projectOnVector(M), N = l.clone().projectOnVector(M);
47933
47942
  if (T.equals(S))
47934
47943
  return I;
47935
47944
  if (C === "ns" && typeof this.startInfo.dragPointInCenterBottom != "boolean") {
47936
- const ee = new Ae().subVectors(T, N), K = ee.x < 0 && E.x >= 0, se = ee.y < 0 && E.y >= 0, te = ee.z < 0 && E.z >= 0;
47945
+ const ee = new Ae().subVectors(T, N), K = ee.x < 0 && M.x >= 0, se = ee.y < 0 && M.y >= 0, te = ee.z < 0 && M.z >= 0;
47937
47946
  this.startInfo.dragPointInCenterBottom = K || se || te;
47938
47947
  }
47939
47948
  if (C === "ew" && typeof this.startInfo.dragPointInCenterLeft != "boolean") {
47940
- const ee = new Ae().subVectors(T, N), K = ee.x < 0 && E.x >= 0, se = ee.y < 0 && E.y >= 0, te = ee.z < 0 && E.z >= 0;
47949
+ const ee = new Ae().subVectors(T, N), K = ee.x < 0 && M.x >= 0, se = ee.y < 0 && M.y >= 0, te = ee.z < 0 && M.z >= 0;
47941
47950
  this.startInfo.dragPointInCenterLeft = K || se || te;
47942
47951
  }
47943
47952
  const _ = new Ae().subVectors(T, S), q = _.length();
47944
47953
  return q > 0.3 ? (console.warn("offset.length() > 0.3, skipped", q), I) : _;
47945
47954
  }, p = m("ew"), g = m("ns"), v = () => {
47946
47955
  const C = p;
47947
- this.helperObject3D.cornerPositions.forEach((I, E) => {
47956
+ this.helperObject3D.cornerPositions.forEach((I, M) => {
47948
47957
  var S;
47949
- (S = this.startInfo) != null && S.dragPointInCenterLeft ? (E === 0 || E === 3) && I.add(C) : (E === 1 || E === 2) && I.add(C);
47958
+ (S = this.startInfo) != null && S.dragPointInCenterLeft ? (M === 0 || M === 3) && I.add(C) : (M === 1 || M === 2) && I.add(C);
47950
47959
  });
47951
47960
  }, A = () => {
47952
47961
  const C = g;
47953
- this.helperObject3D.cornerPositions.forEach((I, E) => {
47962
+ this.helperObject3D.cornerPositions.forEach((I, M) => {
47954
47963
  var S;
47955
- (S = this.startInfo) != null && S.dragPointInCenterBottom ? (E === 0 || E === 1) && I.add(C) : (E === 2 || E === 3) && I.add(C);
47964
+ (S = this.startInfo) != null && S.dragPointInCenterBottom ? (M === 0 || M === 1) && I.add(C) : (M === 2 || M === 3) && I.add(C);
47956
47965
  });
47957
47966
  };
47958
47967
  switch (h) {
@@ -47966,7 +47975,7 @@ class Y6 extends Kr {
47966
47975
  case "nwse":
47967
47976
  v(), A();
47968
47977
  }
47969
- const w = new Ae().subVectors(r[1], r[0]).length() / u.length(), M = new Ae().subVectors(r[3], r[0]).length() / f.length(), k = new Ae(w, M, 1), L = new P.Matrix4().scale(k);
47978
+ const w = new Ae().subVectors(r[1], r[0]).length() / u.length(), E = new Ae().subVectors(r[3], r[0]).length() / f.length(), k = new Ae(w, E, 1), L = new P.Matrix4().scale(k);
47970
47979
  i.isCSS3DObjectPlus && i.applyScaleMatrix4 ? i.applyScaleMatrix4(L) : i.scale.applyMatrix4(L), s.position.copy(a);
47971
47980
  const D = new Ae().addVectors(r[0], r[2]).divideScalar(2), j = new Ae().subVectors(D, l), z = new P.Matrix4().setPosition(j);
47972
47981
  i.applyMatrix4(z), (B = this.helperObject3D.css3DInstance) == null || B.css3DObject.applyMatrix4(z), (b = this.helperObject3D.plane) == null || b.applyMatrix4(z), this.internalHooks.emit("applyObjectScale", { matrix: L }), this.internalHooks.emit("applyObjectPosition", { matrix: z }), this.render();
@@ -48376,43 +48385,43 @@ class vv extends us {
48376
48385
  scaleHelper: !0,
48377
48386
  boundingBoxHelper: !1,
48378
48387
  positionFrom: "objectPosition"
48379
- }), i), { moveHelper: h, rotateHelper: u, scaleHelper: f, boundingBoxHelper: m } = c, p = s.hooks, g = new Ct(), v = new tt(this.five.camera, this.five.getElement()), A = (M) => {
48380
- if (M)
48381
- return typeof M == "boolean" ? M : M.enable;
48388
+ }), i), { moveHelper: h, rotateHelper: u, scaleHelper: f, boundingBoxHelper: m } = c, p = s.hooks, g = new Ct(), v = new tt(this.five.camera, this.five.getElement()), A = (E) => {
48389
+ if (E)
48390
+ return typeof E == "boolean" ? E : E.enable;
48382
48391
  };
48383
48392
  if (A(h)) {
48384
- const M = V(V({}, this.getConfig(c.moveHelper)), c), k = new S6(e, V({}, M)), L = new ur(
48393
+ const E = V(V({}, this.getConfig(c.moveHelper)), c), k = new S6(e, V({}, E)), L = new ur(
48385
48394
  this.five,
48386
48395
  v,
48387
48396
  H6,
48388
48397
  e,
48389
48398
  k,
48390
- M,
48399
+ E,
48391
48400
  p,
48392
48401
  g
48393
48402
  );
48394
48403
  s.addControllers({ moveController: L.helperController }), o.push(() => L.dispose());
48395
48404
  }
48396
48405
  if (A(u)) {
48397
- const M = V(V({}, this.getConfig(c.rotateHelper)), c), k = new L6(e, V({ container: r }, M)), L = new ur(
48406
+ const E = V(V({}, this.getConfig(c.rotateHelper)), c), k = new L6(e, V({ container: r }, E)), L = new ur(
48398
48407
  this.five,
48399
48408
  v,
48400
48409
  X6,
48401
48410
  e,
48402
48411
  k,
48403
- M,
48412
+ E,
48404
48413
  p,
48405
48414
  g
48406
48415
  );
48407
48416
  s.addControllers({ rotateController: L.helperController }), o.push(() => L.dispose());
48408
48417
  }
48409
48418
  if (A(m)) {
48410
- const M = new B6(e), k = new ur(
48419
+ const E = new B6(e), k = new ur(
48411
48420
  this.five,
48412
48421
  v,
48413
48422
  q6,
48414
48423
  e,
48415
- M,
48424
+ E,
48416
48425
  void 0,
48417
48426
  p,
48418
48427
  g
@@ -48421,12 +48430,12 @@ class vv extends us {
48421
48430
  }
48422
48431
  if (A(f))
48423
48432
  if (e.isCSS3DObject && r) {
48424
- const M = new _6(e, r, a, this.five.scene), k = new ur(
48433
+ const E = new _6(e, r, a, this.five.scene), k = new ur(
48425
48434
  this.five,
48426
48435
  v,
48427
48436
  Z6,
48428
48437
  e,
48429
- M,
48438
+ E,
48430
48439
  void 0,
48431
48440
  p,
48432
48441
  g
@@ -48443,13 +48452,13 @@ class vv extends us {
48443
48452
  e.isCSS3DObject && (this.css3DObjectModeMap.set(e, e.mode), e.mode = "behind");
48444
48453
  });
48445
48454
  } else {
48446
- const M = V(V({}, this.getConfig(c.scaleHelper)), c), k = new J6(e, M), L = new ur(
48455
+ const E = V(V({}, this.getConfig(c.scaleHelper)), c), k = new J6(e, E), L = new ur(
48447
48456
  this.five,
48448
48457
  v,
48449
48458
  $6,
48450
48459
  e,
48451
48460
  k,
48452
- M,
48461
+ E,
48453
48462
  p,
48454
48463
  g
48455
48464
  );
@@ -49688,7 +49697,7 @@ function Ex(n) {
49688
49697
  }
49689
49698
  function Mx(n, t, e) {
49690
49699
  let i, s, o, r, a, l, c, h, u, { content: f } = t, { five: m = void 0 } = t, { visible: p = !0 } = t, { opacity: g = 1 } = t, { zIndex: v = 0 } = t, { transform: A = void 0 } = t, { onClick: w = () => {
49691
- } } = t, { rendererIfNeed: M = void 0 } = t, { rendererData: k = void 0 } = t, { fontSize: L } = t, D, j, z, B;
49700
+ } } = t, { rendererIfNeed: E = void 0 } = t, { rendererData: k = void 0 } = t, { fontSize: L } = t, D, j, z, B;
49692
49701
  const b = (S) => {
49693
49702
  if (m.state.mode !== "Panorama") {
49694
49703
  const _ = -(10 + 54 * (1 - xl(S.latitude) / 90)), q = _ + h, ee = q >= 0 ? 0 : -q / -u;
@@ -49696,7 +49705,7 @@ function Mx(n, t, e) {
49696
49705
  }
49697
49706
  };
49698
49707
  Lt(() => {
49699
- D && typeof M == "function" && (B = M(D, k)), m && (b(m.camera.pose), m.on("cameraUpdate", b));
49708
+ D && typeof E == "function" && (B = E(D, k)), m && (b(m.camera.pose), m.on("cameraUpdate", b));
49700
49709
  }), ri(() => {
49701
49710
  B == null || B(), m == null || m.off("cameraUpdate", b);
49702
49711
  });
@@ -49710,13 +49719,13 @@ function Mx(n, t, e) {
49710
49719
  j = S, e(7, j);
49711
49720
  });
49712
49721
  }
49713
- function E(S) {
49722
+ function M(S) {
49714
49723
  qe[S ? "unshift" : "push"](() => {
49715
49724
  D = S, e(6, D);
49716
49725
  });
49717
49726
  }
49718
49727
  return n.$$set = (S) => {
49719
- "content" in S && e(0, f = S.content), "five" in S && e(14, m = S.five), "visible" in S && e(15, p = S.visible), "opacity" in S && e(1, g = S.opacity), "zIndex" in S && e(2, v = S.zIndex), "transform" in S && e(3, A = S.transform), "onClick" in S && e(4, w = S.onClick), "rendererIfNeed" in S && e(5, M = S.rendererIfNeed), "rendererData" in S && e(16, k = S.rendererData), "fontSize" in S && e(17, L = S.fontSize);
49728
+ "content" in S && e(0, f = S.content), "five" in S && e(14, m = S.five), "visible" in S && e(15, p = S.visible), "opacity" in S && e(1, g = S.opacity), "zIndex" in S && e(2, v = S.zIndex), "transform" in S && e(3, A = S.transform), "onClick" in S && e(4, w = S.onClick), "rendererIfNeed" in S && e(5, E = S.rendererIfNeed), "rendererData" in S && e(16, k = S.rendererData), "fontSize" in S && e(17, L = S.fontSize);
49720
49729
  }, n.$$.update = () => {
49721
49730
  var S;
49722
49731
  n.$$.dirty & /*visible*/
@@ -49735,7 +49744,7 @@ function Mx(n, t, e) {
49735
49744
  v,
49736
49745
  A,
49737
49746
  w,
49738
- M,
49747
+ E,
49739
49748
  D,
49740
49749
  j,
49741
49750
  z,
@@ -49754,7 +49763,7 @@ function Mx(n, t, e) {
49754
49763
  s,
49755
49764
  C,
49756
49765
  I,
49757
- E
49766
+ M
49758
49767
  ];
49759
49768
  }
49760
49769
  class bv extends Ee {
@@ -51014,7 +51023,7 @@ function Rx(n, t, e) {
51014
51023
  g() && (p.push(h.pop()), n.setPoints(h), k(m), t.pointSelectorHelper.magnifier.render());
51015
51024
  }, w = () => {
51016
51025
  v() && (h.push(p.pop()), n.setPoints(h), k(m), t.pointSelectorHelper.magnifier.render());
51017
- }, M = (D) => {
51026
+ }, E = (D) => {
51018
51027
  p.length = 0;
51019
51028
  const j = h.length === 0 ? D.point : u.clone();
51020
51029
  h.push(j), n.setPoints(h);
@@ -51027,8 +51036,8 @@ function Rx(n, t, e) {
51027
51036
  const z = h.at(-1).clone();
51028
51037
  a === "none" ? (u = D.point, l.setPoints([z, u])) : a === "xoz" ? (f = f != null ? f : new P.Plane().setFromNormalAndCoplanarPoint(new P.Vector3(0, 1, 0), h[0]), t.plane = f, u = f.projectPoint(D.point, new P.Vector3()), l.setPoints([z, u]), c.setPoints([u, D.point])) : a === "y" && (h.length === 1 ? (u = D.point, l.setPoints([z, u])) : (f = f != null ? f : new P.Plane().setFromCoplanarPoints(h[0], h[1], new P.Vector3(0, 1, 0).add(h[0])), t.plane = f, u = f.projectPoint(D.point, new P.Vector3()), l.setPoints([z, u]), c.setPoints([u, D.point])));
51029
51038
  };
51030
- return t.on("select", M), t.on("intersectionUpdate", k), t.on("disable", () => {
51031
- if (t.off("select", M), t.off("intersectionUpdate", k), t.plane = null, i.remove(l), i.remove(c), h.length < 2)
51039
+ return t.on("select", E), t.on("intersectionUpdate", k), t.on("disable", () => {
51040
+ if (t.off("select", E), t.off("intersectionUpdate", k), t.plane = null, i.remove(l), i.remove(c), h.length < 2)
51032
51041
  return i.remove(n), r(new Error("Cancelled"));
51033
51042
  o();
51034
51043
  }), {
@@ -51280,7 +51289,7 @@ function Ou(n, t, e) {
51280
51289
  }
51281
51290
  t.enable(), l && t.setAdherePoints([]);
51282
51291
  const v = [];
51283
- let A, w, M = !1, k;
51292
+ let A, w, E = !1, k;
51284
51293
  const L = [], D = () => v.length > 0, j = () => L.length > 0, z = () => {
51285
51294
  var te;
51286
51295
  D() && (L.push(v.pop()), C(k), p(), (te = e == null ? void 0 : e.onUndo) == null || te.call(e), t.pointSelectorHelper && t.pointSelectorHelper.magnifier && t.pointSelectorHelper.magnifier.render());
@@ -51291,7 +51300,7 @@ function Ou(n, t, e) {
51291
51300
  var Se;
51292
51301
  L.length = 0;
51293
51302
  let le = v.length === 0 ? te.point : A.clone();
51294
- l && (le = le.clone().setY(h)), v.push(le), n.setPoints(v, { closed: !1 }), p(), (Se = e == null ? void 0 : e.onPointPlaced) == null || Se.call(e, v), M && (I(), s());
51303
+ l && (le = le.clone().setY(h)), v.push(le), n.setPoints(v, { closed: !1 }), p(), (Se = e == null ? void 0 : e.onPointPlaced) == null || Se.call(e, v), E && (I(), s());
51295
51304
  }, C = (te) => {
51296
51305
  const le = () => {
51297
51306
  u.setPoints([]), f.setPoints([]), n.setPoints(v), t.pointSelectorHelper && t.pointSelectorHelper.magnifier && t.pointSelectorHelper.magnifier.render();
@@ -51320,15 +51329,15 @@ function Ou(n, t, e) {
51320
51329
  }
51321
51330
  } else
51322
51331
  (ue.distanceTo(A) < 0.2 || ue.distanceTo(te.point) < 0.2) && (Te = !0);
51323
- Te ? (A = ue, te.point.copy(ue), t.pointSelectorHelper.updateWithIntersect(te, { emitEvent: !1 }), M = !0) : M = !1, u.setPoints([Se, A]), f.setPoints([A, te.point]);
51332
+ Te ? (A = ue, te.point.copy(ue), t.pointSelectorHelper.updateWithIntersect(te, { emitEvent: !1 }), E = !0) : E = !1, u.setPoints([Se, A]), f.setPoints([A, te.point]);
51324
51333
  }
51325
51334
  v.length >= 2 ? (n.setPoints([...v, A], { closed: !1 }), n.line.setPoints(n.points.slice(0, -1)), n.isBlank ? (t.cursorError = !0, u.setStyle({ lineColor: 16734553 }), f.setStyle({ lineColor: 16734553 })) : (t.cursorError = !1, u.setStyle({ lineColor: n.lineColor }), f.setStyle({ lineColor: n.lineColor }))) : n.setPoints([]), p();
51326
51335
  }, I = () => {
51327
- t.off("select", b), t.off("intersectionUpdate", C), t.off("disable", E), t.plane = null, t.disable(), r == null || r.remove(u, f), g();
51328
- }, E = () => {
51336
+ t.off("select", b), t.off("intersectionUpdate", C), t.off("disable", M), t.plane = null, t.disable(), r == null || r.remove(u, f), g();
51337
+ }, M = () => {
51329
51338
  I(), r == null || r.remove(n, f, u), g(), o(new Error("Cancelled"));
51330
51339
  };
51331
- return t.on("select", b), t.on("intersectionUpdate", C), t.on("disable", E), {
51340
+ return t.on("select", b), t.on("intersectionUpdate", C), t.on("disable", M), {
51332
51341
  finished: i,
51333
51342
  canUndo: D,
51334
51343
  canRedo: j,
@@ -51612,10 +51621,10 @@ class zs extends fi {
51612
51621
  this.five.needsRender = !0;
51613
51622
  };
51614
51623
  const w = 3e3;
51615
- let M = 0;
51624
+ let E = 0;
51616
51625
  const k = Nv.shared.add((L, D) => {
51617
- M += D;
51618
- let j = M / w;
51626
+ E += D;
51627
+ let j = E / w;
51619
51628
  j > 1 && (j = 1);
51620
51629
  let z = Math.abs((j - 0.5) * 2);
51621
51630
  z = z * 2 - 0.5;
@@ -51966,11 +51975,11 @@ function Gx(n, t) {
51966
51975
  }), e;
51967
51976
  }
51968
51977
  function Wx(n, t, e) {
51969
- var M;
51978
+ var E;
51970
51979
  const { promise: i, reject: s, resolve: o } = Gs(), r = n.parent;
51971
51980
  if (!r)
51972
51981
  return s(new Error("No container"));
51973
- const a = (M = e == null ? void 0 : e.limit) != null ? M : "none", l = new $n(ce(V({}, n.style), { dashed: !0 })), c = new $n(ce(V({}, n.style), { dashed: !0, lengthEnable: !1 })), h = new $n(ce(V({}, n.style), { dashed: !1, lengthEnable: !1 }));
51982
+ const a = (E = e == null ? void 0 : e.limit) != null ? E : "none", l = new $n(ce(V({}, n.style), { dashed: !0 })), c = new $n(ce(V({}, n.style), { dashed: !0, lengthEnable: !1 })), h = new $n(ce(V({}, n.style), { dashed: !1, lengthEnable: !1 }));
51974
51983
  r.add(l, h, c), t.enable();
51975
51984
  const u = [];
51976
51985
  let f = new P.Vector3(), m = new P.Vector3();
@@ -52003,8 +52012,8 @@ function Wx(n, t, e) {
52003
52012
  r.remove(l);
52004
52013
  const z = k.raycaster.ray.intersectPlane(p, new P.Vector3()), B = u[0].distanceTo(u[1]) / 2, b = new P.Vector3().lerpVectors(u[0], u[1], 0.5), C = new P.Vector3().subVectors(z, b).normalize();
52005
52014
  f = new P.Vector3().addVectors(b, C.multiplyScalar(B));
52006
- const I = [u[0], f, u[1]], E = kv(I, lt.modules.five.camera.position);
52007
- n.setPoints(E);
52015
+ const I = [u[0], f, u[1]], M = kv(I, lt.modules.five.camera.position);
52016
+ n.setPoints(M);
52008
52017
  return;
52009
52018
  }
52010
52019
  }, A = () => {
@@ -52015,11 +52024,11 @@ function Wx(n, t, e) {
52015
52024
  return t.on("select", g), t.on("intersectionUpdate", v), t.on("disable", w), i;
52016
52025
  }
52017
52026
  function Ux(n, t, e) {
52018
- var M;
52027
+ var E;
52019
52028
  const { promise: i, reject: s, resolve: o } = Gs(), r = n.parent;
52020
52029
  if (!r)
52021
52030
  return s(new Error("No container"));
52022
- const a = (M = e == null ? void 0 : e.limit) != null ? M : "none", l = new $n(ce(V({}, n.style), { dashed: !0 })), c = new $n(ce(V({}, n.style), { dashed: !0, lengthEnable: !1 })), h = new $n(ce(V({}, n.style), { dashed: !1, lengthEnable: !1 }));
52031
+ const a = (E = e == null ? void 0 : e.limit) != null ? E : "none", l = new $n(ce(V({}, n.style), { dashed: !0 })), c = new $n(ce(V({}, n.style), { dashed: !0, lengthEnable: !1 })), h = new $n(ce(V({}, n.style), { dashed: !1, lengthEnable: !1 }));
52023
52032
  r.add(l, h, c), t.enable(), t.setAdherePoints(Gx(t.five, { excludes: [n] }));
52024
52033
  const u = [];
52025
52034
  let f = new P.Vector3(), m = new P.Vector3();
@@ -52053,8 +52062,8 @@ function Ux(n, t, e) {
52053
52062
  c.setPoints([(B = k.originalPoint) != null ? B : k.point, k.point]);
52054
52063
  const b = new P.Vector3().crossVectors(u[0].clone().sub(u[1]), p.normal).normalize();
52055
52064
  f = new P.Line3(u[1].clone().add(b), u[1].clone().sub(b)).closestPointToPoint(k.point, !1, new P.Vector3());
52056
- const I = [u[0], u[1], f], E = kv(I, lt.modules.five.camera.position);
52057
- n.setPoints(E);
52065
+ const I = [u[0], u[1], f], M = kv(I, lt.modules.five.camera.position);
52066
+ n.setPoints(M);
52058
52067
  return;
52059
52068
  }
52060
52069
  }, A = () => {
@@ -52366,8 +52375,8 @@ function Lv(n, t) {
52366
52375
  const g = es({
52367
52376
  raycaster: p.raycaster,
52368
52377
  line: new P.Line3(r, a)
52369
- }), A = new P.Plane().setFromNormalAndCoplanarPoint(n.normal, n.bottomCenter).projectPoint(g, new P.Vector3()), w = g.clone().sub(A), M = n.bottomCenter.clone().add(w);
52370
- g && n.setTopCenter(M);
52378
+ }), A = new P.Plane().setFromNormalAndCoplanarPoint(n.normal, n.bottomCenter).projectPoint(g, new P.Vector3()), w = g.clone().sub(A), E = n.bottomCenter.clone().add(w);
52379
+ g && n.setTopCenter(E);
52371
52380
  }, f = () => {
52372
52381
  t.off("select", h), t.off("intersectionUpdate", u), t.off("disable", m), e.remove(i), t.disable();
52373
52382
  }, m = () => {
@@ -52642,7 +52651,7 @@ function jv(n, t, e) {
52642
52651
  g() && (p.push(h.pop()), n.setPoints(h), k(m), t.pointSelectorHelper.magnifier.render());
52643
52652
  }, w = () => {
52644
52653
  v() && (h.push(p.pop()), n.setPoints(h), k(m), t.pointSelectorHelper.magnifier.render());
52645
- }, M = (z) => {
52654
+ }, E = (z) => {
52646
52655
  if (!z)
52647
52656
  return;
52648
52657
  p.length = 0;
@@ -52662,11 +52671,11 @@ function jv(n, t, e) {
52662
52671
  clampToLine: !1
52663
52672
  }), c.setPoints([])) : (u = new P.Line3(h[0].clone(), new P.Vector3(0, 1, 0).add(h[0])).closestPointToPoint(z.point, !1, new P.Vector3()), c.setPoints([u, z.point])), l.setPoints([b, u]));
52664
52673
  }, L = () => {
52665
- t.off("select", M), t.off("intersectionUpdate", k), t.off("disable", D), t.plane = null, t.disable(), i == null || i.remove(l, c);
52674
+ t.off("select", E), t.off("intersectionUpdate", k), t.off("disable", D), t.plane = null, t.disable(), i == null || i.remove(l, c);
52666
52675
  }, D = () => {
52667
52676
  L(), h.length !== 2 && (i == null || i.remove(n)), r(new Error("Cancelled"));
52668
52677
  };
52669
- return t.on("select", M), t.on("intersectionUpdate", k), t.on("disable", D), {
52678
+ return t.on("select", E), t.on("intersectionUpdate", k), t.on("disable", D), {
52670
52679
  finished: s,
52671
52680
  canUndo: g,
52672
52681
  canRedo: v,
@@ -53210,10 +53219,10 @@ class eS extends kn {
53210
53219
  case "box": {
53211
53220
  const r = new zs({ five: this.five });
53212
53221
  Fe(s.id) && (r.uuid = s.id.toString());
53213
- const { start: a, end: l, rotation: c = [0, 0, 0, 0] } = s.object_data, h = new Ae().fromArray(a), u = new Ae().fromArray(l), f = new Xn().fromArray(c), m = new Es().setFromEuler(f), p = m.clone().inverse(), g = new Ae().lerpVectors(h, u, 0.5), v = g.clone().negate(), A = h.clone().add(v).applyQuaternion(p), w = u.clone().add(v).applyQuaternion(p), M = new bA(A.clone().max(w), A.clone().min(w));
53222
+ const { start: a, end: l, rotation: c = [0, 0, 0, 0] } = s.object_data, h = new Ae().fromArray(a), u = new Ae().fromArray(l), f = new Xn().fromArray(c), m = new Es().setFromEuler(f), p = m.clone().inverse(), g = new Ae().lerpVectors(h, u, 0.5), v = g.clone().negate(), A = h.clone().add(v).applyQuaternion(p), w = u.clone().add(v).applyQuaternion(p), E = new bA(A.clone().max(w), A.clone().min(w));
53214
53223
  return r.setPoints({
53215
- points: [Yn(M, 2), Yn(M, 3), Yn(M, 7), Yn(M, 6)],
53216
- heightPoint: Yn(M, 1)
53224
+ points: [Yn(E, 2), Yn(E, 3), Yn(E, 7), Yn(E, 6)],
53225
+ heightPoint: Yn(E, 1)
53217
53226
  }), r.position.copy(g), r.quaternion.copy(m), r.setStyle(i(s)), new Em({
53218
53227
  five: this.five,
53219
53228
  tagWrapper: this.tagWrapper,