@undp/data-viz 2.3.17 → 2.4.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 (440) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.d.ts +2 -0
  4. package/dist/AreaChart.js +356 -354
  5. package/dist/AreaChart.js.map +1 -1
  6. package/dist/{Axis-Jt_tmhxS.cjs → Axis-BTaS9oPQ.cjs} +2 -2
  7. package/dist/{Axis-Jt_tmhxS.cjs.map → Axis-BTaS9oPQ.cjs.map} +1 -1
  8. package/dist/{Axis-RyGdzLrG.js → Axis-CNZYWzH0.js} +2 -2
  9. package/dist/{Axis-RyGdzLrG.js.map → Axis-CNZYWzH0.js.map} +1 -1
  10. package/dist/{AxisTitle-DGjX1_2v.js → AxisTitle-CyLCqpW6.js} +2 -2
  11. package/dist/{AxisTitle-DGjX1_2v.js.map → AxisTitle-CyLCqpW6.js.map} +1 -1
  12. package/dist/{AxisTitle-DV4n0RxE.cjs → AxisTitle-DP_evhbe.cjs} +2 -2
  13. package/dist/{AxisTitle-DV4n0RxE.cjs.map → AxisTitle-DP_evhbe.cjs.map} +1 -1
  14. package/dist/BarGraph.cjs +1 -1
  15. package/dist/BarGraph.cjs.map +1 -1
  16. package/dist/BarGraph.d.ts +6 -0
  17. package/dist/BarGraph.js +1735 -1726
  18. package/dist/BarGraph.js.map +1 -1
  19. package/dist/BasicStatCard.cjs +1 -1
  20. package/dist/BasicStatCard.cjs.map +1 -1
  21. package/dist/BasicStatCard.d.ts +2 -0
  22. package/dist/BasicStatCard.js +46 -45
  23. package/dist/BasicStatCard.js.map +1 -1
  24. package/dist/BeeSwarmChart.cjs +1 -1
  25. package/dist/BeeSwarmChart.cjs.map +1 -1
  26. package/dist/BeeSwarmChart.d.ts +2 -0
  27. package/dist/BeeSwarmChart.js +266 -266
  28. package/dist/BeeSwarmChart.js.map +1 -1
  29. package/dist/BiVariateChoroplethMap.cjs +1 -1
  30. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  31. package/dist/BiVariateChoroplethMap.d.ts +2 -0
  32. package/dist/BiVariateChoroplethMap.js +300 -298
  33. package/dist/BiVariateChoroplethMap.js.map +1 -1
  34. package/dist/BulletChart.cjs +1 -1
  35. package/dist/BulletChart.cjs.map +1 -1
  36. package/dist/BulletChart.d.ts +2 -0
  37. package/dist/BulletChart.js +469 -469
  38. package/dist/BulletChart.js.map +1 -1
  39. package/dist/ButterflyChart.cjs +1 -1
  40. package/dist/ButterflyChart.cjs.map +1 -1
  41. package/dist/ButterflyChart.d.ts +2 -0
  42. package/dist/ButterflyChart.js +330 -328
  43. package/dist/ButterflyChart.js.map +1 -1
  44. package/dist/ChoroplethMap.cjs +1 -1
  45. package/dist/ChoroplethMap.cjs.map +1 -1
  46. package/dist/ChoroplethMap.d.ts +2 -0
  47. package/dist/ChoroplethMap.js +303 -301
  48. package/dist/ChoroplethMap.js.map +1 -1
  49. package/dist/CirclePackingGraph.cjs +1 -1
  50. package/dist/CirclePackingGraph.d.ts +2 -0
  51. package/dist/CirclePackingGraph.js +4 -4
  52. package/dist/ColorLegend.cjs +1 -1
  53. package/dist/ColorLegend.js +2 -2
  54. package/dist/ColorLegendWithMouseOver.cjs +1 -1
  55. package/dist/ColorLegendWithMouseOver.js +2 -2
  56. package/dist/CopyTextButton.cjs +1 -1
  57. package/dist/CopyTextButton.cjs.map +1 -1
  58. package/dist/CopyTextButton.js +7 -9
  59. package/dist/CopyTextButton.js.map +1 -1
  60. package/dist/CsvDownloadButton.cjs +1 -1
  61. package/dist/CsvDownloadButton.js +2 -2
  62. package/dist/DataCards.cjs +1 -1
  63. package/dist/DataCards.cjs.map +1 -1
  64. package/dist/DataCards.js +10 -12
  65. package/dist/DataCards.js.map +1 -1
  66. package/dist/DataTable.cjs +1 -1
  67. package/dist/DataTable.cjs.map +1 -1
  68. package/dist/DataTable.d.ts +2 -0
  69. package/dist/DataTable.js +103 -102
  70. package/dist/DataTable.js.map +1 -1
  71. package/dist/{DetailsModal-C3qlUyFK.js → DetailsModal-B2XBWR7w.js} +4 -4
  72. package/dist/{DetailsModal-C3qlUyFK.js.map → DetailsModal-B2XBWR7w.js.map} +1 -1
  73. package/dist/{DetailsModal-DIRTulvr.cjs → DetailsModal-jmmKRMRM.cjs} +2 -2
  74. package/dist/{DetailsModal-DIRTulvr.cjs.map → DetailsModal-jmmKRMRM.cjs.map} +1 -1
  75. package/dist/DifferenceLineChart.cjs +1 -1
  76. package/dist/DifferenceLineChart.cjs.map +1 -1
  77. package/dist/DifferenceLineChart.d.ts +4 -0
  78. package/dist/DifferenceLineChart.js +441 -437
  79. package/dist/DifferenceLineChart.js.map +1 -1
  80. package/dist/DonutChart.cjs +1 -1
  81. package/dist/DonutChart.cjs.map +1 -1
  82. package/dist/DonutChart.d.ts +4 -0
  83. package/dist/DonutChart.js +146 -142
  84. package/dist/DonutChart.js.map +1 -1
  85. package/dist/DotDensityMap.cjs +1 -1
  86. package/dist/DotDensityMap.cjs.map +1 -1
  87. package/dist/DotDensityMap.js +265 -268
  88. package/dist/DotDensityMap.js.map +1 -1
  89. package/dist/{DropdownSelect-NNpOs7DX.cjs → DropdownSelect-CX1yMemd.cjs} +2 -2
  90. package/dist/DropdownSelect-CX1yMemd.cjs.map +1 -0
  91. package/dist/{DropdownSelect-B2WTeedJ.js → DropdownSelect-Dz7imdTB.js} +6 -9
  92. package/dist/DropdownSelect-Dz7imdTB.js.map +1 -0
  93. package/dist/DualAxisLineChart.cjs +1 -1
  94. package/dist/DualAxisLineChart.cjs.map +1 -1
  95. package/dist/DualAxisLineChart.d.ts +4 -0
  96. package/dist/DualAxisLineChart.js +336 -332
  97. package/dist/DualAxisLineChart.js.map +1 -1
  98. package/dist/DumbbellChart.cjs +1 -1
  99. package/dist/DumbbellChart.cjs.map +1 -1
  100. package/dist/DumbbellChart.d.ts +2 -0
  101. package/dist/DumbbellChart.js +484 -484
  102. package/dist/DumbbellChart.js.map +1 -1
  103. package/dist/{EmptyState-B4c-CrXs.cjs → EmptyState-CFmiFPHz.cjs} +2 -2
  104. package/dist/{EmptyState-B4c-CrXs.cjs.map → EmptyState-CFmiFPHz.cjs.map} +1 -1
  105. package/dist/{EmptyState-B3fPoH6L.js → EmptyState-CaxXCkiN.js} +4 -4
  106. package/dist/{EmptyState-B3fPoH6L.js.map → EmptyState-CaxXCkiN.js.map} +1 -1
  107. package/dist/ExcelDownloadButton.cjs +1 -1
  108. package/dist/ExcelDownloadButton.js +2 -2
  109. package/dist/FootNote.cjs +1 -1
  110. package/dist/FootNote.js +2 -2
  111. package/dist/GeoHubCompareMaps.cjs +1 -1
  112. package/dist/GeoHubCompareMaps.cjs.map +1 -1
  113. package/dist/GeoHubCompareMaps.js +111 -111
  114. package/dist/GeoHubCompareMaps.js.map +1 -1
  115. package/dist/GeoHubMap.cjs +1 -1
  116. package/dist/GeoHubMap.cjs.map +1 -1
  117. package/dist/GeoHubMap.js +71 -71
  118. package/dist/GeoHubMap.js.map +1 -1
  119. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  120. package/dist/GeoHubMapWithLayerSelection.cjs.map +1 -1
  121. package/dist/GeoHubMapWithLayerSelection.js +83 -83
  122. package/dist/GeoHubMapWithLayerSelection.js.map +1 -1
  123. package/dist/{GraphContainer-DwMxWRCi.js → GraphContainer-B8ZqOzKI.js} +2 -2
  124. package/dist/{GraphContainer-DwMxWRCi.js.map → GraphContainer-B8ZqOzKI.js.map} +1 -1
  125. package/dist/{GraphContainer-B1EDxJ0S.cjs → GraphContainer-Cul9b74X.cjs} +2 -2
  126. package/dist/{GraphContainer-B1EDxJ0S.cjs.map → GraphContainer-Cul9b74X.cjs.map} +1 -1
  127. package/dist/GraphDescription.cjs +1 -1
  128. package/dist/GraphDescription.js +2 -2
  129. package/dist/{GraphEl-CnJf8b50.js → GraphEl-B73N4RIA.js} +48 -10
  130. package/dist/GraphEl-B73N4RIA.js.map +1 -0
  131. package/dist/GraphEl-Lt1og0C-.cjs +2 -0
  132. package/dist/GraphEl-Lt1og0C-.cjs.map +1 -0
  133. package/dist/GraphFooter.cjs +1 -1
  134. package/dist/GraphFooter.js +2 -2
  135. package/dist/GraphHeader.cjs +1 -1
  136. package/dist/GraphHeader.js +1 -1
  137. package/dist/GraphTitle.cjs +1 -1
  138. package/dist/GraphTitle.js +2 -2
  139. package/dist/GriddedGraphs.cjs +1 -1
  140. package/dist/GriddedGraphs.d.ts +1 -0
  141. package/dist/GriddedGraphs.js +6 -6
  142. package/dist/GriddedGraphsFromConfig.cjs +1 -1
  143. package/dist/GriddedGraphsFromConfig.d.ts +1 -0
  144. package/dist/GriddedGraphsFromConfig.js +2 -2
  145. package/dist/HeatMap.cjs +1 -1
  146. package/dist/HeatMap.cjs.map +1 -1
  147. package/dist/HeatMap.d.ts +4 -0
  148. package/dist/HeatMap.js +158 -155
  149. package/dist/HeatMap.js.map +1 -1
  150. package/dist/Histogram.cjs +1 -1
  151. package/dist/Histogram.cjs.map +1 -1
  152. package/dist/Histogram.d.ts +2 -0
  153. package/dist/Histogram.js +81 -80
  154. package/dist/Histogram.js.map +1 -1
  155. package/dist/HybridMap.cjs +1 -1
  156. package/dist/HybridMap.cjs.map +1 -1
  157. package/dist/HybridMap.d.ts +2 -0
  158. package/dist/HybridMap.js +314 -315
  159. package/dist/HybridMap.js.map +1 -1
  160. package/dist/ImageDownloadButton.cjs +1 -1
  161. package/dist/ImageDownloadButton.js +2 -2
  162. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  163. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  164. package/dist/LineChartWithConfidenceInterval.d.ts +2 -0
  165. package/dist/LineChartWithConfidenceInterval.js +367 -365
  166. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  167. package/dist/LinearColorLegend.cjs +1 -1
  168. package/dist/LinearColorLegend.cjs.map +1 -1
  169. package/dist/LinearColorLegend.d.ts +1 -0
  170. package/dist/LinearColorLegend.js +38 -37
  171. package/dist/LinearColorLegend.js.map +1 -1
  172. package/dist/{Modal-ZX55hLH-.cjs → Modal-BIErPPKT.cjs} +5 -5
  173. package/dist/{Modal-ZX55hLH-.cjs.map → Modal-BIErPPKT.cjs.map} +1 -1
  174. package/dist/{Modal-BV4rkoLM.js → Modal-CrUYln5V.js} +4 -4
  175. package/dist/{Modal-BV4rkoLM.js.map → Modal-CrUYln5V.js.map} +1 -1
  176. package/dist/MultiGraphDashboard.cjs +1 -1
  177. package/dist/MultiGraphDashboard.d.ts +1 -0
  178. package/dist/MultiGraphDashboard.js +4 -4
  179. package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
  180. package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
  181. package/dist/MultiGraphDashboardFromConfig.js +2 -2
  182. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  183. package/dist/MultiGraphDashboardWideToLongFormat.js +4 -4
  184. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
  185. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +2 -2
  186. package/dist/MultiLineAltChart.cjs +1 -1
  187. package/dist/MultiLineAltChart.cjs.map +1 -1
  188. package/dist/MultiLineAltChart.d.ts +2 -0
  189. package/dist/MultiLineAltChart.js +419 -420
  190. package/dist/MultiLineAltChart.js.map +1 -1
  191. package/dist/MultiLineChart.cjs +1 -1
  192. package/dist/MultiLineChart.cjs.map +1 -1
  193. package/dist/MultiLineChart.d.ts +4 -0
  194. package/dist/MultiLineChart.js +410 -409
  195. package/dist/MultiLineChart.js.map +1 -1
  196. package/dist/ParetoChart.cjs +1 -1
  197. package/dist/ParetoChart.cjs.map +1 -1
  198. package/dist/ParetoChart.d.ts +2 -0
  199. package/dist/ParetoChart.js +273 -271
  200. package/dist/ParetoChart.js.map +1 -1
  201. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  202. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
  203. package/dist/PerformanceIntensiveMultiGraphDashboard.js +4 -4
  204. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
  205. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
  206. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +2 -2
  207. package/dist/PerformanceIntensiveScrollStory.cjs +1 -1
  208. package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
  209. package/dist/PerformanceIntensiveScrollStory.js +3 -3
  210. package/dist/RadarChart.cjs +1 -1
  211. package/dist/RadarChart.cjs.map +1 -1
  212. package/dist/RadarChart.d.ts +2 -0
  213. package/dist/RadarChart.js +221 -219
  214. package/dist/RadarChart.js.map +1 -1
  215. package/dist/{ReferenceLine-M9aP3dj-.cjs → ReferenceLine-CpU4G01Y.cjs} +2 -2
  216. package/dist/{ReferenceLine-M9aP3dj-.cjs.map → ReferenceLine-CpU4G01Y.cjs.map} +1 -1
  217. package/dist/{ReferenceLine-CNEjAYvv.js → ReferenceLine-D41VuUhE.js} +3 -3
  218. package/dist/{ReferenceLine-CNEjAYvv.js.map → ReferenceLine-D41VuUhE.js.map} +1 -1
  219. package/dist/{RegressionLine-Ci-Dh0w0.cjs → RegressionLine-BFoBiVJk.cjs} +2 -2
  220. package/dist/{RegressionLine-Ci-Dh0w0.cjs.map → RegressionLine-BFoBiVJk.cjs.map} +1 -1
  221. package/dist/{RegressionLine-BDrndQxo.js → RegressionLine-CuwB42I6.js} +4 -4
  222. package/dist/{RegressionLine-BDrndQxo.js.map → RegressionLine-CuwB42I6.js.map} +1 -1
  223. package/dist/SVGDownloadButton.cjs +1 -1
  224. package/dist/SVGDownloadButton.js +2 -2
  225. package/dist/SankeyChart.cjs +1 -1
  226. package/dist/SankeyChart.cjs.map +1 -1
  227. package/dist/SankeyChart.d.ts +2 -0
  228. package/dist/SankeyChart.js +404 -408
  229. package/dist/SankeyChart.js.map +1 -1
  230. package/dist/ScatterPlot.cjs +1 -1
  231. package/dist/ScatterPlot.cjs.map +1 -1
  232. package/dist/ScatterPlot.d.ts +2 -0
  233. package/dist/ScatterPlot.js +444 -445
  234. package/dist/ScatterPlot.js.map +1 -1
  235. package/dist/ScrollStory.cjs +1 -1
  236. package/dist/ScrollStory.d.ts +1 -0
  237. package/dist/ScrollStory.js +3 -3
  238. package/dist/SimpleLineChart.cjs +1 -1
  239. package/dist/SimpleLineChart.cjs.map +1 -1
  240. package/dist/SimpleLineChart.d.ts +2 -0
  241. package/dist/SimpleLineChart.js +360 -358
  242. package/dist/SimpleLineChart.js.map +1 -1
  243. package/dist/SingleGraphDashboard.cjs +1 -1
  244. package/dist/SingleGraphDashboard.d.ts +1 -0
  245. package/dist/SingleGraphDashboard.js +6 -6
  246. package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
  247. package/dist/SingleGraphDashboardFromConfig.d.ts +1 -0
  248. package/dist/SingleGraphDashboardFromConfig.js +2 -2
  249. package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
  250. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
  251. package/dist/SingleGraphDashboardGeoHubMaps.js +3 -3
  252. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
  253. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
  254. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +2 -2
  255. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  256. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
  257. package/dist/SingleGraphDashboardThreeDGraphs.js +6 -6
  258. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
  259. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
  260. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +2 -2
  261. package/dist/SlopeChart.cjs +1 -1
  262. package/dist/SlopeChart.cjs.map +1 -1
  263. package/dist/SlopeChart.js +259 -262
  264. package/dist/SlopeChart.js.map +1 -1
  265. package/dist/{Source-BOSAl3UX.cjs → Source-PKuwZOn3.cjs} +2 -2
  266. package/dist/{Source-BOSAl3UX.cjs.map → Source-PKuwZOn3.cjs.map} +1 -1
  267. package/dist/{Source-Djkz-7jX.js → Source-QGk8vhkS.js} +3 -3
  268. package/dist/{Source-Djkz-7jX.js.map → Source-QGk8vhkS.js.map} +1 -1
  269. package/dist/Source.cjs +1 -1
  270. package/dist/Source.js +3 -3
  271. package/dist/SparkLine.cjs +1 -1
  272. package/dist/SparkLine.js +3 -3
  273. package/dist/{Spinner-CtJETd5V.js → Spinner-B2IIKg9r.js} +2 -2
  274. package/dist/{Spinner-CtJETd5V.js.map → Spinner-B2IIKg9r.js.map} +1 -1
  275. package/dist/{Spinner-jTMOLuw_.cjs → Spinner-WHzzloYQ.cjs} +2 -2
  276. package/dist/{Spinner-jTMOLuw_.cjs.map → Spinner-WHzzloYQ.cjs.map} +1 -1
  277. package/dist/StatCardFromData.cjs +1 -1
  278. package/dist/StatCardFromData.cjs.map +1 -1
  279. package/dist/StatCardFromData.d.ts +4 -0
  280. package/dist/StatCardFromData.js +97 -95
  281. package/dist/StatCardFromData.js.map +1 -1
  282. package/dist/StripChart.cjs +1 -1
  283. package/dist/StripChart.cjs.map +1 -1
  284. package/dist/StripChart.d.ts +2 -0
  285. package/dist/StripChart.js +343 -343
  286. package/dist/StripChart.js.map +1 -1
  287. package/dist/ThreeDGlobe.cjs +1 -1
  288. package/dist/ThreeDGlobe.cjs.map +1 -1
  289. package/dist/ThreeDGlobe.d.ts +2 -0
  290. package/dist/ThreeDGlobe.js +198 -196
  291. package/dist/ThreeDGlobe.js.map +1 -1
  292. package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
  293. package/dist/ThresholdColorLegendWithMouseOver.cjs.map +1 -1
  294. package/dist/ThresholdColorLegendWithMouseOver.d.ts +2 -0
  295. package/dist/ThresholdColorLegendWithMouseOver.js +50 -48
  296. package/dist/ThresholdColorLegendWithMouseOver.js.map +1 -1
  297. package/dist/{Tooltip-CohiIbLZ.js → Tooltip-Bj-s__cI.js} +3 -3
  298. package/dist/{Tooltip-CohiIbLZ.js.map → Tooltip-Bj-s__cI.js.map} +1 -1
  299. package/dist/{Tooltip-BLa2EfMs.cjs → Tooltip-Hr46paWP.cjs} +2 -2
  300. package/dist/{Tooltip-BLa2EfMs.cjs.map → Tooltip-Hr46paWP.cjs.map} +1 -1
  301. package/dist/TreeMapGraph.cjs +1 -1
  302. package/dist/TreeMapGraph.cjs.map +1 -1
  303. package/dist/TreeMapGraph.d.ts +2 -0
  304. package/dist/TreeMapGraph.js +139 -140
  305. package/dist/TreeMapGraph.js.map +1 -1
  306. package/dist/Types.d.ts +1 -0
  307. package/dist/{Typography-DMVW6JnV.js → Typography-BO0gQDIT.js} +2 -2
  308. package/dist/{Typography-DMVW6JnV.js.map → Typography-BO0gQDIT.js.map} +1 -1
  309. package/dist/{Typography-CZZxlj1W.cjs → Typography-BqmyF1gP.cjs} +2 -2
  310. package/dist/{Typography-CZZxlj1W.cjs.map → Typography-BqmyF1gP.cjs.map} +1 -1
  311. package/dist/UnitChart.cjs +1 -1
  312. package/dist/UnitChart.cjs.map +1 -1
  313. package/dist/UnitChart.d.ts +4 -0
  314. package/dist/UnitChart.js +88 -86
  315. package/dist/UnitChart.js.map +1 -1
  316. package/dist/WaterfallChart.cjs +1 -1
  317. package/dist/WaterfallChart.cjs.map +1 -1
  318. package/dist/WaterfallChart.d.ts +2 -0
  319. package/dist/WaterfallChart.js +257 -258
  320. package/dist/WaterfallChart.js.map +1 -1
  321. package/dist/{XAxesLabels-IwjMJkYS.js → XAxesLabels-B9gkjUiC.js} +3 -3
  322. package/dist/{XAxesLabels-IwjMJkYS.js.map → XAxesLabels-B9gkjUiC.js.map} +1 -1
  323. package/dist/{XAxesLabels-C6o9jJal.cjs → XAxesLabels-C03jHniq.cjs} +2 -2
  324. package/dist/{XAxesLabels-C6o9jJal.cjs.map → XAxesLabels-C03jHniq.cjs.map} +1 -1
  325. package/dist/XTicksAndGridLines-C5DuC5oY.cjs +2 -0
  326. package/dist/XTicksAndGridLines-C5DuC5oY.cjs.map +1 -0
  327. package/dist/XTicksAndGridLines-gdbGX2rm.js +39 -0
  328. package/dist/XTicksAndGridLines-gdbGX2rm.js.map +1 -0
  329. package/dist/{YAxesLabels-BQ2aCazV.cjs → YAxesLabels-DeENFC2M.cjs} +2 -2
  330. package/dist/{YAxesLabels-BQ2aCazV.cjs.map → YAxesLabels-DeENFC2M.cjs.map} +1 -1
  331. package/dist/{YAxesLabels-DoGvgHdw.js → YAxesLabels-hWEUCTvs.js} +3 -3
  332. package/dist/{YAxesLabels-DoGvgHdw.js.map → YAxesLabels-hWEUCTvs.js.map} +1 -1
  333. package/dist/YTicksAndGridLines-CsNSq9W9.js +39 -0
  334. package/dist/YTicksAndGridLines-CsNSq9W9.js.map +1 -0
  335. package/dist/YTicksAndGridLines-DFjm8RCc.cjs +2 -0
  336. package/dist/YTicksAndGridLines-DFjm8RCc.cjs.map +1 -0
  337. package/dist/{checkIfMultiple-TOaaUwS7.cjs → checkIfMultiple-CH5tqj4q.cjs} +2 -2
  338. package/dist/checkIfMultiple-CH5tqj4q.cjs.map +1 -0
  339. package/dist/{checkIfMultiple-B97uOUVq.js → checkIfMultiple-Dpyy6BUP.js} +6 -6
  340. package/dist/checkIfMultiple-Dpyy6BUP.js.map +1 -0
  341. package/dist/{customArea-B1LWQBmM.cjs → customArea-BAcQ3pBM.cjs} +2 -2
  342. package/dist/{customArea-B1LWQBmM.cjs.map → customArea-BAcQ3pBM.cjs.map} +1 -1
  343. package/dist/{customArea-Cc2whe6P.js → customArea-D89lETG0.js} +3 -3
  344. package/dist/{customArea-Cc2whe6P.js.map → customArea-D89lETG0.js.map} +1 -1
  345. package/dist/getSliderMarks-BzrpHrHS.cjs +2 -0
  346. package/dist/getSliderMarks-BzrpHrHS.cjs.map +1 -0
  347. package/dist/{getSliderMarks-vXsR8RrR.js → getSliderMarks-X-_goqH9.js} +3 -4
  348. package/dist/getSliderMarks-X-_goqH9.js.map +1 -0
  349. package/dist/{index-CZ0elhKR.js → index-ApTBN0kp.js} +20 -10
  350. package/dist/{index-CZ0elhKR.js.map → index-ApTBN0kp.js.map} +1 -1
  351. package/dist/index-B0Awa_de.js +377 -0
  352. package/dist/index-B0Awa_de.js.map +1 -0
  353. package/dist/{index-sbKVyHS2.cjs → index-BhI7mBJx.cjs} +2 -2
  354. package/dist/{index-sbKVyHS2.cjs.map → index-BhI7mBJx.cjs.map} +1 -1
  355. package/dist/{index-D69M6klB.cjs → index-BuhBhuCq.cjs} +2 -2
  356. package/dist/{index-D69M6klB.cjs.map → index-BuhBhuCq.cjs.map} +1 -1
  357. package/dist/{index-CHPV5EwG-BCLAYDCV.js → index-CHPV5EwG-BzibaIRc.js} +5 -9
  358. package/dist/index-CHPV5EwG-BzibaIRc.js.map +1 -0
  359. package/dist/{index-CHPV5EwG-6v2a2njQ.cjs → index-CHPV5EwG-D4pAp7u0.cjs} +3 -3
  360. package/dist/index-CHPV5EwG-D4pAp7u0.cjs.map +1 -0
  361. package/dist/index-CP8cmNzt.cjs +2 -0
  362. package/dist/index-CP8cmNzt.cjs.map +1 -0
  363. package/dist/{index-Co3YGYe1.js → index-Cv_5q6Rb.js} +3 -3
  364. package/dist/{index-Co3YGYe1.js.map → index-Cv_5q6Rb.js.map} +1 -1
  365. package/dist/{index-D_dtv_T9.js → index-DHVGV8Df.js} +3 -3
  366. package/dist/{index-D_dtv_T9.js.map → index-DHVGV8Df.js.map} +1 -1
  367. package/dist/{index-CoobIWNj.cjs → index-FXfr51ZM.cjs} +2 -2
  368. package/dist/{index-CoobIWNj.cjs.map → index-FXfr51ZM.cjs.map} +1 -1
  369. package/dist/{index-D6CYcVc7-BOa7Dpvf.js → index-Scxs_wcm-BAjU0Cob.js} +16 -16
  370. package/dist/index-Scxs_wcm-BAjU0Cob.js.map +1 -0
  371. package/dist/index-Scxs_wcm-DUDU-Gll.cjs +2 -0
  372. package/dist/index-Scxs_wcm-DUDU-Gll.cjs.map +1 -0
  373. package/dist/{index-DoS4bGNa-C3DbPpy3.cjs → index-w64Zl8io-DrMm5QSb.cjs} +2 -2
  374. package/dist/index-w64Zl8io-DrMm5QSb.cjs.map +1 -0
  375. package/dist/{index-DoS4bGNa-Bgab95kx.js → index-w64Zl8io-ihagHOdP.js} +2 -2
  376. package/dist/index-w64Zl8io-ihagHOdP.js.map +1 -0
  377. package/dist/index.cjs +1 -1
  378. package/dist/index.d.ts +92 -17
  379. package/dist/index.js +3 -3
  380. package/dist/numberFormattingFunction-Cn9R7CM9.cjs +2 -0
  381. package/dist/numberFormattingFunction-Cn9R7CM9.cjs.map +1 -0
  382. package/dist/numberFormattingFunction-DqMf_v1m.js +28 -0
  383. package/dist/numberFormattingFunction-DqMf_v1m.js.map +1 -0
  384. package/dist/{proxy--_f6k3NR.js → proxy-BsxtcZKa.js} +2 -2
  385. package/dist/{proxy--_f6k3NR.js.map → proxy-BsxtcZKa.js.map} +1 -1
  386. package/dist/{proxy-C4-uo6nS.cjs → proxy-CqH8m8IQ.cjs} +2 -2
  387. package/dist/{proxy-C4-uo6nS.cjs.map → proxy-CqH8m8IQ.cjs.map} +1 -1
  388. package/dist/{string2HTML-DUYZT1L9.js → string2HTML-BrFperRM.js} +2 -2
  389. package/dist/{string2HTML-DUYZT1L9.js.map → string2HTML-BrFperRM.js.map} +1 -1
  390. package/dist/{string2HTML-xx9MzTtY.cjs → string2HTML-ZoGd08P_.cjs} +2 -2
  391. package/dist/{string2HTML-xx9MzTtY.cjs.map → string2HTML-ZoGd08P_.cjs.map} +1 -1
  392. package/dist/style.css +1 -1
  393. package/dist/{use-in-view-DqvKAveg.js → use-in-view-KOXq5Kmc.js} +2 -2
  394. package/dist/{use-in-view-DqvKAveg.js.map → use-in-view-KOXq5Kmc.js.map} +1 -1
  395. package/dist/{use-in-view-C3o_ntMv.cjs → use-in-view-dnRv_qqF.cjs} +2 -2
  396. package/dist/{use-in-view-C3o_ntMv.cjs.map → use-in-view-dnRv_qqF.cjs.map} +1 -1
  397. package/dist/utils.cjs +1 -1
  398. package/dist/utils.d.ts +9 -18
  399. package/dist/utils.js +1 -1
  400. package/dist/x-BXShoIAM-BC2sxios.cjs +2 -0
  401. package/dist/x-BXShoIAM-BC2sxios.cjs.map +1 -0
  402. package/dist/{x-BBpi7a_7-BsvWCzYM.js → x-BXShoIAM-D6VWO6z5.js} +3 -5
  403. package/dist/x-BXShoIAM-D6VWO6z5.js.map +1 -0
  404. package/package.json +2 -2
  405. package/dist/DropdownSelect-B2WTeedJ.js.map +0 -1
  406. package/dist/DropdownSelect-NNpOs7DX.cjs.map +0 -1
  407. package/dist/GraphEl-CnJf8b50.js.map +0 -1
  408. package/dist/GraphEl-D_w0Qak4.cjs +0 -2
  409. package/dist/GraphEl-D_w0Qak4.cjs.map +0 -1
  410. package/dist/XTicksAndGridLines-BDmF9etl.js +0 -38
  411. package/dist/XTicksAndGridLines-BDmF9etl.js.map +0 -1
  412. package/dist/XTicksAndGridLines-CekrPykD.cjs +0 -2
  413. package/dist/XTicksAndGridLines-CekrPykD.cjs.map +0 -1
  414. package/dist/YTicksAndGridLines-C3GW1xFG.js +0 -38
  415. package/dist/YTicksAndGridLines-C3GW1xFG.js.map +0 -1
  416. package/dist/YTicksAndGridLines-UzVC5eBM.cjs +0 -2
  417. package/dist/YTicksAndGridLines-UzVC5eBM.cjs.map +0 -1
  418. package/dist/checkIfMultiple-B97uOUVq.js.map +0 -1
  419. package/dist/checkIfMultiple-TOaaUwS7.cjs.map +0 -1
  420. package/dist/getSliderMarks-CIuSoedo.cjs +0 -2
  421. package/dist/getSliderMarks-CIuSoedo.cjs.map +0 -1
  422. package/dist/getSliderMarks-vXsR8RrR.js.map +0 -1
  423. package/dist/index-C6VwVS8W.js +0 -378
  424. package/dist/index-C6VwVS8W.js.map +0 -1
  425. package/dist/index-CHPV5EwG-6v2a2njQ.cjs.map +0 -1
  426. package/dist/index-CHPV5EwG-BCLAYDCV.js.map +0 -1
  427. package/dist/index-D6CYcVc7-BOa7Dpvf.js.map +0 -1
  428. package/dist/index-D6CYcVc7-CTEcAtiQ.cjs +0 -2
  429. package/dist/index-D6CYcVc7-CTEcAtiQ.cjs.map +0 -1
  430. package/dist/index-DoS4bGNa-Bgab95kx.js.map +0 -1
  431. package/dist/index-DoS4bGNa-C3DbPpy3.cjs.map +0 -1
  432. package/dist/index-_TlgeI_i.cjs +0 -2
  433. package/dist/index-_TlgeI_i.cjs.map +0 -1
  434. package/dist/numberFormattingFunction-02t-wJta.cjs +0 -2
  435. package/dist/numberFormattingFunction-02t-wJta.cjs.map +0 -1
  436. package/dist/numberFormattingFunction-14YCbkN2.js +0 -13
  437. package/dist/numberFormattingFunction-14YCbkN2.js.map +0 -1
  438. package/dist/x-BBpi7a_7-BsvWCzYM.js.map +0 -1
  439. package/dist/x-BBpi7a_7-DXYIEFwN.cjs +0 -2
  440. package/dist/x-BBpi7a_7-DXYIEFwN.cjs.map +0 -1
