@undp/data-viz 2.0.9 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.d.ts +2 -0
  3. package/dist/AreaChart.js +4 -4
  4. package/dist/BarGraph.cjs +1 -1
  5. package/dist/BarGraph.cjs.map +1 -1
  6. package/dist/BarGraph.d.ts +2 -0
  7. package/dist/BarGraph.js +1699 -1577
  8. package/dist/BarGraph.js.map +1 -1
  9. package/dist/BasicStatCard.d.ts +2 -0
  10. package/dist/BeeSwarmChart.cjs +1 -1
  11. package/dist/BeeSwarmChart.cjs.map +1 -1
  12. package/dist/BeeSwarmChart.d.ts +2 -0
  13. package/dist/BeeSwarmChart.js +258 -267
  14. package/dist/BeeSwarmChart.js.map +1 -1
  15. package/dist/BiVariateChoroplethMap.cjs +1 -1
  16. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  17. package/dist/BiVariateChoroplethMap.d.ts +2 -0
  18. package/dist/BiVariateChoroplethMap.js +252 -245
  19. package/dist/BiVariateChoroplethMap.js.map +1 -1
  20. package/dist/BulletChart.cjs +1 -1
  21. package/dist/BulletChart.cjs.map +1 -1
  22. package/dist/BulletChart.d.ts +2 -0
  23. package/dist/BulletChart.js +566 -536
  24. package/dist/BulletChart.js.map +1 -1
  25. package/dist/ButterflyChart.cjs +1 -1
  26. package/dist/ButterflyChart.cjs.map +1 -1
  27. package/dist/ButterflyChart.d.ts +2 -0
  28. package/dist/ButterflyChart.js +388 -378
  29. package/dist/ButterflyChart.js.map +1 -1
  30. package/dist/ChoroplethMap.cjs +1 -1
  31. package/dist/ChoroplethMap.cjs.map +1 -1
  32. package/dist/ChoroplethMap.d.ts +2 -0
  33. package/dist/ChoroplethMap.js +297 -291
  34. package/dist/ChoroplethMap.js.map +1 -1
  35. package/dist/CirclePackingGraph.cjs +1 -1
  36. package/dist/CirclePackingGraph.d.ts +2 -0
  37. package/dist/CirclePackingGraph.js +1 -1
  38. package/dist/DataCards.d.ts +2 -0
  39. package/dist/DataCards.js +1 -1
  40. package/dist/DataTable.d.ts +2 -0
  41. package/dist/DetailsModal-0Ry5nXiC.js +32 -0
  42. package/dist/DetailsModal-0Ry5nXiC.js.map +1 -0
  43. package/dist/DetailsModal-BN0HDFlV.cjs +2 -0
  44. package/dist/DetailsModal-BN0HDFlV.cjs.map +1 -0
  45. package/dist/DifferenceLineChart.cjs +1 -1
  46. package/dist/DifferenceLineChart.d.ts +2 -0
  47. package/dist/DifferenceLineChart.js +4 -4
  48. package/dist/DonutChart.cjs +1 -1
  49. package/dist/DonutChart.cjs.map +1 -1
  50. package/dist/DonutChart.d.ts +2 -0
  51. package/dist/DonutChart.js +185 -190
  52. package/dist/DonutChart.js.map +1 -1
  53. package/dist/DotDensityMap.cjs +1 -1
  54. package/dist/DotDensityMap.cjs.map +1 -1
  55. package/dist/DotDensityMap.d.ts +2 -0
  56. package/dist/DotDensityMap.js +252 -244
  57. package/dist/DotDensityMap.js.map +1 -1
  58. package/dist/DualAxisLineChart.cjs +1 -1
  59. package/dist/DualAxisLineChart.d.ts +2 -0
  60. package/dist/DualAxisLineChart.js +4 -4
  61. package/dist/DumbbellChart.cjs +1 -1
  62. package/dist/DumbbellChart.cjs.map +1 -1
  63. package/dist/DumbbellChart.d.ts +2 -0
  64. package/dist/DumbbellChart.js +563 -525
  65. package/dist/DumbbellChart.js.map +1 -1
  66. package/dist/GeoHubCompareMaps.d.ts +2 -0
  67. package/dist/GeoHubMap.d.ts +2 -0
  68. package/dist/GeoHubMapWithLayerSelection.d.ts +2 -0
  69. package/dist/{GraphEl-BcKU0bG1.cjs → GraphEl-B16EYkko.cjs} +2 -2
  70. package/dist/{GraphEl-BcKU0bG1.cjs.map → GraphEl-B16EYkko.cjs.map} +1 -1
  71. package/dist/{GraphEl-CGq1EWRn.js → GraphEl-DEzobeOM.js} +3 -3
  72. package/dist/{GraphEl-CGq1EWRn.js.map → GraphEl-DEzobeOM.js.map} +1 -1
  73. package/dist/GriddedGraphs.cjs +1 -1
  74. package/dist/GriddedGraphs.cjs.map +1 -1
  75. package/dist/GriddedGraphs.d.ts +2 -0
  76. package/dist/GriddedGraphs.js +19 -19
  77. package/dist/GriddedGraphs.js.map +1 -1
  78. package/dist/GriddedGraphsFromConfig.d.ts +2 -0
  79. package/dist/HeatMap.cjs +1 -1
  80. package/dist/HeatMap.cjs.map +1 -1
  81. package/dist/HeatMap.d.ts +2 -0
  82. package/dist/HeatMap.js +112 -117
  83. package/dist/HeatMap.js.map +1 -1
  84. package/dist/Histogram.cjs +1 -1
  85. package/dist/Histogram.d.ts +2 -0
  86. package/dist/Histogram.js +3 -3
  87. package/dist/HybridMap.cjs +1 -1
  88. package/dist/HybridMap.cjs.map +1 -1
  89. package/dist/HybridMap.d.ts +2 -0
  90. package/dist/HybridMap.js +366 -359
  91. package/dist/HybridMap.js.map +1 -1
  92. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  93. package/dist/LineChartWithConfidenceInterval.d.ts +2 -0
  94. package/dist/LineChartWithConfidenceInterval.js +4 -4
  95. package/dist/{Modal-DGcuAHyK.js → Modal-bMQA6bL_.js} +5 -5
  96. package/dist/{Modal-DGcuAHyK.js.map → Modal-bMQA6bL_.js.map} +1 -1
  97. package/dist/MultiGraphDashboard.cjs +1 -1
  98. package/dist/MultiGraphDashboard.cjs.map +1 -1
  99. package/dist/MultiGraphDashboard.d.ts +2 -0
  100. package/dist/MultiGraphDashboard.js +10 -10
  101. package/dist/MultiGraphDashboard.js.map +1 -1
  102. package/dist/MultiGraphDashboardFromConfig.d.ts +2 -0
  103. package/dist/MultiGraphDashboardWideToLongFormat.d.ts +2 -0
  104. package/dist/MultiGraphDashboardWideToLongFormat.js +1 -1
  105. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +2 -0
  106. package/dist/MultiLineAltChart.cjs +1 -1
  107. package/dist/MultiLineAltChart.cjs.map +1 -1
  108. package/dist/MultiLineAltChart.d.ts +2 -0
  109. package/dist/MultiLineAltChart.js +453 -425
  110. package/dist/MultiLineAltChart.js.map +1 -1
  111. package/dist/MultiLineChart.cjs +1 -1
  112. package/dist/MultiLineChart.d.ts +2 -0
  113. package/dist/MultiLineChart.js +4 -4
  114. package/dist/ParetoChart.cjs +1 -1
  115. package/dist/ParetoChart.cjs.map +1 -1
  116. package/dist/ParetoChart.d.ts +2 -0
  117. package/dist/ParetoChart.js +188 -193
  118. package/dist/ParetoChart.js.map +1 -1
  119. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  120. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
  121. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +2 -0
  122. package/dist/PerformanceIntensiveMultiGraphDashboard.js +16 -16
  123. package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
  124. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +2 -0
  125. package/dist/PerformanceIntensiveScrollStory.d.ts +2 -0
  126. package/dist/RadarChart.cjs +1 -1
  127. package/dist/RadarChart.cjs.map +1 -1
  128. package/dist/RadarChart.d.ts +2 -0
  129. package/dist/RadarChart.js +158 -163
  130. package/dist/RadarChart.js.map +1 -1
  131. package/dist/SankeyChart.cjs +1 -1
  132. package/dist/SankeyChart.cjs.map +1 -1
  133. package/dist/SankeyChart.d.ts +2 -0
  134. package/dist/SankeyChart.js +172 -177
  135. package/dist/SankeyChart.js.map +1 -1
  136. package/dist/ScatterPlot.cjs +1 -1
  137. package/dist/ScatterPlot.cjs.map +1 -1
  138. package/dist/ScatterPlot.d.ts +2 -0
  139. package/dist/ScatterPlot.js +494 -483
  140. package/dist/ScatterPlot.js.map +1 -1
  141. package/dist/ScrollStory.d.ts +2 -0
  142. package/dist/SimpleLineChart.cjs +1 -1
  143. package/dist/SimpleLineChart.d.ts +2 -0
  144. package/dist/SimpleLineChart.js +4 -4
  145. package/dist/SingleGraphDashboard.cjs +1 -1
  146. package/dist/SingleGraphDashboard.cjs.map +1 -1
  147. package/dist/SingleGraphDashboard.d.ts +2 -0
  148. package/dist/SingleGraphDashboard.js +24 -24
  149. package/dist/SingleGraphDashboard.js.map +1 -1
  150. package/dist/SingleGraphDashboardFromConfig.d.ts +2 -0
  151. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +2 -0
  152. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +2 -0
  153. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  154. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  155. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +2 -0
  156. package/dist/SingleGraphDashboardThreeDGraphs.js +46 -46
  157. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  158. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +2 -0
  159. package/dist/SlopeChart.cjs +1 -1
  160. package/dist/SlopeChart.cjs.map +1 -1
  161. package/dist/SlopeChart.d.ts +2 -0
  162. package/dist/SlopeChart.js +182 -187
  163. package/dist/SlopeChart.js.map +1 -1
  164. package/dist/SparkLine.cjs +1 -1
  165. package/dist/SparkLine.d.ts +2 -0
  166. package/dist/SparkLine.js +4 -4
  167. package/dist/StatCardFromData.d.ts +2 -0
  168. package/dist/StripChart.cjs +1 -1
  169. package/dist/StripChart.cjs.map +1 -1
  170. package/dist/StripChart.d.ts +2 -0
  171. package/dist/StripChart.js +249 -258
  172. package/dist/StripChart.js.map +1 -1
  173. package/dist/ThreeDGlobe.cjs +1 -1
  174. package/dist/ThreeDGlobe.cjs.map +1 -1
  175. package/dist/ThreeDGlobe.d.ts +2 -0
  176. package/dist/ThreeDGlobe.js +142 -147
  177. package/dist/ThreeDGlobe.js.map +1 -1
  178. package/dist/Tooltip-Dj5eVppQ.js +45 -0
  179. package/dist/Tooltip-Dj5eVppQ.js.map +1 -0
  180. package/dist/Tooltip-uUdw6wJL.cjs +2 -0
  181. package/dist/Tooltip-uUdw6wJL.cjs.map +1 -0
  182. package/dist/TreeMapGraph.cjs +1 -1
  183. package/dist/TreeMapGraph.cjs.map +1 -1
  184. package/dist/TreeMapGraph.d.ts +2 -0
  185. package/dist/TreeMapGraph.js +159 -164
  186. package/dist/TreeMapGraph.js.map +1 -1
  187. package/dist/Types.d.ts +2 -0
  188. package/dist/UnitChart.d.ts +2 -0
  189. package/dist/{band-CyHaVft5.js → band-DHUZ2X7J.js} +3 -3
  190. package/dist/{band-CyHaVft5.js.map → band-DHUZ2X7J.js.map} +1 -1
  191. package/dist/{checkIfMultiple-Y9iKaV_u.js → checkIfMultiple-CIRtG0KE.js} +2 -2
  192. package/dist/{checkIfMultiple-Y9iKaV_u.js.map → checkIfMultiple-CIRtG0KE.js.map} +1 -1
  193. package/dist/index-CF5hnGvG.cjs +2 -0
  194. package/dist/index-CF5hnGvG.cjs.map +1 -0
  195. package/dist/index-DPGq3eIL.js +330 -0
  196. package/dist/index-DPGq3eIL.js.map +1 -0
  197. package/dist/index.cjs +1 -1
  198. package/dist/index.d.ts +2 -0
  199. package/dist/index.js +1 -1
  200. package/dist/{init-BJFW6EwE.js → init-BhZylTFx.js} +3 -3
  201. package/dist/{init-BJFW6EwE.js.map → init-BhZylTFx.js.map} +1 -1
  202. package/dist/{linear-BwnDd9KF.js → linear-BqltdMeF.js} +2 -2
  203. package/dist/{linear-BwnDd9KF.js.map → linear-BqltdMeF.js.map} +1 -1
  204. package/dist/{ordinal-P77xw8aL.js → ordinal-BJ6O_LC5.js} +2 -2
  205. package/dist/{ordinal-P77xw8aL.js.map → ordinal-BJ6O_LC5.js.map} +1 -1
  206. package/dist/{pow-DE4c7dbW.js → pow-CM2aze4M.js} +3 -3
  207. package/dist/{pow-DE4c7dbW.js.map → pow-CM2aze4M.js.map} +1 -1
  208. package/dist/{threshold-Bgr20hik.js → threshold-DFfqcDMa.js} +2 -2
  209. package/dist/{threshold-Bgr20hik.js.map → threshold-DFfqcDMa.js.map} +1 -1
  210. package/dist/{time-DCCfQk3V.js → time-BUL-dwnK.js} +3 -3
  211. package/dist/{time-DCCfQk3V.js.map → time-BUL-dwnK.js.map} +1 -1
  212. package/package.json +4 -4
  213. package/dist/Tooltip-4dJo4_AF.cjs +0 -2
  214. package/dist/Tooltip-4dJo4_AF.cjs.map +0 -1
  215. package/dist/Tooltip-CwWUegPB.js +0 -43
  216. package/dist/Tooltip-CwWUegPB.js.map +0 -1
  217. package/dist/index-B2LQV7Tk.js +0 -335
  218. package/dist/index-B2LQV7Tk.js.map +0 -1
  219. package/dist/index-xRHRLDIp.cjs +0 -2
  220. package/dist/index-xRHRLDIp.cjs.map +0 -1
  221. package/dist/sort-BIvMlUH1.js +0 -34
  222. package/dist/sort-BIvMlUH1.js.map +0 -1
  223. package/dist/sort-O96oMZLb.cjs +0 -2
  224. package/dist/sort-O96oMZLb.cjs.map +0 -1
