@undp/data-viz 2.4.1 → 2.5.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 (271) 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 +309 -304
  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 +314 -311
  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.cjs.map +1 -1
  68. package/dist/DotDensityMap.d.ts +1 -1
  69. package/dist/DotDensityMap.js +270 -267
  70. package/dist/DotDensityMap.js.map +1 -1
  71. package/dist/DualAxisLineChart.cjs +1 -1
  72. package/dist/DualAxisLineChart.cjs.map +1 -1
  73. package/dist/DualAxisLineChart.d.ts +13 -9
  74. package/dist/DualAxisLineChart.js +341 -351
  75. package/dist/DualAxisLineChart.js.map +1 -1
  76. package/dist/DumbbellChart.cjs +1 -1
  77. package/dist/DumbbellChart.cjs.map +1 -1
  78. package/dist/DumbbellChart.d.ts +11 -9
  79. package/dist/DumbbellChart.js +592 -593
  80. package/dist/DumbbellChart.js.map +1 -1
  81. package/dist/GeoHubCompareMaps.cjs +1 -1
  82. package/dist/GeoHubCompareMaps.d.ts +1 -1
  83. package/dist/GeoHubCompareMaps.js +1 -1
  84. package/dist/GeoHubMap.cjs +1 -1
  85. package/dist/GeoHubMap.d.ts +1 -1
  86. package/dist/GeoHubMap.js +1 -1
  87. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  88. package/dist/GeoHubMapWithLayerSelection.d.ts +1 -1
  89. package/dist/GeoHubMapWithLayerSelection.js +1 -1
  90. package/dist/GraphEl-BgkDbq50.cjs +2 -0
  91. package/dist/GraphEl-BgkDbq50.cjs.map +1 -0
  92. package/dist/GraphEl-Ch0uAeZw.js +1830 -0
  93. package/dist/GraphEl-Ch0uAeZw.js.map +1 -0
  94. package/dist/GriddedGraphs.cjs +1 -1
  95. package/dist/GriddedGraphs.d.ts +29 -16
  96. package/dist/GriddedGraphs.js +1 -1
  97. package/dist/GriddedGraphsFromConfig.d.ts +29 -16
  98. package/dist/HeatMap.cjs +1 -1
  99. package/dist/HeatMap.cjs.map +1 -1
  100. package/dist/HeatMap.d.ts +11 -9
  101. package/dist/HeatMap.js +203 -205
  102. package/dist/HeatMap.js.map +1 -1
  103. package/dist/Histogram.cjs +1 -1
  104. package/dist/Histogram.cjs.map +1 -1
  105. package/dist/Histogram.d.ts +11 -5
  106. package/dist/Histogram.js +88 -89
  107. package/dist/Histogram.js.map +1 -1
  108. package/dist/HybridMap.cjs +1 -1
  109. package/dist/HybridMap.cjs.map +1 -1
  110. package/dist/HybridMap.d.ts +11 -3
  111. package/dist/HybridMap.js +339 -336
  112. package/dist/HybridMap.js.map +1 -1
  113. package/dist/ImageDownloadButton.cjs +1 -1
  114. package/dist/ImageDownloadButton.js +1 -1
  115. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  116. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  117. package/dist/LineChartWithConfidenceInterval.d.ts +11 -9
  118. package/dist/LineChartWithConfidenceInterval.js +393 -395
  119. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  120. package/dist/LinearColorLegend.cjs +1 -1
  121. package/dist/LinearColorLegend.js +1 -1
  122. package/dist/MultiGraphDashboard.d.ts +29 -16
  123. package/dist/MultiGraphDashboardFromConfig.d.ts +29 -16
  124. package/dist/MultiGraphDashboardWideToLongFormat.d.ts +1 -1
  125. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +1 -1
  126. package/dist/MultiLineAltChart.cjs +1 -1
  127. package/dist/MultiLineAltChart.cjs.map +1 -1
  128. package/dist/MultiLineAltChart.d.ts +11 -9
  129. package/dist/MultiLineAltChart.js +411 -413
  130. package/dist/MultiLineAltChart.js.map +1 -1
  131. package/dist/MultiLineChart.cjs +1 -1
  132. package/dist/MultiLineChart.cjs.map +1 -1
  133. package/dist/MultiLineChart.d.ts +11 -9
  134. package/dist/MultiLineChart.js +438 -440
  135. package/dist/MultiLineChart.js.map +1 -1
  136. package/dist/ParetoChart.cjs +1 -1
  137. package/dist/ParetoChart.cjs.map +1 -1
  138. package/dist/ParetoChart.d.ts +13 -13
  139. package/dist/ParetoChart.js +347 -355
  140. package/dist/ParetoChart.js.map +1 -1
  141. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +29 -16
  142. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +29 -16
  143. package/dist/PerformanceIntensiveScrollStory.d.ts +29 -16
  144. package/dist/RadarChart.cjs +1 -1
  145. package/dist/RadarChart.cjs.map +1 -1
  146. package/dist/RadarChart.d.ts +11 -5
  147. package/dist/RadarChart.js +213 -213
  148. package/dist/RadarChart.js.map +1 -1
  149. package/dist/SankeyChart.cjs +1 -1
  150. package/dist/SankeyChart.cjs.map +1 -1
  151. package/dist/SankeyChart.d.ts +11 -9
  152. package/dist/SankeyChart.js +448 -450
  153. package/dist/SankeyChart.js.map +1 -1
  154. package/dist/ScatterPlot.cjs +1 -1
  155. package/dist/ScatterPlot.cjs.map +1 -1
  156. package/dist/ScatterPlot.d.ts +15 -13
  157. package/dist/ScatterPlot.js +477 -483
  158. package/dist/ScatterPlot.js.map +1 -1
  159. package/dist/ScrollStory.d.ts +29 -16
  160. package/dist/SimpleLineChart.cjs +1 -1
  161. package/dist/SimpleLineChart.cjs.map +1 -1
  162. package/dist/SimpleLineChart.d.ts +11 -9
  163. package/dist/SimpleLineChart.js +362 -364
  164. package/dist/SimpleLineChart.js.map +1 -1
  165. package/dist/SingleGraphDashboard.cjs +1 -1
  166. package/dist/SingleGraphDashboard.d.ts +29 -16
  167. package/dist/SingleGraphDashboard.js +1 -1
  168. package/dist/SingleGraphDashboardFromConfig.d.ts +29 -16
  169. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +29 -16
  170. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +29 -16
  171. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  172. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  173. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +29 -16
  174. package/dist/SingleGraphDashboardThreeDGraphs.js +40 -39
  175. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  176. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +29 -16
  177. package/dist/SlopeChart.cjs +1 -1
  178. package/dist/SlopeChart.d.ts +1 -1
  179. package/dist/SlopeChart.js +2 -2
  180. package/dist/SparkLine.cjs +1 -1
  181. package/dist/SparkLine.d.ts +1 -1
  182. package/dist/SparkLine.js +1 -1
  183. package/dist/StatCardFromData.cjs +1 -1
  184. package/dist/StatCardFromData.cjs.map +1 -1
  185. package/dist/StatCardFromData.d.ts +11 -9
  186. package/dist/StatCardFromData.js +113 -116
  187. package/dist/StatCardFromData.js.map +1 -1
  188. package/dist/StripChart.cjs +1 -1
  189. package/dist/StripChart.cjs.map +1 -1
  190. package/dist/StripChart.d.ts +11 -9
  191. package/dist/StripChart.js +434 -435
  192. package/dist/StripChart.js.map +1 -1
  193. package/dist/ThreeDGlobe.cjs +1 -1
  194. package/dist/ThreeDGlobe.cjs.map +1 -1
  195. package/dist/ThreeDGlobe.d.ts +11 -3
  196. package/dist/ThreeDGlobe.js +143 -143
  197. package/dist/ThreeDGlobe.js.map +1 -1
  198. package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
  199. package/dist/ThresholdColorLegendWithMouseOver.js +1 -1
  200. package/dist/{Tooltip-Bj-s__cI.js → Tooltip-3EYDVa3w.js} +2 -2
  201. package/dist/{Tooltip-Bj-s__cI.js.map → Tooltip-3EYDVa3w.js.map} +1 -1
  202. package/dist/{Tooltip-Hr46paWP.cjs → Tooltip-C9F3uYG0.cjs} +2 -2
  203. package/dist/{Tooltip-Hr46paWP.cjs.map → Tooltip-C9F3uYG0.cjs.map} +1 -1
  204. package/dist/TreeMapGraph.cjs +1 -1
  205. package/dist/TreeMapGraph.cjs.map +1 -1
  206. package/dist/TreeMapGraph.d.ts +11 -9
  207. package/dist/TreeMapGraph.js +369 -371
  208. package/dist/TreeMapGraph.js.map +1 -1
  209. package/dist/Types.d.ts +29 -16
  210. package/dist/UnitChart.cjs +1 -1
  211. package/dist/UnitChart.cjs.map +1 -1
  212. package/dist/UnitChart.d.ts +11 -5
  213. package/dist/UnitChart.js +118 -119
  214. package/dist/UnitChart.js.map +1 -1
  215. package/dist/WaterfallChart.cjs +1 -1
  216. package/dist/WaterfallChart.cjs.map +1 -1
  217. package/dist/WaterfallChart.d.ts +11 -9
  218. package/dist/WaterfallChart.js +306 -308
  219. package/dist/WaterfallChart.js.map +1 -1
  220. package/dist/XTicksAndGridLines-B4UhDVyU.cjs +2 -0
  221. package/dist/XTicksAndGridLines-B4UhDVyU.cjs.map +1 -0
  222. package/dist/XTicksAndGridLines-CkYwVshF.js +40 -0
  223. package/dist/XTicksAndGridLines-CkYwVshF.js.map +1 -0
  224. package/dist/YTicksAndGridLines-BbujwxOB.js +40 -0
  225. package/dist/YTicksAndGridLines-BbujwxOB.js.map +1 -0
  226. package/dist/YTicksAndGridLines-sT3zdCs6.cjs +2 -0
  227. package/dist/YTicksAndGridLines-sT3zdCs6.cjs.map +1 -0
  228. package/dist/{imageDownload-Diofs_vY.js → imageDownload-BYsNEtMS.js} +11 -11
  229. package/dist/{imageDownload-Diofs_vY.js.map → imageDownload-BYsNEtMS.js.map} +1 -1
  230. package/dist/{imageDownload-61q6jyJW.cjs → imageDownload-CkMwA7Cw.cjs} +4 -4
  231. package/dist/{imageDownload-61q6jyJW.cjs.map → imageDownload-CkMwA7Cw.cjs.map} +1 -1
  232. package/dist/index-BPyj_6hG.js +375 -0
  233. package/dist/index-BPyj_6hG.js.map +1 -0
  234. package/dist/index-DuLvdHo2.cjs +2 -0
  235. package/dist/index-DuLvdHo2.cjs.map +1 -0
  236. package/dist/index.cjs +1 -1
  237. package/dist/index.d.ts +108 -245
  238. package/dist/index.js +3 -3
  239. package/dist/numberFormattingFunction-BUUV_luR.js +28 -0
  240. package/dist/numberFormattingFunction-BUUV_luR.js.map +1 -0
  241. package/dist/numberFormattingFunction-u2iNHL_c.cjs +2 -0
  242. package/dist/numberFormattingFunction-u2iNHL_c.cjs.map +1 -0
  243. package/dist/{string2HTML-ZoGd08P_.cjs → string2HTML-30nfIm8R.cjs} +2 -2
  244. package/dist/{string2HTML-ZoGd08P_.cjs.map → string2HTML-30nfIm8R.cjs.map} +1 -1
  245. package/dist/{string2HTML-BrFperRM.js → string2HTML-DL-pInUB.js} +2 -2
  246. package/dist/{string2HTML-BrFperRM.js.map → string2HTML-DL-pInUB.js.map} +1 -1
  247. package/dist/style.css +1 -1
  248. package/dist/utils.cjs +1 -1
  249. package/dist/utils.d.ts +1 -1
  250. package/dist/utils.js +2 -2
  251. package/package.json +2 -2
  252. package/dist/GraphEl-B73N4RIA.js +0 -1906
  253. package/dist/GraphEl-B73N4RIA.js.map +0 -1
  254. package/dist/GraphEl-Lt1og0C-.cjs +0 -2
  255. package/dist/GraphEl-Lt1og0C-.cjs.map +0 -1
  256. package/dist/XTicksAndGridLines-C5DuC5oY.cjs +0 -2
  257. package/dist/XTicksAndGridLines-C5DuC5oY.cjs.map +0 -1
  258. package/dist/XTicksAndGridLines-gdbGX2rm.js +0 -39
  259. package/dist/XTicksAndGridLines-gdbGX2rm.js.map +0 -1
  260. package/dist/YTicksAndGridLines-CsNSq9W9.js +0 -39
  261. package/dist/YTicksAndGridLines-CsNSq9W9.js.map +0 -1
  262. package/dist/YTicksAndGridLines-DFjm8RCc.cjs +0 -2
  263. package/dist/YTicksAndGridLines-DFjm8RCc.cjs.map +0 -1
  264. package/dist/index-B0Awa_de.js +0 -377
  265. package/dist/index-B0Awa_de.js.map +0 -1
  266. package/dist/index-CP8cmNzt.cjs +0 -2
  267. package/dist/index-CP8cmNzt.cjs.map +0 -1
  268. package/dist/numberFormattingFunction-Cn9R7CM9.cjs +0 -2
  269. package/dist/numberFormattingFunction-Cn9R7CM9.cjs.map +0 -1
  270. package/dist/numberFormattingFunction-DqMf_v1m.js +0 -28
  271. package/dist/numberFormattingFunction-DqMf_v1m.js.map +0 -1