package/dist/BarGraph.js CHANGED
@@ -1,255 +1,256 @@
1
- import { c as we, j as i, m as Me } from "./index-CHPV5EwG-BCLAYDCV.js";
2
- import { useRef as ve, useState as Zt, useEffect as Ie } from "react";
3
- import { g as Ee, N as Ge } from "./getSliderMarks-vXsR8RrR.js";
4
- import { f as Ce, p as Re } from "./parse-Dv4of-PN.js";
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
5
  import { o as We } from "./index-BZQYSqar.js";
6
6
  import { s as me } from "./index-CeVNqhMO.js";
7
7
  import { i as Ne } from "./index-Bwrro8-q.js";
8
- import { n as be } from "./numberFormattingFunction-14YCbkN2.js";
9
- import { T as je } from "./Tooltip-CohiIbLZ.js";
10
- import { c as ee } from "./checkIfNullOrUndefined-DmfiKkNw.js";
11
- import { Y as qe } from "./YAxesLabels-DoGvgHdw.js";
12
- import { A as Te } from "./Axis-RyGdzLrG.js";
13
- import { A as Se } from "./AxisTitle-DGjX1_2v.js";
14
- import { X as Ue } from "./XTicksAndGridLines-BDmF9etl.js";
15
- import { R as Je, a as Ke } from "./ReferenceLine-CNEjAYvv.js";
16
- import { Y as Qe } from "./YTicksAndGridLines-C3GW1xFG.js";
17
- import { X as Ze } from "./XAxesLabels-IwjMJkYS.js";
18
- import { D as Be } from "./DetailsModal-C3qlUyFK.js";
19
- import { u as Fe } from "./use-in-view-DqvKAveg.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
20
  import { a as Pe } from "./linear-DNXM5Pdl.js";
21
- import { b as ke } from "./band-DYty33LD.js";
22
- import { m as _t } from "./proxy--_f6k3NR.js";
23
- import { A as He } from "./index-Co3YGYe1.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
24
  import { GraphHeader as _e } from "./GraphHeader.js";
25
25
  import { GraphFooter as ti } from "./GraphFooter.js";
26
26
  import { ColorLegendWithMouseOver as ei } from "./ColorLegendWithMouseOver.js";
27
- import { Colors as pe } from "./Colors.js";
28
- import { E as ii } from "./EmptyState-B3fPoH6L.js";
29
- import { P as si, e as li } from "./index-CZ0elhKR.js";
30
- import { d as De, f as oi } from "./ensureCompleteData-CDIukSG6.js";
31
- import { a as ai, G as ni } from "./GraphContainer-DwMxWRCi.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
32
  import { u as ri } from "./uniqBy-BHy4I8PK.js";
33
33
  import { g as Ye } from "./getTextColorBasedOnBgColor-CDY808zi.js";
34
34
  function ci(e) {
35
- const t = we.c(131), {
36
- data: l,
37
- leftMargin: X,
38
- rightMargin: Ut,
39
- topMargin: Jt,
40
- bottomMargin: Tt,
41
- barColors: Ct,
42
- barPadding: Ft,
43
- showTicks: W,
44
- truncateBy: J,
45
- width: A,
46
- height: R,
47
- suffix: ft,
48
- prefix: et,
49
- showValues: Lt,
50
- showLabels: Y,
51
- tooltip: lt,
52
- onSeriesMouseOver: Vt,
53
- refValues: zt,
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,
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
54
  maxValue: Xt,
55
- minValue: C,
56
- onSeriesMouseClick: K,
57
- selectedColor: B,
58
- rtl: T,
59
- labelOrder: dt,
60
- maxBarThickness: Q,
61
- resetSelectionOnDoubleClick: pt,
62
- detailsOnClick: F,
63
- barAxisTitle: Z,
64
- valueColor: it,
65
- noOfTicks: c,
66
- styles: s,
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: _,
65
+ noOfTicks: u,
66
+ styles: l,
67
67
  classNames: a,
68
- animate: m,
69
- colorDomain: d,
70
- precision: p,
71
- customLayers: x,
68
+ animate: f,
69
+ colorDomain: x,
70
+ precision: w,
71
+ customLayers: h,
72
72
  naLabel: at,
73
- hideAxisLine: D
74
- } = e, E = X === void 0 ? 100 : X, Yt = Ut === void 0 ? 40 : Ut, Et = Jt === void 0 ? 25 : Jt, Pt = Tt === void 0 ? 10 : Tt, Ht = ve(null);
75
- let nt;
76
- t[0] !== m.amount || t[1] !== m.once ? (nt = {
77
- once: m.once,
78
- amount: m.amount
79
- }, t[0] = m.amount, t[1] = m.once, t[2] = nt) : nt = t[2];
80
- const ut = Fe(Ht, nt), _ = Z ? Et + 25 : Et;
81
- let u;
82
- t[3] !== Pt || t[4] !== E || t[5] !== Yt || t[6] !== _ ? (u = {
83
- top: _,
84
- bottom: Pt,
85
- left: E,
86
- right: Yt
87
- }, t[3] = Pt, t[4] = E, t[5] = Yt, t[6] = _, t[7] = u) : u = t[7];
88
- const r = u, [V, gt] = Zt(void 0), [y, L] = Zt(void 0), [Gt, ot] = Zt(void 0), [Rt, rt] = Zt(void 0), Wt = A - r.left - r.right, G = R - r.top - r.bottom;
89
- let st;
90
- if (t[8] !== l || t[9] !== dt) {
91
- const b = /* @__PURE__ */ new Set(), At = l.map((f, g) => {
92
- const Nt = dt ? `${f.label}` : `${g}`;
93
- return b.add(Nt), {
94
- ...f,
95
- id: Nt
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 = {
78
+ once: f.once,
79
+ 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;
82
+ 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
96
97
  };
97
- }), $t = dt ? dt.filter((f) => !b.has(f)) : [];
98
- let M;
99
- t[11] !== l[0].size.length ? (M = (f) => ({
100
- id: f,
101
- label: f,
102
- size: Array(l[0].size.length).fill(null)
103
- }), t[11] = l[0].size.length, t[12] = M) : M = t[12], st = [...At, ...$t.map(M)], t[8] = l, t[9] = dt, t[10] = st;
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;
104
105
  } else
105
- st = t[10];
106
- const k = st;
107
- let xt;
108
- t[13] !== k || t[14] !== dt ? (xt = dt ?? k.map(gi), t[13] = k, t[14] = dt, t[15] = xt) : xt = t[15];
109
- const St = xt;
110
- let yt, bt, vt, Bt, Dt, tt, S, I, It, wt, ct, mt, ht, q;
111
- if (t[16] !== m || t[17] !== Z || t[18] !== Ct || t[19] !== St || t[20] !== Ft || 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] !== d || t[28] !== x || t[29] !== l[0].size || t[30] !== k || t[31] !== F || t[32] !== G || t[33] !== Wt || t[34] !== R || t[35] !== D || t[36] !== ut || t[37] !== r.bottom || t[38] !== r.left || t[39] !== r.top || t[40] !== Q || t[41] !== Xt || t[42] !== C || t[43] !== y || t[44] !== at || t[45] !== c || t[46] !== K || t[47] !== Vt || t[48] !== p || t[49] !== et || t[50] !== zt || t[51] !== pt || t[52] !== T || t[53] !== B || t[54] !== Y || t[55] !== W || t[56] !== Lt || t[57] !== s?.graphObjectValues || t[58] !== s?.xAxis?.gridLines || t[59] !== s?.xAxis?.labels || t[60] !== s?.xAxis?.title || t[61] !== s?.yAxis?.axis || t[62] !== s?.yAxis?.labels || t[63] !== ft || t[64] !== Et || t[65] !== J || t[66] !== it || t[67] !== A) {
112
- const b = Pe().domain([C, Xt]).range([0, Wt]).nice(), At = ke().domain(St).range([0, Q ? Math.min(G, Q * St.length) : G]).paddingInner(Ft), $t = ke().domain(l[0].size.map(pi)).range([0, At.bandwidth()]).paddingInner(0.1), M = b.ticks(c);
113
- bt = _t.svg, It = Ht, wt = `${A}px`, ct = `${R}px`, mt = `0 0 ${A} ${R}`, ht = "ltr", Dt = `translate(${r.left},${r.top})`, tt = W ? /* @__PURE__ */ i.jsx(Ue, { values: M.filter(fi), x: M.filter(hi).map((j) => b(j)), y1: 0 - Et, y2: G + r.bottom, styles: {
114
- gridLines: s?.xAxis?.gridLines,
115
- labels: s?.xAxis?.labels
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
116
117
  }, classNames: {
117
118
  gridLines: a?.xAxis?.gridLines,
118
119
  labels: a?.xAxis?.labels
119
- }, suffix: ft, prefix: et, labelType: "secondary", showGridLines: !0, precision: p }) : null;
120
- const f = Wt / 2, g = 0 - r.top + 15, Nt = s?.xAxis?.title, qt = a?.xAxis?.title;
121
- t[82] !== Z || t[83] !== f || t[84] !== g || t[85] !== Nt || t[86] !== qt ? (S = /* @__PURE__ */ i.jsx(Se, { x: f, y: g, style: Nt, className: qt, text: Z }), t[82] = Z, t[83] = f, t[84] = g, t[85] = Nt, t[86] = qt, t[87] = S) : S = t[87], t[88] !== x ? (I = x.filter(mi).map(xi), t[88] = x, t[89] = I) : I = t[89], yt = He, q = k.map((j) => ee(At(j.id)) ? null : /* @__PURE__ */ i.jsxs(_t.g, { variants: {
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: {
122
123
  initial: {
123
124
  x: 0,
124
- y: At(`${j.id}`)
125
+ y: zt(`${V.id}`)
125
126
  },
126
127
  whileInView: {
127
128
  x: 0,
128
- y: At(`${j.id}`),
129
+ y: zt(`${V.id}`),
129
130
  transition: {
130
- duration: m.duration
131
+ duration: f.duration
131
132
  }
132
133
  }
133
- }, initial: "initial", animate: ut ? "whileInView" : "initial", exit: {
134
+ }, initial: "initial", animate: D ? "whileInView" : "initial", exit: {
134
135
  opacity: 0,
135
136
  transition: {
136
- duration: m.duration
137
+ duration: f.duration
137
138
  }
138
139
  }, children: [
139
- j.size.map((h, w) => /* @__PURE__ */ i.jsxs(_t.g, { className: "undp-viz-g-with-hover", opacity: B ? Ct[w] === B ? 1 : 0.3 : 0.85, onMouseEnter: (n) => {
140
- gt({
141
- ...j,
142
- sizeIndex: w
143
- }), rt(n.clientY), ot(n.clientX), Vt?.({
144
- ...j,
145
- sizeIndex: w
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
146
147
  });
147
- }, onMouseMove: (n) => {
148
- gt({
149
- ...j,
150
- sizeIndex: w
151
- }), rt(n.clientY), ot(n.clientX);
148
+ }, onMouseMove: (o) => {
149
+ z({
150
+ ...V,
151
+ sizeIndex: L
152
+ }), et(o.clientY), mt(o.clientX);
152
153
  }, onMouseLeave: () => {
153
- gt(void 0), ot(void 0), rt(void 0), Vt?.(void 0);
154
+ z(void 0), mt(void 0), et(void 0), Nt?.(void 0);
154
155
  }, onClick: () => {
155
- (K || F) && (Ne(y, {
156
- ...j,
157
- sizeIndex: w
158
- }) && pt ? (L(void 0), K?.(void 0)) : (L({
159
- ...j,
160
- sizeIndex: w
161
- }), K && K({
162
- ...j,
163
- sizeIndex: w
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
164
165
  })));
165
166
  }, children: [
166
- ee(h) ? null : /* @__PURE__ */ i.jsx(_t.rect, { y: $t(`${w}`), variants: {
167
+ ie(d) ? null : /* @__PURE__ */ i.jsx(te.rect, { y: wt(`${L}`), variants: {
167
168
  initial: {
168
169
  width: 0,
169
- x: b(0),
170
- fill: Ct[w]
170
+ x: v(0),
171
+ fill: At[L]
171
172
  },
172
173
  whileInView: {
173
- width: ee(h) ? 0 : h >= 0 ? b(h) - b(0) : b(0) - b(h),
174
- x: h >= 0 ? b(0) : b(h),
175
- fill: Ct[w],
174
+ width: ie(d) ? 0 : d >= 0 ? v(d) - v(0) : v(0) - v(d),
175
+ x: d >= 0 ? v(0) : v(d),
176
+ fill: At[L],
176
177
  transition: {
177
- duration: m.duration
178
+ duration: f.duration
178
179
  }
179
180
  }
180
181
  }, exit: {
181
182
  width: 0,
182
- x: b(0),
183
+ x: v(0),
183
184
  transition: {
184
- duration: m.duration
185
+ duration: f.duration
185
186
  }
186
- }, height: $t.bandwidth(), initial: "initial", animate: ut ? "whileInView" : "initial" }),
187
- Lt ? /* @__PURE__ */ i.jsx(_t.text, { y: $t(`${w}`) + $t.bandwidth() / 2, style: {
188
- textAnchor: h && h < 0 ? "end" : "start",
189
- ...s?.graphObjectValues || {}
190
- }, className: Me("graph-value text-sm", a?.graphObjectValues), dx: h && h < 0 ? -5 : 5, dy: "0.33em", variants: {
187
+ }, height: wt.bandwidth(), initial: "initial", animate: D ? "whileInView" : "initial" }),
188
+ $t ? /* @__PURE__ */ i.jsx(te.text, { y: wt(`${L}`) + wt.bandwidth() / 2, style: {
189
+ 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
192
  initial: {
192
- x: b(0),
193
+ x: v(0),
193
194
  opacity: 0,
194
- fill: it || Ct[w]
195
+ fill: _ || At[L]
195
196
  },
196
197
  whileInView: {
197
- x: b(h || 0),
198
+ x: v(d || 0),
198
199
  opacity: 1,
199
- fill: it || Ct[w],
200
+ fill: _ || At[L],
200
201
  transition: {
201
- duration: m.duration
202
+ duration: f.duration
202
203
  }
203
204
  }
204
- }, initial: "initial", animate: ut ? "whileInView" : "initial", exit: {
205
+ }, initial: "initial", animate: D ? "whileInView" : "initial", exit: {
205
206
  opacity: 0,
206
207
  transition: {
207
- duration: m.duration
208
+ duration: f.duration
208
209
  }
209
- }, children: be(h, at, p, et, ft) }) : null
210
- ] }, `${j.label}-${d[w] || w}`)),
211
- Y ? /* @__PURE__ */ i.jsx(qe, { value: `${j.label}`.length < J ? `${j.label}` : `${`${j.label}`.substring(0, J)}...`, y: 0, x: 0 - r.left, width: b(C < 0 ? 0 : C) + r.left, height: At.bandwidth(), style: s?.yAxis?.labels, className: a?.yAxis?.labels, animate: m, isInView: ut }) : null
212
- ] }, j.label));
213
- const Qt = a?.yAxis?.axis;
214
- let P;
215
- t[90] !== Qt ? (P = {
216
- axis: Qt
217
- }, t[90] = Qt, t[91] = P) : P = t[91];
218
- const N = s?.yAxis?.axis;
219
- let z;
220
- t[92] !== N ? (z = {
221
- axis: N
222
- }, t[92] = N, t[93] = z) : z = t[93], vt = /* @__PURE__ */ i.jsx(Te, { x1: b(C < 0 ? 0 : C), x2: b(C < 0 ? 0 : C), y1: -2.5, y2: G + r.bottom, classNames: P, styles: z, hideAxisLine: D }), Bt = zt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: zt.map((j, h) => /* @__PURE__ */ i.jsx(Je, { text: j.text, color: j.color, x: b(j.value), y1: 0 - r.top, y2: G + r.bottom, textSide: b(j.value) > Wt * 0.75 || T ? "left" : "right", classNames: j.classNames, styles: j.styles, animate: m, isInView: ut }, h)) }) : null, t[16] = m, t[17] = Z, t[18] = Ct, t[19] = St, t[20] = Ft, 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] = d, t[28] = x, t[29] = l[0].size, t[30] = k, t[31] = F, t[32] = G, t[33] = Wt, t[34] = R, t[35] = D, t[36] = ut, t[37] = r.bottom, t[38] = r.left, t[39] = r.top, t[40] = Q, t[41] = Xt, t[42] = C, t[43] = y, t[44] = at, t[45] = c, t[46] = K, t[47] = Vt, t[48] = p, t[49] = et, t[50] = zt, t[51] = pt, t[52] = T, t[53] = B, t[54] = Y, t[55] = W, t[56] = Lt, t[57] = s?.graphObjectValues, t[58] = s?.xAxis?.gridLines, t[59] = s?.xAxis?.labels, t[60] = s?.xAxis?.title, t[61] = s?.yAxis?.axis, t[62] = s?.yAxis?.labels, t[63] = ft, t[64] = Et, t[65] = J, t[66] = it, t[67] = A, t[68] = yt, t[69] = bt, t[70] = vt, t[71] = Bt, t[72] = Dt, t[73] = tt, t[74] = S, t[75] = I, t[76] = It, t[77] = wt, t[78] = ct, t[79] = mt, t[80] = ht, t[81] = q;
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;
223
224
  } else
224
- yt = t[68], bt = t[69], vt = t[70], Bt = t[71], Dt = t[72], tt = t[73], S = t[74], I = t[75], It = t[76], wt = t[77], ct = t[78], mt = t[79], ht = t[80], q = t[81];
225
- let Ot;
226
- t[94] !== yt || t[95] !== vt || t[96] !== Bt || t[97] !== q ? (Ot = /* @__PURE__ */ i.jsxs(yt, { children: [
227
- q,
228
- vt,
229
- Bt
230
- ] }), t[94] = yt, t[95] = vt, t[96] = Bt, t[97] = q, t[98] = Ot) : Ot = t[98];
231
- let Mt;
232
- t[99] !== x ? (Mt = x.filter(ui).map(di), t[99] = x, t[100] = Mt) : Mt = t[100];
233
- let U;
234
- t[101] !== Dt || t[102] !== tt || t[103] !== S || t[104] !== I || t[105] !== Ot || t[106] !== Mt ? (U = /* @__PURE__ */ i.jsxs("g", { transform: Dt, children: [
235
- tt,
236
- S,
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,
237
238
  I,
238
- Ot,
239
- Mt
240
- ] }), t[101] = Dt, t[102] = tt, t[103] = S, t[104] = I, t[105] = Ot, t[106] = Mt, t[107] = U) : U = t[107];
241
- let kt;
242
- t[108] !== bt || t[109] !== It || t[110] !== wt || t[111] !== ct || t[112] !== mt || t[113] !== ht || t[114] !== U ? (kt = /* @__PURE__ */ i.jsx(bt, { ref: It, width: wt, height: ct, viewBox: mt, direction: ht, children: U }), t[108] = bt, t[109] = It, t[110] = wt, t[111] = ct, t[112] = mt, t[113] = ht, t[114] = U, t[115] = kt) : kt = t[115];
243
- let v;
244
- t[116] !== a?.tooltip || t[117] !== Gt || t[118] !== Rt || t[119] !== V || t[120] !== s?.tooltip || t[121] !== lt ? (v = V && lt && Gt && Rt ? /* @__PURE__ */ i.jsx(je, { data: V, body: lt, xPos: Gt, yPos: Rt, backgroundStyle: s?.tooltip, className: a?.tooltip }) : null, t[116] = a?.tooltip, t[117] = Gt, t[118] = Rt, t[119] = V, t[120] = s?.tooltip, t[121] = lt, t[122] = v) : v = t[122];
245
- let $;
246
- t[123] !== a?.modal || t[124] !== F || t[125] !== y ? ($ = F && y !== void 0 ? /* @__PURE__ */ i.jsx(Be, { body: F, data: y, setData: L, className: a?.modal }) : null, t[123] = a?.modal, t[124] = F, t[125] = y, t[126] = $) : $ = t[126];
247
- let O;
248
- return t[127] !== kt || t[128] !== v || t[129] !== $ ? (O = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
249
- kt,
250
- v,
251
- $
252
- ] }), t[127] = kt, t[128] = v, t[129] = $, t[130] = O) : O = t[130], O;
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];
246
+ 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,
252
+ Wt
253
+ ] }), t[128] = ct, t[129] = A, t[130] = Wt, t[131] = n) : n = t[131], n;
253
254
  }
