@undp/data-viz 1.5.9 → 2.0.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 (670) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.d.ts +1 -0
  4. package/dist/AreaChart.js +420 -520
  5. package/dist/AreaChart.js.map +1 -1
  6. package/dist/Axis-CRyfcLjc.js +32 -0
  7. package/dist/Axis-CRyfcLjc.js.map +1 -0
  8. package/dist/Axis-DxRV2yMi.cjs +2 -0
  9. package/dist/Axis-DxRV2yMi.cjs.map +1 -0
  10. package/dist/AxisTitle-jeI7am8o.js +29 -0
  11. package/dist/AxisTitle-jeI7am8o.js.map +1 -0
  12. package/dist/AxisTitle-sS5bLLR7.cjs +2 -0
  13. package/dist/AxisTitle-sS5bLLR7.cjs.map +1 -0
  14. package/dist/BarGraph.cjs +1 -1
  15. package/dist/BarGraph.cjs.map +1 -1
  16. package/dist/BarGraph.d.ts +1 -0
  17. package/dist/BarGraph.js +2188 -4045
  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 +1 -0
  22. package/dist/BasicStatCard.js +120 -186
  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 +5 -0
  27. package/dist/BeeSwarmChart.js +500 -1018
  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 +1 -0
  32. package/dist/BiVariateChoroplethMap.js +458 -699
  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 +1 -0
  37. package/dist/BulletChart.js +863 -1414
  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 +1 -0
  42. package/dist/ButterflyChart.js +474 -684
  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 +1 -0
  47. package/dist/ChoroplethMap.js +466 -720
  48. package/dist/ChoroplethMap.js.map +1 -1
  49. package/dist/CirclePackingGraph.cjs +1 -1
  50. package/dist/CirclePackingGraph.d.ts +1 -0
  51. package/dist/CirclePackingGraph.js +5 -4
  52. package/dist/CirclePackingGraph.js.map +1 -1
  53. package/dist/ColorLegend.cjs +1 -1
  54. package/dist/ColorLegend.cjs.map +1 -1
  55. package/dist/ColorLegend.js +57 -44
  56. package/dist/ColorLegend.js.map +1 -1
  57. package/dist/ColorLegendWithMouseOver.cjs +1 -1
  58. package/dist/ColorLegendWithMouseOver.cjs.map +1 -1
  59. package/dist/ColorLegendWithMouseOver.js +60 -65
  60. package/dist/ColorLegendWithMouseOver.js.map +1 -1
  61. package/dist/Colors.cjs.map +1 -1
  62. package/dist/Colors.js +44 -430
  63. package/dist/Colors.js.map +1 -1
  64. package/dist/CopyTextButton.cjs +3 -3
  65. package/dist/CopyTextButton.cjs.map +1 -1
  66. package/dist/CopyTextButton.js +537 -455
  67. package/dist/CopyTextButton.js.map +1 -1
  68. package/dist/CsvDownloadButton.cjs +7 -7
  69. package/dist/CsvDownloadButton.cjs.map +1 -1
  70. package/dist/CsvDownloadButton.js +442 -447
  71. package/dist/CsvDownloadButton.js.map +1 -1
  72. package/dist/DataCards.cjs +5 -5
  73. package/dist/DataCards.cjs.map +1 -1
  74. package/dist/DataCards.d.ts +1 -0
  75. package/dist/DataCards.js +488 -581
  76. package/dist/DataCards.js.map +1 -1
  77. package/dist/DataTable.cjs +1 -1
  78. package/dist/DataTable.cjs.map +1 -1
  79. package/dist/DataTable.d.ts +1 -0
  80. package/dist/DataTable.js +183 -326
  81. package/dist/DataTable.js.map +1 -1
  82. package/dist/DifferenceLineChart.cjs +1 -1
  83. package/dist/DifferenceLineChart.cjs.map +1 -1
  84. package/dist/DifferenceLineChart.d.ts +1 -0
  85. package/dist/DifferenceLineChart.js +729 -794
  86. package/dist/DifferenceLineChart.js.map +1 -1
  87. package/dist/DonutChart.cjs +1 -1
  88. package/dist/DonutChart.cjs.map +1 -1
  89. package/dist/DonutChart.d.ts +1 -4
  90. package/dist/DonutChart.js +260 -444
  91. package/dist/DonutChart.js.map +1 -1
  92. package/dist/DotDensityMap.cjs +1 -1
  93. package/dist/DotDensityMap.cjs.map +1 -1
  94. package/dist/DotDensityMap.d.ts +1 -0
  95. package/dist/DotDensityMap.js +387 -574
  96. package/dist/DotDensityMap.js.map +1 -1
  97. package/dist/{DropdownSelect-6kjXM6oW.js → DropdownSelect-BbdPQa2k.js} +1401 -1374
  98. package/dist/DropdownSelect-BbdPQa2k.js.map +1 -0
  99. package/dist/DropdownSelect-Doz3mCrM.cjs +29 -0
  100. package/dist/DropdownSelect-Doz3mCrM.cjs.map +1 -0
  101. package/dist/DualAxisLineChart.cjs +1 -1
  102. package/dist/DualAxisLineChart.cjs.map +1 -1
  103. package/dist/DualAxisLineChart.d.ts +1 -0
  104. package/dist/DualAxisLineChart.js +617 -712
  105. package/dist/DualAxisLineChart.js.map +1 -1
  106. package/dist/DumbbellChart.cjs +1 -1
  107. package/dist/DumbbellChart.cjs.map +1 -1
  108. package/dist/DumbbellChart.d.ts +1 -0
  109. package/dist/DumbbellChart.js +789 -1499
  110. package/dist/DumbbellChart.js.map +1 -1
  111. package/dist/EmptyState-BZo1BbAn.js +15 -0
  112. package/dist/{EmptyState-36lXXyui.js.map → EmptyState-BZo1BbAn.js.map} +1 -1
  113. package/dist/EmptyState-sAEZ_5rU.cjs +2 -0
  114. package/dist/{EmptyState-B8IpKGcL.cjs.map → EmptyState-sAEZ_5rU.cjs.map} +1 -1
  115. package/dist/ExcelDownloadButton.cjs +1 -1
  116. package/dist/ExcelDownloadButton.cjs.map +1 -1
  117. package/dist/ExcelDownloadButton.js +20 -24
  118. package/dist/ExcelDownloadButton.js.map +1 -1
  119. package/dist/FootNote.cjs +1 -1
  120. package/dist/FootNote.cjs.map +1 -1
  121. package/dist/FootNote.js +26 -17
  122. package/dist/FootNote.js.map +1 -1
  123. package/dist/GeoHubCompareMaps.cjs +1 -1
  124. package/dist/GeoHubCompareMaps.cjs.map +1 -1
  125. package/dist/GeoHubCompareMaps.d.ts +1 -0
  126. package/dist/GeoHubCompareMaps.js +265 -340
  127. package/dist/GeoHubCompareMaps.js.map +1 -1
  128. package/dist/GeoHubMap.cjs +1 -1
  129. package/dist/GeoHubMap.cjs.map +1 -1
  130. package/dist/GeoHubMap.d.ts +1 -0
  131. package/dist/GeoHubMap.js +214 -379
  132. package/dist/GeoHubMap.js.map +1 -1
  133. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  134. package/dist/GeoHubMapWithLayerSelection.cjs.map +1 -1
  135. package/dist/GeoHubMapWithLayerSelection.d.ts +1 -0
  136. package/dist/GeoHubMapWithLayerSelection.js +192 -278
  137. package/dist/GeoHubMapWithLayerSelection.js.map +1 -1
  138. package/dist/GraphContainer-CRqzdKu2.js +78 -0
  139. package/dist/GraphContainer-CRqzdKu2.js.map +1 -0
  140. package/dist/GraphContainer-d8A46BK2.cjs +2 -0
  141. package/dist/GraphContainer-d8A46BK2.cjs.map +1 -0
  142. package/dist/GraphDescription.cjs +1 -1
  143. package/dist/GraphDescription.cjs.map +1 -1
  144. package/dist/GraphDescription.js +23 -17
  145. package/dist/GraphDescription.js.map +1 -1
  146. package/dist/GraphEl-BkyLYXG5.cjs +2 -0
  147. package/dist/GraphEl-BkyLYXG5.cjs.map +1 -0
  148. package/dist/{GraphEl-2IiUDxjR.js → GraphEl-DzRon4cb.js} +181 -202
  149. package/dist/GraphEl-DzRon4cb.js.map +1 -0
  150. package/dist/GraphFooter.cjs +1 -1
  151. package/dist/GraphFooter.cjs.map +1 -1
  152. package/dist/GraphFooter.js +28 -18
  153. package/dist/GraphFooter.js.map +1 -1
  154. package/dist/GraphHeader.cjs +1 -1
  155. package/dist/GraphHeader.cjs.map +1 -1
  156. package/dist/GraphHeader.d.ts +2 -1
  157. package/dist/GraphHeader.js +45 -59
  158. package/dist/GraphHeader.js.map +1 -1
  159. package/dist/GraphTitle.cjs +1 -1
  160. package/dist/GraphTitle.cjs.map +1 -1
  161. package/dist/GraphTitle.js +29 -24
  162. package/dist/GraphTitle.js.map +1 -1
  163. package/dist/GriddedGraphs.cjs +1 -1
  164. package/dist/GriddedGraphs.cjs.map +1 -1
  165. package/dist/GriddedGraphs.d.ts +1 -0
  166. package/dist/GriddedGraphs.js +216 -450
  167. package/dist/GriddedGraphs.js.map +1 -1
  168. package/dist/GriddedGraphsFromConfig.cjs +1 -1
  169. package/dist/GriddedGraphsFromConfig.cjs.map +1 -1
  170. package/dist/GriddedGraphsFromConfig.d.ts +1 -0
  171. package/dist/GriddedGraphsFromConfig.js +22 -36
  172. package/dist/GriddedGraphsFromConfig.js.map +1 -1
  173. package/dist/HeatMap.cjs +1 -1
  174. package/dist/HeatMap.cjs.map +1 -1
  175. package/dist/HeatMap.d.ts +1 -0
  176. package/dist/HeatMap.js +278 -446
  177. package/dist/HeatMap.js.map +1 -1
  178. package/dist/Histogram.cjs +1 -1
  179. package/dist/Histogram.cjs.map +1 -1
  180. package/dist/Histogram.d.ts +1 -0
  181. package/dist/Histogram.js +154 -264
  182. package/dist/Histogram.js.map +1 -1
  183. package/dist/ImageDownloadButton.cjs +1 -1
  184. package/dist/ImageDownloadButton.cjs.map +1 -1
  185. package/dist/ImageDownloadButton.d.ts +2 -1
  186. package/dist/ImageDownloadButton.js +21 -25
  187. package/dist/ImageDownloadButton.js.map +1 -1
  188. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  189. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  190. package/dist/LineChartWithConfidenceInterval.d.ts +1 -0
  191. package/dist/LineChartWithConfidenceInterval.js +674 -825
  192. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  193. package/dist/LinearColorLegend.cjs +1 -1
  194. package/dist/LinearColorLegend.cjs.map +1 -1
  195. package/dist/LinearColorLegend.js +49 -30
  196. package/dist/LinearColorLegend.js.map +1 -1
  197. package/dist/Modal-DGcuAHyK.js +1047 -0
  198. package/dist/Modal-DGcuAHyK.js.map +1 -0
  199. package/dist/Modal-JW_IExO3.cjs +46 -0
  200. package/dist/Modal-JW_IExO3.cjs.map +1 -0
  201. package/dist/MultiGraphDashboard.cjs +1 -1
  202. package/dist/MultiGraphDashboard.cjs.map +1 -1
  203. package/dist/MultiGraphDashboard.d.ts +1 -0
  204. package/dist/MultiGraphDashboard.js +122 -290
  205. package/dist/MultiGraphDashboard.js.map +1 -1
  206. package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
  207. package/dist/MultiGraphDashboardFromConfig.cjs.map +1 -1
  208. package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
  209. package/dist/MultiGraphDashboardFromConfig.js +22 -31
  210. package/dist/MultiGraphDashboardFromConfig.js.map +1 -1
  211. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  212. package/dist/MultiGraphDashboardWideToLongFormat.cjs.map +1 -1
  213. package/dist/MultiGraphDashboardWideToLongFormat.d.ts +1 -0
  214. package/dist/MultiGraphDashboardWideToLongFormat.js +137 -223
  215. package/dist/MultiGraphDashboardWideToLongFormat.js.map +1 -1
  216. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
  217. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs.map +1 -1
  218. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +1 -0
  219. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +25 -27
  220. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js.map +1 -1
  221. package/dist/MultiLineAltChart.cjs +1 -1
  222. package/dist/MultiLineAltChart.cjs.map +1 -1
  223. package/dist/MultiLineAltChart.d.ts +1 -0
  224. package/dist/MultiLineAltChart.js +581 -659
  225. package/dist/MultiLineAltChart.js.map +1 -1
  226. package/dist/MultiLineChart.cjs +1 -1
  227. package/dist/MultiLineChart.cjs.map +1 -1
  228. package/dist/MultiLineChart.d.ts +1 -0
  229. package/dist/MultiLineChart.js +617 -725
  230. package/dist/MultiLineChart.js.map +1 -1
  231. package/dist/ParetoChart.cjs +1 -1
  232. package/dist/ParetoChart.cjs.map +1 -1
  233. package/dist/ParetoChart.d.ts +1 -0
  234. package/dist/ParetoChart.js +531 -635
  235. package/dist/ParetoChart.js.map +1 -1
  236. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  237. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
  238. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
  239. package/dist/PerformanceIntensiveMultiGraphDashboard.js +147 -338
  240. package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
  241. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
  242. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs.map +1 -1
  243. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
  244. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +22 -31
  245. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js.map +1 -1
  246. package/dist/PerformanceIntensiveScrollStory.cjs +1 -1
  247. package/dist/PerformanceIntensiveScrollStory.cjs.map +1 -1
  248. package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
  249. package/dist/PerformanceIntensiveScrollStory.js +93 -114
  250. package/dist/PerformanceIntensiveScrollStory.js.map +1 -1
  251. package/dist/RadarChart.cjs +1 -1
  252. package/dist/RadarChart.cjs.map +1 -1
  253. package/dist/RadarChart.d.ts +1 -0
  254. package/dist/RadarChart.js +426 -575
  255. package/dist/RadarChart.js.map +1 -1
  256. package/dist/ReferenceLine-2XCwHXQ4.js +162 -0
  257. package/dist/ReferenceLine-2XCwHXQ4.js.map +1 -0
  258. package/dist/ReferenceLine-BH0qdf4R.cjs +2 -0
  259. package/dist/ReferenceLine-BH0qdf4R.cjs.map +1 -0
  260. package/dist/RegressionLine-BOTTNSrr.cjs +2 -0
  261. package/dist/RegressionLine-BOTTNSrr.cjs.map +1 -0
  262. package/dist/RegressionLine-DAcY2DjT.js +87 -0
  263. package/dist/RegressionLine-DAcY2DjT.js.map +1 -0
  264. package/dist/SVGDownloadButton.cjs +1 -1
  265. package/dist/SVGDownloadButton.cjs.map +1 -1
  266. package/dist/SVGDownloadButton.js +21 -25
  267. package/dist/SVGDownloadButton.js.map +1 -1
  268. package/dist/SankeyChart.cjs +1 -1
  269. package/dist/SankeyChart.cjs.map +1 -1
  270. package/dist/SankeyChart.d.ts +1 -0
  271. package/dist/SankeyChart.js +665 -854
  272. package/dist/SankeyChart.js.map +1 -1
  273. package/dist/ScatterPlot.cjs +1 -1
  274. package/dist/ScatterPlot.cjs.map +1 -1
  275. package/dist/ScatterPlot.d.ts +1 -0
  276. package/dist/ScatterPlot.js +675 -815
  277. package/dist/ScatterPlot.js.map +1 -1
  278. package/dist/ScrollStory.cjs +1 -1
  279. package/dist/ScrollStory.cjs.map +1 -1
  280. package/dist/ScrollStory.d.ts +1 -0
  281. package/dist/ScrollStory.js +85 -97
  282. package/dist/ScrollStory.js.map +1 -1
  283. package/dist/SimpleLineChart.cjs +1 -1
  284. package/dist/SimpleLineChart.cjs.map +1 -1
  285. package/dist/SimpleLineChart.d.ts +1 -0
  286. package/dist/SimpleLineChart.js +504 -613
  287. package/dist/SimpleLineChart.js.map +1 -1
  288. package/dist/SingleGraphDashboard.cjs +1 -1
  289. package/dist/SingleGraphDashboard.cjs.map +1 -1
  290. package/dist/SingleGraphDashboard.d.ts +2 -1
  291. package/dist/SingleGraphDashboard.js +279 -507
  292. package/dist/SingleGraphDashboard.js.map +1 -1
  293. package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
  294. package/dist/SingleGraphDashboardFromConfig.cjs.map +1 -1
  295. package/dist/SingleGraphDashboardFromConfig.d.ts +2 -1
  296. package/dist/SingleGraphDashboardFromConfig.js +25 -31
  297. package/dist/SingleGraphDashboardFromConfig.js.map +1 -1
  298. package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
  299. package/dist/SingleGraphDashboardGeoHubMaps.cjs.map +1 -1
  300. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
  301. package/dist/SingleGraphDashboardGeoHubMaps.js +146 -168
  302. package/dist/SingleGraphDashboardGeoHubMaps.js.map +1 -1
  303. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
  304. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs.map +1 -1
  305. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
  306. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +25 -21
  307. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js.map +1 -1
  308. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  309. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  310. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
  311. package/dist/SingleGraphDashboardThreeDGraphs.js +357 -591
  312. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  313. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
  314. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs.map +1 -1
  315. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
  316. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +25 -31
  317. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js.map +1 -1
  318. package/dist/SlopeChart.cjs +1 -1
  319. package/dist/SlopeChart.cjs.map +1 -1
  320. package/dist/SlopeChart.d.ts +1 -0
  321. package/dist/SlopeChart.js +539 -573
  322. package/dist/SlopeChart.js.map +1 -1
  323. package/dist/Source-DYMJRrsq.cjs +2 -0
  324. package/dist/Source-DYMJRrsq.cjs.map +1 -0
  325. package/dist/Source-DwTHB8fn.js +78 -0
  326. package/dist/Source-DwTHB8fn.js.map +1 -0
  327. package/dist/Source.cjs +1 -1
  328. package/dist/Source.cjs.map +1 -1
  329. package/dist/Source.js +4 -38
  330. package/dist/Source.js.map +1 -1
  331. package/dist/SparkLine.cjs +1 -1
  332. package/dist/SparkLine.cjs.map +1 -1
  333. package/dist/SparkLine.d.ts +1 -0
  334. package/dist/SparkLine.js +286 -314
  335. package/dist/SparkLine.js.map +1 -1
  336. package/dist/Spinner-D7rnnwnA.js +47 -0
  337. package/dist/Spinner-D7rnnwnA.js.map +1 -0
  338. package/dist/Spinner-DRMBUsX7.cjs +2 -0
  339. package/dist/Spinner-DRMBUsX7.cjs.map +1 -0
  340. package/dist/StatCardFromData.cjs +1 -1
  341. package/dist/StatCardFromData.cjs.map +1 -1
  342. package/dist/StatCardFromData.d.ts +1 -0
  343. package/dist/StatCardFromData.js +163 -243
  344. package/dist/StatCardFromData.js.map +1 -1
  345. package/dist/StripChart.cjs +1 -1
  346. package/dist/StripChart.cjs.map +1 -1
  347. package/dist/StripChart.d.ts +1 -0
  348. package/dist/StripChart.js +665 -983
  349. package/dist/StripChart.js.map +1 -1
  350. package/dist/ThreeDGlobe.cjs +1 -1
  351. package/dist/ThreeDGlobe.cjs.map +1 -1
  352. package/dist/ThreeDGlobe.d.ts +1 -0
  353. package/dist/ThreeDGlobe.js +356 -519
  354. package/dist/ThreeDGlobe.js.map +1 -1
  355. package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
  356. package/dist/ThresholdColorLegendWithMouseOver.cjs.map +1 -1
  357. package/dist/ThresholdColorLegendWithMouseOver.js +96 -126
  358. package/dist/ThresholdColorLegendWithMouseOver.js.map +1 -1
  359. package/dist/Tooltip-4dJo4_AF.cjs +2 -0
  360. package/dist/Tooltip-4dJo4_AF.cjs.map +1 -0
  361. package/dist/Tooltip-CwWUegPB.js +43 -0
  362. package/dist/Tooltip-CwWUegPB.js.map +1 -0
  363. package/dist/TreeMapGraph.cjs +1 -1
  364. package/dist/TreeMapGraph.cjs.map +1 -1
  365. package/dist/TreeMapGraph.d.ts +1 -0
  366. package/dist/TreeMapGraph.js +479 -617
  367. package/dist/TreeMapGraph.js.map +1 -1
  368. package/dist/Types.d.ts +1 -0
  369. package/dist/Typography-DX7PlgQU.cjs +2 -0
  370. package/dist/Typography-DX7PlgQU.cjs.map +1 -0
  371. package/dist/Typography-PxtFcnJb.js +142 -0
  372. package/dist/Typography-PxtFcnJb.js.map +1 -0
  373. package/dist/UnitChart.cjs +1 -1
  374. package/dist/UnitChart.cjs.map +1 -1
  375. package/dist/UnitChart.d.ts +1 -0
  376. package/dist/UnitChart.js +160 -212
  377. package/dist/UnitChart.js.map +1 -1
  378. package/dist/XAxesLabels-D5X8jngD.cjs +2 -0
  379. package/dist/XAxesLabels-D5X8jngD.cjs.map +1 -0
  380. package/dist/XAxesLabels-DNO0KmjL.js +73 -0
  381. package/dist/XAxesLabels-DNO0KmjL.js.map +1 -0
  382. package/dist/XTicksAndGridLines-B6CELS7q.cjs +2 -0
  383. package/dist/XTicksAndGridLines-B6CELS7q.cjs.map +1 -0
  384. package/dist/XTicksAndGridLines-CObVFSm4.js +38 -0
  385. package/dist/XTicksAndGridLines-CObVFSm4.js.map +1 -0
  386. package/dist/YAxesLabels-DcS85Beo.cjs +2 -0
  387. package/dist/YAxesLabels-DcS85Beo.cjs.map +1 -0
  388. package/dist/YAxesLabels-Dnnng49-.js +70 -0
  389. package/dist/YAxesLabels-Dnnng49-.js.map +1 -0
  390. package/dist/YTicksAndGridLines-4pxTRlRK.cjs +2 -0
  391. package/dist/YTicksAndGridLines-4pxTRlRK.cjs.map +1 -0
  392. package/dist/YTicksAndGridLines-Blepl7XF.js +38 -0
  393. package/dist/YTicksAndGridLines-Blepl7XF.js.map +1 -0
  394. package/dist/{band-BEjh2CHI.js → band-CyHaVft5.js} +3 -3
  395. package/dist/{band-BEjh2CHI.js.map → band-CyHaVft5.js.map} +1 -1
  396. package/dist/{band-CAApY4Pd.cjs → band-VYfcZeJ2.cjs} +2 -2
  397. package/dist/{band-CAApY4Pd.cjs.map → band-VYfcZeJ2.cjs.map} +1 -1
  398. package/dist/checkIfMultiple-Y9iKaV_u.js +950 -0
  399. package/dist/checkIfMultiple-Y9iKaV_u.js.map +1 -0
  400. package/dist/checkIfMultiple-wg6hJLXy.cjs +12 -0
  401. package/dist/checkIfMultiple-wg6hJLXy.cjs.map +1 -0
  402. package/dist/customArea-BUhPiPT6.js +163 -0
  403. package/dist/{customArea-x4L4xwLl.js.map → customArea-BUhPiPT6.js.map} +1 -1
  404. package/dist/customArea-CMF5g-C3.cjs +2 -0
  405. package/dist/{customArea-1G1S78s_.cjs.map → customArea-CMF5g-C3.cjs.map} +1 -1
  406. package/dist/delaunay-C1uAf38t.js.map +1 -1
  407. package/dist/delaunay-rcy0HhZi.cjs.map +1 -1
  408. package/dist/{ensureCompleteData-DlmibgaI.js → ensureCompleteData-DNKEGRiP.js} +12 -32
  409. package/dist/{ensureCompleteData-DlmibgaI.js.map → ensureCompleteData-DNKEGRiP.js.map} +1 -1
  410. package/dist/{ensureCompleteData-DkQYPeDa.cjs → ensureCompleteData-I6nYmT8E.cjs} +2 -2
  411. package/dist/{ensureCompleteData-DkQYPeDa.cjs.map → ensureCompleteData-I6nYmT8E.cjs.map} +1 -1
  412. package/dist/{excelDownload-BOA-lskf.js → excelDownload-BEC1AyQW.js} +12 -2
  413. package/dist/{excelDownload-BOA-lskf.js.map → excelDownload-BEC1AyQW.js.map} +1 -1
  414. package/dist/excelDownload-BQpsCa62.cjs.map +1 -1
  415. package/dist/{fetchAndParseData-sapWbnYk.js → fetchAndParseData-BpqkBPQL.js} +15 -28
  416. package/dist/{fetchAndParseData-sapWbnYk.js.map → fetchAndParseData-BpqkBPQL.js.map} +1 -1
  417. package/dist/fetchAndParseData-l5HGMAEs.cjs +16 -0
  418. package/dist/{fetchAndParseData-Ba-_CgxS.cjs.map → fetchAndParseData-l5HGMAEs.cjs.map} +1 -1
  419. package/dist/fetchAndParseData.cjs +1 -1
  420. package/dist/fetchAndParseData.js +1 -1
  421. package/dist/{filterData-9nEcQ-Jp.js → filterData-DsAiFzKY.js} +3 -5
  422. package/dist/{filterData-9nEcQ-Jp.js.map → filterData-DsAiFzKY.js.map} +1 -1
  423. package/dist/{filterData-BoYadk0l.cjs → filterData-T5DQBE9b.cjs} +2 -2
  424. package/dist/{filterData-BoYadk0l.cjs.map → filterData-T5DQBE9b.cjs.map} +1 -1
  425. package/dist/generateRandomString-B5zBiJzS.cjs.map +1 -1
  426. package/dist/generateRandomString-za3IQGfQ.js.map +1 -1
  427. package/dist/{getCentroidCoordinates-Dfk6IqEG.js → getCentroidCoordinates-D7r34N4w.js} +2 -2
  428. package/dist/{getCentroidCoordinates-Dfk6IqEG.js.map → getCentroidCoordinates-D7r34N4w.js.map} +1 -1
  429. package/dist/{getCentroidCoordinates-DxTBqzp2.cjs → getCentroidCoordinates-Dng1HVjO.cjs} +2 -2
  430. package/dist/{getCentroidCoordinates-DxTBqzp2.cjs.map → getCentroidCoordinates-Dng1HVjO.cjs.map} +1 -1
  431. package/dist/getGraphList-BpEWn1Tk.js +227 -0
  432. package/dist/{getGraphList-DuColTJM.js.map → getGraphList-BpEWn1Tk.js.map} +1 -1
  433. package/dist/getGraphList-gf02xgT2.cjs.map +1 -1
  434. package/dist/getJenks-BbngDoBQ.js.map +1 -1
  435. package/dist/getJenks-GYmdwBqm.cjs.map +1 -1
  436. package/dist/getSchema.cjs.map +1 -1
  437. package/dist/getSchema.js +445 -231
  438. package/dist/getSchema.js.map +1 -1
  439. package/dist/getSliderMarks-BmADcPQt.cjs +6 -0
  440. package/dist/getSliderMarks-BmADcPQt.cjs.map +1 -0
  441. package/dist/getSliderMarks-HIDJ0_Cd.js +1033 -0
  442. package/dist/getSliderMarks-HIDJ0_Cd.js.map +1 -0
  443. package/dist/{getTextColorBasedOnBgColor-B6Nk2WBf.js → getTextColorBasedOnBgColor-CDY808zi.js} +11 -3
  444. package/dist/{getTextColorBasedOnBgColor-B6Nk2WBf.js.map → getTextColorBasedOnBgColor-CDY808zi.js.map} +1 -1
  445. package/dist/getTextColorBasedOnBgColor-nqY-bsM_.cjs.map +1 -1
  446. package/dist/{getUniqValue-DiCh_MOD.js → getUniqValue-BKHCm3zE.js} +2 -4
  447. package/dist/{getUniqValue-DiCh_MOD.js.map → getUniqValue-BKHCm3zE.js.map} +1 -1
  448. package/dist/getUniqValue-RViz8tTw.cjs.map +1 -1
  449. package/dist/{imageDownload-Dcci2LEy.js → imageDownload-BX6SILNZ.js} +4 -2
  450. package/dist/{imageDownload-Dcci2LEy.js.map → imageDownload-BX6SILNZ.js.map} +1 -1
  451. package/dist/imageDownload-CgDcm1Sj.cjs.map +1 -1
  452. package/dist/{index-DvVprvy6.js → index-BZQYSqar.js} +7 -7
  453. package/dist/{index-DvVprvy6.js.map → index-BZQYSqar.js.map} +1 -1
  454. package/dist/index-B_sAFsEV.cjs +2 -0
  455. package/dist/{index-BHe3wsWF.cjs.map → index-B_sAFsEV.cjs.map} +1 -1
  456. package/dist/index-BqfRwk1n.js +146 -0
  457. package/dist/index-BqfRwk1n.js.map +1 -0
  458. package/dist/{index-V_JXij1_.js → index-BuwmuDFJ.js} +3 -3
  459. package/dist/{index-V_JXij1_.js.map → index-BuwmuDFJ.js.map} +1 -1
  460. package/dist/index-CHPV5EwG-CTPQjnHt.cjs +84 -0
  461. package/dist/index-CHPV5EwG-CTPQjnHt.cjs.map +1 -0
  462. package/dist/{index-CHPV5EwG-DBWUSD9b.js → index-CHPV5EwG-Curnpaqc.js} +724 -625
  463. package/dist/index-CHPV5EwG-Curnpaqc.js.map +1 -0
  464. package/dist/index-Cno4Q0YE.cjs +2 -0
  465. package/dist/{index-CQ3e6Ewi.cjs.map → index-Cno4Q0YE.cjs.map} +1 -1
  466. package/dist/{index-Cw8sCyo_-BuI_jX5Z.js → index-Cw8sCyo_-B2hEKjzG.js} +16 -16
  467. package/dist/{index-Cw8sCyo_-BuI_jX5Z.js.map → index-Cw8sCyo_-B2hEKjzG.js.map} +1 -1
  468. package/dist/{index-Cw8sCyo_-gxT8ADyn.cjs → index-Cw8sCyo_-BrHiWiRF.cjs} +2 -2
  469. package/dist/{index-Cw8sCyo_-gxT8ADyn.cjs.map → index-Cw8sCyo_-BrHiWiRF.cjs.map} +1 -1
  470. package/dist/index-CyZ1lmi_.cjs +2 -0
  471. package/dist/{index-D72cOtq7.cjs.map → index-CyZ1lmi_.cjs.map} +1 -1
  472. package/dist/index-D491FEn1.js +184 -0
  473. package/dist/index-D491FEn1.js.map +1 -0
  474. package/dist/index-DG2bgAva.cjs +10 -0
  475. package/dist/index-DG2bgAva.cjs.map +1 -0
  476. package/dist/index-DRXx7m-C.cjs +2 -0
  477. package/dist/index-DRXx7m-C.cjs.map +1 -0
  478. package/dist/index-DoY3Ga3W.cjs +2 -0
  479. package/dist/index-DoY3Ga3W.cjs.map +1 -0
  480. package/dist/index-DxXnJ8Ti.cjs +2 -0
  481. package/dist/index-DxXnJ8Ti.cjs.map +1 -0
  482. package/dist/{index-Dzc_aaI9-BKklH89r.js → index-Dzc_aaI9-Bb7gobH_.js} +2 -2
  483. package/dist/{index-Dzc_aaI9-BKklH89r.js.map → index-Dzc_aaI9-Bb7gobH_.js.map} +1 -1
  484. package/dist/{index-Dzc_aaI9-RIk2GRHD.cjs → index-Dzc_aaI9-BmkfPMyc.cjs} +2 -2
  485. package/dist/{index-Dzc_aaI9-RIk2GRHD.cjs.map → index-Dzc_aaI9-BmkfPMyc.cjs.map} +1 -1
  486. package/dist/{index-9tDEUqOZ.js → index-GEsywGxz.js} +9 -9
  487. package/dist/index-GEsywGxz.js.map +1 -0
  488. package/dist/index-SKgJALZg.js +99 -0
  489. package/dist/{index-Bw_eHBVN.js.map → index-SKgJALZg.js.map} +1 -1
  490. package/dist/index-leTnKT2q.js +329 -0
  491. package/dist/index-leTnKT2q.js.map +1 -0
  492. package/dist/index.cjs +1 -1
  493. package/dist/index.d.ts +10 -8
  494. package/dist/index.js +13 -13
  495. package/dist/{init-BhZylTFx.js → init-BJFW6EwE.js} +3 -3
  496. package/dist/{init-BhZylTFx.js.map → init-BJFW6EwE.js.map} +1 -1
  497. package/dist/{linear-BVckp9RD.cjs → linear-BwPAspcq.cjs} +2 -2
  498. package/dist/{linear-BVckp9RD.cjs.map → linear-BwPAspcq.cjs.map} +1 -1
  499. package/dist/{linear-DUdu7l2G.js → linear-BwnDd9KF.js} +3 -3
  500. package/dist/{linear-DUdu7l2G.js.map → linear-BwnDd9KF.js.map} +1 -1
  501. package/dist/numberFormattingFunction-02t-wJta.cjs.map +1 -1
  502. package/dist/numberFormattingFunction-14YCbkN2.js.map +1 -1
  503. package/dist/{ordinal-BOeNbyae.cjs → ordinal-CrsysVE-.cjs} +2 -2
  504. package/dist/ordinal-CrsysVE-.cjs.map +1 -0
  505. package/dist/{ordinal-w9Lu4Stb.js → ordinal-P77xw8aL.js} +24 -24
  506. package/dist/ordinal-P77xw8aL.js.map +1 -0
  507. package/dist/{pow-e8zx3AQJ.js → pow-DE4c7dbW.js} +3 -3
  508. package/dist/{pow-e8zx3AQJ.js.map → pow-DE4c7dbW.js.map} +1 -1
  509. package/dist/{pow-B5-jkdHU.cjs → pow-DgrUorRi.cjs} +2 -2
  510. package/dist/{pow-B5-jkdHU.cjs.map → pow-DgrUorRi.cjs.map} +1 -1
  511. package/dist/{proxy-BYIC9BuT.js → proxy-BxkFHwUw.js} +144 -134
  512. package/dist/proxy-BxkFHwUw.js.map +1 -0
  513. package/dist/proxy-BxvUI_9l.cjs +2 -0
  514. package/dist/proxy-BxvUI_9l.cjs.map +1 -0
  515. package/dist/{removeOutliers-DR48e-18.js → removeOutliers-BqW0sPqj.js} +2 -5
  516. package/dist/{removeOutliers-DR48e-18.js.map → removeOutliers-BqW0sPqj.js.map} +1 -1
  517. package/dist/removeOutliers-WELHHqiI.cjs.map +1 -1
  518. package/dist/{sort-DfK1b0F5.js → sort-BIvMlUH1.js} +5 -5
  519. package/dist/{sort-DfK1b0F5.js.map → sort-BIvMlUH1.js.map} +1 -1
  520. package/dist/{string-CRoCZCYa.cjs → string-C-kRh1bQ.cjs} +2 -2
  521. package/dist/{string-CRoCZCYa.cjs.map → string-C-kRh1bQ.cjs.map} +1 -1
  522. package/dist/{string-B8KlVSPX.js → string-C_xJ4Wg4.js} +3 -3
  523. package/dist/{string-B8KlVSPX.js.map → string-C_xJ4Wg4.js.map} +1 -1
  524. package/dist/string2HTML-CPGr_I5E.cjs +3 -0
  525. package/dist/{string2HTML-z7CwHXcx.cjs.map → string2HTML-CPGr_I5E.cjs.map} +1 -1
  526. package/dist/{string2HTML-oFCROsus.js → string2HTML-DhG75NqA.js} +15 -9
  527. package/dist/{string2HTML-oFCROsus.js.map → string2HTML-DhG75NqA.js.map} +1 -1
  528. package/dist/style.css +1 -1
  529. package/dist/{svgDownload-C2-E3yf2.js → svgDownload-BAoarWNt.js} +4 -2
  530. package/dist/{svgDownload-C2-E3yf2.js.map → svgDownload-BAoarWNt.js.map} +1 -1
  531. package/dist/svgDownload-D9zEGjTF.cjs.map +1 -1
  532. package/dist/{threshold-DFfqcDMa.js → threshold-Bgr20hik.js} +2 -2
  533. package/dist/{threshold-DFfqcDMa.js.map → threshold-Bgr20hik.js.map} +1 -1
  534. package/dist/{time-Byw_jYQ7.cjs → time-CZd5YLSP.cjs} +2 -2
  535. package/dist/{time-Byw_jYQ7.cjs.map → time-CZd5YLSP.cjs.map} +1 -1
  536. package/dist/{time-BzJP5SPC.js → time-DCCfQk3V.js} +3 -3
  537. package/dist/{time-BzJP5SPC.js.map → time-DCCfQk3V.js.map} +1 -1
  538. package/dist/transformData.cjs +1 -1
  539. package/dist/transformData.js +3 -3
  540. package/dist/transformDataForAggregation-CE3bAlHU.js +585 -0
  541. package/dist/{transformDataForAggregation-sBpdlX8n.js.map → transformDataForAggregation-CE3bAlHU.js.map} +1 -1
  542. package/dist/transformDataForAggregation-KXGm6flX.cjs.map +1 -1
  543. package/dist/transformDataForGraphFromFile-BExxcITV.js +14 -0
  544. package/dist/{transformDataForGraphFromFile-ComYvzuz.js.map → transformDataForGraphFromFile-BExxcITV.js.map} +1 -1
  545. package/dist/{transformDataForGraphFromFile-DVZodTHd.cjs → transformDataForGraphFromFile-DaJHQCsL.cjs} +2 -2
  546. package/dist/{transformDataForGraphFromFile-DVZodTHd.cjs.map → transformDataForGraphFromFile-DaJHQCsL.cjs.map} +1 -1
  547. package/dist/transformDataForSelect-D8AuvYdf.js.map +1 -1
  548. package/dist/transformDataForSelect-YmStusCI.cjs.map +1 -1
  549. package/dist/uniqBy-BHy4I8PK.js.map +1 -1
  550. package/dist/uniqBy-O05lp2S5.cjs.map +1 -1
  551. package/dist/{use-in-view-DR-UTB96.js → use-in-view-Cxa7y1TH.js} +2 -2
  552. package/dist/use-in-view-Cxa7y1TH.js.map +1 -0
  553. package/dist/use-in-view-QcfiW0w3.cjs +2 -0
  554. package/dist/use-in-view-QcfiW0w3.cjs.map +1 -0
  555. package/dist/utils.cjs +1 -1
  556. package/dist/utils.js +8 -8
  557. package/dist/validateSchema.cjs.map +1 -1
  558. package/dist/validateSchema.js +33 -29
  559. package/dist/validateSchema.js.map +1 -1
  560. package/dist/{x-BBpi7a_7-Dz2vKSfu.cjs → x-BBpi7a_7-mTo40uId.cjs} +2 -2
  561. package/dist/{x-BBpi7a_7-Dz2vKSfu.cjs.map → x-BBpi7a_7-mTo40uId.cjs.map} +1 -1
  562. package/dist/{y-D0sAaVii.js → y-BqfogMAB.js} +3 -3
  563. package/dist/{y-D0sAaVii.js.map → y-BqfogMAB.js.map} +1 -1
  564. package/dist/{zoom-QipiAl5W.js → zoom-C9MFjAaV.js} +5 -5
  565. package/dist/{zoom-QipiAl5W.js.map → zoom-C9MFjAaV.js.map} +1 -1
  566. package/dist/zoom-DPw8bba-.cjs +2 -0
  567. package/dist/{zoom-BiMNsz72.cjs.map → zoom-DPw8bba-.cjs.map} +1 -1
  568. package/package.json +7 -6
  569. package/dist/Axis-4gUOL8B7.js +0 -43
  570. package/dist/Axis-4gUOL8B7.js.map +0 -1
  571. package/dist/Axis-CkNn1wit.cjs +0 -2
  572. package/dist/Axis-CkNn1wit.cjs.map +0 -1
  573. package/dist/AxisTitle-Wkz-xeQL.cjs +0 -2
  574. package/dist/AxisTitle-Wkz-xeQL.cjs.map +0 -1
  575. package/dist/AxisTitle-v6_xcXZ-.js +0 -20
  576. package/dist/AxisTitle-v6_xcXZ-.js.map +0 -1
  577. package/dist/DropdownSelect-6kjXM6oW.js.map +0 -1
  578. package/dist/DropdownSelect-vt8yiB-g.cjs +0 -29
  579. package/dist/DropdownSelect-vt8yiB-g.cjs.map +0 -1
  580. package/dist/EmptyState-36lXXyui.js +0 -22
  581. package/dist/EmptyState-B8IpKGcL.cjs +0 -2
  582. package/dist/GraphEl-2IiUDxjR.js.map +0 -1
  583. package/dist/GraphEl-qrlfGPe3.cjs +0 -2
  584. package/dist/GraphEl-qrlfGPe3.cjs.map +0 -1
  585. package/dist/Modal-Cg8daIlV.js +0 -1030
  586. package/dist/Modal-Cg8daIlV.js.map +0 -1
  587. package/dist/Modal-CuuJdWkD.cjs +0 -46
  588. package/dist/Modal-CuuJdWkD.cjs.map +0 -1
  589. package/dist/ReferenceLine-CPMaAX0r.js +0 -128
  590. package/dist/ReferenceLine-CPMaAX0r.js.map +0 -1
  591. package/dist/ReferenceLine-D04j-zeV.cjs +0 -2
  592. package/dist/ReferenceLine-D04j-zeV.cjs.map +0 -1
  593. package/dist/RegressionLine-CW7iViH2.js +0 -49
  594. package/dist/RegressionLine-CW7iViH2.js.map +0 -1
  595. package/dist/RegressionLine-D-49RaHa.cjs +0 -2
  596. package/dist/RegressionLine-D-49RaHa.cjs.map +0 -1
  597. package/dist/Spinner-Bpz70q_g.js +0 -30
  598. package/dist/Spinner-Bpz70q_g.js.map +0 -1
  599. package/dist/Spinner-C6wLp85s.cjs +0 -2
  600. package/dist/Spinner-C6wLp85s.cjs.map +0 -1
  601. package/dist/Tooltip-6LIdPQGC.js +0 -46
  602. package/dist/Tooltip-6LIdPQGC.js.map +0 -1
  603. package/dist/Tooltip-Cpv0QohJ.cjs +0 -2
  604. package/dist/Tooltip-Cpv0QohJ.cjs.map +0 -1
  605. package/dist/Typography-BDULiwlF.cjs +0 -2
  606. package/dist/Typography-BDULiwlF.cjs.map +0 -1
  607. package/dist/Typography-LmZ9LEpe.js +0 -140
  608. package/dist/Typography-LmZ9LEpe.js.map +0 -1
  609. package/dist/XAxesLabels-CLZnBgSr.cjs +0 -2
  610. package/dist/XAxesLabels-CLZnBgSr.cjs.map +0 -1
  611. package/dist/XAxesLabels-SOSmso5J.js +0 -57
  612. package/dist/XAxesLabels-SOSmso5J.js.map +0 -1
  613. package/dist/XTicksAndGridLines-DuydSnZ_.js +0 -56
  614. package/dist/XTicksAndGridLines-DuydSnZ_.js.map +0 -1
  615. package/dist/XTicksAndGridLines-RKy7BVCO.cjs +0 -2
  616. package/dist/XTicksAndGridLines-RKy7BVCO.cjs.map +0 -1
  617. package/dist/YAxesLabels-DlDyLvhi.js +0 -52
  618. package/dist/YAxesLabels-DlDyLvhi.js.map +0 -1
  619. package/dist/YAxesLabels-Dqd259-t.cjs +0 -2
  620. package/dist/YAxesLabels-Dqd259-t.cjs.map +0 -1
  621. package/dist/YTicksAndGridLines-7t4MKtGw.js +0 -56
  622. package/dist/YTicksAndGridLines-7t4MKtGw.js.map +0 -1
  623. package/dist/YTicksAndGridLines-qGpRo_t1.cjs +0 -2
  624. package/dist/YTicksAndGridLines-qGpRo_t1.cjs.map +0 -1
  625. package/dist/checkIfMultiple-Dko_cBvE.cjs +0 -12
  626. package/dist/checkIfMultiple-Dko_cBvE.cjs.map +0 -1
  627. package/dist/checkIfMultiple-u2SmbiCf.js +0 -912
  628. package/dist/checkIfMultiple-u2SmbiCf.js.map +0 -1
  629. package/dist/customArea-1G1S78s_.cjs +0 -2
  630. package/dist/customArea-x4L4xwLl.js +0 -175
  631. package/dist/fetchAndParseData-Ba-_CgxS.cjs +0 -16
  632. package/dist/getGraphList-DuColTJM.js +0 -265
  633. package/dist/getSliderMarks-CUxPy36E.cjs +0 -6
  634. package/dist/getSliderMarks-CUxPy36E.cjs.map +0 -1
  635. package/dist/getSliderMarks-_pYOWEtO.js +0 -1023
  636. package/dist/getSliderMarks-_pYOWEtO.js.map +0 -1
  637. package/dist/index-9tDEUqOZ.js.map +0 -1
  638. package/dist/index-BHe3wsWF.cjs +0 -2
  639. package/dist/index-Bw_eHBVN.js +0 -77
  640. package/dist/index-C0bpbS4F.cjs +0 -2
  641. package/dist/index-C0bpbS4F.cjs.map +0 -1
  642. package/dist/index-CE9pmfxt.js +0 -430
  643. package/dist/index-CE9pmfxt.js.map +0 -1
  644. package/dist/index-CEJwW3lL.cjs +0 -2
  645. package/dist/index-CEJwW3lL.cjs.map +0 -1
  646. package/dist/index-CHPV5EwG-DBWUSD9b.js.map +0 -1
  647. package/dist/index-CHPV5EwG-DjM48pIC.cjs +0 -44
  648. package/dist/index-CHPV5EwG-DjM48pIC.cjs.map +0 -1
  649. package/dist/index-CQ3e6Ewi.cjs +0 -2
  650. package/dist/index-Cm8NIdOO.cjs +0 -10
  651. package/dist/index-Cm8NIdOO.cjs.map +0 -1
  652. package/dist/index-CoZbeNM9.cjs +0 -2
  653. package/dist/index-CoZbeNM9.cjs.map +0 -1
  654. package/dist/index-Cwgh7i7X.js +0 -122
  655. package/dist/index-Cwgh7i7X.js.map +0 -1
  656. package/dist/index-D72cOtq7.cjs +0 -2
  657. package/dist/index-zZjQEHlm.js +0 -342
  658. package/dist/index-zZjQEHlm.js.map +0 -1
  659. package/dist/ordinal-BOeNbyae.cjs.map +0 -1
  660. package/dist/ordinal-w9Lu4Stb.js.map +0 -1
  661. package/dist/proxy-BYIC9BuT.js.map +0 -1
  662. package/dist/proxy-CKadx4lC.cjs +0 -2
  663. package/dist/proxy-CKadx4lC.cjs.map +0 -1
  664. package/dist/string2HTML-z7CwHXcx.cjs +0 -3
  665. package/dist/transformDataForAggregation-sBpdlX8n.js +0 -755
  666. package/dist/transformDataForGraphFromFile-ComYvzuz.js +0 -24
  667. package/dist/use-in-view-CEwlc_dd.cjs +0 -2
  668. package/dist/use-in-view-CEwlc_dd.cjs.map +0 -1
  669. package/dist/use-in-view-DR-UTB96.js.map +0 -1
  670. package/dist/zoom-BiMNsz72.cjs +0 -2
