@undp/data-viz 2.3.13 → 2.3.15

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