254
255
  function di(e) {
255
256
  return e.layer;
@@ -276,232 +277,233 @@ function gi(e) {
276
277
  return `${e.id}`;
277
278
  }
278
279
  function yi(e) {
279
- const t = we.c(140), {
280
- data: l,
281
- leftMargin: X,
282
- rightMargin: Ut,
283
- topMargin: Jt,
284
- bottomMargin: Tt,
285
- width: Ct,
286
- height: Ft,
287
- barColors: W,
288
- suffix: J,
289
- prefix: A,
290
- barPadding: R,
291
- showLabels: ft,
292
- showValues: et,
293
- showTicks: Lt,
294
- truncateBy: Y,
295
- tooltip: lt,
296
- onSeriesMouseOver: Vt,
297
- refValues: zt,
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,
290
+ 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,
298
299
  maxValue: Xt,
299
- minValue: C,
300
- onSeriesMouseClick: K,
301
- selectedColor: B,
302
- labelOrder: T,
303
- maxBarThickness: dt,
304
- resetSelectionOnDoubleClick: Q,
305
- detailsOnClick: pt,
306
- barAxisTitle: F,
307
- valueColor: Z,
308
- noOfTicks: it,
309
- styles: c,
310
- classNames: s,
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: _,
310
+ styles: u,
311
+ classNames: l,
311
312
  animate: a,
312
- colorDomain: m,
313
- precision: d,
314
- customLayers: p,
315
- naLabel: x,
316
- hideAxisLine: at
317
- } = e, D = X === void 0 ? 20 : X, E = Ut === void 0 ? 20 : Ut, Yt = Jt === void 0 ? 20 : Jt, Et = Tt === void 0 ? 25 : Tt, Pt = ve(null);
318
- let Ht;
319
- t[0] !== a.amount || t[1] !== a.once ? (Ht = {
313
+ colorDomain: f,
314
+ 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 = {
320
322
  once: a.once,
321
323
  amount: a.amount
322
- }, t[0] = a.amount, t[1] = a.once, t[2] = Ht) : Ht = t[2];
323
- const nt = Fe(Pt, Ht), ut = F ? D + 30 : D;
324
- let _;
325
- t[3] !== Et || t[4] !== E || t[5] !== ut || t[6] !== Yt ? (_ = {
326
- top: Yt,
327
- bottom: Et,
328
- left: ut,
329
- right: E
330
- }, t[3] = Et, t[4] = E, t[5] = ut, t[6] = Yt, t[7] = _) : _ = t[7];
331
- const u = _, [r, V] = Zt(void 0), [gt, y] = Zt(void 0), [L, Gt] = Zt(void 0), [ot, Rt] = Zt(void 0), rt = Ct - u.left - u.right, Wt = Ft - u.top - u.bottom;
332
- let G;
333
- if (t[8] !== l || t[9] !== T) {
334
- const O = /* @__PURE__ */ new Set(), b = l.map((M, f) => {
335
- const g = T ? `${M.label}` : `${f}`;
336
- return O.add(g), {
337
- ...M,
338
- id: g
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
339
341
  };
340
- }), At = T ? T.filter((M) => !O.has(M)) : [];
341
- let $t;
342
- t[11] !== l[0].size.length ? ($t = (M) => ({
343
- id: M,
344
- label: M,
345
- size: Array(l[0].size.length).fill(null)
346
- }), t[11] = l[0].size.length, t[12] = $t) : $t = t[12], G = [...b, ...At.map($t)], t[8] = l, t[9] = T, t[10] = G;
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;
347
349
  } else
348
- G = t[10];
349
- const st = G;
350
- let k;
351
- t[13] !== st || t[14] !== T ? (k = T ?? st.map(ki), t[13] = st, t[14] = T, t[15] = k) : k = t[15];
352
- const xt = k;
353
- let St, yt, bt, vt, Bt, Dt, tt, S, I, It, wt, ct, mt, ht;
354
- if (t[16] !== a || t[17] !== F || t[18] !== W || t[19] !== xt || t[20] !== R || 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] !== m || t[28] !== p || t[29] !== l[0].size || t[30] !== st || t[31] !== pt || t[32] !== Wt || t[33] !== rt || t[34] !== Ft || t[35] !== at || t[36] !== nt || t[37] !== D || t[38] !== u.bottom || t[39] !== u.left || t[40] !== u.right || t[41] !== u.top || t[42] !== dt || t[43] !== Xt || t[44] !== C || t[45] !== gt || t[46] !== x || t[47] !== it || t[48] !== K || t[49] !== Vt || t[50] !== d || t[51] !== A || t[52] !== zt || t[53] !== Q || t[54] !== B || t[55] !== ft || t[56] !== Lt || t[57] !== et || t[58] !== c?.graphObjectValues || t[59] !== c?.xAxis?.axis || t[60] !== c?.xAxis?.labels || t[61] !== c?.yAxis?.gridLines || t[62] !== c?.yAxis?.labels || t[63] !== c?.yAxis?.title || t[64] !== J || t[65] !== Y || t[66] !== Z || t[67] !== Ct) {
355
- const O = Pe().domain([C, Xt]).range([Wt, 0]).nice(), b = ke().domain(xt).range([0, dt ? Math.min(rt, dt * xt.length) : rt]).paddingInner(R), At = ke().domain(l[0].size.map(Mi)).range([0, b.bandwidth()]).paddingInner(0.1), $t = O.ticks(it);
356
- yt = _t.svg, I = `${Ct}px`, It = `${Ft}px`, wt = `0 0 ${Ct} ${Ft}`, ct = "ltr", mt = Pt, vt = `translate(${u.left},${u.top})`;
357
- let M;
358
- t[82] !== C || t[83] !== x || t[84] !== d || t[85] !== A || t[86] !== Lt || t[87] !== J ? (M = Lt ? be(C < 0 ? 0 : C, x, d, A, J) : void 0, t[82] = C, t[83] = x, t[84] = d, t[85] = A, t[86] = Lt, t[87] = J, t[88] = M) : M = t[88];
359
- const f = s?.xAxis?.axis, g = s?.yAxis?.labels;
360
- let Nt;
361
- t[89] !== f || t[90] !== g ? (Nt = {
362
- axis: f,
363
- label: g
364
- }, t[89] = f, t[90] = g, t[91] = Nt) : Nt = t[91];
365
- const qt = c?.xAxis?.axis, Qt = c?.yAxis?.labels;
366
- let P;
367
- t[92] !== qt || t[93] !== Qt ? (P = {
368
- axis: qt,
369
- label: Qt
370
- }, t[92] = qt, t[93] = Qt, t[94] = P) : P = t[94], Bt = /* @__PURE__ */ i.jsx(Te, { y1: O(C < 0 ? 0 : C), y2: O(C < 0 ? 0 : C), x1: 0 - D, x2: rt + u.right, label: M, hideAxisLine: at, labelPos: {
371
- x: 0 - D,
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;
368
+ 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,
372
374
  dx: 0,
373
375
  dy: Xt < 0 ? "1em" : -5,
374
- y: O(C < 0 ? 0 : C)
375
- }, classNames: Nt, styles: P }), Dt = Lt ? /* @__PURE__ */ i.jsx(Qe, { values: $t.filter(Oi), y: $t.filter($i).map((w) => O(w)), x1: 0 - D, x2: rt + u.right, styles: {
376
- gridLines: c?.yAxis?.gridLines,
377
- labels: c?.yAxis?.labels
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: {
378
+ gridLines: u?.yAxis?.gridLines,
379
+ labels: u?.yAxis?.labels
378
380
  }, classNames: {
379
- gridLines: s?.yAxis?.gridLines,
380
- labels: s?.yAxis?.labels
381
- }, suffix: J, prefix: A, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: d }) : null;
382
- const N = 0 - D - 15, z = Wt / 2, j = c?.yAxis?.title, h = s?.yAxis?.title;
383
- t[95] !== F || t[96] !== N || t[97] !== z || t[98] !== j || t[99] !== h ? (tt = /* @__PURE__ */ i.jsx(Se, { x: N, y: z, style: j, className: h, text: F, rotate90: !0 }), t[95] = F, t[96] = N, t[97] = z, t[98] = j, t[99] = h, t[100] = tt) : tt = t[100], t[101] !== p ? (S = p.filter(Ai).map(wi), t[101] = p, t[102] = S) : S = t[102], St = He, ht = st.map((w) => ee(b(w.id)) ? null : /* @__PURE__ */ i.jsxs(_t.g, { variants: {
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: {
384
386
  initial: {
385
- x: b(`${w.id}`),
387
+ x: v(`${L.id}`),
386
388
  y: 0
387
389
  },
388
390
  whileInView: {
389
- x: b(`${w.id}`),
391
+ x: v(`${L.id}`),
390
392
  y: 0,
391
393
  transition: {
392
394
  duration: a.duration
393
395
  }
394
396
  }
395
- }, initial: "initial", animate: nt ? "whileInView" : "initial", exit: {
397
+ }, initial: "initial", animate: tt ? "whileInView" : "initial", exit: {
396
398
  opacity: 0,
397
399
  transition: {
398
400
  duration: a.duration
399
401
  }
400
402
  }, children: [
401
- w.size.map((n, H) => /* @__PURE__ */ i.jsxs(_t.g, { className: "undp-viz-g-with-hover", opacity: B ? W[H] === B ? 1 : 0.3 : 0.85, onMouseEnter: (o) => {
402
- V({
403
- ...w,
404
- sizeIndex: H
405
- }), Rt(o.clientY), Gt(o.clientX), Vt?.({
406
- ...w,
407
- sizeIndex: H
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: $
408
410
  });
409
- }, onMouseMove: (o) => {
410
- V({
411
- ...w,
412
- sizeIndex: H
413
- }), Rt(o.clientY), Gt(o.clientX);
411
+ }, onMouseMove: (m) => {
412
+ jt({
413
+ ...L,
414
+ sizeIndex: $
415
+ }), qt(m.clientY), Tt(m.clientX);
414
416
  }, onMouseLeave: () => {
415
- V(void 0), Gt(void 0), Rt(void 0), Vt?.(void 0);
417
+ jt(void 0), Tt(void 0), qt(void 0), Nt?.(void 0);
416
418
  }, onClick: () => {
417
- (K || pt) && (Ne(gt, {
418
- ...w,
419
- sizeIndex: H
420
- }) && Q ? (y(void 0), K?.(void 0)) : (y({
421
- ...w,
422
- sizeIndex: H
423
- }), K && K({
424
- ...w,
425
- sizeIndex: H
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: $
426
428
  })));
427
429
  }, children: [
428
- /* @__PURE__ */ i.jsx(_t.rect, { x: At(`${H}`), width: At.bandwidth(), variants: {
430
+ /* @__PURE__ */ i.jsx(te.rect, { x: zt(`${$}`), width: zt.bandwidth(), variants: {
429
431
  initial: {
430
432
  height: 0,
431
- y: O(0),
432
- fill: W[H]
433
+ y: n(0),
434
+ fill: P[$]
433
435
  },
434
436
  whileInView: {
435
- height: ee(n) ? 0 : Math.abs(O(n) - O(0)),
436
- y: ee(n) ? O(0) : n > 0 ? O(n) : O(0),
437
- fill: W[H],
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[$],
438
440
  transition: {
439
441
  duration: a.duration
440
442
  }
441
443
  }
442
444
  }, exit: {
443
445
  height: 0,
444
- y: O(0),
446
+ y: n(0),
445
447
  transition: {
446
448
  duration: a.duration
447
449
  }
448
- }, initial: "initial", animate: nt ? "whileInView" : "initial" }),
449
- et ? /* @__PURE__ */ i.jsx(_t.text, { x: At(`${H}`) + At.bandwidth() / 2, style: {
450
+ }, initial: "initial", animate: tt ? "whileInView" : "initial" }),
451
+ Z ? /* @__PURE__ */ i.jsx(te.text, { x: zt(`${$}`) + zt.bandwidth() / 2, style: {
450
452
  textAnchor: "middle",
451
- ...c?.graphObjectValues || {}
452
- }, className: Me("graph-value text-sm", s?.graphObjectValues), dy: n ? n >= 0 ? "-5px" : "1em" : "-5px", variants: {
453
+ ...u?.graphObjectValues || {}
454
+ }, className: Ce("graph-value text-sm", l?.graphObjectValues), dy: o ? o >= 0 ? "-5px" : "1em" : "-5px", variants: {
453
455
  initial: {
454
- y: O(0),
456
+ y: n(0),
455
457
  opacity: 0,
456
- fill: Z || W[H]
458
+ fill: J || P[$]
457
459
  },
458
460
  whileInView: {
459
- y: O(n || 0),
461
+ y: n(o || 0),
460
462
  opacity: 1,
461
- fill: Z || W[H],
463
+ fill: J || P[$],
462
464
  transition: {
463
465
  duration: a.duration
464
466
  }
465
467
  }
466
- }, initial: "initial", animate: nt ? "whileInView" : "initial", exit: {
468
+ }, initial: "initial", animate: tt ? "whileInView" : "initial", exit: {
467
469
  opacity: 0,
468
470
  transition: {
469
471
  duration: a.duration
470
472
  }
471
- }, children: be(n, x, d, A, J) }) : null
472
- ] }, `${w.label}-${m[H] || H}`)),
473
- ft ? /* @__PURE__ */ i.jsx(Ze, { value: `${w.label}`.length < Y ? `${w.label}` : `${`${w.label}`.substring(0, Y)}...`, y: O(0) + 5, x: 0, width: b.bandwidth(), height: u.bottom, style: c?.xAxis?.labels, className: s?.xAxis?.labels, alignment: "top", animate: a, isInView: nt }) : null
474
- ] }, w.label)), bt = zt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: zt.map((w, n) => /* @__PURE__ */ i.jsx(Ke, { text: w.text, color: w.color, y: O(w.value), x1: 0 - D, x2: rt + u.right, classNames: w.classNames, styles: w.styles, animate: a, isInView: nt }, n)) }) : null, t[16] = a, t[17] = F, t[18] = W, t[19] = xt, t[20] = R, 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] = m, t[28] = p, t[29] = l[0].size, t[30] = st, t[31] = pt, t[32] = Wt, t[33] = rt, t[34] = Ft, t[35] = at, t[36] = nt, t[37] = D, t[38] = u.bottom, t[39] = u.left, t[40] = u.right, t[41] = u.top, t[42] = dt, t[43] = Xt, t[44] = C, t[45] = gt, t[46] = x, t[47] = it, t[48] = K, t[49] = Vt, t[50] = d, t[51] = A, t[52] = zt, t[53] = Q, t[54] = B, t[55] = ft, t[56] = Lt, t[57] = et, t[58] = c?.graphObjectValues, t[59] = c?.xAxis?.axis, t[60] = c?.xAxis?.labels, t[61] = c?.yAxis?.gridLines, t[62] = c?.yAxis?.labels, t[63] = c?.yAxis?.title, t[64] = J, t[65] = Y, t[66] = Z, t[67] = Ct, t[68] = St, t[69] = yt, t[70] = bt, t[71] = vt, t[72] = Bt, t[73] = Dt, t[74] = tt, t[75] = S, t[76] = I, t[77] = It, t[78] = wt, t[79] = ct, t[80] = mt, t[81] = ht;
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
477
  } else
476
- St = t[68], yt = t[69], bt = t[70], vt = t[71], Bt = t[72], Dt = t[73], tt = t[74], S = t[75], I = t[76], It = t[77], wt = t[78], ct = t[79], mt = t[80], ht = t[81];
477
- let q;
478
- t[103] !== St || t[104] !== bt || t[105] !== ht ? (q = /* @__PURE__ */ i.jsxs(St, { children: [
479
- ht,
480
- bt
481
- ] }), t[103] = St, t[104] = bt, t[105] = ht, t[106] = q) : q = t[106];
482
- let Ot;
483
- t[107] !== p ? (Ot = p.filter(vi).map(bi), t[107] = p, t[108] = Ot) : Ot = t[108];
484
- let Mt;
485
- t[109] !== vt || t[110] !== Bt || t[111] !== Dt || t[112] !== tt || t[113] !== S || t[114] !== q || t[115] !== Ot ? (Mt = /* @__PURE__ */ i.jsxs("g", { transform: vt, children: [
486
- Bt,
487
- Dt,
488
- tt,
489
- S,
490
- q,
491
- Ot
492
- ] }), t[109] = vt, t[110] = Bt, t[111] = Dt, t[112] = tt, t[113] = S, t[114] = q, t[115] = Ot, t[116] = Mt) : Mt = t[116];
493
- let U;
494
- t[117] !== yt || t[118] !== I || t[119] !== It || t[120] !== wt || t[121] !== ct || t[122] !== mt || t[123] !== Mt ? (U = /* @__PURE__ */ i.jsx(yt, { width: I, height: It, viewBox: wt, direction: ct, ref: mt, children: Mt }), t[117] = yt, t[118] = I, t[119] = It, t[120] = wt, t[121] = ct, t[122] = mt, t[123] = Mt, t[124] = U) : U = t[124];
495
- let kt;
496
- t[125] !== s?.tooltip || t[126] !== L || t[127] !== ot || t[128] !== r || t[129] !== c?.tooltip || t[130] !== lt ? (kt = r && lt && L && ot ? /* @__PURE__ */ i.jsx(je, { data: r, body: lt, xPos: L, yPos: ot, backgroundStyle: c?.tooltip, className: s?.tooltip }) : null, t[125] = s?.tooltip, t[126] = L, t[127] = ot, t[128] = r, t[129] = c?.tooltip, t[130] = lt, t[131] = kt) : kt = t[131];
497
- let v;
498
- t[132] !== s?.modal || t[133] !== pt || t[134] !== gt ? (v = pt && gt !== void 0 ? /* @__PURE__ */ i.jsx(Be, { body: pt, data: gt, setData: y, className: s?.modal }) : null, t[132] = s?.modal, t[133] = pt, t[134] = gt, t[135] = v) : v = t[135];
499
- let $;
500
- return t[136] !== U || t[137] !== kt || t[138] !== v ? ($ = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
501
- U,
502
- kt,
503
- v
504
- ] }), t[136] = U, t[137] = kt, t[138] = v, t[139] = $) : $ = t[139], $;
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: [
503
+ Vt,
504
+ ct,
505
+ A
506
+ ] }), t[138] = Vt, t[139] = ct, t[140] = A, t[141] = Wt) : Wt = t[141], Wt;
505
507
  }
506
508
  function bi(e) {
507
509
  return e.layer;
@@ -528,182 +530,183 @@ function ki(e) {
528
530
  return `${e.id}`;
529
531
  }
530
532
  function Ci(e) {
531
- const t = we.c(126), {
532
- data: l,
533
- graphTitle: X,
534
- colors: Ut,
535
- sources: Jt,
536
- graphDescription: Tt,
537
- barPadding: Ct,
538
- showTicks: Ft,
539
- truncateBy: W,
540
- height: J,
541
- width: A,
542
- footNote: R,
543
- colorDomain: ft,
544
- colorLegendTitle: et,
545
- suffix: Lt,
546
- prefix: Y,
547
- showValues: lt,
548
- showColorScale: Vt,
549
- padding: zt,
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,
543
+ 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,
550
552
  backgroundColor: Xt,
551
- leftMargin: C,
552
- rightMargin: K,
553
- topMargin: B,
554
- bottomMargin: T,
555
- showLabels: dt,
556
- relativeHeight: Q,
557
- tooltip: pt,
558
- onSeriesMouseOver: F,
559
- refValues: Z,
560
- graphID: it,
561
- maxValue: c,
562
- minValue: s,
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: _,
563
+ maxValue: u,
564
+ minValue: l,
563
565
  onSeriesMouseClick: a,
564
- graphDownload: m,
565
- dataDownload: d,
566
- language: p,
567
- labelOrder: x,
566
+ graphDownload: f,
567
+ dataDownload: x,
568
+ language: w,
569
+ labelOrder: h,
568
570
  minHeight: at,
569
- theme: D,
570
- maxBarThickness: E,
571
- ariaLabel: Yt,
572
- resetSelectionOnDoubleClick: Et,
573
- detailsOnClick: Pt,
574
- barAxisTitle: Ht,
575
- noOfTicks: nt,
576
- valueColor: ut,
577
- styles: _,
578
- classNames: u,
579
- filterNA: r,
580
- animate: V,
581
- precision: gt,
582
- customLayers: y,
583
- timeline: L,
584
- naLabel: Gt,
585
- sortParameter: ot,
586
- sortData: Rt,
587
- orientation: rt,
588
- hideAxisLine: Wt
589
- } = e, G = Ut === void 0 ? pe.light.categoricalColors.colors : Ut, st = Ct === void 0 ? 0.25 : Ct, k = Ft === void 0 ? !0 : Ft, xt = W === void 0 ? 999 : W, St = Lt === void 0 ? "" : Lt, yt = Y === void 0 ? "" : Y, bt = lt === void 0 ? !0 : lt, vt = Vt === void 0 ? !0 : Vt, Bt = Xt === void 0 ? !1 : Xt, Dt = dt === void 0 ? !0 : dt, tt = m === void 0 ? !1 : m, S = d === void 0 ? !1 : d, I = p === void 0 ? "en" : p, It = at === void 0 ? 0 : at, wt = D === void 0 ? "light" : D, ct = Et === void 0 ? !0 : Et, mt = nt === void 0 ? 5 : nt, ht = r === void 0 ? !0 : r, q = V === void 0 ? !1 : V, Ot = gt === void 0 ? 2 : gt;
590
- let Mt;
591
- t[0] !== y ? (Mt = y === void 0 ? [] : y, t[0] = y, t[1] = Mt) : Mt = t[1];
592
- const U = Mt;
593
- let kt;
594
- t[2] !== L ? (kt = L === void 0 ? {
571
+ theme: S,
572
+ maxBarThickness: C,
573
+ ariaLabel: Ht,
574
+ resetSelectionOnDoubleClick: Rt,
575
+ detailsOnClick: Mt,
576
+ barAxisTitle: yt,
577
+ noOfTicks: Yt,
578
+ valueColor: tt,
579
+ 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 ? {
595
598
  enabled: !1,
596
599
  autoplay: !1,
597
600
  showOnlyActiveDate: !0
598
- } : L, t[2] = L, t[3] = kt) : kt = t[3];
599
- const v = kt, $ = Gt === void 0 ? "NA" : Gt, O = rt === void 0 ? "vertical" : rt, b = Wt === void 0 ? !1 : Wt, At = O === "horizontal" ? ci : yi, [$t, M] = Zt(0), [f, g] = Zt(0), [Nt, qt] = Zt(v.autoplay);
600
- let Qt;
601
- if (t[4] !== l || t[5] !== v.dateFormat) {
602
- let Kt;
603
- t[7] !== v.dateFormat ? (Kt = (jt) => Re(`${jt.date}`, v.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = v.dateFormat, t[8] = Kt) : Kt = t[8], Qt = [...new Set(l.filter(qi).map(Kt))], Qt.sort(Ri), t[4] = l, t[5] = v.dateFormat, t[6] = Qt;
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
607
  } else
605
- Qt = t[6];
606
- const P = Qt, [N, z] = Zt(v.autoplay ? 0 : P.length - 1), [j, h] = Zt(void 0), w = ve(null), n = ve(null);
607
- let H, o;
608
- t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = () => {
609
- const Kt = new ResizeObserver((jt) => {
610
- M(jt[0].target.clientWidth || 620), g(jt[0].target.clientHeight || 480);
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
614
  });
612
- return w.current && Kt.observe(w.current), () => Kt.disconnect();
613
- }, o = [], t[9] = H, t[10] = o) : (H = t[9], o = t[10]), Ie(H, o);
614
- let ie, le;
615
- t[11] !== Nt || t[12] !== v.speed || t[13] !== P ? (ie = () => {
616
- const Kt = setInterval(() => {
617
- z((jt) => jt < P.length - 1 ? jt + 1 : 0);
618
- }, (v.speed || 2) * 1e3);
619
- return Nt || clearInterval(Kt), () => clearInterval(Kt);
620
- }, le = [P, Nt, v.speed], t[11] = Nt, t[12] = v.speed, t[13] = P, t[14] = ie, t[15] = le) : (ie = t[14], le = t[15]), Ie(ie, le);
621
- const ge = v.dateFormat || "yyyy";
622
- let Oe;
623
- t[16] !== N || t[17] !== ge || t[18] !== v.showOnlyActiveDate || t[19] !== P ? (Oe = Ee(P, N, v.showOnlyActiveDate, ge), t[16] = N, t[17] = ge, t[18] = v.showOnlyActiveDate, t[19] = P, t[20] = Oe) : Oe = t[20];
624
- const fe = Oe, Ae = u?.graphContainer, ye = _?.graphContainer;
625
- let he;
626
- t[21] !== u?.description || t[22] !== u?.title || t[23] !== l || t[24] !== S || t[25] !== Tt || t[26] !== tt || t[27] !== X || t[28] !== _?.description || t[29] !== _?.title || t[30] !== A ? (he = X || Tt || tt || S ? /* @__PURE__ */ i.jsx(_e, { styles: {
627
- title: _?.title,
628
- description: _?.description
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: {
630
+ title: D?.title,
631
+ description: D?.description
629
632
  }, classNames: {
630
- title: u?.title,
631
- description: u?.description
632
- }, graphTitle: X, graphDescription: Tt, width: A, graphDownload: tt ? n : void 0, dataDownload: S ? l.map(Gi).filter(Ei).length > 0 ? l.map(Yi).filter(Xi) : l.filter(Wi) : null }) : null, t[21] = u?.description, t[22] = u?.title, t[23] = l, t[24] = S, t[25] = Tt, t[26] = tt, t[27] = X, t[28] = _?.description, t[29] = _?.title, t[30] = A, t[31] = he) : he = t[31];
633
- let ae;
634
- t[32] !== N || t[33] !== fe || t[34] !== Nt || t[35] !== v.enabled || t[36] !== P ? (ae = v.enabled && P.length > 0 && fe ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
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: [
635
638
  /* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
636
- qt(!Nt);
637
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Nt ? "Click to pause animation" : "Click to play animation", children: Nt ? /* @__PURE__ */ i.jsx(si, {}) : /* @__PURE__ */ i.jsx(li, {}) }),
638
- /* @__PURE__ */ i.jsx(Ge, { min: P[0], max: P[P.length - 1], marks: fe, step: null, defaultValue: P[P.length - 1], value: P[N], onChangeComplete: (Kt) => {
639
- z(P.indexOf(Kt));
640
- }, onChange: (Kt) => {
641
- z(P.indexOf(Kt));
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
645
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
643
- ] }) : null, t[32] = N, t[33] = fe, t[34] = Nt, t[35] = v.enabled, t[36] = P, t[37] = ae) : ae = t[37];
646
+ ] }) : null, t[32] = g, t[33] = pe, t[34] = Ut, t[35] = A.enabled, t[36] = dt, t[37] = de) : de = t[37];
644
647
  let ne;
645
- t[38] !== u?.colorLegend || t[39] !== ft || t[40] !== et || t[41] !== G || t[42] !== l.length || t[43] !== vt || t[44] !== A ? (ne = vt && l.length > 0 ? /* @__PURE__ */ i.jsx(ei, { width: A, colorDomain: ft, colors: G, colorLegendTitle: et, setSelectedColor: h, showNAColor: !1, className: u?.colorLegend }) : null, t[38] = u?.colorLegend, t[39] = ft, t[40] = et, t[41] = G, t[42] = l.length, t[43] = vt, t[44] = A, t[45] = ne) : ne = t[45];
646
- let de;
647
- t[46] !== l.length ? (de = l.length === 0 && /* @__PURE__ */ i.jsx(ii, {}), t[46] = l.length, t[47] = de) : de = t[47];
648
- let oe;
649
- t[48] !== At || t[49] !== q || t[50] !== Ht || t[51] !== st || t[52] !== T || t[53] !== u || t[54] !== ft || t[55] !== G || t[56] !== U || t[57] !== l || t[58] !== Pt || t[59] !== ht || t[60] !== b || t[61] !== N || t[62] !== x || t[63] !== I || t[64] !== C || t[65] !== E || t[66] !== c || t[67] !== s || t[68] !== $ || t[69] !== mt || t[70] !== a || t[71] !== F || t[72] !== Ot || t[73] !== yt || t[74] !== Z || t[75] !== ct || t[76] !== K || t[77] !== j || t[78] !== Dt || t[79] !== k || t[80] !== bt || t[81] !== Rt || t[82] !== ot || t[83] !== _ || t[84] !== St || t[85] !== f || t[86] !== $t || t[87] !== v.dateFormat || t[88] !== v.enabled || t[89] !== pt || t[90] !== B || t[91] !== xt || t[92] !== P || t[93] !== ut ? (oe = $t && f && l.length > 0 ? /* @__PURE__ */ i.jsx(At, { hideAxisLine: b, data: ot !== void 0 ? ot === "total" ? We(De(l, v.dateFormat || "yyyy").filter((Kt) => v.enabled ? `${Kt.date}` === Ce(new Date(P[N]), v.dateFormat || "yyyy") : Kt).filter((Kt) => ht ? !Kt.size.every(Hi) : Kt), Fi, [Rt || "asc"]) : We(De(l, v.dateFormat || "yyyy").filter((Kt) => v.enabled ? `${Kt.date}` === Ce(new Date(P[N]), v.dateFormat || "yyyy") : Kt).filter((Kt) => ht ? !Kt.size.every(Bi) : Kt), (Kt) => ee(Kt.size[ot]) ? -1 / 0 : Kt.size[ot], [Rt || "asc"]) : De(l, v.dateFormat || "yyyy").filter((Kt) => ht ? !Kt.size.every(Si) : Kt), barColors: G, width: $t, height: f, suffix: St, prefix: yt, showValues: bt, barPadding: st, showTicks: k, leftMargin: C, rightMargin: K, topMargin: B, bottomMargin: T, truncateBy: xt, showLabels: Dt, tooltip: pt, onSeriesMouseOver: F, refValues: Z, maxValue: ee(c) ? Math.max(...l.map(ji)) < 0 ? 0 : Math.max(...l.map(Ii)) : c, minValue: ee(s) ? Math.min(...l.map(zi)) >= 0 ? 0 : Math.min(...l.map(Li)) : s, onSeriesMouseClick: a, selectedColor: j, labelOrder: x, rtl: I === "he" || I === "ar", maxBarThickness: E, resetSelectionOnDoubleClick: ct, detailsOnClick: Pt, barAxisTitle: Ht, noOfTicks: mt, valueColor: ut, styles: _, classNames: u, colorDomain: ft, animate: q === !0 ? {
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 ? {
650
653
  duration: 0.5,
651
654
  once: !0,
652
655
  amount: 0.5
653
- } : q || {
656
+ } : rt || {
654
657
  duration: 0,
655
658
  once: !0,
656
659
  amount: 0
657
- }, precision: Ot, customLayers: U, naLabel: $ }) : null, t[48] = At, t[49] = q, t[50] = Ht, t[51] = st, t[52] = T, t[53] = u, t[54] = ft, t[55] = G, t[56] = U, t[57] = l, t[58] = Pt, t[59] = ht, t[60] = b, t[61] = N, t[62] = x, t[63] = I, t[64] = C, t[65] = E, t[66] = c, t[67] = s, t[68] = $, t[69] = mt, t[70] = a, t[71] = F, t[72] = Ot, t[73] = yt, t[74] = Z, t[75] = ct, t[76] = K, t[77] = j, t[78] = Dt, t[79] = k, t[80] = bt, t[81] = Rt, t[82] = ot, t[83] = _, t[84] = St, t[85] = f, t[86] = $t, t[87] = v.dateFormat, t[88] = v.enabled, t[89] = pt, t[90] = B, t[91] = xt, t[92] = P, t[93] = ut, t[94] = oe) : oe = t[94];
658
- let re;
659
- t[95] !== de || t[96] !== oe ? (re = /* @__PURE__ */ i.jsxs(ai, { ref: w, children: [
660
- de,
661
- oe
662
- ] }), t[95] = de, t[96] = oe, t[97] = re) : re = t[97];
663
- let ue;
664
- t[98] !== ne || t[99] !== re ? (ue = /* @__PURE__ */ i.jsxs("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: [
665
- ne,
666
- re
667
- ] }), t[98] = ne, t[99] = re, t[100] = ue) : ue = t[100];
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];
668
661
  let xe;
669
- t[101] !== u?.footnote || t[102] !== u?.source || t[103] !== R || t[104] !== Jt || t[105] !== _?.footnote || t[106] !== _?.source || t[107] !== A ? (xe = Jt || R ? /* @__PURE__ */ i.jsx(ti, { styles: {
670
- footnote: _?.footnote,
671
- source: _?.source
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: {
673
+ footnote: D?.footnote,
674
+ source: D?.source
672
675
  }, classNames: {
673
- footnote: u?.footnote,
674
- source: u?.source
675
- }, sources: Jt, footNote: R, width: A }) : null, t[101] = u?.footnote, t[102] = u?.source, t[103] = R, t[104] = Jt, t[105] = _?.footnote, t[106] = _?.source, t[107] = A, t[108] = xe) : xe = t[108];
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];
676
679
  let ce;
