@undp/data-viz 2.0.0 → 2.0.2

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 (140) hide show
  1. package/dist/BarGraph.cjs +1 -1
  2. package/dist/BarGraph.cjs.map +1 -1
  3. package/dist/BarGraph.js +959 -959
  4. package/dist/BarGraph.js.map +1 -1
  5. package/dist/BasicStatCard.cjs +1 -1
  6. package/dist/BasicStatCard.cjs.map +1 -1
  7. package/dist/BasicStatCard.js +45 -47
  8. package/dist/BasicStatCard.js.map +1 -1
  9. package/dist/BeeSwarmChart.cjs +1 -1
  10. package/dist/BeeSwarmChart.cjs.map +1 -1
  11. package/dist/BeeSwarmChart.js +76 -56
  12. package/dist/BeeSwarmChart.js.map +1 -1
  13. package/dist/BiVariateChoroplethMap.cjs +1 -1
  14. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  15. package/dist/BiVariateChoroplethMap.js +157 -157
  16. package/dist/BiVariateChoroplethMap.js.map +1 -1
  17. package/dist/BulletChart.cjs +1 -1
  18. package/dist/BulletChart.js +2 -2
  19. package/dist/ButterflyChart.cjs +1 -1
  20. package/dist/ButterflyChart.js +1 -1
  21. package/dist/ChoroplethMap.cjs +1 -1
  22. package/dist/ChoroplethMap.cjs.map +1 -1
  23. package/dist/ChoroplethMap.js +185 -185
  24. package/dist/ChoroplethMap.js.map +1 -1
  25. package/dist/CirclePackingGraph.cjs +1 -1
  26. package/dist/CirclePackingGraph.js +2 -4
  27. package/dist/CirclePackingGraph.js.map +1 -1
  28. package/dist/Data/barChart.json +70 -0
  29. package/dist/Data/basic.csv +20 -0
  30. package/dist/DifferenceLineChart.cjs +1 -1
  31. package/dist/DifferenceLineChart.cjs.map +1 -1
  32. package/dist/DifferenceLineChart.js +224 -223
  33. package/dist/DifferenceLineChart.js.map +1 -1
  34. package/dist/DonutChart.cjs +1 -1
  35. package/dist/DonutChart.cjs.map +1 -1
  36. package/dist/DonutChart.js +32 -24
  37. package/dist/DonutChart.js.map +1 -1
  38. package/dist/DotDensityMap.cjs +1 -1
  39. package/dist/DotDensityMap.cjs.map +1 -1
  40. package/dist/DotDensityMap.js +156 -156
  41. package/dist/DotDensityMap.js.map +1 -1
  42. package/dist/DualAxisLineChart.cjs +1 -1
  43. package/dist/DualAxisLineChart.cjs.map +1 -1
  44. package/dist/DualAxisLineChart.js +326 -325
  45. package/dist/DualAxisLineChart.js.map +1 -1
  46. package/dist/DumbbellChart.cjs +1 -1
  47. package/dist/DumbbellChart.js +2 -2
  48. package/dist/GeoHubCompareMaps.cjs +1 -1
  49. package/dist/GeoHubCompareMaps.cjs.map +1 -1
  50. package/dist/GeoHubCompareMaps.js +183 -183
  51. package/dist/GeoHubCompareMaps.js.map +1 -1
  52. package/dist/{GraphEl-DzRon4cb.js → GraphEl-BZne2JIx.js} +3 -3
  53. package/dist/{GraphEl-DzRon4cb.js.map → GraphEl-BZne2JIx.js.map} +1 -1
  54. package/dist/{GraphEl-BkyLYXG5.cjs → GraphEl-D5MUfp45.cjs} +2 -2
  55. package/dist/{GraphEl-BkyLYXG5.cjs.map → GraphEl-D5MUfp45.cjs.map} +1 -1
  56. package/dist/GriddedGraphs.cjs +1 -1
  57. package/dist/GriddedGraphs.js +1 -1
  58. package/dist/HeatMap.cjs +1 -1
  59. package/dist/HeatMap.js +2 -2
  60. package/dist/Histogram.cjs +1 -1
  61. package/dist/Histogram.js +1 -1
  62. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  63. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  64. package/dist/LineChartWithConfidenceInterval.js +133 -132
  65. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  66. package/dist/MultiGraphDashboard.cjs +1 -1
  67. package/dist/MultiGraphDashboard.cjs.map +1 -1
  68. package/dist/MultiGraphDashboard.js +52 -50
  69. package/dist/MultiGraphDashboard.js.map +1 -1
  70. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  71. package/dist/MultiGraphDashboardWideToLongFormat.cjs.map +1 -1
  72. package/dist/MultiGraphDashboardWideToLongFormat.js +11 -9
  73. package/dist/MultiGraphDashboardWideToLongFormat.js.map +1 -1
  74. package/dist/MultiLineAltChart.cjs +1 -1
  75. package/dist/MultiLineAltChart.cjs.map +1 -1
  76. package/dist/MultiLineAltChart.js +149 -148
  77. package/dist/MultiLineAltChart.js.map +1 -1
  78. package/dist/MultiLineChart.cjs +1 -1
  79. package/dist/MultiLineChart.cjs.map +1 -1
  80. package/dist/MultiLineChart.js +182 -181
  81. package/dist/MultiLineChart.js.map +1 -1
  82. package/dist/ParetoChart.cjs +1 -1
  83. package/dist/ParetoChart.js +1 -1
  84. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  85. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
  86. package/dist/PerformanceIntensiveMultiGraphDashboard.js +14 -12
  87. package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
  88. package/dist/SimpleLineChart.cjs +1 -1
  89. package/dist/SimpleLineChart.cjs.map +1 -1
  90. package/dist/SimpleLineChart.js +123 -122
  91. package/dist/SimpleLineChart.js.map +1 -1
  92. package/dist/SingleGraphDashboard.cjs +1 -1
  93. package/dist/SingleGraphDashboard.cjs.map +1 -1
  94. package/dist/SingleGraphDashboard.js +83 -79
  95. package/dist/SingleGraphDashboard.js.map +1 -1
  96. package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
  97. package/dist/SingleGraphDashboardGeoHubMaps.cjs.map +1 -1
  98. package/dist/SingleGraphDashboardGeoHubMaps.js +49 -45
  99. package/dist/SingleGraphDashboardGeoHubMaps.js.map +1 -1
  100. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  101. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  102. package/dist/SingleGraphDashboardThreeDGraphs.js +56 -52
  103. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  104. package/dist/StatCardFromData.cjs +1 -1
  105. package/dist/StatCardFromData.cjs.map +1 -1
  106. package/dist/StatCardFromData.js +44 -46
  107. package/dist/StatCardFromData.js.map +1 -1
  108. package/dist/ThreeDGlobe.cjs +1 -1
  109. package/dist/ThreeDGlobe.cjs.map +1 -1
  110. package/dist/ThreeDGlobe.js +134 -134
  111. package/dist/ThreeDGlobe.js.map +1 -1
  112. package/dist/{XAxesLabels-D5X8jngD.cjs → XAxesLabels-C1XSXoWG.cjs} +2 -2
  113. package/dist/XAxesLabels-C1XSXoWG.cjs.map +1 -0
  114. package/dist/{XAxesLabels-DNO0KmjL.js → XAxesLabels-Dmbk50u4.js} +18 -16
  115. package/dist/XAxesLabels-Dmbk50u4.js.map +1 -0
  116. package/dist/YAxesLabels-1XTb-D0_.js +72 -0
  117. package/dist/YAxesLabels-1XTb-D0_.js.map +1 -0
  118. package/dist/YAxesLabels-pjdsVwIM.cjs +2 -0
  119. package/dist/YAxesLabels-pjdsVwIM.cjs.map +1 -0
  120. package/dist/getNoOfTicks-C_1CFXv_.cjs +2 -0
  121. package/dist/getNoOfTicks-C_1CFXv_.cjs.map +1 -0
  122. package/dist/getNoOfTicks-CpmRjcRF.js +7 -0
  123. package/dist/getNoOfTicks-CpmRjcRF.js.map +1 -0
  124. package/dist/index-C6LorfZ-.cjs +2 -0
  125. package/dist/index-C6LorfZ-.cjs.map +1 -0
  126. package/dist/index-Ceppbd8C.js +342 -0
  127. package/dist/index-Ceppbd8C.js.map +1 -0
  128. package/dist/index.cjs +1 -1
  129. package/dist/index.js +1 -1
  130. package/package.json +1 -1
  131. package/dist/XAxesLabels-D5X8jngD.cjs.map +0 -1
  132. package/dist/XAxesLabels-DNO0KmjL.js.map +0 -1
  133. package/dist/YAxesLabels-DcS85Beo.cjs +0 -2
  134. package/dist/YAxesLabels-DcS85Beo.cjs.map +0 -1
  135. package/dist/YAxesLabels-Dnnng49-.js +0 -70
  136. package/dist/YAxesLabels-Dnnng49-.js.map +0 -1
  137. package/dist/index-DoY3Ga3W.cjs +0 -2
  138. package/dist/index-DoY3Ga3W.cjs.map +0 -1
  139. package/dist/index-leTnKT2q.js +0 -329
  140. package/dist/index-leTnKT2q.js.map +0 -1
