@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,172 +1,173 @@
1
- import { c as Ie, j as a, m as ve } from "./index-CHPV5EwG-BzibaIRc.js";
2
- import { o as je } from "./index-BZQYSqar.js";
3
- import { f as De, p as He } from "./parse-Dv4of-PN.js";
4
- import { useRef as we, useState as It, useEffect as Ne } from "react";
5
- import { g as Re, N as ze } from "./getSliderMarks-X-_goqH9.js";
6
- import { i as Te } from "./index-Bwrro8-q.js";
7
- import { n as $e } from "./numberFormattingFunction-DqMf_v1m.js";
8
- import { T as Se } from "./Tooltip-Bj-s__cI.js";
9
- import { c as Yt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
10
- import { A as Fe } from "./AxisTitle-CyLCqpW6.js";
11
- import { A as qe } from "./Axis-CNZYWzH0.js";
12
- import { X as Ue } from "./XAxesLabels-B9gkjUiC.js";
13
- import { Y as We } from "./YTicksAndGridLines-CsNSq9W9.js";
14
- import { R as Je, a as Ke } from "./ReferenceLine-D41VuUhE.js";
15
- import { X as Qe } from "./XTicksAndGridLines-gdbGX2rm.js";
16
- import { Y as Ze } from "./YAxesLabels-hWEUCTvs.js";
17
- import { D as Pe } from "./DetailsModal-B2XBWR7w.js";
18
- import { a as Be } from "./linear-DNXM5Pdl.js";
19
- import { b as Xe } from "./band-DYty33LD.js";
20
- import { m as Xt } from "./proxy-BsxtcZKa.js";
21
- import { u as Ye } from "./use-in-view-KOXq5Kmc.js";
22
- import { A as Ee } from "./index-Cv_5q6Rb.js";
23
- import { e as Le } from "./ensureCompleteData-CDIukSG6.js";
24
- import { a as _e, G as ti } from "./GraphContainer-B8ZqOzKI.js";
25
- import { GraphHeader as ei } from "./GraphHeader.js";
26
- import { P as ii, e as ai } from "./index-ApTBN0kp.js";
27
- import { GraphFooter as ni } from "./GraphFooter.js";
28
- import { ColorLegendWithMouseOver as oi } from "./ColorLegendWithMouseOver.js";
29
- import { E as si } from "./EmptyState-CaxXCkiN.js";
30
- import { Colors as li } from "./Colors.js";
31
- function ri(e) {
32
- const t = Ie.c(149), {
1
+ import { c as Me, j as i, m as ye } from "./index-CHPV5EwG-BzibaIRc.js";
2
+ import { o as Ce } from "./index-BZQYSqar.js";
3
+ import { f as Oe, p as We } from "./parse-Dv4of-PN.js";
4
+ import { useRef as ge, useState as Vt, useEffect as Le } from "react";
5
+ import { g as Pe, N as Be } from "./getSliderMarks-X-_goqH9.js";
6
+ import { i as $e } from "./index-Bwrro8-q.js";
7
+ import { n as ke } from "./numberFormattingFunction-BUUV_luR.js";
8
+ import { T as Ie } from "./Tooltip-3EYDVa3w.js";
9
+ import { c as Gt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
10
+ import { A as Ve } from "./AxisTitle-CyLCqpW6.js";
11
+ import { A as Xe } from "./Axis-CNZYWzH0.js";
12
+ import { X as Ye } from "./XAxesLabels-B9gkjUiC.js";
13
+ import { Y as je } from "./YTicksAndGridLines-BbujwxOB.js";
14
+ import { R as Ee, a as Ge } from "./ReferenceLine-D41VuUhE.js";
15
+ import { X as He } from "./XTicksAndGridLines-CkYwVshF.js";
16
+ import { Y as Re } from "./YAxesLabels-hWEUCTvs.js";
17
+ import { D as De } from "./DetailsModal-GqEbGHY2.js";
18
+ import { a as Ne } from "./linear-DNXM5Pdl.js";
19
+ import { b as Te } from "./band-DYty33LD.js";
20
+ import { m as Et } from "./proxy-BsxtcZKa.js";
21
+ import { u as Se } from "./use-in-view-KOXq5Kmc.js";
22
+ import { A as Fe } from "./index-Cv_5q6Rb.js";
23
+ import { e as Ae } from "./ensureCompleteData-CDIukSG6.js";
24
+ import { a as ze, G as Ze } from "./GraphContainer-B8ZqOzKI.js";
25
+ import { GraphHeader as qe } from "./GraphHeader.js";
26
+ import { P as Ue, e as Je } from "./index-ApTBN0kp.js";
27
+ import { GraphFooter as Ke } from "./GraphFooter.js";
28
+ import { ColorLegendWithMouseOver as Qe } from "./ColorLegendWithMouseOver.js";
29
+ import { E as _e } from "./EmptyState-CaxXCkiN.js";
30
+ import { Colors as ti } from "./Colors.js";
31
+ function ei(e) {
32
+ const t = Me.c(152), {
33
33
  data: c,
34
- leftMargin: qt,
35
- rightMargin: ne,
36
- topMargin: Ut,
37
- bottomMargin: Jt,
38
- dotColors: L,
39
- barPadding: Et,
40
- showTicks: rt,
41
- truncateBy: Vt,
42
- width: gt,
43
- height: bt,
44
- radius: ft,
45
- showLabels: vt,
46
- tooltip: y,
47
- onSeriesMouseOver: ot,
48
- maxValue: jt,
49
- minValue: w,
50
- onSeriesMouseClick: ct,
51
- showValues: Kt,
52
- suffix: pt,
53
- prefix: S,
54
- selectedColor: F,
55
- arrowConnector: I,
56
- connectorStrokeWidth: Gt,
57
- maxBarThickness: wt,
58
- minBarThickness: Dt,
59
- resetSelectionOnDoubleClick: Qt,
60
- detailsOnClick: $,
61
- axisTitle: W,
62
- noOfTicks: Ht,
63
- valueColor: Nt,
64
- styles: o,
65
- classNames: n,
66
- labelOrder: p,
67
- refValues: Tt,
68
- animate: f,
34
+ leftMargin: Jt,
35
+ rightMargin: se,
36
+ topMargin: Kt,
37
+ bottomMargin: Qt,
38
+ dotColors: V,
39
+ barPadding: Ht,
40
+ showTicks: ut,
41
+ truncateBy: jt,
42
+ width: vt,
43
+ height: wt,
44
+ radius: ht,
45
+ showLabels: At,
46
+ tooltip: v,
47
+ onSeriesMouseOver: lt,
48
+ maxValue: Dt,
49
+ minValue: M,
50
+ onSeriesMouseClick: xt,
51
+ showValues: _t,
52
+ suffix: yt,
53
+ prefix: W,
54
+ selectedColor: P,
55
+ arrowConnector: N,
56
+ connectorStrokeWidth: Rt,
57
+ maxBarThickness: kt,
58
+ minBarThickness: gt,
59
+ resetSelectionOnDoubleClick: Nt,
60
+ detailsOnClick: T,
61
+ axisTitle: rt,
62
+ noOfTicks: te,
63
+ valueColor: Tt,
64
+ styles: n,
65
+ classNames: a,
66
+ labelOrder: j,
67
+ refValues: St,
68
+ animate: h,
69
69
  precision: u,
70
- customLayers: G,
71
- highlightedDataPoints: P,
72
- dimmedOpacity: dt,
73
- hideAxisLine: H,
74
- locale: ht
75
- } = e, R = qt === void 0 ? 20 : qt, Zt = ne === void 0 ? 20 : ne, At = Ut === void 0 ? 20 : Ut, Rt = Jt === void 0 ? 25 : Jt, oe = we(null);
76
- let kt;
77
- t[0] !== f.amount || t[1] !== f.once ? (kt = {
78
- once: f.once,
79
- amount: f.amount
80
- }, t[0] = f.amount, t[1] = f.once, t[2] = kt) : kt = t[2];
81
- const A = Ye(oe, kt), h = W ? R + 30 : R;
82
- let x;
83
- t[3] !== Rt || t[4] !== Zt || t[5] !== h || t[6] !== At ? (x = {
84
- top: At,
85
- bottom: Rt,
86
- left: h,
87
- right: Zt
88
- }, t[3] = Rt, t[4] = Zt, t[5] = h, t[6] = At, t[7] = x) : x = t[7];
89
- const r = x, V = gt - r.left - r.right, st = bt - r.top - r.bottom, [St, _t] = It(void 0), [B, Ft] = It(void 0), [Mt, te] = It(void 0), [yt, Wt] = It(void 0);
90
- let Pt;
91
- if (t[8] !== c || t[9] !== p) {
92
- const m = /* @__PURE__ */ new Set(), g = c.map((s, ut) => {
93
- const E = p ? `${s.label}` : `${ut}`;
94
- return m.add(E), {
95
- ...s,
96
- id: E
70
+ customLayers: B,
71
+ highlightedDataPoints: g,
72
+ dimmedOpacity: ft,
73
+ hideAxisLine: Ft,
74
+ locale: ct,
75
+ padZeros: q
76
+ } = e, U = Jt === void 0 ? 20 : Jt, ee = se === void 0 ? 20 : se, Mt = Kt === void 0 ? 20 : Kt, ie = Qt === void 0 ? 25 : Qt, C = ge(null);
77
+ let f;
78
+ t[0] !== h.amount || t[1] !== h.once ? (f = {
79
+ once: h.once,
80
+ amount: h.amount
81
+ }, t[0] = h.amount, t[1] = h.once, t[2] = f) : f = t[2];
82
+ const w = Se(C, f), zt = rt ? U + 30 : U;
83
+ let Wt;
84
+ t[3] !== ie || t[4] !== ee || t[5] !== zt || t[6] !== Mt ? (Wt = {
85
+ top: Mt,
86
+ bottom: ie,
87
+ left: zt,
88
+ right: ee
89
+ }, t[3] = ie, t[4] = ee, t[5] = zt, t[6] = Mt, t[7] = Wt) : Wt = t[7];
90
+ const r = Wt, X = vt - r.left - r.right, Y = wt - r.top - r.bottom, [Ct, ae] = Vt(void 0), [D, Pt] = Vt(void 0), [Bt, A] = Vt(void 0), [dt, Zt] = Vt(void 0);
91
+ let Ot;
92
+ if (t[8] !== c || t[9] !== j) {
93
+ const x = /* @__PURE__ */ new Set(), b = c.map((y, st) => {
94
+ const d = j ? `${y.label}` : `${st}`;
95
+ return x.add(d), {
96
+ ...y,
97
+ id: d
97
98
  };
98
- }), Ot = p ? p.filter((s) => !m.has(s)) : [];
99
- let b;
100
- t[11] !== c[0] ? (b = (s) => ({
101
- id: s,
102
- label: s,
99
+ }), Ut = j ? j.filter((y) => !x.has(y)) : [];
100
+ let p;
101
+ t[11] !== c[0] ? (p = (y) => ({
102
+ id: y,
103
+ label: y,
103
104
  x: Array(c[0].x.length).fill(null)
104
- }), t[11] = c[0], t[12] = b) : b = t[12], Pt = [...g, ...Ot.map(b)], t[8] = c, t[9] = p, t[10] = Pt;
105
+ }), t[11] = c[0], t[12] = p) : p = t[12], Ot = [...b, ...Ut.map(p)], t[8] = c, t[9] = j, t[10] = Ot;
105
106
  } else
106
- Pt = t[10];
107
- const M = Pt;
108
- let lt;
109
- t[13] !== M || t[14] !== p ? (lt = p ?? M.map(bi), t[13] = M, t[14] = p, t[15] = lt) : lt = t[15];
110
- const zt = lt;
111
- let z, q, U, J, K, j, D, k, X, Q, Z, _, C, O, tt;
112
- if (t[16] !== f || t[17] !== I || t[18] !== W || t[19] !== zt || t[20] !== Et || t[21] !== n?.dataConnectors || t[22] !== n?.graphObjectValues || t[23] !== n?.xAxis?.axis || t[24] !== n?.xAxis?.labels || t[25] !== n?.yAxis?.gridLines || t[26] !== n?.yAxis?.labels || t[27] !== n?.yAxis?.title || t[28] !== Gt || t[29] !== G || t[30] !== M || t[31] !== $ || t[32] !== dt || t[33] !== L || t[34] !== st || t[35] !== V || t[36] !== bt || t[37] !== H || t[38] !== P || t[39] !== A || t[40] !== R || t[41] !== ht || t[42] !== r.bottom || t[43] !== r.left || t[44] !== r.right || t[45] !== r.top || t[46] !== wt || t[47] !== jt || t[48] !== Dt || t[49] !== w || t[50] !== B || t[51] !== Ht || t[52] !== ct || t[53] !== ot || t[54] !== u || t[55] !== S || t[56] !== ft || t[57] !== Tt || t[58] !== Qt || t[59] !== F || t[60] !== vt || t[61] !== rt || t[62] !== Kt || t[63] !== o?.dataConnectors || t[64] !== o?.graphObjectValues || t[65] !== o?.xAxis?.axis || t[66] !== o?.xAxis?.labels || t[67] !== o?.yAxis?.gridLines || t[68] !== o?.yAxis?.labels || t[69] !== o?.yAxis?.title || t[70] !== pt || t[71] !== Vt || t[72] !== Nt || t[73] !== gt) {
113
- const m = Be().domain([w, jt]).range([st, 0]).nice(), g = Xe().domain(zt).range([0, Dt ? Math.max(V, Dt * M.length) : wt ? Math.min(V, wt * M.length) : V]).paddingInner(Et), Ot = m.ticks(Ht);
114
- q = Xt.svg, X = `${gt}px`, Q = `${bt}px`, Z = `0 0 ${gt} ${bt}`, _ = "ltr", C = oe, t[89] !== I ? (O = I ? /* @__PURE__ */ a.jsx("defs", { children: /* @__PURE__ */ a.jsx("marker", { id: "arrow", viewBox: "0 0 10 10", refX: "10", refY: "5", markerWidth: "6", markerHeight: "6", orient: "auto-start-reverse", children: /* @__PURE__ */ a.jsx("path", { d: "M 0 0 L 10 5 L 0 10 z", className: "fill-primary-gray-600 dark:fill-primary-gray-300" }) }) }) : null, t[89] = I, t[90] = O) : O = t[90], J = `translate(${r.left},${r.top})`;
115
- let b;
116
- t[91] !== w || t[92] !== u || t[93] !== S || t[94] !== rt || t[95] !== pt ? (b = rt ? $e(w < 0 ? 0 : w, void 0, u, S, pt) : void 0, t[91] = w, t[92] = u, t[93] = S, t[94] = rt, t[95] = pt, t[96] = b) : b = t[96];
117
- const s = n?.xAxis?.axis, ut = n?.yAxis?.labels;
118
- let E;
119
- t[97] !== s || t[98] !== ut ? (E = {
120
- axis: s,
121
- label: ut
122
- }, t[97] = s, t[98] = ut, t[99] = E) : E = t[99];
123
- const Bt = o?.xAxis?.axis, ee = o?.yAxis?.labels;
124
- let Lt;
125
- t[100] !== Bt || t[101] !== ee ? (Lt = {
126
- axis: Bt,
127
- label: ee
128
- }, t[100] = Bt, t[101] = ee, t[102] = Lt) : Lt = t[102], K = /* @__PURE__ */ a.jsx(qe, { hideAxisLine: H, y1: m(w < 0 ? 0 : w), y2: m(w < 0 ? 0 : w), x1: 0 - R, x2: V + r.right, label: b, labelPos: {
129
- x: 0 - R,
107
+ Ot = t[10];
108
+ const O = Ot;
109
+ let Lt;
110
+ t[13] !== O || t[14] !== j ? (Lt = j ?? O.map(ui), t[13] = O, t[14] = j, t[15] = Lt) : Lt = t[15];
111
+ const qt = Lt;
112
+ let J, E, G, K, Q, S, k, I, _, tt, et, pt, F, L, it;
113
+ if (t[16] !== h || t[17] !== N || t[18] !== rt || t[19] !== qt || t[20] !== Ht || t[21] !== a?.dataConnectors || t[22] !== a?.graphObjectValues || t[23] !== a?.xAxis?.axis || t[24] !== a?.xAxis?.labels || t[25] !== a?.yAxis?.gridLines || t[26] !== a?.yAxis?.labels || t[27] !== a?.yAxis?.title || t[28] !== Rt || t[29] !== B || t[30] !== O || t[31] !== T || t[32] !== ft || t[33] !== V || t[34] !== Y || t[35] !== X || t[36] !== wt || t[37] !== Ft || t[38] !== g || t[39] !== w || t[40] !== U || t[41] !== ct || t[42] !== r.bottom || t[43] !== r.left || t[44] !== r.right || t[45] !== r.top || t[46] !== kt || t[47] !== Dt || t[48] !== gt || t[49] !== M || t[50] !== D || t[51] !== te || t[52] !== xt || t[53] !== lt || t[54] !== q || t[55] !== u || t[56] !== W || t[57] !== ht || t[58] !== St || t[59] !== Nt || t[60] !== P || t[61] !== At || t[62] !== ut || t[63] !== _t || t[64] !== n?.dataConnectors || t[65] !== n?.graphObjectValues || t[66] !== n?.xAxis?.axis || t[67] !== n?.xAxis?.labels || t[68] !== n?.yAxis?.gridLines || t[69] !== n?.yAxis?.labels || t[70] !== n?.yAxis?.title || t[71] !== yt || t[72] !== jt || t[73] !== Tt || t[74] !== vt) {
114
+ const x = Ne().domain([M, Dt]).range([Y, 0]).nice(), b = Te().domain(qt).range([0, gt ? Math.max(X, gt * O.length) : kt ? Math.min(X, kt * O.length) : X]).paddingInner(Ht), Ut = x.ticks(te);
115
+ E = Et.svg, _ = `${vt}px`, tt = `${wt}px`, et = `0 0 ${vt} ${wt}`, pt = "ltr", F = C, t[90] !== N ? (L = N ? /* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("marker", { id: "arrow", viewBox: "0 0 10 10", refX: "10", refY: "5", markerWidth: "6", markerHeight: "6", orient: "auto-start-reverse", children: /* @__PURE__ */ i.jsx("path", { d: "M 0 0 L 10 5 L 0 10 z", className: "fill-primary-gray-600 dark:fill-primary-gray-300" }) }) }) : null, t[90] = N, t[91] = L) : L = t[91], K = `translate(${r.left},${r.top})`;
116
+ let p;
117
+ t[92] !== ct || t[93] !== M || t[94] !== q || t[95] !== u || t[96] !== W || t[97] !== ut || t[98] !== yt ? (p = ut ? ke(M < 0 ? 0 : M, void 0, u, W, yt, ct, q) : void 0, t[92] = ct, t[93] = M, t[94] = q, t[95] = u, t[96] = W, t[97] = ut, t[98] = yt, t[99] = p) : p = t[99];
118
+ const y = a?.xAxis?.axis, st = a?.yAxis?.labels;
119
+ let d;
120
+ t[100] !== y || t[101] !== st ? (d = {
121
+ axis: y,
122
+ label: st
123
+ }, t[100] = y, t[101] = st, t[102] = d) : d = t[102];
124
+ const z = n?.xAxis?.axis, Xt = n?.yAxis?.labels;
125
+ let Yt;
126
+ t[103] !== z || t[104] !== Xt ? (Yt = {
127
+ axis: z,
128
+ label: Xt
129
+ }, t[103] = z, t[104] = Xt, t[105] = Yt) : Yt = t[105], Q = /* @__PURE__ */ i.jsx(Xe, { hideAxisLine: Ft, y1: x(M < 0 ? 0 : M), y2: x(M < 0 ? 0 : M), x1: 0 - U, x2: X + r.right, label: p, labelPos: {
130
+ x: 0 - U,
130
131
  dx: 0,
131
- dy: jt < 0 ? "1em" : -5,
132
- y: m(w < 0 ? 0 : w)
133
- }, classNames: E, styles: Lt }), j = rt ? /* @__PURE__ */ a.jsx(We, { values: Ot.filter(gi), y: Ot.filter(yi).map((i) => m(i)), x1: 0 - R, x2: V + r.right, styles: {
134
- gridLines: o?.yAxis?.gridLines,
135
- labels: o?.yAxis?.labels
136
- }, classNames: {
132
+ dy: Dt < 0 ? "1em" : -5,
133
+ y: x(M < 0 ? 0 : M)
134
+ }, classNames: d, styles: Yt }), S = ut ? /* @__PURE__ */ i.jsx(je, { values: Ut.filter(mi), y: Ut.filter(di).map((l) => x(l)), x1: 0 - U, x2: X + r.right, styles: {
137
135
  gridLines: n?.yAxis?.gridLines,
138
136
  labels: n?.yAxis?.labels
139
- }, suffix: pt, prefix: S, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: u, locale: ht }) : null;
140
- const ie = 0 - R - 15, l = st / 2, xt = o?.yAxis?.title, v = n?.yAxis?.title;
141
- t[103] !== W || t[104] !== ie || t[105] !== l || t[106] !== xt || t[107] !== v ? (D = /* @__PURE__ */ a.jsx(Fe, { x: ie, y: l, style: xt, className: v, text: W, rotate90: !0 }), t[103] = W, t[104] = ie, t[105] = l, t[106] = xt, t[107] = v, t[108] = D) : D = t[108], t[109] !== G ? (k = G.filter(hi).map(pi), t[109] = G, t[110] = k) : k = t[110], z = Ee, tt = M.map((i) => /* @__PURE__ */ a.jsxs(Xt.g, { className: "undp-viz-g-with-hover", variants: {
137
+ }, classNames: {
138
+ gridLines: a?.yAxis?.gridLines,
139
+ labels: a?.yAxis?.labels
140
+ }, suffix: yt, prefix: W, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: u, locale: ct, padZeros: q }) : null;
141
+ const ne = 0 - U - 15, s = Y / 2, mt = n?.yAxis?.title, $ = a?.yAxis?.title;
142
+ t[106] !== rt || t[107] !== ne || t[108] !== s || t[109] !== mt || t[110] !== $ ? (k = /* @__PURE__ */ i.jsx(Ve, { x: ne, y: s, style: mt, className: $, text: rt, rotate90: !0 }), t[106] = rt, t[107] = ne, t[108] = s, t[109] = mt, t[110] = $, t[111] = k) : k = t[111], t[112] !== B ? (I = B.filter(ci).map(ri), t[112] = B, t[113] = I) : I = t[113], J = Fe, it = O.map((l) => /* @__PURE__ */ i.jsxs(Et.g, { className: "undp-viz-g-with-hover", variants: {
142
143
  initial: {
143
- x: g(`${i.id}`) + g.bandwidth() / 2,
144
+ x: b(`${l.id}`) + b.bandwidth() / 2,
144
145
  y: 0,
145
- opacity: P ? P.indexOf(i.label) !== -1 ? 0.85 : dt : 0.85
146
+ opacity: g ? g.indexOf(l.label) !== -1 ? 0.85 : ft : 0.85
146
147
  },
147
148
  whileInView: {
148
- x: g(`${i.id}`) + g.bandwidth() / 2,
149
+ x: b(`${l.id}`) + b.bandwidth() / 2,
149
150
  y: 0,
150
- opacity: P ? P.indexOf(i.label) !== -1 ? 0.85 : dt : 0.85,
151
+ opacity: g ? g.indexOf(l.label) !== -1 ? 0.85 : ft : 0.85,
151
152
  transition: {
152
- duration: f.duration
153
+ duration: h.duration
153
154
  }
154
155
  }
155
- }, initial: "initial", animate: A ? "whileInView" : "initial", exit: {
156
+ }, initial: "initial", animate: w ? "whileInView" : "initial", exit: {
156
157
  opacity: 0,
157
158
  transition: {
158
- duration: f.duration
159
+ duration: h.duration
159
160
  }
160
161
  }, children: [
161
- vt ? /* @__PURE__ */ a.jsx(Ue, { value: `${i.label}`.length < Vt ? `${i.label}` : `${`${i.label}`.substring(0, Vt)}...`, y: st + 5, x: 0 - g.bandwidth() / 2, width: g.bandwidth(), height: r.bottom, style: o?.xAxis?.labels, className: n?.xAxis?.labels, alignment: "top", animate: f, isInView: A }) : null,
162
- /* @__PURE__ */ a.jsx(Xt.line, { x1: 0, x2: 0, style: {
163
- strokeWidth: Gt,
164
- ...o?.dataConnectors || {},
165
- opacity: F ? 0.3 : 1
166
- }, className: ve("stroke-primary-gray-600 dark:stroke-primary-gray-300", n?.dataConnectors), markerEnd: I && i.x.indexOf(Math.min(...i.x.filter(fi))) === 0 ? "url(#arrow)" : "", markerStart: I && i.x.indexOf(Math.min(...i.x.filter(xi))) === i.x.length - 1 ? "url(#arrow)" : "", exit: {
162
+ At ? /* @__PURE__ */ i.jsx(Ye, { value: `${l.label}`.length < jt ? `${l.label}` : `${`${l.label}`.substring(0, jt)}...`, y: Y + 5, x: 0 - b.bandwidth() / 2, width: b.bandwidth(), height: r.bottom, style: n?.xAxis?.labels, className: a?.xAxis?.labels, alignment: "top", animate: h, isInView: w }) : null,
163
+ /* @__PURE__ */ i.jsx(Et.line, { x1: 0, x2: 0, style: {
164
+ strokeWidth: Rt,
165
+ ...n?.dataConnectors || {},
166
+ opacity: P ? 0.3 : 1
167
+ }, className: ye("stroke-primary-gray-600 dark:stroke-primary-gray-300", a?.dataConnectors), markerEnd: N && l.x.indexOf(Math.min(...l.x.filter(li))) === 0 ? "url(#arrow)" : "", markerStart: N && l.x.indexOf(Math.min(...l.x.filter(si))) === l.x.length - 1 ? "url(#arrow)" : "", exit: {
167
168
  opacity: 0,
168
169
  transition: {
169
- duration: f.duration
170
+ duration: h.duration
170
171
  }
171
172
  }, variants: {
172
173
  initial: {
@@ -174,297 +175,298 @@ function ri(e) {
174
175
  y2: 0
175
176
  },
176
177
  whileInView: {
177
- y1: m(Math.min(...i.x.filter(ui))) + ft,
178
- y2: m(Math.max(...i.x.filter(mi))) - ft,
178
+ y1: x(Math.min(...l.x.filter(oi))) + ht,
179
+ y2: x(Math.max(...l.x.filter(ni))) - ht,
179
180
  transition: {
180
- duration: f.duration
181
+ duration: h.duration
181
182
  }
182
183
  }
183
- }, initial: "initial", animate: A ? "whileInView" : "initial" }),
184
- i.x.map((T, nt) => /* @__PURE__ */ a.jsx(Xt.g, { onMouseEnter: (ae) => {
185
- _t({
186
- ...i,
187
- xIndex: nt
188
- }), Wt(ae.clientY), te(ae.clientX), ot?.({
189
- ...i,
190
- xIndex: nt
184
+ }, initial: "initial", animate: w ? "whileInView" : "initial" }),
185
+ l.x.map(($t, Z) => /* @__PURE__ */ i.jsx(Et.g, { onMouseEnter: (oe) => {
186
+ ae({
187
+ ...l,
188
+ xIndex: Z
189
+ }), Zt(oe.clientY), A(oe.clientX), lt?.({
190
+ ...l,
191
+ xIndex: Z
191
192
  });
192
193
  }, onClick: () => {
193
- (ct || $) && (Te(B, {
194
- ...i,
195
- xIndex: nt
196
- }) && Qt ? (Ft(void 0), ct?.(void 0)) : (Ft({
197
- ...i,
198
- xIndex: nt
199
- }), ct && ct({
200
- ...i,
201
- xIndex: nt
194
+ (xt || T) && ($e(D, {
195
+ ...l,
196
+ xIndex: Z
197
+ }) && Nt ? (Pt(void 0), xt?.(void 0)) : (Pt({
198
+ ...l,
199
+ xIndex: Z
200
+ }), xt && xt({
201
+ ...l,
202
+ xIndex: Z
202
203
  })));
203
- }, onMouseMove: (ae) => {
204
- _t({
205
- ...i,
206
- xIndex: nt
207
- }), Wt(ae.clientY), te(ae.clientX);
204
+ }, onMouseMove: (oe) => {
205
+ ae({
206
+ ...l,
207
+ xIndex: Z
208
+ }), Zt(oe.clientY), A(oe.clientX);
208
209
  }, onMouseLeave: () => {
209
- _t(void 0), te(void 0), Wt(void 0), ot?.(void 0);
210
+ ae(void 0), A(void 0), Zt(void 0), lt?.(void 0);
210
211
  }, exit: {
211
212
  opacity: 0,
212
213
  transition: {
213
- duration: f.duration
214
+ duration: h.duration
214
215
  }
215
216
  }, variants: {
216
217
  initial: {
217
- opacity: F ? L[nt] === F ? 1 : 0.3 : 1
218
+ opacity: P ? V[Z] === P ? 1 : 0.3 : 1
218
219
  },
219
220
  whileInView: {
220
- opacity: F ? L[nt] === F ? 1 : 0.3 : 1,
221
+ opacity: P ? V[Z] === P ? 1 : 0.3 : 1,
221
222
  transition: {
222
- duration: f.duration
223
+ duration: h.duration
223
224
  }
224
225
  }
225
- }, initial: "initial", animate: A ? "whileInView" : "initial", children: Yt(T) ? null : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
226
- /* @__PURE__ */ a.jsx(Xt.circle, { cx: 0, r: ft, style: {
227
- fill: L[nt],
226
+ }, initial: "initial", animate: w ? "whileInView" : "initial", children: Gt($t) ? null : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
227
+ /* @__PURE__ */ i.jsx(Et.circle, { cx: 0, r: ht, style: {
228
+ fill: V[Z],
228
229
  fillOpacity: 0.85,
229
- stroke: L[nt],
230
+ stroke: V[Z],
230
231
  strokeWidth: 1
231
232
  }, exit: {
232
233
  opacity: 0,
233
234
  transition: {
234
- duration: f.duration
235
+ duration: h.duration
235
236
  }
236
237
  }, variants: {
237
238
  initial: {
238
- cy: m(0),
239
+ cy: x(0),
239
240
  opacity: 0
240
241
  },
241
242
  whileInView: {
242
- cy: m(T || 0),
243
- opacity: Yt(T) ? 0 : 1,
243
+ cy: x($t || 0),
244
+ opacity: Gt($t) ? 0 : 1,
244
245
  transition: {
245
- duration: f.duration
246
+ duration: h.duration
246
247
  }
247
248
  }
248
- }, initial: "initial", animate: A ? "whileInView" : "initial" }),
249
- Kt ? /* @__PURE__ */ a.jsx(Xt.text, { x: 0, style: {
249
+ }, initial: "initial", animate: w ? "whileInView" : "initial" }),
250
+ _t ? /* @__PURE__ */ i.jsx(Et.text, { x: 0, style: {
250
251
  textAnchor: "start",
251
- ...o?.graphObjectValues || {}
252
- }, className: ve("graph-value text-sm font-bold", Yt(T) ? "opacity-0" : "opacity-100", n?.graphObjectValues), dx: ft + 3, dy: "0.33em", exit: {
252
+ ...n?.graphObjectValues || {}
253
+ }, className: ye("graph-value text-sm font-bold", Gt($t) ? "opacity-0" : "opacity-100", a?.graphObjectValues), dx: ht + 3, dy: "0.33em", exit: {
253
254
  opacity: 0,
254
255
  transition: {
255
- duration: f.duration
256
+ duration: h.duration
256
257
  }
257
258
  }, variants: {
258
259
  initial: {
259
- y: m(0),
260
+ y: x(0),
260
261
  opacity: 0,
261
- fill: Nt || L[nt]
262
+ fill: Tt || V[Z]
262
263
  },
263
264
  whileInView: {
264
- y: m(T || 0),
265
- fill: Nt || L[nt],
265
+ y: x($t || 0),
266
+ fill: Tt || V[Z],
266
267
  opacity: 1,
267
268
  transition: {
268
- duration: f.duration
269
+ duration: h.duration
269
270
  }
270
271
  }
271
- }, initial: "initial", animate: A ? "whileInView" : "initial", children: $e(T, void 0, u, S, pt, ht) }) : null
272
- ] }) }, nt))
273
- ] }, i.label)), U = Tt ? /* @__PURE__ */ a.jsx(a.Fragment, { children: Tt.map((i, T) => /* @__PURE__ */ a.jsx(Ke, { text: i.text, color: i.color, y: m(i.value), x1: 0 - R, x2: V + r.right, classNames: i.classNames, styles: i.styles, animate: f, isInView: A }, T)) }) : null, t[16] = f, t[17] = I, t[18] = W, t[19] = zt, t[20] = Et, t[21] = n?.dataConnectors, t[22] = n?.graphObjectValues, t[23] = n?.xAxis?.axis, t[24] = n?.xAxis?.labels, t[25] = n?.yAxis?.gridLines, t[26] = n?.yAxis?.labels, t[27] = n?.yAxis?.title, t[28] = Gt, t[29] = G, t[30] = M, t[31] = $, t[32] = dt, t[33] = L, t[34] = st, t[35] = V, t[36] = bt, t[37] = H, t[38] = P, t[39] = A, t[40] = R, t[41] = ht, t[42] = r.bottom, t[43] = r.left, t[44] = r.right, t[45] = r.top, t[46] = wt, t[47] = jt, t[48] = Dt, t[49] = w, t[50] = B, t[51] = Ht, t[52] = ct, t[53] = ot, t[54] = u, t[55] = S, t[56] = ft, t[57] = Tt, t[58] = Qt, t[59] = F, t[60] = vt, t[61] = rt, t[62] = Kt, t[63] = o?.dataConnectors, t[64] = o?.graphObjectValues, t[65] = o?.xAxis?.axis, t[66] = o?.xAxis?.labels, t[67] = o?.yAxis?.gridLines, t[68] = o?.yAxis?.labels, t[69] = o?.yAxis?.title, t[70] = pt, t[71] = Vt, t[72] = Nt, t[73] = gt, t[74] = z, t[75] = q, t[76] = U, t[77] = J, t[78] = K, t[79] = j, t[80] = D, t[81] = k, t[82] = X, t[83] = Q, t[84] = Z, t[85] = _, t[86] = C, t[87] = O, t[88] = tt;
272
+ }, initial: "initial", animate: w ? "whileInView" : "initial", children: ke($t, void 0, u, W, yt, ct, q) }) : null
273
+ ] }) }, Z))
274
+ ] }, l.label)), G = St ? /* @__PURE__ */ i.jsx(i.Fragment, { children: St.map((l, $t) => /* @__PURE__ */ i.jsx(Ge, { text: l.text, color: l.color, y: x(l.value), x1: 0 - U, x2: X + r.right, classNames: l.classNames, styles: l.styles, animate: h, isInView: w }, $t)) }) : null, t[16] = h, t[17] = N, t[18] = rt, t[19] = qt, t[20] = Ht, t[21] = a?.dataConnectors, t[22] = a?.graphObjectValues, t[23] = a?.xAxis?.axis, t[24] = a?.xAxis?.labels, t[25] = a?.yAxis?.gridLines, t[26] = a?.yAxis?.labels, t[27] = a?.yAxis?.title, t[28] = Rt, t[29] = B, t[30] = O, t[31] = T, t[32] = ft, t[33] = V, t[34] = Y, t[35] = X, t[36] = wt, t[37] = Ft, t[38] = g, t[39] = w, t[40] = U, t[41] = ct, t[42] = r.bottom, t[43] = r.left, t[44] = r.right, t[45] = r.top, t[46] = kt, t[47] = Dt, t[48] = gt, t[49] = M, t[50] = D, t[51] = te, t[52] = xt, t[53] = lt, t[54] = q, t[55] = u, t[56] = W, t[57] = ht, t[58] = St, t[59] = Nt, t[60] = P, t[61] = At, t[62] = ut, t[63] = _t, t[64] = n?.dataConnectors, t[65] = n?.graphObjectValues, t[66] = n?.xAxis?.axis, t[67] = n?.xAxis?.labels, t[68] = n?.yAxis?.gridLines, t[69] = n?.yAxis?.labels, t[70] = n?.yAxis?.title, t[71] = yt, t[72] = jt, t[73] = Tt, t[74] = vt, t[75] = J, t[76] = E, t[77] = G, t[78] = K, t[79] = Q, t[80] = S, t[81] = k, t[82] = I, t[83] = _, t[84] = tt, t[85] = et, t[86] = pt, t[87] = F, t[88] = L, t[89] = it;
274
275
  } else
275
- z = t[74], q = t[75], U = t[76], J = t[77], K = t[78], j = t[79], D = t[80], k = t[81], X = t[82], Q = t[83], Z = t[84], _ = t[85], C = t[86], O = t[87], tt = t[88];
276
- let et;
277
- t[111] !== z || t[112] !== U || t[113] !== tt ? (et = /* @__PURE__ */ a.jsxs(z, { children: [
278
- tt,
279
- U
280
- ] }), t[111] = z, t[112] = U, t[113] = tt, t[114] = et) : et = t[114];
281
- let it;
282
- t[115] !== G ? (it = G.filter(di).map(ci), t[115] = G, t[116] = it) : it = t[116];
283
- let mt;
284
- t[117] !== J || t[118] !== K || t[119] !== j || t[120] !== D || t[121] !== k || t[122] !== et || t[123] !== it ? (mt = /* @__PURE__ */ a.jsxs("g", { transform: J, children: [
285
- K,
286
- j,
287
- D,
288
- k,
289
- et,
290
- it
291
- ] }), t[117] = J, t[118] = K, t[119] = j, t[120] = D, t[121] = k, t[122] = et, t[123] = it, t[124] = mt) : mt = t[124];
292
- let N;
293
- t[125] !== q || t[126] !== X || t[127] !== Q || t[128] !== Z || t[129] !== _ || t[130] !== C || t[131] !== O || t[132] !== mt ? (N = /* @__PURE__ */ a.jsxs(q, { width: X, height: Q, viewBox: Z, direction: _, ref: C, children: [
294
- O,
295
- mt
296
- ] }), t[125] = q, t[126] = X, t[127] = Q, t[128] = Z, t[129] = _, t[130] = C, t[131] = O, t[132] = mt, t[133] = N) : N = t[133];
297
- let Y;
298
- t[134] !== n?.tooltip || t[135] !== Mt || t[136] !== yt || t[137] !== St || t[138] !== o?.tooltip || t[139] !== y ? (Y = St && y && Mt && yt ? /* @__PURE__ */ a.jsx(Se, { data: St, body: y, xPos: Mt, yPos: yt, backgroundStyle: o?.tooltip, className: n?.tooltip }) : null, t[134] = n?.tooltip, t[135] = Mt, t[136] = yt, t[137] = St, t[138] = o?.tooltip, t[139] = y, t[140] = Y) : Y = t[140];
276
+ J = t[75], E = t[76], G = t[77], K = t[78], Q = t[79], S = t[80], k = t[81], I = t[82], _ = t[83], tt = t[84], et = t[85], pt = t[86], F = t[87], L = t[88], it = t[89];
277
+ let H;
278
+ t[114] !== J || t[115] !== G || t[116] !== it ? (H = /* @__PURE__ */ i.jsxs(J, { children: [
279
+ it,
280
+ G
281
+ ] }), t[114] = J, t[115] = G, t[116] = it, t[117] = H) : H = t[117];
299
282
  let at;
300
- t[141] !== n?.modal || t[142] !== $ || t[143] !== B ? (at = $ && B !== void 0 ? /* @__PURE__ */ a.jsx(Pe, { body: $, data: B, setData: Ft, className: n?.modal }) : null, t[141] = n?.modal, t[142] = $, t[143] = B, t[144] = at) : at = t[144];
301
- let Ct;
302
- return t[145] !== N || t[146] !== Y || t[147] !== at ? (Ct = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
303
- N,
304
- Y,
283
+ t[118] !== B ? (at = B.filter(ai).map(ii), t[118] = B, t[119] = at) : at = t[119];
284
+ let nt;
285
+ t[120] !== K || t[121] !== Q || t[122] !== S || t[123] !== k || t[124] !== I || t[125] !== H || t[126] !== at ? (nt = /* @__PURE__ */ i.jsxs("g", { transform: K, children: [
286
+ Q,
287
+ S,
288
+ k,
289
+ I,
290
+ H,
305
291
  at
306
- ] }), t[145] = N, t[146] = Y, t[147] = at, t[148] = Ct) : Ct = t[148], Ct;
307
- }
308
- function ci(e) {
292
+ ] }), t[120] = K, t[121] = Q, t[122] = S, t[123] = k, t[124] = I, t[125] = H, t[126] = at, t[127] = nt) : nt = t[127];
293
+ let R;
294
+ t[128] !== E || t[129] !== _ || t[130] !== tt || t[131] !== et || t[132] !== pt || t[133] !== F || t[134] !== L || t[135] !== nt ? (R = /* @__PURE__ */ i.jsxs(E, { width: _, height: tt, viewBox: et, direction: pt, ref: F, children: [
295
+ L,
296
+ nt
297
+ ] }), t[128] = E, t[129] = _, t[130] = tt, t[131] = et, t[132] = pt, t[133] = F, t[134] = L, t[135] = nt, t[136] = R) : R = t[136];
298
+ let o;
299
+ t[137] !== a?.tooltip || t[138] !== Bt || t[139] !== dt || t[140] !== Ct || t[141] !== n?.tooltip || t[142] !== v ? (o = Ct && v && Bt && dt ? /* @__PURE__ */ i.jsx(Ie, { data: Ct, body: v, xPos: Bt, yPos: dt, backgroundStyle: n?.tooltip, className: a?.tooltip }) : null, t[137] = a?.tooltip, t[138] = Bt, t[139] = dt, t[140] = Ct, t[141] = n?.tooltip, t[142] = v, t[143] = o) : o = t[143];
300
+ let ot;
301
+ t[144] !== a?.modal || t[145] !== T || t[146] !== D ? (ot = T && D !== void 0 ? /* @__PURE__ */ i.jsx(De, { body: T, data: D, setData: Pt, className: a?.modal }) : null, t[144] = a?.modal, t[145] = T, t[146] = D, t[147] = ot) : ot = t[147];
302
+ let bt;
303
+ return t[148] !== R || t[149] !== o || t[150] !== ot ? (bt = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
304
+ R,
305
+ o,
306
+ ot
307
+ ] }), t[148] = R, t[149] = o, t[150] = ot, t[151] = bt) : bt = t[151], bt;
308
+ }
309
+ function ii(e) {
309
310
  return e.layer;
310
311
  }