package/dist/HybridMap.js CHANGED
@@ -1,211 +1,207 @@
1
- import { _ as Ie, m as Ce, b as Ne, j as r, c as Le } from "./index-CHPV5EwG-Curnpaqc.js";
2
- import * as ze from "react";
3
- import Pe, { useState as L, useRef as Ft, useEffect as ae, useEffectEvent as _e } from "react";
4
- import { p as Be, f as Ve } from "./parse-DlCRUFh_.js";
5
- import { g as Te, N as We } from "./getSliderMarks-HIDJ0_Cd.js";
6
- import { w as Ae } from "./Spinner-D7rnnwnA.js";
7
- import { i as we } from "./index-Bwrro8-q.js";
8
- import { z as Fe, t as He, g as Re, a as qe, b as Ge, c as Ue, d as Xe } from "./zoom-C9MFjAaV.js";
9
- import { l as Ye } from "./Modal-DGcuAHyK.js";
10
- import { j as xe } from "./Typography-PxtFcnJb.js";
11
- import { t as Je } from "./index-GEsywGxz.js";
12
- import { n as ke } from "./Source-DwTHB8fn.js";
13
- import { w as Ke } from "./index-Dzc_aaI9-Bb7gobH_.js";
14
- import { T as Ze } from "./Tooltip-CwWUegPB.js";
15
- import { s as Qe } from "./string2HTML-DhG75NqA.js";
16
- import { X as to, P as eo, e as oo } from "./index-D491FEn1.js";
17
- import { s as ro } from "./pow-DE4c7dbW.js";
18
- import { o as ao } from "./ordinal-P77xw8aL.js";
19
- import { t as io } from "./threshold-Bgr20hik.js";
20
- import { s as ve } from "./select-DKy99ogv.js";
21
- import { c as ie } from "./checkIfNullOrUndefined-DmfiKkNw.js";
22
- import { n as no } from "./numberFormattingFunction-14YCbkN2.js";
23
- import { u as lo } from "./use-in-view-Cxa7y1TH.js";
24
- import { m as ut } from "./proxy-BxkFHwUw.js";
25
- import { A as so } from "./index-BqfRwk1n.js";
26
- import { GraphFooter as co } from "./GraphFooter.js";
27
- import { GraphHeader as mo } from "./GraphHeader.js";
1
+ import { _ as Be, m as Me, b as Oe, j as a, c as We } from "./index-CHPV5EwG-Curnpaqc.js";
2
+ import * as Ae from "react";
3
+ import Fe, { useState as z, useRef as Tt, useEffect as se, useEffectEvent as Te } from "react";
4
+ import { f as Re, p as qe } from "./parse-DlCRUFh_.js";
5
+ import { g as Ge, N as He } from "./getSliderMarks-HIDJ0_Cd.js";
6
+ import { w as Ue } from "./Spinner-D7rnnwnA.js";
7
+ import { i as De } from "./index-Bwrro8-q.js";
8
+ import { z as Xe, t as Ye, g as Je, a as Ke, b as Ze, c as Qe, d as to } from "./zoom-C9MFjAaV.js";
9
+ import { j as je } from "./Typography-PxtFcnJb.js";
10
+ import { t as eo } from "./index-GEsywGxz.js";
11
+ import { n as $e } from "./Source-DwTHB8fn.js";
12
+ import { w as oo } from "./index-Dzc_aaI9-Bb7gobH_.js";
13
+ import { T as ao } from "./Tooltip-Dj5eVppQ.js";
14
+ import { X as ro, P as io, e as no } from "./index-D491FEn1.js";
15
+ import { D as lo } from "./DetailsModal-0Ry5nXiC.js";
16
+ import { s as so } from "./pow-CM2aze4M.js";
17
+ import { o as co } from "./ordinal-BJ6O_LC5.js";
18
+ import { t as mo } from "./threshold-DFfqcDMa.js";
19
+ import { s as Ce } from "./select-DKy99ogv.js";
20
+ import { c as ce } from "./checkIfNullOrUndefined-DmfiKkNw.js";
21
+ import { n as po } from "./numberFormattingFunction-14YCbkN2.js";
22
+ import { u as uo } from "./use-in-view-Cxa7y1TH.js";
23
+ import { m as ht } from "./proxy-BxkFHwUw.js";
24
+ import { A as ho } from "./index-BqfRwk1n.js";
25
+ import { GraphFooter as go } from "./GraphFooter.js";
26
+ import { GraphHeader as fo } from "./GraphHeader.js";
28
27
  import { Colors as St } from "./Colors.js";