@@ -1,216 +1,217 @@
1
- import { c as We, j as o, m as Le } from "./index-CHPV5EwG-BzibaIRc.js";
2
- import { useRef as ke, useState as oe, useEffect as Te } from "react";
3
- import { p as C, f as Fe } from "./parse-Dv4of-PN.js";
4
- import { l as He, a as Ye } from "./simple-statistics-flVzqVtt.js";
5
- import { o as Pe } from "./index-BZQYSqar.js";
6
- import { n as Ve } from "./numberFormattingFunction-DqMf_v1m.js";
7
- import { T as Ee } from "./Tooltip-Bj-s__cI.js";
8
- import { c as E } from "./checkIfNullOrUndefined-DmfiKkNw.js";
9
- import { g as Xe, A as Ge, C as Be } from "./customArea-D89lETG0.js";
1
+ import { c as Re, j as o, m as be } from "./index-CHPV5EwG-BzibaIRc.js";
2
+ import { useRef as De, useState as Ut, useEffect as We } from "react";
3
+ import { p as b, f as He } from "./parse-Dv4of-PN.js";
4
+ import { l as Ye, a as Pe } from "./simple-statistics-flVzqVtt.js";
5
+ import { o as Ee } from "./index-BZQYSqar.js";
6
+ import { n as Le } from "./numberFormattingFunction-BUUV_luR.js";
7
+ import { T as Xe } from "./Tooltip-3EYDVa3w.js";
8
+ import { c as P } from "./checkIfNullOrUndefined-DmfiKkNw.js";
9
+ import { g as Ge, A as Ze, C as Be } from "./customArea-D89lETG0.js";
10
10
  import { A as ze } from "./AxisTitle-CyLCqpW6.js";
11
11
  import { A as Ue } from "./Axis-CNZYWzH0.js";
12
12
  import { a as qe } from "./ReferenceLine-D41VuUhE.js";
13
13
  import { R as Je } from "./RegressionLine-CuwB42I6.js";
14
- import { Y as Ke } from "./YTicksAndGridLines-CsNSq9W9.js";
14
+ import { Y as Ke } from "./YTicksAndGridLines-BbujwxOB.js";
15
15
  import { H as Qe } from "./index-DHVGV8Df.js";
16
- import { t as Ze } from "./time-vyz6Y89P.js";
17
- import { a as _e } from "./linear-DNXM5Pdl.js";
18
- import { l as Ne, c as ti } from "./line-DFlZsxI1.js";
19
- import { c as ei, s as ii, a as ni, m as oi } from "./step-BrDul-H4.js";
20
- import { a as ai } from "./area-B6r7cv2o.js";
21
- import { s as si } from "./select-DKy99ogv.js";
16
+ import { t as _e } from "./time-vyz6Y89P.js";
17
+ import { a as ti } from "./linear-DNXM5Pdl.js";
18
+ import { l as Te, c as ei } from "./line-DFlZsxI1.js";
19
+ import { c as ii, s as ni, a as oi, m as ai } from "./step-BrDul-H4.js";
20
+ import { a as si } from "./area-B6r7cv2o.js";
21
+ import { s as ri } from "./select-DKy99ogv.js";
22
22
  import { m as V } from "./proxy-BsxtcZKa.js";
23
- import { a as ri } from "./init-BhZylTFx.js";
24
- import { p as li } from "./pointer-CWRWOsrb.js";
25
- import { u as ci } from "./use-in-view-KOXq5Kmc.js";
26
- import { GraphFooter as mi } from "./GraphFooter.js";
27
- import { GraphHeader as fi } from "./GraphHeader.js";
28
- import { Colors as De } from "./Colors.js";
29
- import { ColorLegend as ui } from "./ColorLegend.js";
30
- import { E as hi } from "./EmptyState-CaxXCkiN.js";
23
+ import { a as li } from "./init-BhZylTFx.js";
24
+ import { p as ci } from "./pointer-CWRWOsrb.js";
25
+ import { u as mi } from "./use-in-view-KOXq5Kmc.js";
26
+ import { GraphFooter as fi } from "./GraphFooter.js";
27
+ import { GraphHeader as ui } from "./GraphHeader.js";
28
+ import { Colors as Ve } from "./Colors.js";
29
+ import { ColorLegend as hi } from "./ColorLegend.js";
30
+ import { E as pi } from "./EmptyState-CaxXCkiN.js";
31
31
  import { a as yi, G as di } from "./GraphContainer-B8ZqOzKI.js";