311
- function di(e) {
312
+ function ai(e) {
312
313
  return e.position === "after";
313
314
  }
314
- function mi(e) {
315
+ function ni(e) {
315
316
  return e !== null;
316
317
  }
317
- function ui(e) {
318
+ function oi(e) {
318
319
  return e !== null;
319
320
  }
320
- function xi(e) {
321
+ function si(e) {
321
322
  return e !== null;
322
323
  }
323
- function fi(e) {
324
+ function li(e) {
324
325
  return e !== null;
325
326
  }
326
- function pi(e) {
327
+ function ri(e) {
327
328
  return e.layer;
328
329
  }
329
- function hi(e) {
330
+ function ci(e) {
330
331
  return e.position === "before";
331
332
  }
332
- function yi(e) {
333
+ function di(e) {
333
334
  return e !== 0;
334
335
  }
335
- function gi(e) {
336
+ function mi(e) {
336
337
  return e !== 0;
337
338
  }
338
- function bi(e) {
339
+ function ui(e) {
339
340
  return `${e.id}`;
340
341
  }
341
- function vi(e) {
342
- const t = Ie.c(140), {
342
+ function xi(e) {
343
+ const t = Me.c(141), {
343
344
  data: c,
344
- leftMargin: qt,
345
- rightMargin: ne,
346
- topMargin: Ut,
347
- bottomMargin: Jt,
348
- dotColors: L,
349
- suffix: Et,
350
- prefix: rt,
351
- barPadding: Vt,
352
- showValues: gt,
353
- showTicks: bt,
354
- truncateBy: ft,
355
- width: vt,
356
- height: y,
357
- radius: ot,
358
- showLabels: jt,
359
- tooltip: w,
360
- onSeriesMouseOver: ct,
361
- maxValue: Kt,
362
- minValue: pt,
363
- onSeriesMouseClick: S,
364
- selectedColor: F,
365
- arrowConnector: I,
366
- connectorStrokeWidth: Gt,
367
- maxBarThickness: wt,
368
- minBarThickness: Dt,
369
- resetSelectionOnDoubleClick: Qt,
370
- detailsOnClick: $,
371
- axisTitle: W,
372
- noOfTicks: Ht,
373
- valueColor: Nt,
374
- styles: o,
375
- classNames: n,
376
- labelOrder: p,
377
- refValues: Tt,
378
- rtl: f,
345
+ leftMargin: Jt,
346
+ rightMargin: se,
347
+ topMargin: Kt,
348
+ bottomMargin: Qt,
349
+ dotColors: V,
350
+ suffix: Ht,
351
+ prefix: ut,
352
+ barPadding: jt,
353
+ showValues: vt,
354
+ showTicks: wt,
355
+ truncateBy: ht,
356
+ width: At,
357
+ height: v,
358
+ radius: lt,
359
+ showLabels: Dt,
360
+ tooltip: M,
361
+ onSeriesMouseOver: xt,
362
+ maxValue: _t,
363
+ minValue: yt,
364
+ onSeriesMouseClick: W,
365
+ selectedColor: P,
366
+ arrowConnector: N,
367
+ connectorStrokeWidth: Rt,
368
+ maxBarThickness: kt,
369
+ minBarThickness: gt,
370
+ resetSelectionOnDoubleClick: Nt,
371
+ detailsOnClick: T,
372
+ axisTitle: rt,
373
+ noOfTicks: te,
374
+ valueColor: Tt,
375
+ styles: n,
376
+ classNames: a,
377
+ labelOrder: j,
378
+ refValues: St,
379
+ rtl: h,
379
380
  animate: u,
380
- precision: G,
381
- customLayers: P,
382
- highlightedDataPoints: dt,
383
- dimmedOpacity: H,
384
- locale: ht
385
- } = e, R = qt === void 0 ? 100 : qt, Zt = ne === void 0 ? 40 : ne, At = Ut === void 0 ? 20 : Ut, Rt = Jt === void 0 ? 10 : Jt, oe = we(null);
386
- let kt;
387
- t[0] !== u.amount || t[1] !== u.once ? (kt = {
381
+ precision: B,
382
+ customLayers: g,
383
+ highlightedDataPoints: ft,
384
+ dimmedOpacity: Ft,
385
+ locale: ct,
386
+ padZeros: q
387
+ } = e, U = Jt === void 0 ? 100 : Jt, ee = se === void 0 ? 40 : se, Mt = Kt === void 0 ? 20 : Kt, ie = Qt === void 0 ? 10 : Qt, C = ge(null);
388
+ let f;
389
+ t[0] !== u.amount || t[1] !== u.once ? (f = {
388
390
  once: u.once,
389
391
  amount: u.amount
390
- }, t[0] = u.amount, t[1] = u.once, t[2] = kt) : kt = t[2];
391
- const A = Ye(oe, kt), h = W ? At + 25 : At;
392
- let x;
393
- t[3] !== Rt || t[4] !== R || t[5] !== Zt || t[6] !== h ? (x = {
394
- top: h,
395
- bottom: Rt,
396
- left: R,
397
- right: Zt
398
- }, t[3] = Rt, t[4] = R, t[5] = Zt, t[6] = h, t[7] = x) : x = t[7];
399
- const r = x, V = vt - r.left - r.right, st = y - r.top - r.bottom, [St, _t] = It(void 0), [B, Ft] = It(void 0), [Mt, te] = It(void 0), [yt, Wt] = It(void 0);
400
- let Pt;
401
- if (t[8] !== c || t[9] !== p) {
402
- const m = /* @__PURE__ */ new Set(), g = c.map((s, ut) => {
403
- const E = p ? `${s.label}` : `${ut}`;
404
- return m.add(E), {
405
- ...s,
406
- id: E
392
+ }, t[0] = u.amount, t[1] = u.once, t[2] = f) : f = t[2];
393
+ const w = Se(C, f), zt = rt ? Mt + 25 : Mt;
394
+ let Wt;
395
+ t[3] !== ie || t[4] !== U || t[5] !== ee || t[6] !== zt ? (Wt = {
396
+ top: zt,
397
+ bottom: ie,
398
+ left: U,
399
+ right: ee
400
+ }, t[3] = ie, t[4] = U, t[5] = ee, t[6] = zt, t[7] = Wt) : Wt = t[7];
401
+ const r = Wt, X = At - r.left - r.right, Y = v - r.top - r.bottom, [Ct, ae] = Vt(void 0), [D, Pt] = Vt(void 0), [Bt, A] = Vt(void 0), [dt, Zt] = Vt(void 0);
402
+ let Ot;
403
+ if (t[8] !== c || t[9] !== j) {
404
+ const x = /* @__PURE__ */ new Set(), b = c.map((y, st) => {
405
+ const d = j ? `${y.label}` : `${st}`;
406
+ return x.add(d), {
407
+ ...y,
408
+ id: d
407
409
  };
408
- }), Ot = p ? p.filter((s) => !m.has(s)) : [];
409
- let b;
410
- t[11] !== c[0] ? (b = (s) => ({
411
- id: s,
412
- label: s,
410
+ }), Ut = j ? j.filter((y) => !x.has(y)) : [];
411
+ let p;
412
+ t[11] !== c[0] ? (p = (y) => ({
413
+ id: y,
414
+ label: y,
413
415
  x: Array(c[0].x.length).fill(null)
414
- }), t[11] = c[0], t[12] = b) : b = t[12], Pt = [...g, ...Ot.map(b)], t[8] = c, t[9] = p, t[10] = Pt;
416
+ }), t[11] = c[0], t[12] = p) : p = t[12], Ot = [...b, ...Ut.map(p)], t[8] = c, t[9] = j, t[10] = Ot;
415
417
  } else
416
- Pt = t[10];
417
- const M = Pt;
418
- let lt;
419
- t[13] !== M || t[14] !== p ? (lt = p ?? M.map(ji), t[13] = M, t[14] = p, t[15] = lt) : lt = t[15];
420
- const zt = lt;
421
- let z, q, U, J, K, j, D, k, X, Q, Z, _, C, O, tt;
422
- if (t[16] !== u || t[17] !== I || t[18] !== W || t[19] !== zt || t[20] !== Vt || t[21] !== n?.dataConnectors || t[22] !== n?.graphObjectValues || t[23] !== n?.xAxis?.gridLines || t[24] !== n?.xAxis?.labels || t[25] !== n?.xAxis?.title || t[26] !== n?.yAxis?.gridLines || t[27] !== n?.yAxis?.labels || t[28] !== Gt || t[29] !== P || t[30] !== M || t[31] !== $ || t[32] !== H || t[33] !== L || t[34] !== st || t[35] !== V || t[36] !== y || t[37] !== dt || t[38] !== A || t[39] !== ht || t[40] !== r.bottom || t[41] !== r.left || t[42] !== r.top || t[43] !== wt || t[44] !== Kt || t[45] !== Dt || t[46] !== pt || t[47] !== B || t[48] !== Ht || t[49] !== S || t[50] !== ct || t[51] !== G || t[52] !== rt || t[53] !== ot || t[54] !== Tt || t[55] !== Qt || t[56] !== f || t[57] !== F || t[58] !== jt || t[59] !== bt || t[60] !== gt || t[61] !== o?.dataConnectors || t[62] !== o?.graphObjectValues || t[63] !== o?.xAxis?.gridLines || t[64] !== o?.xAxis?.labels || t[65] !== o?.xAxis?.title || t[66] !== o?.yAxis?.gridLines || t[67] !== o?.yAxis?.labels || t[68] !== Et || t[69] !== At || t[70] !== ft || t[71] !== Nt || t[72] !== vt) {
423
- const m = Be().domain([pt, Kt]).range([0, V]).nice(), g = Xe().domain(zt).range([0, Dt ? Math.max(st, Dt * M.length) : wt ? Math.min(st, wt * M.length) : st]).paddingInner(Vt), Ot = m.ticks(Ht);
424
- q = Xt.svg, X = `${vt}px`, Q = `${y}px`, Z = `0 0 ${vt} ${y}`, _ = "ltr", C = oe, t[88] !== I ? (O = I ? /* @__PURE__ */ a.jsx("defs", { children: /* @__PURE__ */ a.jsx("marker", { id: "arrow", viewBox: "0 0 10 10", refX: "10", refY: "5", markerWidth: "6", markerHeight: "6", orient: "auto-start-reverse", children: /* @__PURE__ */ a.jsx("path", { d: "M 0 0 L 10 5 L 0 10 z", className: "fill-primary-gray-600 dark:fill-primary-gray-300" }) }) }) : null, t[88] = I, t[89] = O) : O = t[89], J = `translate(${r.left},${r.top})`, K = bt ? /* @__PURE__ */ a.jsx(Qe, { values: Ot.filter(Vi), x: Ot.filter(Ii).map((l) => m(l)), y1: 0 - At, y2: st + r.bottom, styles: {
425
- gridLines: o?.xAxis?.gridLines,
426
- labels: o?.xAxis?.labels
427
- }, classNames: {
418
+ Ot = t[10];
419
+ const O = Ot;
420
+ let Lt;
421
+ t[13] !== O || t[14] !== j ? (Lt = j ?? O.map(Mi), t[13] = O, t[14] = j, t[15] = Lt) : Lt = t[15];
422
+ const qt = Lt;
423
+ let J, E, G, K, Q, S, k, I, _, tt, et, pt, F, L, it;
424
+ if (t[16] !== u || t[17] !== N || t[18] !== rt || t[19] !== qt || t[20] !== jt || t[21] !== a?.dataConnectors || t[22] !== a?.graphObjectValues || t[23] !== a?.xAxis?.gridLines || t[24] !== a?.xAxis?.labels || t[25] !== a?.xAxis?.title || t[26] !== a?.yAxis?.gridLines || t[27] !== a?.yAxis?.labels || t[28] !== Rt || t[29] !== g || t[30] !== O || t[31] !== T || t[32] !== Ft || t[33] !== V || t[34] !== Y || t[35] !== X || t[36] !== v || t[37] !== ft || t[38] !== w || t[39] !== ct || t[40] !== r.bottom || t[41] !== r.left || t[42] !== r.top || t[43] !== kt || t[44] !== _t || t[45] !== gt || t[46] !== yt || t[47] !== D || t[48] !== te || t[49] !== W || t[50] !== xt || t[51] !== q || t[52] !== B || t[53] !== ut || t[54] !== lt || t[55] !== St || t[56] !== Nt || t[57] !== h || t[58] !== P || t[59] !== Dt || t[60] !== wt || t[61] !== vt || t[62] !== n?.dataConnectors || t[63] !== n?.graphObjectValues || t[64] !== n?.xAxis?.gridLines || t[65] !== n?.xAxis?.labels || t[66] !== n?.xAxis?.title || t[67] !== n?.yAxis?.gridLines || t[68] !== n?.yAxis?.labels || t[69] !== Ht || t[70] !== Mt || t[71] !== ht || t[72] !== Tt || t[73] !== At) {
425
+ const x = Ne().domain([yt, _t]).range([0, X]).nice(), b = Te().domain(qt).range([0, gt ? Math.max(Y, gt * O.length) : kt ? Math.min(Y, kt * O.length) : Y]).paddingInner(jt), Ut = x.ticks(te);
426
+ E = Et.svg, _ = `${At}px`, tt = `${v}px`, et = `0 0 ${At} ${v}`, pt = "ltr", F = C, t[89] !== N ? (L = N ? /* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("marker", { id: "arrow", viewBox: "0 0 10 10", refX: "10", refY: "5", markerWidth: "6", markerHeight: "6", orient: "auto-start-reverse", children: /* @__PURE__ */ i.jsx("path", { d: "M 0 0 L 10 5 L 0 10 z", className: "fill-primary-gray-600 dark:fill-primary-gray-300" }) }) }) : null, t[89] = N, t[90] = L) : L = t[90], K = `translate(${r.left},${r.top})`, Q = wt ? /* @__PURE__ */ i.jsx(He, { values: Ut.filter(ki), x: Ut.filter(Ai).map((s) => x(s)), y1: 0 - Mt, y2: Y + r.bottom, styles: {
428
427
  gridLines: n?.xAxis?.gridLines,
429
428
  labels: n?.xAxis?.labels
430
- }, suffix: Et, prefix: rt, labelType: "secondary", showGridLines: !0, precision: G, locale: ht }) : null;
431
- const b = V / 2, s = 0 - r.top + 15, ut = o?.xAxis?.title, E = n?.xAxis?.title;
432
- t[90] !== W || t[91] !== b || t[92] !== s || t[93] !== ut || t[94] !== E ? (j = /* @__PURE__ */ a.jsx(Fe, { x: b, y: s, style: ut, className: E, text: W }), t[90] = W, t[91] = b, t[92] = s, t[93] = ut, t[94] = E, t[95] = j) : j = t[95];
433
- const Bt = o?.yAxis?.gridLines;
434
- let ee;
435
- t[96] !== Bt ? (ee = {
436
- gridLines: Bt
437
- }, t[96] = Bt, t[97] = ee) : ee = t[97];
438
- const Lt = n?.yAxis?.gridLines;
439
- let ie;
440
- t[98] !== Lt ? (ie = {
441
- gridLines: Lt
442
- }, t[98] = Lt, t[99] = ie) : ie = t[99], D = /* @__PURE__ */ a.jsx(We, { y: M.map((l) => g(`${l.id}`) + g.bandwidth() / 2), x1: 0, x2: V, styles: ee, classNames: ie, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: G, locale: ht }), t[100] !== P ? (k = P.filter($i).map(Li), t[100] = P, t[101] = k) : k = t[101], z = Ee, tt = M.map((l) => /* @__PURE__ */ a.jsxs(Xt.g, { className: "undp-viz-g-with-hover", variants: {
429
+ }, classNames: {
430
+ gridLines: a?.xAxis?.gridLines,
431
+ labels: a?.xAxis?.labels
432
+ }, suffix: Ht, prefix: ut, labelType: "secondary", showGridLines: !0, precision: B, locale: ct, padZeros: q }) : null;
433
+ const p = X / 2, y = 0 - r.top + 15, st = n?.xAxis?.title, d = a?.xAxis?.title;
434
+ t[91] !== rt || t[92] !== p || t[93] !== y || t[94] !== st || t[95] !== d ? (S = /* @__PURE__ */ i.jsx(Ve, { x: p, y, style: st, className: d, text: rt }), t[91] = rt, t[92] = p, t[93] = y, t[94] = st, t[95] = d, t[96] = S) : S = t[96];
435
+ const z = n?.yAxis?.gridLines;
436
+ let Xt;
437
+ t[97] !== z ? (Xt = {
438
+ gridLines: z
439
+ }, t[97] = z, t[98] = Xt) : Xt = t[98];
440
+ const Yt = a?.yAxis?.gridLines;
441
+ let ne;
442
+ t[99] !== Yt ? (ne = {
443
+ gridLines: Yt
444
+ }, t[99] = Yt, t[100] = ne) : ne = t[100], k = /* @__PURE__ */ i.jsx(je, { y: O.map((s) => b(`${s.id}`) + b.bandwidth() / 2), x1: 0, x2: X, styles: Xt, classNames: ne, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: B, locale: ct, padZeros: q }), t[101] !== g ? (I = g.filter(wi).map(vi), t[101] = g, t[102] = I) : I = t[102], J = Fe, it = O.map((s) => /* @__PURE__ */ i.jsxs(Et.g, { className: "undp-viz-g-with-hover", variants: {
443
445
  initial: {
444
446
  x: 0,
445
- y: g(`${l.id}`) + g.bandwidth() / 2,
446
- opacity: dt ? dt.indexOf(l.label) !== -1 ? 0.85 : H : 0.85
447
+ y: b(`${s.id}`) + b.bandwidth() / 2,
448
+ opacity: ft ? ft.indexOf(s.label) !== -1 ? 0.85 : Ft : 0.85
447
449
  },
448
450
  whileInView: {
449
451
  x: 0,
450
- y: g(`${l.id}`) + g.bandwidth() / 2,
451
- opacity: dt ? dt.indexOf(l.label) !== -1 ? 0.85 : H : 0.85,
452
+ y: b(`${s.id}`) + b.bandwidth() / 2,
453
+ opacity: ft ? ft.indexOf(s.label) !== -1 ? 0.85 : Ft : 0.85,
452
454
  transition: {
453
455
  duration: u.duration
454
456
  }
455
457
  }
456
- }, initial: "initial", animate: A ? "whileInView" : "initial", exit: {
458
+ }, initial: "initial", animate: w ? "whileInView" : "initial", exit: {
457
459
  opacity: 0,
458
460
  transition: {
459
461
  duration: u.duration
460
462
  }
461
463
  }, children: [
462
- jt ? /* @__PURE__ */ a.jsx(Ze, { value: `${l.label}`.length < ft ? `${l.label}` : `${`${l.label}`.substring(0, ft)}...`, y: 0 - g.bandwidth() / 2, x: 0 - r.left, width: r.left, height: g.bandwidth(), alignment: "right", style: o?.yAxis?.labels, className: n?.yAxis?.labels, animate: u, isInView: A }) : null,
463
- /* @__PURE__ */ a.jsx(Xt.line, { y1: 0, y2: 0, style: {
464
- strokeWidth: Gt,
465
- ...o?.dataConnectors || {},
466
- opacity: F ? 0.3 : 1
467
- }, className: ve("stroke-primary-gray-600 dark:stroke-primary-gray-300", n?.dataConnectors), markerEnd: I && l.x.indexOf(Math.min(...l.x.filter(Oi))) === 0 ? "url(#arrow)" : "", markerStart: I && l.x.indexOf(Math.min(...l.x.filter(Ci))) === l.x.length - 1 ? "url(#arrow)" : "", exit: {
464
+ Dt ? /* @__PURE__ */ i.jsx(Re, { value: `${s.label}`.length < ht ? `${s.label}` : `${`${s.label}`.substring(0, ht)}...`, y: 0 - b.bandwidth() / 2, x: 0 - r.left, width: r.left, height: b.bandwidth(), alignment: "right", style: n?.yAxis?.labels, className: a?.yAxis?.labels, animate: u, isInView: w }) : null,
465
+ /* @__PURE__ */ i.jsx(Et.line, { y1: 0, y2: 0, style: {
466
+ strokeWidth: Rt,
467
+ ...n?.dataConnectors || {},
468
+ opacity: P ? 0.3 : 1
469
+ }, className: ye("stroke-primary-gray-600 dark:stroke-primary-gray-300", a?.dataConnectors), markerEnd: N && s.x.indexOf(Math.min(...s.x.filter(bi))) === 0 ? "url(#arrow)" : "", markerStart: N && s.x.indexOf(Math.min(...s.x.filter(gi))) === s.x.length - 1 ? "url(#arrow)" : "", exit: {
468
470
  opacity: 0,
469
471
  transition: {
470
472
  duration: u.duration
@@ -475,39 +477,39 @@ function vi(e) {
475
477
  x2: 0
476
478
  },
477
479
  whileInView: {
478
- x1: m(Math.min(...l.x.filter(Mi))) + ot,
479
- x2: m(Math.max(...l.x.filter(ki))) - ot,
480
+ x1: x(Math.min(...s.x.filter(yi))) + lt,
481
+ x2: x(Math.max(...s.x.filter(hi))) - lt,
480
482
  transition: {
481
483
  duration: u.duration
482
484
  }
483
485
  }
484
- }, initial: "initial", animate: A ? "whileInView" : "initial" }),
485
- l.x.map((xt, v) => /* @__PURE__ */ a.jsx(Xt.g, { onMouseEnter: (i) => {
486
- _t({
487
- ...l,
488
- xIndex: v
489
- }), Wt(i.clientY), te(i.clientX), ct?.({
490
- ...l,
491
- xIndex: v
486
+ }, initial: "initial", animate: w ? "whileInView" : "initial" }),
487
+ s.x.map((mt, $) => /* @__PURE__ */ i.jsx(Et.g, { onMouseEnter: (l) => {
488
+ ae({
489
+ ...s,
490
+ xIndex: $
491
+ }), Zt(l.clientY), A(l.clientX), xt?.({
492
+ ...s,
493
+ xIndex: $
492
494
  });
493
495
  }, onClick: () => {
494
- (S || $) && (Te(B, {
495
- ...l,
496
- xIndex: v
497
- }) && Qt ? (Ft(void 0), S?.(void 0)) : (Ft({
498
- ...l,
499
- xIndex: v
500
- }), S && S({
501
- ...l,
502
- xIndex: v
496
+ (W || T) && ($e(D, {
497
+ ...s,
498
+ xIndex: $
499
+ }) && Nt ? (Pt(void 0), W?.(void 0)) : (Pt({
500
+ ...s,
501
+ xIndex: $
502
+ }), W && W({
503
+ ...s,
504
+ xIndex: $
503
505
  })));
504
- }, onMouseMove: (i) => {
505
- _t({
506
- ...l,
507
- xIndex: v
508
- }), Wt(i.clientY), te(i.clientX);
506
+ }, onMouseMove: (l) => {
507
+ ae({
508
+ ...s,
509
+ xIndex: $
510
+ }), Zt(l.clientY), A(l.clientX);
509
511
  }, onMouseLeave: () => {
510
- _t(void 0), te(void 0), Wt(void 0), ct?.(void 0);
512
+ ae(void 0), A(void 0), Zt(void 0), xt?.(void 0);
511
513
  }, exit: {
512
514
  opacity: 0,
513
515
  transition: {
@@ -515,21 +517,21 @@ function vi(e) {
515
517
  }
516
518
  }, variants: {
517
519
  initial: {
518
- opacity: F ? L[v] === F ? 1 : 0.3 : 1
520
+ opacity: P ? V[$] === P ? 1 : 0.3 : 1
519
521
  },
520
522
  whileInView: {
521
- opacity: F ? L[v] === F ? 1 : 0.3 : 1,
523
+ opacity: P ? V[$] === P ? 1 : 0.3 : 1,
522
524
  transition: {
523
525
  duration: u.duration
524
526
  }
525
527
  }
526
- }, initial: "initial", animate: A ? "whileInView" : "initial", children: Yt(xt) ? null : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
527
- /* @__PURE__ */ a.jsx(Xt.circle, { cy: 0, r: ot, style: {
528
- fill: L[v],
528
+ }, initial: "initial", animate: w ? "whileInView" : "initial", children: Gt(mt) ? null : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
529
+ /* @__PURE__ */ i.jsx(Et.circle, { cy: 0, r: lt, style: {
530
+ fill: V[$],
529
531
  fillOpacity: 0.85,
530
- stroke: L[v],
532
+ stroke: V[$],
531
533
  strokeWidth: 1,
532
- opacity: Yt(xt) ? 0 : 1
534
+ opacity: Gt(mt) ? 0 : 1
533
535
  }, exit: {
534
536
  opacity: 0,
535
537
  transition: {
@@ -537,324 +539,321 @@ function vi(e) {
537
539
  }
538
540
  }, variants: {
539
541
  initial: {
540
- cx: m(0),
542
+ cx: x(0),
541
543
  opacity: 0
542
544
  },
543
545
  whileInView: {
544
- cx: m(xt || 0),
545
- opacity: Yt(xt) ? 0 : 1,
546
+ cx: x(mt || 0),
547
+ opacity: Gt(mt) ? 0 : 1,
546
548
  transition: {
547
549
  duration: u.duration
548
550
  }
549
551
  }
550
- }, initial: "initial", animate: A ? "whileInView" : "initial" }),
551
- gt ? /* @__PURE__ */ a.jsx(Xt.text, { y: 0, style: {
552
+ }, initial: "initial", animate: w ? "whileInView" : "initial" }),
553
+ vt ? /* @__PURE__ */ i.jsx(Et.text, { y: 0, style: {
552
554
  textAnchor: "middle",
553
- ...o?.graphObjectValues || {}
554
- }, dx: 0, dy: 0 - ot - 3, className: ve("graph-value text-sm font-bold", Yt(xt) ? "0opacity-0" : "opacity-100", n?.graphObjectValues), exit: {
555
+ ...n?.graphObjectValues || {}
556
+ }, dx: 0, dy: 0 - lt - 3, className: ye("graph-value text-sm font-bold", Gt(mt) ? "0opacity-0" : "opacity-100", a?.graphObjectValues), exit: {
555
557
  opacity: 0,
556
558
  transition: {
557
559
  duration: u.duration
558
560
  }
559
561
  }, variants: {
560
562
  initial: {
561
- x: m(0),
563
+ x: x(0),
562
564
  opacity: 0,
563
- fill: Nt || L[v]
565
+ fill: Tt || V[$]
564
566
  },
565
567
  whileInView: {
566
- x: m(xt || 0),
567
- fill: Nt || L[v],
568
+ x: x(mt || 0),
569
+ fill: Tt || V[$],
568
570
  opacity: 1,
569
571
  transition: {
570
572
  duration: u.duration
571
573
  }
572
574
  }
573
- }, initial: "initial", animate: A ? "whileInView" : "initial", children: $e(xt, void 0, G, rt, Et, ht) }) : null
574
- ] }) }, v))
575
- ] }, l.label)), U = Tt ? /* @__PURE__ */ a.jsx(a.Fragment, { children: Tt.map((l, xt) => /* @__PURE__ */ a.jsx(Je, { text: l.text, color: l.color, x: m(l.value), y1: 0 - r.top, y2: st + r.bottom, textSide: m(l.value) > V * 0.75 || f ? "left" : "right", classNames: l.classNames, styles: l.styles, animate: u, isInView: A }, xt)) }) : null, t[16] = u, t[17] = I, t[18] = W, t[19] = zt, t[20] = Vt, t[21] = n?.dataConnectors, t[22] = n?.graphObjectValues, t[23] = n?.xAxis?.gridLines, t[24] = n?.xAxis?.labels, t[25] = n?.xAxis?.title, t[26] = n?.yAxis?.gridLines, t[27] = n?.yAxis?.labels, t[28] = Gt, t[29] = P, t[30] = M, t[31] = $, t[32] = H, t[33] = L, t[34] = st, t[35] = V, t[36] = y, t[37] = dt, t[38] = A, t[39] = ht, t[40] = r.bottom, t[41] = r.left, t[42] = r.top, t[43] = wt, t[44] = Kt, t[45] = Dt, t[46] = pt, t[47] = B, t[48] = Ht, t[49] = S, t[50] = ct, t[51] = G, t[52] = rt, t[53] = ot, t[54] = Tt, t[55] = Qt, t[56] = f, t[57] = F, t[58] = jt, t[59] = bt, t[60] = gt, t[61] = o?.dataConnectors, t[62] = o?.graphObjectValues, t[63] = o?.xAxis?.gridLines, t[64] = o?.xAxis?.labels, t[65] = o?.xAxis?.title, t[66] = o?.yAxis?.gridLines, t[67] = o?.yAxis?.labels, t[68] = Et, t[69] = At, t[70] = ft, t[71] = Nt, t[72] = vt, t[73] = z, t[74] = q, t[75] = U, t[76] = J, t[77] = K, t[78] = j, t[79] = D, t[80] = k, t[81] = X, t[82] = Q, t[83] = Z, t[84] = _, t[85] = C, t[86] = O, t[87] = tt;
575
+ }, initial: "initial", animate: w ? "whileInView" : "initial", children: ke(mt, void 0, B, ut, Ht, ct, q) }) : null
576
+ ] }) }, $))
577
+ ] }, s.label)), G = St ? /* @__PURE__ */ i.jsx(i.Fragment, { children: St.map((s, mt) => /* @__PURE__ */ i.jsx(Ee, { text: s.text, color: s.color, x: x(s.value), y1: 0 - r.top, y2: Y + r.bottom, textSide: x(s.value) > X * 0.75 || h ? "left" : "right", classNames: s.classNames, styles: s.styles, animate: u, isInView: w }, mt)) }) : null, t[16] = u, t[17] = N, t[18] = rt, t[19] = qt, t[20] = jt, t[21] = a?.dataConnectors, t[22] = a?.graphObjectValues, t[23] = a?.xAxis?.gridLines, t[24] = a?.xAxis?.labels, t[25] = a?.xAxis?.title, t[26] = a?.yAxis?.gridLines, t[27] = a?.yAxis?.labels, t[28] = Rt, t[29] = g, t[30] = O, t[31] = T, t[32] = Ft, t[33] = V, t[34] = Y, t[35] = X, t[36] = v, t[37] = ft, t[38] = w, t[39] = ct, t[40] = r.bottom, t[41] = r.left, t[42] = r.top, t[43] = kt, t[44] = _t, t[45] = gt, t[46] = yt, t[47] = D, t[48] = te, t[49] = W, t[50] = xt, t[51] = q, t[52] = B, t[53] = ut, t[54] = lt, t[55] = St, t[56] = Nt, t[57] = h, t[58] = P, t[59] = Dt, t[60] = wt, t[61] = vt, t[62] = n?.dataConnectors, t[63] = n?.graphObjectValues, t[64] = n?.xAxis?.gridLines, t[65] = n?.xAxis?.labels, t[66] = n?.xAxis?.title, t[67] = n?.yAxis?.gridLines, t[68] = n?.yAxis?.labels, t[69] = Ht, t[70] = Mt, t[71] = ht, t[72] = Tt, t[73] = At, t[74] = J, t[75] = E, t[76] = G, t[77] = K, t[78] = Q, t[79] = S, t[80] = k, t[81] = I, t[82] = _, t[83] = tt, t[84] = et, t[85] = pt, t[86] = F, t[87] = L, t[88] = it;
576
578
  } else
577
- z = t[73], q = t[74], U = t[75], J = t[76], K = t[77], j = t[78], D = t[79], k = t[80], X = t[81], Q = t[82], Z = t[83], _ = t[84], C = t[85], O = t[86], tt = t[87];
578
- let et;
579
- t[102] !== z || t[103] !== U || t[104] !== tt ? (et = /* @__PURE__ */ a.jsxs(z, { children: [
580
- tt,
581
- U
582
- ] }), t[102] = z, t[103] = U, t[104] = tt, t[105] = et) : et = t[105];
583
- let it;
584
- t[106] !== P ? (it = P.filter(Ai).map(wi), t[106] = P, t[107] = it) : it = t[107];
585
- let mt;
586
- t[108] !== J || t[109] !== K || t[110] !== j || t[111] !== D || t[112] !== k || t[113] !== et || t[114] !== it ? (mt = /* @__PURE__ */ a.jsxs("g", { transform: J, children: [
587
- K,
588
- j,
589
- D,
590
- k,
591
- et,
592
- it
593
- ] }), t[108] = J, t[109] = K, t[110] = j, t[111] = D, t[112] = k, t[113] = et, t[114] = it, t[115] = mt) : mt = t[115];
594
- let N;
595
- t[116] !== q || t[117] !== X || t[118] !== Q || t[119] !== Z || t[120] !== _ || t[121] !== C || t[122] !== O || t[123] !== mt ? (N = /* @__PURE__ */ a.jsxs(q, { width: X, height: Q, viewBox: Z, direction: _, ref: C, children: [
596
- O,
597
- mt
598
- ] }), t[116] = q, t[117] = X, t[118] = Q, t[119] = Z, t[120] = _, t[121] = C, t[122] = O, t[123] = mt, t[124] = N) : N = t[124];
599
- let Y;
600
- t[125] !== n?.tooltip || t[126] !== Mt || t[127] !== yt || t[128] !== St || t[129] !== o?.tooltip || t[130] !== w ? (Y = St && w && Mt && yt ? /* @__PURE__ */ a.jsx(Se, { data: St, body: w, xPos: Mt, yPos: yt, backgroundStyle: o?.tooltip, className: n?.tooltip }) : null, t[125] = n?.tooltip, t[126] = Mt, t[127] = yt, t[128] = St, t[129] = o?.tooltip, t[130] = w, t[131] = Y) : Y = t[131];
579
+ J = t[74], E = t[75], G = t[76], K = t[77], Q = t[78], S = t[79], k = t[80], I = t[81], _ = t[82], tt = t[83], et = t[84], pt = t[85], F = t[86], L = t[87], it = t[88];
580
+ let H;
581
+ t[103] !== J || t[104] !== G || t[105] !== it ? (H = /* @__PURE__ */ i.jsxs(J, { children: [
582
+ it,
583
+ G
584
+ ] }), t[103] = J, t[104] = G, t[105] = it, t[106] = H) : H = t[106];
601
585
  let at;
602
- t[132] !== n?.modal || t[133] !== $ || t[134] !== B ? (at = $ && B !== void 0 ? /* @__PURE__ */ a.jsx(Pe, { body: $, data: B, setData: Ft, className: n?.modal }) : null, t[132] = n?.modal, t[133] = $, t[134] = B, t[135] = at) : at = t[135];
603
- let Ct;
604
- return t[136] !== N || t[137] !== Y || t[138] !== at ? (Ct = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
605
- N,
606
- Y,
586
+ t[107] !== g ? (at = g.filter(pi).map(fi), t[107] = g, t[108] = at) : at = t[108];
587
+ let nt;
588
+ t[109] !== K || t[110] !== Q || t[111] !== S || t[112] !== k || t[113] !== I || t[114] !== H || t[115] !== at ? (nt = /* @__PURE__ */ i.jsxs("g", { transform: K, children: [
589
+ Q,
590
+ S,
591
+ k,
592
+ I,
593
+ H,
607
594
  at
608
- ] }), t[136] = N, t[137] = Y, t[138] = at, t[139] = Ct) : Ct = t[139], Ct;
595
+ ] }), t[109] = K, t[110] = Q, t[111] = S, t[112] = k, t[113] = I, t[114] = H, t[115] = at, t[116] = nt) : nt = t[116];
596
+ let R;
597
+ t[117] !== E || t[118] !== _ || t[119] !== tt || t[120] !== et || t[121] !== pt || t[122] !== F || t[123] !== L || t[124] !== nt ? (R = /* @__PURE__ */ i.jsxs(E, { width: _, height: tt, viewBox: et, direction: pt, ref: F, children: [
598
+ L,
599
+ nt
600
+ ] }), t[117] = E, t[118] = _, t[119] = tt, t[120] = et, t[121] = pt, t[122] = F, t[123] = L, t[124] = nt, t[125] = R) : R = t[125];
601
+ let o;
602
+ t[126] !== a?.tooltip || t[127] !== Bt || t[128] !== dt || t[129] !== Ct || t[130] !== n?.tooltip || t[131] !== M ? (o = Ct && M && Bt && dt ? /* @__PURE__ */ i.jsx(Ie, { data: Ct, body: M, xPos: Bt, yPos: dt, backgroundStyle: n?.tooltip, className: a?.tooltip }) : null, t[126] = a?.tooltip, t[127] = Bt, t[128] = dt, t[129] = Ct, t[130] = n?.tooltip, t[131] = M, t[132] = o) : o = t[132];
603
+ let ot;
604
+ t[133] !== a?.modal || t[134] !== T || t[135] !== D ? (ot = T && D !== void 0 ? /* @__PURE__ */ i.jsx(De, { body: T, data: D, setData: Pt, className: a?.modal }) : null, t[133] = a?.modal, t[134] = T, t[135] = D, t[136] = ot) : ot = t[136];
605
+ let bt;
606
+ return t[137] !== R || t[138] !== o || t[139] !== ot ? (bt = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
607
+ R,
608
+ o,
609
+ ot
610
+ ] }), t[137] = R, t[138] = o, t[139] = ot, t[140] = bt) : bt = t[140], bt;
609
611
  }
610
- function wi(e) {
612
+ function fi(e) {
611
613
  return e.layer;
612
614
  }
613
- function Ai(e) {
615
+ function pi(e) {
614
616
  return e.position === "after";
615
617
  }
616
- function ki(e) {
618
+ function hi(e) {
617
619
  return e !== null;
618
620
  }
619
- function Mi(e) {
621
+ function yi(e) {
620
622
  return e !== null;
621
623
  }
622
- function Ci(e) {
624
+ function gi(e) {
623
625
  return e !== null;
624
626
  }
625
- function Oi(e) {
627
+ function bi(e) {
626
628
  return e !== null;
627
629
  }
628
- function Li(e) {
630
+ function vi(e) {
629
631
  return e.layer;
630
632
  }
631
- function $i(e) {
633
+ function wi(e) {
632
634
  return e.position === "before";
633
635
  }
634
- function Ii(e, t) {
636
+ function Ai(e, t) {
635
637
  return t !== 0;
636
638
  }
637
- function Vi(e, t) {
639
+ function ki(e, t) {
638
640
  return t !== 0;
639
641
  }
640
- function ji(e) {
642
+ function Mi(e) {
641
643
  return `${e.id}`;
642
644
  }
643
- function La(e) {
644
- const t = Ie.c(130), {
645
+ function va(e) {
646
+ const t = Me.c(131), {
645
647
  data: c,
646
- graphTitle: qt,
647
- colors: ne,
648
- sources: Ut,
649
- graphDescription: Jt,
650
- barPadding: L,
651
- showTicks: Et,
652
- leftMargin: rt,
653
- rightMargin: Vt,
654
- topMargin: gt,
655
- bottomMargin: bt,
656
- truncateBy: ft,
657
- height: vt,
658
- width: y,
659
- footNote: ot,
660
- colorDomain: jt,
661
- colorLegendTitle: w,
662
- padding: ct,
663
- backgroundColor: Kt,
664
- radius: pt,
665
- tooltip: S,
666
- showLabels: F,
667
- relativeHeight: I,
668
- onSeriesMouseOver: Gt,
669
- graphID: wt,
670
- suffix: Dt,
671
- prefix: Qt,
672
- maxValue: $,
673
- minValue: W,
674
- onSeriesMouseClick: Ht,
675
- graphDownload: Nt,
676
- dataDownload: o,
677
- showValues: n,
678
- sortParameter: p,
679
- arrowConnector: Tt,
680
- connectorStrokeWidth: f,
681
- language: u,
682
- minHeight: G,
683
- theme: P,
684
- maxBarThickness: dt,
685
- maxNumberOfBars: H,
686
- minBarThickness: ht,
687
- ariaLabel: R,
688
- resetSelectionOnDoubleClick: Zt,
689
- detailsOnClick: At,
690
- axisTitle: Rt,
691
- noOfTicks: oe,
692
- valueColor: kt,
693
- orientation: A,
694
- styles: h,
695
- classNames: x,
696
- labelOrder: r,
697
- refValues: V,
698
- filterNA: st,
699
- animate: St,
700
- precision: _t,
701
- showColorScale: B,
702
- customLayers: Ft,
703
- highlightedDataPoints: Mt,
704
- dimmedOpacity: te,
705
- timeline: yt,
706
- sortData: Wt,
707
- hideAxisLine: Pt,
708
- locale: M
709
- } = e, lt = ne === void 0 ? li.light.categoricalColors.colors : ne, zt = L === void 0 ? 0.25 : L, z = Et === void 0 ? !0 : Et, q = ft === void 0 ? 999 : ft, U = Kt === void 0 ? !0 : Kt, J = pt === void 0 ? 3 : pt, K = F === void 0 ? !0 : F, j = Dt === void 0 ? "" : Dt, D = Qt === void 0 ? "" : Qt, k = Nt === void 0 ? !1 : Nt, X = o === void 0 ? !1 : o, Q = n === void 0 ? !0 : n, Z = Tt === void 0 ? !1 : Tt, _ = f === void 0 ? 2 : f, C = u === void 0 ? "en" : u, O = G === void 0 ? 0 : G, tt = P === void 0 ? "light" : P, et = Zt === void 0 ? !0 : Zt, it = oe === void 0 ? 5 : oe, mt = A === void 0 ? "vertical" : A, N = st === void 0 ? !0 : st, Y = St === void 0 ? !1 : St, at = _t === void 0 ? 2 : _t, Ct = B === void 0 ? !0 : B;
710
- let m;
711
- t[0] !== Ft ? (m = Ft === void 0 ? [] : Ft, t[0] = Ft, t[1] = m) : m = t[1];
712
- const g = m, Ot = te === void 0 ? 0.3 : te;
713
- let b;
714
- t[2] !== yt ? (b = yt === void 0 ? {
648
+ graphTitle: Jt,
649
+ colors: se,
650
+ sources: Kt,
651
+ graphDescription: Qt,
652
+ barPadding: V,
653
+ showTicks: Ht,
654
+ leftMargin: ut,
655
+ rightMargin: jt,
656
+ topMargin: vt,
657
+ bottomMargin: wt,
658
+ truncateBy: ht,
659
+ height: At,
660
+ width: v,
661
+ footNote: lt,
662
+ colorDomain: Dt,
663
+ colorLegendTitle: M,
664
+ padding: xt,
665
+ backgroundColor: _t,
666
+ radius: yt,
667
+ tooltip: W,
668
+ showLabels: P,
669
+ relativeHeight: N,
670
+ onSeriesMouseOver: Rt,
671
+ graphID: kt,
672
+ maxValue: gt,
673
+ minValue: Nt,
674
+ onSeriesMouseClick: T,
675
+ graphDownload: rt,
676
+ dataDownload: te,
677
+ showValues: Tt,
678
+ sortParameter: n,
679
+ arrowConnector: a,
680
+ connectorStrokeWidth: j,
681
+ language: St,
682
+ minHeight: h,
683
+ theme: u,
684
+ maxBarThickness: B,
685
+ maxNumberOfBars: g,
686
+ minBarThickness: ft,
687
+ ariaLabel: Ft,
688
+ resetSelectionOnDoubleClick: ct,
689
+ detailsOnClick: q,
690
+ axisTitle: U,
691
+ noOfTicks: ee,
692
+ valueColor: Mt,
693
+ orientation: ie,
694
+ styles: C,
695
+ classNames: f,
696
+ labelOrder: w,
697
+ refValues: zt,
698
+ filterNA: Wt,
699
+ animate: r,
700
+ showColorScale: X,
701
+ customLayers: Y,
702
+ highlightedDataPoints: Ct,
703
+ dimmedOpacity: ae,
704
+ timeline: D,
705
+ sortData: Pt,
706
+ hideAxisLine: Bt,
707
+ numberDisplayOptions: A
708
+ } = e, dt = se === void 0 ? ti.light.categoricalColors.colors : se, Zt = V === void 0 ? 0.25 : V, Ot = Ht === void 0 ? !0 : Ht, O = ht === void 0 ? 999 : ht, Lt = _t === void 0 ? !0 : _t, qt = yt === void 0 ? 3 : yt, J = P === void 0 ? !0 : P, E = rt === void 0 ? !1 : rt, G = te === void 0 ? !1 : te, K = Tt === void 0 ? !0 : Tt, Q = a === void 0 ? !1 : a, S = j === void 0 ? 2 : j, k = St === void 0 ? "en" : St, I = h === void 0 ? 0 : h, _ = u === void 0 ? "light" : u, tt = ct === void 0 ? !0 : ct, et = ee === void 0 ? 5 : ee, pt = ie === void 0 ? "vertical" : ie, F = Wt === void 0 ? !0 : Wt, L = r === void 0 ? !1 : r, it = X === void 0 ? !0 : X;
709
+ let H;
710
+ t[0] !== Y ? (H = Y === void 0 ? [] : Y, t[0] = Y, t[1] = H) : H = t[1];
711
+ const at = H, nt = ae === void 0 ? 0.3 : ae;
712
+ let R;
713
+ t[2] !== D ? (R = D === void 0 ? {
715
714
  enabled: !1,
716
715
  autoplay: !1,
717
716
  showOnlyActiveDate: !0
718
- } : yt, t[2] = yt, t[3] = b) : b = t[3];
719
- const s = b, ut = Pt === void 0 ? !1 : Pt, E = M === void 0 ? "en" : M, [Bt, ee] = It(0), [Lt, ie] = It(0), [l, xt] = It(s.autoplay);
720
- let v;
721
- if (t[4] !== c || t[5] !== s.dateFormat) {
722
- let d;
723
- t[7] !== s.dateFormat ? (d = ($t) => He(`${$t.date}`, s.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = s.dateFormat, t[8] = d) : d = t[8], v = [...new Set(c.filter(Ki).map(d))], v.sort(Ji), t[4] = c, t[5] = s.dateFormat, t[6] = v;
717
+ } : D, t[2] = D, t[3] = R) : R = t[3];
718
+ const o = R, ot = Bt === void 0 ? !1 : Bt, [bt, x] = Vt(0), [b, Ut] = Vt(0), [p, y] = Vt(o.autoplay);
719
+ let st;
720
+ if (t[4] !== c || t[5] !== o.dateFormat) {
721
+ let m;
722
+ t[7] !== o.dateFormat ? (m = (It) => We(`${It.date}`, o.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = o.dateFormat, t[8] = m) : m = t[8], st = [...new Set(c.filter(Gi).map(m))], st.sort(Ei), t[4] = c, t[5] = o.dateFormat, t[6] = st;
724
723
  } else
725
- v = t[6];
726
- const i = v, [T, nt] = It(s.autoplay ? 0 : i.length - 1), [ae, Ge] = It(void 0), Ae = we(null), Ve = we(null);
727
- let xe, fe;
728
- t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (xe = () => {
729
- const d = new ResizeObserver(($t) => {
730
- ee($t[0].target.clientWidth || 620), ie($t[0].target.clientHeight || 480);
724
+ st = t[6];
725
+ const d = st, [z, Xt] = Vt(o.autoplay ? 0 : d.length - 1), [Yt, ne] = Vt(void 0), s = ge(null), mt = ge(null);
726
+ let $, l;
727
+ t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = () => {
728
+ const m = new ResizeObserver((It) => {
729
+ x(It[0].target.clientWidth || 620), Ut(It[0].target.clientHeight || 480);
731
730
  });
732
- return Ae.current && d.observe(Ae.current), () => d.disconnect();
733
- }, fe = [], t[9] = xe, t[10] = fe) : (xe = t[9], fe = t[10]), Ne(xe, fe);
734
- let pe, he;
735
- t[11] !== l || t[12] !== s.speed || t[13] !== i ? (pe = () => {
736
- const d = setInterval(() => {
737
- nt(($t) => $t < i.length - 1 ? $t + 1 : 0);
738
- }, (s.speed || 2) * 1e3);
739
- return l || clearInterval(d), () => clearInterval(d);
740
- }, he = [i, l, s.speed], t[11] = l, t[12] = s.speed, t[13] = i, t[14] = pe, t[15] = he) : (pe = t[14], he = t[15]), Ne(pe, he);
741
- const ke = s.dateFormat || "yyyy";
742
- let ye;
743
- t[16] !== T || t[17] !== ke || t[18] !== s.showOnlyActiveDate || t[19] !== i ? (ye = Re(i, T, s.showOnlyActiveDate, ke), t[16] = T, t[17] = ke, t[18] = s.showOnlyActiveDate, t[19] = i, t[20] = ye) : ye = t[20];
744
- const ge = ye, Me = mt === "horizontal" ? vi : ri, Ce = x?.graphContainer, Oe = h?.graphContainer;
745
- let se;
746
- t[21] !== x?.description || t[22] !== x?.title || t[23] !== c || t[24] !== X || t[25] !== Jt || t[26] !== k || t[27] !== qt || t[28] !== h?.description || t[29] !== h?.title || t[30] !== y ? (se = qt || Jt || k || X ? /* @__PURE__ */ a.jsx(ei, { styles: {
747
- title: h?.title,
748
- description: h?.description
749
- }, classNames: {
750
- title: x?.title,
751
- description: x?.description
752
- }, graphTitle: qt, graphDescription: Jt, width: y, graphDownload: k ? Ve : void 0, dataDownload: X ? c.map(Ui).filter(qi).length > 0 ? c.map(zi).filter(Ri) : c.filter(Hi) : null }) : null, t[21] = x?.description, t[22] = x?.title, t[23] = c, t[24] = X, t[25] = Jt, t[26] = k, t[27] = qt, t[28] = h?.description, t[29] = h?.title, t[30] = y, t[31] = se) : se = t[31];
731
+ return s.current && m.observe(s.current), () => m.disconnect();
732
+ }, l = [], t[9] = $, t[10] = l) : ($ = t[9], l = t[10]), Le($, l);
733
+ let $t, Z;
734
+ t[11] !== p || t[12] !== o.speed || t[13] !== d ? ($t = () => {
735
+ const m = setInterval(() => {
736
+ Xt((It) => It < d.length - 1 ? It + 1 : 0);
737
+ }, (o.speed || 2) * 1e3);
738
+ return p || clearInterval(m), () => clearInterval(m);
739
+ }, Z = [d, p, o.speed], t[11] = p, t[12] = o.speed, t[13] = d, t[14] = $t, t[15] = Z) : ($t = t[14], Z = t[15]), Le($t, Z);
740
+ const oe = o.dateFormat || "yyyy";
741
+ let fe;
742
+ t[16] !== z || t[17] !== oe || t[18] !== o.showOnlyActiveDate || t[19] !== d ? (fe = Pe(d, z, o.showOnlyActiveDate, oe), t[16] = z, t[17] = oe, t[18] = o.showOnlyActiveDate, t[19] = d, t[20] = fe) : fe = t[20];
743
+ const pe = fe, be = pt === "horizontal" ? xi : ei, ve = f?.graphContainer, we = C?.graphContainer;
753
744
  let le;
754
- t[32] !== T || t[33] !== ge || t[34] !== l || t[35] !== s.enabled || t[36] !== i ? (le = s.enabled && i.length > 0 && ge ? /* @__PURE__ */ a.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
755
- /* @__PURE__ */ a.jsx("button", { type: "button", onClick: () => {
756
- xt(!l);
757
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": l ? "Click to pause animation" : "Click to play animation", children: l ? /* @__PURE__ */ a.jsx(ii, {}) : /* @__PURE__ */ a.jsx(ai, {}) }),
758
- /* @__PURE__ */ a.jsx(ze, { min: i[0], max: i[i.length - 1], marks: ge, step: null, defaultValue: i[i.length - 1], value: i[T], onChangeComplete: (d) => {
759
- nt(i.indexOf(d));
760
- }, onChange: (d) => {
761
- nt(i.indexOf(d));
762
- }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
763
- ] }) : null, t[32] = T, t[33] = ge, t[34] = l, t[35] = s.enabled, t[36] = i, t[37] = le) : le = t[37];
745
+ t[21] !== f?.description || t[22] !== f?.title || t[23] !== c || t[24] !== G || t[25] !== Qt || t[26] !== E || t[27] !== Jt || t[28] !== C?.description || t[29] !== C?.title || t[30] !== v ? (le = Jt || Qt || E || G ? /* @__PURE__ */ i.jsx(qe, { styles: {
746
+ title: C?.title,
747
+ description: C?.description
748
+ }, classNames: {
749
+ title: f?.title,
750
+ description: f?.description
751
+ }, graphTitle: Jt, graphDescription: Qt, width: v, graphDownload: E ? mt : void 0, dataDownload: G ? c.map(Yi).filter(Xi).length > 0 ? c.map(Bi).filter(Pi) : c.filter(Wi) : null }) : null, t[21] = f?.description, t[22] = f?.title, t[23] = c, t[24] = G, t[25] = Qt, t[26] = E, t[27] = Jt, t[28] = C?.description, t[29] = C?.title, t[30] = v, t[31] = le) : le = t[31];
764
752
  let re;
765
- t[38] !== x?.colorLegend || t[39] !== jt || t[40] !== w || t[41] !== lt || t[42] !== c.length || t[43] !== Ct || t[44] !== y ? (re = Ct && c.length > 0 ? /* @__PURE__ */ a.jsx(oi, { width: y, colorDomain: jt, colors: lt, colorLegendTitle: w, setSelectedColor: Ge, showNAColor: !1, className: x?.colorLegend }) : null, t[38] = x?.colorLegend, t[39] = jt, t[40] = w, t[41] = lt, t[42] = c.length, t[43] = Ct, t[44] = y, t[45] = re) : re = t[45];
753
+ t[32] !== z || t[33] !== pe || t[34] !== p || t[35] !== o.enabled || t[36] !== d ? (re = o.enabled && d.length > 0 && pe ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
754
+ /* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
755
+ y(!p);
756
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": p ? "Click to pause animation" : "Click to play animation", children: p ? /* @__PURE__ */ i.jsx(Ue, {}) : /* @__PURE__ */ i.jsx(Je, {}) }),
757
+ /* @__PURE__ */ i.jsx(Be, { min: d[0], max: d[d.length - 1], marks: pe, step: null, defaultValue: d[d.length - 1], value: d[z], onChangeComplete: (m) => {
758
+ Xt(d.indexOf(m));
759
+ }, onChange: (m) => {
760
+ Xt(d.indexOf(m));
761
+ }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
762
+ ] }) : null, t[32] = z, t[33] = pe, t[34] = p, t[35] = o.enabled, t[36] = d, t[37] = re) : re = t[37];
766
763
  let ce;
767
- t[46] !== c.length ? (ce = c.length === 0 && /* @__PURE__ */ a.jsx(si, {}), t[46] = c.length, t[47] = ce) : ce = t[47];
764
+ t[38] !== f?.colorLegend || t[39] !== Dt || t[40] !== M || t[41] !== dt || t[42] !== c.length || t[43] !== it || t[44] !== v ? (ce = it && c.length > 0 ? /* @__PURE__ */ i.jsx(Qe, { width: v, colorDomain: Dt, colors: dt, colorLegendTitle: M, setSelectedColor: ne, showNAColor: !1, className: f?.colorLegend }) : null, t[38] = f?.colorLegend, t[39] = Dt, t[40] = M, t[41] = dt, t[42] = c.length, t[43] = it, t[44] = v, t[45] = ce) : ce = t[45];
768
765
  let de;
769
- t[48] !== Me || t[49] !== Y || t[50] !== Z || t[51] !== Rt || t[52] !== zt || t[53] !== bt || t[54] !== x || t[55] !== lt || t[56] !== _ || t[57] !== g || t[58] !== c || t[59] !== At || t[60] !== Ot || t[61] !== N || t[62] !== ut || t[63] !== Mt || t[64] !== T || t[65] !== r || t[66] !== C || t[67] !== rt || t[68] !== E || t[69] !== dt || t[70] !== H || t[71] !== $ || t[72] !== ht || t[73] !== W || t[74] !== it || t[75] !== Ht || t[76] !== Gt || t[77] !== at || t[78] !== D || t[79] !== J || t[80] !== V || t[81] !== et || t[82] !== Vt || t[83] !== ae || t[84] !== K || t[85] !== z || t[86] !== Q || t[87] !== Wt || t[88] !== p || t[89] !== h || t[90] !== j || t[91] !== Lt || t[92] !== Bt || t[93] !== s.dateFormat || t[94] !== s.enabled || t[95] !== S || t[96] !== gt || t[97] !== q || t[98] !== i || t[99] !== kt ? (de = Bt && Lt && c.length > 0 ? /* @__PURE__ */ a.jsx(Me, { hideAxisLine: ut, data: p !== void 0 ? p === "diff" ? je(Le(c, s.dateFormat || "yyyy").filter((d) => s.enabled ? `${d.date}` === De(new Date(i[T]), s.dateFormat || "yyyy") : d).filter((d) => N ? !d.x.every(Gi) : d), Ei, [Wt || "asc"]).filter((d, $t) => H ? $t < H : !0) : je(Le(c, s.dateFormat || "yyyy").filter((d) => s.enabled ? `${d.date}` === De(new Date(i[T]), s.dateFormat || "yyyy") : d).filter((d) => N ? !d.x.every(Yi) : d), (d) => Yt(d.x[p]) ? -1 / 0 : d.x[p], [Wt || "asc"]).filter((d, $t) => H ? $t < H : !0) : Le(c, s.dateFormat || "yyyy").filter((d) => N ? !d.x.every(Xi) : d).filter((d, $t) => H ? $t < H : !0), dotColors: lt, width: Bt, height: Lt, radius: J, barPadding: zt, showTicks: z, leftMargin: rt, rightMargin: Vt, topMargin: gt, bottomMargin: bt, truncateBy: q, showLabels: K, showValues: Q, tooltip: S, suffix: j, prefix: D, onSeriesMouseOver: Gt, maxValue: Yt($) ? Math.max(...c.map(Pi)) < 0 ? 0 : Math.max(...c.map(Fi)) : $, minValue: Yt(W) ? Math.min(...c.map(Ti)) > 0 ? 0 : Math.min(...c.map(Di)) : W, onSeriesMouseClick: Ht, selectedColor: ae, arrowConnector: Z, connectorStrokeWidth: _, maxBarThickness: dt, minBarThickness: ht, resetSelectionOnDoubleClick: et, detailsOnClick: At, axisTitle: Rt, noOfTicks: it, valueColor: kt, styles: h, classNames: x, labelOrder: r, refValues: V, animate: Y === !0 ? {
766
+ t[46] !== c.length ? (de = c.length === 0 && /* @__PURE__ */ i.jsx(_e, {}), t[46] = c.length, t[47] = de) : de = t[47];
767
+ let me;
768
+ t[48] !== be || t[49] !== L || t[50] !== Q || t[51] !== U || t[52] !== Zt || t[53] !== wt || t[54] !== f || t[55] !== dt || t[56] !== S || t[57] !== at || t[58] !== c || t[59] !== q || t[60] !== nt || t[61] !== F || t[62] !== ot || t[63] !== Ct || t[64] !== z || t[65] !== w || t[66] !== k || t[67] !== ut || t[68] !== B || t[69] !== g || t[70] !== gt || t[71] !== ft || t[72] !== Nt || t[73] !== et || t[74] !== A?.locale || t[75] !== A?.padZeros || t[76] !== A?.precision || t[77] !== A?.prefix || t[78] !== A?.suffix || t[79] !== T || t[80] !== Rt || t[81] !== qt || t[82] !== zt || t[83] !== tt || t[84] !== jt || t[85] !== Yt || t[86] !== J || t[87] !== Ot || t[88] !== K || t[89] !== Pt || t[90] !== n || t[91] !== C || t[92] !== b || t[93] !== bt || t[94] !== o.dateFormat || t[95] !== o.enabled || t[96] !== W || t[97] !== vt || t[98] !== O || t[99] !== d || t[100] !== Mt ? (me = bt && b && c.length > 0 ? /* @__PURE__ */ i.jsx(be, { hideAxisLine: ot, data: n !== void 0 ? n === "diff" ? Ce(Ae(c, o.dateFormat || "yyyy").filter((m) => o.enabled ? `${m.date}` === Oe(new Date(d[z]), o.dateFormat || "yyyy") : m).filter((m) => F ? !m.x.every(Fi) : m), Si, [Pt || "asc"]).filter((m, It) => g ? It < g : !0) : Ce(Ae(c, o.dateFormat || "yyyy").filter((m) => o.enabled ? `${m.date}` === Oe(new Date(d[z]), o.dateFormat || "yyyy") : m).filter((m) => F ? !m.x.every(Ti) : m), (m) => Gt(m.x[n]) ? -1 / 0 : m.x[n], [Pt || "asc"]).filter((m, It) => g ? It < g : !0) : Ae(c, o.dateFormat || "yyyy").filter((m) => F ? !m.x.every(Ni) : m).filter((m, It) => g ? It < g : !0), dotColors: dt, width: bt, height: b, radius: qt, barPadding: Zt, showTicks: Ot, leftMargin: ut, rightMargin: jt, topMargin: vt, bottomMargin: wt, truncateBy: O, showLabels: J, showValues: K, tooltip: W, onSeriesMouseOver: Rt, maxValue: Gt(gt) ? Math.max(...c.map(ji)) < 0 ? 0 : Math.max(...c.map(Ii)) : gt, minValue: Gt(Nt) ? Math.min(...c.map(Li)) > 0 ? 0 : Math.min(...c.map(Ci)) : Nt, onSeriesMouseClick: T, selectedColor: Yt, arrowConnector: Q, connectorStrokeWidth: S, maxBarThickness: B, minBarThickness: ft, resetSelectionOnDoubleClick: tt, detailsOnClick: q, axisTitle: U, noOfTicks: et, valueColor: Mt, styles: C, classNames: f, labelOrder: w, refValues: zt, animate: L === !0 ? {
770
769
  duration: 0.5,
771
770
  once: !0,
772
771
  amount: 0.5
773
- } : Y || {
772
+ } : L || {
774
773
  duration: 0,
775
774
  once: !0,
776
775
  amount: 0
777
- }, precision: at, customLayers: g, highlightedDataPoints: Mt, dimmedOpacity: Ot, rtl: C === "ar" || C === "he", locale: E }) : null, t[48] = Me, t[49] = Y, t[50] = Z, t[51] = Rt, t[52] = zt, t[53] = bt, t[54] = x, t[55] = lt, t[56] = _, t[57] = g, t[58] = c, t[59] = At, t[60] = Ot, t[61] = N, t[62] = ut, t[63] = Mt, t[64] = T, t[65] = r, t[66] = C, t[67] = rt, t[68] = E, t[69] = dt, t[70] = H, t[71] = $, t[72] = ht, t[73] = W, t[74] = it, t[75] = Ht, t[76] = Gt, t[77] = at, t[78] = D, t[79] = J, t[80] = V, t[81] = et, t[82] = Vt, t[83] = ae, t[84] = K, t[85] = z, t[86] = Q, t[87] = Wt, t[88] = p, t[89] = h, t[90] = j, t[91] = Lt, t[92] = Bt, t[93] = s.dateFormat, t[94] = s.enabled, t[95] = S, t[96] = gt, t[97] = q, t[98] = i, t[99] = kt, t[100] = de) : de = t[100];
778
- let me;
779
- t[101] !== ce || t[102] !== de ? (me = /* @__PURE__ */ a.jsxs(_e, { ref: Ae, children: [
780
- ce,
781
- de
782
- ] }), t[101] = ce, t[102] = de, t[103] = me) : me = t[103];
776
+ }, customLayers: at, highlightedDataPoints: Ct, dimmedOpacity: nt, rtl: k === "ar" || k === "he", locale: A?.locale || "en", padZeros: A?.padZeros || !1, suffix: A?.suffix || "", prefix: A?.prefix || "", precision: A?.precision ?? 2 }) : null, t[48] = be, t[49] = L, t[50] = Q, t[51] = U, t[52] = Zt, t[53] = wt, t[54] = f, t[55] = dt, t[56] = S, t[57] = at, t[58] = c, t[59] = q, t[60] = nt, t[61] = F, t[62] = ot, t[63] = Ct, t[64] = z, t[65] = w, t[66] = k, t[67] = ut, t[68] = B, t[69] = g, t[70] = gt, t[71] = ft, t[72] = Nt, t[73] = et, t[74] = A?.locale, t[75] = A?.padZeros, t[76] = A?.precision, t[77] = A?.prefix, t[78] = A?.suffix, t[79] = T, t[80] = Rt, t[81] = qt, t[82] = zt, t[83] = tt, t[84] = jt, t[85] = Yt, t[86] = J, t[87] = Ot, t[88] = K, t[89] = Pt, t[90] = n, t[91] = C, t[92] = b, t[93] = bt, t[94] = o.dateFormat, t[95] = o.enabled, t[96] = W, t[97] = vt, t[98] = O, t[99] = d, t[100] = Mt, t[101] = me) : me = t[101];
783
777
  let ue;
784
- t[104] !== x?.footnote || t[105] !== x?.source || t[106] !== ot || t[107] !== Ut || t[108] !== h?.footnote || t[109] !== h?.source || t[110] !== y ? (ue = Ut || ot ? /* @__PURE__ */ a.jsx(ni, { styles: {
785
- footnote: h?.footnote,
786
- source: h?.source
778
+ t[102] !== de || t[103] !== me ? (ue = /* @__PURE__ */ i.jsxs(ze, { ref: s, children: [
779
+ de,
780
+ me
781
+ ] }), t[102] = de, t[103] = me, t[104] = ue) : ue = t[104];
782
+ let xe;
783
+ t[105] !== f?.footnote || t[106] !== f?.source || t[107] !== lt || t[108] !== Kt || t[109] !== C?.footnote || t[110] !== C?.source || t[111] !== v ? (xe = Kt || lt ? /* @__PURE__ */ i.jsx(Ke, { styles: {
784
+ footnote: C?.footnote,
785
+ source: C?.source
787
786
  }, classNames: {
788
- footnote: x?.footnote,
789
- source: x?.source
790
- }, sources: Ut, footNote: ot, width: y }) : null, t[104] = x?.footnote, t[105] = x?.source, t[106] = ot, t[107] = Ut, t[108] = h?.footnote, t[109] = h?.source, t[110] = y, t[111] = ue) : ue = t[111];
791
- let be;
792
- return t[112] !== R || t[113] !== U || t[114] !== wt || t[115] !== vt || t[116] !== C || t[117] !== O || t[118] !== ct || t[119] !== I || t[120] !== Ce || t[121] !== Oe || t[122] !== se || t[123] !== le || t[124] !== re || t[125] !== me || t[126] !== ue || t[127] !== tt || t[128] !== y ? (be = /* @__PURE__ */ a.jsxs(ti, { className: Ce, style: Oe, id: wt, ref: Ve, "aria-label": R, backgroundColor: U, theme: tt, language: C, minHeight: O, width: y, height: vt, relativeHeight: I, padding: ct, children: [
793
- se,
787
+ footnote: f?.footnote,
788
+ source: f?.source
789
+ }, sources: Kt, footNote: lt, width: v }) : null, t[105] = f?.footnote, t[106] = f?.source, t[107] = lt, t[108] = Kt, t[109] = C?.footnote, t[110] = C?.source, t[111] = v, t[112] = xe) : xe = t[112];
790
+ let he;
791
+ return t[113] !== Ft || t[114] !== Lt || t[115] !== kt || t[116] !== At || t[117] !== k || t[118] !== I || t[119] !== xt || t[120] !== N || t[121] !== ve || t[122] !== we || t[123] !== le || t[124] !== re || t[125] !== ce || t[126] !== ue || t[127] !== xe || t[128] !== _ || t[129] !== v ? (he = /* @__PURE__ */ i.jsxs(Ze, { className: ve, style: we, id: kt, ref: mt, "aria-label": Ft, backgroundColor: Lt, theme: _, language: k, minHeight: I, width: v, height: At, relativeHeight: N, padding: xt, children: [
794
792
  le,
795
793
  re,
796
- me,
797
- ue
798
- ] }), t[112] = R, t[113] = U, t[114] = wt, t[115] = vt, t[116] = C, t[117] = O, t[118] = ct, t[119] = I, t[120] = Ce, t[121] = Oe, t[122] = se, t[123] = le, t[124] = re, t[125] = me, t[126] = ue, t[127] = tt, t[128] = y, t[129] = be) : be = t[129], be;
794
+ ce,
795
+ ue,
796
+ xe
797
+ ] }), t[113] = Ft, t[114] = Lt, t[115] = kt, t[116] = At, t[117] = k, t[118] = I, t[119] = xt, t[120] = N, t[121] = ve, t[122] = we, t[123] = le, t[124] = re, t[125] = ce, t[126] = ue, t[127] = xe, t[128] = _, t[129] = v, t[130] = he) : he = t[130], he;
799
798
  }
800
- function Di(e) {
801
- return Math.min(...e.x.filter(Ni));
799
+ function Ci(e) {
800
+ return Math.min(...e.x.filter(Oi));
802
801
  }
803
- function Ni(e) {
802
+ function Oi(e) {
804
803
  return e !== null;
805
804
  }
806
- function Ti(e) {
807
- return Math.min(...e.x.filter(Si));
805
+ function Li(e) {
806
+ return Math.min(...e.x.filter($i));
808
807
  }
809
- function Si(e) {
808
+ function $i(e) {
810
809
  return e !== null;
811
810
  }
812
- function Fi(e) {
813
- return Math.max(...e.x.filter(Wi));
811
+ function Ii(e) {
812
+ return Math.max(...e.x.filter(Vi));
814
813
  }
815
- function Wi(e) {
814
+ function Vi(e) {
816
815
  return e !== null;
817
816
  }
818
- function Pi(e) {
819
- return Math.max(...e.x.filter(Bi));
817
+ function ji(e) {
818
+ return Math.max(...e.x.filter(Di));
820
819
  }
821
- function Bi(e) {
820
+ function Di(e) {
822
821
  return e !== null;
823
822
  }
824
- function Xi(e) {
823
+ function Ni(e) {
825
824
  return e == null;
826
825
  }
827
- function Yi(e) {
826
+ function Ti(e) {
828
827
  return e == null;
829
828
  }
830
- function Ei(e) {
831
- return Yt(e.x[e.x.length - 1]) || Yt(e.x[0]) ? -1 / 0 : e.x[e.x.length - 1] - e.x[0];
829
+ function Si(e) {
830
+ return Gt(e.x[e.x.length - 1]) || Gt(e.x[0]) ? -1 / 0 : e.x[e.x.length - 1] - e.x[0];
832
831
  }
833
- function Gi(e) {
832
+ function Fi(e) {
834
833
  return e == null;
835
834
  }
836
- function Hi(e) {
835
+ function Wi(e) {
837
836
  return e !== void 0;
838
837
  }
839
- function Ri(e) {
838
+ function Pi(e) {
840
839
  return e !== void 0;
841
840
  }
842
- function zi(e) {
841
+ function Bi(e) {
843
842
  return e.data;
844
843
  }
845
- function qi(e) {
844
+ function Xi(e) {
846
845
  return e !== void 0;
847
846
  }
848
- function Ui(e) {
847
+ function Yi(e) {
849
848
  return e.data;
850
849
  }
851
- function Ji(e, t) {
850
+ function Ei(e, t) {
852
851
  return e - t;
853
852
  }
854
- function Ki(e) {
853
+ function Gi(e) {
855
854
  return e.date;
856
855
  }
857
856
  export {
858
- La as DumbbellChart
857
+ va as DumbbellChart
859
858
  };
860
859
  //# sourceMappingURL=DumbbellChart.js.map