29
- import { f as po } from "./fetchAndParseData-BpqkBPQL.js";
30
- import { u as uo } from "./uniqBy-BHy4I8PK.js";
31
- import { a as ho, G as go } from "./GraphContainer-CRqzdKu2.js";
32
- import { s as fo } from "./sort-BIvMlUH1.js";
33
- import { g as yo } from "./getUniqValue-DsqSii6M.js";
34
- import { g as xo } from "./getJenks-BbngDoBQ.js";
35
- import { a as vo } from "./init-BJFW6EwE.js";
36
- var bo = "Separator", je = "horizontal", wo = ["horizontal", "vertical"], De = ze.forwardRef((i, t) => {
37
- const { decorative: e, orientation: p = je, ...v } = i, n = ko(p) ? p : je, b = e ? { role: "none" } : { "aria-orientation": n === "vertical" ? n : void 0, role: "separator" };
38
- return /* @__PURE__ */ Ne.jsx(
39
- Ke.div,
28
+ import { f as yo } from "./fetchAndParseData-BpqkBPQL.js";
29
+ import { a as xo, G as vo } from "./GraphContainer-CRqzdKu2.js";
30
+ import { g as bo } from "./getUniqValue-DsqSii6M.js";
31
+ import { g as wo } from "./getJenks-BbngDoBQ.js";
32
+ var ko = "Separator", Se = "horizontal", jo = ["horizontal", "vertical"], Ee = Ae.forwardRef((i, t) => {
33
+ const { decorative: e, orientation: h = Se, ...w } = i, n = Co(h) ? h : Se, k = e ? { role: "none" } : { "aria-orientation": n === "vertical" ? n : void 0, role: "separator" };
34
+ return /* @__PURE__ */ Oe.jsx(
35
+ oo.div,
40
36
  {
41
37
  "data-orientation": n,
42
- ...b,
43
- ...v,
38
+ ...k,
39
+ ...w,
44
40
  ref: t
45
41
  }
46
42
  );
47
43
  });
48
- De.displayName = bo;
49
- function ko(i) {
50
- return wo.includes(i);
44
+ Ee.displayName = ko;
45
+ function Co(i) {
46
+ return jo.includes(i);
51
47
  }
52
- var $e = De;
53
- const Se = Pe.forwardRef((i, t) => {
54
- const e = Ie.c(14);
55
- let p, v, n, b;
48
+ var Ie = Ee;
49
+ const ze = Fe.forwardRef((i, t) => {
50
+ const e = Be.c(14);
51
+ let h, w, n, k;
56
52
  e[0] !== i ? ({
57
- className: p,
53
+ className: h,
58
54
  variant: n,
59
- orientation: b,
60
- ...v
61
- } = i, e[0] = i, e[1] = p, e[2] = v, e[3] = n, e[4] = b) : (p = e[1], v = e[2], n = e[3], b = e[4]);
62
- const w = n === void 0 ? "dark" : n, c = b === void 0 ? "horizontal" : b, u = c === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", S = w === "dark" ? "bg-primary-gray-600 dark:bg-primary-gray-200" : "bg-primary-gray-400 dark:bg-primary-gray-550";
55
+ orientation: k,
56
+ ...w
57
+ } = i, e[0] = i, e[1] = h, e[2] = w, e[3] = n, e[4] = k) : (h = e[1], w = e[2], n = e[3], k = e[4]);
58
+ const j = n === void 0 ? "dark" : n, d = k === void 0 ? "horizontal" : k, g = d === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", S = j === "dark" ? "bg-primary-gray-600 dark:bg-primary-gray-200" : "bg-primary-gray-400 dark:bg-primary-gray-550";
63
59
  let N;
64
- e[5] !== p || e[6] !== u || e[7] !== S ? (N = Ce(u, S, p), e[5] = p, e[6] = u, e[7] = S, e[8] = N) : N = e[8];
65
- let z;
66
- return e[9] !== c || e[10] !== v || e[11] !== t || e[12] !== N ? (z = /* @__PURE__ */ Ne.jsx($e, { ...v, ref: t, orientation: c, className: N }), e[9] = c, e[10] = v, e[11] = t, e[12] = N, e[13] = z) : z = e[13], z;
60
+ e[5] !== h || e[6] !== g || e[7] !== S ? (N = Me(g, S, h), e[5] = h, e[6] = g, e[7] = S, e[8] = N) : N = e[8];
61
+ let L;
62
+ return e[9] !== d || e[10] !== w || e[11] !== t || e[12] !== N ? (L = /* @__PURE__ */ Oe.jsx(Ie, { ...w, ref: t, orientation: d, className: N }), e[9] = d, e[10] = w, e[11] = t, e[12] = N, e[13] = L) : L = e[13], L;
67
63
  });
68
- Se.displayName = $e.displayName;
69
- function jo(i) {
64
+ ze.displayName = Ie.displayName;
65
+ function No(i) {
70
66
  const {
71
67
  data: t,
72
68
  colors: e,
73
- mapData: p,
74
- mapColorLegendTitle: v,
69
+ mapData: h,
70
+ mapColorLegendTitle: w,
75
71
  colorDomain: n,
76
- radius: b,
77
- height: w,
78
- width: c,
79
- scale: u,
72
+ radius: k,
73
+ height: j,
74
+ width: d,
75
+ scale: g,
80
76
  centerPoint: S,
81
77
  tooltip: N,
82
- showLabels: z,
83
- mapBorderWidth: tt,
84
- mapBorderColor: et,
85
- mapNoDataColor: ht,
86
- onSeriesMouseOver: J,
78
+ showLabels: L,
79
+ mapBorderWidth: ot,
80
+ mapBorderColor: at,
81
+ mapNoDataColor: gt,
82
+ onSeriesMouseOver: K,
87
83
  showColorScale: Mt,
88
- zoomScaleExtend: Ht,
89
- zoomTranslateExtend: Rt,
84
+ zoomScaleExtend: Rt,
85
+ zoomTranslateExtend: qt,
90
86
  highlightedDataPoints: Ot,
91
- onSeriesMouseClick: A,
87
+ onSeriesMouseClick: F,
92
88
  resetSelectionOnDoubleClick: Et,
93
- detailsOnClick: O,
94
- styles: E,
95
- classNames: gt,
96
- mapProjection: ot,
97
- zoomInteraction: K,
98
- animate: g,
99
- dimmedOpacity: F,
89
+ detailsOnClick: Z,
90
+ styles: O,
91
+ classNames: rt,
92
+ mapProjection: it,
93
+ zoomInteraction: Q,
94
+ animate: x,
95
+ dimmedOpacity: T,
100
96
  customLayers: ft,
101
97
  maxRadiusValue: yt,
102
- categorical: rt,
103
- dotColor: Z,
98
+ categorical: nt,
99
+ dotColor: tt,
104
100
  collapseColorScaleByDefault: It,
105
- highlightedIds: at,
101
+ highlightedIds: lt,
106
102
  mapProperty: xt,
107
103
  dotLegendTitle: vt,
108
- dotBorderColor: Lt,
109
- labelColor: zt
110
- } = i, [P, _] = L(void 0), [y, f] = L(It === void 0 ? !(c < 680) : !It), it = Ft(null), [H, Q] = L(void 0), [Pt, I] = L(void 0), [nt, R] = L(void 0), [bt, q] = L(void 0), B = Ft(null), G = lo(B, {
111
- once: g.once,
112
- amount: g.amount
113
- }), wt = Ft(null), V = t.filter((o) => o.radius === void 0 || o.radius === null).length !== t.length ? ro().domain([0, yt]).range([0.25, b]).nice() : void 0, qt = rt ? ao().domain(n).range(e) : io().domain(n).range(e);
114
- ae(() => {
115
- const o = ve(wt.current), a = ve(B.current), M = (d) => {
116
- if (K === "noZoom") return !1;
117
- if (K === "button") return !d.type.includes("wheel");
118
- const s = d.type === "wheel", k = d.type.startsWith("touch"), m = d.type === "mousedown" || d.type === "mousemove";
119
- return k ? !0 : s ? K === "scroll" ? !0 : d.ctrlKey : m && !d.button && !d.ctrlKey;
120
- }, l = Fe().scaleExtent(Ht).translateExtent(Rt || [[-20, -20], [c + 20, w + 20]]).filter(M).on("zoom", ({
121
- transform: d
104
+ dotBorderColor: zt,
105
+ labelColor: Lt
106
+ } = i, [P, _] = z(void 0), [b, v] = z(It === void 0 ? !(d < 680) : !It), st = Tt(null), [ct, et] = z(void 0), [Pt, E] = z(void 0), [dt, I] = z(void 0), [bt, R] = z(void 0), V = Tt(null), q = uo(V, {
107
+ once: x.once,
108
+ amount: x.amount
109
+ }), wt = Tt(null), B = t.filter((o) => o.radius === void 0 || o.radius === null).length !== t.length ? so().domain([0, yt]).range([0.25, k]).nice() : void 0, Gt = nt ? co().domain(n).range(e) : mo().domain(n).range(e);
110
+ se(() => {
111
+ const o = Ce(wt.current), r = Ce(V.current), M = (m) => {
112
+ if (Q === "noZoom") return !1;
113
+ if (Q === "button") return !m.type.includes("wheel");
114
+ const s = m.type === "wheel", C = m.type.startsWith("touch"), p = m.type === "mousedown" || m.type === "mousemove";
115
+ return C ? !0 : s ? Q === "scroll" ? !0 : m.ctrlKey : p && !m.button && !m.ctrlKey;
116
+ }, l = Xe().scaleExtent(Rt).translateExtent(qt || [[-20, -20], [d + 20, j + 20]]).filter(M).on("zoom", ({
117
+ transform: m
122
118
  }) => {
123
- o.attr("transform", d);
119
+ o.attr("transform", m);
124
120
  });
125
- a.call(l), it.current = l;
126
- }, [w, c, K]);
127
- const D = He(p), T = Je(p), U = D[2] - D[0], _t = D[3] - D[1], Bt = c * 190 / 960 * 360 / U, Vt = w * 190 / 678 * 180 / _t, X = u * Math.min(Bt, Vt), W = ot === "mercator" ? Re().rotate([0, 0]).center(S || T.geometry.coordinates).translate([c / 2, w / 2]).scale(X) : ot === "equalEarth" ? qe().rotate([0, 0]).center(S || T.geometry.coordinates).translate([c / 2, w / 2]).scale(X) : ot === "naturalEarth" ? Ge().rotate([0, 0]).center(S || T.geometry.coordinates).translate([c / 2, w / 2]).scale(X) : ot === "orthographic" ? Ue().rotate([0, 0]).center(S || T.geometry.coordinates).translate([c / 2, w / 2]).scale(X) : Xe().rotate([0, 0]).center(S || T.geometry.coordinates).translate([c / 2, w / 2]).scale(X), kt = (o) => {
128
- if (!B.current || !it.current) return;
129
- ve(B.current).call(it.current.scaleBy, o === "in" ? 1.2 : 1 / 1.2);
121
+ r.call(l), st.current = l;
122
+ }, [j, d, Q]);
123
+ const D = Ye(h), W = eo(h), G = D[2] - D[0], _t = D[3] - D[1], Vt = d * 190 / 960 * 360 / G, Bt = j * 190 / 678 * 180 / _t, H = g * Math.min(Vt, Bt), A = it === "mercator" ? Je().rotate([0, 0]).center(S || W.geometry.coordinates).translate([d / 2, j / 2]).scale(H) : it === "equalEarth" ? Ke().rotate([0, 0]).center(S || W.geometry.coordinates).translate([d / 2, j / 2]).scale(H) : it === "naturalEarth" ? Ze().rotate([0, 0]).center(S || W.geometry.coordinates).translate([d / 2, j / 2]).scale(H) : it === "orthographic" ? Qe().rotate([0, 0]).center(S || W.geometry.coordinates).translate([d / 2, j / 2]).scale(H) : to().rotate([0, 0]).center(S || W.geometry.coordinates).translate([d / 2, j / 2]).scale(H), kt = (o) => {
124
+ if (!V.current || !st.current) return;
125
+ Ce(V.current).call(st.current.scaleBy, o === "in" ? 1.2 : 1 / 1.2);
130
126
  };
131
- return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
132
- /* @__PURE__ */ r.jsxs("div", { className: "relative", children: [
133
- /* @__PURE__ */ r.jsx(ut.svg, { width: `${c}px`, height: `${w}px`, viewBox: `0 0 ${c} ${w}`, ref: B, direction: "ltr", children: /* @__PURE__ */ r.jsxs("g", { ref: wt, children: [
127
+ return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
128
+ /* @__PURE__ */ a.jsxs("div", { className: "relative", children: [
129
+ /* @__PURE__ */ a.jsx(ht.svg, { width: `${d}px`, height: `${j}px`, viewBox: `0 0 ${d} ${j}`, ref: V, direction: "ltr", children: /* @__PURE__ */ a.jsxs("g", { ref: wt, children: [
134
130
  ft.filter((o) => o.position === "before").map((o) => o.layer),
135
131
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
136
- p.features.map((o, a) => t.findIndex((l) => l.id === o.properties[xt]) !== -1 ? null : /* @__PURE__ */ r.jsx("g", { opacity: P ? F : at.length !== 0 ? at.indexOf(o.properties[xt]) !== -1 ? 1 : F : 1, children: o.geometry.type === "MultiPolygon" ? (
132
+ h.features.map((o, r) => t.findIndex((l) => l.id === o.properties[xt]) !== -1 ? null : /* @__PURE__ */ a.jsx("g", { opacity: P ? T : lt.length !== 0 ? lt.indexOf(o.properties[xt]) !== -1 ? 1 : T : 1, children: o.geometry.type === "MultiPolygon" ? (
137
133
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
138
- o.geometry.coordinates.map((l, d) => {
134
+ o.geometry.coordinates.map((l, m) => {
139
135
  let s = "";
140
- return l.forEach((k) => {
141
- let m = " M";
142
- k.forEach((h, lt) => {
143
- const $ = W([h[0], h[1]]);
144
- lt !== k.length - 1 ? m = `${m}${$[0]} ${$[1]}L` : m = `${m}${$[0]} ${$[1]}`;
145
- }), s += m;
146
- }), /* @__PURE__ */ r.jsx("path", { d: s, style: {
147
- stroke: et,
148
- strokeWidth: tt,
149
- fill: ht
150
- } }, d);
136
+ return l.forEach((C) => {
137
+ let p = " M";
138
+ C.forEach((f, mt) => {
139
+ const $ = A([f[0], f[1]]);
140
+ mt !== C.length - 1 ? p = `${p}${$[0]} ${$[1]}L` : p = `${p}${$[0]} ${$[1]}`;
141
+ }), s += p;
142
+ }), /* @__PURE__ */ a.jsx("path", { d: s, style: {
143
+ stroke: at,
144
+ strokeWidth: ot,
145
+ fill: gt
146
+ } }, m);
151
147
  })
152
148
  ) : (
153
149
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
154
- o.geometry.coordinates.map((l, d) => {
150
+ o.geometry.coordinates.map((l, m) => {
155
151
  let s = "M";
156
- return l.forEach((k, m) => {
157
- const h = W([k[0], k[1]]);
158
- m !== l.length - 1 ? s = `${s}${h[0]} ${h[1]}L` : s = `${s}${h[0]} ${h[1]}`;
159
- }), /* @__PURE__ */ r.jsx("path", { d: s, style: {
160
- stroke: et,
161
- strokeWidth: tt,
162
- fill: ht
163
- } }, d);
152
+ return l.forEach((C, p) => {
153
+ const f = A([C[0], C[1]]);
154
+ p !== l.length - 1 ? s = `${s}${f[0]} ${f[1]}L` : s = `${s}${f[0]} ${f[1]}`;
155
+ }), /* @__PURE__ */ a.jsx("path", { d: s, style: {
156
+ stroke: at,
157
+ strokeWidth: ot,
158
+ fill: gt
159
+ } }, m);
164
160
  })
165
- ) }, a)),
166
- /* @__PURE__ */ r.jsxs(so, { children: [
161
+ ) }, r)),
162
+ /* @__PURE__ */ a.jsxs(ho, { children: [
167
163
  t.filter((o) => o.id).map((o) => {
168
- const a = p.features.findIndex(
164
+ const r = h.features.findIndex(
169
165
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
170
166
  (l) => o.id === l.properties[xt]
171
- ), M = ie(o.x) ? ht : (
167
+ ), M = ce(o.x) ? gt : (
172
168
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
173
- qt(o.x)
169
+ Gt(o.x)
174
170
  );
175
- return /* @__PURE__ */ r.jsx(ut.g, { variants: {
171
+ return /* @__PURE__ */ a.jsx(ht.g, { variants: {
176
172
  initial: {
177
173
  opacity: 0
178
174
  },
179
175
  whileInView: {
180
- opacity: P ? P === M ? 1 : F : at.length !== 0 ? at.indexOf(o.id) !== -1 ? 1 : F : 1,
176
+ opacity: P ? P === M ? 1 : T : lt.length !== 0 ? lt.indexOf(o.id) !== -1 ? 1 : T : 1,
181
177
  transition: {
182
- duration: g.duration
178
+ duration: x.duration
183
179
  }
184
180
  }
185
- }, initial: "initial", animate: G ? "whileInView" : "initial", exit: {
181
+ }, initial: "initial", animate: q ? "whileInView" : "initial", exit: {
186
182
  opacity: 0,
187
183
  transition: {
188
- duration: g.duration
184
+ duration: x.duration
189
185
  }
190
186
  }, onMouseEnter: (l) => {
191
- I(o), q(l.clientY), R(l.clientX), J?.(o);
187
+ E(o), R(l.clientY), I(l.clientX), K?.(o);
192
188
  }, onMouseMove: (l) => {
193
- I(o), q(l.clientY), R(l.clientX);
189
+ E(o), R(l.clientY), I(l.clientX);
194
190
  }, onMouseLeave: () => {
195
- I(void 0), R(void 0), q(void 0), J?.(void 0);
191
+ E(void 0), I(void 0), R(void 0), K?.(void 0);
196
192
  }, onClick: () => {
197
- (A || O) && (we(H, o) && Et ? (Q(void 0), A?.(void 0)) : (Q(o), A?.(o)));
198
- }, children: a === -1 ? null : p.features[a].geometry.type === "MultiPolygon" ? p.features[a].geometry.coordinates.map(
193
+ (F || Z) && (De(ct, o) && Et ? (et(void 0), F?.(void 0)) : (et(o), F?.(o)));
194
+ }, children: r === -1 ? null : h.features[r].geometry.type === "MultiPolygon" ? h.features[r].geometry.coordinates.map(
199
195
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
200
- (l, d) => {
196
+ (l, m) => {
201
197
  let s = "";
202
- return l.forEach((k) => {
203
- let m = " M";
204
- k.forEach((h, lt) => {
205
- const $ = W([h[0], h[1]]);
206
- lt !== k.length - 1 ? m = `${m}${$[0]} ${$[1]}L` : m = `${m}${$[0]} ${$[1]}`;
207
- }), s += m;
208
- }), /* @__PURE__ */ r.jsx(ut.path, { d: s, variants: {
198
+ return l.forEach((C) => {
199
+ let p = " M";
200
+ C.forEach((f, mt) => {
201
+ const $ = A([f[0], f[1]]);
202
+ mt !== C.length - 1 ? p = `${p}${$[0]} ${$[1]}L` : p = `${p}${$[0]} ${$[1]}`;
203
+ }), s += p;
204
+ }), /* @__PURE__ */ a.jsx(ht.path, { d: s, variants: {
209
205
  initial: {
210
206
  fill: M,
211
207
  opacity: 0
@@ -214,27 +210,27 @@ function jo(i) {
214
210
  fill: M,
215
211
  opacity: 1,
216
212
  transition: {
217
- duration: g.duration
213
+ duration: x.duration
218
214
  }
219
215
  }
220
- }, initial: "initial", animate: G ? "whileInView" : "initial", exit: {
216
+ }, initial: "initial", animate: q ? "whileInView" : "initial", exit: {
221
217
  opacity: 0,
222
218
  transition: {
223
- duration: g.duration
219
+ duration: x.duration
224
220
  }
225
221
  }, style: {
226
- stroke: et,
227
- strokeWidth: tt
228
- } }, `${o.id}-${d}`);
222
+ stroke: at,
223
+ strokeWidth: ot
224
+ } }, `${o.id}-${m}`);
229
225
  }
230
- ) : p.features[a].geometry.coordinates.map(
226
+ ) : h.features[r].geometry.coordinates.map(
231
227
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
232
- (l, d) => {
228
+ (l, m) => {
233
229
  let s = "M";
234
- return l.forEach((k, m) => {
235
- const h = W([k[0], k[1]]);
236
- m !== l.length - 1 ? s = `${s}${h[0]} ${h[1]}L` : s = `${s}${h[0]} ${h[1]}`;
237
- }), /* @__PURE__ */ r.jsx(ut.path, { d: s, variants: {
230
+ return l.forEach((C, p) => {
231
+ const f = A([C[0], C[1]]);
232
+ p !== l.length - 1 ? s = `${s}${f[0]} ${f[1]}L` : s = `${s}${f[0]} ${f[1]}`;
233
+ }), /* @__PURE__ */ a.jsx(ht.path, { d: s, variants: {
238
234
  initial: {
239
235
  fill: M,
240
236
  opacity: 0
@@ -243,145 +239,145 @@ function jo(i) {
243
239
  fill: M,
244
240
  opacity: 1,
245
241
  transition: {
246
- duration: g.duration
242
+ duration: x.duration
247
243
  }
248
244
  }
249
- }, initial: "initial", animate: G ? "whileInView" : "initial", exit: {
245
+ }, initial: "initial", animate: q ? "whileInView" : "initial", exit: {
250
246
  opacity: 0,
251
247
  transition: {
252
- duration: g.duration
248
+ duration: x.duration
253
249
  }
254
250
  }, style: {
255
- stroke: et,
256
- strokeWidth: tt
257
- } }, `${o.id}-${d}`);
251
+ stroke: at,
252
+ strokeWidth: ot
253
+ } }, `${o.id}-${m}`);
258
254
  }
259
255
  ) }, o.id);
260
256
  }),
261
- t.filter((o) => !ie(o.lat) && !ie(o.long)).map((o) => /* @__PURE__ */ r.jsxs(ut.g, { variants: {
257
+ t.filter((o) => !ce(o.lat) && !ce(o.long)).map((o) => /* @__PURE__ */ a.jsxs(ht.g, { variants: {
262
258
  initial: {
263
259
  opacity: 0
264
260
  },
265
261
  whileInView: {
266
- opacity: Ot.length !== 0 ? Ot.indexOf(o.label || "") !== -1 ? 1 : F : 1,
262
+ opacity: Ot.length !== 0 ? Ot.indexOf(o.label || "") !== -1 ? 1 : T : 1,
267
263
  transition: {
268
- duration: g.duration
264
+ duration: x.duration
269
265
  }
270
266
  }
271
- }, initial: "initial", animate: G ? "whileInView" : "initial", exit: {
267
+ }, initial: "initial", animate: q ? "whileInView" : "initial", exit: {
272
268
  opacity: 0,
273
269
  transition: {
274
- duration: g.duration
270
+ duration: x.duration
275
271
  }
276
- }, onMouseEnter: (a) => {
277
- I(o), q(a.clientY), R(a.clientX), J?.(o);
278
- }, onMouseMove: (a) => {
279
- I(o), q(a.clientY), R(a.clientX);
272
+ }, onMouseEnter: (r) => {
273
+ E(o), R(r.clientY), I(r.clientX), K?.(o);
274
+ }, onMouseMove: (r) => {
275
+ E(o), R(r.clientY), I(r.clientX);
280
276
  }, onMouseLeave: () => {
281
- I(void 0), R(void 0), q(void 0), J?.(void 0);
277
+ E(void 0), I(void 0), R(void 0), K?.(void 0);
282
278
  }, onClick: () => {
283
- (A || O) && (we(H, o) && Et ? (Q(void 0), A?.(void 0)) : (Q(o), A?.(o)));
284
- }, transform: `translate(${W([o.long, o.lat])[0]},${W([o.long, o.lat])[1]})`, children: [
285
- /* @__PURE__ */ r.jsx(ut.circle, { cx: 0, cy: 0, variants: {
279
+ (F || Z) && (De(ct, o) && Et ? (et(void 0), F?.(void 0)) : (et(o), F?.(o)));
280
+ }, transform: `translate(${A([o.long, o.lat])[0]},${A([o.long, o.lat])[1]})`, children: [
281
+ /* @__PURE__ */ a.jsx(ht.circle, { cx: 0, cy: 0, variants: {
286
282
  initial: {
287
283
  r: 0,
288
- fill: Z,
289
- stroke: Lt || Z
284
+ fill: tt,
285
+ stroke: zt || tt
290
286
  },
291
287
  whileInView: {
292
- r: V ? V(o.radius || 0) : b,
293
- fill: Z,
294
- stroke: Lt || Z,
288
+ r: B ? B(o.radius || 0) : k,
289
+ fill: tt,
290
+ stroke: zt || tt,
295
291
  transition: {
296
- duration: g.duration
292
+ duration: x.duration
297
293
  }
298
294
  }
299
- }, initial: "initial", animate: G ? "whileInView" : "initial", exit: {
295
+ }, initial: "initial", animate: q ? "whileInView" : "initial", exit: {
300
296
  r: 0,
301
297
  transition: {
302
- duration: g.duration
298
+ duration: x.duration
303
299
  }
304
300
  }, style: {
305
301
  fillOpacity: 0.8
306
302
  } }),
307
- z && o.label ? /* @__PURE__ */ r.jsx(ut.text, { variants: {
303
+ L && o.label ? /* @__PURE__ */ a.jsx(ht.text, { variants: {
308
304
  initial: {
309
305
  opacity: 0,
310
- x: V ? V(o.radius || 0) : b
306
+ x: B ? B(o.radius || 0) : k
311
307
  },
312
308
  whileInView: {
313
309
  opacity: 1,
314
- x: V ? V(o.radius || 0) : b,
310
+ x: B ? B(o.radius || 0) : k,
315
311
  transition: {
316
- duration: g.duration
312
+ duration: x.duration
317
313
  }
318
314
  }
319
- }, initial: "initial", animate: G ? "whileInView" : "initial", exit: {
315
+ }, initial: "initial", animate: q ? "whileInView" : "initial", exit: {
320
316
  opacity: 0,
321
317
  transition: {
322
- duration: g.duration
318
+ duration: x.duration
323
319
  }
324
320
  }, y: 0, className: "text-sm", style: {
325
321
  textAnchor: "start",
326
- fill: zt || "#000"
322
+ fill: Lt || "#000"
327
323
  }, dx: 4, dy: 5, children: o.label }) : null
328
324
  ] }, o.label || `${o.lat}-${o.long}`))
329
325
  ] }),
330
326
  ft.filter((o) => o.position === "after").map((o) => o.layer)
331
327
  ] }) }),
332
- Mt === !1 ? null : /* @__PURE__ */ r.jsx("div", { className: Ce("absolute left-4 bottom-4 map-color-legend", gt?.colorLegend), children: y ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
333
- /* @__PURE__ */ r.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: () => {
334
- f(!1);
335
- }, children: /* @__PURE__ */ r.jsx(to, {}) }),
336
- /* @__PURE__ */ r.jsxs("div", { className: "color-legend-box p-2 bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)]", style: {
337
- width: rt ? void 0 : "340px"
328
+ Mt === !1 ? null : /* @__PURE__ */ a.jsx("div", { className: Me("absolute left-4 bottom-4 map-color-legend", rt?.colorLegend), children: b ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
329
+ /* @__PURE__ */ a.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: () => {
330
+ v(!1);
331
+ }, children: /* @__PURE__ */ a.jsx(ro, {}) }),
332
+ /* @__PURE__ */ a.jsxs("div", { className: "color-legend-box p-2 bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)]", style: {
333
+ width: nt ? void 0 : "340px"
338
334
  }, children: [
339
- vt && vt !== "" ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
340
- /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2", children: [
341
- /* @__PURE__ */ r.jsx("div", { className: "w-3 h-3 rounded-full", style: {
342
- backgroundColor: Z
335
+ vt && vt !== "" ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
336
+ /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2", children: [
337
+ /* @__PURE__ */ a.jsx("div", { className: "w-3 h-3 rounded-full", style: {
338
+ backgroundColor: tt
343
339
  } }),
344
- /* @__PURE__ */ r.jsx(xe, { size: "xs", marginBottom: "none", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
340
+ /* @__PURE__ */ a.jsx(je, { size: "xs", marginBottom: "none", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
345
341
  display: "-webkit-box",
346
342
  WebkitLineClamp: "1",
347
343
  WebkitBoxOrient: "vertical"
348
344
  }, children: vt })
349
345
  ] }),
350
- /* @__PURE__ */ r.jsx(ke, { size: "xl" }),
351
- /* @__PURE__ */ r.jsx(Se, {}),
352
- /* @__PURE__ */ r.jsx(ke, { size: "xl" })
346
+ /* @__PURE__ */ a.jsx($e, { size: "xl" }),
347
+ /* @__PURE__ */ a.jsx(ze, {}),
348
+ /* @__PURE__ */ a.jsx($e, { size: "xl" })
353
349
  ] }) : null,
354
- v && v !== "" ? /* @__PURE__ */ r.jsx(xe, { size: "xs", marginBottom: "xs", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
350
+ w && w !== "" ? /* @__PURE__ */ a.jsx(je, { size: "xs", marginBottom: "xs", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
355
351
  display: "-webkit-box",
356
352
  WebkitLineClamp: "1",
357
353
  WebkitBoxOrient: "vertical"
358
- }, children: v }) : null,
359
- rt ? /* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-3", children: n.map((o, a) => /* @__PURE__ */ r.jsxs("div", { className: "flex gap-2 items-center", onMouseOver: () => {
360
- _(e[a % e.length]);
354
+ }, children: w }) : null,
355
+ nt ? /* @__PURE__ */ a.jsx("div", { className: "flex flex-col gap-3", children: n.map((o, r) => /* @__PURE__ */ a.jsxs("div", { className: "flex gap-2 items-center", onMouseOver: () => {
356
+ _(e[r % e.length]);
361
357
  }, onMouseLeave: () => {
362
358
  _(void 0);
363
359
  }, children: [
364
- /* @__PURE__ */ r.jsx("div", { className: "w-2 h-2 rounded-full", style: {
365
- backgroundColor: e[a % e.length]
360
+ /* @__PURE__ */ a.jsx("div", { className: "w-2 h-2 rounded-full", style: {
361
+ backgroundColor: e[r % e.length]
366
362
  } }),
367
- /* @__PURE__ */ r.jsx(xe, { size: "sm", marginBottom: "none", leading: "none", children: o })
368
- ] }, a)) }) : /* @__PURE__ */ r.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ r.jsxs("g", { children: [
369
- n.map((o, a) => /* @__PURE__ */ r.jsxs("g", { onMouseOver: () => {
370
- _(e[a]);
363
+ /* @__PURE__ */ a.jsx(je, { size: "sm", marginBottom: "none", leading: "none", children: o })
364
+ ] }, r)) }) : /* @__PURE__ */ a.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ a.jsxs("g", { children: [
365
+ n.map((o, r) => /* @__PURE__ */ a.jsxs("g", { onMouseOver: () => {
366
+ _(e[r]);
371
367
  }, onMouseLeave: () => {
372
368
  _(void 0);
373
369
  }, className: "cursor-pointer", children: [
374
- /* @__PURE__ */ r.jsx("rect", { x: a * 320 / e.length + 1, y: 1, width: 320 / e.length - 2, height: 8, className: P === e[a] ? "stroke-primary-gray-700 dark:stroke-primary-gray-300" : "", style: {
375
- fill: e[a],
376
- ...P === e[a] ? {} : {
377
- stroke: e[a]
370
+ /* @__PURE__ */ a.jsx("rect", { x: r * 320 / e.length + 1, y: 1, width: 320 / e.length - 2, height: 8, className: P === e[r] ? "stroke-primary-gray-700 dark:stroke-primary-gray-300" : "", style: {
371
+ fill: e[r],
372
+ ...P === e[r] ? {} : {
373
+ stroke: e[r]
378
374
  }
379
375
  } }),
380
- /* @__PURE__ */ r.jsx("text", { x: (a + 1) * 320 / e.length, y: 25, className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs", style: {
376
+ /* @__PURE__ */ a.jsx("text", { x: (r + 1) * 320 / e.length, y: 25, className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs", style: {
381
377
  textAnchor: "middle"
382
- }, children: no(o, "NA") })
383
- ] }, a)),
384
- /* @__PURE__ */ r.jsx("g", { children: /* @__PURE__ */ r.jsx("rect", { onMouseOver: () => {
378
+ }, children: po(o, "NA") })
379
+ ] }, r)),
380
+ /* @__PURE__ */ a.jsx("g", { children: /* @__PURE__ */ a.jsx("rect", { onMouseOver: () => {
385
381
  _(e[n.length]);
386
382
  }, onMouseLeave: () => {
387
383
  _(void 0);
@@ -393,207 +389,218 @@ function jo(i) {
393
389
  } }) })
394
390
  ] }) })
395
391
  ] })
396
- ] }) : /* @__PURE__ */ r.jsx("button", { type: "button", className: "mb-0 border-0 bg-transparent p-0 self-start map-legend-button", onClick: () => {
397
- f(!0);
398
- }, children: /* @__PURE__ */ r.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" }) }) }),
399
- K === "button" && /* @__PURE__ */ r.jsxs("div", { className: "absolute left-4 top-4 flex flex-col zoom-buttons", children: [
400
- /* @__PURE__ */ r.jsx("button", { onClick: () => kt("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: "+" }),
401
- /* @__PURE__ */ r.jsx("button", { onClick: () => kt("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: "–" })
392
+ ] }) : /* @__PURE__ */ a.jsx("button", { type: "button", className: "mb-0 border-0 bg-transparent p-0 self-start map-legend-button", onClick: () => {
393
+ v(!0);
394
+ }, children: /* @__PURE__ */ a.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" }) }) }),
395
+ Q === "button" && /* @__PURE__ */ a.jsxs("div", { className: "absolute left-4 top-4 flex flex-col zoom-buttons", children: [
396
+ /* @__PURE__ */ a.jsx("button", { onClick: () => kt("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: "+" }),
397
+ /* @__PURE__ */ a.jsx("button", { onClick: () => kt("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: "–" })
402
398
  ] })
403
399
  ] }),
404
- O && H !== void 0 ? /* @__PURE__ */ r.jsx(Ye, { open: H !== void 0, onClose: () => {
405
- Q(void 0);
406
- }, children: /* @__PURE__ */ r.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof O == "string" ? {
407
- __html: Qe(O, H)
408
- } : void 0, children: typeof O == "function" ? O(H) : null }) }) : null,
409
- Pt && N && nt && bt ? /* @__PURE__ */ r.jsx(Ze, { data: Pt, body: N, xPos: nt, yPos: bt, backgroundStyle: E?.tooltip, className: gt?.tooltip }) : null
400
+ Z && ct !== void 0 ? /* @__PURE__ */ a.jsx(lo, { body: Z, data: ct, setData: et, className: rt?.modal }) : null,
401
+ Pt && N && dt && bt ? /* @__PURE__ */ a.jsx(ao, { data: Pt, body: N, xPos: dt, yPos: bt, backgroundStyle: O?.tooltip, className: rt?.tooltip }) : null
410
402
  ] });
411
403
  }
412
- function hr(i) {
413
- const t = Le.c(116), {
404
+ function pa(i) {
405
+ const t = We.c(131), {
414
406
  data: e,
415
- mapData: p,
416
- graphTitle: v,
407
+ mapData: h,
408
+ graphTitle: w,
417
409
  colors: n,
418
- sources: b,
419
- graphDescription: w,
420
- height: c,
421
- width: u,
410
+ sources: k,
411
+ graphDescription: j,
412
+ height: d,
413
+ width: g,
422
414
  footNote: S,
423
415
  mapColorLegendTitle: N,
424
- colorDomain: z,
425
- choroplethScaleType: tt,
426
- radius: et,
427
- scale: ht,
428
- centerPoint: J,
416
+ colorDomain: L,
417
+ choroplethScaleType: ot,
418
+ radius: at,
419
+ scale: gt,
420
+ centerPoint: K,
429
421
  padding: Mt,
430
- mapBorderWidth: Ht,
431
- mapNoDataColor: Rt,
422
+ mapBorderWidth: Rt,
423
+ mapNoDataColor: qt,
432
424
  backgroundColor: Ot,
433
- showLabels: A,
425
+ showLabels: F,
434
426
  mapBorderColor: Et,
435
- tooltip: O,
436
- relativeHeight: E,
437
- onSeriesMouseOver: gt,
438
- isWorldMap: ot,
439
- showColorScale: K,
440
- zoomScaleExtend: g,
441
- zoomTranslateExtend: F,
427
+ tooltip: Z,
428
+ relativeHeight: O,
429
+ onSeriesMouseOver: rt,
430
+ isWorldMap: it,
431
+ showColorScale: Q,
432
+ zoomScaleExtend: x,
433
+ zoomTranslateExtend: T,
442
434
  graphID: ft,
443
435
  highlightedDataPoints: yt,
444
- onSeriesMouseClick: rt,
445
- graphDownload: Z,
436
+ onSeriesMouseClick: nt,
437
+ graphDownload: tt,
446
438
  dataDownload: It,
447
- showAntarctica: at,
439
+ showAntarctica: lt,
448
440
  language: xt,
449
441
  minHeight: vt,
450
- theme: Lt,
451
- ariaLabel: zt,
442
+ theme: zt,
443
+ ariaLabel: Lt,
452
444
  resetSelectionOnDoubleClick: P,
453
445
  detailsOnClick: _,
454
- styles: y,
455
- classNames: f,
456
- mapProjection: it,
457
- zoomInteraction: H,
458
- animate: Q,
446
+ styles: b,
447
+ classNames: v,
448
+ mapProjection: st,
449
+ zoomInteraction: ct,
450
+ animate: et,
459
451
  dimmedOpacity: Pt,
460
- customLayers: I,
461
- maxRadiusValue: nt,
462
- timeline: R,
452
+ customLayers: E,
453
+ maxRadiusValue: dt,
454
+ timeline: I,
463
455
  collapseColorScaleByDefault: bt,
464
- dotColor: q,
465
- highlightedIds: B,
466
- mapProperty: G,
456
+ dotColor: R,
457
+ highlightedIds: V,
458
+ mapProperty: q,
467
459
  dotLegendTitle: wt,
468
- dotBorderColor: V,
469
- labelColor: qt
470
- } = i, D = p === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap.json" : p, T = S === 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." : S, U = tt === void 0 ? "threshold" : tt, _t = et === void 0 ? 5 : et, Bt = ht === void 0 ? 0.95 : ht, Vt = Ht === void 0 ? 0.5 : Ht, X = Rt === void 0 ? St.light.graphNoData : Rt, W = Ot === void 0 ? !1 : Ot, kt = A === void 0 ? !1 : A, o = Et === void 0 ? St.light.grays["gray-500"] : Et, a = ot === void 0 ? !0 : ot, M = K === void 0 ? !0 : K;
460
+ dotBorderColor: B,
461
+ labelColor: Gt
462
+ } = i, D = h === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap.json" : h, W = S === 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." : S, G = ot === void 0 ? "threshold" : ot, _t = at === void 0 ? 5 : at, Vt = gt === void 0 ? 0.95 : gt, Bt = Rt === void 0 ? 0.5 : Rt, H = qt === void 0 ? St.light.graphNoData : qt, A = Ot === void 0 ? !1 : Ot, kt = F === void 0 ? !1 : F, o = Et === void 0 ? St.light.grays["gray-500"] : Et, r = it === void 0 ? !0 : it, M = Q === void 0 ? !0 : Q;
471
463
  let l;
472
- t[0] !== g ? (l = g === void 0 ? [0.8, 6] : g, t[0] = g, t[1] = l) : l = t[1];
473
- const d = l;
464
+ t[0] !== x ? (l = x === void 0 ? [0.8, 6] : x, t[0] = x, t[1] = l) : l = t[1];
465
+ const m = l;
474
466
  let s;
475
467
  t[2] !== yt ? (s = yt === void 0 ? [] : yt, t[2] = yt, t[3] = s) : s = t[3];
476
- const k = s, m = Z === void 0 ? !1 : Z, h = It === void 0 ? !1 : It, lt = at === void 0 ? !1 : at, $ = xt === void 0 ? "en" : xt, Y = vt === void 0 ? 0 : vt, st = Lt === void 0 ? "light" : Lt, ne = P === void 0 ? !0 : P, le = H === void 0 ? "button" : H, Gt = Q === void 0 ? !1 : Q, se = Pt === void 0 ? 0.3 : Pt;
468
+ const C = s, p = tt === void 0 ? !1 : tt, f = It === void 0 ? !1 : It, mt = lt === void 0 ? !1 : lt, $ = xt === void 0 ? "en" : xt, U = vt === void 0 ? 0 : vt, pt = zt === void 0 ? "light" : zt, de = P === void 0 ? !0 : P, me = ct === void 0 ? "button" : ct, Ht = et === void 0 ? !1 : et, pe = Pt === void 0 ? 0.3 : Pt;
477
469
  let Ut;
478
- t[4] !== I ? (Ut = I === void 0 ? [] : I, t[4] = I, t[5] = Ut) : Ut = t[5];
479
- const ce = Ut, C = R === void 0 ? {
470
+ t[4] !== E ? (Ut = E === void 0 ? [] : E, t[4] = E, t[5] = Ut) : Ut = t[5];
471
+ const ue = Ut;
472
+ let Xt;
473
+ t[6] !== I ? (Xt = I === void 0 ? {
480
474
  enabled: !1,
481
475
  autoplay: !1,
482
476
  showOnlyActiveDate: !0
483
- } : R, de = q === void 0 ? St.primaryColors["blue-600"] : q;
484
- let Xt;
485
- t[6] !== B ? (Xt = B === void 0 ? [] : B, t[6] = B, t[7] = Xt) : Xt = t[7];
486
- const me = Xt, pe = G === void 0 ? "ISO3" : G, ue = qt === void 0 ? St.primaryColors["blue-600"] : qt, [ct, Me] = L(0), [Tt, Oe] = L(0), [dt, he] = L(C.autoplay), x = fo(uo(e, "date", !0).map((j) => Be(`${j}`, C.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), Lo), [mt, Wt] = L(C.autoplay ? 0 : x.length - 1), [jt, Ee] = L(void 0), ge = Ft(null), be = Ft(null);
477
+ } : I, t[6] = I, t[7] = Xt) : Xt = t[7];
478
+ const c = Xt, he = R === void 0 ? St.primaryColors["blue-600"] : R;
487
479
  let Yt;
488
- t[8] !== U || t[9] !== z || t[10] !== n?.length || t[11] !== e ? (Yt = z || (U === "categorical" ? yo(e, "x") : xo(e.map(Io), n?.length || 4)), t[8] = U, t[9] = z, t[10] = n?.length, t[11] = e, t[12] = Yt) : Yt = t[12];
489
- const At = Yt;
490
- let Jt, Kt;
491
- t[13] === Symbol.for("react.memo_cache_sentinel") ? (Jt = () => {
492
- const j = new ResizeObserver((pt) => {
493
- Me(pt[0].target.clientWidth || 620), Oe(pt[0].target.clientHeight || 480);
480
+ t[8] !== V ? (Yt = V === void 0 ? [] : V, t[8] = V, t[9] = Yt) : Yt = t[9];
481
+ const ge = Yt, fe = q === void 0 ? "ISO3" : q, ye = Gt === void 0 ? St.primaryColors["blue-600"] : Gt, [ut, Le] = z(0), [Wt, Pe] = z(0), [X, _e] = z(c.autoplay);
482
+ let At;
483
+ if (t[10] !== e || t[11] !== c.dateFormat) {
484
+ let y;
485
+ t[13] !== c.dateFormat ? (y = (J) => qe(`${J}`, c.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[13] = c.dateFormat, t[14] = y) : y = t[14], At = [...new Set(e.map(y))], At.sort(Po), t[10] = e, t[11] = c.dateFormat, t[12] = At;
486
+ } else
487
+ At = t[12];
488
+ const u = At, [Y, xe] = z(c.autoplay ? 0 : u.length - 1), [jt, Ve] = z(void 0), ve = Tt(null), Ne = Tt(null);
489
+ let Jt;
490
+ t[15] !== G || t[16] !== L || t[17] !== n?.length || t[18] !== e ? (Jt = L || (G === "categorical" ? bo(e, "x") : wo(e.map(Lo), n?.length || 4)), t[15] = G, t[16] = L, t[17] = n?.length, t[18] = e, t[19] = Jt) : Jt = t[19];
491
+ const Ft = Jt;
492
+ let Kt, Zt;
493
+ t[20] === Symbol.for("react.memo_cache_sentinel") ? (Kt = () => {
494
+ const y = new ResizeObserver((J) => {
495
+ Le(J[0].target.clientWidth || 620), Pe(J[0].target.clientHeight || 480);
494
496
  });
495
- return ge.current && j.observe(ge.current), () => j.disconnect();
496
- }, Kt = [], t[13] = Jt, t[14] = Kt) : (Jt = t[13], Kt = t[14]), ae(Jt, Kt);
497
- let Zt;
498
- t[15] === Symbol.for("react.memo_cache_sentinel") ? (Zt = (j) => {
499
- Ee(j);
500
- }, t[15] = Zt) : Zt = t[15];
501
- const Qt = _e(Zt);
502
- let te;
503
- t[16] !== D || t[17] !== Qt ? (te = () => {
504
- typeof D == "string" ? po(D).then((pt) => {
505
- Qt(pt);
506
- }) : Qt(D);
507
- }, t[16] = D, t[17] = Qt, t[18] = te) : te = t[18];
497
+ return ve.current && y.observe(ve.current), () => y.disconnect();
498
+ }, Zt = [], t[20] = Kt, t[21] = Zt) : (Kt = t[20], Zt = t[21]), se(Kt, Zt);
499
+ let Qt;
500
+ t[22] === Symbol.for("react.memo_cache_sentinel") ? (Qt = (y) => {
501
+ Ve(y);
502
+ }, t[22] = Qt) : Qt = t[22];
503
+ const te = Te(Qt);
508
504
  let ee;
509
- t[19] !== D ? (ee = [D], t[19] = D, t[20] = ee) : ee = t[20], ae(te, ee), ae(() => {
510
- const j = setInterval(() => {
511
- Wt((pt) => pt < x.length - 1 ? pt + 1 : 0);
512
- }, (C.speed || 2) * 1e3);
513
- return dt || clearInterval(j), () => clearInterval(j);
514
- }, [x, dt, C.speed]);
515
- const oe = Te(x, mt, C.showOnlyActiveDate, C.dateFormat || "yyyy"), fe = f?.graphContainer, ye = y?.graphContainer;
505
+ t[23] !== D || t[24] !== te ? (ee = () => {
506
+ typeof D == "string" ? yo(D).then((J) => {
507
+ te(J);
508
+ }) : te(D);
509
+ }, t[23] = D, t[24] = te, t[25] = ee) : ee = t[25];
510
+ let oe;
511
+ t[26] !== D ? (oe = [D], t[26] = D, t[27] = oe) : oe = t[27], se(ee, oe);
512
+ let ae, re;
513
+ t[28] !== X || t[29] !== c.speed || t[30] !== u ? (ae = () => {
514
+ const y = setInterval(() => {
515
+ xe((J) => J < u.length - 1 ? J + 1 : 0);
516
+ }, (c.speed || 2) * 1e3);
517
+ return X || clearInterval(y), () => clearInterval(y);
518
+ }, re = [u, X, c.speed], t[28] = X, t[29] = c.speed, t[30] = u, t[31] = ae, t[32] = re) : (ae = t[31], re = t[32]), se(ae, re);
519
+ const be = c.dateFormat || "yyyy";
520
+ let ie;
521
+ t[33] !== Y || t[34] !== be || t[35] !== c.showOnlyActiveDate || t[36] !== u ? (ie = Ge(u, Y, c.showOnlyActiveDate, be), t[33] = Y, t[34] = be, t[35] = c.showOnlyActiveDate, t[36] = u, t[37] = ie) : ie = t[37];
522
+ const ne = ie, we = v?.graphContainer, ke = b?.graphContainer;
516
523
  let Ct;
517
- t[21] !== f?.description || t[22] !== f?.title || t[23] !== e || t[24] !== h || t[25] !== w || t[26] !== m || t[27] !== v || t[28] !== y?.description || t[29] !== y?.title || t[30] !== u ? (Ct = v || w || m || h ? /* @__PURE__ */ r.jsx(mo, { styles: {
518
- title: y?.title,
519
- description: y?.description
524
+ t[38] !== v?.description || t[39] !== v?.title || t[40] !== e || t[41] !== f || t[42] !== j || t[43] !== p || t[44] !== w || t[45] !== b?.description || t[46] !== b?.title || t[47] !== g ? (Ct = w || j || p || f ? /* @__PURE__ */ a.jsx(fo, { styles: {
525
+ title: b?.title,
526
+ description: b?.description
520
527
  }, classNames: {
521
- title: f?.title,
522
- description: f?.description
523
- }, graphTitle: v, graphDescription: w, width: u, graphDownload: m ? be : void 0, dataDownload: h ? e.map(Eo).filter(Oo).length > 0 ? e.map(Mo).filter(So) : e.filter($o) : null }) : null, t[21] = f?.description, t[22] = f?.title, t[23] = e, t[24] = h, t[25] = w, t[26] = m, t[27] = v, t[28] = y?.description, t[29] = y?.title, t[30] = u, t[31] = Ct) : Ct = t[31];
528
+ title: v?.title,
529
+ description: v?.description
530
+ }, graphTitle: w, graphDescription: j, width: g, graphDownload: p ? Ne : void 0, dataDownload: f ? e.map(zo).filter(Io).length > 0 ? e.map(Eo).filter(Oo) : e.filter(Mo) : null }) : null, t[38] = v?.description, t[39] = v?.title, t[40] = e, t[41] = f, t[42] = j, t[43] = p, t[44] = w, t[45] = b?.description, t[46] = b?.title, t[47] = g, t[48] = Ct) : Ct = t[48];
524
531
  let Nt;
525
- t[32] !== mt || t[33] !== oe || t[34] !== dt || t[35] !== Wt || t[36] !== he || t[37] !== C.enabled || t[38] !== x ? (Nt = C.enabled && x.length > 0 && oe ? /* @__PURE__ */ r.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
526
- /* @__PURE__ */ r.jsx("button", { type: "button", onClick: () => {
527
- he(!dt);
528
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": dt ? "Click to pause animation" : "Click to play animation", children: dt ? /* @__PURE__ */ r.jsx(eo, {}) : /* @__PURE__ */ r.jsx(oo, {}) }),
529
- /* @__PURE__ */ r.jsx(We, { min: x[0], max: x[x.length - 1], marks: oe, step: null, defaultValue: x[x.length - 1], value: x[mt], onChangeComplete: (j) => {
530
- Wt(x.indexOf(j));
531
- }, onChange: (j) => {
532
- Wt(x.indexOf(j));
532
+ t[49] !== Y || t[50] !== ne || t[51] !== X || t[52] !== c.enabled || t[53] !== u ? (Nt = c.enabled && u.length > 0 && ne ? /* @__PURE__ */ a.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
533
+ /* @__PURE__ */ a.jsx("button", { type: "button", onClick: () => {
534
+ _e(!X);
535
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": X ? "Click to pause animation" : "Click to play animation", children: X ? /* @__PURE__ */ a.jsx(io, {}) : /* @__PURE__ */ a.jsx(no, {}) }),
536
+ /* @__PURE__ */ a.jsx(He, { min: u[0], max: u[u.length - 1], marks: ne, step: null, defaultValue: u[u.length - 1], value: u[Y], onChangeComplete: (y) => {
537
+ xe(u.indexOf(y));
538
+ }, onChange: (y) => {
539
+ xe(u.indexOf(y));
533
540
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
534
- ] }) : null, t[32] = mt, t[33] = oe, t[34] = dt, t[35] = Wt, t[36] = he, t[37] = C.enabled, t[38] = x, t[39] = Nt) : Nt = t[39];
541
+ ] }) : null, t[49] = Y, t[50] = ne, t[51] = X, t[52] = c.enabled, t[53] = u, t[54] = Nt) : Nt = t[54];
535
542
  let Dt;
536
- t[40] !== Gt || t[41] !== J || t[42] !== U || t[43] !== f || t[44] !== bt || t[45] !== n || t[46] !== ce || t[47] !== e || t[48] !== _ || t[49] !== se || t[50] !== At || t[51] !== V || t[52] !== de || t[53] !== wt || t[54] !== c || t[55] !== k || t[56] !== me || t[57] !== mt || t[58] !== a || t[59] !== ue || t[60] !== o || t[61] !== Vt || t[62] !== N || t[63] !== X || t[64] !== it || t[65] !== pe || t[66] !== jt || t[67] !== nt || t[68] !== Y || t[69] !== rt || t[70] !== gt || t[71] !== _t || t[72] !== E || t[73] !== ne || t[74] !== Bt || t[75] !== lt || t[76] !== M || t[77] !== kt || t[78] !== y || t[79] !== Tt || t[80] !== ct || t[81] !== st || t[82] !== C.dateFormat || t[83] !== C.enabled || t[84] !== O || t[85] !== x || t[86] !== u || t[87] !== le || t[88] !== d || t[89] !== F ? (Dt = /* @__PURE__ */ r.jsx(ho, { ref: ge, children: ct && Tt && jt ? /* @__PURE__ */ r.jsx(jo, { dotColor: de, data: e.filter((j) => C.enabled ? j.date === Ve(new Date(x[mt]), C.dateFormat || "yyyy") : j), mapData: lt ? jt : {
543
+ t[55] !== Ht || t[56] !== K || t[57] !== G || t[58] !== v || t[59] !== bt || t[60] !== n || t[61] !== ue || t[62] !== e || t[63] !== _ || t[64] !== pe || t[65] !== Ft || t[66] !== B || t[67] !== he || t[68] !== wt || t[69] !== d || t[70] !== C || t[71] !== ge || t[72] !== Y || t[73] !== r || t[74] !== ye || t[75] !== o || t[76] !== Bt || t[77] !== N || t[78] !== H || t[79] !== st || t[80] !== fe || t[81] !== jt || t[82] !== dt || t[83] !== U || t[84] !== nt || t[85] !== rt || t[86] !== _t || t[87] !== O || t[88] !== de || t[89] !== Vt || t[90] !== mt || t[91] !== M || t[92] !== kt || t[93] !== b || t[94] !== Wt || t[95] !== ut || t[96] !== pt || t[97] !== c.dateFormat || t[98] !== c.enabled || t[99] !== Z || t[100] !== u || t[101] !== g || t[102] !== me || t[103] !== m || t[104] !== T ? (Dt = /* @__PURE__ */ a.jsx(xo, { ref: ve, children: ut && Wt && jt ? /* @__PURE__ */ a.jsx(No, { dotColor: he, data: e.filter((y) => c.enabled ? y.date === Re(new Date(u[Y]), c.dateFormat || "yyyy") : y), mapData: mt ? jt : {
537
544
  ...jt,
538
- features: jt.features.filter(Do)
539
- }, colorDomain: At, width: ct, height: Tt, scale: Bt, centerPoint: J, colors: n || (U === "categorical" ? St[st].sequentialColors[`neutralColorsx0${At.length}`] : St[st].sequentialColors[`neutralColorsx0${At.length + 1}`]), mapColorLegendTitle: N, radius: _t, categorical: U === "categorical", mapBorderWidth: Vt, mapNoDataColor: X, mapBorderColor: o, tooltip: O, onSeriesMouseOver: gt, showLabels: kt, isWorldMap: a, showColorScale: M, zoomScaleExtend: d, zoomTranslateExtend: F, onSeriesMouseClick: rt, highlightedDataPoints: k, resetSelectionOnDoubleClick: ne, styles: y, classNames: f, zoomInteraction: le, detailsOnClick: _, mapProjection: it || (a ? "naturalEarth" : "mercator"), animate: Gt === !0 ? {
545
+ features: jt.features.filter(So)
546
+ }, colorDomain: Ft, width: ut, height: Wt, scale: Vt, centerPoint: K, colors: n || (G === "categorical" ? St[pt].sequentialColors[`neutralColorsx0${Ft.length}`] : St[pt].sequentialColors[`neutralColorsx0${Ft.length + 1}`]), mapColorLegendTitle: N, radius: _t, categorical: G === "categorical", mapBorderWidth: Bt, mapNoDataColor: H, mapBorderColor: o, tooltip: Z, onSeriesMouseOver: rt, showLabels: kt, isWorldMap: r, showColorScale: M, zoomScaleExtend: m, zoomTranslateExtend: T, onSeriesMouseClick: nt, highlightedDataPoints: C, resetSelectionOnDoubleClick: de, styles: b, classNames: v, zoomInteraction: me, detailsOnClick: _, mapProjection: st || (r ? "naturalEarth" : "mercator"), animate: Ht === !0 ? {
540
547
  duration: 0.5,
541
548
  once: !0,
542
549
  amount: 0.5
543
- } : Gt || {
550
+ } : Ht || {
544
551
  duration: 0,
545
552
  once: !0,
546
553
  amount: 0
547
- }, dimmedOpacity: se, customLayers: ce, maxRadiusValue: ie(nt) ? Math.max(...e.map(No).filter(Co)) : nt, collapseColorScaleByDefault: bt, highlightedIds: me, mapProperty: pe, dotLegendTitle: wt, dotBorderColor: V, labelColor: ue }) : /* @__PURE__ */ r.jsx("div", { style: {
548
- height: `${Math.max(Y, c || (E ? Y ? (u || ct) * E > Y ? (u || ct) * E : Y : (u || ct) * E : Tt))}px`
549
- }, className: "flex items-center justify-center", children: /* @__PURE__ */ r.jsx(Ae, { "aria-label": "Loading graph" }) }) }), t[40] = Gt, t[41] = J, t[42] = U, t[43] = f, t[44] = bt, t[45] = n, t[46] = ce, t[47] = e, t[48] = _, t[49] = se, t[50] = At, t[51] = V, t[52] = de, t[53] = wt, t[54] = c, t[55] = k, t[56] = me, t[57] = mt, t[58] = a, t[59] = ue, t[60] = o, t[61] = Vt, t[62] = N, t[63] = X, t[64] = it, t[65] = pe, t[66] = jt, t[67] = nt, t[68] = Y, t[69] = rt, t[70] = gt, t[71] = _t, t[72] = E, t[73] = ne, t[74] = Bt, t[75] = lt, t[76] = M, t[77] = kt, t[78] = y, t[79] = Tt, t[80] = ct, t[81] = st, t[82] = C.dateFormat, t[83] = C.enabled, t[84] = O, t[85] = x, t[86] = u, t[87] = le, t[88] = d, t[89] = F, t[90] = Dt) : Dt = t[90];
554
+ }, dimmedOpacity: pe, customLayers: ue, maxRadiusValue: ce(dt) ? Math.max(...e.map($o).filter(Do)) : dt, collapseColorScaleByDefault: bt, highlightedIds: ge, mapProperty: fe, dotLegendTitle: wt, dotBorderColor: B, labelColor: ye }) : /* @__PURE__ */ a.jsx("div", { style: {
555
+ height: `${Math.max(U, d || (O ? U ? (g || ut) * O > U ? (g || ut) * O : U : (g || ut) * O : Wt))}px`
556
+ }, className: "flex items-center justify-center", children: /* @__PURE__ */ a.jsx(Ue, { "aria-label": "Loading graph" }) }) }), t[55] = Ht, t[56] = K, t[57] = G, t[58] = v, t[59] = bt, t[60] = n, t[61] = ue, t[62] = e, t[63] = _, t[64] = pe, t[65] = Ft, t[66] = B, t[67] = he, t[68] = wt, t[69] = d, t[70] = C, t[71] = ge, t[72] = Y, t[73] = r, t[74] = ye, t[75] = o, t[76] = Bt, t[77] = N, t[78] = H, t[79] = st, t[80] = fe, t[81] = jt, t[82] = dt, t[83] = U, t[84] = nt, t[85] = rt, t[86] = _t, t[87] = O, t[88] = de, t[89] = Vt, t[90] = mt, t[91] = M, t[92] = kt, t[93] = b, t[94] = Wt, t[95] = ut, t[96] = pt, t[97] = c.dateFormat, t[98] = c.enabled, t[99] = Z, t[100] = u, t[101] = g, t[102] = me, t[103] = m, t[104] = T, t[105] = Dt) : Dt = t[105];
550
557
  let $t;
551
- t[91] !== f?.footnote || t[92] !== f?.source || t[93] !== T || t[94] !== b || t[95] !== y?.footnote || t[96] !== y?.source || t[97] !== u ? ($t = b || T ? /* @__PURE__ */ r.jsx(co, { styles: {
552
- footnote: y?.footnote,
553
- source: y?.source
558
+ t[106] !== v?.footnote || t[107] !== v?.source || t[108] !== W || t[109] !== k || t[110] !== b?.footnote || t[111] !== b?.source || t[112] !== g ? ($t = k || W ? /* @__PURE__ */ a.jsx(go, { styles: {
559
+ footnote: b?.footnote,
560
+ source: b?.source
554
561
  }, classNames: {
555
- footnote: f?.footnote,
556
- source: f?.source
557
- }, sources: b, footNote: T, width: u }) : null, t[91] = f?.footnote, t[92] = f?.source, t[93] = T, t[94] = b, t[95] = y?.footnote, t[96] = y?.source, t[97] = u, t[98] = $t) : $t = t[98];
558
- let re;
559
- return t[99] !== zt || t[100] !== W || t[101] !== ft || t[102] !== c || t[103] !== $ || t[104] !== Y || t[105] !== Mt || t[106] !== E || t[107] !== fe || t[108] !== ye || t[109] !== Ct || t[110] !== Nt || t[111] !== Dt || t[112] !== $t || t[113] !== st || t[114] !== u ? (re = /* @__PURE__ */ r.jsxs(go, { className: fe, style: ye, id: ft, ref: be, "aria-label": zt, backgroundColor: W, theme: st, language: $, minHeight: Y, width: u, height: c, relativeHeight: E, padding: Mt, children: [
562
+ footnote: v?.footnote,
563
+ source: v?.source
564
+ }, sources: k, footNote: W, width: g }) : null, t[106] = v?.footnote, t[107] = v?.source, t[108] = W, t[109] = k, t[110] = b?.footnote, t[111] = b?.source, t[112] = g, t[113] = $t) : $t = t[113];
565
+ let le;
566
+ return t[114] !== Lt || t[115] !== A || t[116] !== ft || t[117] !== d || t[118] !== $ || t[119] !== U || t[120] !== Mt || t[121] !== O || t[122] !== we || t[123] !== ke || t[124] !== Ct || t[125] !== Nt || t[126] !== Dt || t[127] !== $t || t[128] !== pt || t[129] !== g ? (le = /* @__PURE__ */ a.jsxs(vo, { className: we, style: ke, id: ft, ref: Ne, "aria-label": Lt, backgroundColor: A, theme: pt, language: $, minHeight: U, width: g, height: d, relativeHeight: O, padding: Mt, children: [
560
567
  Ct,
561
568
  Nt,
562
569
  Dt,
563
570
  $t
564
- ] }), t[99] = zt, t[100] = W, t[101] = ft, t[102] = c, t[103] = $, t[104] = Y, t[105] = Mt, t[106] = E, t[107] = fe, t[108] = ye, t[109] = Ct, t[110] = Nt, t[111] = Dt, t[112] = $t, t[113] = st, t[114] = u, t[115] = re) : re = t[115], re;
571
+ ] }), t[114] = Lt, t[115] = A, t[116] = ft, t[117] = d, t[118] = $, t[119] = U, t[120] = Mt, t[121] = O, t[122] = we, t[123] = ke, t[124] = Ct, t[125] = Nt, t[126] = Dt, t[127] = $t, t[128] = pt, t[129] = g, t[130] = le) : le = t[130], le;
565
572
  }
566
- function Co(i) {
573
+ function Do(i) {
567
574
  return i != null;
568
575
  }
569
- function No(i) {
576
+ function $o(i) {
570
577
  return i.radius;
571
578
  }
572
- function Do(i) {
579
+ function So(i) {
573
580
  return i.properties.NAME !== "Antarctica";
574
581
  }
575
- function $o(i) {
582
+ function Mo(i) {
576
583
  return i !== void 0;
577
584
  }
578
- function So(i) {
585
+ function Oo(i) {
579
586
  return i !== void 0;
580
587
  }
581
- function Mo(i) {
588
+ function Eo(i) {
582
589
  return i.data;
583
590
  }
584
- function Oo(i) {
591
+ function Io(i) {
585
592
  return i !== void 0;
586
593
  }
587
- function Eo(i) {
594
+ function zo(i) {
588
595
  return i.data;
589
596
  }
590
- function Io(i) {
597
+ function Lo(i) {
591
598
  return i.x;
592
599
  }
593
- function Lo(i, t) {
594
- return vo(i, t);
600
+ function Po(i, t) {
601
+ return i - t;
595
602
  }
596
603
  export {
597
- hr as HybridMap
604
+ pa as HybridMap
598
605
  };
599
606
  //# sourceMappingURL=HybridMap.js.map