677
- return t[109] !== Yt || t[110] !== Bt || t[111] !== it || t[112] !== J || t[113] !== I || t[114] !== It || t[115] !== zt || t[116] !== Q || t[117] !== Ae || t[118] !== ye || t[119] !== he || t[120] !== ae || t[121] !== ue || t[122] !== xe || t[123] !== wt || t[124] !== A ? (ce = /* @__PURE__ */ i.jsxs(ni, { className: Ae, style: ye, id: it, ref: n, "aria-label": Yt, backgroundColor: Bt, theme: wt, language: I, minHeight: It, width: A, height: J, relativeHeight: Q, padding: zt, children: [
678
- he,
679
- ae,
680
- ue,
681
- xe
682
- ] }), t[109] = Yt, t[110] = Bt, t[111] = it, t[112] = J, t[113] = I, t[114] = It, t[115] = zt, t[116] = Q, t[117] = Ae, t[118] = ye, t[119] = he, t[120] = ae, t[121] = ue, t[122] = xe, t[123] = wt, t[124] = A, t[125] = ce) : ce = t[125], 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;
683
686
  }
684
687
  function Li(e) {
685
688
  return Math.min(...e.size.filter(Vi));
686
689
  }
687
690
  function Vi(e) {
688
- return !ee(e);
691
+ return !ie(e);
689
692
  }
690
693
  function zi(e) {
691
694
  return Math.min(...e.size.filter(Di));
692
695
  }
693
696
  function Di(e) {
694
- return !ee(e);
697
+ return !ie(e);
695
698
  }
696
699
  function Ii(e) {
697
700
  return Math.max(...e.size.filter(Ni));
698
701
  }
699
702
  function Ni(e) {
700
- return !ee(e);
703
+ return !ie(e);
701
704
  }
702
705
  function ji(e) {
703
706
  return Math.max(...e.size.filter(Ti));
704
707
  }
705
708
  function Ti(e) {
706
- return !ee(e);
709
+ return !ie(e);
707
710
  }
708
711
  function Si(e) {
709
712
  return e == null;
@@ -715,7 +718,7 @@ function Fi(e) {
715
718
  return me(e.size.filter(Pi));
716
719
  }
717
720
  function Pi(e) {
718
- return !ee(e);
721
+ return !ie(e);
719
722
  }
720
723
  function Hi(e) {
721
724
  return e == null;
@@ -742,224 +745,225 @@ function qi(e) {
742
745
  return e.date;
743
746
  }
744
747
  function Ui(e) {
745
- const t = we.c(133), {
746
- data: l,
747
- barColor: X,
748
- suffix: Ut,
749
- prefix: Jt,
750
- barPadding: Tt,
751
- showValues: Ct,
752
- showTicks: Ft,
753
- truncateBy: W,
754
- width: J,
755
- height: A,
756
- colorDomain: R,
757
- topMargin: ft,
758
- bottomMargin: et,
759
- leftMargin: Lt,
760
- rightMargin: Y,
761
- showLabels: lt,
762
- tooltip: Vt,
763
- onSeriesMouseOver: zt,
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,
758
+ 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,
764
767
  refValues: Xt,
765
- selectedColor: C,
766
- highlightedDataPoints: K,
767
- maxValue: B,
768
- minValue: T,
769
- onSeriesMouseClick: dt,
770
- labelOrder: Q,
771
- rtl: pt,
772
- maxBarThickness: F,
773
- minBarThickness: Z,
774
- resetSelectionOnDoubleClick: it,
775
- detailsOnClick: c,
776
- barAxisTitle: s,
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: _,
778
+ detailsOnClick: u,
779
+ barAxisTitle: l,
777
780
  valueColor: a,
778
- noOfTicks: m,
779
- styles: d,
780
- classNames: p,
781
- animate: x,
781
+ noOfTicks: f,
782
+ styles: x,
783
+ classNames: w,
784
+ animate: h,
782
785
  dimmedOpacity: at,
783
- precision: D,
784
- customLayers: E,
785
- naLabel: Yt,
786
- trackColor: Et,
787
- hideAxisLine: Pt
788
- } = e, Ht = ft === void 0 ? 25 : ft, nt = et === void 0 ? 10 : et, ut = Lt === void 0 ? 100 : Lt, _ = Y === void 0 ? 40 : Y, u = ve(null);
789
- let r;
790
- t[0] !== x.amount || t[1] !== x.once ? (r = {
791
- once: x.once,
792
- amount: x.amount
793
- }, t[0] = x.amount, t[1] = x.once, t[2] = r) : r = t[2];
794
- const V = Fe(u, r), [gt, y] = Zt(void 0), [L, Gt] = Zt(void 0), [ot, Rt] = Zt(void 0), [rt, Wt] = Zt(void 0), G = s ? Ht + 25 : Ht;
795
- let st;
796
- t[3] !== nt || t[4] !== ut || t[5] !== _ || t[6] !== G ? (st = {
797
- top: G,
798
- bottom: nt,
799
- left: ut,
800
- right: _
801
- }, t[3] = nt, t[4] = ut, t[5] = _, t[6] = G, t[7] = st) : st = t[7];
802
- const k = st, xt = J - k.left - k.right, St = A - k.top - k.bottom;
803
- let yt;
804
- if (t[8] !== l || t[9] !== Q) {
805
- const f = /* @__PURE__ */ new Set(), g = l.map((qt, Qt) => {
806
- const P = Q ? `${qt.label}` : `${Qt}`;
807
- return f.add(P), {
808
- ...qt,
809
- id: P
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
810
814
  };
811
- }), Nt = Q ? Q.filter((qt) => !f.has(qt)) : [];
812
- yt = [...g, ...Nt.map(ns)], t[8] = l, t[9] = Q, t[10] = yt;
815
+ }), Et = U ? U.filter((Ut) => !b.has(Ut)) : [];
816
+ ht = [...G, ...Et.map(ol)], t[8] = s, t[9] = U, t[10] = ht;
813
817
  } else
814
- yt = t[10];
815
- const bt = yt;
816
- let vt;
817
- t[11] !== bt || t[12] !== Q ? (vt = Q ?? bt.map(as), t[11] = bt, t[12] = Q, t[13] = vt) : vt = t[13];
818
- const Bt = vt;
819
- let Dt, tt, S, I, It, wt, ct, mt, ht, q, Ot, Mt, U, kt;
820
- if (t[14] !== x || t[15] !== s || t[16] !== X || t[17] !== Bt || t[18] !== Tt || t[19] !== p?.graphObjectValues || t[20] !== p?.xAxis?.gridLines || t[21] !== p?.xAxis?.labels || t[22] !== p?.xAxis?.title || t[23] !== p?.yAxis?.axis || t[24] !== p?.yAxis?.labels || t[25] !== R || t[26] !== E || t[27] !== l || t[28] !== bt || t[29] !== c || t[30] !== at || t[31] !== St || t[32] !== xt || t[33] !== A || t[34] !== Pt || t[35] !== K || t[36] !== V || t[37] !== k.bottom || t[38] !== k.left || t[39] !== k.top || t[40] !== F || t[41] !== B || t[42] !== Z || t[43] !== T || t[44] !== L || t[45] !== Yt || t[46] !== m || t[47] !== dt || t[48] !== zt || t[49] !== D || t[50] !== Jt || t[51] !== Xt || t[52] !== it || t[53] !== pt || t[54] !== C || t[55] !== lt || t[56] !== Ft || t[57] !== Ct || t[58] !== d?.graphObjectValues || t[59] !== d?.xAxis?.gridLines || t[60] !== d?.xAxis?.labels || t[61] !== d?.xAxis?.title || t[62] !== d?.yAxis?.axis || t[63] !== d?.yAxis?.labels || t[64] !== Ut || t[65] !== Ht || t[66] !== Et || t[67] !== W || t[68] !== a || t[69] !== J) {
821
- const f = Pe().domain([T, B]).range([0, xt]).nice(), g = ke().domain(Bt).range([0, Z ? Math.max(St, Z * Bt.length) : F ? Math.min(St, F * Bt.length) : St]).paddingInner(Tt), Nt = f.ticks(m);
822
- tt = _t.svg, ht = u, q = `${J}px`, Ot = `${A}px`, Mt = `0 0 ${J} ${A}`, U = "ltr", It = `translate(${k.left},${k.top})`, wt = Ft ? /* @__PURE__ */ i.jsx(Ue, { values: Nt.filter(ls), x: Nt.filter(ss).map((n) => f(n)), y1: 0 - Ht, y2: St + k.bottom, styles: {
823
- gridLines: d?.xAxis?.gridLines,
824
- labels: d?.xAxis?.labels
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: {
827
+ gridLines: x?.xAxis?.gridLines,
828
+ labels: x?.xAxis?.labels
825
829
  }, classNames: {
826
- gridLines: p?.xAxis?.gridLines,
827
- labels: p?.xAxis?.labels
828
- }, suffix: Ut, prefix: Jt, labelType: "secondary", showGridLines: !0, precision: D }) : null;
829
- const qt = xt / 2, Qt = 0 - k.top + 15, P = d?.xAxis?.title, N = p?.xAxis?.title;
830
- t[84] !== s || t[85] !== qt || t[86] !== Qt || t[87] !== P || t[88] !== N ? (ct = /* @__PURE__ */ i.jsx(Se, { x: qt, y: Qt, style: P, className: N, text: s }), t[84] = s, t[85] = qt, t[86] = Qt, t[87] = P, t[88] = N, t[89] = ct) : ct = t[89], t[90] !== E ? (mt = E.filter(is).map(es), t[90] = E, t[91] = mt) : mt = t[91], Dt = He, kt = bt.map((n) => ee(g(n.id)) ? null : /* @__PURE__ */ i.jsxs(_t.g, { className: "undp-viz-g-with-hover", variants: {
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: {
831
835
  initial: {
832
- opacity: C ? n.color && X[R.indexOf(n.color)] === C ? 1 : at : K.length !== 0 ? K.indexOf(n.label) !== -1 ? 0.85 : at : 0.85
836
+ opacity: k ? o.color && H[X.indexOf(o.color)] === k ? 1 : at : q ? q.indexOf(o.label) !== -1 ? 0.85 : at : 0.85
833
837
  },
834
838
  whileInView: {
835
- opacity: C ? n.color && X[R.indexOf(n.color)] === C ? 1 : at : K.length !== 0 ? K.indexOf(n.label) !== -1 ? 0.85 : at : 0.85,
839
+ opacity: k ? o.color && H[X.indexOf(o.color)] === k ? 1 : at : q ? q.indexOf(o.label) !== -1 ? 0.85 : at : 0.85,
836
840
  transition: {
837
- duration: x.duration
841
+ duration: h.duration
838
842
  }
839
843
  }
840
- }, initial: "initial", animate: V ? "whileInView" : "initial", exit: {
844
+ }, initial: "initial", animate: jt ? "whileInView" : "initial", exit: {
841
845
  opacity: 0,
842
846
  transition: {
843
- duration: x.duration
847
+ duration: h.duration
844
848
  }
845
- }, onMouseEnter: (H) => {
846
- y(n), Wt(H.clientY), Rt(H.clientX), zt?.(n);
849
+ }, onMouseEnter: ($) => {
850
+ y(o), Pt($.clientY), qt($.clientX), Ot?.(o);
847
851
  }, onClick: () => {
848
- (dt || c) && (Ne(L, n) && it ? (Gt(void 0), dt?.(void 0)) : (Gt(n), dt?.(n)));
849
- }, onMouseMove: (H) => {
850
- y(n), Wt(H.clientY), Rt(H.clientX);
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);
851
855
  }, onMouseLeave: () => {
852
- y(void 0), Rt(void 0), Wt(void 0), zt?.(void 0);
856
+ y(void 0), qt(void 0), Pt(void 0), Ot?.(void 0);
853
857
  }, children: [
854
- Et && /* @__PURE__ */ i.jsx(_t.rect, { height: g.bandwidth(), variants: {
858
+ Rt && /* @__PURE__ */ i.jsx(te.rect, { height: G.bandwidth(), variants: {
855
859
  initial: {
856
- width: xt,
860
+ width: bt,
857
861
  x: 0,
858
- y: g(`${n.id}`),
859
- fill: Et
862
+ y: G(`${o.id}`),
863
+ fill: Rt
860
864
  },
861
865
  whileInView: {
862
- width: xt,
866
+ width: bt,
863
867
  x: 0,
864
- y: g(`${n.id}`),
865
- fill: Et
868
+ y: G(`${o.id}`),
869
+ fill: Rt
866
870
  }
867
- }, initial: "initial", animate: V ? "whileInView" : "initial", exit: {
871
+ }, initial: "initial", animate: jt ? "whileInView" : "initial", exit: {
868
872
  opacity: 0,
869
873
  transition: {
870
- duration: x.duration
874
+ duration: h.duration
871
875
  }
872
876
  } }),
873
- n.size ? /* @__PURE__ */ i.jsx(_t.rect, { variants: {
877
+ o.size ? /* @__PURE__ */ i.jsx(te.rect, { variants: {
874
878
  initial: {
875
879
  width: 0,
876
- x: f(0),
877
- y: g(`${n.id}`),
878
- fill: l.filter(ts).length === 0 ? X[0] : n.color ? X[R.indexOf(n.color)] : pe.gray
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
879
883
  },
880
884
  whileInView: {
881
- width: n.size >= 0 ? f(n.size) - f(0) : f(0) - f(n.size),
882
- x: n.size >= 0 ? f(0) : f(n.size),
883
- y: g(`${n.id}`),
884
- fill: l.filter(_i).length === 0 ? X[0] : n.color ? X[R.indexOf(n.color)] : pe.gray,
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,
885
889
  transition: {
886
- duration: x.duration
890
+ duration: h.duration
887
891
  }
888
892
  }
889
- }, initial: "initial", animate: V ? "whileInView" : "initial", exit: {
893
+ }, initial: "initial", animate: jt ? "whileInView" : "initial", exit: {
890
894
  width: 0,
891
- x: f(0),
895
+ x: b(0),
892
896
  transition: {
893
- duration: x.duration
897
+ duration: h.duration
894
898
  }
895
- }, height: g.bandwidth() }) : null,
896
- lt ? /* @__PURE__ */ i.jsx(qe, { value: `${n.label}`.length < W ? `${n.label}` : `${`${n.label}`.substring(0, W)}...`, y: g(n.id) || 0, x: (n.size || 0) < 0 ? f(0) : 0 - k.left, width: (n.size || 0) < 0 ? J - f(0) : f(0) + k.left, height: g.bandwidth(), alignment: n.size && n.size < 0 ? "left" : "right", style: d?.yAxis?.labels, className: p?.yAxis?.labels, animate: x, isInView: V }) : null,
897
- Ct ? /* @__PURE__ */ i.jsx(_t.text, { style: {
898
- textAnchor: n.size && n.size < 0 ? "end" : "start",
899
- ...d?.graphObjectValues || {}
900
- }, className: Me("graph-value text-sm", !a && X.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", p?.graphObjectValues), dx: n.size && n.size < 0 ? -5 : 5, dy: "0.33em", variants: {
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: {
902
+ textAnchor: o.size && o.size < 0 ? "end" : "start",
903
+ ...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: {
901
905
  initial: {
902
- x: f(0),
903
- y: g(`${n.id}`) + g.bandwidth() / 2,
906
+ x: b(0),
907
+ y: G(`${o.id}`) + G.bandwidth() / 2,
904
908
  opacity: 0,
905
- fill: a || (l.filter(Zi).length === 0 ? X[0] : n.color ? X[R.indexOf(n.color)] : pe.gray)
909
+ fill: a || (s.filter(Zi).length === 0 ? H[0] : o.color ? H[X.indexOf(o.color)] : ye.gray)
906
910
  },
907
911
  whileInView: {
908
- x: n.size ? f(n.size) : f(0),
912
+ x: o.size ? b(o.size) : b(0),
909
913
  opacity: 1,
910
- y: g(`${n.id}`) + g.bandwidth() / 2,
911
- fill: a || (l.filter(Qi).length === 0 ? X[0] : n.color ? X[R.indexOf(n.color)] : pe.gray),
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),
912
916
  transition: {
913
- duration: x.duration
917
+ duration: h.duration
914
918
  }
915
919
  }
916
- }, initial: "initial", animate: V ? "whileInView" : "initial", exit: {
920
+ }, initial: "initial", animate: jt ? "whileInView" : "initial", exit: {
917
921
  opacity: 0,
918
922
  transition: {
919
- duration: x.duration
923
+ duration: h.duration
920
924
  }
921
- }, children: be(n.size, Yt, D, Jt, Ut) }) : null
922
- ] }, n.label));
923
- const z = p?.yAxis?.axis;
924
- let j;
925
- t[92] !== z ? (j = {
926
- axis: z
927
- }, t[92] = z, t[93] = j) : j = t[93];
928
- const h = d?.yAxis?.axis;
929
- let w;
930
- t[94] !== h ? (w = {
931
- axis: h
932
- }, t[94] = h, t[95] = w) : w = t[95], S = /* @__PURE__ */ i.jsx(Te, { hideAxisLine: Pt, x1: f(T < 0 ? 0 : T), x2: f(T < 0 ? 0 : T), y1: -2.5, y2: St + k.bottom, classNames: j, styles: w }), I = Xt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Xt.map((n, H) => /* @__PURE__ */ i.jsx(Je, { text: n.text, color: n.color, x: f(n.value), y1: 0 - k.top, y2: St + k.bottom, textSide: f(n.value) > xt * 0.75 || pt ? "left" : "right", classNames: n.classNames, styles: n.styles, animate: x, isInView: V }, H)) }) : null, t[14] = x, t[15] = s, t[16] = X, t[17] = Bt, t[18] = Tt, t[19] = p?.graphObjectValues, t[20] = p?.xAxis?.gridLines, t[21] = p?.xAxis?.labels, t[22] = p?.xAxis?.title, t[23] = p?.yAxis?.axis, t[24] = p?.yAxis?.labels, t[25] = R, t[26] = E, t[27] = l, t[28] = bt, t[29] = c, t[30] = at, t[31] = St, t[32] = xt, t[33] = A, t[34] = Pt, t[35] = K, t[36] = V, t[37] = k.bottom, t[38] = k.left, t[39] = k.top, t[40] = F, t[41] = B, t[42] = Z, t[43] = T, t[44] = L, t[45] = Yt, t[46] = m, t[47] = dt, t[48] = zt, t[49] = D, t[50] = Jt, t[51] = Xt, t[52] = it, t[53] = pt, t[54] = C, t[55] = lt, t[56] = Ft, t[57] = Ct, t[58] = d?.graphObjectValues, t[59] = d?.xAxis?.gridLines, t[60] = d?.xAxis?.labels, t[61] = d?.xAxis?.title, t[62] = d?.yAxis?.axis, t[63] = d?.yAxis?.labels, t[64] = Ut, t[65] = Ht, t[66] = Et, t[67] = W, t[68] = a, t[69] = J, t[70] = Dt, t[71] = tt, t[72] = S, t[73] = I, t[74] = It, t[75] = wt, t[76] = ct, t[77] = mt, t[78] = ht, t[79] = q, t[80] = Ot, t[81] = Mt, t[82] = U, t[83] = kt;
925
+ }, children: we(o.size, Ht, S, Kt, Gt, yt) }) : null
926
+ ] }, 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];
932
+ const d = x?.yAxis?.axis;
933
+ let L;
934
+ t[95] !== d ? (L = {
935
+ 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;
933
937
  } else
934
- Dt = t[70], tt = t[71], S = t[72], I = t[73], It = t[74], wt = t[75], ct = t[76], mt = t[77], ht = t[78], q = t[79], Ot = t[80], Mt = t[81], U = t[82], kt = t[83];
935
- let v;
936
- t[96] !== Dt || t[97] !== S || t[98] !== I || t[99] !== kt ? (v = /* @__PURE__ */ i.jsxs(Dt, { children: [
937
- kt,
938
- S,
939
- I
940
- ] }), t[96] = Dt, t[97] = S, t[98] = I, t[99] = kt, t[100] = v) : v = t[100];
941
- let $;
942
- t[101] !== E ? ($ = E.filter(Ki).map(Ji), t[101] = E, t[102] = $) : $ = t[102];
943
- let O;
944
- t[103] !== It || t[104] !== wt || t[105] !== ct || t[106] !== mt || t[107] !== v || t[108] !== $ ? (O = /* @__PURE__ */ i.jsxs("g", { transform: It, children: [
945
- wt,
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: [
946
941
  ct,
947
- mt,
942
+ F,
943
+ I
944
+ ] }), t[97] = Ct, t[98] = F, t[99] = I, t[100] = ct, t[101] = A) : A = t[101];
945
+ 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,
953
+ 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];
955
+ 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: [
948
963
  v,
949
- $
950
- ] }), t[103] = It, t[104] = wt, t[105] = ct, t[106] = mt, t[107] = v, t[108] = $, t[109] = O) : O = t[109];
951
- let b;
952
- t[110] !== tt || t[111] !== ht || t[112] !== q || t[113] !== Ot || t[114] !== Mt || t[115] !== U || t[116] !== O ? (b = /* @__PURE__ */ i.jsx(tt, { ref: ht, width: q, height: Ot, viewBox: Mt, direction: U, children: O }), t[110] = tt, t[111] = ht, t[112] = q, t[113] = Ot, t[114] = Mt, t[115] = U, t[116] = O, t[117] = b) : b = t[117];
953
- let At;
954
- t[118] !== p?.tooltip || t[119] !== ot || t[120] !== rt || t[121] !== gt || t[122] !== d?.tooltip || t[123] !== Vt ? (At = gt && Vt && ot && rt ? /* @__PURE__ */ i.jsx(je, { data: gt, body: Vt, xPos: ot, yPos: rt, backgroundStyle: d?.tooltip, className: p?.tooltip }) : null, t[118] = p?.tooltip, t[119] = ot, t[120] = rt, t[121] = gt, t[122] = d?.tooltip, t[123] = Vt, t[124] = At) : At = t[124];
955
- let $t;
956
- t[125] !== p?.modal || t[126] !== c || t[127] !== L ? ($t = c && L !== void 0 ? /* @__PURE__ */ i.jsx(Be, { body: c, data: L, setData: Gt, className: p?.modal }) : null, t[125] = p?.modal, t[126] = c, t[127] = L, t[128] = $t) : $t = t[128];
957
- let M;
958
- return t[129] !== b || t[130] !== At || t[131] !== $t ? (M = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
959
- b,
960
- At,
961
- $t
962
- ] }), t[129] = b, t[130] = At, t[131] = $t, t[132] = M) : M = t[132], M;
964
+ zt,
965
+ wt
966
+ ] }), t[130] = v, t[131] = zt, t[132] = wt, t[133] = r) : r = t[133], r;
963
967
  }
