@undp/data-viz 2.4.1 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (262) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.d.ts +11 -9
  4. package/dist/AreaChart.js +320 -322
  5. package/dist/AreaChart.js.map +1 -1
  6. package/dist/BarGraph.cjs +1 -1
  7. package/dist/BarGraph.cjs.map +1 -1
  8. package/dist/BarGraph.d.ts +15 -25
  9. package/dist/BarGraph.js +1694 -1694
  10. package/dist/BarGraph.js.map +1 -1
  11. package/dist/BasicStatCard.cjs +1 -1
  12. package/dist/BasicStatCard.cjs.map +1 -1
  13. package/dist/BasicStatCard.d.ts +13 -9
  14. package/dist/BasicStatCard.js +79 -81
  15. package/dist/BasicStatCard.js.map +1 -1
  16. package/dist/BeeSwarmChart.cjs +1 -1
  17. package/dist/BeeSwarmChart.cjs.map +1 -1
  18. package/dist/BeeSwarmChart.d.ts +11 -9
  19. package/dist/BeeSwarmChart.js +335 -336
  20. package/dist/BeeSwarmChart.js.map +1 -1
  21. package/dist/BiVariateChoroplethMap.cjs +1 -1
  22. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  23. package/dist/BiVariateChoroplethMap.d.ts +13 -3
  24. package/dist/BiVariateChoroplethMap.js +247 -245
  25. package/dist/BiVariateChoroplethMap.js.map +1 -1
  26. package/dist/BulletChart.cjs +1 -1
  27. package/dist/BulletChart.cjs.map +1 -1
  28. package/dist/BulletChart.d.ts +11 -5
  29. package/dist/BulletChart.js +560 -559
  30. package/dist/BulletChart.js.map +1 -1
  31. package/dist/ButterflyChart.cjs +1 -1
  32. package/dist/ButterflyChart.cjs.map +1 -1
  33. package/dist/ButterflyChart.d.ts +11 -9
  34. package/dist/ButterflyChart.js +348 -350
  35. package/dist/ButterflyChart.js.map +1 -1
  36. package/dist/ChoroplethMap.cjs +1 -1
  37. package/dist/ChoroplethMap.cjs.map +1 -1
  38. package/dist/ChoroplethMap.d.ts +11 -3
  39. package/dist/ChoroplethMap.js +213 -213
  40. package/dist/ChoroplethMap.js.map +1 -1
  41. package/dist/CirclePackingGraph.cjs +1 -1
  42. package/dist/CirclePackingGraph.d.ts +11 -9
  43. package/dist/CirclePackingGraph.js +1 -1
  44. package/dist/DataCards.cjs +1 -1
  45. package/dist/DataCards.d.ts +1 -1
  46. package/dist/DataCards.js +1 -1
  47. package/dist/DataTable.cjs +1 -1
  48. package/dist/DataTable.cjs.map +1 -1
  49. package/dist/DataTable.d.ts +4 -5
  50. package/dist/DataTable.js +114 -116
  51. package/dist/DataTable.js.map +1 -1
  52. package/dist/{DetailsModal-jmmKRMRM.cjs → DetailsModal-Du8Fr1QD.cjs} +2 -2
  53. package/dist/{DetailsModal-jmmKRMRM.cjs.map → DetailsModal-Du8Fr1QD.cjs.map} +1 -1
  54. package/dist/{DetailsModal-B2XBWR7w.js → DetailsModal-GqEbGHY2.js} +2 -2
  55. package/dist/{DetailsModal-B2XBWR7w.js.map → DetailsModal-GqEbGHY2.js.map} +1 -1
  56. package/dist/DifferenceLineChart.cjs +1 -1
  57. package/dist/DifferenceLineChart.cjs.map +1 -1
  58. package/dist/DifferenceLineChart.d.ts +11 -9
  59. package/dist/DifferenceLineChart.js +502 -504
  60. package/dist/DifferenceLineChart.js.map +1 -1
  61. package/dist/DonutChart.cjs +1 -1
  62. package/dist/DonutChart.cjs.map +1 -1
  63. package/dist/DonutChart.d.ts +14 -9
  64. package/dist/DonutChart.js +174 -179
  65. package/dist/DonutChart.js.map +1 -1
  66. package/dist/DotDensityMap.cjs +1 -1
  67. package/dist/DotDensityMap.d.ts +1 -1
  68. package/dist/DotDensityMap.js +2 -2
  69. package/dist/DualAxisLineChart.cjs +1 -1
  70. package/dist/DualAxisLineChart.cjs.map +1 -1
  71. package/dist/DualAxisLineChart.d.ts +13 -9
  72. package/dist/DualAxisLineChart.js +341 -351
  73. package/dist/DualAxisLineChart.js.map +1 -1
  74. package/dist/DumbbellChart.cjs +1 -1
  75. package/dist/DumbbellChart.cjs.map +1 -1
  76. package/dist/DumbbellChart.d.ts +11 -9
  77. package/dist/DumbbellChart.js +592 -593
  78. package/dist/DumbbellChart.js.map +1 -1
  79. package/dist/GeoHubCompareMaps.cjs +1 -1
  80. package/dist/GeoHubCompareMaps.d.ts +1 -1
  81. package/dist/GeoHubCompareMaps.js +1 -1
  82. package/dist/GeoHubMap.cjs +1 -1
  83. package/dist/GeoHubMap.d.ts +1 -1
  84. package/dist/GeoHubMap.js +1 -1
  85. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  86. package/dist/GeoHubMapWithLayerSelection.d.ts +1 -1
  87. package/dist/GeoHubMapWithLayerSelection.js +1 -1
  88. package/dist/GraphEl-B7x5ku_y.cjs +2 -0
  89. package/dist/GraphEl-B7x5ku_y.cjs.map +1 -0
  90. package/dist/GraphEl-B8tGXqWk.js +1829 -0
  91. package/dist/GraphEl-B8tGXqWk.js.map +1 -0
  92. package/dist/GriddedGraphs.cjs +1 -1
  93. package/dist/GriddedGraphs.d.ts +28 -16
  94. package/dist/GriddedGraphs.js +1 -1
  95. package/dist/GriddedGraphsFromConfig.d.ts +28 -16
  96. package/dist/HeatMap.cjs +1 -1
  97. package/dist/HeatMap.cjs.map +1 -1
  98. package/dist/HeatMap.d.ts +11 -9
  99. package/dist/HeatMap.js +203 -205
  100. package/dist/HeatMap.js.map +1 -1
  101. package/dist/Histogram.cjs +1 -1
  102. package/dist/Histogram.cjs.map +1 -1
  103. package/dist/Histogram.d.ts +11 -5
  104. package/dist/Histogram.js +88 -89
  105. package/dist/Histogram.js.map +1 -1
  106. package/dist/HybridMap.cjs +1 -1
  107. package/dist/HybridMap.cjs.map +1 -1
  108. package/dist/HybridMap.d.ts +11 -3
  109. package/dist/HybridMap.js +279 -279
  110. package/dist/HybridMap.js.map +1 -1
  111. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  112. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  113. package/dist/LineChartWithConfidenceInterval.d.ts +11 -9
  114. package/dist/LineChartWithConfidenceInterval.js +393 -395
  115. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  116. package/dist/LinearColorLegend.cjs +1 -1
  117. package/dist/LinearColorLegend.js +1 -1
  118. package/dist/MultiGraphDashboard.d.ts +28 -16
  119. package/dist/MultiGraphDashboardFromConfig.d.ts +28 -16
  120. package/dist/MultiGraphDashboardWideToLongFormat.d.ts +1 -1
  121. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +1 -1
  122. package/dist/MultiLineAltChart.cjs +1 -1
  123. package/dist/MultiLineAltChart.cjs.map +1 -1
  124. package/dist/MultiLineAltChart.d.ts +11 -9
  125. package/dist/MultiLineAltChart.js +411 -413
  126. package/dist/MultiLineAltChart.js.map +1 -1
  127. package/dist/MultiLineChart.cjs +1 -1
  128. package/dist/MultiLineChart.cjs.map +1 -1
  129. package/dist/MultiLineChart.d.ts +11 -9
  130. package/dist/MultiLineChart.js +438 -440
  131. package/dist/MultiLineChart.js.map +1 -1
  132. package/dist/ParetoChart.cjs +1 -1
  133. package/dist/ParetoChart.cjs.map +1 -1
  134. package/dist/ParetoChart.d.ts +13 -13
  135. package/dist/ParetoChart.js +347 -355
  136. package/dist/ParetoChart.js.map +1 -1
  137. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +28 -16
  138. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +28 -16
  139. package/dist/PerformanceIntensiveScrollStory.d.ts +28 -16
  140. package/dist/RadarChart.cjs +1 -1
  141. package/dist/RadarChart.cjs.map +1 -1
  142. package/dist/RadarChart.d.ts +11 -5
  143. package/dist/RadarChart.js +213 -213
  144. package/dist/RadarChart.js.map +1 -1
  145. package/dist/SankeyChart.cjs +1 -1
  146. package/dist/SankeyChart.cjs.map +1 -1
  147. package/dist/SankeyChart.d.ts +11 -9
  148. package/dist/SankeyChart.js +448 -450
  149. package/dist/SankeyChart.js.map +1 -1
  150. package/dist/ScatterPlot.cjs +1 -1
  151. package/dist/ScatterPlot.cjs.map +1 -1
  152. package/dist/ScatterPlot.d.ts +13 -13
  153. package/dist/ScatterPlot.js +490 -498
  154. package/dist/ScatterPlot.js.map +1 -1
  155. package/dist/ScrollStory.d.ts +28 -16
  156. package/dist/SimpleLineChart.cjs +1 -1
  157. package/dist/SimpleLineChart.cjs.map +1 -1
  158. package/dist/SimpleLineChart.d.ts +11 -9
  159. package/dist/SimpleLineChart.js +362 -364
  160. package/dist/SimpleLineChart.js.map +1 -1
  161. package/dist/SingleGraphDashboard.cjs +1 -1
  162. package/dist/SingleGraphDashboard.d.ts +28 -16
  163. package/dist/SingleGraphDashboard.js +1 -1
  164. package/dist/SingleGraphDashboardFromConfig.d.ts +28 -16
  165. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +28 -16
  166. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +28 -16
  167. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  168. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  169. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +28 -16
  170. package/dist/SingleGraphDashboardThreeDGraphs.js +40 -39
  171. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  172. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +28 -16
  173. package/dist/SlopeChart.cjs +1 -1
  174. package/dist/SlopeChart.d.ts +1 -1
  175. package/dist/SlopeChart.js +2 -2
  176. package/dist/SparkLine.cjs +1 -1
  177. package/dist/SparkLine.d.ts +1 -1
  178. package/dist/SparkLine.js +1 -1
  179. package/dist/StatCardFromData.cjs +1 -1
  180. package/dist/StatCardFromData.cjs.map +1 -1
  181. package/dist/StatCardFromData.d.ts +11 -9
  182. package/dist/StatCardFromData.js +113 -116
  183. package/dist/StatCardFromData.js.map +1 -1
  184. package/dist/StripChart.cjs +1 -1
  185. package/dist/StripChart.cjs.map +1 -1
  186. package/dist/StripChart.d.ts +11 -9
  187. package/dist/StripChart.js +434 -435
  188. package/dist/StripChart.js.map +1 -1
  189. package/dist/ThreeDGlobe.cjs +1 -1
  190. package/dist/ThreeDGlobe.cjs.map +1 -1
  191. package/dist/ThreeDGlobe.d.ts +11 -3
  192. package/dist/ThreeDGlobe.js +143 -143
  193. package/dist/ThreeDGlobe.js.map +1 -1
  194. package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
  195. package/dist/ThresholdColorLegendWithMouseOver.js +1 -1
  196. package/dist/{Tooltip-Bj-s__cI.js → Tooltip-3EYDVa3w.js} +2 -2
  197. package/dist/{Tooltip-Bj-s__cI.js.map → Tooltip-3EYDVa3w.js.map} +1 -1
  198. package/dist/{Tooltip-Hr46paWP.cjs → Tooltip-C9F3uYG0.cjs} +2 -2
  199. package/dist/{Tooltip-Hr46paWP.cjs.map → Tooltip-C9F3uYG0.cjs.map} +1 -1
  200. package/dist/TreeMapGraph.cjs +1 -1
  201. package/dist/TreeMapGraph.cjs.map +1 -1
  202. package/dist/TreeMapGraph.d.ts +11 -9
  203. package/dist/TreeMapGraph.js +369 -371
  204. package/dist/TreeMapGraph.js.map +1 -1
  205. package/dist/Types.d.ts +28 -16
  206. package/dist/UnitChart.cjs +1 -1
  207. package/dist/UnitChart.cjs.map +1 -1
  208. package/dist/UnitChart.d.ts +11 -5
  209. package/dist/UnitChart.js +118 -119
  210. package/dist/UnitChart.js.map +1 -1
  211. package/dist/WaterfallChart.cjs +1 -1
  212. package/dist/WaterfallChart.cjs.map +1 -1
  213. package/dist/WaterfallChart.d.ts +11 -9
  214. package/dist/WaterfallChart.js +306 -308
  215. package/dist/WaterfallChart.js.map +1 -1
  216. package/dist/XTicksAndGridLines-B4UhDVyU.cjs +2 -0
  217. package/dist/XTicksAndGridLines-B4UhDVyU.cjs.map +1 -0
  218. package/dist/XTicksAndGridLines-CkYwVshF.js +40 -0
  219. package/dist/XTicksAndGridLines-CkYwVshF.js.map +1 -0
  220. package/dist/YTicksAndGridLines-BbujwxOB.js +40 -0
  221. package/dist/YTicksAndGridLines-BbujwxOB.js.map +1 -0
  222. package/dist/YTicksAndGridLines-sT3zdCs6.cjs +2 -0
  223. package/dist/YTicksAndGridLines-sT3zdCs6.cjs.map +1 -0
  224. package/dist/index-BPyj_6hG.js +375 -0
  225. package/dist/index-BPyj_6hG.js.map +1 -0
  226. package/dist/index-DuLvdHo2.cjs +2 -0
  227. package/dist/index-DuLvdHo2.cjs.map +1 -0
  228. package/dist/index.cjs +1 -1
  229. package/dist/index.d.ts +105 -245
  230. package/dist/index.js +2 -2
  231. package/dist/numberFormattingFunction-BUUV_luR.js +28 -0
  232. package/dist/numberFormattingFunction-BUUV_luR.js.map +1 -0
  233. package/dist/numberFormattingFunction-u2iNHL_c.cjs +2 -0
  234. package/dist/numberFormattingFunction-u2iNHL_c.cjs.map +1 -0
  235. package/dist/{string2HTML-ZoGd08P_.cjs → string2HTML-30nfIm8R.cjs} +2 -2
  236. package/dist/{string2HTML-ZoGd08P_.cjs.map → string2HTML-30nfIm8R.cjs.map} +1 -1
  237. package/dist/{string2HTML-BrFperRM.js → string2HTML-DL-pInUB.js} +2 -2
  238. package/dist/{string2HTML-BrFperRM.js.map → string2HTML-DL-pInUB.js.map} +1 -1
  239. package/dist/utils.cjs +1 -1
  240. package/dist/utils.d.ts +1 -1
  241. package/dist/utils.js +1 -1
  242. package/package.json +2 -2
  243. package/dist/GraphEl-B73N4RIA.js +0 -1906
  244. package/dist/GraphEl-B73N4RIA.js.map +0 -1
  245. package/dist/GraphEl-Lt1og0C-.cjs +0 -2
  246. package/dist/GraphEl-Lt1og0C-.cjs.map +0 -1
  247. package/dist/XTicksAndGridLines-C5DuC5oY.cjs +0 -2
  248. package/dist/XTicksAndGridLines-C5DuC5oY.cjs.map +0 -1
  249. package/dist/XTicksAndGridLines-gdbGX2rm.js +0 -39
  250. package/dist/XTicksAndGridLines-gdbGX2rm.js.map +0 -1
  251. package/dist/YTicksAndGridLines-CsNSq9W9.js +0 -39
  252. package/dist/YTicksAndGridLines-CsNSq9W9.js.map +0 -1
  253. package/dist/YTicksAndGridLines-DFjm8RCc.cjs +0 -2
  254. package/dist/YTicksAndGridLines-DFjm8RCc.cjs.map +0 -1
  255. package/dist/index-B0Awa_de.js +0 -377
  256. package/dist/index-B0Awa_de.js.map +0 -1
  257. package/dist/index-CP8cmNzt.cjs +0 -2
  258. package/dist/index-CP8cmNzt.cjs.map +0 -1
  259. package/dist/numberFormattingFunction-Cn9R7CM9.cjs +0 -2
  260. package/dist/numberFormattingFunction-Cn9R7CM9.cjs.map +0 -1
  261. package/dist/numberFormattingFunction-DqMf_v1m.js +0 -28
  262. package/dist/numberFormattingFunction-DqMf_v1m.js.map +0 -1