@@ -1,740 +1,486 @@
1
- import { j as e, m as we } from "./index-CHPV5EwG-DBWUSD9b.js";
2
- import { useState as v, useRef as oe, useEffect as pe } from "react";
3
- import { g as $e, x as Ne } from "./getSliderMarks-_pYOWEtO.js";
4
- import { y as Ce } from "./Spinner-Bpz70q_g.js";
5
- import { p as De, f as Me } from "./parse-DlCRUFh_.js";
6
- import { i as Se } from "./index-Bwrro8-q.js";
7
- import { z as Oe, t as Ee, g as Pe, a as Ie, b as Le, c as ze, d as We } from "./zoom-QipiAl5W.js";
8
- import { G as Te } from "./Modal-Cg8daIlV.js";
9
- import { u as je } from "./Typography-LmZ9LEpe.js";
10
- import { t as Be } from "./index-9tDEUqOZ.js";
11
- import { n as Ae } from "./numberFormattingFunction-14YCbkN2.js";
12
- import { T as Ve } from "./Tooltip-6LIdPQGC.js";
13
- import { s as Fe } from "./string2HTML-oFCROsus.js";
14
- import { c as He } from "./checkIfNullOrUndefined-DmfiKkNw.js";
15
- import { X as qe, P as _e, f as Ue } from "./index-zZjQEHlm.js";
16
- import { o as Ge } from "./ordinal-w9Lu4Stb.js";
17
- import { t as Xe } from "./threshold-DFfqcDMa.js";
18
- import { s as ke } from "./select-DKy99ogv.js";
19
- import { u as Ye } from "./use-in-view-DR-UTB96.js";
20
- import { m as me } from "./proxy-BYIC9BuT.js";
21
- import { A as Re } from "./index-Cwgh7i7X.js";
22
- import { GraphFooter as Je } from "./GraphFooter.js";
23
- import { GraphHeader as Ke } from "./GraphHeader.js";
24
- import { Colors as de } from "./Colors.js";
25
- import { f as Ze } from "./fetchAndParseData-sapWbnYk.js";
26
- import { g as Qe } from "./getUniqValue-DiCh_MOD.js";
27
- import { g as et } from "./getJenks-BbngDoBQ.js";
28
- import { u as tt } from "./uniqBy-BHy4I8PK.js";
29
- import { s as rt } from "./sort-DfK1b0F5.js";
30
- import { c as at } from "./init-BhZylTFx.js";
31
- function ot(he) {
1
+ import { j as t, m as ct, c as dt } from "./index-CHPV5EwG-Curnpaqc.js";
2
+ import { useState as S, useRef as Se, useEffect as Re, useEffectEvent as mt } from "react";
3
+ import { g as pt, N as ht } from "./getSliderMarks-HIDJ0_Cd.js";
4
+ import { w as ut } from "./Spinner-D7rnnwnA.js";
5
+ import { p as gt, f as ft } from "./parse-DlCRUFh_.js";
6
+ import { i as yt } from "./index-Bwrro8-q.js";
7
+ import { z as xt, t as vt, g as bt, a as kt, b as jt, c as wt, d as $t } from "./zoom-C9MFjAaV.js";
8
+ import { l as Ct } from "./Modal-DGcuAHyK.js";
9
+ import { j as it } from "./Typography-PxtFcnJb.js";
10
+ import { t as Nt } from "./index-GEsywGxz.js";
11
+ import { n as Dt } from "./numberFormattingFunction-14YCbkN2.js";
12
+ import { T as Mt } from "./Tooltip-CwWUegPB.js";
13
+ import { s as St } from "./string2HTML-DhG75NqA.js";
14
+ import { c as Et } from "./checkIfNullOrUndefined-DmfiKkNw.js";
15
+ import { X as Ot, P as Pt, e as It } from "./index-D491FEn1.js";
16
+ import { o as Lt } from "./ordinal-P77xw8aL.js";
17
+ import { t as zt } from "./threshold-Bgr20hik.js";
18
+ import { s as rt } from "./select-DKy99ogv.js";
19
+ import { u as _t } from "./use-in-view-Cxa7y1TH.js";
20
+ import { m as Ue } from "./proxy-BxkFHwUw.js";
21
+ import { A as Wt } from "./index-BqfRwk1n.js";
22
+ import { GraphFooter as Bt } from "./GraphFooter.js";
23
+ import { GraphHeader as Tt } from "./GraphHeader.js";
24
+ import { Colors as Xe } from "./Colors.js";
25
+ import { f as At } from "./fetchAndParseData-BpqkBPQL.js";
26
+ import { g as Ft } from "./getUniqValue-BKHCm3zE.js";
27
+ import { g as Vt } from "./getJenks-BbngDoBQ.js";
28
+ import { u as Ht } from "./uniqBy-BHy4I8PK.js";
29
+ import { a as qt, G as Gt } from "./GraphContainer-CRqzdKu2.js";
30
+ import { s as Ut } from "./sort-BIvMlUH1.js";
31
+ import { a as Xt } from "./init-BJFW6EwE.js";
32
+ function Rt(u) {
32
33
  const {
33
- data: b,
34
- colorDomain: g,
35
- colors: c,
36
- mapData: x,
37
- colorLegendTitle: F,
38
- categorical: S,
39
- height: h,
40
- width: s,
41
- scale: ie,
42
- centerPoint: z,
43
- tooltip: ne,
44
- mapBorderWidth: O,
45
- mapBorderColor: H,
46
- mapNoDataColor: K,
47
- onSeriesMouseOver: Z,
48
- showColorScale: ge,
49
- zoomScaleExtend: ue,
50
- zoomTranslateExtend: E,
51
- highlightedIds: q,
52
- onSeriesMouseClick: y,
53
- mapProperty: _,
54
- resetSelectionOnDoubleClick: fe,
55
- detailsOnClick: C,
56
- styles: ye,
57
- classNames: xe,
58
- mapProjection: U,
59
- zoomInteraction: W,
60
- animate: k,
61
- dimmedOpacity: G,
34
+ data: e,
35
+ colorDomain: c,
36
+ colors: d,
37
+ mapData: $,
38
+ colorLegendTitle: E,
39
+ categorical: F,
40
+ height: j,
41
+ width: g,
42
+ scale: p,
43
+ centerPoint: V,
44
+ tooltip: re,
45
+ mapBorderWidth: H,
46
+ mapBorderColor: X,
47
+ mapNoDataColor: ae,
48
+ onSeriesMouseOver: ie,
49
+ showColorScale: ve,
50
+ zoomScaleExtend: Ee,
51
+ zoomTranslateExtend: Oe,
52
+ highlightedIds: R,
53
+ onSeriesMouseClick: ne,
54
+ mapProperty: y,
55
+ resetSelectionOnDoubleClick: be,
56
+ detailsOnClick: O,
57
+ styles: Pe,
58
+ classNames: ke,
59
+ mapProjection: z,
60
+ zoomInteraction: _,
61
+ animate: D,
62
+ dimmedOpacity: W,
62
63
  customLayers: se,
63
- collapseColorScaleByDefault: Q
64
- } = he, [j, P] = v(void 0), T = oe(null), [w, X] = v(
65
- Q === void 0 ? !(s < 680) : !Q
66
- ), [B, ee] = v(void 0), [Y, $] = v(void 0), [D, te] = v(void 0), [le, R] = v(void 0), A = oe(null), re = Ye(A, {
67
- once: k.once,
68
- amount: k.amount
69
- }), u = oe(null), ve = S ? Ge().domain(g).range(c) : Xe().domain(g).range(c);
70
- pe(() => {
71
- const r = ke(u.current), l = ke(A.current), d = (o) => {
72
- if (W === "noZoom") return !1;
73
- if (W === "button") return !o.type.includes("wheel");
74
- const n = o.type === "wheel", t = o.type.startsWith("touch"), a = o.type === "mousedown" || o.type === "mousemove";
75
- return t ? !0 : n ? W === "scroll" ? !0 : o.ctrlKey : a && !o.button && !o.ctrlKey;
76
- }, i = Oe().scaleExtent(ue).translateExtent(
77
- E || [
78
- [-20, -20],
79
- [s + 20, h + 20]
80
- ]
81
- ).filter(d).on("zoom", ({ transform: o }) => {
82
- r.attr("transform", o);
64
+ collapseColorScaleByDefault: je
65
+ } = u, [P, B] = S(void 0), le = Se(null), [Ie, we] = S(je === void 0 ? !(g < 680) : !je), [q, Y] = S(void 0), [J, K] = S(void 0), [f, h] = S(void 0), [ce, de] = S(void 0), G = Se(null), me = _t(G, {
66
+ once: D.once,
67
+ amount: D.amount
68
+ }), Z = Se(null), Le = F ? Lt().domain(c).range(d) : zt().domain(c).range(d);
69
+ Re(() => {
70
+ const o = rt(Z.current), s = rt(G.current), x = (r) => {
71
+ if (_ === "noZoom") return !1;
72
+ if (_ === "button") return !r.type.includes("wheel");
73
+ const n = r.type === "wheel", l = r.type.startsWith("touch"), i = r.type === "mousedown" || r.type === "mousemove";
74
+ return l ? !0 : n ? _ === "scroll" ? !0 : r.ctrlKey : i && !r.button && !r.ctrlKey;
75
+ }, a = xt().scaleExtent(Ee).translateExtent(Oe || [[-20, -20], [g + 20, j + 20]]).filter(x).on("zoom", ({
76
+ transform: r
77
+ }) => {
78
+ o.attr("transform", r);
83
79
  });
84
- l.call(i), T.current = i;
85
- }, [h, s, W]);
86
- const f = Ee(x), I = Be(x), ae = f[2] - f[0], ce = f[3] - f[1], V = s * 190 / 960 * 360 / ae, be = h * 190 / 678 * 180 / ce, m = ie * Math.min(V, be), N = U === "mercator" ? Pe().rotate([0, 0]).center(z || I.geometry.coordinates).translate([s / 2, h / 2]).scale(m) : U === "equalEarth" ? Ie().rotate([0, 0]).center(z || I.geometry.coordinates).translate([s / 2, h / 2]).scale(m) : U === "naturalEarth" ? Le().rotate([0, 0]).center(z || I.geometry.coordinates).translate([s / 2, h / 2]).scale(m) : U === "orthographic" ? ze().rotate([0, 0]).center(z || I.geometry.coordinates).translate([s / 2, h / 2]).scale(m) : We().rotate([0, 0]).center(z || I.geometry.coordinates).translate([s / 2, h / 2]).scale(m), J = (r) => {
87
- if (!A.current || !T.current) return;
88
- ke(A.current).call(T.current.scaleBy, r === "in" ? 1.2 : 1 / 1.2);
80
+ s.call(a), le.current = a;
81
+ }, [j, g, _]);
82
+ const U = vt($), w = Nt($), pe = U[2] - U[0], T = U[3] - U[1], $e = g * 190 / 960 * 360 / pe, Ce = j * 190 / 678 * 180 / T, A = p * Math.min($e, Ce), I = z === "mercator" ? bt().rotate([0, 0]).center(V || w.geometry.coordinates).translate([g / 2, j / 2]).scale(A) : z === "equalEarth" ? kt().rotate([0, 0]).center(V || w.geometry.coordinates).translate([g / 2, j / 2]).scale(A) : z === "naturalEarth" ? jt().rotate([0, 0]).center(V || w.geometry.coordinates).translate([g / 2, j / 2]).scale(A) : z === "orthographic" ? wt().rotate([0, 0]).center(V || w.geometry.coordinates).translate([g / 2, j / 2]).scale(A) : $t().rotate([0, 0]).center(V || w.geometry.coordinates).translate([g / 2, j / 2]).scale(A), he = (o) => {
83
+ if (!G.current || !le.current) return;
84
+ rt(G.current).call(le.current.scaleBy, o === "in" ? 1.2 : 1 / 1.2);
89
85
  };
90
- return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
91
- /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
92
- /* @__PURE__ */ e.jsx(
93
- me.svg,
94
- {
95
- width: `${s}px`,
96
- height: `${h}px`,
97
- viewBox: `0 0 ${s} ${h}`,
98
- ref: A,
99
- direction: "ltr",
100
- children: /* @__PURE__ */ e.jsxs("g", { ref: u, children: [
101
- se.filter((r) => r.position === "before").map((r) => r.layer),
86
+ return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
87
+ /* @__PURE__ */ t.jsxs("div", { className: "relative", children: [
88
+ /* @__PURE__ */ t.jsx(Ue.svg, { width: `${g}px`, height: `${j}px`, viewBox: `0 0 ${g} ${j}`, ref: G, direction: "ltr", children: /* @__PURE__ */ t.jsxs("g", { ref: Z, children: [
89
+ se.filter((o) => o.position === "before").map((o) => o.layer),
90
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
91
+ $.features.map((o, s) => e.findIndex((a) => a.id === o.properties[y]) !== -1 ? null : /* @__PURE__ */ t.jsx("g", { opacity: P ? W : R.length !== 0 ? R.indexOf(o.properties[y]) !== -1 ? 1 : W : 1, children: o.geometry.type === "MultiPolygon" ? (
92
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
93
+ o.geometry.coordinates.map((a, r) => {
94
+ let n = "";
95
+ return a.forEach((l) => {
96
+ let i = " M";
97
+ l.forEach((m, M) => {
98
+ const C = I([m[0], m[1]]);
99
+ M !== l.length - 1 ? i = `${i}${C[0]} ${C[1]}L` : i = `${i}${C[0]} ${C[1]}`;
100
+ }), n += i;
101
+ }), /* @__PURE__ */ t.jsx("path", { d: n, style: {
102
+ stroke: X,
103
+ strokeWidth: H,
104
+ fill: ae
105
+ } }, r);
106
+ })
107
+ ) : (
108
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
109
+ o.geometry.coordinates.map((a, r) => {
110
+ let n = "M";
111
+ return a.forEach((l, i) => {
112
+ const m = I([l[0], l[1]]);
113
+ i !== a.length - 1 ? n = `${n}${m[0]} ${m[1]}L` : n = `${n}${m[0]} ${m[1]}`;
114
+ }), /* @__PURE__ */ t.jsx("path", { d: n, style: {
115
+ stroke: X,
116
+ strokeWidth: H,
117
+ fill: ae
118
+ } }, r);
119
+ })
120
+ ) }, s)),
121
+ /* @__PURE__ */ t.jsx(Wt, { children: e.map((o) => {
122
+ const s = $.features.findIndex(
102
123
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
103
- x.features.map((r, l) => b.findIndex((i) => i.id === r.properties[_]) !== -1 ? null : /* @__PURE__ */ e.jsx(
104
- "g",
105
- {
106
- opacity: j ? G : q.length !== 0 ? q.indexOf(r.properties[_]) !== -1 ? 1 : G : 1,
107
- children: r.geometry.type === "MultiPolygon" ? (
108
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
109
- r.geometry.coordinates.map((i, o) => {
110
- let n = "";
111
- return i.forEach((t) => {
112
- let a = " M";
113
- t.forEach((p, L) => {
114
- const M = N([p[0], p[1]]);
115
- L !== t.length - 1 ? a = `${a}${M[0]} ${M[1]}L` : a = `${a}${M[0]} ${M[1]}`;
116
- }), n += a;
117
- }), /* @__PURE__ */ e.jsx(
118
- "path",
119
- {
120
- d: n,
121
- style: {
122
- stroke: H,
123
- strokeWidth: O,
124
- fill: K
125
- }
126
- },
127
- o
128
- );
129
- })
130
- ) : (
131
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
132
- r.geometry.coordinates.map((i, o) => {
133
- let n = "M";
134
- return i.forEach((t, a) => {
135
- const p = N([t[0], t[1]]);
136
- a !== i.length - 1 ? n = `${n}${p[0]} ${p[1]}L` : n = `${n}${p[0]} ${p[1]}`;
137
- }), /* @__PURE__ */ e.jsx(
138
- "path",
139
- {
140
- d: n,
141
- style: {
142
- stroke: H,
143
- strokeWidth: O,
144
- fill: K
145
- }
146
- },
147
- o
148
- );
149
- })
150
- )
151
- },
152
- l
153
- )),
154
- /* @__PURE__ */ e.jsx(Re, { children: b.map((r) => {
155
- const l = x.features.findIndex(
156
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
157
- (i) => r.id === i.properties[_]
158
- ), d = He(r.x) ? K : (
159
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
160
- ve(r.x)
161
- );
162
- return /* @__PURE__ */ e.jsx(
163
- me.g,
164
- {
165
- variants: {
166
- initial: { opacity: 0 },
167
- whileInView: {
168
- opacity: j ? j === d ? 1 : G : q.length !== 0 ? q.indexOf(r.id) !== -1 ? 1 : G : 1,
169
- transition: { duration: k.duration }
170
- }
171
- },
172
- initial: "initial",
173
- animate: re ? "whileInView" : "initial",
174
- exit: { opacity: 0, transition: { duration: k.duration } },
175
- onMouseEnter: (i) => {
176
- $(r), R(i.clientY), te(i.clientX), Z?.(r);
177
- },
178
- onMouseMove: (i) => {
179
- $(r), R(i.clientY), te(i.clientX);
180
- },
181
- onMouseLeave: () => {
182
- $(void 0), te(void 0), R(void 0), Z?.(void 0);
183
- },
184
- onClick: () => {
185
- (y || C) && (Se(B, r) && fe ? (ee(void 0), y?.(void 0)) : (ee(r), y?.(r)));
186
- },
187
- children: l === -1 ? null : x.features[l].geometry.type === "MultiPolygon" ? x.features[l].geometry.coordinates.map(
188
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
189
- (i, o) => {
190
- let n = "";
191
- return i.forEach((t) => {
192
- let a = " M";
193
- t.forEach((p, L) => {
194
- const M = N([p[0], p[1]]);
195
- L !== t.length - 1 ? a = `${a}${M[0]} ${M[1]}L` : a = `${a}${M[0]} ${M[1]}`;
196
- }), n += a;
197
- }), /* @__PURE__ */ e.jsx(
198
- me.path,
199
- {
200
- d: n,
201
- variants: {
202
- initial: { fill: d, opacity: 0 },
203
- whileInView: {
204
- fill: d,
205
- opacity: 1,
206
- transition: { duration: k.duration }
207
- }
208
- },
209
- initial: "initial",
210
- animate: re ? "whileInView" : "initial",
211
- exit: { opacity: 0, transition: { duration: k.duration } },
212
- style: {
213
- stroke: H,
214
- strokeWidth: O
215
- }
216
- },
217
- `${r.id}-${o}`
218
- );
219
- }
220
- ) : x.features[l].geometry.coordinates.map(
221
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
222
- (i, o) => {
223
- let n = "M";
224
- return i.forEach((t, a) => {
225
- const p = N([t[0], t[1]]);
226
- a !== i.length - 1 ? n = `${n}${p[0]} ${p[1]}L` : n = `${n}${p[0]} ${p[1]}`;
227
- }), /* @__PURE__ */ e.jsx(
228
- me.path,
229
- {
230
- d: n,
231
- variants: {
232
- initial: { fill: d, opacity: 0 },
233
- whileInView: {
234
- fill: d,
235
- opacity: 1,
236
- transition: { duration: k.duration }
237
- }
238
- },
239
- initial: "initial",
240
- animate: re ? "whileInView" : "initial",
241
- exit: { opacity: 0, transition: { duration: k.duration } },
242
- style: {
243
- stroke: H,
244
- strokeWidth: O
245
- }
246
- },
247
- `${r.id}-${o}`
248
- );
249
- }
250
- )
251
- },
252
- r.id
253
- );
254
- }) }),
255
- Y ? x.features.filter(
256
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
257
- (r) => r.properties[_] === Y.id
258
- ).map((r, l) => /* @__PURE__ */ e.jsx("g", { children: r.geometry.type === "MultiPolygon" ? (
259
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
260
- r.geometry.coordinates.map((d, i) => {
261
- let o = "";
262
- return d.forEach((n) => {
263
- let t = " M";
264
- n.forEach((a, p) => {
265
- const L = N([a[0], a[1]]);
266
- p !== n.length - 1 ? t = `${t}${L[0]} ${L[1]}L` : t = `${t}${L[0]} ${L[1]}`;
267
- }), o += t;
268
- }), /* @__PURE__ */ e.jsx(
269
- "path",
270
- {
271
- d: o,
272
- className: "stroke-primary-gray-700 dark:stroke-primary-gray-300",
273
- style: {
274
- fill: "none",
275
- fillOpacity: 0,
276
- strokeWidth: "0.5"
277
- }
278
- },
279
- i
280
- );
281
- })
282
- ) : (
283
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
284
- r.geometry.coordinates.map((d, i) => {
285
- let o = "M";
286
- return d.forEach((n, t) => {
287
- const a = N([n[0], n[1]]);
288
- t !== d.length - 1 ? o = `${o}${a[0]} ${a[1]}L` : o = `${o}${a[0]} ${a[1]}`;
289
- }), /* @__PURE__ */ e.jsx(
290
- "path",
291
- {
292
- d: o,
293
- className: "stroke-primary-gray-700 dark:stroke-primary-gray-300",
294
- style: {
295
- fill: "none",
296
- fillOpacity: 0,
297
- strokeWidth: "0.5"
298
- }
299
- },
300
- i
301
- );
302
- })
303
- ) }, l)) : null,
304
- se.filter((r) => r.position === "after").map((r) => r.layer)
305
- ] })
306
- }
307
- ),
308
- ge === !1 ? null : /* @__PURE__ */ e.jsx("div", { className: "absolute left-4 bottom-4 map-color-legend", children: w ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
309
- /* @__PURE__ */ e.jsx(
310
- "div",
311
- {
312
- className: "color-legend-close-button bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)] border border-[var(--gray-400)] rounded-full w-6 h-6 p-[3px] cursor-pointer z-10 absolute right-[-0.75rem] top-[-0.75rem]",
313
- onClick: () => {
314
- X(!1);
315
- },
316
- children: /* @__PURE__ */ e.jsx(qe, {})
317
- }
318
- ),
319
- /* @__PURE__ */ e.jsxs(
320
- "div",
321
- {
322
- className: "color-legend-box p-2 bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)]",
323
- style: {
324
- width: S ? void 0 : "340px"
124
+ (a) => o.id === a.properties[y]
125
+ ), x = Et(o.x) ? ae : (
126
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
127
+ Le(o.x)
128
+ );
129
+ return /* @__PURE__ */ t.jsx(Ue.g, { variants: {
130
+ initial: {
131
+ opacity: 0
325
132
  },
326
- children: [
327
- F && F !== "" ? /* @__PURE__ */ e.jsx(
328
- je,
329
- {
330
- size: "xs",
331
- marginBottom: "xs",
332
- className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300",
333
- style: {
334
- display: "-webkit-box",
335
- WebkitLineClamp: "1",
336
- WebkitBoxOrient: "vertical"
337
- },
338
- children: F
133
+ whileInView: {
134
+ opacity: P ? P === x ? 1 : W : R.length !== 0 ? R.indexOf(o.id) !== -1 ? 1 : W : 1,
135
+ transition: {
136
+ duration: D.duration
137
+ }
138
+ }
139
+ }, initial: "initial", animate: me ? "whileInView" : "initial", exit: {
140
+ opacity: 0,
141
+ transition: {
142
+ duration: D.duration
143
+ }
144
+ }, onMouseEnter: (a) => {
145
+ K(o), de(a.clientY), h(a.clientX), ie?.(o);
146
+ }, onMouseMove: (a) => {
147
+ K(o), de(a.clientY), h(a.clientX);
148
+ }, onMouseLeave: () => {
149
+ K(void 0), h(void 0), de(void 0), ie?.(void 0);
150
+ }, onClick: () => {
151
+ (ne || O) && (yt(q, o) && be ? (Y(void 0), ne?.(void 0)) : (Y(o), ne?.(o)));
152
+ }, children: s === -1 ? null : $.features[s].geometry.type === "MultiPolygon" ? $.features[s].geometry.coordinates.map(
153
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
154
+ (a, r) => {
155
+ let n = "";
156
+ return a.forEach((l) => {
157
+ let i = " M";
158
+ l.forEach((m, M) => {
159
+ const C = I([m[0], m[1]]);
160
+ M !== l.length - 1 ? i = `${i}${C[0]} ${C[1]}L` : i = `${i}${C[0]} ${C[1]}`;
161
+ }), n += i;
162
+ }), /* @__PURE__ */ t.jsx(Ue.path, { d: n, variants: {
163
+ initial: {
164
+ fill: x,
165
+ opacity: 0
166
+ },
167
+ whileInView: {
168
+ fill: x,
169
+ opacity: 1,
170
+ transition: {
171
+ duration: D.duration
172
+ }
173
+ }
174
+ }, initial: "initial", animate: me ? "whileInView" : "initial", exit: {
175
+ opacity: 0,
176
+ transition: {
177
+ duration: D.duration
339
178
  }
340
- ) : null,
341
- S ? /* @__PURE__ */ e.jsx("div", { className: "flex flex-col gap-3", children: g.map((r, l) => /* @__PURE__ */ e.jsxs(
342
- "div",
343
- {
344
- className: "flex gap-2 items-center",
345
- onMouseOver: () => {
346
- P(c[l % c.length]);
347
- },
348
- onMouseLeave: () => {
349
- P(void 0);
350
- },
351
- children: [
352
- /* @__PURE__ */ e.jsx(
353
- "div",
354
- {
355
- className: "w-2 h-2 rounded-full",
356
- style: { backgroundColor: c[l % c.length] }
357
- }
358
- ),
359
- /* @__PURE__ */ e.jsx(je, { size: "sm", marginBottom: "none", leading: "none", children: r })
360
- ]
179
+ }, style: {
180
+ stroke: X,
181
+ strokeWidth: H
182
+ } }, `${o.id}-${r}`);
183
+ }
184
+ ) : $.features[s].geometry.coordinates.map(
185
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
186
+ (a, r) => {
187
+ let n = "M";
188
+ return a.forEach((l, i) => {
189
+ const m = I([l[0], l[1]]);
190
+ i !== a.length - 1 ? n = `${n}${m[0]} ${m[1]}L` : n = `${n}${m[0]} ${m[1]}`;
191
+ }), /* @__PURE__ */ t.jsx(Ue.path, { d: n, variants: {
192
+ initial: {
193
+ fill: x,
194
+ opacity: 0
361
195
  },
362
- l
363
- )) }) : /* @__PURE__ */ e.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ e.jsxs("g", { children: [
364
- g.map((r, l) => /* @__PURE__ */ e.jsxs(
365
- "g",
366
- {
367
- onMouseOver: () => {
368
- P(c[l]);
369
- },
370
- onMouseLeave: () => {
371
- P(void 0);
372
- },
373
- className: "cursor-pointer",
374
- children: [
375
- /* @__PURE__ */ e.jsx(
376
- "rect",
377
- {
378
- x: l * 320 / c.length + 1,
379
- y: 1,
380
- width: 320 / c.length - 2,
381
- height: 8,
382
- className: j === c[l] ? "stroke-primary-gray-700 dark:stroke-primary-gray-300" : "",
383
- style: {
384
- fill: c[l],
385
- ...j === c[l] ? {} : { stroke: c[l] }
386
- }
387
- }
388
- ),
389
- /* @__PURE__ */ e.jsx(
390
- "text",
391
- {
392
- x: (l + 1) * 320 / c.length,
393
- y: 25,
394
- className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs",
395
- style: { textAnchor: "middle" },
396
- children: Ae(r, "NA")
397
- }
398
- )
399
- ]
400
- },
401
- l
402
- )),
403
- /* @__PURE__ */ e.jsx("g", { children: /* @__PURE__ */ e.jsx(
404
- "rect",
405
- {
406
- onMouseOver: () => {
407
- P(c[g.length]);
408
- },
409
- onMouseLeave: () => {
410
- P(void 0);
411
- },
412
- x: g.length * 320 / c.length + 1,
413
- y: 1,
414
- width: 320 / c.length - 2,
415
- height: 8,
416
- className: `cursor-pointer ${j === c[g.length] ? "stroke-1 stroke-primary-gray-700 dark:stroke-primary-gray-300" : ""}`,
417
- style: {
418
- fill: c[g.length],
419
- ...j === c[g.length] ? {} : { stroke: c[g.length] }
420
- }
196
+ whileInView: {
197
+ fill: x,
198
+ opacity: 1,
199
+ transition: {
200
+ duration: D.duration
421
201
  }
422
- ) })
423
- ] }) })
424
- ]
425
- }
426
- )
427
- ] }) : /* @__PURE__ */ e.jsx(
428
- "button",
429
- {
430
- type: "button",
431
- className: "mb-0 border-0 bg-transparent p-0 self-start map-legend-button",
432
- onClick: () => {
433
- X(!0);
434
- },
435
- children: /* @__PURE__ */ e.jsx("div", { className: "show-color-legend-button items-start text-sm font-medium cursor-pointer p-2 mb-0 flex text-primary-black dark:text-primary-gray-300 bg-primary-gray-300 dark:bg-primary-gray-600 border-primary-gray-400 dark:border-primary-gray-500", children: "Show Legend" })
436
- }
437
- ) }),
438
- W === "button" && /* @__PURE__ */ e.jsxs("div", { className: "absolute left-4 top-4 flex flex-col", children: [
439
- /* @__PURE__ */ e.jsx(
440
- "button",
441
- {
442
- onClick: () => J("in"),
443
- className: "leading-0 px-2 py-3.5 text-primary-gray-700 border border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100",
444
- children: "+"
445
- }
446
- ),
447
- /* @__PURE__ */ e.jsx(
448
- "button",
449
- {
450
- onClick: () => J("out"),
451
- className: "leading-0 px-2 py-3.5 text-primary-gray-700 border border-t-0 border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100",
452
- children: "–"
453
- }
454
- )
202
+ }
203
+ }, initial: "initial", animate: me ? "whileInView" : "initial", exit: {
204
+ opacity: 0,
205
+ transition: {
206
+ duration: D.duration
207
+ }
208
+ }, style: {
209
+ stroke: X,
210
+ strokeWidth: H
211
+ } }, `${o.id}-${r}`);
212
+ }
213
+ ) }, o.id);
214
+ }) }),
215
+ J ? $.features.filter(
216
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
217
+ (o) => o.properties[y] === J.id
218
+ ).map((o, s) => /* @__PURE__ */ t.jsx("g", { children: o.geometry.type === "MultiPolygon" ? (
219
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
220
+ o.geometry.coordinates.map((x, a) => {
221
+ let r = "";
222
+ return x.forEach((n) => {
223
+ let l = " M";
224
+ n.forEach((i, m) => {
225
+ const M = I([i[0], i[1]]);
226
+ m !== n.length - 1 ? l = `${l}${M[0]} ${M[1]}L` : l = `${l}${M[0]} ${M[1]}`;
227
+ }), r += l;
228
+ }), /* @__PURE__ */ t.jsx("path", { d: r, className: "stroke-primary-gray-700 dark:stroke-primary-gray-300", style: {
229
+ fill: "none",
230
+ fillOpacity: 0,
231
+ strokeWidth: "0.5"
232
+ } }, a);
233
+ })
234
+ ) : (
235
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
236
+ o.geometry.coordinates.map((x, a) => {
237
+ let r = "M";
238
+ return x.forEach((n, l) => {
239
+ const i = I([n[0], n[1]]);
240
+ l !== x.length - 1 ? r = `${r}${i[0]} ${i[1]}L` : r = `${r}${i[0]} ${i[1]}`;
241
+ }), /* @__PURE__ */ t.jsx("path", { d: r, className: "stroke-primary-gray-700 dark:stroke-primary-gray-300", style: {
242
+ fill: "none",
243
+ fillOpacity: 0,
244
+ strokeWidth: "0.5"
245
+ } }, a);
246
+ })
247
+ ) }, s)) : null,
248
+ se.filter((o) => o.position === "after").map((o) => o.layer)
249
+ ] }) }),
250
+ ve === !1 ? null : /* @__PURE__ */ t.jsx("div", { className: ct("absolute left-4 bottom-4 map-color-legend", ke?.colorLegend), children: Ie ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
251
+ /* @__PURE__ */ t.jsx("div", { className: "color-legend-close-button bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)] border border-[var(--gray-400)] rounded-full w-6 h-6 p-[3px] cursor-pointer z-10 absolute right-[-0.75rem] top-[-0.75rem]", onClick: () => {
252
+ we(!1);
253
+ }, children: /* @__PURE__ */ t.jsx(Ot, {}) }),
254
+ /* @__PURE__ */ t.jsxs("div", { className: "color-legend-box p-2 bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)]", style: {
255
+ width: F ? void 0 : "340px"
256
+ }, children: [
257
+ E && E !== "" ? /* @__PURE__ */ t.jsx(it, { size: "xs", marginBottom: "xs", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
258
+ display: "-webkit-box",
259
+ WebkitLineClamp: "1",
260
+ WebkitBoxOrient: "vertical"
261
+ }, children: E }) : null,
262
+ F ? /* @__PURE__ */ t.jsx("div", { className: "flex flex-col gap-3", children: c.map((o, s) => /* @__PURE__ */ t.jsxs("div", { className: "flex gap-2 items-center", onMouseOver: () => {
263
+ B(d[s % d.length]);
264
+ }, onMouseLeave: () => {
265
+ B(void 0);
266
+ }, children: [
267
+ /* @__PURE__ */ t.jsx("div", { className: "w-2 h-2 rounded-full", style: {
268
+ backgroundColor: d[s % d.length]
269
+ } }),
270
+ /* @__PURE__ */ t.jsx(it, { size: "sm", marginBottom: "none", leading: "none", children: o })
271
+ ] }, s)) }) : /* @__PURE__ */ t.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ t.jsxs("g", { children: [
272
+ c.map((o, s) => /* @__PURE__ */ t.jsxs("g", { onMouseOver: () => {
273
+ B(d[s]);
274
+ }, onMouseLeave: () => {
275
+ B(void 0);
276
+ }, className: "cursor-pointer", children: [
277
+ /* @__PURE__ */ t.jsx("rect", { x: s * 320 / d.length + 1, y: 1, width: 320 / d.length - 2, height: 8, className: P === d[s] ? "stroke-primary-gray-700 dark:stroke-primary-gray-300" : "", style: {
278
+ fill: d[s],
279
+ ...P === d[s] ? {} : {
280
+ stroke: d[s]
281
+ }
282
+ } }),
283
+ /* @__PURE__ */ t.jsx("text", { x: (s + 1) * 320 / d.length, y: 25, className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs", style: {
284
+ textAnchor: "middle"
285
+ }, children: Dt(o, "NA") })
286
+ ] }, s)),
287
+ /* @__PURE__ */ t.jsx("g", { children: /* @__PURE__ */ t.jsx("rect", { onMouseOver: () => {
288
+ B(d[c.length]);
289
+ }, onMouseLeave: () => {
290
+ B(void 0);
291
+ }, x: c.length * 320 / d.length + 1, y: 1, width: 320 / d.length - 2, height: 8, className: `cursor-pointer ${P === d[c.length] ? "stroke-1 stroke-primary-gray-700 dark:stroke-primary-gray-300" : ""}`, style: {
292
+ fill: d[c.length],
293
+ ...P === d[c.length] ? {} : {
294
+ stroke: d[c.length]
295
+ }
296
+ } }) })
297
+ ] }) })
298
+ ] })
299
+ ] }) : /* @__PURE__ */ t.jsx("button", { type: "button", className: "mb-0 border-0 bg-transparent p-0 self-start map-legend-button", onClick: () => {
300
+ we(!0);
301
+ }, children: /* @__PURE__ */ t.jsx("div", { className: "show-color-legend-button items-start text-sm font-medium cursor-pointer p-2 mb-0 flex text-primary-black dark:text-primary-gray-300 bg-primary-gray-300 dark:bg-primary-gray-600 border-primary-gray-400 dark:border-primary-gray-500", children: "Show Legend" }) }) }),
302
+ _ === "button" && /* @__PURE__ */ t.jsxs("div", { className: "absolute left-4 top-4 flex flex-col zoom-buttons", children: [
303
+ /* @__PURE__ */ t.jsx("button", { onClick: () => he("in"), className: "leading-0 px-2 py-3.5 text-primary-gray-700 border border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "+" }),
304
+ /* @__PURE__ */ t.jsx("button", { onClick: () => he("out"), className: "leading-0 px-2 py-3.5 text-primary-gray-700 border border-t-0 border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "–" })
455
305
  ] })
456
306
  ] }),
457
- C && B !== void 0 ? /* @__PURE__ */ e.jsx(
458
- Te,
459
- {
460
- open: B !== void 0,
461
- onClose: () => {
462
- ee(void 0);
463
- },
464
- children: /* @__PURE__ */ e.jsx(
465
- "div",
466
- {
467
- className: "graph-modal-content m-0",
468
- dangerouslySetInnerHTML: typeof C == "string" ? { __html: Fe(C, B) } : void 0,
469
- children: typeof C == "function" ? C(B) : null
470
- }
471
- )
472
- }
473
- ) : null,
474
- Y && ne && D && le ? /* @__PURE__ */ e.jsx(
475
- Ve,
476
- {
477
- data: Y,
478
- body: ne,
479
- xPos: D,
480
- yPos: le,
481
- backgroundStyle: ye?.tooltip,
482
- className: xe?.tooltip
483
- }
484
- ) : null
307
+ O && q !== void 0 ? /* @__PURE__ */ t.jsx(Ct, { open: q !== void 0, onClose: () => {
308
+ Y(void 0);
309
+ }, children: /* @__PURE__ */ t.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof O == "string" ? {
310
+ __html: St(O, q)
311
+ } : void 0, children: typeof O == "function" ? O(q) : null }) }) : null,
312
+ J && re && f && ce ? /* @__PURE__ */ t.jsx(Mt, { data: J, body: re, xPos: f, yPos: ce, backgroundStyle: Pe?.tooltip, className: ke?.tooltip }) : null
485
313
  ] });
