@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
package/dist/BarGraph.js CHANGED
@@ -1,179 +1,180 @@
1
- import { c as $e, j as i, m as Ce } from "./index-CHPV5EwG-BzibaIRc.js";
2
- import { useRef as Ae, useState as _t, useEffect as Ie } from "react";
3
- import { g as Ee, N as Ge } from "./getSliderMarks-X-_goqH9.js";
4
- import { f as Ve, p as Re } from "./parse-Dv4of-PN.js";
5
- import { o as We } from "./index-BZQYSqar.js";
6
- import { s as me } from "./index-CeVNqhMO.js";
7
- import { i as Ne } from "./index-Bwrro8-q.js";
8
- import { n as we } from "./numberFormattingFunction-DqMf_v1m.js";
9
- import { T as je } from "./Tooltip-Bj-s__cI.js";
10
- import { c as ie } from "./checkIfNullOrUndefined-DmfiKkNw.js";
11
- import { Y as qe } from "./YAxesLabels-hWEUCTvs.js";
12
- import { A as Te } from "./Axis-CNZYWzH0.js";
13
- import { A as Se } from "./AxisTitle-CyLCqpW6.js";
14
- import { X as Ue } from "./XTicksAndGridLines-gdbGX2rm.js";
15
- import { R as Je, a as Ke } from "./ReferenceLine-D41VuUhE.js";
16
- import { Y as Qe } from "./YTicksAndGridLines-CsNSq9W9.js";
17
- import { X as Ze } from "./XAxesLabels-B9gkjUiC.js";
18
- import { D as Be } from "./DetailsModal-B2XBWR7w.js";
19
- import { u as Fe } from "./use-in-view-KOXq5Kmc.js";
20
- import { a as Pe } from "./linear-DNXM5Pdl.js";
21
- import { b as Le } from "./band-DYty33LD.js";
22
- import { m as te } from "./proxy-BsxtcZKa.js";
23
- import { A as He } from "./index-Cv_5q6Rb.js";
24
- import { GraphHeader as _e } from "./GraphHeader.js";
25
- import { GraphFooter as ti } from "./GraphFooter.js";
26
- import { ColorLegendWithMouseOver as ei } from "./ColorLegendWithMouseOver.js";
27
- import { Colors as ye } from "./Colors.js";
28
- import { E as ii } from "./EmptyState-CaxXCkiN.js";
29
- import { P as li, e as si } from "./index-ApTBN0kp.js";
30
- import { d as De, f as ni } from "./ensureCompleteData-CDIukSG6.js";
31
- import { a as ai, G as oi } from "./GraphContainer-B8ZqOzKI.js";
32
- import { u as ri } from "./uniqBy-BHy4I8PK.js";
33
- import { g as Ye } from "./getTextColorBasedOnBgColor-CDY808zi.js";
34
- function ci(e) {
35
- const t = $e.c(132), {
36
- data: s,
37
- leftMargin: H,
38
- rightMargin: Gt,
39
- topMargin: Kt,
40
- bottomMargin: It,
41
- barColors: At,
42
- barPadding: Bt,
43
- showTicks: P,
44
- truncateBy: R,
1
+ import { c as Me, j as i, m as Ve } from "./index-CHPV5EwG-BzibaIRc.js";
2
+ import { useRef as Oe, useState as _t, useEffect as je } from "react";
3
+ import { g as Ze, N as Re } from "./getSliderMarks-X-_goqH9.js";
4
+ import { f as De, p as qe } from "./parse-Dv4of-PN.js";
5
+ import { o as Ye } from "./index-BZQYSqar.js";
6
+ import { s as fe } from "./index-CeVNqhMO.js";
7
+ import { i as Te } from "./index-Bwrro8-q.js";
8
+ import { n as $e } from "./numberFormattingFunction-BUUV_luR.js";
9
+ import { T as Se } from "./Tooltip-3EYDVa3w.js";
10
+ import { c as se } from "./checkIfNullOrUndefined-DmfiKkNw.js";
11
+ import { Y as Ue } from "./YAxesLabels-hWEUCTvs.js";
12
+ import { A as Be } from "./Axis-CNZYWzH0.js";
13
+ import { A as Fe } from "./AxisTitle-CyLCqpW6.js";
14
+ import { X as Je } from "./XTicksAndGridLines-CkYwVshF.js";
15
+ import { R as Ke, a as Qe } from "./ReferenceLine-D41VuUhE.js";
16
+ import { Y as _e } from "./YTicksAndGridLines-BbujwxOB.js";
17
+ import { X as ti } from "./XAxesLabels-B9gkjUiC.js";
18
+ import { D as Pe } from "./DetailsModal-GqEbGHY2.js";
19
+ import { u as He } from "./use-in-view-KOXq5Kmc.js";
20
+ import { a as We } from "./linear-DNXM5Pdl.js";
21
+ import { b as ze } from "./band-DYty33LD.js";
22
+ import { m as ee } from "./proxy-BsxtcZKa.js";
23
+ import { A as Xe } from "./index-Cv_5q6Rb.js";
24
+ import { GraphHeader as ei } from "./GraphHeader.js";
25
+ import { GraphFooter as ii } from "./GraphFooter.js";
26
+ import { ColorLegendWithMouseOver as si } from "./ColorLegendWithMouseOver.js";
27
+ import { Colors as ve } from "./Colors.js";
28
+ import { E as li } from "./EmptyState-CaxXCkiN.js";
29
+ import { P as ai, e as oi } from "./index-ApTBN0kp.js";
30
+ import { d as Ne, f as ci } from "./ensureCompleteData-CDIukSG6.js";
31
+ import { a as ni, G as ri } from "./GraphContainer-B8ZqOzKI.js";
32
+ import { u as di } from "./uniqBy-BHy4I8PK.js";
33
+ import { g as Ge } from "./getTextColorBasedOnBgColor-CDY808zi.js";
34
+ function ui(e) {
35
+ const t = Me.c(133), {
36
+ data: l,
37
+ leftMargin: X,
38
+ rightMargin: Rt,
39
+ topMargin: Ut,
40
+ bottomMargin: jt,
41
+ barColors: Mt,
42
+ barPadding: St,
43
+ showTicks: H,
44
+ truncateBy: U,
45
45
  width: O,
46
- height: X,
47
- suffix: ut,
48
- prefix: Z,
49
- showValues: $t,
50
- showLabels: W,
51
- tooltip: st,
52
- onSeriesMouseOver: Nt,
53
- refValues: Ot,
54
- maxValue: Xt,
55
- minValue: k,
56
- onSeriesMouseClick: q,
57
- selectedColor: j,
58
- rtl: N,
59
- labelOrder: ot,
60
- maxBarThickness: U,
61
- resetSelectionOnDoubleClick: xt,
62
- detailsOnClick: T,
63
- barAxisTitle: J,
64
- valueColor: _,
46
+ height: G,
47
+ suffix: gt,
48
+ prefix: st,
49
+ showValues: kt,
50
+ showLabels: Y,
51
+ tooltip: nt,
52
+ onSeriesMouseOver: Tt,
53
+ refValues: Ct,
54
+ maxValue: Yt,
55
+ minValue: M,
56
+ onSeriesMouseClick: J,
57
+ selectedColor: S,
58
+ rtl: z,
59
+ labelOrder: ut,
60
+ maxBarThickness: K,
61
+ resetSelectionOnDoubleClick: yt,
62
+ detailsOnClick: B,
63
+ barAxisTitle: Q,
64
+ valueColor: lt,
65
65
  noOfTicks: u,
66
- styles: l,
66
+ styles: s,
67
67
  classNames: a,
68
68
  animate: f,
69
69
  colorDomain: x,
70
- precision: w,
71
- customLayers: h,
72
- naLabel: at,
73
- hideAxisLine: S,
74
- locale: C
75
- } = e, Ht = H === void 0 ? 100 : H, Rt = Gt === void 0 ? 40 : Gt, Mt = Kt === void 0 ? 25 : Kt, yt = It === void 0 ? 10 : It, Yt = Ae(null);
76
- let tt;
77
- t[0] !== f.amount || t[1] !== f.once ? (tt = {
70
+ precision: y,
71
+ customLayers: m,
72
+ naLabel: rt,
73
+ hideAxisLine: F,
74
+ locale: L,
75
+ padZeros: T
76
+ } = e, Et = X === void 0 ? 100 : X, Bt = Rt === void 0 ? 40 : Rt, xt = Ut === void 0 ? 25 : Ut, Ft = jt === void 0 ? 10 : jt, Gt = Oe(null);
77
+ let D;
78
+ t[0] !== f.amount || t[1] !== f.once ? (D = {
78
79
  once: f.once,
79
80
  amount: f.amount
80
- }, t[0] = f.amount, t[1] = f.once, t[2] = tt) : tt = t[2];
81
- const D = Fe(Yt, tt), B = J ? Mt + 25 : Mt;
81
+ }, t[0] = f.amount, t[1] = f.once, t[2] = D) : D = t[2];
82
+ const V = He(Gt, D), Z = Q ? xt + 25 : xt;
82
83
  let p;
83
- t[3] !== yt || t[4] !== Ht || t[5] !== Rt || t[6] !== B ? (p = {
84
- top: B,
85
- bottom: yt,
86
- left: Ht,
87
- right: Rt
88
- }, t[3] = yt, t[4] = Ht, t[5] = Rt, t[6] = B, t[7] = p) : p = t[7];
89
- const c = p, [jt, z] = _t(void 0), [y, Ft] = _t(void 0), [Tt, mt] = _t(void 0), [qt, et] = _t(void 0), Pt = O - c.left - c.right, Y = X - c.top - c.bottom;
90
- let it;
91
- if (t[8] !== s || t[9] !== ot) {
92
- const v = /* @__PURE__ */ new Set(), zt = s.map((b, G) => {
93
- const Et = ot ? `${b.label}` : `${G}`;
94
- return v.add(Et), {
95
- ...b,
96
- id: Et
84
+ t[3] !== Ft || t[4] !== Et || t[5] !== Bt || t[6] !== Z ? (p = {
85
+ top: Z,
86
+ bottom: Ft,
87
+ left: Et,
88
+ right: Bt
89
+ }, t[3] = Ft, t[4] = Et, t[5] = Bt, t[6] = Z, t[7] = p) : p = t[7];
90
+ const b = p, [I, C] = _t(void 0), [N, mt] = _t(void 0), [Pt, Lt] = _t(void 0), [Ht, ct] = _t(void 0), Xt = O - b.left - b.right, W = G - b.top - b.bottom;
91
+ let _;
92
+ if (t[8] !== l || t[9] !== ut) {
93
+ const v = /* @__PURE__ */ new Set(), It = l.map((g, q) => {
94
+ const Zt = ut ? `${g.label}` : `${q}`;
95
+ return v.add(Zt), {
96
+ ...g,
97
+ id: Zt
97
98
  };
98
- }), wt = ot ? ot.filter((b) => !v.has(b)) : [];
99
- let r;
100
- t[11] !== s[0].size.length ? (r = (b) => ({
101
- id: b,
102
- label: b,
103
- size: Array(s[0].size.length).fill(null)
104
- }), t[11] = s[0].size.length, t[12] = r) : r = t[12], it = [...zt, ...wt.map(r)], t[8] = s, t[9] = ot, t[10] = it;
99
+ }), Ot = ut ? ut.filter((g) => !v.has(g)) : [];
100
+ let c;
101
+ t[11] !== l[0].size.length ? (c = (g) => ({
102
+ id: g,
103
+ label: g,
104
+ size: Array(l[0].size.length).fill(null)
105
+ }), t[11] = l[0].size.length, t[12] = c) : c = t[12], _ = [...It, ...Ot.map(c)], t[8] = l, t[9] = ut, t[10] = _;
105
106
  } else
106
- it = t[10];
107
- const M = it;
108
- let bt;
109
- t[13] !== M || t[14] !== ot ? (bt = ot ?? M.map(gi), t[13] = M, t[14] = ot, t[15] = bt) : bt = t[15];
110
- const kt = bt;
111
- let ht, ft, pt, St, Ct, K, F, I, Lt, nt, lt, Q, gt, rt;
112
- if (t[16] !== f || t[17] !== J || t[18] !== At || t[19] !== kt || t[20] !== Bt || t[21] !== a?.graphObjectValues || t[22] !== a?.xAxis?.gridLines || t[23] !== a?.xAxis?.labels || t[24] !== a?.xAxis?.title || t[25] !== a?.yAxis?.axis || t[26] !== a?.yAxis?.labels || t[27] !== x || t[28] !== h || t[29] !== s[0].size || t[30] !== M || t[31] !== T || t[32] !== Y || t[33] !== Pt || t[34] !== X || t[35] !== S || t[36] !== D || t[37] !== C || t[38] !== c.bottom || t[39] !== c.left || t[40] !== c.top || t[41] !== U || t[42] !== Xt || t[43] !== k || t[44] !== y || t[45] !== at || t[46] !== u || t[47] !== q || t[48] !== Nt || t[49] !== w || t[50] !== Z || t[51] !== Ot || t[52] !== xt || t[53] !== N || t[54] !== j || t[55] !== W || t[56] !== P || t[57] !== $t || t[58] !== l?.graphObjectValues || t[59] !== l?.xAxis?.gridLines || t[60] !== l?.xAxis?.labels || t[61] !== l?.xAxis?.title || t[62] !== l?.yAxis?.axis || t[63] !== l?.yAxis?.labels || t[64] !== ut || t[65] !== Mt || t[66] !== R || t[67] !== _ || t[68] !== O) {
113
- const v = Pe().domain([k, Xt]).range([0, Pt]).nice(), zt = Le().domain(kt).range([0, U ? Math.min(Y, U * kt.length) : Y]).paddingInner(Bt), wt = Le().domain(s[0].size.map(pi)).range([0, zt.bandwidth()]).paddingInner(0.1), r = v.ticks(u);
114
- ft = te.svg, Lt = Yt, nt = `${O}px`, lt = `${X}px`, Q = `0 0 ${O} ${X}`, gt = "ltr", Ct = `translate(${c.left},${c.top})`, K = P ? /* @__PURE__ */ i.jsx(Ue, { values: r.filter(fi), x: r.filter(hi).map((V) => v(V)), y1: 0 - Mt, y2: Y + c.bottom, styles: {
115
- gridLines: l?.xAxis?.gridLines,
116
- labels: l?.xAxis?.labels
107
+ _ = t[10];
108
+ const k = _;
109
+ let tt;
110
+ t[13] !== k || t[14] !== ut ? (tt = ut ?? k.map(bi), t[13] = k, t[14] = ut, t[15] = tt) : tt = t[15];
111
+ const at = tt;
112
+ let bt, vt, At, dt, Vt, et, P, j, zt, ht, ot, it, wt, ft;
113
+ if (t[16] !== f || t[17] !== Q || t[18] !== Mt || t[19] !== at || t[20] !== St || t[21] !== a?.graphObjectValues || t[22] !== a?.xAxis?.gridLines || t[23] !== a?.xAxis?.labels || t[24] !== a?.xAxis?.title || t[25] !== a?.yAxis?.axis || t[26] !== a?.yAxis?.labels || t[27] !== x || t[28] !== m || t[29] !== l[0].size || t[30] !== k || t[31] !== B || t[32] !== W || t[33] !== Xt || t[34] !== G || t[35] !== F || t[36] !== V || t[37] !== L || t[38] !== b.bottom || t[39] !== b.left || t[40] !== b.top || t[41] !== K || t[42] !== Yt || t[43] !== M || t[44] !== N || t[45] !== rt || t[46] !== u || t[47] !== J || t[48] !== Tt || t[49] !== T || t[50] !== y || t[51] !== st || t[52] !== Ct || t[53] !== yt || t[54] !== z || t[55] !== S || t[56] !== Y || t[57] !== H || t[58] !== kt || t[59] !== s?.graphObjectValues || t[60] !== s?.xAxis?.gridLines || t[61] !== s?.xAxis?.labels || t[62] !== s?.xAxis?.title || t[63] !== s?.yAxis?.axis || t[64] !== s?.yAxis?.labels || t[65] !== gt || t[66] !== xt || t[67] !== U || t[68] !== lt || t[69] !== O) {
114
+ const v = We().domain([M, Yt]).range([0, Xt]).nice(), It = ze().domain(at).range([0, K ? Math.min(W, K * at.length) : W]).paddingInner(St), Ot = ze().domain(l[0].size.map(yi)).range([0, It.bandwidth()]).paddingInner(0.1), c = v.ticks(u);
115
+ vt = ee.svg, zt = Gt, ht = `${O}px`, ot = `${G}px`, it = `0 0 ${O} ${G}`, wt = "ltr", Vt = `translate(${b.left},${b.top})`, et = H ? /* @__PURE__ */ i.jsx(Je, { values: c.filter(gi), x: c.filter(pi).map((h) => v(h)), y1: 0 - xt, y2: W + b.bottom, styles: {
116
+ gridLines: s?.xAxis?.gridLines,
117
+ labels: s?.xAxis?.labels
117
118
  }, classNames: {
118
119
  gridLines: a?.xAxis?.gridLines,
119
120
  labels: a?.xAxis?.labels
120
- }, suffix: ut, prefix: Z, labelType: "secondary", showGridLines: !0, precision: w, locale: C }) : null;
121
- const b = Pt / 2, G = 0 - c.top + 15, Et = l?.xAxis?.title, Ut = a?.xAxis?.title;
122
- t[83] !== J || t[84] !== b || t[85] !== G || t[86] !== Et || t[87] !== Ut ? (F = /* @__PURE__ */ i.jsx(Se, { x: b, y: G, style: Et, className: Ut, text: J }), t[83] = J, t[84] = b, t[85] = G, t[86] = Et, t[87] = Ut, t[88] = F) : F = t[88], t[89] !== h ? (I = h.filter(mi).map(xi), t[89] = h, t[90] = I) : I = t[90], ht = He, rt = M.map((V) => ie(zt(V.id)) ? null : /* @__PURE__ */ i.jsxs(te.g, { variants: {
121
+ }, suffix: gt, prefix: st, labelType: "secondary", showGridLines: !0, precision: y, locale: L, padZeros: T }) : null;
122
+ const g = Xt / 2, q = 0 - b.top + 15, Zt = s?.xAxis?.title, Qt = a?.xAxis?.title;
123
+ t[84] !== Q || t[85] !== g || t[86] !== q || t[87] !== Zt || t[88] !== Qt ? (P = /* @__PURE__ */ i.jsx(Fe, { x: g, y: q, style: Zt, className: Qt, text: Q }), t[84] = Q, t[85] = g, t[86] = q, t[87] = Zt, t[88] = Qt, t[89] = P) : P = t[89], t[90] !== m ? (j = m.filter(fi).map(hi), t[90] = m, t[91] = j) : j = t[91], bt = Xe, ft = k.map((h) => se(It(h.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { variants: {
123
124
  initial: {
124
125
  x: 0,
125
- y: zt(`${V.id}`)
126
+ y: It(`${h.id}`)
126
127
  },
127
128
  whileInView: {
128
129
  x: 0,
129
- y: zt(`${V.id}`),
130
+ y: It(`${h.id}`),
130
131
  transition: {
131
132
  duration: f.duration
132
133
  }
133
134
  }
134
- }, initial: "initial", animate: D ? "whileInView" : "initial", exit: {
135
+ }, initial: "initial", animate: V ? "whileInView" : "initial", exit: {
135
136
  opacity: 0,
136
137
  transition: {
137
138
  duration: f.duration
138
139
  }
139
140
  }, children: [
140
- V.size.map((d, L) => /* @__PURE__ */ i.jsxs(te.g, { className: "undp-viz-g-with-hover", opacity: j ? At[L] === j ? 1 : 0.3 : 0.85, onMouseEnter: (o) => {
141
- z({
142
- ...V,
143
- sizeIndex: L
144
- }), et(o.clientY), mt(o.clientX), Nt?.({
145
- ...V,
146
- sizeIndex: L
141
+ h.size.map((d, A) => /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-g-with-hover", opacity: S ? Mt[A] === S ? 1 : 0.3 : 0.85, onMouseEnter: (o) => {
142
+ C({
143
+ ...h,
144
+ sizeIndex: A
145
+ }), ct(o.clientY), Lt(o.clientX), Tt?.({
146
+ ...h,
147
+ sizeIndex: A
147
148
  });
148
149
  }, onMouseMove: (o) => {
149
- z({
150
- ...V,
151
- sizeIndex: L
152
- }), et(o.clientY), mt(o.clientX);
150
+ C({
151
+ ...h,
152
+ sizeIndex: A
153
+ }), ct(o.clientY), Lt(o.clientX);
153
154
  }, onMouseLeave: () => {
154
- z(void 0), mt(void 0), et(void 0), Nt?.(void 0);
155
+ C(void 0), Lt(void 0), ct(void 0), Tt?.(void 0);
155
156
  }, onClick: () => {
156
- (q || T) && (Ne(y, {
157
- ...V,
158
- sizeIndex: L
159
- }) && xt ? (Ft(void 0), q?.(void 0)) : (Ft({
160
- ...V,
161
- sizeIndex: L
162
- }), q && q({
163
- ...V,
164
- sizeIndex: L
157
+ (J || B) && (Te(N, {
158
+ ...h,
159
+ sizeIndex: A
160
+ }) && yt ? (mt(void 0), J?.(void 0)) : (mt({
161
+ ...h,
162
+ sizeIndex: A
163
+ }), J && J({
164
+ ...h,
165
+ sizeIndex: A
165
166
  })));
166
167
  }, children: [
167
- ie(d) ? null : /* @__PURE__ */ i.jsx(te.rect, { y: wt(`${L}`), variants: {
168
+ se(d) ? null : /* @__PURE__ */ i.jsx(ee.rect, { y: Ot(`${A}`), variants: {
168
169
  initial: {
169
170
  width: 0,
170
171
  x: v(0),
171
- fill: At[L]
172
+ fill: Mt[A]
172
173
  },
173
174
  whileInView: {
174
- width: ie(d) ? 0 : d >= 0 ? v(d) - v(0) : v(0) - v(d),
175
+ width: se(d) ? 0 : d >= 0 ? v(d) - v(0) : v(0) - v(d),
175
176
  x: d >= 0 ? v(0) : v(d),
176
- fill: At[L],
177
+ fill: Mt[A],
177
178
  transition: {
178
179
  duration: f.duration
179
180
  }
@@ -184,553 +185,549 @@ function ci(e) {
184
185
  transition: {
185
186
  duration: f.duration
186
187
  }
187
- }, height: wt.bandwidth(), initial: "initial", animate: D ? "whileInView" : "initial" }),
188
- $t ? /* @__PURE__ */ i.jsx(te.text, { y: wt(`${L}`) + wt.bandwidth() / 2, style: {
188
+ }, height: Ot.bandwidth(), initial: "initial", animate: V ? "whileInView" : "initial" }),
189
+ kt ? /* @__PURE__ */ i.jsx(ee.text, { y: Ot(`${A}`) + Ot.bandwidth() / 2, style: {
189
190
  textAnchor: d && d < 0 ? "end" : "start",
190
- ...l?.graphObjectValues || {}
191
- }, className: Ce("graph-value text-sm", a?.graphObjectValues), dx: d && d < 0 ? -5 : 5, dy: "0.33em", variants: {
191
+ ...s?.graphObjectValues || {}
192
+ }, className: Ve("graph-value text-sm", a?.graphObjectValues), dx: d && d < 0 ? -5 : 5, dy: "0.33em", variants: {
192
193
  initial: {
193
194
  x: v(0),
194
195
  opacity: 0,
195
- fill: _ || At[L]
196
+ fill: lt || Mt[A]
196
197
  },
197
198
  whileInView: {
198
199
  x: v(d || 0),
199
200
  opacity: 1,
200
- fill: _ || At[L],
201
+ fill: lt || Mt[A],
201
202
  transition: {
202
203
  duration: f.duration
203
204
  }
204
205
  }
205
- }, initial: "initial", animate: D ? "whileInView" : "initial", exit: {
206
+ }, initial: "initial", animate: V ? "whileInView" : "initial", exit: {
206
207
  opacity: 0,
207
208
  transition: {
208
209
  duration: f.duration
209
210
  }
210
- }, children: we(d, at, w, Z, ut, C) }) : null
211
- ] }, `${V.label}-${x[L] || L}`)),
212
- W ? /* @__PURE__ */ i.jsx(qe, { value: `${V.label}`.length < R ? `${V.label}` : `${`${V.label}`.substring(0, R)}...`, y: 0, x: 0 - c.left, width: v(k < 0 ? 0 : k) + c.left, height: zt.bandwidth(), style: l?.yAxis?.labels, className: a?.yAxis?.labels, animate: f, isInView: D }) : null
213
- ] }, V.label));
214
- const Jt = a?.yAxis?.axis;
215
- let Zt;
216
- t[91] !== Jt ? (Zt = {
217
- axis: Jt
218
- }, t[91] = Jt, t[92] = Zt) : Zt = t[92];
219
- const dt = l?.yAxis?.axis;
220
- let g;
221
- t[93] !== dt ? (g = {
222
- axis: dt
223
- }, t[93] = dt, t[94] = g) : g = t[94], pt = /* @__PURE__ */ i.jsx(Te, { x1: v(k < 0 ? 0 : k), x2: v(k < 0 ? 0 : k), y1: -2.5, y2: Y + c.bottom, classNames: Zt, styles: g, hideAxisLine: S }), St = Ot ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Ot.map((V, d) => /* @__PURE__ */ i.jsx(Je, { text: V.text, color: V.color, x: v(V.value), y1: 0 - c.top, y2: Y + c.bottom, textSide: v(V.value) > Pt * 0.75 || N ? "left" : "right", classNames: V.classNames, styles: V.styles, animate: f, isInView: D }, d)) }) : null, t[16] = f, t[17] = J, t[18] = At, t[19] = kt, t[20] = Bt, t[21] = a?.graphObjectValues, t[22] = a?.xAxis?.gridLines, t[23] = a?.xAxis?.labels, t[24] = a?.xAxis?.title, t[25] = a?.yAxis?.axis, t[26] = a?.yAxis?.labels, t[27] = x, t[28] = h, t[29] = s[0].size, t[30] = M, t[31] = T, t[32] = Y, t[33] = Pt, t[34] = X, t[35] = S, t[36] = D, t[37] = C, t[38] = c.bottom, t[39] = c.left, t[40] = c.top, t[41] = U, t[42] = Xt, t[43] = k, t[44] = y, t[45] = at, t[46] = u, t[47] = q, t[48] = Nt, t[49] = w, t[50] = Z, t[51] = Ot, t[52] = xt, t[53] = N, t[54] = j, t[55] = W, t[56] = P, t[57] = $t, t[58] = l?.graphObjectValues, t[59] = l?.xAxis?.gridLines, t[60] = l?.xAxis?.labels, t[61] = l?.xAxis?.title, t[62] = l?.yAxis?.axis, t[63] = l?.yAxis?.labels, t[64] = ut, t[65] = Mt, t[66] = R, t[67] = _, t[68] = O, t[69] = ht, t[70] = ft, t[71] = pt, t[72] = St, t[73] = Ct, t[74] = K, t[75] = F, t[76] = I, t[77] = Lt, t[78] = nt, t[79] = lt, t[80] = Q, t[81] = gt, t[82] = rt;
211
+ }, children: $e(d, rt, y, st, gt, L, T) }) : null
212
+ ] }, `${h.label}-${x[A] || A}`)),
213
+ Y ? /* @__PURE__ */ i.jsx(Ue, { value: `${h.label}`.length < U ? `${h.label}` : `${`${h.label}`.substring(0, U)}...`, y: 0, x: 0 - b.left, width: v(M < 0 ? 0 : M) + b.left, height: It.bandwidth(), style: s?.yAxis?.labels, className: a?.yAxis?.labels, animate: f, isInView: V }) : null
214
+ ] }, h.label));
215
+ const qt = a?.yAxis?.axis;
216
+ let Jt;
217
+ t[92] !== qt ? (Jt = {
218
+ axis: qt
219
+ }, t[92] = qt, t[93] = Jt) : Jt = t[93];
220
+ const te = s?.yAxis?.axis;
221
+ let w;
222
+ t[94] !== te ? (w = {
223
+ axis: te
224
+ }, t[94] = te, t[95] = w) : w = t[95], At = /* @__PURE__ */ i.jsx(Be, { x1: v(M < 0 ? 0 : M), x2: v(M < 0 ? 0 : M), y1: -2.5, y2: W + b.bottom, classNames: Jt, styles: w, hideAxisLine: F }), dt = Ct ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Ct.map((h, d) => /* @__PURE__ */ i.jsx(Ke, { text: h.text, color: h.color, x: v(h.value), y1: 0 - b.top, y2: W + b.bottom, textSide: v(h.value) > Xt * 0.75 || z ? "left" : "right", classNames: h.classNames, styles: h.styles, animate: f, isInView: V }, d)) }) : null, t[16] = f, t[17] = Q, t[18] = Mt, t[19] = at, t[20] = St, t[21] = a?.graphObjectValues, t[22] = a?.xAxis?.gridLines, t[23] = a?.xAxis?.labels, t[24] = a?.xAxis?.title, t[25] = a?.yAxis?.axis, t[26] = a?.yAxis?.labels, t[27] = x, t[28] = m, t[29] = l[0].size, t[30] = k, t[31] = B, t[32] = W, t[33] = Xt, t[34] = G, t[35] = F, t[36] = V, t[37] = L, t[38] = b.bottom, t[39] = b.left, t[40] = b.top, t[41] = K, t[42] = Yt, t[43] = M, t[44] = N, t[45] = rt, t[46] = u, t[47] = J, t[48] = Tt, t[49] = T, t[50] = y, t[51] = st, t[52] = Ct, t[53] = yt, t[54] = z, t[55] = S, t[56] = Y, t[57] = H, t[58] = kt, t[59] = s?.graphObjectValues, t[60] = s?.xAxis?.gridLines, t[61] = s?.xAxis?.labels, t[62] = s?.xAxis?.title, t[63] = s?.yAxis?.axis, t[64] = s?.yAxis?.labels, t[65] = gt, t[66] = xt, t[67] = U, t[68] = lt, t[69] = O, t[70] = bt, t[71] = vt, t[72] = At, t[73] = dt, t[74] = Vt, t[75] = et, t[76] = P, t[77] = j, t[78] = zt, t[79] = ht, t[80] = ot, t[81] = it, t[82] = wt, t[83] = ft;
224
225
  } else
225
- ht = t[69], ft = t[70], pt = t[71], St = t[72], Ct = t[73], K = t[74], F = t[75], I = t[76], Lt = t[77], nt = t[78], lt = t[79], Q = t[80], gt = t[81], rt = t[82];
226
- let E;
227
- t[95] !== ht || t[96] !== pt || t[97] !== St || t[98] !== rt ? (E = /* @__PURE__ */ i.jsxs(ht, { children: [
228
- rt,
229
- pt,
230
- St
231
- ] }), t[95] = ht, t[96] = pt, t[97] = St, t[98] = rt, t[99] = E) : E = t[99];
232
- let vt;
233
- t[100] !== h ? (vt = h.filter(ui).map(di), t[100] = h, t[101] = vt) : vt = t[101];
234
- let Vt;
235
- t[102] !== Ct || t[103] !== K || t[104] !== F || t[105] !== I || t[106] !== E || t[107] !== vt ? (Vt = /* @__PURE__ */ i.jsxs("g", { transform: Ct, children: [
236
- K,
237
- F,
238
- I,
239
- E,
240
- vt
241
- ] }), t[102] = Ct, t[103] = K, t[104] = F, t[105] = I, t[106] = E, t[107] = vt, t[108] = Vt) : Vt = t[108];
242
- let ct;
243
- t[109] !== ft || t[110] !== Lt || t[111] !== nt || t[112] !== lt || t[113] !== Q || t[114] !== gt || t[115] !== Vt ? (ct = /* @__PURE__ */ i.jsx(ft, { ref: Lt, width: nt, height: lt, viewBox: Q, direction: gt, children: Vt }), t[109] = ft, t[110] = Lt, t[111] = nt, t[112] = lt, t[113] = Q, t[114] = gt, t[115] = Vt, t[116] = ct) : ct = t[116];
244
- let A;
245
- t[117] !== a?.tooltip || t[118] !== Tt || t[119] !== qt || t[120] !== jt || t[121] !== l?.tooltip || t[122] !== st ? (A = jt && st && Tt && qt ? /* @__PURE__ */ i.jsx(je, { data: jt, body: st, xPos: Tt, yPos: qt, backgroundStyle: l?.tooltip, className: a?.tooltip }) : null, t[117] = a?.tooltip, t[118] = Tt, t[119] = qt, t[120] = jt, t[121] = l?.tooltip, t[122] = st, t[123] = A) : A = t[123];
226
+ bt = t[70], vt = t[71], At = t[72], dt = t[73], Vt = t[74], et = t[75], P = t[76], j = t[77], zt = t[78], ht = t[79], ot = t[80], it = t[81], wt = t[82], ft = t[83];
227
+ let R;
228
+ t[96] !== bt || t[97] !== At || t[98] !== dt || t[99] !== ft ? (R = /* @__PURE__ */ i.jsxs(bt, { children: [
229
+ ft,
230
+ At,
231
+ dt
232
+ ] }), t[96] = bt, t[97] = At, t[98] = dt, t[99] = ft, t[100] = R) : R = t[100];
233
+ let $t;
234
+ t[101] !== m ? ($t = m.filter(mi).map(xi), t[101] = m, t[102] = $t) : $t = t[102];
235
+ let Dt;
236
+ t[103] !== Vt || t[104] !== et || t[105] !== P || t[106] !== j || t[107] !== R || t[108] !== $t ? (Dt = /* @__PURE__ */ i.jsxs("g", { transform: Vt, children: [
237
+ et,
238
+ P,
239
+ j,
240
+ R,
241
+ $t
242
+ ] }), t[103] = Vt, t[104] = et, t[105] = P, t[106] = j, t[107] = R, t[108] = $t, t[109] = Dt) : Dt = t[109];
243
+ let pt;
244
+ t[110] !== vt || t[111] !== zt || t[112] !== ht || t[113] !== ot || t[114] !== it || t[115] !== wt || t[116] !== Dt ? (pt = /* @__PURE__ */ i.jsx(vt, { ref: zt, width: ht, height: ot, viewBox: it, direction: wt, children: Dt }), t[110] = vt, t[111] = zt, t[112] = ht, t[113] = ot, t[114] = it, t[115] = wt, t[116] = Dt, t[117] = pt) : pt = t[117];
245
+ let $;
246
+ t[118] !== a?.tooltip || t[119] !== Pt || t[120] !== Ht || t[121] !== I || t[122] !== s?.tooltip || t[123] !== nt ? ($ = I && nt && Pt && Ht ? /* @__PURE__ */ i.jsx(Se, { data: I, body: nt, xPos: Pt, yPos: Ht, backgroundStyle: s?.tooltip, className: a?.tooltip }) : null, t[118] = a?.tooltip, t[119] = Pt, t[120] = Ht, t[121] = I, t[122] = s?.tooltip, t[123] = nt, t[124] = $) : $ = t[124];
246
247
  let Wt;
247
- t[124] !== a?.modal || t[125] !== T || t[126] !== y ? (Wt = T && y !== void 0 ? /* @__PURE__ */ i.jsx(Be, { body: T, data: y, setData: Ft, className: a?.modal }) : null, t[124] = a?.modal, t[125] = T, t[126] = y, t[127] = Wt) : Wt = t[127];
248
- let n;
249
- return t[128] !== ct || t[129] !== A || t[130] !== Wt ? (n = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
250
- ct,
251
- A,
248
+ t[125] !== a?.modal || t[126] !== B || t[127] !== N ? (Wt = B && N !== void 0 ? /* @__PURE__ */ i.jsx(Pe, { body: B, data: N, setData: mt, className: a?.modal }) : null, t[125] = a?.modal, t[126] = B, t[127] = N, t[128] = Wt) : Wt = t[128];
249
+ let r;
250
+ return t[129] !== pt || t[130] !== $ || t[131] !== Wt ? (r = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
251
+ pt,
252
+ $,
252
253
  Wt
253
- ] }), t[128] = ct, t[129] = A, t[130] = Wt, t[131] = n) : n = t[131], n;
254
+ ] }), t[129] = pt, t[130] = $, t[131] = Wt, t[132] = r) : r = t[132], r;
254
255
  }
255
- function di(e) {
256
+ function xi(e) {
256
257
  return e.layer;
257
258
  }
258
- function ui(e) {
259
+ function mi(e) {
259
260
  return e.position === "after";
260
261
  }
261
- function xi(e) {
262
+ function hi(e) {
262
263
  return e.layer;
263
264
  }
264
- function mi(e) {
265
+ function fi(e) {
265
266
  return e.position === "before";
266
267
  }
267
- function hi(e) {
268
+ function pi(e) {
268
269
  return e !== 0;
269
270
  }
270
- function fi(e) {
271
+ function gi(e) {
271
272
  return e !== 0;
272
273
  }
273
- function pi(e, t) {
274
+ function yi(e, t) {
274
275
  return `${t}`;
275
276
  }
276
- function gi(e) {
277
+ function bi(e) {
277
278
  return `${e.id}`;
278
279
  }
279
- function yi(e) {
280
- const t = $e.c(142), {
281
- data: s,
282
- leftMargin: H,
283
- rightMargin: Gt,
284
- topMargin: Kt,
285
- bottomMargin: It,
286
- width: At,
287
- height: Bt,
288
- barColors: P,
289
- suffix: R,
280
+ function vi(e) {
281
+ const t = Me.c(144), {
282
+ data: l,
283
+ leftMargin: X,
284
+ rightMargin: Rt,
285
+ topMargin: Ut,
286
+ bottomMargin: jt,
287
+ width: Mt,
288
+ height: St,
289
+ barColors: H,
290
+ suffix: U,
290
291
  prefix: O,
291
- barPadding: X,
292
- showLabels: ut,
293
- showValues: Z,
294
- showTicks: $t,
295
- truncateBy: W,
296
- tooltip: st,
297
- onSeriesMouseOver: Nt,
298
- refValues: Ot,
299
- maxValue: Xt,
300
- minValue: k,
301
- onSeriesMouseClick: q,
302
- selectedColor: j,
303
- labelOrder: N,
304
- maxBarThickness: ot,
305
- resetSelectionOnDoubleClick: U,
306
- detailsOnClick: xt,
307
- barAxisTitle: T,
308
- valueColor: J,
309
- noOfTicks: _,
292
+ barPadding: G,
293
+ showLabels: gt,
294
+ showValues: st,
295
+ showTicks: kt,
296
+ truncateBy: Y,
297
+ tooltip: nt,
298
+ onSeriesMouseOver: Tt,
299
+ refValues: Ct,
300
+ maxValue: Yt,
301
+ minValue: M,
302
+ onSeriesMouseClick: J,
303
+ selectedColor: S,
304
+ labelOrder: z,
305
+ maxBarThickness: ut,
306
+ resetSelectionOnDoubleClick: K,
307
+ detailsOnClick: yt,
308
+ barAxisTitle: B,
309
+ valueColor: Q,
310
+ noOfTicks: lt,
310
311
  styles: u,
311
- classNames: l,
312
+ classNames: s,
312
313
  animate: a,
313
314
  colorDomain: f,
314
315
  precision: x,
315
- customLayers: w,
316
- naLabel: h,
317
- hideAxisLine: at,
318
- locale: S
319
- } = e, C = H === void 0 ? 20 : H, Ht = Gt === void 0 ? 20 : Gt, Rt = Kt === void 0 ? 20 : Kt, Mt = It === void 0 ? 25 : It, yt = Ae(null);
320
- let Yt;
321
- t[0] !== a.amount || t[1] !== a.once ? (Yt = {
316
+ customLayers: y,
317
+ naLabel: m,
318
+ hideAxisLine: rt,
319
+ locale: F,
320
+ padZeros: L
321
+ } = e, T = X === void 0 ? 20 : X, Et = Rt === void 0 ? 20 : Rt, Bt = Ut === void 0 ? 20 : Ut, xt = jt === void 0 ? 25 : jt, Ft = Oe(null);
322
+ let Gt;
323
+ t[0] !== a.amount || t[1] !== a.once ? (Gt = {
322
324
  once: a.once,
323
325
  amount: a.amount
324
- }, t[0] = a.amount, t[1] = a.once, t[2] = Yt) : Yt = t[2];
325
- const tt = Fe(yt, Yt), D = T ? C + 30 : C;
326
- let B;
327
- t[3] !== Mt || t[4] !== Ht || t[5] !== D || t[6] !== Rt ? (B = {
328
- top: Rt,
329
- bottom: Mt,
330
- left: D,
331
- right: Ht
332
- }, t[3] = Mt, t[4] = Ht, t[5] = D, t[6] = Rt, t[7] = B) : B = t[7];
333
- const p = B, [c, jt] = _t(void 0), [z, y] = _t(void 0), [Ft, Tt] = _t(void 0), [mt, qt] = _t(void 0), et = At - p.left - p.right, Pt = Bt - p.top - p.bottom;
334
- let Y;
335
- if (t[8] !== s || t[9] !== N) {
336
- const n = /* @__PURE__ */ new Set(), v = s.map((r, b) => {
337
- const G = N ? `${r.label}` : `${b}`;
338
- return n.add(G), {
339
- ...r,
340
- id: G
326
+ }, t[0] = a.amount, t[1] = a.once, t[2] = Gt) : Gt = t[2];
327
+ const D = He(Ft, Gt), V = B ? T + 30 : T;
328
+ let Z;
329
+ t[3] !== xt || t[4] !== Et || t[5] !== V || t[6] !== Bt ? (Z = {
330
+ top: Bt,
331
+ bottom: xt,
332
+ left: V,
333
+ right: Et
334
+ }, t[3] = xt, t[4] = Et, t[5] = V, t[6] = Bt, t[7] = Z) : Z = t[7];
335
+ const p = Z, [b, I] = _t(void 0), [C, N] = _t(void 0), [mt, Pt] = _t(void 0), [Lt, Ht] = _t(void 0), ct = Mt - p.left - p.right, Xt = St - p.top - p.bottom;
336
+ let W;
337
+ if (t[8] !== l || t[9] !== z) {
338
+ const r = /* @__PURE__ */ new Set(), v = l.map((c, g) => {
339
+ const q = z ? `${c.label}` : `${g}`;
340
+ return r.add(q), {
341
+ ...c,
342
+ id: q
341
343
  };
342
- }), zt = N ? N.filter((r) => !n.has(r)) : [];
343
- let wt;
344
- t[11] !== s[0].size.length ? (wt = (r) => ({
345
- id: r,
346
- label: r,
347
- size: Array(s[0].size.length).fill(null)
348
- }), t[11] = s[0].size.length, t[12] = wt) : wt = t[12], Y = [...v, ...zt.map(wt)], t[8] = s, t[9] = N, t[10] = Y;
344
+ }), It = z ? z.filter((c) => !r.has(c)) : [];
345
+ let Ot;
346
+ t[11] !== l[0].size.length ? (Ot = (c) => ({
347
+ id: c,
348
+ label: c,
349
+ size: Array(l[0].size.length).fill(null)
350
+ }), t[11] = l[0].size.length, t[12] = Ot) : Ot = t[12], W = [...v, ...It.map(Ot)], t[8] = l, t[9] = z, t[10] = W;
349
351
  } else
350
- Y = t[10];
351
- const it = Y;
352
- let M;
353
- t[13] !== it || t[14] !== N ? (M = N ?? it.map(ki), t[13] = it, t[14] = N, t[15] = M) : M = t[15];
354
- const bt = M;
355
- let kt, ht, ft, pt, St, Ct, K, F, I, Lt, nt, lt, Q, gt;
356
- if (t[16] !== a || t[17] !== T || t[18] !== P || t[19] !== bt || t[20] !== X || t[21] !== l?.graphObjectValues || t[22] !== l?.xAxis?.axis || t[23] !== l?.xAxis?.labels || t[24] !== l?.yAxis?.gridLines || t[25] !== l?.yAxis?.labels || t[26] !== l?.yAxis?.title || t[27] !== f || t[28] !== w || t[29] !== s[0].size || t[30] !== it || t[31] !== xt || t[32] !== Pt || t[33] !== et || t[34] !== Bt || t[35] !== at || t[36] !== tt || t[37] !== C || t[38] !== S || t[39] !== p.bottom || t[40] !== p.left || t[41] !== p.right || t[42] !== p.top || t[43] !== ot || t[44] !== Xt || t[45] !== k || t[46] !== z || t[47] !== h || t[48] !== _ || t[49] !== q || t[50] !== Nt || t[51] !== x || t[52] !== O || t[53] !== Ot || t[54] !== U || t[55] !== j || t[56] !== ut || t[57] !== $t || t[58] !== Z || t[59] !== u?.graphObjectValues || t[60] !== u?.xAxis?.axis || t[61] !== u?.xAxis?.labels || t[62] !== u?.yAxis?.gridLines || t[63] !== u?.yAxis?.labels || t[64] !== u?.yAxis?.title || t[65] !== R || t[66] !== W || t[67] !== J || t[68] !== At) {
357
- const n = Pe().domain([k, Xt]).range([Pt, 0]).nice(), v = Le().domain(bt).range([0, ot ? Math.min(et, ot * bt.length) : et]).paddingInner(X), zt = Le().domain(s[0].size.map(Mi)).range([0, v.bandwidth()]).paddingInner(0.1), wt = n.ticks(_);
358
- ht = te.svg, I = `${At}px`, Lt = `${Bt}px`, nt = `0 0 ${At} ${Bt}`, lt = "ltr", Q = yt, pt = `translate(${p.left},${p.top})`;
359
- let r;
360
- t[83] !== S || t[84] !== k || t[85] !== h || t[86] !== x || t[87] !== O || t[88] !== $t || t[89] !== R ? (r = $t ? we(k < 0 ? 0 : k, h, x, O, R, S) : void 0, t[83] = S, t[84] = k, t[85] = h, t[86] = x, t[87] = O, t[88] = $t, t[89] = R, t[90] = r) : r = t[90];
361
- const b = l?.xAxis?.axis, G = l?.yAxis?.labels;
362
- let Et;
363
- t[91] !== b || t[92] !== G ? (Et = {
364
- axis: b,
365
- label: G
366
- }, t[91] = b, t[92] = G, t[93] = Et) : Et = t[93];
367
- const Ut = u?.xAxis?.axis, Jt = u?.yAxis?.labels;
352
+ W = t[10];
353
+ const _ = W;
354
+ let k;
355
+ t[13] !== _ || t[14] !== z ? (k = z ?? _.map(Li), t[13] = _, t[14] = z, t[15] = k) : k = t[15];
356
+ const tt = k;
357
+ let at, bt, vt, At, dt, Vt, et, P, j, zt, ht, ot, it, wt;
358
+ if (t[16] !== a || t[17] !== B || t[18] !== H || t[19] !== tt || t[20] !== G || t[21] !== s?.graphObjectValues || t[22] !== s?.xAxis?.axis || t[23] !== s?.xAxis?.labels || t[24] !== s?.yAxis?.gridLines || t[25] !== s?.yAxis?.labels || t[26] !== s?.yAxis?.title || t[27] !== f || t[28] !== y || t[29] !== l[0].size || t[30] !== _ || t[31] !== yt || t[32] !== Xt || t[33] !== ct || t[34] !== St || t[35] !== rt || t[36] !== D || t[37] !== T || t[38] !== F || t[39] !== p.bottom || t[40] !== p.left || t[41] !== p.right || t[42] !== p.top || t[43] !== ut || t[44] !== Yt || t[45] !== M || t[46] !== C || t[47] !== m || t[48] !== lt || t[49] !== J || t[50] !== Tt || t[51] !== L || t[52] !== x || t[53] !== O || t[54] !== Ct || t[55] !== K || t[56] !== S || t[57] !== gt || t[58] !== kt || t[59] !== st || t[60] !== u?.graphObjectValues || t[61] !== u?.xAxis?.axis || t[62] !== u?.xAxis?.labels || t[63] !== u?.yAxis?.gridLines || t[64] !== u?.yAxis?.labels || t[65] !== u?.yAxis?.title || t[66] !== U || t[67] !== Y || t[68] !== Q || t[69] !== Mt) {
359
+ const r = We().domain([M, Yt]).range([Xt, 0]).nice(), v = ze().domain(tt).range([0, ut ? Math.min(ct, ut * tt.length) : ct]).paddingInner(G), It = ze().domain(l[0].size.map(Ci)).range([0, v.bandwidth()]).paddingInner(0.1), Ot = r.ticks(lt);
360
+ bt = ee.svg, j = `${Mt}px`, zt = `${St}px`, ht = `0 0 ${Mt} ${St}`, ot = "ltr", it = Ft, At = `translate(${p.left},${p.top})`;
361
+ let c;
362
+ t[84] !== F || t[85] !== M || t[86] !== m || t[87] !== L || t[88] !== x || t[89] !== O || t[90] !== kt || t[91] !== U ? (c = kt ? $e(M < 0 ? 0 : M, m, x, O, U, F, L) : void 0, t[84] = F, t[85] = M, t[86] = m, t[87] = L, t[88] = x, t[89] = O, t[90] = kt, t[91] = U, t[92] = c) : c = t[92];
363
+ const g = s?.xAxis?.axis, q = s?.yAxis?.labels;
368
364
  let Zt;
369
- t[94] !== Ut || t[95] !== Jt ? (Zt = {
370
- axis: Ut,
371
- label: Jt
372
- }, t[94] = Ut, t[95] = Jt, t[96] = Zt) : Zt = t[96], St = /* @__PURE__ */ i.jsx(Te, { y1: n(k < 0 ? 0 : k), y2: n(k < 0 ? 0 : k), x1: 0 - C, x2: et + p.right, label: r, hideAxisLine: at, labelPos: {
373
- x: 0 - C,
365
+ t[93] !== g || t[94] !== q ? (Zt = {
366
+ axis: g,
367
+ label: q
368
+ }, t[93] = g, t[94] = q, t[95] = Zt) : Zt = t[95];
369
+ const Qt = u?.xAxis?.axis, qt = u?.yAxis?.labels;
370
+ let Jt;
371
+ t[96] !== Qt || t[97] !== qt ? (Jt = {
372
+ axis: Qt,
373
+ label: qt
374
+ }, t[96] = Qt, t[97] = qt, t[98] = Jt) : Jt = t[98], dt = /* @__PURE__ */ i.jsx(Be, { y1: r(M < 0 ? 0 : M), y2: r(M < 0 ? 0 : M), x1: 0 - T, x2: ct + p.right, label: c, hideAxisLine: rt, labelPos: {
375
+ x: 0 - T,
374
376
  dx: 0,
375
- dy: Xt < 0 ? "1em" : -5,
376
- y: n(k < 0 ? 0 : k)
377
- }, classNames: Et, styles: Zt }), Ct = $t ? /* @__PURE__ */ i.jsx(Qe, { values: wt.filter(Oi), y: wt.filter($i).map((L) => n(L)), x1: 0 - C, x2: et + p.right, styles: {
377
+ dy: Yt < 0 ? "1em" : -5,
378
+ y: r(M < 0 ? 0 : M)
379
+ }, classNames: Zt, styles: Jt }), Vt = kt ? /* @__PURE__ */ i.jsx(_e, { values: Ot.filter(ki), y: Ot.filter(Mi).map((A) => r(A)), x1: 0 - T, x2: ct + p.right, styles: {
378
380
  gridLines: u?.yAxis?.gridLines,
379
381
  labels: u?.yAxis?.labels
380
382
  }, classNames: {
381
- gridLines: l?.yAxis?.gridLines,
382
- labels: l?.yAxis?.labels
383
- }, suffix: R, prefix: O, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: x, locale: S }) : null;
384
- const dt = 0 - C - 15, g = Pt / 2, V = u?.yAxis?.title, d = l?.yAxis?.title;
385
- t[97] !== T || t[98] !== dt || t[99] !== g || t[100] !== V || t[101] !== d ? (K = /* @__PURE__ */ i.jsx(Se, { x: dt, y: g, style: V, className: d, text: T, rotate90: !0 }), t[97] = T, t[98] = dt, t[99] = g, t[100] = V, t[101] = d, t[102] = K) : K = t[102], t[103] !== w ? (F = w.filter(Ai).map(wi), t[103] = w, t[104] = F) : F = t[104], kt = He, gt = it.map((L) => ie(v(L.id)) ? null : /* @__PURE__ */ i.jsxs(te.g, { variants: {
383
+ gridLines: s?.yAxis?.gridLines,
384
+ labels: s?.yAxis?.labels
385
+ }, suffix: U, prefix: O, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: x, locale: F, padZeros: L }) : null;
386
+ const te = 0 - T - 15, w = Xt / 2, h = u?.yAxis?.title, d = s?.yAxis?.title;
387
+ t[99] !== B || t[100] !== te || t[101] !== w || t[102] !== h || t[103] !== d ? (et = /* @__PURE__ */ i.jsx(Fe, { x: te, y: w, style: h, className: d, text: B, rotate90: !0 }), t[99] = B, t[100] = te, t[101] = w, t[102] = h, t[103] = d, t[104] = et) : et = t[104], t[105] !== y ? (P = y.filter(Oi).map($i), t[105] = y, t[106] = P) : P = t[106], at = Xe, wt = _.map((A) => se(v(A.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { variants: {
386
388
  initial: {
387
- x: v(`${L.id}`),
389
+ x: v(`${A.id}`),
388
390
  y: 0
389
391
  },
390
392
  whileInView: {
391
- x: v(`${L.id}`),
393
+ x: v(`${A.id}`),
392
394
  y: 0,
393
395
  transition: {
394
396
  duration: a.duration
395
397
  }
396
398
  }
397
- }, initial: "initial", animate: tt ? "whileInView" : "initial", exit: {
399
+ }, initial: "initial", animate: D ? "whileInView" : "initial", exit: {
398
400
  opacity: 0,
399
401
  transition: {
400
402
  duration: a.duration
401
403
  }
402
404
  }, children: [
403
- L.size.map((o, $) => /* @__PURE__ */ i.jsxs(te.g, { className: "undp-viz-g-with-hover", opacity: j ? P[$] === j ? 1 : 0.3 : 0.85, onMouseEnter: (m) => {
404
- jt({
405
- ...L,
406
- sizeIndex: $
407
- }), qt(m.clientY), Tt(m.clientX), Nt?.({
408
- ...L,
409
- sizeIndex: $
405
+ A.size.map((o, E) => /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-g-with-hover", opacity: S ? H[E] === S ? 1 : 0.3 : 0.85, onMouseEnter: (n) => {
406
+ I({
407
+ ...A,
408
+ sizeIndex: E
409
+ }), Ht(n.clientY), Pt(n.clientX), Tt?.({
410
+ ...A,
411
+ sizeIndex: E
410
412
  });
411
- }, onMouseMove: (m) => {
412
- jt({
413
- ...L,
414
- sizeIndex: $
415
- }), qt(m.clientY), Tt(m.clientX);
413
+ }, onMouseMove: (n) => {
414
+ I({
415
+ ...A,
416
+ sizeIndex: E
417
+ }), Ht(n.clientY), Pt(n.clientX);
416
418
  }, onMouseLeave: () => {
417
- jt(void 0), Tt(void 0), qt(void 0), Nt?.(void 0);
419
+ I(void 0), Pt(void 0), Ht(void 0), Tt?.(void 0);
418
420
  }, onClick: () => {
419
- (q || xt) && (Ne(z, {
420
- ...L,
421
- sizeIndex: $
422
- }) && U ? (y(void 0), q?.(void 0)) : (y({
423
- ...L,
424
- sizeIndex: $
425
- }), q && q({
426
- ...L,
427
- sizeIndex: $
421
+ (J || yt) && (Te(C, {
422
+ ...A,
423
+ sizeIndex: E
424
+ }) && K ? (N(void 0), J?.(void 0)) : (N({
425
+ ...A,
426
+ sizeIndex: E
427
+ }), J && J({
428
+ ...A,
429
+ sizeIndex: E
428
430
  })));
429
431
  }, children: [
430
- /* @__PURE__ */ i.jsx(te.rect, { x: zt(`${$}`), width: zt.bandwidth(), variants: {
432
+ /* @__PURE__ */ i.jsx(ee.rect, { x: It(`${E}`), width: It.bandwidth(), variants: {
431
433
  initial: {
432
434
  height: 0,
433
- y: n(0),
434
- fill: P[$]
435
+ y: r(0),
436
+ fill: H[E]
435
437
  },
436
438
  whileInView: {
437
- height: ie(o) ? 0 : Math.abs(n(o) - n(0)),
438
- y: ie(o) ? n(0) : o > 0 ? n(o) : n(0),
439
- fill: P[$],
439
+ height: se(o) ? 0 : Math.abs(r(o) - r(0)),
440
+ y: se(o) ? r(0) : o > 0 ? r(o) : r(0),
441
+ fill: H[E],
440
442
  transition: {
441
443
  duration: a.duration
442
444
  }
443
445
  }
444
446
  }, exit: {
445
447
  height: 0,
446
- y: n(0),
448
+ y: r(0),
447
449
  transition: {
448
450
  duration: a.duration
449
451
  }
450
- }, initial: "initial", animate: tt ? "whileInView" : "initial" }),
451
- Z ? /* @__PURE__ */ i.jsx(te.text, { x: zt(`${$}`) + zt.bandwidth() / 2, style: {
452
+ }, initial: "initial", animate: D ? "whileInView" : "initial" }),
453
+ st ? /* @__PURE__ */ i.jsx(ee.text, { x: It(`${E}`) + It.bandwidth() / 2, style: {
452
454
  textAnchor: "middle",
453
455
  ...u?.graphObjectValues || {}
454
- }, className: Ce("graph-value text-sm", l?.graphObjectValues), dy: o ? o >= 0 ? "-5px" : "1em" : "-5px", variants: {
456
+ }, className: Ve("graph-value text-sm", s?.graphObjectValues), dy: o ? o >= 0 ? "-5px" : "1em" : "-5px", variants: {
455
457
  initial: {
456
- y: n(0),
458
+ y: r(0),
457
459
  opacity: 0,
458
- fill: J || P[$]
460
+ fill: Q || H[E]
459
461
  },
460
462
  whileInView: {
461
- y: n(o || 0),
463
+ y: r(o || 0),
462
464
  opacity: 1,
463
- fill: J || P[$],
465
+ fill: Q || H[E],
464
466
  transition: {
465
467
  duration: a.duration
466
468
  }
467
469
  }
468
- }, initial: "initial", animate: tt ? "whileInView" : "initial", exit: {
470
+ }, initial: "initial", animate: D ? "whileInView" : "initial", exit: {
469
471
  opacity: 0,
470
472
  transition: {
471
473
  duration: a.duration
472
474
  }
473
- }, children: we(o, h, x, O, R, S) }) : null
474
- ] }, `${L.label}-${f[$] || $}`)),
475
- ut ? /* @__PURE__ */ i.jsx(Ze, { value: `${L.label}`.length < W ? `${L.label}` : `${`${L.label}`.substring(0, W)}...`, y: n(0) + 5, x: 0, width: v.bandwidth(), height: p.bottom, style: u?.xAxis?.labels, className: l?.xAxis?.labels, alignment: "top", animate: a, isInView: tt }) : null
476
- ] }, L.label)), ft = Ot ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Ot.map((L, o) => /* @__PURE__ */ i.jsx(Ke, { text: L.text, color: L.color, y: n(L.value), x1: 0 - C, x2: et + p.right, classNames: L.classNames, styles: L.styles, animate: a, isInView: tt }, o)) }) : null, t[16] = a, t[17] = T, t[18] = P, t[19] = bt, t[20] = X, t[21] = l?.graphObjectValues, t[22] = l?.xAxis?.axis, t[23] = l?.xAxis?.labels, t[24] = l?.yAxis?.gridLines, t[25] = l?.yAxis?.labels, t[26] = l?.yAxis?.title, t[27] = f, t[28] = w, t[29] = s[0].size, t[30] = it, t[31] = xt, t[32] = Pt, t[33] = et, t[34] = Bt, t[35] = at, t[36] = tt, t[37] = C, t[38] = S, t[39] = p.bottom, t[40] = p.left, t[41] = p.right, t[42] = p.top, t[43] = ot, t[44] = Xt, t[45] = k, t[46] = z, t[47] = h, t[48] = _, t[49] = q, t[50] = Nt, t[51] = x, t[52] = O, t[53] = Ot, t[54] = U, t[55] = j, t[56] = ut, t[57] = $t, t[58] = Z, t[59] = u?.graphObjectValues, t[60] = u?.xAxis?.axis, t[61] = u?.xAxis?.labels, t[62] = u?.yAxis?.gridLines, t[63] = u?.yAxis?.labels, t[64] = u?.yAxis?.title, t[65] = R, t[66] = W, t[67] = J, t[68] = At, t[69] = kt, t[70] = ht, t[71] = ft, t[72] = pt, t[73] = St, t[74] = Ct, t[75] = K, t[76] = F, t[77] = I, t[78] = Lt, t[79] = nt, t[80] = lt, t[81] = Q, t[82] = gt;
475
+ }, children: $e(o, m, x, O, U, F, L) }) : null
476
+ ] }, `${A.label}-${f[E] || E}`)),
477
+ gt ? /* @__PURE__ */ i.jsx(ti, { value: `${A.label}`.length < Y ? `${A.label}` : `${`${A.label}`.substring(0, Y)}...`, y: r(0) + 5, x: 0, width: v.bandwidth(), height: p.bottom, style: u?.xAxis?.labels, className: s?.xAxis?.labels, alignment: "top", animate: a, isInView: D }) : null
478
+ ] }, A.label)), vt = Ct ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Ct.map((A, o) => /* @__PURE__ */ i.jsx(Qe, { text: A.text, color: A.color, y: r(A.value), x1: 0 - T, x2: ct + p.right, classNames: A.classNames, styles: A.styles, animate: a, isInView: D }, o)) }) : null, t[16] = a, t[17] = B, t[18] = H, t[19] = tt, t[20] = G, t[21] = s?.graphObjectValues, t[22] = s?.xAxis?.axis, t[23] = s?.xAxis?.labels, t[24] = s?.yAxis?.gridLines, t[25] = s?.yAxis?.labels, t[26] = s?.yAxis?.title, t[27] = f, t[28] = y, t[29] = l[0].size, t[30] = _, t[31] = yt, t[32] = Xt, t[33] = ct, t[34] = St, t[35] = rt, t[36] = D, t[37] = T, t[38] = F, t[39] = p.bottom, t[40] = p.left, t[41] = p.right, t[42] = p.top, t[43] = ut, t[44] = Yt, t[45] = M, t[46] = C, t[47] = m, t[48] = lt, t[49] = J, t[50] = Tt, t[51] = L, t[52] = x, t[53] = O, t[54] = Ct, t[55] = K, t[56] = S, t[57] = gt, t[58] = kt, t[59] = st, t[60] = u?.graphObjectValues, t[61] = u?.xAxis?.axis, t[62] = u?.xAxis?.labels, t[63] = u?.yAxis?.gridLines, t[64] = u?.yAxis?.labels, t[65] = u?.yAxis?.title, t[66] = U, t[67] = Y, t[68] = Q, t[69] = Mt, t[70] = at, t[71] = bt, t[72] = vt, t[73] = At, t[74] = dt, t[75] = Vt, t[76] = et, t[77] = P, t[78] = j, t[79] = zt, t[80] = ht, t[81] = ot, t[82] = it, t[83] = wt;
477
479
  } else
478
- kt = t[69], ht = t[70], ft = t[71], pt = t[72], St = t[73], Ct = t[74], K = t[75], F = t[76], I = t[77], Lt = t[78], nt = t[79], lt = t[80], Q = t[81], gt = t[82];
479
- let rt;
480
- t[105] !== kt || t[106] !== ft || t[107] !== gt ? (rt = /* @__PURE__ */ i.jsxs(kt, { children: [
481
- gt,
482
- ft
483
- ] }), t[105] = kt, t[106] = ft, t[107] = gt, t[108] = rt) : rt = t[108];
484
- let E;
485
- t[109] !== w ? (E = w.filter(vi).map(bi), t[109] = w, t[110] = E) : E = t[110];
486
- let vt;
487
- t[111] !== pt || t[112] !== St || t[113] !== Ct || t[114] !== K || t[115] !== F || t[116] !== rt || t[117] !== E ? (vt = /* @__PURE__ */ i.jsxs("g", { transform: pt, children: [
488
- St,
489
- Ct,
490
- K,
491
- F,
492
- rt,
493
- E
494
- ] }), t[111] = pt, t[112] = St, t[113] = Ct, t[114] = K, t[115] = F, t[116] = rt, t[117] = E, t[118] = vt) : vt = t[118];
495
- let Vt;
496
- t[119] !== ht || t[120] !== I || t[121] !== Lt || t[122] !== nt || t[123] !== lt || t[124] !== Q || t[125] !== vt ? (Vt = /* @__PURE__ */ i.jsx(ht, { width: I, height: Lt, viewBox: nt, direction: lt, ref: Q, children: vt }), t[119] = ht, t[120] = I, t[121] = Lt, t[122] = nt, t[123] = lt, t[124] = Q, t[125] = vt, t[126] = Vt) : Vt = t[126];
497
- let ct;
498
- t[127] !== l?.tooltip || t[128] !== Ft || t[129] !== mt || t[130] !== c || t[131] !== u?.tooltip || t[132] !== st ? (ct = c && st && Ft && mt ? /* @__PURE__ */ i.jsx(je, { data: c, body: st, xPos: Ft, yPos: mt, backgroundStyle: u?.tooltip, className: l?.tooltip }) : null, t[127] = l?.tooltip, t[128] = Ft, t[129] = mt, t[130] = c, t[131] = u?.tooltip, t[132] = st, t[133] = ct) : ct = t[133];
499
- let A;
500
- t[134] !== l?.modal || t[135] !== xt || t[136] !== z ? (A = xt && z !== void 0 ? /* @__PURE__ */ i.jsx(Be, { body: xt, data: z, setData: y, className: l?.modal }) : null, t[134] = l?.modal, t[135] = xt, t[136] = z, t[137] = A) : A = t[137];
501
- let Wt;
502
- return t[138] !== Vt || t[139] !== ct || t[140] !== A ? (Wt = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
480
+ at = t[70], bt = t[71], vt = t[72], At = t[73], dt = t[74], Vt = t[75], et = t[76], P = t[77], j = t[78], zt = t[79], ht = t[80], ot = t[81], it = t[82], wt = t[83];
481
+ let ft;
482
+ t[107] !== at || t[108] !== vt || t[109] !== wt ? (ft = /* @__PURE__ */ i.jsxs(at, { children: [
483
+ wt,
484
+ vt
485
+ ] }), t[107] = at, t[108] = vt, t[109] = wt, t[110] = ft) : ft = t[110];
486
+ let R;
487
+ t[111] !== y ? (R = y.filter(Ai).map(wi), t[111] = y, t[112] = R) : R = t[112];
488
+ let $t;
489
+ t[113] !== At || t[114] !== dt || t[115] !== Vt || t[116] !== et || t[117] !== P || t[118] !== ft || t[119] !== R ? ($t = /* @__PURE__ */ i.jsxs("g", { transform: At, children: [
490
+ dt,
503
491
  Vt,
504
- ct,
505
- A
506
- ] }), t[138] = Vt, t[139] = ct, t[140] = A, t[141] = Wt) : Wt = t[141], Wt;
492
+ et,
493
+ P,
494
+ ft,
495
+ R
496
+ ] }), t[113] = At, t[114] = dt, t[115] = Vt, t[116] = et, t[117] = P, t[118] = ft, t[119] = R, t[120] = $t) : $t = t[120];
497
+ let Dt;
498
+ t[121] !== bt || t[122] !== j || t[123] !== zt || t[124] !== ht || t[125] !== ot || t[126] !== it || t[127] !== $t ? (Dt = /* @__PURE__ */ i.jsx(bt, { width: j, height: zt, viewBox: ht, direction: ot, ref: it, children: $t }), t[121] = bt, t[122] = j, t[123] = zt, t[124] = ht, t[125] = ot, t[126] = it, t[127] = $t, t[128] = Dt) : Dt = t[128];
499
+ let pt;
500
+ t[129] !== s?.tooltip || t[130] !== mt || t[131] !== Lt || t[132] !== b || t[133] !== u?.tooltip || t[134] !== nt ? (pt = b && nt && mt && Lt ? /* @__PURE__ */ i.jsx(Se, { data: b, body: nt, xPos: mt, yPos: Lt, backgroundStyle: u?.tooltip, className: s?.tooltip }) : null, t[129] = s?.tooltip, t[130] = mt, t[131] = Lt, t[132] = b, t[133] = u?.tooltip, t[134] = nt, t[135] = pt) : pt = t[135];
501
+ let $;
502
+ t[136] !== s?.modal || t[137] !== yt || t[138] !== C ? ($ = yt && C !== void 0 ? /* @__PURE__ */ i.jsx(Pe, { body: yt, data: C, setData: N, className: s?.modal }) : null, t[136] = s?.modal, t[137] = yt, t[138] = C, t[139] = $) : $ = t[139];
503
+ let Wt;
504
+ return t[140] !== Dt || t[141] !== pt || t[142] !== $ ? (Wt = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
505
+ Dt,
506
+ pt,
507
+ $
508
+ ] }), t[140] = Dt, t[141] = pt, t[142] = $, t[143] = Wt) : Wt = t[143], Wt;
507
509
  }
508
- function bi(e) {
510
+ function wi(e) {
509
511
  return e.layer;
510
512
  }
511
- function vi(e) {
513
+ function Ai(e) {
512
514
  return e.position === "after";
513
515
  }
514
- function wi(e) {
516
+ function $i(e) {
515
517
  return e.layer;
516
518
  }
517
- function Ai(e) {
519
+ function Oi(e) {
518
520
  return e.position === "before";
519
521
  }
520
- function $i(e) {
522
+ function Mi(e) {
521
523
  return e !== 0;
522
524
  }
523
- function Oi(e) {
525
+ function ki(e) {
524
526
  return e !== 0;
525
527
  }
526
- function Mi(e, t) {
528
+ function Ci(e, t) {
527
529
  return `${t}`;
528
530
  }
529
- function ki(e) {
531
+ function Li(e) {
530
532
  return `${e.id}`;
531
533
  }
532
- function Ci(e) {
533
- const t = $e.c(127), {
534
- data: s,
535
- graphTitle: H,
536
- colors: Gt,
537
- sources: Kt,
538
- graphDescription: It,
539
- barPadding: At,
540
- showTicks: Bt,
541
- truncateBy: P,
542
- height: R,
534
+ function Vi(e) {
535
+ const t = Me.c(128), {
536
+ data: l,
537
+ graphTitle: X,
538
+ colors: Rt,
539
+ sources: Ut,
540
+ graphDescription: jt,
541
+ barPadding: Mt,
542
+ showTicks: St,
543
+ truncateBy: H,
544
+ height: U,
543
545
  width: O,
544
- footNote: X,
545
- colorDomain: ut,
546
- colorLegendTitle: Z,
547
- suffix: $t,
548
- prefix: W,
549
- showValues: st,
550
- showColorScale: Nt,
551
- padding: Ot,
552
- backgroundColor: Xt,
553
- leftMargin: k,
554
- rightMargin: q,
555
- topMargin: j,
556
- bottomMargin: N,
557
- showLabels: ot,
558
- relativeHeight: U,
559
- tooltip: xt,
560
- onSeriesMouseOver: T,
561
- refValues: J,
562
- graphID: _,
546
+ footNote: G,
547
+ colorDomain: gt,
548
+ colorLegendTitle: st,
549
+ suffix: kt,
550
+ prefix: Y,
551
+ showValues: nt,
552
+ showColorScale: Tt,
553
+ padding: Ct,
554
+ backgroundColor: Yt,
555
+ leftMargin: M,
556
+ rightMargin: J,
557
+ topMargin: S,
558
+ bottomMargin: z,
559
+ showLabels: ut,
560
+ relativeHeight: K,
561
+ tooltip: yt,
562
+ onSeriesMouseOver: B,
563
+ refValues: Q,
564
+ graphID: lt,
563
565
  maxValue: u,
564
- minValue: l,
566
+ minValue: s,
565
567
  onSeriesMouseClick: a,
566
568
  graphDownload: f,
567
569
  dataDownload: x,
568
- language: w,
569
- labelOrder: h,
570
- minHeight: at,
571
- theme: S,
572
- maxBarThickness: C,
573
- ariaLabel: Ht,
574
- resetSelectionOnDoubleClick: Rt,
575
- detailsOnClick: Mt,
576
- barAxisTitle: yt,
577
- noOfTicks: Yt,
578
- valueColor: tt,
570
+ language: y,
571
+ labelOrder: m,
572
+ minHeight: rt,
573
+ theme: F,
574
+ maxBarThickness: L,
575
+ ariaLabel: T,
576
+ resetSelectionOnDoubleClick: Et,
577
+ detailsOnClick: Bt,
578
+ barAxisTitle: xt,
579
+ noOfTicks: Ft,
580
+ valueColor: Gt,
579
581
  styles: D,
580
- classNames: B,
581
- filterNA: p,
582
- animate: c,
583
- precision: jt,
584
- customLayers: z,
585
- timeline: y,
586
- naLabel: Ft,
587
- sortParameter: Tt,
588
- sortData: mt,
589
- orientation: qt,
590
- hideAxisLine: et,
591
- locale: Pt
592
- } = e, Y = Gt === void 0 ? ye.light.categoricalColors.colors : Gt, it = At === void 0 ? 0.25 : At, M = Bt === void 0 ? !0 : Bt, bt = P === void 0 ? 999 : P, kt = $t === void 0 ? "" : $t, ht = W === void 0 ? "" : W, ft = st === void 0 ? !0 : st, pt = Nt === void 0 ? !0 : Nt, St = Xt === void 0 ? !1 : Xt, Ct = ot === void 0 ? !0 : ot, K = f === void 0 ? !1 : f, F = x === void 0 ? !1 : x, I = w === void 0 ? "en" : w, Lt = at === void 0 ? 0 : at, nt = S === void 0 ? "light" : S, lt = Rt === void 0 ? !0 : Rt, Q = Yt === void 0 ? 5 : Yt, gt = p === void 0 ? !0 : p, rt = c === void 0 ? !1 : c, E = jt === void 0 ? 2 : jt;
593
- let vt;
594
- t[0] !== z ? (vt = z === void 0 ? [] : z, t[0] = z, t[1] = vt) : vt = t[1];
595
- const Vt = vt;
596
- let ct;
597
- t[2] !== y ? (ct = y === void 0 ? {
582
+ classNames: V,
583
+ filterNA: Z,
584
+ animate: p,
585
+ precision: b,
586
+ customLayers: I,
587
+ timeline: C,
588
+ naLabel: N,
589
+ sortParameter: mt,
590
+ sortData: Pt,
591
+ orientation: Lt,
592
+ hideAxisLine: Ht,
593
+ locale: ct,
594
+ padZeros: Xt
595
+ } = e, W = Rt === void 0 ? ve.light.categoricalColors.colors : Rt, _ = Mt === void 0 ? 0.25 : Mt, k = St === void 0 ? !0 : St, tt = H === void 0 ? 999 : H, at = kt === void 0 ? "" : kt, bt = Y === void 0 ? "" : Y, vt = nt === void 0 ? !0 : nt, At = Tt === void 0 ? !0 : Tt, dt = Yt === void 0 ? !1 : Yt, Vt = ut === void 0 ? !0 : ut, et = f === void 0 ? !1 : f, P = x === void 0 ? !1 : x, j = y === void 0 ? "en" : y, zt = rt === void 0 ? 0 : rt, ht = F === void 0 ? "light" : F, ot = Et === void 0 ? !0 : Et, it = Ft === void 0 ? 5 : Ft, wt = Z === void 0 ? !0 : Z, ft = p === void 0 ? !1 : p, R = b === void 0 ? 2 : b;
596
+ let $t;
597
+ t[0] !== I ? ($t = I === void 0 ? [] : I, t[0] = I, t[1] = $t) : $t = t[1];
598
+ const Dt = $t;
599
+ let pt;
600
+ t[2] !== C ? (pt = C === void 0 ? {
598
601
  enabled: !1,
599
602
  autoplay: !1,
600
603
  showOnlyActiveDate: !0
601
- } : y, t[2] = y, t[3] = ct) : ct = t[3];
602
- const A = ct, Wt = Ft === void 0 ? "NA" : Ft, n = qt === void 0 ? "vertical" : qt, v = et === void 0 ? !1 : et, zt = Pt === void 0 ? "en" : Pt, wt = n === "horizontal" ? ci : yi, [r, b] = _t(0), [G, Et] = _t(0), [Ut, Jt] = _t(A.autoplay);
603
- let Zt;
604
- if (t[4] !== s || t[5] !== A.dateFormat) {
605
- let Qt;
606
- t[7] !== A.dateFormat ? (Qt = (Dt) => Re(`${Dt.date}`, A.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = A.dateFormat, t[8] = Qt) : Qt = t[8], Zt = [...new Set(s.filter(qi).map(Qt))], Zt.sort(Ri), t[4] = s, t[5] = A.dateFormat, t[6] = Zt;
604
+ } : C, t[2] = C, t[3] = pt) : pt = t[3];
605
+ const $ = pt, Wt = N === void 0 ? "NA" : N, r = Lt === void 0 ? "vertical" : Lt, v = Ht === void 0 ? !1 : Ht, It = ct === void 0 ? "en" : ct, Ot = Xt === void 0 ? !1 : Xt, c = r === "horizontal" ? ui : vi, [g, q] = _t(0), [Zt, Qt] = _t(0), [qt, Jt] = _t($.autoplay);
606
+ let te;
607
+ if (t[4] !== l || t[5] !== $.dateFormat) {
608
+ let Kt;
609
+ t[7] !== $.dateFormat ? (Kt = (Nt) => qe(`${Nt.date}`, $.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = $.dateFormat, t[8] = Kt) : Kt = t[8], te = [...new Set(l.filter(Ui).map(Kt))], te.sort(qi), t[4] = l, t[5] = $.dateFormat, t[6] = te;
607
610
  } else
608
- Zt = t[6];
609
- const dt = Zt, [g, V] = _t(A.autoplay ? 0 : dt.length - 1), [d, L] = _t(void 0), o = Ae(null), $ = Ae(null);
610
- let m, he;
611
- t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = () => {
612
- const Qt = new ResizeObserver((Dt) => {
613
- b(Dt[0].target.clientWidth || 620), Et(Dt[0].target.clientHeight || 480);
611
+ te = t[6];
612
+ const w = te, [h, d] = _t($.autoplay ? 0 : w.length - 1), [A, o] = _t(void 0), E = Oe(null), n = Oe(null);
613
+ let le, re;
614
+ t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (le = () => {
615
+ const Kt = new ResizeObserver((Nt) => {
616
+ q(Nt[0].target.clientWidth || 620), Qt(Nt[0].target.clientHeight || 480);
614
617
  });
615
- return o.current && Qt.observe(o.current), () => Qt.disconnect();
616
- }, he = [], t[9] = m, t[10] = he) : (m = t[9], he = t[10]), Ie(m, he);
617
- let oe, Oe;
618
- t[11] !== Ut || t[12] !== A.speed || t[13] !== dt ? (oe = () => {
619
- const Qt = setInterval(() => {
620
- V((Dt) => Dt < dt.length - 1 ? Dt + 1 : 0);
621
- }, (A.speed || 2) * 1e3);
622
- return Ut || clearInterval(Qt), () => clearInterval(Qt);
623
- }, Oe = [dt, Ut, A.speed], t[11] = Ut, t[12] = A.speed, t[13] = dt, t[14] = oe, t[15] = Oe) : (oe = t[14], Oe = t[15]), Ie(oe, Oe);
624
- const be = A.dateFormat || "yyyy";
625
- let Me;
626
- t[16] !== g || t[17] !== be || t[18] !== A.showOnlyActiveDate || t[19] !== dt ? (Me = Ee(dt, g, A.showOnlyActiveDate, be), t[16] = g, t[17] = be, t[18] = A.showOnlyActiveDate, t[19] = dt, t[20] = Me) : Me = t[20];
627
- const pe = Me, ge = B?.graphContainer, ve = D?.graphContainer;
628
- let fe;
629
- t[21] !== B?.description || t[22] !== B?.title || t[23] !== s || t[24] !== F || t[25] !== It || t[26] !== K || t[27] !== H || t[28] !== D?.description || t[29] !== D?.title || t[30] !== O ? (fe = H || It || K || F ? /* @__PURE__ */ i.jsx(_e, { styles: {
618
+ return E.current && Kt.observe(E.current), () => Kt.disconnect();
619
+ }, re = [], t[9] = le, t[10] = re) : (le = t[9], re = t[10]), je(le, re);
620
+ let ye, ke;
621
+ t[11] !== qt || t[12] !== $.speed || t[13] !== w ? (ye = () => {
622
+ const Kt = setInterval(() => {
623
+ d((Nt) => Nt < w.length - 1 ? Nt + 1 : 0);
624
+ }, ($.speed || 2) * 1e3);
625
+ return qt || clearInterval(Kt), () => clearInterval(Kt);
626
+ }, ke = [w, qt, $.speed], t[11] = qt, t[12] = $.speed, t[13] = w, t[14] = ye, t[15] = ke) : (ye = t[14], ke = t[15]), je(ye, ke);
627
+ const we = $.dateFormat || "yyyy";
628
+ let Ce;
629
+ t[16] !== h || t[17] !== we || t[18] !== $.showOnlyActiveDate || t[19] !== w ? (Ce = Ze(w, h, $.showOnlyActiveDate, we), t[16] = h, t[17] = we, t[18] = $.showOnlyActiveDate, t[19] = w, t[20] = Ce) : Ce = t[20];
630
+ const ge = Ce, be = V?.graphContainer, Ae = D?.graphContainer;
631
+ let pe;
632
+ t[21] !== V?.description || t[22] !== V?.title || t[23] !== l || t[24] !== P || t[25] !== jt || t[26] !== et || t[27] !== X || t[28] !== D?.description || t[29] !== D?.title || t[30] !== O ? (pe = X || jt || et || P ? /* @__PURE__ */ i.jsx(ei, { styles: {
630
633
  title: D?.title,
631
634
  description: D?.description
632
635
  }, classNames: {
633
- title: B?.title,
634
- description: B?.description
635
- }, graphTitle: H, graphDescription: It, width: O, graphDownload: K ? $ : void 0, dataDownload: F ? s.map(Gi).filter(Ei).length > 0 ? s.map(Yi).filter(Xi) : s.filter(Wi) : null }) : null, t[21] = B?.description, t[22] = B?.title, t[23] = s, t[24] = F, t[25] = It, t[26] = K, t[27] = H, t[28] = D?.description, t[29] = D?.title, t[30] = O, t[31] = fe) : fe = t[31];
636
- let de;
637
- t[32] !== g || t[33] !== pe || t[34] !== Ut || t[35] !== A.enabled || t[36] !== dt ? (de = A.enabled && dt.length > 0 && pe ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
636
+ title: V?.title,
637
+ description: V?.description
638
+ }, graphTitle: X, graphDescription: jt, width: O, graphDownload: et ? n : void 0, dataDownload: P ? l.map(Ri).filter(Zi).length > 0 ? l.map(Gi).filter(Ei) : l.filter(Yi) : null }) : null, t[21] = V?.description, t[22] = V?.title, t[23] = l, t[24] = P, t[25] = jt, t[26] = et, t[27] = X, t[28] = D?.description, t[29] = D?.title, t[30] = O, t[31] = pe) : pe = t[31];
639
+ let xe;
640
+ t[32] !== h || t[33] !== ge || t[34] !== qt || t[35] !== $.enabled || t[36] !== w ? (xe = $.enabled && w.length > 0 && ge ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
638
641
  /* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
639
- Jt(!Ut);
640
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Ut ? "Click to pause animation" : "Click to play animation", children: Ut ? /* @__PURE__ */ i.jsx(li, {}) : /* @__PURE__ */ i.jsx(si, {}) }),
641
- /* @__PURE__ */ i.jsx(Ge, { min: dt[0], max: dt[dt.length - 1], marks: pe, step: null, defaultValue: dt[dt.length - 1], value: dt[g], onChangeComplete: (Qt) => {
642
- V(dt.indexOf(Qt));
643
- }, onChange: (Qt) => {
644
- V(dt.indexOf(Qt));
642
+ Jt(!qt);
643
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": qt ? "Click to pause animation" : "Click to play animation", children: qt ? /* @__PURE__ */ i.jsx(ai, {}) : /* @__PURE__ */ i.jsx(oi, {}) }),
644
+ /* @__PURE__ */ i.jsx(Re, { min: w[0], max: w[w.length - 1], marks: ge, step: null, defaultValue: w[w.length - 1], value: w[h], onChangeComplete: (Kt) => {
645
+ d(w.indexOf(Kt));
646
+ }, onChange: (Kt) => {
647
+ d(w.indexOf(Kt));
645
648
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
646
- ] }) : null, t[32] = g, t[33] = pe, t[34] = Ut, t[35] = A.enabled, t[36] = dt, t[37] = de) : de = t[37];
647
- let ne;
648
- t[38] !== B?.colorLegend || t[39] !== ut || t[40] !== Z || t[41] !== Y || t[42] !== s.length || t[43] !== pt || t[44] !== O ? (ne = pt && s.length > 0 ? /* @__PURE__ */ i.jsx(ei, { width: O, colorDomain: ut, colors: Y, colorLegendTitle: Z, setSelectedColor: L, showNAColor: !1, className: B?.colorLegend }) : null, t[38] = B?.colorLegend, t[39] = ut, t[40] = Z, t[41] = Y, t[42] = s.length, t[43] = pt, t[44] = O, t[45] = ne) : ne = t[45];
649
- let re;
650
- t[46] !== s.length ? (re = s.length === 0 && /* @__PURE__ */ i.jsx(ii, {}), t[46] = s.length, t[47] = re) : re = t[47];
651
- let ue;
652
- t[48] !== wt || t[49] !== rt || t[50] !== yt || t[51] !== it || t[52] !== N || t[53] !== B || t[54] !== ut || t[55] !== Y || t[56] !== Vt || t[57] !== s || t[58] !== Mt || t[59] !== gt || t[60] !== v || t[61] !== g || t[62] !== h || t[63] !== I || t[64] !== k || t[65] !== zt || t[66] !== C || t[67] !== u || t[68] !== l || t[69] !== Wt || t[70] !== Q || t[71] !== a || t[72] !== T || t[73] !== E || t[74] !== ht || t[75] !== J || t[76] !== lt || t[77] !== q || t[78] !== d || t[79] !== Ct || t[80] !== M || t[81] !== ft || t[82] !== mt || t[83] !== Tt || t[84] !== D || t[85] !== kt || t[86] !== G || t[87] !== r || t[88] !== A.dateFormat || t[89] !== A.enabled || t[90] !== xt || t[91] !== j || t[92] !== bt || t[93] !== dt || t[94] !== tt ? (ue = r && G && s.length > 0 ? /* @__PURE__ */ i.jsx(wt, { hideAxisLine: v, data: Tt !== void 0 ? Tt === "total" ? We(De(s, A.dateFormat || "yyyy").filter((Qt) => A.enabled ? `${Qt.date}` === Ve(new Date(dt[g]), A.dateFormat || "yyyy") : Qt).filter((Qt) => gt ? !Qt.size.every(Hi) : Qt), Fi, [mt || "asc"]) : We(De(s, A.dateFormat || "yyyy").filter((Qt) => A.enabled ? `${Qt.date}` === Ve(new Date(dt[g]), A.dateFormat || "yyyy") : Qt).filter((Qt) => gt ? !Qt.size.every(Bi) : Qt), (Qt) => ie(Qt.size[Tt]) ? -1 / 0 : Qt.size[Tt], [mt || "asc"]) : De(s, A.dateFormat || "yyyy").filter((Qt) => gt ? !Qt.size.every(Si) : Qt), barColors: Y, width: r, height: G, suffix: kt, prefix: ht, showValues: ft, barPadding: it, showTicks: M, leftMargin: k, rightMargin: q, topMargin: j, bottomMargin: N, truncateBy: bt, showLabels: Ct, tooltip: xt, onSeriesMouseOver: T, refValues: J, maxValue: ie(u) ? Math.max(...s.map(ji)) < 0 ? 0 : Math.max(...s.map(Ii)) : u, minValue: ie(l) ? Math.min(...s.map(zi)) >= 0 ? 0 : Math.min(...s.map(Li)) : l, onSeriesMouseClick: a, selectedColor: d, labelOrder: h, rtl: I === "he" || I === "ar", maxBarThickness: C, resetSelectionOnDoubleClick: lt, detailsOnClick: Mt, barAxisTitle: yt, noOfTicks: Q, valueColor: tt, styles: D, classNames: B, colorDomain: ut, animate: rt === !0 ? {
649
+ ] }) : null, t[32] = h, t[33] = ge, t[34] = qt, t[35] = $.enabled, t[36] = w, t[37] = xe) : xe = t[37];
650
+ let ce;
651
+ t[38] !== V?.colorLegend || t[39] !== gt || t[40] !== st || t[41] !== W || t[42] !== l.length || t[43] !== At || t[44] !== O ? (ce = At && l.length > 0 ? /* @__PURE__ */ i.jsx(si, { width: O, colorDomain: gt, colors: W, colorLegendTitle: st, setSelectedColor: o, showNAColor: !1, className: V?.colorLegend }) : null, t[38] = V?.colorLegend, t[39] = gt, t[40] = st, t[41] = W, t[42] = l.length, t[43] = At, t[44] = O, t[45] = ce) : ce = t[45];
652
+ let de;
653
+ t[46] !== l.length ? (de = l.length === 0 && /* @__PURE__ */ i.jsx(li, {}), t[46] = l.length, t[47] = de) : de = t[47];
654
+ let me;
655
+ t[48] !== c || t[49] !== ft || t[50] !== xt || t[51] !== _ || t[52] !== z || t[53] !== V || t[54] !== gt || t[55] !== W || t[56] !== Dt || t[57] !== l || t[58] !== Bt || t[59] !== wt || t[60] !== v || t[61] !== h || t[62] !== m || t[63] !== j || t[64] !== M || t[65] !== It || t[66] !== L || t[67] !== u || t[68] !== s || t[69] !== Wt || t[70] !== it || t[71] !== a || t[72] !== B || t[73] !== Ot || t[74] !== R || t[75] !== bt || t[76] !== Q || t[77] !== ot || t[78] !== J || t[79] !== A || t[80] !== Vt || t[81] !== k || t[82] !== vt || t[83] !== Pt || t[84] !== mt || t[85] !== D || t[86] !== at || t[87] !== Zt || t[88] !== g || t[89] !== $.dateFormat || t[90] !== $.enabled || t[91] !== yt || t[92] !== S || t[93] !== tt || t[94] !== w || t[95] !== Gt ? (me = g && Zt && l.length > 0 ? /* @__PURE__ */ i.jsx(c, { hideAxisLine: v, data: mt !== void 0 ? mt === "total" ? Ye(Ne(l, $.dateFormat || "yyyy").filter((Kt) => $.enabled ? `${Kt.date}` === De(new Date(w[h]), $.dateFormat || "yyyy") : Kt).filter((Kt) => wt ? !Kt.size.every(Xi) : Kt), Hi, [Pt || "asc"]) : Ye(Ne(l, $.dateFormat || "yyyy").filter((Kt) => $.enabled ? `${Kt.date}` === De(new Date(w[h]), $.dateFormat || "yyyy") : Kt).filter((Kt) => wt ? !Kt.size.every(Pi) : Kt), (Kt) => se(Kt.size[mt]) ? -1 / 0 : Kt.size[mt], [Pt || "asc"]) : Ne(l, $.dateFormat || "yyyy").filter((Kt) => wt ? !Kt.size.every(Fi) : Kt), barColors: W, width: g, height: Zt, suffix: at, prefix: bt, showValues: vt, barPadding: _, showTicks: k, leftMargin: M, rightMargin: J, topMargin: S, bottomMargin: z, truncateBy: tt, showLabels: Vt, tooltip: yt, onSeriesMouseOver: B, refValues: Q, maxValue: se(u) ? Math.max(...l.map(Si)) < 0 ? 0 : Math.max(...l.map(ji)) : u, minValue: se(s) ? Math.min(...l.map(Ii)) >= 0 ? 0 : Math.min(...l.map(zi)) : s, onSeriesMouseClick: a, selectedColor: A, labelOrder: m, rtl: j === "he" || j === "ar", maxBarThickness: L, resetSelectionOnDoubleClick: ot, detailsOnClick: Bt, barAxisTitle: xt, noOfTicks: it, valueColor: Gt, styles: D, classNames: V, colorDomain: gt, animate: ft === !0 ? {
653
656
  duration: 0.5,
654
657
  once: !0,
655
658
  amount: 0.5
656
- } : rt || {
659
+ } : ft || {
657
660
  duration: 0,
658
661
  once: !0,
659
662
  amount: 0
660
- }, precision: E, customLayers: Vt, naLabel: Wt, locale: zt }) : null, t[48] = wt, t[49] = rt, t[50] = yt, t[51] = it, t[52] = N, t[53] = B, t[54] = ut, t[55] = Y, t[56] = Vt, t[57] = s, t[58] = Mt, t[59] = gt, t[60] = v, t[61] = g, t[62] = h, t[63] = I, t[64] = k, t[65] = zt, t[66] = C, t[67] = u, t[68] = l, t[69] = Wt, t[70] = Q, t[71] = a, t[72] = T, t[73] = E, t[74] = ht, t[75] = J, t[76] = lt, t[77] = q, t[78] = d, t[79] = Ct, t[80] = M, t[81] = ft, t[82] = mt, t[83] = Tt, t[84] = D, t[85] = kt, t[86] = G, t[87] = r, t[88] = A.dateFormat, t[89] = A.enabled, t[90] = xt, t[91] = j, t[92] = bt, t[93] = dt, t[94] = tt, t[95] = ue) : ue = t[95];
661
- let xe;
662
- t[96] !== re || t[97] !== ue ? (xe = /* @__PURE__ */ i.jsxs(ai, { ref: o, children: [
663
- re,
664
- ue
665
- ] }), t[96] = re, t[97] = ue, t[98] = xe) : xe = t[98];
666
- let le;
667
- t[99] !== ne || t[100] !== xe ? (le = /* @__PURE__ */ i.jsxs("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: [
668
- ne,
669
- xe
670
- ] }), t[99] = ne, t[100] = xe, t[101] = le) : le = t[101];
671
- let se;
672
- t[102] !== B?.footnote || t[103] !== B?.source || t[104] !== X || t[105] !== Kt || t[106] !== D?.footnote || t[107] !== D?.source || t[108] !== O ? (se = Kt || X ? /* @__PURE__ */ i.jsx(ti, { styles: {
663
+ }, precision: R, customLayers: Dt, naLabel: Wt, locale: It, padZeros: Ot }) : null, t[48] = c, t[49] = ft, t[50] = xt, t[51] = _, t[52] = z, t[53] = V, t[54] = gt, t[55] = W, t[56] = Dt, t[57] = l, t[58] = Bt, t[59] = wt, t[60] = v, t[61] = h, t[62] = m, t[63] = j, t[64] = M, t[65] = It, t[66] = L, t[67] = u, t[68] = s, t[69] = Wt, t[70] = it, t[71] = a, t[72] = B, t[73] = Ot, t[74] = R, t[75] = bt, t[76] = Q, t[77] = ot, t[78] = J, t[79] = A, t[80] = Vt, t[81] = k, t[82] = vt, t[83] = Pt, t[84] = mt, t[85] = D, t[86] = at, t[87] = Zt, t[88] = g, t[89] = $.dateFormat, t[90] = $.enabled, t[91] = yt, t[92] = S, t[93] = tt, t[94] = w, t[95] = Gt, t[96] = me) : me = t[96];
664
+ let he;
665
+ t[97] !== de || t[98] !== me ? (he = /* @__PURE__ */ i.jsxs(ni, { ref: E, children: [
666
+ de,
667
+ me
668
+ ] }), t[97] = de, t[98] = me, t[99] = he) : he = t[99];
669
+ let ae;
670
+ t[100] !== ce || t[101] !== he ? (ae = /* @__PURE__ */ i.jsxs("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: [
671
+ ce,
672
+ he
673
+ ] }), t[100] = ce, t[101] = he, t[102] = ae) : ae = t[102];
674
+ let oe;
675
+ t[103] !== V?.footnote || t[104] !== V?.source || t[105] !== G || t[106] !== Ut || t[107] !== D?.footnote || t[108] !== D?.source || t[109] !== O ? (oe = Ut || G ? /* @__PURE__ */ i.jsx(ii, { styles: {
673
676
  footnote: D?.footnote,
674
677
  source: D?.source
675
678
  }, classNames: {
676
- footnote: B?.footnote,
677
- source: B?.source
678
- }, sources: Kt, footNote: X, width: O }) : null, t[102] = B?.footnote, t[103] = B?.source, t[104] = X, t[105] = Kt, t[106] = D?.footnote, t[107] = D?.source, t[108] = O, t[109] = se) : se = t[109];
679
- let ce;
680
- return t[110] !== Ht || t[111] !== St || t[112] !== _ || t[113] !== R || t[114] !== I || t[115] !== Lt || t[116] !== Ot || t[117] !== U || t[118] !== ge || t[119] !== ve || t[120] !== fe || t[121] !== de || t[122] !== le || t[123] !== se || t[124] !== nt || t[125] !== O ? (ce = /* @__PURE__ */ i.jsxs(oi, { className: ge, style: ve, id: _, ref: $, "aria-label": Ht, backgroundColor: St, theme: nt, language: I, minHeight: Lt, width: O, height: R, relativeHeight: U, padding: Ot, children: [
681
- fe,
682
- de,
683
- le,
684
- se
685
- ] }), t[110] = Ht, t[111] = St, t[112] = _, t[113] = R, t[114] = I, t[115] = Lt, t[116] = Ot, t[117] = U, t[118] = ge, t[119] = ve, t[120] = fe, t[121] = de, t[122] = le, t[123] = se, t[124] = nt, t[125] = O, t[126] = ce) : ce = t[126], ce;
686
- }
687
- function Li(e) {
688
- return Math.min(...e.size.filter(Vi));
689
- }
690
- function Vi(e) {
691
- return !ie(e);
679
+ footnote: V?.footnote,
680
+ source: V?.source
681
+ }, sources: Ut, footNote: G, width: O }) : null, t[103] = V?.footnote, t[104] = V?.source, t[105] = G, t[106] = Ut, t[107] = D?.footnote, t[108] = D?.source, t[109] = O, t[110] = oe) : oe = t[110];
682
+ let ue;
683
+ return t[111] !== T || t[112] !== dt || t[113] !== lt || t[114] !== U || t[115] !== j || t[116] !== zt || t[117] !== Ct || t[118] !== K || t[119] !== be || t[120] !== Ae || t[121] !== pe || t[122] !== xe || t[123] !== ae || t[124] !== oe || t[125] !== ht || t[126] !== O ? (ue = /* @__PURE__ */ i.jsxs(ri, { className: be, style: Ae, id: lt, ref: n, "aria-label": T, backgroundColor: dt, theme: ht, language: j, minHeight: zt, width: O, height: U, relativeHeight: K, padding: Ct, children: [
684
+ pe,
685
+ xe,
686
+ ae,
687
+ oe
688
+ ] }), t[111] = T, t[112] = dt, t[113] = lt, t[114] = U, t[115] = j, t[116] = zt, t[117] = Ct, t[118] = K, t[119] = be, t[120] = Ae, t[121] = pe, t[122] = xe, t[123] = ae, t[124] = oe, t[125] = ht, t[126] = O, t[127] = ue) : ue = t[127], ue;
692
689
  }
693
690
  function zi(e) {
694
691
  return Math.min(...e.size.filter(Di));
695
692
  }
696
693
  function Di(e) {
697
- return !ie(e);
694
+ return !se(e);
698
695
  }
699
696
  function Ii(e) {
700
- return Math.max(...e.size.filter(Ni));
697
+ return Math.min(...e.size.filter(Ni));
701
698
  }
702
699
  function Ni(e) {
703
- return !ie(e);
700
+ return !se(e);
704
701
  }
705
702
  function ji(e) {
706
703
  return Math.max(...e.size.filter(Ti));
707
704
  }
708
705
  function Ti(e) {
709
- return !ie(e);
706
+ return !se(e);
710
707
  }
711
708
  function Si(e) {
712
- return e == null;
709
+ return Math.max(...e.size.filter(Bi));
713
710
  }
714
711
  function Bi(e) {
715
- return e == null;
712
+ return !se(e);
716
713
  }
717
714
  function Fi(e) {
718
- return me(e.size.filter(Pi));
715
+ return e == null;
719
716
  }
720
717
  function Pi(e) {
721
- return !ie(e);
718
+ return e == null;
722
719
  }
723
720
  function Hi(e) {
724
- return e == null;
721
+ return fe(e.size.filter(Wi));
725
722
  }
726
723
  function Wi(e) {
727
- return e !== void 0;
724
+ return !se(e);
728
725
  }
729
726
  function Xi(e) {
730
- return e !== void 0;
727
+ return e == null;
731
728
  }
732
729
  function Yi(e) {
733
- return e.data;
730
+ return e !== void 0;
734
731
  }
735
732
  function Ei(e) {
736
733
  return e !== void 0;
@@ -738,267 +735,274 @@ function Ei(e) {
738
735
  function Gi(e) {
739
736
  return e.data;
740
737
  }
741
- function Ri(e, t) {
738
+ function Zi(e) {
739
+ return e !== void 0;
740
+ }
741
+ function Ri(e) {
742
+ return e.data;
743
+ }
744
+ function qi(e, t) {
742
745
  return e - t;
743
746
  }
744
- function qi(e) {
747
+ function Ui(e) {
745
748
  return e.date;
746
749
  }
747
- function Ui(e) {
748
- const t = $e.c(134), {
749
- data: s,
750
- barColor: H,
751
- suffix: Gt,
752
- prefix: Kt,
753
- barPadding: It,
754
- showValues: At,
755
- showTicks: Bt,
756
- truncateBy: P,
757
- width: R,
750
+ function Ji(e) {
751
+ const t = Me.c(135), {
752
+ data: l,
753
+ barColor: X,
754
+ suffix: Rt,
755
+ prefix: Ut,
756
+ barPadding: jt,
757
+ showValues: Mt,
758
+ showTicks: St,
759
+ truncateBy: H,
760
+ width: U,
758
761
  height: O,
759
- colorDomain: X,
760
- topMargin: ut,
761
- bottomMargin: Z,
762
- leftMargin: $t,
763
- rightMargin: W,
764
- showLabels: st,
765
- tooltip: Nt,
766
- onSeriesMouseOver: Ot,
767
- refValues: Xt,
768
- selectedColor: k,
769
- highlightedDataPoints: q,
770
- maxValue: j,
771
- minValue: N,
772
- onSeriesMouseClick: ot,
773
- labelOrder: U,
774
- rtl: xt,
775
- maxBarThickness: T,
776
- minBarThickness: J,
777
- resetSelectionOnDoubleClick: _,
762
+ colorDomain: G,
763
+ topMargin: gt,
764
+ bottomMargin: st,
765
+ leftMargin: kt,
766
+ rightMargin: Y,
767
+ showLabels: nt,
768
+ tooltip: Tt,
769
+ onSeriesMouseOver: Ct,
770
+ refValues: Yt,
771
+ selectedColor: M,
772
+ highlightedDataPoints: J,
773
+ maxValue: S,
774
+ minValue: z,
775
+ onSeriesMouseClick: ut,
776
+ labelOrder: K,
777
+ rtl: yt,
778
+ maxBarThickness: B,
779
+ minBarThickness: Q,
780
+ resetSelectionOnDoubleClick: lt,
778
781
  detailsOnClick: u,
779
- barAxisTitle: l,
782
+ barAxisTitle: s,
780
783
  valueColor: a,
781
784
  noOfTicks: f,
782
785
  styles: x,
783
- classNames: w,
784
- animate: h,
785
- dimmedOpacity: at,
786
- precision: S,
787
- customLayers: C,
788
- naLabel: Ht,
789
- trackColor: Rt,
790
- hideAxisLine: Mt,
791
- locale: yt
792
- } = e, Yt = ut === void 0 ? 25 : ut, tt = Z === void 0 ? 10 : Z, D = $t === void 0 ? 100 : $t, B = W === void 0 ? 40 : W, p = Ae(null);
793
- let c;
794
- t[0] !== h.amount || t[1] !== h.once ? (c = {
795
- once: h.once,
796
- amount: h.amount
797
- }, t[0] = h.amount, t[1] = h.once, t[2] = c) : c = t[2];
798
- const jt = Fe(p, c), [z, y] = _t(void 0), [Ft, Tt] = _t(void 0), [mt, qt] = _t(void 0), [et, Pt] = _t(void 0), Y = l ? Yt + 25 : Yt;
799
- let it;
800
- t[3] !== tt || t[4] !== D || t[5] !== B || t[6] !== Y ? (it = {
801
- top: Y,
802
- bottom: tt,
803
- left: D,
804
- right: B
805
- }, t[3] = tt, t[4] = D, t[5] = B, t[6] = Y, t[7] = it) : it = t[7];
806
- const M = it, bt = R - M.left - M.right, kt = O - M.top - M.bottom;
807
- let ht;
808
- if (t[8] !== s || t[9] !== U) {
809
- const b = /* @__PURE__ */ new Set(), G = s.map((Ut, Jt) => {
810
- const Zt = U ? `${Ut.label}` : `${Jt}`;
811
- return b.add(Zt), {
812
- ...Ut,
813
- id: Zt
786
+ classNames: y,
787
+ animate: m,
788
+ dimmedOpacity: rt,
789
+ precision: F,
790
+ customLayers: L,
791
+ naLabel: T,
792
+ trackColor: Et,
793
+ hideAxisLine: Bt,
794
+ locale: xt,
795
+ padZeros: Ft
796
+ } = e, Gt = gt === void 0 ? 25 : gt, D = st === void 0 ? 10 : st, V = kt === void 0 ? 100 : kt, Z = Y === void 0 ? 40 : Y, p = Oe(null);
797
+ let b;
798
+ t[0] !== m.amount || t[1] !== m.once ? (b = {
799
+ once: m.once,
800
+ amount: m.amount
801
+ }, t[0] = m.amount, t[1] = m.once, t[2] = b) : b = t[2];
802
+ const I = He(p, b), [C, N] = _t(void 0), [mt, Pt] = _t(void 0), [Lt, Ht] = _t(void 0), [ct, Xt] = _t(void 0), W = s ? Gt + 25 : Gt;
803
+ let _;
804
+ t[3] !== D || t[4] !== V || t[5] !== Z || t[6] !== W ? (_ = {
805
+ top: W,
806
+ bottom: D,
807
+ left: V,
808
+ right: Z
809
+ }, t[3] = D, t[4] = V, t[5] = Z, t[6] = W, t[7] = _) : _ = t[7];
810
+ const k = _, tt = U - k.left - k.right, at = O - k.top - k.bottom;
811
+ let bt;
812
+ if (t[8] !== l || t[9] !== K) {
813
+ const g = /* @__PURE__ */ new Set(), q = l.map((Qt, qt) => {
814
+ const Jt = K ? `${Qt.label}` : `${qt}`;
815
+ return g.add(Jt), {
816
+ ...Qt,
817
+ id: Jt
814
818
  };
815
- }), Et = U ? U.filter((Ut) => !b.has(Ut)) : [];
816
- ht = [...G, ...Et.map(ol)], t[8] = s, t[9] = U, t[10] = ht;
819
+ }), Zt = K ? K.filter((Qt) => !g.has(Qt)) : [];
820
+ bt = [...q, ...Zt.map(rs)], t[8] = l, t[9] = K, t[10] = bt;
817
821
  } else
818
- ht = t[10];
819
- const ft = ht;
820
- let pt;
821
- t[11] !== ft || t[12] !== U ? (pt = U ?? ft.map(al), t[11] = ft, t[12] = U, t[13] = pt) : pt = t[13];
822
- const St = pt;
823
- let Ct, K, F, I, Lt, nt, lt, Q, gt, rt, E, vt, Vt, ct;
824
- if (t[14] !== h || t[15] !== l || t[16] !== H || t[17] !== St || t[18] !== It || t[19] !== w?.graphObjectValues || t[20] !== w?.xAxis?.gridLines || t[21] !== w?.xAxis?.labels || t[22] !== w?.xAxis?.title || t[23] !== w?.yAxis?.axis || t[24] !== w?.yAxis?.labels || t[25] !== X || t[26] !== C || t[27] !== s || t[28] !== ft || t[29] !== u || t[30] !== at || t[31] !== kt || t[32] !== bt || t[33] !== O || t[34] !== Mt || t[35] !== q || t[36] !== jt || t[37] !== yt || t[38] !== M.bottom || t[39] !== M.left || t[40] !== M.top || t[41] !== T || t[42] !== j || t[43] !== J || t[44] !== N || t[45] !== Ft || t[46] !== Ht || t[47] !== f || t[48] !== ot || t[49] !== Ot || t[50] !== S || t[51] !== Kt || t[52] !== Xt || t[53] !== _ || t[54] !== xt || t[55] !== k || t[56] !== st || t[57] !== Bt || t[58] !== At || t[59] !== x?.graphObjectValues || t[60] !== x?.xAxis?.gridLines || t[61] !== x?.xAxis?.labels || t[62] !== x?.xAxis?.title || t[63] !== x?.yAxis?.axis || t[64] !== x?.yAxis?.labels || t[65] !== Gt || t[66] !== Yt || t[67] !== Rt || t[68] !== P || t[69] !== a || t[70] !== R) {
825
- const b = Pe().domain([N, j]).range([0, bt]).nice(), G = Le().domain(St).range([0, J ? Math.max(kt, J * St.length) : T ? Math.min(kt, T * St.length) : kt]).paddingInner(It), Et = b.ticks(f);
826
- K = te.svg, gt = p, rt = `${R}px`, E = `${O}px`, vt = `0 0 ${R} ${O}`, Vt = "ltr", Lt = `translate(${M.left},${M.top})`, nt = Bt ? /* @__PURE__ */ i.jsx(Ue, { values: Et.filter(sl), x: Et.filter(ll).map((o) => b(o)), y1: 0 - Yt, y2: kt + M.bottom, styles: {
822
+ bt = t[10];
823
+ const vt = bt;
824
+ let At;
825
+ t[11] !== vt || t[12] !== K ? (At = K ?? vt.map(ns), t[11] = vt, t[12] = K, t[13] = At) : At = t[13];
826
+ const dt = At;
827
+ let Vt, et, P, j, zt, ht, ot, it, wt, ft, R, $t, Dt, pt;
828
+ if (t[14] !== m || t[15] !== s || t[16] !== X || t[17] !== dt || t[18] !== jt || t[19] !== y?.graphObjectValues || t[20] !== y?.xAxis?.gridLines || t[21] !== y?.xAxis?.labels || t[22] !== y?.xAxis?.title || t[23] !== y?.yAxis?.axis || t[24] !== y?.yAxis?.labels || t[25] !== G || t[26] !== L || t[27] !== l || t[28] !== vt || t[29] !== u || t[30] !== rt || t[31] !== at || t[32] !== tt || t[33] !== O || t[34] !== Bt || t[35] !== J || t[36] !== I || t[37] !== xt || t[38] !== k.bottom || t[39] !== k.left || t[40] !== k.top || t[41] !== B || t[42] !== S || t[43] !== Q || t[44] !== z || t[45] !== mt || t[46] !== T || t[47] !== f || t[48] !== ut || t[49] !== Ct || t[50] !== Ft || t[51] !== F || t[52] !== Ut || t[53] !== Yt || t[54] !== lt || t[55] !== yt || t[56] !== M || t[57] !== nt || t[58] !== St || t[59] !== Mt || t[60] !== x?.graphObjectValues || t[61] !== x?.xAxis?.gridLines || t[62] !== x?.xAxis?.labels || t[63] !== x?.xAxis?.title || t[64] !== x?.yAxis?.axis || t[65] !== x?.yAxis?.labels || t[66] !== Rt || t[67] !== Gt || t[68] !== Et || t[69] !== H || t[70] !== a || t[71] !== U) {
829
+ const g = We().domain([z, S]).range([0, tt]).nice(), q = ze().domain(dt).range([0, Q ? Math.max(at, Q * dt.length) : B ? Math.min(at, B * dt.length) : at]).paddingInner(jt), Zt = g.ticks(f);
830
+ et = ee.svg, wt = p, ft = `${U}px`, R = `${O}px`, $t = `0 0 ${U} ${O}`, Dt = "ltr", zt = `translate(${k.left},${k.top})`, ht = St ? /* @__PURE__ */ i.jsx(Je, { values: Zt.filter(os), x: Zt.filter(as).map((o) => g(o)), y1: 0 - Gt, y2: at + k.bottom, styles: {
827
831
  gridLines: x?.xAxis?.gridLines,
828
832
  labels: x?.xAxis?.labels
829
833
  }, classNames: {
830
- gridLines: w?.xAxis?.gridLines,
831
- labels: w?.xAxis?.labels
832
- }, suffix: Gt, prefix: Kt, labelType: "secondary", showGridLines: !0, precision: S, locale: yt }) : null;
833
- const Ut = bt / 2, Jt = 0 - M.top + 15, Zt = x?.xAxis?.title, dt = w?.xAxis?.title;
834
- t[85] !== l || t[86] !== Ut || t[87] !== Jt || t[88] !== Zt || t[89] !== dt ? (lt = /* @__PURE__ */ i.jsx(Se, { x: Ut, y: Jt, style: Zt, className: dt, text: l }), t[85] = l, t[86] = Ut, t[87] = Jt, t[88] = Zt, t[89] = dt, t[90] = lt) : lt = t[90], t[91] !== C ? (Q = C.filter(il).map(el), t[91] = C, t[92] = Q) : Q = t[92], Ct = He, ct = ft.map((o) => ie(G(o.id)) ? null : /* @__PURE__ */ i.jsxs(te.g, { className: "undp-viz-g-with-hover", variants: {
834
+ gridLines: y?.xAxis?.gridLines,
835
+ labels: y?.xAxis?.labels
836
+ }, suffix: Rt, prefix: Ut, labelType: "secondary", showGridLines: !0, precision: F, locale: xt, padZeros: Ft }) : null;
837
+ const Qt = tt / 2, qt = 0 - k.top + 15, Jt = x?.xAxis?.title, te = y?.xAxis?.title;
838
+ t[86] !== s || t[87] !== Qt || t[88] !== qt || t[89] !== Jt || t[90] !== te ? (ot = /* @__PURE__ */ i.jsx(Fe, { x: Qt, y: qt, style: Jt, className: te, text: s }), t[86] = s, t[87] = Qt, t[88] = qt, t[89] = Jt, t[90] = te, t[91] = ot) : ot = t[91], t[92] !== L ? (it = L.filter(ls).map(ss), t[92] = L, t[93] = it) : it = t[93], Vt = Xe, pt = vt.map((o) => se(q(o.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-g-with-hover", variants: {
835
839
  initial: {
836
- opacity: k ? o.color && H[X.indexOf(o.color)] === k ? 1 : at : q ? q.indexOf(o.label) !== -1 ? 0.85 : at : 0.85
840
+ opacity: M ? o.color && X[G.indexOf(o.color)] === M ? 1 : rt : J ? J.indexOf(o.label) !== -1 ? 0.85 : rt : 0.85
837
841
  },
838
842
  whileInView: {
839
- opacity: k ? o.color && H[X.indexOf(o.color)] === k ? 1 : at : q ? q.indexOf(o.label) !== -1 ? 0.85 : at : 0.85,
843
+ opacity: M ? o.color && X[G.indexOf(o.color)] === M ? 1 : rt : J ? J.indexOf(o.label) !== -1 ? 0.85 : rt : 0.85,
840
844
  transition: {
841
- duration: h.duration
845
+ duration: m.duration
842
846
  }
843
847
  }
844
- }, initial: "initial", animate: jt ? "whileInView" : "initial", exit: {
848
+ }, initial: "initial", animate: I ? "whileInView" : "initial", exit: {
845
849
  opacity: 0,
846
850
  transition: {
847
- duration: h.duration
851
+ duration: m.duration
848
852
  }
849
- }, onMouseEnter: ($) => {
850
- y(o), Pt($.clientY), qt($.clientX), Ot?.(o);
853
+ }, onMouseEnter: (E) => {
854
+ N(o), Xt(E.clientY), Ht(E.clientX), Ct?.(o);
851
855
  }, onClick: () => {
852
- (ot || u) && (Ne(Ft, o) && _ ? (Tt(void 0), ot?.(void 0)) : (Tt(o), ot?.(o)));
853
- }, onMouseMove: ($) => {
854
- y(o), Pt($.clientY), qt($.clientX);
856
+ (ut || u) && (Te(mt, o) && lt ? (Pt(void 0), ut?.(void 0)) : (Pt(o), ut?.(o)));
857
+ }, onMouseMove: (E) => {
858
+ N(o), Xt(E.clientY), Ht(E.clientX);
855
859
  }, onMouseLeave: () => {
856
- y(void 0), qt(void 0), Pt(void 0), Ot?.(void 0);
860
+ N(void 0), Ht(void 0), Xt(void 0), Ct?.(void 0);
857
861
  }, children: [
858
- Rt && /* @__PURE__ */ i.jsx(te.rect, { height: G.bandwidth(), variants: {
862
+ Et && /* @__PURE__ */ i.jsx(ee.rect, { height: q.bandwidth(), variants: {
859
863
  initial: {
860
- width: bt,
864
+ width: tt,
861
865
  x: 0,
862
- y: G(`${o.id}`),
863
- fill: Rt
866
+ y: q(`${o.id}`),
867
+ fill: Et
864
868
  },
865
869
  whileInView: {
866
- width: bt,
870
+ width: tt,
867
871
  x: 0,
868
- y: G(`${o.id}`),
869
- fill: Rt
872
+ y: q(`${o.id}`),
873
+ fill: Et
870
874
  }
871
- }, initial: "initial", animate: jt ? "whileInView" : "initial", exit: {
875
+ }, initial: "initial", animate: I ? "whileInView" : "initial", exit: {
872
876
  opacity: 0,
873
877
  transition: {
874
- duration: h.duration
878
+ duration: m.duration
875
879
  }
876
880
  } }),
877
- o.size ? /* @__PURE__ */ i.jsx(te.rect, { variants: {
881
+ o.size ? /* @__PURE__ */ i.jsx(ee.rect, { variants: {
878
882
  initial: {
879
883
  width: 0,
880
- x: b(0),
881
- y: G(`${o.id}`),
882
- fill: s.filter(tl).length === 0 ? H[0] : o.color ? H[X.indexOf(o.color)] : ye.gray
884
+ x: g(0),
885
+ y: q(`${o.id}`),
886
+ fill: l.filter(is).length === 0 ? X[0] : o.color ? X[G.indexOf(o.color)] : ve.gray
883
887
  },
884
888
  whileInView: {
885
- width: o.size >= 0 ? b(o.size) - b(0) : b(0) - b(o.size),
886
- x: o.size >= 0 ? b(0) : b(o.size),
887
- y: G(`${o.id}`),
888
- fill: s.filter(_i).length === 0 ? H[0] : o.color ? H[X.indexOf(o.color)] : ye.gray,
889
+ width: o.size >= 0 ? g(o.size) - g(0) : g(0) - g(o.size),
890
+ x: o.size >= 0 ? g(0) : g(o.size),
891
+ y: q(`${o.id}`),
892
+ fill: l.filter(es).length === 0 ? X[0] : o.color ? X[G.indexOf(o.color)] : ve.gray,
889
893
  transition: {
890
- duration: h.duration
894
+ duration: m.duration
891
895
  }
892
896
  }
893
- }, initial: "initial", animate: jt ? "whileInView" : "initial", exit: {
897
+ }, initial: "initial", animate: I ? "whileInView" : "initial", exit: {
894
898
  width: 0,
895
- x: b(0),
899
+ x: g(0),
896
900
  transition: {
897
- duration: h.duration
901
+ duration: m.duration
898
902
  }
899
- }, height: G.bandwidth() }) : null,
900
- st ? /* @__PURE__ */ i.jsx(qe, { value: `${o.label}`.length < P ? `${o.label}` : `${`${o.label}`.substring(0, P)}...`, y: G(o.id) || 0, x: (o.size || 0) < 0 ? b(0) : 0 - M.left, width: (o.size || 0) < 0 ? R - b(0) : b(0) + M.left, height: G.bandwidth(), alignment: o.size && o.size < 0 ? "left" : "right", style: x?.yAxis?.labels, className: w?.yAxis?.labels, animate: h, isInView: jt }) : null,
901
- At ? /* @__PURE__ */ i.jsx(te.text, { style: {
903
+ }, height: q.bandwidth() }) : null,
904
+ nt ? /* @__PURE__ */ i.jsx(Ue, { value: `${o.label}`.length < H ? `${o.label}` : `${`${o.label}`.substring(0, H)}...`, y: q(o.id) || 0, x: (o.size || 0) < 0 ? g(0) : 0 - k.left, width: (o.size || 0) < 0 ? U - g(0) : g(0) + k.left, height: q.bandwidth(), alignment: o.size && o.size < 0 ? "left" : "right", style: x?.yAxis?.labels, className: y?.yAxis?.labels, animate: m, isInView: I }) : null,
905
+ Mt ? /* @__PURE__ */ i.jsx(ee.text, { style: {
902
906
  textAnchor: o.size && o.size < 0 ? "end" : "start",
903
907
  ...x?.graphObjectValues || {}
904
- }, className: Ce("graph-value text-sm", !a && H.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", w?.graphObjectValues), dx: o.size && o.size < 0 ? -5 : 5, dy: "0.33em", variants: {
908
+ }, className: Ve("graph-value text-sm", !a && X.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", y?.graphObjectValues), dx: o.size && o.size < 0 ? -5 : 5, dy: "0.33em", variants: {
905
909
  initial: {
906
- x: b(0),
907
- y: G(`${o.id}`) + G.bandwidth() / 2,
910
+ x: g(0),
911
+ y: q(`${o.id}`) + q.bandwidth() / 2,
908
912
  opacity: 0,
909
- fill: a || (s.filter(Zi).length === 0 ? H[0] : o.color ? H[X.indexOf(o.color)] : ye.gray)
913
+ fill: a || (l.filter(ts).length === 0 ? X[0] : o.color ? X[G.indexOf(o.color)] : ve.gray)
910
914
  },
911
915
  whileInView: {
912
- x: o.size ? b(o.size) : b(0),
916
+ x: o.size ? g(o.size) : g(0),
913
917
  opacity: 1,
914
- y: G(`${o.id}`) + G.bandwidth() / 2,
915
- fill: a || (s.filter(Qi).length === 0 ? H[0] : o.color ? H[X.indexOf(o.color)] : ye.gray),
918
+ y: q(`${o.id}`) + q.bandwidth() / 2,
919
+ fill: a || (l.filter(_i).length === 0 ? X[0] : o.color ? X[G.indexOf(o.color)] : ve.gray),
916
920
  transition: {
917
- duration: h.duration
921
+ duration: m.duration
918
922
  }
919
923
  }
920
- }, initial: "initial", animate: jt ? "whileInView" : "initial", exit: {
924
+ }, initial: "initial", animate: I ? "whileInView" : "initial", exit: {
921
925
  opacity: 0,
922
926
  transition: {
923
- duration: h.duration
927
+ duration: m.duration
924
928
  }
925
- }, children: we(o.size, Ht, S, Kt, Gt, yt) }) : null
929
+ }, children: $e(o.size, T, F, Ut, Rt, xt, Ft) }) : null
926
930
  ] }, o.label));
927
- const g = w?.yAxis?.axis;
928
- let V;
929
- t[93] !== g ? (V = {
930
- axis: g
931
- }, t[93] = g, t[94] = V) : V = t[94];
931
+ const w = y?.yAxis?.axis;
932
+ let h;
933
+ t[94] !== w ? (h = {
934
+ axis: w
935
+ }, t[94] = w, t[95] = h) : h = t[95];
932
936
  const d = x?.yAxis?.axis;
933
- let L;
934
- t[95] !== d ? (L = {
937
+ let A;
938
+ t[96] !== d ? (A = {
935
939
  axis: d
936
- }, t[95] = d, t[96] = L) : L = t[96], F = /* @__PURE__ */ i.jsx(Te, { hideAxisLine: Mt, x1: b(N < 0 ? 0 : N), x2: b(N < 0 ? 0 : N), y1: -2.5, y2: kt + M.bottom, classNames: V, styles: L }), I = Xt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Xt.map((o, $) => /* @__PURE__ */ i.jsx(Je, { text: o.text, color: o.color, x: b(o.value), y1: 0 - M.top, y2: kt + M.bottom, textSide: b(o.value) > bt * 0.75 || xt ? "left" : "right", classNames: o.classNames, styles: o.styles, animate: h, isInView: jt }, $)) }) : null, t[14] = h, t[15] = l, t[16] = H, t[17] = St, t[18] = It, t[19] = w?.graphObjectValues, t[20] = w?.xAxis?.gridLines, t[21] = w?.xAxis?.labels, t[22] = w?.xAxis?.title, t[23] = w?.yAxis?.axis, t[24] = w?.yAxis?.labels, t[25] = X, t[26] = C, t[27] = s, t[28] = ft, t[29] = u, t[30] = at, t[31] = kt, t[32] = bt, t[33] = O, t[34] = Mt, t[35] = q, t[36] = jt, t[37] = yt, t[38] = M.bottom, t[39] = M.left, t[40] = M.top, t[41] = T, t[42] = j, t[43] = J, t[44] = N, t[45] = Ft, t[46] = Ht, t[47] = f, t[48] = ot, t[49] = Ot, t[50] = S, t[51] = Kt, t[52] = Xt, t[53] = _, t[54] = xt, t[55] = k, t[56] = st, t[57] = Bt, t[58] = At, t[59] = x?.graphObjectValues, t[60] = x?.xAxis?.gridLines, t[61] = x?.xAxis?.labels, t[62] = x?.xAxis?.title, t[63] = x?.yAxis?.axis, t[64] = x?.yAxis?.labels, t[65] = Gt, t[66] = Yt, t[67] = Rt, t[68] = P, t[69] = a, t[70] = R, t[71] = Ct, t[72] = K, t[73] = F, t[74] = I, t[75] = Lt, t[76] = nt, t[77] = lt, t[78] = Q, t[79] = gt, t[80] = rt, t[81] = E, t[82] = vt, t[83] = Vt, t[84] = ct;
940
+ }, t[96] = d, t[97] = A) : A = t[97], P = /* @__PURE__ */ i.jsx(Be, { hideAxisLine: Bt, x1: g(z < 0 ? 0 : z), x2: g(z < 0 ? 0 : z), y1: -2.5, y2: at + k.bottom, classNames: h, styles: A }), j = Yt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Yt.map((o, E) => /* @__PURE__ */ i.jsx(Ke, { text: o.text, color: o.color, x: g(o.value), y1: 0 - k.top, y2: at + k.bottom, textSide: g(o.value) > tt * 0.75 || yt ? "left" : "right", classNames: o.classNames, styles: o.styles, animate: m, isInView: I }, E)) }) : null, t[14] = m, t[15] = s, t[16] = X, t[17] = dt, t[18] = jt, t[19] = y?.graphObjectValues, t[20] = y?.xAxis?.gridLines, t[21] = y?.xAxis?.labels, t[22] = y?.xAxis?.title, t[23] = y?.yAxis?.axis, t[24] = y?.yAxis?.labels, t[25] = G, t[26] = L, t[27] = l, t[28] = vt, t[29] = u, t[30] = rt, t[31] = at, t[32] = tt, t[33] = O, t[34] = Bt, t[35] = J, t[36] = I, t[37] = xt, t[38] = k.bottom, t[39] = k.left, t[40] = k.top, t[41] = B, t[42] = S, t[43] = Q, t[44] = z, t[45] = mt, t[46] = T, t[47] = f, t[48] = ut, t[49] = Ct, t[50] = Ft, t[51] = F, t[52] = Ut, t[53] = Yt, t[54] = lt, t[55] = yt, t[56] = M, t[57] = nt, t[58] = St, t[59] = Mt, t[60] = x?.graphObjectValues, t[61] = x?.xAxis?.gridLines, t[62] = x?.xAxis?.labels, t[63] = x?.xAxis?.title, t[64] = x?.yAxis?.axis, t[65] = x?.yAxis?.labels, t[66] = Rt, t[67] = Gt, t[68] = Et, t[69] = H, t[70] = a, t[71] = U, t[72] = Vt, t[73] = et, t[74] = P, t[75] = j, t[76] = zt, t[77] = ht, t[78] = ot, t[79] = it, t[80] = wt, t[81] = ft, t[82] = R, t[83] = $t, t[84] = Dt, t[85] = pt;
937
941
  } else
938
- Ct = t[71], K = t[72], F = t[73], I = t[74], Lt = t[75], nt = t[76], lt = t[77], Q = t[78], gt = t[79], rt = t[80], E = t[81], vt = t[82], Vt = t[83], ct = t[84];
939
- let A;
940
- t[97] !== Ct || t[98] !== F || t[99] !== I || t[100] !== ct ? (A = /* @__PURE__ */ i.jsxs(Ct, { children: [
941
- ct,
942
- F,
943
- I
944
- ] }), t[97] = Ct, t[98] = F, t[99] = I, t[100] = ct, t[101] = A) : A = t[101];
942
+ Vt = t[72], et = t[73], P = t[74], j = t[75], zt = t[76], ht = t[77], ot = t[78], it = t[79], wt = t[80], ft = t[81], R = t[82], $t = t[83], Dt = t[84], pt = t[85];
943
+ let $;
944
+ t[98] !== Vt || t[99] !== P || t[100] !== j || t[101] !== pt ? ($ = /* @__PURE__ */ i.jsxs(Vt, { children: [
945
+ pt,
946
+ P,
947
+ j
948
+ ] }), t[98] = Vt, t[99] = P, t[100] = j, t[101] = pt, t[102] = $) : $ = t[102];
945
949
  let Wt;
946
- t[102] !== C ? (Wt = C.filter(Ki).map(Ji), t[102] = C, t[103] = Wt) : Wt = t[103];
947
- let n;
948
- t[104] !== Lt || t[105] !== nt || t[106] !== lt || t[107] !== Q || t[108] !== A || t[109] !== Wt ? (n = /* @__PURE__ */ i.jsxs("g", { transform: Lt, children: [
949
- nt,
950
- lt,
951
- Q,
952
- A,
950
+ t[103] !== L ? (Wt = L.filter(Qi).map(Ki), t[103] = L, t[104] = Wt) : Wt = t[104];
951
+ let r;
952
+ t[105] !== zt || t[106] !== ht || t[107] !== ot || t[108] !== it || t[109] !== $ || t[110] !== Wt ? (r = /* @__PURE__ */ i.jsxs("g", { transform: zt, children: [
953
+ ht,
954
+ ot,
955
+ it,
956
+ $,
953
957
  Wt
954
- ] }), t[104] = Lt, t[105] = nt, t[106] = lt, t[107] = Q, t[108] = A, t[109] = Wt, t[110] = n) : n = t[110];
958
+ ] }), t[105] = zt, t[106] = ht, t[107] = ot, t[108] = it, t[109] = $, t[110] = Wt, t[111] = r) : r = t[111];
955
959
  let v;
956
- t[111] !== K || t[112] !== gt || t[113] !== rt || t[114] !== E || t[115] !== vt || t[116] !== Vt || t[117] !== n ? (v = /* @__PURE__ */ i.jsx(K, { ref: gt, width: rt, height: E, viewBox: vt, direction: Vt, children: n }), t[111] = K, t[112] = gt, t[113] = rt, t[114] = E, t[115] = vt, t[116] = Vt, t[117] = n, t[118] = v) : v = t[118];
957
- let zt;
958
- t[119] !== w?.tooltip || t[120] !== mt || t[121] !== et || t[122] !== z || t[123] !== x?.tooltip || t[124] !== Nt ? (zt = z && Nt && mt && et ? /* @__PURE__ */ i.jsx(je, { data: z, body: Nt, xPos: mt, yPos: et, backgroundStyle: x?.tooltip, className: w?.tooltip }) : null, t[119] = w?.tooltip, t[120] = mt, t[121] = et, t[122] = z, t[123] = x?.tooltip, t[124] = Nt, t[125] = zt) : zt = t[125];
959
- let wt;
960
- t[126] !== w?.modal || t[127] !== u || t[128] !== Ft ? (wt = u && Ft !== void 0 ? /* @__PURE__ */ i.jsx(Be, { body: u, data: Ft, setData: Tt, className: w?.modal }) : null, t[126] = w?.modal, t[127] = u, t[128] = Ft, t[129] = wt) : wt = t[129];
961
- let r;
962
- return t[130] !== v || t[131] !== zt || t[132] !== wt ? (r = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
960
+ t[112] !== et || t[113] !== wt || t[114] !== ft || t[115] !== R || t[116] !== $t || t[117] !== Dt || t[118] !== r ? (v = /* @__PURE__ */ i.jsx(et, { ref: wt, width: ft, height: R, viewBox: $t, direction: Dt, children: r }), t[112] = et, t[113] = wt, t[114] = ft, t[115] = R, t[116] = $t, t[117] = Dt, t[118] = r, t[119] = v) : v = t[119];
961
+ let It;
962
+ t[120] !== y?.tooltip || t[121] !== Lt || t[122] !== ct || t[123] !== C || t[124] !== x?.tooltip || t[125] !== Tt ? (It = C && Tt && Lt && ct ? /* @__PURE__ */ i.jsx(Se, { data: C, body: Tt, xPos: Lt, yPos: ct, backgroundStyle: x?.tooltip, className: y?.tooltip }) : null, t[120] = y?.tooltip, t[121] = Lt, t[122] = ct, t[123] = C, t[124] = x?.tooltip, t[125] = Tt, t[126] = It) : It = t[126];
963
+ let Ot;
964
+ t[127] !== y?.modal || t[128] !== u || t[129] !== mt ? (Ot = u && mt !== void 0 ? /* @__PURE__ */ i.jsx(Pe, { body: u, data: mt, setData: Pt, className: y?.modal }) : null, t[127] = y?.modal, t[128] = u, t[129] = mt, t[130] = Ot) : Ot = t[130];
965
+ let c;
966
+ return t[131] !== v || t[132] !== It || t[133] !== Ot ? (c = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
963
967
  v,
964
- zt,
965
- wt
966
- ] }), t[130] = v, t[131] = zt, t[132] = wt, t[133] = r) : r = t[133], r;
968
+ It,
969
+ Ot
970
+ ] }), t[131] = v, t[132] = It, t[133] = Ot, t[134] = c) : c = t[134], c;
967
971
  }
968
- function Ji(e) {
972
+ function Ki(e) {
969
973
  return e.layer;
970
974
  }
971
- function Ki(e) {
975
+ function Qi(e) {
972
976
  return e.position === "after";
973
977
  }
974
- function Qi(e) {
978
+ function _i(e) {
975
979
  return e.color;
976
980
  }
977
- function Zi(e) {
981
+ function ts(e) {
978
982
  return e.color;
979
983
  }
980
- function _i(e) {
984
+ function es(e) {
981
985
  return e.color;
982
986
  }
983
- function tl(e) {
987
+ function is(e) {
984
988
  return e.color;
985
989
  }
986
- function el(e) {
990
+ function ss(e) {
987
991
  return e.layer;
988
992
  }
989
- function il(e) {
993
+ function ls(e) {
990
994
  return e.position === "before";
991
995
  }
992
- function ll(e) {
996
+ function as(e) {
993
997
  return e !== 0;
994
998
  }
995
- function sl(e) {
999
+ function os(e) {
996
1000
  return e !== 0;
997
1001
  }
998
- function al(e) {
1002
+ function ns(e) {
999
1003
  return `${e.id}`;
1000
1004
  }
1001
- function ol(e) {
1005
+ function rs(e) {
1002
1006
  return {
1003
1007
  id: e,
1004
1008
  label: e,
@@ -1006,269 +1010,270 @@ function ol(e) {
1006
1010
  size: null
1007
1011
  };
1008
1012
  }
1009
- function nl(e) {
1010
- const t = $e.c(144), {
1011
- leftMargin: s,
1012
- rightMargin: H,
1013
- topMargin: Gt,
1014
- bottomMargin: Kt,
1015
- data: It,
1016
- width: At,
1017
- height: Bt,
1018
- barColor: P,
1019
- suffix: R,
1013
+ function cs(e) {
1014
+ const t = Me.c(146), {
1015
+ leftMargin: l,
1016
+ rightMargin: X,
1017
+ topMargin: Rt,
1018
+ bottomMargin: Ut,
1019
+ data: jt,
1020
+ width: Mt,
1021
+ height: St,
1022
+ barColor: H,
1023
+ suffix: U,
1020
1024
  prefix: O,
1021
- barPadding: X,
1022
- showLabels: ut,
1023
- showValues: Z,
1024
- showTicks: $t,
1025
- colorDomain: W,
1026
- truncateBy: st,
1027
- tooltip: Nt,
1028
- onSeriesMouseOver: Ot,
1029
- refValues: Xt,
1030
- selectedColor: k,
1031
- maxValue: q,
1032
- minValue: j,
1033
- highlightedDataPoints: N,
1034
- onSeriesMouseClick: ot,
1035
- labelOrder: U,
1036
- maxBarThickness: xt,
1037
- minBarThickness: T,
1038
- resetSelectionOnDoubleClick: J,
1039
- detailsOnClick: _,
1025
+ barPadding: G,
1026
+ showLabels: gt,
1027
+ showValues: st,
1028
+ showTicks: kt,
1029
+ colorDomain: Y,
1030
+ truncateBy: nt,
1031
+ tooltip: Tt,
1032
+ onSeriesMouseOver: Ct,
1033
+ refValues: Yt,
1034
+ selectedColor: M,
1035
+ maxValue: J,
1036
+ minValue: S,
1037
+ highlightedDataPoints: z,
1038
+ onSeriesMouseClick: ut,
1039
+ labelOrder: K,
1040
+ maxBarThickness: yt,
1041
+ minBarThickness: B,
1042
+ resetSelectionOnDoubleClick: Q,
1043
+ detailsOnClick: lt,
1040
1044
  barAxisTitle: u,
1041
- valueColor: l,
1045
+ valueColor: s,
1042
1046
  noOfTicks: a,
1043
1047
  styles: f,
1044
1048
  classNames: x,
1045
- dimmedOpacity: w,
1046
- animate: h,
1047
- precision: at,
1048
- customLayers: S,
1049
- naLabel: C,
1050
- trackColor: Ht,
1051
- hideAxisLine: Rt,
1052
- locale: Mt
1053
- } = e, yt = s === void 0 ? 20 : s, Yt = H === void 0 ? 20 : H, tt = Gt === void 0 ? 20 : Gt, D = Kt === void 0 ? 25 : Kt, B = Ae(null);
1049
+ dimmedOpacity: y,
1050
+ animate: m,
1051
+ precision: rt,
1052
+ customLayers: F,
1053
+ naLabel: L,
1054
+ trackColor: T,
1055
+ hideAxisLine: Et,
1056
+ locale: Bt,
1057
+ padZeros: xt
1058
+ } = e, Ft = l === void 0 ? 20 : l, Gt = X === void 0 ? 20 : X, D = Rt === void 0 ? 20 : Rt, V = Ut === void 0 ? 25 : Ut, Z = Oe(null);
1054
1059
  let p;
1055
- t[0] !== h.amount || t[1] !== h.once ? (p = {
1056
- once: h.once,
1057
- amount: h.amount
1058
- }, t[0] = h.amount, t[1] = h.once, t[2] = p) : p = t[2];
1059
- const c = Fe(B, p), jt = u ? yt + 30 : yt;
1060
- let z;
1061
- t[3] !== D || t[4] !== Yt || t[5] !== jt || t[6] !== tt ? (z = {
1062
- top: tt,
1063
- bottom: D,
1064
- left: jt,
1065
- right: Yt
1066
- }, t[3] = D, t[4] = Yt, t[5] = jt, t[6] = tt, t[7] = z) : z = t[7];
1067
- const y = z, [Ft, Tt] = _t(void 0), [mt, qt] = _t(void 0), [et, Pt] = _t(void 0), [Y, it] = _t(void 0), M = At - y.left - y.right, bt = Bt - y.top - y.bottom;
1068
- let kt;
1069
- if (t[8] !== It || t[9] !== U) {
1070
- const r = /* @__PURE__ */ new Set(), b = It.map((Et, Ut) => {
1071
- const Jt = U ? `${Et.label}` : `${Ut}`;
1072
- return r.add(Jt), {
1073
- ...Et,
1074
- id: Jt
1060
+ t[0] !== m.amount || t[1] !== m.once ? (p = {
1061
+ once: m.once,
1062
+ amount: m.amount
1063
+ }, t[0] = m.amount, t[1] = m.once, t[2] = p) : p = t[2];
1064
+ const b = He(Z, p), I = u ? Ft + 30 : Ft;
1065
+ let C;
1066
+ t[3] !== V || t[4] !== Gt || t[5] !== I || t[6] !== D ? (C = {
1067
+ top: D,
1068
+ bottom: V,
1069
+ left: I,
1070
+ right: Gt
1071
+ }, t[3] = V, t[4] = Gt, t[5] = I, t[6] = D, t[7] = C) : C = t[7];
1072
+ const N = C, [mt, Pt] = _t(void 0), [Lt, Ht] = _t(void 0), [ct, Xt] = _t(void 0), [W, _] = _t(void 0), k = Mt - N.left - N.right, tt = St - N.top - N.bottom;
1073
+ let at;
1074
+ if (t[8] !== jt || t[9] !== K) {
1075
+ const c = /* @__PURE__ */ new Set(), g = jt.map((Zt, Qt) => {
1076
+ const qt = K ? `${Zt.label}` : `${Qt}`;
1077
+ return c.add(qt), {
1078
+ ...Zt,
1079
+ id: qt
1075
1080
  };
1076
- }), G = U ? U.filter((Et) => !r.has(Et)) : [];
1077
- kt = [...b, ...G.map(bl)], t[8] = It, t[9] = U, t[10] = kt;
1081
+ }), q = K ? K.filter((Zt) => !c.has(Zt)) : [];
1082
+ at = [...g, ...q.map(ws)], t[8] = jt, t[9] = K, t[10] = at;
1078
1083
  } else
1079
- kt = t[10];
1080
- const ht = kt;
1081
- let ft;
1082
- t[11] !== ht || t[12] !== U ? (ft = U ?? ht.map(yl), t[11] = ht, t[12] = U, t[13] = ft) : ft = t[13];
1083
- const pt = ft;
1084
- let St, Ct, K, F, I, Lt, nt, lt, Q, gt, rt, E, vt, Vt;
1085
- if (t[14] !== h || t[15] !== u || t[16] !== P || t[17] !== pt || t[18] !== X || t[19] !== x?.graphObjectValues || t[20] !== x?.xAxis?.axis || t[21] !== x?.xAxis?.labels || t[22] !== x?.yAxis?.gridLines || t[23] !== x?.yAxis?.labels || t[24] !== x?.yAxis?.title || t[25] !== W || t[26] !== S || t[27] !== It || t[28] !== ht || t[29] !== _ || t[30] !== w || t[31] !== bt || t[32] !== M || t[33] !== Bt || t[34] !== Rt || t[35] !== N || t[36] !== c || t[37] !== yt || t[38] !== Mt || t[39] !== y.bottom || t[40] !== y.left || t[41] !== y.right || t[42] !== y.top || t[43] !== xt || t[44] !== q || t[45] !== T || t[46] !== j || t[47] !== mt || t[48] !== C || t[49] !== a || t[50] !== ot || t[51] !== Ot || t[52] !== at || t[53] !== O || t[54] !== Xt || t[55] !== J || t[56] !== k || t[57] !== ut || t[58] !== $t || t[59] !== Z || t[60] !== f?.graphObjectValues || t[61] !== f?.xAxis?.axis || t[62] !== f?.xAxis?.labels || t[63] !== f?.yAxis?.gridLines || t[64] !== f?.yAxis?.labels || t[65] !== f?.yAxis?.title || t[66] !== R || t[67] !== Ht || t[68] !== st || t[69] !== l || t[70] !== At) {
1086
- const r = Pe().domain([j, q]).range([bt, 0]).nice(), b = Le().domain(pt).range([0, T ? Math.max(M, T * pt.length) : xt ? Math.min(M, xt * pt.length) : M]).paddingInner(X), G = r.ticks(a);
1087
- Ct = te.svg, Q = B, gt = `${At}px`, rt = `${Bt}px`, E = `0 0 ${At} ${Bt}`, vt = "ltr", F = `translate(${y.left},${y.top})`;
1088
- let Et;
1089
- t[85] !== Mt || t[86] !== j || t[87] !== C || t[88] !== at || t[89] !== O || t[90] !== $t || t[91] !== R ? (Et = $t ? we(j < 0 ? 0 : j, C, at, O, R, Mt) : void 0, t[85] = Mt, t[86] = j, t[87] = C, t[88] = at, t[89] = O, t[90] = $t, t[91] = R, t[92] = Et) : Et = t[92];
1090
- const Ut = x?.xAxis?.axis, Jt = x?.yAxis?.labels;
1084
+ at = t[10];
1085
+ const bt = at;
1086
+ let vt;
1087
+ t[11] !== bt || t[12] !== K ? (vt = K ?? bt.map(vs), t[11] = bt, t[12] = K, t[13] = vt) : vt = t[13];
1088
+ const At = vt;
1089
+ let dt, Vt, et, P, j, zt, ht, ot, it, wt, ft, R, $t, Dt;
1090
+ if (t[14] !== m || t[15] !== u || t[16] !== H || t[17] !== At || t[18] !== G || t[19] !== x?.graphObjectValues || t[20] !== x?.xAxis?.axis || t[21] !== x?.xAxis?.labels || t[22] !== x?.yAxis?.gridLines || t[23] !== x?.yAxis?.labels || t[24] !== x?.yAxis?.title || t[25] !== Y || t[26] !== F || t[27] !== jt || t[28] !== bt || t[29] !== lt || t[30] !== y || t[31] !== tt || t[32] !== k || t[33] !== St || t[34] !== Et || t[35] !== z || t[36] !== b || t[37] !== Ft || t[38] !== Bt || t[39] !== N.bottom || t[40] !== N.left || t[41] !== N.right || t[42] !== N.top || t[43] !== yt || t[44] !== J || t[45] !== B || t[46] !== S || t[47] !== Lt || t[48] !== L || t[49] !== a || t[50] !== ut || t[51] !== Ct || t[52] !== xt || t[53] !== rt || t[54] !== O || t[55] !== Yt || t[56] !== Q || t[57] !== M || t[58] !== gt || t[59] !== kt || t[60] !== st || t[61] !== f?.graphObjectValues || t[62] !== f?.xAxis?.axis || t[63] !== f?.xAxis?.labels || t[64] !== f?.yAxis?.gridLines || t[65] !== f?.yAxis?.labels || t[66] !== f?.yAxis?.title || t[67] !== U || t[68] !== T || t[69] !== nt || t[70] !== s || t[71] !== Mt) {
1091
+ const c = We().domain([S, J]).range([tt, 0]).nice(), g = ze().domain(At).range([0, B ? Math.max(k, B * At.length) : yt ? Math.min(k, yt * At.length) : k]).paddingInner(G), q = c.ticks(a);
1092
+ Vt = ee.svg, it = Z, wt = `${Mt}px`, ft = `${St}px`, R = `0 0 ${Mt} ${St}`, $t = "ltr", P = `translate(${N.left},${N.top})`;
1091
1093
  let Zt;
1092
- t[93] !== Ut || t[94] !== Jt ? (Zt = {
1093
- axis: Ut,
1094
- label: Jt
1095
- }, t[93] = Ut, t[94] = Jt, t[95] = Zt) : Zt = t[95];
1096
- const dt = f?.xAxis?.axis, g = f?.yAxis?.labels;
1097
- let V;
1098
- t[96] !== dt || t[97] !== g ? (V = {
1099
- axis: dt,
1100
- label: g
1101
- }, t[96] = dt, t[97] = g, t[98] = V) : V = t[98], I = /* @__PURE__ */ i.jsx(Te, { hideAxisLine: Rt, y1: r(j < 0 ? 0 : j), y2: r(j < 0 ? 0 : j), x1: 0 - yt, x2: M + y.right, label: Et, labelPos: {
1102
- x: 0 - yt,
1094
+ t[86] !== Bt || t[87] !== S || t[88] !== L || t[89] !== xt || t[90] !== rt || t[91] !== O || t[92] !== kt || t[93] !== U ? (Zt = kt ? $e(S < 0 ? 0 : S, L, rt, O, U, Bt, xt) : void 0, t[86] = Bt, t[87] = S, t[88] = L, t[89] = xt, t[90] = rt, t[91] = O, t[92] = kt, t[93] = U, t[94] = Zt) : Zt = t[94];
1095
+ const Qt = x?.xAxis?.axis, qt = x?.yAxis?.labels;
1096
+ let Jt;
1097
+ t[95] !== Qt || t[96] !== qt ? (Jt = {
1098
+ axis: Qt,
1099
+ label: qt
1100
+ }, t[95] = Qt, t[96] = qt, t[97] = Jt) : Jt = t[97];
1101
+ const te = f?.xAxis?.axis, w = f?.yAxis?.labels;
1102
+ let h;
1103
+ t[98] !== te || t[99] !== w ? (h = {
1104
+ axis: te,
1105
+ label: w
1106
+ }, t[98] = te, t[99] = w, t[100] = h) : h = t[100], j = /* @__PURE__ */ i.jsx(Be, { hideAxisLine: Et, y1: c(S < 0 ? 0 : S), y2: c(S < 0 ? 0 : S), x1: 0 - Ft, x2: k + N.right, label: Zt, labelPos: {
1107
+ x: 0 - Ft,
1103
1108
  dx: 0,
1104
- dy: q < 0 ? "1em" : -5,
1105
- y: r(j < 0 ? 0 : j)
1106
- }, classNames: Zt, styles: V }), Lt = $t ? /* @__PURE__ */ i.jsx(Qe, { values: G.filter(gl), y: G.filter(pl).map((m) => r(m)), x1: 0 - yt, x2: M + y.right, styles: {
1109
+ dy: J < 0 ? "1em" : -5,
1110
+ y: c(S < 0 ? 0 : S)
1111
+ }, classNames: Jt, styles: h }), zt = kt ? /* @__PURE__ */ i.jsx(_e, { values: q.filter(bs), y: q.filter(ys).map((n) => c(n)), x1: 0 - Ft, x2: k + N.right, styles: {
1107
1112
  gridLines: f?.yAxis?.gridLines,
1108
1113
  labels: f?.yAxis?.labels
1109
1114
  }, classNames: {
1110
1115
  gridLines: x?.yAxis?.gridLines,
1111
1116
  labels: x?.yAxis?.labels
1112
- }, suffix: R, prefix: O, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: at, locale: Mt }) : null;
1113
- const d = 0 - yt - 15, L = bt / 2, o = f?.yAxis?.title, $ = x?.yAxis?.title;
1114
- t[99] !== u || t[100] !== d || t[101] !== L || t[102] !== o || t[103] !== $ ? (nt = /* @__PURE__ */ i.jsx(Se, { x: d, y: L, style: o, className: $, text: u, rotate90: !0 }), t[99] = u, t[100] = d, t[101] = L, t[102] = o, t[103] = $, t[104] = nt) : nt = t[104], t[105] !== S ? (lt = S.filter(fl).map(hl), t[105] = S, t[106] = lt) : lt = t[106], St = He, Vt = ht.map((m, he) => ie(b(m.id)) ? null : /* @__PURE__ */ i.jsxs(te.g, { className: "undp-viz-g-with-hover", initial: "initial", animate: c ? "whileInView" : "initial", variants: {
1117
+ }, suffix: U, prefix: O, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: rt, locale: Bt, padZeros: xt }) : null;
1118
+ const d = 0 - Ft - 15, A = tt / 2, o = f?.yAxis?.title, E = x?.yAxis?.title;
1119
+ t[101] !== u || t[102] !== d || t[103] !== A || t[104] !== o || t[105] !== E ? (ht = /* @__PURE__ */ i.jsx(Fe, { x: d, y: A, style: o, className: E, text: u, rotate90: !0 }), t[101] = u, t[102] = d, t[103] = A, t[104] = o, t[105] = E, t[106] = ht) : ht = t[106], t[107] !== F ? (ot = F.filter(gs).map(ps), t[107] = F, t[108] = ot) : ot = t[108], dt = Xe, Dt = bt.map((n, le) => se(g(n.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-g-with-hover", initial: "initial", animate: b ? "whileInView" : "initial", variants: {
1115
1120
  initial: {
1116
- opacity: k ? m.color && P[W.indexOf(m.color)] === k ? 1 : w : N ? N.indexOf(m.label) !== -1 ? 0.85 : w : 0.85
1121
+ opacity: M ? n.color && H[Y.indexOf(n.color)] === M && (!z || z.indexOf(n.id) !== -1) ? 1 : y : z ? z.indexOf(n.label) !== -1 ? 0.85 : y : 0.85
1117
1122
  },
1118
1123
  whileInView: {
1119
- opacity: k ? m.color && P[W.indexOf(m.color)] === k ? 1 : w : N ? N.indexOf(m.label) !== -1 ? 0.85 : w : 0.85,
1124
+ opacity: M ? n.color && H[Y.indexOf(n.color)] === M && (!z || z.indexOf(n.id) !== -1) ? 1 : y : z ? z.indexOf(n.label) !== -1 ? 0.85 : y : 0.85,
1120
1125
  transition: {
1121
- duration: h.duration
1126
+ duration: m.duration
1122
1127
  }
1123
1128
  }
1124
1129
  }, exit: {
1125
1130
  opacity: 0,
1126
1131
  transition: {
1127
- duration: h.duration
1132
+ duration: m.duration
1128
1133
  }
1129
- }, onMouseEnter: (oe) => {
1130
- Tt(m), it(oe.clientY), Pt(oe.clientX), Ot?.(m);
1134
+ }, onMouseEnter: (re) => {
1135
+ Pt(n), _(re.clientY), Xt(re.clientX), Ct?.(n);
1131
1136
  }, onClick: () => {
1132
- (ot || _) && (Ne(mt, m) && J ? (qt(void 0), ot?.(void 0)) : (qt(m), ot?.(m)));
1133
- }, onMouseMove: (oe) => {
1134
- Tt(m), it(oe.clientY), Pt(oe.clientX);
1137
+ (ut || lt) && (Te(Lt, n) && Q ? (Ht(void 0), ut?.(void 0)) : (Ht(n), ut?.(n)));
1138
+ }, onMouseMove: (re) => {
1139
+ Pt(n), _(re.clientY), Xt(re.clientX);
1135
1140
  }, onMouseLeave: () => {
1136
- Tt(void 0), Pt(void 0), it(void 0), Ot?.(void 0);
1141
+ Pt(void 0), Xt(void 0), _(void 0), Ct?.(void 0);
1137
1142
  }, children: [
1138
- Ht && /* @__PURE__ */ i.jsx(te.rect, { width: b.bandwidth(), variants: {
1143
+ T && /* @__PURE__ */ i.jsx(ee.rect, { width: g.bandwidth(), variants: {
1139
1144
  initial: {
1140
- height: bt,
1145
+ height: tt,
1141
1146
  y: 0,
1142
- x: b(`${m.id}`),
1143
- fill: Ht
1147
+ x: g(`${n.id}`),
1148
+ fill: T
1144
1149
  },
1145
1150
  whileInView: {
1146
- height: bt,
1151
+ height: tt,
1147
1152
  y: 0,
1148
- x: b(`${m.id}`),
1149
- fill: Ht
1153
+ x: g(`${n.id}`),
1154
+ fill: T
1150
1155
  }
1151
- }, initial: "initial", animate: c ? "whileInView" : "initial", exit: {
1156
+ }, initial: "initial", animate: b ? "whileInView" : "initial", exit: {
1152
1157
  opacity: 0,
1153
1158
  transition: {
1154
- duration: h.duration
1159
+ duration: m.duration
1155
1160
  }
1156
1161
  } }),
1157
- m.size ? /* @__PURE__ */ i.jsx(te.rect, { width: b.bandwidth(), initial: "initial", animate: c ? "whileInView" : "initial", variants: {
1162
+ n.size ? /* @__PURE__ */ i.jsx(ee.rect, { width: g.bandwidth(), initial: "initial", animate: b ? "whileInView" : "initial", variants: {
1158
1163
  initial: {
1159
1164
  height: 0,
1160
- x: b(`${m.id}`),
1161
- y: r(0),
1162
- fill: It.filter(ml).length === 0 ? P[0] : m.color ? P[W.indexOf(m.color)] : ye.gray
1165
+ x: g(`${n.id}`),
1166
+ y: c(0),
1167
+ fill: jt.filter(fs).length === 0 ? H[0] : n.color ? H[Y.indexOf(n.color)] : ve.gray
1163
1168
  },
1164
1169
  whileInView: {
1165
- height: m.size ? Math.abs(r(m.size) - r(0)) : 0,
1166
- y: m.size && m.size > 0 ? r(m.size) : r(0),
1167
- x: b(`${m.id}`),
1168
- fill: It.filter(xl).length === 0 ? P[0] : m.color ? P[W.indexOf(m.color)] : ye.gray,
1170
+ height: n.size ? Math.abs(c(n.size) - c(0)) : 0,
1171
+ y: n.size && n.size > 0 ? c(n.size) : c(0),
1172
+ x: g(`${n.id}`),
1173
+ fill: jt.filter(hs).length === 0 ? H[0] : n.color ? H[Y.indexOf(n.color)] : ve.gray,
1169
1174
  transition: {
1170
- duration: h.duration
1175
+ duration: m.duration
1171
1176
  }
1172
1177
  }
1173
1178
  }, exit: {
1174
1179
  height: 0,
1175
- y: r(0),
1180
+ y: c(0),
1176
1181
  transition: {
1177
- duration: h.duration
1182
+ duration: m.duration
1178
1183
  }
1179
1184
  } }) : null,
1180
- ut ? /* @__PURE__ */ i.jsx(Ze, { value: `${m.label}`.length < st ? `${m.label}` : `${`${m.label}`.substring(0, st)}...`, y: (m.size || 0) < 0 ? 0 : r(0) + 5, x: b(`${m.id}`), width: b.bandwidth(), height: (m.size || 0) < 0 ? r(0) - 5 : y.bottom, style: f?.xAxis?.labels, className: x?.xAxis?.labels, alignment: (m.size || 0) < 0 ? "bottom" : "top", animate: h, isInView: c }) : null,
1181
- Z ? /* @__PURE__ */ i.jsx(te.text, { style: {
1185
+ gt ? /* @__PURE__ */ i.jsx(ti, { value: `${n.label}`.length < nt ? `${n.label}` : `${`${n.label}`.substring(0, nt)}...`, y: (n.size || 0) < 0 ? 0 : c(0) + 5, x: g(`${n.id}`), width: g.bandwidth(), height: (n.size || 0) < 0 ? c(0) - 5 : N.bottom, style: f?.xAxis?.labels, className: x?.xAxis?.labels, alignment: (n.size || 0) < 0 ? "bottom" : "top", animate: m, isInView: b }) : null,
1186
+ st ? /* @__PURE__ */ i.jsx(ee.text, { style: {
1182
1187
  textAnchor: "middle",
1183
1188
  ...f?.graphObjectValues || {}
1184
- }, className: Ce("graph-value text-sm", !l && P.length > 1 ? "fill-primary-gray-600 dark:fill-primary-gray-300" : "", x?.graphObjectValues), dy: m.size ? m.size >= 0 ? "-5px" : "1em" : "-5px", variants: {
1189
+ }, className: Ve("graph-value text-sm", !s && H.length > 1 ? "fill-primary-gray-600 dark:fill-primary-gray-300" : "", x?.graphObjectValues), dy: n.size ? n.size >= 0 ? "-5px" : "1em" : "-5px", variants: {
1185
1190
  initial: {
1186
- x: b(`${m.id}`) + b.bandwidth() / 2,
1187
- y: r(0),
1191
+ x: g(`${n.id}`) + g.bandwidth() / 2,
1192
+ y: c(0),
1188
1193
  opacity: 0,
1189
- fill: l || (It.filter(ul).length === 0 ? P[0] : m.color ? P[W.indexOf(m.color)] : ye.gray)
1194
+ fill: s || (jt.filter(ms).length === 0 ? H[0] : n.color ? H[Y.indexOf(n.color)] : ve.gray)
1190
1195
  },
1191
1196
  whileInView: {
1192
- x: b(`${m.id}`) + b.bandwidth() / 2,
1193
- y: r(m.size || 0),
1194
- fill: l || (It.filter(dl).length === 0 ? P[0] : m.color ? P[W.indexOf(m.color)] : ye.gray),
1197
+ x: g(`${n.id}`) + g.bandwidth() / 2,
1198
+ y: c(n.size || 0),
1199
+ fill: s || (jt.filter(xs).length === 0 ? H[0] : n.color ? H[Y.indexOf(n.color)] : ve.gray),
1195
1200
  opacity: 1,
1196
1201
  transition: {
1197
- duration: h.duration
1202
+ duration: m.duration
1198
1203
  }
1199
1204
  }
1200
- }, initial: "initial", animate: c ? "whileInView" : "initial", exit: {
1205
+ }, initial: "initial", animate: b ? "whileInView" : "initial", exit: {
1201
1206
  opacity: 0,
1202
1207
  transition: {
1203
- duration: h.duration
1208
+ duration: m.duration
1204
1209
  }
1205
- }, children: we(m.size, C, at, O, R, Mt) }) : null
1206
- ] }, m.label)), K = Xt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Xt.map((m, he) => /* @__PURE__ */ i.jsx(Ke, { text: m.text, color: m.color, y: r(m.value), x1: 0 - yt, x2: M + y.right, classNames: m.classNames, styles: m.styles, animate: h, isInView: c }, he)) }) : null, t[14] = h, t[15] = u, t[16] = P, t[17] = pt, t[18] = X, t[19] = x?.graphObjectValues, t[20] = x?.xAxis?.axis, t[21] = x?.xAxis?.labels, t[22] = x?.yAxis?.gridLines, t[23] = x?.yAxis?.labels, t[24] = x?.yAxis?.title, t[25] = W, t[26] = S, t[27] = It, t[28] = ht, t[29] = _, t[30] = w, t[31] = bt, t[32] = M, t[33] = Bt, t[34] = Rt, t[35] = N, t[36] = c, t[37] = yt, t[38] = Mt, t[39] = y.bottom, t[40] = y.left, t[41] = y.right, t[42] = y.top, t[43] = xt, t[44] = q, t[45] = T, t[46] = j, t[47] = mt, t[48] = C, t[49] = a, t[50] = ot, t[51] = Ot, t[52] = at, t[53] = O, t[54] = Xt, t[55] = J, t[56] = k, t[57] = ut, t[58] = $t, t[59] = Z, t[60] = f?.graphObjectValues, t[61] = f?.xAxis?.axis, t[62] = f?.xAxis?.labels, t[63] = f?.yAxis?.gridLines, t[64] = f?.yAxis?.labels, t[65] = f?.yAxis?.title, t[66] = R, t[67] = Ht, t[68] = st, t[69] = l, t[70] = At, t[71] = St, t[72] = Ct, t[73] = K, t[74] = F, t[75] = I, t[76] = Lt, t[77] = nt, t[78] = lt, t[79] = Q, t[80] = gt, t[81] = rt, t[82] = E, t[83] = vt, t[84] = Vt;
1210
+ }, children: $e(n.size, L, rt, O, U, Bt, xt) }) : null
1211
+ ] }, n.label)), et = Yt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Yt.map((n, le) => /* @__PURE__ */ i.jsx(Qe, { text: n.text, color: n.color, y: c(n.value), x1: 0 - Ft, x2: k + N.right, classNames: n.classNames, styles: n.styles, animate: m, isInView: b }, le)) }) : null, t[14] = m, t[15] = u, t[16] = H, t[17] = At, t[18] = G, t[19] = x?.graphObjectValues, t[20] = x?.xAxis?.axis, t[21] = x?.xAxis?.labels, t[22] = x?.yAxis?.gridLines, t[23] = x?.yAxis?.labels, t[24] = x?.yAxis?.title, t[25] = Y, t[26] = F, t[27] = jt, t[28] = bt, t[29] = lt, t[30] = y, t[31] = tt, t[32] = k, t[33] = St, t[34] = Et, t[35] = z, t[36] = b, t[37] = Ft, t[38] = Bt, t[39] = N.bottom, t[40] = N.left, t[41] = N.right, t[42] = N.top, t[43] = yt, t[44] = J, t[45] = B, t[46] = S, t[47] = Lt, t[48] = L, t[49] = a, t[50] = ut, t[51] = Ct, t[52] = xt, t[53] = rt, t[54] = O, t[55] = Yt, t[56] = Q, t[57] = M, t[58] = gt, t[59] = kt, t[60] = st, t[61] = f?.graphObjectValues, t[62] = f?.xAxis?.axis, t[63] = f?.xAxis?.labels, t[64] = f?.yAxis?.gridLines, t[65] = f?.yAxis?.labels, t[66] = f?.yAxis?.title, t[67] = U, t[68] = T, t[69] = nt, t[70] = s, t[71] = Mt, t[72] = dt, t[73] = Vt, t[74] = et, t[75] = P, t[76] = j, t[77] = zt, t[78] = ht, t[79] = ot, t[80] = it, t[81] = wt, t[82] = ft, t[83] = R, t[84] = $t, t[85] = Dt;
1207
1212
  } else
1208
- St = t[71], Ct = t[72], K = t[73], F = t[74], I = t[75], Lt = t[76], nt = t[77], lt = t[78], Q = t[79], gt = t[80], rt = t[81], E = t[82], vt = t[83], Vt = t[84];
1209
- let ct;
1210
- t[107] !== St || t[108] !== K || t[109] !== Vt ? (ct = /* @__PURE__ */ i.jsxs(St, { children: [
1211
- Vt,
1212
- K
1213
- ] }), t[107] = St, t[108] = K, t[109] = Vt, t[110] = ct) : ct = t[110];
1214
- let A;
1215
- t[111] !== S ? (A = S.filter(cl).map(rl), t[111] = S, t[112] = A) : A = t[112];
1213
+ dt = t[72], Vt = t[73], et = t[74], P = t[75], j = t[76], zt = t[77], ht = t[78], ot = t[79], it = t[80], wt = t[81], ft = t[82], R = t[83], $t = t[84], Dt = t[85];
1214
+ let pt;
1215
+ t[109] !== dt || t[110] !== et || t[111] !== Dt ? (pt = /* @__PURE__ */ i.jsxs(dt, { children: [
1216
+ Dt,
1217
+ et
1218
+ ] }), t[109] = dt, t[110] = et, t[111] = Dt, t[112] = pt) : pt = t[112];
1219
+ let $;
1220
+ t[113] !== F ? ($ = F.filter(us).map(ds), t[113] = F, t[114] = $) : $ = t[114];
1216
1221
  let Wt;
1217
- t[113] !== F || t[114] !== I || t[115] !== Lt || t[116] !== nt || t[117] !== lt || t[118] !== ct || t[119] !== A ? (Wt = /* @__PURE__ */ i.jsxs("g", { transform: F, children: [
1218
- I,
1219
- Lt,
1220
- nt,
1221
- lt,
1222
- ct,
1223
- A
1224
- ] }), t[113] = F, t[114] = I, t[115] = Lt, t[116] = nt, t[117] = lt, t[118] = ct, t[119] = A, t[120] = Wt) : Wt = t[120];
1225
- let n;
1226
- t[121] !== Ct || t[122] !== Q || t[123] !== gt || t[124] !== rt || t[125] !== E || t[126] !== vt || t[127] !== Wt ? (n = /* @__PURE__ */ i.jsx(Ct, { ref: Q, width: gt, height: rt, viewBox: E, direction: vt, children: Wt }), t[121] = Ct, t[122] = Q, t[123] = gt, t[124] = rt, t[125] = E, t[126] = vt, t[127] = Wt, t[128] = n) : n = t[128];
1222
+ t[115] !== P || t[116] !== j || t[117] !== zt || t[118] !== ht || t[119] !== ot || t[120] !== pt || t[121] !== $ ? (Wt = /* @__PURE__ */ i.jsxs("g", { transform: P, children: [
1223
+ j,
1224
+ zt,
1225
+ ht,
1226
+ ot,
1227
+ pt,
1228
+ $
1229
+ ] }), t[115] = P, t[116] = j, t[117] = zt, t[118] = ht, t[119] = ot, t[120] = pt, t[121] = $, t[122] = Wt) : Wt = t[122];
1230
+ let r;
1231
+ t[123] !== Vt || t[124] !== it || t[125] !== wt || t[126] !== ft || t[127] !== R || t[128] !== $t || t[129] !== Wt ? (r = /* @__PURE__ */ i.jsx(Vt, { ref: it, width: wt, height: ft, viewBox: R, direction: $t, children: Wt }), t[123] = Vt, t[124] = it, t[125] = wt, t[126] = ft, t[127] = R, t[128] = $t, t[129] = Wt, t[130] = r) : r = t[130];
1227
1232
  let v;
1228
- t[129] !== x?.tooltip || t[130] !== et || t[131] !== Y || t[132] !== Ft || t[133] !== f?.tooltip || t[134] !== Nt ? (v = Ft && Nt && et && Y ? /* @__PURE__ */ i.jsx(je, { data: Ft, body: Nt, xPos: et, yPos: Y, backgroundStyle: f?.tooltip, className: x?.tooltip }) : null, t[129] = x?.tooltip, t[130] = et, t[131] = Y, t[132] = Ft, t[133] = f?.tooltip, t[134] = Nt, t[135] = v) : v = t[135];
1229
- let zt;
1230
- t[136] !== x?.modal || t[137] !== _ || t[138] !== mt ? (zt = _ && mt !== void 0 ? /* @__PURE__ */ i.jsx(Be, { body: _, data: mt, setData: qt, className: x?.modal }) : null, t[136] = x?.modal, t[137] = _, t[138] = mt, t[139] = zt) : zt = t[139];
1231
- let wt;
1232
- return t[140] !== n || t[141] !== v || t[142] !== zt ? (wt = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1233
- n,
1233
+ t[131] !== x?.tooltip || t[132] !== ct || t[133] !== W || t[134] !== mt || t[135] !== f?.tooltip || t[136] !== Tt ? (v = mt && Tt && ct && W ? /* @__PURE__ */ i.jsx(Se, { data: mt, body: Tt, xPos: ct, yPos: W, backgroundStyle: f?.tooltip, className: x?.tooltip }) : null, t[131] = x?.tooltip, t[132] = ct, t[133] = W, t[134] = mt, t[135] = f?.tooltip, t[136] = Tt, t[137] = v) : v = t[137];
1234
+ let It;
1235
+ t[138] !== x?.modal || t[139] !== lt || t[140] !== Lt ? (It = lt && Lt !== void 0 ? /* @__PURE__ */ i.jsx(Pe, { body: lt, data: Lt, setData: Ht, className: x?.modal }) : null, t[138] = x?.modal, t[139] = lt, t[140] = Lt, t[141] = It) : It = t[141];
1236
+ let Ot;
1237
+ return t[142] !== r || t[143] !== v || t[144] !== It ? (Ot = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1238
+ r,
1234
1239
  v,
1235
- zt
1236
- ] }), t[140] = n, t[141] = v, t[142] = zt, t[143] = wt) : wt = t[143], wt;
1240
+ It
1241
+ ] }), t[142] = r, t[143] = v, t[144] = It, t[145] = Ot) : Ot = t[145], Ot;
1237
1242
  }
1238
- function rl(e) {
1243
+ function ds(e) {
1239
1244
  return e.layer;
1240
1245
  }
1241
- function cl(e) {
1246
+ function us(e) {
1242
1247
  return e.position === "after";
1243
1248
  }
1244
- function dl(e) {
1249
+ function xs(e) {
1245
1250
  return e.color;
1246
1251
  }
1247
- function ul(e) {
1252
+ function ms(e) {
1248
1253
  return e.color;
1249
1254
  }
1250
- function xl(e) {
1255
+ function hs(e) {
1251
1256
  return e.color;
1252
1257
  }
1253
- function ml(e) {
1258
+ function fs(e) {
1254
1259
  return e.color;
1255
1260
  }
1256
- function hl(e) {
1261
+ function ps(e) {
1257
1262
  return e.layer;
1258
1263
  }
1259
- function fl(e) {
1264
+ function gs(e) {
1260
1265
  return e.position === "before";
1261
1266
  }
1262
- function pl(e) {
1267
+ function ys(e) {
1263
1268
  return e !== 0;
1264
1269
  }
1265
- function gl(e) {
1270
+ function bs(e) {
1266
1271
  return e !== 0;
1267
1272
  }
1268
- function yl(e) {
1273
+ function vs(e) {
1269
1274
  return `${e.id}`;
1270
1275
  }
1271
- function bl(e) {
1276
+ function ws(e) {
1272
1277
  return {
1273
1278
  id: e,
1274
1279
  label: e,
@@ -1276,352 +1281,354 @@ function bl(e) {
1276
1281
  size: null
1277
1282
  };
1278
1283
  }
1279
- function vl(e) {
1280
- const t = $e.c(133), {
1281
- data: s,
1282
- graphTitle: H,
1283
- colors: Gt,
1284
- suffix: Kt,
1285
- sources: It,
1286
- prefix: At,
1287
- graphDescription: Bt,
1288
- barPadding: P,
1289
- showValues: R,
1284
+ function As(e) {
1285
+ const t = Me.c(134), {
1286
+ data: l,
1287
+ graphTitle: X,
1288
+ colors: Rt,
1289
+ suffix: Ut,
1290
+ sources: jt,
1291
+ prefix: Mt,
1292
+ graphDescription: St,
1293
+ barPadding: H,
1294
+ showValues: U,
1290
1295
  showTicks: O,
1291
- truncateBy: X,
1292
- height: ut,
1293
- width: Z,
1294
- footNote: $t,
1295
- colorDomain: W,
1296
- colorLegendTitle: st,
1297
- highlightedDataPoints: Nt,
1298
- padding: Ot,
1299
- backgroundColor: Xt,
1300
- topMargin: k,
1301
- bottomMargin: q,
1302
- leftMargin: j,
1303
- rightMargin: N,
1304
- showLabels: ot,
1305
- relativeHeight: U,
1306
- tooltip: xt,
1307
- onSeriesMouseOver: T,
1308
- refValues: J,
1309
- showColorScale: _,
1296
+ truncateBy: G,
1297
+ height: gt,
1298
+ width: st,
1299
+ footNote: kt,
1300
+ colorDomain: Y,
1301
+ colorLegendTitle: nt,
1302
+ highlightedDataPoints: Tt,
1303
+ padding: Ct,
1304
+ backgroundColor: Yt,
1305
+ topMargin: M,
1306
+ bottomMargin: J,
1307
+ leftMargin: S,
1308
+ rightMargin: z,
1309
+ showLabels: ut,
1310
+ relativeHeight: K,
1311
+ tooltip: yt,
1312
+ onSeriesMouseOver: B,
1313
+ refValues: Q,
1314
+ showColorScale: lt,
1310
1315
  graphID: u,
1311
- maxValue: l,
1316
+ maxValue: s,
1312
1317
  minValue: a,
1313
1318
  onSeriesMouseClick: f,
1314
1319
  graphDownload: x,
1315
- dataDownload: w,
1316
- sortData: h,
1317
- labelOrder: at,
1318
- language: S,
1319
- showNAColor: C,
1320
- minHeight: Ht,
1321
- theme: Rt,
1322
- maxBarThickness: Mt,
1323
- maxNumberOfBars: yt,
1324
- minBarThickness: Yt,
1325
- ariaLabel: tt,
1320
+ dataDownload: y,
1321
+ sortData: m,
1322
+ labelOrder: rt,
1323
+ language: F,
1324
+ showNAColor: L,
1325
+ minHeight: T,
1326
+ theme: Et,
1327
+ maxBarThickness: Bt,
1328
+ maxNumberOfBars: xt,
1329
+ minBarThickness: Ft,
1330
+ ariaLabel: Gt,
1326
1331
  resetSelectionOnDoubleClick: D,
1327
- detailsOnClick: B,
1328
- barAxisTitle: p,
1329
- noOfTicks: c,
1330
- valueColor: jt,
1331
- styles: z,
1332
- classNames: y,
1333
- filterNA: Ft,
1334
- animate: Tt,
1335
- dimmedOpacity: mt,
1336
- precision: qt,
1337
- customLayers: et,
1338
- timeline: Pt,
1339
- naLabel: Y,
1340
- orientation: it,
1341
- trackColor: M,
1342
- hideAxisLine: bt,
1343
- locale: kt
1344
- } = e, ht = Kt === void 0 ? "" : Kt, ft = At === void 0 ? "" : At, pt = P === void 0 ? 0.25 : P, St = R === void 0 ? !0 : R, Ct = O === void 0 ? !0 : O, K = X === void 0 ? 999 : X, F = Xt === void 0 ? !1 : Xt, I = ot === void 0 ? !0 : ot, Lt = _ === void 0 ? !0 : _, nt = x === void 0 ? !1 : x, lt = w === void 0 ? !1 : w, Q = S === void 0 ? "en" : S, gt = C === void 0 ? !0 : C, rt = Ht === void 0 ? 0 : Ht, E = Rt === void 0 ? "light" : Rt, vt = D === void 0 ? !0 : D, Vt = c === void 0 ? 5 : c, ct = Ft === void 0 ? !0 : Ft, A = Tt === void 0 ? !1 : Tt, Wt = mt === void 0 ? 0.3 : mt, n = qt === void 0 ? 2 : qt;
1332
+ detailsOnClick: V,
1333
+ barAxisTitle: Z,
1334
+ noOfTicks: p,
1335
+ valueColor: b,
1336
+ styles: I,
1337
+ classNames: C,
1338
+ filterNA: N,
1339
+ animate: mt,
1340
+ dimmedOpacity: Pt,
1341
+ precision: Lt,
1342
+ customLayers: Ht,
1343
+ timeline: ct,
1344
+ naLabel: Xt,
1345
+ orientation: W,
1346
+ trackColor: _,
1347
+ hideAxisLine: k,
1348
+ locale: tt,
1349
+ padZeros: at
1350
+ } = e, bt = Ut === void 0 ? "" : Ut, vt = Mt === void 0 ? "" : Mt, At = H === void 0 ? 0.25 : H, dt = U === void 0 ? !0 : U, Vt = O === void 0 ? !0 : O, et = G === void 0 ? 999 : G, P = Yt === void 0 ? !1 : Yt, j = ut === void 0 ? !0 : ut, zt = lt === void 0 ? !0 : lt, ht = x === void 0 ? !1 : x, ot = y === void 0 ? !1 : y, it = F === void 0 ? "en" : F, wt = L === void 0 ? !0 : L, ft = T === void 0 ? 0 : T, R = Et === void 0 ? "light" : Et, $t = D === void 0 ? !0 : D, Dt = p === void 0 ? 5 : p, pt = N === void 0 ? !0 : N, $ = mt === void 0 ? !1 : mt, Wt = Pt === void 0 ? 0.3 : Pt, r = Lt === void 0 ? 2 : Lt;
1345
1351
  let v;
1346
- t[0] !== et ? (v = et === void 0 ? [] : et, t[0] = et, t[1] = v) : v = t[1];
1347
- const zt = v;
1348
- let wt;
1349
- t[2] !== Pt ? (wt = Pt === void 0 ? {
1352
+ t[0] !== Ht ? (v = Ht === void 0 ? [] : Ht, t[0] = Ht, t[1] = v) : v = t[1];
1353
+ const It = v;
1354
+ let Ot;
1355
+ t[2] !== ct ? (Ot = ct === void 0 ? {
1350
1356
  enabled: !1,
1351
1357
  autoplay: !1,
1352
1358
  showOnlyActiveDate: !0
1353
- } : Pt, t[2] = Pt, t[3] = wt) : wt = t[3];
1354
- const r = wt, b = Y === void 0 ? "NA" : Y, G = it === void 0 ? "vertical" : it, Et = bt === void 0 ? !1 : bt, Ut = kt === void 0 ? "en" : kt, Jt = G === "horizontal" ? Ui : nl, [Zt, dt] = _t(0), [g, V] = _t(0), [d, L] = _t(r.autoplay);
1355
- let o;
1356
- if (t[4] !== s || t[5] !== r.dateFormat) {
1357
- let ee;
1358
- t[7] !== r.dateFormat ? (ee = (ke) => Re(`${ke.date}`, r.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = r.dateFormat, t[8] = ee) : ee = t[8], o = [...new Set(s.filter(Fl).map(ee))], o.sort(Bl), t[4] = s, t[5] = r.dateFormat, t[6] = o;
1359
+ } : ct, t[2] = ct, t[3] = Ot) : Ot = t[3];
1360
+ const c = Ot, g = Xt === void 0 ? "NA" : Xt, q = W === void 0 ? "vertical" : W, Zt = k === void 0 ? !1 : k, Qt = tt === void 0 ? "en" : tt, qt = at === void 0 ? !1 : at, Jt = q === "horizontal" ? Ji : cs, [te, w] = _t(0), [h, d] = _t(0), [A, o] = _t(c.autoplay);
1361
+ let E;
1362
+ if (t[4] !== l || t[5] !== c.dateFormat) {
1363
+ let ie;
1364
+ t[7] !== c.dateFormat ? (ie = (Le) => qe(`${Le.date}`, c.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = c.dateFormat, t[8] = ie) : ie = t[8], E = [...new Set(l.filter(Hs).map(ie))], E.sort(Ps), t[4] = l, t[5] = c.dateFormat, t[6] = E;
1359
1365
  } else
1360
- o = t[6];
1361
- const $ = o, [m, he] = _t(r.autoplay ? 0 : $.length - 1), [oe, Oe] = _t(void 0), be = Ae(null), Me = Ae(null);
1362
- let pe, ge;
1363
- t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (pe = () => {
1364
- const ee = new ResizeObserver((ke) => {
1365
- dt(ke[0].target.clientWidth || 620), V(ke[0].target.clientHeight || 480);
1366
+ E = t[6];
1367
+ const n = E, [le, re] = _t(c.autoplay ? 0 : n.length - 1), [ye, ke] = _t(void 0), we = Oe(null), Ce = Oe(null);
1368
+ let ge, be;
1369
+ t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ge = () => {
1370
+ const ie = new ResizeObserver((Le) => {
1371
+ w(Le[0].target.clientWidth || 620), d(Le[0].target.clientHeight || 480);
1366
1372
  });
1367
- return be.current && ee.observe(be.current), () => ee.disconnect();
1368
- }, ge = [], t[9] = pe, t[10] = ge) : (pe = t[9], ge = t[10]), Ie(pe, ge);
1369
- let ve, fe;
1370
- t[11] !== d || t[12] !== r.speed || t[13] !== $ ? (ve = () => {
1371
- const ee = setInterval(() => {
1372
- he((ke) => ke < $.length - 1 ? ke + 1 : 0);
1373
- }, (r.speed || 2) * 1e3);
1374
- return d || clearInterval(ee), () => clearInterval(ee);
1375
- }, fe = [$, d, r.speed], t[11] = d, t[12] = r.speed, t[13] = $, t[14] = ve, t[15] = fe) : (ve = t[14], fe = t[15]), Ie(ve, fe);
1376
- const de = r.dateFormat || "yyyy";
1377
- let ne;
1378
- t[16] !== m || t[17] !== de || t[18] !== r.showOnlyActiveDate || t[19] !== $ ? (ne = Ee($, m, r.showOnlyActiveDate, de), t[16] = m, t[17] = de, t[18] = r.showOnlyActiveDate, t[19] = $, t[20] = ne) : ne = t[20];
1379
- const re = ne, ue = y?.graphContainer, xe = z?.graphContainer;
1380
- let le;
1381
- t[21] !== y?.description || t[22] !== y?.title || t[23] !== s || t[24] !== lt || t[25] !== Bt || t[26] !== nt || t[27] !== H || t[28] !== z?.description || t[29] !== z?.title || t[30] !== Z ? (le = H || Bt || nt || lt ? /* @__PURE__ */ i.jsx(_e, { styles: {
1382
- title: z?.title,
1383
- description: z?.description
1373
+ return we.current && ie.observe(we.current), () => ie.disconnect();
1374
+ }, be = [], t[9] = ge, t[10] = be) : (ge = t[9], be = t[10]), je(ge, be);
1375
+ let Ae, pe;
1376
+ t[11] !== A || t[12] !== c.speed || t[13] !== n ? (Ae = () => {
1377
+ const ie = setInterval(() => {
1378
+ re((Le) => Le < n.length - 1 ? Le + 1 : 0);
1379
+ }, (c.speed || 2) * 1e3);
1380
+ return A || clearInterval(ie), () => clearInterval(ie);
1381
+ }, pe = [n, A, c.speed], t[11] = A, t[12] = c.speed, t[13] = n, t[14] = Ae, t[15] = pe) : (Ae = t[14], pe = t[15]), je(Ae, pe);
1382
+ const xe = c.dateFormat || "yyyy";
1383
+ let ce;
1384
+ t[16] !== le || t[17] !== xe || t[18] !== c.showOnlyActiveDate || t[19] !== n ? (ce = Ze(n, le, c.showOnlyActiveDate, xe), t[16] = le, t[17] = xe, t[18] = c.showOnlyActiveDate, t[19] = n, t[20] = ce) : ce = t[20];
1385
+ const de = ce, me = C?.graphContainer, he = I?.graphContainer;
1386
+ let ae;
1387
+ t[21] !== C?.description || t[22] !== C?.title || t[23] !== l || t[24] !== ot || t[25] !== St || t[26] !== ht || t[27] !== X || t[28] !== I?.description || t[29] !== I?.title || t[30] !== st ? (ae = X || St || ht || ot ? /* @__PURE__ */ i.jsx(ei, { styles: {
1388
+ title: I?.title,
1389
+ description: I?.description
1384
1390
  }, classNames: {
1385
- title: y?.title,
1386
- description: y?.description
1387
- }, graphTitle: H, graphDescription: Bt, width: Z, graphDownload: nt ? Me : void 0, dataDownload: lt ? s.map(Sl).filter(Tl).length > 0 ? s.map(jl).filter(Nl) : s.filter(Il) : null }) : null, t[21] = y?.description, t[22] = y?.title, t[23] = s, t[24] = lt, t[25] = Bt, t[26] = nt, t[27] = H, t[28] = z?.description, t[29] = z?.title, t[30] = Z, t[31] = le) : le = t[31];
1388
- let se;
1389
- t[32] !== m || t[33] !== re || t[34] !== d || t[35] !== r.enabled || t[36] !== $ ? (se = r.enabled && $.length > 0 && re ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center pb-4", dir: "ltr", children: [
1391
+ title: C?.title,
1392
+ description: C?.description
1393
+ }, graphTitle: X, graphDescription: St, width: st, graphDownload: ht ? Ce : void 0, dataDownload: ot ? l.map(Fs).filter(Bs).length > 0 ? l.map(Ss).filter(Ts) : l.filter(js) : null }) : null, t[21] = C?.description, t[22] = C?.title, t[23] = l, t[24] = ot, t[25] = St, t[26] = ht, t[27] = X, t[28] = I?.description, t[29] = I?.title, t[30] = st, t[31] = ae) : ae = t[31];
1394
+ let oe;
1395
+ t[32] !== le || t[33] !== de || t[34] !== A || t[35] !== c.enabled || t[36] !== n ? (oe = c.enabled && n.length > 0 && de ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center pb-4", dir: "ltr", children: [
1390
1396
  /* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
1391
- L(!d);
1392
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": d ? "Click to pause animation" : "Click to play animation", children: d ? /* @__PURE__ */ i.jsx(li, {}) : /* @__PURE__ */ i.jsx(si, {}) }),
1393
- /* @__PURE__ */ i.jsx(Ge, { min: $[0], max: $[$.length - 1], marks: re, step: null, defaultValue: $[$.length - 1], value: $[m], onChangeComplete: (ee) => {
1394
- he($.indexOf(ee));
1395
- }, onChange: (ee) => {
1396
- he($.indexOf(ee));
1397
+ o(!A);
1398
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": A ? "Click to pause animation" : "Click to play animation", children: A ? /* @__PURE__ */ i.jsx(ai, {}) : /* @__PURE__ */ i.jsx(oi, {}) }),
1399
+ /* @__PURE__ */ i.jsx(Re, { min: n[0], max: n[n.length - 1], marks: de, step: null, defaultValue: n[n.length - 1], value: n[le], onChangeComplete: (ie) => {
1400
+ re(n.indexOf(ie));
1401
+ }, onChange: (ie) => {
1402
+ re(n.indexOf(ie));
1397
1403
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
1398
- ] }) : null, t[32] = m, t[33] = re, t[34] = d, t[35] = r.enabled, t[36] = $, t[37] = se) : se = t[37];
1399
- let ce;
1400
- t[38] !== y?.colorLegend || t[39] !== W || t[40] !== st || t[41] !== Gt || t[42] !== s || t[43] !== Lt || t[44] !== gt || t[45] !== E || t[46] !== Z ? (ce = Lt && s.filter(Dl).length !== 0 && s.length > 0 ? /* @__PURE__ */ i.jsx(ei, { width: Z, colorLegendTitle: st, colors: Gt || ye[E].categoricalColors.colors, colorDomain: W || ri(s, "color", !0), setSelectedColor: Oe, showNAColor: gt, className: y?.colorLegend }) : null, t[38] = y?.colorLegend, t[39] = W, t[40] = st, t[41] = Gt, t[42] = s, t[43] = Lt, t[44] = gt, t[45] = E, t[46] = Z, t[47] = ce) : ce = t[47];
1401
- let Qt;
1402
- t[48] !== s.length ? (Qt = s.length === 0 && /* @__PURE__ */ i.jsx(ii, {}), t[48] = s.length, t[49] = Qt) : Qt = t[49];
1403
- let Dt;
1404
- t[50] !== Jt || t[51] !== A || t[52] !== p || t[53] !== pt || t[54] !== q || t[55] !== y || t[56] !== W || t[57] !== Gt || t[58] !== zt || t[59] !== s || t[60] !== B || t[61] !== Wt || t[62] !== ct || t[63] !== Et || t[64] !== Nt || t[65] !== m || t[66] !== at || t[67] !== Q || t[68] !== j || t[69] !== Ut || t[70] !== Mt || t[71] !== yt || t[72] !== l || t[73] !== Yt || t[74] !== a || t[75] !== b || t[76] !== Vt || t[77] !== f || t[78] !== T || t[79] !== G || t[80] !== n || t[81] !== ft || t[82] !== J || t[83] !== vt || t[84] !== N || t[85] !== oe || t[86] !== I || t[87] !== Ct || t[88] !== St || t[89] !== h || t[90] !== z || t[91] !== ht || t[92] !== g || t[93] !== Zt || t[94] !== E || t[95] !== r.dateFormat || t[96] !== r.enabled || t[97] !== xt || t[98] !== k || t[99] !== M || t[100] !== K || t[101] !== $ || t[102] !== jt ? (Dt = Zt && g && s.length > 0 ? /* @__PURE__ */ i.jsx(Jt, { hideAxisLine: Et, data: h ? We(ni(s, r.dateFormat || "yyyy").filter((ee) => r.enabled ? `${ee.date}` === Ve(new Date($[m]), r.dateFormat || "yyyy") : ee).filter((ee) => ct ? !ie(ee.size) : ee), [(ee) => ee.size === void 0 ? h === "asc" ? (G === "horizontal" ? 1 : -1) * (1 / 0) : (G === "horizontal" ? -1 : 1) * (1 / 0) : ee.size], [h]).filter((ee, ke) => yt ? ke < yt : !0) : ni(s, r.dateFormat || "yyyy").filter((ee) => r.enabled ? `${ee.date}` === Ve(new Date($[m]), r.dateFormat || "yyyy") : ee).filter((ee) => ct ? !ie(ee.size) : ee).filter((ee, ke) => yt ? ke < yt : !0), barColor: s.filter(zl).length === 0 ? Gt ? [Gt] : [ye.primaryColors["blue-600"]] : Gt || ye[E].categoricalColors.colors, colorDomain: s.filter(Vl).length === 0 ? [] : W || ri(s, "color", !0), selectedColor: oe, trackColor: M, width: Zt, height: g, suffix: ht, prefix: ft, barPadding: pt, showValues: St, showTicks: Ct, leftMargin: j, rightMargin: N, topMargin: k, bottomMargin: q, truncateBy: K, showLabels: I, tooltip: xt, onSeriesMouseOver: T, refValues: J, maxValue: ie(l) ? Math.max(...s.filter(Ll).map(Cl)) < 0 ? 0 : Math.max(...s.filter(kl).map(Ml)) : l, minValue: ie(a) ? Math.min(...s.filter(Ol).map($l)) >= 0 ? 0 : Math.min(...s.filter(Al).map(wl)) : a, highlightedDataPoints: Nt, onSeriesMouseClick: f, labelOrder: at, rtl: Q === "he" || Q === "ar", maxBarThickness: Mt, minBarThickness: Yt, resetSelectionOnDoubleClick: vt, detailsOnClick: B, barAxisTitle: p, noOfTicks: Vt, valueColor: jt, classNames: y, styles: z, animate: A === !0 ? {
1404
+ ] }) : null, t[32] = le, t[33] = de, t[34] = A, t[35] = c.enabled, t[36] = n, t[37] = oe) : oe = t[37];
1405
+ let ue;
1406
+ t[38] !== C?.colorLegend || t[39] !== Y || t[40] !== nt || t[41] !== Rt || t[42] !== l || t[43] !== zt || t[44] !== wt || t[45] !== R || t[46] !== st ? (ue = zt && l.filter(Ns).length !== 0 && l.length > 0 ? /* @__PURE__ */ i.jsx(si, { width: st, colorLegendTitle: nt, colors: Rt || ve[R].categoricalColors.colors, colorDomain: Y || di(l, "color", !0), setSelectedColor: ke, showNAColor: wt, className: C?.colorLegend }) : null, t[38] = C?.colorLegend, t[39] = Y, t[40] = nt, t[41] = Rt, t[42] = l, t[43] = zt, t[44] = wt, t[45] = R, t[46] = st, t[47] = ue) : ue = t[47];
1407
+ let Kt;
1408
+ t[48] !== l.length ? (Kt = l.length === 0 && /* @__PURE__ */ i.jsx(li, {}), t[48] = l.length, t[49] = Kt) : Kt = t[49];
1409
+ let Nt;
1410
+ t[50] !== Jt || t[51] !== $ || t[52] !== Z || t[53] !== At || t[54] !== J || t[55] !== C || t[56] !== Y || t[57] !== Rt || t[58] !== It || t[59] !== l || t[60] !== V || t[61] !== Wt || t[62] !== pt || t[63] !== Zt || t[64] !== Tt || t[65] !== le || t[66] !== rt || t[67] !== it || t[68] !== S || t[69] !== Qt || t[70] !== Bt || t[71] !== xt || t[72] !== s || t[73] !== Ft || t[74] !== a || t[75] !== g || t[76] !== Dt || t[77] !== f || t[78] !== B || t[79] !== q || t[80] !== qt || t[81] !== r || t[82] !== vt || t[83] !== Q || t[84] !== $t || t[85] !== z || t[86] !== ye || t[87] !== j || t[88] !== Vt || t[89] !== dt || t[90] !== m || t[91] !== I || t[92] !== bt || t[93] !== h || t[94] !== te || t[95] !== R || t[96] !== c.dateFormat || t[97] !== c.enabled || t[98] !== yt || t[99] !== M || t[100] !== _ || t[101] !== et || t[102] !== n || t[103] !== b ? (Nt = te && h && l.length > 0 ? /* @__PURE__ */ i.jsx(Jt, { hideAxisLine: Zt, data: m ? Ye(ci(l, c.dateFormat || "yyyy").filter((ie) => c.enabled ? `${ie.date}` === De(new Date(n[le]), c.dateFormat || "yyyy") : ie).filter((ie) => pt ? !se(ie.size) : ie), [(ie) => ie.size === void 0 ? m === "asc" ? (q === "horizontal" ? 1 : -1) * (1 / 0) : (q === "horizontal" ? -1 : 1) * (1 / 0) : ie.size], [m]).filter((ie, Le) => xt ? Le < xt : !0) : ci(l, c.dateFormat || "yyyy").filter((ie) => c.enabled ? `${ie.date}` === De(new Date(n[le]), c.dateFormat || "yyyy") : ie).filter((ie) => pt ? !se(ie.size) : ie).filter((ie, Le) => xt ? Le < xt : !0), barColor: l.filter(Is).length === 0 ? Rt ? [Rt] : [ve.primaryColors["blue-600"]] : Rt || ve[R].categoricalColors.colors, colorDomain: l.filter(Ds).length === 0 ? [] : Y || di(l, "color", !0), selectedColor: ye, trackColor: _, width: te, height: h, suffix: bt, prefix: vt, barPadding: At, showValues: dt, showTicks: Vt, leftMargin: S, rightMargin: z, topMargin: M, bottomMargin: J, truncateBy: et, showLabels: j, tooltip: yt, onSeriesMouseOver: B, refValues: Q, maxValue: se(s) ? Math.max(...l.filter(zs).map(Vs)) < 0 ? 0 : Math.max(...l.filter(Ls).map(Cs)) : s, minValue: se(a) ? Math.min(...l.filter(ks).map(Ms)) >= 0 ? 0 : Math.min(...l.filter(Os).map($s)) : a, highlightedDataPoints: Tt, onSeriesMouseClick: f, labelOrder: rt, rtl: it === "he" || it === "ar", maxBarThickness: Bt, minBarThickness: Ft, resetSelectionOnDoubleClick: $t, detailsOnClick: V, barAxisTitle: Z, noOfTicks: Dt, valueColor: b, classNames: C, styles: I, animate: $ === !0 ? {
1405
1411
  duration: 0.5,
1406
1412
  once: !0,
1407
1413
  amount: 0.5
1408
- } : A || {
1414
+ } : $ || {
1409
1415
  duration: 0,
1410
1416
  once: !0,
1411
1417
  amount: 0
1412
- }, dimmedOpacity: Wt, precision: n, customLayers: zt, naLabel: b, locale: Ut }) : null, t[50] = Jt, t[51] = A, t[52] = p, t[53] = pt, t[54] = q, t[55] = y, t[56] = W, t[57] = Gt, t[58] = zt, t[59] = s, t[60] = B, t[61] = Wt, t[62] = ct, t[63] = Et, t[64] = Nt, t[65] = m, t[66] = at, t[67] = Q, t[68] = j, t[69] = Ut, t[70] = Mt, t[71] = yt, t[72] = l, t[73] = Yt, t[74] = a, t[75] = b, t[76] = Vt, t[77] = f, t[78] = T, t[79] = G, t[80] = n, t[81] = ft, t[82] = J, t[83] = vt, t[84] = N, t[85] = oe, t[86] = I, t[87] = Ct, t[88] = St, t[89] = h, t[90] = z, t[91] = ht, t[92] = g, t[93] = Zt, t[94] = E, t[95] = r.dateFormat, t[96] = r.enabled, t[97] = xt, t[98] = k, t[99] = M, t[100] = K, t[101] = $, t[102] = jt, t[103] = Dt) : Dt = t[103];
1413
- let ae;
1414
- t[104] !== Qt || t[105] !== Dt ? (ae = /* @__PURE__ */ i.jsxs(ai, { ref: be, children: [
1415
- Qt,
1416
- Dt
1417
- ] }), t[104] = Qt, t[105] = Dt, t[106] = ae) : ae = t[106];
1418
- let ze;
1419
- t[107] !== y?.footnote || t[108] !== y?.source || t[109] !== $t || t[110] !== It || t[111] !== z?.footnote || t[112] !== z?.source || t[113] !== Z ? (ze = It || $t ? /* @__PURE__ */ i.jsx(ti, { sources: It, footNote: $t, width: Z, styles: {
1420
- footnote: z?.footnote,
1421
- source: z?.source
1418
+ }, dimmedOpacity: Wt, precision: r, customLayers: It, naLabel: g, locale: Qt, padZeros: qt }) : null, t[50] = Jt, t[51] = $, t[52] = Z, t[53] = At, t[54] = J, t[55] = C, t[56] = Y, t[57] = Rt, t[58] = It, t[59] = l, t[60] = V, t[61] = Wt, t[62] = pt, t[63] = Zt, t[64] = Tt, t[65] = le, t[66] = rt, t[67] = it, t[68] = S, t[69] = Qt, t[70] = Bt, t[71] = xt, t[72] = s, t[73] = Ft, t[74] = a, t[75] = g, t[76] = Dt, t[77] = f, t[78] = B, t[79] = q, t[80] = qt, t[81] = r, t[82] = vt, t[83] = Q, t[84] = $t, t[85] = z, t[86] = ye, t[87] = j, t[88] = Vt, t[89] = dt, t[90] = m, t[91] = I, t[92] = bt, t[93] = h, t[94] = te, t[95] = R, t[96] = c.dateFormat, t[97] = c.enabled, t[98] = yt, t[99] = M, t[100] = _, t[101] = et, t[102] = n, t[103] = b, t[104] = Nt) : Nt = t[104];
1419
+ let ne;
1420
+ t[105] !== Kt || t[106] !== Nt ? (ne = /* @__PURE__ */ i.jsxs(ni, { ref: we, children: [
1421
+ Kt,
1422
+ Nt
1423
+ ] }), t[105] = Kt, t[106] = Nt, t[107] = ne) : ne = t[107];
1424
+ let Ie;
1425
+ t[108] !== C?.footnote || t[109] !== C?.source || t[110] !== kt || t[111] !== jt || t[112] !== I?.footnote || t[113] !== I?.source || t[114] !== st ? (Ie = jt || kt ? /* @__PURE__ */ i.jsx(ii, { sources: jt, footNote: kt, width: st, styles: {
1426
+ footnote: I?.footnote,
1427
+ source: I?.source
1422
1428
  }, classNames: {
1423
- footnote: y?.footnote,
1424
- source: y?.source
1425
- } }) : null, t[107] = y?.footnote, t[108] = y?.source, t[109] = $t, t[110] = It, t[111] = z?.footnote, t[112] = z?.source, t[113] = Z, t[114] = ze) : ze = t[114];
1426
- let Xe;
1427
- return t[115] !== tt || t[116] !== F || t[117] !== u || t[118] !== ut || t[119] !== Q || t[120] !== rt || t[121] !== Ot || t[122] !== U || t[123] !== ue || t[124] !== xe || t[125] !== le || t[126] !== se || t[127] !== ce || t[128] !== ae || t[129] !== ze || t[130] !== E || t[131] !== Z ? (Xe = /* @__PURE__ */ i.jsxs(oi, { className: ue, style: xe, id: u, ref: Me, "aria-label": tt, backgroundColor: F, theme: E, language: Q, minHeight: rt, width: Z, height: ut, relativeHeight: U, padding: Ot, children: [
1428
- le,
1429
- se,
1430
- ce,
1429
+ footnote: C?.footnote,
1430
+ source: C?.source
1431
+ } }) : null, t[108] = C?.footnote, t[109] = C?.source, t[110] = kt, t[111] = jt, t[112] = I?.footnote, t[113] = I?.source, t[114] = st, t[115] = Ie) : Ie = t[115];
1432
+ let Ee;
1433
+ return t[116] !== Gt || t[117] !== P || t[118] !== u || t[119] !== gt || t[120] !== it || t[121] !== ft || t[122] !== Ct || t[123] !== K || t[124] !== me || t[125] !== he || t[126] !== ae || t[127] !== oe || t[128] !== ue || t[129] !== ne || t[130] !== Ie || t[131] !== R || t[132] !== st ? (Ee = /* @__PURE__ */ i.jsxs(ri, { className: me, style: he, id: u, ref: Ce, "aria-label": Gt, backgroundColor: P, theme: R, language: it, minHeight: ft, width: st, height: gt, relativeHeight: K, padding: Ct, children: [
1431
1434
  ae,
1432
- ze
1433
- ] }), t[115] = tt, t[116] = F, t[117] = u, t[118] = ut, t[119] = Q, t[120] = rt, t[121] = Ot, t[122] = U, t[123] = ue, t[124] = xe, t[125] = le, t[126] = se, t[127] = ce, t[128] = ae, t[129] = ze, t[130] = E, t[131] = Z, t[132] = Xe) : Xe = t[132], Xe;
1435
+ oe,
1436
+ ue,
1437
+ ne,
1438
+ Ie
1439
+ ] }), t[116] = Gt, t[117] = P, t[118] = u, t[119] = gt, t[120] = it, t[121] = ft, t[122] = Ct, t[123] = K, t[124] = me, t[125] = he, t[126] = ae, t[127] = oe, t[128] = ue, t[129] = ne, t[130] = Ie, t[131] = R, t[132] = st, t[133] = Ee) : Ee = t[133], Ee;
1434
1440
  }
1435
- function wl(e) {
1441
+ function $s(e) {
1436
1442
  return e.size;
1437
1443
  }
1438
- function Al(e) {
1439
- return !ie(e.size);
1444
+ function Os(e) {
1445
+ return !se(e.size);
1440
1446
  }
1441
- function $l(e) {
1447
+ function Ms(e) {
1442
1448
  return e.size;
1443
1449
  }
1444
- function Ol(e) {
1445
- return !ie(e.size);
1450
+ function ks(e) {
1451
+ return !se(e.size);
1446
1452
  }
1447
- function Ml(e) {
1453
+ function Cs(e) {
1448
1454
  return e.size;
1449
1455
  }
1450
- function kl(e) {
1451
- return !ie(e.size);
1456
+ function Ls(e) {
1457
+ return !se(e.size);
1452
1458
  }
1453
- function Cl(e) {
1459
+ function Vs(e) {
1454
1460
  return e.size;
1455
1461
  }
1456
- function Ll(e) {
1457
- return !ie(e.size);
1462
+ function zs(e) {
1463
+ return !se(e.size);
1458
1464
  }
1459
- function Vl(e) {
1465
+ function Ds(e) {
1460
1466
  return e.color;
1461
1467
  }
1462
- function zl(e) {
1468
+ function Is(e) {
1463
1469
  return e.color;
1464
1470
  }
1465
- function Dl(e) {
1471
+ function Ns(e) {
1466
1472
  return e.color;
1467
1473
  }
1468
- function Il(e) {
1474
+ function js(e) {
1469
1475
  return e !== void 0;
1470
1476
  }
1471
- function Nl(e) {
1477
+ function Ts(e) {
1472
1478
  return e !== void 0;
1473
1479
  }
1474
- function jl(e) {
1480
+ function Ss(e) {
1475
1481
  return e.data;
1476
1482
  }
1477
- function Tl(e) {
1483
+ function Bs(e) {
1478
1484
  return e !== void 0;
1479
1485
  }
1480
- function Sl(e) {
1486
+ function Fs(e) {
1481
1487
  return e.data;
1482
1488
  }
1483
- function Bl(e, t) {
1489
+ function Ps(e, t) {
1484
1490
  return e - t;
1485
1491
  }
1486
- function Fl(e) {
1492
+ function Hs(e) {
1487
1493
  return e.date;
1488
1494
  }
1489
- function Pl(e) {
1490
- const t = $e.c(131), {
1491
- data: s,
1492
- barColors: H,
1493
- barPadding: Gt,
1494
- showTicks: Kt,
1495
- topMargin: It,
1496
- bottomMargin: At,
1497
- leftMargin: Bt,
1498
- rightMargin: P,
1499
- truncateBy: R,
1495
+ function Ws(e) {
1496
+ const t = Me.c(132), {
1497
+ data: l,
1498
+ barColors: X,
1499
+ barPadding: Rt,
1500
+ showTicks: Ut,
1501
+ topMargin: jt,
1502
+ bottomMargin: Mt,
1503
+ leftMargin: St,
1504
+ rightMargin: H,
1505
+ truncateBy: U,
1500
1506
  width: O,
1501
- height: X,
1502
- tooltip: ut,
1503
- onSeriesMouseOver: Z,
1504
- showLabels: $t,
1505
- suffix: W,
1506
- prefix: st,
1507
- showValues: Nt,
1508
- refValues: Ot,
1509
- maxValue: Xt,
1510
- onSeriesMouseClick: k,
1511
- selectedColor: q,
1512
- rtl: j,
1513
- labelOrder: N,
1514
- maxBarThickness: ot,
1515
- minBarThickness: U,
1516
- resetSelectionOnDoubleClick: xt,
1517
- detailsOnClick: T,
1518
- barAxisTitle: J,
1519
- valueColor: _,
1507
+ height: G,
1508
+ tooltip: gt,
1509
+ onSeriesMouseOver: st,
1510
+ showLabels: kt,
1511
+ suffix: Y,
1512
+ prefix: nt,
1513
+ showValues: Tt,
1514
+ refValues: Ct,
1515
+ maxValue: Yt,
1516
+ onSeriesMouseClick: M,
1517
+ selectedColor: J,
1518
+ rtl: S,
1519
+ labelOrder: z,
1520
+ maxBarThickness: ut,
1521
+ minBarThickness: K,
1522
+ resetSelectionOnDoubleClick: yt,
1523
+ detailsOnClick: B,
1524
+ barAxisTitle: Q,
1525
+ valueColor: lt,
1520
1526
  noOfTicks: u,
1521
- styles: l,
1527
+ styles: s,
1522
1528
  classNames: a,
1523
1529
  animate: f,
1524
1530
  colorDomain: x,
1525
- precision: w,
1526
- customLayers: h,
1527
- naLabel: at,
1528
- hideAxisLine: S,
1529
- locale: C
1530
- } = e, Ht = It === void 0 ? 25 : It, Rt = At === void 0 ? 10 : At, Mt = Bt === void 0 ? 100 : Bt, yt = P === void 0 ? 40 : P, Yt = Ae(null);
1531
- let tt;
1532
- t[0] !== f.amount || t[1] !== f.once ? (tt = {
1531
+ precision: y,
1532
+ customLayers: m,
1533
+ naLabel: rt,
1534
+ hideAxisLine: F,
1535
+ locale: L,
1536
+ padZeros: T
1537
+ } = e, Et = jt === void 0 ? 25 : jt, Bt = Mt === void 0 ? 10 : Mt, xt = St === void 0 ? 100 : St, Ft = H === void 0 ? 40 : H, Gt = Oe(null);
1538
+ let D;
1539
+ t[0] !== f.amount || t[1] !== f.once ? (D = {
1533
1540
  once: f.once,
1534
1541
  amount: f.amount
1535
- }, t[0] = f.amount, t[1] = f.once, t[2] = tt) : tt = t[2];
1536
- const D = Fe(Yt, tt), B = J ? Ht + 25 : Ht;
1542
+ }, t[0] = f.amount, t[1] = f.once, t[2] = D) : D = t[2];
1543
+ const V = He(Gt, D), Z = Q ? Et + 25 : Et;
1537
1544
  let p;
1538
- t[3] !== Rt || t[4] !== Mt || t[5] !== yt || t[6] !== B ? (p = {
1539
- top: B,
1540
- bottom: Rt,
1541
- left: Mt,
1542
- right: yt
1543
- }, t[3] = Rt, t[4] = Mt, t[5] = yt, t[6] = B, t[7] = p) : p = t[7];
1544
- const c = p, [jt, z] = _t(void 0), [y, Ft] = _t(void 0), [Tt, mt] = _t(void 0), [qt, et] = _t(void 0), Pt = O - c.left - c.right, Y = X - c.top - c.bottom;
1545
- let it;
1546
- if (t[8] !== s || t[9] !== N) {
1547
- const v = /* @__PURE__ */ new Set(), zt = s.map((b, G) => {
1548
- const Et = N ? `${b.label}` : `${G}`;
1549
- return v.add(Et), {
1550
- ...b,
1551
- id: Et
1545
+ t[3] !== Bt || t[4] !== xt || t[5] !== Ft || t[6] !== Z ? (p = {
1546
+ top: Z,
1547
+ bottom: Bt,
1548
+ left: xt,
1549
+ right: Ft
1550
+ }, t[3] = Bt, t[4] = xt, t[5] = Ft, t[6] = Z, t[7] = p) : p = t[7];
1551
+ const b = p, [I, C] = _t(void 0), [N, mt] = _t(void 0), [Pt, Lt] = _t(void 0), [Ht, ct] = _t(void 0), Xt = O - b.left - b.right, W = G - b.top - b.bottom;
1552
+ let _;
1553
+ if (t[8] !== l || t[9] !== z) {
1554
+ const v = /* @__PURE__ */ new Set(), It = l.map((g, q) => {
1555
+ const Zt = z ? `${g.label}` : `${q}`;
1556
+ return v.add(Zt), {
1557
+ ...g,
1558
+ id: Zt
1552
1559
  };
1553
- }), wt = N ? N.filter((b) => !v.has(b)) : [];
1554
- let r;
1555
- t[11] !== s[0] ? (r = (b) => ({
1556
- id: b,
1557
- label: b,
1558
- size: Array(s[0].size.length).fill(null)
1559
- }), t[11] = s[0], t[12] = r) : r = t[12], it = [...zt, ...wt.map(r)], t[8] = s, t[9] = N, t[10] = it;
1560
+ }), Ot = z ? z.filter((g) => !v.has(g)) : [];
1561
+ let c;
1562
+ t[11] !== l[0] ? (c = (g) => ({
1563
+ id: g,
1564
+ label: g,
1565
+ size: Array(l[0].size.length).fill(null)
1566
+ }), t[11] = l[0], t[12] = c) : c = t[12], _ = [...It, ...Ot.map(c)], t[8] = l, t[9] = z, t[10] = _;
1560
1567
  } else
1561
- it = t[10];
1562
- const M = it;
1563
- let bt;
1564
- t[13] !== M || t[14] !== N ? (bt = N ?? M.map(Ul), t[13] = M, t[14] = N, t[15] = bt) : bt = t[15];
1565
- const kt = bt;
1566
- let ht, ft, pt, St, Ct, K, F, I, Lt, nt, lt, Q, gt, rt;
1567
- if (t[16] !== f || t[17] !== J || t[18] !== H || t[19] !== kt || t[20] !== Gt || t[21] !== a?.graphObjectValues || t[22] !== a?.xAxis?.gridLines || t[23] !== a?.xAxis?.labels || t[24] !== a?.xAxis?.title || t[25] !== a?.yAxis?.axis || t[26] !== a?.yAxis?.labels || t[27] !== x || t[28] !== h || t[29] !== M || t[30] !== T || t[31] !== Y || t[32] !== Pt || t[33] !== X || t[34] !== S || t[35] !== D || t[36] !== C || t[37] !== c.bottom || t[38] !== c.left || t[39] !== c.top || t[40] !== ot || t[41] !== Xt || t[42] !== U || t[43] !== y || t[44] !== at || t[45] !== u || t[46] !== k || t[47] !== Z || t[48] !== w || t[49] !== st || t[50] !== Ot || t[51] !== xt || t[52] !== j || t[53] !== q || t[54] !== $t || t[55] !== Kt || t[56] !== Nt || t[57] !== l?.graphObjectValues || t[58] !== l?.xAxis?.gridLines || t[59] !== l?.xAxis?.labels || t[60] !== l?.xAxis?.title || t[61] !== l?.yAxis?.axis || t[62] !== l?.yAxis?.labels || t[63] !== W || t[64] !== Ht || t[65] !== R || t[66] !== _ || t[67] !== O) {
1568
- const v = Pe().domain([0, Xt]).range([0, Pt]).nice(), zt = Le().domain(kt).range([0, U ? Math.max(Y, U * kt.length) : ot ? Math.min(Y, ot * kt.length) : Y]).paddingInner(Gt), wt = v.ticks(u);
1569
- ft = te.svg, Lt = Yt, nt = `${O}px`, lt = `${X}px`, Q = `0 0 ${O} ${X}`, gt = "ltr", Ct = `translate(${c.left},${c.top})`, K = Kt ? /* @__PURE__ */ i.jsx(Ue, { values: wt.filter(ql), x: wt.filter(Rl).map((g) => v(g)), y1: 0 - Ht, y2: Y + c.bottom, styles: {
1570
- gridLines: l?.xAxis?.gridLines,
1571
- labels: l?.xAxis?.labels
1568
+ _ = t[10];
1569
+ const k = _;
1570
+ let tt;
1571
+ t[13] !== k || t[14] !== z ? (tt = z ?? k.map(Js), t[13] = k, t[14] = z, t[15] = tt) : tt = t[15];
1572
+ const at = tt;
1573
+ let bt, vt, At, dt, Vt, et, P, j, zt, ht, ot, it, wt, ft;
1574
+ if (t[16] !== f || t[17] !== Q || t[18] !== X || t[19] !== at || t[20] !== Rt || t[21] !== a?.graphObjectValues || t[22] !== a?.xAxis?.gridLines || t[23] !== a?.xAxis?.labels || t[24] !== a?.xAxis?.title || t[25] !== a?.yAxis?.axis || t[26] !== a?.yAxis?.labels || t[27] !== x || t[28] !== m || t[29] !== k || t[30] !== B || t[31] !== W || t[32] !== Xt || t[33] !== G || t[34] !== F || t[35] !== V || t[36] !== L || t[37] !== b.bottom || t[38] !== b.left || t[39] !== b.top || t[40] !== ut || t[41] !== Yt || t[42] !== K || t[43] !== N || t[44] !== rt || t[45] !== u || t[46] !== M || t[47] !== st || t[48] !== T || t[49] !== y || t[50] !== nt || t[51] !== Ct || t[52] !== yt || t[53] !== S || t[54] !== J || t[55] !== kt || t[56] !== Ut || t[57] !== Tt || t[58] !== s?.graphObjectValues || t[59] !== s?.xAxis?.gridLines || t[60] !== s?.xAxis?.labels || t[61] !== s?.xAxis?.title || t[62] !== s?.yAxis?.axis || t[63] !== s?.yAxis?.labels || t[64] !== Y || t[65] !== Et || t[66] !== U || t[67] !== lt || t[68] !== O) {
1575
+ const v = We().domain([0, Yt]).range([0, Xt]).nice(), It = ze().domain(at).range([0, K ? Math.max(W, K * at.length) : ut ? Math.min(W, ut * at.length) : W]).paddingInner(Rt), Ot = v.ticks(u);
1576
+ vt = ee.svg, zt = Gt, ht = `${O}px`, ot = `${G}px`, it = `0 0 ${O} ${G}`, wt = "ltr", Vt = `translate(${b.left},${b.top})`, et = Ut ? /* @__PURE__ */ i.jsx(Je, { values: Ot.filter(Us), x: Ot.filter(qs).map((w) => v(w)), y1: 0 - Et, y2: W + b.bottom, styles: {
1577
+ gridLines: s?.xAxis?.gridLines,
1578
+ labels: s?.xAxis?.labels
1572
1579
  }, classNames: {
1573
1580
  gridLines: a?.xAxis?.gridLines,
1574
1581
  labels: a?.xAxis?.labels
1575
- }, suffix: W, prefix: st, labelType: "secondary", showGridLines: !0, precision: w, locale: C }) : null;
1576
- const r = Pt / 2, b = 0 - c.top + 15, G = l?.xAxis?.title, Et = a?.xAxis?.title;
1577
- t[82] !== J || t[83] !== r || t[84] !== b || t[85] !== G || t[86] !== Et ? (F = /* @__PURE__ */ i.jsx(Se, { x: r, y: b, style: G, className: Et, text: J }), t[82] = J, t[83] = r, t[84] = b, t[85] = G, t[86] = Et, t[87] = F) : F = t[87], t[88] !== h ? (I = h.filter(Gl).map(El), t[88] = h, t[89] = I) : I = t[89], ht = He, rt = M.map((g) => ie(zt(g.id)) ? null : /* @__PURE__ */ i.jsxs(te.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
1582
+ }, suffix: Y, prefix: nt, labelType: "secondary", showGridLines: !0, precision: y, locale: L, padZeros: T }) : null;
1583
+ const c = Xt / 2, g = 0 - b.top + 15, q = s?.xAxis?.title, Zt = a?.xAxis?.title;
1584
+ t[83] !== Q || t[84] !== c || t[85] !== g || t[86] !== q || t[87] !== Zt ? (P = /* @__PURE__ */ i.jsx(Fe, { x: c, y: g, style: q, className: Zt, text: Q }), t[83] = Q, t[84] = c, t[85] = g, t[86] = q, t[87] = Zt, t[88] = P) : P = t[88], t[89] !== m ? (j = m.filter(Rs).map(Zs), t[89] = m, t[90] = j) : j = t[90], bt = Xe, ft = k.map((w) => se(It(w.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
1578
1585
  initial: {
1579
1586
  x: 0,
1580
- y: zt(`${g.id}`)
1587
+ y: It(`${w.id}`)
1581
1588
  },
1582
1589
  whileInView: {
1583
1590
  x: 0,
1584
- y: zt(`${g.id}`),
1591
+ y: It(`${w.id}`),
1585
1592
  transition: {
1586
1593
  duration: f.duration
1587
1594
  }
1588
1595
  }
1589
- }, initial: "initial", animate: D ? "whileInView" : "initial", exit: {
1596
+ }, initial: "initial", animate: V ? "whileInView" : "initial", exit: {
1590
1597
  opacity: 0,
1591
1598
  transition: {
1592
1599
  duration: f.duration
1593
1600
  }
1594
1601
  }, children: [
1595
- g.size.map((V, d) => /* @__PURE__ */ i.jsxs(te.g, { opacity: q ? H[d] === q ? 1 : 0.3 : 1, onMouseEnter: (L) => {
1596
- z({
1597
- ...g,
1602
+ w.size.map((h, d) => /* @__PURE__ */ i.jsxs(ee.g, { opacity: J ? X[d] === J ? 1 : 0.3 : 1, onMouseEnter: (A) => {
1603
+ C({
1604
+ ...w,
1598
1605
  sizeIndex: d
1599
- }), et(L.clientY), mt(L.clientX), Z?.({
1600
- ...g,
1606
+ }), ct(A.clientY), Lt(A.clientX), st?.({
1607
+ ...w,
1601
1608
  sizeIndex: d
1602
1609
  });
1603
- }, onMouseMove: (L) => {
1604
- z({
1605
- ...g,
1610
+ }, onMouseMove: (A) => {
1611
+ C({
1612
+ ...w,
1606
1613
  sizeIndex: d
1607
- }), et(L.clientY), mt(L.clientX);
1614
+ }), ct(A.clientY), Lt(A.clientX);
1608
1615
  }, onMouseLeave: () => {
1609
- z(void 0), mt(void 0), et(void 0), Z?.(void 0);
1616
+ C(void 0), Lt(void 0), ct(void 0), st?.(void 0);
1610
1617
  }, onClick: () => {
1611
- (k || T) && (Ne(y, {
1612
- ...g,
1618
+ (M || B) && (Te(N, {
1619
+ ...w,
1613
1620
  sizeIndex: d
1614
- }) && xt ? (Ft(void 0), k?.(void 0)) : (Ft({
1615
- ...g,
1621
+ }) && yt ? (mt(void 0), M?.(void 0)) : (mt({
1622
+ ...w,
1616
1623
  sizeIndex: d
1617
- }), k && k({
1618
- ...g,
1624
+ }), M && M({
1625
+ ...w,
1619
1626
  sizeIndex: d
1620
1627
  })));
1621
1628
  }, children: [
1622
- V ? /* @__PURE__ */ i.jsx(te.rect, { y: 0, style: {
1623
- fill: H[d]
1624
- }, height: zt.bandwidth(), exit: {
1629
+ h ? /* @__PURE__ */ i.jsx(ee.rect, { y: 0, style: {
1630
+ fill: X[d]
1631
+ }, height: It.bandwidth(), exit: {
1625
1632
  width: 0,
1626
1633
  x: v(0),
1627
1634
  transition: {
@@ -1631,21 +1638,21 @@ function Pl(e) {
1631
1638
  initial: {
1632
1639
  width: 0,
1633
1640
  x: v(0),
1634
- fill: H[d]
1641
+ fill: X[d]
1635
1642
  },
1636
1643
  whileInView: {
1637
- width: v(V || 0),
1638
- x: v(d === 0 ? 0 : me(g.size.filter((L, o) => o < d && L))),
1639
- fill: H[d],
1644
+ width: v(h || 0),
1645
+ x: v(d === 0 ? 0 : fe(w.size.filter((A, o) => o < d && A))),
1646
+ fill: X[d],
1640
1647
  transition: {
1641
1648
  duration: f.duration
1642
1649
  }
1643
1650
  }
1644
- }, initial: "initial", animate: D ? "whileInView" : "initial" }, d) : null,
1645
- Nt ? /* @__PURE__ */ i.jsx(te.text, { y: zt.bandwidth() / 2, style: {
1651
+ }, initial: "initial", animate: V ? "whileInView" : "initial" }, d) : null,
1652
+ Tt ? /* @__PURE__ */ i.jsx(ee.text, { y: It.bandwidth() / 2, style: {
1646
1653
  textAnchor: "middle",
1647
- ...l?.graphObjectValues || {}
1648
- }, dy: "0.33em", className: Ce("graph-value text-sm", a?.graphObjectValues), exit: {
1654
+ ...s?.graphObjectValues || {}
1655
+ }, dy: "0.33em", className: Ve("graph-value text-sm", a?.graphObjectValues), exit: {
1649
1656
  opacity: 0,
1650
1657
  transition: {
1651
1658
  duration: f.duration
@@ -1654,38 +1661,38 @@ function Pl(e) {
1654
1661
  initial: {
1655
1662
  x: v(0),
1656
1663
  opacity: 0,
1657
- fill: Ye(H[d])
1664
+ fill: Ge(X[d])
1658
1665
  },
1659
1666
  whileInView: {
1660
- x: v(d === 0 ? 0 : me(g.size.filter((L, o) => o < d && L))) + v(V || 0) / 2,
1661
- opacity: V && v(V) / we(V, at, w, st, W, C).length > 12 ? 1 : 0,
1662
- fill: Ye(H[d]),
1667
+ x: v(d === 0 ? 0 : fe(w.size.filter((A, o) => o < d && A))) + v(h || 0) / 2,
1668
+ opacity: h && v(h) / $e(h, rt, y, nt, Y, L, T).length > 12 ? 1 : 0,
1669
+ fill: Ge(X[d]),
1663
1670
  transition: {
1664
1671
  duration: f.duration
1665
1672
  }
1666
1673
  }
1667
- }, initial: "initial", animate: D ? "whileInView" : "initial", children: we(V, at, w, st, W, C) }) : null
1668
- ] }, `${g.label}-${x[d] || d}`)),
1669
- $t ? /* @__PURE__ */ i.jsx(qe, { value: `${g.label}`.length < R ? `${g.label}` : `${`${g.label}`.substring(0, R)}...`, y: 0, x: 0 - c.left, width: 0 + c.left, height: zt.bandwidth(), style: l?.yAxis?.labels, className: a?.yAxis?.labels, animate: f, isInView: D }) : null,
1670
- Nt ? /* @__PURE__ */ i.jsx(te.text, { className: Ce("graph-value graph-value-total text-sm", _ ? "" : " fill-primary-gray-700 dark:fill-primary-gray-300", a?.graphObjectValues), style: {
1671
- ..._ ? {
1672
- fill: _
1674
+ }, initial: "initial", animate: V ? "whileInView" : "initial", children: $e(h, rt, y, nt, Y, L, T) }) : null
1675
+ ] }, `${w.label}-${x[d] || d}`)),
1676
+ kt ? /* @__PURE__ */ i.jsx(Ue, { value: `${w.label}`.length < U ? `${w.label}` : `${`${w.label}`.substring(0, U)}...`, y: 0, x: 0 - b.left, width: 0 + b.left, height: It.bandwidth(), style: s?.yAxis?.labels, className: a?.yAxis?.labels, animate: f, isInView: V }) : null,
1677
+ Tt ? /* @__PURE__ */ i.jsx(ee.text, { className: Ve("graph-value graph-value-total text-sm", lt ? "" : " fill-primary-gray-700 dark:fill-primary-gray-300", a?.graphObjectValues), style: {
1678
+ ...lt ? {
1679
+ fill: lt
1673
1680
  } : {},
1674
1681
  textAnchor: "start",
1675
- ...l?.graphObjectValues || {}
1676
- }, y: zt.bandwidth() / 2, dx: 5, dy: "0.33em", variants: {
1682
+ ...s?.graphObjectValues || {}
1683
+ }, y: It.bandwidth() / 2, dx: 5, dy: "0.33em", variants: {
1677
1684
  initial: {
1678
1685
  x: v(0),
1679
1686
  opacity: 0,
1680
- ..._ ? {
1681
- fill: _
1687
+ ...lt ? {
1688
+ fill: lt
1682
1689
  } : {}
1683
1690
  },
1684
1691
  whileInView: {
1685
- x: v(me(g.size.map(Yl))),
1692
+ x: v(fe(w.size.map(Gs))),
1686
1693
  opacity: 1,
1687
- ..._ ? {
1688
- fill: _
1694
+ ...lt ? {
1695
+ fill: lt
1689
1696
  } : {},
1690
1697
  transition: {
1691
1698
  duration: f.duration
@@ -1696,183 +1703,184 @@ function Pl(e) {
1696
1703
  transition: {
1697
1704
  duration: f.duration
1698
1705
  }
1699
- }, initial: "initial", animate: D ? "whileInView" : "initial", children: we(me(g.size.filter(Xl)), at, w, st, W, C) }) : null
1700
- ] }, g.label));
1701
- const Ut = a?.yAxis?.axis;
1702
- let Jt;
1703
- t[90] !== Ut ? (Jt = {
1704
- axis: Ut
1705
- }, t[90] = Ut, t[91] = Jt) : Jt = t[91];
1706
- const Zt = l?.yAxis?.axis;
1707
- let dt;
1708
- t[92] !== Zt ? (dt = {
1709
- axis: Zt
1710
- }, t[92] = Zt, t[93] = dt) : dt = t[93], pt = /* @__PURE__ */ i.jsx(Te, { hideAxisLine: S, x1: v(0), x2: v(0), y1: -2.5, y2: Y + c.bottom, classNames: Jt, styles: dt }), St = Ot ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Ot.map((g, V) => /* @__PURE__ */ i.jsx(Je, { text: g.text, color: g.color, x: v(g.value), y1: 0 - c.top, y2: Y + c.bottom, textSide: v(g.value) > Pt * 0.75 || j ? "left" : "right", classNames: g.classNames, styles: g.styles, animate: f, isInView: D }, V)) }) : null, t[16] = f, t[17] = J, t[18] = H, t[19] = kt, t[20] = Gt, t[21] = a?.graphObjectValues, t[22] = a?.xAxis?.gridLines, t[23] = a?.xAxis?.labels, t[24] = a?.xAxis?.title, t[25] = a?.yAxis?.axis, t[26] = a?.yAxis?.labels, t[27] = x, t[28] = h, t[29] = M, t[30] = T, t[31] = Y, t[32] = Pt, t[33] = X, t[34] = S, t[35] = D, t[36] = C, t[37] = c.bottom, t[38] = c.left, t[39] = c.top, t[40] = ot, t[41] = Xt, t[42] = U, t[43] = y, t[44] = at, t[45] = u, t[46] = k, t[47] = Z, t[48] = w, t[49] = st, t[50] = Ot, t[51] = xt, t[52] = j, t[53] = q, t[54] = $t, t[55] = Kt, t[56] = Nt, t[57] = l?.graphObjectValues, t[58] = l?.xAxis?.gridLines, t[59] = l?.xAxis?.labels, t[60] = l?.xAxis?.title, t[61] = l?.yAxis?.axis, t[62] = l?.yAxis?.labels, t[63] = W, t[64] = Ht, t[65] = R, t[66] = _, t[67] = O, t[68] = ht, t[69] = ft, t[70] = pt, t[71] = St, t[72] = Ct, t[73] = K, t[74] = F, t[75] = I, t[76] = Lt, t[77] = nt, t[78] = lt, t[79] = Q, t[80] = gt, t[81] = rt;
1706
+ }, initial: "initial", animate: V ? "whileInView" : "initial", children: $e(fe(w.size.filter(Es)), rt, y, nt, Y, L, T) }) : null
1707
+ ] }, w.label));
1708
+ const Qt = a?.yAxis?.axis;
1709
+ let qt;
1710
+ t[91] !== Qt ? (qt = {
1711
+ axis: Qt
1712
+ }, t[91] = Qt, t[92] = qt) : qt = t[92];
1713
+ const Jt = s?.yAxis?.axis;
1714
+ let te;
1715
+ t[93] !== Jt ? (te = {
1716
+ axis: Jt
1717
+ }, t[93] = Jt, t[94] = te) : te = t[94], At = /* @__PURE__ */ i.jsx(Be, { hideAxisLine: F, x1: v(0), x2: v(0), y1: -2.5, y2: W + b.bottom, classNames: qt, styles: te }), dt = Ct ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Ct.map((w, h) => /* @__PURE__ */ i.jsx(Ke, { text: w.text, color: w.color, x: v(w.value), y1: 0 - b.top, y2: W + b.bottom, textSide: v(w.value) > Xt * 0.75 || S ? "left" : "right", classNames: w.classNames, styles: w.styles, animate: f, isInView: V }, h)) }) : null, t[16] = f, t[17] = Q, t[18] = X, t[19] = at, t[20] = Rt, t[21] = a?.graphObjectValues, t[22] = a?.xAxis?.gridLines, t[23] = a?.xAxis?.labels, t[24] = a?.xAxis?.title, t[25] = a?.yAxis?.axis, t[26] = a?.yAxis?.labels, t[27] = x, t[28] = m, t[29] = k, t[30] = B, t[31] = W, t[32] = Xt, t[33] = G, t[34] = F, t[35] = V, t[36] = L, t[37] = b.bottom, t[38] = b.left, t[39] = b.top, t[40] = ut, t[41] = Yt, t[42] = K, t[43] = N, t[44] = rt, t[45] = u, t[46] = M, t[47] = st, t[48] = T, t[49] = y, t[50] = nt, t[51] = Ct, t[52] = yt, t[53] = S, t[54] = J, t[55] = kt, t[56] = Ut, t[57] = Tt, t[58] = s?.graphObjectValues, t[59] = s?.xAxis?.gridLines, t[60] = s?.xAxis?.labels, t[61] = s?.xAxis?.title, t[62] = s?.yAxis?.axis, t[63] = s?.yAxis?.labels, t[64] = Y, t[65] = Et, t[66] = U, t[67] = lt, t[68] = O, t[69] = bt, t[70] = vt, t[71] = At, t[72] = dt, t[73] = Vt, t[74] = et, t[75] = P, t[76] = j, t[77] = zt, t[78] = ht, t[79] = ot, t[80] = it, t[81] = wt, t[82] = ft;
1711
1718
  } else
1712
- ht = t[68], ft = t[69], pt = t[70], St = t[71], Ct = t[72], K = t[73], F = t[74], I = t[75], Lt = t[76], nt = t[77], lt = t[78], Q = t[79], gt = t[80], rt = t[81];
1713
- let E;
1714
- t[94] !== ht || t[95] !== pt || t[96] !== St || t[97] !== rt ? (E = /* @__PURE__ */ i.jsxs(ht, { children: [
1715
- rt,
1716
- pt,
1717
- St
1718
- ] }), t[94] = ht, t[95] = pt, t[96] = St, t[97] = rt, t[98] = E) : E = t[98];
1719
- let vt;
1720
- t[99] !== h ? (vt = h.filter(Wl).map(Hl), t[99] = h, t[100] = vt) : vt = t[100];
1721
- let Vt;
1722
- t[101] !== Ct || t[102] !== K || t[103] !== F || t[104] !== I || t[105] !== E || t[106] !== vt ? (Vt = /* @__PURE__ */ i.jsxs("g", { transform: Ct, children: [
1723
- K,
1724
- F,
1725
- I,
1726
- E,
1727
- vt
1728
- ] }), t[101] = Ct, t[102] = K, t[103] = F, t[104] = I, t[105] = E, t[106] = vt, t[107] = Vt) : Vt = t[107];
1729
- let ct;
1730
- t[108] !== ft || t[109] !== Lt || t[110] !== nt || t[111] !== lt || t[112] !== Q || t[113] !== gt || t[114] !== Vt ? (ct = /* @__PURE__ */ i.jsx(ft, { ref: Lt, width: nt, height: lt, viewBox: Q, direction: gt, children: Vt }), t[108] = ft, t[109] = Lt, t[110] = nt, t[111] = lt, t[112] = Q, t[113] = gt, t[114] = Vt, t[115] = ct) : ct = t[115];
1731
- let A;
1732
- t[116] !== a?.tooltip || t[117] !== Tt || t[118] !== qt || t[119] !== jt || t[120] !== l?.tooltip || t[121] !== ut ? (A = jt && ut && Tt && qt ? /* @__PURE__ */ i.jsx(je, { data: jt, body: ut, xPos: Tt, yPos: qt, backgroundStyle: l?.tooltip, className: a?.tooltip }) : null, t[116] = a?.tooltip, t[117] = Tt, t[118] = qt, t[119] = jt, t[120] = l?.tooltip, t[121] = ut, t[122] = A) : A = t[122];
1719
+ bt = t[69], vt = t[70], At = t[71], dt = t[72], Vt = t[73], et = t[74], P = t[75], j = t[76], zt = t[77], ht = t[78], ot = t[79], it = t[80], wt = t[81], ft = t[82];
1720
+ let R;
1721
+ t[95] !== bt || t[96] !== At || t[97] !== dt || t[98] !== ft ? (R = /* @__PURE__ */ i.jsxs(bt, { children: [
1722
+ ft,
1723
+ At,
1724
+ dt
1725
+ ] }), t[95] = bt, t[96] = At, t[97] = dt, t[98] = ft, t[99] = R) : R = t[99];
1726
+ let $t;
1727
+ t[100] !== m ? ($t = m.filter(Ys).map(Xs), t[100] = m, t[101] = $t) : $t = t[101];
1728
+ let Dt;
1729
+ t[102] !== Vt || t[103] !== et || t[104] !== P || t[105] !== j || t[106] !== R || t[107] !== $t ? (Dt = /* @__PURE__ */ i.jsxs("g", { transform: Vt, children: [
1730
+ et,
1731
+ P,
1732
+ j,
1733
+ R,
1734
+ $t
1735
+ ] }), t[102] = Vt, t[103] = et, t[104] = P, t[105] = j, t[106] = R, t[107] = $t, t[108] = Dt) : Dt = t[108];
1736
+ let pt;
1737
+ t[109] !== vt || t[110] !== zt || t[111] !== ht || t[112] !== ot || t[113] !== it || t[114] !== wt || t[115] !== Dt ? (pt = /* @__PURE__ */ i.jsx(vt, { ref: zt, width: ht, height: ot, viewBox: it, direction: wt, children: Dt }), t[109] = vt, t[110] = zt, t[111] = ht, t[112] = ot, t[113] = it, t[114] = wt, t[115] = Dt, t[116] = pt) : pt = t[116];
1738
+ let $;
1739
+ t[117] !== a?.tooltip || t[118] !== Pt || t[119] !== Ht || t[120] !== I || t[121] !== s?.tooltip || t[122] !== gt ? ($ = I && gt && Pt && Ht ? /* @__PURE__ */ i.jsx(Se, { data: I, body: gt, xPos: Pt, yPos: Ht, backgroundStyle: s?.tooltip, className: a?.tooltip }) : null, t[117] = a?.tooltip, t[118] = Pt, t[119] = Ht, t[120] = I, t[121] = s?.tooltip, t[122] = gt, t[123] = $) : $ = t[123];
1733
1740
  let Wt;
1734
- t[123] !== a?.modal || t[124] !== T || t[125] !== y ? (Wt = T && y !== void 0 ? /* @__PURE__ */ i.jsx(Be, { body: T, data: y, setData: Ft, className: a?.modal }) : null, t[123] = a?.modal, t[124] = T, t[125] = y, t[126] = Wt) : Wt = t[126];
1735
- let n;
1736
- return t[127] !== ct || t[128] !== A || t[129] !== Wt ? (n = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1737
- ct,
1738
- A,
1741
+ t[124] !== a?.modal || t[125] !== B || t[126] !== N ? (Wt = B && N !== void 0 ? /* @__PURE__ */ i.jsx(Pe, { body: B, data: N, setData: mt, className: a?.modal }) : null, t[124] = a?.modal, t[125] = B, t[126] = N, t[127] = Wt) : Wt = t[127];
1742
+ let r;
1743
+ return t[128] !== pt || t[129] !== $ || t[130] !== Wt ? (r = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1744
+ pt,
1745
+ $,
1739
1746
  Wt
1740
- ] }), t[127] = ct, t[128] = A, t[129] = Wt, t[130] = n) : n = t[130], n;
1747
+ ] }), t[128] = pt, t[129] = $, t[130] = Wt, t[131] = r) : r = t[131], r;
1741
1748
  }
1742
- function Hl(e) {
1749
+ function Xs(e) {
1743
1750
  return e.layer;
1744
1751
  }
1745
- function Wl(e) {
1752
+ function Ys(e) {
1746
1753
  return e.position === "after";
1747
1754
  }
1748
- function Xl(e) {
1755
+ function Es(e) {
1749
1756
  return e;
1750
1757
  }
1751
- function Yl(e) {
1758
+ function Gs(e) {
1752
1759
  return e || 0;
1753
1760
  }
1754
- function El(e) {
1761
+ function Zs(e) {
1755
1762
  return e.layer;
1756
1763
  }
1757
- function Gl(e) {
1764
+ function Rs(e) {
1758
1765
  return e.position === "before";
1759
1766
  }
1760
- function Rl(e) {
1767
+ function qs(e) {
1761
1768
  return e !== 0;
1762
1769
  }
1763
- function ql(e) {
1770
+ function Us(e) {
1764
1771
  return e !== 0;
1765
1772
  }
1766
- function Ul(e) {
1773
+ function Js(e) {
1767
1774
  return `${e.id}`;
1768
1775
  }
1769
- function Jl(e) {
1770
- const t = $e.c(140), {
1771
- data: s,
1772
- leftMargin: H,
1773
- rightMargin: Gt,
1774
- topMargin: Kt,
1775
- bottomMargin: It,
1776
- width: At,
1777
- height: Bt,
1778
- barColors: P,
1779
- barPadding: R,
1776
+ function Ks(e) {
1777
+ const t = Me.c(142), {
1778
+ data: l,
1779
+ leftMargin: X,
1780
+ rightMargin: Rt,
1781
+ topMargin: Ut,
1782
+ bottomMargin: jt,
1783
+ width: Mt,
1784
+ height: St,
1785
+ barColors: H,
1786
+ barPadding: U,
1780
1787
  showLabels: O,
1781
- showTicks: X,
1782
- truncateBy: ut,
1783
- tooltip: Z,
1784
- onSeriesMouseOver: $t,
1785
- suffix: W,
1786
- prefix: st,
1787
- showValues: Nt,
1788
- refValues: Ot,
1789
- maxValue: Xt,
1790
- onSeriesMouseClick: k,
1791
- selectedColor: q,
1792
- labelOrder: j,
1793
- maxBarThickness: N,
1794
- minBarThickness: ot,
1795
- resetSelectionOnDoubleClick: U,
1796
- detailsOnClick: xt,
1797
- barAxisTitle: T,
1798
- valueColor: J,
1799
- noOfTicks: _,
1788
+ showTicks: G,
1789
+ truncateBy: gt,
1790
+ tooltip: st,
1791
+ onSeriesMouseOver: kt,
1792
+ suffix: Y,
1793
+ prefix: nt,
1794
+ showValues: Tt,
1795
+ refValues: Ct,
1796
+ maxValue: Yt,
1797
+ onSeriesMouseClick: M,
1798
+ selectedColor: J,
1799
+ labelOrder: S,
1800
+ maxBarThickness: z,
1801
+ minBarThickness: ut,
1802
+ resetSelectionOnDoubleClick: K,
1803
+ detailsOnClick: yt,
1804
+ barAxisTitle: B,
1805
+ valueColor: Q,
1806
+ noOfTicks: lt,
1800
1807
  styles: u,
1801
- classNames: l,
1808
+ classNames: s,
1802
1809
  animate: a,
1803
1810
  colorDomain: f,
1804
1811
  precision: x,
1805
- customLayers: w,
1806
- naLabel: h,
1807
- hideAxisLine: at,
1808
- locale: S
1809
- } = e, C = H === void 0 ? 20 : H, Ht = Gt === void 0 ? 20 : Gt, Rt = Kt === void 0 ? 20 : Kt, Mt = It === void 0 ? 25 : It, yt = Ae(null);
1810
- let Yt;
1811
- t[0] !== a.amount || t[1] !== a.once ? (Yt = {
1812
+ customLayers: y,
1813
+ naLabel: m,
1814
+ hideAxisLine: rt,
1815
+ locale: F,
1816
+ padZeros: L
1817
+ } = e, T = X === void 0 ? 20 : X, Et = Rt === void 0 ? 20 : Rt, Bt = Ut === void 0 ? 20 : Ut, xt = jt === void 0 ? 25 : jt, Ft = Oe(null);
1818
+ let Gt;
1819
+ t[0] !== a.amount || t[1] !== a.once ? (Gt = {
1812
1820
  once: a.once,
1813
1821
  amount: a.amount
1814
- }, t[0] = a.amount, t[1] = a.once, t[2] = Yt) : Yt = t[2];
1815
- const tt = Fe(yt, Yt), D = T ? C + 30 : C;
1816
- let B;
1817
- t[3] !== Mt || t[4] !== Ht || t[5] !== D || t[6] !== Rt ? (B = {
1818
- top: Rt,
1819
- bottom: Mt,
1820
- left: D,
1821
- right: Ht
1822
- }, t[3] = Mt, t[4] = Ht, t[5] = D, t[6] = Rt, t[7] = B) : B = t[7];
1823
- const p = B, [c, jt] = _t(void 0), [z, y] = _t(void 0), [Ft, Tt] = _t(void 0), [mt, qt] = _t(void 0), et = At - p.left - p.right, Pt = Bt - p.top - p.bottom;
1824
- let Y;
1825
- if (t[8] !== s || t[9] !== j) {
1826
- const n = /* @__PURE__ */ new Set(), v = s.map((r, b) => {
1827
- const G = j ? `${r.label}` : `${b}`;
1828
- return n.add(G), {
1829
- ...r,
1830
- id: G
1822
+ }, t[0] = a.amount, t[1] = a.once, t[2] = Gt) : Gt = t[2];
1823
+ const D = He(Ft, Gt), V = B ? T + 30 : T;
1824
+ let Z;
1825
+ t[3] !== xt || t[4] !== Et || t[5] !== V || t[6] !== Bt ? (Z = {
1826
+ top: Bt,
1827
+ bottom: xt,
1828
+ left: V,
1829
+ right: Et
1830
+ }, t[3] = xt, t[4] = Et, t[5] = V, t[6] = Bt, t[7] = Z) : Z = t[7];
1831
+ const p = Z, [b, I] = _t(void 0), [C, N] = _t(void 0), [mt, Pt] = _t(void 0), [Lt, Ht] = _t(void 0), ct = Mt - p.left - p.right, Xt = St - p.top - p.bottom;
1832
+ let W;
1833
+ if (t[8] !== l || t[9] !== S) {
1834
+ const r = /* @__PURE__ */ new Set(), v = l.map((c, g) => {
1835
+ const q = S ? `${c.label}` : `${g}`;
1836
+ return r.add(q), {
1837
+ ...c,
1838
+ id: q
1831
1839
  };
1832
- }), zt = j ? j.filter((r) => !n.has(r)) : [];
1833
- let wt;
1834
- t[11] !== s[0] ? (wt = (r) => ({
1835
- id: r,
1836
- label: r,
1837
- size: Array(s[0].size.length).fill(null)
1838
- }), t[11] = s[0], t[12] = wt) : wt = t[12], Y = [...v, ...zt.map(wt)], t[8] = s, t[9] = j, t[10] = Y;
1840
+ }), It = S ? S.filter((c) => !r.has(c)) : [];
1841
+ let Ot;
1842
+ t[11] !== l[0] ? (Ot = (c) => ({
1843
+ id: c,
1844
+ label: c,
1845
+ size: Array(l[0].size.length).fill(null)
1846
+ }), t[11] = l[0], t[12] = Ot) : Ot = t[12], W = [...v, ...It.map(Ot)], t[8] = l, t[9] = S, t[10] = W;
1839
1847
  } else
1840
- Y = t[10];
1841
- const it = Y;
1842
- let M;
1843
- t[13] !== it || t[14] !== j ? (M = j ?? it.map(ss), t[13] = it, t[14] = j, t[15] = M) : M = t[15];
1844
- const bt = M;
1845
- let kt, ht, ft, pt, St, Ct, K, F, I, Lt, nt, lt, Q, gt;
1846
- if (t[16] !== a || t[17] !== T || t[18] !== P || t[19] !== bt || t[20] !== R || t[21] !== l?.graphObjectValues || t[22] !== l?.xAxis?.axis || t[23] !== l?.xAxis?.labels || t[24] !== l?.yAxis?.gridLines || t[25] !== l?.yAxis?.labels || t[26] !== l?.yAxis?.title || t[27] !== f || t[28] !== w || t[29] !== it || t[30] !== xt || t[31] !== Pt || t[32] !== et || t[33] !== Bt || t[34] !== at || t[35] !== tt || t[36] !== C || t[37] !== S || t[38] !== p.bottom || t[39] !== p.left || t[40] !== p.right || t[41] !== p.top || t[42] !== N || t[43] !== Xt || t[44] !== ot || t[45] !== z || t[46] !== h || t[47] !== _ || t[48] !== k || t[49] !== $t || t[50] !== x || t[51] !== st || t[52] !== Ot || t[53] !== U || t[54] !== q || t[55] !== O || t[56] !== X || t[57] !== Nt || t[58] !== u?.graphObjectValues || t[59] !== u?.xAxis?.axis || t[60] !== u?.xAxis?.labels || t[61] !== u?.yAxis?.gridLines || t[62] !== u?.yAxis?.labels || t[63] !== u?.yAxis?.title || t[64] !== W || t[65] !== ut || t[66] !== J || t[67] !== At) {
1847
- const n = Pe().domain([0, Xt]).range([Pt, 0]).nice(), v = Le().domain(bt).range([0, ot ? Math.max(et, ot * bt.length) : N ? Math.min(et, N * bt.length) : et]).paddingInner(R), zt = n.ticks(_);
1848
- ht = te.svg, I = `${At}px`, Lt = `${Bt}px`, nt = `0 0 ${At} ${Bt}`, lt = "ltr", Q = yt, pt = `translate(${p.left},${p.top})`;
1849
- let wt;
1850
- t[82] !== S || t[83] !== h || t[84] !== x || t[85] !== st || t[86] !== X || t[87] !== W ? (wt = X ? we(0, h, x, st, W, S) : void 0, t[82] = S, t[83] = h, t[84] = x, t[85] = st, t[86] = X, t[87] = W, t[88] = wt) : wt = t[88];
1851
- const r = l?.xAxis?.axis, b = l?.yAxis?.labels;
1852
- let G;
1853
- t[89] !== r || t[90] !== b ? (G = {
1854
- axis: r,
1855
- label: b
1856
- }, t[89] = r, t[90] = b, t[91] = G) : G = t[91];
1857
- const Et = u?.xAxis?.axis, Ut = u?.yAxis?.labels;
1858
- let Jt;
1859
- t[92] !== Et || t[93] !== Ut ? (Jt = {
1860
- axis: Et,
1861
- label: Ut
1862
- }, t[92] = Et, t[93] = Ut, t[94] = Jt) : Jt = t[94], St = /* @__PURE__ */ i.jsx(Te, { hideAxisLine: at, y1: n(0), y2: n(0), x1: 0 - C, x2: et + p.right, label: wt, labelPos: {
1863
- x: 0 - C,
1864
- y: n(0),
1848
+ W = t[10];
1849
+ const _ = W;
1850
+ let k;
1851
+ t[13] !== _ || t[14] !== S ? (k = S ?? _.map(ol), t[13] = _, t[14] = S, t[15] = k) : k = t[15];
1852
+ const tt = k;
1853
+ let at, bt, vt, At, dt, Vt, et, P, j, zt, ht, ot, it, wt;
1854
+ if (t[16] !== a || t[17] !== B || t[18] !== H || t[19] !== tt || t[20] !== U || t[21] !== s?.graphObjectValues || t[22] !== s?.xAxis?.axis || t[23] !== s?.xAxis?.labels || t[24] !== s?.yAxis?.gridLines || t[25] !== s?.yAxis?.labels || t[26] !== s?.yAxis?.title || t[27] !== f || t[28] !== y || t[29] !== _ || t[30] !== yt || t[31] !== Xt || t[32] !== ct || t[33] !== St || t[34] !== rt || t[35] !== D || t[36] !== T || t[37] !== F || t[38] !== p.bottom || t[39] !== p.left || t[40] !== p.right || t[41] !== p.top || t[42] !== z || t[43] !== Yt || t[44] !== ut || t[45] !== C || t[46] !== m || t[47] !== lt || t[48] !== M || t[49] !== kt || t[50] !== L || t[51] !== x || t[52] !== nt || t[53] !== Ct || t[54] !== K || t[55] !== J || t[56] !== O || t[57] !== G || t[58] !== Tt || t[59] !== u?.graphObjectValues || t[60] !== u?.xAxis?.axis || t[61] !== u?.xAxis?.labels || t[62] !== u?.yAxis?.gridLines || t[63] !== u?.yAxis?.labels || t[64] !== u?.yAxis?.title || t[65] !== Y || t[66] !== gt || t[67] !== Q || t[68] !== Mt) {
1855
+ const r = We().domain([0, Yt]).range([Xt, 0]).nice(), v = ze().domain(tt).range([0, ut ? Math.max(ct, ut * tt.length) : z ? Math.min(ct, z * tt.length) : ct]).paddingInner(U), It = r.ticks(lt);
1856
+ bt = ee.svg, j = `${Mt}px`, zt = `${St}px`, ht = `0 0 ${Mt} ${St}`, ot = "ltr", it = Ft, At = `translate(${p.left},${p.top})`;
1857
+ let Ot;
1858
+ t[83] !== F || t[84] !== m || t[85] !== L || t[86] !== x || t[87] !== nt || t[88] !== G || t[89] !== Y ? (Ot = G ? $e(0, m, x, nt, Y, F, L) : void 0, t[83] = F, t[84] = m, t[85] = L, t[86] = x, t[87] = nt, t[88] = G, t[89] = Y, t[90] = Ot) : Ot = t[90];
1859
+ const c = s?.xAxis?.axis, g = s?.yAxis?.labels;
1860
+ let q;
1861
+ t[91] !== c || t[92] !== g ? (q = {
1862
+ axis: c,
1863
+ label: g
1864
+ }, t[91] = c, t[92] = g, t[93] = q) : q = t[93];
1865
+ const Zt = u?.xAxis?.axis, Qt = u?.yAxis?.labels;
1866
+ let qt;
1867
+ t[94] !== Zt || t[95] !== Qt ? (qt = {
1868
+ axis: Zt,
1869
+ label: Qt
1870
+ }, t[94] = Zt, t[95] = Qt, t[96] = qt) : qt = t[96], dt = /* @__PURE__ */ i.jsx(Be, { hideAxisLine: rt, y1: r(0), y2: r(0), x1: 0 - T, x2: ct + p.right, label: Ot, labelPos: {
1871
+ x: 0 - T,
1872
+ y: r(0),
1865
1873
  dx: 0,
1866
1874
  dy: -5
1867
- }, classNames: G, styles: Jt }), Ct = X ? /* @__PURE__ */ i.jsx(Qe, { values: zt.filter(ls), y: zt.filter(is).map((d) => n(d)), x1: 0 - C, x2: et + p.right, styles: {
1875
+ }, classNames: q, styles: qt }), Vt = G ? /* @__PURE__ */ i.jsx(_e, { values: It.filter(al), y: It.filter(ll).map((d) => r(d)), x1: 0 - T, x2: ct + p.right, styles: {
1868
1876
  gridLines: u?.yAxis?.gridLines,
1869
1877
  labels: u?.yAxis?.labels
1870
1878
  }, classNames: {
1871
- gridLines: l?.yAxis?.gridLines,
1872
- labels: l?.yAxis?.labels
1873
- }, suffix: W, prefix: st, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: x, locale: S }) : null;
1874
- const Zt = 0 - C - 15, dt = Pt / 2, g = u?.yAxis?.title, V = l?.yAxis?.title;
1875
- t[95] !== T || t[96] !== Zt || t[97] !== dt || t[98] !== g || t[99] !== V ? (K = /* @__PURE__ */ i.jsx(Se, { x: Zt, y: dt, style: g, className: V, text: T, rotate90: !0 }), t[95] = T, t[96] = Zt, t[97] = dt, t[98] = g, t[99] = V, t[100] = K) : K = t[100], t[101] !== w ? (F = w.filter(es).map(ts), t[101] = w, t[102] = F) : F = t[102], kt = He, gt = it.map((d) => ie(v(d.id)) ? null : /* @__PURE__ */ i.jsxs(te.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
1879
+ gridLines: s?.yAxis?.gridLines,
1880
+ labels: s?.yAxis?.labels
1881
+ }, suffix: Y, prefix: nt, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: x, locale: F, padZeros: L }) : null;
1882
+ const Jt = 0 - T - 15, te = Xt / 2, w = u?.yAxis?.title, h = s?.yAxis?.title;
1883
+ t[97] !== B || t[98] !== Jt || t[99] !== te || t[100] !== w || t[101] !== h ? (et = /* @__PURE__ */ i.jsx(Fe, { x: Jt, y: te, style: w, className: h, text: B, rotate90: !0 }), t[97] = B, t[98] = Jt, t[99] = te, t[100] = w, t[101] = h, t[102] = et) : et = t[102], t[103] !== y ? (P = y.filter(sl).map(il), t[103] = y, t[104] = P) : P = t[104], at = Xe, wt = _.map((d) => se(v(d.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
1876
1884
  initial: {
1877
1885
  x: v(`${d.id}`),
1878
1886
  y: 0
@@ -1886,101 +1894,101 @@ function Jl(e) {
1886
1894
  }
1887
1895
  }, transition: {
1888
1896
  duration: a.duration
1889
- }, initial: "initial", animate: tt ? "whileInView" : "initial", exit: {
1897
+ }, initial: "initial", animate: D ? "whileInView" : "initial", exit: {
1890
1898
  opacity: 0,
1891
1899
  transition: {
1892
1900
  duration: a.duration
1893
1901
  }
1894
1902
  }, children: [
1895
- d.size.map((L, o) => /* @__PURE__ */ i.jsxs(te.g, { opacity: q ? P[o] === q ? 1 : 0.3 : 1, onMouseEnter: ($) => {
1896
- jt({
1903
+ d.size.map((A, o) => /* @__PURE__ */ i.jsxs(ee.g, { opacity: J ? H[o] === J ? 1 : 0.3 : 1, onMouseEnter: (E) => {
1904
+ I({
1897
1905
  ...d,
1898
1906
  sizeIndex: o
1899
- }), qt($.clientY), Tt($.clientX), $t?.({
1907
+ }), Ht(E.clientY), Pt(E.clientX), kt?.({
1900
1908
  ...d,
1901
1909
  sizeIndex: o
1902
1910
  });
1903
- }, onMouseMove: ($) => {
1904
- jt({
1911
+ }, onMouseMove: (E) => {
1912
+ I({
1905
1913
  ...d,
1906
1914
  sizeIndex: o
1907
- }), qt($.clientY), Tt($.clientX);
1915
+ }), Ht(E.clientY), Pt(E.clientX);
1908
1916
  }, onMouseLeave: () => {
1909
- jt(void 0), Tt(void 0), qt(void 0), $t?.(void 0);
1917
+ I(void 0), Pt(void 0), Ht(void 0), kt?.(void 0);
1910
1918
  }, onClick: () => {
1911
- (k || xt) && (Ne(z, {
1919
+ (M || yt) && (Te(C, {
1912
1920
  ...d,
1913
1921
  sizeIndex: o
1914
- }) && U ? (y(void 0), k?.(void 0)) : (y({
1922
+ }) && K ? (N(void 0), M?.(void 0)) : (N({
1915
1923
  ...d,
1916
1924
  sizeIndex: o
1917
- }), k && k({
1925
+ }), M && M({
1918
1926
  ...d,
1919
1927
  sizeIndex: o
1920
1928
  })));
1921
1929
  }, children: [
1922
- /* @__PURE__ */ i.jsx(te.rect, { x: 0, width: v.bandwidth(), variants: {
1930
+ /* @__PURE__ */ i.jsx(ee.rect, { x: 0, width: v.bandwidth(), variants: {
1923
1931
  initial: {
1924
1932
  height: 0,
1925
- fill: P[o],
1926
- y: n(0)
1933
+ fill: H[o],
1934
+ y: r(0)
1927
1935
  },
1928
1936
  whileInView: {
1929
- height: Math.abs(n(me(d.size.filter(($, m) => m <= o && $))) - n(me(d.size.filter(($, m) => m < o && $)))),
1930
- y: n(me(d.size.filter(($, m) => m <= o && $))),
1931
- fill: P[o],
1937
+ height: Math.abs(r(fe(d.size.filter((E, n) => n <= o && E))) - r(fe(d.size.filter((E, n) => n < o && E)))),
1938
+ y: r(fe(d.size.filter((E, n) => n <= o && E))),
1939
+ fill: H[o],
1932
1940
  transition: {
1933
1941
  duration: a.duration
1934
1942
  }
1935
1943
  }
1936
- }, initial: "initial", animate: tt ? "whileInView" : "initial", exit: {
1944
+ }, initial: "initial", animate: D ? "whileInView" : "initial", exit: {
1937
1945
  height: 0,
1938
- y: n(0),
1946
+ y: r(0),
1939
1947
  transition: {
1940
1948
  duration: a.duration
1941
1949
  }
1942
1950
  } }),
1943
- Nt ? /* @__PURE__ */ i.jsx(te.text, { x: v.bandwidth() / 2, style: {
1951
+ Tt ? /* @__PURE__ */ i.jsx(ee.text, { x: v.bandwidth() / 2, style: {
1944
1952
  textAnchor: "middle",
1945
1953
  ...u?.graphObjectValues || {}
1946
- }, className: Ce("graph-value text-sm", l?.graphObjectValues), dy: "0.33em", variants: {
1954
+ }, className: Ve("graph-value text-sm", s?.graphObjectValues), dy: "0.33em", variants: {
1947
1955
  initial: {
1948
- y: n(0),
1956
+ y: r(0),
1949
1957
  opacity: 0,
1950
- fill: Ye(P[o])
1958
+ fill: Ge(H[o])
1951
1959
  },
1952
1960
  whileInView: {
1953
- y: n(me(d.size.filter(($, m) => m <= o && $))) + Math.abs(n(me(d.size.filter(($, m) => m <= o && $))) - n(me(d.size.filter(($, m) => m < o && $)))) / 2,
1954
- opacity: L && Math.abs(n(me(d.size.filter(($, m) => m <= o && $))) - n(me(d.size.filter(($, m) => m < o && $)))) > 20 ? 1 : 0,
1955
- fill: Ye(P[o]),
1961
+ y: r(fe(d.size.filter((E, n) => n <= o && E))) + Math.abs(r(fe(d.size.filter((E, n) => n <= o && E))) - r(fe(d.size.filter((E, n) => n < o && E)))) / 2,
1962
+ opacity: A && Math.abs(r(fe(d.size.filter((E, n) => n <= o && E))) - r(fe(d.size.filter((E, n) => n < o && E)))) > 20 ? 1 : 0,
1963
+ fill: Ge(H[o]),
1956
1964
  transition: {
1957
1965
  duration: a.duration
1958
1966
  }
1959
1967
  }
1960
- }, initial: "initial", animate: tt ? "whileInView" : "initial", exit: {
1968
+ }, initial: "initial", animate: D ? "whileInView" : "initial", exit: {
1961
1969
  opacity: 0,
1962
1970
  transition: {
1963
1971
  duration: a.duration
1964
1972
  }
1965
- }, children: we(L, h, x, st, W, S) }) : null
1973
+ }, children: $e(A, m, x, nt, Y, F, L) }) : null
1966
1974
  ] }, `${d.label}-${f[o] || o}`)),
1967
- O ? /* @__PURE__ */ i.jsx(Ze, { value: `${d.label}`.length < ut ? `${d.label}` : `${`${d.label}`.substring(0, ut)}...`, y: n(0) + 5, x: 0, width: v.bandwidth(), height: p.bottom, style: u?.xAxis?.labels, className: l?.xAxis?.labels, alignment: "top", animate: a, isInView: tt }) : null,
1968
- Nt ? /* @__PURE__ */ i.jsx(te.text, { style: {
1975
+ O ? /* @__PURE__ */ i.jsx(ti, { value: `${d.label}`.length < gt ? `${d.label}` : `${`${d.label}`.substring(0, gt)}...`, y: r(0) + 5, x: 0, width: v.bandwidth(), height: p.bottom, style: u?.xAxis?.labels, className: s?.xAxis?.labels, alignment: "top", animate: a, isInView: D }) : null,
1976
+ Tt ? /* @__PURE__ */ i.jsx(ee.text, { style: {
1969
1977
  textAnchor: "middle",
1970
1978
  ...u?.graphObjectValues || {}
1971
- }, x: v.bandwidth() / 2, dy: -10, className: Ce("graph-value graph-value-total", J ? "text-sm" : "fill-primary-gray-700 dark:fill-primary-gray-300 text-sm", l?.graphObjectValues), variants: {
1979
+ }, x: v.bandwidth() / 2, dy: -10, className: Ve("graph-value graph-value-total", Q ? "text-sm" : "fill-primary-gray-700 dark:fill-primary-gray-300 text-sm", s?.graphObjectValues), variants: {
1972
1980
  initial: {
1973
- y: n(0),
1981
+ y: r(0),
1974
1982
  opacity: 0,
1975
- ...J && {
1976
- fill: J
1983
+ ...Q && {
1984
+ fill: Q
1977
1985
  }
1978
1986
  },
1979
1987
  whileInView: {
1980
- y: n(me(d.size.map(_l))),
1988
+ y: r(fe(d.size.map(el))),
1981
1989
  opacity: 1,
1982
- ...J && {
1983
- fill: J
1990
+ ...Q && {
1991
+ fill: Q
1984
1992
  },
1985
1993
  transition: {
1986
1994
  duration: a.duration
@@ -1991,465 +1999,457 @@ function Jl(e) {
1991
1999
  transition: {
1992
2000
  duration: a.duration
1993
2001
  }
1994
- }, initial: "initial", animate: tt ? "whileInView" : "initial", children: we(me(d.size.filter(Zl)), h, x, st, W, S) }) : null
1995
- ] }, d.label)), ft = Ot ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Ot.map((d, L) => /* @__PURE__ */ i.jsx(Ke, { text: d.text, color: d.color, y: n(d.value), x1: 0 - C, x2: et + p.right, classNames: d.classNames, styles: d.styles, animate: a, isInView: tt }, L)) }) : null, t[16] = a, t[17] = T, t[18] = P, t[19] = bt, t[20] = R, t[21] = l?.graphObjectValues, t[22] = l?.xAxis?.axis, t[23] = l?.xAxis?.labels, t[24] = l?.yAxis?.gridLines, t[25] = l?.yAxis?.labels, t[26] = l?.yAxis?.title, t[27] = f, t[28] = w, t[29] = it, t[30] = xt, t[31] = Pt, t[32] = et, t[33] = Bt, t[34] = at, t[35] = tt, t[36] = C, t[37] = S, t[38] = p.bottom, t[39] = p.left, t[40] = p.right, t[41] = p.top, t[42] = N, t[43] = Xt, t[44] = ot, t[45] = z, t[46] = h, t[47] = _, t[48] = k, t[49] = $t, t[50] = x, t[51] = st, t[52] = Ot, t[53] = U, t[54] = q, t[55] = O, t[56] = X, t[57] = Nt, t[58] = u?.graphObjectValues, t[59] = u?.xAxis?.axis, t[60] = u?.xAxis?.labels, t[61] = u?.yAxis?.gridLines, t[62] = u?.yAxis?.labels, t[63] = u?.yAxis?.title, t[64] = W, t[65] = ut, t[66] = J, t[67] = At, t[68] = kt, t[69] = ht, t[70] = ft, t[71] = pt, t[72] = St, t[73] = Ct, t[74] = K, t[75] = F, t[76] = I, t[77] = Lt, t[78] = nt, t[79] = lt, t[80] = Q, t[81] = gt;
2002
+ }, initial: "initial", animate: D ? "whileInView" : "initial", children: $e(fe(d.size.filter(tl)), m, x, nt, Y, F, L) }) : null
2003
+ ] }, d.label)), vt = Ct ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Ct.map((d, A) => /* @__PURE__ */ i.jsx(Qe, { text: d.text, color: d.color, y: r(d.value), x1: 0 - T, x2: ct + p.right, classNames: d.classNames, styles: d.styles, animate: a, isInView: D }, A)) }) : null, t[16] = a, t[17] = B, t[18] = H, t[19] = tt, t[20] = U, t[21] = s?.graphObjectValues, t[22] = s?.xAxis?.axis, t[23] = s?.xAxis?.labels, t[24] = s?.yAxis?.gridLines, t[25] = s?.yAxis?.labels, t[26] = s?.yAxis?.title, t[27] = f, t[28] = y, t[29] = _, t[30] = yt, t[31] = Xt, t[32] = ct, t[33] = St, t[34] = rt, t[35] = D, t[36] = T, t[37] = F, t[38] = p.bottom, t[39] = p.left, t[40] = p.right, t[41] = p.top, t[42] = z, t[43] = Yt, t[44] = ut, t[45] = C, t[46] = m, t[47] = lt, t[48] = M, t[49] = kt, t[50] = L, t[51] = x, t[52] = nt, t[53] = Ct, t[54] = K, t[55] = J, t[56] = O, t[57] = G, t[58] = Tt, t[59] = u?.graphObjectValues, t[60] = u?.xAxis?.axis, t[61] = u?.xAxis?.labels, t[62] = u?.yAxis?.gridLines, t[63] = u?.yAxis?.labels, t[64] = u?.yAxis?.title, t[65] = Y, t[66] = gt, t[67] = Q, t[68] = Mt, t[69] = at, t[70] = bt, t[71] = vt, t[72] = At, t[73] = dt, t[74] = Vt, t[75] = et, t[76] = P, t[77] = j, t[78] = zt, t[79] = ht, t[80] = ot, t[81] = it, t[82] = wt;
1996
2004
  } else
1997
- kt = t[68], ht = t[69], ft = t[70], pt = t[71], St = t[72], Ct = t[73], K = t[74], F = t[75], I = t[76], Lt = t[77], nt = t[78], lt = t[79], Q = t[80], gt = t[81];
1998
- let rt;
1999
- t[103] !== kt || t[104] !== ft || t[105] !== gt ? (rt = /* @__PURE__ */ i.jsxs(kt, { children: [
2000
- gt,
2001
- ft
2002
- ] }), t[103] = kt, t[104] = ft, t[105] = gt, t[106] = rt) : rt = t[106];
2003
- let E;
2004
- t[107] !== w ? (E = w.filter(Ql).map(Kl), t[107] = w, t[108] = E) : E = t[108];
2005
- let vt;
2006
- t[109] !== pt || t[110] !== St || t[111] !== Ct || t[112] !== K || t[113] !== F || t[114] !== rt || t[115] !== E ? (vt = /* @__PURE__ */ i.jsxs("g", { transform: pt, children: [
2007
- St,
2008
- Ct,
2009
- K,
2010
- F,
2011
- rt,
2012
- E
2013
- ] }), t[109] = pt, t[110] = St, t[111] = Ct, t[112] = K, t[113] = F, t[114] = rt, t[115] = E, t[116] = vt) : vt = t[116];
2014
- let Vt;
2015
- t[117] !== ht || t[118] !== I || t[119] !== Lt || t[120] !== nt || t[121] !== lt || t[122] !== Q || t[123] !== vt ? (Vt = /* @__PURE__ */ i.jsx(ht, { width: I, height: Lt, viewBox: nt, direction: lt, ref: Q, children: vt }), t[117] = ht, t[118] = I, t[119] = Lt, t[120] = nt, t[121] = lt, t[122] = Q, t[123] = vt, t[124] = Vt) : Vt = t[124];
2016
- let ct;
2017
- t[125] !== l?.tooltip || t[126] !== Ft || t[127] !== mt || t[128] !== c || t[129] !== u?.tooltip || t[130] !== Z ? (ct = c && Z && Ft && mt ? /* @__PURE__ */ i.jsx(je, { data: c, body: Z, xPos: Ft, yPos: mt, backgroundStyle: u?.tooltip, className: l?.tooltip }) : null, t[125] = l?.tooltip, t[126] = Ft, t[127] = mt, t[128] = c, t[129] = u?.tooltip, t[130] = Z, t[131] = ct) : ct = t[131];
2018
- let A;
2019
- t[132] !== l?.modal || t[133] !== xt || t[134] !== z ? (A = xt && z !== void 0 ? /* @__PURE__ */ i.jsx(Be, { body: xt, data: z, setData: y, className: l?.modal }) : null, t[132] = l?.modal, t[133] = xt, t[134] = z, t[135] = A) : A = t[135];
2020
- let Wt;
2021
- return t[136] !== Vt || t[137] !== ct || t[138] !== A ? (Wt = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
2005
+ at = t[69], bt = t[70], vt = t[71], At = t[72], dt = t[73], Vt = t[74], et = t[75], P = t[76], j = t[77], zt = t[78], ht = t[79], ot = t[80], it = t[81], wt = t[82];
2006
+ let ft;
2007
+ t[105] !== at || t[106] !== vt || t[107] !== wt ? (ft = /* @__PURE__ */ i.jsxs(at, { children: [
2008
+ wt,
2009
+ vt
2010
+ ] }), t[105] = at, t[106] = vt, t[107] = wt, t[108] = ft) : ft = t[108];
2011
+ let R;
2012
+ t[109] !== y ? (R = y.filter(_s).map(Qs), t[109] = y, t[110] = R) : R = t[110];
2013
+ let $t;
2014
+ t[111] !== At || t[112] !== dt || t[113] !== Vt || t[114] !== et || t[115] !== P || t[116] !== ft || t[117] !== R ? ($t = /* @__PURE__ */ i.jsxs("g", { transform: At, children: [
2015
+ dt,
2022
2016
  Vt,
2023
- ct,
2024
- A
2025
- ] }), t[136] = Vt, t[137] = ct, t[138] = A, t[139] = Wt) : Wt = t[139], Wt;
2017
+ et,
2018
+ P,
2019
+ ft,
2020
+ R
2021
+ ] }), t[111] = At, t[112] = dt, t[113] = Vt, t[114] = et, t[115] = P, t[116] = ft, t[117] = R, t[118] = $t) : $t = t[118];
2022
+ let Dt;
2023
+ t[119] !== bt || t[120] !== j || t[121] !== zt || t[122] !== ht || t[123] !== ot || t[124] !== it || t[125] !== $t ? (Dt = /* @__PURE__ */ i.jsx(bt, { width: j, height: zt, viewBox: ht, direction: ot, ref: it, children: $t }), t[119] = bt, t[120] = j, t[121] = zt, t[122] = ht, t[123] = ot, t[124] = it, t[125] = $t, t[126] = Dt) : Dt = t[126];
2024
+ let pt;
2025
+ t[127] !== s?.tooltip || t[128] !== mt || t[129] !== Lt || t[130] !== b || t[131] !== u?.tooltip || t[132] !== st ? (pt = b && st && mt && Lt ? /* @__PURE__ */ i.jsx(Se, { data: b, body: st, xPos: mt, yPos: Lt, backgroundStyle: u?.tooltip, className: s?.tooltip }) : null, t[127] = s?.tooltip, t[128] = mt, t[129] = Lt, t[130] = b, t[131] = u?.tooltip, t[132] = st, t[133] = pt) : pt = t[133];
2026
+ let $;
2027
+ t[134] !== s?.modal || t[135] !== yt || t[136] !== C ? ($ = yt && C !== void 0 ? /* @__PURE__ */ i.jsx(Pe, { body: yt, data: C, setData: N, className: s?.modal }) : null, t[134] = s?.modal, t[135] = yt, t[136] = C, t[137] = $) : $ = t[137];
2028
+ let Wt;
2029
+ return t[138] !== Dt || t[139] !== pt || t[140] !== $ ? (Wt = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
2030
+ Dt,
2031
+ pt,
2032
+ $
2033
+ ] }), t[138] = Dt, t[139] = pt, t[140] = $, t[141] = Wt) : Wt = t[141], Wt;
2026
2034
  }
2027
- function Kl(e) {
2035
+ function Qs(e) {
2028
2036
  return e.layer;
2029
2037
  }
2030
- function Ql(e) {
2038
+ function _s(e) {
2031
2039
  return e.position === "after";
2032
2040
  }
2033
- function Zl(e) {
2041
+ function tl(e) {
2034
2042
  return e;
2035
2043
  }
2036
- function _l(e) {
2044
+ function el(e) {
2037
2045
  return e || 0;
2038
2046
  }
2039
- function ts(e) {
2047
+ function il(e) {
2040
2048
  return e.layer;
2041
2049
  }
2042
- function es(e) {
2050
+ function sl(e) {
2043
2051
  return e.position === "before";
2044
2052
  }
2045
- function is(e) {
2053
+ function ll(e) {
2046
2054
  return e !== 0;
2047
2055
  }
2048
- function ls(e) {
2056
+ function al(e) {
2049
2057
  return e !== 0;
2050
2058
  }
2051
- function ss(e) {
2059
+ function ol(e) {
2052
2060
  return `${e.id}`;
2053
2061
  }
2054
- function as(e) {
2055
- const t = $e.c(128), {
2056
- data: s,
2057
- graphTitle: H,
2058
- colors: Gt,
2059
- sources: Kt,
2060
- graphDescription: It,
2061
- barPadding: At,
2062
- showTicks: Bt,
2063
- truncateBy: P,
2064
- height: R,
2062
+ function nl(e) {
2063
+ const t = Me.c(129), {
2064
+ data: l,
2065
+ graphTitle: X,
2066
+ colors: Rt,
2067
+ sources: Ut,
2068
+ graphDescription: jt,
2069
+ barPadding: Mt,
2070
+ showTicks: St,
2071
+ truncateBy: H,
2072
+ height: U,
2065
2073
  width: O,
2066
- footNote: X,
2067
- colorDomain: ut,
2068
- colorLegendTitle: Z,
2069
- padding: $t,
2070
- backgroundColor: W,
2071
- topMargin: st,
2072
- bottomMargin: Nt,
2073
- leftMargin: Ot,
2074
- rightMargin: Xt,
2075
- tooltip: k,
2076
- onSeriesMouseOver: q,
2077
- suffix: j,
2078
- prefix: N,
2079
- showLabels: ot,
2080
- relativeHeight: U,
2081
- showValues: xt,
2082
- refValues: T,
2083
- graphID: J,
2084
- maxValue: _,
2074
+ footNote: G,
2075
+ colorDomain: gt,
2076
+ colorLegendTitle: st,
2077
+ padding: kt,
2078
+ backgroundColor: Y,
2079
+ topMargin: nt,
2080
+ bottomMargin: Tt,
2081
+ leftMargin: Ct,
2082
+ rightMargin: Yt,
2083
+ tooltip: M,
2084
+ onSeriesMouseOver: J,
2085
+ suffix: S,
2086
+ prefix: z,
2087
+ showLabels: ut,
2088
+ relativeHeight: K,
2089
+ showValues: yt,
2090
+ refValues: B,
2091
+ graphID: Q,
2092
+ maxValue: lt,
2085
2093
  onSeriesMouseClick: u,
2086
- graphDownload: l,
2094
+ graphDownload: s,
2087
2095
  dataDownload: a,
2088
2096
  language: f,
2089
2097
  labelOrder: x,
2090
- minHeight: w,
2091
- theme: h,
2092
- maxBarThickness: at,
2093
- sortParameter: S,
2094
- maxNumberOfBars: C,
2095
- minBarThickness: Ht,
2096
- showColorScale: Rt,
2097
- ariaLabel: Mt,
2098
- resetSelectionOnDoubleClick: yt,
2099
- detailsOnClick: Yt,
2100
- barAxisTitle: tt,
2098
+ minHeight: y,
2099
+ theme: m,
2100
+ maxBarThickness: rt,
2101
+ sortParameter: F,
2102
+ maxNumberOfBars: L,
2103
+ minBarThickness: T,
2104
+ showColorScale: Et,
2105
+ ariaLabel: Bt,
2106
+ resetSelectionOnDoubleClick: xt,
2107
+ detailsOnClick: Ft,
2108
+ barAxisTitle: Gt,
2101
2109
  noOfTicks: D,
2102
- valueColor: B,
2103
- styles: p,
2104
- classNames: c,
2105
- filterNA: jt,
2106
- animate: z,
2107
- precision: y,
2108
- locale: Ft,
2109
- customLayers: Tt,
2110
- timeline: mt,
2111
- naLabel: qt,
2112
- sortData: et,
2113
- orientation: Pt,
2114
- hideAxisLine: Y
2115
- } = e, it = Gt === void 0 ? ye.light.categoricalColors.colors : Gt, M = At === void 0 ? 0.25 : At, bt = Bt === void 0 ? !0 : Bt, kt = P === void 0 ? 999 : P, ht = W === void 0 ? !1 : W, ft = j === void 0 ? "" : j, pt = N === void 0 ? "" : N, St = ot === void 0 ? !0 : ot, Ct = xt === void 0 ? !0 : xt, K = l === void 0 ? !1 : l, F = a === void 0 ? !1 : a, I = f === void 0 ? "en" : f, Lt = w === void 0 ? 0 : w, nt = h === void 0 ? "light" : h, lt = Rt === void 0 ? !0 : Rt, Q = yt === void 0 ? !0 : yt, gt = D === void 0 ? 5 : D, rt = jt === void 0 ? !0 : jt, E = z === void 0 ? !1 : z, vt = y === void 0 ? 2 : y, Vt = Ft === void 0 ? "en" : Ft;
2116
- let ct;
2117
- t[0] !== Tt ? (ct = Tt === void 0 ? [] : Tt, t[0] = Tt, t[1] = ct) : ct = t[1];
2118
- const A = ct;
2110
+ valueColor: V,
2111
+ styles: Z,
2112
+ classNames: p,
2113
+ filterNA: b,
2114
+ animate: I,
2115
+ precision: C,
2116
+ locale: N,
2117
+ customLayers: mt,
2118
+ timeline: Pt,
2119
+ naLabel: Lt,
2120
+ sortData: Ht,
2121
+ orientation: ct,
2122
+ hideAxisLine: Xt,
2123
+ padZeros: W
2124
+ } = e, _ = Rt === void 0 ? ve.light.categoricalColors.colors : Rt, k = Mt === void 0 ? 0.25 : Mt, tt = St === void 0 ? !0 : St, at = H === void 0 ? 999 : H, bt = Y === void 0 ? !1 : Y, vt = S === void 0 ? "" : S, At = z === void 0 ? "" : z, dt = ut === void 0 ? !0 : ut, Vt = yt === void 0 ? !0 : yt, et = s === void 0 ? !1 : s, P = a === void 0 ? !1 : a, j = f === void 0 ? "en" : f, zt = y === void 0 ? 0 : y, ht = m === void 0 ? "light" : m, ot = Et === void 0 ? !0 : Et, it = xt === void 0 ? !0 : xt, wt = D === void 0 ? 5 : D, ft = b === void 0 ? !0 : b, R = I === void 0 ? !1 : I, $t = C === void 0 ? 2 : C, Dt = N === void 0 ? "en" : N;
2125
+ let pt;
2126
+ t[0] !== mt ? (pt = mt === void 0 ? [] : mt, t[0] = mt, t[1] = pt) : pt = t[1];
2127
+ const $ = pt;
2119
2128
  let Wt;
2120
- t[2] !== mt ? (Wt = mt === void 0 ? {
2129
+ t[2] !== Pt ? (Wt = Pt === void 0 ? {
2121
2130
  enabled: !1,
2122
2131
  autoplay: !1,
2123
2132
  showOnlyActiveDate: !0
2124
- } : mt, t[2] = mt, t[3] = Wt) : Wt = t[3];
2125
- const n = Wt, v = qt === void 0 ? "NA" : qt, zt = Pt === void 0 ? "vertical" : Pt, wt = Y === void 0 ? !1 : Y, r = zt === "horizontal" ? Pl : Jl, [b, G] = _t(0), [Et, Ut] = _t(0), [Jt, Zt] = _t(n.autoplay);
2126
- let dt;
2127
- if (t[4] !== s || t[5] !== n.dateFormat) {
2128
- let Dt;
2129
- t[7] !== n.dateFormat ? (Dt = (ae) => Re(`${ae.date}`, n.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = n.dateFormat, t[8] = Dt) : Dt = t[8], dt = [...new Set(s.filter(bs).map(Dt))], dt.sort(ys), t[4] = s, t[5] = n.dateFormat, t[6] = dt;
2133
+ } : Pt, t[2] = Pt, t[3] = Wt) : Wt = t[3];
2134
+ const r = Wt, v = Lt === void 0 ? "NA" : Lt, It = ct === void 0 ? "vertical" : ct, Ot = Xt === void 0 ? !1 : Xt, c = W === void 0 ? !1 : W, g = It === "horizontal" ? Ws : Ks, [q, Zt] = _t(0), [Qt, qt] = _t(0), [Jt, te] = _t(r.autoplay);
2135
+ let w;
2136
+ if (t[4] !== l || t[5] !== r.dateFormat) {
2137
+ let Nt;
2138
+ t[7] !== r.dateFormat ? (Nt = (ne) => qe(`${ne.date}`, r.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = r.dateFormat, t[8] = Nt) : Nt = t[8], w = [...new Set(l.filter(wl).map(Nt))], w.sort(vl), t[4] = l, t[5] = r.dateFormat, t[6] = w;
2130
2139
  } else
2131
- dt = t[6];
2132
- const g = dt, [V, d] = _t(n.autoplay ? 0 : g.length - 1), [L, o] = _t(void 0), $ = Ae(null), m = Ae(null);
2133
- let he, oe;
2134
- t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (he = () => {
2135
- const Dt = new ResizeObserver((ae) => {
2136
- G(ae[0].target.clientWidth || 620), Ut(ae[0].target.clientHeight || 480);
2140
+ w = t[6];
2141
+ const h = w, [d, A] = _t(r.autoplay ? 0 : h.length - 1), [o, E] = _t(void 0), n = Oe(null), le = Oe(null);
2142
+ let re, ye;
2143
+ t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = () => {
2144
+ const Nt = new ResizeObserver((ne) => {
2145
+ Zt(ne[0].target.clientWidth || 620), qt(ne[0].target.clientHeight || 480);
2137
2146
  });
2138
- return $.current && Dt.observe($.current), () => Dt.disconnect();
2139
- }, oe = [], t[9] = he, t[10] = oe) : (he = t[9], oe = t[10]), Ie(he, oe);
2140
- let Oe, be;
2141
- t[11] !== Jt || t[12] !== n.speed || t[13] !== g ? (Oe = () => {
2142
- const Dt = setInterval(() => {
2143
- d((ae) => ae < g.length - 1 ? ae + 1 : 0);
2144
- }, (n.speed || 2) * 1e3);
2145
- return Jt || clearInterval(Dt), () => clearInterval(Dt);
2146
- }, be = [g, Jt, n.speed], t[11] = Jt, t[12] = n.speed, t[13] = g, t[14] = Oe, t[15] = be) : (Oe = t[14], be = t[15]), Ie(Oe, be);
2147
- const Me = n.dateFormat || "yyyy";
2148
- let pe;
2149
- t[16] !== V || t[17] !== Me || t[18] !== n.showOnlyActiveDate || t[19] !== g ? (pe = Ee(g, V, n.showOnlyActiveDate, Me), t[16] = V, t[17] = Me, t[18] = n.showOnlyActiveDate, t[19] = g, t[20] = pe) : pe = t[20];
2150
- const ge = pe, ve = c?.graphContainer, fe = p?.graphContainer;
2151
- let de;
2152
- t[21] !== c?.description || t[22] !== c?.title || t[23] !== s || t[24] !== F || t[25] !== It || t[26] !== K || t[27] !== H || t[28] !== p?.description || t[29] !== p?.title || t[30] !== O ? (de = H || It || K || F ? /* @__PURE__ */ i.jsx(_e, { styles: {
2147
+ return n.current && Nt.observe(n.current), () => Nt.disconnect();
2148
+ }, ye = [], t[9] = re, t[10] = ye) : (re = t[9], ye = t[10]), je(re, ye);
2149
+ let ke, we;
2150
+ t[11] !== Jt || t[12] !== r.speed || t[13] !== h ? (ke = () => {
2151
+ const Nt = setInterval(() => {
2152
+ A((ne) => ne < h.length - 1 ? ne + 1 : 0);
2153
+ }, (r.speed || 2) * 1e3);
2154
+ return Jt || clearInterval(Nt), () => clearInterval(Nt);
2155
+ }, we = [h, Jt, r.speed], t[11] = Jt, t[12] = r.speed, t[13] = h, t[14] = ke, t[15] = we) : (ke = t[14], we = t[15]), je(ke, we);
2156
+ const Ce = r.dateFormat || "yyyy";
2157
+ let ge;
2158
+ t[16] !== d || t[17] !== Ce || t[18] !== r.showOnlyActiveDate || t[19] !== h ? (ge = Ze(h, d, r.showOnlyActiveDate, Ce), t[16] = d, t[17] = Ce, t[18] = r.showOnlyActiveDate, t[19] = h, t[20] = ge) : ge = t[20];
2159
+ const be = ge, Ae = p?.graphContainer, pe = Z?.graphContainer;
2160
+ let xe;
2161
+ t[21] !== p?.description || t[22] !== p?.title || t[23] !== l || t[24] !== P || t[25] !== jt || t[26] !== et || t[27] !== X || t[28] !== Z?.description || t[29] !== Z?.title || t[30] !== O ? (xe = X || jt || et || P ? /* @__PURE__ */ i.jsx(ei, { styles: {
2162
+ title: Z?.title,
2163
+ description: Z?.description
2164
+ }, classNames: {
2153
2165
  title: p?.title,
2154
2166
  description: p?.description
2155
- }, classNames: {
2156
- title: c?.title,
2157
- description: c?.description
2158
- }, graphTitle: H, graphDescription: It, width: O, graphDownload: K ? m : void 0, dataDownload: F ? s.map(gs).filter(ps).length > 0 ? s.map(fs).filter(hs) : s.filter(ms) : null }) : null, t[21] = c?.description, t[22] = c?.title, t[23] = s, t[24] = F, t[25] = It, t[26] = K, t[27] = H, t[28] = p?.description, t[29] = p?.title, t[30] = O, t[31] = de) : de = t[31];
2159
- let ne;
2160
- t[32] !== V || t[33] !== ge || t[34] !== Jt || t[35] !== n.enabled || t[36] !== g ? (ne = n.enabled && g.length > 0 && ge ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
2167
+ }, graphTitle: X, graphDescription: jt, width: O, graphDownload: et ? le : void 0, dataDownload: P ? l.map(bl).filter(yl).length > 0 ? l.map(gl).filter(pl) : l.filter(fl) : null }) : null, t[21] = p?.description, t[22] = p?.title, t[23] = l, t[24] = P, t[25] = jt, t[26] = et, t[27] = X, t[28] = Z?.description, t[29] = Z?.title, t[30] = O, t[31] = xe) : xe = t[31];
2168
+ let ce;
2169
+ t[32] !== d || t[33] !== be || t[34] !== Jt || t[35] !== r.enabled || t[36] !== h ? (ce = r.enabled && h.length > 0 && be ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
2161
2170
  /* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
2162
- Zt(!Jt);
2163
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Jt ? "Click to pause animation" : "Click to play animation", children: Jt ? /* @__PURE__ */ i.jsx(li, {}) : /* @__PURE__ */ i.jsx(si, {}) }),
2164
- /* @__PURE__ */ i.jsx(Ge, { min: g[0], max: g[g.length - 1], marks: ge, step: null, defaultValue: g[g.length - 1], value: g[V], onChangeComplete: (Dt) => {
2165
- d(g.indexOf(Dt));
2166
- }, onChange: (Dt) => {
2167
- d(g.indexOf(Dt));
2171
+ te(!Jt);
2172
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Jt ? "Click to pause animation" : "Click to play animation", children: Jt ? /* @__PURE__ */ i.jsx(ai, {}) : /* @__PURE__ */ i.jsx(oi, {}) }),
2173
+ /* @__PURE__ */ i.jsx(Re, { min: h[0], max: h[h.length - 1], marks: be, step: null, defaultValue: h[h.length - 1], value: h[d], onChangeComplete: (Nt) => {
2174
+ A(h.indexOf(Nt));
2175
+ }, onChange: (Nt) => {
2176
+ A(h.indexOf(Nt));
2168
2177
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
2169
- ] }) : null, t[32] = V, t[33] = ge, t[34] = Jt, t[35] = n.enabled, t[36] = g, t[37] = ne) : ne = t[37];
2170
- let re;
2171
- t[38] !== c?.colorLegend || t[39] !== ut || t[40] !== Z || t[41] !== it || t[42] !== s.length || t[43] !== lt || t[44] !== O ? (re = lt && s.length > 0 ? /* @__PURE__ */ i.jsx(ei, { width: O, colorDomain: ut, colors: it, colorLegendTitle: Z, setSelectedColor: o, showNAColor: !1, className: c?.colorLegend }) : null, t[38] = c?.colorLegend, t[39] = ut, t[40] = Z, t[41] = it, t[42] = s.length, t[43] = lt, t[44] = O, t[45] = re) : re = t[45];
2172
- let ue;
2173
- t[46] !== s.length ? (ue = s.length === 0 && /* @__PURE__ */ i.jsx(ii, {}), t[46] = s.length, t[47] = ue) : ue = t[47];
2174
- let xe;
2175
- t[48] !== r || t[49] !== E || t[50] !== tt || t[51] !== M || t[52] !== Nt || t[53] !== c || t[54] !== ut || t[55] !== it || t[56] !== A || t[57] !== s || t[58] !== Yt || t[59] !== rt || t[60] !== wt || t[61] !== V || t[62] !== x || t[63] !== I || t[64] !== Ot || t[65] !== Vt || t[66] !== at || t[67] !== C || t[68] !== _ || t[69] !== Ht || t[70] !== v || t[71] !== gt || t[72] !== u || t[73] !== q || t[74] !== vt || t[75] !== pt || t[76] !== T || t[77] !== Q || t[78] !== Xt || t[79] !== L || t[80] !== St || t[81] !== bt || t[82] !== Ct || t[83] !== et || t[84] !== S || t[85] !== p || t[86] !== ft || t[87] !== Et || t[88] !== b || t[89] !== n.dateFormat || t[90] !== n.enabled || t[91] !== k || t[92] !== st || t[93] !== kt || t[94] !== g || t[95] !== B ? (xe = b && Et && s.length > 0 ? /* @__PURE__ */ i.jsx(r, { hideAxisLine: wt, data: S !== void 0 ? S === "total" ? We(De(s, n.dateFormat || "yyyy").filter((Dt) => n.enabled ? `${Dt.date}` === Ve(new Date(g[V]), n.dateFormat || "yyyy") : Dt).filter((Dt) => rt ? !Dt.size.every(xs) : Dt), ds, [et || "asc"]).filter((Dt, ae) => C ? ae < C : !0) : We(De(s, n.dateFormat || "yyyy").filter((Dt) => n.enabled ? `${Dt.date}` === Ve(new Date(g[V]), n.dateFormat || "yyyy") : Dt).filter((Dt) => rt ? !Dt.size.every(cs) : Dt), (Dt) => ie(Dt.size[S]) ? -1 / 0 : Dt.size[S], [et || "asc"]).filter((Dt, ae) => C ? ae < C : !0) : De(s, n.dateFormat || "yyyy").filter((Dt) => n.enabled ? `${Dt.date}` === Ve(new Date(g[V]), n.dateFormat || "yyyy") : Dt).filter((Dt) => rt ? !Dt.size.every(rs) : Dt).filter((Dt, ae) => C ? ae < C : !0), barColors: it, width: b, height: Et, barPadding: M, showTicks: bt, leftMargin: Ot, rightMargin: Xt, topMargin: st, bottomMargin: Nt, truncateBy: kt, showLabels: St, tooltip: k, onSeriesMouseOver: q, showValues: Ct, suffix: ft, prefix: pt, refValues: T, maxValue: ie(_) ? Math.max(...s.map(os)) : _, onSeriesMouseClick: u, selectedColor: L, rtl: I === "he" || I === "ar", labelOrder: x, maxBarThickness: at, minBarThickness: Ht, resetSelectionOnDoubleClick: Q, detailsOnClick: Yt, barAxisTitle: tt, noOfTicks: gt, valueColor: B, classNames: c, styles: p, animate: E === !0 ? {
2178
+ ] }) : null, t[32] = d, t[33] = be, t[34] = Jt, t[35] = r.enabled, t[36] = h, t[37] = ce) : ce = t[37];
2179
+ let de;
2180
+ t[38] !== p?.colorLegend || t[39] !== gt || t[40] !== st || t[41] !== _ || t[42] !== l.length || t[43] !== ot || t[44] !== O ? (de = ot && l.length > 0 ? /* @__PURE__ */ i.jsx(si, { width: O, colorDomain: gt, colors: _, colorLegendTitle: st, setSelectedColor: E, showNAColor: !1, className: p?.colorLegend }) : null, t[38] = p?.colorLegend, t[39] = gt, t[40] = st, t[41] = _, t[42] = l.length, t[43] = ot, t[44] = O, t[45] = de) : de = t[45];
2181
+ let me;
2182
+ t[46] !== l.length ? (me = l.length === 0 && /* @__PURE__ */ i.jsx(li, {}), t[46] = l.length, t[47] = me) : me = t[47];
2183
+ let he;
2184
+ t[48] !== g || t[49] !== R || t[50] !== Gt || t[51] !== k || t[52] !== Tt || t[53] !== p || t[54] !== gt || t[55] !== _ || t[56] !== $ || t[57] !== l || t[58] !== Ft || t[59] !== ft || t[60] !== Ot || t[61] !== d || t[62] !== x || t[63] !== j || t[64] !== Ct || t[65] !== Dt || t[66] !== rt || t[67] !== L || t[68] !== lt || t[69] !== T || t[70] !== v || t[71] !== wt || t[72] !== u || t[73] !== J || t[74] !== c || t[75] !== $t || t[76] !== At || t[77] !== B || t[78] !== it || t[79] !== Yt || t[80] !== o || t[81] !== dt || t[82] !== tt || t[83] !== Vt || t[84] !== Ht || t[85] !== F || t[86] !== Z || t[87] !== vt || t[88] !== Qt || t[89] !== q || t[90] !== r.dateFormat || t[91] !== r.enabled || t[92] !== M || t[93] !== nt || t[94] !== at || t[95] !== h || t[96] !== V ? (he = q && Qt && l.length > 0 ? /* @__PURE__ */ i.jsx(g, { hideAxisLine: Ot, data: F !== void 0 ? F === "total" ? Ye(Ne(l, r.dateFormat || "yyyy").filter((Nt) => r.enabled ? `${Nt.date}` === De(new Date(h[d]), r.dateFormat || "yyyy") : Nt).filter((Nt) => ft ? !Nt.size.every(hl) : Nt), xl, [Ht || "asc"]).filter((Nt, ne) => L ? ne < L : !0) : Ye(Ne(l, r.dateFormat || "yyyy").filter((Nt) => r.enabled ? `${Nt.date}` === De(new Date(h[d]), r.dateFormat || "yyyy") : Nt).filter((Nt) => ft ? !Nt.size.every(ul) : Nt), (Nt) => se(Nt.size[F]) ? -1 / 0 : Nt.size[F], [Ht || "asc"]).filter((Nt, ne) => L ? ne < L : !0) : Ne(l, r.dateFormat || "yyyy").filter((Nt) => r.enabled ? `${Nt.date}` === De(new Date(h[d]), r.dateFormat || "yyyy") : Nt).filter((Nt) => ft ? !Nt.size.every(dl) : Nt).filter((Nt, ne) => L ? ne < L : !0), barColors: _, width: q, height: Qt, barPadding: k, showTicks: tt, leftMargin: Ct, rightMargin: Yt, topMargin: nt, bottomMargin: Tt, truncateBy: at, showLabels: dt, tooltip: M, onSeriesMouseOver: J, showValues: Vt, suffix: vt, prefix: At, refValues: B, maxValue: se(lt) ? Math.max(...l.map(rl)) : lt, onSeriesMouseClick: u, selectedColor: o, rtl: j === "he" || j === "ar", labelOrder: x, maxBarThickness: rt, minBarThickness: T, resetSelectionOnDoubleClick: it, detailsOnClick: Ft, barAxisTitle: Gt, noOfTicks: wt, valueColor: V, classNames: p, styles: Z, animate: R === !0 ? {
2176
2185
  duration: 0.5,
2177
2186
  once: !0,
2178
2187
  amount: 0.5
2179
- } : E || {
2188
+ } : R || {
2180
2189
  duration: 0,
2181
2190
  once: !0,
2182
2191
  amount: 0
2183
- }, colorDomain: ut, precision: vt, customLayers: A, naLabel: v, locale: Vt }) : null, t[48] = r, t[49] = E, t[50] = tt, t[51] = M, t[52] = Nt, t[53] = c, t[54] = ut, t[55] = it, t[56] = A, t[57] = s, t[58] = Yt, t[59] = rt, t[60] = wt, t[61] = V, t[62] = x, t[63] = I, t[64] = Ot, t[65] = Vt, t[66] = at, t[67] = C, t[68] = _, t[69] = Ht, t[70] = v, t[71] = gt, t[72] = u, t[73] = q, t[74] = vt, t[75] = pt, t[76] = T, t[77] = Q, t[78] = Xt, t[79] = L, t[80] = St, t[81] = bt, t[82] = Ct, t[83] = et, t[84] = S, t[85] = p, t[86] = ft, t[87] = Et, t[88] = b, t[89] = n.dateFormat, t[90] = n.enabled, t[91] = k, t[92] = st, t[93] = kt, t[94] = g, t[95] = B, t[96] = xe) : xe = t[96];
2184
- let le;
2185
- t[97] !== ue || t[98] !== xe ? (le = /* @__PURE__ */ i.jsxs(ai, { ref: $, children: [
2186
- ue,
2187
- xe
2188
- ] }), t[97] = ue, t[98] = xe, t[99] = le) : le = t[99];
2189
- let se;
2190
- t[100] !== re || t[101] !== le ? (se = /* @__PURE__ */ i.jsxs("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: [
2191
- re,
2192
- le
2193
- ] }), t[100] = re, t[101] = le, t[102] = se) : se = t[102];
2194
- let ce;
2195
- t[103] !== c?.footnote || t[104] !== c?.source || t[105] !== X || t[106] !== Kt || t[107] !== p?.footnote || t[108] !== p?.source || t[109] !== O ? (ce = Kt || X ? /* @__PURE__ */ i.jsx(ti, { styles: {
2192
+ }, colorDomain: gt, precision: $t, customLayers: $, naLabel: v, locale: Dt, padZeros: c }) : null, t[48] = g, t[49] = R, t[50] = Gt, t[51] = k, t[52] = Tt, t[53] = p, t[54] = gt, t[55] = _, t[56] = $, t[57] = l, t[58] = Ft, t[59] = ft, t[60] = Ot, t[61] = d, t[62] = x, t[63] = j, t[64] = Ct, t[65] = Dt, t[66] = rt, t[67] = L, t[68] = lt, t[69] = T, t[70] = v, t[71] = wt, t[72] = u, t[73] = J, t[74] = c, t[75] = $t, t[76] = At, t[77] = B, t[78] = it, t[79] = Yt, t[80] = o, t[81] = dt, t[82] = tt, t[83] = Vt, t[84] = Ht, t[85] = F, t[86] = Z, t[87] = vt, t[88] = Qt, t[89] = q, t[90] = r.dateFormat, t[91] = r.enabled, t[92] = M, t[93] = nt, t[94] = at, t[95] = h, t[96] = V, t[97] = he) : he = t[97];
2193
+ let ae;
2194
+ t[98] !== me || t[99] !== he ? (ae = /* @__PURE__ */ i.jsxs(ni, { ref: n, children: [
2195
+ me,
2196
+ he
2197
+ ] }), t[98] = me, t[99] = he, t[100] = ae) : ae = t[100];
2198
+ let oe;
2199
+ t[101] !== de || t[102] !== ae ? (oe = /* @__PURE__ */ i.jsxs("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: [
2200
+ de,
2201
+ ae
2202
+ ] }), t[101] = de, t[102] = ae, t[103] = oe) : oe = t[103];
2203
+ let ue;
2204
+ t[104] !== p?.footnote || t[105] !== p?.source || t[106] !== G || t[107] !== Ut || t[108] !== Z?.footnote || t[109] !== Z?.source || t[110] !== O ? (ue = Ut || G ? /* @__PURE__ */ i.jsx(ii, { styles: {
2205
+ footnote: Z?.footnote,
2206
+ source: Z?.source
2207
+ }, classNames: {
2196
2208
  footnote: p?.footnote,
2197
2209
  source: p?.source
2198
- }, classNames: {
2199
- footnote: c?.footnote,
2200
- source: c?.source
2201
- }, sources: Kt, footNote: X, width: O }) : null, t[103] = c?.footnote, t[104] = c?.source, t[105] = X, t[106] = Kt, t[107] = p?.footnote, t[108] = p?.source, t[109] = O, t[110] = ce) : ce = t[110];
2202
- let Qt;
2203
- return t[111] !== Mt || t[112] !== ht || t[113] !== J || t[114] !== R || t[115] !== I || t[116] !== Lt || t[117] !== $t || t[118] !== U || t[119] !== ve || t[120] !== fe || t[121] !== de || t[122] !== ne || t[123] !== se || t[124] !== ce || t[125] !== nt || t[126] !== O ? (Qt = /* @__PURE__ */ i.jsxs(oi, { className: ve, style: fe, id: J, ref: m, "aria-label": Mt, backgroundColor: ht, theme: nt, language: I, minHeight: Lt, width: O, height: R, relativeHeight: U, padding: $t, children: [
2204
- de,
2205
- ne,
2206
- se,
2207
- ce
2208
- ] }), t[111] = Mt, t[112] = ht, t[113] = J, t[114] = R, t[115] = I, t[116] = Lt, t[117] = $t, t[118] = U, t[119] = ve, t[120] = fe, t[121] = de, t[122] = ne, t[123] = se, t[124] = ce, t[125] = nt, t[126] = O, t[127] = Qt) : Qt = t[127], Qt;
2210
+ }, sources: Ut, footNote: G, width: O }) : null, t[104] = p?.footnote, t[105] = p?.source, t[106] = G, t[107] = Ut, t[108] = Z?.footnote, t[109] = Z?.source, t[110] = O, t[111] = ue) : ue = t[111];
2211
+ let Kt;
2212
+ return t[112] !== Bt || t[113] !== bt || t[114] !== Q || t[115] !== U || t[116] !== j || t[117] !== zt || t[118] !== kt || t[119] !== K || t[120] !== Ae || t[121] !== pe || t[122] !== xe || t[123] !== ce || t[124] !== oe || t[125] !== ue || t[126] !== ht || t[127] !== O ? (Kt = /* @__PURE__ */ i.jsxs(ri, { className: Ae, style: pe, id: Q, ref: le, "aria-label": Bt, backgroundColor: bt, theme: ht, language: j, minHeight: zt, width: O, height: U, relativeHeight: K, padding: kt, children: [
2213
+ xe,
2214
+ ce,
2215
+ oe,
2216
+ ue
2217
+ ] }), t[112] = Bt, t[113] = bt, t[114] = Q, t[115] = U, t[116] = j, t[117] = zt, t[118] = kt, t[119] = K, t[120] = Ae, t[121] = pe, t[122] = xe, t[123] = ce, t[124] = oe, t[125] = ue, t[126] = ht, t[127] = O, t[128] = Kt) : Kt = t[128], Kt;
2209
2218
  }
2210
- function os(e) {
2211
- return me(e.size.filter(ns)) || 0;
2219
+ function rl(e) {
2220
+ return fe(e.size.filter(cl)) || 0;
2212
2221
  }
2213
- function ns(e) {
2214
- return !ie(e);
2222
+ function cl(e) {
2223
+ return !se(e);
2215
2224
  }
2216
- function rs(e) {
2225
+ function dl(e) {
2217
2226
  return e == null;
2218
2227
  }
2219
- function cs(e) {
2228
+ function ul(e) {
2220
2229
  return e == null;
2221
2230
  }
2222
- function ds(e) {
2223
- return me(e.size.filter(us));
2231
+ function xl(e) {
2232
+ return fe(e.size.filter(ml));
2224
2233
  }
2225
- function us(e) {
2226
- return !ie(e);
2234
+ function ml(e) {
2235
+ return !se(e);
2227
2236
  }
2228
- function xs(e) {
2237
+ function hl(e) {
2229
2238
  return e == null;
2230
2239
  }
2231
- function ms(e) {
2240
+ function fl(e) {
2232
2241
  return e !== void 0;
2233
2242
  }
2234
- function hs(e) {
2243
+ function pl(e) {
2235
2244
  return e !== void 0;
2236
2245
  }
2237
- function fs(e) {
2246
+ function gl(e) {
2238
2247
  return e.data;
2239
2248
  }
2240
- function ps(e) {
2249
+ function yl(e) {
2241
2250
  return e !== void 0;
2242
2251
  }
2243
- function gs(e) {
2252
+ function bl(e) {
2244
2253
  return e.data;
2245
2254
  }
2246
- function ys(e, t) {
2255
+ function vl(e, t) {
2247
2256
  return e - t;
2248
2257
  }
2249
- function bs(e) {
2258
+ function wl(e) {
2250
2259
  return e.date;
2251
2260
  }
2252
- function _s(e) {
2253
- const t = $e.c(64), {
2254
- data: s,
2255
- graphTitle: H,
2256
- colors: Gt,
2257
- barPadding: Kt,
2258
- showTicks: It,
2259
- leftMargin: At,
2260
- rightMargin: Bt,
2261
- topMargin: P,
2262
- bottomMargin: R,
2261
+ function ea(e) {
2262
+ const t = Me.c(65), {
2263
+ data: l,
2264
+ graphTitle: X,
2265
+ colors: Rt,
2266
+ barPadding: Ut,
2267
+ showTicks: jt,
2268
+ leftMargin: Mt,
2269
+ rightMargin: St,
2270
+ topMargin: H,
2271
+ bottomMargin: U,
2263
2272
  truncateBy: O,
2264
- showLabels: X,
2265
- showValues: ut,
2266
- backgroundColor: Z,
2267
- suffix: $t,
2268
- prefix: W,
2269
- sources: st,
2270
- graphDescription: Nt,
2271
- height: Ot,
2272
- width: Xt,
2273
- footNote: k,
2274
- colorDomain: q,
2275
- colorLegendTitle: j,
2276
- padding: N,
2277
- relativeHeight: ot,
2278
- tooltip: U,
2279
- onSeriesMouseOver: xt,
2280
- refValues: T,
2281
- showColorScale: J,
2282
- graphID: _,
2283
- maxValue: u,
2284
- minValue: l,
2285
- highlightedDataPoints: a,
2286
- onSeriesMouseClick: f,
2287
- graphDownload: x,
2288
- dataDownload: w,
2289
- language: h,
2290
- theme: at,
2291
- sortData: S,
2292
- labelOrder: C,
2293
- showNAColor: Ht,
2294
- minHeight: Rt,
2295
- maxBarThickness: Mt,
2296
- maxNumberOfBars: yt,
2297
- minBarThickness: Yt,
2298
- ariaLabel: tt,
2299
- resetSelectionOnDoubleClick: D,
2300
- detailsOnClick: B,
2301
- barAxisTitle: p,
2302
- noOfTicks: c,
2303
- valueColor: jt,
2304
- orientation: z,
2305
- styles: y,
2306
- classNames: Ft,
2307
- filterNA: Tt,
2308
- animate: mt,
2309
- dimmedOpacity: qt,
2310
- precision: et,
2311
- customLayers: Pt,
2312
- timeline: Y,
2313
- naLabel: it,
2314
- trackColor: M,
2315
- hideAxisLine: bt,
2316
- locale: kt
2317
- } = e, ht = z === void 0 ? "vertical" : z, ft = bt === void 0 ? !1 : bt;
2318
- let pt;
2319
- return t[0] !== mt || t[1] !== tt || t[2] !== Z || t[3] !== p || t[4] !== Kt || t[5] !== R || t[6] !== Ft || t[7] !== q || t[8] !== j || t[9] !== Gt || t[10] !== Pt || t[11] !== s || t[12] !== w || t[13] !== B || t[14] !== qt || t[15] !== Tt || t[16] !== k || t[17] !== Nt || t[18] !== x || t[19] !== _ || t[20] !== H || t[21] !== Ot || t[22] !== ft || t[23] !== a || t[24] !== C || t[25] !== h || t[26] !== At || t[27] !== kt || t[28] !== Mt || t[29] !== yt || t[30] !== u || t[31] !== Yt || t[32] !== Rt || t[33] !== l || t[34] !== it || t[35] !== c || t[36] !== f || t[37] !== xt || t[38] !== ht || t[39] !== N || t[40] !== et || t[41] !== W || t[42] !== T || t[43] !== ot || t[44] !== D || t[45] !== Bt || t[46] !== J || t[47] !== X || t[48] !== Ht || t[49] !== It || t[50] !== ut || t[51] !== S || t[52] !== st || t[53] !== y || t[54] !== $t || t[55] !== at || t[56] !== Y || t[57] !== U || t[58] !== P || t[59] !== M || t[60] !== O || t[61] !== jt || t[62] !== Xt ? (pt = /* @__PURE__ */ i.jsx(vl, { data: s, graphTitle: H, colors: Gt, barPadding: Kt, showTicks: It, leftMargin: At, rightMargin: Bt, topMargin: P, bottomMargin: R, truncateBy: O, showLabels: X, showValues: ut, backgroundColor: Z, suffix: $t, prefix: W, sources: st, graphDescription: Nt, height: Ot, width: Xt, footNote: k, colorDomain: q, colorLegendTitle: j, padding: N, relativeHeight: ot, tooltip: U, onSeriesMouseOver: xt, refValues: T, showColorScale: J, graphID: _, maxValue: u, minValue: l, highlightedDataPoints: a, onSeriesMouseClick: f, graphDownload: x, dataDownload: w, language: h, theme: at, sortData: S, labelOrder: C, showNAColor: Ht, minHeight: Rt, maxBarThickness: Mt, maxNumberOfBars: yt, minBarThickness: Yt, ariaLabel: tt, resetSelectionOnDoubleClick: D, styles: y, detailsOnClick: B, barAxisTitle: p, noOfTicks: c, valueColor: jt, classNames: Ft, filterNA: Tt, animate: mt, dimmedOpacity: qt, precision: et, customLayers: Pt, timeline: Y, naLabel: it, orientation: ht, trackColor: M, hideAxisLine: ft, locale: kt }), t[0] = mt, t[1] = tt, t[2] = Z, t[3] = p, t[4] = Kt, t[5] = R, t[6] = Ft, t[7] = q, t[8] = j, t[9] = Gt, t[10] = Pt, t[11] = s, t[12] = w, t[13] = B, t[14] = qt, t[15] = Tt, t[16] = k, t[17] = Nt, t[18] = x, t[19] = _, t[20] = H, t[21] = Ot, t[22] = ft, t[23] = a, t[24] = C, t[25] = h, t[26] = At, t[27] = kt, t[28] = Mt, t[29] = yt, t[30] = u, t[31] = Yt, t[32] = Rt, t[33] = l, t[34] = it, t[35] = c, t[36] = f, t[37] = xt, t[38] = ht, t[39] = N, t[40] = et, t[41] = W, t[42] = T, t[43] = ot, t[44] = D, t[45] = Bt, t[46] = J, t[47] = X, t[48] = Ht, t[49] = It, t[50] = ut, t[51] = S, t[52] = st, t[53] = y, t[54] = $t, t[55] = at, t[56] = Y, t[57] = U, t[58] = P, t[59] = M, t[60] = O, t[61] = jt, t[62] = Xt, t[63] = pt) : pt = t[63], pt;
2320
- }
2321
- function ta(e) {
2322
- const t = $e.c(59), {
2323
- data: s,
2324
- graphTitle: H,
2325
- colors: Gt,
2326
- sources: Kt,
2327
- graphDescription: It,
2328
- barPadding: At,
2329
- showTicks: Bt,
2330
- truncateBy: P,
2331
- height: R,
2332
- width: O,
2333
- footNote: X,
2334
- colorDomain: ut,
2335
- colorLegendTitle: Z,
2336
- suffix: $t,
2337
- prefix: W,
2338
- showValues: st,
2339
- padding: Nt,
2340
- backgroundColor: Ot,
2341
- leftMargin: Xt,
2342
- rightMargin: k,
2343
- topMargin: q,
2344
- bottomMargin: j,
2345
- showLabels: N,
2346
- relativeHeight: ot,
2347
- tooltip: U,
2348
- onSeriesMouseOver: xt,
2349
- refValues: T,
2350
- graphID: J,
2351
- maxValue: _,
2352
- minValue: u,
2353
- onSeriesMouseClick: l,
2273
+ showLabels: G,
2274
+ showValues: gt,
2275
+ backgroundColor: st,
2276
+ sources: kt,
2277
+ graphDescription: Y,
2278
+ height: nt,
2279
+ width: Tt,
2280
+ footNote: Ct,
2281
+ colorDomain: Yt,
2282
+ colorLegendTitle: M,
2283
+ padding: J,
2284
+ relativeHeight: S,
2285
+ tooltip: z,
2286
+ onSeriesMouseOver: ut,
2287
+ refValues: K,
2288
+ showColorScale: yt,
2289
+ graphID: B,
2290
+ maxValue: Q,
2291
+ minValue: lt,
2292
+ highlightedDataPoints: u,
2293
+ onSeriesMouseClick: s,
2354
2294
  graphDownload: a,
2355
2295
  dataDownload: f,
2356
2296
  language: x,
2357
- labelOrder: w,
2358
- minHeight: h,
2359
- theme: at,
2360
- sortParameter: S,
2361
- sortData: C,
2362
- maxBarThickness: Ht,
2363
- ariaLabel: Rt,
2364
- resetSelectionOnDoubleClick: Mt,
2365
- detailsOnClick: yt,
2366
- barAxisTitle: Yt,
2367
- noOfTicks: tt,
2368
- valueColor: D,
2369
- orientation: B,
2370
- styles: p,
2371
- classNames: c,
2372
- filterNA: jt,
2373
- animate: z,
2374
- precision: y,
2375
- customLayers: Ft,
2376
- showColorScale: Tt,
2377
- timeline: mt,
2378
- naLabel: qt,
2379
- hideAxisLine: et,
2380
- locale: Pt
2381
- } = e, Y = B === void 0 ? "vertical" : B, it = et === void 0 ? !1 : et;
2382
- let M;
2383
- return t[0] !== z || t[1] !== Rt || t[2] !== Ot || t[3] !== Yt || t[4] !== At || t[5] !== j || t[6] !== c || t[7] !== ut || t[8] !== Z || t[9] !== Gt || t[10] !== Ft || t[11] !== s || t[12] !== f || t[13] !== yt || t[14] !== jt || t[15] !== X || t[16] !== It || t[17] !== a || t[18] !== J || t[19] !== H || t[20] !== R || t[21] !== it || t[22] !== w || t[23] !== x || t[24] !== Xt || t[25] !== Pt || t[26] !== Ht || t[27] !== _ || t[28] !== h || t[29] !== u || t[30] !== qt || t[31] !== tt || t[32] !== l || t[33] !== xt || t[34] !== Y || t[35] !== Nt || t[36] !== y || t[37] !== W || t[38] !== T || t[39] !== ot || t[40] !== Mt || t[41] !== k || t[42] !== Tt || t[43] !== N || t[44] !== Bt || t[45] !== st || t[46] !== C || t[47] !== S || t[48] !== Kt || t[49] !== p || t[50] !== $t || t[51] !== at || t[52] !== mt || t[53] !== U || t[54] !== q || t[55] !== P || t[56] !== D || t[57] !== O ? (M = /* @__PURE__ */ i.jsx(Ci, { orientation: Y, data: s, graphTitle: H, colors: Gt, sources: Kt, graphDescription: It, barPadding: At, showTicks: Bt, truncateBy: P, height: R, width: O, footNote: X, colorDomain: ut, colorLegendTitle: Z, suffix: $t, prefix: W, showValues: st, padding: Nt, backgroundColor: Ot, leftMargin: Xt, rightMargin: k, sortParameter: S, sortData: C, topMargin: q, bottomMargin: j, showLabels: N, relativeHeight: ot, tooltip: U, onSeriesMouseOver: xt, refValues: T, graphID: J, maxValue: _, minValue: u, onSeriesMouseClick: l, graphDownload: a, dataDownload: f, language: x, labelOrder: w, minHeight: h, theme: at, maxBarThickness: Ht, ariaLabel: Rt, resetSelectionOnDoubleClick: Mt, styles: p, detailsOnClick: yt, barAxisTitle: Yt, noOfTicks: tt, valueColor: D, classNames: c, filterNA: jt, animate: z, precision: y, customLayers: Ft, showColorScale: Tt, timeline: mt, naLabel: qt, hideAxisLine: it, locale: Pt }), t[0] = z, t[1] = Rt, t[2] = Ot, t[3] = Yt, t[4] = At, t[5] = j, t[6] = c, t[7] = ut, t[8] = Z, t[9] = Gt, t[10] = Ft, t[11] = s, t[12] = f, t[13] = yt, t[14] = jt, t[15] = X, t[16] = It, t[17] = a, t[18] = J, t[19] = H, t[20] = R, t[21] = it, t[22] = w, t[23] = x, t[24] = Xt, t[25] = Pt, t[26] = Ht, t[27] = _, t[28] = h, t[29] = u, t[30] = qt, t[31] = tt, t[32] = l, t[33] = xt, t[34] = Y, t[35] = Nt, t[36] = y, t[37] = W, t[38] = T, t[39] = ot, t[40] = Mt, t[41] = k, t[42] = Tt, t[43] = N, t[44] = Bt, t[45] = st, t[46] = C, t[47] = S, t[48] = Kt, t[49] = p, t[50] = $t, t[51] = at, t[52] = mt, t[53] = U, t[54] = q, t[55] = P, t[56] = D, t[57] = O, t[58] = M) : M = t[58], M;
2384
- }
2385
- function ea(e) {
2386
- const t = $e.c(60), {
2387
- data: s,
2388
- graphTitle: H,
2389
- colors: Gt,
2390
- sources: Kt,
2391
- graphDescription: It,
2392
- barPadding: At,
2393
- showTicks: Bt,
2394
- leftMargin: P,
2395
- rightMargin: R,
2396
- topMargin: O,
2397
- bottomMargin: X,
2398
- truncateBy: ut,
2399
- showLabels: Z,
2400
- showValues: $t,
2401
- backgroundColor: W,
2402
- suffix: st,
2403
- prefix: Nt,
2404
- height: Ot,
2405
- width: Xt,
2406
- footNote: k,
2407
- colorDomain: q,
2408
- colorLegendTitle: j,
2409
- padding: N,
2410
- tooltip: ot,
2411
- onSeriesMouseOver: U,
2412
- relativeHeight: xt,
2413
- refValues: T,
2414
- graphID: J,
2415
- maxValue: _,
2416
- onSeriesMouseClick: u,
2417
- graphDownload: l,
2418
- dataDownload: a,
2419
- language: f,
2420
- theme: x,
2421
- labelOrder: w,
2422
- minHeight: h,
2423
- maxBarThickness: at,
2424
- sortParameter: S,
2425
- sortData: C,
2426
- maxNumberOfBars: Ht,
2427
- minBarThickness: Rt,
2428
- ariaLabel: Mt,
2429
- resetSelectionOnDoubleClick: yt,
2430
- detailsOnClick: Yt,
2431
- barAxisTitle: tt,
2432
- noOfTicks: D,
2433
- valueColor: B,
2297
+ theme: y,
2298
+ sortData: m,
2299
+ labelOrder: rt,
2300
+ showNAColor: F,
2301
+ minHeight: L,
2302
+ maxBarThickness: T,
2303
+ maxNumberOfBars: Et,
2304
+ minBarThickness: Bt,
2305
+ ariaLabel: xt,
2306
+ resetSelectionOnDoubleClick: Ft,
2307
+ detailsOnClick: Gt,
2308
+ barAxisTitle: D,
2309
+ noOfTicks: V,
2310
+ valueColor: Z,
2434
2311
  orientation: p,
2435
- styles: c,
2436
- classNames: jt,
2437
- filterNA: z,
2438
- animate: y,
2439
- precision: Ft,
2440
- customLayers: Tt,
2441
- showColorScale: mt,
2442
- timeline: qt,
2443
- naLabel: et,
2312
+ styles: b,
2313
+ classNames: I,
2314
+ filterNA: C,
2315
+ animate: N,
2316
+ dimmedOpacity: mt,
2317
+ customLayers: Pt,
2318
+ timeline: Lt,
2319
+ naLabel: Ht,
2320
+ trackColor: ct,
2321
+ hideAxisLine: Xt,
2322
+ numberDisplayOptions: W
2323
+ } = e, _ = p === void 0 ? "vertical" : p, k = Xt === void 0 ? !1 : Xt, tt = W?.suffix, at = W?.prefix, bt = W?.precision, vt = W?.locale, At = W?.padZeros;
2324
+ let dt;
2325
+ return t[0] !== N || t[1] !== xt || t[2] !== st || t[3] !== D || t[4] !== Ut || t[5] !== U || t[6] !== I || t[7] !== Yt || t[8] !== M || t[9] !== Rt || t[10] !== Pt || t[11] !== l || t[12] !== f || t[13] !== Gt || t[14] !== mt || t[15] !== C || t[16] !== Ct || t[17] !== Y || t[18] !== a || t[19] !== B || t[20] !== X || t[21] !== nt || t[22] !== k || t[23] !== u || t[24] !== rt || t[25] !== x || t[26] !== Mt || t[27] !== T || t[28] !== Et || t[29] !== Q || t[30] !== Bt || t[31] !== L || t[32] !== lt || t[33] !== Ht || t[34] !== V || t[35] !== s || t[36] !== ut || t[37] !== _ || t[38] !== J || t[39] !== K || t[40] !== S || t[41] !== Ft || t[42] !== St || t[43] !== yt || t[44] !== G || t[45] !== F || t[46] !== jt || t[47] !== gt || t[48] !== m || t[49] !== kt || t[50] !== b || t[51] !== tt || t[52] !== at || t[53] !== bt || t[54] !== vt || t[55] !== At || t[56] !== y || t[57] !== Lt || t[58] !== z || t[59] !== H || t[60] !== ct || t[61] !== O || t[62] !== Z || t[63] !== Tt ? (dt = /* @__PURE__ */ i.jsx(As, { data: l, graphTitle: X, colors: Rt, barPadding: Ut, showTicks: jt, leftMargin: Mt, rightMargin: St, topMargin: H, bottomMargin: U, truncateBy: O, showLabels: G, showValues: gt, backgroundColor: st, suffix: tt, prefix: at, sources: kt, graphDescription: Y, height: nt, width: Tt, footNote: Ct, colorDomain: Yt, colorLegendTitle: M, padding: J, relativeHeight: S, tooltip: z, onSeriesMouseOver: ut, refValues: K, showColorScale: yt, graphID: B, maxValue: Q, minValue: lt, highlightedDataPoints: u, onSeriesMouseClick: s, graphDownload: a, dataDownload: f, language: x, theme: y, sortData: m, labelOrder: rt, showNAColor: F, minHeight: L, maxBarThickness: T, maxNumberOfBars: Et, minBarThickness: Bt, ariaLabel: xt, resetSelectionOnDoubleClick: Ft, styles: b, detailsOnClick: Gt, barAxisTitle: D, noOfTicks: V, valueColor: Z, classNames: I, filterNA: C, animate: N, dimmedOpacity: mt, precision: bt, customLayers: Pt, timeline: Lt, naLabel: Ht, orientation: _, trackColor: ct, hideAxisLine: k, locale: vt, padZeros: At }), t[0] = N, t[1] = xt, t[2] = st, t[3] = D, t[4] = Ut, t[5] = U, t[6] = I, t[7] = Yt, t[8] = M, t[9] = Rt, t[10] = Pt, t[11] = l, t[12] = f, t[13] = Gt, t[14] = mt, t[15] = C, t[16] = Ct, t[17] = Y, t[18] = a, t[19] = B, t[20] = X, t[21] = nt, t[22] = k, t[23] = u, t[24] = rt, t[25] = x, t[26] = Mt, t[27] = T, t[28] = Et, t[29] = Q, t[30] = Bt, t[31] = L, t[32] = lt, t[33] = Ht, t[34] = V, t[35] = s, t[36] = ut, t[37] = _, t[38] = J, t[39] = K, t[40] = S, t[41] = Ft, t[42] = St, t[43] = yt, t[44] = G, t[45] = F, t[46] = jt, t[47] = gt, t[48] = m, t[49] = kt, t[50] = b, t[51] = tt, t[52] = at, t[53] = bt, t[54] = vt, t[55] = At, t[56] = y, t[57] = Lt, t[58] = z, t[59] = H, t[60] = ct, t[61] = O, t[62] = Z, t[63] = Tt, t[64] = dt) : dt = t[64], dt;
2326
+ }
2327
+ function ia(e) {
2328
+ const t = Me.c(60), {
2329
+ data: l,
2330
+ graphTitle: X,
2331
+ colors: Rt,
2332
+ sources: Ut,
2333
+ graphDescription: jt,
2334
+ barPadding: Mt,
2335
+ showTicks: St,
2336
+ truncateBy: H,
2337
+ height: U,
2338
+ width: O,
2339
+ footNote: G,
2340
+ colorDomain: gt,
2341
+ colorLegendTitle: st,
2342
+ showValues: kt,
2343
+ padding: Y,
2344
+ backgroundColor: nt,
2345
+ leftMargin: Tt,
2346
+ rightMargin: Ct,
2347
+ topMargin: Yt,
2348
+ bottomMargin: M,
2349
+ showLabels: J,
2350
+ relativeHeight: S,
2351
+ tooltip: z,
2352
+ onSeriesMouseOver: ut,
2353
+ refValues: K,
2354
+ graphID: yt,
2355
+ maxValue: B,
2356
+ minValue: Q,
2357
+ onSeriesMouseClick: lt,
2358
+ graphDownload: u,
2359
+ dataDownload: s,
2360
+ language: a,
2361
+ labelOrder: f,
2362
+ minHeight: x,
2363
+ theme: y,
2364
+ sortParameter: m,
2365
+ sortData: rt,
2366
+ maxBarThickness: F,
2367
+ ariaLabel: L,
2368
+ resetSelectionOnDoubleClick: T,
2369
+ detailsOnClick: Et,
2370
+ barAxisTitle: Bt,
2371
+ noOfTicks: xt,
2372
+ valueColor: Ft,
2373
+ orientation: Gt,
2374
+ styles: D,
2375
+ classNames: V,
2376
+ filterNA: Z,
2377
+ animate: p,
2378
+ customLayers: b,
2379
+ showColorScale: I,
2380
+ timeline: C,
2381
+ naLabel: N,
2382
+ hideAxisLine: mt,
2383
+ numberDisplayOptions: Pt
2384
+ } = e, Lt = Gt === void 0 ? "vertical" : Gt, Ht = mt === void 0 ? !1 : mt, ct = Pt?.suffix, Xt = Pt?.prefix, W = Pt?.precision, _ = Pt?.locale, k = Pt?.padZeros;
2385
+ let tt;
2386
+ return t[0] !== p || t[1] !== L || t[2] !== nt || t[3] !== Bt || t[4] !== Mt || t[5] !== M || t[6] !== V || t[7] !== gt || t[8] !== st || t[9] !== Rt || t[10] !== b || t[11] !== l || t[12] !== s || t[13] !== Et || t[14] !== Z || t[15] !== G || t[16] !== jt || t[17] !== u || t[18] !== yt || t[19] !== X || t[20] !== U || t[21] !== Ht || t[22] !== f || t[23] !== a || t[24] !== Tt || t[25] !== F || t[26] !== B || t[27] !== x || t[28] !== Q || t[29] !== N || t[30] !== xt || t[31] !== lt || t[32] !== ut || t[33] !== Lt || t[34] !== Y || t[35] !== K || t[36] !== S || t[37] !== T || t[38] !== Ct || t[39] !== I || t[40] !== J || t[41] !== St || t[42] !== kt || t[43] !== rt || t[44] !== m || t[45] !== Ut || t[46] !== D || t[47] !== ct || t[48] !== Xt || t[49] !== W || t[50] !== _ || t[51] !== k || t[52] !== y || t[53] !== C || t[54] !== z || t[55] !== Yt || t[56] !== H || t[57] !== Ft || t[58] !== O ? (tt = /* @__PURE__ */ i.jsx(Vi, { orientation: Lt, data: l, graphTitle: X, colors: Rt, sources: Ut, graphDescription: jt, barPadding: Mt, showTicks: St, truncateBy: H, height: U, width: O, footNote: G, colorDomain: gt, colorLegendTitle: st, suffix: ct, prefix: Xt, showValues: kt, padding: Y, backgroundColor: nt, leftMargin: Tt, rightMargin: Ct, sortParameter: m, sortData: rt, topMargin: Yt, bottomMargin: M, showLabels: J, relativeHeight: S, tooltip: z, onSeriesMouseOver: ut, refValues: K, graphID: yt, maxValue: B, minValue: Q, onSeriesMouseClick: lt, graphDownload: u, dataDownload: s, language: a, labelOrder: f, minHeight: x, theme: y, maxBarThickness: F, ariaLabel: L, resetSelectionOnDoubleClick: T, styles: D, detailsOnClick: Et, barAxisTitle: Bt, noOfTicks: xt, valueColor: Ft, classNames: V, filterNA: Z, animate: p, precision: W, customLayers: b, showColorScale: I, timeline: C, naLabel: N, hideAxisLine: Ht, locale: _, padZeros: k }), t[0] = p, t[1] = L, t[2] = nt, t[3] = Bt, t[4] = Mt, t[5] = M, t[6] = V, t[7] = gt, t[8] = st, t[9] = Rt, t[10] = b, t[11] = l, t[12] = s, t[13] = Et, t[14] = Z, t[15] = G, t[16] = jt, t[17] = u, t[18] = yt, t[19] = X, t[20] = U, t[21] = Ht, t[22] = f, t[23] = a, t[24] = Tt, t[25] = F, t[26] = B, t[27] = x, t[28] = Q, t[29] = N, t[30] = xt, t[31] = lt, t[32] = ut, t[33] = Lt, t[34] = Y, t[35] = K, t[36] = S, t[37] = T, t[38] = Ct, t[39] = I, t[40] = J, t[41] = St, t[42] = kt, t[43] = rt, t[44] = m, t[45] = Ut, t[46] = D, t[47] = ct, t[48] = Xt, t[49] = W, t[50] = _, t[51] = k, t[52] = y, t[53] = C, t[54] = z, t[55] = Yt, t[56] = H, t[57] = Ft, t[58] = O, t[59] = tt) : tt = t[59], tt;
2387
+ }
2388
+ function sa(e) {
2389
+ const t = Me.c(61), {
2390
+ data: l,
2391
+ graphTitle: X,
2392
+ colors: Rt,
2393
+ sources: Ut,
2394
+ graphDescription: jt,
2395
+ barPadding: Mt,
2396
+ showTicks: St,
2397
+ leftMargin: H,
2398
+ rightMargin: U,
2399
+ topMargin: O,
2400
+ bottomMargin: G,
2401
+ truncateBy: gt,
2402
+ showLabels: st,
2403
+ showValues: kt,
2404
+ backgroundColor: Y,
2405
+ height: nt,
2406
+ width: Tt,
2407
+ footNote: Ct,
2408
+ colorDomain: Yt,
2409
+ colorLegendTitle: M,
2410
+ padding: J,
2411
+ tooltip: S,
2412
+ onSeriesMouseOver: z,
2413
+ relativeHeight: ut,
2414
+ refValues: K,
2415
+ graphID: yt,
2416
+ maxValue: B,
2417
+ onSeriesMouseClick: Q,
2418
+ graphDownload: lt,
2419
+ dataDownload: u,
2420
+ language: s,
2421
+ theme: a,
2422
+ labelOrder: f,
2423
+ minHeight: x,
2424
+ maxBarThickness: y,
2425
+ sortParameter: m,
2426
+ sortData: rt,
2427
+ maxNumberOfBars: F,
2428
+ minBarThickness: L,
2429
+ ariaLabel: T,
2430
+ resetSelectionOnDoubleClick: Et,
2431
+ detailsOnClick: Bt,
2432
+ barAxisTitle: xt,
2433
+ noOfTicks: Ft,
2434
+ valueColor: Gt,
2435
+ orientation: D,
2436
+ styles: V,
2437
+ classNames: Z,
2438
+ filterNA: p,
2439
+ animate: b,
2440
+ customLayers: I,
2441
+ showColorScale: C,
2442
+ timeline: N,
2443
+ naLabel: mt,
2444
2444
  hideAxisLine: Pt,
2445
- locale: Y
2446
- } = e, it = p === void 0 ? "vertical" : p, M = Pt === void 0 ? !1 : Pt;
2447
- let bt;
2448
- return t[0] !== y || t[1] !== Mt || t[2] !== W || t[3] !== tt || t[4] !== At || t[5] !== X || t[6] !== jt || t[7] !== q || t[8] !== j || t[9] !== Gt || t[10] !== Tt || t[11] !== s || t[12] !== a || t[13] !== Yt || t[14] !== z || t[15] !== k || t[16] !== It || t[17] !== l || t[18] !== J || t[19] !== H || t[20] !== Ot || t[21] !== M || t[22] !== w || t[23] !== f || t[24] !== P || t[25] !== Y || t[26] !== at || t[27] !== Ht || t[28] !== _ || t[29] !== Rt || t[30] !== h || t[31] !== et || t[32] !== D || t[33] !== u || t[34] !== U || t[35] !== it || t[36] !== N || t[37] !== Ft || t[38] !== Nt || t[39] !== T || t[40] !== xt || t[41] !== yt || t[42] !== R || t[43] !== mt || t[44] !== Z || t[45] !== Bt || t[46] !== $t || t[47] !== C || t[48] !== S || t[49] !== Kt || t[50] !== c || t[51] !== st || t[52] !== x || t[53] !== qt || t[54] !== ot || t[55] !== O || t[56] !== ut || t[57] !== B || t[58] !== Xt ? (bt = /* @__PURE__ */ i.jsx(as, { data: s, graphTitle: H, colors: Gt, sources: Kt, graphDescription: It, barPadding: At, showTicks: Bt, leftMargin: P, rightMargin: R, topMargin: O, bottomMargin: X, truncateBy: ut, showLabels: Z, showValues: $t, backgroundColor: W, suffix: st, prefix: Nt, height: Ot, width: Xt, footNote: k, colorDomain: q, colorLegendTitle: j, padding: N, tooltip: ot, onSeriesMouseOver: U, relativeHeight: xt, refValues: T, graphID: J, maxValue: _, onSeriesMouseClick: u, graphDownload: l, dataDownload: a, language: f, theme: x, labelOrder: w, minHeight: h, maxBarThickness: at, sortParameter: S, sortData: C, maxNumberOfBars: Ht, minBarThickness: Rt, ariaLabel: Mt, resetSelectionOnDoubleClick: yt, styles: c, detailsOnClick: Yt, barAxisTitle: tt, noOfTicks: D, valueColor: B, classNames: jt, filterNA: z, animate: y, precision: Ft, customLayers: Tt, showColorScale: mt, timeline: qt, naLabel: et, orientation: it, hideAxisLine: M, locale: Y }), t[0] = y, t[1] = Mt, t[2] = W, t[3] = tt, t[4] = At, t[5] = X, t[6] = jt, t[7] = q, t[8] = j, t[9] = Gt, t[10] = Tt, t[11] = s, t[12] = a, t[13] = Yt, t[14] = z, t[15] = k, t[16] = It, t[17] = l, t[18] = J, t[19] = H, t[20] = Ot, t[21] = M, t[22] = w, t[23] = f, t[24] = P, t[25] = Y, t[26] = at, t[27] = Ht, t[28] = _, t[29] = Rt, t[30] = h, t[31] = et, t[32] = D, t[33] = u, t[34] = U, t[35] = it, t[36] = N, t[37] = Ft, t[38] = Nt, t[39] = T, t[40] = xt, t[41] = yt, t[42] = R, t[43] = mt, t[44] = Z, t[45] = Bt, t[46] = $t, t[47] = C, t[48] = S, t[49] = Kt, t[50] = c, t[51] = st, t[52] = x, t[53] = qt, t[54] = ot, t[55] = O, t[56] = ut, t[57] = B, t[58] = Xt, t[59] = bt) : bt = t[59], bt;
2445
+ numberDisplayOptions: Lt
2446
+ } = e, Ht = D === void 0 ? "vertical" : D, ct = Pt === void 0 ? !1 : Pt, Xt = Lt?.suffix, W = Lt?.prefix, _ = Lt?.precision, k = Lt?.locale, tt = Lt?.padZeros;
2447
+ let at;
2448
+ return t[0] !== b || t[1] !== T || t[2] !== Y || t[3] !== xt || t[4] !== Mt || t[5] !== G || t[6] !== Z || t[7] !== Yt || t[8] !== M || t[9] !== Rt || t[10] !== I || t[11] !== l || t[12] !== u || t[13] !== Bt || t[14] !== p || t[15] !== Ct || t[16] !== jt || t[17] !== lt || t[18] !== yt || t[19] !== X || t[20] !== nt || t[21] !== ct || t[22] !== f || t[23] !== s || t[24] !== H || t[25] !== y || t[26] !== F || t[27] !== B || t[28] !== L || t[29] !== x || t[30] !== mt || t[31] !== Ft || t[32] !== Q || t[33] !== z || t[34] !== Ht || t[35] !== J || t[36] !== K || t[37] !== ut || t[38] !== Et || t[39] !== U || t[40] !== C || t[41] !== st || t[42] !== St || t[43] !== kt || t[44] !== rt || t[45] !== m || t[46] !== Ut || t[47] !== V || t[48] !== Xt || t[49] !== W || t[50] !== _ || t[51] !== k || t[52] !== tt || t[53] !== a || t[54] !== N || t[55] !== S || t[56] !== O || t[57] !== gt || t[58] !== Gt || t[59] !== Tt ? (at = /* @__PURE__ */ i.jsx(nl, { data: l, graphTitle: X, colors: Rt, sources: Ut, graphDescription: jt, barPadding: Mt, showTicks: St, leftMargin: H, rightMargin: U, topMargin: O, bottomMargin: G, truncateBy: gt, showLabels: st, showValues: kt, backgroundColor: Y, suffix: Xt, prefix: W, height: nt, width: Tt, footNote: Ct, colorDomain: Yt, colorLegendTitle: M, padding: J, tooltip: S, onSeriesMouseOver: z, relativeHeight: ut, refValues: K, graphID: yt, maxValue: B, onSeriesMouseClick: Q, graphDownload: lt, dataDownload: u, language: s, theme: a, labelOrder: f, minHeight: x, maxBarThickness: y, sortParameter: m, sortData: rt, maxNumberOfBars: F, minBarThickness: L, ariaLabel: T, resetSelectionOnDoubleClick: Et, styles: V, detailsOnClick: Bt, barAxisTitle: xt, noOfTicks: Ft, valueColor: Gt, classNames: Z, filterNA: p, animate: b, precision: _, customLayers: I, showColorScale: C, timeline: N, naLabel: mt, orientation: Ht, hideAxisLine: ct, locale: k, padZeros: tt }), t[0] = b, t[1] = T, t[2] = Y, t[3] = xt, t[4] = Mt, t[5] = G, t[6] = Z, t[7] = Yt, t[8] = M, t[9] = Rt, t[10] = I, t[11] = l, t[12] = u, t[13] = Bt, t[14] = p, t[15] = Ct, t[16] = jt, t[17] = lt, t[18] = yt, t[19] = X, t[20] = nt, t[21] = ct, t[22] = f, t[23] = s, t[24] = H, t[25] = y, t[26] = F, t[27] = B, t[28] = L, t[29] = x, t[30] = mt, t[31] = Ft, t[32] = Q, t[33] = z, t[34] = Ht, t[35] = J, t[36] = K, t[37] = ut, t[38] = Et, t[39] = U, t[40] = C, t[41] = st, t[42] = St, t[43] = kt, t[44] = rt, t[45] = m, t[46] = Ut, t[47] = V, t[48] = Xt, t[49] = W, t[50] = _, t[51] = k, t[52] = tt, t[53] = a, t[54] = N, t[55] = S, t[56] = O, t[57] = gt, t[58] = Gt, t[59] = Tt, t[60] = at) : at = t[60], at;
2449
2449
  }
2450
2450
  export {
2451
- ta as GroupedBarGraph,
2452
- _s as SimpleBarGraph,
2453
- ea as StackedBarGraph
2451
+ ia as GroupedBarGraph,
2452
+ ea as SimpleBarGraph,
2453
+ sa as StackedBarGraph
2454
2454
  };
2455
2455
  //# sourceMappingURL=BarGraph.js.map