@@ -1,710 +1,702 @@
1
- import { c as mi, j as l, m as oi } from "./index-CHPV5EwG-BzibaIRc.js";
2
- import { f as pi, p as gi } from "./parse-Dv4of-PN.js";
3
- import { useRef as ii, useState as Et, useEffect as si } from "react";
4
- import { g as hi, N as yi } from "./getSliderMarks-X-_goqH9.js";
5
- import { i as ni } from "./index-Bwrro8-q.js";
6
- import { o as vi } from "./index-BZQYSqar.js";
7
- import { l as bi, a as Ai } from "./simple-statistics-flVzqVtt.js";
8
- import { T as Oi } from "./Tooltip-Bj-s__cI.js";
9
- import { c as A } from "./checkIfNullOrUndefined-DmfiKkNw.js";
10
- import { Colors as it } from "./Colors.js";
11
- import { n as li } from "./numberFormattingFunction-DqMf_v1m.js";
12
- import { g as Ci, A as wi, C as Li } from "./customArea-D89lETG0.js";
13
- import { A as ri } from "./Axis-CNZYWzH0.js";
14
- import { A as ai } from "./AxisTitle-CyLCqpW6.js";
15
- import { X as ji } from "./XTicksAndGridLines-gdbGX2rm.js";
16
- import { R as Vi, a as $i } from "./ReferenceLine-D41VuUhE.js";
17
- import { R as ki } from "./RegressionLine-CuwB42I6.js";
18
- import { Y as Di } from "./YTicksAndGridLines-CsNSq9W9.js";
19
- import { a as Si } from "./index-DHVGV8Df.js";
20
- import { D as Mi } from "./DetailsModal-B2XBWR7w.js";
21
- import { s as Ni } from "./pow-BXYLJHCq.js";
22
- import { a as ci } from "./linear-DNXM5Pdl.js";
23
- import { D as Ti } from "./delaunay-C1uAf38t.js";
24
- import { m as ze } from "./proxy-BsxtcZKa.js";
25
- import { u as Pi } from "./use-in-view-KOXq5Kmc.js";
26
- import { A as fi } from "./index-Cv_5q6Rb.js";
27
- import { GraphFooter as Xi } from "./GraphFooter.js";
28
- import { GraphHeader as Yi } from "./GraphHeader.js";
29
- import { ColorLegendWithMouseOver as Ii } from "./ColorLegendWithMouseOver.js";
30
- import { E as Ri } from "./EmptyState-CaxXCkiN.js";
31
- import { P as Fi, e as Hi } from "./index-ApTBN0kp.js";
32
- import { a as Wi } from "./ensureCompleteData-CDIukSG6.js";
33
- import { u as ui } from "./uniqBy-BHy4I8PK.js";
34
- import { a as Ei, G as Gi } from "./GraphContainer-B8ZqOzKI.js";
35
- function qi(i) {
36
- const t = mi.c(222), {
1
+ import { c as yi, j as l, m as ci } from "./index-CHPV5EwG-BzibaIRc.js";
2
+ import { f as Ai, p as Oi } from "./parse-Dv4of-PN.js";
3
+ import { useRef as ai, useState as Rt, useEffect as fi } from "react";
4
+ import { g as Ci, N as wi } from "./getSliderMarks-X-_goqH9.js";
5
+ import { i as ui } from "./index-Bwrro8-q.js";
6
+ import { o as Li } from "./index-BZQYSqar.js";
7
+ import { l as ji, a as Vi } from "./simple-statistics-flVzqVtt.js";
8
+ import { T as Di } from "./Tooltip-3EYDVa3w.js";
9
+ import { c as C } from "./checkIfNullOrUndefined-DmfiKkNw.js";
10
+ import { Colors as st } from "./Colors.js";
11
+ import { n as mi } from "./numberFormattingFunction-BUUV_luR.js";
12
+ import { g as $i, A as ki, C as Mi } from "./customArea-D89lETG0.js";
13
+ import { A as xi } from "./Axis-CNZYWzH0.js";
14
+ import { A as pi } from "./AxisTitle-CyLCqpW6.js";
15
+ import { X as Ni } from "./XTicksAndGridLines-CkYwVshF.js";
16
+ import { R as Si, a as Ti } from "./ReferenceLine-D41VuUhE.js";
17
+ import { R as Xi } from "./RegressionLine-CuwB42I6.js";
18
+ import { Y as Yi } from "./YTicksAndGridLines-BbujwxOB.js";
19
+ import { a as Pi } from "./index-DHVGV8Df.js";
20
+ import { D as Ii } from "./DetailsModal-GqEbGHY2.js";
21
+ import { s as Ri } from "./pow-BXYLJHCq.js";
22
+ import { a as di } from "./linear-DNXM5Pdl.js";
23
+ import { D as Fi } from "./delaunay-C1uAf38t.js";
24
+ import { m as Fe } from "./proxy-BsxtcZKa.js";
25
+ import { u as Hi } from "./use-in-view-KOXq5Kmc.js";
26
+ import { A as gi } from "./index-Cv_5q6Rb.js";
27
+ import { GraphFooter as Wi } from "./GraphFooter.js";
28
+ import { GraphHeader as Ei } from "./GraphHeader.js";
29
+ import { ColorLegendWithMouseOver as Gi } from "./ColorLegendWithMouseOver.js";
30
+ import { E as Zi } from "./EmptyState-CaxXCkiN.js";
31
+ import { P as qi, e as Bi } from "./index-ApTBN0kp.js";
32
+ import { a as zi } from "./ensureCompleteData-CDIukSG6.js";
33
+ import { u as hi } from "./uniqBy-BHy4I8PK.js";
34
+ import { a as Ui, G as Ji } from "./GraphContainer-B8ZqOzKI.js";
35
+ function Ki(i) {
36
+ const t = yi.c(228), {
37
37
  data: o,
38
- width: ot,
39
- height: V,
40
- showLabels: Gt,
41
- colors: m,
42
- colorDomain: L,
43
- radius: F,
44
- xAxisTitle: y,
45
- yAxisTitle: B,
46
- leftMargin: H,
47
- rightMargin: me,
48
- topMargin: $e,
49
- bottomMargin: He,
50
- tooltip: xe,
51
- onSeriesMouseOver: st,
52
- refXValues: ke,
53
- refYValues: De,
54
- highlightAreaSettings: Se,
55
- selectedColor: Vt,
56
- highlightedDataPoints: z,
57
- maxRadiusValue: de,
58
- maxXValue: pe,
59
- minXValue: j,
60
- maxYValue: qt,
61
- minYValue: O,
62
- onSeriesMouseClick: D,
63
- rtl: Bt,
64
- annotations: ge,
65
- customHighlightAreaSettings: zt,
66
- regressionLine: $t,
67
- resetSelectionOnDoubleClick: kt,
68
- detailsOnClick: S,
69
- noOfXTicks: Ut,
70
- noOfYTicks: Jt,
71
- labelColor: U,
72
- xSuffix: Dt,
73
- ySuffix: St,
74
- xPrefix: Mt,
75
- yPrefix: Nt,
38
+ width: nt,
39
+ height: D,
40
+ showLabels: Ft,
41
+ colors: u,
42
+ colorDomain: j,
43
+ radius: P,
44
+ xAxisTitle: b,
45
+ yAxisTitle: W,
46
+ leftMargin: I,
47
+ rightMargin: se,
48
+ topMargin: ve,
49
+ bottomMargin: Xe,
50
+ tooltip: ne,
51
+ onSeriesMouseOver: lt,
52
+ refXValues: be,
53
+ refYValues: Ae,
54
+ highlightAreaSettings: Oe,
55
+ selectedColor: kt,
56
+ highlightedDataPoints: E,
57
+ maxRadiusValue: le,
58
+ maxXValue: re,
59
+ minXValue: V,
60
+ maxYValue: Ht,
61
+ minYValue: w,
62
+ onSeriesMouseClick: M,
63
+ rtl: Wt,
64
+ annotations: ae,
65
+ customHighlightAreaSettings: Et,
66
+ regressionLine: Mt,
67
+ resetSelectionOnDoubleClick: Nt,
68
+ detailsOnClick: N,
69
+ noOfXTicks: Gt,
70
+ noOfYTicks: Zt,
71
+ labelColor: G,
76
72
  styles: s,
77
73
  classNames: n,
78
- animate: f,
79
- dimmedOpacity: M,
80
- precision: N,
81
- showHighlightedDataPointsLabels: Me,
82
- customLayers: T,
83
- showVoronoiTesselation: Kt,
84
- useVoronoiInteraction: Ne,
85
- locale: P
86
- } = i, Te = ii(null);
87
- let he;
88
- t[0] !== f.amount || t[1] !== f.once ? (he = {
89
- once: f.once,
90
- amount: f.amount
91
- }, t[0] = f.amount, t[1] = f.once, t[2] = he) : he = t[2];
92
- const v = Pi(Te, he), [X, Tt] = Et(void 0), [W, d] = Et(void 0), [x, Pt] = Et(void 0), [ye, Xt] = Et(void 0), Qt = y ? He + 50 : He, Zt = B ? H + 30 : H;
93
- let ve;
94
- t[3] !== me || t[4] !== Qt || t[5] !== Zt || t[6] !== $e ? (ve = {
95
- top: $e,
96
- bottom: Qt,
97
- left: Zt,
98
- right: me
99
- }, t[3] = me, t[4] = Qt, t[5] = Zt, t[6] = $e, t[7] = ve) : ve = t[7];
100
- const g = ve;
101
- let Yt, nt, lt, rt, at, ct, E, ft, ut, mt, J, xt, K, dt, Q, pt, G, gt;
102
- if (t[8] !== f || t[9] !== ge || t[10] !== n?.graphObjectValues || t[11] !== n?.regLine || t[12] !== n?.xAxis?.axis || t[13] !== n?.xAxis?.gridLines || t[14] !== n?.xAxis?.labels || t[15] !== n?.xAxis?.title || t[16] !== n?.yAxis?.gridLines || t[17] !== n?.yAxis?.labels || t[18] !== n?.yAxis?.title || t[19] !== L || t[20] !== m || t[21] !== zt || t[22] !== T || t[23] !== o || t[24] !== S || t[25] !== M || t[26] !== V || t[27] !== Se || t[28] !== z || t[29] !== v || t[30] !== U || t[31] !== H || t[32] !== P || t[33] !== g.bottom || t[34] !== g.left || t[35] !== g.right || t[36] !== g.top || t[37] !== de || t[38] !== pe || t[39] !== qt || t[40] !== j || t[41] !== O || t[42] !== W || t[43] !== X || t[44] !== Ut || t[45] !== Jt || t[46] !== D || t[47] !== st || t[48] !== N || t[49] !== F || t[50] !== ke || t[51] !== De || t[52] !== $t || t[53] !== kt || t[54] !== Bt || t[55] !== Vt || t[56] !== Me || t[57] !== Gt || t[58] !== Kt || t[59] !== s?.graphObjectValues || t[60] !== s?.regLine || t[61] !== s?.xAxis?.axis || t[62] !== s?.xAxis?.gridLines || t[63] !== s?.xAxis?.labels || t[64] !== s?.xAxis?.title || t[65] !== s?.yAxis?.gridLines || t[66] !== s?.yAxis?.labels || t[67] !== s?.yAxis?.title || t[68] !== Ne || t[69] !== ot || t[70] !== y || t[71] !== Mt || t[72] !== Dt || t[73] !== B || t[74] !== Nt || t[75] !== St) {
103
- const be = o.map(xo), b = ot - g.left - g.right, h = V - g.top - g.bottom, $ = o.filter(mo).length !== o.length ? Ni().domain([0, de]).range([0.25, F]).nice() : void 0, It = be.filter(uo).length === 0 ? be.filter(fo) : vi(be.filter(co), "radius", "desc"), u = ci().domain([j, pe]).range([0, b]).nice(), r = ci().domain([O, qt]).range([h, 0]).nice(), Pe = u.ticks(Ut), Xe = r.ticks(Jt), We = Ti.from(It, (e) => u(e.x), (e) => r(e.y)).voronoi([0, 0, b < 0 ? 0 : b, h < 0 ? 0 : h]), Ee = bi(o.filter(ao).map((e) => [u(e.x), r(e.y)])), Ae = Ai(Ee);
104
- nt = ze.svg, ft = `${ot}px`, ut = `${V}px`, mt = `0 0 ${ot} ${V}`, J = "ltr", xt = Te, lt = `translate(${g.left},${g.top})`;
105
- let _t;
106
- t[94] !== f || t[95] !== zt || t[96] !== v || t[97] !== u || t[98] !== r ? (_t = /* @__PURE__ */ l.jsx(Li, { areaSettings: zt, scaleX: u, scaleY: r, animate: f, isInView: v }, "custom-area"), t[94] = f, t[95] = zt, t[96] = v, t[97] = u, t[98] = r, t[99] = _t) : _t = t[99], rt = /* @__PURE__ */ l.jsxs(fi, { children: [
107
- /* @__PURE__ */ l.jsx(Si, { areaSettings: Se, width: b, height: h, scaleX: u, scaleY: r, animate: f, isInView: v }, "highlight-area"),
108
- _t
74
+ animate: a,
75
+ dimmedOpacity: S,
76
+ showHighlightedDataPointsLabels: Ce,
77
+ customLayers: Z,
78
+ showVoronoiTesselation: qt,
79
+ useVoronoiInteraction: Bt,
80
+ xNumberDisplayOptions: p,
81
+ yNumberDisplayOptions: d
82
+ } = i, we = ai(null);
83
+ let ce;
84
+ t[0] !== a.amount || t[1] !== a.once ? (ce = {
85
+ once: a.once,
86
+ amount: a.amount
87
+ }, t[0] = a.amount, t[1] = a.once, t[2] = ce) : ce = t[2];
88
+ const A = Hi(we, ce), [T, St] = Rt(void 0), [R, h] = Rt(void 0), [x, Tt] = Rt(void 0), [fe, q] = Rt(void 0), zt = b ? Xe + 50 : Xe, Le = W ? I + 30 : I;
89
+ let ue;
90
+ t[3] !== se || t[4] !== zt || t[5] !== Le || t[6] !== ve ? (ue = {
91
+ top: ve,
92
+ bottom: zt,
93
+ left: Le,
94
+ right: se
95
+ }, t[3] = se, t[4] = zt, t[5] = Le, t[6] = ve, t[7] = ue) : ue = t[7];
96
+ const v = ue;
97
+ let rt, at, ct, ft, ut, mt, F, xt, pt, dt, B, gt, z, ht, U, yt, H, vt;
98
+ if (t[8] !== a || t[9] !== ae || t[10] !== n?.graphObjectValues || t[11] !== n?.regLine || t[12] !== n?.xAxis?.axis || t[13] !== n?.xAxis?.gridLines || t[14] !== n?.xAxis?.labels || t[15] !== n?.xAxis?.title || t[16] !== n?.yAxis?.gridLines || t[17] !== n?.yAxis?.labels || t[18] !== n?.yAxis?.title || t[19] !== j || t[20] !== u || t[21] !== Et || t[22] !== Z || t[23] !== o || t[24] !== N || t[25] !== S || t[26] !== D || t[27] !== Oe || t[28] !== E || t[29] !== A || t[30] !== G || t[31] !== I || t[32] !== v.bottom || t[33] !== v.left || t[34] !== v.right || t[35] !== v.top || t[36] !== le || t[37] !== re || t[38] !== Ht || t[39] !== V || t[40] !== w || t[41] !== R || t[42] !== T || t[43] !== Gt || t[44] !== Zt || t[45] !== M || t[46] !== lt || t[47] !== P || t[48] !== be || t[49] !== Ae || t[50] !== Mt || t[51] !== Nt || t[52] !== Wt || t[53] !== kt || t[54] !== Ce || t[55] !== Ft || t[56] !== qt || t[57] !== s?.graphObjectValues || t[58] !== s?.regLine || t[59] !== s?.xAxis?.axis || t[60] !== s?.xAxis?.gridLines || t[61] !== s?.xAxis?.labels || t[62] !== s?.xAxis?.title || t[63] !== s?.yAxis?.gridLines || t[64] !== s?.yAxis?.labels || t[65] !== s?.yAxis?.title || t[66] !== Bt || t[67] !== nt || t[68] !== b || t[69] !== p?.locale || t[70] !== p?.padZeros || t[71] !== p?.precision || t[72] !== p?.prefix || t[73] !== p?.suffix || t[74] !== W || t[75] !== d?.locale || t[76] !== d?.padZeros || t[77] !== d?.precision || t[78] !== d?.prefix || t[79] !== d?.suffix) {
99
+ const Jt = o.map(bo), O = nt - v.left - v.right, m = D - v.top - v.bottom, k = o.filter(vo).length !== o.length ? Ri().domain([0, le]).range([0.25, P]).nice() : void 0, Kt = Jt.filter(yo).length === 0 ? Jt.filter(ho) : Li(Jt.filter(go), "radius", "desc"), c = di().domain([V, re]).range([0, O]).nice(), g = di().domain([w, Ht]).range([m, 0]).nice(), me = c.ticks(Gt), je = g.ticks(Zt), Ve = Fi.from(Kt, (e) => c(e.x), (e) => g(e.y)).voronoi([0, 0, O < 0 ? 0 : O, m < 0 ? 0 : m]), Ye = ji(o.filter(po).map((e) => [c(e.x), g(e.y)])), xe = Vi(Ye);
100
+ at = Fe.svg, xt = `${nt}px`, pt = `${D}px`, dt = `0 0 ${nt} ${D}`, B = "ltr", gt = we, ct = `translate(${v.left},${v.top})`;
101
+ let r;
102
+ t[98] !== a || t[99] !== Et || t[100] !== A || t[101] !== c || t[102] !== g ? (r = /* @__PURE__ */ l.jsx(Mi, { areaSettings: Et, scaleX: c, scaleY: g, animate: a, isInView: A }, "custom-area"), t[98] = a, t[99] = Et, t[100] = A, t[101] = c, t[102] = g, t[103] = r) : r = t[103], ft = /* @__PURE__ */ l.jsxs(gi, { children: [
103
+ /* @__PURE__ */ l.jsx(Pi, { areaSettings: Oe, width: O, height: m, scaleX: c, scaleY: g, animate: a, isInView: A }, "highlight-area"),
104
+ r
109
105
  ] });
110
- const Oe = s?.yAxis?.gridLines, te = s?.yAxis?.labels;
111
- let ee;
112
- t[100] !== Oe || t[101] !== te ? (ee = {
113
- gridLines: Oe,
114
- labels: te
115
- }, t[100] = Oe, t[101] = te, t[102] = ee) : ee = t[102];
116
- const ie = n?.yAxis?.gridLines, a = n?.yAxis?.labels;
117
- let oe;
118
- t[103] !== ie || t[104] !== a ? (oe = {
119
- gridLines: ie,
120
- labels: a
121
- }, t[103] = ie, t[104] = a, t[105] = oe) : oe = t[105];
122
- const Ce = r(O < 0 ? 0 : O), we = r(O < 0 ? 0 : O), se = b + g.right, Ge = O < 0 ? 0 : O;
123
- let tt;
124
- t[106] !== P || t[107] !== N || t[108] !== Ge || t[109] !== Nt || t[110] !== St ? (tt = li(Ge, void 0, N, Nt, St, P), t[106] = P, t[107] = N, t[108] = Ge, t[109] = Nt, t[110] = St, t[111] = tt) : tt = t[111];
125
- const qe = r(O < 0 ? 0 : O);
126
- let C;
127
- t[112] !== qe ? (C = {
106
+ const pe = s?.yAxis?.gridLines, de = s?.yAxis?.labels;
107
+ let Xt;
108
+ t[104] !== pe || t[105] !== de ? (Xt = {
109
+ gridLines: pe,
110
+ labels: de
111
+ }, t[104] = pe, t[105] = de, t[106] = Xt) : Xt = t[106];
112
+ const Pe = n?.yAxis?.gridLines, Qt = n?.yAxis?.labels;
113
+ let De;
114
+ t[107] !== Pe || t[108] !== Qt ? (De = {
115
+ gridLines: Pe,
116
+ labels: Qt
117
+ }, t[107] = Pe, t[108] = Qt, t[109] = De) : De = t[109];
118
+ const X = g(w < 0 ? 0 : w), Ie = g(w < 0 ? 0 : w), Yt = O + v.right, f = w < 0 ? 0 : w, Y = d?.precision ?? 2, ge = d?.prefix || "", he = d?.suffix || "", Re = d?.locale || "en", ye = d?.padZeros || !1;
119
+ let Pt;
120
+ t[110] !== f || t[111] !== Y || t[112] !== ge || t[113] !== he || t[114] !== Re || t[115] !== ye ? (Pt = mi(f, void 0, Y, ge, he, Re, ye), t[110] = f, t[111] = Y, t[112] = ge, t[113] = he, t[114] = Re, t[115] = ye, t[116] = Pt) : Pt = t[116];
121
+ const _t = g(w < 0 ? 0 : w);
122
+ let _;
123
+ t[117] !== _t ? (_ = {
128
124
  x: 0,
129
- y: qe,
125
+ y: _t,
130
126
  dy: "0.33em",
131
127
  dx: -4
132
- }, t[112] = qe, t[113] = C) : C = t[113];
133
- const Be = n?.xAxis?.axis, Rt = n?.yAxis?.labels;
134
- let c;
135
- t[114] !== Be || t[115] !== Rt ? (c = {
136
- axis: Be,
137
- label: Rt
138
- }, t[114] = Be, t[115] = Rt, t[116] = c) : c = t[116];
139
- const Y = s?.xAxis?.axis;
140
- let At;
141
- t[117] !== s?.yAxis?.labels ? (At = s?.yAxis?.labels || {}, t[117] = s?.yAxis?.labels, t[118] = At) : At = t[118];
128
+ }, t[117] = _t, t[118] = _) : _ = t[118];
129
+ const te = n?.xAxis?.axis, ee = n?.yAxis?.labels;
142
130
  let Ot;
143
- t[119] !== At ? (Ot = {
131
+ t[119] !== te || t[120] !== ee ? (Ot = {
132
+ axis: te,
133
+ label: ee
134
+ }, t[119] = te, t[120] = ee, t[121] = Ot) : Ot = t[121];
135
+ const ie = s?.xAxis?.axis;
136
+ let tt;
137
+ t[122] !== s?.yAxis?.labels ? (tt = s?.yAxis?.labels || {}, t[122] = s?.yAxis?.labels, t[123] = tt) : tt = t[123];
138
+ let Ct;
139
+ t[124] !== tt ? (Ct = {
144
140
  textAnchor: "end",
145
- ...At
146
- }, t[119] = At, t[120] = Ot) : Ot = t[120];
147
- let ne;
148
- t[121] !== Y || t[122] !== Ot ? (ne = {
149
- axis: Y,
150
- label: Ot
151
- }, t[121] = Y, t[122] = Ot, t[123] = ne) : ne = t[123];
152
- let le;
153
- t[124] !== Ce || t[125] !== we || t[126] !== se || t[127] !== tt || t[128] !== C || t[129] !== c || t[130] !== ne ? (le = /* @__PURE__ */ l.jsx(ri, { y1: Ce, y2: we, x1: 0, x2: se, label: tt, labelPos: C, classNames: c, styles: ne }), t[124] = Ce, t[125] = we, t[126] = se, t[127] = tt, t[128] = C, t[129] = c, t[130] = ne, t[131] = le) : le = t[131];
154
- const Ye = 0 - H - 15, re = h / 2, ae = s?.yAxis?.title, ce = n?.yAxis?.title;
155
- let Ft;
156
- t[132] !== Ye || t[133] !== re || t[134] !== ae || t[135] !== ce || t[136] !== B ? (Ft = /* @__PURE__ */ l.jsx(ai, { x: Ye, y: re, style: ae, className: ce, text: B, rotate90: !0 }), t[132] = Ye, t[133] = re, t[134] = ae, t[135] = ce, t[136] = B, t[137] = Ft) : Ft = t[137], at = /* @__PURE__ */ l.jsxs("g", { children: [
157
- /* @__PURE__ */ l.jsx(Di, { values: Xe.filter(ro), y: Xe.filter(lo).map((e) => r(e)), x1: 0, x2: b + g.right, styles: ee, classNames: oe, suffix: St, prefix: Nt, labelType: "secondary", showGridLines: !0, labelPos: "side", precision: N, locale: P }),
158
- le,
159
- Ft
160
- ] });
161
- const Le = s?.xAxis?.gridLines, fe = s?.xAxis?.labels;
162
- let Ht;
163
- t[138] !== Le || t[139] !== fe ? (Ht = {
164
- gridLines: Le,
165
- labels: fe
166
- }, t[138] = Le, t[139] = fe, t[140] = Ht) : Ht = t[140];
167
- const je = n?.xAxis?.gridLines, Ve = n?.xAxis?.labels;
141
+ ...tt
142
+ }, t[124] = tt, t[125] = Ct) : Ct = t[125];
143
+ let wt;
144
+ t[126] !== ie || t[127] !== Ct ? (wt = {
145
+ axis: ie,
146
+ label: Ct
147
+ }, t[126] = ie, t[127] = Ct, t[128] = wt) : wt = t[128];
168
148
  let et;
169
- t[141] !== je || t[142] !== Ve ? (et = {
170
- gridLines: je,
171
- labels: Ve
172
- }, t[141] = je, t[142] = Ve, t[143] = et) : et = t[143];
173
- const Ct = u(j < 0 ? 0 : j), wt = u(j < 0 ? 0 : j), Lt = j < 0 ? 0 : j;
174
- let I;
175
- t[144] !== P || t[145] !== N || t[146] !== Lt || t[147] !== Mt || t[148] !== Dt ? (I = li(Lt, void 0, N, Mt, Dt, P), t[144] = P, t[145] = N, t[146] = Lt, t[147] = Mt, t[148] = Dt, t[149] = I) : I = t[149];
176
- const jt = u(j < 0 ? 0 : j);
177
- let R;
178
- t[150] !== h || t[151] !== jt ? (R = {
179
- x: jt,
180
- y: h,
149
+ t[129] !== X || t[130] !== Ie || t[131] !== Yt || t[132] !== Pt || t[133] !== _ || t[134] !== Ot || t[135] !== wt ? (et = /* @__PURE__ */ l.jsx(xi, { y1: X, y2: Ie, x1: 0, x2: Yt, label: Pt, labelPos: _, classNames: Ot, styles: wt }), t[129] = X, t[130] = Ie, t[131] = Yt, t[132] = Pt, t[133] = _, t[134] = Ot, t[135] = wt, t[136] = et) : et = t[136];
150
+ const Lt = 0 - I - 15, jt = m / 2, Vt = s?.yAxis?.title, Dt = n?.yAxis?.title;
151
+ let it;
152
+ t[137] !== Lt || t[138] !== jt || t[139] !== Vt || t[140] !== Dt || t[141] !== W ? (it = /* @__PURE__ */ l.jsx(pi, { x: Lt, y: jt, style: Vt, className: Dt, text: W, rotate90: !0 }), t[137] = Lt, t[138] = jt, t[139] = Vt, t[140] = Dt, t[141] = W, t[142] = it) : it = t[142], ut = /* @__PURE__ */ l.jsxs("g", { children: [
153
+ /* @__PURE__ */ l.jsx(Yi, { values: je.filter(xo), y: je.filter(mo).map((e) => g(e)), x1: 0, x2: O + v.right, styles: Xt, classNames: De, labelType: "secondary", showGridLines: !0, labelPos: "side", suffix: d?.suffix || "", prefix: d?.prefix || "", precision: d?.precision ?? 2, locale: d?.locale || "en", padZeros: d?.padZeros || !1 }),
154
+ et,
155
+ it
156
+ ] });
157
+ const $t = s?.xAxis?.gridLines, oe = s?.xAxis?.labels;
158
+ let y;
159
+ t[143] !== $t || t[144] !== oe ? (y = {
160
+ gridLines: $t,
161
+ labels: oe
162
+ }, t[143] = $t, t[144] = oe, t[145] = y) : y = t[145];
163
+ const ot = n?.xAxis?.gridLines, Ge = n?.xAxis?.labels;
164
+ let He;
165
+ t[146] !== ot || t[147] !== Ge ? (He = {
166
+ gridLines: ot,
167
+ labels: Ge
168
+ }, t[146] = ot, t[147] = Ge, t[148] = He) : He = t[148];
169
+ const Ze = c(V < 0 ? 0 : V), qe = c(V < 0 ? 0 : V), Be = V < 0 ? 0 : V, ze = p?.precision ?? 2, Ue = p?.prefix || "", Je = p?.suffix || "", Ke = p?.locale || "en", Qe = p?.padZeros || !1;
170
+ let $e;
171
+ t[149] !== Be || t[150] !== ze || t[151] !== Ue || t[152] !== Je || t[153] !== Ke || t[154] !== Qe ? ($e = mi(Be, void 0, ze, Ue, Je, Ke, Qe), t[149] = Be, t[150] = ze, t[151] = Ue, t[152] = Je, t[153] = Ke, t[154] = Qe, t[155] = $e) : $e = t[155];
172
+ const _e = c(V < 0 ? 0 : V);
173
+ let ke;
174
+ t[156] !== m || t[157] !== _e ? (ke = {
175
+ x: _e,
176
+ y: m,
181
177
  dy: "1em",
182
178
  dx: 0
183
- }, t[150] = h, t[151] = jt, t[152] = R) : R = t[152];
184
- const ue = n?.xAxis?.axis, p = n?.yAxis?.labels;
185
- let k;
186
- t[153] !== ue || t[154] !== p ? (k = {
187
- axis: ue,
188
- label: p
189
- }, t[153] = ue, t[154] = p, t[155] = k) : k = t[155];
190
- const Ke = s?.xAxis?.axis;
191
- let Ie;
192
- t[156] !== s?.yAxis?.labels ? (Ie = s?.yAxis?.labels || {}, t[156] = s?.yAxis?.labels, t[157] = Ie) : Ie = t[157];
193
- let Re;
194
- t[158] !== Ie ? (Re = {
179
+ }, t[156] = m, t[157] = _e, t[158] = ke) : ke = t[158];
180
+ const ti = n?.xAxis?.axis, ei = n?.yAxis?.labels;
181
+ let Me;
182
+ t[159] !== ti || t[160] !== ei ? (Me = {
183
+ axis: ti,
184
+ label: ei
185
+ }, t[159] = ti, t[160] = ei, t[161] = Me) : Me = t[161];
186
+ const ii = s?.xAxis?.axis;
187
+ let Ne;
188
+ t[162] !== s?.yAxis?.labels ? (Ne = s?.yAxis?.labels || {}, t[162] = s?.yAxis?.labels, t[163] = Ne) : Ne = t[163];
189
+ let Se;
190
+ t[164] !== Ne ? (Se = {
195
191
  textAnchor: "middle",
196
- ...Ie
197
- }, t[158] = Ie, t[159] = Re) : Re = t[159];
198
- let Fe;
199
- t[160] !== Ke || t[161] !== Re ? (Fe = {
200
- axis: Ke,
201
- label: Re
202
- }, t[160] = Ke, t[161] = Re, t[162] = Fe) : Fe = t[162];
203
- let Ue;
204
- t[163] !== h || t[164] !== Ct || t[165] !== wt || t[166] !== I || t[167] !== R || t[168] !== k || t[169] !== Fe ? (Ue = /* @__PURE__ */ l.jsx(ri, { x1: Ct, x2: wt, y1: 0, y2: h, label: I, labelPos: R, classNames: k, styles: Fe }), t[163] = h, t[164] = Ct, t[165] = wt, t[166] = I, t[167] = R, t[168] = k, t[169] = Fe, t[170] = Ue) : Ue = t[170];
205
- const Qe = b / 2, Ze = h + 30, _e = s?.xAxis?.title, ti = n?.xAxis?.title;
206
- let Je;
207
- t[171] !== Qe || t[172] !== Ze || t[173] !== _e || t[174] !== ti || t[175] !== y ? (Je = /* @__PURE__ */ l.jsx(ai, { x: Qe, y: Ze, style: _e, className: ti, text: y }), t[171] = Qe, t[172] = Ze, t[173] = _e, t[174] = ti, t[175] = y, t[176] = Je) : Je = t[176], ct = /* @__PURE__ */ l.jsxs("g", { children: [
208
- /* @__PURE__ */ l.jsx(ji, { values: Pe.filter(no), x: Pe.filter(so).map((e) => u(e)), y1: 0, y2: h, styles: Ht, classNames: et, suffix: Dt, prefix: Mt, labelType: "primary", showGridLines: !0, precision: N, locale: P }),
209
- Ue,
210
- Je
211
- ] }), t[177] !== T ? (E = T.filter(oo).map(io), t[177] = T, t[178] = E) : E = t[178], Yt = fi, K = Ne && It.map((e, Wt) => /* @__PURE__ */ l.jsx("path", { d: We.renderCell(It.findIndex((w) => w.id === e.id)), opacity: Kt ? 1 : 0, className: "stroke-primary-gray-700 dark:stroke-primary-gray-300", style: {
192
+ ...Ne
193
+ }, t[164] = Ne, t[165] = Se) : Se = t[165];
194
+ let Te;
195
+ t[166] !== ii || t[167] !== Se ? (Te = {
196
+ axis: ii,
197
+ label: Se
198
+ }, t[166] = ii, t[167] = Se, t[168] = Te) : Te = t[168];
199
+ let We;
200
+ t[169] !== m || t[170] !== Ze || t[171] !== qe || t[172] !== $e || t[173] !== ke || t[174] !== Me || t[175] !== Te ? (We = /* @__PURE__ */ l.jsx(xi, { x1: Ze, x2: qe, y1: 0, y2: m, label: $e, labelPos: ke, classNames: Me, styles: Te }), t[169] = m, t[170] = Ze, t[171] = qe, t[172] = $e, t[173] = ke, t[174] = Me, t[175] = Te, t[176] = We) : We = t[176];
201
+ const oi = O / 2, si = m + 30, ni = s?.xAxis?.title, li = n?.xAxis?.title;
202
+ let Ee;
203
+ t[177] !== oi || t[178] !== si || t[179] !== ni || t[180] !== li || t[181] !== b ? (Ee = /* @__PURE__ */ l.jsx(pi, { x: oi, y: si, style: ni, className: li, text: b }), t[177] = oi, t[178] = si, t[179] = ni, t[180] = li, t[181] = b, t[182] = Ee) : Ee = t[182], mt = /* @__PURE__ */ l.jsxs("g", { children: [
204
+ /* @__PURE__ */ l.jsx(Ni, { values: me.filter(uo), x: me.filter(fo).map((e) => c(e)), y1: 0, y2: m, styles: y, classNames: He, labelType: "primary", showGridLines: !0, suffix: p?.suffix || "", prefix: p?.prefix || "", precision: p?.precision ?? 2, locale: p?.locale || "en", padZeros: p?.padZeros || !1 }),
205
+ We,
206
+ Ee
207
+ ] }), t[183] !== Z ? (F = Z.filter(co).map(ao), t[183] = Z, t[184] = F) : F = t[184], rt = gi, z = Bt && Kt.map((e, It) => /* @__PURE__ */ l.jsx("path", { d: Ve.renderCell(Kt.findIndex((L) => L.id === e.id)), opacity: qt ? 1 : 0, className: "stroke-primary-gray-700 dark:stroke-primary-gray-300", style: {
212
208
  fillOpacity: 0,
213
209
  strokeWidth: 1
214
- }, onMouseEnter: (w) => {
215
- Tt(e), Xt(w.clientY), Pt(w.clientX), st?.(e);
216
- }, onMouseMove: (w) => {
217
- Tt(e), Xt(w.clientY), Pt(w.clientX);
210
+ }, onMouseEnter: (L) => {
211
+ St(e), q(L.clientY), Tt(L.clientX), lt?.(e);
212
+ }, onMouseMove: (L) => {
213
+ St(e), q(L.clientY), Tt(L.clientX);
218
214
  }, onMouseLeave: () => {
219
- Tt(void 0), Pt(void 0), Xt(void 0), st?.(void 0);
215
+ St(void 0), Tt(void 0), q(void 0), lt?.(void 0);
220
216
  }, onClick: () => {
221
- (D || S) && (ni(W, e) && kt ? (d(void 0), D?.(void 0)) : (d(e), D?.(e)));
222
- } }, `tesselation_${e.label || Wt}`)), dt = It.map((e, Wt) => /* @__PURE__ */ l.jsxs(ze.g, { variants: {
217
+ (M || N) && (ui(R, e) && Nt ? (h(void 0), M?.(void 0)) : (h(e), M?.(e)));
218
+ } }, `tesselation_${e.label || It}`)), ht = Kt.map((e, It) => /* @__PURE__ */ l.jsxs(Fe.g, { variants: {
223
219
  initial: {
224
- x: u(e.x),
225
- y: r(e.y),
226
- opacity: Vt ? e.color && m[L.indexOf(`${e.color}`)] === Vt ? 1 : M : X ? X.id === e.id ? 1 : M : z ? z.indexOf(e.label || "") !== -1 ? 1 : M : 1
220
+ x: c(e.x),
221
+ y: g(e.y),
222
+ opacity: kt ? e.color && u[j.indexOf(`${e.color}`)] === kt ? 1 : S : T ? T.id === e.id ? 1 : S : E ? E.indexOf(e.label || "") !== -1 ? 1 : S : 1
227
223
  },
228
224
  whileInView: {
229
- x: u(e.x),
230
- y: r(e.y),
231
- opacity: Vt ? e.color && m[L.indexOf(`${e.color}`)] === Vt ? 1 : M : X ? X.id === e.id ? 1 : M : z ? z.indexOf(e.label || "") !== -1 ? 1 : M : 1,
225
+ x: c(e.x),
226
+ y: g(e.y),
227
+ opacity: kt ? e.color && u[j.indexOf(`${e.color}`)] === kt ? 1 : S : T ? T.id === e.id ? 1 : S : E ? E.indexOf(e.label || "") !== -1 ? 1 : S : 1,
232
228
  transition: {
233
- duration: f.duration
229
+ duration: a.duration
234
230
  }
235
231
  }
236
- }, initial: "initial", animate: v ? "whileInView" : "initial", exit: {
232
+ }, initial: "initial", animate: A ? "whileInView" : "initial", exit: {
237
233
  opacity: 0,
238
234
  transition: {
239
- duration: f.duration
235
+ duration: a.duration
240
236
  }
241
- }, onMouseEnter: (w) => {
242
- Tt(e), Xt(w.clientY), Pt(w.clientX), st?.(e);
243
- }, onMouseMove: (w) => {
244
- Tt(e), Xt(w.clientY), Pt(w.clientX);
237
+ }, onMouseEnter: (L) => {
238
+ St(e), q(L.clientY), Tt(L.clientX), lt?.(e);
239
+ }, onMouseMove: (L) => {
240
+ St(e), q(L.clientY), Tt(L.clientX);
245
241
  }, onMouseLeave: () => {
246
- Tt(void 0), Pt(void 0), Xt(void 0), st?.(void 0);
242
+ St(void 0), Tt(void 0), q(void 0), lt?.(void 0);
247
243
  }, onClick: () => {
248
- (D || S) && (ni(W, e) && kt ? (d(void 0), D?.(void 0)) : (d(e), D?.(e)));
244
+ (M || N) && (ui(R, e) && Nt ? (h(void 0), M?.(void 0)) : (h(e), M?.(e)));
249
245
  }, children: [
250
- /* @__PURE__ */ l.jsx(ze.circle, { cx: 0, cy: 0, exit: {
246
+ /* @__PURE__ */ l.jsx(Fe.circle, { cx: 0, cy: 0, exit: {
251
247
  r: 0,
252
248
  transition: {
253
- duration: f.duration
249
+ duration: a.duration
254
250
  }
255
251
  }, variants: {
256
252
  initial: {
257
253
  r: 0,
258
- fill: o.filter(eo).length === 0 ? m[0] : e.color ? m[L.indexOf(`${e.color}`)] : it.gray,
259
- stroke: o.filter(to).length === 0 ? m[0] : e.color ? m[L.indexOf(`${e.color}`)] : it.gray
254
+ fill: o.filter(ro).length === 0 ? u[0] : e.color ? u[j.indexOf(`${e.color}`)] : st.gray,
255
+ stroke: o.filter(lo).length === 0 ? u[0] : e.color ? u[j.indexOf(`${e.color}`)] : st.gray
260
256
  },
261
257
  whileInView: {
262
- r: $ ? $(e.radius || 0) : F,
263
- fill: o.filter(_i).length === 0 ? m[0] : e.color ? m[L.indexOf(`${e.color}`)] : it.gray,
264
- stroke: o.filter(Zi).length === 0 ? m[0] : e.color ? m[L.indexOf(`${e.color}`)] : it.gray,
258
+ r: k ? k(e.radius || 0) : P,
259
+ fill: o.filter(no).length === 0 ? u[0] : e.color ? u[j.indexOf(`${e.color}`)] : st.gray,
260
+ stroke: o.filter(so).length === 0 ? u[0] : e.color ? u[j.indexOf(`${e.color}`)] : st.gray,
265
261
  transition: {
266
- duration: f.duration
262
+ duration: a.duration
267
263
  }
268
264
  }
269
- }, initial: "initial", animate: v ? "whileInView" : "initial", style: {
265
+ }, initial: "initial", animate: A ? "whileInView" : "initial", style: {
270
266
  fillOpacity: 0.6
271
267
  } }),
272
- Gt && !A(e.label) ? /* @__PURE__ */ l.jsx(ze.text, { style: {
268
+ Ft && !C(e.label) ? /* @__PURE__ */ l.jsx(Fe.text, { style: {
273
269
  ...s?.graphObjectValues || {}
274
- }, className: oi("graph-value text-sm", n?.graphObjectValues), y: 0, exit: {
270
+ }, className: ci("graph-value text-sm", n?.graphObjectValues), y: 0, exit: {
275
271
  opacity: 0,
276
272
  transition: {
277
- duration: f.duration
273
+ duration: a.duration
278
274
  }
279
275
  }, variants: {
280
276
  initial: {
281
- x: $ ? $(e.radius || 0) : F,
277
+ x: k ? k(e.radius || 0) : P,
282
278
  opacity: 0,
283
- fill: U || (o.filter(Qi).length === 0 ? m[0] : e.color ? m[L.indexOf(`${e.color}`)] : it.gray)
279
+ fill: G || (o.filter(oo).length === 0 ? u[0] : e.color ? u[j.indexOf(`${e.color}`)] : st.gray)
284
280
  },
285
281
  whileInView: {
286
- x: $ ? $(e.radius || 0) : F,
282
+ x: k ? k(e.radius || 0) : P,
287
283
  opacity: 1,
288
- fill: U || (o.filter(Ki).length === 0 ? m[0] : e.color ? m[L.indexOf(`${e.color}`)] : it.gray),
284
+ fill: G || (o.filter(io).length === 0 ? u[0] : e.color ? u[j.indexOf(`${e.color}`)] : st.gray),
289
285
  transition: {
290
- duration: f.duration
286
+ duration: a.duration
291
287
  }
292
288
  }
293
- }, initial: "initial", animate: v ? "whileInView" : "initial", dy: "0.33em", dx: 3, children: e.label }) : z && !A(e.label) && Me && z.indexOf(e.label) !== -1 ? /* @__PURE__ */ l.jsx(ze.text, { style: {
289
+ }, initial: "initial", animate: A ? "whileInView" : "initial", dy: "0.33em", dx: 3, children: e.label }) : E && !C(e.label) && Ce && E.indexOf(e.label) !== -1 ? /* @__PURE__ */ l.jsx(Fe.text, { style: {
294
290
  ...s?.graphObjectValues || {}
295
- }, className: oi("graph-value text-sm", n?.graphObjectValues), y: 0, exit: {
291
+ }, className: ci("graph-value text-sm", n?.graphObjectValues), y: 0, exit: {
296
292
  opacity: 0,
297
293
  transition: {
298
- duration: f.duration
294
+ duration: a.duration
299
295
  }
300
296
  }, variants: {
301
297
  initial: {
302
- x: $ ? $(e.radius || 0) : F,
298
+ x: k ? k(e.radius || 0) : P,
303
299
  opacity: 0,
304
- fill: U || (o.filter(Ji).length === 0 ? m[0] : e.color ? m[L.indexOf(`${e.color}`)] : it.gray)
300
+ fill: G || (o.filter(eo).length === 0 ? u[0] : e.color ? u[j.indexOf(`${e.color}`)] : st.gray)
305
301
  },
306
302
  whileInView: {
307
- x: $ ? $(e.radius || 0) : F,
303
+ x: k ? k(e.radius || 0) : P,
308
304
  opacity: 1,
309
- fill: U || (o.filter(Ui).length === 0 ? m[0] : e.color ? m[L.indexOf(`${e.color}`)] : it.gray),
305
+ fill: G || (o.filter(to).length === 0 ? u[0] : e.color ? u[j.indexOf(`${e.color}`)] : st.gray),
310
306
  transition: {
311
- duration: f.duration
307
+ duration: a.duration
312
308
  }
313
309
  }
314
- }, initial: "initial", animate: v ? "whileInView" : "initial", dy: "0.33em", dx: 3, children: e.label }) : null
315
- ] }, `${e.label || Wt}`)), Q = ke.map((e, Wt) => /* @__PURE__ */ l.jsx(Vi, { text: e.text, color: e.color, x: u(e.value), y1: 0, y2: h, textSide: u(e.value) > b * 0.75 || Bt ? "left" : "right", classNames: e.classNames, styles: e.styles, animate: f, isInView: v }, Wt)), pt = De.map((e, Wt) => /* @__PURE__ */ l.jsx($i, { text: e.text, color: e.color, y: r(e.value), x1: 0, x2: b, classNames: e.classNames, styles: e.styles, animate: f, isInView: v }, Wt));
316
- const ei = ge.map((e, Wt) => {
317
- const w = Ci({
318
- x: e.xCoordinate ? u(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
319
- y: e.yCoordinate ? r(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8
310
+ }, initial: "initial", animate: A ? "whileInView" : "initial", dy: "0.33em", dx: 3, children: e.label }) : null
311
+ ] }, `${e.label || It}`)), U = be.map((e, It) => /* @__PURE__ */ l.jsx(Si, { text: e.text, color: e.color, x: c(e.value), y1: 0, y2: m, textSide: c(e.value) > O * 0.75 || Wt ? "left" : "right", classNames: e.classNames, styles: e.styles, animate: a, isInView: A }, It)), yt = Ae.map((e, It) => /* @__PURE__ */ l.jsx(Ti, { text: e.text, color: e.color, y: g(e.value), x1: 0, x2: O, classNames: e.classNames, styles: e.styles, animate: a, isInView: A }, It));
312
+ const ri = ae.map((e, It) => {
313
+ const L = $i({
314
+ x: e.xCoordinate ? c(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
315
+ y: e.yCoordinate ? g(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8
320
316
  }, {
321
- x: e.xCoordinate ? u(e.xCoordinate) : 0,
322
- y: e.yCoordinate ? r(e.yCoordinate) : 0
323
- }, A(e.connectorRadius) ? 3.5 : e.connectorRadius), xi = e.showConnector ? {
324
- y1: w.y,
325
- x1: w.x,
326
- y2: e.yCoordinate ? r(e.yCoordinate) + (e.yOffset || 0) : 0 + (e.yOffset || 0),
327
- x2: e.xCoordinate ? u(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
328
- cy: e.yCoordinate ? r(e.yCoordinate) : 0,
329
- cx: e.xCoordinate ? u(e.xCoordinate) : 0,
330
- circleRadius: A(e.connectorRadius) ? 3.5 : e.connectorRadius,
317
+ x: e.xCoordinate ? c(e.xCoordinate) : 0,
318
+ y: e.yCoordinate ? g(e.yCoordinate) : 0
319
+ }, C(e.connectorRadius) ? 3.5 : e.connectorRadius), vi = e.showConnector ? {
320
+ y1: L.y,
321
+ x1: L.x,
322
+ y2: e.yCoordinate ? g(e.yCoordinate) + (e.yOffset || 0) : 0 + (e.yOffset || 0),
323
+ x2: e.xCoordinate ? c(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
324
+ cy: e.yCoordinate ? g(e.yCoordinate) : 0,
325
+ cx: e.xCoordinate ? c(e.xCoordinate) : 0,
326
+ circleRadius: C(e.connectorRadius) ? 3.5 : e.connectorRadius,
331
327
  strokeWidth: e.showConnector === !0 ? 2 : Math.min(e.showConnector || 0, 1)
332
- } : void 0, di = {
333
- y: e.yCoordinate ? r(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8,
334
- x: Bt ? 0 : e.xCoordinate ? u(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
335
- width: Bt ? e.xCoordinate ? u(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0) : b + g.right - (e.xCoordinate ? u(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0)),
328
+ } : void 0, bi = {
329
+ y: e.yCoordinate ? g(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8,
330
+ x: Wt ? 0 : e.xCoordinate ? c(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
331
+ width: Wt ? e.xCoordinate ? c(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0) : O + v.right - (e.xCoordinate ? c(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0)),
336
332
  maxWidth: e.maxWidth,
337
333
  fontWeight: e.fontWeight,
338
334
  align: e.align
339
335
  };
340
- return /* @__PURE__ */ l.jsx(wi, { color: e.color, connectorsSettings: xi, labelSettings: di, text: e.text, classNames: e.classNames, styles: e.styles, animate: f, isInView: v }, Wt);
336
+ return /* @__PURE__ */ l.jsx(ki, { color: e.color, connectorsSettings: vi, labelSettings: bi, text: e.text, classNames: e.classNames, styles: e.styles, animate: a, isInView: A }, It);
341
337
  });
342
- t[179] !== ei ? (G = /* @__PURE__ */ l.jsx("g", { children: ei }), t[179] = ei, t[180] = G) : G = t[180], gt = $t ? /* @__PURE__ */ l.jsx(ki, { x1: 0, x2: b, y1: Ae(0), y2: Ae(b), graphHeight: h, graphWidth: b, className: n?.regLine, style: s?.regLine, color: typeof $t == "string" ? $t : void 0, animate: f, isInView: v }) : null, t[8] = f, t[9] = ge, t[10] = n?.graphObjectValues, t[11] = n?.regLine, t[12] = n?.xAxis?.axis, t[13] = n?.xAxis?.gridLines, t[14] = n?.xAxis?.labels, t[15] = n?.xAxis?.title, t[16] = n?.yAxis?.gridLines, t[17] = n?.yAxis?.labels, t[18] = n?.yAxis?.title, t[19] = L, t[20] = m, t[21] = zt, t[22] = T, t[23] = o, t[24] = S, t[25] = M, t[26] = V, t[27] = Se, t[28] = z, t[29] = v, t[30] = U, t[31] = H, t[32] = P, t[33] = g.bottom, t[34] = g.left, t[35] = g.right, t[36] = g.top, t[37] = de, t[38] = pe, t[39] = qt, t[40] = j, t[41] = O, t[42] = W, t[43] = X, t[44] = Ut, t[45] = Jt, t[46] = D, t[47] = st, t[48] = N, t[49] = F, t[50] = ke, t[51] = De, t[52] = $t, t[53] = kt, t[54] = Bt, t[55] = Vt, t[56] = Me, t[57] = Gt, t[58] = Kt, t[59] = s?.graphObjectValues, t[60] = s?.regLine, t[61] = s?.xAxis?.axis, t[62] = s?.xAxis?.gridLines, t[63] = s?.xAxis?.labels, t[64] = s?.xAxis?.title, t[65] = s?.yAxis?.gridLines, t[66] = s?.yAxis?.labels, t[67] = s?.yAxis?.title, t[68] = Ne, t[69] = ot, t[70] = y, t[71] = Mt, t[72] = Dt, t[73] = B, t[74] = Nt, t[75] = St, t[76] = Yt, t[77] = nt, t[78] = lt, t[79] = rt, t[80] = at, t[81] = ct, t[82] = E, t[83] = ft, t[84] = ut, t[85] = mt, t[86] = J, t[87] = xt, t[88] = K, t[89] = dt, t[90] = Q, t[91] = pt, t[92] = G, t[93] = gt;
338
+ t[185] !== ri ? (H = /* @__PURE__ */ l.jsx("g", { children: ri }), t[185] = ri, t[186] = H) : H = t[186], vt = Mt ? /* @__PURE__ */ l.jsx(Xi, { x1: 0, x2: O, y1: xe(0), y2: xe(O), graphHeight: m, graphWidth: O, className: n?.regLine, style: s?.regLine, color: typeof Mt == "string" ? Mt : void 0, animate: a, isInView: A }) : null, t[8] = a, t[9] = ae, t[10] = n?.graphObjectValues, t[11] = n?.regLine, t[12] = n?.xAxis?.axis, t[13] = n?.xAxis?.gridLines, t[14] = n?.xAxis?.labels, t[15] = n?.xAxis?.title, t[16] = n?.yAxis?.gridLines, t[17] = n?.yAxis?.labels, t[18] = n?.yAxis?.title, t[19] = j, t[20] = u, t[21] = Et, t[22] = Z, t[23] = o, t[24] = N, t[25] = S, t[26] = D, t[27] = Oe, t[28] = E, t[29] = A, t[30] = G, t[31] = I, t[32] = v.bottom, t[33] = v.left, t[34] = v.right, t[35] = v.top, t[36] = le, t[37] = re, t[38] = Ht, t[39] = V, t[40] = w, t[41] = R, t[42] = T, t[43] = Gt, t[44] = Zt, t[45] = M, t[46] = lt, t[47] = P, t[48] = be, t[49] = Ae, t[50] = Mt, t[51] = Nt, t[52] = Wt, t[53] = kt, t[54] = Ce, t[55] = Ft, t[56] = qt, t[57] = s?.graphObjectValues, t[58] = s?.regLine, t[59] = s?.xAxis?.axis, t[60] = s?.xAxis?.gridLines, t[61] = s?.xAxis?.labels, t[62] = s?.xAxis?.title, t[63] = s?.yAxis?.gridLines, t[64] = s?.yAxis?.labels, t[65] = s?.yAxis?.title, t[66] = Bt, t[67] = nt, t[68] = b, t[69] = p?.locale, t[70] = p?.padZeros, t[71] = p?.precision, t[72] = p?.prefix, t[73] = p?.suffix, t[74] = W, t[75] = d?.locale, t[76] = d?.padZeros, t[77] = d?.precision, t[78] = d?.prefix, t[79] = d?.suffix, t[80] = rt, t[81] = at, t[82] = ct, t[83] = ft, t[84] = ut, t[85] = mt, t[86] = F, t[87] = xt, t[88] = pt, t[89] = dt, t[90] = B, t[91] = gt, t[92] = z, t[93] = ht, t[94] = U, t[95] = yt, t[96] = H, t[97] = vt;
343
339
  } else
344
- Yt = t[76], nt = t[77], lt = t[78], rt = t[79], at = t[80], ct = t[81], E = t[82], ft = t[83], ut = t[84], mt = t[85], J = t[86], xt = t[87], K = t[88], dt = t[89], Q = t[90], pt = t[91], G = t[92], gt = t[93];
345
- let ht;
346
- t[181] !== Yt || t[182] !== K || t[183] !== dt || t[184] !== Q || t[185] !== pt || t[186] !== G || t[187] !== gt ? (ht = /* @__PURE__ */ l.jsxs(Yt, { children: [
347
- K,
348
- dt,
349
- Q,
350
- pt,
351
- G,
352
- gt
353
- ] }), t[181] = Yt, t[182] = K, t[183] = dt, t[184] = Q, t[185] = pt, t[186] = G, t[187] = gt, t[188] = ht) : ht = t[188];
354
- let yt;
355
- t[189] !== T ? (yt = T.filter(zi).map(Bi), t[189] = T, t[190] = yt) : yt = t[190];
356
- let vt;
357
- t[191] !== lt || t[192] !== rt || t[193] !== at || t[194] !== ct || t[195] !== E || t[196] !== ht || t[197] !== yt ? (vt = /* @__PURE__ */ l.jsxs("g", { transform: lt, children: [
358
- rt,
359
- at,
360
- ct,
361
- E,
340
+ rt = t[80], at = t[81], ct = t[82], ft = t[83], ut = t[84], mt = t[85], F = t[86], xt = t[87], pt = t[88], dt = t[89], B = t[90], gt = t[91], z = t[92], ht = t[93], U = t[94], yt = t[95], H = t[96], vt = t[97];
341
+ let J;
342
+ t[187] !== rt || t[188] !== z || t[189] !== ht || t[190] !== U || t[191] !== yt || t[192] !== H || t[193] !== vt ? (J = /* @__PURE__ */ l.jsxs(rt, { children: [
343
+ z,
362
344
  ht,
363
- yt
364
- ] }), t[191] = lt, t[192] = rt, t[193] = at, t[194] = ct, t[195] = E, t[196] = ht, t[197] = yt, t[198] = vt) : vt = t[198];
345
+ U,
346
+ yt,
347
+ H,
348
+ vt
349
+ ] }), t[187] = rt, t[188] = z, t[189] = ht, t[190] = U, t[191] = yt, t[192] = H, t[193] = vt, t[194] = J) : J = t[194];
350
+ let K;
351
+ t[195] !== Z ? (K = Z.filter(_i).map(Qi), t[195] = Z, t[196] = K) : K = t[196];
352
+ let $;
353
+ t[197] !== ct || t[198] !== ft || t[199] !== ut || t[200] !== mt || t[201] !== F || t[202] !== J || t[203] !== K ? ($ = /* @__PURE__ */ l.jsxs("g", { transform: ct, children: [
354
+ ft,
355
+ ut,
356
+ mt,
357
+ F,
358
+ J,
359
+ K
360
+ ] }), t[197] = ct, t[198] = ft, t[199] = ut, t[200] = mt, t[201] = F, t[202] = J, t[203] = K, t[204] = $) : $ = t[204];
365
361
  let bt;
366
- t[199] !== nt || t[200] !== ft || t[201] !== ut || t[202] !== mt || t[203] !== J || t[204] !== xt || t[205] !== vt ? (bt = /* @__PURE__ */ l.jsx(nt, { width: ft, height: ut, viewBox: mt, direction: J, ref: xt, children: vt }), t[199] = nt, t[200] = ft, t[201] = ut, t[202] = mt, t[203] = J, t[204] = xt, t[205] = vt, t[206] = bt) : bt = t[206];
367
- let Z;
368
- t[207] !== n?.tooltip || t[208] !== x || t[209] !== ye || t[210] !== X || t[211] !== s?.tooltip || t[212] !== xe ? (Z = X && xe && x && ye ? /* @__PURE__ */ l.jsx(Oi, { data: X, body: xe, xPos: x, yPos: ye, backgroundStyle: s?.tooltip, className: n?.tooltip }) : null, t[207] = n?.tooltip, t[208] = x, t[209] = ye, t[210] = X, t[211] = s?.tooltip, t[212] = xe, t[213] = Z) : Z = t[213];
369
- let _;
370
- t[214] !== n?.modal || t[215] !== S || t[216] !== W ? (_ = S && W !== void 0 ? /* @__PURE__ */ l.jsx(Mi, { body: S, data: W, setData: d, className: n?.modal }) : null, t[214] = n?.modal, t[215] = S, t[216] = W, t[217] = _) : _ = t[217];
371
- let q;
372
- return t[218] !== bt || t[219] !== Z || t[220] !== _ ? (q = /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
362
+ t[205] !== at || t[206] !== xt || t[207] !== pt || t[208] !== dt || t[209] !== B || t[210] !== gt || t[211] !== $ ? (bt = /* @__PURE__ */ l.jsx(at, { width: xt, height: pt, viewBox: dt, direction: B, ref: gt, children: $ }), t[205] = at, t[206] = xt, t[207] = pt, t[208] = dt, t[209] = B, t[210] = gt, t[211] = $, t[212] = bt) : bt = t[212];
363
+ let At;
364
+ t[213] !== n?.tooltip || t[214] !== x || t[215] !== fe || t[216] !== T || t[217] !== s?.tooltip || t[218] !== ne ? (At = T && ne && x && fe ? /* @__PURE__ */ l.jsx(Di, { data: T, body: ne, xPos: x, yPos: fe, backgroundStyle: s?.tooltip, className: n?.tooltip }) : null, t[213] = n?.tooltip, t[214] = x, t[215] = fe, t[216] = T, t[217] = s?.tooltip, t[218] = ne, t[219] = At) : At = t[219];
365
+ let Q;
366
+ t[220] !== n?.modal || t[221] !== N || t[222] !== R ? (Q = N && R !== void 0 ? /* @__PURE__ */ l.jsx(Ii, { body: N, data: R, setData: h, className: n?.modal }) : null, t[220] = n?.modal, t[221] = N, t[222] = R, t[223] = Q) : Q = t[223];
367
+ let Ut;
368
+ return t[224] !== bt || t[225] !== At || t[226] !== Q ? (Ut = /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
373
369
  bt,
374
- Z,
375
- _
376
- ] }), t[218] = bt, t[219] = Z, t[220] = _, t[221] = q) : q = t[221], q;
370
+ At,
371
+ Q
372
+ ] }), t[224] = bt, t[225] = At, t[226] = Q, t[227] = Ut) : Ut = t[227], Ut;
377
373
  }
378
- function Bi(i) {
374
+ function Qi(i) {
379
375
  return i.layer;
380
376
  }
381
- function zi(i) {
377
+ function _i(i) {
382
378
  return i.position === "after";
383
379
  }
384
- function Ui(i) {
380
+ function to(i) {
385
381
  return i.color;
386
382
  }
387
- function Ji(i) {
383
+ function eo(i) {
388
384
  return i.color;
389
385
  }
390
- function Ki(i) {
386
+ function io(i) {
391
387
  return i.color;
392
388
  }
393
- function Qi(i) {
389
+ function oo(i) {
394
390
  return i.color;
395
391
  }
396
- function Zi(i) {
392
+ function so(i) {
397
393
  return i.color;
398
394
  }
399
- function _i(i) {
395
+ function no(i) {
400
396
  return i.color;
401
397
  }
402
- function to(i) {
398
+ function lo(i) {
403
399
  return i.color;
404
400
  }
405
- function eo(i) {
401
+ function ro(i) {
406
402
  return i.color;
407
403
  }
408
- function io(i) {
404
+ function ao(i) {
409
405
  return i.layer;
410
406
  }
411
- function oo(i) {
407
+ function co(i) {
412
408
  return i.position === "before";
413
409
  }
414
- function so(i) {
410
+ function fo(i) {
415
411
  return i !== 0;
416
412
  }
417
- function no(i) {
413
+ function uo(i) {
418
414
  return i !== 0;
419
415
  }
420
- function lo(i) {
416
+ function mo(i) {
421
417
  return i !== 0;
422
418
  }
423
- function ro(i) {
419
+ function xo(i) {
424
420
  return i !== 0;
425
421
  }
426
- function ao(i) {
427
- return !A(i.x) && !A(i.y);
422
+ function po(i) {
423
+ return !C(i.x) && !C(i.y);
428
424
  }
429
- function co(i) {
430
- return !A(i.radius) && !A(i.x) && !A(i.y);
425
+ function go(i) {
426
+ return !C(i.radius) && !C(i.x) && !C(i.y);
431
427
  }
432
- function fo(i) {
433
- return !A(i.x) && !A(i.y);
428
+ function ho(i) {
429
+ return !C(i.x) && !C(i.y);
434
430
  }
435
- function uo(i) {
436
- return !A(i.radius);
431
+ function yo(i) {
432
+ return !C(i.radius);
437
433
  }
438
- function mo(i) {
434
+ function vo(i) {
439
435
  return i.radius === void 0 || i.radius === null;
440
436
  }
441
- function xo(i, t) {
437
+ function bo(i, t) {
442
438
  return {
443
439
  ...i,
444
440
  id: `${t}`
445
441
  };
446
442
  }
447
- function ws(i) {
448
- const t = mi.c(144), {
443
+ function ks(i) {
444
+ const t = yi.c(140), {
449
445
  data: o,
450
- graphTitle: ot,
451
- colors: V,
452
- sources: Gt,
453
- graphDescription: m,
454
- showLabels: L,
455
- height: F,
456
- width: y,
457
- footNote: B,
458
- colorDomain: H,
459
- colorLegendTitle: me,
460
- radius: $e,
461
- xAxisTitle: He,
462
- yAxisTitle: xe,
463
- padding: st,
464
- backgroundColor: ke,
465
- leftMargin: De,
466
- rightMargin: Se,
467
- topMargin: Vt,
468
- bottomMargin: z,
469
- tooltip: de,
470
- relativeHeight: pe,
471
- onSeriesMouseOver: j,
472
- refXValues: qt,
473
- refYValues: O,
474
- highlightAreaSettings: D,
475
- showColorScale: Bt,
476
- highlightedDataPoints: ge,
477
- showHighlightedDataPointsLabels: zt,
478
- graphID: $t,
479
- maxRadiusValue: kt,
480
- maxXValue: S,
481
- minXValue: Ut,
482
- maxYValue: Jt,
483
- minYValue: U,
484
- xSuffix: Dt,
485
- ySuffix: St,
486
- xPrefix: Mt,
487
- yPrefix: Nt,
446
+ graphTitle: nt,
447
+ colors: D,
448
+ sources: Ft,
449
+ graphDescription: u,
450
+ showLabels: j,
451
+ height: P,
452
+ width: b,
453
+ footNote: W,
454
+ colorDomain: I,
455
+ colorLegendTitle: se,
456
+ radius: ve,
457
+ xAxisTitle: Xe,
458
+ yAxisTitle: ne,
459
+ padding: lt,
460
+ backgroundColor: be,
461
+ leftMargin: Ae,
462
+ rightMargin: Oe,
463
+ topMargin: kt,
464
+ bottomMargin: E,
465
+ tooltip: le,
466
+ relativeHeight: re,
467
+ onSeriesMouseOver: V,
468
+ refXValues: Ht,
469
+ refYValues: w,
470
+ highlightAreaSettings: M,
471
+ showColorScale: Wt,
472
+ highlightedDataPoints: ae,
473
+ showHighlightedDataPointsLabels: Et,
474
+ graphID: Mt,
475
+ maxRadiusValue: Nt,
476
+ maxXValue: N,
477
+ minXValue: Gt,
478
+ maxYValue: Zt,
479
+ minYValue: G,
488
480
  onSeriesMouseClick: s,
489
481
  graphDownload: n,
490
- dataDownload: f,
491
- language: M,
492
- showNAColor: N,
493
- minHeight: Me,
494
- annotations: T,
495
- customHighlightAreaSettings: Kt,
496
- theme: Ne,
497
- regressionLine: P,
498
- ariaLabel: Te,
499
- resetSelectionOnDoubleClick: he,
500
- detailsOnClick: v,
501
- noOfXTicks: X,
502
- noOfYTicks: Tt,
503
- labelColor: W,
504
- styles: d,
482
+ dataDownload: a,
483
+ language: S,
484
+ showNAColor: Ce,
485
+ minHeight: Z,
486
+ annotations: qt,
487
+ customHighlightAreaSettings: Bt,
488
+ theme: p,
489
+ regressionLine: d,
490
+ ariaLabel: we,
491
+ resetSelectionOnDoubleClick: ce,
492
+ detailsOnClick: A,
493
+ noOfXTicks: T,
494
+ noOfYTicks: St,
495
+ labelColor: R,
496
+ styles: h,
505
497
  classNames: x,
506
- animate: Pt,
507
- dimmedOpacity: ye,
508
- precision: Xt,
509
- customLayers: Qt,
510
- timeline: Zt,
511
- showVoronoiTesselation: ve,
512
- useVoronoiInteraction: g,
513
- locale: Yt
514
- } = i, nt = L === void 0 ? !1 : L, lt = $e === void 0 ? 5 : $e, rt = He === void 0 ? "X Axis" : He, at = xe === void 0 ? "Y Axis" : xe, ct = ke === void 0 ? !1 : ke, E = De === void 0 ? 0 : De, ft = Se === void 0 ? 10 : Se, ut = Vt === void 0 ? 20 : Vt, mt = z === void 0 ? 50 : z;
515
- let J;
516
- t[0] !== qt ? (J = qt === void 0 ? [] : qt, t[0] = qt, t[1] = J) : J = t[1];
517
- const xt = J;
518
- let K;
519
- t[2] !== O ? (K = O === void 0 ? [] : O, t[2] = O, t[3] = K) : K = t[3];
520
- const dt = K;
498
+ animate: Tt,
499
+ dimmedOpacity: fe,
500
+ customLayers: q,
501
+ timeline: zt,
502
+ showVoronoiTesselation: Le,
503
+ useVoronoiInteraction: ue,
504
+ xNumberDisplayOptions: v,
505
+ yNumberDisplayOptions: rt
506
+ } = i, at = j === void 0 ? !1 : j, ct = ve === void 0 ? 5 : ve, ft = Xe === void 0 ? "X Axis" : Xe, ut = ne === void 0 ? "Y Axis" : ne, mt = be === void 0 ? !1 : be, F = Ae === void 0 ? 0 : Ae, xt = Oe === void 0 ? 10 : Oe, pt = kt === void 0 ? 20 : kt, dt = E === void 0 ? 50 : E;
507
+ let B;
508
+ t[0] !== Ht ? (B = Ht === void 0 ? [] : Ht, t[0] = Ht, t[1] = B) : B = t[1];
509
+ const gt = B;
510
+ let z;
511
+ t[2] !== w ? (z = w === void 0 ? [] : w, t[2] = w, t[3] = z) : z = t[3];
512
+ const ht = z;
513
+ let U;
514
+ t[4] !== M ? (U = M === void 0 ? [] : M, t[4] = M, t[5] = U) : U = t[5];
515
+ const yt = U, H = Wt === void 0 ? !0 : Wt, vt = Et === void 0 ? !1 : Et, J = n === void 0 ? !1 : n, K = a === void 0 ? !1 : a, $ = S === void 0 ? "en" : S, bt = Ce === void 0 ? !0 : Ce, At = Z === void 0 ? 0 : Z;
521
516
  let Q;
522
- t[4] !== D ? (Q = D === void 0 ? [] : D, t[4] = D, t[5] = Q) : Q = t[5];
523
- const pt = Q, G = Bt === void 0 ? !0 : Bt, gt = zt === void 0 ? !1 : zt, ht = Dt === void 0 ? "" : Dt, yt = St === void 0 ? "" : St, vt = Mt === void 0 ? "" : Mt, bt = Nt === void 0 ? "" : Nt, Z = n === void 0 ? !1 : n, _ = f === void 0 ? !1 : f, q = M === void 0 ? "en" : M, be = N === void 0 ? !0 : N, b = Me === void 0 ? 0 : Me;
524
- let h;
525
- t[6] !== T ? (h = T === void 0 ? [] : T, t[6] = T, t[7] = h) : h = t[7];
526
- const $ = h;
527
- let It;
528
- t[8] !== Kt ? (It = Kt === void 0 ? [] : Kt, t[8] = Kt, t[9] = It) : It = t[9];
529
- const u = It, r = Ne === void 0 ? "light" : Ne, Pe = P === void 0 ? !1 : P, Xe = he === void 0 ? !0 : he, We = X === void 0 ? 5 : X, Ee = Tt === void 0 ? 5 : Tt, Ae = Pt === void 0 ? !1 : Pt, _t = ye === void 0 ? 0.3 : ye, Oe = Xt === void 0 ? 2 : Xt;
530
- let te;
531
- t[10] !== Qt ? (te = Qt === void 0 ? [] : Qt, t[10] = Qt, t[11] = te) : te = t[11];
532
- const ee = te;
533
- let ie;
534
- t[12] !== Zt ? (ie = Zt === void 0 ? {
517
+ t[6] !== qt ? (Q = qt === void 0 ? [] : qt, t[6] = qt, t[7] = Q) : Q = t[7];
518
+ const Ut = Q;
519
+ let Jt;
520
+ t[8] !== Bt ? (Jt = Bt === void 0 ? [] : Bt, t[8] = Bt, t[9] = Jt) : Jt = t[9];
521
+ const O = Jt, m = p === void 0 ? "light" : p, k = d === void 0 ? !1 : d, Kt = ce === void 0 ? !0 : ce, c = T === void 0 ? 5 : T, g = St === void 0 ? 5 : St, me = Tt === void 0 ? !1 : Tt, je = fe === void 0 ? 0.3 : fe;
522
+ let Ve;
523
+ t[10] !== q ? (Ve = q === void 0 ? [] : q, t[10] = q, t[11] = Ve) : Ve = t[11];
524
+ const Ye = Ve;
525
+ let xe;
526
+ t[12] !== zt ? (xe = zt === void 0 ? {
535
527
  enabled: !1,
536
528
  autoplay: !1,
537
529
  showOnlyActiveDate: !0
538
- } : Zt, t[12] = Zt, t[13] = ie) : ie = t[13];
539
- const a = ie, oe = ve === void 0 ? !1 : ve, Ce = g === void 0 ? !0 : g, we = Yt === void 0 ? "en" : Yt, [se, Ge] = Et(0), [tt, qe] = Et(0), [C, Be] = Et(a.autoplay);
540
- let Rt;
541
- if (t[14] !== o || t[15] !== a.dateFormat) {
542
- let p;
543
- t[17] !== a.dateFormat ? (p = (k) => gi(`${k.date}`, a.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[17] = a.dateFormat, t[18] = p) : p = t[18], Rt = [...new Set(o.filter(Eo).map(p))], Rt.sort(Wo), t[14] = o, t[15] = a.dateFormat, t[16] = Rt;
530
+ } : zt, t[12] = zt, t[13] = xe) : xe = t[13];
531
+ const r = xe, pe = Le === void 0 ? !1 : Le, de = ue === void 0 ? !0 : ue, [Xt, Pe] = Rt(0), [Qt, De] = Rt(0), [X, Ie] = Rt(r.autoplay);
532
+ let Yt;
533
+ if (t[14] !== o || t[15] !== r.dateFormat) {
534
+ let y;
535
+ t[17] !== r.dateFormat ? (y = (ot) => Oi(`${ot.date}`, r.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[17] = r.dateFormat, t[18] = y) : y = t[18], Yt = [...new Set(o.filter(Uo).map(y))], Yt.sort(zo), t[14] = o, t[15] = r.dateFormat, t[16] = Yt;
544
536
  } else
545
- Rt = t[16];
546
- const c = Rt, [Y, At] = Et(a.autoplay ? 0 : c.length - 1), [Ot, ne] = Et(void 0), le = ii(null), Ye = ii(null);
547
- let re, ae;
548
- t[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = () => {
549
- const p = new ResizeObserver((k) => {
550
- Ge(k[0].target.clientWidth || 620), qe(k[0].target.clientHeight || 480);
537
+ Yt = t[16];
538
+ const f = Yt, [Y, ge] = Rt(r.autoplay ? 0 : f.length - 1), [he, Re] = Rt(void 0), ye = ai(null), Pt = ai(null);
539
+ let _t, _;
540
+ t[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_t = () => {
541
+ const y = new ResizeObserver((ot) => {
542
+ Pe(ot[0].target.clientWidth || 620), De(ot[0].target.clientHeight || 480);
551
543
  });
552
- return le.current && p.observe(le.current), () => p.disconnect();
553
- }, ae = [], t[19] = re, t[20] = ae) : (re = t[19], ae = t[20]), si(re, ae);
554
- let ce, Ft;
555
- t[21] !== C || t[22] !== a.speed || t[23] !== c ? (ce = () => {
556
- const p = setInterval(() => {
557
- At((k) => k < c.length - 1 ? k + 1 : 0);
558
- }, (a.speed || 2) * 1e3);
559
- return C || clearInterval(p), () => clearInterval(p);
560
- }, Ft = [c, C, a.speed], t[21] = C, t[22] = a.speed, t[23] = c, t[24] = ce, t[25] = Ft) : (ce = t[24], Ft = t[25]), si(ce, Ft);
561
- const Le = a.dateFormat || "yyyy";
562
- let fe;
563
- t[26] !== Y || t[27] !== Le || t[28] !== a.showOnlyActiveDate || t[29] !== c ? (fe = hi(c, Y, a.showOnlyActiveDate, Le), t[26] = Y, t[27] = Le, t[28] = a.showOnlyActiveDate, t[29] = c, t[30] = fe) : fe = t[30];
564
- const Ht = fe, je = x?.graphContainer, Ve = d?.graphContainer;
544
+ return ye.current && y.observe(ye.current), () => y.disconnect();
545
+ }, _ = [], t[19] = _t, t[20] = _) : (_t = t[19], _ = t[20]), fi(_t, _);
546
+ let te, ee;
547
+ t[21] !== X || t[22] !== r.speed || t[23] !== f ? (te = () => {
548
+ const y = setInterval(() => {
549
+ ge((ot) => ot < f.length - 1 ? ot + 1 : 0);
550
+ }, (r.speed || 2) * 1e3);
551
+ return X || clearInterval(y), () => clearInterval(y);
552
+ }, ee = [f, X, r.speed], t[21] = X, t[22] = r.speed, t[23] = f, t[24] = te, t[25] = ee) : (te = t[24], ee = t[25]), fi(te, ee);
553
+ const Ot = r.dateFormat || "yyyy";
554
+ let ie;
555
+ t[26] !== Y || t[27] !== Ot || t[28] !== r.showOnlyActiveDate || t[29] !== f ? (ie = Ci(f, Y, r.showOnlyActiveDate, Ot), t[26] = Y, t[27] = Ot, t[28] = r.showOnlyActiveDate, t[29] = f, t[30] = ie) : ie = t[30];
556
+ const tt = ie, Ct = x?.graphContainer, wt = h?.graphContainer;
565
557
  let et;
566
- t[31] !== x?.description || t[32] !== x?.title || t[33] !== o || t[34] !== _ || t[35] !== m || t[36] !== Z || t[37] !== ot || t[38] !== d?.description || t[39] !== d?.title || t[40] !== y ? (et = ot || m || Z || _ ? /* @__PURE__ */ l.jsx(Yi, { styles: {
567
- title: d?.title,
568
- description: d?.description
558
+ t[31] !== x?.description || t[32] !== x?.title || t[33] !== o || t[34] !== K || t[35] !== u || t[36] !== J || t[37] !== nt || t[38] !== h?.description || t[39] !== h?.title || t[40] !== b ? (et = nt || u || J || K ? /* @__PURE__ */ l.jsx(Ei, { styles: {
559
+ title: h?.title,
560
+ description: h?.description
569
561
  }, classNames: {
570
562
  title: x?.title,
571
563
  description: x?.description
572
- }, graphTitle: ot, graphDescription: m, width: y, graphDownload: Z ? Ye : void 0, dataDownload: _ ? o.map(Ho).filter(Fo).length > 0 ? o.map(Ro).filter(Io) : o.filter(Yo) : null }) : null, t[31] = x?.description, t[32] = x?.title, t[33] = o, t[34] = _, t[35] = m, t[36] = Z, t[37] = ot, t[38] = d?.description, t[39] = d?.title, t[40] = y, t[41] = et) : et = t[41];
573
- let Ct;
574
- t[42] !== Y || t[43] !== Ht || t[44] !== C || t[45] !== a.enabled || t[46] !== c ? (Ct = a.enabled && c.length > 0 && Ht ? /* @__PURE__ */ l.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
564
+ }, graphTitle: nt, graphDescription: u, width: b, graphDownload: J ? Pt : void 0, dataDownload: K ? o.map(Bo).filter(qo).length > 0 ? o.map(Zo).filter(Go) : o.filter(Eo) : null }) : null, t[31] = x?.description, t[32] = x?.title, t[33] = o, t[34] = K, t[35] = u, t[36] = J, t[37] = nt, t[38] = h?.description, t[39] = h?.title, t[40] = b, t[41] = et) : et = t[41];
565
+ let Lt;
566
+ t[42] !== Y || t[43] !== tt || t[44] !== X || t[45] !== r.enabled || t[46] !== f ? (Lt = r.enabled && f.length > 0 && tt ? /* @__PURE__ */ l.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
575
567
  /* @__PURE__ */ l.jsx("button", { type: "button", onClick: () => {
576
- Be(!C);
577
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": C ? "Click to pause animation" : "Click to play animation", children: C ? /* @__PURE__ */ l.jsx(Fi, {}) : /* @__PURE__ */ l.jsx(Hi, {}) }),
578
- /* @__PURE__ */ l.jsx(yi, { min: c[0], max: c[c.length - 1], marks: Ht, step: null, defaultValue: c[c.length - 1], value: c[Y], onChangeComplete: (p) => {
579
- At(c.indexOf(p));
580
- }, onChange: (p) => {
581
- At(c.indexOf(p));
568
+ Ie(!X);
569
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": X ? "Click to pause animation" : "Click to play animation", children: X ? /* @__PURE__ */ l.jsx(qi, {}) : /* @__PURE__ */ l.jsx(Bi, {}) }),
570
+ /* @__PURE__ */ l.jsx(wi, { min: f[0], max: f[f.length - 1], marks: tt, step: null, defaultValue: f[f.length - 1], value: f[Y], onChangeComplete: (y) => {
571
+ ge(f.indexOf(y));
572
+ }, onChange: (y) => {
573
+ ge(f.indexOf(y));
582
574
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
583
- ] }) : null, t[42] = Y, t[43] = Ht, t[44] = C, t[45] = a.enabled, t[46] = c, t[47] = Ct) : Ct = t[47];
584
- let wt;
585
- t[48] !== x?.colorLegend || t[49] !== H || t[50] !== me || t[51] !== V || t[52] !== o || t[53] !== G || t[54] !== be || t[55] !== r || t[56] !== y ? (wt = G && o.filter(Xo).length !== 0 && o.length > 0 ? /* @__PURE__ */ l.jsx(Ii, { width: y, colorLegendTitle: me, colors: V || it[r].categoricalColors.colors, colorDomain: H || ui(o, "color", !0), setSelectedColor: ne, showNAColor: be, className: x?.colorLegend }) : null, t[48] = x?.colorLegend, t[49] = H, t[50] = me, t[51] = V, t[52] = o, t[53] = G, t[54] = be, t[55] = r, t[56] = y, t[57] = wt) : wt = t[57];
586
- let Lt;
587
- t[58] !== o.length ? (Lt = o.length === 0 && /* @__PURE__ */ l.jsx(Ri, {}), t[58] = o.length, t[59] = Lt) : Lt = t[59];
588
- let I;
589
- t[60] !== Ae || t[61] !== $ || t[62] !== mt || t[63] !== x || t[64] !== H || t[65] !== V || t[66] !== u || t[67] !== ee || t[68] !== o || t[69] !== v || t[70] !== _t || t[71] !== pt || t[72] !== ge || t[73] !== Y || t[74] !== W || t[75] !== q || t[76] !== E || t[77] !== we || t[78] !== kt || t[79] !== S || t[80] !== Jt || t[81] !== Ut || t[82] !== U || t[83] !== We || t[84] !== Ee || t[85] !== s || t[86] !== j || t[87] !== Oe || t[88] !== lt || t[89] !== xt || t[90] !== dt || t[91] !== Pe || t[92] !== Xe || t[93] !== ft || t[94] !== Ot || t[95] !== gt || t[96] !== nt || t[97] !== oe || t[98] !== d || t[99] !== tt || t[100] !== se || t[101] !== r || t[102] !== a.dateFormat || t[103] !== a.enabled || t[104] !== de || t[105] !== ut || t[106] !== c || t[107] !== Ce || t[108] !== rt || t[109] !== vt || t[110] !== ht || t[111] !== at || t[112] !== bt || t[113] !== yt ? (I = se && tt && o.length > 0 ? /* @__PURE__ */ l.jsx(qi, { data: Wi(o, a.dateFormat || "yyyy").filter((p) => a.enabled ? `${p.date}` === pi(new Date(c[Y]), a.dateFormat || "yyyy") : p), width: se, height: tt, colorDomain: o.filter(Po).length === 0 ? [] : H || ui(o, "color", !0), colors: o.filter(To).length === 0 ? V ? [V] : [it.primaryColors["blue-600"]] : V || it[r].categoricalColors.colors, xAxisTitle: rt, yAxisTitle: at, refXValues: xt, refYValues: dt, showLabels: nt, radius: lt, leftMargin: E, rightMargin: ft, topMargin: ut, bottomMargin: mt, tooltip: de, onSeriesMouseOver: j, highlightAreaSettings: pt, showVoronoiTesselation: oe, highlightedDataPoints: o.filter(No).length === 0 ? [] : ge, showHighlightedDataPointsLabels: gt, selectedColor: Ot, maxRadiusValue: A(kt) ? Math.max(...o.map(Mo).filter(So)) : kt, maxXValue: A(S) ? Math.max(...o.map(Do).filter(ko)) > 0 ? Math.max(...o.map($o).filter(Vo)) : 0 : S, minXValue: A(Ut) ? Math.min(...o.map(jo).filter(Lo)) > 0 ? 0 : Math.min(...o.map(wo).filter(Co)) : Ut, maxYValue: A(Jt) ? Math.max(...o.map(Oo).filter(Ao)) > 0 ? Math.max(...o.map(bo).filter(vo)) : 0 : Jt, minYValue: A(U) ? Math.min(...o.map(yo).filter(ho)) > 0 ? 0 : Math.min(...o.map(go).filter(po)) : U, onSeriesMouseClick: s, rtl: q === "he" || q === "ar", annotations: $, customHighlightAreaSettings: u, regressionLine: Pe, resetSelectionOnDoubleClick: Xe, detailsOnClick: v, noOfXTicks: We, noOfYTicks: Ee, labelColor: W, xSuffix: ht, ySuffix: yt, xPrefix: vt, yPrefix: bt, styles: d, classNames: x, animate: Ae === !0 ? {
575
+ ] }) : null, t[42] = Y, t[43] = tt, t[44] = X, t[45] = r.enabled, t[46] = f, t[47] = Lt) : Lt = t[47];
576
+ let jt;
577
+ t[48] !== x?.colorLegend || t[49] !== I || t[50] !== se || t[51] !== D || t[52] !== o || t[53] !== H || t[54] !== bt || t[55] !== m || t[56] !== b ? (jt = H && o.filter(Wo).length !== 0 && o.length > 0 ? /* @__PURE__ */ l.jsx(Gi, { width: b, colorLegendTitle: se, colors: D || st[m].categoricalColors.colors, colorDomain: I || hi(o, "color", !0), setSelectedColor: Re, showNAColor: bt, className: x?.colorLegend }) : null, t[48] = x?.colorLegend, t[49] = I, t[50] = se, t[51] = D, t[52] = o, t[53] = H, t[54] = bt, t[55] = m, t[56] = b, t[57] = jt) : jt = t[57];
578
+ let Vt;
579
+ t[58] !== o.length ? (Vt = o.length === 0 && /* @__PURE__ */ l.jsx(Zi, {}), t[58] = o.length, t[59] = Vt) : Vt = t[59];
580
+ let Dt;
581
+ t[60] !== me || t[61] !== Ut || t[62] !== dt || t[63] !== x || t[64] !== I || t[65] !== D || t[66] !== O || t[67] !== Ye || t[68] !== o || t[69] !== A || t[70] !== je || t[71] !== yt || t[72] !== ae || t[73] !== Y || t[74] !== R || t[75] !== $ || t[76] !== F || t[77] !== Nt || t[78] !== N || t[79] !== Zt || t[80] !== Gt || t[81] !== G || t[82] !== c || t[83] !== g || t[84] !== s || t[85] !== V || t[86] !== ct || t[87] !== gt || t[88] !== ht || t[89] !== k || t[90] !== Kt || t[91] !== xt || t[92] !== he || t[93] !== vt || t[94] !== at || t[95] !== pe || t[96] !== h || t[97] !== Qt || t[98] !== Xt || t[99] !== m || t[100] !== r.dateFormat || t[101] !== r.enabled || t[102] !== le || t[103] !== pt || t[104] !== f || t[105] !== de || t[106] !== ft || t[107] !== v || t[108] !== ut || t[109] !== rt ? (Dt = Xt && Qt && o.length > 0 ? /* @__PURE__ */ l.jsx(Ki, { data: zi(o, r.dateFormat || "yyyy").filter((y) => r.enabled ? `${y.date}` === Ai(new Date(f[Y]), r.dateFormat || "yyyy") : y), width: Xt, height: Qt, colorDomain: o.filter(Ho).length === 0 ? [] : I || hi(o, "color", !0), colors: o.filter(Fo).length === 0 ? D ? [D] : [st.primaryColors["blue-600"]] : D || st[m].categoricalColors.colors, xAxisTitle: ft, yAxisTitle: ut, refXValues: gt, refYValues: ht, showLabels: at, radius: ct, leftMargin: F, rightMargin: xt, topMargin: pt, bottomMargin: dt, tooltip: le, onSeriesMouseOver: V, highlightAreaSettings: yt, showVoronoiTesselation: pe, highlightedDataPoints: o.filter(Ro).length === 0 ? [] : ae, showHighlightedDataPointsLabels: vt, selectedColor: he, maxRadiusValue: C(Nt) ? Math.max(...o.map(Io).filter(Po)) : Nt, maxXValue: C(N) ? Math.max(...o.map(Yo).filter(Xo)) > 0 ? Math.max(...o.map(To).filter(So)) : 0 : N, minXValue: C(Gt) ? Math.min(...o.map(No).filter(Mo)) > 0 ? 0 : Math.min(...o.map(ko).filter($o)) : Gt, maxYValue: C(Zt) ? Math.max(...o.map(Do).filter(Vo)) > 0 ? Math.max(...o.map(jo).filter(Lo)) : 0 : Zt, minYValue: C(G) ? Math.min(...o.map(wo).filter(Co)) > 0 ? 0 : Math.min(...o.map(Oo).filter(Ao)) : G, onSeriesMouseClick: s, rtl: $ === "he" || $ === "ar", annotations: Ut, customHighlightAreaSettings: O, regressionLine: k, resetSelectionOnDoubleClick: Kt, detailsOnClick: A, noOfXTicks: c, noOfYTicks: g, labelColor: R, styles: h, classNames: x, animate: me === !0 ? {
590
582
  duration: 0.5,
591
583
  once: !0,
592
584
  amount: 0.5
593
- } : Ae || {
585
+ } : me || {
594
586
  duration: 0,
595
587
  once: !0,
596
588
  amount: 0
597
- }, dimmedOpacity: _t, precision: Oe, customLayers: ee, useVoronoiInteraction: Ce, locale: we }) : null, t[60] = Ae, t[61] = $, t[62] = mt, t[63] = x, t[64] = H, t[65] = V, t[66] = u, t[67] = ee, t[68] = o, t[69] = v, t[70] = _t, t[71] = pt, t[72] = ge, t[73] = Y, t[74] = W, t[75] = q, t[76] = E, t[77] = we, t[78] = kt, t[79] = S, t[80] = Jt, t[81] = Ut, t[82] = U, t[83] = We, t[84] = Ee, t[85] = s, t[86] = j, t[87] = Oe, t[88] = lt, t[89] = xt, t[90] = dt, t[91] = Pe, t[92] = Xe, t[93] = ft, t[94] = Ot, t[95] = gt, t[96] = nt, t[97] = oe, t[98] = d, t[99] = tt, t[100] = se, t[101] = r, t[102] = a.dateFormat, t[103] = a.enabled, t[104] = de, t[105] = ut, t[106] = c, t[107] = Ce, t[108] = rt, t[109] = vt, t[110] = ht, t[111] = at, t[112] = bt, t[113] = yt, t[114] = I) : I = t[114];
598
- let jt;
599
- t[115] !== Lt || t[116] !== I ? (jt = /* @__PURE__ */ l.jsxs(Ei, { ref: le, children: [
600
- Lt,
601
- I
602
- ] }), t[115] = Lt, t[116] = I, t[117] = jt) : jt = t[117];
603
- let R;
604
- t[118] !== x?.footnote || t[119] !== x?.source || t[120] !== B || t[121] !== Gt || t[122] !== d?.footnote || t[123] !== d?.source || t[124] !== y ? (R = Gt || B ? /* @__PURE__ */ l.jsx(Xi, { styles: {
605
- footnote: d?.footnote,
606
- source: d?.source
589
+ }, dimmedOpacity: je, customLayers: Ye, useVoronoiInteraction: de, xNumberDisplayOptions: v, yNumberDisplayOptions: rt }) : null, t[60] = me, t[61] = Ut, t[62] = dt, t[63] = x, t[64] = I, t[65] = D, t[66] = O, t[67] = Ye, t[68] = o, t[69] = A, t[70] = je, t[71] = yt, t[72] = ae, t[73] = Y, t[74] = R, t[75] = $, t[76] = F, t[77] = Nt, t[78] = N, t[79] = Zt, t[80] = Gt, t[81] = G, t[82] = c, t[83] = g, t[84] = s, t[85] = V, t[86] = ct, t[87] = gt, t[88] = ht, t[89] = k, t[90] = Kt, t[91] = xt, t[92] = he, t[93] = vt, t[94] = at, t[95] = pe, t[96] = h, t[97] = Qt, t[98] = Xt, t[99] = m, t[100] = r.dateFormat, t[101] = r.enabled, t[102] = le, t[103] = pt, t[104] = f, t[105] = de, t[106] = ft, t[107] = v, t[108] = ut, t[109] = rt, t[110] = Dt) : Dt = t[110];
590
+ let it;
591
+ t[111] !== Vt || t[112] !== Dt ? (it = /* @__PURE__ */ l.jsxs(Ui, { ref: ye, children: [
592
+ Vt,
593
+ Dt
594
+ ] }), t[111] = Vt, t[112] = Dt, t[113] = it) : it = t[113];
595
+ let $t;
596
+ t[114] !== x?.footnote || t[115] !== x?.source || t[116] !== W || t[117] !== Ft || t[118] !== h?.footnote || t[119] !== h?.source || t[120] !== b ? ($t = Ft || W ? /* @__PURE__ */ l.jsx(Wi, { styles: {
597
+ footnote: h?.footnote,
598
+ source: h?.source
607
599
  }, classNames: {
608
600
  footnote: x?.footnote,
609
601
  source: x?.source
610
- }, sources: Gt, footNote: B, width: y }) : null, t[118] = x?.footnote, t[119] = x?.source, t[120] = B, t[121] = Gt, t[122] = d?.footnote, t[123] = d?.source, t[124] = y, t[125] = R) : R = t[125];
611
- let ue;
612
- return t[126] !== Te || t[127] !== ct || t[128] !== $t || t[129] !== F || t[130] !== q || t[131] !== b || t[132] !== st || t[133] !== pe || t[134] !== je || t[135] !== Ve || t[136] !== et || t[137] !== Ct || t[138] !== wt || t[139] !== jt || t[140] !== R || t[141] !== r || t[142] !== y ? (ue = /* @__PURE__ */ l.jsxs(Gi, { className: je, style: Ve, id: $t, ref: Ye, "aria-label": Te, backgroundColor: ct, theme: r, language: q, minHeight: b, width: y, height: F, relativeHeight: pe, padding: st, children: [
602
+ }, sources: Ft, footNote: W, width: b }) : null, t[114] = x?.footnote, t[115] = x?.source, t[116] = W, t[117] = Ft, t[118] = h?.footnote, t[119] = h?.source, t[120] = b, t[121] = $t) : $t = t[121];
603
+ let oe;
604
+ return t[122] !== we || t[123] !== mt || t[124] !== Mt || t[125] !== P || t[126] !== $ || t[127] !== At || t[128] !== lt || t[129] !== re || t[130] !== Ct || t[131] !== wt || t[132] !== et || t[133] !== Lt || t[134] !== jt || t[135] !== it || t[136] !== $t || t[137] !== m || t[138] !== b ? (oe = /* @__PURE__ */ l.jsxs(Ji, { className: Ct, style: wt, id: Mt, ref: Pt, "aria-label": we, backgroundColor: mt, theme: m, language: $, minHeight: At, width: b, height: P, relativeHeight: re, padding: lt, children: [
613
605
  et,
614
- Ct,
615
- wt,
606
+ Lt,
616
607
  jt,
617
- R
618
- ] }), t[126] = Te, t[127] = ct, t[128] = $t, t[129] = F, t[130] = q, t[131] = b, t[132] = st, t[133] = pe, t[134] = je, t[135] = Ve, t[136] = et, t[137] = Ct, t[138] = wt, t[139] = jt, t[140] = R, t[141] = r, t[142] = y, t[143] = ue) : ue = t[143], ue;
608
+ it,
609
+ $t
610
+ ] }), t[122] = we, t[123] = mt, t[124] = Mt, t[125] = P, t[126] = $, t[127] = At, t[128] = lt, t[129] = re, t[130] = Ct, t[131] = wt, t[132] = et, t[133] = Lt, t[134] = jt, t[135] = it, t[136] = $t, t[137] = m, t[138] = b, t[139] = oe) : oe = t[139], oe;
619
611
  }
620
- function po(i) {
612
+ function Ao(i) {
621
613
  return i != null;
622
614
  }
623
- function go(i) {
615
+ function Oo(i) {
624
616
  return i.y;
625
617
  }
626
- function ho(i) {
618
+ function Co(i) {
627
619
  return i != null;
628
620
  }
629
- function yo(i) {
621
+ function wo(i) {
630
622
  return i.y;
631
623
  }
632
- function vo(i) {
624
+ function Lo(i) {
633
625
  return i != null;
634
626
  }
635
- function bo(i) {
627
+ function jo(i) {
636
628
  return i.y;
637
629
  }
638
- function Ao(i) {
630
+ function Vo(i) {
639
631
  return i != null;
640
632
  }
641
- function Oo(i) {
633
+ function Do(i) {
642
634
  return i.y;
643
635
  }
644
- function Co(i) {
636
+ function $o(i) {
645
637
  return i != null;
646
638
  }
647
- function wo(i) {
639
+ function ko(i) {
648
640
  return i.x;
649
641
  }
650
- function Lo(i) {
642
+ function Mo(i) {
651
643
  return i != null;
652
644
  }
653
- function jo(i) {
645
+ function No(i) {
654
646
  return i.x;
655
647
  }
656
- function Vo(i) {
648
+ function So(i) {
657
649
  return i != null;
658
650
  }
659
- function $o(i) {
651
+ function To(i) {
660
652
  return i.x;
661
653
  }
662
- function ko(i) {
654
+ function Xo(i) {
663
655
  return i != null;
664
656
  }
665
- function Do(i) {
657
+ function Yo(i) {
666
658
  return i.x;
667
659
  }
668
- function So(i) {
660
+ function Po(i) {
669
661
  return i != null;
670
662
  }
671
- function Mo(i) {
663
+ function Io(i) {
672
664
  return i.radius;
673
665
  }
674
- function No(i) {
666
+ function Ro(i) {
675
667
  return i.label;
676
668
  }
677
- function To(i) {
669
+ function Fo(i) {
678
670
  return i.color;
679
671
  }
680
- function Po(i) {
672
+ function Ho(i) {
681
673
  return i.color;
682
674
  }
683
- function Xo(i) {
675
+ function Wo(i) {
684
676
  return i.color;
685
677
  }
686
- function Yo(i) {
678
+ function Eo(i) {
687
679
  return i !== void 0;
688
680
  }
689
- function Io(i) {
681
+ function Go(i) {
690
682
  return i !== void 0;
691
683
  }
692
- function Ro(i) {
684
+ function Zo(i) {
693
685
  return i.data;
694
686
  }
695
- function Fo(i) {
687
+ function qo(i) {
696
688
  return i !== void 0;
697
689
  }
698
- function Ho(i) {
690
+ function Bo(i) {
699
691
  return i.data;
700
692
  }
701
- function Wo(i, t) {
693
+ function zo(i, t) {
702
694
  return i - t;
703
695
  }
704
- function Eo(i) {
696
+ function Uo(i) {
705
697
  return i.date;
706
698
  }
707
699
  export {
708
- ws as ScatterPlot
700
+ ks as ScatterPlot
709
701
  };
710
702
  //# sourceMappingURL=ScatterPlot.js.map