@undp/data-viz 2.5.4 → 2.6.1

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 (1595) hide show
  1. package/dist/AnimatePresence-CE6xBsMZ.js +175 -0
  2. package/dist/AnimatePresence-CE6xBsMZ.js.map +1 -0
  3. package/dist/AnimatePresence-CapU-Sxd.cjs +10 -0
  4. package/dist/AnimatePresence-CapU-Sxd.cjs.map +1 -0
  5. package/dist/AreaChart.cjs +1 -2
  6. package/dist/AreaChart.d.ts +2 -231
  7. package/dist/AreaChart.js +2 -440
  8. package/dist/Axis-B3ai1eeP.js +31 -0
  9. package/dist/Axis-B3ai1eeP.js.map +1 -0
  10. package/dist/Axis-BbfI4T5K.cjs +2 -0
  11. package/dist/Axis-BbfI4T5K.cjs.map +1 -0
  12. package/dist/AxisTitle-Co2DmqOy.cjs +2 -0
  13. package/dist/AxisTitle-Co2DmqOy.cjs.map +1 -0
  14. package/dist/AxisTitle-DqJw_G-f.js +20 -0
  15. package/dist/AxisTitle-DqJw_G-f.js.map +1 -0
  16. package/dist/BarGraph-DE7tJ52k.cjs +2 -0
  17. package/dist/BarGraph-DE7tJ52k.cjs.map +1 -0
  18. package/dist/BarGraph-DQogcvkF.js +2177 -0
  19. package/dist/BarGraph-DQogcvkF.js.map +1 -0
  20. package/dist/BarGraph.cjs +1 -2
  21. package/dist/BarGraph.d.ts +2 -473
  22. package/dist/BarGraph.js +2 -2455
  23. package/dist/BasicStatCard.cjs +2 -2
  24. package/dist/BasicStatCard.cjs.map +1 -1
  25. package/dist/BasicStatCard.d.ts +2 -115
  26. package/dist/BasicStatCard.js +136 -121
  27. package/dist/BasicStatCard.js.map +1 -1
  28. package/dist/BeeSwarmChart--7HARz1J.cjs +2 -0
  29. package/dist/BeeSwarmChart--7HARz1J.cjs.map +1 -0
  30. package/dist/BeeSwarmChart-skEHc8uH.js +468 -0
  31. package/dist/BeeSwarmChart-skEHc8uH.js.map +1 -0
  32. package/dist/BeeSwarmChart.cjs +1 -2
  33. package/dist/BeeSwarmChart.d.ts +2 -194
  34. package/dist/BeeSwarmChart.js +2 -536
  35. package/dist/BiVariateChoroplethMap.cjs +1 -2
  36. package/dist/BiVariateChoroplethMap.d.ts +2 -221
  37. package/dist/BiVariateChoroplethMap.js +2 -471
  38. package/dist/BiVariateMap-DXLWC3wL.cjs +2 -0
  39. package/dist/BiVariateMap-DXLWC3wL.cjs.map +1 -0
  40. package/dist/BiVariateMap-Dkppk8YD.js +505 -0
  41. package/dist/BiVariateMap-Dkppk8YD.js.map +1 -0
  42. package/dist/BulletChart-Du9F0JhJ.js +799 -0
  43. package/dist/BulletChart-Du9F0JhJ.js.map +1 -0
  44. package/dist/BulletChart-ElYRyO07.cjs +2 -0
  45. package/dist/BulletChart-ElYRyO07.cjs.map +1 -0
  46. package/dist/BulletChart.cjs +1 -2
  47. package/dist/BulletChart.d.ts +2 -245
  48. package/dist/BulletChart.js +2 -979
  49. package/dist/ButterflyChart-BBWBZXEc.cjs +2 -0
  50. package/dist/ButterflyChart-BBWBZXEc.cjs.map +1 -0
  51. package/dist/ButterflyChart-CHMH57WF.js +514 -0
  52. package/dist/ButterflyChart-CHMH57WF.js.map +1 -0
  53. package/dist/ButterflyChart.cjs +1 -2
  54. package/dist/ButterflyChart.d.ts +2 -210
  55. package/dist/ButterflyChart.js +2 -508
  56. package/dist/ChoroplethMap-BwKqlRYF.cjs +2 -0
  57. package/dist/ChoroplethMap-BwKqlRYF.cjs.map +1 -0
  58. package/dist/ChoroplethMap-CBnFBOj8.js +557 -0
  59. package/dist/ChoroplethMap-CBnFBOj8.js.map +1 -0
  60. package/dist/ChoroplethMap.cjs +1 -2
  61. package/dist/ChoroplethMap.d.ts +2 -218
  62. package/dist/ChoroplethMap.js +2 -498
  63. package/dist/CirclePackingGraph-Rl84B8C1.cjs +2 -0
  64. package/dist/CirclePackingGraph-Rl84B8C1.cjs.map +1 -0
  65. package/dist/CirclePackingGraph-uSZwfRvW.js +320 -0
  66. package/dist/CirclePackingGraph-uSZwfRvW.js.map +1 -0
  67. package/dist/CirclePackingGraph.cjs +1 -2
  68. package/dist/CirclePackingGraph.d.ts +2 -162
  69. package/dist/CirclePackingGraph.js +2 -14
  70. package/dist/ColorLegend.cjs +2 -2
  71. package/dist/ColorLegend.cjs.map +1 -1
  72. package/dist/ColorLegend.d.ts +2 -17
  73. package/dist/ColorLegend.js +45 -60
  74. package/dist/ColorLegend.js.map +1 -1
  75. package/dist/ColorLegendWithMouseOver.cjs +2 -2
  76. package/dist/ColorLegendWithMouseOver.cjs.map +1 -1
  77. package/dist/ColorLegendWithMouseOver.d.ts +2 -16
  78. package/dist/ColorLegendWithMouseOver.js +63 -65
  79. package/dist/ColorLegendWithMouseOver.js.map +1 -1
  80. package/dist/Colors.cjs +2 -2
  81. package/dist/Colors.cjs.map +1 -1
  82. package/dist/Colors.d.ts +2 -190
  83. package/dist/Colors.js +988 -191
  84. package/dist/Colors.js.map +1 -1
  85. package/dist/CompareMaps-BFz1TfXL.cjs +2 -0
  86. package/dist/CompareMaps-BFz1TfXL.cjs.map +1 -0
  87. package/dist/CompareMaps-DaZgF5Pf.js +265 -0
  88. package/dist/CompareMaps-DaZgF5Pf.js.map +1 -0
  89. package/dist/Components/Actions/CopyTextButton.d.ts +10 -0
  90. package/dist/Components/Actions/CopyTextButton.d.ts.map +1 -0
  91. package/dist/Components/Actions/CsvDownloadButton.d.ts +18 -0
  92. package/dist/Components/Actions/CsvDownloadButton.d.ts.map +1 -0
  93. package/dist/Components/Actions/ExcelDownloadButton.d.ts +18 -0
  94. package/dist/Components/Actions/ExcelDownloadButton.d.ts.map +1 -0
  95. package/dist/Components/Actions/ImageDownloadButton.d.ts +12 -0
  96. package/dist/Components/Actions/ImageDownloadButton.d.ts.map +1 -0
  97. package/dist/Components/Actions/SVGDownloadButton.d.ts +12 -0
  98. package/dist/Components/Actions/SVGDownloadButton.d.ts.map +1 -0
  99. package/dist/Components/ColorPalette/index.d.ts +189 -0
  100. package/dist/Components/ColorPalette/index.d.ts.map +1 -0
  101. package/dist/Components/Dashboard/GraphEl.d.ts +16 -0
  102. package/dist/Components/Dashboard/GraphEl.d.ts.map +1 -0
  103. package/dist/Components/Dashboard/GriddedGraphs.d.ts +31 -0
  104. package/dist/Components/Dashboard/GriddedGraphs.d.ts.map +1 -0
  105. package/dist/Components/Dashboard/GriddedGraphsFromConfig.d.ts +33 -0
  106. package/dist/Components/Dashboard/GriddedGraphsFromConfig.d.ts.map +1 -0
  107. package/dist/Components/Dashboard/MultiGraphDashboard.d.ts +22 -0
  108. package/dist/Components/Dashboard/MultiGraphDashboard.d.ts.map +1 -0
  109. package/dist/Components/Dashboard/MultiGraphDashboardFromConfig.d.ts +25 -0
  110. package/dist/Components/Dashboard/MultiGraphDashboardFromConfig.d.ts.map +1 -0
  111. package/dist/Components/Dashboard/MultiGraphDashboardWideToLongFormat.d.ts +19 -0
  112. package/dist/Components/Dashboard/MultiGraphDashboardWideToLongFormat.d.ts.map +1 -0
  113. package/dist/Components/Dashboard/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +23 -0
  114. package/dist/Components/Dashboard/MultiGraphDashboardWideToLongFormatFromConfig.d.ts.map +1 -0
  115. package/dist/Components/Dashboard/PerformanceIntensive/GeoHubMapsEl.d.ts +9 -0
  116. package/dist/Components/Dashboard/PerformanceIntensive/GeoHubMapsEl.d.ts.map +1 -0
  117. package/dist/Components/Dashboard/PerformanceIntensive/MultiGraphDashboard.d.ts +22 -0
  118. package/dist/Components/Dashboard/PerformanceIntensive/MultiGraphDashboard.d.ts.map +1 -0
  119. package/dist/Components/Dashboard/PerformanceIntensive/MultiGraphDashboardFromConfig.d.ts +25 -0
  120. package/dist/Components/Dashboard/PerformanceIntensive/MultiGraphDashboardFromConfig.d.ts.map +1 -0
  121. package/dist/Components/Dashboard/PerformanceIntensive/ScrollStory.d.ts +19 -0
  122. package/dist/Components/Dashboard/PerformanceIntensive/ScrollStory.d.ts.map +1 -0
  123. package/dist/Components/Dashboard/PerformanceIntensive/SingleGraphDashboardGeoHubMaps.d.ts +10 -0
  124. package/dist/Components/Dashboard/PerformanceIntensive/SingleGraphDashboardGeoHubMaps.d.ts.map +1 -0
  125. package/dist/Components/Dashboard/PerformanceIntensive/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +13 -0
  126. package/dist/Components/Dashboard/PerformanceIntensive/SingleGraphDashboardGeoHubMapsFromConfig.d.ts.map +1 -0
  127. package/dist/Components/Dashboard/PerformanceIntensive/SingleGraphDashboardThreeDGraphs.d.ts +27 -0
  128. package/dist/Components/Dashboard/PerformanceIntensive/SingleGraphDashboardThreeDGraphs.d.ts.map +1 -0
  129. package/dist/Components/Dashboard/PerformanceIntensive/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +29 -0
  130. package/dist/Components/Dashboard/PerformanceIntensive/SingleGraphDashboardThreeDGraphsFromConfig.d.ts.map +1 -0
  131. package/dist/Components/Dashboard/PerformanceIntensive/ThreeDGraphEl.d.ts +16 -0
  132. package/dist/Components/Dashboard/PerformanceIntensive/ThreeDGraphEl.d.ts.map +1 -0
  133. package/dist/Components/Dashboard/ScrollStory.d.ts +19 -0
  134. package/dist/Components/Dashboard/ScrollStory.d.ts.map +1 -0
  135. package/dist/Components/Dashboard/SingleGraphDashboard.d.ts +27 -0
  136. package/dist/Components/Dashboard/SingleGraphDashboard.d.ts.map +1 -0
  137. package/dist/Components/Dashboard/SingleGraphDashboardFromConfig.d.ts +29 -0
  138. package/dist/Components/Dashboard/SingleGraphDashboardFromConfig.d.ts.map +1 -0
  139. package/dist/Components/Elements/Annotations.d.ts +36 -0
  140. package/dist/Components/Elements/Annotations.d.ts.map +1 -0
  141. package/dist/Components/Elements/Axes/Axis.d.ts +25 -0
  142. package/dist/Components/Elements/Axes/Axis.d.ts.map +1 -0
  143. package/dist/Components/Elements/Axes/AxisTitle.d.ts +11 -0
  144. package/dist/Components/Elements/Axes/AxisTitle.d.ts.map +1 -0
  145. package/dist/Components/Elements/Axes/XAxesLabels.d.ts +16 -0
  146. package/dist/Components/Elements/Axes/XAxesLabels.d.ts.map +1 -0
  147. package/dist/Components/Elements/Axes/XTicksAndGridLines.d.ts +25 -0
  148. package/dist/Components/Elements/Axes/XTicksAndGridLines.d.ts.map +1 -0
  149. package/dist/Components/Elements/Axes/YAxesLabels.d.ts +16 -0
  150. package/dist/Components/Elements/Axes/YAxesLabels.d.ts.map +1 -0
  151. package/dist/Components/Elements/Axes/YTicksAndGridLines.d.ts +25 -0
  152. package/dist/Components/Elements/Axes/YTicksAndGridLines.d.ts.map +1 -0
  153. package/dist/Components/Elements/ColorLegend.d.ts +14 -0
  154. package/dist/Components/Elements/ColorLegend.d.ts.map +1 -0
  155. package/dist/Components/Elements/ColorLegendWithMouseOver.d.ts +13 -0
  156. package/dist/Components/Elements/ColorLegendWithMouseOver.d.ts.map +1 -0
  157. package/dist/Components/Elements/DetailsModal.d.ts +9 -0
  158. package/dist/Components/Elements/DetailsModal.d.ts.map +1 -0
  159. package/dist/Components/Elements/EmptyState.d.ts +2 -0
  160. package/dist/Components/Elements/EmptyState.d.ts.map +1 -0
  161. package/dist/Components/Elements/GraphContainer.d.ts +18 -0
  162. package/dist/Components/Elements/GraphContainer.d.ts.map +1 -0
  163. package/dist/Components/Elements/GraphFooter.d.ts +17 -0
  164. package/dist/Components/Elements/GraphFooter.d.ts.map +1 -0
  165. package/dist/Components/Elements/GraphHeader.d.ts +20 -0
  166. package/dist/Components/Elements/GraphHeader.d.ts.map +1 -0
  167. package/dist/Components/Elements/HighlightArea/customArea.d.ts +19 -0
  168. package/dist/Components/Elements/HighlightArea/customArea.d.ts.map +1 -0
  169. package/dist/Components/Elements/HighlightArea/index.d.ts +35 -0
  170. package/dist/Components/Elements/HighlightArea/index.d.ts.map +1 -0
  171. package/dist/Components/Elements/LinearColorLegend.d.ts +11 -0
  172. package/dist/Components/Elements/LinearColorLegend.d.ts.map +1 -0
  173. package/dist/Components/Elements/ReferenceLine.d.ts +40 -0
  174. package/dist/Components/Elements/ReferenceLine.d.ts.map +1 -0
  175. package/dist/Components/Elements/RegressionLine.d.ts +17 -0
  176. package/dist/Components/Elements/RegressionLine.d.ts.map +1 -0
  177. package/dist/Components/Elements/ThresholdColorLegendWithMouseOver.d.ts +15 -0
  178. package/dist/Components/Elements/ThresholdColorLegendWithMouseOver.d.ts.map +1 -0
  179. package/dist/Components/Elements/Tooltip.d.ts +12 -0
  180. package/dist/Components/Elements/Tooltip.d.ts.map +1 -0
  181. package/dist/Components/Graphs/BarGraph/GroupedBarGraph/Graph.d.ts +47 -0
  182. package/dist/Components/Graphs/BarGraph/GroupedBarGraph/Graph.d.ts.map +1 -0
  183. package/dist/Components/Graphs/BarGraph/GroupedBarGraph/index.d.ts +65 -0
  184. package/dist/Components/Graphs/BarGraph/GroupedBarGraph/index.d.ts.map +1 -0
  185. package/dist/Components/Graphs/BarGraph/SimpleBarGraph/Graph.d.ts +51 -0
  186. package/dist/Components/Graphs/BarGraph/SimpleBarGraph/Graph.d.ts.map +1 -0
  187. package/dist/Components/Graphs/BarGraph/SimpleBarGraph/index.d.ts +70 -0
  188. package/dist/Components/Graphs/BarGraph/SimpleBarGraph/index.d.ts.map +1 -0
  189. package/dist/Components/Graphs/BarGraph/StackedBarGraph/Graph.d.ts +47 -0
  190. package/dist/Components/Graphs/BarGraph/StackedBarGraph/Graph.d.ts.map +1 -0
  191. package/dist/Components/Graphs/BarGraph/StackedBarGraph/index.d.ts +66 -0
  192. package/dist/Components/Graphs/BarGraph/StackedBarGraph/index.d.ts.map +1 -0
  193. package/dist/Components/Graphs/BarGraph/index.d.ts +354 -0
  194. package/dist/Components/Graphs/BarGraph/index.d.ts.map +1 -0
  195. package/dist/Components/Graphs/BeeSwarmChart/Graph.d.ts +43 -0
  196. package/dist/Components/Graphs/BeeSwarmChart/Graph.d.ts.map +1 -0
  197. package/dist/Components/Graphs/BeeSwarmChart/index.d.ts +100 -0
  198. package/dist/Components/Graphs/BeeSwarmChart/index.d.ts.map +1 -0
  199. package/dist/Components/Graphs/BulletChart/Graph.d.ts +53 -0
  200. package/dist/Components/Graphs/BulletChart/Graph.d.ts.map +1 -0
  201. package/dist/Components/Graphs/BulletChart/index.d.ts +136 -0
  202. package/dist/Components/Graphs/BulletChart/index.d.ts.map +1 -0
  203. package/dist/Components/Graphs/ButterflyChart/Graph.d.ts +42 -0
  204. package/dist/Components/Graphs/ButterflyChart/Graph.d.ts.map +1 -0
  205. package/dist/Components/Graphs/ButterflyChart/index.d.ts +102 -0
  206. package/dist/Components/Graphs/ButterflyChart/index.d.ts.map +1 -0
  207. package/dist/Components/Graphs/CirclePackingGraph/Graph.d.ts +35 -0
  208. package/dist/Components/Graphs/CirclePackingGraph/Graph.d.ts.map +1 -0
  209. package/dist/Components/Graphs/CirclePackingGraph/getMaxCircleRadius.d.ts +2 -0
  210. package/dist/Components/Graphs/CirclePackingGraph/getMaxCircleRadius.d.ts.map +1 -0
  211. package/dist/Components/Graphs/CirclePackingGraph/index.d.ts +88 -0
  212. package/dist/Components/Graphs/CirclePackingGraph/index.d.ts.map +1 -0
  213. package/dist/Components/Graphs/DataCards/Graph.d.ts +26 -0
  214. package/dist/Components/Graphs/DataCards/Graph.d.ts.map +1 -0
  215. package/dist/Components/Graphs/DataCards/index.d.ts +74 -0
  216. package/dist/Components/Graphs/DataCards/index.d.ts.map +1 -0
  217. package/dist/Components/Graphs/DataTable/index.d.ts +46 -0
  218. package/dist/Components/Graphs/DataTable/index.d.ts.map +1 -0
  219. package/dist/Components/Graphs/DonutChart/Graph.d.ts +31 -0
  220. package/dist/Components/Graphs/DonutChart/Graph.d.ts.map +1 -0
  221. package/dist/Components/Graphs/DonutChart/index.d.ts +88 -0
  222. package/dist/Components/Graphs/DonutChart/index.d.ts.map +1 -0
  223. package/dist/Components/Graphs/DumbbellChart/Graph.d.ts +51 -0
  224. package/dist/Components/Graphs/DumbbellChart/Graph.d.ts.map +1 -0
  225. package/dist/Components/Graphs/DumbbellChart/index.d.ts +128 -0
  226. package/dist/Components/Graphs/DumbbellChart/index.d.ts.map +1 -0
  227. package/dist/Components/Graphs/HeatMap/Graph.d.ts +35 -0
  228. package/dist/Components/Graphs/HeatMap/Graph.d.ts.map +1 -0
  229. package/dist/Components/Graphs/HeatMap/index.d.ts +93 -0
  230. package/dist/Components/Graphs/HeatMap/index.d.ts.map +1 -0
  231. package/dist/Components/Graphs/Histogram/index.d.ts +92 -0
  232. package/dist/Components/Graphs/Histogram/index.d.ts.map +1 -0
  233. package/dist/Components/Graphs/LineCharts/DifferenceLineChart/Graph.d.ts +47 -0
  234. package/dist/Components/Graphs/LineCharts/DifferenceLineChart/Graph.d.ts.map +1 -0
  235. package/dist/Components/Graphs/LineCharts/DifferenceLineChart/index.d.ts +106 -0
  236. package/dist/Components/Graphs/LineCharts/DifferenceLineChart/index.d.ts.map +1 -0
  237. package/dist/Components/Graphs/LineCharts/DualAxisLineChart/Graph.d.ts +36 -0
  238. package/dist/Components/Graphs/LineCharts/DualAxisLineChart/Graph.d.ts.map +1 -0
  239. package/dist/Components/Graphs/LineCharts/DualAxisLineChart/index.d.ts +98 -0
  240. package/dist/Components/Graphs/LineCharts/DualAxisLineChart/index.d.ts.map +1 -0
  241. package/dist/Components/Graphs/LineCharts/LineChart/Graph.d.ts +43 -0
  242. package/dist/Components/Graphs/LineCharts/LineChart/Graph.d.ts.map +1 -0
  243. package/dist/Components/Graphs/LineCharts/LineChart/index.d.ts +98 -0
  244. package/dist/Components/Graphs/LineCharts/LineChart/index.d.ts.map +1 -0
  245. package/dist/Components/Graphs/LineCharts/LineChartWithConfidenceInterval/Graph.d.ts +49 -0
  246. package/dist/Components/Graphs/LineCharts/LineChartWithConfidenceInterval/Graph.d.ts.map +1 -0
  247. package/dist/Components/Graphs/LineCharts/LineChartWithConfidenceInterval/index.d.ts +116 -0
  248. package/dist/Components/Graphs/LineCharts/LineChartWithConfidenceInterval/index.d.ts.map +1 -0
  249. package/dist/Components/Graphs/LineCharts/MultiLineAltChart/Graph.d.ts +50 -0
  250. package/dist/Components/Graphs/LineCharts/MultiLineAltChart/Graph.d.ts.map +1 -0
  251. package/dist/Components/Graphs/LineCharts/MultiLineAltChart/index.d.ts +114 -0
  252. package/dist/Components/Graphs/LineCharts/MultiLineAltChart/index.d.ts.map +1 -0
  253. package/dist/Components/Graphs/LineCharts/MultiLineChart/Graph.d.ts +52 -0
  254. package/dist/Components/Graphs/LineCharts/MultiLineChart/Graph.d.ts.map +1 -0
  255. package/dist/Components/Graphs/LineCharts/MultiLineChart/index.d.ts +116 -0
  256. package/dist/Components/Graphs/LineCharts/MultiLineChart/index.d.ts.map +1 -0
  257. package/dist/Components/Graphs/LineCharts/SparkLine/Graph.d.ts +24 -0
  258. package/dist/Components/Graphs/LineCharts/SparkLine/Graph.d.ts.map +1 -0
  259. package/dist/Components/Graphs/LineCharts/SparkLine/index.d.ts +70 -0
  260. package/dist/Components/Graphs/LineCharts/SparkLine/index.d.ts.map +1 -0
  261. package/dist/Components/Graphs/Maps/BiVariateMap/Graph.d.ts +51 -0
  262. package/dist/Components/Graphs/Maps/BiVariateMap/Graph.d.ts.map +1 -0
  263. package/dist/Components/Graphs/Maps/BiVariateMap/index.d.ts +117 -0
  264. package/dist/Components/Graphs/Maps/BiVariateMap/index.d.ts.map +1 -0
  265. package/dist/Components/Graphs/Maps/ChoroplethMap/Graph.d.ts +49 -0
  266. package/dist/Components/Graphs/Maps/ChoroplethMap/Graph.d.ts.map +1 -0
  267. package/dist/Components/Graphs/Maps/ChoroplethMap/index.d.ts +113 -0
  268. package/dist/Components/Graphs/Maps/ChoroplethMap/index.d.ts.map +1 -0
  269. package/dist/Components/Graphs/Maps/DotDensityMap/Graph.d.ts +48 -0
  270. package/dist/Components/Graphs/Maps/DotDensityMap/Graph.d.ts.map +1 -0
  271. package/dist/Components/Graphs/Maps/DotDensityMap/index.d.ts +111 -0
  272. package/dist/Components/Graphs/Maps/DotDensityMap/index.d.ts.map +1 -0
  273. package/dist/Components/Graphs/Maps/GeoHubMaps/CompareMaps/Graph.d.ts +12 -0
  274. package/dist/Components/Graphs/Maps/GeoHubMaps/CompareMaps/Graph.d.ts.map +1 -0
  275. package/dist/Components/Graphs/Maps/GeoHubMaps/CompareMaps/index.d.ts +47 -0
  276. package/dist/Components/Graphs/Maps/GeoHubMaps/CompareMaps/index.d.ts.map +1 -0
  277. package/dist/Components/Graphs/Maps/GeoHubMaps/MapWithLayerSelection/MapEl.d.ts +13 -0
  278. package/dist/Components/Graphs/Maps/GeoHubMaps/MapWithLayerSelection/MapEl.d.ts.map +1 -0
  279. package/dist/Components/Graphs/Maps/GeoHubMaps/MapWithLayerSelection/index.d.ts +56 -0
  280. package/dist/Components/Graphs/Maps/GeoHubMaps/MapWithLayerSelection/index.d.ts.map +1 -0
  281. package/dist/Components/Graphs/Maps/GeoHubMaps/SimpleMap/GeoHubMultipleMap.d.ts +12 -0
  282. package/dist/Components/Graphs/Maps/GeoHubMaps/SimpleMap/GeoHubMultipleMap.d.ts.map +1 -0
  283. package/dist/Components/Graphs/Maps/GeoHubMaps/SimpleMap/GeoHubSingleMap.d.ts +12 -0
  284. package/dist/Components/Graphs/Maps/GeoHubMaps/SimpleMap/GeoHubSingleMap.d.ts.map +1 -0
  285. package/dist/Components/Graphs/Maps/GeoHubMaps/SimpleMap/index.d.ts +57 -0
  286. package/dist/Components/Graphs/Maps/GeoHubMaps/SimpleMap/index.d.ts.map +1 -0
  287. package/dist/Components/Graphs/Maps/HybridMap/Graph.d.ts +56 -0
  288. package/dist/Components/Graphs/Maps/HybridMap/Graph.d.ts.map +1 -0
  289. package/dist/Components/Graphs/Maps/HybridMap/index.d.ts +127 -0
  290. package/dist/Components/Graphs/Maps/HybridMap/index.d.ts.map +1 -0
  291. package/dist/Components/Graphs/Maps/ThreeDGlobe/Graph.d.ts +46 -0
  292. package/dist/Components/Graphs/Maps/ThreeDGlobe/Graph.d.ts.map +1 -0
  293. package/dist/Components/Graphs/Maps/ThreeDGlobe/index.d.ts +109 -0
  294. package/dist/Components/Graphs/Maps/ThreeDGlobe/index.d.ts.map +1 -0
  295. package/dist/Components/Graphs/ParetoChart/Graph.d.ts +36 -0
  296. package/dist/Components/Graphs/ParetoChart/Graph.d.ts.map +1 -0
  297. package/dist/Components/Graphs/ParetoChart/index.d.ts +100 -0
  298. package/dist/Components/Graphs/ParetoChart/index.d.ts.map +1 -0
  299. package/dist/Components/Graphs/RadarChart/Graph.d.ts +38 -0
  300. package/dist/Components/Graphs/RadarChart/Graph.d.ts.map +1 -0
  301. package/dist/Components/Graphs/RadarChart/index.d.ts +102 -0
  302. package/dist/Components/Graphs/RadarChart/index.d.ts.map +1 -0
  303. package/dist/Components/Graphs/SankeyChart/Graph.d.ts +39 -0
  304. package/dist/Components/Graphs/SankeyChart/Graph.d.ts.map +1 -0
  305. package/dist/Components/Graphs/SankeyChart/index.d.ts +100 -0
  306. package/dist/Components/Graphs/SankeyChart/index.d.ts.map +1 -0
  307. package/dist/Components/Graphs/ScatterPlot/Graph.d.ts +52 -0
  308. package/dist/Components/Graphs/ScatterPlot/Graph.d.ts.map +1 -0
  309. package/dist/Components/Graphs/ScatterPlot/index.d.ts +130 -0
  310. package/dist/Components/Graphs/ScatterPlot/index.d.ts.map +1 -0
  311. package/dist/Components/Graphs/SlopeChart/Graph.d.ts +32 -0
  312. package/dist/Components/Graphs/SlopeChart/Graph.d.ts.map +1 -0
  313. package/dist/Components/Graphs/SlopeChart/index.d.ts +92 -0
  314. package/dist/Components/Graphs/SlopeChart/index.d.ts.map +1 -0
  315. package/dist/Components/Graphs/StackedAreaChart/Graph.d.ts +37 -0
  316. package/dist/Components/Graphs/StackedAreaChart/Graph.d.ts.map +1 -0
  317. package/dist/Components/Graphs/StackedAreaChart/index.d.ts +92 -0
  318. package/dist/Components/Graphs/StackedAreaChart/index.d.ts.map +1 -0
  319. package/dist/Components/Graphs/StatCard/StatCardFromData.d.ts +50 -0
  320. package/dist/Components/Graphs/StatCard/StatCardFromData.d.ts.map +1 -0
  321. package/dist/Components/Graphs/StatCard/index.d.ts +46 -0
  322. package/dist/Components/Graphs/StatCard/index.d.ts.map +1 -0
  323. package/dist/Components/Graphs/StripChart/Graph.d.ts +42 -0
  324. package/dist/Components/Graphs/StripChart/Graph.d.ts.map +1 -0
  325. package/dist/Components/Graphs/StripChart/index.d.ts +102 -0
  326. package/dist/Components/Graphs/StripChart/index.d.ts.map +1 -0
  327. package/dist/Components/Graphs/TreeMapGraph/Graph.d.ts +34 -0
  328. package/dist/Components/Graphs/TreeMapGraph/Graph.d.ts.map +1 -0
  329. package/dist/Components/Graphs/TreeMapGraph/index.d.ts +85 -0
  330. package/dist/Components/Graphs/TreeMapGraph/index.d.ts.map +1 -0
  331. package/dist/Components/Graphs/UnitChart/index.d.ts +66 -0
  332. package/dist/Components/Graphs/UnitChart/index.d.ts.map +1 -0
  333. package/dist/Components/Graphs/WaterfallChart/Graph.d.ts +47 -0
  334. package/dist/Components/Graphs/WaterfallChart/Graph.d.ts.map +1 -0
  335. package/dist/Components/Graphs/WaterfallChart/index.d.ts +114 -0
  336. package/dist/Components/Graphs/WaterfallChart/index.d.ts.map +1 -0
  337. package/dist/Components/Icons/index.d.ts +19 -0
  338. package/dist/Components/Icons/index.d.ts.map +1 -0
  339. package/dist/Components/Typography/FootNote.d.ts +9 -0
  340. package/dist/Components/Typography/FootNote.d.ts.map +1 -0
  341. package/dist/Components/Typography/GraphDescription.d.ts +9 -0
  342. package/dist/Components/Typography/GraphDescription.d.ts.map +1 -0
  343. package/dist/Components/Typography/GraphTitle.d.ts +10 -0
  344. package/dist/Components/Typography/GraphTitle.d.ts.map +1 -0
  345. package/dist/Components/Typography/Source.d.ts +9 -0
  346. package/dist/Components/Typography/Source.d.ts.map +1 -0
  347. package/dist/CopyTextButton.cjs +2 -2
  348. package/dist/CopyTextButton.cjs.map +1 -1
  349. package/dist/CopyTextButton.d.ts +2 -13
  350. package/dist/CopyTextButton.js +28 -763
  351. package/dist/CopyTextButton.js.map +1 -1
  352. package/dist/CsvDownloadButton-BZ7Zr0Gz.js +664 -0
  353. package/dist/CsvDownloadButton-BZ7Zr0Gz.js.map +1 -0
  354. package/dist/CsvDownloadButton-web25aO3.cjs +5 -0
  355. package/dist/CsvDownloadButton-web25aO3.cjs.map +1 -0
  356. package/dist/CsvDownloadButton.cjs +1 -5
  357. package/dist/CsvDownloadButton.d.ts +2 -22
  358. package/dist/CsvDownloadButton.js +2 -844
  359. package/dist/DataCards-BOpanQhW.js +254 -0
  360. package/dist/DataCards-BOpanQhW.js.map +1 -0
  361. package/dist/DataCards-C4lwQNit.cjs +2 -0
  362. package/dist/DataCards-C4lwQNit.cjs.map +1 -0
  363. package/dist/DataCards.cjs +1 -2
  364. package/dist/DataCards.d.ts +2 -134
  365. package/dist/DataCards.js +2 -507
  366. package/dist/DataTable.cjs +2 -2
  367. package/dist/DataTable.cjs.map +1 -1
  368. package/dist/DataTable.d.ts +2 -126
  369. package/dist/DataTable.js +220 -186
  370. package/dist/DataTable.js.map +1 -1
  371. package/dist/DetailsModal-CtGqGcX9.cjs +2 -0
  372. package/dist/DetailsModal-CtGqGcX9.cjs.map +1 -0
  373. package/dist/DetailsModal-DxUowfkg.js +24 -0
  374. package/dist/DetailsModal-DxUowfkg.js.map +1 -0
  375. package/dist/DifferenceLineChart-BVSQviFB.js +653 -0
  376. package/dist/DifferenceLineChart-BVSQviFB.js.map +1 -0
  377. package/dist/DifferenceLineChart-D15cYo7N.cjs +2 -0
  378. package/dist/DifferenceLineChart-D15cYo7N.cjs.map +1 -0
  379. package/dist/DifferenceLineChart.cjs +1 -2
  380. package/dist/DifferenceLineChart.d.ts +2 -246
  381. package/dist/DifferenceLineChart.js +2 -755
  382. package/dist/DonutChart-BoMyev28.js +316 -0
  383. package/dist/DonutChart-BoMyev28.js.map +1 -0
  384. package/dist/DonutChart-CeJOD4Me.cjs +2 -0
  385. package/dist/DonutChart-CeJOD4Me.cjs.map +1 -0
  386. package/dist/DonutChart.cjs +1 -2
  387. package/dist/DonutChart.d.ts +2 -167
  388. package/dist/DonutChart.js +2 -259
  389. package/dist/DotDensityMap-Bx_8p5wJ.cjs +2 -0
  390. package/dist/DotDensityMap-Bx_8p5wJ.cjs.map +1 -0
  391. package/dist/DotDensityMap-F0i_P_SE.js +463 -0
  392. package/dist/DotDensityMap-F0i_P_SE.js.map +1 -0
  393. package/dist/DotDensityMap.cjs +1 -2
  394. package/dist/DotDensityMap.d.ts +2 -209
  395. package/dist/DotDensityMap.js +2 -447
  396. package/dist/DualAxisLineChart-CUD-jRfN.cjs +2 -0
  397. package/dist/DualAxisLineChart-CUD-jRfN.cjs.map +1 -0
  398. package/dist/DualAxisLineChart-DzVs-ftM.js +518 -0
  399. package/dist/DualAxisLineChart-DzVs-ftM.js.map +1 -0
  400. package/dist/DualAxisLineChart.cjs +1 -2
  401. package/dist/DualAxisLineChart.d.ts +2 -193
  402. package/dist/DualAxisLineChart.js +2 -632
  403. package/dist/DumbbellChart-7Dh8xtYv.cjs +2 -0
  404. package/dist/DumbbellChart-7Dh8xtYv.cjs.map +1 -0
  405. package/dist/DumbbellChart-bqOnq8ZF.js +784 -0
  406. package/dist/DumbbellChart-bqOnq8ZF.js.map +1 -0
  407. package/dist/DumbbellChart.cjs +1 -2
  408. package/dist/DumbbellChart.d.ts +2 -235
  409. package/dist/DumbbellChart.js +2 -859
  410. package/dist/EmptyState-Bq7ZJmZB.cjs +2 -0
  411. package/dist/EmptyState-Bq7ZJmZB.cjs.map +1 -0
  412. package/dist/EmptyState-DBmT1Adf.js +21 -0
  413. package/dist/EmptyState-DBmT1Adf.js.map +1 -0
  414. package/dist/ExcelDownloadButton.cjs +2 -2
  415. package/dist/ExcelDownloadButton.cjs.map +1 -1
  416. package/dist/ExcelDownloadButton.d.ts +2 -22
  417. package/dist/ExcelDownloadButton.js +20 -27
  418. package/dist/ExcelDownloadButton.js.map +1 -1
  419. package/dist/FootNote.cjs +2 -2
  420. package/dist/FootNote.cjs.map +1 -1
  421. package/dist/FootNote.d.ts +2 -12
  422. package/dist/FootNote.js +24 -29
  423. package/dist/FootNote.js.map +1 -1
  424. package/dist/GeoHubCompareMaps.cjs +1 -2
  425. package/dist/GeoHubCompareMaps.d.ts +2 -106
  426. package/dist/GeoHubCompareMaps.js +2 -282
  427. package/dist/GeoHubMap.cjs +1 -2
  428. package/dist/GeoHubMap.d.ts +2 -121
  429. package/dist/GeoHubMap.js +2 -236
  430. package/dist/GeoHubMapWithLayerSelection.cjs +1 -2
  431. package/dist/GeoHubMapWithLayerSelection.d.ts +2 -120
  432. package/dist/GeoHubMapWithLayerSelection.js +2 -208
  433. package/dist/GraphContainer-7xAPK4Tb.cjs +2 -0
  434. package/dist/GraphContainer-7xAPK4Tb.cjs.map +1 -0
  435. package/dist/GraphContainer-DgEB1AVN.js +33 -0
  436. package/dist/GraphContainer-DgEB1AVN.js.map +1 -0
  437. package/dist/GraphDescription.cjs +2 -2
  438. package/dist/GraphDescription.cjs.map +1 -1
  439. package/dist/GraphDescription.d.ts +2 -12
  440. package/dist/GraphDescription.js +24 -26
  441. package/dist/GraphDescription.js.map +1 -1
  442. package/dist/GraphEl-DKWanDSW.cjs +2 -0
  443. package/dist/GraphEl-DKWanDSW.cjs.map +1 -0
  444. package/dist/GraphEl-YjxZ25y6.js +1781 -0
  445. package/dist/GraphEl-YjxZ25y6.js.map +1 -0
  446. package/dist/GraphFooter.cjs +2 -2
  447. package/dist/GraphFooter.cjs.map +1 -1
  448. package/dist/GraphFooter.d.ts +2 -24
  449. package/dist/GraphFooter.js +24 -31
  450. package/dist/GraphFooter.js.map +1 -1
  451. package/dist/GraphHeader.cjs +2 -2
  452. package/dist/GraphHeader.cjs.map +1 -1
  453. package/dist/GraphHeader.d.ts +2 -23
  454. package/dist/GraphHeader.js +43 -49
  455. package/dist/GraphHeader.js.map +1 -1
  456. package/dist/GraphTitle.cjs +2 -2
  457. package/dist/GraphTitle.cjs.map +1 -1
  458. package/dist/GraphTitle.d.ts +2 -13
  459. package/dist/GraphTitle.js +29 -33
  460. package/dist/GraphTitle.js.map +1 -1
  461. package/dist/GriddedGraphs.cjs +2 -2
  462. package/dist/GriddedGraphs.cjs.map +1 -1
  463. package/dist/GriddedGraphs.d.ts +2 -641
  464. package/dist/GriddedGraphs.js +355 -261
  465. package/dist/GriddedGraphs.js.map +1 -1
  466. package/dist/GriddedGraphsFromConfig.cjs +2 -2
  467. package/dist/GriddedGraphsFromConfig.cjs.map +1 -1
  468. package/dist/GriddedGraphsFromConfig.d.ts +2 -644
  469. package/dist/GriddedGraphsFromConfig.js +40 -28
  470. package/dist/GriddedGraphsFromConfig.js.map +1 -1
  471. package/dist/HeatMap-CpWBTEmB.cjs +2 -0
  472. package/dist/HeatMap-CpWBTEmB.cjs.map +1 -0
  473. package/dist/HeatMap-V6VFVvJv.js +338 -0
  474. package/dist/HeatMap-V6VFVvJv.js.map +1 -0
  475. package/dist/HeatMap.cjs +1 -2
  476. package/dist/HeatMap.d.ts +2 -175
  477. package/dist/HeatMap.js +2 -288
  478. package/dist/HighlightArea-BljOOgRP.js +76 -0
  479. package/dist/HighlightArea-BljOOgRP.js.map +1 -0
  480. package/dist/HighlightArea-CJ2XwY67.cjs +2 -0
  481. package/dist/HighlightArea-CJ2XwY67.cjs.map +1 -0
  482. package/dist/Histogram-B995-qQB.cjs +2 -0
  483. package/dist/Histogram-B995-qQB.cjs.map +1 -0
  484. package/dist/Histogram-B9crdM0i.js +250 -0
  485. package/dist/Histogram-B9crdM0i.js.map +1 -0
  486. package/dist/Histogram.cjs +1 -2
  487. package/dist/Histogram.d.ts +2 -178
  488. package/dist/Histogram.js +2 -179
  489. package/dist/HybridMap-B2wu6VbK.cjs +2 -0
  490. package/dist/HybridMap-B2wu6VbK.cjs.map +1 -0
  491. package/dist/HybridMap-D_faTI4N.js +664 -0
  492. package/dist/HybridMap-D_faTI4N.js.map +1 -0
  493. package/dist/HybridMap.cjs +1 -2
  494. package/dist/HybridMap.d.ts +2 -236
  495. package/dist/HybridMap.js +2 -625
  496. package/dist/Icons-BLXwPP3h.js +289 -0
  497. package/dist/Icons-BLXwPP3h.js.map +1 -0
  498. package/dist/Icons-DXw7FqJ_.cjs +2 -0
  499. package/dist/Icons-DXw7FqJ_.cjs.map +1 -0
  500. package/dist/ImageDownloadButton.cjs +2 -2
  501. package/dist/ImageDownloadButton.cjs.map +1 -1
  502. package/dist/ImageDownloadButton.d.ts +2 -16
  503. package/dist/ImageDownloadButton.js +22 -26
  504. package/dist/ImageDownloadButton.js.map +1 -1
  505. package/dist/LineChart-BEUT_K-o.js +458 -0
  506. package/dist/LineChart-BEUT_K-o.js.map +1 -0
  507. package/dist/LineChart-Do_hKdIv.cjs +2 -0
  508. package/dist/LineChart-Do_hKdIv.cjs.map +1 -0
  509. package/dist/LineChartWithConfidenceInterval-BiSJpLry.js +657 -0
  510. package/dist/LineChartWithConfidenceInterval-BiSJpLry.js.map +1 -0
  511. package/dist/LineChartWithConfidenceInterval-D4aZ2CEy.cjs +2 -0
  512. package/dist/LineChartWithConfidenceInterval-D4aZ2CEy.cjs.map +1 -0
  513. package/dist/LineChartWithConfidenceInterval.cjs +1 -2
  514. package/dist/LineChartWithConfidenceInterval.d.ts +2 -257
  515. package/dist/LineChartWithConfidenceInterval.js +2 -698
  516. package/dist/LinearColorLegend.cjs +2 -2
  517. package/dist/LinearColorLegend.cjs.map +1 -1
  518. package/dist/LinearColorLegend.d.ts +2 -14
  519. package/dist/LinearColorLegend.js +39 -53
  520. package/dist/LinearColorLegend.js.map +1 -1
  521. package/dist/MapWithLayerSelection-BVxg3gYq.cjs +2 -0
  522. package/dist/MapWithLayerSelection-BVxg3gYq.cjs.map +1 -0
  523. package/dist/MapWithLayerSelection-D67zxor8.js +210 -0
  524. package/dist/MapWithLayerSelection-D67zxor8.js.map +1 -0
  525. package/dist/MultiGraphDashboard.cjs +2 -2
  526. package/dist/MultiGraphDashboard.cjs.map +1 -1
  527. package/dist/MultiGraphDashboard.d.ts +2 -665
  528. package/dist/MultiGraphDashboard.js +209 -142
  529. package/dist/MultiGraphDashboard.js.map +1 -1
  530. package/dist/MultiGraphDashboardFromConfig.cjs +2 -2
  531. package/dist/MultiGraphDashboardFromConfig.cjs.map +1 -1
  532. package/dist/MultiGraphDashboardFromConfig.d.ts +2 -669
  533. package/dist/MultiGraphDashboardFromConfig.js +35 -28
  534. package/dist/MultiGraphDashboardFromConfig.js.map +1 -1
  535. package/dist/MultiGraphDashboardWideToLongFormat-BPwP5bx2.cjs +2 -0
  536. package/dist/MultiGraphDashboardWideToLongFormat-BPwP5bx2.cjs.map +1 -0
  537. package/dist/MultiGraphDashboardWideToLongFormat-Ds7V2gxg.js +168 -0
  538. package/dist/MultiGraphDashboardWideToLongFormat-Ds7V2gxg.js.map +1 -0
  539. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -2
  540. package/dist/MultiGraphDashboardWideToLongFormat.d.ts +2 -131
  541. package/dist/MultiGraphDashboardWideToLongFormat.js +2 -160
  542. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +2 -2
  543. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs.map +1 -1
  544. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +2 -136
  545. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +32 -28
  546. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js.map +1 -1
  547. package/dist/MultiLineAltChart-BkEze7t7.cjs +2 -0
  548. package/dist/MultiLineAltChart-BkEze7t7.cjs.map +1 -0
  549. package/dist/MultiLineAltChart-CZGWeSsV.js +532 -0
  550. package/dist/MultiLineAltChart-CZGWeSsV.js.map +1 -0
  551. package/dist/MultiLineAltChart.cjs +1 -2
  552. package/dist/MultiLineAltChart.d.ts +2 -255
  553. package/dist/MultiLineAltChart.js +2 -646
  554. package/dist/MultiLineChart-BB13IJLX.js +531 -0
  555. package/dist/MultiLineChart-BB13IJLX.js.map +1 -0
  556. package/dist/MultiLineChart-CQK9Ovk8.cjs +2 -0
  557. package/dist/MultiLineChart-CQK9Ovk8.cjs.map +1 -0
  558. package/dist/MultiLineChart.cjs +1 -2
  559. package/dist/MultiLineChart.d.ts +2 -255
  560. package/dist/MultiLineChart.js +2 -635
  561. package/dist/ParetoChart-BB89ZG8n.js +467 -0
  562. package/dist/ParetoChart-BB89ZG8n.js.map +1 -0
  563. package/dist/ParetoChart-sZCTqhIt.cjs +2 -0
  564. package/dist/ParetoChart-sZCTqhIt.cjs.map +1 -0
  565. package/dist/ParetoChart.cjs +1 -2
  566. package/dist/ParetoChart.d.ts +2 -187
  567. package/dist/ParetoChart.js +2 -539
  568. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +2 -2
  569. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
  570. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +2 -669
  571. package/dist/PerformanceIntensiveMultiGraphDashboard.js +253 -167
  572. package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
  573. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +2 -2
  574. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs.map +1 -1
  575. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +2 -673
  576. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +35 -28
  577. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js.map +1 -1
  578. package/dist/PerformanceIntensiveScrollStory.cjs +2 -2
  579. package/dist/PerformanceIntensiveScrollStory.cjs.map +1 -1
  580. package/dist/PerformanceIntensiveScrollStory.d.ts +2 -595
  581. package/dist/PerformanceIntensiveScrollStory.js +88 -99
  582. package/dist/PerformanceIntensiveScrollStory.js.map +1 -1
  583. package/dist/RadarChart-5VC51Iv8.cjs +2 -0
  584. package/dist/RadarChart-5VC51Iv8.cjs.map +1 -0
  585. package/dist/RadarChart-DaID9Q1F.js +491 -0
  586. package/dist/RadarChart-DaID9Q1F.js.map +1 -0
  587. package/dist/RadarChart.cjs +1 -2
  588. package/dist/RadarChart.d.ts +2 -187
  589. package/dist/RadarChart.js +2 -534
  590. package/dist/ReferenceLine-C8owKJx1.js +90 -0
  591. package/dist/ReferenceLine-C8owKJx1.js.map +1 -0
  592. package/dist/ReferenceLine-Dltt-xtO.cjs +2 -0
  593. package/dist/ReferenceLine-Dltt-xtO.cjs.map +1 -0
  594. package/dist/RegressionLine-B-3HbVf4.js +53 -0
  595. package/dist/RegressionLine-B-3HbVf4.js.map +1 -0
  596. package/dist/RegressionLine-Cju7e0DE.cjs +2 -0
  597. package/dist/RegressionLine-Cju7e0DE.cjs.map +1 -0
  598. package/dist/SVGDownloadButton.cjs +2 -2
  599. package/dist/SVGDownloadButton.cjs.map +1 -1
  600. package/dist/SVGDownloadButton.d.ts +2 -15
  601. package/dist/SVGDownloadButton.js +22 -26
  602. package/dist/SVGDownloadButton.js.map +1 -1
  603. package/dist/SankeyChart-Cj7ihF_-.js +786 -0
  604. package/dist/SankeyChart-Cj7ihF_-.js.map +1 -0
  605. package/dist/SankeyChart-DbMoZmbh.cjs +2 -0
  606. package/dist/SankeyChart-DbMoZmbh.cjs.map +1 -0
  607. package/dist/SankeyChart.cjs +1 -2
  608. package/dist/SankeyChart.d.ts +2 -185
  609. package/dist/SankeyChart.js +2 -792
  610. package/dist/ScatterPlot-DGv-CLx8.js +588 -0
  611. package/dist/ScatterPlot-DGv-CLx8.js.map +1 -0
  612. package/dist/ScatterPlot-zfJrQptW.cjs +2 -0
  613. package/dist/ScatterPlot-zfJrQptW.cjs.map +1 -0
  614. package/dist/ScatterPlot.cjs +1 -2
  615. package/dist/ScatterPlot.d.ts +2 -279
  616. package/dist/ScatterPlot.js +2 -704
  617. package/dist/ScrollStory.cjs +2 -2
  618. package/dist/ScrollStory.cjs.map +1 -1
  619. package/dist/ScrollStory.d.ts +2 -591
  620. package/dist/ScrollStory.js +74 -92
  621. package/dist/ScrollStory.js.map +1 -1
  622. package/dist/SimpleLineChart.cjs +1 -2
  623. package/dist/SimpleLineChart.d.ts +2 -237
  624. package/dist/SimpleLineChart.js +2 -526
  625. package/dist/SimpleMap-DKkJMa4X.cjs +2 -0
  626. package/dist/SimpleMap-DKkJMa4X.cjs.map +1 -0
  627. package/dist/SimpleMap-Q5Ax5xNq.js +279 -0
  628. package/dist/SimpleMap-Q5Ax5xNq.js.map +1 -0
  629. package/dist/SingleGraphDashboard.cjs +2 -2
  630. package/dist/SingleGraphDashboard.cjs.map +1 -1
  631. package/dist/SingleGraphDashboard.d.ts +2 -645
  632. package/dist/SingleGraphDashboard.js +386 -300
  633. package/dist/SingleGraphDashboard.js.map +1 -1
  634. package/dist/SingleGraphDashboardFromConfig.cjs +2 -2
  635. package/dist/SingleGraphDashboardFromConfig.cjs.map +1 -1
  636. package/dist/SingleGraphDashboardFromConfig.d.ts +2 -648
  637. package/dist/SingleGraphDashboardFromConfig.js +36 -28
  638. package/dist/SingleGraphDashboardFromConfig.js.map +1 -1
  639. package/dist/SingleGraphDashboardGeoHubMaps-BNKMBM5-.js +158 -0
  640. package/dist/SingleGraphDashboardGeoHubMaps-BNKMBM5-.js.map +1 -0
  641. package/dist/SingleGraphDashboardGeoHubMaps-DGbbjY5J.cjs +2 -0
  642. package/dist/SingleGraphDashboardGeoHubMaps-DGbbjY5J.cjs.map +1 -0
  643. package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -2
  644. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +2 -530
  645. package/dist/SingleGraphDashboardGeoHubMaps.js +2 -167
  646. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +2 -2
  647. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs.map +1 -1
  648. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +2 -534
  649. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +26 -28
  650. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js.map +1 -1
  651. package/dist/SingleGraphDashboardThreeDGraphs-BsCgN8DA.js +461 -0
  652. package/dist/SingleGraphDashboardThreeDGraphs-BsCgN8DA.js.map +1 -0
  653. package/dist/SingleGraphDashboardThreeDGraphs-qstwmomC.cjs +2 -0
  654. package/dist/SingleGraphDashboardThreeDGraphs-qstwmomC.cjs.map +1 -0
  655. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -2
  656. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +2 -643
  657. package/dist/SingleGraphDashboardThreeDGraphs.js +2 -384
  658. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +2 -2
  659. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs.map +1 -1
  660. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +2 -646
  661. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +36 -28
  662. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js.map +1 -1
  663. package/dist/SlopeChart-BgzrVFpf.js +431 -0
  664. package/dist/SlopeChart-BgzrVFpf.js.map +1 -0
  665. package/dist/SlopeChart-BwQY7GJl.cjs +2 -0
  666. package/dist/SlopeChart-BwQY7GJl.cjs.map +1 -0
  667. package/dist/SlopeChart.cjs +1 -2
  668. package/dist/SlopeChart.d.ts +2 -170
  669. package/dist/SlopeChart.js +2 -547
  670. package/dist/Source.cjs +2 -2
  671. package/dist/Source.cjs.map +1 -1
  672. package/dist/Source.d.ts +2 -16
  673. package/dist/Source.js +35 -7
  674. package/dist/Source.js.map +1 -1
  675. package/dist/SparkLine-DTNx2kjz.js +216 -0
  676. package/dist/SparkLine-DTNx2kjz.js.map +1 -0
  677. package/dist/SparkLine-cHaN4VYd.cjs +2 -0
  678. package/dist/SparkLine-cHaN4VYd.cjs.map +1 -0
  679. package/dist/SparkLine.cjs +1 -2
  680. package/dist/SparkLine.d.ts +2 -142
  681. package/dist/SparkLine.js +2 -295
  682. package/dist/StackedAreaChart-CtlLKKP4.js +381 -0
  683. package/dist/StackedAreaChart-CtlLKKP4.js.map +1 -0
  684. package/dist/StackedAreaChart-Du-YaLNf.cjs +2 -0
  685. package/dist/StackedAreaChart-Du-YaLNf.cjs.map +1 -0
  686. package/dist/StatCardFromData.cjs +2 -2
  687. package/dist/StatCardFromData.cjs.map +1 -1
  688. package/dist/StatCardFromData.d.ts +2 -124
  689. package/dist/StatCardFromData.js +138 -166
  690. package/dist/StatCardFromData.js.map +1 -1
  691. package/dist/StripChart-BG2FqiBD.js +564 -0
  692. package/dist/StripChart-BG2FqiBD.js.map +1 -0
  693. package/dist/StripChart-C2Px5GnZ.cjs +2 -0
  694. package/dist/StripChart-C2Px5GnZ.cjs.map +1 -0
  695. package/dist/StripChart.cjs +1 -2
  696. package/dist/StripChart.d.ts +2 -187
  697. package/dist/StripChart.js +2 -789
  698. package/dist/ThreeDGlobe-7eJdMW-R.cjs +2 -0
  699. package/dist/ThreeDGlobe-7eJdMW-R.cjs.map +1 -0
  700. package/dist/ThreeDGlobe-DXL9WkNi.js +441 -0
  701. package/dist/ThreeDGlobe-DXL9WkNi.js.map +1 -0
  702. package/dist/ThreeDGlobe.cjs +1 -2
  703. package/dist/ThreeDGlobe.d.ts +2 -247
  704. package/dist/ThreeDGlobe.js +2 -418
  705. package/dist/ThresholdColorLegendWithMouseOver.cjs +2 -2
  706. package/dist/ThresholdColorLegendWithMouseOver.cjs.map +1 -1
  707. package/dist/ThresholdColorLegendWithMouseOver.d.ts +2 -18
  708. package/dist/ThresholdColorLegendWithMouseOver.js +109 -102
  709. package/dist/ThresholdColorLegendWithMouseOver.js.map +1 -1
  710. package/dist/Tooltip-CO_iOj_w.cjs +2 -0
  711. package/dist/Tooltip-CO_iOj_w.cjs.map +1 -0
  712. package/dist/Tooltip-Y6uTGwkF.js +33 -0
  713. package/dist/Tooltip-Y6uTGwkF.js.map +1 -0
  714. package/dist/TreeMapGraph-BL2-s-r1.cjs +2 -0
  715. package/dist/TreeMapGraph-BL2-s-r1.cjs.map +1 -0
  716. package/dist/TreeMapGraph-C9G05WWG.js +598 -0
  717. package/dist/TreeMapGraph-C9G05WWG.js.map +1 -0
  718. package/dist/TreeMapGraph.cjs +1 -2
  719. package/dist/TreeMapGraph.d.ts +2 -165
  720. package/dist/TreeMapGraph.js +2 -617
  721. package/dist/Types.cjs +1 -2
  722. package/dist/Types.d.ts +935 -1033
  723. package/dist/Types.d.ts.map +1 -0
  724. package/dist/Types.js +0 -2
  725. package/dist/UnitChart.cjs +2 -2
  726. package/dist/UnitChart.cjs.map +1 -1
  727. package/dist/UnitChart.d.ts +2 -145
  728. package/dist/UnitChart.js +148 -165
  729. package/dist/UnitChart.js.map +1 -1
  730. package/dist/Utils/checkDataValidity.d.ts +6 -0
  731. package/dist/Utils/checkDataValidity.d.ts.map +1 -0
  732. package/dist/Utils/checkIfMultiple.d.ts +3 -0
  733. package/dist/Utils/checkIfMultiple.d.ts.map +1 -0
  734. package/dist/Utils/checkIfNullOrUndefined.d.ts +14 -0
  735. package/dist/Utils/checkIfNullOrUndefined.d.ts.map +1 -0
  736. package/dist/Utils/ensureCompleteData.d.ts +8 -0
  737. package/dist/Utils/ensureCompleteData.d.ts.map +1 -0
  738. package/dist/Utils/excelDownload.d.ts +30 -0
  739. package/dist/Utils/excelDownload.d.ts.map +1 -0
  740. package/dist/Utils/fetchAndParseData.d.ts +65 -0
  741. package/dist/Utils/fetchAndParseData.d.ts.map +1 -0
  742. package/dist/Utils/generateCodes.d.ts +23 -0
  743. package/dist/Utils/generateCodes.d.ts.map +1 -0
  744. package/dist/Utils/generateRandomString.d.ts +2 -0
  745. package/dist/Utils/generateRandomString.d.ts.map +1 -0
  746. package/dist/Utils/getArc.d.ts +2 -0
  747. package/dist/Utils/getArc.d.ts.map +1 -0
  748. package/dist/Utils/getCentroidCoordinates.d.ts +3 -0
  749. package/dist/Utils/getCentroidCoordinates.d.ts.map +1 -0
  750. package/dist/Utils/getGraphList.d.ts +8 -0
  751. package/dist/Utils/getGraphList.d.ts.map +1 -0
  752. package/dist/Utils/getJenks.d.ts +16 -0
  753. package/dist/Utils/getJenks.d.ts.map +1 -0
  754. package/dist/Utils/getLineEndPoint.d.ts +10 -0
  755. package/dist/Utils/getLineEndPoint.d.ts.map +1 -0
  756. package/dist/Utils/getNoOfTicks.d.ts +2 -0
  757. package/dist/Utils/getNoOfTicks.d.ts.map +1 -0
  758. package/dist/Utils/getPathFromPoints.d.ts +2 -0
  759. package/dist/Utils/getPathFromPoints.d.ts.map +1 -0
  760. package/dist/Utils/getPercentileValue.d.ts +12 -0
  761. package/dist/Utils/getPercentileValue.d.ts.map +1 -0
  762. package/dist/Utils/getQueryParamsFromLink.d.ts +17 -0
  763. package/dist/Utils/getQueryParamsFromLink.d.ts.map +1 -0
  764. package/dist/Utils/getSliderMarks.d.ts +2 -0
  765. package/dist/Utils/getSliderMarks.d.ts.map +1 -0
  766. package/dist/Utils/getTextColorBasedOnBgColor.d.ts +12 -0
  767. package/dist/Utils/getTextColorBasedOnBgColor.d.ts.map +1 -0
  768. package/dist/Utils/getTickPosition.d.ts +2 -0
  769. package/dist/Utils/getTickPosition.d.ts.map +1 -0
  770. package/dist/Utils/getUniqValue.d.ts +17 -0
  771. package/dist/Utils/getUniqValue.d.ts.map +1 -0
  772. package/dist/Utils/getValues.d.ts +6 -0
  773. package/dist/Utils/getValues.d.ts.map +1 -0
  774. package/dist/Utils/imageDownload.d.ts +15 -0
  775. package/dist/Utils/imageDownload.d.ts.map +1 -0
  776. package/dist/Utils/index.d.ts +15 -0
  777. package/dist/Utils/index.d.ts.map +1 -0
  778. package/dist/Utils/numberFormattingFunction.d.ts +12 -0
  779. package/dist/Utils/numberFormattingFunction.d.ts.map +1 -0
  780. package/dist/Utils/padArray.d.ts +3 -0
  781. package/dist/Utils/padArray.d.ts.map +1 -0
  782. package/dist/Utils/removeOutliers.d.ts +15 -0
  783. package/dist/Utils/removeOutliers.d.ts.map +1 -0
  784. package/dist/Utils/string2HTML.d.ts +2 -0
  785. package/dist/Utils/string2HTML.d.ts.map +1 -0
  786. package/dist/Utils/svgDownload.d.ts +15 -0
  787. package/dist/Utils/svgDownload.d.ts.map +1 -0
  788. package/dist/Utils/transformData/filterData.d.ts +3 -0
  789. package/dist/Utils/transformData/filterData.d.ts.map +1 -0
  790. package/dist/Utils/transformData/graphConfig.d.ts +10 -0
  791. package/dist/Utils/transformData/graphConfig.d.ts.map +1 -0
  792. package/dist/Utils/transformData/index.d.ts +5 -0
  793. package/dist/Utils/transformData/index.d.ts.map +1 -0
  794. package/dist/Utils/transformData/mergeMultipleData.d.ts +5 -0
  795. package/dist/Utils/transformData/mergeMultipleData.d.ts.map +1 -0
  796. package/dist/Utils/transformData/transformColumnsToArray.d.ts +33 -0
  797. package/dist/Utils/transformData/transformColumnsToArray.d.ts.map +1 -0
  798. package/dist/Utils/transformData/transformDataForAggregation.d.ts +33 -0
  799. package/dist/Utils/transformData/transformDataForAggregation.d.ts.map +1 -0
  800. package/dist/Utils/transformData/transformDataForGraph.d.ts +36 -0
  801. package/dist/Utils/transformData/transformDataForGraph.d.ts.map +1 -0
  802. package/dist/Utils/transformData/transformDataForGraphFromFile.d.ts +40 -0
  803. package/dist/Utils/transformData/transformDataForGraphFromFile.d.ts.map +1 -0
  804. package/dist/Utils/transformDataForSelect.d.ts +8 -0
  805. package/dist/Utils/transformDataForSelect.d.ts.map +1 -0
  806. package/dist/Utils/uniqBy.d.ts +2 -0
  807. package/dist/Utils/uniqBy.d.ts.map +1 -0
  808. package/dist/Utils/wideToLongTranformation.d.ts +5 -0
  809. package/dist/Utils/wideToLongTranformation.d.ts.map +1 -0
  810. package/dist/Utils-C5kfxVL2.js +56 -0
  811. package/dist/Utils-C5kfxVL2.js.map +1 -0
  812. package/dist/Utils-HrtbRBIa.cjs +2 -0
  813. package/dist/Utils-HrtbRBIa.cjs.map +1 -0
  814. package/dist/WaterfallChart-BKpFUJdY.js +380 -0
  815. package/dist/WaterfallChart-BKpFUJdY.js.map +1 -0
  816. package/dist/WaterfallChart-cJ5pGsDu.cjs +2 -0
  817. package/dist/WaterfallChart-cJ5pGsDu.cjs.map +1 -0
  818. package/dist/WaterfallChart.cjs +1 -2
  819. package/dist/WaterfallChart.d.ts +2 -213
  820. package/dist/WaterfallChart.js +2 -426
  821. package/dist/XAxesLabels-BvzqZwll.cjs +2 -0
  822. package/dist/XAxesLabels-BvzqZwll.cjs.map +1 -0
  823. package/dist/XAxesLabels-DIs04SK7.js +45 -0
  824. package/dist/XAxesLabels-DIs04SK7.js.map +1 -0
  825. package/dist/XTicksAndGridLines-8v1W02Pd.cjs +2 -0
  826. package/dist/XTicksAndGridLines-8v1W02Pd.cjs.map +1 -0
  827. package/dist/XTicksAndGridLines-B2XZgwzW.js +31 -0
  828. package/dist/XTicksAndGridLines-B2XZgwzW.js.map +1 -0
  829. package/dist/YAxesLabels-DKRDxuHA.cjs +2 -0
  830. package/dist/YAxesLabels-DKRDxuHA.cjs.map +1 -0
  831. package/dist/YAxesLabels-voV_CThY.js +45 -0
  832. package/dist/YAxesLabels-voV_CThY.js.map +1 -0
  833. package/dist/YTicksAndGridLines-CRW_R845.cjs +2 -0
  834. package/dist/YTicksAndGridLines-CRW_R845.cjs.map +1 -0
  835. package/dist/YTicksAndGridLines-CVTzNJYP.js +31 -0
  836. package/dist/YTicksAndGridLines-CVTzNJYP.js.map +1 -0
  837. package/dist/area-BLagdTXz.js +51 -0
  838. package/dist/area-BLagdTXz.js.map +1 -0
  839. package/dist/area-Cwt2IPSp.cjs +2 -0
  840. package/dist/area-Cwt2IPSp.cjs.map +1 -0
  841. package/dist/array-BBVF08DC.cjs +2 -0
  842. package/dist/array-BBVF08DC.cjs.map +1 -0
  843. package/dist/array-ZS2WLXqD.js +14 -0
  844. package/dist/array-ZS2WLXqD.js.map +1 -0
  845. package/dist/band-BWpW41la.cjs +2 -0
  846. package/dist/band-BWpW41la.cjs.map +1 -0
  847. package/dist/band-XivI9IHG.js +49 -0
  848. package/dist/band-XivI9IHG.js.map +1 -0
  849. package/dist/checkIfNullOrUndefined-C5gqSAtF.js +8 -0
  850. package/dist/checkIfNullOrUndefined-C5gqSAtF.js.map +1 -0
  851. package/dist/checkIfNullOrUndefined-DYvc3fz_.cjs +2 -0
  852. package/dist/checkIfNullOrUndefined-DYvc3fz_.cjs.map +1 -0
  853. package/dist/chunk-foFoljWS.js +23 -0
  854. package/dist/chunk-gGpyby2o.cjs +1 -0
  855. package/dist/defaultLocale-DOietvnG.js +203 -0
  856. package/dist/defaultLocale-DOietvnG.js.map +1 -0
  857. package/dist/defaultLocale-DQoNc1A3.cjs +2 -0
  858. package/dist/defaultLocale-DQoNc1A3.cjs.map +1 -0
  859. package/dist/delaunay-M1ErmNzW.cjs +2 -0
  860. package/dist/delaunay-M1ErmNzW.cjs.map +1 -0
  861. package/dist/delaunay-ZuH6I4Fh.js +679 -0
  862. package/dist/delaunay-ZuH6I4Fh.js.map +1 -0
  863. package/dist/ensureCompleteData-CqLz7Btq.cjs +2 -0
  864. package/dist/ensureCompleteData-CqLz7Btq.cjs.map +1 -0
  865. package/dist/ensureCompleteData-VxAHq-s7.js +100 -0
  866. package/dist/ensureCompleteData-VxAHq-s7.js.map +1 -0
  867. package/dist/esm-BwfGJUcL.cjs +2 -0
  868. package/dist/esm-BwfGJUcL.cjs.map +1 -0
  869. package/dist/esm-D23XoYrV.js +653 -0
  870. package/dist/esm-D23XoYrV.js.map +1 -0
  871. package/dist/excelDownload-CVpK5TPY.cjs +2 -0
  872. package/dist/excelDownload-CVpK5TPY.cjs.map +1 -0
  873. package/dist/excelDownload-lQy9nEu2.js +26 -0
  874. package/dist/excelDownload-lQy9nEu2.js.map +1 -0
  875. package/dist/fast-deep-equal--80N92KJ.js +31 -0
  876. package/dist/fast-deep-equal--80N92KJ.js.map +1 -0
  877. package/dist/fast-deep-equal-DN3ilkVq.cjs +2 -0
  878. package/dist/fast-deep-equal-DN3ilkVq.cjs.map +1 -0
  879. package/dist/fetchAndParseData-C50SqMPu.js +633 -0
  880. package/dist/fetchAndParseData-C50SqMPu.js.map +1 -0
  881. package/dist/fetchAndParseData-Dlq4UzdG.cjs +11 -0
  882. package/dist/fetchAndParseData-Dlq4UzdG.cjs.map +1 -0
  883. package/dist/fetchAndParseData.cjs +1 -2
  884. package/dist/fetchAndParseData.d.ts +2 -84
  885. package/dist/fetchAndParseData.js +2 -10
  886. package/dist/filterData-B2pPOkwy.cjs +2 -0
  887. package/dist/filterData-B2pPOkwy.cjs.map +1 -0
  888. package/dist/filterData-Dp_HZ71j.js +12 -0
  889. package/dist/filterData-Dp_HZ71j.js.map +1 -0
  890. package/dist/generateRandomString-BaDYvqHT.js +10 -0
  891. package/dist/generateRandomString-BaDYvqHT.js.map +1 -0
  892. package/dist/generateRandomString-GzIwYnol.cjs +2 -0
  893. package/dist/generateRandomString-GzIwYnol.cjs.map +1 -0
  894. package/dist/getCentroidCoordinates-BxK8C2EL.js +64 -0
  895. package/dist/getCentroidCoordinates-BxK8C2EL.js.map +1 -0
  896. package/dist/getCentroidCoordinates-DWO-SCXv.cjs +2 -0
  897. package/dist/getCentroidCoordinates-DWO-SCXv.cjs.map +1 -0
  898. package/dist/getGraphList-BIaPQiZ0.js +280 -0
  899. package/dist/getGraphList-BIaPQiZ0.js.map +1 -0
  900. package/dist/getGraphList-DnwJeVCr.cjs +2 -0
  901. package/dist/getGraphList-DnwJeVCr.cjs.map +1 -0
  902. package/dist/getJenks-49NAtnQV.js +21 -0
  903. package/dist/getJenks-49NAtnQV.js.map +1 -0
  904. package/dist/getJenks-D0stlcvY.cjs +2 -0
  905. package/dist/getJenks-D0stlcvY.cjs.map +1 -0
  906. package/dist/getLineEndPoint-BkKmq-KI.js +130 -0
  907. package/dist/getLineEndPoint-BkKmq-KI.js.map +1 -0
  908. package/dist/getLineEndPoint-CahgY2dz.cjs +2 -0
  909. package/dist/getLineEndPoint-CahgY2dz.cjs.map +1 -0
  910. package/dist/getNoOfTicks-Bz_9Xmc6.js +8 -0
  911. package/dist/getNoOfTicks-Bz_9Xmc6.js.map +1 -0
  912. package/dist/getNoOfTicks-CwG9lMmQ.cjs +2 -0
  913. package/dist/getNoOfTicks-CwG9lMmQ.cjs.map +1 -0
  914. package/dist/getSliderMarks-CTKVxOEm.js +19 -0
  915. package/dist/getSliderMarks-CTKVxOEm.js.map +1 -0
  916. package/dist/getSliderMarks-DCEGtxIl.cjs +2 -0
  917. package/dist/getSliderMarks-DCEGtxIl.cjs.map +1 -0
  918. package/dist/getTextColorBasedOnBgColor-B0B-azeJ.cjs +2 -0
  919. package/dist/getTextColorBasedOnBgColor-B0B-azeJ.cjs.map +1 -0
  920. package/dist/getTextColorBasedOnBgColor-Ch7uw_Px.js +34 -0
  921. package/dist/getTextColorBasedOnBgColor-Ch7uw_Px.js.map +1 -0
  922. package/dist/getUniqValue-BItnnZEr.cjs +2 -0
  923. package/dist/getUniqValue-BItnnZEr.cjs.map +1 -0
  924. package/dist/getUniqValue-DZTOHgt8.js +11 -0
  925. package/dist/getUniqValue-DZTOHgt8.js.map +1 -0
  926. package/dist/getValues-Bt73vs_w.js +13 -0
  927. package/dist/getValues-Bt73vs_w.js.map +1 -0
  928. package/dist/getValues-CX_V1GcA.cjs +2 -0
  929. package/dist/getValues-CX_V1GcA.cjs.map +1 -0
  930. package/dist/imageDownload-B8Pd4gTs.cjs +15 -0
  931. package/dist/imageDownload-B8Pd4gTs.cjs.map +1 -0
  932. package/dist/imageDownload-DFFsgajo.js +804 -0
  933. package/dist/imageDownload-DFFsgajo.js.map +1 -0
  934. package/dist/index.cjs +1 -2
  935. package/dist/index.d.ts +91 -5918
  936. package/dist/index.d.ts.map +1 -0
  937. package/dist/index.js +86 -183
  938. package/dist/init-BTypmXMF.cjs +2 -0
  939. package/dist/init-BTypmXMF.cjs.map +1 -0
  940. package/dist/init-CT6uqW57.js +75 -0
  941. package/dist/init-CT6uqW57.js.map +1 -0
  942. package/dist/jsx-runtime-C76bEyh7.js +182 -0
  943. package/dist/jsx-runtime-C76bEyh7.js.map +1 -0
  944. package/dist/jsx-runtime-Cd1vCQjn.cjs +7 -0
  945. package/dist/jsx-runtime-Cd1vCQjn.cjs.map +1 -0
  946. package/dist/line-6wslDyQb.js +144 -0
  947. package/dist/line-6wslDyQb.js.map +1 -0
  948. package/dist/line-DoUnRqpS.cjs +2 -0
  949. package/dist/line-DoUnRqpS.cjs.map +1 -0
  950. package/dist/linear-B93YyHf_.cjs +2 -0
  951. package/dist/linear-B93YyHf_.cjs.map +1 -0
  952. package/dist/linear-BkosG4OK.js +234 -0
  953. package/dist/linear-BkosG4OK.js.map +1 -0
  954. package/dist/lodash.flattendeep-_PlS_1wX.cjs +2 -0
  955. package/dist/lodash.flattendeep-_PlS_1wX.cjs.map +1 -0
  956. package/dist/lodash.flattendeep-a__mQ60W.js +53 -0
  957. package/dist/lodash.flattendeep-a__mQ60W.js.map +1 -0
  958. package/dist/lodash.intersection-BDR4j58n.cjs +2 -0
  959. package/dist/lodash.intersection-BDR4j58n.cjs.map +1 -0
  960. package/dist/lodash.intersection-C9QFuAQj.js +248 -0
  961. package/dist/lodash.intersection-C9QFuAQj.js.map +1 -0
  962. package/dist/lodash.orderby-Dn2sr3tw.js +583 -0
  963. package/dist/lodash.orderby-Dn2sr3tw.js.map +1 -0
  964. package/dist/lodash.orderby-Us2PHq2D.cjs +2 -0
  965. package/dist/lodash.orderby-Us2PHq2D.cjs.map +1 -0
  966. package/dist/lodash.sum-CX6zs3_n.js +22 -0
  967. package/dist/lodash.sum-CX6zs3_n.js.map +1 -0
  968. package/dist/lodash.sum-bWhlZLUV.cjs +2 -0
  969. package/dist/lodash.sum-bWhlZLUV.cjs.map +1 -0
  970. package/dist/numberFormattingFunction-Caf5NyIo.cjs +2 -0
  971. package/dist/numberFormattingFunction-Caf5NyIo.cjs.map +1 -0
  972. package/dist/numberFormattingFunction-Cha8dhHc.js +29 -0
  973. package/dist/numberFormattingFunction-Cha8dhHc.js.map +1 -0
  974. package/dist/ordinal-Dq1sg8_s.js +67 -0
  975. package/dist/ordinal-Dq1sg8_s.js.map +1 -0
  976. package/dist/ordinal-FQwO0oQx.cjs +2 -0
  977. package/dist/ordinal-FQwO0oQx.cjs.map +1 -0
  978. package/dist/parse-5MWhaq6h.js +2508 -0
  979. package/dist/parse-5MWhaq6h.js.map +1 -0
  980. package/dist/parse-C718o4YM.cjs +2 -0
  981. package/dist/parse-C718o4YM.cjs.map +1 -0
  982. package/dist/pointer-CoEekBJE.js +26 -0
  983. package/dist/pointer-CoEekBJE.js.map +1 -0
  984. package/dist/pointer-nSSkgdlX.cjs +2 -0
  985. package/dist/pointer-nSSkgdlX.cjs.map +1 -0
  986. package/dist/pow-CISbw8TV.js +36 -0
  987. package/dist/pow-CISbw8TV.js.map +1 -0
  988. package/dist/pow-DXd5n928.cjs +2 -0
  989. package/dist/pow-DXd5n928.cjs.map +1 -0
  990. package/dist/proxy-BiRrIImK.js +4656 -0
  991. package/dist/proxy-BiRrIImK.js.map +1 -0
  992. package/dist/proxy-DaRMphjR.cjs +2 -0
  993. package/dist/proxy-DaRMphjR.cjs.map +1 -0
  994. package/dist/select-0Z0HV7nm.js +649 -0
  995. package/dist/select-0Z0HV7nm.js.map +1 -0
  996. package/dist/select-CZVfejpg.cjs +2 -0
  997. package/dist/select-CZVfejpg.cjs.map +1 -0
  998. package/dist/simple-statistics-B4XnKTMF.cjs +2 -0
  999. package/dist/simple-statistics-B4XnKTMF.cjs.map +1 -0
  1000. package/dist/simple-statistics-BlsBuRxU.js +97 -0
  1001. package/dist/simple-statistics-BlsBuRxU.js.map +1 -0
  1002. package/dist/src-2DIiCwTd.js +2377 -0
  1003. package/dist/src-2DIiCwTd.js.map +1 -0
  1004. package/dist/src-BstANsLK.cjs +2 -0
  1005. package/dist/src-BstANsLK.cjs.map +1 -0
  1006. package/dist/step-Bxl4gFpO.js +135 -0
  1007. package/dist/step-Bxl4gFpO.js.map +1 -0
  1008. package/dist/step-C_FLQezZ.cjs +2 -0
  1009. package/dist/step-C_FLQezZ.cjs.map +1 -0
  1010. package/dist/stories/Dashboards/Elements/ChartConfigDropdown.d.ts +6 -0
  1011. package/dist/stories/Dashboards/Elements/ChartConfigDropdown.d.ts.map +1 -0
  1012. package/dist/stories/Graph+Maps+Charts/BarGraph/BarGraph.stories.d.ts +9 -0
  1013. package/dist/stories/Graph+Maps+Charts/BarGraph/BarGraph.stories.d.ts.map +1 -0
  1014. package/dist/stories/Graph+Maps+Charts/BarGraph/BarGraphAnimated.stories.d.ts +9 -0
  1015. package/dist/stories/Graph+Maps+Charts/BarGraph/BarGraphAnimated.stories.d.ts.map +1 -0
  1016. package/dist/stories/Graph+Maps+Charts/BarGraph/GroupedBarGraph.stories.d.ts +9 -0
  1017. package/dist/stories/Graph+Maps+Charts/BarGraph/GroupedBarGraph.stories.d.ts.map +1 -0
  1018. package/dist/stories/Graph+Maps+Charts/BarGraph/GroupedBarGraphAnimated.stories.d.ts +9 -0
  1019. package/dist/stories/Graph+Maps+Charts/BarGraph/GroupedBarGraphAnimated.stories.d.ts.map +1 -0
  1020. package/dist/stories/Graph+Maps+Charts/BarGraph/StackedBarGraph.stories.d.ts +9 -0
  1021. package/dist/stories/Graph+Maps+Charts/BarGraph/StackedBarGraph.stories.d.ts.map +1 -0
  1022. package/dist/stories/Graph+Maps+Charts/BarGraph/StackedBarGraphAnimated.stories.d.ts +9 -0
  1023. package/dist/stories/Graph+Maps+Charts/BarGraph/StackedBarGraphAnimated.stories.d.ts.map +1 -0
  1024. package/dist/stories/Graph+Maps+Charts/BeeSwarmChart.stories.d.ts +9 -0
  1025. package/dist/stories/Graph+Maps+Charts/BeeSwarmChart.stories.d.ts.map +1 -0
  1026. package/dist/stories/Graph+Maps+Charts/BulletChart.stories.d.ts +9 -0
  1027. package/dist/stories/Graph+Maps+Charts/BulletChart.stories.d.ts.map +1 -0
  1028. package/dist/stories/Graph+Maps+Charts/BulletChartAnimated.stories.d.ts +9 -0
  1029. package/dist/stories/Graph+Maps+Charts/BulletChartAnimated.stories.d.ts.map +1 -0
  1030. package/dist/stories/Graph+Maps+Charts/ButterflyChart.stories.d.ts +9 -0
  1031. package/dist/stories/Graph+Maps+Charts/ButterflyChart.stories.d.ts.map +1 -0
  1032. package/dist/stories/Graph+Maps+Charts/ButterflyChartAnimated.stories.d.ts +9 -0
  1033. package/dist/stories/Graph+Maps+Charts/ButterflyChartAnimated.stories.d.ts.map +1 -0
  1034. package/dist/stories/Graph+Maps+Charts/CirclePacking.stories.d.ts +9 -0
  1035. package/dist/stories/Graph+Maps+Charts/CirclePacking.stories.d.ts.map +1 -0
  1036. package/dist/stories/Graph+Maps+Charts/DataCards.stories.d.ts +9 -0
  1037. package/dist/stories/Graph+Maps+Charts/DataCards.stories.d.ts.map +1 -0
  1038. package/dist/stories/Graph+Maps+Charts/DataTables.stories.d.ts +9 -0
  1039. package/dist/stories/Graph+Maps+Charts/DataTables.stories.d.ts.map +1 -0
  1040. package/dist/stories/Graph+Maps+Charts/DonutChart.stories.d.ts +9 -0
  1041. package/dist/stories/Graph+Maps+Charts/DonutChart.stories.d.ts.map +1 -0
  1042. package/dist/stories/Graph+Maps+Charts/DumbbellChart.stories.d.ts +9 -0
  1043. package/dist/stories/Graph+Maps+Charts/DumbbellChart.stories.d.ts.map +1 -0
  1044. package/dist/stories/Graph+Maps+Charts/DumbbellChartAnimated.stories.d.ts +9 -0
  1045. package/dist/stories/Graph+Maps+Charts/DumbbellChartAnimated.stories.d.ts.map +1 -0
  1046. package/dist/stories/Graph+Maps+Charts/HeatMap.stories.d.ts +9 -0
  1047. package/dist/stories/Graph+Maps+Charts/HeatMap.stories.d.ts.map +1 -0
  1048. package/dist/stories/Graph+Maps+Charts/Histogram.stories.d.ts +9 -0
  1049. package/dist/stories/Graph+Maps+Charts/Histogram.stories.d.ts.map +1 -0
  1050. package/dist/stories/Graph+Maps+Charts/LineCharts/DifferenceLineChart.stories.d.ts +9 -0
  1051. package/dist/stories/Graph+Maps+Charts/LineCharts/DifferenceLineChart.stories.d.ts.map +1 -0
  1052. package/dist/stories/Graph+Maps+Charts/LineCharts/DualAxesLineChart.stories.d.ts +9 -0
  1053. package/dist/stories/Graph+Maps+Charts/LineCharts/DualAxesLineChart.stories.d.ts.map +1 -0
  1054. package/dist/stories/Graph+Maps+Charts/LineCharts/LineChart.stories.d.ts +9 -0
  1055. package/dist/stories/Graph+Maps+Charts/LineCharts/LineChart.stories.d.ts.map +1 -0
  1056. package/dist/stories/Graph+Maps+Charts/LineCharts/LineChartWithInterval.stories.d.ts +9 -0
  1057. package/dist/stories/Graph+Maps+Charts/LineCharts/LineChartWithInterval.stories.d.ts.map +1 -0
  1058. package/dist/stories/Graph+Maps+Charts/LineCharts/MultiLineAltChart.stories.d.ts +9 -0
  1059. package/dist/stories/Graph+Maps+Charts/LineCharts/MultiLineAltChart.stories.d.ts.map +1 -0
  1060. package/dist/stories/Graph+Maps+Charts/LineCharts/MultiLineChart.stories.d.ts +9 -0
  1061. package/dist/stories/Graph+Maps+Charts/LineCharts/MultiLineChart.stories.d.ts.map +1 -0
  1062. package/dist/stories/Graph+Maps+Charts/LineCharts/Sparkline.stories.d.ts +9 -0
  1063. package/dist/stories/Graph+Maps+Charts/LineCharts/Sparkline.stories.d.ts.map +1 -0
  1064. package/dist/stories/Graph+Maps+Charts/Maps/BiVariateChroplethMap.stories.d.ts +9 -0
  1065. package/dist/stories/Graph+Maps+Charts/Maps/BiVariateChroplethMap.stories.d.ts.map +1 -0
  1066. package/dist/stories/Graph+Maps+Charts/Maps/BiVariateChroplethMapAnimated.stories.d.ts +9 -0
  1067. package/dist/stories/Graph+Maps+Charts/Maps/BiVariateChroplethMapAnimated.stories.d.ts.map +1 -0
  1068. package/dist/stories/Graph+Maps+Charts/Maps/ChroplethMap.stories.d.ts +9 -0
  1069. package/dist/stories/Graph+Maps+Charts/Maps/ChroplethMap.stories.d.ts.map +1 -0
  1070. package/dist/stories/Graph+Maps+Charts/Maps/ChroplethMapAnimated.stories.d.ts +9 -0
  1071. package/dist/stories/Graph+Maps+Charts/Maps/ChroplethMapAnimated.stories.d.ts.map +1 -0
  1072. package/dist/stories/Graph+Maps+Charts/Maps/DotDensityMap.stories.d.ts +9 -0
  1073. package/dist/stories/Graph+Maps+Charts/Maps/DotDensityMap.stories.d.ts.map +1 -0
  1074. package/dist/stories/Graph+Maps+Charts/Maps/DotDensityMapAnimated.stories.d.ts +9 -0
  1075. package/dist/stories/Graph+Maps+Charts/Maps/DotDensityMapAnimated.stories.d.ts.map +1 -0
  1076. package/dist/stories/Graph+Maps+Charts/Maps/GeoHubCompareMaps.stories.d.ts +9 -0
  1077. package/dist/stories/Graph+Maps+Charts/Maps/GeoHubCompareMaps.stories.d.ts.map +1 -0
  1078. package/dist/stories/Graph+Maps+Charts/Maps/GeoHubMultiLayerSelectMap.stories.d.ts +9 -0
  1079. package/dist/stories/Graph+Maps+Charts/Maps/GeoHubMultiLayerSelectMap.stories.d.ts.map +1 -0
  1080. package/dist/stories/Graph+Maps+Charts/Maps/GeoHubSimpleMap.stories.d.ts +9 -0
  1081. package/dist/stories/Graph+Maps+Charts/Maps/GeoHubSimpleMap.stories.d.ts.map +1 -0
  1082. package/dist/stories/Graph+Maps+Charts/Maps/HybridMap.stories.d.ts +9 -0
  1083. package/dist/stories/Graph+Maps+Charts/Maps/HybridMap.stories.d.ts.map +1 -0
  1084. package/dist/stories/Graph+Maps+Charts/Maps/HybridMapAnimated.stories.d.ts +9 -0
  1085. package/dist/stories/Graph+Maps+Charts/Maps/HybridMapAnimated.stories.d.ts.map +1 -0
  1086. package/dist/stories/Graph+Maps+Charts/Maps/ThreeDGlobe.stories.d.ts +9 -0
  1087. package/dist/stories/Graph+Maps+Charts/Maps/ThreeDGlobe.stories.d.ts.map +1 -0
  1088. package/dist/stories/Graph+Maps+Charts/ParetoChart.stories.d.ts +9 -0
  1089. package/dist/stories/Graph+Maps+Charts/ParetoChart.stories.d.ts.map +1 -0
  1090. package/dist/stories/Graph+Maps+Charts/RadarChart.stories.d.ts +9 -0
  1091. package/dist/stories/Graph+Maps+Charts/RadarChart.stories.d.ts.map +1 -0
  1092. package/dist/stories/Graph+Maps+Charts/SankeyChart.stories.d.ts +9 -0
  1093. package/dist/stories/Graph+Maps+Charts/SankeyChart.stories.d.ts.map +1 -0
  1094. package/dist/stories/Graph+Maps+Charts/ScatterPlot.stories.d.ts +9 -0
  1095. package/dist/stories/Graph+Maps+Charts/ScatterPlot.stories.d.ts.map +1 -0
  1096. package/dist/stories/Graph+Maps+Charts/ScatterPlotAnimated.stories.d.ts +9 -0
  1097. package/dist/stories/Graph+Maps+Charts/ScatterPlotAnimated.stories.d.ts.map +1 -0
  1098. package/dist/stories/Graph+Maps+Charts/SlopeChart.stories.d.ts +9 -0
  1099. package/dist/stories/Graph+Maps+Charts/SlopeChart.stories.d.ts.map +1 -0
  1100. package/dist/stories/Graph+Maps+Charts/StackedAreaChart.stories.d.ts +9 -0
  1101. package/dist/stories/Graph+Maps+Charts/StackedAreaChart.stories.d.ts.map +1 -0
  1102. package/dist/stories/Graph+Maps+Charts/StatCards/BasicStatCard.stories.d.ts +9 -0
  1103. package/dist/stories/Graph+Maps+Charts/StatCards/BasicStatCard.stories.d.ts.map +1 -0
  1104. package/dist/stories/Graph+Maps+Charts/StatCards/StatCardFromData.stories.d.ts +9 -0
  1105. package/dist/stories/Graph+Maps+Charts/StatCards/StatCardFromData.stories.d.ts.map +1 -0
  1106. package/dist/stories/Graph+Maps+Charts/StripChart.stories.d.ts +9 -0
  1107. package/dist/stories/Graph+Maps+Charts/StripChart.stories.d.ts.map +1 -0
  1108. package/dist/stories/Graph+Maps+Charts/TreeMap.stories.d.ts +9 -0
  1109. package/dist/stories/Graph+Maps+Charts/TreeMap.stories.d.ts.map +1 -0
  1110. package/dist/stories/Graph+Maps+Charts/UnitChart.stories.d.ts +9 -0
  1111. package/dist/stories/Graph+Maps+Charts/UnitChart.stories.d.ts.map +1 -0
  1112. package/dist/stories/Graph+Maps+Charts/WaterfallChart.stories.d.ts +9 -0
  1113. package/dist/stories/Graph+Maps+Charts/WaterfallChart.stories.d.ts.map +1 -0
  1114. package/dist/stories/Utilities/Color Palette/DataVizDarkMode.stories.d.ts +5 -0
  1115. package/dist/stories/Utilities/Color Palette/DataVizDarkMode.stories.d.ts.map +1 -0
  1116. package/dist/stories/Utilities/Color Palette/DataVizLightMode.stories.d.ts +5 -0
  1117. package/dist/stories/Utilities/Color Palette/DataVizLightMode.stories.d.ts.map +1 -0
  1118. package/dist/stories/Utilities/Color Palette/Palette Component/index.d.ts +6 -0
  1119. package/dist/stories/Utilities/Color Palette/Palette Component/index.d.ts.map +1 -0
  1120. package/dist/stories/Utilities/Color Palette/Primary.stories.d.ts +5 -0
  1121. package/dist/stories/Utilities/Color Palette/Primary.stories.d.ts.map +1 -0
  1122. package/dist/stories/assets/constants.d.ts +14 -0
  1123. package/dist/stories/assets/constants.d.ts.map +1 -0
  1124. package/dist/stories/assets/graphDataConfigSelect.d.ts +2 -0
  1125. package/dist/stories/assets/graphDataConfigSelect.d.ts.map +1 -0
  1126. package/dist/stories/assets/graphSettingsSelect.d.ts +2 -0
  1127. package/dist/stories/assets/graphSettingsSelect.d.ts.map +1 -0
  1128. package/dist/stories/assets/parseValue.d.ts +2 -0
  1129. package/dist/stories/assets/parseValue.d.ts.map +1 -0
  1130. package/dist/string-C0cfWwsg.cjs +2 -0
  1131. package/dist/string-C0cfWwsg.cjs.map +1 -0
  1132. package/dist/string-ChkwXRLb.js +367 -0
  1133. package/dist/string-ChkwXRLb.js.map +1 -0
  1134. package/dist/string2HTML-CvbtZnul.js +893 -0
  1135. package/dist/string2HTML-CvbtZnul.js.map +1 -0
  1136. package/dist/string2HTML-CyL1MYMB.cjs +3 -0
  1137. package/dist/string2HTML-CyL1MYMB.cjs.map +1 -0
  1138. package/dist/style.css +2 -1
  1139. package/dist/svgDownload-B47CWa3n.js +10 -0
  1140. package/dist/svgDownload-B47CWa3n.js.map +1 -0
  1141. package/dist/svgDownload-BfClOPfh.cjs +2 -0
  1142. package/dist/svgDownload-BfClOPfh.cjs.map +1 -0
  1143. package/dist/threshold-BXJz-mv7.cjs +2 -0
  1144. package/dist/threshold-BXJz-mv7.cjs.map +1 -0
  1145. package/dist/threshold-j3AJep9l.js +24 -0
  1146. package/dist/threshold-j3AJep9l.js.map +1 -0
  1147. package/dist/time-B9tsaA4g.cjs +2 -0
  1148. package/dist/time-B9tsaA4g.cjs.map +1 -0
  1149. package/dist/time-BSWvT9ln.js +840 -0
  1150. package/dist/time-BSWvT9ln.js.map +1 -0
  1151. package/dist/timer-BSVEY28v.js +119 -0
  1152. package/dist/timer-BSVEY28v.js.map +1 -0
  1153. package/dist/timer-D4OWClu3.cjs +2 -0
  1154. package/dist/timer-D4OWClu3.cjs.map +1 -0
  1155. package/dist/transformData.cjs +1 -2
  1156. package/dist/transformData.d.ts +2 -170
  1157. package/dist/transformData.js +4 -10
  1158. package/dist/transformDataForGraph-CiaG24wJ.cjs +2 -0
  1159. package/dist/transformDataForGraph-CiaG24wJ.cjs.map +1 -0
  1160. package/dist/transformDataForGraph-DKYRsjv8.js +766 -0
  1161. package/dist/transformDataForGraph-DKYRsjv8.js.map +1 -0
  1162. package/dist/transformDataForGraphFromFile-BZGRv4KM.js +14 -0
  1163. package/dist/transformDataForGraphFromFile-BZGRv4KM.js.map +1 -0
  1164. package/dist/transformDataForGraphFromFile-kjckJjiV.cjs +2 -0
  1165. package/dist/transformDataForGraphFromFile-kjckJjiV.cjs.map +1 -0
  1166. package/dist/transformDataForSelect-Bmaowc2Z.cjs +2 -0
  1167. package/dist/transformDataForSelect-Bmaowc2Z.cjs.map +1 -0
  1168. package/dist/transformDataForSelect-DRC8qPt4.js +14 -0
  1169. package/dist/transformDataForSelect-DRC8qPt4.js.map +1 -0
  1170. package/dist/uniqBy-DTdieuuc.cjs +2 -0
  1171. package/dist/uniqBy-DTdieuuc.cjs.map +1 -0
  1172. package/dist/uniqBy-feeqYuys.js +9 -0
  1173. package/dist/uniqBy-feeqYuys.js.map +1 -0
  1174. package/dist/use-in-view-C4EPQfwM.cjs +2 -0
  1175. package/dist/use-in-view-C4EPQfwM.cjs.map +1 -0
  1176. package/dist/use-in-view-CjlKdln1.js +47 -0
  1177. package/dist/use-in-view-CjlKdln1.js.map +1 -0
  1178. package/dist/utils.cjs +1 -2
  1179. package/dist/utils.d.ts +2 -216
  1180. package/dist/utils.js +12 -29
  1181. package/dist/y-B6sP7d7V.cjs +2 -0
  1182. package/dist/y-B6sP7d7V.cjs.map +1 -0
  1183. package/dist/y-C3UBwapx.js +450 -0
  1184. package/dist/y-C3UBwapx.js.map +1 -0
  1185. package/package.json +605 -620
  1186. package/dist/AreaChart.cjs.map +0 -1
  1187. package/dist/AreaChart.js.map +0 -1
  1188. package/dist/Axis-BTaS9oPQ.cjs +0 -2
  1189. package/dist/Axis-BTaS9oPQ.cjs.map +0 -1
  1190. package/dist/Axis-CNZYWzH0.js +0 -31
  1191. package/dist/Axis-CNZYWzH0.js.map +0 -1
  1192. package/dist/AxisTitle-CyLCqpW6.js +0 -29
  1193. package/dist/AxisTitle-CyLCqpW6.js.map +0 -1
  1194. package/dist/AxisTitle-DP_evhbe.cjs +0 -2
  1195. package/dist/AxisTitle-DP_evhbe.cjs.map +0 -1
  1196. package/dist/BarGraph.cjs.map +0 -1
  1197. package/dist/BarGraph.js.map +0 -1
  1198. package/dist/BeeSwarmChart.cjs.map +0 -1
  1199. package/dist/BeeSwarmChart.js.map +0 -1
  1200. package/dist/BiVariateChoroplethMap.cjs.map +0 -1
  1201. package/dist/BiVariateChoroplethMap.js.map +0 -1
  1202. package/dist/BulletChart.cjs.map +0 -1
  1203. package/dist/BulletChart.js.map +0 -1
  1204. package/dist/ButterflyChart.cjs.map +0 -1
  1205. package/dist/ButterflyChart.js.map +0 -1
  1206. package/dist/ChoroplethMap.cjs.map +0 -1
  1207. package/dist/ChoroplethMap.js.map +0 -1
  1208. package/dist/CirclePackingGraph.cjs.map +0 -1
  1209. package/dist/CirclePackingGraph.js.map +0 -1
  1210. package/dist/CsvDownloadButton.cjs.map +0 -1
  1211. package/dist/CsvDownloadButton.js.map +0 -1
  1212. package/dist/DataCards.cjs.map +0 -1
  1213. package/dist/DataCards.js.map +0 -1
  1214. package/dist/DetailsModal-Du8Fr1QD.cjs +0 -2
  1215. package/dist/DetailsModal-Du8Fr1QD.cjs.map +0 -1
  1216. package/dist/DetailsModal-GqEbGHY2.js +0 -32
  1217. package/dist/DetailsModal-GqEbGHY2.js.map +0 -1
  1218. package/dist/DifferenceLineChart.cjs.map +0 -1
  1219. package/dist/DifferenceLineChart.js.map +0 -1
  1220. package/dist/DonutChart.cjs.map +0 -1
  1221. package/dist/DonutChart.js.map +0 -1
  1222. package/dist/DotDensityMap.cjs.map +0 -1
  1223. package/dist/DotDensityMap.js.map +0 -1
  1224. package/dist/DropdownSelect-CX1yMemd.cjs +0 -5
  1225. package/dist/DropdownSelect-CX1yMemd.cjs.map +0 -1
  1226. package/dist/DropdownSelect-Dz7imdTB.js +0 -4191
  1227. package/dist/DropdownSelect-Dz7imdTB.js.map +0 -1
  1228. package/dist/DualAxisLineChart.cjs.map +0 -1
  1229. package/dist/DualAxisLineChart.js.map +0 -1
  1230. package/dist/DumbbellChart.cjs.map +0 -1
  1231. package/dist/DumbbellChart.js.map +0 -1
  1232. package/dist/EmptyState-CFmiFPHz.cjs +0 -2
  1233. package/dist/EmptyState-CFmiFPHz.cjs.map +0 -1
  1234. package/dist/EmptyState-CaxXCkiN.js +0 -15
  1235. package/dist/EmptyState-CaxXCkiN.js.map +0 -1
  1236. package/dist/GeoHubCompareMaps.cjs.map +0 -1
  1237. package/dist/GeoHubCompareMaps.js.map +0 -1
  1238. package/dist/GeoHubMap.cjs.map +0 -1
  1239. package/dist/GeoHubMap.js.map +0 -1
  1240. package/dist/GeoHubMapWithLayerSelection.cjs.map +0 -1
  1241. package/dist/GeoHubMapWithLayerSelection.js.map +0 -1
  1242. package/dist/GraphContainer-B8ZqOzKI.js +0 -78
  1243. package/dist/GraphContainer-B8ZqOzKI.js.map +0 -1
  1244. package/dist/GraphContainer-Cul9b74X.cjs +0 -2
  1245. package/dist/GraphContainer-Cul9b74X.cjs.map +0 -1
  1246. package/dist/GraphEl-BgkDbq50.cjs +0 -2
  1247. package/dist/GraphEl-BgkDbq50.cjs.map +0 -1
  1248. package/dist/GraphEl-Ch0uAeZw.js +0 -1830
  1249. package/dist/GraphEl-Ch0uAeZw.js.map +0 -1
  1250. package/dist/HeatMap.cjs.map +0 -1
  1251. package/dist/HeatMap.js.map +0 -1
  1252. package/dist/Histogram.cjs.map +0 -1
  1253. package/dist/Histogram.js.map +0 -1
  1254. package/dist/HybridMap.cjs.map +0 -1
  1255. package/dist/HybridMap.js.map +0 -1
  1256. package/dist/LineChartWithConfidenceInterval.cjs.map +0 -1
  1257. package/dist/LineChartWithConfidenceInterval.js.map +0 -1
  1258. package/dist/Modal-BIErPPKT.cjs +0 -46
  1259. package/dist/Modal-BIErPPKT.cjs.map +0 -1
  1260. package/dist/Modal-CrUYln5V.js +0 -1047
  1261. package/dist/Modal-CrUYln5V.js.map +0 -1
  1262. package/dist/MultiGraphDashboardWideToLongFormat.cjs.map +0 -1
  1263. package/dist/MultiGraphDashboardWideToLongFormat.js.map +0 -1
  1264. package/dist/MultiLineAltChart.cjs.map +0 -1
  1265. package/dist/MultiLineAltChart.js.map +0 -1
  1266. package/dist/MultiLineChart.cjs.map +0 -1
  1267. package/dist/MultiLineChart.js.map +0 -1
  1268. package/dist/ParetoChart.cjs.map +0 -1
  1269. package/dist/ParetoChart.js.map +0 -1
  1270. package/dist/RadarChart.cjs.map +0 -1
  1271. package/dist/RadarChart.js.map +0 -1
  1272. package/dist/ReferenceLine-CpU4G01Y.cjs +0 -2
  1273. package/dist/ReferenceLine-CpU4G01Y.cjs.map +0 -1
  1274. package/dist/ReferenceLine-D41VuUhE.js +0 -162
  1275. package/dist/ReferenceLine-D41VuUhE.js.map +0 -1
  1276. package/dist/RegressionLine-BFoBiVJk.cjs +0 -2
  1277. package/dist/RegressionLine-BFoBiVJk.cjs.map +0 -1
  1278. package/dist/RegressionLine-CuwB42I6.js +0 -87
  1279. package/dist/RegressionLine-CuwB42I6.js.map +0 -1
  1280. package/dist/SankeyChart.cjs.map +0 -1
  1281. package/dist/SankeyChart.js.map +0 -1
  1282. package/dist/ScatterPlot.cjs.map +0 -1
  1283. package/dist/ScatterPlot.js.map +0 -1
  1284. package/dist/SimpleLineChart.cjs.map +0 -1
  1285. package/dist/SimpleLineChart.js.map +0 -1
  1286. package/dist/SingleGraphDashboardGeoHubMaps.cjs.map +0 -1
  1287. package/dist/SingleGraphDashboardGeoHubMaps.js.map +0 -1
  1288. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +0 -1
  1289. package/dist/SingleGraphDashboardThreeDGraphs.js.map +0 -1
  1290. package/dist/SlopeChart.cjs.map +0 -1
  1291. package/dist/SlopeChart.js.map +0 -1
  1292. package/dist/Source-PKuwZOn3.cjs +0 -2
  1293. package/dist/Source-PKuwZOn3.cjs.map +0 -1
  1294. package/dist/Source-QGk8vhkS.js +0 -78
  1295. package/dist/Source-QGk8vhkS.js.map +0 -1
  1296. package/dist/SparkLine.cjs.map +0 -1
  1297. package/dist/SparkLine.js.map +0 -1
  1298. package/dist/Spinner-B2IIKg9r.js +0 -47
  1299. package/dist/Spinner-B2IIKg9r.js.map +0 -1
  1300. package/dist/Spinner-WHzzloYQ.cjs +0 -2
  1301. package/dist/Spinner-WHzzloYQ.cjs.map +0 -1
  1302. package/dist/StripChart.cjs.map +0 -1
  1303. package/dist/StripChart.js.map +0 -1
  1304. package/dist/ThreeDGlobe.cjs.map +0 -1
  1305. package/dist/ThreeDGlobe.js.map +0 -1
  1306. package/dist/Tooltip-3EYDVa3w.js +0 -45
  1307. package/dist/Tooltip-3EYDVa3w.js.map +0 -1
  1308. package/dist/Tooltip-C9F3uYG0.cjs +0 -2
  1309. package/dist/Tooltip-C9F3uYG0.cjs.map +0 -1
  1310. package/dist/TreeMapGraph.cjs.map +0 -1
  1311. package/dist/TreeMapGraph.js.map +0 -1
  1312. package/dist/Types.cjs.map +0 -1
  1313. package/dist/Types.js.map +0 -1
  1314. package/dist/Typography-BO0gQDIT.js +0 -270
  1315. package/dist/Typography-BO0gQDIT.js.map +0 -1
  1316. package/dist/Typography-BqmyF1gP.cjs +0 -2
  1317. package/dist/Typography-BqmyF1gP.cjs.map +0 -1
  1318. package/dist/WaterfallChart.cjs.map +0 -1
  1319. package/dist/WaterfallChart.js.map +0 -1
  1320. package/dist/XAxesLabels-B9gkjUiC.js +0 -63
  1321. package/dist/XAxesLabels-B9gkjUiC.js.map +0 -1
  1322. package/dist/XAxesLabels-C03jHniq.cjs +0 -2
  1323. package/dist/XAxesLabels-C03jHniq.cjs.map +0 -1
  1324. package/dist/XTicksAndGridLines-B4UhDVyU.cjs +0 -2
  1325. package/dist/XTicksAndGridLines-B4UhDVyU.cjs.map +0 -1
  1326. package/dist/XTicksAndGridLines-CkYwVshF.js +0 -40
  1327. package/dist/XTicksAndGridLines-CkYwVshF.js.map +0 -1
  1328. package/dist/YAxesLabels-DeENFC2M.cjs +0 -2
  1329. package/dist/YAxesLabels-DeENFC2M.cjs.map +0 -1
  1330. package/dist/YAxesLabels-hWEUCTvs.js +0 -61
  1331. package/dist/YAxesLabels-hWEUCTvs.js.map +0 -1
  1332. package/dist/YTicksAndGridLines-BbujwxOB.js +0 -40
  1333. package/dist/YTicksAndGridLines-BbujwxOB.js.map +0 -1
  1334. package/dist/YTicksAndGridLines-sT3zdCs6.cjs +0 -2
  1335. package/dist/YTicksAndGridLines-sT3zdCs6.cjs.map +0 -1
  1336. package/dist/_commonjsHelpers-BH3jXuIh.cjs +0 -2
  1337. package/dist/_commonjsHelpers-BH3jXuIh.cjs.map +0 -1
  1338. package/dist/_commonjsHelpers-ByX85dGu.js +0 -34
  1339. package/dist/_commonjsHelpers-ByX85dGu.js.map +0 -1
  1340. package/dist/area-B6r7cv2o.js +0 -53
  1341. package/dist/area-B6r7cv2o.js.map +0 -1
  1342. package/dist/area-C1gxfNGD.cjs +0 -2
  1343. package/dist/area-C1gxfNGD.cjs.map +0 -1
  1344. package/dist/array-DMyR1sql.cjs +0 -2
  1345. package/dist/array-DMyR1sql.cjs.map +0 -1
  1346. package/dist/array-USo-Szhp.js +0 -13
  1347. package/dist/array-USo-Szhp.js.map +0 -1
  1348. package/dist/band-DYty33LD.js +0 -47
  1349. package/dist/band-DYty33LD.js.map +0 -1
  1350. package/dist/band-VYfcZeJ2.cjs +0 -2
  1351. package/dist/band-VYfcZeJ2.cjs.map +0 -1
  1352. package/dist/checkIfMultiple-CH5tqj4q.cjs +0 -2
  1353. package/dist/checkIfMultiple-CH5tqj4q.cjs.map +0 -1
  1354. package/dist/checkIfMultiple-Dpyy6BUP.js +0 -938
  1355. package/dist/checkIfMultiple-Dpyy6BUP.js.map +0 -1
  1356. package/dist/checkIfNullOrUndefined-BCW3Y1ML.cjs +0 -2
  1357. package/dist/checkIfNullOrUndefined-BCW3Y1ML.cjs.map +0 -1
  1358. package/dist/checkIfNullOrUndefined-DmfiKkNw.js +0 -7
  1359. package/dist/checkIfNullOrUndefined-DmfiKkNw.js.map +0 -1
  1360. package/dist/customArea-BAcQ3pBM.cjs +0 -2
  1361. package/dist/customArea-BAcQ3pBM.cjs.map +0 -1
  1362. package/dist/customArea-D89lETG0.js +0 -163
  1363. package/dist/customArea-D89lETG0.js.map +0 -1
  1364. package/dist/defaultLocale-C4wbwF1n.cjs +0 -2
  1365. package/dist/defaultLocale-C4wbwF1n.cjs.map +0 -1
  1366. package/dist/defaultLocale-CPy_WVtp.js +0 -172
  1367. package/dist/defaultLocale-CPy_WVtp.js.map +0 -1
  1368. package/dist/delaunay-C1uAf38t.js +0 -684
  1369. package/dist/delaunay-C1uAf38t.js.map +0 -1
  1370. package/dist/delaunay-rcy0HhZi.cjs +0 -2
  1371. package/dist/delaunay-rcy0HhZi.cjs.map +0 -1
  1372. package/dist/ensureCompleteData-CDIukSG6.js +0 -122
  1373. package/dist/ensureCompleteData-CDIukSG6.js.map +0 -1
  1374. package/dist/ensureCompleteData-D9bQTiVS.cjs +0 -2
  1375. package/dist/ensureCompleteData-D9bQTiVS.cjs.map +0 -1
  1376. package/dist/excelDownload-BEC1AyQW.js +0 -29
  1377. package/dist/excelDownload-BEC1AyQW.js.map +0 -1
  1378. package/dist/excelDownload-BQpsCa62.cjs +0 -2
  1379. package/dist/excelDownload-BQpsCa62.cjs.map +0 -1
  1380. package/dist/fetchAndParseData-BAXhgTDM.js +0 -564
  1381. package/dist/fetchAndParseData-BAXhgTDM.js.map +0 -1
  1382. package/dist/fetchAndParseData-QTF6tjij.cjs +0 -11
  1383. package/dist/fetchAndParseData-QTF6tjij.cjs.map +0 -1
  1384. package/dist/fetchAndParseData.cjs.map +0 -1
  1385. package/dist/fetchAndParseData.js.map +0 -1
  1386. package/dist/filterData-DsAiFzKY.js +0 -12
  1387. package/dist/filterData-DsAiFzKY.js.map +0 -1
  1388. package/dist/filterData-T5DQBE9b.cjs +0 -2
  1389. package/dist/filterData-T5DQBE9b.cjs.map +0 -1
  1390. package/dist/generateRandomString-B5zBiJzS.cjs +0 -2
  1391. package/dist/generateRandomString-B5zBiJzS.cjs.map +0 -1
  1392. package/dist/generateRandomString-za3IQGfQ.js +0 -11
  1393. package/dist/generateRandomString-za3IQGfQ.js.map +0 -1
  1394. package/dist/getCentroidCoordinates-CtBGrNC8.cjs +0 -2
  1395. package/dist/getCentroidCoordinates-CtBGrNC8.cjs.map +0 -1
  1396. package/dist/getCentroidCoordinates-s0OOUjLF.js +0 -70
  1397. package/dist/getCentroidCoordinates-s0OOUjLF.js.map +0 -1
  1398. package/dist/getGraphList-Bpd3PVmF.js +0 -239
  1399. package/dist/getGraphList-Bpd3PVmF.js.map +0 -1
  1400. package/dist/getGraphList-DQ24IzAn.cjs +0 -2
  1401. package/dist/getGraphList-DQ24IzAn.cjs.map +0 -1
  1402. package/dist/getJenks-BzJvhy_H.cjs +0 -2
  1403. package/dist/getJenks-BzJvhy_H.cjs.map +0 -1
  1404. package/dist/getJenks-DTCcQSDi.js +0 -19
  1405. package/dist/getJenks-DTCcQSDi.js.map +0 -1
  1406. package/dist/getNoOfTicks-C_1CFXv_.cjs +0 -2
  1407. package/dist/getNoOfTicks-C_1CFXv_.cjs.map +0 -1
  1408. package/dist/getNoOfTicks-CpmRjcRF.js +0 -7
  1409. package/dist/getNoOfTicks-CpmRjcRF.js.map +0 -1
  1410. package/dist/getSliderMarks-BzrpHrHS.cjs +0 -2
  1411. package/dist/getSliderMarks-BzrpHrHS.cjs.map +0 -1
  1412. package/dist/getSliderMarks-X-_goqH9.js +0 -1027
  1413. package/dist/getSliderMarks-X-_goqH9.js.map +0 -1
  1414. package/dist/getTextColorBasedOnBgColor-CDY808zi.js +0 -36
  1415. package/dist/getTextColorBasedOnBgColor-CDY808zi.js.map +0 -1
  1416. package/dist/getTextColorBasedOnBgColor-nqY-bsM_.cjs +0 -2
  1417. package/dist/getTextColorBasedOnBgColor-nqY-bsM_.cjs.map +0 -1
  1418. package/dist/getUniqValue-DsqSii6M.js +0 -11
  1419. package/dist/getUniqValue-DsqSii6M.js.map +0 -1
  1420. package/dist/getUniqValue-NX8DgwND.cjs +0 -2
  1421. package/dist/getUniqValue-NX8DgwND.cjs.map +0 -1
  1422. package/dist/imageDownload-BYsNEtMS.js +0 -990
  1423. package/dist/imageDownload-BYsNEtMS.js.map +0 -1
  1424. package/dist/imageDownload-CkMwA7Cw.cjs +0 -15
  1425. package/dist/imageDownload-CkMwA7Cw.cjs.map +0 -1
  1426. package/dist/index-ApTBN0kp.js +0 -196
  1427. package/dist/index-ApTBN0kp.js.map +0 -1
  1428. package/dist/index-BPyj_6hG.js +0 -375
  1429. package/dist/index-BPyj_6hG.js.map +0 -1
  1430. package/dist/index-BS2TADPj.cjs +0 -2
  1431. package/dist/index-BS2TADPj.cjs.map +0 -1
  1432. package/dist/index-BZQYSqar.js +0 -658
  1433. package/dist/index-BZQYSqar.js.map +0 -1
  1434. package/dist/index-BhI7mBJx.cjs +0 -2
  1435. package/dist/index-BhI7mBJx.cjs.map +0 -1
  1436. package/dist/index-BuhBhuCq.cjs +0 -2
  1437. package/dist/index-BuhBhuCq.cjs.map +0 -1
  1438. package/dist/index-BuwmuDFJ.js +0 -273
  1439. package/dist/index-BuwmuDFJ.js.map +0 -1
  1440. package/dist/index-Bwrro8-q.js +0 -35
  1441. package/dist/index-Bwrro8-q.js.map +0 -1
  1442. package/dist/index-C5K--w8d.cjs +0 -2
  1443. package/dist/index-C5K--w8d.cjs.map +0 -1
  1444. package/dist/index-CHPV5EwG-BzibaIRc.js +0 -3360
  1445. package/dist/index-CHPV5EwG-BzibaIRc.js.map +0 -1
  1446. package/dist/index-CHPV5EwG-D4pAp7u0.cjs +0 -20
  1447. package/dist/index-CHPV5EwG-D4pAp7u0.cjs.map +0 -1
  1448. package/dist/index-CKpKc9DR.js +0 -2344
  1449. package/dist/index-CKpKc9DR.js.map +0 -1
  1450. package/dist/index-CSNtgibC.cjs +0 -2
  1451. package/dist/index-CSNtgibC.cjs.map +0 -1
  1452. package/dist/index-CeVNqhMO.js +0 -26
  1453. package/dist/index-CeVNqhMO.js.map +0 -1
  1454. package/dist/index-Cno4Q0YE.cjs +0 -2
  1455. package/dist/index-Cno4Q0YE.cjs.map +0 -1
  1456. package/dist/index-Cv_5q6Rb.js +0 -148
  1457. package/dist/index-Cv_5q6Rb.js.map +0 -1
  1458. package/dist/index-CyZ1lmi_.cjs +0 -2
  1459. package/dist/index-CyZ1lmi_.cjs.map +0 -1
  1460. package/dist/index-DCsFBfJ_.js +0 -808
  1461. package/dist/index-DCsFBfJ_.js.map +0 -1
  1462. package/dist/index-DHVGV8Df.js +0 -99
  1463. package/dist/index-DHVGV8Df.js.map +0 -1
  1464. package/dist/index-DLFt97gy.cjs +0 -2
  1465. package/dist/index-DLFt97gy.cjs.map +0 -1
  1466. package/dist/index-DQA8q5sC.cjs +0 -2
  1467. package/dist/index-DQA8q5sC.cjs.map +0 -1
  1468. package/dist/index-DuLvdHo2.cjs +0 -2
  1469. package/dist/index-DuLvdHo2.cjs.map +0 -1
  1470. package/dist/index-EArKRVKg.js +0 -53
  1471. package/dist/index-EArKRVKg.js.map +0 -1
  1472. package/dist/index-FXfr51ZM.cjs +0 -10
  1473. package/dist/index-FXfr51ZM.cjs.map +0 -1
  1474. package/dist/index-Scxs_wcm-BAjU0Cob.js +0 -49
  1475. package/dist/index-Scxs_wcm-BAjU0Cob.js.map +0 -1
  1476. package/dist/index-Scxs_wcm-DUDU-Gll.cjs +0 -2
  1477. package/dist/index-Scxs_wcm-DUDU-Gll.cjs.map +0 -1
  1478. package/dist/index-w64Zl8io-DrMm5QSb.cjs +0 -2
  1479. package/dist/index-w64Zl8io-DrMm5QSb.cjs.map +0 -1
  1480. package/dist/index-w64Zl8io-ihagHOdP.js +0 -459
  1481. package/dist/index-w64Zl8io-ihagHOdP.js.map +0 -1
  1482. package/dist/index.cjs.map +0 -1
  1483. package/dist/index.js.map +0 -1
  1484. package/dist/init-BhZylTFx.js +0 -63
  1485. package/dist/init-BhZylTFx.js.map +0 -1
  1486. package/dist/init-DU0ybBc_.cjs +0 -2
  1487. package/dist/init-DU0ybBc_.cjs.map +0 -1
  1488. package/dist/line-DFlZsxI1.js +0 -144
  1489. package/dist/line-DFlZsxI1.js.map +0 -1
  1490. package/dist/line-DaEMhXmx.cjs +0 -2
  1491. package/dist/line-DaEMhXmx.cjs.map +0 -1
  1492. package/dist/linear-CgUCbw9F.cjs +0 -2
  1493. package/dist/linear-CgUCbw9F.cjs.map +0 -1
  1494. package/dist/linear-DNXM5Pdl.js +0 -221
  1495. package/dist/linear-DNXM5Pdl.js.map +0 -1
  1496. package/dist/numberFormattingFunction-BUUV_luR.js +0 -28
  1497. package/dist/numberFormattingFunction-BUUV_luR.js.map +0 -1
  1498. package/dist/numberFormattingFunction-u2iNHL_c.cjs +0 -2
  1499. package/dist/numberFormattingFunction-u2iNHL_c.cjs.map +0 -1
  1500. package/dist/ordinal-CHaxGJ_l.js +0 -62
  1501. package/dist/ordinal-CHaxGJ_l.js.map +0 -1
  1502. package/dist/ordinal-CrsysVE-.cjs +0 -2
  1503. package/dist/ordinal-CrsysVE-.cjs.map +0 -1
  1504. package/dist/parse-Dv4of-PN.js +0 -2703
  1505. package/dist/parse-Dv4of-PN.js.map +0 -1
  1506. package/dist/parse-xYI9yrvL.cjs +0 -2
  1507. package/dist/parse-xYI9yrvL.cjs.map +0 -1
  1508. package/dist/pointer-CWRWOsrb.js +0 -23
  1509. package/dist/pointer-CWRWOsrb.js.map +0 -1
  1510. package/dist/pointer-Dkq5NV1q.cjs +0 -2
  1511. package/dist/pointer-Dkq5NV1q.cjs.map +0 -1
  1512. package/dist/pow-BXYLJHCq.js +0 -35
  1513. package/dist/pow-BXYLJHCq.js.map +0 -1
  1514. package/dist/pow-BnyPO-NX.cjs +0 -2
  1515. package/dist/pow-BnyPO-NX.cjs.map +0 -1
  1516. package/dist/proxy-BsxtcZKa.js +0 -4781
  1517. package/dist/proxy-BsxtcZKa.js.map +0 -1
  1518. package/dist/proxy-CqH8m8IQ.cjs +0 -2
  1519. package/dist/proxy-CqH8m8IQ.cjs.map +0 -1
  1520. package/dist/removeOutliers-BqW0sPqj.js +0 -54
  1521. package/dist/removeOutliers-BqW0sPqj.js.map +0 -1
  1522. package/dist/removeOutliers-WELHHqiI.cjs +0 -2
  1523. package/dist/removeOutliers-WELHHqiI.cjs.map +0 -1
  1524. package/dist/select-Bnfk0lJx.cjs +0 -2
  1525. package/dist/select-Bnfk0lJx.cjs.map +0 -1
  1526. package/dist/select-DKy99ogv.js +0 -584
  1527. package/dist/select-DKy99ogv.js.map +0 -1
  1528. package/dist/simple-statistics-flVzqVtt.js +0 -65
  1529. package/dist/simple-statistics-flVzqVtt.js.map +0 -1
  1530. package/dist/simple-statistics-xm8c0LQQ.cjs +0 -2
  1531. package/dist/simple-statistics-xm8c0LQQ.cjs.map +0 -1
  1532. package/dist/step-BZ3C8QFW.cjs +0 -2
  1533. package/dist/step-BZ3C8QFW.cjs.map +0 -1
  1534. package/dist/step-BrDul-H4.js +0 -119
  1535. package/dist/step-BrDul-H4.js.map +0 -1
  1536. package/dist/string-C-kRh1bQ.cjs +0 -2
  1537. package/dist/string-C-kRh1bQ.cjs.map +0 -1
  1538. package/dist/string-CbaFIsiV.js +0 -364
  1539. package/dist/string-CbaFIsiV.js.map +0 -1
  1540. package/dist/string2HTML-30nfIm8R.cjs +0 -3
  1541. package/dist/string2HTML-30nfIm8R.cjs.map +0 -1
  1542. package/dist/string2HTML-DL-pInUB.js +0 -764
  1543. package/dist/string2HTML-DL-pInUB.js.map +0 -1
  1544. package/dist/svgDownload-BAoarWNt.js +0 -11
  1545. package/dist/svgDownload-BAoarWNt.js.map +0 -1
  1546. package/dist/svgDownload-D9zEGjTF.cjs +0 -2
  1547. package/dist/svgDownload-D9zEGjTF.cjs.map +0 -1
  1548. package/dist/threshold-DFfqcDMa.js +0 -23
  1549. package/dist/threshold-DFfqcDMa.js.map +0 -1
  1550. package/dist/threshold-DNsSUf8Q.cjs +0 -2
  1551. package/dist/threshold-DNsSUf8Q.cjs.map +0 -1
  1552. package/dist/time-CkcKbhwe.cjs +0 -2
  1553. package/dist/time-CkcKbhwe.cjs.map +0 -1
  1554. package/dist/time-vyz6Y89P.js +0 -715
  1555. package/dist/time-vyz6Y89P.js.map +0 -1
  1556. package/dist/timer-B39XOBYL.js +0 -124
  1557. package/dist/timer-B39XOBYL.js.map +0 -1
  1558. package/dist/timer-CKyBCVzT.cjs +0 -2
  1559. package/dist/timer-CKyBCVzT.cjs.map +0 -1
  1560. package/dist/toConsumableArray-DiWOvh_d-DcLaZvDq.cjs +0 -4
  1561. package/dist/toConsumableArray-DiWOvh_d-DcLaZvDq.cjs.map +0 -1
  1562. package/dist/toConsumableArray-DiWOvh_d-DlpOlgap.js +0 -145
  1563. package/dist/toConsumableArray-DiWOvh_d-DlpOlgap.js.map +0 -1
  1564. package/dist/transformData.cjs.map +0 -1
  1565. package/dist/transformData.js.map +0 -1
  1566. package/dist/transformDataForAggregation-BFdha9Dx.cjs +0 -2
  1567. package/dist/transformDataForAggregation-BFdha9Dx.cjs.map +0 -1
  1568. package/dist/transformDataForAggregation-wdPf8bNt.js +0 -635
  1569. package/dist/transformDataForAggregation-wdPf8bNt.js.map +0 -1
  1570. package/dist/transformDataForGraphFromFile-DOhp1qrp.cjs +0 -2
  1571. package/dist/transformDataForGraphFromFile-DOhp1qrp.cjs.map +0 -1
  1572. package/dist/transformDataForGraphFromFile-dt9sHTVy.js +0 -14
  1573. package/dist/transformDataForGraphFromFile-dt9sHTVy.js.map +0 -1
  1574. package/dist/transformDataForSelect-D8AuvYdf.js +0 -14
  1575. package/dist/transformDataForSelect-D8AuvYdf.js.map +0 -1
  1576. package/dist/transformDataForSelect-YmStusCI.cjs +0 -2
  1577. package/dist/transformDataForSelect-YmStusCI.cjs.map +0 -1
  1578. package/dist/uniqBy-BHy4I8PK.js +0 -8
  1579. package/dist/uniqBy-BHy4I8PK.js.map +0 -1
  1580. package/dist/uniqBy-O05lp2S5.cjs +0 -2
  1581. package/dist/uniqBy-O05lp2S5.cjs.map +0 -1
  1582. package/dist/use-in-view-KOXq5Kmc.js +0 -40
  1583. package/dist/use-in-view-KOXq5Kmc.js.map +0 -1
  1584. package/dist/use-in-view-dnRv_qqF.cjs +0 -2
  1585. package/dist/use-in-view-dnRv_qqF.cjs.map +0 -1
  1586. package/dist/utils.cjs.map +0 -1
  1587. package/dist/utils.js.map +0 -1
  1588. package/dist/x-BXShoIAM-BC2sxios.cjs +0 -2
  1589. package/dist/x-BXShoIAM-BC2sxios.cjs.map +0 -1
  1590. package/dist/x-BXShoIAM-D6VWO6z5.js +0 -74
  1591. package/dist/x-BXShoIAM-D6VWO6z5.js.map +0 -1
  1592. package/dist/y-BqfogMAB.js +0 -421
  1593. package/dist/y-BqfogMAB.js.map +0 -1
  1594. package/dist/y-QcCbqrzx.cjs +0 -2
  1595. package/dist/y-QcCbqrzx.cjs.map +0 -1
@@ -1,4781 +0,0 @@
1
- import { createContext as yt, useRef as mt, useLayoutEffect as br, useEffect as We, useContext as O, useId as Vr, useCallback as Os, useMemo as Zt, Fragment as js, createElement as Ar, useInsertionEffect as Ns, forwardRef as Dr, Component as Mr } from "react";
2
- import { j as ye } from "./index-CHPV5EwG-BzibaIRc.js";
3
- const Us = yt({});
4
- function Cr(t) {
5
- const e = mt(null);
6
- return e.current === null && (e.current = t()), e.current;
7
- }
8
- const Ws = typeof window < "u", Er = Ws ? br : We, Ke = /* @__PURE__ */ yt(null);
9
- function $e(t, e) {
10
- t.indexOf(e) === -1 && t.push(e);
11
- }
12
- function Ge(t, e) {
13
- const n = t.indexOf(e);
14
- n > -1 && t.splice(n, 1);
15
- }
16
- const z = (t, e, n) => n > e ? e : n < t ? t : n;
17
- function ve(t, e) {
18
- return e ? `${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}` : t;
19
- }
20
- let vt = () => {
21
- }, Y = () => {
22
- };
23
- typeof process < "u" && process.env?.NODE_ENV !== "production" && (vt = (t, e, n) => {
24
- !t && typeof console < "u" && console.warn(ve(e, n));
25
- }, Y = (t, e, n) => {
26
- if (!t)
27
- throw new Error(ve(e, n));
28
- });
29
- const X = {}, Ks = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);
30
- function $s(t) {
31
- return typeof t == "object" && t !== null;
32
- }
33
- const Gs = (t) => /^0[^.\s]+$/u.test(t);
34
- // @__NO_SIDE_EFFECTS__
35
- function _e(t) {
36
- let e;
37
- return () => (e === void 0 && (e = t()), e);
38
- }
39
- const K = /* @__NO_SIDE_EFFECTS__ */ (t) => t, Rr = (t, e) => (n) => e(t(n)), kt = (...t) => t.reduce(Rr), Mt = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
40
- const s = e - t;
41
- return s === 0 ? 1 : (n - t) / s;
42
- };
43
- class He {
44
- constructor() {
45
- this.subscriptions = [];
46
- }
47
- add(e) {
48
- return $e(this.subscriptions, e), () => Ge(this.subscriptions, e);
49
- }
50
- notify(e, n, s) {
51
- const i = this.subscriptions.length;
52
- if (i)
53
- if (i === 1)
54
- this.subscriptions[0](e, n, s);
55
- else
56
- for (let o = 0; o < i; o++) {
57
- const r = this.subscriptions[o];
58
- r && r(e, n, s);
59
- }
60
- }
61
- getSize() {
62
- return this.subscriptions.length;
63
- }
64
- clear() {
65
- this.subscriptions.length = 0;
66
- }
67
- }
68
- const _ = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, W = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3;
69
- function _s(t, e) {
70
- return e ? t * (1e3 / e) : 0;
71
- }
72
- const Sn = /* @__PURE__ */ new Set();
73
- function ze(t, e, n) {
74
- t || Sn.has(e) || (console.warn(ve(e, n)), Sn.add(e));
75
- }
76
- const Hs = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, Lr = 1e-7, kr = 12;
77
- function Fr(t, e, n, s, i) {
78
- let o, r, a = 0;
79
- do
80
- r = e + (n - e) / 2, o = Hs(r, s, i) - t, o > 0 ? n = r : e = r;
81
- while (Math.abs(o) > Lr && ++a < kr);
82
- return r;
83
- }
84
- function Ft(t, e, n, s) {
85
- if (t === e && n === s)
86
- return K;
87
- const i = (o) => Fr(o, 0, 1, t, n);
88
- return (o) => o === 0 || o === 1 ? o : Hs(i(o), e, s);
89
- }
90
- const zs = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Ys = (t) => (e) => 1 - t(1 - e), Xs = /* @__PURE__ */ Ft(0.33, 1.53, 0.69, 0.99), Ye = /* @__PURE__ */ Ys(Xs), qs = /* @__PURE__ */ zs(Ye), Zs = (t) => (t *= 2) < 1 ? 0.5 * Ye(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), Xe = (t) => 1 - Math.sin(Math.acos(t)), Js = Ys(Xe), Qs = zs(Xe), Br = /* @__PURE__ */ Ft(0.42, 0, 1, 1), Ir = /* @__PURE__ */ Ft(0, 0, 0.58, 1), ti = /* @__PURE__ */ Ft(0.42, 0, 0.58, 1), Or = (t) => Array.isArray(t) && typeof t[0] != "number", ei = (t) => Array.isArray(t) && typeof t[0] == "number", wn = {
91
- linear: K,
92
- easeIn: Br,
93
- easeInOut: ti,
94
- easeOut: Ir,
95
- circIn: Xe,
96
- circInOut: Qs,
97
- circOut: Js,
98
- backIn: Ye,
99
- backInOut: qs,
100
- backOut: Xs,
101
- anticipate: Zs
102
- }, jr = (t) => typeof t == "string", bn = (t) => {
103
- if (ei(t)) {
104
- Y(t.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
105
- const [e, n, s, i] = t;
106
- return Ft(e, n, s, i);
107
- } else if (jr(t))
108
- return Y(wn[t] !== void 0, `Invalid easing type '${t}'`, "invalid-easing-type"), wn[t];
109
- return t;
110
- }, Ot = [
111
- "setup",
112
- // Compute
113
- "read",
114
- // Read
115
- "resolveKeyframes",
116
- // Write/Read/Write/Read
117
- "preUpdate",
118
- // Compute
119
- "update",
120
- // Compute
121
- "preRender",
122
- // Compute
123
- "render",
124
- // Write
125
- "postRender"
126
- // Compute
127
- ];
128
- function Nr(t, e) {
129
- let n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), i = !1, o = !1;
130
- const r = /* @__PURE__ */ new WeakSet();
131
- let a = {
132
- delta: 0,
133
- timestamp: 0,
134
- isProcessing: !1
135
- };
136
- function l(u) {
137
- r.has(u) && (c.schedule(u), t()), u(a);
138
- }
139
- const c = {
140
- /**
141
- * Schedule a process to run on the next frame.
142
- */
143
- schedule: (u, h = !1, f = !1) => {
144
- const m = f && i ? n : s;
145
- return h && r.add(u), m.has(u) || m.add(u), u;
146
- },
147
- /**
148
- * Cancel the provided callback from running on the next frame.
149
- */
150
- cancel: (u) => {
151
- s.delete(u), r.delete(u);
152
- },
153
- /**
154
- * Execute all schedule callbacks.
155
- */
156
- process: (u) => {
157
- if (a = u, i) {
158
- o = !0;
159
- return;
160
- }
161
- i = !0, [n, s] = [s, n], n.forEach(l), n.clear(), i = !1, o && (o = !1, c.process(u));
162
- }
163
- };
164
- return c;
165
- }
166
- const Ur = 40;
167
- function ni(t, e) {
168
- let n = !1, s = !0;
169
- const i = {
170
- delta: 0,
171
- timestamp: 0,
172
- isProcessing: !1
173
- }, o = () => n = !0, r = Ot.reduce((y, w) => (y[w] = Nr(o), y), {}), { setup: a, read: l, resolveKeyframes: c, preUpdate: u, update: h, preRender: f, render: d, postRender: m } = r, v = () => {
174
- const y = X.useManualTiming ? i.timestamp : performance.now();
175
- n = !1, X.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(y - i.timestamp, Ur), 1)), i.timestamp = y, i.isProcessing = !0, a.process(i), l.process(i), c.process(i), u.process(i), h.process(i), f.process(i), d.process(i), m.process(i), i.isProcessing = !1, n && e && (s = !1, t(v));
176
- }, T = () => {
177
- n = !0, s = !0, i.isProcessing || t(v);
178
- };
179
- return { schedule: Ot.reduce((y, w) => {
180
- const P = r[w];
181
- return y[w] = (b, C = !1, S = !1) => (n || T(), P.schedule(b, C, S)), y;
182
- }, {}), cancel: (y) => {
183
- for (let w = 0; w < Ot.length; w++)
184
- r[Ot[w]].cancel(y);
185
- }, state: i, steps: r };
186
- }
187
- const { schedule: V, cancel: J, state: L, steps: ee } = /* @__PURE__ */ ni(typeof requestAnimationFrame < "u" ? requestAnimationFrame : K, !0);
188
- let Ut;
189
- function Wr() {
190
- Ut = void 0;
191
- }
192
- const F = {
193
- now: () => (Ut === void 0 && F.set(L.isProcessing || X.useManualTiming ? L.timestamp : performance.now()), Ut),
194
- set: (t) => {
195
- Ut = t, queueMicrotask(Wr);
196
- }
197
- }, si = (t) => (e) => typeof e == "string" && e.startsWith(t), ii = /* @__PURE__ */ si("--"), Kr = /* @__PURE__ */ si("var(--"), qe = (t) => Kr(t) ? $r.test(t.split("/*")[0].trim()) : !1, $r = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
198
- function Vn(t) {
199
- return typeof t != "string" ? !1 : t.split("/*")[0].includes("var(--");
200
- }
201
- const Tt = {
202
- test: (t) => typeof t == "number",
203
- parse: parseFloat,
204
- transform: (t) => t
205
- }, Ct = {
206
- ...Tt,
207
- transform: (t) => z(0, 1, t)
208
- }, jt = {
209
- ...Tt,
210
- default: 1
211
- }, Vt = (t) => Math.round(t * 1e5) / 1e5, Ze = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
212
- function Gr(t) {
213
- return t == null;
214
- }
215
- const _r = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Je = (t, e) => (n) => !!(typeof n == "string" && _r.test(n) && n.startsWith(t) || e && !Gr(n) && Object.prototype.hasOwnProperty.call(n, e)), ri = (t, e, n) => (s) => {
216
- if (typeof s != "string")
217
- return s;
218
- const [i, o, r, a] = s.match(Ze);
219
- return {
220
- [t]: parseFloat(i),
221
- [e]: parseFloat(o),
222
- [n]: parseFloat(r),
223
- alpha: a !== void 0 ? parseFloat(a) : 1
224
- };
225
- }, Hr = (t) => z(0, 255, t), ne = {
226
- ...Tt,
227
- transform: (t) => Math.round(Hr(t))
228
- }, it = {
229
- test: /* @__PURE__ */ Je("rgb", "red"),
230
- parse: /* @__PURE__ */ ri("red", "green", "blue"),
231
- transform: ({ red: t, green: e, blue: n, alpha: s = 1 }) => "rgba(" + ne.transform(t) + ", " + ne.transform(e) + ", " + ne.transform(n) + ", " + Vt(Ct.transform(s)) + ")"
232
- };
233
- function zr(t) {
234
- let e = "", n = "", s = "", i = "";
235
- return t.length > 5 ? (e = t.substring(1, 3), n = t.substring(3, 5), s = t.substring(5, 7), i = t.substring(7, 9)) : (e = t.substring(1, 2), n = t.substring(2, 3), s = t.substring(3, 4), i = t.substring(4, 5), e += e, n += n, s += s, i += i), {
236
- red: parseInt(e, 16),
237
- green: parseInt(n, 16),
238
- blue: parseInt(s, 16),
239
- alpha: i ? parseInt(i, 16) / 255 : 1
240
- };
241
- }
242
- const Te = {
243
- test: /* @__PURE__ */ Je("#"),
244
- parse: zr,
245
- transform: it.transform
246
- }, Bt = /* @__NO_SIDE_EFFECTS__ */ (t) => ({
247
- test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
248
- parse: parseFloat,
249
- transform: (e) => `${e}${t}`
250
- }), q = /* @__PURE__ */ Bt("deg"), H = /* @__PURE__ */ Bt("%"), p = /* @__PURE__ */ Bt("px"), Yr = /* @__PURE__ */ Bt("vh"), Xr = /* @__PURE__ */ Bt("vw"), An = {
251
- ...H,
252
- parse: (t) => H.parse(t) / 100,
253
- transform: (t) => H.transform(t * 100)
254
- }, ut = {
255
- test: /* @__PURE__ */ Je("hsl", "hue"),
256
- parse: /* @__PURE__ */ ri("hue", "saturation", "lightness"),
257
- transform: ({ hue: t, saturation: e, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(t) + ", " + H.transform(Vt(e)) + ", " + H.transform(Vt(n)) + ", " + Vt(Ct.transform(s)) + ")"
258
- }, M = {
259
- test: (t) => it.test(t) || Te.test(t) || ut.test(t),
260
- parse: (t) => it.test(t) ? it.parse(t) : ut.test(t) ? ut.parse(t) : Te.parse(t),
261
- transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? it.transform(t) : ut.transform(t),
262
- getAnimatableNone: (t) => {
263
- const e = M.parse(t);
264
- return e.alpha = 0, M.transform(e);
265
- }
266
- }, qr = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
267
- function Zr(t) {
268
- return isNaN(t) && typeof t == "string" && (t.match(Ze)?.length || 0) + (t.match(qr)?.length || 0) > 0;
269
- }
270
- const oi = "number", ai = "color", Jr = "var", Qr = "var(", Dn = "${}", to = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
271
- function Et(t) {
272
- const e = t.toString(), n = [], s = {
273
- color: [],
274
- number: [],
275
- var: []
276
- }, i = [];
277
- let o = 0;
278
- const a = e.replace(to, (l) => (M.test(l) ? (s.color.push(o), i.push(ai), n.push(M.parse(l))) : l.startsWith(Qr) ? (s.var.push(o), i.push(Jr), n.push(l)) : (s.number.push(o), i.push(oi), n.push(parseFloat(l))), ++o, Dn)).split(Dn);
279
- return { values: n, split: a, indexes: s, types: i };
280
- }
281
- function li(t) {
282
- return Et(t).values;
283
- }
284
- function ui(t) {
285
- const { split: e, types: n } = Et(t), s = e.length;
286
- return (i) => {
287
- let o = "";
288
- for (let r = 0; r < s; r++)
289
- if (o += e[r], i[r] !== void 0) {
290
- const a = n[r];
291
- a === oi ? o += Vt(i[r]) : a === ai ? o += M.transform(i[r]) : o += i[r];
292
- }
293
- return o;
294
- };
295
- }
296
- const eo = (t) => typeof t == "number" ? 0 : M.test(t) ? M.getAnimatableNone(t) : t;
297
- function no(t) {
298
- const e = li(t);
299
- return ui(t)(e.map(eo));
300
- }
301
- const Q = {
302
- test: Zr,
303
- parse: li,
304
- createTransformer: ui,
305
- getAnimatableNone: no
306
- };
307
- function se(t, e, n) {
308
- return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? t + (e - t) * 6 * n : n < 1 / 2 ? e : n < 2 / 3 ? t + (e - t) * (2 / 3 - n) * 6 : t;
309
- }
310
- function so({ hue: t, saturation: e, lightness: n, alpha: s }) {
311
- t /= 360, e /= 100, n /= 100;
312
- let i = 0, o = 0, r = 0;
313
- if (!e)
314
- i = o = r = n;
315
- else {
316
- const a = n < 0.5 ? n * (1 + e) : n + e - n * e, l = 2 * n - a;
317
- i = se(l, a, t + 1 / 3), o = se(l, a, t), r = se(l, a, t - 1 / 3);
318
- }
319
- return {
320
- red: Math.round(i * 255),
321
- green: Math.round(o * 255),
322
- blue: Math.round(r * 255),
323
- alpha: s
324
- };
325
- }
326
- function Gt(t, e) {
327
- return (n) => n > 0 ? e : t;
328
- }
329
- const D = (t, e, n) => t + (e - t) * n, ie = (t, e, n) => {
330
- const s = t * t, i = n * (e * e - s) + s;
331
- return i < 0 ? 0 : Math.sqrt(i);
332
- }, io = [Te, it, ut], ro = (t) => io.find((e) => e.test(t));
333
- function Mn(t) {
334
- const e = ro(t);
335
- if (vt(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !e)
336
- return !1;
337
- let n = e.parse(t);
338
- return e === ut && (n = so(n)), n;
339
- }
340
- const Cn = (t, e) => {
341
- const n = Mn(t), s = Mn(e);
342
- if (!n || !s)
343
- return Gt(t, e);
344
- const i = { ...n };
345
- return (o) => (i.red = ie(n.red, s.red, o), i.green = ie(n.green, s.green, o), i.blue = ie(n.blue, s.blue, o), i.alpha = D(n.alpha, s.alpha, o), it.transform(i));
346
- }, xe = /* @__PURE__ */ new Set(["none", "hidden"]);
347
- function oo(t, e) {
348
- return xe.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
349
- }
350
- function ao(t, e) {
351
- return (n) => D(t, e, n);
352
- }
353
- function Qe(t) {
354
- return typeof t == "number" ? ao : typeof t == "string" ? qe(t) ? Gt : M.test(t) ? Cn : co : Array.isArray(t) ? ci : typeof t == "object" ? M.test(t) ? Cn : lo : Gt;
355
- }
356
- function ci(t, e) {
357
- const n = [...t], s = n.length, i = t.map((o, r) => Qe(o)(o, e[r]));
358
- return (o) => {
359
- for (let r = 0; r < s; r++)
360
- n[r] = i[r](o);
361
- return n;
362
- };
363
- }
364
- function lo(t, e) {
365
- const n = { ...t, ...e }, s = {};
366
- for (const i in n)
367
- t[i] !== void 0 && e[i] !== void 0 && (s[i] = Qe(t[i])(t[i], e[i]));
368
- return (i) => {
369
- for (const o in s)
370
- n[o] = s[o](i);
371
- return n;
372
- };
373
- }
374
- function uo(t, e) {
375
- const n = [], s = { color: 0, var: 0, number: 0 };
376
- for (let i = 0; i < e.values.length; i++) {
377
- const o = e.types[i], r = t.indexes[o][s[o]], a = t.values[r] ?? 0;
378
- n[i] = a, s[o]++;
379
- }
380
- return n;
381
- }
382
- const co = (t, e) => {
383
- const n = Q.createTransformer(e), s = Et(t), i = Et(e);
384
- return s.indexes.var.length === i.indexes.var.length && s.indexes.color.length === i.indexes.color.length && s.indexes.number.length >= i.indexes.number.length ? xe.has(t) && !i.values.length || xe.has(e) && !s.values.length ? oo(t, e) : kt(ci(uo(s, i), i.values), n) : (vt(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, "complex-values-different"), Gt(t, e));
385
- };
386
- function hi(t, e, n) {
387
- return typeof t == "number" && typeof e == "number" && typeof n == "number" ? D(t, e, n) : Qe(t)(t, e);
388
- }
389
- const ho = (t) => {
390
- const e = ({ timestamp: n }) => t(n);
391
- return {
392
- start: (n = !0) => V.update(e, n),
393
- stop: () => J(e),
394
- /**
395
- * If we're processing this frame we can use the
396
- * framelocked timestamp to keep things in sync.
397
- */
398
- now: () => L.isProcessing ? L.timestamp : F.now()
399
- };
400
- }, fi = (t, e, n = 10) => {
401
- let s = "";
402
- const i = Math.max(Math.round(e / n), 2);
403
- for (let o = 0; o < i; o++)
404
- s += Math.round(t(o / (i - 1)) * 1e4) / 1e4 + ", ";
405
- return `linear(${s.substring(0, s.length - 2)})`;
406
- }, _t = 2e4;
407
- function tn(t) {
408
- let e = 0;
409
- const n = 50;
410
- let s = t.next(e);
411
- for (; !s.done && e < _t; )
412
- e += n, s = t.next(e);
413
- return e >= _t ? 1 / 0 : e;
414
- }
415
- function fo(t, e = 100, n) {
416
- const s = n({ ...t, keyframes: [0, e] }), i = Math.min(tn(s), _t);
417
- return {
418
- type: "keyframes",
419
- ease: (o) => s.next(i * o).value / e,
420
- duration: /* @__PURE__ */ W(i)
421
- };
422
- }
423
- const mo = 5;
424
- function di(t, e, n) {
425
- const s = Math.max(e - mo, 0);
426
- return _s(n - t(s), e - s);
427
- }
428
- const A = {
429
- // Default spring physics
430
- stiffness: 100,
431
- damping: 10,
432
- mass: 1,
433
- velocity: 0,
434
- // Default duration/bounce-based options
435
- duration: 800,
436
- // in ms
437
- bounce: 0.3,
438
- visualDuration: 0.3,
439
- // in seconds
440
- // Rest thresholds
441
- restSpeed: {
442
- granular: 0.01,
443
- default: 2
444
- },
445
- restDelta: {
446
- granular: 5e-3,
447
- default: 0.5
448
- },
449
- // Limits
450
- minDuration: 0.01,
451
- // in seconds
452
- maxDuration: 10,
453
- // in seconds
454
- minDamping: 0.05,
455
- maxDamping: 1
456
- }, re = 1e-3;
457
- function po({ duration: t = A.duration, bounce: e = A.bounce, velocity: n = A.velocity, mass: s = A.mass }) {
458
- let i, o;
459
- vt(t <= /* @__PURE__ */ _(A.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
460
- let r = 1 - e;
461
- r = z(A.minDamping, A.maxDamping, r), t = z(A.minDuration, A.maxDuration, /* @__PURE__ */ W(t)), r < 1 ? (i = (c) => {
462
- const u = c * r, h = u * t, f = u - n, d = Pe(c, r), m = Math.exp(-h);
463
- return re - f / d * m;
464
- }, o = (c) => {
465
- const h = c * r * t, f = h * n + n, d = Math.pow(r, 2) * Math.pow(c, 2) * t, m = Math.exp(-h), v = Pe(Math.pow(c, 2), r);
466
- return (-i(c) + re > 0 ? -1 : 1) * ((f - d) * m) / v;
467
- }) : (i = (c) => {
468
- const u = Math.exp(-c * t), h = (c - n) * t + 1;
469
- return -re + u * h;
470
- }, o = (c) => {
471
- const u = Math.exp(-c * t), h = (n - c) * (t * t);
472
- return u * h;
473
- });
474
- const a = 5 / t, l = yo(i, o, a);
475
- if (t = /* @__PURE__ */ _(t), isNaN(l))
476
- return {
477
- stiffness: A.stiffness,
478
- damping: A.damping,
479
- duration: t
480
- };
481
- {
482
- const c = Math.pow(l, 2) * s;
483
- return {
484
- stiffness: c,
485
- damping: r * 2 * Math.sqrt(s * c),
486
- duration: t
487
- };
488
- }
489
- }
490
- const go = 12;
491
- function yo(t, e, n) {
492
- let s = n;
493
- for (let i = 1; i < go; i++)
494
- s = s - t(s) / e(s);
495
- return s;
496
- }
497
- function Pe(t, e) {
498
- return t * Math.sqrt(1 - e * e);
499
- }
500
- const vo = ["duration", "bounce"], To = ["stiffness", "damping", "mass"];
501
- function En(t, e) {
502
- return e.some((n) => t[n] !== void 0);
503
- }
504
- function xo(t) {
505
- let e = {
506
- velocity: A.velocity,
507
- stiffness: A.stiffness,
508
- damping: A.damping,
509
- mass: A.mass,
510
- isResolvedFromDuration: !1,
511
- ...t
512
- };
513
- if (!En(t, To) && En(t, vo))
514
- if (t.visualDuration) {
515
- const n = t.visualDuration, s = 2 * Math.PI / (n * 1.2), i = s * s, o = 2 * z(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(i);
516
- e = {
517
- ...e,
518
- mass: A.mass,
519
- stiffness: i,
520
- damping: o
521
- };
522
- } else {
523
- const n = po(t);
524
- e = {
525
- ...e,
526
- ...n,
527
- mass: A.mass
528
- }, e.isResolvedFromDuration = !0;
529
- }
530
- return e;
531
- }
532
- function Ht(t = A.visualDuration, e = A.bounce) {
533
- const n = typeof t != "object" ? {
534
- visualDuration: t,
535
- keyframes: [0, 1],
536
- bounce: e
537
- } : t;
538
- let { restSpeed: s, restDelta: i } = n;
539
- const o = n.keyframes[0], r = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: l, damping: c, mass: u, duration: h, velocity: f, isResolvedFromDuration: d } = xo({
540
- ...n,
541
- velocity: -/* @__PURE__ */ W(n.velocity || 0)
542
- }), m = f || 0, v = c / (2 * Math.sqrt(l * u)), T = r - o, g = /* @__PURE__ */ W(Math.sqrt(l / u)), x = Math.abs(T) < 5;
543
- s || (s = x ? A.restSpeed.granular : A.restSpeed.default), i || (i = x ? A.restDelta.granular : A.restDelta.default);
544
- let y;
545
- if (v < 1) {
546
- const P = Pe(g, v);
547
- y = (b) => {
548
- const C = Math.exp(-v * g * b);
549
- return r - C * ((m + v * g * T) / P * Math.sin(P * b) + T * Math.cos(P * b));
550
- };
551
- } else if (v === 1)
552
- y = (P) => r - Math.exp(-g * P) * (T + (m + g * T) * P);
553
- else {
554
- const P = g * Math.sqrt(v * v - 1);
555
- y = (b) => {
556
- const C = Math.exp(-v * g * b), S = Math.min(P * b, 300);
557
- return r - C * ((m + v * g * T) * Math.sinh(S) + P * T * Math.cosh(S)) / P;
558
- };
559
- }
560
- const w = {
561
- calculatedDuration: d && h || null,
562
- next: (P) => {
563
- const b = y(P);
564
- if (d)
565
- a.done = P >= h;
566
- else {
567
- let C = P === 0 ? m : 0;
568
- v < 1 && (C = P === 0 ? /* @__PURE__ */ _(m) : di(y, P, b));
569
- const S = Math.abs(C) <= s, I = Math.abs(r - b) <= i;
570
- a.done = S && I;
571
- }
572
- return a.value = a.done ? r : b, a;
573
- },
574
- toString: () => {
575
- const P = Math.min(tn(w), _t), b = fi((C) => w.next(P * C).value, P, 30);
576
- return P + "ms " + b;
577
- },
578
- toTransition: () => {
579
- }
580
- };
581
- return w;
582
- }
583
- Ht.applyToOptions = (t) => {
584
- const e = fo(t, 100, Ht);
585
- return t.ease = e.ease, t.duration = /* @__PURE__ */ _(e.duration), t.type = "keyframes", t;
586
- };
587
- function Se({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: s = 325, bounceDamping: i = 10, bounceStiffness: o = 500, modifyTarget: r, min: a, max: l, restDelta: c = 0.5, restSpeed: u }) {
588
- const h = t[0], f = {
589
- done: !1,
590
- value: h
591
- }, d = (S) => a !== void 0 && S < a || l !== void 0 && S > l, m = (S) => a === void 0 ? l : l === void 0 || Math.abs(a - S) < Math.abs(l - S) ? a : l;
592
- let v = n * e;
593
- const T = h + v, g = r === void 0 ? T : r(T);
594
- g !== T && (v = g - h);
595
- const x = (S) => -v * Math.exp(-S / s), y = (S) => g + x(S), w = (S) => {
596
- const I = x(S), j = y(S);
597
- f.done = Math.abs(I) <= c, f.value = f.done ? g : j;
598
- };
599
- let P, b;
600
- const C = (S) => {
601
- d(f.value) && (P = S, b = Ht({
602
- keyframes: [f.value, m(f.value)],
603
- velocity: di(y, S, f.value),
604
- // TODO: This should be passing * 1000
605
- damping: i,
606
- stiffness: o,
607
- restDelta: c,
608
- restSpeed: u
609
- }));
610
- };
611
- return C(0), {
612
- calculatedDuration: null,
613
- next: (S) => {
614
- let I = !1;
615
- return !b && P === void 0 && (I = !0, w(S), C(S)), P !== void 0 && S >= P ? b.next(S - P) : (!I && w(S), f);
616
- }
617
- };
618
- }
619
- function Po(t, e, n) {
620
- const s = [], i = n || X.mix || hi, o = t.length - 1;
621
- for (let r = 0; r < o; r++) {
622
- let a = i(t[r], t[r + 1]);
623
- if (e) {
624
- const l = Array.isArray(e) ? e[r] || K : e;
625
- a = kt(l, a);
626
- }
627
- s.push(a);
628
- }
629
- return s;
630
- }
631
- function So(t, e, { clamp: n = !0, ease: s, mixer: i } = {}) {
632
- const o = t.length;
633
- if (Y(o === e.length, "Both input and output ranges must be the same length", "range-length"), o === 1)
634
- return () => e[0];
635
- if (o === 2 && e[0] === e[1])
636
- return () => e[1];
637
- const r = t[0] === t[1];
638
- t[0] > t[o - 1] && (t = [...t].reverse(), e = [...e].reverse());
639
- const a = Po(e, s, i), l = a.length, c = (u) => {
640
- if (r && u < t[0])
641
- return e[0];
642
- let h = 0;
643
- if (l > 1)
644
- for (; h < t.length - 2 && !(u < t[h + 1]); h++)
645
- ;
646
- const f = /* @__PURE__ */ Mt(t[h], t[h + 1], u);
647
- return a[h](f);
648
- };
649
- return n ? (u) => c(z(t[0], t[o - 1], u)) : c;
650
- }
651
- function wo(t, e) {
652
- const n = t[t.length - 1];
653
- for (let s = 1; s <= e; s++) {
654
- const i = /* @__PURE__ */ Mt(0, e, s);
655
- t.push(D(n, 1, i));
656
- }
657
- }
658
- function bo(t) {
659
- const e = [0];
660
- return wo(e, t.length - 1), e;
661
- }
662
- function Vo(t, e) {
663
- return t.map((n) => n * e);
664
- }
665
- function Ao(t, e) {
666
- return t.map(() => e || ti).splice(0, t.length - 1);
667
- }
668
- function ct({ duration: t = 300, keyframes: e, times: n, ease: s = "easeInOut" }) {
669
- const i = Or(s) ? s.map(bn) : bn(s), o = {
670
- done: !1,
671
- value: e[0]
672
- }, r = Vo(
673
- // Only use the provided offsets if they're the correct length
674
- // TODO Maybe we should warn here if there's a length mismatch
675
- n && n.length === e.length ? n : bo(e),
676
- t
677
- ), a = So(r, e, {
678
- ease: Array.isArray(i) ? i : Ao(e, i)
679
- });
680
- return {
681
- calculatedDuration: t,
682
- next: (l) => (o.value = a(l), o.done = l >= t, o)
683
- };
684
- }
685
- const Do = (t) => t !== null;
686
- function en(t, { repeat: e, repeatType: n = "loop" }, s, i = 1) {
687
- const o = t.filter(Do), a = i < 0 || e && n !== "loop" && e % 2 === 1 ? 0 : o.length - 1;
688
- return !a || s === void 0 ? o[a] : s;
689
- }
690
- const Mo = {
691
- decay: Se,
692
- inertia: Se,
693
- tween: ct,
694
- keyframes: ct,
695
- spring: Ht
696
- };
697
- function mi(t) {
698
- typeof t.type == "string" && (t.type = Mo[t.type]);
699
- }
700
- class nn {
701
- constructor() {
702
- this.updateFinished();
703
- }
704
- get finished() {
705
- return this._finished;
706
- }
707
- updateFinished() {
708
- this._finished = new Promise((e) => {
709
- this.resolve = e;
710
- });
711
- }
712
- notifyFinished() {
713
- this.resolve();
714
- }
715
- /**
716
- * Allows the animation to be awaited.
717
- *
718
- * @deprecated Use `finished` instead.
719
- */
720
- then(e, n) {
721
- return this.finished.then(e, n);
722
- }
723
- }
724
- const Co = (t) => t / 100;
725
- class sn extends nn {
726
- constructor(e) {
727
- super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.stop = () => {
728
- const { motionValue: n } = this.options;
729
- n && n.updatedAt !== F.now() && this.tick(F.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
730
- }, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause();
731
- }
732
- initAnimation() {
733
- const { options: e } = this;
734
- mi(e);
735
- const { type: n = ct, repeat: s = 0, repeatDelay: i = 0, repeatType: o, velocity: r = 0 } = e;
736
- let { keyframes: a } = e;
737
- const l = n || ct;
738
- process.env.NODE_ENV !== "production" && l !== ct && Y(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`, "spring-two-frames"), l !== ct && typeof a[0] != "number" && (this.mixKeyframes = kt(Co, hi(a[0], a[1])), a = [0, 100]);
739
- const c = l({ ...e, keyframes: a });
740
- o === "mirror" && (this.mirroredGenerator = l({
741
- ...e,
742
- keyframes: [...a].reverse(),
743
- velocity: -r
744
- })), c.calculatedDuration === null && (c.calculatedDuration = tn(c));
745
- const { calculatedDuration: u } = c;
746
- this.calculatedDuration = u, this.resolvedDuration = u + i, this.totalDuration = this.resolvedDuration * (s + 1) - i, this.generator = c;
747
- }
748
- updateTime(e) {
749
- const n = Math.round(e - this.startTime) * this.playbackSpeed;
750
- this.holdTime !== null ? this.currentTime = this.holdTime : this.currentTime = n;
751
- }
752
- tick(e, n = !1) {
753
- const { generator: s, totalDuration: i, mixKeyframes: o, mirroredGenerator: r, resolvedDuration: a, calculatedDuration: l } = this;
754
- if (this.startTime === null)
755
- return s.next(0);
756
- const { delay: c = 0, keyframes: u, repeat: h, repeatType: f, repeatDelay: d, type: m, onUpdate: v, finalKeyframe: T } = this.options;
757
- this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - i / this.speed, this.startTime)), n ? this.currentTime = e : this.updateTime(e);
758
- const g = this.currentTime - c * (this.playbackSpeed >= 0 ? 1 : -1), x = this.playbackSpeed >= 0 ? g < 0 : g > i;
759
- this.currentTime = Math.max(g, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = i);
760
- let y = this.currentTime, w = s;
761
- if (h) {
762
- const S = Math.min(this.currentTime, i) / a;
763
- let I = Math.floor(S), j = S % 1;
764
- !j && S >= 1 && (j = 1), j === 1 && I--, I = Math.min(I, h + 1), I % 2 && (f === "reverse" ? (j = 1 - j, d && (j -= d / a)) : f === "mirror" && (w = r)), y = z(0, 1, j) * a;
765
- }
766
- const P = x ? { done: !1, value: u[0] } : w.next(y);
767
- o && (P.value = o(P.value));
768
- let { done: b } = P;
769
- !x && l !== null && (b = this.playbackSpeed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
770
- const C = this.holdTime === null && (this.state === "finished" || this.state === "running" && b);
771
- return C && m !== Se && (P.value = en(u, this.options, T, this.speed)), v && v(P.value), C && this.finish(), P;
772
- }
773
- /**
774
- * Allows the returned animation to be awaited or promise-chained. Currently
775
- * resolves when the animation finishes at all but in a future update could/should
776
- * reject if its cancels.
777
- */
778
- then(e, n) {
779
- return this.finished.then(e, n);
780
- }
781
- get duration() {
782
- return /* @__PURE__ */ W(this.calculatedDuration);
783
- }
784
- get iterationDuration() {
785
- const { delay: e = 0 } = this.options || {};
786
- return this.duration + /* @__PURE__ */ W(e);
787
- }
788
- get time() {
789
- return /* @__PURE__ */ W(this.currentTime);
790
- }
791
- set time(e) {
792
- e = /* @__PURE__ */ _(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver?.start(!1);
793
- }
794
- get speed() {
795
- return this.playbackSpeed;
796
- }
797
- set speed(e) {
798
- this.updateTime(F.now());
799
- const n = this.playbackSpeed !== e;
800
- this.playbackSpeed = e, n && (this.time = /* @__PURE__ */ W(this.currentTime));
801
- }
802
- play() {
803
- if (this.isStopped)
804
- return;
805
- const { driver: e = ho, startTime: n } = this.options;
806
- this.driver || (this.driver = e((i) => this.tick(i))), this.options.onPlay?.();
807
- const s = this.driver.now();
808
- this.state === "finished" ? (this.updateFinished(), this.startTime = s) : this.holdTime !== null ? this.startTime = s - this.holdTime : this.startTime || (this.startTime = n ?? s), this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
809
- }
810
- pause() {
811
- this.state = "paused", this.updateTime(F.now()), this.holdTime = this.currentTime;
812
- }
813
- complete() {
814
- this.state !== "running" && this.play(), this.state = "finished", this.holdTime = null;
815
- }
816
- finish() {
817
- this.notifyFinished(), this.teardown(), this.state = "finished", this.options.onComplete?.();
818
- }
819
- cancel() {
820
- this.holdTime = null, this.startTime = 0, this.tick(0), this.teardown(), this.options.onCancel?.();
821
- }
822
- teardown() {
823
- this.state = "idle", this.stopDriver(), this.startTime = this.holdTime = null;
824
- }
825
- stopDriver() {
826
- this.driver && (this.driver.stop(), this.driver = void 0);
827
- }
828
- sample(e) {
829
- return this.startTime = 0, this.tick(e, !0);
830
- }
831
- attachTimeline(e) {
832
- return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), this.driver?.stop(), e.observe(this);
833
- }
834
- }
835
- function Eo(t) {
836
- for (let e = 1; e < t.length; e++)
837
- t[e] ?? (t[e] = t[e - 1]);
838
- }
839
- const rt = (t) => t * 180 / Math.PI, we = (t) => {
840
- const e = rt(Math.atan2(t[1], t[0]));
841
- return be(e);
842
- }, Ro = {
843
- x: 4,
844
- y: 5,
845
- translateX: 4,
846
- translateY: 5,
847
- scaleX: 0,
848
- scaleY: 3,
849
- scale: (t) => (Math.abs(t[0]) + Math.abs(t[3])) / 2,
850
- rotate: we,
851
- rotateZ: we,
852
- skewX: (t) => rt(Math.atan(t[1])),
853
- skewY: (t) => rt(Math.atan(t[2])),
854
- skew: (t) => (Math.abs(t[1]) + Math.abs(t[2])) / 2
855
- }, be = (t) => (t = t % 360, t < 0 && (t += 360), t), Rn = we, Ln = (t) => Math.sqrt(t[0] * t[0] + t[1] * t[1]), kn = (t) => Math.sqrt(t[4] * t[4] + t[5] * t[5]), Lo = {
856
- x: 12,
857
- y: 13,
858
- z: 14,
859
- translateX: 12,
860
- translateY: 13,
861
- translateZ: 14,
862
- scaleX: Ln,
863
- scaleY: kn,
864
- scale: (t) => (Ln(t) + kn(t)) / 2,
865
- rotateX: (t) => be(rt(Math.atan2(t[6], t[5]))),
866
- rotateY: (t) => be(rt(Math.atan2(-t[2], t[0]))),
867
- rotateZ: Rn,
868
- rotate: Rn,
869
- skewX: (t) => rt(Math.atan(t[4])),
870
- skewY: (t) => rt(Math.atan(t[1])),
871
- skew: (t) => (Math.abs(t[1]) + Math.abs(t[4])) / 2
872
- };
873
- function Ve(t) {
874
- return t.includes("scale") ? 1 : 0;
875
- }
876
- function Ae(t, e) {
877
- if (!t || t === "none")
878
- return Ve(e);
879
- const n = t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);
880
- let s, i;
881
- if (n)
882
- s = Lo, i = n;
883
- else {
884
- const a = t.match(/^matrix\(([-\d.e\s,]+)\)$/u);
885
- s = Ro, i = a;
886
- }
887
- if (!i)
888
- return Ve(e);
889
- const o = s[e], r = i[1].split(",").map(Fo);
890
- return typeof o == "function" ? o(r) : r[o];
891
- }
892
- const ko = (t, e) => {
893
- const { transform: n = "none" } = getComputedStyle(t);
894
- return Ae(n, e);
895
- };
896
- function Fo(t) {
897
- return parseFloat(t.trim());
898
- }
899
- const xt = [
900
- "transformPerspective",
901
- "x",
902
- "y",
903
- "z",
904
- "translateX",
905
- "translateY",
906
- "translateZ",
907
- "scale",
908
- "scaleX",
909
- "scaleY",
910
- "rotate",
911
- "rotateX",
912
- "rotateY",
913
- "rotateZ",
914
- "skew",
915
- "skewX",
916
- "skewY"
917
- ], Pt = new Set(xt), Fn = (t) => t === Tt || t === p, Bo = /* @__PURE__ */ new Set(["x", "y", "z"]), Io = xt.filter((t) => !Bo.has(t));
918
- function Oo(t) {
919
- const e = [];
920
- return Io.forEach((n) => {
921
- const s = t.getValue(n);
922
- s !== void 0 && (e.push([n, s.get()]), s.set(n.startsWith("scale") ? 1 : 0));
923
- }), e;
924
- }
925
- const Z = {
926
- // Dimensions
927
- width: ({ x: t }, { paddingLeft: e = "0", paddingRight: n = "0" }) => t.max - t.min - parseFloat(e) - parseFloat(n),
928
- height: ({ y: t }, { paddingTop: e = "0", paddingBottom: n = "0" }) => t.max - t.min - parseFloat(e) - parseFloat(n),
929
- top: (t, { top: e }) => parseFloat(e),
930
- left: (t, { left: e }) => parseFloat(e),
931
- bottom: ({ y: t }, { top: e }) => parseFloat(e) + (t.max - t.min),
932
- right: ({ x: t }, { left: e }) => parseFloat(e) + (t.max - t.min),
933
- // Transform
934
- x: (t, { transform: e }) => Ae(e, "x"),
935
- y: (t, { transform: e }) => Ae(e, "y")
936
- };
937
- Z.translateX = Z.x;
938
- Z.translateY = Z.y;
939
- const ot = /* @__PURE__ */ new Set();
940
- let De = !1, Me = !1, Ce = !1;
941
- function pi() {
942
- if (Me) {
943
- const t = Array.from(ot).filter((s) => s.needsMeasurement), e = new Set(t.map((s) => s.element)), n = /* @__PURE__ */ new Map();
944
- e.forEach((s) => {
945
- const i = Oo(s);
946
- i.length && (n.set(s, i), s.render());
947
- }), t.forEach((s) => s.measureInitialState()), e.forEach((s) => {
948
- s.render();
949
- const i = n.get(s);
950
- i && i.forEach(([o, r]) => {
951
- s.getValue(o)?.set(r);
952
- });
953
- }), t.forEach((s) => s.measureEndState()), t.forEach((s) => {
954
- s.suspendedScrollY !== void 0 && window.scrollTo(0, s.suspendedScrollY);
955
- });
956
- }
957
- Me = !1, De = !1, ot.forEach((t) => t.complete(Ce)), ot.clear();
958
- }
959
- function gi() {
960
- ot.forEach((t) => {
961
- t.readKeyframes(), t.needsMeasurement && (Me = !0);
962
- });
963
- }
964
- function jo() {
965
- Ce = !0, gi(), pi(), Ce = !1;
966
- }
967
- class rn {
968
- constructor(e, n, s, i, o, r = !1) {
969
- this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = n, this.name = s, this.motionValue = i, this.element = o, this.isAsync = r;
970
- }
971
- scheduleResolve() {
972
- this.state = "scheduled", this.isAsync ? (ot.add(this), De || (De = !0, V.read(gi), V.resolveKeyframes(pi))) : (this.readKeyframes(), this.complete());
973
- }
974
- readKeyframes() {
975
- const { unresolvedKeyframes: e, name: n, element: s, motionValue: i } = this;
976
- if (e[0] === null) {
977
- const o = i?.get(), r = e[e.length - 1];
978
- if (o !== void 0)
979
- e[0] = o;
980
- else if (s && n) {
981
- const a = s.readValue(n, r);
982
- a != null && (e[0] = a);
983
- }
984
- e[0] === void 0 && (e[0] = r), i && o === void 0 && i.set(e[0]);
985
- }
986
- Eo(e);
987
- }
988
- setFinalKeyframe() {
989
- }
990
- measureInitialState() {
991
- }
992
- renderEndStyles() {
993
- }
994
- measureEndState() {
995
- }
996
- complete(e = !1) {
997
- this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), ot.delete(this);
998
- }
999
- cancel() {
1000
- this.state === "scheduled" && (ot.delete(this), this.state = "pending");
1001
- }
1002
- resume() {
1003
- this.state === "pending" && this.scheduleResolve();
1004
- }
1005
- }
1006
- const No = (t) => t.startsWith("--");
1007
- function Uo(t, e, n) {
1008
- No(e) ? t.style.setProperty(e, n) : t.style[e] = n;
1009
- }
1010
- const Wo = /* @__PURE__ */ _e(() => window.ScrollTimeline !== void 0), Ko = {};
1011
- function $o(t, e) {
1012
- const n = /* @__PURE__ */ _e(t);
1013
- return () => Ko[e] ?? n();
1014
- }
1015
- const yi = /* @__PURE__ */ $o(() => {
1016
- try {
1017
- document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
1018
- } catch {
1019
- return !1;
1020
- }
1021
- return !0;
1022
- }, "linearEasing"), wt = ([t, e, n, s]) => `cubic-bezier(${t}, ${e}, ${n}, ${s})`, Bn = {
1023
- linear: "linear",
1024
- ease: "ease",
1025
- easeIn: "ease-in",
1026
- easeOut: "ease-out",
1027
- easeInOut: "ease-in-out",
1028
- circIn: /* @__PURE__ */ wt([0, 0.65, 0.55, 1]),
1029
- circOut: /* @__PURE__ */ wt([0.55, 0, 1, 0.45]),
1030
- backIn: /* @__PURE__ */ wt([0.31, 0.01, 0.66, -0.59]),
1031
- backOut: /* @__PURE__ */ wt([0.33, 1.53, 0.69, 0.99])
1032
- };
1033
- function vi(t, e) {
1034
- if (t)
1035
- return typeof t == "function" ? yi() ? fi(t, e) : "ease-out" : ei(t) ? wt(t) : Array.isArray(t) ? t.map((n) => vi(n, e) || Bn.easeOut) : Bn[t];
1036
- }
1037
- function Go(t, e, n, { delay: s = 0, duration: i = 300, repeat: o = 0, repeatType: r = "loop", ease: a = "easeOut", times: l } = {}, c = void 0) {
1038
- const u = {
1039
- [e]: n
1040
- };
1041
- l && (u.offset = l);
1042
- const h = vi(a, i);
1043
- Array.isArray(h) && (u.easing = h);
1044
- const f = {
1045
- delay: s,
1046
- duration: i,
1047
- easing: Array.isArray(h) ? "linear" : h,
1048
- fill: "both",
1049
- iterations: o + 1,
1050
- direction: r === "reverse" ? "alternate" : "normal"
1051
- };
1052
- return c && (f.pseudoElement = c), t.animate(u, f);
1053
- }
1054
- function Ti(t) {
1055
- return typeof t == "function" && "applyToOptions" in t;
1056
- }
1057
- function _o({ type: t, ...e }) {
1058
- return Ti(t) && yi() ? t.applyToOptions(e) : (e.duration ?? (e.duration = 300), e.ease ?? (e.ease = "easeOut"), e);
1059
- }
1060
- class Ho extends nn {
1061
- constructor(e) {
1062
- if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !e)
1063
- return;
1064
- const { element: n, name: s, keyframes: i, pseudoElement: o, allowFlatten: r = !1, finalKeyframe: a, onComplete: l } = e;
1065
- this.isPseudoElement = !!o, this.allowFlatten = r, this.options = e, Y(typeof e.type != "string", `Mini animate() doesn't support "type" as a string.`, "mini-spring");
1066
- const c = _o(e);
1067
- this.animation = Go(n, s, i, c, o), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1068
- if (this.finishedTime = this.time, !o) {
1069
- const u = en(i, this.options, a, this.speed);
1070
- this.updateMotionValue ? this.updateMotionValue(u) : Uo(n, s, u), this.animation.cancel();
1071
- }
1072
- l?.(), this.notifyFinished();
1073
- };
1074
- }
1075
- play() {
1076
- this.isStopped || (this.manualStartTime = null, this.animation.play(), this.state === "finished" && this.updateFinished());
1077
- }
1078
- pause() {
1079
- this.animation.pause();
1080
- }
1081
- complete() {
1082
- this.animation.finish?.();
1083
- }
1084
- cancel() {
1085
- try {
1086
- this.animation.cancel();
1087
- } catch {
1088
- }
1089
- }
1090
- stop() {
1091
- if (this.isStopped)
1092
- return;
1093
- this.isStopped = !0;
1094
- const { state: e } = this;
1095
- e === "idle" || e === "finished" || (this.updateMotionValue ? this.updateMotionValue() : this.commitStyles(), this.isPseudoElement || this.cancel());
1096
- }
1097
- /**
1098
- * WAAPI doesn't natively have any interruption capabilities.
1099
- *
1100
- * In this method, we commit styles back to the DOM before cancelling
1101
- * the animation.
1102
- *
1103
- * This is designed to be overridden by NativeAnimationExtended, which
1104
- * will create a renderless JS animation and sample it twice to calculate
1105
- * its current value, "previous" value, and therefore allow
1106
- * Motion to also correctly calculate velocity for any subsequent animation
1107
- * while deferring the commit until the next animation frame.
1108
- */
1109
- commitStyles() {
1110
- this.isPseudoElement || this.animation.commitStyles?.();
1111
- }
1112
- get duration() {
1113
- const e = this.animation.effect?.getComputedTiming?.().duration || 0;
1114
- return /* @__PURE__ */ W(Number(e));
1115
- }
1116
- get iterationDuration() {
1117
- const { delay: e = 0 } = this.options || {};
1118
- return this.duration + /* @__PURE__ */ W(e);
1119
- }
1120
- get time() {
1121
- return /* @__PURE__ */ W(Number(this.animation.currentTime) || 0);
1122
- }
1123
- set time(e) {
1124
- this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ _(e);
1125
- }
1126
- /**
1127
- * The playback speed of the animation.
1128
- * 1 = normal speed, 2 = double speed, 0.5 = half speed.
1129
- */
1130
- get speed() {
1131
- return this.animation.playbackRate;
1132
- }
1133
- set speed(e) {
1134
- e < 0 && (this.finishedTime = null), this.animation.playbackRate = e;
1135
- }
1136
- get state() {
1137
- return this.finishedTime !== null ? "finished" : this.animation.playState;
1138
- }
1139
- get startTime() {
1140
- return this.manualStartTime ?? Number(this.animation.startTime);
1141
- }
1142
- set startTime(e) {
1143
- this.manualStartTime = this.animation.startTime = e;
1144
- }
1145
- /**
1146
- * Attaches a timeline to the animation, for instance the `ScrollTimeline`.
1147
- */
1148
- attachTimeline({ timeline: e, observe: n }) {
1149
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && Wo() ? (this.animation.timeline = e, K) : n(this);
1150
- }
1151
- }
1152
- const xi = {
1153
- anticipate: Zs,
1154
- backInOut: qs,
1155
- circInOut: Qs
1156
- };
1157
- function zo(t) {
1158
- return t in xi;
1159
- }
1160
- function Yo(t) {
1161
- typeof t.ease == "string" && zo(t.ease) && (t.ease = xi[t.ease]);
1162
- }
1163
- const oe = 10;
1164
- class Xo extends Ho {
1165
- constructor(e) {
1166
- Yo(e), mi(e), super(e), e.startTime !== void 0 && (this.startTime = e.startTime), this.options = e;
1167
- }
1168
- /**
1169
- * WAAPI doesn't natively have any interruption capabilities.
1170
- *
1171
- * Rather than read committed styles back out of the DOM, we can
1172
- * create a renderless JS animation and sample it twice to calculate
1173
- * its current value, "previous" value, and therefore allow
1174
- * Motion to calculate velocity for any subsequent animation.
1175
- */
1176
- updateMotionValue(e) {
1177
- const { motionValue: n, onUpdate: s, onComplete: i, element: o, ...r } = this.options;
1178
- if (!n)
1179
- return;
1180
- if (e !== void 0) {
1181
- n.set(e);
1182
- return;
1183
- }
1184
- const a = new sn({
1185
- ...r,
1186
- autoplay: !1
1187
- }), l = Math.max(oe, F.now() - this.startTime), c = z(0, oe, l - oe);
1188
- n.setWithVelocity(a.sample(Math.max(0, l - c)).value, a.sample(l).value, c), a.stop();
1189
- }
1190
- }
1191
- const In = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
1192
- (Q.test(t) || t === "0") && // And it contains numbers and/or colors
1193
- !t.startsWith("url("));
1194
- function qo(t) {
1195
- const e = t[0];
1196
- if (t.length === 1)
1197
- return !0;
1198
- for (let n = 0; n < t.length; n++)
1199
- if (t[n] !== e)
1200
- return !0;
1201
- }
1202
- function Zo(t, e, n, s) {
1203
- const i = t[0];
1204
- if (i === null)
1205
- return !1;
1206
- if (e === "display" || e === "visibility")
1207
- return !0;
1208
- const o = t[t.length - 1], r = In(i, e), a = In(o, e);
1209
- return vt(r === a, `You are trying to animate ${e} from "${i}" to "${o}". "${r ? o : i}" is not an animatable value.`, "value-not-animatable"), !r || !a ? !1 : qo(t) || (n === "spring" || Ti(n)) && s;
1210
- }
1211
- function Ee(t) {
1212
- t.duration = 0, t.type = "keyframes";
1213
- }
1214
- const Jo = /* @__PURE__ */ new Set([
1215
- "opacity",
1216
- "clipPath",
1217
- "filter",
1218
- "transform"
1219
- // TODO: Could be re-enabled now we have support for linear() easing
1220
- // "background-color"
1221
- ]), Qo = /* @__PURE__ */ _e(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1222
- function ta(t) {
1223
- const { motionValue: e, name: n, repeatDelay: s, repeatType: i, damping: o, type: r } = t;
1224
- if (!(e?.owner?.current instanceof HTMLElement))
1225
- return !1;
1226
- const { onUpdate: l, transformTemplate: c } = e.owner.getProps();
1227
- return Qo() && n && Jo.has(n) && (n !== "transform" || !c) && /**
1228
- * If we're outputting values to onUpdate then we can't use WAAPI as there's
1229
- * no way to read the value from WAAPI every frame.
1230
- */
1231
- !l && !s && i !== "mirror" && o !== 0 && r !== "inertia";
1232
- }
1233
- const ea = 40;
1234
- class na extends nn {
1235
- constructor({ autoplay: e = !0, delay: n = 0, type: s = "keyframes", repeat: i = 0, repeatDelay: o = 0, repeatType: r = "loop", keyframes: a, name: l, motionValue: c, element: u, ...h }) {
1236
- super(), this.stop = () => {
1237
- this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
1238
- }, this.createdAt = F.now();
1239
- const f = {
1240
- autoplay: e,
1241
- delay: n,
1242
- type: s,
1243
- repeat: i,
1244
- repeatDelay: o,
1245
- repeatType: r,
1246
- name: l,
1247
- motionValue: c,
1248
- element: u,
1249
- ...h
1250
- }, d = u?.KeyframeResolver || rn;
1251
- this.keyframeResolver = new d(a, (m, v, T) => this.onKeyframesResolved(m, v, f, !T), l, c, u), this.keyframeResolver?.scheduleResolve();
1252
- }
1253
- onKeyframesResolved(e, n, s, i) {
1254
- this.keyframeResolver = void 0;
1255
- const { name: o, type: r, velocity: a, delay: l, isHandoff: c, onUpdate: u } = s;
1256
- this.resolvedAt = F.now(), Zo(e, o, r, a) || ((X.instantAnimations || !l) && u?.(en(e, s, n)), e[0] = e[e.length - 1], Ee(s), s.repeat = 0);
1257
- const f = {
1258
- startTime: i ? this.resolvedAt ? this.resolvedAt - this.createdAt > ea ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
1259
- finalKeyframe: n,
1260
- ...s,
1261
- keyframes: e
1262
- }, d = !c && ta(f) ? new Xo({
1263
- ...f,
1264
- element: f.motionValue.owner.current
1265
- }) : new sn(f);
1266
- d.finished.then(() => this.notifyFinished()).catch(K), this.pendingTimeline && (this.stopTimeline = d.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = d;
1267
- }
1268
- get finished() {
1269
- return this._animation ? this.animation.finished : this._finished;
1270
- }
1271
- then(e, n) {
1272
- return this.finished.finally(e).then(() => {
1273
- });
1274
- }
1275
- get animation() {
1276
- return this._animation || (this.keyframeResolver?.resume(), jo()), this._animation;
1277
- }
1278
- get duration() {
1279
- return this.animation.duration;
1280
- }
1281
- get iterationDuration() {
1282
- return this.animation.iterationDuration;
1283
- }
1284
- get time() {
1285
- return this.animation.time;
1286
- }
1287
- set time(e) {
1288
- this.animation.time = e;
1289
- }
1290
- get speed() {
1291
- return this.animation.speed;
1292
- }
1293
- get state() {
1294
- return this.animation.state;
1295
- }
1296
- set speed(e) {
1297
- this.animation.speed = e;
1298
- }
1299
- get startTime() {
1300
- return this.animation.startTime;
1301
- }
1302
- attachTimeline(e) {
1303
- return this._animation ? this.stopTimeline = this.animation.attachTimeline(e) : this.pendingTimeline = e, () => this.stop();
1304
- }
1305
- play() {
1306
- this.animation.play();
1307
- }
1308
- pause() {
1309
- this.animation.pause();
1310
- }
1311
- complete() {
1312
- this.animation.complete();
1313
- }
1314
- cancel() {
1315
- this._animation && this.animation.cancel(), this.keyframeResolver?.cancel();
1316
- }
1317
- }
1318
- const sa = (
1319
- // eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
1320
- /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
1321
- );
1322
- function ia(t) {
1323
- const e = sa.exec(t);
1324
- if (!e)
1325
- return [,];
1326
- const [, n, s, i] = e;
1327
- return [`--${n ?? s}`, i];
1328
- }
1329
- const ra = 4;
1330
- function Pi(t, e, n = 1) {
1331
- Y(n <= ra, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
1332
- const [s, i] = ia(t);
1333
- if (!s)
1334
- return;
1335
- const o = window.getComputedStyle(e).getPropertyValue(s);
1336
- if (o) {
1337
- const r = o.trim();
1338
- return Ks(r) ? parseFloat(r) : r;
1339
- }
1340
- return qe(i) ? Pi(i, e, n + 1) : i;
1341
- }
1342
- function on(t, e) {
1343
- return t?.[e] ?? t?.default ?? t;
1344
- }
1345
- const oa = {
1346
- type: "spring",
1347
- stiffness: 500,
1348
- damping: 25,
1349
- restSpeed: 10
1350
- }, aa = (t) => ({
1351
- type: "spring",
1352
- stiffness: 550,
1353
- damping: t === 0 ? 2 * Math.sqrt(550) : 30,
1354
- restSpeed: 10
1355
- }), la = {
1356
- type: "keyframes",
1357
- duration: 0.8
1358
- }, ua = {
1359
- type: "keyframes",
1360
- ease: [0.25, 0.1, 0.35, 1],
1361
- duration: 0.3
1362
- }, ca = (t, { keyframes: e }) => e.length > 2 ? la : Pt.has(t) ? t.startsWith("scale") ? aa(e[1]) : oa : ua;
1363
- function ha({ when: t, delay: e, delayChildren: n, staggerChildren: s, staggerDirection: i, repeat: o, repeatType: r, repeatDelay: a, from: l, elapsed: c, ...u }) {
1364
- return !!Object.keys(u).length;
1365
- }
1366
- const fa = (t) => t !== null;
1367
- function da(t, { repeat: e, repeatType: n = "loop" }, s) {
1368
- const i = t.filter(fa), o = e && n !== "loop" && e % 2 === 1 ? 0 : i.length - 1;
1369
- return i[o];
1370
- }
1371
- function Si(t, e, n, s = 0, i = 1) {
1372
- const o = Array.from(t).sort((c, u) => c.sortNodePosition(u)).indexOf(e), r = t.size, a = (r - 1) * s;
1373
- return typeof n == "function" ? n(o, r) : i === 1 ? o * s : a - o * s;
1374
- }
1375
- const an = (t, e, n, s = {}, i, o) => (r) => {
1376
- const a = on(s, t) || {}, l = a.delay || s.delay || 0;
1377
- let { elapsed: c = 0 } = s;
1378
- c = c - /* @__PURE__ */ _(l);
1379
- const u = {
1380
- keyframes: Array.isArray(n) ? n : [null, n],
1381
- ease: "easeOut",
1382
- velocity: e.getVelocity(),
1383
- ...a,
1384
- delay: -c,
1385
- onUpdate: (f) => {
1386
- e.set(f), a.onUpdate && a.onUpdate(f);
1387
- },
1388
- onComplete: () => {
1389
- r(), a.onComplete && a.onComplete();
1390
- },
1391
- name: t,
1392
- motionValue: e,
1393
- element: o ? void 0 : i
1394
- };
1395
- ha(a) || Object.assign(u, ca(t, u)), u.duration && (u.duration = /* @__PURE__ */ _(u.duration)), u.repeatDelay && (u.repeatDelay = /* @__PURE__ */ _(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
1396
- let h = !1;
1397
- if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (Ee(u), u.delay === 0 && (h = !0)), (X.instantAnimations || X.skipAnimations) && (h = !0, Ee(u), u.delay = 0), u.allowFlatten = !a.type && !a.ease, h && !o && e.get() !== void 0) {
1398
- const f = da(u.keyframes, a);
1399
- if (f !== void 0) {
1400
- V.update(() => {
1401
- u.onUpdate(f), u.onComplete();
1402
- });
1403
- return;
1404
- }
1405
- }
1406
- return a.isSync ? new sn(u) : new na(u);
1407
- }, wi = /* @__PURE__ */ new Set([
1408
- "width",
1409
- "height",
1410
- "top",
1411
- "left",
1412
- "right",
1413
- "bottom",
1414
- ...xt
1415
- ]), On = 30, ma = (t) => !isNaN(parseFloat(t));
1416
- class pa {
1417
- /**
1418
- * @param init - The initiating value
1419
- * @param config - Optional configuration options
1420
- *
1421
- * - `transformer`: A function to transform incoming values with.
1422
- */
1423
- constructor(e, n = {}) {
1424
- this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (s) => {
1425
- const i = F.now();
1426
- if (this.updatedAt !== i && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(s), this.current !== this.prev && (this.events.change?.notify(this.current), this.dependents))
1427
- for (const o of this.dependents)
1428
- o.dirty();
1429
- }, this.hasAnimated = !1, this.setCurrent(e), this.owner = n.owner;
1430
- }
1431
- setCurrent(e) {
1432
- this.current = e, this.updatedAt = F.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = ma(this.current));
1433
- }
1434
- setPrevFrameValue(e = this.current) {
1435
- this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
1436
- }
1437
- /**
1438
- * Adds a function that will be notified when the `MotionValue` is updated.
1439
- *
1440
- * It returns a function that, when called, will cancel the subscription.
1441
- *
1442
- * When calling `onChange` inside a React component, it should be wrapped with the
1443
- * `useEffect` hook. As it returns an unsubscribe function, this should be returned
1444
- * from the `useEffect` function to ensure you don't add duplicate subscribers..
1445
- *
1446
- * ```jsx
1447
- * export const MyComponent = () => {
1448
- * const x = useMotionValue(0)
1449
- * const y = useMotionValue(0)
1450
- * const opacity = useMotionValue(1)
1451
- *
1452
- * useEffect(() => {
1453
- * function updateOpacity() {
1454
- * const maxXY = Math.max(x.get(), y.get())
1455
- * const newOpacity = transform(maxXY, [0, 100], [1, 0])
1456
- * opacity.set(newOpacity)
1457
- * }
1458
- *
1459
- * const unsubscribeX = x.on("change", updateOpacity)
1460
- * const unsubscribeY = y.on("change", updateOpacity)
1461
- *
1462
- * return () => {
1463
- * unsubscribeX()
1464
- * unsubscribeY()
1465
- * }
1466
- * }, [])
1467
- *
1468
- * return <motion.div style={{ x }} />
1469
- * }
1470
- * ```
1471
- *
1472
- * @param subscriber - A function that receives the latest value.
1473
- * @returns A function that, when called, will cancel this subscription.
1474
- *
1475
- * @deprecated
1476
- */
1477
- onChange(e) {
1478
- return process.env.NODE_ENV !== "production" && ze(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", e);
1479
- }
1480
- on(e, n) {
1481
- this.events[e] || (this.events[e] = new He());
1482
- const s = this.events[e].add(n);
1483
- return e === "change" ? () => {
1484
- s(), V.read(() => {
1485
- this.events.change.getSize() || this.stop();
1486
- });
1487
- } : s;
1488
- }
1489
- clearListeners() {
1490
- for (const e in this.events)
1491
- this.events[e].clear();
1492
- }
1493
- /**
1494
- * Attaches a passive effect to the `MotionValue`.
1495
- */
1496
- attach(e, n) {
1497
- this.passiveEffect = e, this.stopPassiveEffect = n;
1498
- }
1499
- /**
1500
- * Sets the state of the `MotionValue`.
1501
- *
1502
- * @remarks
1503
- *
1504
- * ```jsx
1505
- * const x = useMotionValue(0)
1506
- * x.set(10)
1507
- * ```
1508
- *
1509
- * @param latest - Latest value to set.
1510
- * @param render - Whether to notify render subscribers. Defaults to `true`
1511
- *
1512
- * @public
1513
- */
1514
- set(e) {
1515
- this.passiveEffect ? this.passiveEffect(e, this.updateAndNotify) : this.updateAndNotify(e);
1516
- }
1517
- setWithVelocity(e, n, s) {
1518
- this.set(n), this.prev = void 0, this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt - s;
1519
- }
1520
- /**
1521
- * Set the state of the `MotionValue`, stopping any active animations,
1522
- * effects, and resets velocity to `0`.
1523
- */
1524
- jump(e, n = !0) {
1525
- this.updateAndNotify(e), this.prev = e, this.prevUpdatedAt = this.prevFrameValue = void 0, n && this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
1526
- }
1527
- dirty() {
1528
- this.events.change?.notify(this.current);
1529
- }
1530
- addDependent(e) {
1531
- this.dependents || (this.dependents = /* @__PURE__ */ new Set()), this.dependents.add(e);
1532
- }
1533
- removeDependent(e) {
1534
- this.dependents && this.dependents.delete(e);
1535
- }
1536
- /**
1537
- * Returns the latest state of `MotionValue`
1538
- *
1539
- * @returns - The latest state of `MotionValue`
1540
- *
1541
- * @public
1542
- */
1543
- get() {
1544
- return this.current;
1545
- }
1546
- /**
1547
- * @public
1548
- */
1549
- getPrevious() {
1550
- return this.prev;
1551
- }
1552
- /**
1553
- * Returns the latest velocity of `MotionValue`
1554
- *
1555
- * @returns - The latest velocity of `MotionValue`. Returns `0` if the state is non-numerical.
1556
- *
1557
- * @public
1558
- */
1559
- getVelocity() {
1560
- const e = F.now();
1561
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > On)
1562
- return 0;
1563
- const n = Math.min(this.updatedAt - this.prevUpdatedAt, On);
1564
- return _s(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
1565
- }
1566
- /**
1567
- * Registers a new animation to control this `MotionValue`. Only one
1568
- * animation can drive a `MotionValue` at one time.
1569
- *
1570
- * ```jsx
1571
- * value.start()
1572
- * ```
1573
- *
1574
- * @param animation - A function that starts the provided animation
1575
- */
1576
- start(e) {
1577
- return this.stop(), new Promise((n) => {
1578
- this.hasAnimated = !0, this.animation = e(n), this.events.animationStart && this.events.animationStart.notify();
1579
- }).then(() => {
1580
- this.events.animationComplete && this.events.animationComplete.notify(), this.clearAnimation();
1581
- });
1582
- }
1583
- /**
1584
- * Stop the currently active animation.
1585
- *
1586
- * @public
1587
- */
1588
- stop() {
1589
- this.animation && (this.animation.stop(), this.events.animationCancel && this.events.animationCancel.notify()), this.clearAnimation();
1590
- }
1591
- /**
1592
- * Returns `true` if this value is currently animating.
1593
- *
1594
- * @public
1595
- */
1596
- isAnimating() {
1597
- return !!this.animation;
1598
- }
1599
- clearAnimation() {
1600
- delete this.animation;
1601
- }
1602
- /**
1603
- * Destroy and clean up subscribers to this `MotionValue`.
1604
- *
1605
- * The `MotionValue` hooks like `useMotionValue` and `useTransform` automatically
1606
- * handle the lifecycle of the returned `MotionValue`, so this method is only necessary if you've manually
1607
- * created a `MotionValue` via the `motionValue` function.
1608
- *
1609
- * @public
1610
- */
1611
- destroy() {
1612
- this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
1613
- }
1614
- }
1615
- function gt(t, e) {
1616
- return new pa(t, e);
1617
- }
1618
- function jn(t) {
1619
- const e = [{}, {}];
1620
- return t?.values.forEach((n, s) => {
1621
- e[0][s] = n.get(), e[1][s] = n.getVelocity();
1622
- }), e;
1623
- }
1624
- function ln(t, e, n, s) {
1625
- if (typeof e == "function") {
1626
- const [i, o] = jn(s);
1627
- e = e(n !== void 0 ? n : t.custom, i, o);
1628
- }
1629
- if (typeof e == "string" && (e = t.variants && t.variants[e]), typeof e == "function") {
1630
- const [i, o] = jn(s);
1631
- e = e(n !== void 0 ? n : t.custom, i, o);
1632
- }
1633
- return e;
1634
- }
1635
- function pt(t, e, n) {
1636
- const s = t.getProps();
1637
- return ln(s, e, n !== void 0 ? n : s.custom, t);
1638
- }
1639
- const Re = (t) => Array.isArray(t);
1640
- function ga(t, e, n) {
1641
- t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, gt(n));
1642
- }
1643
- function ya(t) {
1644
- return Re(t) ? t[t.length - 1] || 0 : t;
1645
- }
1646
- function va(t, e) {
1647
- const n = pt(t, e);
1648
- let { transitionEnd: s = {}, transition: i = {}, ...o } = n || {};
1649
- o = { ...o, ...s };
1650
- for (const r in o) {
1651
- const a = ya(o[r]);
1652
- ga(t, r, a);
1653
- }
1654
- }
1655
- const k = (t) => !!(t && t.getVelocity);
1656
- function Ta(t) {
1657
- return !!(k(t) && t.add);
1658
- }
1659
- function Le(t, e) {
1660
- const n = t.getValue("willChange");
1661
- if (Ta(n))
1662
- return n.add(e);
1663
- if (!n && X.WillChange) {
1664
- const s = new X.WillChange("auto");
1665
- t.addValue("willChange", s), s.add(e);
1666
- }
1667
- }
1668
- function un(t) {
1669
- return t.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
1670
- }
1671
- const xa = "framerAppearId", bi = "data-" + un(xa);
1672
- function Vi(t) {
1673
- return t.props[bi];
1674
- }
1675
- function Pa({ protectedKeys: t, needsAnimating: e }, n) {
1676
- const s = t.hasOwnProperty(n) && e[n] !== !0;
1677
- return e[n] = !1, s;
1678
- }
1679
- function Ai(t, e, { delay: n = 0, transitionOverride: s, type: i } = {}) {
1680
- let { transition: o = t.getDefaultTransition(), transitionEnd: r, ...a } = e;
1681
- s && (o = s);
1682
- const l = [], c = i && t.animationState && t.animationState.getState()[i];
1683
- for (const u in a) {
1684
- const h = t.getValue(u, t.latestValues[u] ?? null), f = a[u];
1685
- if (f === void 0 || c && Pa(c, u))
1686
- continue;
1687
- const d = {
1688
- delay: n,
1689
- ...on(o || {}, u)
1690
- }, m = h.get();
1691
- if (m !== void 0 && !h.isAnimating && !Array.isArray(f) && f === m && !d.velocity)
1692
- continue;
1693
- let v = !1;
1694
- if (window.MotionHandoffAnimation) {
1695
- const g = Vi(t);
1696
- if (g) {
1697
- const x = window.MotionHandoffAnimation(g, u, V);
1698
- x !== null && (d.startTime = x, v = !0);
1699
- }
1700
- }
1701
- Le(t, u), h.start(an(u, h, f, t.shouldReduceMotion && wi.has(u) ? { type: !1 } : d, t, v));
1702
- const T = h.animation;
1703
- T && l.push(T);
1704
- }
1705
- return r && Promise.all(l).then(() => {
1706
- V.update(() => {
1707
- r && va(t, r);
1708
- });
1709
- }), l;
1710
- }
1711
- function ke(t, e, n = {}) {
1712
- const s = pt(t, e, n.type === "exit" ? t.presenceContext?.custom : void 0);
1713
- let { transition: i = t.getDefaultTransition() || {} } = s || {};
1714
- n.transitionOverride && (i = n.transitionOverride);
1715
- const o = s ? () => Promise.all(Ai(t, s, n)) : () => Promise.resolve(), r = t.variantChildren && t.variantChildren.size ? (l = 0) => {
1716
- const { delayChildren: c = 0, staggerChildren: u, staggerDirection: h } = i;
1717
- return Sa(t, e, l, c, u, h, n);
1718
- } : () => Promise.resolve(), { when: a } = i;
1719
- if (a) {
1720
- const [l, c] = a === "beforeChildren" ? [o, r] : [r, o];
1721
- return l().then(() => c());
1722
- } else
1723
- return Promise.all([o(), r(n.delay)]);
1724
- }
1725
- function Sa(t, e, n = 0, s = 0, i = 0, o = 1, r) {
1726
- const a = [];
1727
- for (const l of t.variantChildren)
1728
- l.notify("AnimationStart", e), a.push(ke(l, e, {
1729
- ...r,
1730
- delay: n + (typeof s == "function" ? 0 : s) + Si(t.variantChildren, l, s, i, o)
1731
- }).then(() => l.notify("AnimationComplete", e)));
1732
- return Promise.all(a);
1733
- }
1734
- function wa(t, e, n = {}) {
1735
- t.notify("AnimationStart", e);
1736
- let s;
1737
- if (Array.isArray(e)) {
1738
- const i = e.map((o) => ke(t, o, n));
1739
- s = Promise.all(i);
1740
- } else if (typeof e == "string")
1741
- s = ke(t, e, n);
1742
- else {
1743
- const i = typeof e == "function" ? pt(t, e, n.custom) : e;
1744
- s = Promise.all(Ai(t, i, n));
1745
- }
1746
- return s.then(() => {
1747
- t.notify("AnimationComplete", e);
1748
- });
1749
- }
1750
- const ba = {
1751
- test: (t) => t === "auto",
1752
- parse: (t) => t
1753
- }, Di = (t) => (e) => e.test(t), Mi = [Tt, p, H, q, Xr, Yr, ba], Nn = (t) => Mi.find(Di(t));
1754
- function Va(t) {
1755
- return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || Gs(t) : !0;
1756
- }
1757
- const Aa = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
1758
- function Da(t) {
1759
- const [e, n] = t.slice(0, -1).split("(");
1760
- if (e === "drop-shadow")
1761
- return t;
1762
- const [s] = n.match(Ze) || [];
1763
- if (!s)
1764
- return t;
1765
- const i = n.replace(s, "");
1766
- let o = Aa.has(e) ? 1 : 0;
1767
- return s !== n && (o *= 100), e + "(" + o + i + ")";
1768
- }
1769
- const Ma = /\b([a-z-]*)\(.*?\)/gu, Fe = {
1770
- ...Q,
1771
- getAnimatableNone: (t) => {
1772
- const e = t.match(Ma);
1773
- return e ? e.map(Da).join(" ") : t;
1774
- }
1775
- }, Un = {
1776
- ...Tt,
1777
- transform: Math.round
1778
- }, Ca = {
1779
- rotate: q,
1780
- rotateX: q,
1781
- rotateY: q,
1782
- rotateZ: q,
1783
- scale: jt,
1784
- scaleX: jt,
1785
- scaleY: jt,
1786
- scaleZ: jt,
1787
- skew: q,
1788
- skewX: q,
1789
- skewY: q,
1790
- distance: p,
1791
- translateX: p,
1792
- translateY: p,
1793
- translateZ: p,
1794
- x: p,
1795
- y: p,
1796
- z: p,
1797
- perspective: p,
1798
- transformPerspective: p,
1799
- opacity: Ct,
1800
- originX: An,
1801
- originY: An,
1802
- originZ: p
1803
- }, cn = {
1804
- // Border props
1805
- borderWidth: p,
1806
- borderTopWidth: p,
1807
- borderRightWidth: p,
1808
- borderBottomWidth: p,
1809
- borderLeftWidth: p,
1810
- borderRadius: p,
1811
- radius: p,
1812
- borderTopLeftRadius: p,
1813
- borderTopRightRadius: p,
1814
- borderBottomRightRadius: p,
1815
- borderBottomLeftRadius: p,
1816
- // Positioning props
1817
- width: p,
1818
- maxWidth: p,
1819
- height: p,
1820
- maxHeight: p,
1821
- top: p,
1822
- right: p,
1823
- bottom: p,
1824
- left: p,
1825
- inset: p,
1826
- insetBlock: p,
1827
- insetBlockStart: p,
1828
- insetBlockEnd: p,
1829
- insetInline: p,
1830
- insetInlineStart: p,
1831
- insetInlineEnd: p,
1832
- // Spacing props
1833
- padding: p,
1834
- paddingTop: p,
1835
- paddingRight: p,
1836
- paddingBottom: p,
1837
- paddingLeft: p,
1838
- paddingBlock: p,
1839
- paddingBlockStart: p,
1840
- paddingBlockEnd: p,
1841
- paddingInline: p,
1842
- paddingInlineStart: p,
1843
- paddingInlineEnd: p,
1844
- margin: p,
1845
- marginTop: p,
1846
- marginRight: p,
1847
- marginBottom: p,
1848
- marginLeft: p,
1849
- marginBlock: p,
1850
- marginBlockStart: p,
1851
- marginBlockEnd: p,
1852
- marginInline: p,
1853
- marginInlineStart: p,
1854
- marginInlineEnd: p,
1855
- // Misc
1856
- backgroundPositionX: p,
1857
- backgroundPositionY: p,
1858
- ...Ca,
1859
- zIndex: Un,
1860
- // SVG
1861
- fillOpacity: Ct,
1862
- strokeOpacity: Ct,
1863
- numOctaves: Un
1864
- }, Ea = {
1865
- ...cn,
1866
- // Color props
1867
- color: M,
1868
- backgroundColor: M,
1869
- outlineColor: M,
1870
- fill: M,
1871
- stroke: M,
1872
- // Border props
1873
- borderColor: M,
1874
- borderTopColor: M,
1875
- borderRightColor: M,
1876
- borderBottomColor: M,
1877
- borderLeftColor: M,
1878
- filter: Fe,
1879
- WebkitFilter: Fe
1880
- }, Ci = (t) => Ea[t];
1881
- function Ei(t, e) {
1882
- let n = Ci(t);
1883
- return n !== Fe && (n = Q), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
1884
- }
1885
- const Ra = /* @__PURE__ */ new Set(["auto", "none", "0"]);
1886
- function La(t, e, n) {
1887
- let s = 0, i;
1888
- for (; s < t.length && !i; ) {
1889
- const o = t[s];
1890
- typeof o == "string" && !Ra.has(o) && Et(o).values.length && (i = t[s]), s++;
1891
- }
1892
- if (i && n)
1893
- for (const o of e)
1894
- t[o] = Ei(n, i);
1895
- }
1896
- class ka extends rn {
1897
- constructor(e, n, s, i, o) {
1898
- super(e, n, s, i, o, !0);
1899
- }
1900
- readKeyframes() {
1901
- const { unresolvedKeyframes: e, element: n, name: s } = this;
1902
- if (!n || !n.current)
1903
- return;
1904
- super.readKeyframes();
1905
- for (let u = 0; u < e.length; u++) {
1906
- let h = e[u];
1907
- if (typeof h == "string" && (h = h.trim(), qe(h))) {
1908
- const f = Pi(h, n.current);
1909
- f !== void 0 && (e[u] = f), u === e.length - 1 && (this.finalKeyframe = h);
1910
- }
1911
- }
1912
- if (this.resolveNoneKeyframes(), !wi.has(s) || e.length !== 2)
1913
- return;
1914
- const [i, o] = e, r = Nn(i), a = Nn(o), l = Vn(i), c = Vn(o);
1915
- if (l !== c && Z[s]) {
1916
- this.needsMeasurement = !0;
1917
- return;
1918
- }
1919
- if (r !== a)
1920
- if (Fn(r) && Fn(a))
1921
- for (let u = 0; u < e.length; u++) {
1922
- const h = e[u];
1923
- typeof h == "string" && (e[u] = parseFloat(h));
1924
- }
1925
- else Z[s] && (this.needsMeasurement = !0);
1926
- }
1927
- resolveNoneKeyframes() {
1928
- const { unresolvedKeyframes: e, name: n } = this, s = [];
1929
- for (let i = 0; i < e.length; i++)
1930
- (e[i] === null || Va(e[i])) && s.push(i);
1931
- s.length && La(e, s, n);
1932
- }
1933
- measureInitialState() {
1934
- const { element: e, unresolvedKeyframes: n, name: s } = this;
1935
- if (!e || !e.current)
1936
- return;
1937
- s === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = Z[s](e.measureViewportBox(), window.getComputedStyle(e.current)), n[0] = this.measuredOrigin;
1938
- const i = n[n.length - 1];
1939
- i !== void 0 && e.getValue(s, i).jump(i, !1);
1940
- }
1941
- measureEndState() {
1942
- const { element: e, name: n, unresolvedKeyframes: s } = this;
1943
- if (!e || !e.current)
1944
- return;
1945
- const i = e.getValue(n);
1946
- i && i.jump(this.measuredOrigin, !1);
1947
- const o = s.length - 1, r = s[o];
1948
- s[o] = Z[n](e.measureViewportBox(), window.getComputedStyle(e.current)), r !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = r), this.removedTransforms?.length && this.removedTransforms.forEach(([a, l]) => {
1949
- e.getValue(a).set(l);
1950
- }), this.resolveNoneKeyframes();
1951
- }
1952
- }
1953
- function Fa(t, e, n) {
1954
- if (t instanceof EventTarget)
1955
- return [t];
1956
- if (typeof t == "string") {
1957
- const i = document.querySelectorAll(t);
1958
- return i ? Array.from(i) : [];
1959
- }
1960
- return Array.from(t);
1961
- }
1962
- const Ri = (t, e) => e && typeof t == "number" ? e.transform(t) : t;
1963
- function Ba(t) {
1964
- return $s(t) && "offsetHeight" in t;
1965
- }
1966
- const { schedule: hn } = /* @__PURE__ */ ni(queueMicrotask, !1), G = {
1967
- x: !1,
1968
- y: !1
1969
- };
1970
- function Li() {
1971
- return G.x || G.y;
1972
- }
1973
- function Ia(t) {
1974
- return t === "x" || t === "y" ? G[t] ? null : (G[t] = !0, () => {
1975
- G[t] = !1;
1976
- }) : G.x || G.y ? null : (G.x = G.y = !0, () => {
1977
- G.x = G.y = !1;
1978
- });
1979
- }
1980
- function ki(t, e) {
1981
- const n = Fa(t), s = new AbortController(), i = {
1982
- passive: !0,
1983
- ...e,
1984
- signal: s.signal
1985
- };
1986
- return [n, i, () => s.abort()];
1987
- }
1988
- function Wn(t) {
1989
- return !(t.pointerType === "touch" || Li());
1990
- }
1991
- function Oa(t, e, n = {}) {
1992
- const [s, i, o] = ki(t, n), r = (a) => {
1993
- if (!Wn(a))
1994
- return;
1995
- const { target: l } = a, c = e(l, a);
1996
- if (typeof c != "function" || !l)
1997
- return;
1998
- const u = (h) => {
1999
- Wn(h) && (c(h), l.removeEventListener("pointerleave", u));
2000
- };
2001
- l.addEventListener("pointerleave", u, i);
2002
- };
2003
- return s.forEach((a) => {
2004
- a.addEventListener("pointerenter", r, i);
2005
- }), o;
2006
- }
2007
- const Fi = (t, e) => e ? t === e ? !0 : Fi(t, e.parentElement) : !1, fn = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1, ja = /* @__PURE__ */ new Set([
2008
- "BUTTON",
2009
- "INPUT",
2010
- "SELECT",
2011
- "TEXTAREA",
2012
- "A"
2013
- ]);
2014
- function Bi(t) {
2015
- return ja.has(t.tagName) || t.isContentEditable === !0;
2016
- }
2017
- const Wt = /* @__PURE__ */ new WeakSet();
2018
- function Kn(t) {
2019
- return (e) => {
2020
- e.key === "Enter" && t(e);
2021
- };
2022
- }
2023
- function ae(t, e) {
2024
- t.dispatchEvent(new PointerEvent("pointer" + e, { isPrimary: !0, bubbles: !0 }));
2025
- }
2026
- const Na = (t, e) => {
2027
- const n = t.currentTarget;
2028
- if (!n)
2029
- return;
2030
- const s = Kn(() => {
2031
- if (Wt.has(n))
2032
- return;
2033
- ae(n, "down");
2034
- const i = Kn(() => {
2035
- ae(n, "up");
2036
- }), o = () => ae(n, "cancel");
2037
- n.addEventListener("keyup", i, e), n.addEventListener("blur", o, e);
2038
- });
2039
- n.addEventListener("keydown", s, e), n.addEventListener("blur", () => n.removeEventListener("keydown", s), e);
2040
- };
2041
- function $n(t) {
2042
- return fn(t) && !Li();
2043
- }
2044
- function Ua(t, e, n = {}) {
2045
- const [s, i, o] = ki(t, n), r = (a) => {
2046
- const l = a.currentTarget;
2047
- if (!$n(a))
2048
- return;
2049
- Wt.add(l);
2050
- const c = e(l, a), u = (d, m) => {
2051
- window.removeEventListener("pointerup", h), window.removeEventListener("pointercancel", f), Wt.has(l) && Wt.delete(l), $n(d) && typeof c == "function" && c(d, { success: m });
2052
- }, h = (d) => {
2053
- u(d, l === window || l === document || n.useGlobalTarget || Fi(l, d.target));
2054
- }, f = (d) => {
2055
- u(d, !1);
2056
- };
2057
- window.addEventListener("pointerup", h, i), window.addEventListener("pointercancel", f, i);
2058
- };
2059
- return s.forEach((a) => {
2060
- (n.useGlobalTarget ? window : a).addEventListener("pointerdown", r, i), Ba(a) && (a.addEventListener("focus", (c) => Na(c, i)), !Bi(a) && !a.hasAttribute("tabindex") && (a.tabIndex = 0));
2061
- }), o;
2062
- }
2063
- function Ii(t) {
2064
- return $s(t) && "ownerSVGElement" in t;
2065
- }
2066
- function Wa(t) {
2067
- return Ii(t) && t.tagName === "svg";
2068
- }
2069
- const Ka = [...Mi, M, Q], $a = (t) => Ka.find(Di(t)), Gn = () => ({
2070
- translate: 0,
2071
- scale: 1,
2072
- origin: 0,
2073
- originPoint: 0
2074
- }), ht = () => ({
2075
- x: Gn(),
2076
- y: Gn()
2077
- }), _n = () => ({ min: 0, max: 0 }), E = () => ({
2078
- x: _n(),
2079
- y: _n()
2080
- }), Be = { current: null }, Oi = { current: !1 }, Ga = typeof window < "u";
2081
- function _a() {
2082
- if (Oi.current = !0, !!Ga)
2083
- if (window.matchMedia) {
2084
- const t = window.matchMedia("(prefers-reduced-motion)"), e = () => Be.current = t.matches;
2085
- t.addEventListener("change", e), e();
2086
- } else
2087
- Be.current = !1;
2088
- }
2089
- const Ha = /* @__PURE__ */ new WeakMap();
2090
- function Jt(t) {
2091
- return t !== null && typeof t == "object" && typeof t.start == "function";
2092
- }
2093
- function Rt(t) {
2094
- return typeof t == "string" || Array.isArray(t);
2095
- }
2096
- const dn = [
2097
- "animate",
2098
- "whileInView",
2099
- "whileFocus",
2100
- "whileHover",
2101
- "whileTap",
2102
- "whileDrag",
2103
- "exit"
2104
- ], mn = ["initial", ...dn];
2105
- function Qt(t) {
2106
- return Jt(t.animate) || mn.some((e) => Rt(t[e]));
2107
- }
2108
- function ji(t) {
2109
- return !!(Qt(t) || t.variants);
2110
- }
2111
- function za(t, e, n) {
2112
- for (const s in e) {
2113
- const i = e[s], o = n[s];
2114
- if (k(i))
2115
- t.addValue(s, i);
2116
- else if (k(o))
2117
- t.addValue(s, gt(i, { owner: t }));
2118
- else if (o !== i)
2119
- if (t.hasValue(s)) {
2120
- const r = t.getValue(s);
2121
- r.liveStyle === !0 ? r.jump(i) : r.hasAnimated || r.set(i);
2122
- } else {
2123
- const r = t.getStaticValue(s);
2124
- t.addValue(s, gt(r !== void 0 ? r : i, { owner: t }));
2125
- }
2126
- }
2127
- for (const s in n)
2128
- e[s] === void 0 && t.removeValue(s);
2129
- return e;
2130
- }
2131
- const Hn = [
2132
- "AnimationStart",
2133
- "AnimationComplete",
2134
- "Update",
2135
- "BeforeLayoutMeasure",
2136
- "LayoutMeasure",
2137
- "LayoutAnimationStart",
2138
- "LayoutAnimationComplete"
2139
- ];
2140
- let zt = {};
2141
- function Ni(t) {
2142
- zt = t;
2143
- }
2144
- function Ya() {
2145
- return zt;
2146
- }
2147
- class Xa {
2148
- /**
2149
- * This method takes React props and returns found MotionValues. For example, HTML
2150
- * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
2151
- *
2152
- * This isn't an abstract method as it needs calling in the constructor, but it is
2153
- * intended to be one.
2154
- */
2155
- scrapeMotionValuesFromProps(e, n, s) {
2156
- return {};
2157
- }
2158
- constructor({ parent: e, props: n, presenceContext: s, reducedMotionConfig: i, blockInitialAnimation: o, visualState: r }, a = {}) {
2159
- this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = rn, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
2160
- this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
2161
- }, this.renderScheduledAt = 0, this.scheduleRender = () => {
2162
- const f = F.now();
2163
- this.renderScheduledAt < f && (this.renderScheduledAt = f, V.render(this.render, !1, !0));
2164
- };
2165
- const { latestValues: l, renderState: c } = r;
2166
- this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = c, this.parent = e, this.props = n, this.presenceContext = s, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = i, this.options = a, this.blockInitialAnimation = !!o, this.isControllingVariants = Qt(n), this.isVariantNode = ji(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
2167
- const { willChange: u, ...h } = this.scrapeMotionValuesFromProps(n, {}, this);
2168
- for (const f in h) {
2169
- const d = h[f];
2170
- l[f] !== void 0 && k(d) && d.set(l[f]);
2171
- }
2172
- }
2173
- mount(e) {
2174
- this.current = e, Ha.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, s) => this.bindToMotionValue(s, n)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (Oi.current || _a(), this.shouldReduceMotion = Be.current), process.env.NODE_ENV !== "production" && ze(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.parent?.addChild(this), this.update(this.props, this.presenceContext);
2175
- }
2176
- unmount() {
2177
- this.projection && this.projection.unmount(), J(this.notifyUpdate), J(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
2178
- for (const e in this.events)
2179
- this.events[e].clear();
2180
- for (const e in this.features) {
2181
- const n = this.features[e];
2182
- n && (n.unmount(), n.isMounted = !1);
2183
- }
2184
- this.current = null;
2185
- }
2186
- addChild(e) {
2187
- this.children.add(e), this.enteringChildren ?? (this.enteringChildren = /* @__PURE__ */ new Set()), this.enteringChildren.add(e);
2188
- }
2189
- removeChild(e) {
2190
- this.children.delete(e), this.enteringChildren && this.enteringChildren.delete(e);
2191
- }
2192
- bindToMotionValue(e, n) {
2193
- this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)();
2194
- const s = Pt.has(e);
2195
- s && this.onBindTransform && this.onBindTransform();
2196
- const i = n.on("change", (r) => {
2197
- this.latestValues[e] = r, this.props.onUpdate && V.preRender(this.notifyUpdate), s && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
2198
- });
2199
- let o;
2200
- typeof window < "u" && window.MotionCheckAppearSync && (o = window.MotionCheckAppearSync(this, e, n)), this.valueSubscriptions.set(e, () => {
2201
- i(), o && o(), n.owner && n.stop();
2202
- });
2203
- }
2204
- sortNodePosition(e) {
2205
- return !this.current || !this.sortInstanceNodePosition || this.type !== e.type ? 0 : this.sortInstanceNodePosition(this.current, e.current);
2206
- }
2207
- updateFeatures() {
2208
- let e = "animation";
2209
- for (e in zt) {
2210
- const n = zt[e];
2211
- if (!n)
2212
- continue;
2213
- const { isEnabled: s, Feature: i } = n;
2214
- if (!this.features[e] && i && s(this.props) && (this.features[e] = new i(this)), this.features[e]) {
2215
- const o = this.features[e];
2216
- o.isMounted ? o.update() : (o.mount(), o.isMounted = !0);
2217
- }
2218
- }
2219
- }
2220
- triggerBuild() {
2221
- this.build(this.renderState, this.latestValues, this.props);
2222
- }
2223
- /**
2224
- * Measure the current viewport box with or without transforms.
2225
- * Only measures axis-aligned boxes, rotate and skew must be manually
2226
- * removed with a re-render to work.
2227
- */
2228
- measureViewportBox() {
2229
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : E();
2230
- }
2231
- getStaticValue(e) {
2232
- return this.latestValues[e];
2233
- }
2234
- setStaticValue(e, n) {
2235
- this.latestValues[e] = n;
2236
- }
2237
- /**
2238
- * Update the provided props. Ensure any newly-added motion values are
2239
- * added to our map, old ones removed, and listeners updated.
2240
- */
2241
- update(e, n) {
2242
- (e.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = n;
2243
- for (let s = 0; s < Hn.length; s++) {
2244
- const i = Hn[s];
2245
- this.propEventSubscriptions[i] && (this.propEventSubscriptions[i](), delete this.propEventSubscriptions[i]);
2246
- const o = "on" + i, r = e[o];
2247
- r && (this.propEventSubscriptions[i] = this.on(i, r));
2248
- }
2249
- this.prevMotionValues = za(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
2250
- }
2251
- getProps() {
2252
- return this.props;
2253
- }
2254
- /**
2255
- * Returns the variant definition with a given name.
2256
- */
2257
- getVariant(e) {
2258
- return this.props.variants ? this.props.variants[e] : void 0;
2259
- }
2260
- /**
2261
- * Returns the defined default transition on this component.
2262
- */
2263
- getDefaultTransition() {
2264
- return this.props.transition;
2265
- }
2266
- getTransformPagePoint() {
2267
- return this.props.transformPagePoint;
2268
- }
2269
- getClosestVariantNode() {
2270
- return this.isVariantNode ? this : this.parent ? this.parent.getClosestVariantNode() : void 0;
2271
- }
2272
- /**
2273
- * Add a child visual element to our set of children.
2274
- */
2275
- addVariantChild(e) {
2276
- const n = this.getClosestVariantNode();
2277
- if (n)
2278
- return n.variantChildren && n.variantChildren.add(e), () => n.variantChildren.delete(e);
2279
- }
2280
- /**
2281
- * Add a motion value and bind it to this visual element.
2282
- */
2283
- addValue(e, n) {
2284
- const s = this.values.get(e);
2285
- n !== s && (s && this.removeValue(e), this.bindToMotionValue(e, n), this.values.set(e, n), this.latestValues[e] = n.get());
2286
- }
2287
- /**
2288
- * Remove a motion value and unbind any active subscriptions.
2289
- */
2290
- removeValue(e) {
2291
- this.values.delete(e);
2292
- const n = this.valueSubscriptions.get(e);
2293
- n && (n(), this.valueSubscriptions.delete(e)), delete this.latestValues[e], this.removeValueFromRenderState(e, this.renderState);
2294
- }
2295
- /**
2296
- * Check whether we have a motion value for this key
2297
- */
2298
- hasValue(e) {
2299
- return this.values.has(e);
2300
- }
2301
- getValue(e, n) {
2302
- if (this.props.values && this.props.values[e])
2303
- return this.props.values[e];
2304
- let s = this.values.get(e);
2305
- return s === void 0 && n !== void 0 && (s = gt(n === null ? void 0 : n, { owner: this }), this.addValue(e, s)), s;
2306
- }
2307
- /**
2308
- * If we're trying to animate to a previously unencountered value,
2309
- * we need to check for it in our state and as a last resort read it
2310
- * directly from the instance (which might have performance implications).
2311
- */
2312
- readValue(e, n) {
2313
- let s = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
2314
- return s != null && (typeof s == "string" && (Ks(s) || Gs(s)) ? s = parseFloat(s) : !$a(s) && Q.test(n) && (s = Ei(e, n)), this.setBaseTarget(e, k(s) ? s.get() : s)), k(s) ? s.get() : s;
2315
- }
2316
- /**
2317
- * Set the base target to later animate back to. This is currently
2318
- * only hydrated on creation and when we first read a value.
2319
- */
2320
- setBaseTarget(e, n) {
2321
- this.baseTarget[e] = n;
2322
- }
2323
- /**
2324
- * Find the base target for a value thats been removed from all animation
2325
- * props.
2326
- */
2327
- getBaseTarget(e) {
2328
- const { initial: n } = this.props;
2329
- let s;
2330
- if (typeof n == "string" || typeof n == "object") {
2331
- const o = ln(this.props, n, this.presenceContext?.custom);
2332
- o && (s = o[e]);
2333
- }
2334
- if (n && s !== void 0)
2335
- return s;
2336
- const i = this.getBaseTargetFromProps(this.props, e);
2337
- return i !== void 0 && !k(i) ? i : this.initialValues[e] !== void 0 && s === void 0 ? void 0 : this.baseTarget[e];
2338
- }
2339
- on(e, n) {
2340
- return this.events[e] || (this.events[e] = new He()), this.events[e].add(n);
2341
- }
2342
- notify(e, ...n) {
2343
- this.events[e] && this.events[e].notify(...n);
2344
- }
2345
- scheduleRenderMicrotask() {
2346
- hn.render(this.render);
2347
- }
2348
- }
2349
- class tt {
2350
- constructor(e) {
2351
- this.isMounted = !1, this.node = e;
2352
- }
2353
- update() {
2354
- }
2355
- }
2356
- class Ui extends Xa {
2357
- constructor() {
2358
- super(...arguments), this.KeyframeResolver = ka;
2359
- }
2360
- sortInstanceNodePosition(e, n) {
2361
- return e.compareDocumentPosition(n) & 2 ? 1 : -1;
2362
- }
2363
- getBaseTargetFromProps(e, n) {
2364
- const s = e.style;
2365
- return s ? s[n] : void 0;
2366
- }
2367
- removeValueFromRenderState(e, { vars: n, style: s }) {
2368
- delete n[e], delete s[e];
2369
- }
2370
- handleChildMotionValue() {
2371
- this.childSubscription && (this.childSubscription(), delete this.childSubscription);
2372
- const { children: e } = this.props;
2373
- k(e) && (this.childSubscription = e.on("change", (n) => {
2374
- this.current && (this.current.textContent = `${n}`);
2375
- }));
2376
- }
2377
- }
2378
- function Wi({ top: t, left: e, right: n, bottom: s }) {
2379
- return {
2380
- x: { min: e, max: n },
2381
- y: { min: t, max: s }
2382
- };
2383
- }
2384
- function qa({ x: t, y: e }) {
2385
- return { top: e.min, right: t.max, bottom: e.max, left: t.min };
2386
- }
2387
- function Za(t, e) {
2388
- if (!e)
2389
- return t;
2390
- const n = e({ x: t.left, y: t.top }), s = e({ x: t.right, y: t.bottom });
2391
- return {
2392
- top: n.y,
2393
- left: n.x,
2394
- bottom: s.y,
2395
- right: s.x
2396
- };
2397
- }
2398
- function le(t) {
2399
- return t === void 0 || t === 1;
2400
- }
2401
- function Ie({ scale: t, scaleX: e, scaleY: n }) {
2402
- return !le(t) || !le(e) || !le(n);
2403
- }
2404
- function st(t) {
2405
- return Ie(t) || Ki(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
2406
- }
2407
- function Ki(t) {
2408
- return zn(t.x) || zn(t.y);
2409
- }
2410
- function zn(t) {
2411
- return t && t !== "0%";
2412
- }
2413
- function Yt(t, e, n) {
2414
- const s = t - n, i = e * s;
2415
- return n + i;
2416
- }
2417
- function Yn(t, e, n, s, i) {
2418
- return i !== void 0 && (t = Yt(t, i, s)), Yt(t, n, s) + e;
2419
- }
2420
- function Oe(t, e = 0, n = 1, s, i) {
2421
- t.min = Yn(t.min, e, n, s, i), t.max = Yn(t.max, e, n, s, i);
2422
- }
2423
- function $i(t, { x: e, y: n }) {
2424
- Oe(t.x, e.translate, e.scale, e.originPoint), Oe(t.y, n.translate, n.scale, n.originPoint);
2425
- }
2426
- const Xn = 0.999999999999, qn = 1.0000000000001;
2427
- function Ja(t, e, n, s = !1) {
2428
- const i = n.length;
2429
- if (!i)
2430
- return;
2431
- e.x = e.y = 1;
2432
- let o, r;
2433
- for (let a = 0; a < i; a++) {
2434
- o = n[a], r = o.projectionDelta;
2435
- const { visualElement: l } = o.options;
2436
- l && l.props.style && l.props.style.display === "contents" || (s && o.options.layoutScroll && o.scroll && o !== o.root && dt(t, {
2437
- x: -o.scroll.offset.x,
2438
- y: -o.scroll.offset.y
2439
- }), r && (e.x *= r.x.scale, e.y *= r.y.scale, $i(t, r)), s && st(o.latestValues) && dt(t, o.latestValues));
2440
- }
2441
- e.x < qn && e.x > Xn && (e.x = 1), e.y < qn && e.y > Xn && (e.y = 1);
2442
- }
2443
- function ft(t, e) {
2444
- t.min = t.min + e, t.max = t.max + e;
2445
- }
2446
- function Zn(t, e, n, s, i = 0.5) {
2447
- const o = D(t.min, t.max, i);
2448
- Oe(t, e, n, o, s);
2449
- }
2450
- function dt(t, e) {
2451
- Zn(t.x, e.x, e.scaleX, e.scale, e.originX), Zn(t.y, e.y, e.scaleY, e.scale, e.originY);
2452
- }
2453
- function Gi(t, e) {
2454
- return Wi(Za(t.getBoundingClientRect(), e));
2455
- }
2456
- function Qa(t, e, n) {
2457
- const s = Gi(t, n), { scroll: i } = e;
2458
- return i && (ft(s.x, i.offset.x), ft(s.y, i.offset.y)), s;
2459
- }
2460
- const tl = {
2461
- x: "translateX",
2462
- y: "translateY",
2463
- z: "translateZ",
2464
- transformPerspective: "perspective"
2465
- }, el = xt.length;
2466
- function nl(t, e, n) {
2467
- let s = "", i = !0;
2468
- for (let o = 0; o < el; o++) {
2469
- const r = xt[o], a = t[r];
2470
- if (a === void 0)
2471
- continue;
2472
- let l = !0;
2473
- if (typeof a == "number" ? l = a === (r.startsWith("scale") ? 1 : 0) : l = parseFloat(a) === 0, !l || n) {
2474
- const c = Ri(a, cn[r]);
2475
- if (!l) {
2476
- i = !1;
2477
- const u = tl[r] || r;
2478
- s += `${u}(${c}) `;
2479
- }
2480
- n && (e[r] = c);
2481
- }
2482
- }
2483
- return s = s.trim(), n ? s = n(e, i ? "" : s) : i && (s = "none"), s;
2484
- }
2485
- function pn(t, e, n) {
2486
- const { style: s, vars: i, transformOrigin: o } = t;
2487
- let r = !1, a = !1;
2488
- for (const l in e) {
2489
- const c = e[l];
2490
- if (Pt.has(l)) {
2491
- r = !0;
2492
- continue;
2493
- } else if (ii(l)) {
2494
- i[l] = c;
2495
- continue;
2496
- } else {
2497
- const u = Ri(c, cn[l]);
2498
- l.startsWith("origin") ? (a = !0, o[l] = u) : s[l] = u;
2499
- }
2500
- }
2501
- if (e.transform || (r || n ? s.transform = nl(e, t.transform, n) : s.transform && (s.transform = "none")), a) {
2502
- const { originX: l = "50%", originY: c = "50%", originZ: u = 0 } = o;
2503
- s.transformOrigin = `${l} ${c} ${u}`;
2504
- }
2505
- }
2506
- function _i(t, { style: e, vars: n }, s, i) {
2507
- const o = t.style;
2508
- let r;
2509
- for (r in e)
2510
- o[r] = e[r];
2511
- i?.applyProjectionStyles(o, s);
2512
- for (r in n)
2513
- o.setProperty(r, n[r]);
2514
- }
2515
- function Jn(t, e) {
2516
- return e.max === e.min ? 0 : t / (e.max - e.min) * 100;
2517
- }
2518
- const St = {
2519
- correct: (t, e) => {
2520
- if (!e.target)
2521
- return t;
2522
- if (typeof t == "string")
2523
- if (p.test(t))
2524
- t = parseFloat(t);
2525
- else
2526
- return t;
2527
- const n = Jn(t, e.target.x), s = Jn(t, e.target.y);
2528
- return `${n}% ${s}%`;
2529
- }
2530
- }, sl = {
2531
- correct: (t, { treeScale: e, projectionDelta: n }) => {
2532
- const s = t, i = Q.parse(t);
2533
- if (i.length > 5)
2534
- return s;
2535
- const o = Q.createTransformer(t), r = typeof i[0] != "number" ? 1 : 0, a = n.x.scale * e.x, l = n.y.scale * e.y;
2536
- i[0 + r] /= a, i[1 + r] /= l;
2537
- const c = D(a, l, 0.5);
2538
- return typeof i[2 + r] == "number" && (i[2 + r] /= c), typeof i[3 + r] == "number" && (i[3 + r] /= c), o(i);
2539
- }
2540
- }, je = {
2541
- borderRadius: {
2542
- ...St,
2543
- applyTo: [
2544
- "borderTopLeftRadius",
2545
- "borderTopRightRadius",
2546
- "borderBottomLeftRadius",
2547
- "borderBottomRightRadius"
2548
- ]
2549
- },
2550
- borderTopLeftRadius: St,
2551
- borderTopRightRadius: St,
2552
- borderBottomLeftRadius: St,
2553
- borderBottomRightRadius: St,
2554
- boxShadow: sl
2555
- };
2556
- function Hi(t, { layout: e, layoutId: n }) {
2557
- return Pt.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!je[t] || t === "opacity");
2558
- }
2559
- function gn(t, e, n) {
2560
- const s = t.style, i = e?.style, o = {};
2561
- if (!s)
2562
- return o;
2563
- for (const r in s)
2564
- (k(s[r]) || i && k(i[r]) || Hi(r, t) || n?.getValue(r)?.liveStyle !== void 0) && (o[r] = s[r]);
2565
- return o;
2566
- }
2567
- function il(t) {
2568
- return window.getComputedStyle(t);
2569
- }
2570
- class rl extends Ui {
2571
- constructor() {
2572
- super(...arguments), this.type = "html", this.renderInstance = _i;
2573
- }
2574
- readValueFromInstance(e, n) {
2575
- if (Pt.has(n))
2576
- return this.projection?.isProjecting ? Ve(n) : ko(e, n);
2577
- {
2578
- const s = il(e), i = (ii(n) ? s.getPropertyValue(n) : s[n]) || 0;
2579
- return typeof i == "string" ? i.trim() : i;
2580
- }
2581
- }
2582
- measureInstanceViewportBox(e, { transformPagePoint: n }) {
2583
- return Gi(e, n);
2584
- }
2585
- build(e, n, s) {
2586
- pn(e, n, s.transformTemplate);
2587
- }
2588
- scrapeMotionValuesFromProps(e, n, s) {
2589
- return gn(e, n, s);
2590
- }
2591
- }
2592
- const ol = {
2593
- offset: "stroke-dashoffset",
2594
- array: "stroke-dasharray"
2595
- }, al = {
2596
- offset: "strokeDashoffset",
2597
- array: "strokeDasharray"
2598
- };
2599
- function ll(t, e, n = 1, s = 0, i = !0) {
2600
- t.pathLength = 1;
2601
- const o = i ? ol : al;
2602
- t[o.offset] = p.transform(-s);
2603
- const r = p.transform(e), a = p.transform(n);
2604
- t[o.array] = `${r} ${a}`;
2605
- }
2606
- const ul = [
2607
- "offsetDistance",
2608
- "offsetPath",
2609
- "offsetRotate",
2610
- "offsetAnchor"
2611
- ];
2612
- function zi(t, {
2613
- attrX: e,
2614
- attrY: n,
2615
- attrScale: s,
2616
- pathLength: i,
2617
- pathSpacing: o = 1,
2618
- pathOffset: r = 0,
2619
- // This is object creation, which we try to avoid per-frame.
2620
- ...a
2621
- }, l, c, u) {
2622
- if (pn(t, a, c), l) {
2623
- t.style.viewBox && (t.attrs.viewBox = t.style.viewBox);
2624
- return;
2625
- }
2626
- t.attrs = t.style, t.style = {};
2627
- const { attrs: h, style: f } = t;
2628
- h.transform && (f.transform = h.transform, delete h.transform), (f.transform || h.transformOrigin) && (f.transformOrigin = h.transformOrigin ?? "50% 50%", delete h.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete h.transformBox);
2629
- for (const d of ul)
2630
- h[d] !== void 0 && (f[d] = h[d], delete h[d]);
2631
- e !== void 0 && (h.x = e), n !== void 0 && (h.y = n), s !== void 0 && (h.scale = s), i !== void 0 && ll(h, i, o, r, !1);
2632
- }
2633
- const Yi = /* @__PURE__ */ new Set([
2634
- "baseFrequency",
2635
- "diffuseConstant",
2636
- "kernelMatrix",
2637
- "kernelUnitLength",
2638
- "keySplines",
2639
- "keyTimes",
2640
- "limitingConeAngle",
2641
- "markerHeight",
2642
- "markerWidth",
2643
- "numOctaves",
2644
- "targetX",
2645
- "targetY",
2646
- "surfaceScale",
2647
- "specularConstant",
2648
- "specularExponent",
2649
- "stdDeviation",
2650
- "tableValues",
2651
- "viewBox",
2652
- "gradientTransform",
2653
- "pathLength",
2654
- "startOffset",
2655
- "textLength",
2656
- "lengthAdjust"
2657
- ]), Xi = (t) => typeof t == "string" && t.toLowerCase() === "svg";
2658
- function cl(t, e, n, s) {
2659
- _i(t, e, void 0, s);
2660
- for (const i in e.attrs)
2661
- t.setAttribute(Yi.has(i) ? i : un(i), e.attrs[i]);
2662
- }
2663
- function qi(t, e, n) {
2664
- const s = gn(t, e, n);
2665
- for (const i in t)
2666
- if (k(t[i]) || k(e[i])) {
2667
- const o = xt.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
2668
- s[o] = t[i];
2669
- }
2670
- return s;
2671
- }
2672
- class hl extends Ui {
2673
- constructor() {
2674
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = E;
2675
- }
2676
- getBaseTargetFromProps(e, n) {
2677
- return e[n];
2678
- }
2679
- readValueFromInstance(e, n) {
2680
- if (Pt.has(n)) {
2681
- const s = Ci(n);
2682
- return s && s.default || 0;
2683
- }
2684
- return n = Yi.has(n) ? n : un(n), e.getAttribute(n);
2685
- }
2686
- scrapeMotionValuesFromProps(e, n, s) {
2687
- return qi(e, n, s);
2688
- }
2689
- build(e, n, s) {
2690
- zi(e, n, this.isSVGTag, s.transformTemplate, s.style);
2691
- }
2692
- renderInstance(e, n, s, i) {
2693
- cl(e, n, s, i);
2694
- }
2695
- mount(e) {
2696
- this.isSVGTag = Xi(e.tagName), super.mount(e);
2697
- }
2698
- }
2699
- const fl = mn.length;
2700
- function Zi(t) {
2701
- if (!t)
2702
- return;
2703
- if (!t.isControllingVariants) {
2704
- const n = t.parent ? Zi(t.parent) || {} : {};
2705
- return t.props.initial !== void 0 && (n.initial = t.props.initial), n;
2706
- }
2707
- const e = {};
2708
- for (let n = 0; n < fl; n++) {
2709
- const s = mn[n], i = t.props[s];
2710
- (Rt(i) || i === !1) && (e[s] = i);
2711
- }
2712
- return e;
2713
- }
2714
- function Ji(t, e) {
2715
- if (!Array.isArray(e))
2716
- return !1;
2717
- const n = e.length;
2718
- if (n !== t.length)
2719
- return !1;
2720
- for (let s = 0; s < n; s++)
2721
- if (e[s] !== t[s])
2722
- return !1;
2723
- return !0;
2724
- }
2725
- const dl = [...dn].reverse(), ml = dn.length;
2726
- function pl(t) {
2727
- return (e) => Promise.all(e.map(({ animation: n, options: s }) => wa(t, n, s)));
2728
- }
2729
- function gl(t) {
2730
- let e = pl(t), n = Qn(), s = !0;
2731
- const i = (l) => (c, u) => {
2732
- const h = pt(t, u, l === "exit" ? t.presenceContext?.custom : void 0);
2733
- if (h) {
2734
- const { transition: f, transitionEnd: d, ...m } = h;
2735
- c = { ...c, ...m, ...d };
2736
- }
2737
- return c;
2738
- };
2739
- function o(l) {
2740
- e = l(t);
2741
- }
2742
- function r(l) {
2743
- const { props: c } = t, u = Zi(t.parent) || {}, h = [], f = /* @__PURE__ */ new Set();
2744
- let d = {}, m = 1 / 0;
2745
- for (let T = 0; T < ml; T++) {
2746
- const g = dl[T], x = n[g], y = c[g] !== void 0 ? c[g] : u[g], w = Rt(y), P = g === l ? x.isActive : null;
2747
- P === !1 && (m = T);
2748
- let b = y === u[g] && y !== c[g] && w;
2749
- if (b && s && t.manuallyAnimateOnMount && (b = !1), x.protectedKeys = { ...d }, // If it isn't active and hasn't *just* been set as inactive
2750
- !x.isActive && P === null || // If we didn't and don't have any defined prop for this animation type
2751
- !y && !x.prevProp || // Or if the prop doesn't define an animation
2752
- Jt(y) || typeof y == "boolean")
2753
- continue;
2754
- const C = yl(x.prevProp, y);
2755
- let S = C || // If we're making this variant active, we want to always make it active
2756
- g === l && x.isActive && !b && w || // If we removed a higher-priority variant (i is in reverse order)
2757
- T > m && w, I = !1;
2758
- const j = Array.isArray(y) ? y : [y];
2759
- let at = j.reduce(i(g), {});
2760
- P === !1 && (at = {});
2761
- const { prevResolvedValues: Tn = {} } = x, Sr = {
2762
- ...Tn,
2763
- ...at
2764
- }, xn = (R) => {
2765
- S = !0, f.has(R) && (I = !0, f.delete(R)), x.needsAnimating[R] = !0;
2766
- const N = t.getValue(R);
2767
- N && (N.liveStyle = !1);
2768
- };
2769
- for (const R in Sr) {
2770
- const N = at[R], et = Tn[R];
2771
- if (d.hasOwnProperty(R))
2772
- continue;
2773
- let lt = !1;
2774
- Re(N) && Re(et) ? lt = !Ji(N, et) : lt = N !== et, lt ? N != null ? xn(R) : f.add(R) : N !== void 0 && f.has(R) ? xn(R) : x.protectedKeys[R] = !0;
2775
- }
2776
- x.prevProp = y, x.prevResolvedValues = at, x.isActive && (d = { ...d, ...at }), s && t.blockInitialAnimation && (S = !1);
2777
- const Pn = b && C;
2778
- S && (!Pn || I) && h.push(...j.map((R) => {
2779
- const N = { type: g };
2780
- if (typeof R == "string" && s && !Pn && t.manuallyAnimateOnMount && t.parent) {
2781
- const { parent: et } = t, lt = pt(et, R);
2782
- if (et.enteringChildren && lt) {
2783
- const { delayChildren: wr } = lt.transition || {};
2784
- N.delay = Si(et.enteringChildren, t, wr);
2785
- }
2786
- }
2787
- return {
2788
- animation: R,
2789
- options: N
2790
- };
2791
- }));
2792
- }
2793
- if (f.size) {
2794
- const T = {};
2795
- if (typeof c.initial != "boolean") {
2796
- const g = pt(t, Array.isArray(c.initial) ? c.initial[0] : c.initial);
2797
- g && g.transition && (T.transition = g.transition);
2798
- }
2799
- f.forEach((g) => {
2800
- const x = t.getBaseTarget(g), y = t.getValue(g);
2801
- y && (y.liveStyle = !0), T[g] = x ?? null;
2802
- }), h.push({ animation: T });
2803
- }
2804
- let v = !!h.length;
2805
- return s && (c.initial === !1 || c.initial === c.animate) && !t.manuallyAnimateOnMount && (v = !1), s = !1, v ? e(h) : Promise.resolve();
2806
- }
2807
- function a(l, c) {
2808
- if (n[l].isActive === c)
2809
- return Promise.resolve();
2810
- t.variantChildren?.forEach((h) => h.animationState?.setActive(l, c)), n[l].isActive = c;
2811
- const u = r(l);
2812
- for (const h in n)
2813
- n[h].protectedKeys = {};
2814
- return u;
2815
- }
2816
- return {
2817
- animateChanges: r,
2818
- setActive: a,
2819
- setAnimateFunction: o,
2820
- getState: () => n,
2821
- reset: () => {
2822
- n = Qn();
2823
- }
2824
- };
2825
- }
2826
- function yl(t, e) {
2827
- return typeof e == "string" ? e !== t : Array.isArray(e) ? !Ji(e, t) : !1;
2828
- }
2829
- function nt(t = !1) {
2830
- return {
2831
- isActive: t,
2832
- protectedKeys: {},
2833
- needsAnimating: {},
2834
- prevResolvedValues: {}
2835
- };
2836
- }
2837
- function Qn() {
2838
- return {
2839
- animate: nt(!0),
2840
- whileInView: nt(),
2841
- whileHover: nt(),
2842
- whileTap: nt(),
2843
- whileDrag: nt(),
2844
- whileFocus: nt(),
2845
- exit: nt()
2846
- };
2847
- }
2848
- const Qi = 1e-4, vl = 1 - Qi, Tl = 1 + Qi, tr = 0.01, xl = 0 - tr, Pl = 0 + tr;
2849
- function B(t) {
2850
- return t.max - t.min;
2851
- }
2852
- function Sl(t, e, n) {
2853
- return Math.abs(t - e) <= n;
2854
- }
2855
- function ts(t, e, n, s = 0.5) {
2856
- t.origin = s, t.originPoint = D(e.min, e.max, t.origin), t.scale = B(n) / B(e), t.translate = D(n.min, n.max, t.origin) - t.originPoint, (t.scale >= vl && t.scale <= Tl || isNaN(t.scale)) && (t.scale = 1), (t.translate >= xl && t.translate <= Pl || isNaN(t.translate)) && (t.translate = 0);
2857
- }
2858
- function At(t, e, n, s) {
2859
- ts(t.x, e.x, n.x, s ? s.originX : void 0), ts(t.y, e.y, n.y, s ? s.originY : void 0);
2860
- }
2861
- function es(t, e, n) {
2862
- t.min = n.min + e.min, t.max = t.min + B(e);
2863
- }
2864
- function wl(t, e, n) {
2865
- es(t.x, e.x, n.x), es(t.y, e.y, n.y);
2866
- }
2867
- function ns(t, e, n) {
2868
- t.min = e.min - n.min, t.max = t.min + B(e);
2869
- }
2870
- function Xt(t, e, n) {
2871
- ns(t.x, e.x, n.x), ns(t.y, e.y, n.y);
2872
- }
2873
- function ss(t, e, n, s, i) {
2874
- return t -= e, t = Yt(t, 1 / n, s), i !== void 0 && (t = Yt(t, 1 / i, s)), t;
2875
- }
2876
- function bl(t, e = 0, n = 1, s = 0.5, i, o = t, r = t) {
2877
- if (H.test(e) && (e = parseFloat(e), e = D(r.min, r.max, e / 100) - r.min), typeof e != "number")
2878
- return;
2879
- let a = D(o.min, o.max, s);
2880
- t === o && (a -= e), t.min = ss(t.min, e, n, a, i), t.max = ss(t.max, e, n, a, i);
2881
- }
2882
- function is(t, e, [n, s, i], o, r) {
2883
- bl(t, e[n], e[s], e[i], e.scale, o, r);
2884
- }
2885
- const Vl = ["x", "scaleX", "originX"], Al = ["y", "scaleY", "originY"];
2886
- function rs(t, e, n, s) {
2887
- is(t.x, e, Vl, n ? n.x : void 0, s ? s.x : void 0), is(t.y, e, Al, n ? n.y : void 0, s ? s.y : void 0);
2888
- }
2889
- function os(t, e) {
2890
- t.min = e.min, t.max = e.max;
2891
- }
2892
- function $(t, e) {
2893
- os(t.x, e.x), os(t.y, e.y);
2894
- }
2895
- function as(t, e) {
2896
- t.translate = e.translate, t.scale = e.scale, t.originPoint = e.originPoint, t.origin = e.origin;
2897
- }
2898
- function ls(t) {
2899
- return t.translate === 0 && t.scale === 1;
2900
- }
2901
- function er(t) {
2902
- return ls(t.x) && ls(t.y);
2903
- }
2904
- function us(t, e) {
2905
- return t.min === e.min && t.max === e.max;
2906
- }
2907
- function Dl(t, e) {
2908
- return us(t.x, e.x) && us(t.y, e.y);
2909
- }
2910
- function cs(t, e) {
2911
- return Math.round(t.min) === Math.round(e.min) && Math.round(t.max) === Math.round(e.max);
2912
- }
2913
- function nr(t, e) {
2914
- return cs(t.x, e.x) && cs(t.y, e.y);
2915
- }
2916
- function hs(t) {
2917
- return B(t.x) / B(t.y);
2918
- }
2919
- function fs(t, e) {
2920
- return t.translate === e.translate && t.scale === e.scale && t.originPoint === e.originPoint;
2921
- }
2922
- function U(t) {
2923
- return [t("x"), t("y")];
2924
- }
2925
- function Ml(t, e, n) {
2926
- let s = "";
2927
- const i = t.x.translate / e.x, o = t.y.translate / e.y, r = n?.z || 0;
2928
- if ((i || o || r) && (s = `translate3d(${i}px, ${o}px, ${r}px) `), (e.x !== 1 || e.y !== 1) && (s += `scale(${1 / e.x}, ${1 / e.y}) `), n) {
2929
- const { transformPerspective: c, rotate: u, rotateX: h, rotateY: f, skewX: d, skewY: m } = n;
2930
- c && (s = `perspective(${c}px) ${s}`), u && (s += `rotate(${u}deg) `), h && (s += `rotateX(${h}deg) `), f && (s += `rotateY(${f}deg) `), d && (s += `skewX(${d}deg) `), m && (s += `skewY(${m}deg) `);
2931
- }
2932
- const a = t.x.scale * e.x, l = t.y.scale * e.y;
2933
- return (a !== 1 || l !== 1) && (s += `scale(${a}, ${l})`), s || "none";
2934
- }
2935
- const sr = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Cl = sr.length, ds = (t) => typeof t == "string" ? parseFloat(t) : t, ms = (t) => typeof t == "number" || p.test(t);
2936
- function El(t, e, n, s, i, o) {
2937
- i ? (t.opacity = D(0, n.opacity ?? 1, Rl(s)), t.opacityExit = D(e.opacity ?? 1, 0, Ll(s))) : o && (t.opacity = D(e.opacity ?? 1, n.opacity ?? 1, s));
2938
- for (let r = 0; r < Cl; r++) {
2939
- const a = `border${sr[r]}Radius`;
2940
- let l = ps(e, a), c = ps(n, a);
2941
- if (l === void 0 && c === void 0)
2942
- continue;
2943
- l || (l = 0), c || (c = 0), l === 0 || c === 0 || ms(l) === ms(c) ? (t[a] = Math.max(D(ds(l), ds(c), s), 0), (H.test(c) || H.test(l)) && (t[a] += "%")) : t[a] = c;
2944
- }
2945
- (e.rotate || n.rotate) && (t.rotate = D(e.rotate || 0, n.rotate || 0, s));
2946
- }
2947
- function ps(t, e) {
2948
- return t[e] !== void 0 ? t[e] : t.borderRadius;
2949
- }
2950
- const Rl = /* @__PURE__ */ ir(0, 0.5, Js), Ll = /* @__PURE__ */ ir(0.5, 0.95, K);
2951
- function ir(t, e, n) {
2952
- return (s) => s < t ? 0 : s > e ? 1 : n(/* @__PURE__ */ Mt(t, e, s));
2953
- }
2954
- function kl(t, e) {
2955
- const n = F.now(), s = ({ timestamp: i }) => {
2956
- const o = i - n;
2957
- o >= e && (J(s), t(o - e));
2958
- };
2959
- return V.setup(s, !0), () => J(s);
2960
- }
2961
- function Lt(t, e, n, s = { passive: !0 }) {
2962
- return t.addEventListener(e, n, s), () => t.removeEventListener(e, n);
2963
- }
2964
- function Kt(t) {
2965
- return k(t) ? t.get() : t;
2966
- }
2967
- function Fl(t, e, n) {
2968
- const s = k(t) ? t : gt(t);
2969
- return s.start(an("", s, e, n)), s.animation;
2970
- }
2971
- const Bl = (t, e) => t.depth - e.depth;
2972
- class Il {
2973
- constructor() {
2974
- this.children = [], this.isDirty = !1;
2975
- }
2976
- add(e) {
2977
- $e(this.children, e), this.isDirty = !0;
2978
- }
2979
- remove(e) {
2980
- Ge(this.children, e), this.isDirty = !0;
2981
- }
2982
- forEach(e) {
2983
- this.isDirty && this.children.sort(Bl), this.isDirty = !1, this.children.forEach(e);
2984
- }
2985
- }
2986
- class Ol {
2987
- constructor() {
2988
- this.members = [];
2989
- }
2990
- add(e) {
2991
- $e(this.members, e), e.scheduleRender();
2992
- }
2993
- remove(e) {
2994
- if (Ge(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
2995
- const n = this.members[this.members.length - 1];
2996
- n && this.promote(n);
2997
- }
2998
- }
2999
- relegate(e) {
3000
- const n = this.members.findIndex((i) => e === i);
3001
- if (n === 0)
3002
- return !1;
3003
- let s;
3004
- for (let i = n; i >= 0; i--) {
3005
- const o = this.members[i];
3006
- if (o.isPresent !== !1) {
3007
- s = o;
3008
- break;
3009
- }
3010
- }
3011
- return s ? (this.promote(s), !0) : !1;
3012
- }
3013
- promote(e, n) {
3014
- const s = this.lead;
3015
- if (e !== s && (this.prevLead = s, this.lead = e, e.show(), s)) {
3016
- s.instance && s.scheduleRender(), e.scheduleRender(), e.resumeFrom = s, n && (e.resumeFrom.preserveOpacity = !0), s.snapshot && (e.snapshot = s.snapshot, e.snapshot.latestValues = s.animationValues || s.latestValues), e.root && e.root.isUpdating && (e.isLayoutDirty = !0);
3017
- const { crossfade: i } = e.options;
3018
- i === !1 && s.hide();
3019
- }
3020
- }
3021
- exitAnimationComplete() {
3022
- this.members.forEach((e) => {
3023
- const { options: n, resumingFrom: s } = e;
3024
- n.onExitComplete && n.onExitComplete(), s && s.options.onExitComplete && s.options.onExitComplete();
3025
- });
3026
- }
3027
- scheduleRender() {
3028
- this.members.forEach((e) => {
3029
- e.instance && e.scheduleRender(!1);
3030
- });
3031
- }
3032
- /**
3033
- * Clear any leads that have been removed this render to prevent them from being
3034
- * used in future animations and to prevent memory leaks
3035
- */
3036
- removeLeadSnapshot() {
3037
- this.lead && this.lead.snapshot && (this.lead.snapshot = void 0);
3038
- }
3039
- }
3040
- const $t = {
3041
- /**
3042
- * Global flag as to whether the tree has animated since the last time
3043
- * we resized the window
3044
- */
3045
- hasAnimatedSinceResize: !0,
3046
- /**
3047
- * We set this to true once, on the first update. Any nodes added to the tree beyond that
3048
- * update will be given a `data-projection-id` attribute.
3049
- */
3050
- hasEverUpdated: !1
3051
- }, ue = ["", "X", "Y", "Z"], jl = 1e3;
3052
- let Nl = 0;
3053
- function ce(t, e, n, s) {
3054
- const { latestValues: i } = e;
3055
- i[t] && (n[t] = i[t], e.setStaticValue(t, 0), s && (s[t] = 0));
3056
- }
3057
- function rr(t) {
3058
- if (t.hasCheckedOptimisedAppear = !0, t.root === t)
3059
- return;
3060
- const { visualElement: e } = t.options;
3061
- if (!e)
3062
- return;
3063
- const n = Vi(e);
3064
- if (window.MotionHasOptimisedAnimation(n, "transform")) {
3065
- const { layout: i, layoutId: o } = t.options;
3066
- window.MotionCancelOptimisedAnimation(n, "transform", V, !(i || o));
3067
- }
3068
- const { parent: s } = t;
3069
- s && !s.hasCheckedOptimisedAppear && rr(s);
3070
- }
3071
- function or({ attachResizeListener: t, defaultParent: e, measureScroll: n, checkIsScrollRoot: s, resetTransform: i }) {
3072
- return class {
3073
- constructor(r = {}, a = e?.()) {
3074
- this.id = Nl++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.layoutVersion = 0, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
3075
- this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
3076
- }, this.updateProjection = () => {
3077
- this.projectionUpdateScheduled = !1, this.nodes.forEach(Kl), this.nodes.forEach(Hl), this.nodes.forEach(zl), this.nodes.forEach($l);
3078
- }, this.resolvedRelativeTargetAt = 0, this.linkedParentVersion = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = r, this.root = a ? a.root || a : this, this.path = a ? [...a.path, a] : [], this.parent = a, this.depth = a ? a.depth + 1 : 0;
3079
- for (let l = 0; l < this.path.length; l++)
3080
- this.path[l].shouldResetTransform = !0;
3081
- this.root === this && (this.nodes = new Il());
3082
- }
3083
- addEventListener(r, a) {
3084
- return this.eventHandlers.has(r) || this.eventHandlers.set(r, new He()), this.eventHandlers.get(r).add(a);
3085
- }
3086
- notifyListeners(r, ...a) {
3087
- const l = this.eventHandlers.get(r);
3088
- l && l.notify(...a);
3089
- }
3090
- hasListeners(r) {
3091
- return this.eventHandlers.has(r);
3092
- }
3093
- /**
3094
- * Lifecycles
3095
- */
3096
- mount(r) {
3097
- if (this.instance)
3098
- return;
3099
- this.isSVG = Ii(r) && !Wa(r), this.instance = r;
3100
- const { layoutId: a, layout: l, visualElement: c } = this.options;
3101
- if (c && !c.current && c.mount(r), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (l || a) && (this.isLayoutDirty = !0), t) {
3102
- let u, h = 0;
3103
- const f = () => this.root.updateBlockedByResize = !1;
3104
- V.read(() => {
3105
- h = window.innerWidth;
3106
- }), t(r, () => {
3107
- const d = window.innerWidth;
3108
- d !== h && (h = d, this.root.updateBlockedByResize = !0, u && u(), u = kl(f, 250), $t.hasAnimatedSinceResize && ($t.hasAnimatedSinceResize = !1, this.nodes.forEach(vs)));
3109
- });
3110
- }
3111
- a && this.root.registerSharedNode(a, this), this.options.animate !== !1 && c && (a || l) && this.addEventListener("didUpdate", ({ delta: u, hasLayoutChanged: h, hasRelativeLayoutChanged: f, layout: d }) => {
3112
- if (this.isTreeAnimationBlocked()) {
3113
- this.target = void 0, this.relativeTarget = void 0;
3114
- return;
3115
- }
3116
- const m = this.options.transition || c.getDefaultTransition() || Jl, { onLayoutAnimationStart: v, onLayoutAnimationComplete: T } = c.getProps(), g = !this.targetLayout || !nr(this.targetLayout, d), x = !h && f;
3117
- if (this.options.layoutRoot || this.resumeFrom || x || h && (g || !this.currentAnimation)) {
3118
- this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
3119
- const y = {
3120
- ...on(m, "layout"),
3121
- onPlay: v,
3122
- onComplete: T
3123
- };
3124
- (c.shouldReduceMotion || this.options.layoutRoot) && (y.delay = 0, y.type = !1), this.startAnimation(y), this.setAnimationOrigin(u, x);
3125
- } else
3126
- h || vs(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
3127
- this.targetLayout = d;
3128
- });
3129
- }
3130
- unmount() {
3131
- this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
3132
- const r = this.getStack();
3133
- r && r.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), J(this.updateProjection);
3134
- }
3135
- // only on the root
3136
- blockUpdate() {
3137
- this.updateManuallyBlocked = !0;
3138
- }
3139
- unblockUpdate() {
3140
- this.updateManuallyBlocked = !1;
3141
- }
3142
- isUpdateBlocked() {
3143
- return this.updateManuallyBlocked || this.updateBlockedByResize;
3144
- }
3145
- isTreeAnimationBlocked() {
3146
- return this.isAnimationBlocked || this.parent && this.parent.isTreeAnimationBlocked() || !1;
3147
- }
3148
- // Note: currently only running on root node
3149
- startUpdate() {
3150
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Yl), this.animationId++);
3151
- }
3152
- getTransformTemplate() {
3153
- const { visualElement: r } = this.options;
3154
- return r && r.getProps().transformTemplate;
3155
- }
3156
- willUpdate(r = !0) {
3157
- if (this.root.hasTreeAnimated = !0, this.root.isUpdateBlocked()) {
3158
- this.options.onExitComplete && this.options.onExitComplete();
3159
- return;
3160
- }
3161
- if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && rr(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
3162
- return;
3163
- this.isLayoutDirty = !0;
3164
- for (let u = 0; u < this.path.length; u++) {
3165
- const h = this.path[u];
3166
- h.shouldResetTransform = !0, h.updateScroll("snapshot"), h.options.layoutRoot && h.willUpdate(!1);
3167
- }
3168
- const { layoutId: a, layout: l } = this.options;
3169
- if (a === void 0 && !l)
3170
- return;
3171
- const c = this.getTransformTemplate();
3172
- this.prevTransformTemplateValue = c ? c(this.latestValues, "") : void 0, this.updateSnapshot(), r && this.notifyListeners("willUpdate");
3173
- }
3174
- update() {
3175
- if (this.updateScheduled = !1, this.isUpdateBlocked()) {
3176
- this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(gs);
3177
- return;
3178
- }
3179
- if (this.animationId <= this.animationCommitId) {
3180
- this.nodes.forEach(ys);
3181
- return;
3182
- }
3183
- this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(_l), this.nodes.forEach(Ul), this.nodes.forEach(Wl)) : this.nodes.forEach(ys), this.clearAllSnapshots();
3184
- const a = F.now();
3185
- L.delta = z(0, 1e3 / 60, a - L.timestamp), L.timestamp = a, L.isProcessing = !0, ee.update.process(L), ee.preRender.process(L), ee.render.process(L), L.isProcessing = !1;
3186
- }
3187
- didUpdate() {
3188
- this.updateScheduled || (this.updateScheduled = !0, hn.read(this.scheduleUpdate));
3189
- }
3190
- clearAllSnapshots() {
3191
- this.nodes.forEach(Gl), this.sharedNodes.forEach(Xl);
3192
- }
3193
- scheduleUpdateProjection() {
3194
- this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, V.preRender(this.updateProjection, !1, !0));
3195
- }
3196
- scheduleCheckAfterUnmount() {
3197
- V.postRender(() => {
3198
- this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
3199
- });
3200
- }
3201
- /**
3202
- * Update measurements
3203
- */
3204
- updateSnapshot() {
3205
- this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !B(this.snapshot.measuredBox.x) && !B(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
3206
- }
3207
- updateLayout() {
3208
- if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty))
3209
- return;
3210
- if (this.resumeFrom && !this.resumeFrom.instance)
3211
- for (let l = 0; l < this.path.length; l++)
3212
- this.path[l].updateScroll();
3213
- const r = this.layout;
3214
- this.layout = this.measure(!1), this.layoutVersion++, this.layoutCorrected = E(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
3215
- const { visualElement: a } = this.options;
3216
- a && a.notify("LayoutMeasure", this.layout.layoutBox, r ? r.layoutBox : void 0);
3217
- }
3218
- updateScroll(r = "measure") {
3219
- let a = !!(this.options.layoutScroll && this.instance);
3220
- if (this.scroll && this.scroll.animationId === this.root.animationId && this.scroll.phase === r && (a = !1), a && this.instance) {
3221
- const l = s(this.instance);
3222
- this.scroll = {
3223
- animationId: this.root.animationId,
3224
- phase: r,
3225
- isRoot: l,
3226
- offset: n(this.instance),
3227
- wasRoot: this.scroll ? this.scroll.isRoot : l
3228
- };
3229
- }
3230
- }
3231
- resetTransform() {
3232
- if (!i)
3233
- return;
3234
- const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !er(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, u = c !== this.prevTransformTemplateValue;
3235
- r && this.instance && (a || st(this.latestValues) || u) && (i(this.instance, c), this.shouldResetTransform = !1, this.scheduleRender());
3236
- }
3237
- measure(r = !0) {
3238
- const a = this.measurePageBox();
3239
- let l = this.removeElementScroll(a);
3240
- return r && (l = this.removeTransform(l)), Ql(l), {
3241
- animationId: this.root.animationId,
3242
- measuredBox: a,
3243
- layoutBox: l,
3244
- latestValues: {},
3245
- source: this.id
3246
- };
3247
- }
3248
- measurePageBox() {
3249
- const { visualElement: r } = this.options;
3250
- if (!r)
3251
- return E();
3252
- const a = r.measureViewportBox();
3253
- if (!(this.scroll?.wasRoot || this.path.some(tu))) {
3254
- const { scroll: c } = this.root;
3255
- c && (ft(a.x, c.offset.x), ft(a.y, c.offset.y));
3256
- }
3257
- return a;
3258
- }
3259
- removeElementScroll(r) {
3260
- const a = E();
3261
- if ($(a, r), this.scroll?.wasRoot)
3262
- return a;
3263
- for (let l = 0; l < this.path.length; l++) {
3264
- const c = this.path[l], { scroll: u, options: h } = c;
3265
- c !== this.root && u && h.layoutScroll && (u.wasRoot && $(a, r), ft(a.x, u.offset.x), ft(a.y, u.offset.y));
3266
- }
3267
- return a;
3268
- }
3269
- applyTransform(r, a = !1) {
3270
- const l = E();
3271
- $(l, r);
3272
- for (let c = 0; c < this.path.length; c++) {
3273
- const u = this.path[c];
3274
- !a && u.options.layoutScroll && u.scroll && u !== u.root && dt(l, {
3275
- x: -u.scroll.offset.x,
3276
- y: -u.scroll.offset.y
3277
- }), st(u.latestValues) && dt(l, u.latestValues);
3278
- }
3279
- return st(this.latestValues) && dt(l, this.latestValues), l;
3280
- }
3281
- removeTransform(r) {
3282
- const a = E();
3283
- $(a, r);
3284
- for (let l = 0; l < this.path.length; l++) {
3285
- const c = this.path[l];
3286
- if (!c.instance || !st(c.latestValues))
3287
- continue;
3288
- Ie(c.latestValues) && c.updateSnapshot();
3289
- const u = E(), h = c.measurePageBox();
3290
- $(u, h), rs(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
3291
- }
3292
- return st(this.latestValues) && rs(a, this.latestValues), a;
3293
- }
3294
- setTargetDelta(r) {
3295
- this.targetDelta = r, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
3296
- }
3297
- setOptions(r) {
3298
- this.options = {
3299
- ...this.options,
3300
- ...r,
3301
- crossfade: r.crossfade !== void 0 ? r.crossfade : !0
3302
- };
3303
- }
3304
- clearMeasurements() {
3305
- this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
3306
- }
3307
- forceRelativeParentToResolveTarget() {
3308
- this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== L.timestamp && this.relativeParent.resolveTargetDelta(!0);
3309
- }
3310
- resolveTargetDelta(r = !1) {
3311
- const a = this.getLead();
3312
- this.isProjectionDirty || (this.isProjectionDirty = a.isProjectionDirty), this.isTransformDirty || (this.isTransformDirty = a.isTransformDirty), this.isSharedProjectionDirty || (this.isSharedProjectionDirty = a.isSharedProjectionDirty);
3313
- const l = !!this.resumingFrom || this !== a;
3314
- if (!(r || l && this.isSharedProjectionDirty || this.isProjectionDirty || this.parent?.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize))
3315
- return;
3316
- const { layout: u, layoutId: h } = this.options;
3317
- if (!this.layout || !(u || h))
3318
- return;
3319
- this.resolvedRelativeTargetAt = L.timestamp;
3320
- const f = this.getClosestProjectingParent();
3321
- f && this.linkedParentVersion !== f.layoutVersion && !f.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (f && f.layout ? this.createRelativeTarget(f, this.layout.layoutBox, f.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = E(), this.targetWithTransforms = E()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), wl(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : $(this.target, this.layout.layoutBox), $i(this.target, this.targetDelta)) : $(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, f && !!f.resumingFrom == !!this.resumingFrom && !f.options.layoutScroll && f.target && this.animationProgress !== 1 ? this.createRelativeTarget(f, this.target, f.target) : this.relativeParent = this.relativeTarget = void 0));
3322
- }
3323
- getClosestProjectingParent() {
3324
- if (!(!this.parent || Ie(this.parent.latestValues) || Ki(this.parent.latestValues)))
3325
- return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
3326
- }
3327
- isProjecting() {
3328
- return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
3329
- }
3330
- createRelativeTarget(r, a, l) {
3331
- this.relativeParent = r, this.linkedParentVersion = r.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = E(), this.relativeTargetOrigin = E(), Xt(this.relativeTargetOrigin, a, l), $(this.relativeTarget, this.relativeTargetOrigin);
3332
- }
3333
- removeRelativeTarget() {
3334
- this.relativeParent = this.relativeTarget = void 0;
3335
- }
3336
- calcProjection() {
3337
- const r = this.getLead(), a = !!this.resumingFrom || this !== r;
3338
- let l = !0;
3339
- if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (l = !1), a && (this.isSharedProjectionDirty || this.isTransformDirty) && (l = !1), this.resolvedRelativeTargetAt === L.timestamp && (l = !1), l)
3340
- return;
3341
- const { layout: c, layoutId: u } = this.options;
3342
- if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(c || u))
3343
- return;
3344
- $(this.layoutCorrected, this.layout.layoutBox);
3345
- const h = this.treeScale.x, f = this.treeScale.y;
3346
- Ja(this.layoutCorrected, this.treeScale, this.path, a), r.layout && !r.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (r.target = r.layout.layoutBox, r.targetWithTransforms = E());
3347
- const { target: d } = r;
3348
- if (!d) {
3349
- this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
3350
- return;
3351
- }
3352
- !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (as(this.prevProjectionDelta.x, this.projectionDelta.x), as(this.prevProjectionDelta.y, this.projectionDelta.y)), At(this.projectionDelta, this.layoutCorrected, d, this.latestValues), (this.treeScale.x !== h || this.treeScale.y !== f || !fs(this.projectionDelta.x, this.prevProjectionDelta.x) || !fs(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", d));
3353
- }
3354
- hide() {
3355
- this.isVisible = !1;
3356
- }
3357
- show() {
3358
- this.isVisible = !0;
3359
- }
3360
- scheduleRender(r = !0) {
3361
- if (this.options.visualElement?.scheduleRender(), r) {
3362
- const a = this.getStack();
3363
- a && a.scheduleRender();
3364
- }
3365
- this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
3366
- }
3367
- createProjectionDeltas() {
3368
- this.prevProjectionDelta = ht(), this.projectionDelta = ht(), this.projectionDeltaWithTransform = ht();
3369
- }
3370
- setAnimationOrigin(r, a = !1) {
3371
- const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, h = ht();
3372
- (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
3373
- const f = E(), d = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, v = d !== m, T = this.getStack(), g = !T || T.members.length <= 1, x = !!(v && !g && this.options.crossfade === !0 && !this.path.some(Zl));
3374
- this.animationProgress = 0;
3375
- let y;
3376
- this.mixTargetDelta = (w) => {
3377
- const P = w / 1e3;
3378
- Ts(h.x, r.x, P), Ts(h.y, r.y, P), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Xt(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), ql(this.relativeTarget, this.relativeTargetOrigin, f, P), y && Dl(this.relativeTarget, y) && (this.isProjectionDirty = !1), y || (y = E()), $(y, this.relativeTarget)), v && (this.animationValues = u, El(u, c, this.latestValues, P, x, g)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = P;
3379
- }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
3380
- }
3381
- startAnimation(r) {
3382
- this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation && (J(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = V.update(() => {
3383
- $t.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = gt(0)), this.currentAnimation = Fl(this.motionValue, [0, 1e3], {
3384
- ...r,
3385
- velocity: 0,
3386
- isSync: !0,
3387
- onUpdate: (a) => {
3388
- this.mixTargetDelta(a), r.onUpdate && r.onUpdate(a);
3389
- },
3390
- onStop: () => {
3391
- },
3392
- onComplete: () => {
3393
- r.onComplete && r.onComplete(), this.completeAnimation();
3394
- }
3395
- }), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
3396
- });
3397
- }
3398
- completeAnimation() {
3399
- this.resumingFrom && (this.resumingFrom.currentAnimation = void 0, this.resumingFrom.preserveOpacity = void 0);
3400
- const r = this.getStack();
3401
- r && r.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
3402
- }
3403
- finishAnimation() {
3404
- this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(jl), this.currentAnimation.stop()), this.completeAnimation();
3405
- }
3406
- applyTransformsToTarget() {
3407
- const r = this.getLead();
3408
- let { targetWithTransforms: a, target: l, layout: c, latestValues: u } = r;
3409
- if (!(!a || !l || !c)) {
3410
- if (this !== r && this.layout && c && ar(this.options.animationType, this.layout.layoutBox, c.layoutBox)) {
3411
- l = this.target || E();
3412
- const h = B(this.layout.layoutBox.x);
3413
- l.x.min = r.target.x.min, l.x.max = l.x.min + h;
3414
- const f = B(this.layout.layoutBox.y);
3415
- l.y.min = r.target.y.min, l.y.max = l.y.min + f;
3416
- }
3417
- $(a, l), dt(a, u), At(this.projectionDeltaWithTransform, this.layoutCorrected, a, u);
3418
- }
3419
- }
3420
- registerSharedNode(r, a) {
3421
- this.sharedNodes.has(r) || this.sharedNodes.set(r, new Ol()), this.sharedNodes.get(r).add(a);
3422
- const c = a.options.initialPromotionConfig;
3423
- a.promote({
3424
- transition: c ? c.transition : void 0,
3425
- preserveFollowOpacity: c && c.shouldPreserveFollowOpacity ? c.shouldPreserveFollowOpacity(a) : void 0
3426
- });
3427
- }
3428
- isLead() {
3429
- const r = this.getStack();
3430
- return r ? r.lead === this : !0;
3431
- }
3432
- getLead() {
3433
- const { layoutId: r } = this.options;
3434
- return r ? this.getStack()?.lead || this : this;
3435
- }
3436
- getPrevLead() {
3437
- const { layoutId: r } = this.options;
3438
- return r ? this.getStack()?.prevLead : void 0;
3439
- }
3440
- getStack() {
3441
- const { layoutId: r } = this.options;
3442
- if (r)
3443
- return this.root.sharedNodes.get(r);
3444
- }
3445
- promote({ needsReset: r, transition: a, preserveFollowOpacity: l } = {}) {
3446
- const c = this.getStack();
3447
- c && c.promote(this, l), r && (this.projectionDelta = void 0, this.needsReset = !0), a && this.setOptions({ transition: a });
3448
- }
3449
- relegate() {
3450
- const r = this.getStack();
3451
- return r ? r.relegate(this) : !1;
3452
- }
3453
- resetSkewAndRotation() {
3454
- const { visualElement: r } = this.options;
3455
- if (!r)
3456
- return;
3457
- let a = !1;
3458
- const { latestValues: l } = r;
3459
- if ((l.z || l.rotate || l.rotateX || l.rotateY || l.rotateZ || l.skewX || l.skewY) && (a = !0), !a)
3460
- return;
3461
- const c = {};
3462
- l.z && ce("z", r, c, this.animationValues);
3463
- for (let u = 0; u < ue.length; u++)
3464
- ce(`rotate${ue[u]}`, r, c, this.animationValues), ce(`skew${ue[u]}`, r, c, this.animationValues);
3465
- r.render();
3466
- for (const u in c)
3467
- r.setStaticValue(u, c[u]), this.animationValues && (this.animationValues[u] = c[u]);
3468
- r.scheduleRender();
3469
- }
3470
- applyProjectionStyles(r, a) {
3471
- if (!this.instance || this.isSVG)
3472
- return;
3473
- if (!this.isVisible) {
3474
- r.visibility = "hidden";
3475
- return;
3476
- }
3477
- const l = this.getTransformTemplate();
3478
- if (this.needsReset) {
3479
- this.needsReset = !1, r.visibility = "", r.opacity = "", r.pointerEvents = Kt(a?.pointerEvents) || "", r.transform = l ? l(this.latestValues, "") : "none";
3480
- return;
3481
- }
3482
- const c = this.getLead();
3483
- if (!this.projectionDelta || !this.layout || !c.target) {
3484
- this.options.layoutId && (r.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, r.pointerEvents = Kt(a?.pointerEvents) || ""), this.hasProjected && !st(this.latestValues) && (r.transform = l ? l({}, "") : "none", this.hasProjected = !1);
3485
- return;
3486
- }
3487
- r.visibility = "";
3488
- const u = c.animationValues || c.latestValues;
3489
- this.applyTransformsToTarget();
3490
- let h = Ml(this.projectionDeltaWithTransform, this.treeScale, u);
3491
- l && (h = l(u, h)), r.transform = h;
3492
- const { x: f, y: d } = this.projectionDelta;
3493
- r.transformOrigin = `${f.origin * 100}% ${d.origin * 100}% 0`, c.animationValues ? r.opacity = c === this ? u.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : u.opacityExit : r.opacity = c === this ? u.opacity !== void 0 ? u.opacity : "" : u.opacityExit !== void 0 ? u.opacityExit : 0;
3494
- for (const m in je) {
3495
- if (u[m] === void 0)
3496
- continue;
3497
- const { correct: v, applyTo: T, isCSSVariable: g } = je[m], x = h === "none" ? u[m] : v(u[m], c);
3498
- if (T) {
3499
- const y = T.length;
3500
- for (let w = 0; w < y; w++)
3501
- r[T[w]] = x;
3502
- } else
3503
- g ? this.options.visualElement.renderState.vars[m] = x : r[m] = x;
3504
- }
3505
- this.options.layoutId && (r.pointerEvents = c === this ? Kt(a?.pointerEvents) || "" : "none");
3506
- }
3507
- clearSnapshot() {
3508
- this.resumeFrom = this.snapshot = void 0;
3509
- }
3510
- // Only run on root
3511
- resetTree() {
3512
- this.root.nodes.forEach((r) => r.currentAnimation?.stop()), this.root.nodes.forEach(gs), this.root.sharedNodes.clear();
3513
- }
3514
- };
3515
- }
3516
- function Ul(t) {
3517
- t.updateLayout();
3518
- }
3519
- function Wl(t) {
3520
- const e = t.resumeFrom?.snapshot || t.snapshot;
3521
- if (t.isLead() && t.layout && e && t.hasListeners("didUpdate")) {
3522
- const { layoutBox: n, measuredBox: s } = t.layout, { animationType: i } = t.options, o = e.source !== t.layout.source;
3523
- i === "size" ? U((u) => {
3524
- const h = o ? e.measuredBox[u] : e.layoutBox[u], f = B(h);
3525
- h.min = n[u].min, h.max = h.min + f;
3526
- }) : ar(i, e.layoutBox, n) && U((u) => {
3527
- const h = o ? e.measuredBox[u] : e.layoutBox[u], f = B(n[u]);
3528
- h.max = h.min + f, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[u].max = t.relativeTarget[u].min + f);
3529
- });
3530
- const r = ht();
3531
- At(r, n, e.layoutBox);
3532
- const a = ht();
3533
- o ? At(a, t.applyTransform(s, !0), e.measuredBox) : At(a, n, e.layoutBox);
3534
- const l = !er(r);
3535
- let c = !1;
3536
- if (!t.resumeFrom) {
3537
- const u = t.getClosestProjectingParent();
3538
- if (u && !u.resumeFrom) {
3539
- const { snapshot: h, layout: f } = u;
3540
- if (h && f) {
3541
- const d = E();
3542
- Xt(d, e.layoutBox, h.layoutBox);
3543
- const m = E();
3544
- Xt(m, n, f.layoutBox), nr(d, m) || (c = !0), u.options.layoutRoot && (t.relativeTarget = m, t.relativeTargetOrigin = d, t.relativeParent = u);
3545
- }
3546
- }
3547
- }
3548
- t.notifyListeners("didUpdate", {
3549
- layout: n,
3550
- snapshot: e,
3551
- delta: a,
3552
- layoutDelta: r,
3553
- hasLayoutChanged: l,
3554
- hasRelativeLayoutChanged: c
3555
- });
3556
- } else if (t.isLead()) {
3557
- const { onExitComplete: n } = t.options;
3558
- n && n();
3559
- }
3560
- t.options.transition = void 0;
3561
- }
3562
- function Kl(t) {
3563
- t.parent && (t.isProjecting() || (t.isProjectionDirty = t.parent.isProjectionDirty), t.isSharedProjectionDirty || (t.isSharedProjectionDirty = !!(t.isProjectionDirty || t.parent.isProjectionDirty || t.parent.isSharedProjectionDirty)), t.isTransformDirty || (t.isTransformDirty = t.parent.isTransformDirty));
3564
- }
3565
- function $l(t) {
3566
- t.isProjectionDirty = t.isSharedProjectionDirty = t.isTransformDirty = !1;
3567
- }
3568
- function Gl(t) {
3569
- t.clearSnapshot();
3570
- }
3571
- function gs(t) {
3572
- t.clearMeasurements();
3573
- }
3574
- function ys(t) {
3575
- t.isLayoutDirty = !1;
3576
- }
3577
- function _l(t) {
3578
- const { visualElement: e } = t.options;
3579
- e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
3580
- }
3581
- function vs(t) {
3582
- t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0, t.isProjectionDirty = !0;
3583
- }
3584
- function Hl(t) {
3585
- t.resolveTargetDelta();
3586
- }
3587
- function zl(t) {
3588
- t.calcProjection();
3589
- }
3590
- function Yl(t) {
3591
- t.resetSkewAndRotation();
3592
- }
3593
- function Xl(t) {
3594
- t.removeLeadSnapshot();
3595
- }
3596
- function Ts(t, e, n) {
3597
- t.translate = D(e.translate, 0, n), t.scale = D(e.scale, 1, n), t.origin = e.origin, t.originPoint = e.originPoint;
3598
- }
3599
- function xs(t, e, n, s) {
3600
- t.min = D(e.min, n.min, s), t.max = D(e.max, n.max, s);
3601
- }
3602
- function ql(t, e, n, s) {
3603
- xs(t.x, e.x, n.x, s), xs(t.y, e.y, n.y, s);
3604
- }
3605
- function Zl(t) {
3606
- return t.animationValues && t.animationValues.opacityExit !== void 0;
3607
- }
3608
- const Jl = {
3609
- duration: 0.45,
3610
- ease: [0.4, 0, 0.1, 1]
3611
- }, Ps = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Ss = Ps("applewebkit/") && !Ps("chrome/") ? Math.round : K;
3612
- function ws(t) {
3613
- t.min = Ss(t.min), t.max = Ss(t.max);
3614
- }
3615
- function Ql(t) {
3616
- ws(t.x), ws(t.y);
3617
- }
3618
- function ar(t, e, n) {
3619
- return t === "position" || t === "preserve-aspect" && !Sl(hs(e), hs(n), 0.2);
3620
- }
3621
- function tu(t) {
3622
- return t !== t.root && t.scroll?.wasRoot;
3623
- }
3624
- const eu = or({
3625
- attachResizeListener: (t, e) => Lt(t, "resize", e),
3626
- measureScroll: () => ({
3627
- x: document.documentElement.scrollLeft || document.body.scrollLeft,
3628
- y: document.documentElement.scrollTop || document.body.scrollTop
3629
- }),
3630
- checkIsScrollRoot: () => !0
3631
- }), he = {
3632
- current: void 0
3633
- }, lr = or({
3634
- measureScroll: (t) => ({
3635
- x: t.scrollLeft,
3636
- y: t.scrollTop
3637
- }),
3638
- defaultParent: () => {
3639
- if (!he.current) {
3640
- const t = new eu({});
3641
- t.mount(window), t.setOptions({ layoutScroll: !0 }), he.current = t;
3642
- }
3643
- return he.current;
3644
- },
3645
- resetTransform: (t, e) => {
3646
- t.style.transform = e !== void 0 ? e : "none";
3647
- },
3648
- checkIsScrollRoot: (t) => window.getComputedStyle(t).position === "fixed"
3649
- }), ur = yt({
3650
- transformPagePoint: (t) => t,
3651
- isStatic: !1,
3652
- reducedMotion: "never"
3653
- });
3654
- function nu(t = !0) {
3655
- const e = O(Ke);
3656
- if (e === null)
3657
- return [!0, null];
3658
- const { isPresent: n, onExitComplete: s, register: i } = e, o = Vr();
3659
- We(() => {
3660
- if (t)
3661
- return i(o);
3662
- }, [t]);
3663
- const r = Os(() => t && s && s(o), [o, s, t]);
3664
- return !n && s ? [!1, r] : [!0];
3665
- }
3666
- const cr = yt({ strict: !1 }), bs = {
3667
- animation: [
3668
- "animate",
3669
- "variants",
3670
- "whileHover",
3671
- "whileTap",
3672
- "exit",
3673
- "whileInView",
3674
- "whileFocus",
3675
- "whileDrag"
3676
- ],
3677
- exit: ["exit"],
3678
- drag: ["drag", "dragControls"],
3679
- focus: ["whileFocus"],
3680
- hover: ["whileHover", "onHoverStart", "onHoverEnd"],
3681
- tap: ["whileTap", "onTap", "onTapStart", "onTapCancel"],
3682
- pan: ["onPan", "onPanStart", "onPanSessionStart", "onPanEnd"],
3683
- inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
3684
- layout: ["layout", "layoutId"]
3685
- };
3686
- let Vs = !1;
3687
- function su() {
3688
- if (Vs)
3689
- return;
3690
- const t = {};
3691
- for (const e in bs)
3692
- t[e] = {
3693
- isEnabled: (n) => bs[e].some((s) => !!n[s])
3694
- };
3695
- Ni(t), Vs = !0;
3696
- }
3697
- function hr() {
3698
- return su(), Ya();
3699
- }
3700
- function iu(t) {
3701
- const e = hr();
3702
- for (const n in t)
3703
- e[n] = {
3704
- ...e[n],
3705
- ...t[n]
3706
- };
3707
- Ni(e);
3708
- }
3709
- const ru = /* @__PURE__ */ new Set([
3710
- "animate",
3711
- "exit",
3712
- "variants",
3713
- "initial",
3714
- "style",
3715
- "values",
3716
- "variants",
3717
- "transition",
3718
- "transformTemplate",
3719
- "custom",
3720
- "inherit",
3721
- "onBeforeLayoutMeasure",
3722
- "onAnimationStart",
3723
- "onAnimationComplete",
3724
- "onUpdate",
3725
- "onDragStart",
3726
- "onDrag",
3727
- "onDragEnd",
3728
- "onMeasureDragConstraints",
3729
- "onDirectionLock",
3730
- "onDragTransitionEnd",
3731
- "_dragX",
3732
- "_dragY",
3733
- "onHoverStart",
3734
- "onHoverEnd",
3735
- "onViewportEnter",
3736
- "onViewportLeave",
3737
- "globalTapTarget",
3738
- "ignoreStrict",
3739
- "viewport"
3740
- ]);
3741
- function qt(t) {
3742
- return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || ru.has(t);
3743
- }
3744
- let fr = (t) => !qt(t);
3745
- function ou(t) {
3746
- typeof t == "function" && (fr = (e) => e.startsWith("on") ? !qt(e) : t(e));
3747
- }
3748
- try {
3749
- ou(require("@emotion/is-prop-valid").default);
3750
- } catch {
3751
- }
3752
- function au(t, e, n) {
3753
- const s = {};
3754
- for (const i in t)
3755
- i === "values" && typeof t.values == "object" || (fr(i) || n === !0 && qt(i) || !e && !qt(i) || // If trying to use native HTML drag events, forward drag listeners
3756
- t.draggable && i.startsWith("onDrag")) && (s[i] = t[i]);
3757
- return s;
3758
- }
3759
- const te = /* @__PURE__ */ yt({});
3760
- function lu(t, e) {
3761
- if (Qt(t)) {
3762
- const { initial: n, animate: s } = t;
3763
- return {
3764
- initial: n === !1 || Rt(n) ? n : void 0,
3765
- animate: Rt(s) ? s : void 0
3766
- };
3767
- }
3768
- return t.inherit !== !1 ? e : {};
3769
- }
3770
- function uu(t) {
3771
- const { initial: e, animate: n } = lu(t, O(te));
3772
- return Zt(() => ({ initial: e, animate: n }), [As(e), As(n)]);
3773
- }
3774
- function As(t) {
3775
- return Array.isArray(t) ? t.join(" ") : t;
3776
- }
3777
- const yn = () => ({
3778
- style: {},
3779
- transform: {},
3780
- transformOrigin: {},
3781
- vars: {}
3782
- });
3783
- function dr(t, e, n) {
3784
- for (const s in e)
3785
- !k(e[s]) && !Hi(s, n) && (t[s] = e[s]);
3786
- }
3787
- function cu({ transformTemplate: t }, e) {
3788
- return Zt(() => {
3789
- const n = yn();
3790
- return pn(n, e, t), Object.assign({}, n.vars, n.style);
3791
- }, [e]);
3792
- }
3793
- function hu(t, e) {
3794
- const n = t.style || {}, s = {};
3795
- return dr(s, n, t), Object.assign(s, cu(t, e)), s;
3796
- }
3797
- function fu(t, e) {
3798
- const n = {}, s = hu(t, e);
3799
- return t.drag && t.dragListener !== !1 && (n.draggable = !1, s.userSelect = s.WebkitUserSelect = s.WebkitTouchCallout = "none", s.touchAction = t.drag === !0 ? "none" : `pan-${t.drag === "x" ? "y" : "x"}`), t.tabIndex === void 0 && (t.onTap || t.onTapStart || t.whileTap) && (n.tabIndex = 0), n.style = s, n;
3800
- }
3801
- const mr = () => ({
3802
- ...yn(),
3803
- attrs: {}
3804
- });
3805
- function du(t, e, n, s) {
3806
- const i = Zt(() => {
3807
- const o = mr();
3808
- return zi(o, e, Xi(s), t.transformTemplate, t.style), {
3809
- ...o.attrs,
3810
- style: { ...o.style }
3811
- };
3812
- }, [e]);
3813
- if (t.style) {
3814
- const o = {};
3815
- dr(o, t.style, t), i.style = { ...o, ...i.style };
3816
- }
3817
- return i;
3818
- }
3819
- const mu = [
3820
- "animate",
3821
- "circle",
3822
- "defs",
3823
- "desc",
3824
- "ellipse",
3825
- "g",
3826
- "image",
3827
- "line",
3828
- "filter",
3829
- "marker",
3830
- "mask",
3831
- "metadata",
3832
- "path",
3833
- "pattern",
3834
- "polygon",
3835
- "polyline",
3836
- "rect",
3837
- "stop",
3838
- "switch",
3839
- "symbol",
3840
- "svg",
3841
- "text",
3842
- "tspan",
3843
- "use",
3844
- "view"
3845
- ];
3846
- function vn(t) {
3847
- return (
3848
- /**
3849
- * If it's not a string, it's a custom React component. Currently we only support
3850
- * HTML custom React components.
3851
- */
3852
- typeof t != "string" || /**
3853
- * If it contains a dash, the element is a custom HTML webcomponent.
3854
- */
3855
- t.includes("-") ? !1 : (
3856
- /**
3857
- * If it's in our list of lowercase SVG tags, it's an SVG component
3858
- */
3859
- !!(mu.indexOf(t) > -1 || /**
3860
- * If it contains a capital letter, it's an SVG component
3861
- */
3862
- /[A-Z]/u.test(t))
3863
- )
3864
- );
3865
- }
3866
- function pu(t, e, n, { latestValues: s }, i, o = !1, r) {
3867
- const l = (r ?? vn(t) ? du : fu)(e, s, i, t), c = au(e, typeof t == "string", o), u = t !== js ? { ...c, ...l, ref: n } : {}, { children: h } = e, f = Zt(() => k(h) ? h.get() : h, [h]);
3868
- return Ar(t, {
3869
- ...u,
3870
- children: f
3871
- });
3872
- }
3873
- function gu({ scrapeMotionValuesFromProps: t, createRenderState: e }, n, s, i) {
3874
- return {
3875
- latestValues: yu(n, s, i, t),
3876
- renderState: e()
3877
- };
3878
- }
3879
- function yu(t, e, n, s) {
3880
- const i = {}, o = s(t, {});
3881
- for (const f in o)
3882
- i[f] = Kt(o[f]);
3883
- let { initial: r, animate: a } = t;
3884
- const l = Qt(t), c = ji(t);
3885
- e && c && !l && t.inherit !== !1 && (r === void 0 && (r = e.initial), a === void 0 && (a = e.animate));
3886
- let u = n ? n.initial === !1 : !1;
3887
- u = u || r === !1;
3888
- const h = u ? a : r;
3889
- if (h && typeof h != "boolean" && !Jt(h)) {
3890
- const f = Array.isArray(h) ? h : [h];
3891
- for (let d = 0; d < f.length; d++) {
3892
- const m = ln(t, f[d]);
3893
- if (m) {
3894
- const { transitionEnd: v, transition: T, ...g } = m;
3895
- for (const x in g) {
3896
- let y = g[x];
3897
- if (Array.isArray(y)) {
3898
- const w = u ? y.length - 1 : 0;
3899
- y = y[w];
3900
- }
3901
- y !== null && (i[x] = y);
3902
- }
3903
- for (const x in v)
3904
- i[x] = v[x];
3905
- }
3906
- }
3907
- }
3908
- return i;
3909
- }
3910
- const pr = (t) => (e, n) => {
3911
- const s = O(te), i = O(Ke), o = () => gu(t, e, s, i);
3912
- return n ? o() : Cr(o);
3913
- }, vu = /* @__PURE__ */ pr({
3914
- scrapeMotionValuesFromProps: gn,
3915
- createRenderState: yn
3916
- }), Tu = /* @__PURE__ */ pr({
3917
- scrapeMotionValuesFromProps: qi,
3918
- createRenderState: mr
3919
- }), xu = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
3920
- function Pu(t, e, n) {
3921
- const s = mt(n);
3922
- Ns(() => {
3923
- s.current = n;
3924
- });
3925
- const i = mt(null);
3926
- return Os((o) => {
3927
- o && t.onMount?.(o), e && (o ? e.mount(o) : e.unmount());
3928
- const r = s.current;
3929
- if (typeof r == "function")
3930
- if (o) {
3931
- const a = r(o);
3932
- typeof a == "function" && (i.current = a);
3933
- } else i.current ? (i.current(), i.current = null) : r(o);
3934
- else r && (r.current = o);
3935
- }, [e]);
3936
- }
3937
- const gr = yt({});
3938
- function bt(t) {
3939
- return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
3940
- }
3941
- function Su(t, e, n, s, i, o) {
3942
- const { visualElement: r } = O(te), a = O(cr), l = O(Ke), c = O(ur).reducedMotion, u = mt(null);
3943
- s = s || a.renderer, !u.current && s && (u.current = s(t, {
3944
- visualState: e,
3945
- parent: r,
3946
- props: n,
3947
- presenceContext: l,
3948
- blockInitialAnimation: l ? l.initial === !1 : !1,
3949
- reducedMotionConfig: c,
3950
- isSVG: o
3951
- }));
3952
- const h = u.current, f = O(gr);
3953
- h && !h.projection && i && (h.type === "html" || h.type === "svg") && wu(u.current, n, i, f);
3954
- const d = mt(!1);
3955
- Ns(() => {
3956
- h && d.current && h.update(n, l);
3957
- });
3958
- const m = n[bi], v = mt(!!m && !window.MotionHandoffIsComplete?.(m) && window.MotionHasOptimisedAnimation?.(m));
3959
- return Er(() => {
3960
- h && (d.current = !0, window.MotionIsMounted = !0, h.updateFeatures(), h.scheduleRenderMicrotask(), v.current && h.animationState && h.animationState.animateChanges());
3961
- }), We(() => {
3962
- h && (!v.current && h.animationState && h.animationState.animateChanges(), v.current && (queueMicrotask(() => {
3963
- window.MotionHandoffMarkAsComplete?.(m);
3964
- }), v.current = !1), h.enteringChildren = void 0);
3965
- }), h;
3966
- }
3967
- function wu(t, e, n, s) {
3968
- const { layoutId: i, layout: o, drag: r, dragConstraints: a, layoutScroll: l, layoutRoot: c, layoutCrossfade: u } = e;
3969
- t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : yr(t.parent)), t.projection.setOptions({
3970
- layoutId: i,
3971
- layout: o,
3972
- alwaysMeasureLayout: !!r || a && bt(a),
3973
- visualElement: t,
3974
- /**
3975
- * TODO: Update options in an effect. This could be tricky as it'll be too late
3976
- * to update by the time layout animations run.
3977
- * We also need to fix this safeToRemove by linking it up to the one returned by usePresence,
3978
- * ensuring it gets called if there's no potential layout animations.
3979
- *
3980
- */
3981
- animationType: typeof o == "string" ? o : "both",
3982
- initialPromotionConfig: s,
3983
- crossfade: u,
3984
- layoutScroll: l,
3985
- layoutRoot: c
3986
- });
3987
- }
3988
- function yr(t) {
3989
- if (t)
3990
- return t.options.allowProjection !== !1 ? t.projection : yr(t.parent);
3991
- }
3992
- function fe(t, { forwardMotionProps: e = !1, type: n } = {}, s, i) {
3993
- s && iu(s);
3994
- const o = n ? n === "svg" : vn(t), r = o ? Tu : vu;
3995
- function a(c, u) {
3996
- let h;
3997
- const f = {
3998
- ...O(ur),
3999
- ...c,
4000
- layoutId: bu(c)
4001
- }, { isStatic: d } = f, m = uu(c), v = r(c, d);
4002
- if (!d && Ws) {
4003
- Vu(f, s);
4004
- const T = Au(f);
4005
- h = T.MeasureLayout, m.visualElement = Su(t, v, f, i, T.ProjectionNode, o);
4006
- }
4007
- return ye.jsxs(te.Provider, { value: m, children: [h && m.visualElement ? ye.jsx(h, { visualElement: m.visualElement, ...f }) : null, pu(t, c, Pu(v, m.visualElement, u), v, d, e, o)] });
4008
- }
4009
- a.displayName = `motion.${typeof t == "string" ? t : `create(${t.displayName ?? t.name ?? ""})`}`;
4010
- const l = Dr(a);
4011
- return l[xu] = t, l;
4012
- }
4013
- function bu({ layoutId: t }) {
4014
- const e = O(Us).id;
4015
- return e && t !== void 0 ? e + "-" + t : t;
4016
- }
4017
- function Vu(t, e) {
4018
- const n = O(cr).strict;
4019
- if (process.env.NODE_ENV !== "production" && e && n) {
4020
- const s = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
4021
- t.ignoreStrict ? vt(!1, s, "lazy-strict-mode") : Y(!1, s, "lazy-strict-mode");
4022
- }
4023
- }
4024
- function Au(t) {
4025
- const e = hr(), { drag: n, layout: s } = e;
4026
- if (!n && !s)
4027
- return {};
4028
- const i = { ...n, ...s };
4029
- return {
4030
- MeasureLayout: n?.isEnabled(t) || s?.isEnabled(t) ? i.MeasureLayout : void 0,
4031
- ProjectionNode: i.ProjectionNode
4032
- };
4033
- }
4034
- function Du(t, e) {
4035
- if (typeof Proxy > "u")
4036
- return fe;
4037
- const n = /* @__PURE__ */ new Map(), s = (o, r) => fe(o, r, t, e), i = (o, r) => (process.env.NODE_ENV !== "production" && ze(!1, "motion() is deprecated. Use motion.create() instead."), s(o, r));
4038
- return new Proxy(i, {
4039
- /**
4040
- * Called when `motion` is referenced with a prop: `motion.div`, `motion.input` etc.
4041
- * The prop name is passed through as `key` and we can use that to generate a `motion`
4042
- * DOM component with that name.
4043
- */
4044
- get: (o, r) => r === "create" ? s : (n.has(r) || n.set(r, fe(r, void 0, t, e)), n.get(r))
4045
- });
4046
- }
4047
- const Mu = (t, e) => e.isSVG ?? vn(t) ? new hl(e) : new rl(e, {
4048
- allowProjection: t !== js
4049
- });
4050
- class Cu extends tt {
4051
- /**
4052
- * We dynamically generate the AnimationState manager as it contains a reference
4053
- * to the underlying animation library. We only want to load that if we load this,
4054
- * so people can optionally code split it out using the `m` component.
4055
- */
4056
- constructor(e) {
4057
- super(e), e.animationState || (e.animationState = gl(e));
4058
- }
4059
- updateAnimationControlsSubscription() {
4060
- const { animate: e } = this.node.getProps();
4061
- Jt(e) && (this.unmountControls = e.subscribe(this.node));
4062
- }
4063
- /**
4064
- * Subscribe any provided AnimationControls to the component's VisualElement
4065
- */
4066
- mount() {
4067
- this.updateAnimationControlsSubscription();
4068
- }
4069
- update() {
4070
- const { animate: e } = this.node.getProps(), { animate: n } = this.node.prevProps || {};
4071
- e !== n && this.updateAnimationControlsSubscription();
4072
- }
4073
- unmount() {
4074
- this.node.animationState.reset(), this.unmountControls?.();
4075
- }
4076
- }
4077
- let Eu = 0;
4078
- class Ru extends tt {
4079
- constructor() {
4080
- super(...arguments), this.id = Eu++;
4081
- }
4082
- update() {
4083
- if (!this.node.presenceContext)
4084
- return;
4085
- const { isPresent: e, onExitComplete: n } = this.node.presenceContext, { isPresent: s } = this.node.prevPresenceContext || {};
4086
- if (!this.node.animationState || e === s)
4087
- return;
4088
- const i = this.node.animationState.setActive("exit", !e);
4089
- n && !e && i.then(() => {
4090
- n(this.id);
4091
- });
4092
- }
4093
- mount() {
4094
- const { register: e, onExitComplete: n } = this.node.presenceContext || {};
4095
- n && n(this.id), e && (this.unmount = e(this.id));
4096
- }
4097
- unmount() {
4098
- }
4099
- }
4100
- const Lu = {
4101
- animation: {
4102
- Feature: Cu
4103
- },
4104
- exit: {
4105
- Feature: Ru
4106
- }
4107
- };
4108
- function It(t) {
4109
- return {
4110
- point: {
4111
- x: t.pageX,
4112
- y: t.pageY
4113
- }
4114
- };
4115
- }
4116
- const ku = (t) => (e) => fn(e) && t(e, It(e));
4117
- function Dt(t, e, n, s) {
4118
- return Lt(t, e, ku(n), s);
4119
- }
4120
- const vr = ({ current: t }) => t ? t.ownerDocument.defaultView : null, Ds = (t, e) => Math.abs(t - e);
4121
- function Fu(t, e) {
4122
- const n = Ds(t.x, e.x), s = Ds(t.y, e.y);
4123
- return Math.sqrt(n ** 2 + s ** 2);
4124
- }
4125
- const Ms = /* @__PURE__ */ new Set(["auto", "scroll"]);
4126
- class Tr {
4127
- constructor(e, n, { transformPagePoint: s, contextWindow: i = window, dragSnapToOrigin: o = !1, distanceThreshold: r = 3, element: a } = {}) {
4128
- if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.scrollPositions = /* @__PURE__ */ new Map(), this.removeScrollListeners = null, this.onElementScroll = (d) => {
4129
- this.handleScroll(d.target);
4130
- }, this.onWindowScroll = () => {
4131
- this.handleScroll(window);
4132
- }, this.updatePoint = () => {
4133
- if (!(this.lastMoveEvent && this.lastMoveEventInfo))
4134
- return;
4135
- const d = me(this.lastMoveEventInfo, this.history), m = this.startEvent !== null, v = Fu(d.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
4136
- if (!m && !v)
4137
- return;
4138
- const { point: T } = d, { timestamp: g } = L;
4139
- this.history.push({ ...T, timestamp: g });
4140
- const { onStart: x, onMove: y } = this.handlers;
4141
- m || (x && x(this.lastMoveEvent, d), this.startEvent = this.lastMoveEvent), y && y(this.lastMoveEvent, d);
4142
- }, this.handlePointerMove = (d, m) => {
4143
- this.lastMoveEvent = d, this.lastMoveEventInfo = de(m, this.transformPagePoint), V.update(this.updatePoint, !0);
4144
- }, this.handlePointerUp = (d, m) => {
4145
- this.end();
4146
- const { onEnd: v, onSessionEnd: T, resumeAnimation: g } = this.handlers;
4147
- if ((this.dragSnapToOrigin || !this.startEvent) && g && g(), !(this.lastMoveEvent && this.lastMoveEventInfo))
4148
- return;
4149
- const x = me(d.type === "pointercancel" ? this.lastMoveEventInfo : de(m, this.transformPagePoint), this.history);
4150
- this.startEvent && v && v(d, x), T && T(d, x);
4151
- }, !fn(e))
4152
- return;
4153
- this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = s, this.distanceThreshold = r, this.contextWindow = i || window;
4154
- const l = It(e), c = de(l, this.transformPagePoint), { point: u } = c, { timestamp: h } = L;
4155
- this.history = [{ ...u, timestamp: h }];
4156
- const { onSessionStart: f } = n;
4157
- f && f(e, me(c, this.history)), this.removeListeners = kt(Dt(this.contextWindow, "pointermove", this.handlePointerMove), Dt(this.contextWindow, "pointerup", this.handlePointerUp), Dt(this.contextWindow, "pointercancel", this.handlePointerUp)), a && this.startScrollTracking(a);
4158
- }
4159
- /**
4160
- * Start tracking scroll on ancestors and window.
4161
- */
4162
- startScrollTracking(e) {
4163
- let n = e.parentElement;
4164
- for (; n; ) {
4165
- const s = getComputedStyle(n);
4166
- (Ms.has(s.overflowX) || Ms.has(s.overflowY)) && this.scrollPositions.set(n, {
4167
- x: n.scrollLeft,
4168
- y: n.scrollTop
4169
- }), n = n.parentElement;
4170
- }
4171
- this.scrollPositions.set(window, {
4172
- x: window.scrollX,
4173
- y: window.scrollY
4174
- }), window.addEventListener("scroll", this.onElementScroll, {
4175
- capture: !0,
4176
- passive: !0
4177
- }), window.addEventListener("scroll", this.onWindowScroll, {
4178
- passive: !0
4179
- }), this.removeScrollListeners = () => {
4180
- window.removeEventListener("scroll", this.onElementScroll, {
4181
- capture: !0
4182
- }), window.removeEventListener("scroll", this.onWindowScroll);
4183
- };
4184
- }
4185
- /**
4186
- * Handle scroll compensation during drag.
4187
- *
4188
- * For element scroll: adjusts history origin since pageX/pageY doesn't change.
4189
- * For window scroll: adjusts lastMoveEventInfo since pageX/pageY would change.
4190
- */
4191
- handleScroll(e) {
4192
- const n = this.scrollPositions.get(e);
4193
- if (!n)
4194
- return;
4195
- const s = e === window, i = s ? { x: window.scrollX, y: window.scrollY } : {
4196
- x: e.scrollLeft,
4197
- y: e.scrollTop
4198
- }, o = { x: i.x - n.x, y: i.y - n.y };
4199
- o.x === 0 && o.y === 0 || (s ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += o.x, this.lastMoveEventInfo.point.y += o.y) : this.history.length > 0 && (this.history[0].x -= o.x, this.history[0].y -= o.y), this.scrollPositions.set(e, i), V.update(this.updatePoint, !0));
4200
- }
4201
- updateHandlers(e) {
4202
- this.handlers = e;
4203
- }
4204
- end() {
4205
- this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), J(this.updatePoint);
4206
- }
4207
- }
4208
- function de(t, e) {
4209
- return e ? { point: e(t.point) } : t;
4210
- }
4211
- function Cs(t, e) {
4212
- return { x: t.x - e.x, y: t.y - e.y };
4213
- }
4214
- function me({ point: t }, e) {
4215
- return {
4216
- point: t,
4217
- delta: Cs(t, xr(e)),
4218
- offset: Cs(t, Bu(e)),
4219
- velocity: Iu(e, 0.1)
4220
- };
4221
- }
4222
- function Bu(t) {
4223
- return t[0];
4224
- }
4225
- function xr(t) {
4226
- return t[t.length - 1];
4227
- }
4228
- function Iu(t, e) {
4229
- if (t.length < 2)
4230
- return { x: 0, y: 0 };
4231
- let n = t.length - 1, s = null;
4232
- const i = xr(t);
4233
- for (; n >= 0 && (s = t[n], !(i.timestamp - s.timestamp > /* @__PURE__ */ _(e))); )
4234
- n--;
4235
- if (!s)
4236
- return { x: 0, y: 0 };
4237
- const o = /* @__PURE__ */ W(i.timestamp - s.timestamp);
4238
- if (o === 0)
4239
- return { x: 0, y: 0 };
4240
- const r = {
4241
- x: (i.x - s.x) / o,
4242
- y: (i.y - s.y) / o
4243
- };
4244
- return r.x === 1 / 0 && (r.x = 0), r.y === 1 / 0 && (r.y = 0), r;
4245
- }
4246
- function Ou(t, { min: e, max: n }, s) {
4247
- return e !== void 0 && t < e ? t = s ? D(e, t, s.min) : Math.max(t, e) : n !== void 0 && t > n && (t = s ? D(n, t, s.max) : Math.min(t, n)), t;
4248
- }
4249
- function Es(t, e, n) {
4250
- return {
4251
- min: e !== void 0 ? t.min + e : void 0,
4252
- max: n !== void 0 ? t.max + n - (t.max - t.min) : void 0
4253
- };
4254
- }
4255
- function ju(t, { top: e, left: n, bottom: s, right: i }) {
4256
- return {
4257
- x: Es(t.x, n, i),
4258
- y: Es(t.y, e, s)
4259
- };
4260
- }
4261
- function Rs(t, e) {
4262
- let n = e.min - t.min, s = e.max - t.max;
4263
- return e.max - e.min < t.max - t.min && ([n, s] = [s, n]), { min: n, max: s };
4264
- }
4265
- function Nu(t, e) {
4266
- return {
4267
- x: Rs(t.x, e.x),
4268
- y: Rs(t.y, e.y)
4269
- };
4270
- }
4271
- function Uu(t, e) {
4272
- let n = 0.5;
4273
- const s = B(t), i = B(e);
4274
- return i > s ? n = /* @__PURE__ */ Mt(e.min, e.max - s, t.min) : s > i && (n = /* @__PURE__ */ Mt(t.min, t.max - i, e.min)), z(0, 1, n);
4275
- }
4276
- function Wu(t, e) {
4277
- const n = {};
4278
- return e.min !== void 0 && (n.min = e.min - t.min), e.max !== void 0 && (n.max = e.max - t.min), n;
4279
- }
4280
- const Ne = 0.35;
4281
- function Ku(t = Ne) {
4282
- return t === !1 ? t = 0 : t === !0 && (t = Ne), {
4283
- x: Ls(t, "left", "right"),
4284
- y: Ls(t, "top", "bottom")
4285
- };
4286
- }
4287
- function Ls(t, e, n) {
4288
- return {
4289
- min: ks(t, e),
4290
- max: ks(t, n)
4291
- };
4292
- }
4293
- function ks(t, e) {
4294
- return typeof t == "number" ? t : t[e] || 0;
4295
- }
4296
- const $u = /* @__PURE__ */ new WeakMap();
4297
- class Gu {
4298
- constructor(e) {
4299
- this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = E(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;
4300
- }
4301
- start(e, { snapToCursor: n = !1, distanceThreshold: s } = {}) {
4302
- const { presenceContext: i } = this.visualElement;
4303
- if (i && i.isPresent === !1)
4304
- return;
4305
- const o = (h) => {
4306
- n ? (this.stopAnimation(), this.snapToCursor(It(h).point)) : this.pauseAnimation();
4307
- }, r = (h, f) => {
4308
- this.stopAnimation();
4309
- const { drag: d, dragPropagation: m, onDragStart: v } = this.getProps();
4310
- if (d && !m && (this.openDragLock && this.openDragLock(), this.openDragLock = Ia(d), !this.openDragLock))
4311
- return;
4312
- this.latestPointerEvent = h, this.latestPanInfo = f, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), U((g) => {
4313
- let x = this.getAxisMotionValue(g).get() || 0;
4314
- if (H.test(x)) {
4315
- const { projection: y } = this.visualElement;
4316
- if (y && y.layout) {
4317
- const w = y.layout.layoutBox[g];
4318
- w && (x = B(w) * (parseFloat(x) / 100));
4319
- }
4320
- }
4321
- this.originPoint[g] = x;
4322
- }), v && V.postRender(() => v(h, f)), Le(this.visualElement, "transform");
4323
- const { animationState: T } = this.visualElement;
4324
- T && T.setActive("whileDrag", !0);
4325
- }, a = (h, f) => {
4326
- this.latestPointerEvent = h, this.latestPanInfo = f;
4327
- const { dragPropagation: d, dragDirectionLock: m, onDirectionLock: v, onDrag: T } = this.getProps();
4328
- if (!d && !this.openDragLock)
4329
- return;
4330
- const { offset: g } = f;
4331
- if (m && this.currentDirection === null) {
4332
- this.currentDirection = _u(g), this.currentDirection !== null && v && v(this.currentDirection);
4333
- return;
4334
- }
4335
- this.updateAxis("x", f.point, g), this.updateAxis("y", f.point, g), this.visualElement.render(), T && T(h, f);
4336
- }, l = (h, f) => {
4337
- this.latestPointerEvent = h, this.latestPanInfo = f, this.stop(h, f), this.latestPointerEvent = null, this.latestPanInfo = null;
4338
- }, c = () => U((h) => this.getAnimationState(h) === "paused" && this.getAxisMotionValue(h).animation?.play()), { dragSnapToOrigin: u } = this.getProps();
4339
- this.panSession = new Tr(e, {
4340
- onSessionStart: o,
4341
- onStart: r,
4342
- onMove: a,
4343
- onSessionEnd: l,
4344
- resumeAnimation: c
4345
- }, {
4346
- transformPagePoint: this.visualElement.getTransformPagePoint(),
4347
- dragSnapToOrigin: u,
4348
- distanceThreshold: s,
4349
- contextWindow: vr(this.visualElement),
4350
- element: this.visualElement.current
4351
- });
4352
- }
4353
- /**
4354
- * @internal
4355
- */
4356
- stop(e, n) {
4357
- const s = e || this.latestPointerEvent, i = n || this.latestPanInfo, o = this.isDragging;
4358
- if (this.cancel(), !o || !i || !s)
4359
- return;
4360
- const { velocity: r } = i;
4361
- this.startAnimation(r);
4362
- const { onDragEnd: a } = this.getProps();
4363
- a && V.postRender(() => a(s, i));
4364
- }
4365
- /**
4366
- * @internal
4367
- */
4368
- cancel() {
4369
- this.isDragging = !1;
4370
- const { projection: e, animationState: n } = this.visualElement;
4371
- e && (e.isAnimationBlocked = !1), this.panSession && this.panSession.end(), this.panSession = void 0;
4372
- const { dragPropagation: s } = this.getProps();
4373
- !s && this.openDragLock && (this.openDragLock(), this.openDragLock = null), n && n.setActive("whileDrag", !1);
4374
- }
4375
- updateAxis(e, n, s) {
4376
- const { drag: i } = this.getProps();
4377
- if (!s || !Nt(e, i, this.currentDirection))
4378
- return;
4379
- const o = this.getAxisMotionValue(e);
4380
- let r = this.originPoint[e] + s[e];
4381
- this.constraints && this.constraints[e] && (r = Ou(r, this.constraints[e], this.elastic[e])), o.set(r);
4382
- }
4383
- resolveConstraints() {
4384
- const { dragConstraints: e, dragElastic: n } = this.getProps(), s = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, i = this.constraints;
4385
- e && bt(e) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : e && s ? this.constraints = ju(s.layoutBox, e) : this.constraints = !1, this.elastic = Ku(n), i !== this.constraints && s && this.constraints && !this.hasMutatedConstraints && U((o) => {
4386
- this.constraints !== !1 && this.getAxisMotionValue(o) && (this.constraints[o] = Wu(s.layoutBox[o], this.constraints[o]));
4387
- });
4388
- }
4389
- resolveRefConstraints() {
4390
- const { dragConstraints: e, onMeasureDragConstraints: n } = this.getProps();
4391
- if (!e || !bt(e))
4392
- return !1;
4393
- const s = e.current;
4394
- Y(s !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.", "drag-constraints-ref");
4395
- const { projection: i } = this.visualElement;
4396
- if (!i || !i.layout)
4397
- return !1;
4398
- const o = Qa(s, i.root, this.visualElement.getTransformPagePoint());
4399
- let r = Nu(i.layout.layoutBox, o);
4400
- if (n) {
4401
- const a = n(qa(r));
4402
- this.hasMutatedConstraints = !!a, a && (r = Wi(a));
4403
- }
4404
- return r;
4405
- }
4406
- startAnimation(e) {
4407
- const { drag: n, dragMomentum: s, dragElastic: i, dragTransition: o, dragSnapToOrigin: r, onDragTransitionEnd: a } = this.getProps(), l = this.constraints || {}, c = U((u) => {
4408
- if (!Nt(u, n, this.currentDirection))
4409
- return;
4410
- let h = l && l[u] || {};
4411
- r && (h = { min: 0, max: 0 });
4412
- const f = i ? 200 : 1e6, d = i ? 40 : 1e7, m = {
4413
- type: "inertia",
4414
- velocity: s ? e[u] : 0,
4415
- bounceStiffness: f,
4416
- bounceDamping: d,
4417
- timeConstant: 750,
4418
- restDelta: 1,
4419
- restSpeed: 10,
4420
- ...o,
4421
- ...h
4422
- };
4423
- return this.startAxisValueAnimation(u, m);
4424
- });
4425
- return Promise.all(c).then(a);
4426
- }
4427
- startAxisValueAnimation(e, n) {
4428
- const s = this.getAxisMotionValue(e);
4429
- return Le(this.visualElement, e), s.start(an(e, s, 0, n, this.visualElement, !1));
4430
- }
4431
- stopAnimation() {
4432
- U((e) => this.getAxisMotionValue(e).stop());
4433
- }
4434
- pauseAnimation() {
4435
- U((e) => this.getAxisMotionValue(e).animation?.pause());
4436
- }
4437
- getAnimationState(e) {
4438
- return this.getAxisMotionValue(e).animation?.state;
4439
- }
4440
- /**
4441
- * Drag works differently depending on which props are provided.
4442
- *
4443
- * - If _dragX and _dragY are provided, we output the gesture delta directly to those motion values.
4444
- * - Otherwise, we apply the delta to the x/y motion values.
4445
- */
4446
- getAxisMotionValue(e) {
4447
- const n = `_drag${e.toUpperCase()}`, s = this.visualElement.getProps(), i = s[n];
4448
- return i || this.visualElement.getValue(e, (s.initial ? s.initial[e] : void 0) || 0);
4449
- }
4450
- snapToCursor(e) {
4451
- U((n) => {
4452
- const { drag: s } = this.getProps();
4453
- if (!Nt(n, s, this.currentDirection))
4454
- return;
4455
- const { projection: i } = this.visualElement, o = this.getAxisMotionValue(n);
4456
- if (i && i.layout) {
4457
- const { min: r, max: a } = i.layout.layoutBox[n], l = o.get() || 0;
4458
- o.set(e[n] - D(r, a, 0.5) + l);
4459
- }
4460
- });
4461
- }
4462
- /**
4463
- * When the viewport resizes we want to check if the measured constraints
4464
- * have changed and, if so, reposition the element within those new constraints
4465
- * relative to where it was before the resize.
4466
- */
4467
- scalePositionWithinConstraints() {
4468
- if (!this.visualElement.current)
4469
- return;
4470
- const { drag: e, dragConstraints: n } = this.getProps(), { projection: s } = this.visualElement;
4471
- if (!bt(n) || !s || !this.constraints)
4472
- return;
4473
- this.stopAnimation();
4474
- const i = { x: 0, y: 0 };
4475
- U((r) => {
4476
- const a = this.getAxisMotionValue(r);
4477
- if (a && this.constraints !== !1) {
4478
- const l = a.get();
4479
- i[r] = Uu({ min: l, max: l }, this.constraints[r]);
4480
- }
4481
- });
4482
- const { transformTemplate: o } = this.visualElement.getProps();
4483
- this.visualElement.current.style.transform = o ? o({}, "") : "none", s.root && s.root.updateScroll(), s.updateLayout(), this.resolveConstraints(), U((r) => {
4484
- if (!Nt(r, e, null))
4485
- return;
4486
- const a = this.getAxisMotionValue(r), { min: l, max: c } = this.constraints[r];
4487
- a.set(D(l, c, i[r]));
4488
- });
4489
- }
4490
- addListeners() {
4491
- if (!this.visualElement.current)
4492
- return;
4493
- $u.set(this.visualElement, this);
4494
- const e = this.visualElement.current, n = Dt(e, "pointerdown", (l) => {
4495
- const { drag: c, dragListener: u = !0 } = this.getProps();
4496
- c && u && !Bi(l.target) && this.start(l);
4497
- }), s = () => {
4498
- const { dragConstraints: l } = this.getProps();
4499
- bt(l) && l.current && (this.constraints = this.resolveRefConstraints());
4500
- }, { projection: i } = this.visualElement, o = i.addEventListener("measure", s);
4501
- i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), V.read(s);
4502
- const r = Lt(window, "resize", () => this.scalePositionWithinConstraints()), a = i.addEventListener("didUpdate", (({ delta: l, hasLayoutChanged: c }) => {
4503
- this.isDragging && c && (U((u) => {
4504
- const h = this.getAxisMotionValue(u);
4505
- h && (this.originPoint[u] += l[u].translate, h.set(h.get() + l[u].translate));
4506
- }), this.visualElement.render());
4507
- }));
4508
- return () => {
4509
- r(), n(), o(), a && a();
4510
- };
4511
- }
4512
- getProps() {
4513
- const e = this.visualElement.getProps(), { drag: n = !1, dragDirectionLock: s = !1, dragPropagation: i = !1, dragConstraints: o = !1, dragElastic: r = Ne, dragMomentum: a = !0 } = e;
4514
- return {
4515
- ...e,
4516
- drag: n,
4517
- dragDirectionLock: s,
4518
- dragPropagation: i,
4519
- dragConstraints: o,
4520
- dragElastic: r,
4521
- dragMomentum: a
4522
- };
4523
- }
4524
- }
4525
- function Nt(t, e, n) {
4526
- return (e === !0 || e === t) && (n === null || n === t);
4527
- }
4528
- function _u(t, e = 10) {
4529
- let n = null;
4530
- return Math.abs(t.y) > e ? n = "y" : Math.abs(t.x) > e && (n = "x"), n;
4531
- }
4532
- class Hu extends tt {
4533
- constructor(e) {
4534
- super(e), this.removeGroupControls = K, this.removeListeners = K, this.controls = new Gu(e);
4535
- }
4536
- mount() {
4537
- const { dragControls: e } = this.node.getProps();
4538
- e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || K;
4539
- }
4540
- update() {
4541
- const { dragControls: e } = this.node.getProps(), { dragControls: n } = this.node.prevProps || {};
4542
- e !== n && (this.removeGroupControls(), e && (this.removeGroupControls = e.subscribe(this.controls)));
4543
- }
4544
- unmount() {
4545
- this.removeGroupControls(), this.removeListeners();
4546
- }
4547
- }
4548
- const Fs = (t) => (e, n) => {
4549
- t && V.postRender(() => t(e, n));
4550
- };
4551
- class zu extends tt {
4552
- constructor() {
4553
- super(...arguments), this.removePointerDownListener = K;
4554
- }
4555
- onPointerDown(e) {
4556
- this.session = new Tr(e, this.createPanHandlers(), {
4557
- transformPagePoint: this.node.getTransformPagePoint(),
4558
- contextWindow: vr(this.node)
4559
- });
4560
- }
4561
- createPanHandlers() {
4562
- const { onPanSessionStart: e, onPanStart: n, onPan: s, onPanEnd: i } = this.node.getProps();
4563
- return {
4564
- onSessionStart: Fs(e),
4565
- onStart: Fs(n),
4566
- onMove: s,
4567
- onEnd: (o, r) => {
4568
- delete this.session, i && V.postRender(() => i(o, r));
4569
- }
4570
- };
4571
- }
4572
- mount() {
4573
- this.removePointerDownListener = Dt(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
4574
- }
4575
- update() {
4576
- this.session && this.session.updateHandlers(this.createPanHandlers());
4577
- }
4578
- unmount() {
4579
- this.removePointerDownListener(), this.session && this.session.end();
4580
- }
4581
- }
4582
- let pe = !1;
4583
- class Yu extends Mr {
4584
- /**
4585
- * This only mounts projection nodes for components that
4586
- * need measuring, we might want to do it for all components
4587
- * in order to incorporate transforms
4588
- */
4589
- componentDidMount() {
4590
- const { visualElement: e, layoutGroup: n, switchLayoutGroup: s, layoutId: i } = this.props, { projection: o } = e;
4591
- o && (n.group && n.group.add(o), s && s.register && i && s.register(o), pe && o.root.didUpdate(), o.addEventListener("animationComplete", () => {
4592
- this.safeToRemove();
4593
- }), o.setOptions({
4594
- ...o.options,
4595
- onExitComplete: () => this.safeToRemove()
4596
- })), $t.hasEverUpdated = !0;
4597
- }
4598
- getSnapshotBeforeUpdate(e) {
4599
- const { layoutDependency: n, visualElement: s, drag: i, isPresent: o } = this.props, { projection: r } = s;
4600
- return r && (r.isPresent = o, pe = !0, i || e.layoutDependency !== n || n === void 0 || e.isPresent !== o ? r.willUpdate() : this.safeToRemove(), e.isPresent !== o && (o ? r.promote() : r.relegate() || V.postRender(() => {
4601
- const a = r.getStack();
4602
- (!a || !a.members.length) && this.safeToRemove();
4603
- }))), null;
4604
- }
4605
- componentDidUpdate() {
4606
- const { projection: e } = this.props.visualElement;
4607
- e && (e.root.didUpdate(), hn.postRender(() => {
4608
- !e.currentAnimation && e.isLead() && this.safeToRemove();
4609
- }));
4610
- }
4611
- componentWillUnmount() {
4612
- const { visualElement: e, layoutGroup: n, switchLayoutGroup: s } = this.props, { projection: i } = e;
4613
- pe = !0, i && (i.scheduleCheckAfterUnmount(), n && n.group && n.group.remove(i), s && s.deregister && s.deregister(i));
4614
- }
4615
- safeToRemove() {
4616
- const { safeToRemove: e } = this.props;
4617
- e && e();
4618
- }
4619
- render() {
4620
- return null;
4621
- }
4622
- }
4623
- function Pr(t) {
4624
- const [e, n] = nu(), s = O(Us);
4625
- return ye.jsx(Yu, { ...t, layoutGroup: s, switchLayoutGroup: O(gr), isPresent: e, safeToRemove: n });
4626
- }
4627
- const Xu = {
4628
- pan: {
4629
- Feature: zu
4630
- },
4631
- drag: {
4632
- Feature: Hu,
4633
- ProjectionNode: lr,
4634
- MeasureLayout: Pr
4635
- }
4636
- };
4637
- function Bs(t, e, n) {
4638
- const { props: s } = t;
4639
- t.animationState && s.whileHover && t.animationState.setActive("whileHover", n === "Start");
4640
- const i = "onHover" + n, o = s[i];
4641
- o && V.postRender(() => o(e, It(e)));
4642
- }
4643
- class qu extends tt {
4644
- mount() {
4645
- const { current: e } = this.node;
4646
- e && (this.unmount = Oa(e, (n, s) => (Bs(this.node, s, "Start"), (i) => Bs(this.node, i, "End"))));
4647
- }
4648
- unmount() {
4649
- }
4650
- }
4651
- class Zu extends tt {
4652
- constructor() {
4653
- super(...arguments), this.isActive = !1;
4654
- }
4655
- onFocus() {
4656
- let e = !1;
4657
- try {
4658
- e = this.node.current.matches(":focus-visible");
4659
- } catch {
4660
- e = !0;
4661
- }
4662
- !e || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !0), this.isActive = !0);
4663
- }
4664
- onBlur() {
4665
- !this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
4666
- }
4667
- mount() {
4668
- this.unmount = kt(Lt(this.node.current, "focus", () => this.onFocus()), Lt(this.node.current, "blur", () => this.onBlur()));
4669
- }
4670
- unmount() {
4671
- }
4672
- }
4673
- function Is(t, e, n) {
4674
- const { props: s } = t;
4675
- if (t.current instanceof HTMLButtonElement && t.current.disabled)
4676
- return;
4677
- t.animationState && s.whileTap && t.animationState.setActive("whileTap", n === "Start");
4678
- const i = "onTap" + (n === "End" ? "" : n), o = s[i];
4679
- o && V.postRender(() => o(e, It(e)));
4680
- }
4681
- class Ju extends tt {
4682
- mount() {
4683
- const { current: e } = this.node;
4684
- e && (this.unmount = Ua(e, (n, s) => (Is(this.node, s, "Start"), (i, { success: o }) => Is(this.node, i, o ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
4685
- }
4686
- unmount() {
4687
- }
4688
- }
4689
- const Ue = /* @__PURE__ */ new WeakMap(), ge = /* @__PURE__ */ new WeakMap(), Qu = (t) => {
4690
- const e = Ue.get(t.target);
4691
- e && e(t);
4692
- }, tc = (t) => {
4693
- t.forEach(Qu);
4694
- };
4695
- function ec({ root: t, ...e }) {
4696
- const n = t || document;
4697
- ge.has(n) || ge.set(n, {});
4698
- const s = ge.get(n), i = JSON.stringify(e);
4699
- return s[i] || (s[i] = new IntersectionObserver(tc, { root: t, ...e })), s[i];
4700
- }
4701
- function nc(t, e, n) {
4702
- const s = ec(e);
4703
- return Ue.set(t, n), s.observe(t), () => {
4704
- Ue.delete(t), s.unobserve(t);
4705
- };
4706
- }
4707
- const sc = {
4708
- some: 0,
4709
- all: 1
4710
- };
4711
- class ic extends tt {
4712
- constructor() {
4713
- super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
4714
- }
4715
- startObserver() {
4716
- this.unmount();
4717
- const { viewport: e = {} } = this.node.getProps(), { root: n, margin: s, amount: i = "some", once: o } = e, r = {
4718
- root: n ? n.current : void 0,
4719
- rootMargin: s,
4720
- threshold: typeof i == "number" ? i : sc[i]
4721
- }, a = (l) => {
4722
- const { isIntersecting: c } = l;
4723
- if (this.isInView === c || (this.isInView = c, o && !c && this.hasEnteredView))
4724
- return;
4725
- c && (this.hasEnteredView = !0), this.node.animationState && this.node.animationState.setActive("whileInView", c);
4726
- const { onViewportEnter: u, onViewportLeave: h } = this.node.getProps(), f = c ? u : h;
4727
- f && f(l);
4728
- };
4729
- return nc(this.node.current, r, a);
4730
- }
4731
- mount() {
4732
- this.startObserver();
4733
- }
4734
- update() {
4735
- if (typeof IntersectionObserver > "u")
4736
- return;
4737
- const { props: e, prevProps: n } = this.node;
4738
- ["amount", "margin", "root"].some(rc(e, n)) && this.startObserver();
4739
- }
4740
- unmount() {
4741
- }
4742
- }
4743
- function rc({ viewport: t = {} }, { viewport: e = {} } = {}) {
4744
- return (n) => t[n] !== e[n];
4745
- }
4746
- const oc = {
4747
- inView: {
4748
- Feature: ic
4749
- },
4750
- tap: {
4751
- Feature: Ju
4752
- },
4753
- focus: {
4754
- Feature: Zu
4755
- },
4756
- hover: {
4757
- Feature: qu
4758
- }
4759
- }, ac = {
4760
- layout: {
4761
- ProjectionNode: lr,
4762
- MeasureLayout: Pr
4763
- }
4764
- }, lc = {
4765
- ...Lu,
4766
- ...oc,
4767
- ...Xu,
4768
- ...ac
4769
- }, dc = /* @__PURE__ */ Du(lc, Mu);
4770
- export {
4771
- Us as L,
4772
- ur as M,
4773
- Ke as P,
4774
- nu as a,
4775
- Er as b,
4776
- Ba as i,
4777
- dc as m,
4778
- Fa as r,
4779
- Cr as u
4780
- };
4781
- //# sourceMappingURL=proxy-BsxtcZKa.js.map