@realsee/dnalogel 2.1.0 → 2.1.2-alpha.0

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 (521) hide show
  1. package/components/index.js +242 -569
  2. package/dist/index.cjs.js +58 -73
  3. package/dist/index.es.js +7846 -12962
  4. package/dist/index.js +7846 -12962
  5. package/dist/index.umd.js +46 -61
  6. package/docs/assets/highlight.css +3 -3
  7. package/docs/assets/main.js +4 -2
  8. package/docs/assets/search.js +1 -1
  9. package/docs/assets/style.css +462 -619
  10. package/docs/classes/CruisePluginController.html +397 -23
  11. package/docs/classes/Magnifier.html +187 -9
  12. package/docs/classes/ModelRoomLabelController.html +149 -11
  13. package/docs/classes/Object3DHelperController.html +356 -0
  14. package/docs/classes/PaintBrush.html +260 -0
  15. package/docs/classes/PanoTagPluginController.html +940 -0
  16. package/docs/classes/Util.BetterTween.html +134 -0
  17. package/docs/classes/Util.FivePointSelector.html +144 -0
  18. package/docs/classes/Util.Interval.html +158 -0
  19. package/docs/classes/Util.Magnifier.html +196 -0
  20. package/docs/classes/Util.PointDomHelper.html +135 -0
  21. package/docs/classes/Util.PointHelper.html +127 -0
  22. package/docs/classes/Util.Rectangle.html +181 -0
  23. package/docs/enums/CameraMovementEffect.html +70 -3
  24. package/docs/enums/ContentType.html +116 -0
  25. package/docs/enums/DIRECTION.html +81 -1
  26. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +81 -1
  27. package/docs/enums/DimensionType.html +67 -0
  28. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +74 -1
  29. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +81 -1
  30. package/docs/enums/LinkType.html +67 -0
  31. package/docs/enums/PaintBrushTypeEnum.html +74 -0
  32. package/docs/enums/PointType.html +67 -0
  33. package/docs/enums/Rotation.html +77 -3
  34. package/docs/functions/CSS3DRenderPlugin.html +233 -0
  35. package/docs/functions/CameraMovementPlugin.html +237 -0
  36. package/docs/functions/CruisePlugin.html +233 -0
  37. package/docs/functions/GuideLinePlugin.html +235 -0
  38. package/docs/functions/ItemLabelPlugin.html +235 -0
  39. package/docs/functions/MapviewFloorplanPlugin.html +235 -0
  40. package/docs/functions/ModelChassisCompassPlugin.html +237 -0
  41. package/docs/functions/ModelEntryDoorGuidePlugin.html +237 -0
  42. package/docs/functions/ModelFloorplanPlugin.html +235 -0
  43. package/docs/functions/ModelItemLabelPlugin.html +235 -0
  44. package/docs/functions/ModelRoomLabelPlugin.html +233 -0
  45. package/docs/functions/ModelTVVideoPlugin.html +235 -0
  46. package/docs/functions/ModelViewPlugin.html +237 -0
  47. package/docs/functions/Object3DHelperPlugin.html +233 -0
  48. package/docs/functions/PanoCompassPlugin.html +235 -0
  49. package/docs/functions/PanoCursorRaycasterPlugin.html +238 -0
  50. package/docs/functions/PanoDoorLabelPlugin.html +235 -0
  51. package/docs/functions/PanoFloorplanRadarPlugin.html +235 -0
  52. package/docs/functions/PanoMeasurePlugin.html +235 -0
  53. package/docs/functions/PanoRulerPlugin.html +237 -0
  54. package/docs/functions/PanoRulerProPlugin.html +237 -0
  55. package/docs/functions/PanoSpatialTagPlugin.html +237 -0
  56. package/docs/functions/PanoTagPlugin.html +249 -0
  57. package/docs/functions/TopviewFloorplanPlugin.html +235 -0
  58. package/docs/functions/Util.getCoordsFromClient.html +78 -0
  59. package/docs/functions/Util.getCoordsFromElement.html +78 -0
  60. package/docs/functions/Util.getFrameTime.html +70 -0
  61. package/docs/functions/Util.getIntersectFromRelativePosition.html +78 -0
  62. package/docs/functions/Util.getRaycasterFromFivePointer.html +78 -0
  63. package/docs/functions/Util.isNil.html +79 -0
  64. package/docs/functions/Util.nextFrame.html +73 -0
  65. package/docs/functions/Util.notNil.html +78 -0
  66. package/docs/functions/Util.requestAnimationFrameInterval.html +98 -0
  67. package/docs/functions/Util.tweenProgress.html +84 -0
  68. package/docs/functions/pluginFlag.html +233 -0
  69. package/docs/index.html +220 -2
  70. package/docs/interfaces/CSS3DRenderPluginEventMap.html +205 -0
  71. package/docs/interfaces/CSS3DRenderPluginState.html +85 -0
  72. package/docs/interfaces/CameraMovementPluginExportType.html +111 -17
  73. package/docs/interfaces/ContentTypeMap.html +212 -0
  74. package/docs/interfaces/FloorplanBounding.html +89 -10
  75. package/docs/interfaces/FloorplanData.html +95 -3
  76. package/docs/interfaces/FloorplanEntrance.html +114 -15
  77. package/docs/interfaces/FloorplanExtraObject.html +108 -7
  78. package/docs/interfaces/FloorplanExtraObject3D.html +99 -3
  79. package/docs/interfaces/FloorplanFloorData.html +88 -3
  80. package/docs/interfaces/FloorplanImagePosition.html +74 -3
  81. package/docs/interfaces/FloorplanObserver.html +92 -5
  82. package/docs/interfaces/FloorplanOutlineItem.html +88 -3
  83. package/docs/interfaces/FloorplanPosition.html +74 -3
  84. package/docs/interfaces/FloorplanRoomItem.html +134 -17
  85. package/docs/interfaces/FloorplanRoomLabelItem.html +78 -7
  86. package/docs/interfaces/FloorplanServerBounding.html +89 -10
  87. package/docs/interfaces/FloorplanServerComputedData.html +92 -1
  88. package/docs/interfaces/FloorplanServerData.html +74 -3
  89. package/docs/interfaces/FloorplanServerDoorItem.html +92 -1
  90. package/docs/interfaces/FloorplanServerDoorPosition.html +78 -1
  91. package/docs/interfaces/FloorplanServerEntrance.html +114 -15
  92. package/docs/interfaces/FloorplanServerFloorData.html +88 -3
  93. package/docs/interfaces/FloorplanServerImagePosition.html +74 -3
  94. package/docs/interfaces/FloorplanServerObserver.html +92 -5
  95. package/docs/interfaces/FloorplanServerOutlineItem.html +88 -3
  96. package/docs/interfaces/FloorplanServerPosition.html +74 -3
  97. package/docs/interfaces/FloorplanServerRoomItem.html +145 -20
  98. package/docs/interfaces/FloorplanServerRoomLabelItem.html +78 -7
  99. package/docs/interfaces/ItemLabelPluginData.html +64 -1
  100. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +149 -1
  101. package/docs/interfaces/ItemLabelPluginParametersType.html +85 -1
  102. package/docs/interfaces/LineJson.html +71 -1
  103. package/docs/interfaces/ModelChassisCompassPluginData.html +71 -1
  104. package/docs/interfaces/ModelChassisCompassPluginExportType.html +107 -1
  105. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +71 -1
  106. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +78 -1
  107. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +115 -1
  108. package/docs/interfaces/ModelItemLabelPluginData.html +64 -1
  109. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +149 -1
  110. package/docs/interfaces/ModelItemLabelPluginParametersType.html +71 -1
  111. package/docs/interfaces/ModelRoomLabelPluginData.html +64 -1
  112. package/docs/interfaces/ModelTVVideoPluginData.html +85 -1
  113. package/docs/interfaces/ModelTVVideoPluginExportType.html +109 -1
  114. package/docs/interfaces/ModelTVVideoPluginParameterType.html +64 -1
  115. package/docs/interfaces/ModelViewPluginExportType.html +129 -1
  116. package/docs/interfaces/Object3DHelperState.html +78 -0
  117. package/docs/interfaces/OpenParameter.html +74 -3
  118. package/docs/interfaces/PaintBrushAction.html +118 -0
  119. package/docs/interfaces/PaintBrushConfigs.html +122 -0
  120. package/docs/interfaces/PaintBrushState.html +99 -0
  121. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +186 -11
  122. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +227 -1
  123. package/docs/interfaces/PanoMeasureParameterType.html +128 -5
  124. package/docs/interfaces/PanoRulerPluginExportType.html +138 -1
  125. package/docs/interfaces/PanoRulerPluginOptions.html +87 -1
  126. package/docs/interfaces/PanoRulerPluginParameterType.html +78 -1
  127. package/docs/interfaces/PanoRulerProPluginExportType.html +114 -1
  128. package/docs/interfaces/PanoRulerProPluginOptions.html +84 -1
  129. package/docs/interfaces/PanoRulerProPluginParameterType.html +71 -1
  130. package/docs/interfaces/PanoRulerProPluginState.html +78 -1
  131. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +241 -1
  132. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +230 -1
  133. package/docs/interfaces/PanoSpatialTagPluginData.html +114 -1
  134. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +96 -1
  135. package/docs/interfaces/PanoSpatialTagPluginExportType.html +192 -1
  136. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +92 -1
  137. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +113 -1
  138. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +99 -1
  139. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +92 -1
  140. package/docs/interfaces/Point.html +78 -1
  141. package/docs/interfaces/PointJson.html +78 -1
  142. package/docs/interfaces/Room.html +85 -1
  143. package/docs/interfaces/RoomInfo.html +71 -1
  144. package/docs/interfaces/RoomLabel.html +141 -13
  145. package/docs/interfaces/RoomRules.html +230 -1
  146. package/docs/interfaces/Rooms.html +230 -1
  147. package/docs/interfaces/Scissor.html +100 -0
  148. package/docs/interfaces/TagConfig.html +120 -0
  149. package/docs/interfaces/Tags.html +89 -0
  150. package/docs/interfaces/Util.MagnifierParameter.html +116 -0
  151. package/docs/interfaces/Util.MouseGroupParameter.html +79 -0
  152. package/docs/modules/Util.html +91 -0
  153. package/docs/modules.html +425 -36
  154. package/docs/types/ArrayPosition.html +224 -0
  155. package/docs/types/CSS3DRenderExportType.html +224 -0
  156. package/docs/types/CSS3DRenderPluginExportType.html +224 -0
  157. package/docs/types/CSS3DRenderPluginParameterType.html +224 -0
  158. package/docs/types/Color.html +224 -0
  159. package/docs/types/ContentTypeConfigKey.html +224 -0
  160. package/docs/types/ContentTypeConfigKeyArray.html +224 -0
  161. package/docs/types/Create3DDomContainerReturnType.html +224 -0
  162. package/docs/types/Create3DElementReturnType.html +224 -0
  163. package/docs/types/CruisePluginExportType.html +224 -0
  164. package/docs/types/Direction-1.html +224 -0
  165. package/docs/types/Direction4.html +224 -0
  166. package/docs/types/FloorplanRuleLabels.html +226 -0
  167. package/docs/types/FloorplanServerRuleLabels.html +224 -0
  168. package/docs/types/GuideLinePluginExportType.html +224 -0
  169. package/docs/types/HelperEventMap.html +314 -0
  170. package/docs/types/MapviewFloorplanPluginParameterType.html +224 -0
  171. package/docs/types/MapviewFloorplanPluginReturnType.html +224 -0
  172. package/docs/types/MediaData.html +224 -0
  173. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +224 -0
  174. package/docs/types/ModelFloorplanPluginParameterType.html +224 -0
  175. package/docs/types/ModelFloorplanPluginReturnType.html +224 -0
  176. package/docs/types/ModelRoomLabelPluginParameters.html +224 -0
  177. package/docs/types/ModelRoomLabelPluginReturnType.html +224 -0
  178. package/docs/types/MoveArgs.html +226 -0
  179. package/docs/types/MoveOpts.html +226 -0
  180. package/docs/types/Object3DHelperEventMap.html +317 -0
  181. package/docs/types/ObjectFit.html +224 -0
  182. package/docs/types/PaintBrushEventMap.html +255 -0
  183. package/docs/types/PanoCompassPluginData.html +224 -0
  184. package/docs/types/PanoCompassPluginExportType.html +224 -0
  185. package/docs/types/PanoCompassPluginParameterType.html +224 -0
  186. package/docs/types/PanoFloorplanRadarPluginParameterType.html +224 -0
  187. package/docs/types/PanoFloorplanRadarPluginReturnType.html +224 -0
  188. package/docs/types/PanoMeasurePluginEvent.html +224 -0
  189. package/docs/types/PanoMeasureReturnType.html +224 -0
  190. package/docs/types/PanoSpatialTagPluginId.html +224 -0
  191. package/docs/types/PanoTagPluginExportInterface.html +224 -0
  192. package/docs/types/PanoTagPluginParamsInterface.html +224 -0
  193. package/docs/types/PlaneTag.html +233 -0
  194. package/docs/types/PointTag.html +235 -0
  195. package/docs/types/Position.html +224 -0
  196. package/docs/types/RotateArgs.html +226 -0
  197. package/docs/types/RotateOpts.html +226 -0
  198. package/docs/types/RuleLabelsKey.html +224 -0
  199. package/docs/types/RuleLabelsValue.html +224 -0
  200. package/docs/types/Tag.html +235 -0
  201. package/docs/types/Tag2D.html +233 -0
  202. package/docs/types/Tag3D.html +233 -0
  203. package/docs/types/TagId.html +224 -0
  204. package/docs/types/TopviewFloorplanPluginParameterType.html +224 -0
  205. package/docs/types/TopviewFloorplanPluginReturnType.html +224 -0
  206. package/docs/variables/FLOOR_TYPE_MAP.html +226 -0
  207. package/docs/variables/PLUGIN.html +224 -0
  208. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +226 -0
  209. package/docs/variables/ROOM_TYPE_MAP.html +226 -0
  210. package/docs/variables/VERSION.html +224 -0
  211. package/docs/variables/itemLabelPluginServerParams.html +231 -0
  212. package/docs/variables/modelItemLabelPluginServerParams.html +231 -0
  213. package/docs/variables/modelRoomLabelPluginServerParams.html +231 -0
  214. package/libs/CSS3DRenderPlugin/CSS3DRender.d.ts +2 -2
  215. package/libs/CSS3DRenderPlugin/CSS3DRender.js +150 -119
  216. package/libs/CSS3DRenderPlugin/Controller.d.ts +3 -3
  217. package/libs/CSS3DRenderPlugin/Controller.js +45 -42
  218. package/libs/CSS3DRenderPlugin/index.js +4 -12
  219. package/libs/CameraMovementPlugin/CameraMovementPlugin.js +71 -54
  220. package/libs/CruisePlugin/Controller.js +331 -287
  221. package/libs/CruisePlugin/index.js +6 -25
  222. package/libs/CruisePlugin/utils/coordinatesAngle.js +2 -3
  223. package/libs/CruisePlugin/utils/safeCall.js +21 -5
  224. package/libs/GuideLinePlugin/Controller.js +94 -62
  225. package/libs/GuideLinePlugin/index.js +4 -13
  226. package/libs/GuideLinePlugin/utils/getLineGeometries.js +49 -103
  227. package/libs/GuideLinePlugin/utils/polyline-normals.d.ts +3 -0
  228. package/libs/ItemLabelPlugin/ItemLabelComponent.js +200 -183
  229. package/libs/ItemLabelPlugin/ItemLabelItem.js +27 -27
  230. package/libs/ItemLabelPlugin/Plugin.js +20 -29
  231. package/libs/ItemLabelPlugin/index.js +5 -18
  232. package/libs/ItemLabelPlugin/utils/parseData.js +15 -4
  233. package/libs/ItemLabelPlugin/utils/transform2RenderData.js +16 -6
  234. package/libs/ModelChassisCompassPlugin/Plugin.js +54 -38
  235. package/libs/ModelEntryDoorGuidePlugin/Plugin.js +58 -46
  236. package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +145 -129
  237. package/libs/ModelItemLabelPlugin/ItemLabelItem.js +18 -18
  238. package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +19 -24
  239. package/libs/ModelItemLabelPlugin/index.js +5 -14
  240. package/libs/ModelItemLabelPlugin/utils/parseData.js +16 -6
  241. package/libs/ModelRoomLabelPlugin/Controller.js +2 -6
  242. package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +22 -22
  243. package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +105 -94
  244. package/libs/ModelRoomLabelPlugin/index.js +4 -10
  245. package/libs/ModelTVVideoPlugin/Plugin.js +101 -94
  246. package/libs/ModelViewPlugin/Plugin.js +71 -60
  247. package/libs/Object3DHelperPlugin/Controller.d.ts +1 -1
  248. package/libs/Object3DHelperPlugin/Controller.js +79 -71
  249. package/libs/Object3DHelperPlugin/FiveControllerWrapper.d.ts +1 -1
  250. package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +8 -11
  251. package/libs/Object3DHelperPlugin/index.js +8 -40
  252. package/libs/PanoCompassPlugin/Controller.js +91 -72
  253. package/libs/PanoCompassPlugin/index.js +4 -22
  254. package/libs/PanoCursorRaycasterPlugin/index.js +8 -9
  255. package/libs/PanoDoorLabelPlugin/BaseController.js +42 -33
  256. package/libs/PanoDoorLabelPlugin/Controller.js +84 -80
  257. package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +16 -16
  258. package/libs/PanoDoorLabelPlugin/index.d.ts +1 -1
  259. package/libs/PanoDoorLabelPlugin/index.js +3 -12
  260. package/libs/PanoDoorLabelPlugin/utils.d.ts +2 -2
  261. package/libs/PanoMeasurePlugin/Controller/BaseController.js +14 -24
  262. package/libs/PanoMeasurePlugin/Controller/EditController.js +8 -20
  263. package/libs/PanoMeasurePlugin/Controller/MixedController.js +15 -28
  264. package/libs/PanoMeasurePlugin/Controller/ViewController.js +15 -26
  265. package/libs/PanoMeasurePlugin/Controller/WatchController.js +28 -43
  266. package/libs/PanoMeasurePlugin/Controller/index.d.ts +1 -1
  267. package/libs/PanoMeasurePlugin/Controller/index.js +43 -70
  268. package/libs/PanoMeasurePlugin/Model/index.d.ts +4 -4
  269. package/libs/PanoMeasurePlugin/Model/index.js +38 -45
  270. package/libs/PanoMeasurePlugin/Model/line.d.ts +1 -1
  271. package/libs/PanoMeasurePlugin/Model/line.js +10 -14
  272. package/libs/PanoMeasurePlugin/Model/polyline.d.ts +2 -2
  273. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +3 -3
  274. package/libs/PanoMeasurePlugin/Modules/UIController/style.js +16 -24
  275. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +35 -28
  276. package/libs/PanoMeasurePlugin/index.js +6 -55
  277. package/libs/PanoMeasurePlugin/utils/constants.js +29 -16
  278. package/libs/PanoMeasurePlugin/utils/findClosestPoint.d.ts +1 -1
  279. package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +4 -5
  280. package/libs/PanoRulerPlugin/Plugin.js +180 -157
  281. package/libs/PanoRulerProPlugin/Controller.js +70 -51
  282. package/libs/PanoRulerProPlugin/RulerItem.js +55 -45
  283. package/libs/PanoRulerProPlugin/RulerItems.js +124 -125
  284. package/libs/PanoRulerProPlugin/index.js +4 -15
  285. package/libs/PanoSpatialTagPlugin/Components/origins.js +24 -25
  286. package/libs/PanoSpatialTagPlugin/Components/tag.js +23 -23
  287. package/libs/PanoSpatialTagPlugin/Plugin.js +61 -72
  288. package/libs/PanoSpatialTagPlugin/store.d.ts +1 -1
  289. package/libs/PanoSpatialTagPlugin/store.js +1 -2
  290. package/libs/PanoTagPlugin/Components/Common/Arrow.js +47 -47
  291. package/libs/PanoTagPlugin/Components/Common/Audio.js +95 -92
  292. package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +48 -48
  293. package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +40 -41
  294. package/libs/PanoTagPlugin/Components/Common/Media.js +258 -3303
  295. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +60 -60
  296. package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +96 -107
  297. package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +15 -16
  298. package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +22 -23
  299. package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +78 -82
  300. package/libs/PanoTagPlugin/Components/Common/Shadow.js +51 -52
  301. package/libs/PanoTagPlugin/Components/Common/Text.js +84 -937
  302. package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +58 -64
  303. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +35 -34
  304. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +101 -111
  305. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +43 -45
  306. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +123 -96
  307. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +36 -44
  308. package/libs/PanoTagPlugin/Components/Tag/TextTag.js +71 -83
  309. package/libs/PanoTagPlugin/Components/Tag/index.js +130 -149
  310. package/libs/PanoTagPlugin/Components/TagContainer.js +69 -100
  311. package/libs/PanoTagPlugin/Components/TagWrapper.js +86 -116
  312. package/libs/PanoTagPlugin/controller/TagCacheController.js +2 -3
  313. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +5 -5
  314. package/libs/PanoTagPlugin/controller/TagComputer.js +262 -13
  315. package/libs/PanoTagPlugin/controller/index.js +177 -186
  316. package/libs/PanoTagPlugin/index.js +7 -69
  317. package/libs/PanoTagPlugin/utils/checkRange.d.ts +1 -1
  318. package/libs/PanoTagPlugin/utils/resizeObserver.js +1 -1
  319. package/libs/PanoTagPlugin/utils/search.js +9 -27
  320. package/libs/base/BasePluginWithData.js +0 -1
  321. package/libs/components/PaintBrush/Controller.d.ts +2 -2
  322. package/libs/components/PaintBrush/Controller.js +3 -4
  323. package/libs/components/PaintBrush/index.js +2 -9
  324. package/libs/components/PaintBrush/tween.js +7 -11
  325. package/libs/components/PaintBrush/utils.d.ts +1 -1
  326. package/libs/env.d.ts +1 -0
  327. package/libs/floorplan/Components/BaseImage.js +29 -30
  328. package/libs/floorplan/Components/Camera.js +24 -24
  329. package/libs/floorplan/Components/Compass.js +36 -36
  330. package/libs/floorplan/Components/CurrentFloor.js +65 -74
  331. package/libs/floorplan/Components/Main.js +94 -112
  332. package/libs/floorplan/Components/Normalmage.js +21 -21
  333. package/libs/floorplan/Components/RoomHighlight/Room.js +20 -20
  334. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +43 -44
  335. package/libs/floorplan/Components/RoomLabels/RoomLabel.js +60 -59
  336. package/libs/floorplan/Components/RoomLabels/RoomLabels.js +61 -61
  337. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +136 -124
  338. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +21 -21
  339. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +20 -20
  340. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +22 -22
  341. package/libs/floorplan/Components/RuleLabels/RuleItem.js +68 -68
  342. package/libs/floorplan/Components/RuleLabels/RuleLabels.js +40 -40
  343. package/libs/floorplan/Components/SvgImage.js +19 -19
  344. package/libs/floorplan/MapviewFloorplanPlugin/Controller.d.ts +1 -1
  345. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +145 -146
  346. package/libs/floorplan/MapviewFloorplanPlugin/index.js +4 -47
  347. package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +1 -1
  348. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +187 -189
  349. package/libs/floorplan/ModelFloorplanPlugin/index.js +4 -47
  350. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +32 -31
  351. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +56 -60
  352. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +29 -29
  353. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +75 -83
  354. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +92 -74
  355. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -24
  356. package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +1 -1
  357. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +181 -173
  358. package/libs/floorplan/TopviewFloorplanPlugin/index.js +4 -44
  359. package/libs/floorplan/utils/constant.js +1 -2
  360. package/libs/floorplan/utils/correctFiveState.js +48 -30
  361. package/libs/floorplan/utils/formatData.js +58 -36
  362. package/libs/index.js +90 -328
  363. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/get-changed-params.js +29 -0
  364. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/get-params.js +23 -0
  365. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/mount-swiper.js +14 -0
  366. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/params-list.js +120 -0
  367. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/update-swiper.js +36 -0
  368. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/utils.js +32 -0
  369. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/svelte/swiper-slide.js +182 -0
  370. package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/svelte/swiper.js +254 -0
  371. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +2 -5
  372. package/libs/shared-utils/Object3DHelper/Controller/CSS3DScaleController.js +5 -16
  373. package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +16 -24
  374. package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.d.ts +1 -1
  375. package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +15 -23
  376. package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +2 -10
  377. package/libs/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js +27 -29
  378. package/libs/shared-utils/Object3DHelper/Helper/HTML/tipsDom.js +19 -9
  379. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +4 -5
  380. package/libs/shared-utils/Object3DHelper/Helper/OutlineHelper.js +1 -102
  381. package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +8 -14
  382. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +2 -3
  383. package/libs/shared-utils/Object3DHelper/index.js +72 -43
  384. package/libs/shared-utils/Object3DHelper/utils/direction.js +14 -22
  385. package/libs/shared-utils/Object3DHelper/utils/getMouseRaycaster.d.ts +1 -1
  386. package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.d.ts +34 -0
  387. package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.js +1 -1
  388. package/libs/shared-utils/Subscribe.js +1 -1
  389. package/libs/shared-utils/animationFrame/BetterTween.js +24 -4
  390. package/libs/shared-utils/animationFrame/calculateProgress.js +3 -9
  391. package/libs/shared-utils/animationFrame/formatRad.js +1 -3
  392. package/libs/shared-utils/animationFrame/index.js +19 -39
  393. package/libs/shared-utils/animationFrame/tween.js +17 -17
  394. package/libs/shared-utils/filter.js +6 -26
  395. package/libs/shared-utils/five/changeMode.js +34 -16
  396. package/libs/shared-utils/index.js +29 -43
  397. package/libs/shared-utils/math/planimetry.d.ts +5 -5
  398. package/libs/shared-utils/math/planimetry.js +34 -121
  399. package/libs/shared-utils/removeArrayItem.d.ts +1 -1
  400. package/libs/shared-utils/three/Assets/index.js +1 -2
  401. package/libs/shared-utils/three/FivePointSelector.d.ts +1 -1
  402. package/libs/shared-utils/three/FivePointSelector.js +12 -26
  403. package/libs/shared-utils/three/Magnifier.d.ts +2 -2
  404. package/libs/shared-utils/three/Magnifier.js +3 -3
  405. package/libs/shared-utils/three/PointDomHelper.js +27 -35
  406. package/libs/shared-utils/three/PointHelper.js +1 -1
  407. package/libs/shared-utils/three/getIntersect.d.ts +1 -1
  408. package/libs/shared-utils/three/getRaycaster.d.ts +1 -1
  409. package/libs/shared-utils/three/loadTexture.js +25 -7
  410. package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +18 -7
  411. package/libs/shared-utils/to.js +26 -8
  412. package/package.json +45 -28
  413. package/dist/style.css +0 -1
  414. package/docs/assets/icons.css +0 -1043
  415. package/docs/assets/icons.png +0 -0
  416. package/docs/assets/icons@2x.png +0 -0
  417. package/docs/assets/widgets.png +0 -0
  418. package/docs/assets/widgets@2x.png +0 -0
  419. package/docs/interfaces/CSS3DRenderPluginExportType.html +0 -4
  420. package/libs/CSS3DRenderPlugin/typing.js +0 -1
  421. package/libs/CSS3DRenderPlugin/utils/index.js +0 -13
  422. package/libs/CSS3DRenderPlugin/utils/random.js +0 -6
  423. package/libs/CameraMovementPlugin/index.js +0 -15
  424. package/libs/CruisePlugin/typing.js +0 -1
  425. package/libs/GuideLinePlugin/typing.js +0 -1
  426. package/libs/GuideLinePlugin/utils/getPoint.d.ts +0 -3
  427. package/libs/GuideLinePlugin/utils/getPoint.js +0 -18
  428. package/libs/GuideLinePlugin/utils/polyline-normals.d.js +0 -1
  429. package/libs/ItemLabelPlugin/events.type.js +0 -1
  430. package/libs/ModelChassisCompassPlugin/index.js +0 -10
  431. package/libs/ModelEntryDoorGuidePlugin/index.js +0 -11
  432. package/libs/ModelItemLabelPlugin/events.type.js +0 -1
  433. package/libs/ModelRoomLabelPlugin/typings.js +0 -1
  434. package/libs/ModelTVVideoPlugin/index.js +0 -19
  435. package/libs/ModelViewPlugin/index.js +0 -8
  436. package/libs/Object3DHelperPlugin/mocks/addObject3D.d.ts +0 -2
  437. package/libs/Object3DHelperPlugin/mocks/addObject3D.js +0 -1377
  438. package/libs/Object3DHelperPlugin/mocks/objects.d.ts +0 -7
  439. package/libs/Object3DHelperPlugin/mocks/objects.js +0 -47
  440. package/libs/Object3DHelperPlugin/typings.js +0 -1
  441. package/libs/PanoCompassPlugin/typings.js +0 -1
  442. package/libs/PanoDoorLabelPlugin/typings.js +0 -1
  443. package/libs/PanoMeasurePlugin/typings/data.js +0 -1
  444. package/libs/PanoMeasurePlugin/typings/event.type.js +0 -1
  445. package/libs/PanoMeasurePlugin/typings/index.js +0 -1
  446. package/libs/PanoMeasurePlugin/typings/utils.type.d.ts +0 -1
  447. package/libs/PanoMeasurePlugin/typings/utils.type.js +0 -1
  448. package/libs/PanoMeasurePlugin/utils/clearGroup.d.ts +0 -2
  449. package/libs/PanoMeasurePlugin/utils/clearGroup.js +0 -6
  450. package/libs/PanoRulerPlugin/index.js +0 -11
  451. package/libs/PanoRulerPlugin/typings.js +0 -1
  452. package/libs/PanoRulerProPlugin/typings.js +0 -1
  453. package/libs/PanoSpatialTagPlugin/index.js +0 -24
  454. package/libs/PanoSpatialTagPlugin/typings.js +0 -1
  455. package/libs/PanoTagPlugin/Components/Common/TextItem.js +0 -106
  456. package/libs/PanoTagPlugin/typings/controller.js +0 -1
  457. package/libs/PanoTagPlugin/typings/index.js +0 -7
  458. package/libs/PanoTagPlugin/utils/index.js +0 -36
  459. package/libs/TagComputer.2bc444dc.js +0 -315
  460. package/libs/components/index.js +0 -13
  461. package/libs/floorplan/MapviewFloorplanPlugin/typing.js +0 -1
  462. package/libs/floorplan/ModelFloorplanPlugin/typing.js +0 -1
  463. package/libs/floorplan/PanoFloorplanRadarPlugin/typing.js +0 -1
  464. package/libs/floorplan/TopviewFloorplanPlugin/style.d.ts +0 -1
  465. package/libs/floorplan/TopviewFloorplanPlugin/style.js +0 -11
  466. package/libs/floorplan/TopviewFloorplanPlugin/typing.js +0 -1
  467. package/libs/floorplan/index.js +0 -67
  468. package/libs/floorplan/typings/floorplanData.js +0 -1
  469. package/libs/floorplan/typings/index.js +0 -1
  470. package/libs/floorplan/typings/utility.js +0 -1
  471. package/libs/hammer.b5b6115e.js +0 -882
  472. package/libs/index.164f1850.js +0 -641
  473. package/libs/index.6a0eead1.js +0 -12
  474. package/libs/index.ad783a2f.js +0 -31
  475. package/libs/index.dca207cb.js +0 -37
  476. package/libs/index.f2f85d71.js +0 -40
  477. package/libs/index.fd12d787.js +0 -34
  478. package/libs/shared-utils/Object3DHelper/Helper/index.js +0 -30
  479. package/libs/shared-utils/Object3DHelper/typings/Direction.js +0 -1
  480. package/libs/shared-utils/Object3DHelper/typings/Hooks.js +0 -1
  481. package/libs/shared-utils/Object3DHelper/typings/Scissor.js +0 -1
  482. package/libs/shared-utils/Object3DHelper/typings/index.js +0 -1
  483. package/libs/shared-utils/Object3DHelper/utils/filterNotColinearPoints.js +0 -18
  484. package/libs/shared-utils/Object3DHelper/utils/finiteNumber.d.ts +0 -1
  485. package/libs/shared-utils/Object3DHelper/utils/finiteNumber.js +0 -6
  486. package/libs/shared-utils/Object3DHelper/utils/getPoint.js +0 -18
  487. package/libs/shared-utils/Object3DHelper/utils/index.js +0 -29
  488. package/libs/shared-utils/Object3DHelper/utils/negateScale.d.ts +0 -2
  489. package/libs/shared-utils/Object3DHelper/utils/negateScale.js +0 -7
  490. package/libs/shared-utils/Object3DHelper/utils/normalPositionToPositions.js +0 -13
  491. package/libs/shared-utils/Object3DHelper/utils/object3DBoundingPosition.js +0 -5
  492. package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.d.js +0 -4
  493. package/libs/shared-utils/Preloader.d.ts +0 -6
  494. package/libs/shared-utils/Preloader.js +0 -18
  495. package/libs/shared-utils/formatRad.d.ts +0 -7
  496. package/libs/shared-utils/formatRad.js +0 -7
  497. package/libs/shared-utils/getRandomColor.d.ts +0 -1
  498. package/libs/shared-utils/getRandomColor.js +0 -6
  499. package/libs/shared-utils/logger.d.ts +0 -16
  500. package/libs/shared-utils/logger.js +0 -27
  501. package/libs/shared-utils/math/evenNumber.d.ts +0 -3
  502. package/libs/shared-utils/math/evenNumber.js +0 -7
  503. package/libs/shared-utils/math/index.js +0 -6
  504. package/libs/shared-utils/px2rem.d.ts +0 -1
  505. package/libs/shared-utils/px2rem.js +0 -6
  506. package/libs/shared-utils/three/getExtraModelLoader.d.ts +0 -6
  507. package/libs/shared-utils/three/getExtraModelLoader.js +0 -18
  508. package/libs/shared-utils/three/getNormal.d.ts +0 -2
  509. package/libs/shared-utils/three/getNormal.js +0 -7
  510. package/libs/shared-utils/three/getTextureLoader.d.ts +0 -6
  511. package/libs/shared-utils/three/getTextureLoader.js +0 -16
  512. package/libs/shared-utils/three/index.js +0 -33
  513. package/libs/shared-utils/three/loadFbxObj.d.ts +0 -2
  514. package/libs/shared-utils/three/loadFbxObj.js +0 -16
  515. package/libs/shared-utils/vectorTocoordinates.d.ts +0 -7
  516. package/libs/shared-utils/vectorTocoordinates.js +0 -10
  517. package/libs/style.css +0 -1
  518. package/libs/tween.esm.bad2b2b4.js +0 -340
  519. package/libs/typings/math.type.js +0 -1
  520. package/libs/typings/utils.type.d.ts +0 -2
  521. package/libs/typings/utils.type.js +0 -1