@@ -1,5 +1,5 @@
1
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";
2
+ import { useState as S, useRef as Me, useEffect as Re, useEffectEvent as mt } from "react";
3
3
  import { g as pt, N as ht } from "./getSliderMarks-HIDJ0_Cd.js";
4
4
  import { w as ut } from "./Spinner-D7rnnwnA.js";
5
5
  import { p as gt, f as ft } from "./parse-DlCRUFh_.js";
@@ -9,8 +9,8 @@ import { l as Ct } from "./Modal-DGcuAHyK.js";
9
9
  import { j as it } from "./Typography-PxtFcnJb.js";
10
10
  import { t as Nt } from "./index-GEsywGxz.js";
11
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";
12
+ import { T as St } from "./Tooltip-CwWUegPB.js";
13
+ import { s as Mt } from "./string2HTML-DhG75NqA.js";
14
14
  import { c as Et } from "./checkIfNullOrUndefined-DmfiKkNw.js";
15
15
  import { X as Ot, P as Pt, e as It } from "./index-D491FEn1.js";
16
16
  import { o as Lt } from "./ordinal-P77xw8aL.js";
@@ -29,78 +29,78 @@ import { u as Ht } from "./uniqBy-BHy4I8PK.js";
29
29
  import { a as qt, G as Gt } from "./GraphContainer-CRqzdKu2.js";