964
968
  function Ji(e) {
965
969
  return e.layer;
@@ -976,25 +980,25 @@ function Zi(e) {
976
980
  function _i(e) {
977
981
  return e.color;
978
982
  }
979
- function ts(e) {
983
+ function tl(e) {
980
984
  return e.color;
981
985
  }
982
- function es(e) {
986
+ function el(e) {
983
987
  return e.layer;
984
988
  }
985
- function is(e) {
989
+ function il(e) {
986
990
  return e.position === "before";
987
991
  }
988
- function ss(e) {
992
+ function ll(e) {
989
993
  return e !== 0;
990
994
  }
991
- function ls(e) {
995
+ function sl(e) {
992
996
  return e !== 0;
993
997
  }
994
- function as(e) {
998
+ function al(e) {
995
999
  return `${e.id}`;
996
1000
  }
997
- function ns(e) {
1001
+ function ol(e) {
998
1002
  return {
999
1003
  id: e,
1000
1004
  label: e,
@@ -1002,268 +1006,269 @@ function ns(e) {
1002
1006
  size: null
1003
1007
  };
1004
1008
  }
1005
- function os(e) {
1006
- const t = we.c(142), {
1007
- leftMargin: l,
1008
- rightMargin: X,
1009
- topMargin: Ut,
1010
- bottomMargin: Jt,
1011
- data: Tt,
1012
- width: Ct,
1013
- height: Ft,
1014
- barColor: W,
1015
- suffix: J,
1016
- prefix: A,
1017
- barPadding: R,
1018
- showLabels: ft,
1019
- showValues: et,
1020
- showTicks: Lt,
1021
- colorDomain: Y,
1022
- truncateBy: lt,
1023
- tooltip: Vt,
1024
- onSeriesMouseOver: zt,
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,
1020
+ 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,
1025
1029
  refValues: Xt,
1026
- selectedColor: C,
1027
- maxValue: K,
1028
- minValue: B,
1029
- highlightedDataPoints: T,
1030
- onSeriesMouseClick: dt,
1031
- labelOrder: Q,
1032
- maxBarThickness: pt,
1033
- minBarThickness: F,
1034
- resetSelectionOnDoubleClick: Z,
1035
- detailsOnClick: it,
1036
- barAxisTitle: c,
1037
- valueColor: s,
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: _,
1040
+ barAxisTitle: u,
1041
+ valueColor: l,
1038
1042
  noOfTicks: a,
1039
- styles: m,
1040
- classNames: d,
1041
- dimmedOpacity: p,
1042
- animate: x,
1043
+ styles: f,
1044
+ classNames: x,
1045
+ dimmedOpacity: w,
1046
+ animate: h,
1043
1047
  precision: at,
1044
- customLayers: D,
1045
- naLabel: E,
1046
- trackColor: Yt,
1047
- hideAxisLine: Et
1048
- } = e, Pt = l === void 0 ? 20 : l, Ht = X === void 0 ? 20 : X, nt = Ut === void 0 ? 20 : Ut, ut = Jt === void 0 ? 25 : Jt, _ = ve(null);
1049
- let u;
1050
- t[0] !== x.amount || t[1] !== x.once ? (u = {
1051
- once: x.once,
1052
- amount: x.amount
1053
- }, t[0] = x.amount, t[1] = x.once, t[2] = u) : u = t[2];
1054
- const r = Fe(_, u), V = c ? Pt + 30 : Pt;
1055
- let gt;
1056
- t[3] !== ut || t[4] !== Ht || t[5] !== V || t[6] !== nt ? (gt = {
1057
- top: nt,
1058
- bottom: ut,
1059
- left: V,
1060
- right: Ht
1061
- }, t[3] = ut, t[4] = Ht, t[5] = V, t[6] = nt, t[7] = gt) : gt = t[7];
1062
- const y = gt, [L, Gt] = Zt(void 0), [ot, Rt] = Zt(void 0), [rt, Wt] = Zt(void 0), [G, st] = Zt(void 0), k = Ct - y.left - y.right, xt = Ft - y.top - y.bottom;
1063
- let St;
1064
- if (t[8] !== Tt || t[9] !== Q) {
1065
- const M = /* @__PURE__ */ new Set(), f = Tt.map((Nt, qt) => {
1066
- const Qt = Q ? `${Nt.label}` : `${qt}`;
1067
- return M.add(Qt), {
1068
- ...Nt,
1069
- id: Qt
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);
1054
+ 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
1070
1075
  };
1071
- }), g = Q ? Q.filter((Nt) => !M.has(Nt)) : [];
1072
- St = [...f, ...g.map(bs)], t[8] = Tt, t[9] = Q, t[10] = St;
1076
+ }), G = U ? U.filter((Et) => !r.has(Et)) : [];
1077
+ kt = [...b, ...G.map(bl)], t[8] = It, t[9] = U, t[10] = kt;
1073
1078
  } else
1074
- St = t[10];
1075
- const yt = St;
1076
- let bt;
1077
- t[11] !== yt || t[12] !== Q ? (bt = Q ?? yt.map(ys), t[11] = yt, t[12] = Q, t[13] = bt) : bt = t[13];
1078
- const vt = bt;
1079
- let Bt, Dt, tt, S, I, It, wt, ct, mt, ht, q, Ot, Mt, U;
1080
- if (t[14] !== x || t[15] !== c || t[16] !== W || t[17] !== vt || t[18] !== R || t[19] !== d?.graphObjectValues || t[20] !== d?.xAxis?.axis || t[21] !== d?.xAxis?.labels || t[22] !== d?.yAxis?.gridLines || t[23] !== d?.yAxis?.labels || t[24] !== d?.yAxis?.title || t[25] !== Y || t[26] !== D || t[27] !== Tt || t[28] !== yt || t[29] !== it || t[30] !== p || t[31] !== xt || t[32] !== k || t[33] !== Ft || t[34] !== Et || t[35] !== T || t[36] !== r || t[37] !== Pt || t[38] !== y.bottom || t[39] !== y.left || t[40] !== y.right || t[41] !== y.top || t[42] !== pt || t[43] !== K || t[44] !== F || t[45] !== B || t[46] !== ot || t[47] !== E || t[48] !== a || t[49] !== dt || t[50] !== zt || t[51] !== at || t[52] !== A || t[53] !== Xt || t[54] !== Z || t[55] !== C || t[56] !== ft || t[57] !== Lt || t[58] !== et || t[59] !== m?.graphObjectValues || t[60] !== m?.xAxis?.axis || t[61] !== m?.xAxis?.labels || t[62] !== m?.yAxis?.gridLines || t[63] !== m?.yAxis?.labels || t[64] !== m?.yAxis?.title || t[65] !== J || t[66] !== Yt || t[67] !== lt || t[68] !== s || t[69] !== Ct) {
1081
- const M = Pe().domain([B, K]).range([xt, 0]).nice(), f = ke().domain(vt).range([0, F ? Math.max(k, F * vt.length) : pt ? Math.min(k, pt * vt.length) : k]).paddingInner(R), g = M.ticks(a);
1082
- Dt = _t.svg, mt = _, ht = `${Ct}px`, q = `${Ft}px`, Ot = `0 0 ${Ct} ${Ft}`, Mt = "ltr", S = `translate(${y.left},${y.top})`;
1083
- let Nt;
1084
- t[84] !== B || t[85] !== E || t[86] !== at || t[87] !== A || t[88] !== Lt || t[89] !== J ? (Nt = Lt ? be(B < 0 ? 0 : B, E, at, A, J) : void 0, t[84] = B, t[85] = E, t[86] = at, t[87] = A, t[88] = Lt, t[89] = J, t[90] = Nt) : Nt = t[90];
1085
- const qt = d?.xAxis?.axis, Qt = d?.yAxis?.labels;
1086
- let P;
1087
- t[91] !== qt || t[92] !== Qt ? (P = {
1088
- axis: qt,
1089
- label: Qt
1090
- }, t[91] = qt, t[92] = Qt, t[93] = P) : P = t[93];
1091
- const N = m?.xAxis?.axis, z = m?.yAxis?.labels;
1092
- let j;
1093
- t[94] !== N || t[95] !== z ? (j = {
1094
- axis: N,
1095
- label: z
1096
- }, t[94] = N, t[95] = z, t[96] = j) : j = t[96], I = /* @__PURE__ */ i.jsx(Te, { hideAxisLine: Et, y1: M(B < 0 ? 0 : B), y2: M(B < 0 ? 0 : B), x1: 0 - Pt, x2: k + y.right, label: Nt, labelPos: {
1097
- x: 0 - Pt,
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;
1091
+ 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,
1098
1103
  dx: 0,
1099
- dy: K < 0 ? "1em" : -5,
1100
- y: M(B < 0 ? 0 : B)
1101
- }, classNames: P, styles: j }), It = Lt ? /* @__PURE__ */ i.jsx(Qe, { values: g.filter(gs), y: g.filter(ps).map((o) => M(o)), x1: 0 - Pt, x2: k + y.right, styles: {
1102
- gridLines: m?.yAxis?.gridLines,
1103
- labels: m?.yAxis?.labels
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: {
1107
+ gridLines: f?.yAxis?.gridLines,
1108
+ labels: f?.yAxis?.labels
1104
1109
  }, classNames: {
1105
- gridLines: d?.yAxis?.gridLines,
1106
- labels: d?.yAxis?.labels
1107
- }, suffix: J, prefix: A, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: at }) : null;
1108
- const h = 0 - Pt - 15, w = xt / 2, n = m?.yAxis?.title, H = d?.yAxis?.title;
1109
- t[97] !== c || t[98] !== h || t[99] !== w || t[100] !== n || t[101] !== H ? (wt = /* @__PURE__ */ i.jsx(Se, { x: h, y: w, style: n, className: H, text: c, rotate90: !0 }), t[97] = c, t[98] = h, t[99] = w, t[100] = n, t[101] = H, t[102] = wt) : wt = t[102], t[103] !== D ? (ct = D.filter(fs).map(hs), t[103] = D, t[104] = ct) : ct = t[104], Bt = He, U = yt.map((o, ie) => ee(f(o.id)) ? null : /* @__PURE__ */ i.jsxs(_t.g, { className: "undp-viz-g-with-hover", initial: "initial", animate: r ? "whileInView" : "initial", variants: {
1110
+ gridLines: x?.yAxis?.gridLines,
1111
+ 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: {
1110
1115
  initial: {
1111
- opacity: C ? o.color && W[Y.indexOf(o.color)] === C ? 1 : p : T.length !== 0 ? T.indexOf(o.label) !== -1 ? 0.85 : p : 0.85
1116
+ opacity: k ? m.color && P[W.indexOf(m.color)] === k ? 1 : w : N ? N.indexOf(m.label) !== -1 ? 0.85 : w : 0.85
1112
1117
  },
1113
1118
  whileInView: {
1114
- opacity: C ? o.color && W[Y.indexOf(o.color)] === C ? 1 : p : T.length !== 0 ? T.indexOf(o.label) !== -1 ? 0.85 : p : 0.85,
1119
+ opacity: k ? m.color && P[W.indexOf(m.color)] === k ? 1 : w : N ? N.indexOf(m.label) !== -1 ? 0.85 : w : 0.85,
1115
1120
  transition: {
1116
- duration: x.duration
1121
+ duration: h.duration
1117
1122
  }
1118
1123
  }
1119
1124
  }, exit: {
1120
1125
  opacity: 0,
1121
1126
  transition: {
1122
- duration: x.duration
1127
+ duration: h.duration
1123
1128
  }
1124
- }, onMouseEnter: (le) => {
1125
- Gt(o), st(le.clientY), Wt(le.clientX), zt?.(o);
1129
+ }, onMouseEnter: (oe) => {
1130
+ Tt(m), it(oe.clientY), Pt(oe.clientX), Ot?.(m);
1126
1131
  }, onClick: () => {
1127
- (dt || it) && (Ne(ot, o) && Z ? (Rt(void 0), dt?.(void 0)) : (Rt(o), dt?.(o)));
1128
- }, onMouseMove: (le) => {
1129
- Gt(o), st(le.clientY), Wt(le.clientX);
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);
1130
1135
  }, onMouseLeave: () => {
1131
- Gt(void 0), Wt(void 0), st(void 0), zt?.(void 0);
1136
+ Tt(void 0), Pt(void 0), it(void 0), Ot?.(void 0);
1132
1137
  }, children: [
1133
- Yt && /* @__PURE__ */ i.jsx(_t.rect, { width: f.bandwidth(), variants: {
1138
+ Ht && /* @__PURE__ */ i.jsx(te.rect, { width: b.bandwidth(), variants: {
1134
1139
  initial: {
1135
- height: xt,
1140
+ height: bt,
1136
1141
  y: 0,
1137
- x: f(`${o.id}`),
1138
- fill: Yt
1142
+ x: b(`${m.id}`),
1143
+ fill: Ht
1139
1144
  },
1140
1145
  whileInView: {
1141
- height: xt,
1146
+ height: bt,
1142
1147
  y: 0,
1143
- x: f(`${o.id}`),
1144
- fill: Yt
1148
+ x: b(`${m.id}`),
1149
+ fill: Ht
1145
1150
  }
1146
- }, initial: "initial", animate: r ? "whileInView" : "initial", exit: {
1151
+ }, initial: "initial", animate: c ? "whileInView" : "initial", exit: {
1147
1152
  opacity: 0,
1148
1153
  transition: {
1149
- duration: x.duration
1154
+ duration: h.duration
1150
1155
  }
1151
1156
  } }),
1152
- o.size ? /* @__PURE__ */ i.jsx(_t.rect, { width: f.bandwidth(), initial: "initial", animate: r ? "whileInView" : "initial", variants: {
1157
+ m.size ? /* @__PURE__ */ i.jsx(te.rect, { width: b.bandwidth(), initial: "initial", animate: c ? "whileInView" : "initial", variants: {
1153
1158
  initial: {
1154
1159
  height: 0,
1155
- x: f(`${o.id}`),
1156
- y: M(0),
1157
- fill: Tt.filter(ms).length === 0 ? W[0] : o.color ? W[Y.indexOf(o.color)] : pe.gray
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
1158
1163
  },
1159
1164
  whileInView: {
1160
- height: o.size ? Math.abs(M(o.size) - M(0)) : 0,
1161
- y: o.size && o.size > 0 ? M(o.size) : M(0),
1162
- x: f(`${o.id}`),
1163
- fill: Tt.filter(xs).length === 0 ? W[0] : o.color ? W[Y.indexOf(o.color)] : pe.gray,
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,
1164
1169
  transition: {
1165
- duration: x.duration
1170
+ duration: h.duration
1166
1171
  }
1167
1172
  }
1168
1173
  }, exit: {
1169
1174
  height: 0,
1170
- y: M(0),
1175
+ y: r(0),
1171
1176
  transition: {
1172
- duration: x.duration
1177
+ duration: h.duration
1173
1178
  }
1174
1179
  } }) : null,
1175
- ft ? /* @__PURE__ */ i.jsx(Ze, { value: `${o.label}`.length < lt ? `${o.label}` : `${`${o.label}`.substring(0, lt)}...`, y: (o.size || 0) < 0 ? 0 : M(0) + 5, x: f(`${o.id}`), width: f.bandwidth(), height: (o.size || 0) < 0 ? M(0) - 5 : y.bottom, style: m?.xAxis?.labels, className: d?.xAxis?.labels, alignment: (o.size || 0) < 0 ? "bottom" : "top", animate: x, isInView: r }) : null,
1176
- et ? /* @__PURE__ */ i.jsx(_t.text, { style: {
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: {
1177
1182
  textAnchor: "middle",
1178
- ...m?.graphObjectValues || {}
1179
- }, className: Me("graph-value text-sm", !s && W.length > 1 ? "fill-primary-gray-600 dark:fill-primary-gray-300" : "", d?.graphObjectValues), dy: o.size ? o.size >= 0 ? "-5px" : "1em" : "-5px", variants: {
1183
+ ...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: {
1180
1185
  initial: {
1181
- x: f(`${o.id}`) + f.bandwidth() / 2,
1182
- y: M(0),
1186
+ x: b(`${m.id}`) + b.bandwidth() / 2,
1187
+ y: r(0),
1183
1188
  opacity: 0,
1184
- fill: s || (Tt.filter(us).length === 0 ? W[0] : o.color ? W[Y.indexOf(o.color)] : pe.gray)
1189
+ fill: l || (It.filter(ul).length === 0 ? P[0] : m.color ? P[W.indexOf(m.color)] : ye.gray)
1185
1190
  },
1186
1191
  whileInView: {
1187
- x: f(`${o.id}`) + f.bandwidth() / 2,
1188
- y: M(o.size || 0),
1189
- fill: s || (Tt.filter(ds).length === 0 ? W[0] : o.color ? W[Y.indexOf(o.color)] : pe.gray),
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),
1190
1195
  opacity: 1,
1191
1196
  transition: {
1192
- duration: x.duration
1197
+ duration: h.duration
1193
1198
  }
1194
1199
  }
1195
- }, initial: "initial", animate: r ? "whileInView" : "initial", exit: {
1200
+ }, initial: "initial", animate: c ? "whileInView" : "initial", exit: {
1196
1201
  opacity: 0,
1197
1202
  transition: {
1198
- duration: x.duration
1203
+ duration: h.duration
1199
1204
  }
1200
- }, children: be(o.size, E, at, A, J) }) : null
1201
- ] }, o.label)), tt = Xt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Xt.map((o, ie) => /* @__PURE__ */ i.jsx(Ke, { text: o.text, color: o.color, y: M(o.value), x1: 0 - Pt, x2: k + y.right, classNames: o.classNames, styles: o.styles, animate: x, isInView: r }, ie)) }) : null, t[14] = x, t[15] = c, t[16] = W, t[17] = vt, t[18] = R, t[19] = d?.graphObjectValues, t[20] = d?.xAxis?.axis, t[21] = d?.xAxis?.labels, t[22] = d?.yAxis?.gridLines, t[23] = d?.yAxis?.labels, t[24] = d?.yAxis?.title, t[25] = Y, t[26] = D, t[27] = Tt, t[28] = yt, t[29] = it, t[30] = p, t[31] = xt, t[32] = k, t[33] = Ft, t[34] = Et, t[35] = T, t[36] = r, t[37] = Pt, t[38] = y.bottom, t[39] = y.left, t[40] = y.right, t[41] = y.top, t[42] = pt, t[43] = K, t[44] = F, t[45] = B, t[46] = ot, t[47] = E, t[48] = a, t[49] = dt, t[50] = zt, t[51] = at, t[52] = A, t[53] = Xt, t[54] = Z, t[55] = C, t[56] = ft, t[57] = Lt, t[58] = et, t[59] = m?.graphObjectValues, t[60] = m?.xAxis?.axis, t[61] = m?.xAxis?.labels, t[62] = m?.yAxis?.gridLines, t[63] = m?.yAxis?.labels, t[64] = m?.yAxis?.title, t[65] = J, t[66] = Yt, t[67] = lt, t[68] = s, t[69] = Ct, t[70] = Bt, t[71] = Dt, t[72] = tt, t[73] = S, t[74] = I, t[75] = It, t[76] = wt, t[77] = ct, t[78] = mt, t[79] = ht, t[80] = q, t[81] = Ot, t[82] = Mt, t[83] = U;
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;
1202
1207
  } else
1203
- Bt = t[70], Dt = t[71], tt = t[72], S = t[73], I = t[74], It = t[75], wt = t[76], ct = t[77], mt = t[78], ht = t[79], q = t[80], Ot = t[81], Mt = t[82], U = t[83];
1204
- let kt;
1205
- t[105] !== Bt || t[106] !== tt || t[107] !== U ? (kt = /* @__PURE__ */ i.jsxs(Bt, { children: [
1206
- U,
1207
- tt
1208
- ] }), t[105] = Bt, t[106] = tt, t[107] = U, t[108] = kt) : kt = t[108];
1209
- let v;
1210
- t[109] !== D ? (v = D.filter(cs).map(rs), t[109] = D, t[110] = v) : v = t[110];
1211
- let $;
1212
- t[111] !== S || t[112] !== I || t[113] !== It || t[114] !== wt || t[115] !== ct || t[116] !== kt || t[117] !== v ? ($ = /* @__PURE__ */ i.jsxs("g", { transform: S, children: [
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];
1216
+ 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: [
1213
1218
  I,
1214
- It,
1215
- wt,
1219
+ Lt,
1220
+ nt,
1221
+ lt,
1216
1222
  ct,
1217
- kt,
1218
- v
1219
- ] }), t[111] = S, t[112] = I, t[113] = It, t[114] = wt, t[115] = ct, t[116] = kt, t[117] = v, t[118] = $) : $ = t[118];
1220
- let O;
1221
- t[119] !== Dt || t[120] !== mt || t[121] !== ht || t[122] !== q || t[123] !== Ot || t[124] !== Mt || t[125] !== $ ? (O = /* @__PURE__ */ i.jsx(Dt, { ref: mt, width: ht, height: q, viewBox: Ot, direction: Mt, children: $ }), t[119] = Dt, t[120] = mt, t[121] = ht, t[122] = q, t[123] = Ot, t[124] = Mt, t[125] = $, t[126] = O) : O = t[126];
1222
- let b;
1223
- t[127] !== d?.tooltip || t[128] !== rt || t[129] !== G || t[130] !== L || t[131] !== m?.tooltip || t[132] !== Vt ? (b = L && Vt && rt && G ? /* @__PURE__ */ i.jsx(je, { data: L, body: Vt, xPos: rt, yPos: G, backgroundStyle: m?.tooltip, className: d?.tooltip }) : null, t[127] = d?.tooltip, t[128] = rt, t[129] = G, t[130] = L, t[131] = m?.tooltip, t[132] = Vt, t[133] = b) : b = t[133];
1224
- let At;
1225
- t[134] !== d?.modal || t[135] !== it || t[136] !== ot ? (At = it && ot !== void 0 ? /* @__PURE__ */ i.jsx(Be, { body: it, data: ot, setData: Rt, className: d?.modal }) : null, t[134] = d?.modal, t[135] = it, t[136] = ot, t[137] = At) : At = t[137];
1226
- let $t;
1227
- return t[138] !== O || t[139] !== b || t[140] !== At ? ($t = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1228
- O,
1229
- b,
1230
- At
1231
- ] }), t[138] = O, t[139] = b, t[140] = At, t[141] = $t) : $t = t[141], $t;
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];
1227
+ 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,
1234
+ v,
1235
+ zt
1236
+ ] }), t[140] = n, t[141] = v, t[142] = zt, t[143] = wt) : wt = t[143], wt;
1232
1237
  }
1233
- function rs(e) {
1238
+ function rl(e) {
1234
1239
  return e.layer;
1235
1240
  }
1236
- function cs(e) {
1241
+ function cl(e) {
1237
1242
  return e.position === "after";
1238
1243
  }
1239
- function ds(e) {
1244
+ function dl(e) {
1240
1245
  return e.color;
1241
1246
  }
1242
- function us(e) {
1247
+ function ul(e) {
1243
1248
  return e.color;
1244
1249
  }
1245
- function xs(e) {
1250
+ function xl(e) {
1246
1251
  return e.color;
1247
1252
  }
1248
- function ms(e) {
1253
+ function ml(e) {
1249
1254
  return e.color;
1250
1255
  }
1251
- function hs(e) {
1256
+ function hl(e) {
1252
1257
  return e.layer;
1253
1258
  }
1254
- function fs(e) {
1259
+ function fl(e) {
1255
1260
  return e.position === "before";
1256
1261
  }
1257
- function ps(e) {
1262
+ function pl(e) {
1258
1263
  return e !== 0;
1259
1264
  }
1260
- function gs(e) {
1265
+ function gl(e) {
1261
1266
  return e !== 0;
1262
1267
  }
1263
- function ys(e) {
1268
+ function yl(e) {
1264
1269
  return `${e.id}`;
1265
1270
  }
1266
- function bs(e) {
1271
+ function bl(e) {
1267
1272
  return {
1268
1273
  id: e,
1269
1274
  label: e,
@@ -1271,609 +1276,609 @@ function bs(e) {
1271
1276
  size: null
1272
1277
  };
1273
1278
  }
1274
- function vs(e) {
1275
- const t = we.c(134), {
1276
- data: l,
1277
- graphTitle: X,
1278
- colors: Ut,
1279
- suffix: Jt,
1280
- sources: Tt,
1281
- prefix: Ct,
1282
- graphDescription: Ft,
1283
- barPadding: W,
1284
- showValues: J,
1285
- showTicks: A,
1286
- truncateBy: R,
1287
- height: ft,
1288
- width: et,
1289
- footNote: Lt,
1290
- colorDomain: Y,
1291
- colorLegendTitle: lt,
1292
- highlightedDataPoints: Vt,
1293
- padding: zt,
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,
1290
+ 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,
1294
1299
  backgroundColor: Xt,
1295
- topMargin: C,
1296
- bottomMargin: K,
1297
- leftMargin: B,
1298
- rightMargin: T,
1299
- showLabels: dt,
1300
- relativeHeight: Q,
1301
- tooltip: pt,
1302
- onSeriesMouseOver: F,
1303
- refValues: Z,
1304
- showColorScale: it,
1305
- graphID: c,
1306
- maxValue: s,
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: _,
1310
+ graphID: u,
1311
+ maxValue: l,
1307
1312
  minValue: a,
1308
- onSeriesMouseClick: m,
1309
- graphDownload: d,
1310
- dataDownload: p,
1311
- sortData: x,
1313
+ onSeriesMouseClick: f,
1314
+ graphDownload: x,
1315
+ dataDownload: w,
1316
+ sortData: h,
1312
1317
  labelOrder: at,
1313
- language: D,
1314
- showNAColor: E,
1315
- minHeight: Yt,
1316
- theme: Et,
1317
- maxBarThickness: Pt,
1318
- maxNumberOfBars: Ht,
1319
- minBarThickness: nt,
1320
- ariaLabel: ut,
1321
- resetSelectionOnDoubleClick: _,
1322
- detailsOnClick: u,
1323
- barAxisTitle: r,
1324
- noOfTicks: V,
1325
- valueColor: gt,
1326
- styles: y,
1327
- classNames: L,
1328
- filterNA: Gt,
1329
- animate: ot,
1330
- dimmedOpacity: Rt,
1331
- precision: rt,
1332
- customLayers: Wt,
1333
- timeline: G,
1334
- naLabel: st,
1335
- orientation: k,
1336
- trackColor: xt,
1337
- hideAxisLine: St
1338
- } = e, yt = Jt === void 0 ? "" : Jt, bt = Ct === void 0 ? "" : Ct, vt = W === void 0 ? 0.25 : W, Bt = J === void 0 ? !0 : J, Dt = A === void 0 ? !0 : A, tt = R === void 0 ? 999 : R;
1339
- let S;
1340
- t[0] !== Vt ? (S = Vt === void 0 ? [] : Vt, t[0] = Vt, t[1] = S) : S = t[1];
1341
- const I = S, It = Xt === void 0 ? !1 : Xt, wt = dt === void 0 ? !0 : dt, ct = it === void 0 ? !0 : it, mt = d === void 0 ? !1 : d, ht = p === void 0 ? !1 : p, q = D === void 0 ? "en" : D, Ot = E === void 0 ? !0 : E, Mt = Yt === void 0 ? 0 : Yt, U = Et === void 0 ? "light" : Et, kt = _ === void 0 ? !0 : _, v = V === void 0 ? 5 : V, $ = Gt === void 0 ? !0 : Gt, O = ot === void 0 ? !1 : ot, b = Rt === void 0 ? 0.3 : Rt, At = rt === void 0 ? 2 : rt;
1342
- let $t;
1343
- t[2] !== Wt ? ($t = Wt === void 0 ? [] : Wt, t[2] = Wt, t[3] = $t) : $t = t[3];
1344
- const M = $t;
1345
- let f;
1346
- t[4] !== G ? (f = G === void 0 ? {
1318
+ language: S,
1319
+ showNAColor: C,
1320
+ minHeight: Ht,
1321
+ theme: Rt,
1322
+ maxBarThickness: Mt,
1323
+ maxNumberOfBars: yt,
1324
+ minBarThickness: Yt,
1325
+ ariaLabel: tt,
1326
+ 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;
1345
+ 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 ? {
1347
1350
  enabled: !1,
1348
1351
  autoplay: !1,
1349
1352
  showOnlyActiveDate: !0
1350
- } : G, t[4] = G, t[5] = f) : f = t[5];
1351
- const g = f, Nt = st === void 0 ? "NA" : st, qt = k === void 0 ? "vertical" : k, Qt = St === void 0 ? !1 : St, P = qt === "horizontal" ? Ui : os, [N, z] = Zt(0), [j, h] = Zt(0), [w, n] = Zt(g.autoplay);
1352
- let H;
1353
- if (t[6] !== l || t[7] !== g.dateFormat) {
1354
- let te;
1355
- t[9] !== g.dateFormat ? (te = ($e) => Re(`${$e.date}`, g.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[9] = g.dateFormat, t[10] = te) : te = t[10], H = [...new Set(l.filter(Fs).map(te))], H.sort(Bs), t[6] = l, t[7] = g.dateFormat, t[8] = H;
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;
1356
1359
  } else
1357
- H = t[8];
1358
- const o = H, [ie, le] = Zt(g.autoplay ? 0 : o.length - 1), [ge, Oe] = Zt(void 0), fe = ve(null), Ae = ve(null);
1359
- let ye, he;
1360
- t[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ye = () => {
1361
- const te = new ResizeObserver(($e) => {
1362
- z($e[0].target.clientWidth || 620), h($e[0].target.clientHeight || 480);
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);
1363
1366
  });
1364
- return fe.current && te.observe(fe.current), () => te.disconnect();
1365
- }, he = [], t[11] = ye, t[12] = he) : (ye = t[11], he = t[12]), Ie(ye, he);
1366
- let ae, ne;
1367
- t[13] !== w || t[14] !== g.speed || t[15] !== o ? (ae = () => {
1368
- const te = setInterval(() => {
1369
- le(($e) => $e < o.length - 1 ? $e + 1 : 0);
1370
- }, (g.speed || 2) * 1e3);
1371
- return w || clearInterval(te), () => clearInterval(te);
1372
- }, ne = [o, w, g.speed], t[13] = w, t[14] = g.speed, t[15] = o, t[16] = ae, t[17] = ne) : (ae = t[16], ne = t[17]), Ie(ae, ne);
1373
- const de = g.dateFormat || "yyyy";
1374
- let oe;
1375
- t[18] !== ie || t[19] !== de || t[20] !== g.showOnlyActiveDate || t[21] !== o ? (oe = Ee(o, ie, g.showOnlyActiveDate, de), t[18] = ie, t[19] = de, t[20] = g.showOnlyActiveDate, t[21] = o, t[22] = oe) : oe = t[22];
1376
- const re = oe, ue = L?.graphContainer, xe = y?.graphContainer;
1377
- let ce;
1378
- t[23] !== L?.description || t[24] !== L?.title || t[25] !== l || t[26] !== ht || t[27] !== Ft || t[28] !== mt || t[29] !== X || t[30] !== y?.description || t[31] !== y?.title || t[32] !== et ? (ce = X || Ft || mt || ht ? /* @__PURE__ */ i.jsx(_e, { styles: {
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
1384
+ }, classNames: {
1379
1385
  title: y?.title,
1380
1386
  description: y?.description
1381
- }, classNames: {
1382
- title: L?.title,
1383
- description: L?.description
1384
- }, graphTitle: X, graphDescription: Ft, width: et, graphDownload: mt ? Ae : void 0, dataDownload: ht ? l.map(Ss).filter(Ts).length > 0 ? l.map(js).filter(Ns) : l.filter(Is) : null }) : null, t[23] = L?.description, t[24] = L?.title, t[25] = l, t[26] = ht, t[27] = Ft, t[28] = mt, t[29] = X, t[30] = y?.description, t[31] = y?.title, t[32] = et, t[33] = ce) : ce = t[33];
1385
- let Kt;
1386
- t[34] !== ie || t[35] !== re || t[36] !== w || t[37] !== g.enabled || t[38] !== o ? (Kt = g.enabled && o.length > 0 && re ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center pb-4", dir: "ltr", children: [
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: [
1387
1390
  /* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
1388
- n(!w);
1389
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": w ? "Click to pause animation" : "Click to play animation", children: w ? /* @__PURE__ */ i.jsx(si, {}) : /* @__PURE__ */ i.jsx(li, {}) }),
1390
- /* @__PURE__ */ i.jsx(Ge, { min: o[0], max: o[o.length - 1], marks: re, step: null, defaultValue: o[o.length - 1], value: o[ie], onChangeComplete: (te) => {
1391
- le(o.indexOf(te));
1392
- }, onChange: (te) => {
1393
- le(o.indexOf(te));
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));
1394
1397
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
1395
- ] }) : null, t[34] = ie, t[35] = re, t[36] = w, t[37] = g.enabled, t[38] = o, t[39] = Kt) : Kt = t[39];
1396
- let jt;
1397
- t[40] !== L?.colorLegend || t[41] !== Y || t[42] !== lt || t[43] !== Ut || t[44] !== l || t[45] !== ct || t[46] !== Ot || t[47] !== U || t[48] !== et ? (jt = ct && l.filter(Ds).length !== 0 && l.length > 0 ? /* @__PURE__ */ i.jsx(ei, { width: et, colorLegendTitle: lt, colors: Ut || pe[U].categoricalColors.colors, colorDomain: Y || ri(l, "color", !0), setSelectedColor: Oe, showNAColor: Ot, className: L?.colorLegend }) : null, t[40] = L?.colorLegend, t[41] = Y, t[42] = lt, t[43] = Ut, t[44] = l, t[45] = ct, t[46] = Ot, t[47] = U, t[48] = et, t[49] = jt) : jt = t[49];
1398
- let se;
1399
- t[50] !== l.length ? (se = l.length === 0 && /* @__PURE__ */ i.jsx(ii, {}), t[50] = l.length, t[51] = se) : se = t[51];
1400
- let Le;
1401
- t[52] !== P || t[53] !== O || t[54] !== r || t[55] !== vt || t[56] !== K || t[57] !== L || t[58] !== Y || t[59] !== Ut || t[60] !== M || t[61] !== l || t[62] !== u || t[63] !== b || t[64] !== $ || t[65] !== Qt || t[66] !== I || t[67] !== ie || t[68] !== at || t[69] !== q || t[70] !== B || t[71] !== Pt || t[72] !== Ht || t[73] !== s || t[74] !== nt || t[75] !== a || t[76] !== Nt || t[77] !== v || t[78] !== m || t[79] !== F || t[80] !== qt || t[81] !== At || t[82] !== bt || t[83] !== Z || t[84] !== kt || t[85] !== T || t[86] !== ge || t[87] !== wt || t[88] !== Dt || t[89] !== Bt || t[90] !== x || t[91] !== y || t[92] !== yt || t[93] !== j || t[94] !== N || t[95] !== U || t[96] !== g.dateFormat || t[97] !== g.enabled || t[98] !== pt || t[99] !== C || t[100] !== xt || t[101] !== tt || t[102] !== o || t[103] !== gt ? (Le = N && j && l.length > 0 ? /* @__PURE__ */ i.jsx(P, { hideAxisLine: Qt, data: x ? We(oi(l, g.dateFormat || "yyyy").filter((te) => g.enabled ? `${te.date}` === Ce(new Date(o[ie]), g.dateFormat || "yyyy") : te).filter((te) => $ ? !ee(te.size) : te), [(te) => te.size === void 0 ? x === "asc" ? (qt === "horizontal" ? 1 : -1) * (1 / 0) : (qt === "horizontal" ? -1 : 1) * (1 / 0) : te.size], [x]).filter((te, $e) => Ht ? $e < Ht : !0) : oi(l, g.dateFormat || "yyyy").filter((te) => g.enabled ? `${te.date}` === Ce(new Date(o[ie]), g.dateFormat || "yyyy") : te).filter((te) => $ ? !ee(te.size) : te).filter((te, $e) => Ht ? $e < Ht : !0), barColor: l.filter(zs).length === 0 ? Ut ? [Ut] : [pe.primaryColors["blue-600"]] : Ut || pe[U].categoricalColors.colors, colorDomain: l.filter(Vs).length === 0 ? [] : Y || ri(l, "color", !0), selectedColor: ge, trackColor: xt, width: N, height: j, suffix: yt, prefix: bt, barPadding: vt, showValues: Bt, showTicks: Dt, leftMargin: B, rightMargin: T, topMargin: C, bottomMargin: K, truncateBy: tt, showLabels: wt, tooltip: pt, onSeriesMouseOver: F, refValues: Z, maxValue: ee(s) ? Math.max(...l.filter(Ls).map(Cs)) < 0 ? 0 : Math.max(...l.filter(ks).map(Ms)) : s, minValue: ee(a) ? Math.min(...l.filter(Os).map($s)) >= 0 ? 0 : Math.min(...l.filter(As).map(ws)) : a, highlightedDataPoints: I, onSeriesMouseClick: m, labelOrder: at, rtl: q === "he" || q === "ar", maxBarThickness: Pt, minBarThickness: nt, resetSelectionOnDoubleClick: kt, detailsOnClick: u, barAxisTitle: r, noOfTicks: v, valueColor: gt, classNames: L, styles: y, animate: O === !0 ? {
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 ? {
1402
1405
  duration: 0.5,
1403
1406
  once: !0,
1404
1407
  amount: 0.5
1405
- } : O || {
1408
+ } : A || {
1406
1409
  duration: 0,
1407
1410
  once: !0,
1408
1411
  amount: 0
1409
- }, dimmedOpacity: b, precision: At, customLayers: M, naLabel: Nt }) : null, t[52] = P, t[53] = O, t[54] = r, t[55] = vt, t[56] = K, t[57] = L, t[58] = Y, t[59] = Ut, t[60] = M, t[61] = l, t[62] = u, t[63] = b, t[64] = $, t[65] = Qt, t[66] = I, t[67] = ie, t[68] = at, t[69] = q, t[70] = B, t[71] = Pt, t[72] = Ht, t[73] = s, t[74] = nt, t[75] = a, t[76] = Nt, t[77] = v, t[78] = m, t[79] = F, t[80] = qt, t[81] = At, t[82] = bt, t[83] = Z, t[84] = kt, t[85] = T, t[86] = ge, t[87] = wt, t[88] = Dt, t[89] = Bt, t[90] = x, t[91] = y, t[92] = yt, t[93] = j, t[94] = N, t[95] = U, t[96] = g.dateFormat, t[97] = g.enabled, t[98] = pt, t[99] = C, t[100] = xt, t[101] = tt, t[102] = o, t[103] = gt, t[104] = Le) : Le = t[104];
1410
- let Ve;
1411
- t[105] !== se || t[106] !== Le ? (Ve = /* @__PURE__ */ i.jsxs(ai, { ref: fe, children: [
1412
- se,
1413
- Le
1414
- ] }), t[105] = se, t[106] = Le, t[107] = Ve) : Ve = t[107];
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];
1415
1418
  let ze;
1416
- t[108] !== L?.footnote || t[109] !== L?.source || t[110] !== Lt || t[111] !== Tt || t[112] !== y?.footnote || t[113] !== y?.source || t[114] !== et ? (ze = Tt || Lt ? /* @__PURE__ */ i.jsx(ti, { sources: Tt, footNote: Lt, width: et, styles: {
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
1422
+ }, classNames: {
1417
1423
  footnote: y?.footnote,
1418
1424
  source: y?.source
1419
- }, classNames: {
1420
- footnote: L?.footnote,
1421
- source: L?.source
1422
- } }) : null, t[108] = L?.footnote, t[109] = L?.source, t[110] = Lt, t[111] = Tt, t[112] = y?.footnote, t[113] = y?.source, t[114] = et, t[115] = ze) : ze = t[115];
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];
1423
1426
  let Xe;
1424
- return t[116] !== ut || t[117] !== It || t[118] !== c || t[119] !== ft || t[120] !== q || t[121] !== Mt || t[122] !== zt || t[123] !== Q || t[124] !== ue || t[125] !== xe || t[126] !== ce || t[127] !== Kt || t[128] !== jt || t[129] !== Ve || t[130] !== ze || t[131] !== U || t[132] !== et ? (Xe = /* @__PURE__ */ i.jsxs(ni, { className: ue, style: xe, id: c, ref: Ae, "aria-label": ut, backgroundColor: It, theme: U, language: q, minHeight: Mt, width: et, height: ft, relativeHeight: Q, padding: zt, children: [
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,
1425
1430
  ce,
1426
- Kt,
1427
- jt,
1428
- Ve,
1431
+ ae,
1429
1432
  ze
1430
- ] }), t[116] = ut, t[117] = It, t[118] = c, t[119] = ft, t[120] = q, t[121] = Mt, t[122] = zt, t[123] = Q, t[124] = ue, t[125] = xe, t[126] = ce, t[127] = Kt, t[128] = jt, t[129] = Ve, t[130] = ze, t[131] = U, t[132] = et, t[133] = Xe) : Xe = t[133], Xe;
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;
1431
1434
  }
1432
- function ws(e) {
1435
+ function wl(e) {
1433
1436
  return e.size;
1434
1437
  }
1435
- function As(e) {
1436
- return !ee(e.size);
1438
+ function Al(e) {
1439
+ return !ie(e.size);
1437
1440
  }
1438
- function $s(e) {
1441
+ function $l(e) {
1439
1442
  return e.size;
1440
1443
  }
1441
- function Os(e) {
1442
- return !ee(e.size);
1444
+ function Ol(e) {
1445
+ return !ie(e.size);
1443
1446
  }
1444
- function Ms(e) {
1447
+ function Ml(e) {
1445
1448
  return e.size;
1446
1449
  }
1447
- function ks(e) {
1448
- return !ee(e.size);
1450
+ function kl(e) {
1451
+ return !ie(e.size);
1449
1452
  }
1450
- function Cs(e) {
1453
+ function Cl(e) {
1451
1454
  return e.size;
1452
1455
  }
1453
- function Ls(e) {
1454
- return !ee(e.size);
1456
+ function Ll(e) {
1457
+ return !ie(e.size);
1455
1458
  }
1456
- function Vs(e) {
1459
+ function Vl(e) {
1457
1460
  return e.color;
1458
1461
  }
1459
- function zs(e) {
1462
+ function zl(e) {
1460
1463
  return e.color;
1461
1464
  }
1462
- function Ds(e) {
1465
+ function Dl(e) {
1463
1466
  return e.color;
1464
1467
  }
1465
- function Is(e) {
1468
+ function Il(e) {
1466
1469
  return e !== void 0;
1467
1470
  }
1468
- function Ns(e) {
1471
+ function Nl(e) {
1469
1472
  return e !== void 0;
1470
1473
  }
1471
- function js(e) {
1474
+ function jl(e) {
1472
1475
  return e.data;
1473
1476
  }
1474
- function Ts(e) {
1477
+ function Tl(e) {
1475
1478
  return e !== void 0;
1476
1479
  }
1477
- function Ss(e) {
1480
+ function Sl(e) {
1478
1481
  return e.data;
1479
1482
  }
1480
- function Bs(e, t) {
1483
+ function Bl(e, t) {
1481
1484
  return e - t;
1482
1485
  }
1483
- function Fs(e) {
1486
+ function Fl(e) {
1484
1487
  return e.date;
1485
1488
  }
1486
- function Ps(e) {
1487
- const t = we.c(130), {
1488
- data: l,
1489
- barColors: X,
1490
- barPadding: Ut,
1491
- showTicks: Jt,
1492
- topMargin: Tt,
1493
- bottomMargin: Ct,
1494
- leftMargin: Ft,
1495
- rightMargin: W,
1496
- truncateBy: J,
1497
- width: A,
1498
- height: R,
1499
- tooltip: ft,
1500
- onSeriesMouseOver: et,
1501
- showLabels: Lt,
1502
- suffix: Y,
1503
- prefix: lt,
1504
- showValues: Vt,
1505
- refValues: zt,
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,
1500
+ 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,
1506
1509
  maxValue: Xt,
1507
- onSeriesMouseClick: C,
1508
- selectedColor: K,
1509
- rtl: B,
1510
- labelOrder: T,
1511
- maxBarThickness: dt,
1512
- minBarThickness: Q,
1513
- resetSelectionOnDoubleClick: pt,
1514
- detailsOnClick: F,
1515
- barAxisTitle: Z,
1516
- valueColor: it,
1517
- noOfTicks: c,
1518
- styles: s,
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: _,
1520
+ noOfTicks: u,
1521
+ styles: l,
1519
1522
  classNames: a,
1520
- animate: m,
1521
- colorDomain: d,
1522
- precision: p,
1523
- customLayers: x,
1523
+ animate: f,
1524
+ colorDomain: x,
1525
+ precision: w,
1526
+ customLayers: h,
1524
1527
  naLabel: at,
1525
- hideAxisLine: D
1526
- } = e, E = Tt === void 0 ? 25 : Tt, Yt = Ct === void 0 ? 10 : Ct, Et = Ft === void 0 ? 100 : Ft, Pt = W === void 0 ? 40 : W, Ht = ve(null);
1527
- let nt;
1528
- t[0] !== m.amount || t[1] !== m.once ? (nt = {
1529
- once: m.once,
1530
- amount: m.amount
1531
- }, t[0] = m.amount, t[1] = m.once, t[2] = nt) : nt = t[2];
1532
- const ut = Fe(Ht, nt), _ = Z ? E + 25 : E;
1533
- let u;
1534
- t[3] !== Yt || t[4] !== Et || t[5] !== Pt || t[6] !== _ ? (u = {
1535
- top: _,
1536
- bottom: Yt,
1537
- left: Et,
1538
- right: Pt
1539
- }, t[3] = Yt, t[4] = Et, t[5] = Pt, t[6] = _, t[7] = u) : u = t[7];
1540
- const r = u, [V, gt] = Zt(void 0), [y, L] = Zt(void 0), [Gt, ot] = Zt(void 0), [Rt, rt] = Zt(void 0), Wt = A - r.left - r.right, G = R - r.top - r.bottom;
1541
- let st;
1542
- if (t[8] !== l || t[9] !== T) {
1543
- const b = /* @__PURE__ */ new Set(), At = l.map((f, g) => {
1544
- const Nt = T ? `${f.label}` : `${g}`;
1545
- return b.add(Nt), {
1546
- ...f,
1547
- id: Nt
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 = {
1533
+ once: f.once,
1534
+ 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;
1537
+ 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
1548
1552
  };
1549
- }), $t = T ? T.filter((f) => !b.has(f)) : [];
1550
- let M;
1551
- t[11] !== l[0] ? (M = (f) => ({
1552
- id: f,
1553
- label: f,
1554
- size: Array(l[0].size.length).fill(null)
1555
- }), t[11] = l[0], t[12] = M) : M = t[12], st = [...At, ...$t.map(M)], t[8] = l, t[9] = T, t[10] = st;
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;
1556
1560
  } else
1557
- st = t[10];
1558
- const k = st;
1559
- let xt;
1560
- t[13] !== k || t[14] !== T ? (xt = T ?? k.map(Us), t[13] = k, t[14] = T, t[15] = xt) : xt = t[15];
1561
- const St = xt;
1562
- let yt, bt, vt, Bt, Dt, tt, S, I, It, wt, ct, mt, ht, q;
1563
- if (t[16] !== m || t[17] !== Z || t[18] !== X || t[19] !== St || t[20] !== Ut || 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] !== d || t[28] !== x || t[29] !== k || t[30] !== F || t[31] !== G || t[32] !== Wt || t[33] !== R || t[34] !== D || t[35] !== ut || t[36] !== r.bottom || t[37] !== r.left || t[38] !== r.top || t[39] !== dt || t[40] !== Xt || t[41] !== Q || t[42] !== y || t[43] !== at || t[44] !== c || t[45] !== C || t[46] !== et || t[47] !== p || t[48] !== lt || t[49] !== zt || t[50] !== pt || t[51] !== B || t[52] !== K || t[53] !== Lt || t[54] !== Jt || t[55] !== Vt || t[56] !== s?.graphObjectValues || t[57] !== s?.xAxis?.gridLines || t[58] !== s?.xAxis?.labels || t[59] !== s?.xAxis?.title || t[60] !== s?.yAxis?.axis || t[61] !== s?.yAxis?.labels || t[62] !== Y || t[63] !== E || t[64] !== J || t[65] !== it || t[66] !== A) {
1564
- const b = Pe().domain([0, Xt]).range([0, Wt]).nice(), At = ke().domain(St).range([0, Q ? Math.max(G, Q * St.length) : dt ? Math.min(G, dt * St.length) : G]).paddingInner(Ut), $t = b.ticks(c);
1565
- bt = _t.svg, It = Ht, wt = `${A}px`, ct = `${R}px`, mt = `0 0 ${A} ${R}`, ht = "ltr", Dt = `translate(${r.left},${r.top})`, tt = Jt ? /* @__PURE__ */ i.jsx(Ue, { values: $t.filter(qs), x: $t.filter(Rs).map((z) => b(z)), y1: 0 - E, y2: G + r.bottom, styles: {
1566
- gridLines: s?.xAxis?.gridLines,
1567
- labels: s?.xAxis?.labels
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
1572
  }, classNames: {
1569
1573
  gridLines: a?.xAxis?.gridLines,
1570
1574
  labels: a?.xAxis?.labels
1571
- }, suffix: Y, prefix: lt, labelType: "secondary", showGridLines: !0, precision: p }) : null;
1572
- const M = Wt / 2, f = 0 - r.top + 15, g = s?.xAxis?.title, Nt = a?.xAxis?.title;
1573
- t[81] !== Z || t[82] !== M || t[83] !== f || t[84] !== g || t[85] !== Nt ? (S = /* @__PURE__ */ i.jsx(Se, { x: M, y: f, style: g, className: Nt, text: Z }), t[81] = Z, t[82] = M, t[83] = f, t[84] = g, t[85] = Nt, t[86] = S) : S = t[86], t[87] !== x ? (I = x.filter(Gs).map(Es), t[87] = x, t[88] = I) : I = t[88], yt = He, q = k.map((z) => ee(At(z.id)) ? null : /* @__PURE__ */ i.jsxs(_t.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
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: {
1574
1578
  initial: {
1575
1579
  x: 0,
1576
- y: At(`${z.id}`)
1580
+ y: zt(`${g.id}`)
1577
1581
  },
1578
1582
  whileInView: {
1579
1583
  x: 0,
1580
- y: At(`${z.id}`),
1584
+ y: zt(`${g.id}`),
1581
1585
  transition: {
1582
- duration: m.duration
1586
+ duration: f.duration
1583
1587
  }
1584
1588
  }
1585
- }, initial: "initial", animate: ut ? "whileInView" : "initial", exit: {
1589
+ }, initial: "initial", animate: D ? "whileInView" : "initial", exit: {
1586
1590
  opacity: 0,
1587
1591
  transition: {
1588
- duration: m.duration
1592
+ duration: f.duration
1589
1593
  }
1590
1594
  }, children: [
1591
- z.size.map((j, h) => /* @__PURE__ */ i.jsxs(_t.g, { opacity: K ? X[h] === K ? 1 : 0.3 : 1, onMouseEnter: (w) => {
1592
- gt({
1593
- ...z,
1594
- sizeIndex: h
1595
- }), rt(w.clientY), ot(w.clientX), et?.({
1596
- ...z,
1597
- sizeIndex: h
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,
1598
+ sizeIndex: d
1599
+ }), et(L.clientY), mt(L.clientX), Z?.({
1600
+ ...g,
1601
+ sizeIndex: d
1598
1602
  });
1599
- }, onMouseMove: (w) => {
1600
- gt({
1601
- ...z,
1602
- sizeIndex: h
1603
- }), rt(w.clientY), ot(w.clientX);
1603
+ }, onMouseMove: (L) => {
1604
+ z({
1605
+ ...g,
1606
+ sizeIndex: d
1607
+ }), et(L.clientY), mt(L.clientX);
1604
1608
  }, onMouseLeave: () => {
1605
- gt(void 0), ot(void 0), rt(void 0), et?.(void 0);
1609
+ z(void 0), mt(void 0), et(void 0), Z?.(void 0);
1606
1610
  }, onClick: () => {
1607
- (C || F) && (Ne(y, {
1608
- ...z,
1609
- sizeIndex: h
1610
- }) && pt ? (L(void 0), C?.(void 0)) : (L({
1611
- ...z,
1612
- sizeIndex: h
1613
- }), C && C({
1614
- ...z,
1615
- sizeIndex: h
1611
+ (k || T) && (Ne(y, {
1612
+ ...g,
1613
+ sizeIndex: d
1614
+ }) && xt ? (Ft(void 0), k?.(void 0)) : (Ft({
1615
+ ...g,
1616
+ sizeIndex: d
1617
+ }), k && k({
1618
+ ...g,
1619
+ sizeIndex: d
1616
1620
  })));
1617
1621
  }, children: [
1618
- j ? /* @__PURE__ */ i.jsx(_t.rect, { y: 0, style: {
1619
- fill: X[h]
1620
- }, height: At.bandwidth(), exit: {
1622
+ V ? /* @__PURE__ */ i.jsx(te.rect, { y: 0, style: {
1623
+ fill: H[d]
1624
+ }, height: zt.bandwidth(), exit: {
1621
1625
  width: 0,
1622
- x: b(0),
1626
+ x: v(0),
1623
1627
  transition: {
1624
- duration: m.duration
1628
+ duration: f.duration
1625
1629
  }
1626
1630
  }, variants: {
1627
1631
  initial: {
1628
1632
  width: 0,
1629
- x: b(0),
1630
- fill: X[h]
1633
+ x: v(0),
1634
+ fill: H[d]
1631
1635
  },
1632
1636
  whileInView: {
1633
- width: b(j || 0),
1634
- x: b(h === 0 ? 0 : me(z.size.filter((w, n) => n < h && w))),
1635
- fill: X[h],
1637
+ width: v(V || 0),
1638
+ x: v(d === 0 ? 0 : me(g.size.filter((L, o) => o < d && L))),
1639
+ fill: H[d],
1636
1640
  transition: {
1637
- duration: m.duration
1641
+ duration: f.duration
1638
1642
  }
1639
1643
  }
1640
- }, initial: "initial", animate: ut ? "whileInView" : "initial" }, h) : null,
1641
- Vt ? /* @__PURE__ */ i.jsx(_t.text, { y: At.bandwidth() / 2, style: {
1644
+ }, initial: "initial", animate: D ? "whileInView" : "initial" }, d) : null,
1645
+ Nt ? /* @__PURE__ */ i.jsx(te.text, { y: zt.bandwidth() / 2, style: {
1642
1646
  textAnchor: "middle",
1643
- ...s?.graphObjectValues || {}
1644
- }, dy: "0.33em", className: Me("graph-value text-sm", a?.graphObjectValues), exit: {
1647
+ ...l?.graphObjectValues || {}
1648
+ }, dy: "0.33em", className: Ce("graph-value text-sm", a?.graphObjectValues), exit: {
1645
1649
  opacity: 0,
1646
1650
  transition: {
1647
- duration: m.duration
1651
+ duration: f.duration
1648
1652
  }
1649
1653
  }, variants: {
1650
1654
  initial: {
1651
- x: b(0),
1655
+ x: v(0),
1652
1656
  opacity: 0,
1653
- fill: Ye(X[h])
1657
+ fill: Ye(H[d])
1654
1658
  },
1655
1659
  whileInView: {
1656
- x: b(h === 0 ? 0 : me(z.size.filter((w, n) => n < h && w))) + b(j || 0) / 2,
1657
- opacity: j && b(j) / be(j, at, p, lt, Y).length > 12 ? 1 : 0,
1658
- fill: Ye(X[h]),
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]),
1659
1663
  transition: {
1660
- duration: m.duration
1664
+ duration: f.duration
1661
1665
  }
1662
1666
  }
1663
- }, initial: "initial", animate: ut ? "whileInView" : "initial", children: be(j, at, p, lt, Y) }) : null
1664
- ] }, `${z.label}-${d[h] || h}`)),
1665
- Lt ? /* @__PURE__ */ i.jsx(qe, { value: `${z.label}`.length < J ? `${z.label}` : `${`${z.label}`.substring(0, J)}...`, y: 0, x: 0 - r.left, width: 0 + r.left, height: At.bandwidth(), style: s?.yAxis?.labels, className: a?.yAxis?.labels, animate: m, isInView: ut }) : null,
1666
- Vt ? /* @__PURE__ */ i.jsx(_t.text, { className: Me("graph-value graph-value-total text-sm", it ? "" : " fill-primary-gray-700 dark:fill-primary-gray-300", a?.graphObjectValues), style: {
1667
- ...it ? {
1668
- fill: it
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: _
1669
1673
  } : {},
1670
1674
  textAnchor: "start",
1671
- ...s?.graphObjectValues || {}
1672
- }, y: At.bandwidth() / 2, dx: 5, dy: "0.33em", variants: {
1675
+ ...l?.graphObjectValues || {}
1676
+ }, y: zt.bandwidth() / 2, dx: 5, dy: "0.33em", variants: {
1673
1677
  initial: {
1674
- x: b(0),
1678
+ x: v(0),
1675
1679
  opacity: 0,
1676
- ...it ? {
1677
- fill: it
1680
+ ..._ ? {
1681
+ fill: _
1678
1682
  } : {}
1679
1683
  },
1680
1684
  whileInView: {
1681
- x: b(me(z.size.map(Ys))),
1685
+ x: v(me(g.size.map(Yl))),
1682
1686
  opacity: 1,
1683
- ...it ? {
1684
- fill: it
1687
+ ..._ ? {
1688
+ fill: _
1685
1689
  } : {},
1686
1690
  transition: {
1687
- duration: m.duration
1691
+ duration: f.duration
1688
1692
  }
1689
1693
  }
1690
1694
  }, exit: {
1691
1695
  opacity: 0,
1692
1696
  transition: {
1693
- duration: m.duration
1697
+ duration: f.duration
1694
1698
  }
1695
- }, initial: "initial", animate: ut ? "whileInView" : "initial", children: be(me(z.size.filter(Xs)), at, p, lt, Y) }) : null
1696
- ] }, z.label));
1697
- const qt = a?.yAxis?.axis;
1698
- let Qt;
1699
- t[89] !== qt ? (Qt = {
1700
- axis: qt
1701
- }, t[89] = qt, t[90] = Qt) : Qt = t[90];
1702
- const P = s?.yAxis?.axis;
1703
- let N;
1704
- t[91] !== P ? (N = {
1705
- axis: P
1706
- }, t[91] = P, t[92] = N) : N = t[92], vt = /* @__PURE__ */ i.jsx(Te, { hideAxisLine: D, x1: b(0), x2: b(0), y1: -2.5, y2: G + r.bottom, classNames: Qt, styles: N }), Bt = zt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: zt.map((z, j) => /* @__PURE__ */ i.jsx(Je, { text: z.text, color: z.color, x: b(z.value), y1: 0 - r.top, y2: G + r.bottom, textSide: b(z.value) > Wt * 0.75 || B ? "left" : "right", classNames: z.classNames, styles: z.styles, animate: m, isInView: ut }, j)) }) : null, t[16] = m, t[17] = Z, t[18] = X, t[19] = St, t[20] = Ut, 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] = d, t[28] = x, t[29] = k, t[30] = F, t[31] = G, t[32] = Wt, t[33] = R, t[34] = D, t[35] = ut, t[36] = r.bottom, t[37] = r.left, t[38] = r.top, t[39] = dt, t[40] = Xt, t[41] = Q, t[42] = y, t[43] = at, t[44] = c, t[45] = C, t[46] = et, t[47] = p, t[48] = lt, t[49] = zt, t[50] = pt, t[51] = B, t[52] = K, t[53] = Lt, t[54] = Jt, t[55] = Vt, t[56] = s?.graphObjectValues, t[57] = s?.xAxis?.gridLines, t[58] = s?.xAxis?.labels, t[59] = s?.xAxis?.title, t[60] = s?.yAxis?.axis, t[61] = s?.yAxis?.labels, t[62] = Y, t[63] = E, t[64] = J, t[65] = it, t[66] = A, t[67] = yt, t[68] = bt, t[69] = vt, t[70] = Bt, t[71] = Dt, t[72] = tt, t[73] = S, t[74] = I, t[75] = It, t[76] = wt, t[77] = ct, t[78] = mt, t[79] = ht, t[80] = q;
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;
1707
1711
  } else
1708
- yt = t[67], bt = t[68], vt = t[69], Bt = t[70], Dt = t[71], tt = t[72], S = t[73], I = t[74], It = t[75], wt = t[76], ct = t[77], mt = t[78], ht = t[79], q = t[80];
1709
- let Ot;
1710
- t[93] !== yt || t[94] !== vt || t[95] !== Bt || t[96] !== q ? (Ot = /* @__PURE__ */ i.jsxs(yt, { children: [
1711
- q,
1712
- vt,
1713
- Bt
1714
- ] }), t[93] = yt, t[94] = vt, t[95] = Bt, t[96] = q, t[97] = Ot) : Ot = t[97];
1715
- let Mt;
1716
- t[98] !== x ? (Mt = x.filter(Ws).map(Hs), t[98] = x, t[99] = Mt) : Mt = t[99];
1717
- let U;
1718
- t[100] !== Dt || t[101] !== tt || t[102] !== S || t[103] !== I || t[104] !== Ot || t[105] !== Mt ? (U = /* @__PURE__ */ i.jsxs("g", { transform: Dt, children: [
1719
- tt,
1720
- S,
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,
1721
1725
  I,
1722
- Ot,
1723
- Mt
1724
- ] }), t[100] = Dt, t[101] = tt, t[102] = S, t[103] = I, t[104] = Ot, t[105] = Mt, t[106] = U) : U = t[106];
1725
- let kt;
1726
- t[107] !== bt || t[108] !== It || t[109] !== wt || t[110] !== ct || t[111] !== mt || t[112] !== ht || t[113] !== U ? (kt = /* @__PURE__ */ i.jsx(bt, { ref: It, width: wt, height: ct, viewBox: mt, direction: ht, children: U }), t[107] = bt, t[108] = It, t[109] = wt, t[110] = ct, t[111] = mt, t[112] = ht, t[113] = U, t[114] = kt) : kt = t[114];
1727
- let v;
1728
- t[115] !== a?.tooltip || t[116] !== Gt || t[117] !== Rt || t[118] !== V || t[119] !== s?.tooltip || t[120] !== ft ? (v = V && ft && Gt && Rt ? /* @__PURE__ */ i.jsx(je, { data: V, body: ft, xPos: Gt, yPos: Rt, backgroundStyle: s?.tooltip, className: a?.tooltip }) : null, t[115] = a?.tooltip, t[116] = Gt, t[117] = Rt, t[118] = V, t[119] = s?.tooltip, t[120] = ft, t[121] = v) : v = t[121];
1729
- let $;
1730
- t[122] !== a?.modal || t[123] !== F || t[124] !== y ? ($ = F && y !== void 0 ? /* @__PURE__ */ i.jsx(Be, { body: F, data: y, setData: L, className: a?.modal }) : null, t[122] = a?.modal, t[123] = F, t[124] = y, t[125] = $) : $ = t[125];
1731
- let O;
1732
- return t[126] !== kt || t[127] !== v || t[128] !== $ ? (O = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1733
- kt,
1734
- v,
1735
- $
1736
- ] }), t[126] = kt, t[127] = v, t[128] = $, t[129] = O) : O = t[129], O;
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];
1733
+ 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,
1739
+ Wt
1740
+ ] }), t[127] = ct, t[128] = A, t[129] = Wt, t[130] = n) : n = t[130], n;
1737
1741
  }
1738
- function Hs(e) {
1742
+ function Hl(e) {
1739
1743
  return e.layer;
1740
1744
  }
1741
- function Ws(e) {
1745
+ function Wl(e) {
1742
1746
  return e.position === "after";
1743
1747
  }
1744
- function Xs(e) {
1748
+ function Xl(e) {
1745
1749
  return e;
1746
1750
  }
1747
- function Ys(e) {
1751
+ function Yl(e) {
1748
1752
  return e || 0;
1749
1753
  }
1750
- function Es(e) {
1754
+ function El(e) {
1751
1755
  return e.layer;
1752
1756
  }
1753
- function Gs(e) {
1757
+ function Gl(e) {
1754
1758
  return e.position === "before";
1755
1759
  }
1756
- function Rs(e) {
1760
+ function Rl(e) {
1757
1761
  return e !== 0;
1758
1762
  }
1759
- function qs(e) {
1763
+ function ql(e) {
1760
1764
  return e !== 0;
1761
1765
  }
1762
- function Us(e) {
1766
+ function Ul(e) {
1763
1767
  return `${e.id}`;
1764
1768
  }
1765
- function Js(e) {
1766
- const t = we.c(138), {
1767
- data: l,
1768
- leftMargin: X,
1769
- rightMargin: Ut,
1770
- topMargin: Jt,
1771
- bottomMargin: Tt,
1772
- width: Ct,
1773
- height: Ft,
1774
- barColors: W,
1775
- barPadding: J,
1776
- showLabels: A,
1777
- showTicks: R,
1778
- truncateBy: ft,
1779
- tooltip: et,
1780
- onSeriesMouseOver: Lt,
1781
- suffix: Y,
1782
- prefix: lt,
1783
- showValues: Vt,
1784
- refValues: zt,
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,
1780
+ 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,
1785
1789
  maxValue: Xt,
1786
- onSeriesMouseClick: C,
1787
- selectedColor: K,
1788
- labelOrder: B,
1789
- maxBarThickness: T,
1790
- minBarThickness: dt,
1791
- resetSelectionOnDoubleClick: Q,
1792
- detailsOnClick: pt,
1793
- barAxisTitle: F,
1794
- valueColor: Z,
1795
- noOfTicks: it,
1796
- styles: c,
1797
- classNames: s,
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: _,
1800
+ styles: u,
1801
+ classNames: l,
1798
1802
  animate: a,
1799
- colorDomain: m,
1800
- precision: d,
1801
- customLayers: p,
1802
- naLabel: x,
1803
- hideAxisLine: at
1804
- } = e, D = X === void 0 ? 20 : X, E = Ut === void 0 ? 20 : Ut, Yt = Jt === void 0 ? 20 : Jt, Et = Tt === void 0 ? 25 : Tt, Pt = ve(null);
1805
- let Ht;
1806
- t[0] !== a.amount || t[1] !== a.once ? (Ht = {
1803
+ colorDomain: f,
1804
+ 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 = {
1807
1812
  once: a.once,
1808
1813
  amount: a.amount
1809
- }, t[0] = a.amount, t[1] = a.once, t[2] = Ht) : Ht = t[2];
1810
- const nt = Fe(Pt, Ht), ut = F ? D + 30 : D;
1811
- let _;
1812
- t[3] !== Et || t[4] !== E || t[5] !== ut || t[6] !== Yt ? (_ = {
1813
- top: Yt,
1814
- bottom: Et,
1815
- left: ut,
1816
- right: E
1817
- }, t[3] = Et, t[4] = E, t[5] = ut, t[6] = Yt, t[7] = _) : _ = t[7];
1818
- const u = _, [r, V] = Zt(void 0), [gt, y] = Zt(void 0), [L, Gt] = Zt(void 0), [ot, Rt] = Zt(void 0), rt = Ct - u.left - u.right, Wt = Ft - u.top - u.bottom;
1819
- let G;
1820
- if (t[8] !== l || t[9] !== B) {
1821
- const O = /* @__PURE__ */ new Set(), b = l.map((M, f) => {
1822
- const g = B ? `${M.label}` : `${f}`;
1823
- return O.add(g), {
1824
- ...M,
1825
- id: g
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
1826
1831
  };
1827
- }), At = B ? B.filter((M) => !O.has(M)) : [];
1828
- let $t;
1829
- t[11] !== l[0] ? ($t = (M) => ({
1830
- id: M,
1831
- label: M,
1832
- size: Array(l[0].size.length).fill(null)
1833
- }), t[11] = l[0], t[12] = $t) : $t = t[12], G = [...b, ...At.map($t)], t[8] = l, t[9] = B, t[10] = G;
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;
1834
1839
  } else
1835
- G = t[10];
1836
- const st = G;
1837
- let k;
1838
- t[13] !== st || t[14] !== B ? (k = B ?? st.map(ll), t[13] = st, t[14] = B, t[15] = k) : k = t[15];
1839
- const xt = k;
1840
- let St, yt, bt, vt, Bt, Dt, tt, S, I, It, wt, ct, mt, ht;
1841
- if (t[16] !== a || t[17] !== F || t[18] !== W || t[19] !== xt || t[20] !== J || 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] !== m || t[28] !== p || t[29] !== st || t[30] !== pt || t[31] !== Wt || t[32] !== rt || t[33] !== Ft || t[34] !== at || t[35] !== nt || t[36] !== D || t[37] !== u.bottom || t[38] !== u.left || t[39] !== u.right || t[40] !== u.top || t[41] !== T || t[42] !== Xt || t[43] !== dt || t[44] !== gt || t[45] !== x || t[46] !== it || t[47] !== C || t[48] !== Lt || t[49] !== d || t[50] !== lt || t[51] !== zt || t[52] !== Q || t[53] !== K || t[54] !== A || t[55] !== R || t[56] !== Vt || t[57] !== c?.graphObjectValues || t[58] !== c?.xAxis?.axis || t[59] !== c?.xAxis?.labels || t[60] !== c?.yAxis?.gridLines || t[61] !== c?.yAxis?.labels || t[62] !== c?.yAxis?.title || t[63] !== Y || t[64] !== ft || t[65] !== Z || t[66] !== Ct) {
1842
- const O = Pe().domain([0, Xt]).range([Wt, 0]).nice(), b = ke().domain(xt).range([0, dt ? Math.max(rt, dt * xt.length) : T ? Math.min(rt, T * xt.length) : rt]).paddingInner(J), At = O.ticks(it);
1843
- yt = _t.svg, I = `${Ct}px`, It = `${Ft}px`, wt = `0 0 ${Ct} ${Ft}`, ct = "ltr", mt = Pt, vt = `translate(${u.left},${u.top})`;
1844
- let $t;
1845
- t[81] !== x || t[82] !== d || t[83] !== lt || t[84] !== R || t[85] !== Y ? ($t = R ? be(0, x, d, lt, Y) : void 0, t[81] = x, t[82] = d, t[83] = lt, t[84] = R, t[85] = Y, t[86] = $t) : $t = t[86];
1846
- const M = s?.xAxis?.axis, f = s?.yAxis?.labels;
1847
- let g;
1848
- t[87] !== M || t[88] !== f ? (g = {
1849
- axis: M,
1850
- label: f
1851
- }, t[87] = M, t[88] = f, t[89] = g) : g = t[89];
1852
- const Nt = c?.xAxis?.axis, qt = c?.yAxis?.labels;
1853
- let Qt;
1854
- t[90] !== Nt || t[91] !== qt ? (Qt = {
1855
- axis: Nt,
1856
- label: qt
1857
- }, t[90] = Nt, t[91] = qt, t[92] = Qt) : Qt = t[92], Bt = /* @__PURE__ */ i.jsx(Te, { hideAxisLine: at, y1: O(0), y2: O(0), x1: 0 - D, x2: rt + u.right, label: $t, labelPos: {
1858
- x: 0 - D,
1859
- y: O(0),
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),
1860
1865
  dx: 0,
1861
1866
  dy: -5
1862
- }, classNames: g, styles: Qt }), Dt = R ? /* @__PURE__ */ i.jsx(Qe, { values: At.filter(sl), y: At.filter(il).map((h) => O(h)), x1: 0 - D, x2: rt + u.right, styles: {
1863
- gridLines: c?.yAxis?.gridLines,
1864
- labels: c?.yAxis?.labels
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: {
1868
+ gridLines: u?.yAxis?.gridLines,
1869
+ labels: u?.yAxis?.labels
1865
1870
  }, classNames: {
1866
- gridLines: s?.yAxis?.gridLines,
1867
- labels: s?.yAxis?.labels
1868
- }, suffix: Y, prefix: lt, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: d }) : null;
1869
- const P = 0 - D - 15, N = Wt / 2, z = c?.yAxis?.title, j = s?.yAxis?.title;
1870
- t[93] !== F || t[94] !== P || t[95] !== N || t[96] !== z || t[97] !== j ? (tt = /* @__PURE__ */ i.jsx(Se, { x: P, y: N, style: z, className: j, text: F, rotate90: !0 }), t[93] = F, t[94] = P, t[95] = N, t[96] = z, t[97] = j, t[98] = tt) : tt = t[98], t[99] !== p ? (S = p.filter(el).map(tl), t[99] = p, t[100] = S) : S = t[100], St = He, ht = st.map((h) => ee(b(h.id)) ? null : /* @__PURE__ */ i.jsxs(_t.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
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: {
1871
1876
  initial: {
1872
- x: b(`${h.id}`),
1877
+ x: v(`${d.id}`),
1873
1878
  y: 0
1874
1879
  },
1875
1880
  whileInView: {
1876
- x: b(`${h.id}`),
1881
+ x: v(`${d.id}`),
1877
1882
  y: 0,
1878
1883
  transition: {
1879
1884
  duration: a.duration
@@ -1881,101 +1886,101 @@ function Js(e) {
1881
1886
  }
1882
1887
  }, transition: {
1883
1888
  duration: a.duration
1884
- }, initial: "initial", animate: nt ? "whileInView" : "initial", exit: {
1889
+ }, initial: "initial", animate: tt ? "whileInView" : "initial", exit: {
1885
1890
  opacity: 0,
1886
1891
  transition: {
1887
1892
  duration: a.duration
1888
1893
  }
1889
1894
  }, children: [
1890
- h.size.map((w, n) => /* @__PURE__ */ i.jsxs(_t.g, { opacity: K ? W[n] === K ? 1 : 0.3 : 1, onMouseEnter: (H) => {
1891
- V({
1892
- ...h,
1893
- sizeIndex: n
1894
- }), Rt(H.clientY), Gt(H.clientX), Lt?.({
1895
- ...h,
1896
- sizeIndex: n
1895
+ d.size.map((L, o) => /* @__PURE__ */ i.jsxs(te.g, { opacity: q ? P[o] === q ? 1 : 0.3 : 1, onMouseEnter: ($) => {
1896
+ jt({
1897
+ ...d,
1898
+ sizeIndex: o
1899
+ }), qt($.clientY), Tt($.clientX), $t?.({
1900
+ ...d,
1901
+ sizeIndex: o
1897
1902
  });
1898
- }, onMouseMove: (H) => {
1899
- V({
1900
- ...h,
1901
- sizeIndex: n
1902
- }), Rt(H.clientY), Gt(H.clientX);
1903
+ }, onMouseMove: ($) => {
1904
+ jt({
1905
+ ...d,
1906
+ sizeIndex: o
1907
+ }), qt($.clientY), Tt($.clientX);
1903
1908
  }, onMouseLeave: () => {
1904
- V(void 0), Gt(void 0), Rt(void 0), Lt?.(void 0);
1909
+ jt(void 0), Tt(void 0), qt(void 0), $t?.(void 0);
1905
1910
  }, onClick: () => {
1906
- (C || pt) && (Ne(gt, {
1907
- ...h,
1908
- sizeIndex: n
1909
- }) && Q ? (y(void 0), C?.(void 0)) : (y({
1910
- ...h,
1911
- sizeIndex: n
1912
- }), C && C({
1913
- ...h,
1914
- sizeIndex: n
1911
+ (k || xt) && (Ne(z, {
1912
+ ...d,
1913
+ sizeIndex: o
1914
+ }) && U ? (y(void 0), k?.(void 0)) : (y({
1915
+ ...d,
1916
+ sizeIndex: o
1917
+ }), k && k({
1918
+ ...d,
1919
+ sizeIndex: o
1915
1920
  })));
1916
1921
  }, children: [
1917
- /* @__PURE__ */ i.jsx(_t.rect, { x: 0, width: b.bandwidth(), variants: {
1922
+ /* @__PURE__ */ i.jsx(te.rect, { x: 0, width: v.bandwidth(), variants: {
1918
1923
  initial: {
1919
1924
  height: 0,
1920
- fill: W[n],
1921
- y: O(0)
1925
+ fill: P[o],
1926
+ y: n(0)
1922
1927
  },
1923
1928
  whileInView: {
1924
- height: Math.abs(O(me(h.size.filter((H, o) => o <= n && H))) - O(me(h.size.filter((H, o) => o < n && H)))),
1925
- y: O(me(h.size.filter((H, o) => o <= n && H))),
1926
- fill: W[n],
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],
1927
1932
  transition: {
1928
1933
  duration: a.duration
1929
1934
  }
1930
1935
  }
1931
- }, initial: "initial", animate: nt ? "whileInView" : "initial", exit: {
1936
+ }, initial: "initial", animate: tt ? "whileInView" : "initial", exit: {
1932
1937
  height: 0,
1933
- y: O(0),
1938
+ y: n(0),
1934
1939
  transition: {
1935
1940
  duration: a.duration
1936
1941
  }
1937
1942
  } }),
1938
- Vt ? /* @__PURE__ */ i.jsx(_t.text, { x: b.bandwidth() / 2, style: {
1943
+ Nt ? /* @__PURE__ */ i.jsx(te.text, { x: v.bandwidth() / 2, style: {
1939
1944
  textAnchor: "middle",
1940
- ...c?.graphObjectValues || {}
1941
- }, className: Me("graph-value text-sm", s?.graphObjectValues), dy: "0.33em", variants: {
1945
+ ...u?.graphObjectValues || {}
1946
+ }, className: Ce("graph-value text-sm", l?.graphObjectValues), dy: "0.33em", variants: {
1942
1947
  initial: {
1943
- y: O(0),
1948
+ y: n(0),
1944
1949
  opacity: 0,
1945
- fill: Ye(W[n])
1950
+ fill: Ye(P[o])
1946
1951
  },
1947
1952
  whileInView: {
1948
- y: O(me(h.size.filter((H, o) => o <= n && H))) + Math.abs(O(me(h.size.filter((H, o) => o <= n && H))) - O(me(h.size.filter((H, o) => o < n && H)))) / 2,
1949
- opacity: w && Math.abs(O(me(h.size.filter((H, o) => o <= n && H))) - O(me(h.size.filter((H, o) => o < n && H)))) > 20 ? 1 : 0,
1950
- fill: Ye(W[n]),
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]),
1951
1956
  transition: {
1952
1957
  duration: a.duration
1953
1958
  }
1954
1959
  }
1955
- }, initial: "initial", animate: nt ? "whileInView" : "initial", exit: {
1960
+ }, initial: "initial", animate: tt ? "whileInView" : "initial", exit: {
1956
1961
  opacity: 0,
1957
1962
  transition: {
1958
1963
  duration: a.duration
1959
1964
  }
1960
- }, children: be(w, x, d, lt, Y) }) : null
1961
- ] }, `${h.label}-${m[n] || n}`)),
1962
- A ? /* @__PURE__ */ i.jsx(Ze, { value: `${h.label}`.length < ft ? `${h.label}` : `${`${h.label}`.substring(0, ft)}...`, y: O(0) + 5, x: 0, width: b.bandwidth(), height: u.bottom, style: c?.xAxis?.labels, className: s?.xAxis?.labels, alignment: "top", animate: a, isInView: nt }) : null,
1963
- Vt ? /* @__PURE__ */ i.jsx(_t.text, { style: {
1965
+ }, children: we(L, h, x, st, W, S) }) : null
1966
+ ] }, `${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: {
1964
1969
  textAnchor: "middle",
1965
- ...c?.graphObjectValues || {}
1966
- }, x: b.bandwidth() / 2, dy: -10, className: Me("graph-value graph-value-total", Z ? "text-sm" : "fill-primary-gray-700 dark:fill-primary-gray-300 text-sm", s?.graphObjectValues), variants: {
1970
+ ...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: {
1967
1972
  initial: {
1968
- y: O(0),
1973
+ y: n(0),
1969
1974
  opacity: 0,
1970
- ...Z && {
1971
- fill: Z
1975
+ ...J && {
1976
+ fill: J
1972
1977
  }
1973
1978
  },
1974
1979
  whileInView: {
1975
- y: O(me(h.size.map(_s))),
1980
+ y: n(me(d.size.map(_l))),
1976
1981
  opacity: 1,
1977
- ...Z && {
1978
- fill: Z
1982
+ ...J && {
1983
+ fill: J
1979
1984
  },
1980
1985
  transition: {
1981
1986
  duration: a.duration
@@ -1986,461 +1991,465 @@ function Js(e) {
1986
1991
  transition: {
1987
1992
  duration: a.duration
1988
1993
  }
1989
- }, initial: "initial", animate: nt ? "whileInView" : "initial", children: be(me(h.size.filter(Zs)), x, d, lt, Y) }) : null
1990
- ] }, h.label)), bt = zt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: zt.map((h, w) => /* @__PURE__ */ i.jsx(Ke, { text: h.text, color: h.color, y: O(h.value), x1: 0 - D, x2: rt + u.right, classNames: h.classNames, styles: h.styles, animate: a, isInView: nt }, w)) }) : null, t[16] = a, t[17] = F, t[18] = W, t[19] = xt, t[20] = J, 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] = m, t[28] = p, t[29] = st, t[30] = pt, t[31] = Wt, t[32] = rt, t[33] = Ft, t[34] = at, t[35] = nt, t[36] = D, t[37] = u.bottom, t[38] = u.left, t[39] = u.right, t[40] = u.top, t[41] = T, t[42] = Xt, t[43] = dt, t[44] = gt, t[45] = x, t[46] = it, t[47] = C, t[48] = Lt, t[49] = d, t[50] = lt, t[51] = zt, t[52] = Q, t[53] = K, t[54] = A, t[55] = R, t[56] = Vt, t[57] = c?.graphObjectValues, t[58] = c?.xAxis?.axis, t[59] = c?.xAxis?.labels, t[60] = c?.yAxis?.gridLines, t[61] = c?.yAxis?.labels, t[62] = c?.yAxis?.title, t[63] = Y, t[64] = ft, t[65] = Z, t[66] = Ct, t[67] = St, t[68] = yt, t[69] = bt, t[70] = vt, t[71] = Bt, t[72] = Dt, t[73] = tt, t[74] = S, t[75] = I, t[76] = It, t[77] = wt, t[78] = ct, t[79] = mt, t[80] = ht;
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;
1991
1996
  } else
1992
- St = t[67], yt = t[68], bt = t[69], vt = t[70], Bt = t[71], Dt = t[72], tt = t[73], S = t[74], I = t[75], It = t[76], wt = t[77], ct = t[78], mt = t[79], ht = t[80];
1993
- let q;
1994
- t[101] !== St || t[102] !== bt || t[103] !== ht ? (q = /* @__PURE__ */ i.jsxs(St, { children: [
1995
- ht,
1996
- bt
1997
- ] }), t[101] = St, t[102] = bt, t[103] = ht, t[104] = q) : q = t[104];
1998
- let Ot;
1999
- t[105] !== p ? (Ot = p.filter(Qs).map(Ks), t[105] = p, t[106] = Ot) : Ot = t[106];
2000
- let Mt;
2001
- t[107] !== vt || t[108] !== Bt || t[109] !== Dt || t[110] !== tt || t[111] !== S || t[112] !== q || t[113] !== Ot ? (Mt = /* @__PURE__ */ i.jsxs("g", { transform: vt, children: [
2002
- Bt,
2003
- Dt,
2004
- tt,
2005
- S,
2006
- q,
2007
- Ot
2008
- ] }), t[107] = vt, t[108] = Bt, t[109] = Dt, t[110] = tt, t[111] = S, t[112] = q, t[113] = Ot, t[114] = Mt) : Mt = t[114];
2009
- let U;
2010
- t[115] !== yt || t[116] !== I || t[117] !== It || t[118] !== wt || t[119] !== ct || t[120] !== mt || t[121] !== Mt ? (U = /* @__PURE__ */ i.jsx(yt, { width: I, height: It, viewBox: wt, direction: ct, ref: mt, children: Mt }), t[115] = yt, t[116] = I, t[117] = It, t[118] = wt, t[119] = ct, t[120] = mt, t[121] = Mt, t[122] = U) : U = t[122];
2011
- let kt;
2012
- t[123] !== s?.tooltip || t[124] !== L || t[125] !== ot || t[126] !== r || t[127] !== c?.tooltip || t[128] !== et ? (kt = r && et && L && ot ? /* @__PURE__ */ i.jsx(je, { data: r, body: et, xPos: L, yPos: ot, backgroundStyle: c?.tooltip, className: s?.tooltip }) : null, t[123] = s?.tooltip, t[124] = L, t[125] = ot, t[126] = r, t[127] = c?.tooltip, t[128] = et, t[129] = kt) : kt = t[129];
2013
- let v;
2014
- t[130] !== s?.modal || t[131] !== pt || t[132] !== gt ? (v = pt && gt !== void 0 ? /* @__PURE__ */ i.jsx(Be, { body: pt, data: gt, setData: y, className: s?.modal }) : null, t[130] = s?.modal, t[131] = pt, t[132] = gt, t[133] = v) : v = t[133];
2015
- let $;
2016
- return t[134] !== U || t[135] !== kt || t[136] !== v ? ($ = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
2017
- U,
2018
- kt,
2019
- v
2020
- ] }), t[134] = U, t[135] = kt, t[136] = v, t[137] = $) : $ = t[137], $;
2021
- }
2022
- function Ks(e) {
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: [
2022
+ Vt,
2023
+ ct,
2024
+ A
2025
+ ] }), t[136] = Vt, t[137] = ct, t[138] = A, t[139] = Wt) : Wt = t[139], Wt;
2026
+ }
2027
+ function Kl(e) {
2023
2028
  return e.layer;
2024
2029
  }
2025
- function Qs(e) {
2030
+ function Ql(e) {
2026
2031
  return e.position === "after";
2027
2032
  }
2028
- function Zs(e) {
2033
+ function Zl(e) {
2029
2034
  return e;
2030
2035
  }
2031
- function _s(e) {
2036
+ function _l(e) {
2032
2037
  return e || 0;
2033
2038
  }
2034
- function tl(e) {
2039
+ function ts(e) {
2035
2040
  return e.layer;
2036
2041
  }
2037
- function el(e) {
2042
+ function es(e) {
2038
2043
  return e.position === "before";
2039
2044
  }
2040
- function il(e) {
2045
+ function is(e) {
2041
2046
  return e !== 0;
2042
2047
  }
2043
- function sl(e) {
2048
+ function ls(e) {
2044
2049
  return e !== 0;
2045
2050
  }
2046
- function ll(e) {
2051
+ function ss(e) {
2047
2052
  return `${e.id}`;
2048
2053
  }
2049
- function al(e) {
2050
- const t = we.c(127), {
2051
- data: l,
2052
- graphTitle: X,
2053
- colors: Ut,
2054
- sources: Jt,
2055
- graphDescription: Tt,
2056
- barPadding: Ct,
2057
- showTicks: Ft,
2058
- truncateBy: W,
2059
- height: J,
2060
- width: A,
2061
- footNote: R,
2062
- colorDomain: ft,
2063
- colorLegendTitle: et,
2064
- padding: Lt,
2065
- backgroundColor: Y,
2066
- topMargin: lt,
2067
- bottomMargin: Vt,
2068
- leftMargin: zt,
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,
2065
+ 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,
2069
2074
  rightMargin: Xt,
2070
- tooltip: C,
2071
- onSeriesMouseOver: K,
2072
- suffix: B,
2073
- prefix: T,
2074
- showLabels: dt,
2075
- relativeHeight: Q,
2076
- showValues: pt,
2077
- refValues: F,
2078
- graphID: Z,
2079
- maxValue: it,
2080
- onSeriesMouseClick: c,
2081
- graphDownload: s,
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: _,
2085
+ onSeriesMouseClick: u,
2086
+ graphDownload: l,
2082
2087
  dataDownload: a,
2083
- language: m,
2084
- labelOrder: d,
2085
- minHeight: p,
2086
- theme: x,
2088
+ language: f,
2089
+ labelOrder: x,
2090
+ minHeight: w,
2091
+ theme: h,
2087
2092
  maxBarThickness: at,
2088
- sortParameter: D,
2089
- maxNumberOfBars: E,
2090
- minBarThickness: Yt,
2091
- showColorScale: Et,
2092
- ariaLabel: Pt,
2093
- resetSelectionOnDoubleClick: Ht,
2094
- detailsOnClick: nt,
2095
- barAxisTitle: ut,
2096
- noOfTicks: _,
2097
- valueColor: u,
2098
- styles: r,
2099
- classNames: V,
2100
- filterNA: gt,
2101
- animate: y,
2102
- precision: L,
2103
- customLayers: Gt,
2104
- timeline: ot,
2105
- naLabel: Rt,
2106
- sortData: rt,
2107
- orientation: Wt,
2108
- hideAxisLine: G
2109
- } = e, st = Ut === void 0 ? pe.light.categoricalColors.colors : Ut, k = Ct === void 0 ? 0.25 : Ct, xt = Ft === void 0 ? !0 : Ft, St = W === void 0 ? 999 : W, yt = Y === void 0 ? !1 : Y, bt = B === void 0 ? "" : B, vt = T === void 0 ? "" : T, Bt = dt === void 0 ? !0 : dt, Dt = pt === void 0 ? !0 : pt, tt = s === void 0 ? !1 : s, S = a === void 0 ? !1 : a, I = m === void 0 ? "en" : m, It = p === void 0 ? 0 : p, wt = x === void 0 ? "light" : x, ct = Et === void 0 ? !0 : Et, mt = Ht === void 0 ? !0 : Ht, ht = _ === void 0 ? 5 : _, q = gt === void 0 ? !0 : gt, Ot = y === void 0 ? !1 : y, Mt = L === void 0 ? 2 : L;
2110
- let U;
2111
- t[0] !== Gt ? (U = Gt === void 0 ? [] : Gt, t[0] = Gt, t[1] = U) : U = t[1];
2112
- const kt = U;
2113
- let v;
2114
- t[2] !== ot ? (v = ot === void 0 ? {
2093
+ sortParameter: S,
2094
+ maxNumberOfBars: C,
2095
+ minBarThickness: Ht,
2096
+ showColorScale: Rt,
2097
+ ariaLabel: Mt,
2098
+ resetSelectionOnDoubleClick: yt,
2099
+ detailsOnClick: Yt,
2100
+ barAxisTitle: tt,
2101
+ 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;
2119
+ let Wt;
2120
+ t[2] !== mt ? (Wt = mt === void 0 ? {
2115
2121
  enabled: !1,
2116
2122
  autoplay: !1,
2117
2123
  showOnlyActiveDate: !0
2118
- } : ot, t[2] = ot, t[3] = v) : v = t[3];
2119
- const $ = v, O = Rt === void 0 ? "NA" : Rt, b = Wt === void 0 ? "vertical" : Wt, At = G === void 0 ? !1 : G, $t = b === "horizontal" ? Ps : Js, [M, f] = Zt(0), [g, Nt] = Zt(0), [qt, Qt] = Zt($.autoplay);
2120
- let P;
2121
- if (t[4] !== l || t[5] !== $.dateFormat) {
2122
- let jt;
2123
- t[7] !== $.dateFormat ? (jt = (se) => Re(`${se.date}`, $.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = $.dateFormat, t[8] = jt) : jt = t[8], P = [...new Set(l.filter(bl).map(jt))], P.sort(yl), t[4] = l, t[5] = $.dateFormat, t[6] = P;
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;
2124
2130
  } else
2125
- P = t[6];
2126
- const N = P, [z, j] = Zt($.autoplay ? 0 : N.length - 1), [h, w] = Zt(void 0), n = ve(null), H = ve(null);
2127
- let o, ie;
2128
- t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = () => {
2129
- const jt = new ResizeObserver((se) => {
2130
- f(se[0].target.clientWidth || 620), Nt(se[0].target.clientHeight || 480);
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);
2131
2137
  });
2132
- return n.current && jt.observe(n.current), () => jt.disconnect();
2133
- }, ie = [], t[9] = o, t[10] = ie) : (o = t[9], ie = t[10]), Ie(o, ie);
2134
- let le, ge;
2135
- t[11] !== qt || t[12] !== $.speed || t[13] !== N ? (le = () => {
2136
- const jt = setInterval(() => {
2137
- j((se) => se < N.length - 1 ? se + 1 : 0);
2138
- }, ($.speed || 2) * 1e3);
2139
- return qt || clearInterval(jt), () => clearInterval(jt);
2140
- }, ge = [N, qt, $.speed], t[11] = qt, t[12] = $.speed, t[13] = N, t[14] = le, t[15] = ge) : (le = t[14], ge = t[15]), Ie(le, ge);
2141
- const Oe = $.dateFormat || "yyyy";
2142
- let fe;
2143
- t[16] !== z || t[17] !== Oe || t[18] !== $.showOnlyActiveDate || t[19] !== N ? (fe = Ee(N, z, $.showOnlyActiveDate, Oe), t[16] = z, t[17] = Oe, t[18] = $.showOnlyActiveDate, t[19] = N, t[20] = fe) : fe = t[20];
2144
- const Ae = fe, ye = V?.graphContainer, he = r?.graphContainer;
2145
- let ae;
2146
- t[21] !== V?.description || t[22] !== V?.title || t[23] !== l || t[24] !== S || t[25] !== Tt || t[26] !== tt || t[27] !== X || t[28] !== r?.description || t[29] !== r?.title || t[30] !== A ? (ae = X || Tt || tt || S ? /* @__PURE__ */ i.jsx(_e, { styles: {
2147
- title: r?.title,
2148
- description: r?.description
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: {
2153
+ title: p?.title,
2154
+ description: p?.description
2149
2155
  }, classNames: {
2150
- title: V?.title,
2151
- description: V?.description
2152
- }, graphTitle: X, graphDescription: Tt, width: A, graphDownload: tt ? H : void 0, dataDownload: S ? l.map(gl).filter(pl).length > 0 ? l.map(fl).filter(hl) : l.filter(ml) : null }) : null, t[21] = V?.description, t[22] = V?.title, t[23] = l, t[24] = S, t[25] = Tt, t[26] = tt, t[27] = X, t[28] = r?.description, t[29] = r?.title, t[30] = A, t[31] = ae) : ae = t[31];
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];
2153
2159
  let ne;
2154
- t[32] !== z || t[33] !== Ae || t[34] !== qt || t[35] !== $.enabled || t[36] !== N ? (ne = $.enabled && N.length > 0 && Ae ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
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: [
2155
2161
  /* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
2156
- Qt(!qt);
2157
- }, 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(si, {}) : /* @__PURE__ */ i.jsx(li, {}) }),
2158
- /* @__PURE__ */ i.jsx(Ge, { min: N[0], max: N[N.length - 1], marks: Ae, step: null, defaultValue: N[N.length - 1], value: N[z], onChangeComplete: (jt) => {
2159
- j(N.indexOf(jt));
2160
- }, onChange: (jt) => {
2161
- j(N.indexOf(jt));
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));
2162
2168
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
2163
- ] }) : null, t[32] = z, t[33] = Ae, t[34] = qt, t[35] = $.enabled, t[36] = N, t[37] = ne) : ne = t[37];
2164
- let de;
2165
- t[38] !== V?.colorLegend || t[39] !== ft || t[40] !== et || t[41] !== st || t[42] !== l.length || t[43] !== ct || t[44] !== A ? (de = ct && l.length > 0 ? /* @__PURE__ */ i.jsx(ei, { width: A, colorDomain: ft, colors: st, colorLegendTitle: et, setSelectedColor: w, showNAColor: !1, className: V?.colorLegend }) : null, t[38] = V?.colorLegend, t[39] = ft, t[40] = et, t[41] = st, t[42] = l.length, t[43] = ct, t[44] = A, t[45] = de) : de = t[45];
2166
- let oe;
2167
- t[46] !== l.length ? (oe = l.length === 0 && /* @__PURE__ */ i.jsx(ii, {}), t[46] = l.length, t[47] = oe) : oe = t[47];
2169
+ ] }) : null, t[32] = V, t[33] = ge, t[34] = Jt, t[35] = n.enabled, t[36] = g, t[37] = ne) : ne = t[37];
2168
2170
  let re;
2169
- t[48] !== $t || t[49] !== Ot || t[50] !== ut || t[51] !== k || t[52] !== Vt || t[53] !== V || t[54] !== ft || t[55] !== st || t[56] !== kt || t[57] !== l || t[58] !== nt || t[59] !== q || t[60] !== At || t[61] !== z || t[62] !== d || t[63] !== I || t[64] !== zt || t[65] !== at || t[66] !== E || t[67] !== it || t[68] !== Yt || t[69] !== O || t[70] !== ht || t[71] !== c || t[72] !== K || t[73] !== Mt || t[74] !== vt || t[75] !== F || t[76] !== mt || t[77] !== Xt || t[78] !== h || t[79] !== Bt || t[80] !== xt || t[81] !== Dt || t[82] !== rt || t[83] !== D || t[84] !== r || t[85] !== bt || t[86] !== g || t[87] !== M || t[88] !== $.dateFormat || t[89] !== $.enabled || t[90] !== C || t[91] !== lt || t[92] !== St || t[93] !== N || t[94] !== u ? (re = M && g && l.length > 0 ? /* @__PURE__ */ i.jsx($t, { hideAxisLine: At, data: D !== void 0 ? D === "total" ? We(De(l, $.dateFormat || "yyyy").filter((jt) => $.enabled ? `${jt.date}` === Ce(new Date(N[z]), $.dateFormat || "yyyy") : jt).filter((jt) => q ? !jt.size.every(xl) : jt), dl, [rt || "asc"]).filter((jt, se) => E ? se < E : !0) : We(De(l, $.dateFormat || "yyyy").filter((jt) => $.enabled ? `${jt.date}` === Ce(new Date(N[z]), $.dateFormat || "yyyy") : jt).filter((jt) => q ? !jt.size.every(cl) : jt), (jt) => ee(jt.size[D]) ? -1 / 0 : jt.size[D], [rt || "asc"]).filter((jt, se) => E ? se < E : !0) : De(l, $.dateFormat || "yyyy").filter((jt) => $.enabled ? `${jt.date}` === Ce(new Date(N[z]), $.dateFormat || "yyyy") : jt).filter((jt) => q ? !jt.size.every(rl) : jt).filter((jt, se) => E ? se < E : !0), barColors: st, width: M, height: g, barPadding: k, showTicks: xt, leftMargin: zt, rightMargin: Xt, topMargin: lt, bottomMargin: Vt, truncateBy: St, showLabels: Bt, tooltip: C, onSeriesMouseOver: K, showValues: Dt, suffix: bt, prefix: vt, refValues: F, maxValue: ee(it) ? Math.max(...l.map(nl)) : it, onSeriesMouseClick: c, selectedColor: h, rtl: I === "he" || I === "ar", labelOrder: d, maxBarThickness: at, minBarThickness: Yt, resetSelectionOnDoubleClick: mt, detailsOnClick: nt, barAxisTitle: ut, noOfTicks: ht, valueColor: u, classNames: V, styles: r, animate: Ot === !0 ? {
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 ? {
2170
2176
  duration: 0.5,
2171
2177
  once: !0,
2172
2178
  amount: 0.5
2173
- } : Ot || {
2179
+ } : E || {
2174
2180
  duration: 0,
2175
2181
  once: !0,
2176
2182
  amount: 0
2177
- }, colorDomain: ft, precision: Mt, customLayers: kt, naLabel: O }) : null, t[48] = $t, t[49] = Ot, t[50] = ut, t[51] = k, t[52] = Vt, t[53] = V, t[54] = ft, t[55] = st, t[56] = kt, t[57] = l, t[58] = nt, t[59] = q, t[60] = At, t[61] = z, t[62] = d, t[63] = I, t[64] = zt, t[65] = at, t[66] = E, t[67] = it, t[68] = Yt, t[69] = O, t[70] = ht, t[71] = c, t[72] = K, t[73] = Mt, t[74] = vt, t[75] = F, t[76] = mt, t[77] = Xt, t[78] = h, t[79] = Bt, t[80] = xt, t[81] = Dt, t[82] = rt, t[83] = D, t[84] = r, t[85] = bt, t[86] = g, t[87] = M, t[88] = $.dateFormat, t[89] = $.enabled, t[90] = C, t[91] = lt, t[92] = St, t[93] = N, t[94] = u, t[95] = re) : re = t[95];
2178
- let ue;
2179
- t[96] !== oe || t[97] !== re ? (ue = /* @__PURE__ */ i.jsxs(ai, { ref: n, children: [
2180
- oe,
2181
- re
2182
- ] }), t[96] = oe, t[97] = re, t[98] = ue) : ue = t[98];
2183
- let xe;
2184
- t[99] !== de || t[100] !== ue ? (xe = /* @__PURE__ */ i.jsxs("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: [
2185
- de,
2186
- ue
2187
- ] }), t[99] = de, t[100] = ue, t[101] = xe) : xe = t[101];
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];
2188
2194
  let ce;
2189
- t[102] !== V?.footnote || t[103] !== V?.source || t[104] !== R || t[105] !== Jt || t[106] !== r?.footnote || t[107] !== r?.source || t[108] !== A ? (ce = Jt || R ? /* @__PURE__ */ i.jsx(ti, { styles: {
2190
- footnote: r?.footnote,
2191
- source: r?.source
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: {
2196
+ footnote: p?.footnote,
2197
+ source: p?.source
2192
2198
  }, classNames: {
2193
- footnote: V?.footnote,
2194
- source: V?.source
2195
- }, sources: Jt, footNote: R, width: A }) : null, t[102] = V?.footnote, t[103] = V?.source, t[104] = R, t[105] = Jt, t[106] = r?.footnote, t[107] = r?.source, t[108] = A, t[109] = ce) : ce = t[109];
2196
- let Kt;
2197
- return t[110] !== Pt || t[111] !== yt || t[112] !== Z || t[113] !== J || t[114] !== I || t[115] !== It || t[116] !== Lt || t[117] !== Q || t[118] !== ye || t[119] !== he || t[120] !== ae || t[121] !== ne || t[122] !== xe || t[123] !== ce || t[124] !== wt || t[125] !== A ? (Kt = /* @__PURE__ */ i.jsxs(ni, { className: ye, style: he, id: Z, ref: H, "aria-label": Pt, backgroundColor: yt, theme: wt, language: I, minHeight: It, width: A, height: J, relativeHeight: Q, padding: Lt, children: [
2198
- ae,
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,
2199
2205
  ne,
2200
- xe,
2206
+ se,
2201
2207
  ce
2202
- ] }), t[110] = Pt, t[111] = yt, t[112] = Z, t[113] = J, t[114] = I, t[115] = It, t[116] = Lt, t[117] = Q, t[118] = ye, t[119] = he, t[120] = ae, t[121] = ne, t[122] = xe, t[123] = ce, t[124] = wt, t[125] = A, t[126] = Kt) : Kt = t[126], Kt;
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;
2203
2209
  }
2204
- function nl(e) {
2205
- return me(e.size.filter(ol)) || 0;
2210
+ function os(e) {
2211
+ return me(e.size.filter(ns)) || 0;
2206
2212
  }
2207
- function ol(e) {
2208
- return !ee(e);
2213
+ function ns(e) {
2214
+ return !ie(e);
2209
2215
  }
2210
- function rl(e) {
2216
+ function rs(e) {
2211
2217
  return e == null;
2212
2218
  }
2213
- function cl(e) {
2219
+ function cs(e) {
2214
2220
  return e == null;
2215
2221
  }
2216
- function dl(e) {
2217
- return me(e.size.filter(ul));
2222
+ function ds(e) {
2223
+ return me(e.size.filter(us));
2218
2224
  }
2219
- function ul(e) {
2220
- return !ee(e);
2225
+ function us(e) {
2226
+ return !ie(e);
2221
2227
  }
2222
- function xl(e) {
2228
+ function xs(e) {
2223
2229
  return e == null;
2224
2230
  }
2225
- function ml(e) {
2231
+ function ms(e) {
2226
2232
  return e !== void 0;
2227
2233
  }
2228
- function hl(e) {
2234
+ function hs(e) {
2229
2235
  return e !== void 0;
2230
2236
  }
2231
- function fl(e) {
2237
+ function fs(e) {
2232
2238
  return e.data;
2233
2239
  }
2234
- function pl(e) {
2240
+ function ps(e) {
2235
2241
  return e !== void 0;
2236
2242
  }
2237
- function gl(e) {
2243
+ function gs(e) {
2238
2244
  return e.data;
2239
2245
  }
2240
- function yl(e, t) {
2246
+ function ys(e, t) {
2241
2247
  return e - t;
2242
2248
  }
2243
- function bl(e) {
2249
+ function bs(e) {
2244
2250
  return e.date;
2245
2251
  }
2246
- function _l(e) {
2247
- const t = we.c(63), {
2248
- data: l,
2249
- graphTitle: X,
2250
- colors: Ut,
2251
- barPadding: Jt,
2252
- showTicks: Tt,
2253
- leftMargin: Ct,
2254
- rightMargin: Ft,
2255
- topMargin: W,
2256
- bottomMargin: J,
2257
- truncateBy: A,
2258
- showLabels: R,
2259
- showValues: ft,
2260
- backgroundColor: et,
2261
- suffix: Lt,
2262
- prefix: Y,
2263
- sources: lt,
2264
- graphDescription: Vt,
2265
- height: zt,
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,
2263
+ 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,
2266
2272
  width: Xt,
2267
- footNote: C,
2268
- colorDomain: K,
2269
- colorLegendTitle: B,
2270
- padding: T,
2271
- relativeHeight: dt,
2272
- tooltip: Q,
2273
- onSeriesMouseOver: pt,
2274
- refValues: F,
2275
- showColorScale: Z,
2276
- graphID: it,
2277
- maxValue: c,
2278
- minValue: s,
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,
2279
2285
  highlightedDataPoints: a,
2280
- onSeriesMouseClick: m,
2281
- graphDownload: d,
2282
- dataDownload: p,
2283
- language: x,
2286
+ onSeriesMouseClick: f,
2287
+ graphDownload: x,
2288
+ dataDownload: w,
2289
+ language: h,
2284
2290
  theme: at,
2285
- sortData: D,
2286
- labelOrder: E,
2287
- showNAColor: Yt,
2288
- minHeight: Et,
2289
- maxBarThickness: Pt,
2290
- maxNumberOfBars: Ht,
2291
- minBarThickness: nt,
2292
- ariaLabel: ut,
2293
- resetSelectionOnDoubleClick: _,
2294
- detailsOnClick: u,
2295
- barAxisTitle: r,
2296
- noOfTicks: V,
2297
- valueColor: gt,
2298
- orientation: y,
2299
- styles: L,
2300
- classNames: Gt,
2301
- filterNA: ot,
2302
- animate: Rt,
2303
- dimmedOpacity: rt,
2304
- precision: Wt,
2305
- customLayers: G,
2306
- timeline: st,
2307
- naLabel: k,
2308
- trackColor: xt,
2309
- hideAxisLine: St
2310
- } = e, yt = y === void 0 ? "vertical" : y, bt = St === void 0 ? !1 : St;
2311
- let vt;
2312
- return t[0] !== Rt || t[1] !== ut || t[2] !== et || t[3] !== r || t[4] !== Jt || t[5] !== J || t[6] !== Gt || t[7] !== K || t[8] !== B || t[9] !== Ut || t[10] !== G || t[11] !== l || t[12] !== p || t[13] !== u || t[14] !== rt || t[15] !== ot || t[16] !== C || t[17] !== Vt || t[18] !== d || t[19] !== it || t[20] !== X || t[21] !== zt || t[22] !== bt || t[23] !== a || t[24] !== E || t[25] !== x || t[26] !== Ct || t[27] !== Pt || t[28] !== Ht || t[29] !== c || t[30] !== nt || t[31] !== Et || t[32] !== s || t[33] !== k || t[34] !== V || t[35] !== m || t[36] !== pt || t[37] !== yt || t[38] !== T || t[39] !== Wt || t[40] !== Y || t[41] !== F || t[42] !== dt || t[43] !== _ || t[44] !== Ft || t[45] !== Z || t[46] !== R || t[47] !== Yt || t[48] !== Tt || t[49] !== ft || t[50] !== D || t[51] !== lt || t[52] !== L || t[53] !== Lt || t[54] !== at || t[55] !== st || t[56] !== Q || t[57] !== W || t[58] !== xt || t[59] !== A || t[60] !== gt || t[61] !== Xt ? (vt = /* @__PURE__ */ i.jsx(vs, { data: l, graphTitle: X, colors: Ut, barPadding: Jt, showTicks: Tt, leftMargin: Ct, rightMargin: Ft, topMargin: W, bottomMargin: J, truncateBy: A, showLabels: R, showValues: ft, backgroundColor: et, suffix: Lt, prefix: Y, sources: lt, graphDescription: Vt, height: zt, width: Xt, footNote: C, colorDomain: K, colorLegendTitle: B, padding: T, relativeHeight: dt, tooltip: Q, onSeriesMouseOver: pt, refValues: F, showColorScale: Z, graphID: it, maxValue: c, minValue: s, highlightedDataPoints: a, onSeriesMouseClick: m, graphDownload: d, dataDownload: p, language: x, theme: at, sortData: D, labelOrder: E, showNAColor: Yt, minHeight: Et, maxBarThickness: Pt, maxNumberOfBars: Ht, minBarThickness: nt, ariaLabel: ut, resetSelectionOnDoubleClick: _, styles: L, detailsOnClick: u, barAxisTitle: r, noOfTicks: V, valueColor: gt, classNames: Gt, filterNA: ot, animate: Rt, dimmedOpacity: rt, precision: Wt, customLayers: G, timeline: st, naLabel: k, orientation: yt, trackColor: xt, hideAxisLine: bt }), t[0] = Rt, t[1] = ut, t[2] = et, t[3] = r, t[4] = Jt, t[5] = J, t[6] = Gt, t[7] = K, t[8] = B, t[9] = Ut, t[10] = G, t[11] = l, t[12] = p, t[13] = u, t[14] = rt, t[15] = ot, t[16] = C, t[17] = Vt, t[18] = d, t[19] = it, t[20] = X, t[21] = zt, t[22] = bt, t[23] = a, t[24] = E, t[25] = x, t[26] = Ct, t[27] = Pt, t[28] = Ht, t[29] = c, t[30] = nt, t[31] = Et, t[32] = s, t[33] = k, t[34] = V, t[35] = m, t[36] = pt, t[37] = yt, t[38] = T, t[39] = Wt, t[40] = Y, t[41] = F, t[42] = dt, t[43] = _, t[44] = Ft, t[45] = Z, t[46] = R, t[47] = Yt, t[48] = Tt, t[49] = ft, t[50] = D, t[51] = lt, t[52] = L, t[53] = Lt, t[54] = at, t[55] = st, t[56] = Q, t[57] = W, t[58] = xt, t[59] = A, t[60] = gt, t[61] = Xt, t[62] = vt) : vt = t[62], vt;
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;
2313
2320
  }
2314
2321
  function ta(e) {
2315
- const t = we.c(58), {
2316
- data: l,
2317
- graphTitle: X,
2318
- colors: Ut,
2319
- sources: Jt,
2320
- graphDescription: Tt,
2321
- barPadding: Ct,
2322
- showTicks: Ft,
2323
- truncateBy: W,
2324
- height: J,
2325
- width: A,
2326
- footNote: R,
2327
- colorDomain: ft,
2328
- colorLegendTitle: et,
2329
- suffix: Lt,
2330
- prefix: Y,
2331
- showValues: lt,
2332
- padding: Vt,
2333
- backgroundColor: zt,
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,
2334
2341
  leftMargin: Xt,
2335
- rightMargin: C,
2336
- topMargin: K,
2337
- bottomMargin: B,
2338
- showLabels: T,
2339
- relativeHeight: dt,
2340
- tooltip: Q,
2341
- onSeriesMouseOver: pt,
2342
- refValues: F,
2343
- graphID: Z,
2344
- maxValue: it,
2345
- minValue: c,
2346
- onSeriesMouseClick: s,
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,
2347
2354
  graphDownload: a,
2348
- dataDownload: m,
2349
- language: d,
2350
- labelOrder: p,
2351
- minHeight: x,
2355
+ dataDownload: f,
2356
+ language: x,
2357
+ labelOrder: w,
2358
+ minHeight: h,
2352
2359
  theme: at,
2353
- sortParameter: D,
2354
- sortData: E,
2355
- maxBarThickness: Yt,
2356
- ariaLabel: Et,
2357
- resetSelectionOnDoubleClick: Pt,
2358
- detailsOnClick: Ht,
2359
- barAxisTitle: nt,
2360
- noOfTicks: ut,
2361
- valueColor: _,
2362
- orientation: u,
2363
- styles: r,
2364
- classNames: V,
2365
- filterNA: gt,
2366
- animate: y,
2367
- precision: L,
2368
- customLayers: Gt,
2369
- showColorScale: ot,
2370
- timeline: Rt,
2371
- naLabel: rt,
2372
- hideAxisLine: Wt
2373
- } = e, G = u === void 0 ? "vertical" : u, st = Wt === void 0 ? !1 : Wt;
2374
- let k;
2375
- return t[0] !== y || t[1] !== Et || t[2] !== zt || t[3] !== nt || t[4] !== Ct || t[5] !== B || t[6] !== V || t[7] !== ft || t[8] !== et || t[9] !== Ut || t[10] !== Gt || t[11] !== l || t[12] !== m || t[13] !== Ht || t[14] !== gt || t[15] !== R || t[16] !== Tt || t[17] !== a || t[18] !== Z || t[19] !== X || t[20] !== J || t[21] !== st || t[22] !== p || t[23] !== d || t[24] !== Xt || t[25] !== Yt || t[26] !== it || t[27] !== x || t[28] !== c || t[29] !== rt || t[30] !== ut || t[31] !== s || t[32] !== pt || t[33] !== G || t[34] !== Vt || t[35] !== L || t[36] !== Y || t[37] !== F || t[38] !== dt || t[39] !== Pt || t[40] !== C || t[41] !== ot || t[42] !== T || t[43] !== Ft || t[44] !== lt || t[45] !== E || t[46] !== D || t[47] !== Jt || t[48] !== r || t[49] !== Lt || t[50] !== at || t[51] !== Rt || t[52] !== Q || t[53] !== K || t[54] !== W || t[55] !== _ || t[56] !== A ? (k = /* @__PURE__ */ i.jsx(Ci, { orientation: G, data: l, graphTitle: X, colors: Ut, sources: Jt, graphDescription: Tt, barPadding: Ct, showTicks: Ft, truncateBy: W, height: J, width: A, footNote: R, colorDomain: ft, colorLegendTitle: et, suffix: Lt, prefix: Y, showValues: lt, padding: Vt, backgroundColor: zt, leftMargin: Xt, rightMargin: C, sortParameter: D, sortData: E, topMargin: K, bottomMargin: B, showLabels: T, relativeHeight: dt, tooltip: Q, onSeriesMouseOver: pt, refValues: F, graphID: Z, maxValue: it, minValue: c, onSeriesMouseClick: s, graphDownload: a, dataDownload: m, language: d, labelOrder: p, minHeight: x, theme: at, maxBarThickness: Yt, ariaLabel: Et, resetSelectionOnDoubleClick: Pt, styles: r, detailsOnClick: Ht, barAxisTitle: nt, noOfTicks: ut, valueColor: _, classNames: V, filterNA: gt, animate: y, precision: L, customLayers: Gt, showColorScale: ot, timeline: Rt, naLabel: rt, hideAxisLine: st }), t[0] = y, t[1] = Et, t[2] = zt, t[3] = nt, t[4] = Ct, t[5] = B, t[6] = V, t[7] = ft, t[8] = et, t[9] = Ut, t[10] = Gt, t[11] = l, t[12] = m, t[13] = Ht, t[14] = gt, t[15] = R, t[16] = Tt, t[17] = a, t[18] = Z, t[19] = X, t[20] = J, t[21] = st, t[22] = p, t[23] = d, t[24] = Xt, t[25] = Yt, t[26] = it, t[27] = x, t[28] = c, t[29] = rt, t[30] = ut, t[31] = s, t[32] = pt, t[33] = G, t[34] = Vt, t[35] = L, t[36] = Y, t[37] = F, t[38] = dt, t[39] = Pt, t[40] = C, t[41] = ot, t[42] = T, t[43] = Ft, t[44] = lt, t[45] = E, t[46] = D, t[47] = Jt, t[48] = r, t[49] = Lt, t[50] = at, t[51] = Rt, t[52] = Q, t[53] = K, t[54] = W, t[55] = _, t[56] = A, t[57] = k) : k = t[57], k;
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;
2376
2384
  }
2377
2385
  function ea(e) {
2378
- const t = we.c(59), {
2379
- data: l,
2380
- graphTitle: X,
2381
- colors: Ut,
2382
- sources: Jt,
2383
- graphDescription: Tt,
2384
- barPadding: Ct,
2385
- showTicks: Ft,
2386
- leftMargin: W,
2387
- rightMargin: J,
2388
- topMargin: A,
2389
- bottomMargin: R,
2390
- truncateBy: ft,
2391
- showLabels: et,
2392
- showValues: Lt,
2393
- backgroundColor: Y,
2394
- suffix: lt,
2395
- prefix: Vt,
2396
- height: zt,
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,
2397
2405
  width: Xt,
2398
- footNote: C,
2399
- colorDomain: K,
2400
- colorLegendTitle: B,
2401
- padding: T,
2402
- tooltip: dt,
2403
- onSeriesMouseOver: Q,
2404
- relativeHeight: pt,
2405
- refValues: F,
2406
- graphID: Z,
2407
- maxValue: it,
2408
- onSeriesMouseClick: c,
2409
- graphDownload: s,
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,
2410
2418
  dataDownload: a,
2411
- language: m,
2412
- theme: d,
2413
- labelOrder: p,
2414
- minHeight: x,
2419
+ language: f,
2420
+ theme: x,
2421
+ labelOrder: w,
2422
+ minHeight: h,
2415
2423
  maxBarThickness: at,
2416
- sortParameter: D,
2417
- sortData: E,
2418
- maxNumberOfBars: Yt,
2419
- minBarThickness: Et,
2420
- ariaLabel: Pt,
2421
- resetSelectionOnDoubleClick: Ht,
2422
- detailsOnClick: nt,
2423
- barAxisTitle: ut,
2424
- noOfTicks: _,
2425
- valueColor: u,
2426
- orientation: r,
2427
- styles: V,
2428
- classNames: gt,
2429
- filterNA: y,
2430
- animate: L,
2431
- precision: Gt,
2432
- customLayers: ot,
2433
- showColorScale: Rt,
2434
- timeline: rt,
2435
- naLabel: Wt,
2436
- hideAxisLine: G
2437
- } = e, st = r === void 0 ? "vertical" : r, k = G === void 0 ? !1 : G;
2438
- let xt;
2439
- return t[0] !== L || t[1] !== Pt || t[2] !== Y || t[3] !== ut || t[4] !== Ct || t[5] !== R || t[6] !== gt || t[7] !== K || t[8] !== B || t[9] !== Ut || t[10] !== ot || t[11] !== l || t[12] !== a || t[13] !== nt || t[14] !== y || t[15] !== C || t[16] !== Tt || t[17] !== s || t[18] !== Z || t[19] !== X || t[20] !== zt || t[21] !== k || t[22] !== p || t[23] !== m || t[24] !== W || t[25] !== at || t[26] !== Yt || t[27] !== it || t[28] !== Et || t[29] !== x || t[30] !== Wt || t[31] !== _ || t[32] !== c || t[33] !== Q || t[34] !== st || t[35] !== T || t[36] !== Gt || t[37] !== Vt || t[38] !== F || t[39] !== pt || t[40] !== Ht || t[41] !== J || t[42] !== Rt || t[43] !== et || t[44] !== Ft || t[45] !== Lt || t[46] !== E || t[47] !== D || t[48] !== Jt || t[49] !== V || t[50] !== lt || t[51] !== d || t[52] !== rt || t[53] !== dt || t[54] !== A || t[55] !== ft || t[56] !== u || t[57] !== Xt ? (xt = /* @__PURE__ */ i.jsx(al, { data: l, graphTitle: X, colors: Ut, sources: Jt, graphDescription: Tt, barPadding: Ct, showTicks: Ft, leftMargin: W, rightMargin: J, topMargin: A, bottomMargin: R, truncateBy: ft, showLabels: et, showValues: Lt, backgroundColor: Y, suffix: lt, prefix: Vt, height: zt, width: Xt, footNote: C, colorDomain: K, colorLegendTitle: B, padding: T, tooltip: dt, onSeriesMouseOver: Q, relativeHeight: pt, refValues: F, graphID: Z, maxValue: it, onSeriesMouseClick: c, graphDownload: s, dataDownload: a, language: m, theme: d, labelOrder: p, minHeight: x, maxBarThickness: at, sortParameter: D, sortData: E, maxNumberOfBars: Yt, minBarThickness: Et, ariaLabel: Pt, resetSelectionOnDoubleClick: Ht, styles: V, detailsOnClick: nt, barAxisTitle: ut, noOfTicks: _, valueColor: u, classNames: gt, filterNA: y, animate: L, precision: Gt, customLayers: ot, showColorScale: Rt, timeline: rt, naLabel: Wt, orientation: st, hideAxisLine: k }), t[0] = L, t[1] = Pt, t[2] = Y, t[3] = ut, t[4] = Ct, t[5] = R, t[6] = gt, t[7] = K, t[8] = B, t[9] = Ut, t[10] = ot, t[11] = l, t[12] = a, t[13] = nt, t[14] = y, t[15] = C, t[16] = Tt, t[17] = s, t[18] = Z, t[19] = X, t[20] = zt, t[21] = k, t[22] = p, t[23] = m, t[24] = W, t[25] = at, t[26] = Yt, t[27] = it, t[28] = Et, t[29] = x, t[30] = Wt, t[31] = _, t[32] = c, t[33] = Q, t[34] = st, t[35] = T, t[36] = Gt, t[37] = Vt, t[38] = F, t[39] = pt, t[40] = Ht, t[41] = J, t[42] = Rt, t[43] = et, t[44] = Ft, t[45] = Lt, t[46] = E, t[47] = D, t[48] = Jt, t[49] = V, t[50] = lt, t[51] = d, t[52] = rt, t[53] = dt, t[54] = A, t[55] = ft, t[56] = u, t[57] = Xt, t[58] = xt) : xt = t[58], xt;
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,
2434
+ 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,
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;
2440
2449
  }
2441
2450
  export {
2442
2451
  ta as GroupedBarGraph,
2443
- _l as SimpleBarGraph,
2452
+ _s as SimpleBarGraph,
2444
2453
  ea as StackedBarGraph
2445
2454
  };
2446
2455
  //# sourceMappingURL=BarGraph.js.map