@@ -1,941 +1,88 @@
1
- import { S as Ne, i as Ue, s as He, a as We, r as qe, c as Me, n as le, D as Ze, g as xe, F as Qe, e as Je, u as Ke, b as Ge, p as Ye, v as Xe, G as $e } from "../../../index.164f1850.js";
2
- import { notNil as er } from "../../../shared-utils/isNil.js";
1
+ import { SvelteComponent as M, init as x, safe_not_equal as R, append_styles as L, empty as T, insert as j, noop as p, destroy_each as k, detach as D, element as w, text as N, attr as S, append as O, set_data as v, binding_callbacks as C } from "svelte/internal";
2
+ import g from "animejs";
3
+ import { onMount as A } from "svelte";
4
+ import { notNil as B } from "../../../shared-utils/isNil.js";
3
5
  import "three";
4
- import { searchFirstValueSmallThanLastValue as rr } from "../../utils/search.js";
5
- import { RANDON_STRING as ve } from "../../utils/constants.js";
6
- var Ee = {
7
- update: null,
8
- begin: null,
9
- loopBegin: null,
10
- changeBegin: null,
11
- change: null,
12
- changeComplete: null,
13
- loopComplete: null,
14
- complete: null,
15
- loop: 1,
16
- direction: "normal",
17
- autoplay: !0,
18
- timelineOffset: 0
19
- }, Y = {
20
- duration: 1e3,
21
- delay: 0,
22
- endDelay: 0,
23
- easing: "easeOutElastic(1, .5)",
24
- round: 0
25
- }, nr = ["translateX", "translateY", "translateZ", "rotate", "rotateX", "rotateY", "rotateZ", "scale", "scaleX", "scaleY", "scaleZ", "skew", "skewX", "skewY", "perspective", "matrix", "matrix3d"], N = {
26
- CSS: {},
27
- springs: {}
28
- };
29
- function _(e, r, t) {
30
- return Math.min(Math.max(e, r), t);
31
- }
32
- function R(e, r) {
33
- return e.indexOf(r) > -1;
34
- }
35
- function J(e, r) {
36
- return e.apply(null, r);
37
- }
38
- var c = {
39
- arr: function(e) {
40
- return Array.isArray(e);
41
- },
42
- obj: function(e) {
43
- return R(Object.prototype.toString.call(e), "Object");
44
- },
45
- pth: function(e) {
46
- return c.obj(e) && e.hasOwnProperty("totalLength");
47
- },
48
- svg: function(e) {
49
- return e instanceof SVGElement;
50
- },
51
- inp: function(e) {
52
- return e instanceof HTMLInputElement;
53
- },
54
- dom: function(e) {
55
- return e.nodeType || c.svg(e);
56
- },
57
- str: function(e) {
58
- return typeof e == "string";
59
- },
60
- fnc: function(e) {
61
- return typeof e == "function";
62
- },
63
- und: function(e) {
64
- return typeof e > "u";
65
- },
66
- nil: function(e) {
67
- return c.und(e) || e === null;
68
- },
69
- hex: function(e) {
70
- return /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e);
71
- },
72
- rgb: function(e) {
73
- return /^rgb/.test(e);
74
- },
75
- hsl: function(e) {
76
- return /^hsl/.test(e);
77
- },
78
- col: function(e) {
79
- return c.hex(e) || c.rgb(e) || c.hsl(e);
80
- },
81
- key: function(e) {
82
- return !Ee.hasOwnProperty(e) && !Y.hasOwnProperty(e) && e !== "targets" && e !== "keyframes";
83
- }
84
- };
85
- function Te(e) {
86
- var r = /\(([^)]+)\)/.exec(e);
87
- return r ? r[1].split(",").map(function(t) {
88
- return parseFloat(t);
89
- }) : [];
90
- }
91
- function Ie(e, r) {
92
- var t = Te(e), a = _(c.und(t[0]) ? 1 : t[0], 0.1, 100), n = _(c.und(t[1]) ? 100 : t[1], 0.1, 100), u = _(c.und(t[2]) ? 10 : t[2], 0.1, 100), o = _(c.und(t[3]) ? 0 : t[3], 0.1, 100), s = Math.sqrt(n / a), i = u / (2 * Math.sqrt(n * a)), d = i < 1 ? s * Math.sqrt(1 - i * i) : 0, f = 1, l = i < 1 ? (i * s + -o) / d : -o + s;
93
- function p(g) {
94
- var v = r ? r * g / 1e3 : g;
95
- return i < 1 ? v = Math.exp(-v * i * s) * (f * Math.cos(d * v) + l * Math.sin(d * v)) : v = (f + l * v) * Math.exp(-v * s), g === 0 || g === 1 ? g : 1 - v;
96
- }
97
- function y() {
98
- var g = N.springs[e];
99
- if (g)
100
- return g;
101
- for (var v = 1 / 6, M = 0, b = 0; ; )
102
- if (M += v, p(M) === 1) {
103
- if (b++, b >= 16)
104
- break;
105
- } else
106
- b = 0;
107
- var m = M * v * 1e3;
108
- return N.springs[e] = m, m;
109
- }
110
- return r ? p : y;
111
- }
112
- function tr(e) {
113
- return e === void 0 && (e = 10), function(r) {
114
- return Math.ceil(_(r, 1e-6, 1) * e) * (1 / e);
115
- };
116
- }
117
- var ar = function() {
118
- var e = 11, r = 1 / (e - 1);
119
- function t(f, l) {
120
- return 1 - 3 * l + 3 * f;
121
- }
122
- function a(f, l) {
123
- return 3 * l - 6 * f;
124
- }
125
- function n(f) {
126
- return 3 * f;
127
- }
128
- function u(f, l, p) {
129
- return ((t(l, p) * f + a(l, p)) * f + n(l)) * f;
130
- }
131
- function o(f, l, p) {
132
- return 3 * t(l, p) * f * f + 2 * a(l, p) * f + n(l);
133
- }
134
- function s(f, l, p, y, g) {
135
- var v, M, b = 0;
136
- do
137
- M = l + (p - l) / 2, v = u(M, y, g) - f, v > 0 ? p = M : l = M;
138
- while (Math.abs(v) > 1e-7 && ++b < 10);
139
- return M;
140
- }
141
- function i(f, l, p, y) {
142
- for (var g = 0; g < 4; ++g) {
143
- var v = o(l, p, y);
144
- if (v === 0)
145
- return l;
146
- var M = u(l, p, y) - f;
147
- l -= M / v;
148
- }
149
- return l;
150
- }
151
- function d(f, l, p, y) {
152
- if (!(0 <= f && f <= 1 && 0 <= p && p <= 1))
153
- return;
154
- var g = new Float32Array(e);
155
- if (f !== l || p !== y)
156
- for (var v = 0; v < e; ++v)
157
- g[v] = u(v * r, f, p);
158
- function M(b) {
159
- for (var m = 0, h = 1, I = e - 1; h !== I && g[h] <= b; ++h)
160
- m += r;
161
- --h;
162
- var F = (b - g[h]) / (g[h + 1] - g[h]), E = m + F * r, k = o(E, f, p);
163
- return k >= 1e-3 ? i(b, E, f, p) : k === 0 ? E : s(b, m, m + r, f, p);
164
- }
165
- return function(b) {
166
- return f === l && p === y || b === 0 || b === 1 ? b : u(M(b), l, y);
167
- };
168
- }
169
- return d;
170
- }(), we = function() {
171
- var e = { linear: function() {
172
- return function(a) {
173
- return a;
174
- };
175
- } }, r = {
176
- Sine: function() {
177
- return function(a) {
178
- return 1 - Math.cos(a * Math.PI / 2);
179
- };
180
- },
181
- Circ: function() {
182
- return function(a) {
183
- return 1 - Math.sqrt(1 - a * a);
184
- };
185
- },
186
- Back: function() {
187
- return function(a) {
188
- return a * a * (3 * a - 2);
189
- };
190
- },
191
- Bounce: function() {
192
- return function(a) {
193
- for (var n, u = 4; a < ((n = Math.pow(2, --u)) - 1) / 11; )
194
- ;
195
- return 1 / Math.pow(4, 3 - u) - 7.5625 * Math.pow((n * 3 - 2) / 22 - a, 2);
196
- };
197
- },
198
- Elastic: function(a, n) {
199
- a === void 0 && (a = 1), n === void 0 && (n = 0.5);
200
- var u = _(a, 1, 10), o = _(n, 0.1, 2);
201
- return function(s) {
202
- return s === 0 || s === 1 ? s : -u * Math.pow(2, 10 * (s - 1)) * Math.sin((s - 1 - o / (Math.PI * 2) * Math.asin(1 / u)) * (Math.PI * 2) / o);
203
- };
204
- }
205
- }, t = ["Quad", "Cubic", "Quart", "Quint", "Expo"];
206
- return t.forEach(function(a, n) {
207
- r[a] = function() {
208
- return function(u) {
209
- return Math.pow(u, n + 2);
210
- };
211
- };
212
- }), Object.keys(r).forEach(function(a) {
213
- var n = r[a];
214
- e["easeIn" + a] = n, e["easeOut" + a] = function(u, o) {
215
- return function(s) {
216
- return 1 - n(u, o)(1 - s);
217
- };
218
- }, e["easeInOut" + a] = function(u, o) {
219
- return function(s) {
220
- return s < 0.5 ? n(u, o)(s * 2) / 2 : 1 - n(u, o)(s * -2 + 2) / 2;
221
- };
222
- }, e["easeOutIn" + a] = function(u, o) {
223
- return function(s) {
224
- return s < 0.5 ? (1 - n(u, o)(1 - s * 2)) / 2 : (n(u, o)(s * 2 - 1) + 1) / 2;
225
- };
226
- };
227
- }), e;
228
- }();
229
- function X(e, r) {
230
- if (c.fnc(e))
231
- return e;
232
- var t = e.split("(")[0], a = we[t], n = Te(e);
233
- switch (t) {
234
- case "spring":
235
- return Ie(e, r);
236
- case "cubicBezier":
237
- return J(ar, n);
238
- case "steps":
239
- return J(tr, n);
240
- default:
241
- return J(a, n);
242
- }
243
- }
244
- function De(e) {
245
- try {
246
- var r = document.querySelectorAll(e);
247
- return r;
248
- } catch {
249
- return;
250
- }
251
- }
252
- function U(e, r) {
253
- for (var t = e.length, a = arguments.length >= 2 ? arguments[1] : void 0, n = [], u = 0; u < t; u++)
254
- if (u in e) {
255
- var o = e[u];
256
- r.call(a, o, u, e) && n.push(o);
257
- }
258
- return n;
259
- }
260
- function H(e) {
261
- return e.reduce(function(r, t) {
262
- return r.concat(c.arr(t) ? H(t) : t);
263
- }, []);
264
- }
265
- function de(e) {
266
- return c.arr(e) ? e : (c.str(e) && (e = De(e) || e), e instanceof NodeList || e instanceof HTMLCollection ? [].slice.call(e) : [e]);
267
- }
268
- function $(e, r) {
269
- return e.some(function(t) {
270
- return t === r;
271
- });
272
- }
273
- function ee(e) {
274
- var r = {};
275
- for (var t in e)
276
- r[t] = e[t];
277
- return r;
278
- }
279
- function K(e, r) {
280
- var t = ee(e);
281
- for (var a in e)
282
- t[a] = r.hasOwnProperty(a) ? r[a] : e[a];
283
- return t;
284
- }
285
- function W(e, r) {
286
- var t = ee(e);
287
- for (var a in r)
288
- t[a] = c.und(e[a]) ? r[a] : e[a];
289
- return t;
290
- }
291
- function ir(e) {
292
- var r = /rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(e);
293
- return r ? "rgba(" + r[1] + ",1)" : e;
294
- }
295
- function ur(e) {
296
- var r = /^#?([a-f\d])([a-f\d])([a-f\d])$/i, t = e.replace(r, function(s, i, d, f) {
297
- return i + i + d + d + f + f;
298
- }), a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t), n = parseInt(a[1], 16), u = parseInt(a[2], 16), o = parseInt(a[3], 16);
299
- return "rgba(" + n + "," + u + "," + o + ",1)";
300
- }
301
- function or(e) {
302
- var r = /hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e) || /hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e), t = parseInt(r[1], 10) / 360, a = parseInt(r[2], 10) / 100, n = parseInt(r[3], 10) / 100, u = r[4] || 1;
303
- function o(p, y, g) {
304
- return g < 0 && (g += 1), g > 1 && (g -= 1), g < 1 / 6 ? p + (y - p) * 6 * g : g < 1 / 2 ? y : g < 2 / 3 ? p + (y - p) * (2 / 3 - g) * 6 : p;
305
- }
306
- var s, i, d;
307
- if (a == 0)
308
- s = i = d = n;
309
- else {
310
- var f = n < 0.5 ? n * (1 + a) : n + a - n * a, l = 2 * n - f;
311
- s = o(l, f, t + 1 / 3), i = o(l, f, t), d = o(l, f, t - 1 / 3);
312
- }
313
- return "rgba(" + s * 255 + "," + i * 255 + "," + d * 255 + "," + u + ")";
314
- }
315
- function sr(e) {
316
- if (c.rgb(e))
317
- return ir(e);
318
- if (c.hex(e))
319
- return ur(e);
320
- if (c.hsl(e))
321
- return or(e);
322
- }
323
- function C(e) {
324
- var r = /[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);
325
- if (r)
326
- return r[1];
327
- }
328
- function fr(e) {
329
- if (R(e, "translate") || e === "perspective")
330
- return "px";
331
- if (R(e, "rotate") || R(e, "skew"))
332
- return "deg";
333
- }
334
- function G(e, r) {
335
- return c.fnc(e) ? e(r.target, r.id, r.total) : e;
336
- }
337
- function P(e, r) {
338
- return e.getAttribute(r);
339
- }
340
- function re(e, r, t) {
341
- var a = C(r);
342
- if ($([t, "deg", "rad", "turn"], a))
343
- return r;
344
- var n = N.CSS[r + t];
345
- if (!c.und(n))
346
- return n;
347
- var u = 100, o = document.createElement(e.tagName), s = e.parentNode && e.parentNode !== document ? e.parentNode : document.body;
348
- s.appendChild(o), o.style.position = "absolute", o.style.width = u + t;
349
- var i = u / o.offsetWidth;
350
- s.removeChild(o);
351
- var d = i * parseFloat(r);
352
- return N.CSS[r + t] = d, d;
353
- }
354
- function _e(e, r, t) {
355
- if (r in e.style) {
356
- var a = r.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), n = e.style[r] || getComputedStyle(e).getPropertyValue(a) || "0";
357
- return t ? re(e, n, t) : n;
358
- }
359
- }
360
- function ne(e, r) {
361
- if (c.dom(e) && !c.inp(e) && (!c.nil(P(e, r)) || c.svg(e) && e[r]))
362
- return "attribute";
363
- if (c.dom(e) && $(nr, r))
364
- return "transform";
365
- if (c.dom(e) && r !== "transform" && _e(e, r))
366
- return "css";
367
- if (e[r] != null)
368
- return "object";
369
- }
370
- function Pe(e) {
371
- if (!!c.dom(e)) {
372
- for (var r = e.style.transform || "", t = /(\w+)\(([^)]*)\)/g, a = /* @__PURE__ */ new Map(), n; n = t.exec(r); )
373
- a.set(n[1], n[2]);
374
- return a;
375
- }
376
- }
377
- function cr(e, r, t, a) {
378
- var n = R(r, "scale") ? 1 : 0 + fr(r), u = Pe(e).get(r) || n;
379
- return t && (t.transforms.list.set(r, u), t.transforms.last = r), a ? re(e, u, a) : u;
380
- }
381
- function te(e, r, t, a) {
382
- switch (ne(e, r)) {
383
- case "transform":
384
- return cr(e, r, a, t);
385
- case "css":
386
- return _e(e, r, t);
387
- case "attribute":
388
- return P(e, r);
389
- default:
390
- return e[r] || 0;
391
- }
392
- }
393
- function ae(e, r) {
394
- var t = /^(\*=|\+=|-=)/.exec(e);
395
- if (!t)
396
- return e;
397
- var a = C(e) || 0, n = parseFloat(r), u = parseFloat(e.replace(t[0], ""));
398
- switch (t[0][0]) {
399
- case "+":
400
- return n + u + a;
401
- case "-":
402
- return n - u + a;
403
- case "*":
404
- return n * u + a;
405
- }
406
- }
407
- function Ce(e, r) {
408
- if (c.col(e))
409
- return sr(e);
410
- if (/\s/g.test(e))
411
- return e;
412
- var t = C(e), a = t ? e.substr(0, e.length - t.length) : e;
413
- return r ? a + r : a;
414
- }
415
- function ie(e, r) {
416
- return Math.sqrt(Math.pow(r.x - e.x, 2) + Math.pow(r.y - e.y, 2));
417
- }
418
- function lr(e) {
419
- return Math.PI * 2 * P(e, "r");
420
- }
421
- function vr(e) {
422
- return P(e, "width") * 2 + P(e, "height") * 2;
423
- }
424
- function dr(e) {
425
- return ie(
426
- { x: P(e, "x1"), y: P(e, "y1") },
427
- { x: P(e, "x2"), y: P(e, "y2") }
428
- );
429
- }
430
- function Fe(e) {
431
- for (var r = e.points, t = 0, a, n = 0; n < r.numberOfItems; n++) {
432
- var u = r.getItem(n);
433
- n > 0 && (t += ie(a, u)), a = u;
434
- }
435
- return t;
436
- }
437
- function gr(e) {
438
- var r = e.points;
439
- return Fe(e) + ie(r.getItem(r.numberOfItems - 1), r.getItem(0));
440
- }
441
- function ke(e) {
442
- if (e.getTotalLength)
443
- return e.getTotalLength();
444
- switch (e.tagName.toLowerCase()) {
445
- case "circle":
446
- return lr(e);
447
- case "rect":
448
- return vr(e);
449
- case "line":
450
- return dr(e);
451
- case "polyline":
452
- return Fe(e);
453
- case "polygon":
454
- return gr(e);
455
- }
456
- }
457
- function hr(e) {
458
- var r = ke(e);
459
- return e.setAttribute("stroke-dasharray", r), r;
460
- }
461
- function mr(e) {
462
- for (var r = e.parentNode; c.svg(r) && c.svg(r.parentNode); )
463
- r = r.parentNode;
464
- return r;
465
- }
466
- function Oe(e, r) {
467
- var t = r || {}, a = t.el || mr(e), n = a.getBoundingClientRect(), u = P(a, "viewBox"), o = n.width, s = n.height, i = t.viewBox || (u ? u.split(" ") : [0, 0, o, s]);
468
- return {
469
- el: a,
470
- viewBox: i,
471
- x: i[0] / 1,
472
- y: i[1] / 1,
473
- w: o,
474
- h: s,
475
- vW: i[2],
476
- vH: i[3]
477
- };
478
- }
479
- function pr(e, r) {
480
- var t = c.str(e) ? De(e)[0] : e, a = r || 100;
481
- return function(n) {
482
- return {
483
- property: n,
484
- el: t,
485
- svg: Oe(t),
486
- totalLength: ke(t) * (a / 100)
487
- };
488
- };
489
- }
490
- function yr(e, r, t) {
491
- function a(f) {
492
- f === void 0 && (f = 0);
493
- var l = r + f >= 1 ? r + f : 0;
494
- return e.el.getPointAtLength(l);
495
- }
496
- var n = Oe(e.el, e.svg), u = a(), o = a(-1), s = a(1), i = t ? 1 : n.w / n.vW, d = t ? 1 : n.h / n.vH;
497
- switch (e.property) {
498
- case "x":
499
- return (u.x - n.x) * i;
500
- case "y":
501
- return (u.y - n.y) * d;
502
- case "angle":
503
- return Math.atan2(s.y - o.y, s.x - o.x) * 180 / Math.PI;
504
- }
505
- }
506
- function ge(e, r) {
507
- var t = /[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g, a = Ce(c.pth(e) ? e.totalLength : e, r) + "";
508
- return {
509
- original: a,
510
- numbers: a.match(t) ? a.match(t).map(Number) : [0],
511
- strings: c.str(e) || r ? a.split(t) : []
512
- };
513
- }
514
- function ue(e) {
515
- var r = e ? H(c.arr(e) ? e.map(de) : de(e)) : [];
516
- return U(r, function(t, a, n) {
517
- return n.indexOf(t) === a;
518
- });
519
- }
520
- function Se(e) {
521
- var r = ue(e);
522
- return r.map(function(t, a) {
523
- return { target: t, id: a, total: r.length, transforms: { list: Pe(t) } };
524
- });
525
- }
526
- function br(e, r) {
527
- var t = ee(r);
528
- if (/^spring/.test(t.easing) && (t.duration = Ie(t.easing)), c.arr(e)) {
529
- var a = e.length, n = a === 2 && !c.obj(e[0]);
530
- n ? e = { value: e } : c.fnc(r.duration) || (t.duration = r.duration / a);
531
- }
532
- var u = c.arr(e) ? e : [e];
533
- return u.map(function(o, s) {
534
- var i = c.obj(o) && !c.pth(o) ? o : { value: o };
535
- return c.und(i.delay) && (i.delay = s ? 0 : r.delay), c.und(i.endDelay) && (i.endDelay = s === u.length - 1 ? r.endDelay : 0), i;
536
- }).map(function(o) {
537
- return W(o, t);
538
- });
539
- }
540
- function Mr(e) {
541
- for (var r = U(H(e.map(function(u) {
542
- return Object.keys(u);
543
- })), function(u) {
544
- return c.key(u);
545
- }).reduce(function(u, o) {
546
- return u.indexOf(o) < 0 && u.push(o), u;
547
- }, []), t = {}, a = function(u) {
548
- var o = r[u];
549
- t[o] = e.map(function(s) {
550
- var i = {};
551
- for (var d in s)
552
- c.key(d) ? d == o && (i.value = s[d]) : i[d] = s[d];
553
- return i;
554
- });
555
- }, n = 0; n < r.length; n++)
556
- a(n);
557
- return t;
558
- }
559
- function xr(e, r) {
560
- var t = [], a = r.keyframes;
561
- a && (r = W(Mr(a), r));
562
- for (var n in r)
563
- c.key(n) && t.push({
564
- name: n,
565
- tweens: br(r[n], e)
566
- });
567
- return t;
568
- }
569
- function Er(e, r) {
570
- var t = {};
571
- for (var a in e) {
572
- var n = G(e[a], r);
573
- c.arr(n) && (n = n.map(function(u) {
574
- return G(u, r);
575
- }), n.length === 1 && (n = n[0])), t[a] = n;
576
- }
577
- return t.duration = parseFloat(t.duration), t.delay = parseFloat(t.delay), t;
578
- }
579
- function Tr(e, r) {
580
- var t;
581
- return e.tweens.map(function(a) {
582
- var n = Er(a, r), u = n.value, o = c.arr(u) ? u[1] : u, s = C(o), i = te(r.target, e.name, s, r), d = t ? t.to.original : i, f = c.arr(u) ? u[0] : d, l = C(f) || C(i), p = s || l;
583
- return c.und(o) && (o = d), n.from = ge(f, p), n.to = ge(ae(o, f), p), n.start = t ? t.end : 0, n.end = n.start + n.delay + n.duration + n.endDelay, n.easing = X(n.easing, n.duration), n.isPath = c.pth(u), n.isPathTargetInsideSVG = n.isPath && c.svg(r.target), n.isColor = c.col(n.from.original), n.isColor && (n.round = 1), t = n, n;
584
- });
585
- }
586
- var Le = {
587
- css: function(e, r, t) {
588
- return e.style[r] = t;
589
- },
590
- attribute: function(e, r, t) {
591
- return e.setAttribute(r, t);
592
- },
593
- object: function(e, r, t) {
594
- return e[r] = t;
595
- },
596
- transform: function(e, r, t, a, n) {
597
- if (a.list.set(r, t), r === a.last || n) {
598
- var u = "";
599
- a.list.forEach(function(o, s) {
600
- u += s + "(" + o + ") ";
601
- }), e.style.transform = u;
602
- }
603
- }
604
- };
605
- function je(e, r) {
606
- var t = Se(e);
607
- t.forEach(function(a) {
608
- for (var n in r) {
609
- var u = G(r[n], a), o = a.target, s = C(u), i = te(o, n, s, a), d = s || C(i), f = ae(Ce(u, d), i), l = ne(o, n);
610
- Le[l](o, n, f, a.transforms, !0);
611
- }
612
- });
613
- }
614
- function Ir(e, r) {
615
- var t = ne(e.target, r.name);
616
- if (t) {
617
- var a = Tr(r, e), n = a[a.length - 1];
618
- return {
619
- type: t,
620
- property: r.name,
621
- animatable: e,
622
- tweens: a,
623
- duration: n.end,
624
- delay: a[0].delay,
625
- endDelay: n.endDelay
626
- };
627
- }
628
- }
629
- function wr(e, r) {
630
- return U(H(e.map(function(t) {
631
- return r.map(function(a) {
632
- return Ir(t, a);
633
- });
634
- })), function(t) {
635
- return !c.und(t);
636
- });
637
- }
638
- function Ae(e, r) {
639
- var t = e.length, a = function(u) {
640
- return u.timelineOffset ? u.timelineOffset : 0;
641
- }, n = {};
642
- return n.duration = t ? Math.max.apply(Math, e.map(function(u) {
643
- return a(u) + u.duration;
644
- })) : r.duration, n.delay = t ? Math.min.apply(Math, e.map(function(u) {
645
- return a(u) + u.delay;
646
- })) : r.delay, n.endDelay = t ? n.duration - Math.max.apply(Math, e.map(function(u) {
647
- return a(u) + u.duration - u.endDelay;
648
- })) : r.endDelay, n;
649
- }
650
- var he = 0;
651
- function Dr(e) {
652
- var r = K(Ee, e), t = K(Y, e), a = xr(t, e), n = Se(e.targets), u = wr(n, a), o = Ae(u, t), s = he;
653
- return he++, W(r, {
654
- id: s,
655
- children: [],
656
- animatables: n,
657
- animations: u,
658
- duration: o.duration,
659
- delay: o.delay,
660
- endDelay: o.endDelay
661
- });
662
- }
663
- var D = [], Be = function() {
664
- var e;
665
- function r() {
666
- !e && (!me() || !x.suspendWhenDocumentHidden) && D.length > 0 && (e = requestAnimationFrame(t));
667
- }
668
- function t(n) {
669
- for (var u = D.length, o = 0; o < u; ) {
670
- var s = D[o];
671
- s.paused ? (D.splice(o, 1), u--) : (s.tick(n), o++);
672
- }
673
- e = o > 0 ? requestAnimationFrame(t) : void 0;
674
- }
675
- function a() {
676
- !x.suspendWhenDocumentHidden || (me() ? e = cancelAnimationFrame(e) : (D.forEach(
677
- function(n) {
678
- return n._onDocumentVisibility();
679
- }
680
- ), Be()));
681
- }
682
- return typeof document < "u" && document.addEventListener("visibilitychange", a), r;
683
- }();
684
- function me() {
685
- return !!document && document.hidden;
686
- }
687
- function x(e) {
688
- e === void 0 && (e = {});
689
- var r = 0, t = 0, a = 0, n, u = 0, o = null;
690
- function s(m) {
691
- var h = window.Promise && new Promise(function(I) {
692
- return o = I;
693
- });
694
- return m.finished = h, h;
695
- }
696
- var i = Dr(e);
697
- s(i);
698
- function d() {
699
- var m = i.direction;
700
- m !== "alternate" && (i.direction = m !== "normal" ? "normal" : "reverse"), i.reversed = !i.reversed, n.forEach(function(h) {
701
- return h.reversed = i.reversed;
702
- });
703
- }
704
- function f(m) {
705
- return i.reversed ? i.duration - m : m;
706
- }
707
- function l() {
708
- r = 0, t = f(i.currentTime) * (1 / x.speed);
709
- }
710
- function p(m, h) {
711
- h && h.seek(m - h.timelineOffset);
712
- }
713
- function y(m) {
714
- if (i.reversePlayback)
715
- for (var I = u; I--; )
716
- p(m, n[I]);
717
- else
718
- for (var h = 0; h < u; h++)
719
- p(m, n[h]);
720
- }
721
- function g(m) {
722
- for (var h = 0, I = i.animations, F = I.length; h < F; ) {
723
- var E = I[h], k = E.animatable, j = E.tweens, O = j.length - 1, T = j[O];
724
- O && (T = U(j, function(ze) {
725
- return m < ze.end;
726
- })[0] || T);
727
- for (var S = _(m - T.start - T.delay, 0, T.duration) / T.duration, z = isNaN(S) ? 1 : T.easing(S), w = T.to.strings, q = T.round, Z = [], Re = T.to.numbers.length, L = void 0, A = 0; A < Re; A++) {
728
- var B = void 0, oe = T.to.numbers[A], se = T.from.numbers[A] || 0;
729
- T.isPath ? B = yr(T.value, z * oe, T.isPathTargetInsideSVG) : B = se + z * (oe - se), q && (T.isColor && A > 2 || (B = Math.round(B * q) / q)), Z.push(B);
730
- }
731
- var fe = w.length;
732
- if (!fe)
733
- L = Z[0];
734
- else {
735
- L = w[0];
736
- for (var V = 0; V < fe; V++) {
737
- w[V];
738
- var ce = w[V + 1], Q = Z[V];
739
- isNaN(Q) || (ce ? L += Q + ce : L += Q + " ");
740
- }
741
- }
742
- Le[E.type](k.target, E.property, L, k.transforms), E.currentValue = L, h++;
743
- }
744
- }
745
- function v(m) {
746
- i[m] && !i.passThrough && i[m](i);
747
- }
748
- function M() {
749
- i.remaining && i.remaining !== !0 && i.remaining--;
750
- }
751
- function b(m) {
752
- var h = i.duration, I = i.delay, F = h - i.endDelay, E = f(m);
753
- i.progress = _(E / h * 100, 0, 100), i.reversePlayback = E < i.currentTime, n && y(E), !i.began && i.currentTime > 0 && (i.began = !0, v("begin")), !i.loopBegan && i.currentTime > 0 && (i.loopBegan = !0, v("loopBegin")), E <= I && i.currentTime !== 0 && g(0), (E >= F && i.currentTime !== h || !h) && g(h), E > I && E < F ? (i.changeBegan || (i.changeBegan = !0, i.changeCompleted = !1, v("changeBegin")), v("change"), g(E)) : i.changeBegan && (i.changeCompleted = !0, i.changeBegan = !1, v("changeComplete")), i.currentTime = _(E, 0, h), i.began && v("update"), m >= h && (t = 0, M(), i.remaining ? (r = a, v("loopComplete"), i.loopBegan = !1, i.direction === "alternate" && d()) : (i.paused = !0, i.completed || (i.completed = !0, v("loopComplete"), v("complete"), !i.passThrough && "Promise" in window && (o(), s(i)))));
754
- }
755
- return i.reset = function() {
756
- var m = i.direction;
757
- i.passThrough = !1, i.currentTime = 0, i.progress = 0, i.paused = !0, i.began = !1, i.loopBegan = !1, i.changeBegan = !1, i.completed = !1, i.changeCompleted = !1, i.reversePlayback = !1, i.reversed = m === "reverse", i.remaining = i.loop, n = i.children, u = n.length;
758
- for (var h = u; h--; )
759
- i.children[h].reset();
760
- (i.reversed && i.loop !== !0 || m === "alternate" && i.loop === 1) && i.remaining++, g(i.reversed ? i.duration : 0);
761
- }, i._onDocumentVisibility = l, i.set = function(m, h) {
762
- return je(m, h), i;
763
- }, i.tick = function(m) {
764
- a = m, r || (r = a), b((a + (t - r)) * x.speed);
765
- }, i.seek = function(m) {
766
- b(f(m));
767
- }, i.pause = function() {
768
- i.paused = !0, l();
769
- }, i.play = function() {
770
- !i.paused || (i.completed && i.reset(), i.paused = !1, D.push(i), l(), Be());
771
- }, i.reverse = function() {
772
- d(), i.completed = !i.reversed, l();
773
- }, i.restart = function() {
774
- i.reset(), i.play();
775
- }, i.remove = function(m) {
776
- var h = ue(m);
777
- Ve(h, i);
778
- }, i.reset(), i.autoplay && i.play(), i;
779
- }
780
- function pe(e, r) {
781
- for (var t = r.length; t--; )
782
- $(e, r[t].animatable.target) && r.splice(t, 1);
783
- }
784
- function Ve(e, r) {
785
- var t = r.animations, a = r.children;
786
- pe(e, t);
787
- for (var n = a.length; n--; ) {
788
- var u = a[n], o = u.animations;
789
- pe(e, o), !o.length && !u.children.length && a.splice(n, 1);
790
- }
791
- !t.length && !a.length && r.pause();
792
- }
793
- function _r(e) {
794
- for (var r = ue(e), t = D.length; t--; ) {
795
- var a = D[t];
796
- Ve(r, a);
797
- }
798
- }
799
- function Pr(e, r) {
800
- r === void 0 && (r = {});
801
- var t = r.direction || "normal", a = r.easing ? X(r.easing) : null, n = r.grid, u = r.axis, o = r.from || 0, s = o === "first", i = o === "center", d = o === "last", f = c.arr(e), l = parseFloat(f ? e[0] : e), p = f ? parseFloat(e[1]) : 0, y = C(f ? e[1] : e) || 0, g = r.start || 0 + (f ? l : 0), v = [], M = 0;
802
- return function(b, m, h) {
803
- if (s && (o = 0), i && (o = (h - 1) / 2), d && (o = h - 1), !v.length) {
804
- for (var I = 0; I < h; I++) {
805
- if (!n)
806
- v.push(Math.abs(o - I));
807
- else {
808
- var F = i ? (n[0] - 1) / 2 : o % n[0], E = i ? (n[1] - 1) / 2 : Math.floor(o / n[0]), k = I % n[0], j = Math.floor(I / n[0]), O = F - k, T = E - j, S = Math.sqrt(O * O + T * T);
809
- u === "x" && (S = -O), u === "y" && (S = -T), v.push(S);
810
- }
811
- M = Math.max.apply(Math, v);
812
- }
813
- a && (v = v.map(function(w) {
814
- return a(w / M) * M;
815
- })), t === "reverse" && (v = v.map(function(w) {
816
- return u ? w < 0 ? w * -1 : -w : Math.abs(M - w);
817
- }));
818
- }
819
- var z = f ? (p - l) / M : l;
820
- return g + z * (Math.round(v[m] * 100) / 100) + y;
821
- };
822
- }
823
- function Cr(e) {
824
- e === void 0 && (e = {});
825
- var r = x(e);
826
- return r.duration = 0, r.add = function(t, a) {
827
- var n = D.indexOf(r), u = r.children;
828
- n > -1 && D.splice(n, 1);
829
- function o(p) {
830
- p.passThrough = !0;
831
- }
832
- for (var s = 0; s < u.length; s++)
833
- o(u[s]);
834
- var i = W(t, K(Y, e));
835
- i.targets = i.targets || e.targets;
836
- var d = r.duration;
837
- i.autoplay = !1, i.direction = r.direction, i.timelineOffset = c.und(a) ? d : ae(a, d), o(r), r.seek(i.timelineOffset);
838
- var f = x(i);
839
- o(f), u.push(f);
840
- var l = Ae(u, e);
841
- return r.delay = l.delay, r.endDelay = l.endDelay, r.duration = l.duration, r.seek(0), r.reset(), r.autoplay && r.play(), r;
842
- }, r;
843
- }
844
- x.version = "3.2.1";
845
- x.speed = 1;
846
- x.suspendWhenDocumentHidden = !0;
847
- x.running = D;
848
- x.remove = _r;
849
- x.get = te;
850
- x.set = je;
851
- x.convertPx = re;
852
- x.path = pr;
853
- x.setDashoffset = hr;
854
- x.stagger = Pr;
855
- x.timeline = Cr;
856
- x.easing = X;
857
- x.penner = we;
858
- x.random = function(e, r) {
859
- return Math.floor(Math.random() * (r - e + 1)) + e;
860
- };
861
- function Fr(e) {
862
- We(e, "svelte-1b2n9wi", ".text-char.svelte-1b2n9wi{display:inline-block;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}");
863
- }
864
- function ye(e, r, t) {
865
- const a = e.slice();
866
- return a[10] = r[t], a[11] = r, a[12] = t, a;
867
- }
868
- function be(e) {
869
- let r, t = e[10] + "", a, n = e[12];
870
- const u = () => e[6](r, n), o = () => e[6](null, n);
6
+ import { searchFirstValueSmallThanLastValue as J } from "../../utils/search.js";
7
+ import { RANDON_STRING as E } from "../../utils/constants.js";
8
+ function P(o) {
9
+ L(o, "svelte-1b2n9wi", ".text-char.svelte-1b2n9wi{display:inline-block;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}");
10
+ }
11
+ function y(o, i, l) {
12
+ const e = o.slice();
13
+ return e[10] = i[l], e[11] = i, e[12] = l, e;
14
+ }
15
+ function b(o) {
16
+ let i, l = o[10] + "", e, t = o[12];
17
+ const s = () => o[6](i, t), n = () => o[6](null, t);
871
18
  return {
872
19
  c() {
873
- r = Je("span"), a = Ke(t), Ge(r, "class", "text-char svelte-1b2n9wi");
20
+ i = w("span"), e = N(l), S(i, "class", "text-char svelte-1b2n9wi");
874
21
  },
875
- m(s, i) {
876
- Me(s, r, i), Ye(r, a), u();
22
+ m(r, f) {
23
+ j(r, i, f), O(i, e), s();
877
24
  },
878
- p(s, i) {
879
- e = s, i & 2 && t !== (t = e[10] + "") && Xe(a, t), n !== e[12] && (o(), n = e[12], u());
25
+ p(r, f) {
26
+ o = r, f & 2 && l !== (l = o[10] + "") && v(e, l), t !== o[12] && (n(), t = o[12], s());
880
27
  },
881
- d(s) {
882
- s && xe(r), o();
28
+ d(r) {
29
+ r && D(i), n();
883
30
  }
884
31
  };
885
32
  }
886
- function kr(e) {
887
- let r, t = e[1], a = [];
888
- for (let n = 0; n < t.length; n += 1)
889
- a[n] = be(ye(e, t, n));
33
+ function U(o) {
34
+ let i, l = o[1], e = [];
35
+ for (let t = 0; t < l.length; t += 1)
36
+ e[t] = b(y(o, l, t));
890
37
  return {
891
38
  c() {
892
- for (let n = 0; n < a.length; n += 1)
893
- a[n].c();
894
- r = qe();
39
+ for (let t = 0; t < e.length; t += 1)
40
+ e[t].c();
41
+ i = T();
895
42
  },
896
- m(n, u) {
897
- for (let o = 0; o < a.length; o += 1)
898
- a[o].m(n, u);
899
- Me(n, r, u);
43
+ m(t, s) {
44
+ for (let n = 0; n < e.length; n += 1)
45
+ e[n].m(t, s);
46
+ j(t, i, s);
900
47
  },
901
- p(n, [u]) {
902
- if (u & 3) {
903
- t = n[1];
904
- let o;
905
- for (o = 0; o < t.length; o += 1) {
906
- const s = ye(n, t, o);
907
- a[o] ? a[o].p(s, u) : (a[o] = be(s), a[o].c(), a[o].m(r.parentNode, r));
48
+ p(t, [s]) {
49
+ if (s & 3) {
50
+ l = t[1];
51
+ let n;
52
+ for (n = 0; n < l.length; n += 1) {
53
+ const r = y(t, l, n);
54
+ e[n] ? e[n].p(r, s) : (e[n] = b(r), e[n].c(), e[n].m(i.parentNode, i));
908
55
  }
909
- for (; o < a.length; o += 1)
910
- a[o].d(1);
911
- a.length = t.length;
56
+ for (; n < e.length; n += 1)
57
+ e[n].d(1);
58
+ e.length = l.length;
912
59
  }
913
60
  },
914
- i: le,
915
- o: le,
916
- d(n) {
917
- Ze(a, n), n && xe(r);
61
+ i: p,
62
+ o: p,
63
+ d(t) {
64
+ k(e, t), t && D(i);
918
65
  }
919
66
  };
920
67
  }
921
- function Or(e, r, t) {
922
- let a, { inDelay: n = 0 } = r, { outDelay: u = 0 } = r, { content: o } = r, { unfolded: s } = r, i, d = [], f;
923
- function l(y) {
924
- clearTimeout(i), i = setTimeout(
68
+ function V(o, i, l) {
69
+ let e, { inDelay: t = 0 } = i, { outDelay: s = 0 } = i, { content: n } = i, { unfolded: r } = i, f, c = [], u;
70
+ function F(a) {
71
+ clearTimeout(f), f = setTimeout(
925
72
  function() {
926
- !f || (y && f.reversed || !y && !f.reversed) && (f.reverse(), f.play());
73
+ !u || (a && u.reversed || !a && !u.reversed) && (u.reverse(), u.play());
927
74
  },
928
- y ? n : u
75
+ a ? t : s
929
76
  );
930
77
  }
931
- Qe(function() {
932
- const y = (() => {
933
- const g = rr((v) => d[v].getBoundingClientRect().x, [Math.min(d.length - 1, 10), Math.min(d.length - 1, 30)]);
934
- if (g > 0)
935
- return g;
78
+ A(function() {
79
+ const a = (() => {
80
+ const m = J((_) => c[_].getBoundingClientRect().x, [Math.min(c.length - 1, 10), Math.min(c.length - 1, 30)]);
81
+ if (m > 0)
82
+ return m;
936
83
  })();
937
- f = x({
938
- targets: d.filter(er).slice(0, y),
84
+ u = g({
85
+ targets: c.filter(B).slice(0, a),
939
86
  autoplay: !1,
940
87
  duration: 400,
941
88
  scale: [0.7, 1],
@@ -943,42 +90,42 @@ function Or(e, r, t) {
943
90
  opacity: [0, 1],
944
91
  translateX: [4, 0],
945
92
  translateY: [10, 0],
946
- delay: x.stagger(50),
93
+ delay: g.stagger(50),
947
94
  easing: "easeInOutCubic"
948
- }), s && f.seek(f.duration);
95
+ }), r && u.seek(u.duration);
949
96
  });
950
- function p(y, g) {
951
- $e[y ? "unshift" : "push"](() => {
952
- d[g] = y, t(0, d);
97
+ function I(a, m) {
98
+ C[a ? "unshift" : "push"](() => {
99
+ c[m] = a, l(0, c);
953
100
  });
954
101
  }
955
- return e.$$set = (y) => {
956
- "inDelay" in y && t(2, n = y.inDelay), "outDelay" in y && t(3, u = y.outDelay), "content" in y && t(4, o = y.content), "unfolded" in y && t(5, s = y.unfolded);
957
- }, e.$$.update = () => {
958
- e.$$.dirty & 16 && t(1, a = (() => {
959
- const y = [], g = new RegExp(/\p{Regional_Indicator}\p{Regional_Indicator}|\p{Emoji}(\p{Emoji_Modifier}+|\uFE0F\u20E3?)?(\u200D\p{Emoji}(\p{Emoji_Modifier}+|\uFE0F\u20E3?)?)+|\p{Emoji_Presentation}(\p{Emoji_Modifier}+|\uFE0F\u20E3?)?|\p{Emoji}(\p{Emoji_Modifier}+|\uFE0F\u20E3?)/gu), v = `__EMOJI_SPLIT_${ve}__`, M = `__EMOJI_${ve}__`;
960
- return o.slice().replace(g, (b) => `${v}${M}${b}${v}`).split(v).forEach((b) => b.startsWith(M) ? y.push(b.slice(M.length)) : y.push(...b.split(""))), y.filter(Boolean);
961
- })()), e.$$.dirty & 32 && l(s);
962
- }, [d, a, n, u, o, s, p];
963
- }
964
- class Vr extends Ne {
965
- constructor(r) {
966
- super(), Ue(
102
+ return o.$$set = (a) => {
103
+ "inDelay" in a && l(2, t = a.inDelay), "outDelay" in a && l(3, s = a.outDelay), "content" in a && l(4, n = a.content), "unfolded" in a && l(5, r = a.unfolded);
104
+ }, o.$$.update = () => {
105
+ o.$$.dirty & 16 && l(1, e = (() => {
106
+ const a = [], m = new RegExp(new RegExp("\\p{Regional_Indicator}\\p{Regional_Indicator}|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?(\\u200D\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?)+|\\p{Emoji_Presentation}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)", "gu")), _ = `__EMOJI_SPLIT_${E}__`, h = `__EMOJI_${E}__`;
107
+ return n.slice().replace(m, (d) => `${_}${h}${d}${_}`).split(_).forEach((d) => d.startsWith(h) ? a.push(d.slice(h.length)) : a.push(...d.split(""))), a.filter(Boolean);
108
+ })()), o.$$.dirty & 32 && F(r);
109
+ }, [c, e, t, s, n, r, I];
110
+ }
111
+ class K extends M {
112
+ constructor(i) {
113
+ super(), x(
967
114
  this,
968
- r,
969
- Or,
970
- kr,
971
- He,
115
+ i,
116
+ V,
117
+ U,
118
+ R,
972
119
  {
973
120
  inDelay: 2,
974
121
  outDelay: 3,
975
122
  content: 4,
976
123
  unfolded: 5
977
124
  },
978
- Fr
125
+ P
979
126
  );
980
127
  }
981
128
  }
982
129
  export {
983
- Vr as default
130
+ K as default
984
131
  };