30
30
  import { s as Ut } from "./sort-BIvMlUH1.js";
31
31
  import { a as Xt } from "./init-BJFW6EwE.js";
32
- function Rt(u) {
32
+ function Rt(h) {
33
33
  const {
34
34
  data: e,
35
35
  colorDomain: c,
36
36
  colors: d,
37
37
  mapData: $,
38
- colorLegendTitle: E,
39
- categorical: F,
40
- height: j,
38
+ colorLegendTitle: M,
39
+ categorical: A,
40
+ height: k,
41
41
  width: g,
42
- scale: p,
43
- centerPoint: V,
42
+ scale: v,
43
+ centerPoint: F,
44
44
  tooltip: re,
45
- mapBorderWidth: H,
46
- mapBorderColor: X,
45
+ mapBorderWidth: V,
46
+ mapBorderColor: U,
47
47
  mapNoDataColor: ae,
48
48
  onSeriesMouseOver: ie,
49
49
  showColorScale: ve,
50
50
  zoomScaleExtend: Ee,
51
51
  zoomTranslateExtend: Oe,
52
- highlightedIds: R,
52
+ highlightedIds: X,
53
53
  onSeriesMouseClick: ne,
54
- mapProperty: y,
54
+ mapProperty: j,
55
55
  resetSelectionOnDoubleClick: be,
56
- detailsOnClick: O,
56
+ detailsOnClick: E,
57
57
  styles: Pe,
58
58
  classNames: ke,
59
- mapProjection: z,
60
- zoomInteraction: _,
61
- animate: D,
62
- dimmedOpacity: W,
59
+ mapProjection: I,
60
+ zoomInteraction: L,
61
+ animate: N,
62
+ dimmedOpacity: z,
63
63
  customLayers: se,
64
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);
65
+ } = h, [O, _] = S(void 0), le = Me(null), [Ie, we] = S(je === void 0 ? !(g < 680) : !je), [H, R] = S(void 0), [Y, J] = S(void 0), [u, p] = S(void 0), [ce, de] = S(void 0), q = Me(null), me = _t(q, {
66
+ once: N.once,
67
+ amount: N.amount
68
+ }), K = Me(null), Le = A ? Lt().domain(c).range(d) : zt().domain(c).range(d);
69
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");
70
+ const o = rt(K.current), s = rt(q.current), f = (r) => {
71
+ if (L === "noZoom") return !1;
72
+ if (L === "button") return !r.type.includes("wheel");
73
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", ({
74
+ return l ? !0 : n ? L === "scroll" ? !0 : r.ctrlKey : i && !r.button && !r.ctrlKey;
75
+ }, a = xt().scaleExtent(Ee).translateExtent(Oe || [[-20, -20], [g + 20, k + 20]]).filter(f).on("zoom", ({
76
76
  transform: r
77
77
  }) => {
78
78
  o.attr("transform", r);
79
79
  });
80
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);
81
+ }, [k, g, L]);
82
+ const G = vt($), w = Nt($), pe = G[2] - G[0], W = G[3] - G[1], $e = g * 190 / 960 * 360 / pe, Ce = k * 190 / 678 * 180 / W, B = v * Math.min($e, Ce), P = I === "mercator" ? bt().rotate([0, 0]).center(F || w.geometry.coordinates).translate([g / 2, k / 2]).scale(B) : I === "equalEarth" ? kt().rotate([0, 0]).center(F || w.geometry.coordinates).translate([g / 2, k / 2]).scale(B) : I === "naturalEarth" ? jt().rotate([0, 0]).center(F || w.geometry.coordinates).translate([g / 2, k / 2]).scale(B) : I === "orthographic" ? wt().rotate([0, 0]).center(F || w.geometry.coordinates).translate([g / 2, k / 2]).scale(B) : $t().rotate([0, 0]).center(F || w.geometry.coordinates).translate([g / 2, k / 2]).scale(B), he = (o) => {
83
+ if (!q.current || !le.current) return;
84
+ rt(q.current).call(le.current.scaleBy, o === "in" ? 1.2 : 1 / 1.2);
85
85
  };