32
- import { g as pi } from "./getNoOfTicks-CpmRjcRF.js";
33
- function xi(i) {
34
- const t = We.c(103), {
35
- data: d,
36
- width: J,
37
- height: Pt,
32
+ import { g as xi } from "./getNoOfTicks-CpmRjcRF.js";
33
+ function gi(i) {
34
+ const t = Re.c(104), {
35
+ data: x,
36
+ width: tt,
37
+ height: et,
38
38
  lineColor: D,
39
- suffix: T,
40
- prefix: A,
39
+ suffix: k,
40
+ prefix: h,
41
41
  dateFormat: l,
42
- highlightAreaSettings: p,
43
- showValues: Et,
44
- noOfXTicks: pe,
45
- rightMargin: Xt,
46
- leftMargin: W,
47
- topMargin: Gt,
48
- bottomMargin: ht,
49
- tooltip: K,
50
- onSeriesMouseOver: Bt,
51
- refValues: ae,
52
- minValue: se,
53
- maxValue: yt,
42
+ highlightAreaSettings: kt,
43
+ showValues: re,
44
+ noOfXTicks: le,
45
+ rightMargin: It,
46
+ leftMargin: I,
47
+ topMargin: ht,
48
+ bottomMargin: St,
49
+ tooltip: pt,
50
+ onSeriesMouseOver: $t,
51
+ refValues: qt,
52
+ minValue: Nt,
53
+ maxValue: E,
54
54
  animate: n,
55
- rtl: dt,
56
- strokeWidth: Q,
57
- showDots: re,
58
- annotations: le,
59
- customHighlightAreaSettings: pt,
60
- regressionLine: xt,
55
+ rtl: Tt,
56
+ strokeWidth: yt,
57
+ showDots: Jt,
58
+ annotations: Kt,
59
+ customHighlightAreaSettings: dt,
60
+ regressionLine: Wt,
61
61
  showIntervalDots: ce,
62
- showIntervalValues: xe,
63
- intervalLineStrokeWidth: zt,
64
- intervalLineColors: j,
65
- intervalAreaColor: Ut,
66
- intervalAreaOpacity: qt,
67
- yAxisTitle: gt,
68
- noOfYTicks: ge,
69
- minDate: me,
70
- maxDate: fe,
71
- curveType: vt,
72
- styles: x,
73
- classNames: g,
74
- precision: R,
75
- customLayers: X,
76
- locale: O
77
- } = i, wt = ke(null);
78
- let Mt;
79
- t[0] !== n.amount || t[1] !== n.once ? (Mt = {
62
+ showIntervalValues: me,
63
+ intervalLineStrokeWidth: Rt,
64
+ intervalLineColors: w,
65
+ intervalAreaColor: Ft,
66
+ intervalAreaOpacity: fe,
67
+ yAxisTitle: xt,
68
+ noOfYTicks: ue,
69
+ minDate: Qt,
70
+ maxDate: _t,
71
+ curveType: gt,
72
+ styles: g,
73
+ classNames: v,
74
+ precision: L,
75
+ customLayers: S,
76
+ locale: N,
77
+ padZeros: $
78
+ } = i, Ht = De(null);
79
+ let vt;
80
+ t[0] !== n.amount || t[1] !== n.once ? (vt = {
80
81
  once: n.once,
81
82
  amount: n.amount
82
- }, t[0] = n.amount, t[1] = n.once, t[2] = Mt) : Mt = t[2];
83
- const c = ci(wt, Mt), [u, ve] = oe(!1);
84
- let Z, _;
85
- t[3] !== n.duration || t[4] !== u || t[5] !== c ? (Z = () => {
86
- if (c && !u) {
83
+ }, t[0] = n.amount, t[1] = n.once, t[2] = vt) : vt = t[2];
84
+ const c = mi(Ht, vt), [p, te] = Ut(!1);
85
+ let X, G;
86
+ t[3] !== n.duration || t[4] !== p || t[5] !== c ? (X = () => {
87
+ if (c && !p) {
87
88
  const e = setTimeout(() => {
88
- ve(!0);
89
+ te(!0);
89
90
  }, (n.duration + 0.5) * 1e3);
90
91
  return () => clearTimeout(e);
91
92
  }
92
- }, _ = [c, u, n.duration], t[3] = n.duration, t[4] = u, t[5] = c, t[6] = Z, t[7] = _) : (Z = t[6], _ = t[7]), Te(Z, _);
93
- const tt = vt === "linear" ? ti : vt === "step" ? ei : vt === "stepAfter" ? ii : vt === "stepBefore" ? ni : oi, [b, jt] = oe(void 0), [Ct, h] = oe(void 0), [m, ue] = oe(void 0), et = gt ? W + 30 : W;
94
- let At;
95
- t[8] !== ht || t[9] !== Xt || t[10] !== et || t[11] !== Gt ? (At = {
96
- top: Gt,
97
- bottom: ht,
98
- left: et,
99
- right: Xt
100
- }, t[8] = ht, t[9] = Xt, t[10] = et, t[11] = Gt, t[12] = At) : At = t[12];
101
- const w = At, it = ke(null);
93
+ }, G = [c, p, n.duration], t[3] = n.duration, t[4] = p, t[5] = c, t[6] = X, t[7] = G) : (X = t[6], G = t[7]), We(X, G);
94
+ const wt = gt === "linear" ? ei : gt === "step" ? ii : gt === "stepAfter" ? ni : gt === "stepBefore" ? oi : ai, [m, u] = Ut(void 0), [Z, y] = Ut(void 0), [it, Yt] = Ut(void 0), Mt = xt ? I + 30 : I;
102
95
  let nt;
103
- t[13] !== l ? (nt = (e) => ({
104
- date: C(`${e.date}`, l, /* @__PURE__ */ new Date()),
96
+ t[8] !== St || t[9] !== It || t[10] !== Mt || t[11] !== ht ? (nt = {
97
+ top: ht,
98
+ bottom: St,
99
+ left: Mt,
100
+ right: It
101
+ }, t[8] = St, t[9] = It, t[10] = Mt, t[11] = ht, t[12] = nt) : nt = t[12];
102
+ const j = nt, ot = De(null);
103
+ let at;
104
+ t[13] !== l ? (at = (e) => ({
105
+ date: b(`${e.date}`, l, /* @__PURE__ */ new Date()),
105
106
  y: e.y,
106
- yMin: E(e.yMin) ? e.y : e.yMin,
107
- yMax: E(e.yMax) ? e.y : e.yMax,
107
+ yMin: P(e.yMin) ? e.y : e.yMin,
108
+ yMax: P(e.yMax) ? e.y : e.yMax,
108
109
  data: e.data
109
- }), t[13] = l, t[14] = nt) : nt = t[14];
110
- const s = Pe(d.filter(Ii).map(nt), ["date"], ["asc"]);
111
- let ot;
112
- if (t[15] !== l || t[16] !== p) {
110
+ }), t[13] = l, t[14] = at) : at = t[14];
111
+ const s = Ee(x.filter(Si).map(at), ["date"], ["asc"]);
112
+ let B;
113
+ if (t[15] !== l || t[16] !== kt) {
113
114
  let e;
114
- t[18] !== l ? (e = (y) => ({
115
- ...y,
116
- coordinates: [y.coordinates[0] === null ? null : C(`${y.coordinates[0]}`, l, /* @__PURE__ */ new Date()), y.coordinates[1] === null ? null : C(`${y.coordinates[1]}`, l, /* @__PURE__ */ new Date())]
117
- }), t[18] = l, t[19] = e) : e = t[19], ot = p.map(e), t[15] = l, t[16] = p, t[17] = ot;
115
+ t[18] !== l ? (e = (d) => ({
116
+ ...d,
117
+ coordinates: [d.coordinates[0] === null ? null : b(`${d.coordinates[0]}`, l, /* @__PURE__ */ new Date()), d.coordinates[1] === null ? null : b(`${d.coordinates[1]}`, l, /* @__PURE__ */ new Date())]
118
+ }), t[18] = l, t[19] = e) : e = t[19], B = kt.map(e), t[15] = l, t[16] = kt, t[17] = B;
118
119
  } else
119
- ot = t[17];
120
- const Ot = ot;
121
- let at;
122
- if (t[20] !== pt || t[21] !== l) {
120
+ B = t[17];
121
+ const jt = B;
122
+ let z;
123
+ if (t[20] !== dt || t[21] !== l) {
123
124
  let e;
124
- t[23] !== l ? (e = (y) => ({
125
- ...y,
126
- coordinates: y.coordinates.map((q, ne) => ne % 2 === 0 ? C(`${q}`, l, /* @__PURE__ */ new Date()) : q)
127
- }), t[23] = l, t[24] = e) : e = t[24], at = pt.map(e), t[20] = pt, t[21] = l, t[22] = at;
125
+ t[23] !== l ? (e = (d) => ({
126
+ ...d,
127
+ coordinates: d.coordinates.map((_, zt) => zt % 2 === 0 ? b(`${_}`, l, /* @__PURE__ */ new Date()) : _)
128
+ }), t[23] = l, t[24] = e) : e = t[24], z = dt.map(e), t[20] = dt, t[21] = l, t[22] = z;
128
129
  } else
129
- at = t[22];
130
- const he = at, f = J - w.left - w.right, v = Pt - w.top - w.bottom, Jt = me ? C(`${me}`, l, /* @__PURE__ */ new Date()) : s[0].date, ye = fe ? C(`${fe}`, l, /* @__PURE__ */ new Date()) : s[s.length - 1].date, M = E(se) ? Math.min(...s.map(ki)) ? Math.min(...s.map(Di)) > 0 ? 0 : Math.min(...s.map(Vi)) : 0 : se, G = Math.max(...s.map(Li)) ? Math.max(...s.map(bi)) : 0, a = Ze().domain([Jt, ye]).range([0, f]);
130
+ z = t[22];
131
+ const ee = z, f = tt - j.left - j.right, M = et - j.top - j.bottom, ie = Qt ? b(`${Qt}`, l, /* @__PURE__ */ new Date()) : s[0].date, ne = _t ? b(`${_t}`, l, /* @__PURE__ */ new Date()) : s[s.length - 1].date, C = P(Nt) ? Math.min(...s.map(Ii)) ? Math.min(...s.map(ki)) > 0 ? 0 : Math.min(...s.map(Di)) : 0 : Nt, U = Math.max(...s.map(Vi)) ? Math.max(...s.map(Li)) : 0, a = _e().domain([ie, ne]).range([0, f]);
131
132
  let st;
132
- t[25] !== G || t[26] !== yt ? (st = E(yt) ? G > 0 ? G : 0 : yt, t[25] = G, t[26] = yt, t[27] = st) : st = t[27];
133
- const r = _e().domain([M, st]).range([v, 0]).nice(), Kt = Ne().x((e) => a(e.date)).y((e) => r(e.y)).curve(tt), bt = Ne().x((e) => a(e.date)).y((e) => r(e.yMin)).curve(tt), Qt = Ne().x((e) => a(e.date)).y((e) => r(e.yMax)).curve(tt), Zt = ai().x((e) => a(e.date)).y0((e) => r(e.yMin)).y1((e) => r(e.yMax)).curve(tt), _t = r.ticks(ge), te = a.ticks(pe);
134
- Te(() => {
135
- const e = (q) => {
136
- const ne = s[ri(s.map(Oi), a.invert(li(q)[0]), 0)];
137
- jt(ne || s[s.length - 1]), Bt?.(ne || s[s.length - 1]), ue(q.clientY), h(q.clientX);
138
- }, y = () => {
139
- jt(void 0), h(void 0), ue(void 0), Bt?.(void 0);
133
+ t[25] !== U || t[26] !== E ? (st = P(E) ? U > 0 ? U : 0 : E, t[25] = U, t[26] = E, t[27] = st) : st = t[27];
134
+ const r = ti().domain([C, st]).range([M, 0]).nice(), Ct = Te().x((e) => a(e.date)).y((e) => r(e.y)).curve(wt), At = Te().x((e) => a(e.date)).y((e) => r(e.yMin)).curve(wt), T = Te().x((e) => a(e.date)).y((e) => r(e.yMax)).curve(wt), Pt = si().x((e) => a(e.date)).y0((e) => r(e.yMin)).y1((e) => r(e.yMax)).curve(wt), Et = r.ticks(ue), oe = a.ticks(le);
135
+ We(() => {
136
+ const e = (_) => {
137
+ const zt = s[li(s.map(bi), a.invert(ci(_)[0]), 0)];
138
+ u(zt || s[s.length - 1]), $t?.(zt || s[s.length - 1]), Yt(_.clientY), y(_.clientX);
139
+ }, d = () => {
140
+ u(void 0), y(void 0), Yt(void 0), $t?.(void 0);
140
141
  };
141
- si(it.current).on("mousemove", e).on("mouseout", y);
142
- }, [a, s, Bt]);
143
- const ee = He(s.filter(Ai).map((e) => [a(e.date), r(e.y)])), Lt = Ye(ee);
144
- let L;
145
- t[28] !== n || t[29] !== v || t[30] !== f || t[31] !== Ot || t[32] !== c || t[33] !== a ? (L = /* @__PURE__ */ o.jsx(Qe, { areaSettings: Ot, width: f, height: v, scale: a, animate: n, isInView: c }), t[28] = n, t[29] = v, t[30] = f, t[31] = Ot, t[32] = c, t[33] = a, t[34] = L) : L = t[34];
146
- const Vt = x?.yAxis?.gridLines, Dt = x?.yAxis?.labels;
142
+ ri(ot.current).on("mousemove", e).on("mouseout", d);
143
+ }, [a, s, $t]);
144
+ const Xt = Ye(s.filter(Oi).map((e) => [a(e.date), r(e.y)])), Gt = Pe(Xt);
145
+ let q;
146
+ t[28] !== n || t[29] !== M || t[30] !== f || t[31] !== jt || t[32] !== c || t[33] !== a ? (q = /* @__PURE__ */ o.jsx(Qe, { areaSettings: jt, width: f, height: M, scale: a, animate: n, isInView: c }), t[28] = n, t[29] = M, t[30] = f, t[31] = jt, t[32] = c, t[33] = a, t[34] = q) : q = t[34];
147
+ const Ot = g?.yAxis?.gridLines, bt = g?.yAxis?.labels;
147
148
  let rt;
148
- t[35] !== Vt || t[36] !== Dt ? (rt = {
149
- gridLines: Vt,
150
- labels: Dt
151
- }, t[35] = Vt, t[36] = Dt, t[37] = rt) : rt = t[37];
152
- const lt = g?.yAxis?.gridLines, kt = g?.yAxis?.labels;
153
- let B;
154
- t[38] !== lt || t[39] !== kt ? (B = {
155
- gridLines: lt,
156
- labels: kt
157
- }, t[38] = lt, t[39] = kt, t[40] = B) : B = t[40];
158
- const It = r(M < 0 ? 0 : M), St = r(M < 0 ? 0 : M), $t = 0 - W, Nt = f + w.right, Tt = M < 0 ? 0 : M;
159
- let k;
160
- t[41] !== O || t[42] !== R || t[43] !== A || t[44] !== T || t[45] !== Tt ? (k = Ve(Tt, void 0, R, A, T, O), t[41] = O, t[42] = R, t[43] = A, t[44] = T, t[45] = Tt, t[46] = k) : k = t[46];
161
- const Wt = 0 - W, Rt = r(M < 0 ? 0 : M), z = G < 0 ? "1em" : -5;
149
+ t[35] !== Ot || t[36] !== bt ? (rt = {
150
+ gridLines: Ot,
151
+ labels: bt
152
+ }, t[35] = Ot, t[36] = bt, t[37] = rt) : rt = t[37];
153
+ const Lt = v?.yAxis?.gridLines, lt = v?.yAxis?.labels;
162
154
  let ct;
163
- t[47] !== Wt || t[48] !== Rt || t[49] !== z ? (ct = {
164
- x: Wt,
165
- y: Rt,
155
+ t[38] !== Lt || t[39] !== lt ? (ct = {
156
+ gridLines: Lt,
157
+ labels: lt
158
+ }, t[38] = Lt, t[39] = lt, t[40] = ct) : ct = t[40];
159
+ const J = r(C < 0 ? 0 : C), ae = r(C < 0 ? 0 : C), mt = 0 - I, se = f + j.right, Vt = C < 0 ? 0 : C;
160
+ let K;
161
+ t[41] !== N || t[42] !== $ || t[43] !== L || t[44] !== h || t[45] !== k || t[46] !== Vt ? (K = Le(Vt, void 0, L, h, k, N, $), t[41] = N, t[42] = $, t[43] = L, t[44] = h, t[45] = k, t[46] = Vt, t[47] = K) : K = t[47];
162
+ const ft = 0 - I, ut = r(C < 0 ? 0 : C), Dt = U < 0 ? "1em" : -5;
163
+ let W;
164
+ t[48] !== ft || t[49] !== ut || t[50] !== Dt ? (W = {
165
+ x: ft,
166
+ y: ut,
166
167
  dx: 0,
167
- dy: z
168
- }, t[47] = Wt, t[48] = Rt, t[49] = z, t[50] = ct) : ct = t[50];
169
- const mt = g?.xAxis?.axis, de = g?.yAxis?.labels;
170
- let F;
171
- t[51] !== mt || t[52] !== de ? (F = {
172
- axis: mt,
173
- label: de
174
- }, t[51] = mt, t[52] = de, t[53] = F) : F = t[53];
175
- const ie = x?.xAxis?.axis, ft = x?.yAxis?.labels;
176
- let I;
177
- t[54] !== ie || t[55] !== ft ? (I = {
178
- axis: ie,
179
- label: ft
180
- }, t[54] = ie, t[55] = ft, t[56] = I) : I = t[56];
181
- let ut;
182
- t[57] !== It || t[58] !== St || t[59] !== $t || t[60] !== Nt || t[61] !== k || t[62] !== ct || t[63] !== F || t[64] !== I ? (ut = /* @__PURE__ */ o.jsx(Ue, { y1: It, y2: St, x1: $t, x2: Nt, label: k, labelPos: ct, classNames: F, styles: I }), t[57] = It, t[58] = St, t[59] = $t, t[60] = Nt, t[61] = k, t[62] = ct, t[63] = F, t[64] = I, t[65] = ut) : ut = t[65];
183
- const Ft = 0 - W + 15, H = v / 2, Y = x?.yAxis?.title, P = g?.yAxis?.title;
184
- let S;
185
- t[66] !== Ft || t[67] !== H || t[68] !== Y || t[69] !== P || t[70] !== gt ? (S = /* @__PURE__ */ o.jsx(ze, { x: Ft, y: H, style: Y, className: P, text: gt, rotate90: !0 }), t[66] = Ft, t[67] = H, t[68] = Y, t[69] = P, t[70] = gt, t[71] = S) : S = t[71];
186
- let $;
187
- t[72] !== X ? ($ = X.filter(Mi).map(wi), t[72] = X, t[73] = $) : $ = t[73];
188
- let N;
189
- t[74] !== Ut ? (N = {
190
- fill: Ut
191
- }, t[74] = Ut, t[75] = N) : N = t[75];
192
- let U;
193
- t[76] !== n.duration ? (U = {
168
+ dy: Dt
169
+ }, t[48] = ft, t[49] = ut, t[50] = Dt, t[51] = W) : W = t[51];
170
+ const R = v?.xAxis?.axis, F = v?.yAxis?.labels;
171
+ let A;
172
+ t[52] !== R || t[53] !== F ? (A = {
173
+ axis: R,
174
+ label: F
175
+ }, t[52] = R, t[53] = F, t[54] = A) : A = t[54];
176
+ const H = g?.xAxis?.axis, Y = g?.yAxis?.labels;
177
+ let O;
178
+ t[55] !== H || t[56] !== Y ? (O = {
179
+ axis: H,
180
+ label: Y
181
+ }, t[55] = H, t[56] = Y, t[57] = O) : O = t[57];
182
+ let Q;
183
+ t[58] !== J || t[59] !== ae || t[60] !== mt || t[61] !== se || t[62] !== K || t[63] !== W || t[64] !== A || t[65] !== O ? (Q = /* @__PURE__ */ o.jsx(Ue, { y1: J, y2: ae, x1: mt, x2: se, label: K, labelPos: W, classNames: A, styles: O }), t[58] = J, t[59] = ae, t[60] = mt, t[61] = se, t[62] = K, t[63] = W, t[64] = A, t[65] = O, t[66] = Q) : Q = t[66];
184
+ const Zt = 0 - I + 15, Bt = M / 2, ke = g?.yAxis?.title, Ie = v?.yAxis?.title;
185
+ let he;
186
+ t[67] !== Zt || t[68] !== Bt || t[69] !== ke || t[70] !== Ie || t[71] !== xt ? (he = /* @__PURE__ */ o.jsx(ze, { x: Zt, y: Bt, style: ke, className: Ie, text: xt, rotate90: !0 }), t[67] = Zt, t[68] = Bt, t[69] = ke, t[70] = Ie, t[71] = xt, t[72] = he) : he = t[72];
187
+ let pe;
188
+ t[73] !== S ? (pe = S.filter(ji).map(Mi), t[73] = S, t[74] = pe) : pe = t[74];
189
+ let ye;
190
+ t[75] !== Ft ? (ye = {
191
+ fill: Ft
192
+ }, t[75] = Ft, t[76] = ye) : ye = t[76];
193
+ let de;
194
+ t[77] !== n.duration ? (de = {
194
195
  opacity: 0,
195
196
  transition: {
196
197
  duration: n.duration
197
198
  }
198
- }, t[76] = n.duration, t[77] = U) : U = t[77];
199
- let Ht;
200
- t[78] !== D || t[79] !== Q ? (Ht = {
199
+ }, t[77] = n.duration, t[78] = de) : de = t[78];
200
+ let xe;
201
+ t[79] !== D || t[80] !== yt ? (xe = {
201
202
  stroke: D,
202
203
  fill: "none",
203
- strokeWidth: Q
204
- }, t[78] = D, t[79] = Q, t[80] = Ht) : Ht = t[80];
205
- let Yt;
206
- t[81] !== n.duration ? (Yt = {
204
+ strokeWidth: yt
205
+ }, t[79] = D, t[80] = yt, t[81] = xe) : xe = t[81];
206
+ let ge;
207
+ t[82] !== n.duration ? (ge = {
207
208
  opacity: 0,
208
209
  transition: {
209
210
  duration: n.duration
210
211
  }
211
- }, t[81] = n.duration, t[82] = Yt) : Yt = t[82];
212
- const Ie = s.map((e, y) => /* @__PURE__ */ o.jsx(V.g, { children: E(e.y) ? null : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
213
- re ? /* @__PURE__ */ o.jsx(V.circle, { r: f / s.length < 5 ? 0 : f / s.length < 20 ? 2 : 4, style: {
212
+ }, t[82] = n.duration, t[83] = ge) : ge = t[83];
213
+ const Se = s.map((e, d) => /* @__PURE__ */ o.jsx(V.g, { children: P(e.y) ? null : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
214
+ Jt ? /* @__PURE__ */ o.jsx(V.circle, { r: f / s.length < 5 ? 0 : f / s.length < 20 ? 2 : 4, style: {
214
215
  fill: D
215
216
  }, exit: {
216
217
  opacity: 0,
@@ -226,8 +227,8 @@ function xi(i) {
226
227
  whileInView: {
227
228
  opacity: 1,
228
229
  transition: {
229
- duration: u ? n.duration : 0.5,
230
- delay: u ? 0 : n.duration
230
+ duration: p ? n.duration : 0.5,
231
+ delay: p ? 0 : n.duration
231
232
  },
232
233
  cx: a(e.date),
233
234
  cy: r(e.y)
@@ -242,19 +243,19 @@ function xi(i) {
242
243
  }, variants: {
243
244
  initial: {
244
245
  opacity: 0,
245
- fill: j[0],
246
+ fill: w[0],
246
247
  cx: a(e.date),
247
248
  cy: r(e.yMin)
248
249
  },
249
250
  whileInView: {
250
251
  opacity: 1,
251
252
  transition: {
252
- duration: u ? n.duration : 0.5,
253
- delay: u ? 0 : n.duration
253
+ duration: p ? n.duration : 0.5,
254
+ delay: p ? 0 : n.duration
254
255
  },
255
256
  cx: a(e.date),
256
257
  cy: r(e.yMin),
257
- fill: j[0]
258
+ fill: w[0]
258
259
  }
259
260
  }, initial: "initial", animate: c ? "whileInView" : "initial" }),
260
261
  /* @__PURE__ */ o.jsx(V.circle, { r: f / s.length < 5 ? 0 : f / s.length < 20 ? 2 : 4, exit: {
@@ -265,26 +266,26 @@ function xi(i) {
265
266
  }, variants: {
266
267
  initial: {
267
268
  opacity: 0,
268
- fill: j[1],
269
+ fill: w[1],
269
270
  cx: a(e.date),
270
271
  cy: r(e.yMax)
271
272
  },
272
273
  whileInView: {
273
274
  opacity: 1,
274
- fill: j[1],
275
+ fill: w[1],
275
276
  transition: {
276
- duration: u ? n.duration : 0.5,
277
- delay: u ? 0 : n.duration
277
+ duration: p ? n.duration : 0.5,
278
+ delay: p ? 0 : n.duration
278
279
  },
279
280
  cx: a(e.date),
280
281
  cy: r(e.yMax)
281
282
  }
282
283
  }, initial: "initial", animate: c ? "whileInView" : "initial" })
283
284
  ] }) : null,
284
- Et ? /* @__PURE__ */ o.jsx(V.text, { dy: -8, style: {
285
+ re ? /* @__PURE__ */ o.jsx(V.text, { dy: -8, style: {
285
286
  textAnchor: "middle",
286
- ...x?.graphObjectValues || {}
287
- }, className: Le("graph-value text-xs font-bold", g?.graphObjectValues), exit: {
287
+ ...g?.graphObjectValues || {}
288
+ }, className: be("graph-value text-xs font-bold", v?.graphObjectValues), exit: {
288
289
  opacity: 0,
289
290
  transition: {
290
291
  duration: n.duration
@@ -302,16 +303,16 @@ function xi(i) {
302
303
  fill: D,
303
304
  y: r(e.y),
304
305
  transition: {
305
- duration: u ? n.duration : 0.5,
306
- delay: u ? 0 : n.duration
306
+ duration: p ? n.duration : 0.5,
307
+ delay: p ? 0 : n.duration
307
308
  }
308
309
  }
309
- }, initial: "initial", animate: c ? "whileInView" : "initial", children: Ve(e.y, void 0, R, A, T, O) }) : null,
310
- xe ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
310
+ }, initial: "initial", animate: c ? "whileInView" : "initial", children: Le(e.y, void 0, L, h, k, N, $) }) : null,
311
+ me ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
311
312
  /* @__PURE__ */ o.jsx(V.text, { dy: "1em", style: {
312
313
  textAnchor: "middle",
313
- ...x?.graphObjectValues || {}
314
- }, className: Le("text-xs font-bold", g?.graphObjectValues), exit: {
314
+ ...g?.graphObjectValues || {}
315
+ }, className: be("text-xs font-bold", v?.graphObjectValues), exit: {
315
316
  opacity: 0,
316
317
  transition: {
317
318
  duration: n.duration
@@ -319,7 +320,7 @@ function xi(i) {
319
320
  }, variants: {
320
321
  initial: {
321
322
  opacity: 0,
322
- fill: j[0],
323
+ fill: w[0],
323
324
  x: a(e.date),
324
325
  y: r(e.yMin)
325
326
  },
@@ -327,17 +328,17 @@ function xi(i) {
327
328
  opacity: 1,
328
329
  x: a(e.date),
329
330
  y: r(e.yMin),
330
- fill: j[0],
331
+ fill: w[0],
331
332
  transition: {
332
- duration: u ? n.duration : 0.5,
333
- delay: u ? 0 : n.duration
333
+ duration: p ? n.duration : 0.5,
334
+ delay: p ? 0 : n.duration
334
335
  }
335
336
  }
336
- }, initial: "initial", animate: c ? "whileInView" : "initial", children: Ve(e.yMin, void 0, R, A, T, O) }),
337
+ }, initial: "initial", animate: c ? "whileInView" : "initial", children: Le(e.yMin, void 0, L, h, k, N, $) }),
337
338
  /* @__PURE__ */ o.jsx(V.text, { dy: -8, style: {
338
339
  textAnchor: "middle",
339
- ...x?.graphObjectValues || {}
340
- }, className: Le("text-xs font-bold", g?.graphObjectValues), exit: {
340
+ ...g?.graphObjectValues || {}
341
+ }, className: be("text-xs font-bold", v?.graphObjectValues), exit: {
341
342
  opacity: 0,
342
343
  transition: {
343
344
  duration: n.duration
@@ -345,97 +346,97 @@ function xi(i) {
345
346
  }, variants: {
346
347
  initial: {
347
348
  opacity: 0,
348
- fill: j[1],
349
+ fill: w[1],
349
350
  x: a(e.date),
350
351
  y: r(e.yMax)
351
352
  },
352
353
  whileInView: {
353
354
  opacity: 1,
354
- fill: j[1],
355
+ fill: w[1],
355
356
  x: a(e.date),
356
357
  y: r(e.yMax),
357
358
  transition: {
358
- duration: u ? n.duration : 0.5,
359
- delay: u ? 0 : n.duration
359
+ duration: p ? n.duration : 0.5,
360
+ delay: p ? 0 : n.duration
360
361
  }
361
362
  }
362
- }, initial: "initial", animate: c ? "whileInView" : "initial", children: Ve(e.yMax, void 0, R, A, T, O) })
363
+ }, initial: "initial", animate: c ? "whileInView" : "initial", children: Le(e.yMax, void 0, L, h, k, N, $) })
363
364
  ] }) : null
364
- ] }) }, y));
365
- let we;
366
- t[83] !== Ie ? (we = /* @__PURE__ */ o.jsx("g", { children: Ie }), t[83] = Ie, t[84] = we) : we = t[84];
367
- const Se = le.map((e, y) => {
368
- const q = Xe({
369
- x: e.xCoordinate ? a(C(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
365
+ ] }) }, d));
366
+ let ve;
367
+ t[84] !== Se ? (ve = /* @__PURE__ */ o.jsx("g", { children: Se }), t[84] = Se, t[85] = ve) : ve = t[85];
368
+ const $e = Kt.map((e, d) => {
369
+ const _ = Ge({
370
+ x: e.xCoordinate ? a(b(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
370
371
  y: e.yCoordinate ? r(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8
371
372
  }, {
372
- x: e.xCoordinate ? a(C(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) : 0,
373
+ x: e.xCoordinate ? a(b(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) : 0,
373
374
  y: e.yCoordinate ? r(e.yCoordinate) : 0
374
- }, E(e.connectorRadius) ? 3.5 : e.connectorRadius), ne = e.showConnector ? {
375
- y1: q.y,
376
- x1: q.x,
375
+ }, P(e.connectorRadius) ? 3.5 : e.connectorRadius), zt = e.showConnector ? {
376
+ y1: _.y,
377
+ x1: _.x,
377
378
  y2: e.yCoordinate ? r(e.yCoordinate) + (e.yOffset || 0) : 0 + (e.yOffset || 0),
378
- x2: e.xCoordinate ? a(C(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
379
+ x2: e.xCoordinate ? a(b(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
379
380
  cy: e.yCoordinate ? r(e.yCoordinate) : 0,
380
- cx: e.xCoordinate ? a(C(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) : 0,
381
- circleRadius: E(e.connectorRadius) ? 3.5 : e.connectorRadius,
381
+ cx: e.xCoordinate ? a(b(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) : 0,
382
+ circleRadius: P(e.connectorRadius) ? 3.5 : e.connectorRadius,
382
383
  strokeWidth: e.showConnector === !0 ? 2 : Math.min(e.showConnector || 0, 1)
383
- } : void 0, Re = {
384
+ } : void 0, Fe = {
384
385
  y: e.yCoordinate ? r(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8,
385
- x: dt ? 0 : e.xCoordinate ? a(C(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
386
- width: dt ? e.xCoordinate ? a(C(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0) : f + w.right - (e.xCoordinate ? a(C(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0)),
386
+ x: Tt ? 0 : e.xCoordinate ? a(b(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
387
+ width: Tt ? e.xCoordinate ? a(b(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0) : f + j.right - (e.xCoordinate ? a(b(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0)),
387
388
  maxWidth: e.maxWidth,
388
389
  fontWeight: e.fontWeight,
389
390
  align: e.align
390
391
  };
391
- return /* @__PURE__ */ o.jsx(Ge, { color: e.color, connectorsSettings: ne, labelSettings: Re, text: e.text, classNames: e.classNames, styles: e.styles, animate: n, isInView: c }, y);
392
+ return /* @__PURE__ */ o.jsx(Ze, { color: e.color, connectorsSettings: zt, labelSettings: Fe, text: e.text, classNames: e.classNames, styles: e.styles, animate: n, isInView: c }, d);
392
393
  });
394
+ let we;
395
+ t[86] !== $e ? (we = /* @__PURE__ */ o.jsx("g", { children: $e }), t[86] = $e, t[87] = we) : we = t[87];
396
+ const Ne = Wt ? /* @__PURE__ */ o.jsx(Je, { x1: 0, x2: f, y1: Gt(0), y2: Gt(f), graphHeight: M, graphWidth: f, className: v?.regLine, style: g?.regLine, color: typeof Wt == "string" ? Wt : void 0, animate: n, isInView: c }) : null;
393
397
  let Me;
394
- t[85] !== Se ? (Me = /* @__PURE__ */ o.jsx("g", { children: Se }), t[85] = Se, t[86] = Me) : Me = t[86];
395
- const $e = xt ? /* @__PURE__ */ o.jsx(Je, { x1: 0, x2: f, y1: Lt(0), y2: Lt(f), graphHeight: v, graphWidth: f, className: g?.regLine, style: x?.regLine, color: typeof xt == "string" ? xt : void 0, animate: n, isInView: c }) : null;
398
+ t[88] !== Ne ? (Me = /* @__PURE__ */ o.jsx("g", { children: Ne }), t[88] = Ne, t[89] = Me) : Me = t[89];
396
399
  let je;
397
- t[87] !== $e ? (je = /* @__PURE__ */ o.jsx("g", { children: $e }), t[87] = $e, t[88] = je) : je = t[88];
400
+ t[90] !== S ? (je = S.filter(wi).map(vi), t[90] = S, t[91] = je) : je = t[91];
398
401
  let Ce;
399
- t[89] !== X ? (Ce = X.filter(vi).map(gi), t[89] = X, t[90] = Ce) : Ce = t[90];
400
- let Ae;
401
- t[91] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ae = {
402
+ t[92] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ce = {
402
403
  fill: "none",
403
404
  pointerEvents: "all"
404
- }, t[91] = Ae) : Ae = t[91];
405
+ }, t[92] = Ce) : Ce = t[92];
406
+ let Ae;
407
+ t[93] !== ot || t[94] !== M || t[95] !== f ? (Ae = /* @__PURE__ */ o.jsx("rect", { ref: ot, style: Ce, width: f, height: M }), t[93] = ot, t[94] = M, t[95] = f, t[96] = Ae) : Ae = t[96];
405
408
  let Oe;
406
- t[92] !== it || t[93] !== v || t[94] !== f ? (Oe = /* @__PURE__ */ o.jsx("rect", { ref: it, style: Ae, width: f, height: v }), t[92] = it, t[93] = v, t[94] = f, t[95] = Oe) : Oe = t[95];
407
- let be;
408
- return t[96] !== g?.tooltip || t[97] !== Ct || t[98] !== m || t[99] !== b || t[100] !== x?.tooltip || t[101] !== K ? (be = b && K && Ct && m ? /* @__PURE__ */ o.jsx(Ee, { data: b, body: K, xPos: Ct, yPos: m, backgroundStyle: x?.tooltip, className: g?.tooltip }) : null, t[96] = g?.tooltip, t[97] = Ct, t[98] = m, t[99] = b, t[100] = x?.tooltip, t[101] = K, t[102] = be) : be = t[102], /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
409
- /* @__PURE__ */ o.jsx(V.svg, { width: `${J}px`, height: `${Pt}px`, viewBox: `0 0 ${J} ${Pt}`, direction: "ltr", ref: wt, children: /* @__PURE__ */ o.jsxs("g", { transform: `translate(${w.left},${w.top})`, children: [
410
- L,
411
- /* @__PURE__ */ o.jsx(Be, { areaSettings: he, scaleX: a, scaleY: r, animate: n, isInView: c }),
409
+ return t[97] !== v?.tooltip || t[98] !== Z || t[99] !== it || t[100] !== m || t[101] !== g?.tooltip || t[102] !== pt ? (Oe = m && pt && Z && it ? /* @__PURE__ */ o.jsx(Xe, { data: m, body: pt, xPos: Z, yPos: it, backgroundStyle: g?.tooltip, className: v?.tooltip }) : null, t[97] = v?.tooltip, t[98] = Z, t[99] = it, t[100] = m, t[101] = g?.tooltip, t[102] = pt, t[103] = Oe) : Oe = t[103], /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
410
+ /* @__PURE__ */ o.jsx(V.svg, { width: `${tt}px`, height: `${et}px`, viewBox: `0 0 ${tt} ${et}`, direction: "ltr", ref: Ht, children: /* @__PURE__ */ o.jsxs("g", { transform: `translate(${j.left},${j.top})`, children: [
411
+ q,
412
+ /* @__PURE__ */ o.jsx(Be, { areaSettings: ee, scaleX: a, scaleY: r, animate: n, isInView: c }),
412
413
  /* @__PURE__ */ o.jsxs("g", { children: [
413
- /* @__PURE__ */ o.jsx(Ke, { values: _t.filter(Ci), y: _t.filter(ji).map((e) => r(e)), x1: 0 - W, x2: f + w.right, styles: rt, classNames: B, suffix: T, prefix: A, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: R, locale: O }),
414
- ut,
415
- S
414
+ /* @__PURE__ */ o.jsx(Ke, { values: Et.filter(Ai), y: Et.filter(Ci).map((e) => r(e)), x1: 0 - I, x2: f + j.right, styles: rt, classNames: ct, suffix: k, prefix: h, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: L, locale: N, padZeros: $ }),
415
+ Q,
416
+ he
416
417
  ] }),
417
- /* @__PURE__ */ o.jsx("g", { children: te.map((e, y) => /* @__PURE__ */ o.jsx("g", { children: /* @__PURE__ */ o.jsx("text", { y: v, x: a(e), style: {
418
+ /* @__PURE__ */ o.jsx("g", { children: oe.map((e, d) => /* @__PURE__ */ o.jsx("g", { children: /* @__PURE__ */ o.jsx("text", { y: M, x: a(e), style: {
418
419
  textAnchor: "middle"
419
- }, className: "fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs", dy: 15, children: Fe(e, l) }) }, y)) }),
420
- $,
421
- /* @__PURE__ */ o.jsx(V.path, { style: N, exit: U, variants: {
420
+ }, className: "fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs", dy: 15, children: He(e, l) }) }, d)) }),
421
+ pe,
422
+ /* @__PURE__ */ o.jsx(V.path, { style: ye, exit: de, variants: {
422
423
  initial: {
423
424
  opacity: 0,
424
- d: Zt(s) || ""
425
+ d: Pt(s) || ""
425
426
  },
426
427
  whileInView: {
427
- opacity: qt,
428
- d: Zt(s) || "",
428
+ opacity: fe,
429
+ d: Pt(s) || "",
429
430
  transition: {
430
431
  duration: n.duration
431
432
  }
432
433
  }
433
434
  }, initial: "initial", animate: c ? "whileInView" : "initial" }),
434
- zt ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
435
+ Rt ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
435
436
  /* @__PURE__ */ o.jsx(V.path, { style: {
436
- stroke: j[0],
437
+ stroke: w[0],
437
438
  fill: "none",
438
- strokeWidth: zt
439
+ strokeWidth: Rt
439
440
  }, exit: {
440
441
  opacity: 0,
441
442
  transition: {
@@ -444,12 +445,12 @@ function xi(i) {
444
445
  }, variants: {
445
446
  initial: {
446
447
  pathLength: 0,
447
- d: bt(s) || "",
448
+ d: At(s) || "",
448
449
  opacity: 1
449
450
  },
450
451
  whileInView: {
451
452
  pathLength: 1,
452
- d: bt(s) || "",
453
+ d: At(s) || "",
453
454
  opacity: 1,
454
455
  transition: {
455
456
  duration: n.duration
@@ -457,9 +458,9 @@ function xi(i) {
457
458
  }
458
459
  }, initial: "initial", animate: c ? "whileInView" : "initial" }),
459
460
  /* @__PURE__ */ o.jsx(V.path, { style: {
460
- stroke: j[1],
461
+ stroke: w[1],
461
462
  fill: "none",
462
- strokeWidth: zt
463
+ strokeWidth: Rt
463
464
  }, exit: {
464
465
  opacity: 0,
465
466
  transition: {
@@ -468,12 +469,12 @@ function xi(i) {
468
469
  }, variants: {
469
470
  initial: {
470
471
  pathLength: 0,
471
- d: Qt(s) || "",
472
+ d: T(s) || "",
472
473
  opacity: 1
473
474
  },
474
475
  whileInView: {
475
476
  pathLength: 1,
476
- d: Qt(s) || "",
477
+ d: T(s) || "",
477
478
  opacity: 1,
478
479
  transition: {
479
480
  duration: n.duration
@@ -481,64 +482,61 @@ function xi(i) {
481
482
  }
482
483
  }, initial: "initial", animate: c ? "whileInView" : "initial" })
483
484
  ] }) : null,
484
- /* @__PURE__ */ o.jsx(V.path, { style: Ht, exit: Yt, variants: {
485
+ /* @__PURE__ */ o.jsx(V.path, { style: xe, exit: ge, variants: {
485
486
  initial: {
486
487
  pathLength: 0,
487
- d: Kt(s) || "",
488
+ d: Ct(s) || "",
488
489
  opacity: 1
489
490
  },
490
491
  whileInView: {
491
492
  pathLength: 1,
492
- d: Kt(s) || "",
493
+ d: Ct(s) || "",
493
494
  opacity: 1,
494
495
  transition: {
495
496
  duration: n.duration
496
497
  }
497
498
  }
498
499
  }, initial: "initial", animate: c ? "whileInView" : "initial" }),
499
- b ? /* @__PURE__ */ o.jsx("line", { y1: 0, y2: v, x1: a(b.date), x2: a(b.date), className: Le("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100", g?.mouseOverLine), style: x?.mouseOverLine }) : null,
500
+ m ? /* @__PURE__ */ o.jsx("line", { y1: 0, y2: M, x1: a(m.date), x2: a(m.date), className: be("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100", v?.mouseOverLine), style: g?.mouseOverLine }) : null,
501
+ ve,
502
+ qt ? /* @__PURE__ */ o.jsx(o.Fragment, { children: qt.map((e, d) => /* @__PURE__ */ o.jsx(qe, { text: e.text, color: e.color, y: r(e.value), x1: 0 - I, x2: f + j.right, classNames: e.classNames, styles: e.styles, animate: n, isInView: c }, d)) }) : null,
500
503
  we,
501
- ae ? /* @__PURE__ */ o.jsx(o.Fragment, { children: ae.map((e, y) => /* @__PURE__ */ o.jsx(qe, { text: e.text, color: e.color, y: r(e.value), x1: 0 - W, x2: f + w.right, classNames: e.classNames, styles: e.styles, animate: n, isInView: c }, y)) }) : null,
502
504
  Me,
503
505
  je,
504
- Ce,
505
- Oe
506
+ Ae
506
507
  ] }) }),
507
- be
508
+ Oe
508
509
  ] });
509
510
  }
510
- function gi(i) {
511
- return i.layer;
512
- }
513
511
  function vi(i) {
514
- return i.position === "after";
512
+ return i.layer;
515
513
  }
516
514
  function wi(i) {
517
- return i.layer;
515
+ return i.position === "after";
518
516
  }
519
517
  function Mi(i) {
520
- return i.position === "before";
518
+ return i.layer;
521
519
  }
522
520
  function ji(i) {
523
- return i !== 0;
521
+ return i.position === "before";
524
522
  }
525
523
  function Ci(i) {
526
524
  return i !== 0;
527
525
  }
528
526
  function Ai(i) {
529
- return !E(i.date) && !E(i.y);
527
+ return i !== 0;
530
528
  }
531
529
  function Oi(i) {
532
- return i.date;
530
+ return !P(i.date) && !P(i.y);
533
531
  }
534
532
  function bi(i) {
535
- return Math.max(i.y, i.yMax, i.yMin);
533
+ return i.date;
536
534
  }
537
535
  function Li(i) {
538
536
  return Math.max(i.y, i.yMax, i.yMin);
539
537
  }
540
538
  function Vi(i) {
541
- return Math.min(i.y, i.yMax, i.yMin);
539
+ return Math.max(i.y, i.yMax, i.yMin);
542
540
  }
543
541
  function Di(i) {
544
542
  return Math.min(i.y, i.yMax, i.yMin);
@@ -547,154 +545,154 @@ function ki(i) {
547
545
  return Math.min(i.y, i.yMax, i.yMin);
548
546
  }
549
547
  function Ii(i) {
550
- return !E(i.y);
548
+ return Math.min(i.y, i.yMax, i.yMin);
551
549
  }
552
- function pn(i) {
553
- const t = We.c(105), {
554
- data: d,
555
- graphTitle: J,
556
- suffix: Pt,
557
- sources: D,
558
- prefix: T,
559
- graphDescription: A,
560
- height: l,
561
- width: p,
562
- footNote: Et,
563
- noOfXTicks: pe,
564
- dateFormat: Xt,
565
- showValues: W,
566
- backgroundColor: Gt,
567
- padding: ht,
568
- lineColor: K,
569
- leftMargin: Bt,
570
- rightMargin: ae,
571
- topMargin: se,
572
- bottomMargin: yt,
573
- tooltip: n,
574
- refValues: dt,
575
- highlightAreaSettings: Q,
576
- relativeHeight: re,
577
- onSeriesMouseOver: le,
578
- graphID: pt,
579
- minValue: xt,
580
- maxValue: ce,
581
- regressionLine: xe,
582
- showIntervalDots: zt,
583
- showIntervalValues: j,
584
- intervalLineStrokeWidth: Ut,
585
- intervalLineColors: qt,
586
- intervalAreaColor: gt,
587
- intervalAreaOpacity: ge,
588
- graphDownload: me,
589
- dataDownload: fe,
590
- animate: vt,
591
- language: x,
592
- minHeight: g,
593
- strokeWidth: R,
594
- showDots: X,
595
- annotations: O,
596
- customHighlightAreaSettings: wt,
597
- theme: Mt,
598
- ariaLabel: c,
599
- yAxisTitle: u,
600
- noOfYTicks: ve,
601
- minDate: Z,
602
- maxDate: _,
603
- colorLegendTitle: tt,
604
- colorLegendColors: b,
605
- colorLegendDomain: jt,
606
- curveType: Ct,
607
- styles: h,
608
- classNames: m,
609
- precision: ue,
610
- customLayers: et,
611
- locale: At
612
- } = i, w = Pt === void 0 ? "" : Pt, it = T === void 0 ? "" : T, nt = pe === void 0 ? 10 : pe, s = Xt === void 0 ? "yyyy" : Xt, ot = W === void 0 ? !1 : W, Ot = Gt === void 0 ? !1 : Gt, at = Bt === void 0 ? 30 : Bt, he = ae === void 0 ? 30 : ae, f = se === void 0 ? 20 : se, v = yt === void 0 ? 25 : yt;
613
- let Jt;
614
- t[0] !== dt ? (Jt = dt === void 0 ? [] : dt, t[0] = dt, t[1] = Jt) : Jt = t[1];
615
- const ye = Jt;
616
- let M;
617
- t[2] !== Q ? (M = Q === void 0 ? [] : Q, t[2] = Q, t[3] = M) : M = t[3];
618
- const G = M, a = xe === void 0 ? !1 : xe, st = zt === void 0 ? !1 : zt, r = j === void 0 ? !1 : j, Kt = Ut === void 0 ? 0 : Ut;
619
- let bt;
620
- t[4] !== qt ? (bt = qt === void 0 ? [De.light.grays["gray-500"], De.light.grays["gray-500"]] : qt, t[4] = qt, t[5] = bt) : bt = t[5];
621
- const Qt = bt, Zt = gt === void 0 ? De.primaryColors["blue-100"] : gt, _t = ge === void 0 ? 0.4 : ge, te = me === void 0 ? !1 : me, ee = fe === void 0 ? !1 : fe, Lt = vt === void 0 ? !1 : vt, L = x === void 0 ? "en" : x, Vt = g === void 0 ? 0 : g, Dt = R === void 0 ? 2 : R, rt = X === void 0 ? !0 : X;
622
- let lt;
623
- t[6] !== O ? (lt = O === void 0 ? [] : O, t[6] = O, t[7] = lt) : lt = t[7];
624
- const kt = lt;
550
+ function Si(i) {
551
+ return !P(i.y);
552
+ }
553
+ function xn(i) {
554
+ const t = Re.c(106), {
555
+ data: x,
556
+ graphTitle: tt,
557
+ sources: et,
558
+ graphDescription: D,
559
+ height: k,
560
+ width: h,
561
+ footNote: l,
562
+ noOfXTicks: kt,
563
+ dateFormat: re,
564
+ showValues: le,
565
+ backgroundColor: It,
566
+ padding: I,
567
+ lineColor: ht,
568
+ leftMargin: St,
569
+ rightMargin: pt,
570
+ topMargin: $t,
571
+ bottomMargin: qt,
572
+ tooltip: Nt,
573
+ refValues: E,
574
+ highlightAreaSettings: n,
575
+ relativeHeight: Tt,
576
+ onSeriesMouseOver: yt,
577
+ graphID: Jt,
578
+ minValue: Kt,
579
+ maxValue: dt,
580
+ regressionLine: Wt,
581
+ showIntervalDots: ce,
582
+ showIntervalValues: me,
583
+ intervalLineStrokeWidth: Rt,
584
+ intervalLineColors: w,
585
+ intervalAreaColor: Ft,
586
+ intervalAreaOpacity: fe,
587
+ graphDownload: xt,
588
+ dataDownload: ue,
589
+ animate: Qt,
590
+ language: _t,
591
+ minHeight: gt,
592
+ strokeWidth: g,
593
+ showDots: v,
594
+ annotations: L,
595
+ customHighlightAreaSettings: S,
596
+ theme: N,
597
+ ariaLabel: $,
598
+ yAxisTitle: Ht,
599
+ noOfYTicks: vt,
600
+ minDate: c,
601
+ maxDate: p,
602
+ colorLegendTitle: te,
603
+ colorLegendColors: X,
604
+ colorLegendDomain: G,
605
+ curveType: wt,
606
+ styles: m,
607
+ classNames: u,
608
+ customLayers: Z,
609
+ numberDisplayOptions: y
610
+ } = i, it = kt === void 0 ? 10 : kt, Yt = re === void 0 ? "yyyy" : re, Mt = le === void 0 ? !1 : le, nt = It === void 0 ? !1 : It, j = St === void 0 ? 30 : St, ot = pt === void 0 ? 30 : pt, at = $t === void 0 ? 20 : $t, s = qt === void 0 ? 25 : qt;
625
611
  let B;
626
- t[8] !== wt ? (B = wt === void 0 ? [] : wt, t[8] = wt, t[9] = B) : B = t[9];
627
- const It = B, St = Mt === void 0 ? "light" : Mt, $t = ve === void 0 ? 5 : ve, Nt = Ct === void 0 ? "curve" : Ct, Tt = ue === void 0 ? 2 : ue;
628
- let k;
629
- t[10] !== et ? (k = et === void 0 ? [] : et, t[10] = et, t[11] = k) : k = t[11];
630
- const Wt = k, Rt = At === void 0 ? "en" : At, [z, ct] = oe(0), [mt, de] = oe(0), F = ke(null), ie = ke(null);
631
- let ft, I;
612
+ t[0] !== E ? (B = E === void 0 ? [] : E, t[0] = E, t[1] = B) : B = t[1];
613
+ const jt = B;
614
+ let z;
615
+ t[2] !== n ? (z = n === void 0 ? [] : n, t[2] = n, t[3] = z) : z = t[3];
616
+ const ee = z, f = Wt === void 0 ? !1 : Wt, M = ce === void 0 ? !1 : ce, ie = me === void 0 ? !1 : me, ne = Rt === void 0 ? 0 : Rt;
617
+ let C;
618
+ t[4] !== w ? (C = w === void 0 ? [Ve.light.grays["gray-500"], Ve.light.grays["gray-500"]] : w, t[4] = w, t[5] = C) : C = t[5];
619
+ const U = C, a = Ft === void 0 ? Ve.primaryColors["blue-100"] : Ft, st = fe === void 0 ? 0.4 : fe, r = xt === void 0 ? !1 : xt, Ct = ue === void 0 ? !1 : ue, At = Qt === void 0 ? !1 : Qt, T = _t === void 0 ? "en" : _t, Pt = gt === void 0 ? 0 : gt, Et = g === void 0 ? 2 : g, oe = v === void 0 ? !0 : v;
620
+ let Xt;
621
+ t[6] !== L ? (Xt = L === void 0 ? [] : L, t[6] = L, t[7] = Xt) : Xt = t[7];
622
+ const Gt = Xt;
623
+ let q;
624
+ t[8] !== S ? (q = S === void 0 ? [] : S, t[8] = S, t[9] = q) : q = t[9];
625
+ const Ot = q, bt = N === void 0 ? "light" : N, rt = vt === void 0 ? 5 : vt, Lt = wt === void 0 ? "curve" : wt;
626
+ let lt;
627
+ t[10] !== Z ? (lt = Z === void 0 ? [] : Z, t[10] = Z, t[11] = lt) : lt = t[11];
628
+ const ct = lt, [J, ae] = Ut(0), [mt, se] = Ut(0), Vt = De(null), K = De(null);
629
+ let ft, ut;
632
630
  t[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ft = () => {
633
- const Ht = new ResizeObserver((Yt) => {
634
- ct(Yt[0].target.clientWidth || 620), de(Yt[0].target.clientHeight || 480);
631
+ const Zt = new ResizeObserver((Bt) => {
632
+ ae(Bt[0].target.clientWidth || 620), se(Bt[0].target.clientHeight || 480);
635
633
  });
636
- return F.current && Ht.observe(F.current), () => Ht.disconnect();
637
- }, I = [], t[12] = ft, t[13] = I) : (ft = t[12], I = t[13]), Te(ft, I);
638
- const ut = m?.graphContainer, Ft = h?.graphContainer;
639
- let H;
640
- t[14] !== m?.description || t[15] !== m?.title || t[16] !== d || t[17] !== ee || t[18] !== A || t[19] !== te || t[20] !== J || t[21] !== h?.description || t[22] !== h?.title || t[23] !== p ? (H = J || A || te || ee ? /* @__PURE__ */ o.jsx(fi, { styles: {
641
- title: h?.title,
642
- description: h?.description
643
- }, classNames: {
634
+ return Vt.current && Zt.observe(Vt.current), () => Zt.disconnect();
635
+ }, ut = [], t[12] = ft, t[13] = ut) : (ft = t[12], ut = t[13]), We(ft, ut);
636
+ const Dt = u?.graphContainer, W = m?.graphContainer;
637
+ let R;
638
+ t[14] !== u?.description || t[15] !== u?.title || t[16] !== x || t[17] !== Ct || t[18] !== D || t[19] !== r || t[20] !== tt || t[21] !== m?.description || t[22] !== m?.title || t[23] !== h ? (R = tt || D || r || Ct ? /* @__PURE__ */ o.jsx(ui, { styles: {
644
639
  title: m?.title,
645
640
  description: m?.description
646
- }, graphTitle: J, graphDescription: A, width: p, graphDownload: te ? ie : void 0, dataDownload: ee ? d.map(Wi).filter(Ti).length > 0 ? d.map(Ni).filter($i) : d.filter(Si) : null }) : null, t[14] = m?.description, t[15] = m?.title, t[16] = d, t[17] = ee, t[18] = A, t[19] = te, t[20] = J, t[21] = h?.description, t[22] = h?.title, t[23] = p, t[24] = H) : H = t[24];
647
- let Y;
648
- t[25] !== m?.colorLegend || t[26] !== b || t[27] !== jt || t[28] !== tt || t[29] !== d.length || t[30] !== p ? (Y = b && jt && d.length > 0 ? /* @__PURE__ */ o.jsx(ui, { width: p, colorLegendTitle: tt, colors: b, colorDomain: jt, showNAColor: !1, className: m?.colorLegend }) : null, t[25] = m?.colorLegend, t[26] = b, t[27] = jt, t[28] = tt, t[29] = d.length, t[30] = p, t[31] = Y) : Y = t[31];
649
- let P;
650
- t[32] !== d.length ? (P = d.length === 0 && /* @__PURE__ */ o.jsx(hi, {}), t[32] = d.length, t[33] = P) : P = t[33];
651
- let S;
652
- t[34] !== Lt || t[35] !== kt || t[36] !== v || t[37] !== m || t[38] !== Nt || t[39] !== It || t[40] !== Wt || t[41] !== d || t[42] !== s || t[43] !== G || t[44] !== Zt || t[45] !== _t || t[46] !== Qt || t[47] !== Kt || t[48] !== L || t[49] !== at || t[50] !== K || t[51] !== Rt || t[52] !== _ || t[53] !== ce || t[54] !== Z || t[55] !== xt || t[56] !== nt || t[57] !== $t || t[58] !== le || t[59] !== Tt || t[60] !== it || t[61] !== ye || t[62] !== a || t[63] !== he || t[64] !== rt || t[65] !== st || t[66] !== r || t[67] !== ot || t[68] !== Dt || t[69] !== h || t[70] !== w || t[71] !== mt || t[72] !== z || t[73] !== n || t[74] !== f || t[75] !== u ? (S = z && mt && d.length > 0 ? /* @__PURE__ */ o.jsx(xi, { data: d, lineColor: K || De.primaryColors["blue-600"], width: z, height: mt, suffix: w, prefix: it, dateFormat: s, showValues: ot, noOfXTicks: nt ?? pi(z), leftMargin: at, rightMargin: he, topMargin: f, bottomMargin: v, tooltip: n, highlightAreaSettings: G, onSeriesMouseOver: le, refValues: ye, minValue: xt, maxValue: ce, animate: Lt === !0 ? {
641
+ }, classNames: {
642
+ title: u?.title,
643
+ description: u?.description
644
+ }, graphTitle: tt, graphDescription: D, width: h, graphDownload: r ? K : void 0, dataDownload: Ct ? x.map(Ri).filter(Wi).length > 0 ? x.map(Ti).filter(Ni) : x.filter($i) : null }) : null, t[14] = u?.description, t[15] = u?.title, t[16] = x, t[17] = Ct, t[18] = D, t[19] = r, t[20] = tt, t[21] = m?.description, t[22] = m?.title, t[23] = h, t[24] = R) : R = t[24];
645
+ let F;
646
+ t[25] !== u?.colorLegend || t[26] !== X || t[27] !== G || t[28] !== te || t[29] !== x.length || t[30] !== h ? (F = X && G && x.length > 0 ? /* @__PURE__ */ o.jsx(hi, { width: h, colorLegendTitle: te, colors: X, colorDomain: G, showNAColor: !1, className: u?.colorLegend }) : null, t[25] = u?.colorLegend, t[26] = X, t[27] = G, t[28] = te, t[29] = x.length, t[30] = h, t[31] = F) : F = t[31];
647
+ let A;
648
+ t[32] !== x.length ? (A = x.length === 0 && /* @__PURE__ */ o.jsx(pi, {}), t[32] = x.length, t[33] = A) : A = t[33];
649
+ let H;
650
+ t[34] !== At || t[35] !== Gt || t[36] !== s || t[37] !== u || t[38] !== Lt || t[39] !== Ot || t[40] !== ct || t[41] !== x || t[42] !== Yt || t[43] !== ee || t[44] !== a || t[45] !== st || t[46] !== U || t[47] !== ne || t[48] !== T || t[49] !== j || t[50] !== ht || t[51] !== p || t[52] !== dt || t[53] !== c || t[54] !== Kt || t[55] !== it || t[56] !== rt || t[57] !== y?.locale || t[58] !== y?.padZeros || t[59] !== y?.precision || t[60] !== y?.prefix || t[61] !== y?.suffix || t[62] !== yt || t[63] !== jt || t[64] !== f || t[65] !== ot || t[66] !== oe || t[67] !== M || t[68] !== ie || t[69] !== Mt || t[70] !== Et || t[71] !== m || t[72] !== mt || t[73] !== J || t[74] !== Nt || t[75] !== at || t[76] !== Ht ? (H = J && mt && x.length > 0 ? /* @__PURE__ */ o.jsx(gi, { data: x, lineColor: ht || Ve.primaryColors["blue-600"], width: J, height: mt, dateFormat: Yt, showValues: Mt, noOfXTicks: it ?? xi(J), leftMargin: j, rightMargin: ot, topMargin: at, bottomMargin: s, tooltip: Nt, highlightAreaSettings: ee, onSeriesMouseOver: yt, refValues: jt, minValue: Kt, maxValue: dt, animate: At === !0 ? {
653
651
  duration: 0.5,
654
652
  once: !0,
655
653
  amount: 0.5
656
- } : Lt || {
654
+ } : At || {
657
655
  duration: 0,
658
656
  once: !0,
659
657
  amount: 0
660
- }, rtl: L === "he" || L === "ar", strokeWidth: Dt, showDots: rt, annotations: kt, customHighlightAreaSettings: It, regressionLine: a, showIntervalDots: st, showIntervalValues: r, intervalLineStrokeWidth: Kt, intervalLineColors: Qt, intervalAreaColor: Zt, intervalAreaOpacity: _t, yAxisTitle: u, noOfYTicks: $t, minDate: Z, maxDate: _, curveType: Nt, styles: h, classNames: m, precision: Tt, customLayers: Wt, locale: Rt }) : null, t[34] = Lt, t[35] = kt, t[36] = v, t[37] = m, t[38] = Nt, t[39] = It, t[40] = Wt, t[41] = d, t[42] = s, t[43] = G, t[44] = Zt, t[45] = _t, t[46] = Qt, t[47] = Kt, t[48] = L, t[49] = at, t[50] = K, t[51] = Rt, t[52] = _, t[53] = ce, t[54] = Z, t[55] = xt, t[56] = nt, t[57] = $t, t[58] = le, t[59] = Tt, t[60] = it, t[61] = ye, t[62] = a, t[63] = he, t[64] = rt, t[65] = st, t[66] = r, t[67] = ot, t[68] = Dt, t[69] = h, t[70] = w, t[71] = mt, t[72] = z, t[73] = n, t[74] = f, t[75] = u, t[76] = S) : S = t[76];
661
- let $;
662
- t[77] !== P || t[78] !== S ? ($ = /* @__PURE__ */ o.jsxs(yi, { ref: F, children: [
663
- P,
664
- S
665
- ] }), t[77] = P, t[78] = S, t[79] = $) : $ = t[79];
666
- let N;
667
- t[80] !== m?.footnote || t[81] !== m?.source || t[82] !== Et || t[83] !== D || t[84] !== h?.footnote || t[85] !== h?.source || t[86] !== p ? (N = D || Et ? /* @__PURE__ */ o.jsx(mi, { styles: {
668
- footnote: h?.footnote,
669
- source: h?.source
670
- }, classNames: {
658
+ }, rtl: T === "he" || T === "ar", strokeWidth: Et, showDots: oe, annotations: Gt, customHighlightAreaSettings: Ot, regressionLine: f, showIntervalDots: M, showIntervalValues: ie, intervalLineStrokeWidth: ne, intervalLineColors: U, intervalAreaColor: a, intervalAreaOpacity: st, yAxisTitle: Ht, noOfYTicks: rt, minDate: c, maxDate: p, curveType: Lt, styles: m, classNames: u, customLayers: ct, locale: y?.locale || "en", padZeros: y?.padZeros || !1, suffix: y?.suffix || "", prefix: y?.prefix || "", precision: y?.precision ?? 2 }) : null, t[34] = At, t[35] = Gt, t[36] = s, t[37] = u, t[38] = Lt, t[39] = Ot, t[40] = ct, t[41] = x, t[42] = Yt, t[43] = ee, t[44] = a, t[45] = st, t[46] = U, t[47] = ne, t[48] = T, t[49] = j, t[50] = ht, t[51] = p, t[52] = dt, t[53] = c, t[54] = Kt, t[55] = it, t[56] = rt, t[57] = y?.locale, t[58] = y?.padZeros, t[59] = y?.precision, t[60] = y?.prefix, t[61] = y?.suffix, t[62] = yt, t[63] = jt, t[64] = f, t[65] = ot, t[66] = oe, t[67] = M, t[68] = ie, t[69] = Mt, t[70] = Et, t[71] = m, t[72] = mt, t[73] = J, t[74] = Nt, t[75] = at, t[76] = Ht, t[77] = H) : H = t[77];
659
+ let Y;
660
+ t[78] !== A || t[79] !== H ? (Y = /* @__PURE__ */ o.jsxs(yi, { ref: Vt, children: [
661
+ A,
662
+ H
663
+ ] }), t[78] = A, t[79] = H, t[80] = Y) : Y = t[80];
664
+ let O;
665
+ t[81] !== u?.footnote || t[82] !== u?.source || t[83] !== l || t[84] !== et || t[85] !== m?.footnote || t[86] !== m?.source || t[87] !== h ? (O = et || l ? /* @__PURE__ */ o.jsx(fi, { styles: {
671
666
  footnote: m?.footnote,
672
667
  source: m?.source
673
- }, sources: D, footNote: Et, width: p }) : null, t[80] = m?.footnote, t[81] = m?.source, t[82] = Et, t[83] = D, t[84] = h?.footnote, t[85] = h?.source, t[86] = p, t[87] = N) : N = t[87];
674
- let U;
675
- return t[88] !== c || t[89] !== Ot || t[90] !== pt || t[91] !== l || t[92] !== L || t[93] !== Vt || t[94] !== ht || t[95] !== re || t[96] !== ut || t[97] !== Ft || t[98] !== H || t[99] !== Y || t[100] !== $ || t[101] !== N || t[102] !== St || t[103] !== p ? (U = /* @__PURE__ */ o.jsxs(di, { className: ut, style: Ft, id: pt, ref: ie, "aria-label": c, backgroundColor: Ot, theme: St, language: L, minHeight: Vt, width: p, height: l, relativeHeight: re, padding: ht, children: [
676
- H,
668
+ }, classNames: {
669
+ footnote: u?.footnote,
670
+ source: u?.source
671
+ }, sources: et, footNote: l, width: h }) : null, t[81] = u?.footnote, t[82] = u?.source, t[83] = l, t[84] = et, t[85] = m?.footnote, t[86] = m?.source, t[87] = h, t[88] = O) : O = t[88];
672
+ let Q;
673
+ return t[89] !== $ || t[90] !== nt || t[91] !== Jt || t[92] !== k || t[93] !== T || t[94] !== Pt || t[95] !== I || t[96] !== Tt || t[97] !== Dt || t[98] !== W || t[99] !== R || t[100] !== F || t[101] !== Y || t[102] !== O || t[103] !== bt || t[104] !== h ? (Q = /* @__PURE__ */ o.jsxs(di, { className: Dt, style: W, id: Jt, ref: K, "aria-label": $, backgroundColor: nt, theme: bt, language: T, minHeight: Pt, width: h, height: k, relativeHeight: Tt, padding: I, children: [
674
+ R,
675
+ F,
677
676
  Y,
678
- $,
679
- N
680
- ] }), t[88] = c, t[89] = Ot, t[90] = pt, t[91] = l, t[92] = L, t[93] = Vt, t[94] = ht, t[95] = re, t[96] = ut, t[97] = Ft, t[98] = H, t[99] = Y, t[100] = $, t[101] = N, t[102] = St, t[103] = p, t[104] = U) : U = t[104], U;
681
- }
682
- function Si(i) {
683
- return i !== void 0;
677
+ O
678
+ ] }), t[89] = $, t[90] = nt, t[91] = Jt, t[92] = k, t[93] = T, t[94] = Pt, t[95] = I, t[96] = Tt, t[97] = Dt, t[98] = W, t[99] = R, t[100] = F, t[101] = Y, t[102] = O, t[103] = bt, t[104] = h, t[105] = Q) : Q = t[105], Q;
684
679
  }
685
680
  function $i(i) {
686
681
  return i !== void 0;
687
682
  }
688
683
  function Ni(i) {
689
- return i.data;
684
+ return i !== void 0;
690
685
  }
691
686
  function Ti(i) {
692
- return i !== void 0;
687
+ return i.data;
693
688
  }
694
689
  function Wi(i) {
690
+ return i !== void 0;
691
+ }
692
+ function Ri(i) {
695
693
  return i.data;
696
694
  }
697
695
  export {
698
- pn as LineChartWithConfidenceInterval
696
+ xn as LineChartWithConfidenceInterval
699
697
  };
700
698
  //# sourceMappingURL=LineChartWithConfidenceInterval.js.map