486
314
  }
487
- function zt(he) {
488
- const {
489
- data: b,
490
- mapData: g = "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap.json",
491
- graphTitle: c,
492
- colors: x,
315
+ function zo(u) {
316
+ const e = dt.c(106), {
317
+ data: c,
318
+ mapData: d,
319
+ graphTitle: $,
320
+ colors: E,
493
321
  sources: F,
494
- graphDescription: S,
495
- height: h,
496
- width: s,
497
- footNote: ie = "The designations employed and the presentation of material on this map do not imply the expression of any opinion whatsoever on the part of the Secretariat of the United Nations or UNDP concerning the legal status of any country, territory, city or area or its authorities, or concerning the delimitation of its frontiers or boundaries.",
498
- colorDomain: z,
499
- colorLegendTitle: ne,
500
- scaleType: O = "threshold",
501
- scale: H = 0.95,
502
- centerPoint: K,
503
- padding: Z,
504
- mapBorderWidth: ge = 0.5,
505
- mapNoDataColor: ue = de.light.graphNoData,
506
- backgroundColor: E = !1,
507
- mapBorderColor: q = de.light.grays["gray-500"],
322
+ graphDescription: j,
323
+ height: g,
324
+ width: p,
325
+ footNote: V,
326
+ colorDomain: re,
327
+ colorLegendTitle: H,
328
+ scaleType: X,
329
+ scale: ae,
330
+ centerPoint: ie,
331
+ padding: ve,
332
+ mapBorderWidth: Ee,
333
+ mapNoDataColor: Oe,
334
+ backgroundColor: R,
335
+ mapBorderColor: ne,
508
336
  relativeHeight: y,
509
- tooltip: _,
510
- onSeriesMouseOver: fe,
511
- isWorldMap: C = !0,
512
- showColorScale: ye = !0,
513
- zoomScaleExtend: xe = [0.8, 6],
514
- zoomTranslateExtend: U,
515
- graphID: W,
516
- highlightedIds: k = [],
517
- onSeriesMouseClick: G,
518
- mapProperty: se = "ISO3",
519
- graphDownload: Q = !1,
520
- dataDownload: j = !1,
521
- showAntarctica: P = !1,
522
- language: T = "en",
523
- minHeight: w = 0,
524
- theme: X = "light",
525
- ariaLabel: B,
526
- resetSelectionOnDoubleClick: ee = !0,
527
- detailsOnClick: Y,
528
- styles: $,
529
- classNames: D,
530
- mapProjection: te,
531
- zoomInteraction: le = "button",
532
- animate: R = !1,
533
- dimmedOpacity: A = 0.3,
534
- customLayers: re = [],
535
- timeline: u = { enabled: !1, autoplay: !1, showOnlyActiveDate: !0 },
536
- collapseColorScaleByDefault: ve
537
- } = he, [f, I] = v(0), [ae, ce] = v(0), [V, be] = v(u.autoplay), m = rt(
538
- tt(b, "date", !0).map(
539
- (t) => De(`${t}`, u.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()
540
- ),
541
- (t, a) => at(t, a)
542
- ), [N, J] = v(u.autoplay ? 0 : m.length - 1), [r, l] = v(void 0), d = oe(null), i = oe(null);
543
- pe(() => {
544
- const t = new ResizeObserver((a) => {
545
- I(s || a[0].target.clientWidth || 760), ce(h || a[0].target.clientHeight || 480);
337
+ tooltip: be,
338
+ onSeriesMouseOver: O,
339
+ isWorldMap: Pe,
340
+ showColorScale: ke,
341
+ zoomScaleExtend: z,
342
+ zoomTranslateExtend: _,
343
+ graphID: D,
344
+ highlightedIds: W,
345
+ onSeriesMouseClick: se,
346
+ mapProperty: je,
347
+ graphDownload: P,
348
+ dataDownload: B,
349
+ showAntarctica: le,
350
+ language: Ie,
351
+ minHeight: we,
352
+ theme: q,
353
+ ariaLabel: Y,
354
+ resetSelectionOnDoubleClick: J,
355
+ detailsOnClick: K,
356
+ styles: f,
357
+ classNames: h,
358
+ mapProjection: ce,
359
+ zoomInteraction: de,
360
+ animate: G,
361
+ dimmedOpacity: me,
362
+ customLayers: Z,
363
+ timeline: Le,
364
+ collapseColorScaleByDefault: U
365
+ } = u, w = d === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap.json" : d, pe = V === void 0 ? "The designations employed and the presentation of material on this map do not imply the expression of any opinion whatsoever on the part of the Secretariat of the United Nations or UNDP concerning the legal status of any country, territory, city or area or its authorities, or concerning the delimitation of its frontiers or boundaries." : V, T = X === void 0 ? "threshold" : X, $e = ae === void 0 ? 0.95 : ae, Ce = Ee === void 0 ? 0.5 : Ee, A = Oe === void 0 ? Xe.light.graphNoData : Oe, I = R === void 0 ? !1 : R, he = ne === void 0 ? Xe.light.grays["gray-500"] : ne, o = Pe === void 0 ? !0 : Pe, s = ke === void 0 ? !0 : ke;
366
+ let x;
367
+ e[0] !== z ? (x = z === void 0 ? [0.8, 6] : z, e[0] = z, e[1] = x) : x = e[1];
368
+ const a = x;
369
+ let r;
370
+ e[2] !== W ? (r = W === void 0 ? [] : W, e[2] = W, e[3] = r) : r = e[3];
371
+ const n = r, l = je === void 0 ? "ISO3" : je, i = P === void 0 ? !1 : P, m = B === void 0 ? !1 : B, M = le === void 0 ? !1 : le, C = Ie === void 0 ? "en" : Ie, N = we === void 0 ? 0 : we, Q = q === void 0 ? "light" : q, Ye = J === void 0 ? !0 : J, Je = de === void 0 ? "button" : de, ze = G === void 0 ? !1 : G, Ke = me === void 0 ? 0.3 : me;
372
+ let _e;
373
+ e[4] !== Z ? (_e = Z === void 0 ? [] : Z, e[4] = Z, e[5] = _e) : _e = e[5];
374
+ const Ze = _e, k = Le === void 0 ? {
375
+ enabled: !1,
376
+ autoplay: !1,
377
+ showOnlyActiveDate: !0
378
+ } : Le, [L, nt] = S(0), [Ne, st] = S(0), [ee, Qe] = S(k.autoplay), v = Ut(Ht(c, "date", !0).map((b) => gt(`${b}`, k.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), oo), [te, De] = S(k.autoplay ? 0 : v.length - 1), [ue, lt] = S(void 0), et = Se(null), at = Se(null);
379
+ let We, Be;
380
+ e[6] === Symbol.for("react.memo_cache_sentinel") ? (We = () => {
381
+ const b = new ResizeObserver((oe) => {
382
+ nt(oe[0].target.clientWidth || 620), st(oe[0].target.clientHeight || 480);
546
383
  });
547
- return d.current && (ce(d.current.clientHeight || 480), I(d.current.clientWidth || 760), s || t.observe(d.current)), () => t.disconnect();
548
- }, [s, h]), pe(() => {
549
- typeof g == "string" ? Ze(g).then((a) => {
550
- l(a);
551
- }) : l(g);
552
- }, [g]);
553
- const o = z || (O === "categorical" ? Qe(b, "x") : et(
554
- b.map((t) => t.x),
555
- x?.length || 4
556
- ));
557
- pe(() => {
558
- const t = setInterval(
559
- () => {
560
- J((a) => a < m.length - 1 ? a + 1 : 0);
561
- },
562
- (u.speed || 2) * 1e3
563
- );
564
- return V || clearInterval(t), () => clearInterval(t);
565
- }, [m, V, u.speed]);
566
- const n = $e(
567
- m,
568
- N,
569
- u.showOnlyActiveDate,
570
- u.dateFormat || "yyyy"
571
- );
572
- return /* @__PURE__ */ e.jsx(
573
- "div",
574
- {
575
- className: `${X || "light"} flex ${s ? "w-fit grow-0" : "w-full grow"}`,
576
- dir: T === "he" || T === "ar" ? "rtl" : void 0,
577
- children: /* @__PURE__ */ e.jsx(
578
- "div",
579
- {
580
- className: we(
581
- `${E ? E === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${T || "en"}`,
582
- s ? "w-fit" : "w-full",
583
- D?.graphContainer
584
- ),
585
- style: {
586
- ...$?.graphContainer || {},
587
- ...E && E !== !0 ? { backgroundColor: E } : {}
588
- },
589
- id: W,
590
- ref: i,
591
- "aria-label": B || `${c ? `The graph shows ${c}. ` : ""}This is a choropleth map where geographic areas are colored in proportion to a specific variable.${S ? ` ${S}` : ""}`,
592
- children: /* @__PURE__ */ e.jsx(
593
- "div",
594
- {
595
- className: "flex grow",
596
- style: { padding: E ? Z || "1rem" : Z || 0 },
597
- children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
598
- c || S || Q || j ? /* @__PURE__ */ e.jsx(
599
- Ke,
600
- {
601
- styles: {
602
- title: $?.title,
603
- description: $?.description
604
- },
605
- classNames: {
606
- title: D?.title,
607
- description: D?.description
608
- },
609
- graphTitle: c,
610
- graphDescription: S,
611
- width: s,
612
- graphDownload: Q ? i.current : void 0,
613
- dataDownload: j ? b.map((t) => t.data).filter((t) => t !== void 0).length > 0 ? b.map((t) => t.data).filter((t) => t !== void 0) : b.filter((t) => t !== void 0) : null
614
- }
615
- ) : null,
616
- u.enabled && m.length > 0 && n ? /* @__PURE__ */ e.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
617
- /* @__PURE__ */ e.jsx(
618
- "button",
619
- {
620
- type: "button",
621
- onClick: () => {
622
- be(!V);
623
- },
624
- className: "p-0 border-0 cursor-pointer bg-transparent",
625
- "aria-label": V ? "Click to pause animation" : "Click to play animation",
626
- children: V ? /* @__PURE__ */ e.jsx(_e, {}) : /* @__PURE__ */ e.jsx(Ue, {})
627
- }
628
- ),
629
- /* @__PURE__ */ e.jsx(
630
- Ne,
631
- {
632
- min: m[0],
633
- max: m[m.length - 1],
634
- marks: n,
635
- step: null,
636
- defaultValue: m[m.length - 1],
637
- value: m[N],
638
- onChangeComplete: (t) => {
639
- J(m.indexOf(t));
640
- },
641
- onChange: (t) => {
642
- J(m.indexOf(t));
643
- },
644
- "aria-label": "Time slider. Use arrow keys to adjust selected time period."
645
- }
646
- )
647
- ] }) : null,
648
- /* @__PURE__ */ e.jsx(
649
- "div",
650
- {
651
- className: "flex flex-col grow justify-center leading-0",
652
- ref: d,
653
- "aria-label": "Map area",
654
- children: (s || f) && (h || ae) && r ? /* @__PURE__ */ e.jsx(
655
- ot,
656
- {
657
- data: b.filter(
658
- (t) => u.enabled ? t.date === Me(new Date(m[N]), u.dateFormat || "yyyy") : t
659
- ),
660
- mapData: P ? r : {
661
- ...r,
662
- features: r.features.filter(
663
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
664
- (t) => t.properties.NAME !== "Antarctica"
665
- )
666
- },
667
- colorDomain: o,
668
- width: s || f,
669
- height: Math.max(
670
- w,
671
- h || (y ? w ? (s || f) * y > w ? (s || f) * y : w : (s || f) * y : ae)
672
- ),
673
- scale: H,
674
- centerPoint: K,
675
- colors: x || (O === "categorical" ? de[X].sequentialColors[`neutralColorsx0${o.length}`] : de[X].sequentialColors[`neutralColorsx0${o.length + 1}`]),
676
- colorLegendTitle: ne,
677
- mapBorderWidth: ge,
678
- mapNoDataColor: ue,
679
- categorical: O === "categorical",
680
- mapBorderColor: q,
681
- tooltip: _,
682
- onSeriesMouseOver: fe,
683
- isWorldMap: C,
684
- showColorScale: ye,
685
- zoomScaleExtend: xe,
686
- zoomTranslateExtend: U,
687
- onSeriesMouseClick: G,
688
- mapProperty: se,
689
- highlightedIds: k,
690
- resetSelectionOnDoubleClick: ee,
691
- styles: $,
692
- classNames: D,
693
- detailsOnClick: Y,
694
- mapProjection: te || (C ? "naturalEarth" : "mercator"),
695
- zoomInteraction: le,
696
- dimmedOpacity: A,
697
- animate: R === !0 ? { duration: 0.5, once: !0, amount: 0.5 } : R || { duration: 0, once: !0, amount: 0 },
698
- customLayers: re,
699
- collapseColorScaleByDefault: ve
700
- }
701
- ) : /* @__PURE__ */ e.jsx(
702
- "div",
703
- {
704
- style: {
705
- height: `${Math.max(
706
- w,
707
- h || (y ? w ? (s || f) * y > w ? (s || f) * y : w : (s || f) * y : ae)
708
- )}px`
709
- },
710
- className: "flex items-center justify-center",
711
- children: /* @__PURE__ */ e.jsx(Ce, { "aria-label": "Loading graph" })
712
- }
713
- )
714
- }
715
- ),
716
- F || ie ? /* @__PURE__ */ e.jsx(
717
- Je,
718
- {
719
- styles: { footnote: $?.footnote, source: $?.source },
720
- classNames: {
721
- footnote: D?.footnote,
722
- source: D?.source
723
- },
724
- sources: F,
725
- footNote: ie,
726
- width: s
727
- }
728
- ) : null
729
- ] })
730
- }
731
- )
732
- }
733
- )
734
- }
735
- );
384
+ return et.current && b.observe(et.current), () => b.disconnect();
385
+ }, Be = [], e[6] = We, e[7] = Be) : (We = e[6], Be = e[7]), Re(We, Be);
386
+ let Te;
387
+ e[8] === Symbol.for("react.memo_cache_sentinel") ? (Te = (b) => {
388
+ lt(b);
389
+ }, e[8] = Te) : Te = e[8];
390
+ const Ae = mt(Te);
391
+ let Fe;
392
+ e[9] !== w || e[10] !== Ae ? (Fe = () => {
393
+ typeof w == "string" ? At(w).then((oe) => {
394
+ Ae(oe);
395
+ }) : Ae(w);
396
+ }, e[9] = w, e[10] = Ae, e[11] = Fe) : Fe = e[11];
397
+ let Ve;
398
+ e[12] !== w ? (Ve = [w], e[12] = w, e[13] = Ve) : Ve = e[13], Re(Fe, Ve);
399
+ let He;
400
+ e[14] !== re || e[15] !== E?.length || e[16] !== c || e[17] !== T ? (He = re || (T === "categorical" ? Ft(c, "x") : Vt(c.map(to), E?.length || 4)), e[14] = re, e[15] = E?.length, e[16] = c, e[17] = T, e[18] = He) : He = e[18];
401
+ const Me = He;
402
+ Re(() => {
403
+ const b = setInterval(() => {
404
+ De((oe) => oe < v.length - 1 ? oe + 1 : 0);
405
+ }, (k.speed || 2) * 1e3);
406
+ return ee || clearInterval(b), () => clearInterval(b);
407
+ }, [v, ee, k.speed]);
408
+ const qe = pt(v, te, k.showOnlyActiveDate, k.dateFormat || "yyyy"), tt = h?.graphContainer, ot = f?.graphContainer;
409
+ let ge;
410
+ e[19] !== h?.description || e[20] !== h?.title || e[21] !== c || e[22] !== m || e[23] !== j || e[24] !== i || e[25] !== $ || e[26] !== f?.description || e[27] !== f?.title || e[28] !== p ? (ge = $ || j || i || m ? /* @__PURE__ */ t.jsx(Tt, { styles: {
411
+ title: f?.title,
412
+ description: f?.description
413
+ }, classNames: {
414
+ title: h?.title,
415
+ description: h?.description
416
+ }, graphTitle: $, graphDescription: j, width: p, graphDownload: i ? at : void 0, dataDownload: m ? c.map(eo).filter(Qt).length > 0 ? c.map(Zt).filter(Kt) : c.filter(Jt) : null }) : null, e[19] = h?.description, e[20] = h?.title, e[21] = c, e[22] = m, e[23] = j, e[24] = i, e[25] = $, e[26] = f?.description, e[27] = f?.title, e[28] = p, e[29] = ge) : ge = e[29];
417
+ let fe;
418
+ e[30] !== te || e[31] !== qe || e[32] !== ee || e[33] !== De || e[34] !== Qe || e[35] !== k.enabled || e[36] !== v ? (fe = k.enabled && v.length > 0 && qe ? /* @__PURE__ */ t.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
419
+ /* @__PURE__ */ t.jsx("button", { type: "button", onClick: () => {
420
+ Qe(!ee);
421
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": ee ? "Click to pause animation" : "Click to play animation", children: ee ? /* @__PURE__ */ t.jsx(Pt, {}) : /* @__PURE__ */ t.jsx(It, {}) }),
422
+ /* @__PURE__ */ t.jsx(ht, { min: v[0], max: v[v.length - 1], marks: qe, step: null, defaultValue: v[v.length - 1], value: v[te], onChangeComplete: (b) => {
423
+ De(v.indexOf(b));
424
+ }, onChange: (b) => {
425
+ De(v.indexOf(b));
426
+ }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
427
+ ] }) : null, e[30] = te, e[31] = qe, e[32] = ee, e[33] = De, e[34] = Qe, e[35] = k.enabled, e[36] = v, e[37] = fe) : fe = e[37];
428
+ let ye;
429
+ e[38] !== ze || e[39] !== ie || e[40] !== h || e[41] !== U || e[42] !== H || e[43] !== E || e[44] !== Ze || e[45] !== c || e[46] !== K || e[47] !== Ke || e[48] !== Me || e[49] !== g || e[50] !== n || e[51] !== te || e[52] !== o || e[53] !== he || e[54] !== Ce || e[55] !== A || e[56] !== ce || e[57] !== l || e[58] !== ue || e[59] !== N || e[60] !== se || e[61] !== O || e[62] !== y || e[63] !== Ye || e[64] !== $e || e[65] !== T || e[66] !== M || e[67] !== s || e[68] !== f || e[69] !== Ne || e[70] !== L || e[71] !== Q || e[72] !== k.dateFormat || e[73] !== k.enabled || e[74] !== be || e[75] !== v || e[76] !== p || e[77] !== Je || e[78] !== a || e[79] !== _ ? (ye = /* @__PURE__ */ t.jsx(qt, { ref: et, children: L && Ne && ue ? /* @__PURE__ */ t.jsx(Rt, { data: c.filter((b) => k.enabled ? b.date === ft(new Date(v[te]), k.dateFormat || "yyyy") : b), mapData: M ? ue : {
430
+ ...ue,
431
+ features: ue.features.filter(Yt)
432
+ }, colorDomain: Me, width: p || L, height: Math.max(N, g || (y ? N ? (p || L) * y > N ? (p || L) * y : N : (p || L) * y : Ne)), scale: $e, centerPoint: ie, colors: E || (T === "categorical" ? Xe[Q].sequentialColors[`neutralColorsx0${Me.length}`] : Xe[Q].sequentialColors[`neutralColorsx0${Me.length + 1}`]), colorLegendTitle: H, mapBorderWidth: Ce, mapNoDataColor: A, categorical: T === "categorical", mapBorderColor: he, tooltip: be, onSeriesMouseOver: O, isWorldMap: o, showColorScale: s, zoomScaleExtend: a, zoomTranslateExtend: _, onSeriesMouseClick: se, mapProperty: l, highlightedIds: n, resetSelectionOnDoubleClick: Ye, styles: f, classNames: h, detailsOnClick: K, mapProjection: ce || (o ? "naturalEarth" : "mercator"), zoomInteraction: Je, dimmedOpacity: Ke, animate: ze === !0 ? {
433
+ duration: 0.5,
434
+ once: !0,
435
+ amount: 0.5
436
+ } : ze || {
437
+ duration: 0,
438
+ once: !0,
439
+ amount: 0
440
+ }, customLayers: Ze, collapseColorScaleByDefault: U }) : /* @__PURE__ */ t.jsx("div", { style: {
441
+ height: `${Math.max(N, g || (y ? N ? (p || L) * y > N ? (p || L) * y : N : (p || L) * y : Ne))}px`
442
+ }, className: "flex items-center justify-center", children: /* @__PURE__ */ t.jsx(ut, { "aria-label": "Loading graph" }) }) }), e[38] = ze, e[39] = ie, e[40] = h, e[41] = U, e[42] = H, e[43] = E, e[44] = Ze, e[45] = c, e[46] = K, e[47] = Ke, e[48] = Me, e[49] = g, e[50] = n, e[51] = te, e[52] = o, e[53] = he, e[54] = Ce, e[55] = A, e[56] = ce, e[57] = l, e[58] = ue, e[59] = N, e[60] = se, e[61] = O, e[62] = y, e[63] = Ye, e[64] = $e, e[65] = T, e[66] = M, e[67] = s, e[68] = f, e[69] = Ne, e[70] = L, e[71] = Q, e[72] = k.dateFormat, e[73] = k.enabled, e[74] = be, e[75] = v, e[76] = p, e[77] = Je, e[78] = a, e[79] = _, e[80] = ye) : ye = e[80];
443
+ let xe;
444
+ e[81] !== h?.footnote || e[82] !== h?.source || e[83] !== pe || e[84] !== F || e[85] !== f?.footnote || e[86] !== f?.source || e[87] !== p ? (xe = F || pe ? /* @__PURE__ */ t.jsx(Bt, { styles: {
445
+ footnote: f?.footnote,
446
+ source: f?.source
447
+ }, classNames: {
448
+ footnote: h?.footnote,
449
+ source: h?.source
450
+ }, sources: F, footNote: pe, width: p }) : null, e[81] = h?.footnote, e[82] = h?.source, e[83] = pe, e[84] = F, e[85] = f?.footnote, e[86] = f?.source, e[87] = p, e[88] = xe) : xe = e[88];
451
+ let Ge;
452
+ return e[89] !== Y || e[90] !== I || e[91] !== D || e[92] !== g || e[93] !== C || e[94] !== N || e[95] !== ve || e[96] !== y || e[97] !== tt || e[98] !== ot || e[99] !== ge || e[100] !== fe || e[101] !== ye || e[102] !== xe || e[103] !== Q || e[104] !== p ? (Ge = /* @__PURE__ */ t.jsxs(Gt, { className: tt, style: ot, id: D, ref: at, "aria-label": Y, backgroundColor: I, theme: Q, language: C, minHeight: N, width: p, height: g, relativeHeight: y, padding: ve, children: [
453
+ ge,
454
+ fe,
455
+ ye,
456
+ xe
457
+ ] }), e[89] = Y, e[90] = I, e[91] = D, e[92] = g, e[93] = C, e[94] = N, e[95] = ve, e[96] = y, e[97] = tt, e[98] = ot, e[99] = ge, e[100] = fe, e[101] = ye, e[102] = xe, e[103] = Q, e[104] = p, e[105] = Ge) : Ge = e[105], Ge;
458
+ }
459
+ function Yt(u) {
460
+ return u.properties.NAME !== "Antarctica";
461
+ }
462
+ function Jt(u) {
463
+ return u !== void 0;
464
+ }
465
+ function Kt(u) {
466
+ return u !== void 0;
467
+ }
468
+ function Zt(u) {
469
+ return u.data;
470
+ }
471
+ function Qt(u) {
472
+ return u !== void 0;
473
+ }
474
+ function eo(u) {
475
+ return u.data;
476
+ }
477
+ function to(u) {
478
+ return u.x;
479
+ }
480
+ function oo(u, e) {
481
+ return Xt(u, e);
736
482
  }
737
483
  export {
738
- zt as ChoroplethMap
484
+ zo as ChoroplethMap
739
485
  };
740
486
  //# sourceMappingURL=ChoroplethMap.js.map