86
86
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
87
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: [
88
+ /* @__PURE__ */ t.jsx(Ue.svg, { width: `${g}px`, height: `${k}px`, viewBox: `0 0 ${g} ${k}`, ref: q, direction: "ltr", children: /* @__PURE__ */ t.jsxs("g", { ref: K, children: [
89
89
  se.filter((o) => o.position === "before").map((o) => o.layer),
90
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" ? (
91
+ $.features.map((o, s) => e.findIndex((a) => a.id === o.properties[j]) !== -1 ? null : /* @__PURE__ */ t.jsx("g", { opacity: O ? z : X.length !== 0 ? X.indexOf(o.properties[j]) !== -1 ? 1 : z : 1, children: o.geometry.type === "MultiPolygon" ? (
92
92
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
93
93
  o.geometry.coordinates.map((a, r) => {
94
94
  let n = "";
95
95
  return a.forEach((l) => {
96
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]}`;
97
+ l.forEach((m, D) => {
98
+ const C = P([m[0], m[1]]);
99
+ D !== l.length - 1 ? i = `${i}${C[0]} ${C[1]}L` : i = `${i}${C[0]} ${C[1]}`;
100
100
  }), n += i;
101
101
  }), /* @__PURE__ */ t.jsx("path", { d: n, style: {
102
- stroke: X,
103
- strokeWidth: H,
102
+ stroke: U,
103
+ strokeWidth: V,
104
104
  fill: ae
105
105
  } }, r);
106
106
  })
@@ -109,11 +109,11 @@ function Rt(u) {
109
109
  o.geometry.coordinates.map((a, r) => {
110
110
  let n = "M";
111
111
  return a.forEach((l, i) => {
112
- const m = I([l[0], l[1]]);
112
+ const m = P([l[0], l[1]]);
113
113
  i !== a.length - 1 ? n = `${n}${m[0]} ${m[1]}L` : n = `${n}${m[0]} ${m[1]}`;
114
114
  }), /* @__PURE__ */ t.jsx("path", { d: n, style: {
115
- stroke: X,
116
- strokeWidth: H,
115
+ stroke: U,
116
+ strokeWidth: V,
117
117
  fill: ae
118
118
  } }, r);
119
119
  })
@@ -121,8 +121,8 @@ function Rt(u) {
121
121
  /* @__PURE__ */ t.jsx(Wt, { children: e.map((o) => {
122
122
  const s = $.features.findIndex(
123
123
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
124
- (a) => o.id === a.properties[y]
125
- ), x = Et(o.x) ? ae : (
124
+ (a) => o.id === a.properties[j]
125
+ ), f = Et(o.x) ? ae : (
126
126
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
127
127
  Le(o.x)
128
128
  );
@@ -131,54 +131,54 @@ function Rt(u) {
131
131
  opacity: 0
132
132
  },
133
133
  whileInView: {
134
- opacity: P ? P === x ? 1 : W : R.length !== 0 ? R.indexOf(o.id) !== -1 ? 1 : W : 1,
134
+ opacity: O ? O === f ? 1 : z : X.length !== 0 ? X.indexOf(o.id) !== -1 ? 1 : z : 1,
135
135
  transition: {
136
- duration: D.duration
136
+ duration: N.duration
137
137
  }
138
138
  }
139
139
  }, initial: "initial", animate: me ? "whileInView" : "initial", exit: {
140
140
  opacity: 0,
141
141
  transition: {
142
- duration: D.duration
142
+ duration: N.duration
143
143
  }
144
144
  }, onMouseEnter: (a) => {
145
- K(o), de(a.clientY), h(a.clientX), ie?.(o);
145
+ J(o), de(a.clientY), p(a.clientX), ie?.(o);
146
146
  }, onMouseMove: (a) => {
147
- K(o), de(a.clientY), h(a.clientX);
147
+ J(o), de(a.clientY), p(a.clientX);
148
148
  }, onMouseLeave: () => {
149
- K(void 0), h(void 0), de(void 0), ie?.(void 0);
149
+ J(void 0), p(void 0), de(void 0), ie?.(void 0);
150
150
  }, onClick: () => {
151
- (ne || O) && (yt(q, o) && be ? (Y(void 0), ne?.(void 0)) : (Y(o), ne?.(o)));
151
+ (ne || E) && (yt(H, o) && be ? (R(void 0), ne?.(void 0)) : (R(o), ne?.(o)));
152
152
  }, children: s === -1 ? null : $.features[s].geometry.type === "MultiPolygon" ? $.features[s].geometry.coordinates.map(
153
153
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
154
154
  (a, r) => {
155
155
  let n = "";
156
156
  return a.forEach((l) => {
157
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]}`;
158
+ l.forEach((m, D) => {
159
+ const C = P([m[0], m[1]]);
160
+ D !== l.length - 1 ? i = `${i}${C[0]} ${C[1]}L` : i = `${i}${C[0]} ${C[1]}`;
161
161
  }), n += i;
162
162
  }), /* @__PURE__ */ t.jsx(Ue.path, { d: n, variants: {
163
163
  initial: {
164
- fill: x,
164
+ fill: f,
165
165
  opacity: 0
166
166
  },
167
167
  whileInView: {
168
- fill: x,
168
+ fill: f,
169
169
  opacity: 1,
170
170
  transition: {
171
- duration: D.duration
171
+ duration: N.duration
172
172
  }
173
173
  }
174
174
  }, initial: "initial", animate: me ? "whileInView" : "initial", exit: {
175
175
  opacity: 0,
176
176
  transition: {
177
- duration: D.duration
177
+ duration: N.duration
178
178
  }
179
179
  }, style: {
180
- stroke: X,
181
- strokeWidth: H
180
+ stroke: U,
181
+ strokeWidth: V
182
182
  } }, `${o.id}-${r}`);
183
183
  }
184
184
  ) : $.features[s].geometry.coordinates.map(
@@ -186,44 +186,44 @@ function Rt(u) {
186
186
  (a, r) => {
187
187
  let n = "M";
188
188
  return a.forEach((l, i) => {
189
- const m = I([l[0], l[1]]);
189
+ const m = P([l[0], l[1]]);
190
190
  i !== a.length - 1 ? n = `${n}${m[0]} ${m[1]}L` : n = `${n}${m[0]} ${m[1]}`;
191
191
  }), /* @__PURE__ */ t.jsx(Ue.path, { d: n, variants: {
192
192
  initial: {
193
- fill: x,
193
+ fill: f,
194
194
  opacity: 0
195
195
  },
196
196
  whileInView: {
197
- fill: x,
197
+ fill: f,
198
198
  opacity: 1,
199
199
  transition: {
200
- duration: D.duration
200
+ duration: N.duration
201
201
  }
202
202
  }
203
203
  }, initial: "initial", animate: me ? "whileInView" : "initial", exit: {
204
204
  opacity: 0,
205
205
  transition: {
206
- duration: D.duration
206
+ duration: N.duration
207
207
  }
208
208
  }, style: {
209
- stroke: X,
210
- strokeWidth: H
209
+ stroke: U,
210
+ strokeWidth: V
211
211
  } }, `${o.id}-${r}`);
212
212
  }
213
213
  ) }, o.id);
214
214
  }) }),
215
- J ? $.features.filter(
215
+ Y ? $.features.filter(
216
216
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
217
- (o) => o.properties[y] === J.id
217
+ (o) => o.properties[j] === Y.id
218
218
  ).map((o, s) => /* @__PURE__ */ t.jsx("g", { children: o.geometry.type === "MultiPolygon" ? (
219
219
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
220
- o.geometry.coordinates.map((x, a) => {
220
+ o.geometry.coordinates.map((f, a) => {
221
221
  let r = "";
222
- return x.forEach((n) => {
222
+ return f.forEach((n) => {
223
223
  let l = " M";
224
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]}`;
225
+ const D = P([i[0], i[1]]);
226
+ m !== n.length - 1 ? l = `${l}${D[0]} ${D[1]}L` : l = `${l}${D[0]} ${D[1]}`;
227
227
  }), r += l;
228
228
  }), /* @__PURE__ */ t.jsx("path", { d: r, className: "stroke-primary-gray-700 dark:stroke-primary-gray-300", style: {
229
229
  fill: "none",
@@ -233,11 +233,11 @@ function Rt(u) {
233
233
  })
234
234
  ) : (
235
235
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
236
- o.geometry.coordinates.map((x, a) => {
236
+ o.geometry.coordinates.map((f, a) => {
237
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]}`;
238
+ return f.forEach((n, l) => {
239
+ const i = P([n[0], n[1]]);
240
+ l !== f.length - 1 ? r = `${r}${i[0]} ${i[1]}L` : r = `${r}${i[0]} ${i[1]}`;
241
241
  }), /* @__PURE__ */ t.jsx("path", { d: r, className: "stroke-primary-gray-700 dark:stroke-primary-gray-300", style: {
242
242
  fill: "none",
243
243
  fillOpacity: 0,
@@ -252,17 +252,17 @@ function Rt(u) {
252
252
  we(!1);
253
253
  }, children: /* @__PURE__ */ t.jsx(Ot, {}) }),
254
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"
255
+ width: A ? void 0 : "340px"
256
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: {
257
+ M && M !== "" ? /* @__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
258
  display: "-webkit-box",
259
259
  WebkitLineClamp: "1",
260
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]);
261
+ }, children: M }) : null,
262
+ A ? /* @__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
+ _(d[s % d.length]);
264
264
  }, onMouseLeave: () => {
265
- B(void 0);
265
+ _(void 0);
266
266
  }, children: [
267
267
  /* @__PURE__ */ t.jsx("div", { className: "w-2 h-2 rounded-full", style: {
268
268
  backgroundColor: d[s % d.length]
@@ -270,13 +270,13 @@ function Rt(u) {
270
270
  /* @__PURE__ */ t.jsx(it, { size: "sm", marginBottom: "none", leading: "none", children: o })
271
271
  ] }, s)) }) : /* @__PURE__ */ t.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ t.jsxs("g", { children: [
272
272
  c.map((o, s) => /* @__PURE__ */ t.jsxs("g", { onMouseOver: () => {
273
- B(d[s]);
273
+ _(d[s]);
274
274
  }, onMouseLeave: () => {
275
- B(void 0);
275
+ _(void 0);
276
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: {
277
+ /* @__PURE__ */ t.jsx("rect", { x: s * 320 / d.length + 1, y: 1, width: 320 / d.length - 2, height: 8, className: O === d[s] ? "stroke-primary-gray-700 dark:stroke-primary-gray-300" : "", style: {
278
278
  fill: d[s],
279
- ...P === d[s] ? {} : {
279
+ ...O === d[s] ? {} : {
280
280
  stroke: d[s]
281
281
  }
282
282
  } }),
@@ -285,12 +285,12 @@ function Rt(u) {
285
285
  }, children: Dt(o, "NA") })
286
286
  ] }, s)),
287
287
  /* @__PURE__ */ t.jsx("g", { children: /* @__PURE__ */ t.jsx("rect", { onMouseOver: () => {
288
- B(d[c.length]);
288
+ _(d[c.length]);
289
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: {
290
+ _(void 0);
291
+ }, x: c.length * 320 / d.length + 1, y: 1, width: 320 / d.length - 2, height: 8, className: `cursor-pointer ${O === d[c.length] ? "stroke-1 stroke-primary-gray-700 dark:stroke-primary-gray-300" : ""}`, style: {
292
292
  fill: d[c.length],
293
- ...P === d[c.length] ? {} : {
293
+ ...O === d[c.length] ? {} : {
294
294
  stroke: d[c.length]
295
295
  }
296
296
  } }) })
@@ -299,93 +299,93 @@ function Rt(u) {
299
299
  ] }) : /* @__PURE__ */ t.jsx("button", { type: "button", className: "mb-0 border-0 bg-transparent p-0 self-start map-legend-button", onClick: () => {
300
300
  we(!0);
301
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: [
302
+ L === "button" && /* @__PURE__ */ t.jsxs("div", { className: "absolute left-4 top-4 flex flex-col zoom-buttons", children: [
303
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
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: "–" })
305
305
  ] })
306
306
  ] }),
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
307
+ E && H !== void 0 ? /* @__PURE__ */ t.jsx(Ct, { open: H !== void 0, onClose: () => {
308
+ R(void 0);
309
+ }, children: /* @__PURE__ */ t.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof E == "string" ? {
310
+ __html: Mt(E, H)
311
+ } : void 0, children: typeof E == "function" ? E(H) : null }) }) : null,
312
+ Y && re && u && ce ? /* @__PURE__ */ t.jsx(St, { data: Y, body: re, xPos: u, yPos: ce, backgroundStyle: Pe?.tooltip, className: ke?.tooltip }) : null
313
313
  ] });
314
314
  }
315
- function zo(u) {
315
+ function zo(h) {
316
316
  const e = dt.c(106), {
317
317
  data: c,
318
318
  mapData: d,
319
319
  graphTitle: $,
320
- colors: E,
321
- sources: F,
322
- graphDescription: j,
320
+ colors: M,
321
+ sources: A,
322
+ graphDescription: k,
323
323
  height: g,
324
- width: p,
325
- footNote: V,
324
+ width: v,
325
+ footNote: F,
326
326
  colorDomain: re,
327
- colorLegendTitle: H,
328
- scaleType: X,
327
+ colorLegendTitle: V,
328
+ scaleType: U,
329
329
  scale: ae,
330
330
  centerPoint: ie,
331
331
  padding: ve,
332
332
  mapBorderWidth: Ee,
333
333
  mapNoDataColor: Oe,
334
- backgroundColor: R,
334
+ backgroundColor: X,
335
335
  mapBorderColor: ne,
336
- relativeHeight: y,
336
+ relativeHeight: j,
337
337
  tooltip: be,
338
- onSeriesMouseOver: O,
338
+ onSeriesMouseOver: E,
339
339
  isWorldMap: Pe,
340
340
  showColorScale: ke,
341
- zoomScaleExtend: z,
342
- zoomTranslateExtend: _,
343
- graphID: D,
344
- highlightedIds: W,
341
+ zoomScaleExtend: I,
342
+ zoomTranslateExtend: L,
343
+ graphID: N,
344
+ highlightedIds: z,
345
345
  onSeriesMouseClick: se,
346
346
  mapProperty: je,
347
- graphDownload: P,
348
- dataDownload: B,
347
+ graphDownload: O,
348
+ dataDownload: _,
349
349
  showAntarctica: le,
350
350
  language: Ie,
351
351
  minHeight: we,
352
- theme: q,
353
- ariaLabel: Y,
354
- resetSelectionOnDoubleClick: J,
355
- detailsOnClick: K,
356
- styles: f,
357
- classNames: h,
352
+ theme: H,
353
+ ariaLabel: R,
354
+ resetSelectionOnDoubleClick: Y,
355
+ detailsOnClick: J,
356
+ styles: u,
357
+ classNames: p,
358
358
  mapProjection: ce,
359
359
  zoomInteraction: de,
360
- animate: G,
360
+ animate: q,
361
361
  dimmedOpacity: me,
362
- customLayers: Z,
362
+ customLayers: K,
363
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;
364
+ collapseColorScaleByDefault: G
365
+ } = h, w = d === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap.json" : d, pe = F === 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." : F, W = U === void 0 ? "threshold" : U, $e = ae === void 0 ? 0.95 : ae, Ce = Ee === void 0 ? 0.5 : Ee, B = Oe === void 0 ? Xe.light.graphNoData : Oe, P = X === void 0 ? !1 : X, he = ne === void 0 ? Xe.light.grays["gray-500"] : ne, o = Pe === void 0 ? !0 : Pe, s = ke === void 0 ? !0 : ke;
366
+ let f;
367
+ e[0] !== I ? (f = I === void 0 ? [0.8, 6] : I, e[0] = I, e[1] = f) : f = e[1];
368
+ const a = f;
369
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;
370
+ e[2] !== z ? (r = z === void 0 ? [] : z, e[2] = z, e[3] = r) : r = e[3];
371
+ const n = r, l = je === void 0 ? "ISO3" : je, i = O === void 0 ? !1 : O, m = _ === void 0 ? !1 : _, D = le === void 0 ? !1 : le, C = Ie === void 0 ? "en" : Ie, T = we === void 0 ? 0 : we, Z = H === void 0 ? "light" : H, Ye = Y === void 0 ? !0 : Y, Je = de === void 0 ? "button" : de, ze = q === void 0 ? !1 : q, Ke = me === void 0 ? 0.3 : me;
372
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 ? {
373
+ e[4] !== K ? (_e = K === void 0 ? [] : K, e[4] = K, e[5] = _e) : _e = e[5];
374
+ const Ze = _e, b = Le === void 0 ? {
375
375
  enabled: !1,
376
376
  autoplay: !1,
377
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);
378
+ } : Le, [Q, nt] = S(0), [Ne, st] = S(0), [ee, Qe] = S(b.autoplay), y = Ut(Ht(c, "date", !0).map((x) => gt(`${x}`, b.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), oo), [te, De] = S(b.autoplay ? 0 : y.length - 1), [ue, lt] = S(void 0), et = Me(null), at = Me(null);
379
379
  let We, Be;
380
380
  e[6] === Symbol.for("react.memo_cache_sentinel") ? (We = () => {
381
- const b = new ResizeObserver((oe) => {
381
+ const x = new ResizeObserver((oe) => {
382
382
  nt(oe[0].target.clientWidth || 620), st(oe[0].target.clientHeight || 480);
383
383
  });
384
- return et.current && b.observe(et.current), () => b.disconnect();
384
+ return et.current && x.observe(et.current), () => x.disconnect();
385
385
  }, Be = [], e[6] = We, e[7] = Be) : (We = e[6], Be = e[7]), Re(We, Be);
386
386
  let Te;
387
- e[8] === Symbol.for("react.memo_cache_sentinel") ? (Te = (b) => {
388
- lt(b);
387
+ e[8] === Symbol.for("react.memo_cache_sentinel") ? (Te = (x) => {
388
+ lt(x);
389
389
  }, e[8] = Te) : Te = e[8];
390
390
  const Ae = mt(Te);
391
391
  let Fe;
@@ -397,39 +397,39 @@ function zo(u) {
397
397
  let Ve;
398
398
  e[12] !== w ? (Ve = [w], e[12] = w, e[13] = Ve) : Ve = e[13], Re(Fe, Ve);
399
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;
400
+ e[14] !== re || e[15] !== M?.length || e[16] !== c || e[17] !== W ? (He = re || (W === "categorical" ? Ft(c, "x") : Vt(c.map(to), M?.length || 4)), e[14] = re, e[15] = M?.length, e[16] = c, e[17] = W, e[18] = He) : He = e[18];
401
+ const Se = He;
402
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;
403
+ const x = setInterval(() => {
404
+ De((oe) => oe < y.length - 1 ? oe + 1 : 0);
405
+ }, (b.speed || 2) * 1e3);
406
+ return ee || clearInterval(x), () => clearInterval(x);
407
+ }, [y, ee, b.speed]);
408
+ const qe = pt(y, te, b.showOnlyActiveDate, b.dateFormat || "yyyy"), tt = p?.graphContainer, ot = u?.graphContainer;
409
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
410
+ e[19] !== p?.description || e[20] !== p?.title || e[21] !== c || e[22] !== m || e[23] !== k || e[24] !== i || e[25] !== $ || e[26] !== u?.description || e[27] !== u?.title || e[28] !== v ? (ge = $ || k || i || m ? /* @__PURE__ */ t.jsx(Tt, { styles: {
411
+ title: u?.title,
412
+ description: u?.description
413
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];
414
+ title: p?.title,
415
+ description: p?.description
416
+ }, graphTitle: $, graphDescription: k, width: v, 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] = p?.description, e[20] = p?.title, e[21] = c, e[22] = m, e[23] = k, e[24] = i, e[25] = $, e[26] = u?.description, e[27] = u?.title, e[28] = v, e[29] = ge) : ge = e[29];
417
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: [
418
+ e[30] !== te || e[31] !== qe || e[32] !== ee || e[33] !== De || e[34] !== Qe || e[35] !== b.enabled || e[36] !== y ? (fe = b.enabled && y.length > 0 && qe ? /* @__PURE__ */ t.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
419
419
  /* @__PURE__ */ t.jsx("button", { type: "button", onClick: () => {
420
420
  Qe(!ee);
421
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));
422
+ /* @__PURE__ */ t.jsx(ht, { min: y[0], max: y[y.length - 1], marks: qe, step: null, defaultValue: y[y.length - 1], value: y[te], onChangeComplete: (x) => {
423
+ De(y.indexOf(x));
424
+ }, onChange: (x) => {
425
+ De(y.indexOf(x));
426
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];
427
+ ] }) : null, e[30] = te, e[31] = qe, e[32] = ee, e[33] = De, e[34] = Qe, e[35] = b.enabled, e[36] = y, e[37] = fe) : fe = e[37];
428
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 : {
429
+ e[38] !== ze || e[39] !== ie || e[40] !== p || e[41] !== G || e[42] !== V || e[43] !== M || e[44] !== Ze || e[45] !== c || e[46] !== J || e[47] !== Ke || e[48] !== Se || e[49] !== g || e[50] !== n || e[51] !== te || e[52] !== o || e[53] !== he || e[54] !== Ce || e[55] !== B || e[56] !== ce || e[57] !== l || e[58] !== ue || e[59] !== T || e[60] !== se || e[61] !== E || e[62] !== j || e[63] !== Ye || e[64] !== $e || e[65] !== W || e[66] !== D || e[67] !== s || e[68] !== u || e[69] !== Ne || e[70] !== Q || e[71] !== Z || e[72] !== b.dateFormat || e[73] !== b.enabled || e[74] !== be || e[75] !== y || e[76] !== v || e[77] !== Je || e[78] !== a || e[79] !== L ? (ye = /* @__PURE__ */ t.jsx(qt, { ref: et, children: Q && Ne && ue ? /* @__PURE__ */ t.jsx(Rt, { data: c.filter((x) => b.enabled ? x.date === ft(new Date(y[te]), b.dateFormat || "yyyy") : x), mapData: D ? ue : {
430
430
  ...ue,
431
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 ? {
432
+ }, colorDomain: Se, width: Q, height: Ne, scale: $e, centerPoint: ie, colors: M || (W === "categorical" ? Xe[Z].sequentialColors[`neutralColorsx0${Se.length}`] : Xe[Z].sequentialColors[`neutralColorsx0${Se.length + 1}`]), colorLegendTitle: V, mapBorderWidth: Ce, mapNoDataColor: B, categorical: W === "categorical", mapBorderColor: he, tooltip: be, onSeriesMouseOver: E, isWorldMap: o, showColorScale: s, zoomScaleExtend: a, zoomTranslateExtend: L, onSeriesMouseClick: se, mapProperty: l, highlightedIds: n, resetSelectionOnDoubleClick: Ye, styles: u, classNames: p, detailsOnClick: J, mapProjection: ce || (o ? "naturalEarth" : "mercator"), zoomInteraction: Je, dimmedOpacity: Ke, animate: ze === !0 ? {
433
433
  duration: 0.5,
434
434
  once: !0,
435
435
  amount: 0.5
@@ -437,48 +437,48 @@ function zo(u) {
437
437
  duration: 0,
438
438
  once: !0,
439
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];
440
+ }, customLayers: Ze, collapseColorScaleByDefault: G }) : /* @__PURE__ */ t.jsx("div", { style: {
441
+ height: `${Math.max(T, g || (j ? T ? (v || Q) * j > T ? (v || Q) * j : T : (v || Q) * j : 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] = p, e[41] = G, e[42] = V, e[43] = M, e[44] = Ze, e[45] = c, e[46] = J, e[47] = Ke, e[48] = Se, e[49] = g, e[50] = n, e[51] = te, e[52] = o, e[53] = he, e[54] = Ce, e[55] = B, e[56] = ce, e[57] = l, e[58] = ue, e[59] = T, e[60] = se, e[61] = E, e[62] = j, e[63] = Ye, e[64] = $e, e[65] = W, e[66] = D, e[67] = s, e[68] = u, e[69] = Ne, e[70] = Q, e[71] = Z, e[72] = b.dateFormat, e[73] = b.enabled, e[74] = be, e[75] = y, e[76] = v, e[77] = Je, e[78] = a, e[79] = L, e[80] = ye) : ye = e[80];
443
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
444
+ e[81] !== p?.footnote || e[82] !== p?.source || e[83] !== pe || e[84] !== A || e[85] !== u?.footnote || e[86] !== u?.source || e[87] !== v ? (xe = A || pe ? /* @__PURE__ */ t.jsx(Bt, { styles: {
445
+ footnote: u?.footnote,
446
+ source: u?.source
447
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];
448
+ footnote: p?.footnote,
449
+ source: p?.source
450
+ }, sources: A, footNote: pe, width: v }) : null, e[81] = p?.footnote, e[82] = p?.source, e[83] = pe, e[84] = A, e[85] = u?.footnote, e[86] = u?.source, e[87] = v, e[88] = xe) : xe = e[88];
451
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: [
452
+ return e[89] !== R || e[90] !== P || e[91] !== N || e[92] !== g || e[93] !== C || e[94] !== T || e[95] !== ve || e[96] !== j || e[97] !== tt || e[98] !== ot || e[99] !== ge || e[100] !== fe || e[101] !== ye || e[102] !== xe || e[103] !== Z || e[104] !== v ? (Ge = /* @__PURE__ */ t.jsxs(Gt, { className: tt, style: ot, id: N, ref: at, "aria-label": R, backgroundColor: P, theme: Z, language: C, minHeight: T, width: v, height: g, relativeHeight: j, padding: ve, children: [
453
453
  ge,
454
454
  fe,
455
455
  ye,
456
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;
457
+ ] }), e[89] = R, e[90] = P, e[91] = N, e[92] = g, e[93] = C, e[94] = T, e[95] = ve, e[96] = j, e[97] = tt, e[98] = ot, e[99] = ge, e[100] = fe, e[101] = ye, e[102] = xe, e[103] = Z, e[104] = v, e[105] = Ge) : Ge = e[105], Ge;
458
458
  }
459
- function Yt(u) {
460
- return u.properties.NAME !== "Antarctica";
459
+ function Yt(h) {
460
+ return h.properties.NAME !== "Antarctica";
461
461
  }
462
- function Jt(u) {
463
- return u !== void 0;
462
+ function Jt(h) {
463
+ return h !== void 0;
464
464
  }
465
- function Kt(u) {
466
- return u !== void 0;
465
+ function Kt(h) {
466
+ return h !== void 0;
467
467
  }
468
- function Zt(u) {
469
- return u.data;
468
+ function Zt(h) {
469
+ return h.data;
470
470
  }
471
- function Qt(u) {
472
- return u !== void 0;
471
+ function Qt(h) {
472
+ return h !== void 0;
473
473
  }
474
- function eo(u) {
475
- return u.data;
474
+ function eo(h) {
475
+ return h.data;
476
476
  }
477
- function to(u) {
478
- return u.x;
477
+ function to(h) {
478
+ return h.x;
479
479
  }
480
- function oo(u, e) {
481
- return Xt(u, e);
480
+ function oo(h, e) {
481
+ return Xt(h, e);
482
482
  }
483
483
  export {
484
484
  zo as ChoroplethMap