@undp/data-viz 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/dist/BarGraph.cjs +1 -1
  2. package/dist/BarGraph.cjs.map +1 -1
  3. package/dist/BarGraph.js +957 -957
  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/ChoroplethMap.cjs +1 -1
  18. package/dist/ChoroplethMap.cjs.map +1 -1
  19. package/dist/ChoroplethMap.js +185 -185
  20. package/dist/ChoroplethMap.js.map +1 -1
  21. package/dist/CirclePackingGraph.cjs +1 -1
  22. package/dist/CirclePackingGraph.js +2 -4
  23. package/dist/CirclePackingGraph.js.map +1 -1
  24. package/dist/Data/barChart.json +70 -0
  25. package/dist/Data/basic.csv +20 -0
  26. package/dist/DifferenceLineChart.cjs +1 -1
  27. package/dist/DifferenceLineChart.cjs.map +1 -1
  28. package/dist/DifferenceLineChart.js +224 -223
  29. package/dist/DifferenceLineChart.js.map +1 -1
  30. package/dist/DotDensityMap.cjs +1 -1
  31. package/dist/DotDensityMap.cjs.map +1 -1
  32. package/dist/DotDensityMap.js +156 -156
  33. package/dist/DotDensityMap.js.map +1 -1
  34. package/dist/DualAxisLineChart.cjs +1 -1
  35. package/dist/DualAxisLineChart.cjs.map +1 -1
  36. package/dist/DualAxisLineChart.js +326 -325
  37. package/dist/DualAxisLineChart.js.map +1 -1
  38. package/dist/GeoHubCompareMaps.cjs +1 -1
  39. package/dist/GeoHubCompareMaps.cjs.map +1 -1
  40. package/dist/GeoHubCompareMaps.js +183 -183
  41. package/dist/GeoHubCompareMaps.js.map +1 -1
  42. package/dist/{GraphEl-DzRon4cb.js → GraphEl-BZne2JIx.js} +3 -3
  43. package/dist/{GraphEl-DzRon4cb.js.map → GraphEl-BZne2JIx.js.map} +1 -1
  44. package/dist/{GraphEl-BkyLYXG5.cjs → GraphEl-D5MUfp45.cjs} +2 -2
  45. package/dist/{GraphEl-BkyLYXG5.cjs.map → GraphEl-D5MUfp45.cjs.map} +1 -1
  46. package/dist/GriddedGraphs.cjs +1 -1
  47. package/dist/GriddedGraphs.js +1 -1
  48. package/dist/Histogram.cjs +1 -1
  49. package/dist/Histogram.js +1 -1
  50. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  51. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  52. package/dist/LineChartWithConfidenceInterval.js +133 -132
  53. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  54. package/dist/MultiGraphDashboard.cjs +1 -1
  55. package/dist/MultiGraphDashboard.cjs.map +1 -1
  56. package/dist/MultiGraphDashboard.js +52 -50
  57. package/dist/MultiGraphDashboard.js.map +1 -1
  58. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  59. package/dist/MultiGraphDashboardWideToLongFormat.cjs.map +1 -1
  60. package/dist/MultiGraphDashboardWideToLongFormat.js +11 -9
  61. package/dist/MultiGraphDashboardWideToLongFormat.js.map +1 -1
  62. package/dist/MultiLineAltChart.cjs +1 -1
  63. package/dist/MultiLineAltChart.cjs.map +1 -1
  64. package/dist/MultiLineAltChart.js +149 -148
  65. package/dist/MultiLineAltChart.js.map +1 -1
  66. package/dist/MultiLineChart.cjs +1 -1
  67. package/dist/MultiLineChart.cjs.map +1 -1
  68. package/dist/MultiLineChart.js +182 -181
  69. package/dist/MultiLineChart.js.map +1 -1
  70. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  71. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
  72. package/dist/PerformanceIntensiveMultiGraphDashboard.js +14 -12
  73. package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
  74. package/dist/SimpleLineChart.cjs +1 -1
  75. package/dist/SimpleLineChart.cjs.map +1 -1
  76. package/dist/SimpleLineChart.js +123 -122
  77. package/dist/SimpleLineChart.js.map +1 -1
  78. package/dist/SingleGraphDashboard.cjs +1 -1
  79. package/dist/SingleGraphDashboard.cjs.map +1 -1
  80. package/dist/SingleGraphDashboard.js +83 -79
  81. package/dist/SingleGraphDashboard.js.map +1 -1
  82. package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
  83. package/dist/SingleGraphDashboardGeoHubMaps.cjs.map +1 -1
  84. package/dist/SingleGraphDashboardGeoHubMaps.js +49 -45
  85. package/dist/SingleGraphDashboardGeoHubMaps.js.map +1 -1
  86. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  87. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  88. package/dist/SingleGraphDashboardThreeDGraphs.js +56 -52
  89. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  90. package/dist/StatCardFromData.cjs +1 -1
  91. package/dist/StatCardFromData.cjs.map +1 -1
  92. package/dist/StatCardFromData.js +44 -46
  93. package/dist/StatCardFromData.js.map +1 -1
  94. package/dist/ThreeDGlobe.cjs +1 -1
  95. package/dist/ThreeDGlobe.cjs.map +1 -1
  96. package/dist/ThreeDGlobe.js +134 -134
  97. package/dist/ThreeDGlobe.js.map +1 -1
  98. package/dist/getNoOfTicks-C_1CFXv_.cjs +2 -0
  99. package/dist/getNoOfTicks-C_1CFXv_.cjs.map +1 -0
  100. package/dist/getNoOfTicks-CpmRjcRF.js +7 -0
  101. package/dist/getNoOfTicks-CpmRjcRF.js.map +1 -0
  102. package/dist/index-C6LorfZ-.cjs +2 -0
  103. package/dist/index-C6LorfZ-.cjs.map +1 -0
  104. package/dist/index-Ceppbd8C.js +342 -0
  105. package/dist/index-Ceppbd8C.js.map +1 -0
  106. package/dist/index.cjs +1 -1
  107. package/dist/index.js +1 -1
  108. package/package.json +1 -1
  109. package/dist/index-DoY3Ga3W.cjs +0 -2
  110. package/dist/index-DoY3Ga3W.cjs.map +0 -1
  111. package/dist/index-leTnKT2q.js +0 -329
  112. package/dist/index-leTnKT2q.js.map +0 -1
@@ -1,15 +1,15 @@
1
1
  import { j as o, m as se, c as ce } from "./index-CHPV5EwG-Curnpaqc.js";
2
- import { useState as C, useRef as $t, useEffect as Ut, useEffectEvent as me } from "react";
2
+ import { useState as D, useRef as $t, useEffect as Ut, useEffectEvent as me } from "react";
3
3
  import { p as de, f as ue } from "./parse-DlCRUFh_.js";
4
- import { g as pe, N as he } from "./getSliderMarks-HIDJ0_Cd.js";
5
- import { w as fe } from "./Spinner-D7rnnwnA.js";
4
+ import { g as pe, N as fe } from "./getSliderMarks-HIDJ0_Cd.js";
5
+ import { w as he } from "./Spinner-D7rnnwnA.js";
6
6
  import { i as ge } from "./index-Bwrro8-q.js";
7
- import { z as ye, t as xe, g as ve, a as be, b as we, c as je, d as ke } from "./zoom-C9MFjAaV.js";
7
+ import { z as ye, t as ve, g as xe, a as be, b as we, c as je, d as ke } from "./zoom-C9MFjAaV.js";
8
8
  import { l as De } from "./Modal-DGcuAHyK.js";
9
9
  import { j as Ce } from "./Typography-PxtFcnJb.js";
10
10
  import { t as Ne } from "./index-GEsywGxz.js";
11
11
  import { T as Se } from "./Tooltip-CwWUegPB.js";
12
- import { Colors as L } from "./Colors.js";
12
+ import { Colors as E } from "./Colors.js";
13
13
  import { s as Oe } from "./string2HTML-DhG75NqA.js";
14
14
  import { X as Me, P as $e, e as Ee } from "./index-D491FEn1.js";
15
15
  import { s as Le } from "./pow-DE4c7dbW.js";
@@ -30,135 +30,135 @@ function He(a) {
30
30
  data: t,
31
31
  colors: r,
32
32
  mapData: q,
33
- colorLegendTitle: P,
34
- colorDomain: w,
35
- radius: O,
36
- height: f,
37
- width: m,
38
- scale: l,
39
- centerPoint: _,
33
+ colorLegendTitle: L,
34
+ colorDomain: b,
35
+ radius: N,
36
+ height: h,
37
+ width: c,
38
+ scale: u,
39
+ centerPoint: P,
40
40
  tooltip: X,
41
41
  showLabels: ut,
42
42
  mapBorderWidth: pt,
43
- mapBorderColor: ht,
43
+ mapBorderColor: ft,
44
44
  mapNoDataColor: Y,
45
45
  onSeriesMouseOver: K,
46
46
  showColorScale: Et,
47
47
  zoomScaleExtend: Lt,
48
48
  zoomTranslateExtend: Pt,
49
- highlightedDataPoints: ft,
49
+ highlightedDataPoints: ht,
50
50
  onSeriesMouseClick: Z,
51
51
  resetSelectionOnDoubleClick: gt,
52
- detailsOnClick: s,
52
+ detailsOnClick: p,
53
53
  styles: yt,
54
- classNames: xt,
55
- mapProjection: V,
56
- zoomInteraction: N,
57
- animate: j,
54
+ classNames: vt,
55
+ mapProjection: T,
56
+ zoomInteraction: C,
57
+ animate: w,
58
58
  dimmedOpacity: J,
59
- customLayers: A,
60
- maxRadiusValue: vt,
59
+ customLayers: V,
60
+ maxRadiusValue: xt,
61
61
  collapseColorScaleByDefault: bt
62
- } = a, [wt, jt] = C(void 0), [_t, kt] = C(bt === void 0 ? !(m < 680) : !bt), Q = $t(null), [M, tt] = C(void 0), [et, c] = C(void 0), [d, F] = C(void 0), [Dt, ot] = C(void 0), z = $t(null), I = Pe(z, {
63
- once: j.once,
64
- amount: j.amount
65
- }), H = $t(null), $ = t.filter((e) => e.radius === void 0 || e.radius === null).length !== t.length ? Le().domain([0, vt]).range([0.25, O]).nice() : void 0;
62
+ } = a, [wt, jt] = D(void 0), [_t, kt] = D(bt === void 0 ? !(c < 680) : !bt), Q = $t(null), [S, tt] = D(void 0), [et, l] = D(void 0), [s, A] = D(void 0), [Dt, ot] = D(void 0), _ = $t(null), z = Pe(_, {
63
+ once: w.once,
64
+ amount: w.amount
65
+ }), F = $t(null), O = t.filter((e) => e.radius === void 0 || e.radius === null).length !== t.length ? Le().domain([0, xt]).range([0.25, N]).nice() : void 0;
66
66
  Ut(() => {
67
- const e = oe(H.current), g = oe(z.current), i = (n) => {
68
- if (N === "noZoom") return !1;
69
- if (N === "button") return !n.type.includes("wheel");
70
- const k = n.type === "wheel", v = n.type.startsWith("touch"), x = n.type === "mousedown" || n.type === "mousemove";
71
- return v ? !0 : k ? N === "scroll" ? !0 : n.ctrlKey : x && !n.button && !n.ctrlKey;
72
- }, D = ye().scaleExtent(Lt).translateExtent(Pt || [[-20, -20], [m + 20, f + 20]]).filter(i).on("zoom", ({
67
+ const e = oe(F.current), g = oe(_.current), i = (n) => {
68
+ if (C === "noZoom") return !1;
69
+ if (C === "button") return !n.type.includes("wheel");
70
+ const j = n.type === "wheel", x = n.type.startsWith("touch"), v = n.type === "mousedown" || n.type === "mousemove";
71
+ return x ? !0 : j ? C === "scroll" ? !0 : n.ctrlKey : v && !n.button && !n.ctrlKey;
72
+ }, k = ye().scaleExtent(Lt).translateExtent(Pt || [[-20, -20], [c + 20, h + 20]]).filter(i).on("zoom", ({
73
73
  transform: n
74
74
  }) => {
75
75
  e.attr("transform", n);
76
76
  });
77
- g.call(D), Q.current = D;
78
- }, [f, m, N]);
79
- const B = xe(q), y = Ne(q), rt = B[2] - B[0], Ct = B[3] - B[1], Nt = m * 190 / 960 * 360 / rt, St = f * 190 / 678 * 180 / Ct, E = l * Math.min(Nt, St), W = V === "mercator" ? ve().rotate([0, 0]).center(_ || y.geometry.coordinates).translate([m / 2, f / 2]).scale(E) : V === "equalEarth" ? be().rotate([0, 0]).center(_ || y.geometry.coordinates).translate([m / 2, f / 2]).scale(E) : V === "naturalEarth" ? we().rotate([0, 0]).center(_ || y.geometry.coordinates).translate([m / 2, f / 2]).scale(E) : V === "orthographic" ? je().rotate([0, 0]).center(_ || y.geometry.coordinates).translate([m / 2, f / 2]).scale(E) : ke().rotate([0, 0]).center(_ || y.geometry.coordinates).translate([m / 2, f / 2]).scale(E), at = (e) => {
80
- if (!z.current || !Q.current) return;
81
- oe(z.current).call(Q.current.scaleBy, e === "in" ? 1.2 : 1 / 1.2);
77
+ g.call(k), Q.current = k;
78
+ }, [h, c, C]);
79
+ const I = ve(q), y = Ne(q), rt = I[2] - I[0], Ct = I[3] - I[1], Nt = c * 190 / 960 * 360 / rt, St = h * 190 / 678 * 180 / Ct, M = u * Math.min(Nt, St), B = T === "mercator" ? xe().rotate([0, 0]).center(P || y.geometry.coordinates).translate([c / 2, h / 2]).scale(M) : T === "equalEarth" ? be().rotate([0, 0]).center(P || y.geometry.coordinates).translate([c / 2, h / 2]).scale(M) : T === "naturalEarth" ? we().rotate([0, 0]).center(P || y.geometry.coordinates).translate([c / 2, h / 2]).scale(M) : T === "orthographic" ? je().rotate([0, 0]).center(P || y.geometry.coordinates).translate([c / 2, h / 2]).scale(M) : ke().rotate([0, 0]).center(P || y.geometry.coordinates).translate([c / 2, h / 2]).scale(M), at = (e) => {
80
+ if (!_.current || !Q.current) return;
81
+ oe(_.current).call(Q.current.scaleBy, e === "in" ? 1.2 : 1 / 1.2);
82
82
  };
83
83
  return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
84
84
  /* @__PURE__ */ o.jsxs("div", { className: "relative", children: [
85
- /* @__PURE__ */ o.jsx(Rt.svg, { width: `${m}px`, height: `${f}px`, viewBox: `0 0 ${m} ${f}`, ref: z, direction: "ltr", children: /* @__PURE__ */ o.jsxs("g", { ref: H, children: [
86
- A.filter((e) => e.position === "before").map((e) => e.layer),
85
+ /* @__PURE__ */ o.jsx(Rt.svg, { width: `${c}px`, height: `${h}px`, viewBox: `0 0 ${c} ${h}`, ref: _, direction: "ltr", children: /* @__PURE__ */ o.jsxs("g", { ref: F, children: [
86
+ V.filter((e) => e.position === "before").map((e) => e.layer),
87
87
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
88
88
  q.features.map((e, g) => /* @__PURE__ */ o.jsx("g", { children: e.geometry.type === "MultiPolygon" ? (
89
89
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
90
- e.geometry.coordinates.map((i, D) => {
90
+ e.geometry.coordinates.map((i, k) => {
91
91
  let n = "";
92
- return i.forEach((k) => {
93
- let v = " M";
94
- k.forEach((x, it) => {
95
- const T = W([x[0], x[1]]);
96
- it !== k.length - 1 ? v = `${v}${T[0]} ${T[1]}L` : v = `${v}${T[0]} ${T[1]}`;
97
- }), n += v;
92
+ return i.forEach((j) => {
93
+ let x = " M";
94
+ j.forEach((v, it) => {
95
+ const W = B([v[0], v[1]]);
96
+ it !== j.length - 1 ? x = `${x}${W[0]} ${W[1]}L` : x = `${x}${W[0]} ${W[1]}`;
97
+ }), n += x;
98
98
  }), /* @__PURE__ */ o.jsx("path", { d: n, style: {
99
- stroke: ht,
99
+ stroke: ft,
100
100
  strokeWidth: pt,
101
101
  fill: Y
102
- } }, D);
102
+ } }, k);
103
103
  })
104
104
  ) : (
105
105
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
106
- e.geometry.coordinates.map((i, D) => {
106
+ e.geometry.coordinates.map((i, k) => {
107
107
  let n = "M";
108
- return i.forEach((k, v) => {
109
- const x = W([k[0], k[1]]);
110
- v !== i.length - 1 ? n = `${n}${x[0]} ${x[1]}L` : n = `${n}${x[0]} ${x[1]}`;
108
+ return i.forEach((j, x) => {
109
+ const v = B([j[0], j[1]]);
110
+ x !== i.length - 1 ? n = `${n}${v[0]} ${v[1]}L` : n = `${n}${v[0]} ${v[1]}`;
111
111
  }), /* @__PURE__ */ o.jsx("path", { d: n, style: {
112
- stroke: ht,
112
+ stroke: ft,
113
113
  strokeWidth: pt,
114
114
  fill: Y
115
- } }, D);
115
+ } }, k);
116
116
  })
117
117
  ) }, g)),
118
118
  /* @__PURE__ */ o.jsx(_e, { children: t.map((e) => {
119
- const g = t.filter((i) => i.color).length === 0 ? r[0] : e.color ? r[w.indexOf(`${e.color}`)] : L.gray;
119
+ const g = t.filter((i) => i.color).length === 0 ? r[0] : e.color ? r[b.indexOf(`${e.color}`)] : E.gray;
120
120
  return /* @__PURE__ */ o.jsxs(Rt.g, { variants: {
121
121
  initial: {
122
122
  opacity: 0
123
123
  },
124
124
  whileInView: {
125
- opacity: wt ? wt === g ? 1 : J : ft.length !== 0 ? ft.indexOf(e.label || "") !== -1 ? 1 : J : 1,
125
+ opacity: wt ? wt === g ? 1 : J : ht.length !== 0 ? ht.indexOf(e.label || "") !== -1 ? 1 : J : 1,
126
126
  transition: {
127
- duration: j.duration
127
+ duration: w.duration
128
128
  }
129
129
  }
130
- }, initial: "initial", animate: I ? "whileInView" : "initial", exit: {
130
+ }, initial: "initial", animate: z ? "whileInView" : "initial", exit: {
131
131
  opacity: 0,
132
132
  transition: {
133
- duration: j.duration
133
+ duration: w.duration
134
134
  }
135
135
  }, onMouseEnter: (i) => {
136
- c(e), ot(i.clientY), F(i.clientX), K?.(e);
136
+ l(e), ot(i.clientY), A(i.clientX), K?.(e);
137
137
  }, onMouseMove: (i) => {
138
- c(e), ot(i.clientY), F(i.clientX);
138
+ l(e), ot(i.clientY), A(i.clientX);
139
139
  }, onMouseLeave: () => {
140
- c(void 0), F(void 0), ot(void 0), K?.(void 0);
140
+ l(void 0), A(void 0), ot(void 0), K?.(void 0);
141
141
  }, onClick: () => {
142
- (Z || s) && (ge(M, e) && gt ? (tt(void 0), Z?.(void 0)) : (tt(e), Z?.(e)));
143
- }, transform: `translate(${W([e.long, e.lat])[0]},${W([e.long, e.lat])[1]})`, children: [
142
+ (Z || p) && (ge(S, e) && gt ? (tt(void 0), Z?.(void 0)) : (tt(e), Z?.(e)));
143
+ }, transform: `translate(${B([e.long, e.lat])[0]},${B([e.long, e.lat])[1]})`, children: [
144
144
  /* @__PURE__ */ o.jsx(Rt.circle, { cx: 0, cy: 0, variants: {
145
145
  initial: {
146
146
  r: 0,
147
- fill: t.filter((i) => i.color).length === 0 ? r[0] : e.color ? r[w.indexOf(`${e.color}`)] : L.gray,
148
- stroke: t.filter((i) => i.color).length === 0 ? r[0] : e.color ? r[w.indexOf(`${e.color}`)] : L.gray
147
+ fill: t.filter((i) => i.color).length === 0 ? r[0] : e.color ? r[b.indexOf(`${e.color}`)] : E.gray,
148
+ stroke: t.filter((i) => i.color).length === 0 ? r[0] : e.color ? r[b.indexOf(`${e.color}`)] : E.gray
149
149
  },
150
150
  whileInView: {
151
- r: $ ? $(e.radius || 0) : O,
152
- fill: t.filter((i) => i.color).length === 0 ? r[0] : e.color ? r[w.indexOf(`${e.color}`)] : L.gray,
153
- stroke: t.filter((i) => i.color).length === 0 ? r[0] : e.color ? r[w.indexOf(`${e.color}`)] : L.gray,
151
+ r: O ? O(e.radius || 0) : N,
152
+ fill: t.filter((i) => i.color).length === 0 ? r[0] : e.color ? r[b.indexOf(`${e.color}`)] : E.gray,
153
+ stroke: t.filter((i) => i.color).length === 0 ? r[0] : e.color ? r[b.indexOf(`${e.color}`)] : E.gray,
154
154
  transition: {
155
- duration: j.duration
155
+ duration: w.duration
156
156
  }
157
157
  }
158
- }, initial: "initial", animate: I ? "whileInView" : "initial", exit: {
158
+ }, initial: "initial", animate: z ? "whileInView" : "initial", exit: {
159
159
  r: 0,
160
160
  transition: {
161
- duration: j.duration
161
+ duration: w.duration
162
162
  }
163
163
  }, style: {
164
164
  fillOpacity: 0.8
@@ -166,40 +166,40 @@ function He(a) {
166
166
  ut && e.label ? /* @__PURE__ */ o.jsx(Rt.text, { variants: {
167
167
  initial: {
168
168
  opacity: 0,
169
- x: $ ? $(e.radius || 0) : O
169
+ x: O ? O(e.radius || 0) : N
170
170
  },
171
171
  whileInView: {
172
172
  opacity: 1,
173
- x: $ ? $(e.radius || 0) : O,
173
+ x: O ? O(e.radius || 0) : N,
174
174
  transition: {
175
- duration: j.duration
175
+ duration: w.duration
176
176
  }
177
177
  }
178
- }, initial: "initial", animate: I ? "whileInView" : "initial", exit: {
178
+ }, initial: "initial", animate: z ? "whileInView" : "initial", exit: {
179
179
  opacity: 0,
180
180
  transition: {
181
- duration: j.duration
181
+ duration: w.duration
182
182
  }
183
183
  }, y: 0, className: "fill-primary-gray-600 dark:fill-primary-gray-300 text-sm", style: {
184
184
  textAnchor: "start"
185
185
  }, dx: 4, dy: 5, children: e.label }) : null
186
186
  ] }, e.label || `${e.lat}-${e.long}`);
187
187
  }) }),
188
- A.filter((e) => e.position === "after").map((e) => e.layer)
188
+ V.filter((e) => e.position === "after").map((e) => e.layer)
189
189
  ] }) }),
190
- t.filter((e) => e.color).length === 0 || Et === !1 ? null : /* @__PURE__ */ o.jsx("div", { className: se("absolute left-4 bottom-4 map-color-legend", xt?.colorLegend), children: _t ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
190
+ t.filter((e) => e.color).length === 0 || Et === !1 ? null : /* @__PURE__ */ o.jsx("div", { className: se("absolute left-4 bottom-4 map-color-legend", vt?.colorLegend), children: _t ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
191
191
  /* @__PURE__ */ o.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: () => {
192
192
  kt(!1);
193
193
  }, children: /* @__PURE__ */ o.jsx(Me, {}) }),
194
194
  /* @__PURE__ */ o.jsxs("div", { className: "p-2", style: {
195
195
  backgroundColor: "rgba(240,240,240, 0.7)"
196
196
  }, children: [
197
- P && P !== "" ? /* @__PURE__ */ o.jsx("p", { className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
197
+ L && L !== "" ? /* @__PURE__ */ o.jsx("p", { className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
198
198
  display: "-webkit-box",
199
199
  WebkitLineClamp: "1",
200
200
  WebkitBoxOrient: "vertical"
201
- }, children: P }) : null,
202
- /* @__PURE__ */ o.jsx("div", { className: "flex flex-col gap-3", children: w.map((e, g) => /* @__PURE__ */ o.jsxs("div", { className: "flex gap-2 items-center", onMouseOver: () => {
201
+ }, children: L }) : null,
202
+ /* @__PURE__ */ o.jsx("div", { className: "flex flex-col gap-3", children: b.map((e, g) => /* @__PURE__ */ o.jsxs("div", { className: "flex gap-2 items-center", onMouseOver: () => {
203
203
  jt(r[g % r.length]);
204
204
  }, onMouseLeave: () => {
205
205
  jt(void 0);
@@ -213,94 +213,94 @@ function He(a) {
213
213
  ] }) : /* @__PURE__ */ o.jsx("button", { type: "button", className: "mb-0 border-0 bg-transparent p-0 self-start", onClick: () => {
214
214
  kt(!0);
215
215
  }, children: /* @__PURE__ */ o.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" }) }) }),
216
- N === "button" && /* @__PURE__ */ o.jsxs("div", { className: "absolute left-4 top-4 flex flex-col zoom-buttons", children: [
216
+ C === "button" && /* @__PURE__ */ o.jsxs("div", { className: "absolute left-4 top-4 flex flex-col zoom-buttons", children: [
217
217
  /* @__PURE__ */ o.jsx("button", { onClick: () => at("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: "+" }),
218
218
  /* @__PURE__ */ o.jsx("button", { onClick: () => at("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: "–" })
219
219
  ] })
220
220
  ] }),
221
- s && M !== void 0 ? /* @__PURE__ */ o.jsx(De, { open: M !== void 0, onClose: () => {
221
+ p && S !== void 0 ? /* @__PURE__ */ o.jsx(De, { open: S !== void 0, onClose: () => {
222
222
  tt(void 0);
223
- }, children: /* @__PURE__ */ o.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof s == "string" ? {
224
- __html: Oe(s, M)
225
- } : void 0, children: typeof s == "function" ? s(M) : null }) }) : null,
226
- et && X && d && Dt ? /* @__PURE__ */ o.jsx(Se, { data: et, body: X, xPos: d, yPos: Dt, backgroundStyle: yt?.tooltip, className: xt?.tooltip }) : null
223
+ }, children: /* @__PURE__ */ o.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof p == "string" ? {
224
+ __html: Oe(p, S)
225
+ } : void 0, children: typeof p == "function" ? p(S) : null }) }) : null,
226
+ et && X && s && Dt ? /* @__PURE__ */ o.jsx(Se, { data: et, body: X, xPos: s, yPos: Dt, backgroundStyle: yt?.tooltip, className: vt?.tooltip }) : null
227
227
  ] });
228
228
  }
229
229
  function Mo(a) {
230
230
  const t = ce.c(102), {
231
231
  data: r,
232
232
  mapData: q,
233
- graphTitle: P,
234
- colors: w,
235
- sources: O,
236
- graphDescription: f,
237
- height: m,
238
- width: l,
239
- footNote: _,
233
+ graphTitle: L,
234
+ colors: b,
235
+ sources: N,
236
+ graphDescription: h,
237
+ height: c,
238
+ width: u,
239
+ footNote: P,
240
240
  colorLegendTitle: X,
241
241
  colorDomain: ut,
242
242
  radius: pt,
243
- scale: ht,
243
+ scale: ft,
244
244
  centerPoint: Y,
245
245
  padding: K,
246
246
  mapBorderWidth: Et,
247
247
  mapNoDataColor: Lt,
248
248
  backgroundColor: Pt,
249
- showLabels: ft,
249
+ showLabels: ht,
250
250
  mapBorderColor: Z,
251
251
  tooltip: gt,
252
- relativeHeight: s,
252
+ relativeHeight: p,
253
253
  onSeriesMouseOver: yt,
254
- isWorldMap: xt,
255
- showColorScale: V,
256
- zoomScaleExtend: N,
257
- zoomTranslateExtend: j,
254
+ isWorldMap: vt,
255
+ showColorScale: T,
256
+ zoomScaleExtend: C,
257
+ zoomTranslateExtend: w,
258
258
  graphID: J,
259
- highlightedDataPoints: A,
260
- onSeriesMouseClick: vt,
259
+ highlightedDataPoints: V,
260
+ onSeriesMouseClick: xt,
261
261
  graphDownload: bt,
262
262
  dataDownload: wt,
263
263
  showAntarctica: jt,
264
264
  language: _t,
265
265
  minHeight: kt,
266
266
  theme: Q,
267
- ariaLabel: M,
267
+ ariaLabel: S,
268
268
  resetSelectionOnDoubleClick: tt,
269
269
  detailsOnClick: et,
270
- styles: c,
271
- classNames: d,
272
- mapProjection: F,
270
+ styles: l,
271
+ classNames: s,
272
+ mapProjection: A,
273
273
  zoomInteraction: Dt,
274
274
  animate: ot,
275
- dimmedOpacity: z,
276
- customLayers: I,
277
- maxRadiusValue: H,
278
- timeline: $,
279
- collapseColorScaleByDefault: B
280
- } = a, y = q === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap.json" : q, rt = _ === 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." : _, Ct = pt === void 0 ? 5 : pt, Nt = ht === void 0 ? 0.95 : ht, St = Et === void 0 ? 0.5 : Et, E = Lt === void 0 ? L.light.graphNoData : Lt, W = Pt === void 0 ? !1 : Pt, at = ft === void 0 ? !1 : ft, e = Z === void 0 ? L.light.grays["gray-500"] : Z, g = xt === void 0 ? !0 : xt, i = V === void 0 ? !0 : V;
281
- let D;
282
- t[0] !== N ? (D = N === void 0 ? [0.8, 6] : N, t[0] = N, t[1] = D) : D = t[1];
283
- const n = D;
275
+ dimmedOpacity: _,
276
+ customLayers: z,
277
+ maxRadiusValue: F,
278
+ timeline: O,
279
+ collapseColorScaleByDefault: I
280
+ } = a, y = q === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap.json" : q, rt = P === 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." : P, Ct = pt === void 0 ? 5 : pt, Nt = ft === void 0 ? 0.95 : ft, St = Et === void 0 ? 0.5 : Et, M = Lt === void 0 ? E.light.graphNoData : Lt, B = Pt === void 0 ? !1 : Pt, at = ht === void 0 ? !1 : ht, e = Z === void 0 ? E.light.grays["gray-500"] : Z, g = vt === void 0 ? !0 : vt, i = T === void 0 ? !0 : T;
284
281
  let k;
285
- t[2] !== A ? (k = A === void 0 ? [] : A, t[2] = A, t[3] = k) : k = t[3];
286
- const v = k, x = bt === void 0 ? !1 : bt, it = wt === void 0 ? !1 : wt, T = jt === void 0 ? !1 : jt, qt = _t === void 0 ? "en" : _t, b = kt === void 0 ? 0 : kt, nt = Q === void 0 ? "light" : Q, Xt = tt === void 0 ? !0 : tt, Yt = Dt === void 0 ? "button" : Dt, zt = ot === void 0 ? !1 : ot, Kt = z === void 0 ? 0.3 : z;
282
+ t[0] !== C ? (k = C === void 0 ? [0.8, 6] : C, t[0] = C, t[1] = k) : k = t[1];
283
+ const n = k;
284
+ let j;
285
+ t[2] !== V ? (j = V === void 0 ? [] : V, t[2] = V, t[3] = j) : j = t[3];
286
+ const x = j, v = bt === void 0 ? !1 : bt, it = wt === void 0 ? !1 : wt, W = jt === void 0 ? !1 : jt, qt = _t === void 0 ? "en" : _t, $ = kt === void 0 ? 0 : kt, nt = Q === void 0 ? "light" : Q, Xt = tt === void 0 ? !0 : tt, Yt = Dt === void 0 ? "button" : Dt, zt = ot === void 0 ? !1 : ot, Kt = _ === void 0 ? 0.3 : _;
287
287
  let It;
288
- t[4] !== I ? (It = I === void 0 ? [] : I, t[4] = I, t[5] = It) : It = t[5];
289
- const Zt = It, h = $ === void 0 ? {
288
+ t[4] !== z ? (It = z === void 0 ? [] : z, t[4] = z, t[5] = It) : It = t[5];
289
+ const Zt = It, f = O === void 0 ? {
290
290
  enabled: !1,
291
291
  autoplay: !1,
292
292
  showOnlyActiveDate: !0
293
- } : $, [S, ie] = C(0), [Ot, ne] = C(0), [G, Jt] = C(h.autoplay), u = Ae(ae(r, "date", !0).map((p) => de(`${p}`, h.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), to), [R, Mt] = C(h.autoplay ? 0 : u.length - 1), [lt, le] = C(void 0), Qt = $t(null), re = $t(null);
293
+ } : O, [H, ie] = D(0), [Ot, ne] = D(0), [G, Jt] = D(f.autoplay), m = Ae(ae(r, "date", !0).map((d) => de(`${d}`, f.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), to), [R, Mt] = D(f.autoplay ? 0 : m.length - 1), [lt, le] = D(void 0), Qt = $t(null), re = $t(null);
294
294
  let Bt, Wt;
295
295
  t[6] === Symbol.for("react.memo_cache_sentinel") ? (Bt = () => {
296
- const p = new ResizeObserver((U) => {
296
+ const d = new ResizeObserver((U) => {
297
297
  ie(U[0].target.clientWidth || 620), ne(U[0].target.clientHeight || 480);
298
298
  });
299
- return Qt.current && p.observe(Qt.current), () => p.disconnect();
299
+ return Qt.current && d.observe(Qt.current), () => d.disconnect();
300
300
  }, Wt = [], t[6] = Bt, t[7] = Wt) : (Bt = t[6], Wt = t[7]), Ut(Bt, Wt);
301
301
  let Tt;
302
- t[8] === Symbol.for("react.memo_cache_sentinel") ? (Tt = (p) => {
303
- le(p);
302
+ t[8] === Symbol.for("react.memo_cache_sentinel") ? (Tt = (d) => {
303
+ le(d);
304
304
  }, t[8] = Tt) : Tt = t[8];
305
305
  const Vt = me(Tt);
306
306
  let At;
@@ -311,36 +311,36 @@ function Mo(a) {
311
311
  }, t[9] = y, t[10] = Vt, t[11] = At) : At = t[11];
312
312
  let Ft;
313
313
  t[12] !== y ? (Ft = [y], t[12] = y, t[13] = Ft) : Ft = t[13], Ut(At, Ft), Ut(() => {
314
- const p = setInterval(() => {
315
- Mt((U) => U < u.length - 1 ? U + 1 : 0);
316
- }, (h.speed || 2) * 1e3);
317
- return G || clearInterval(p), () => clearInterval(p);
318
- }, [u, G, h.speed]);
319
- const Ht = pe(u, R, h.showOnlyActiveDate, h.dateFormat || "yyyy"), te = d?.graphContainer, ee = c?.graphContainer;
314
+ const d = setInterval(() => {
315
+ Mt((U) => U < m.length - 1 ? U + 1 : 0);
316
+ }, (f.speed || 2) * 1e3);
317
+ return G || clearInterval(d), () => clearInterval(d);
318
+ }, [m, G, f.speed]);
319
+ const Ht = pe(m, R, f.showOnlyActiveDate, f.dateFormat || "yyyy"), te = s?.graphContainer, ee = l?.graphContainer;
320
320
  let st;
321
- t[14] !== d?.description || t[15] !== d?.title || t[16] !== r || t[17] !== it || t[18] !== f || t[19] !== x || t[20] !== P || t[21] !== c?.description || t[22] !== c?.title || t[23] !== l ? (st = P || f || x || it ? /* @__PURE__ */ o.jsx(Ie, { styles: {
322
- title: c?.title,
323
- description: c?.description
321
+ t[14] !== s?.description || t[15] !== s?.title || t[16] !== r || t[17] !== it || t[18] !== h || t[19] !== v || t[20] !== L || t[21] !== l?.description || t[22] !== l?.title || t[23] !== u ? (st = L || h || v || it ? /* @__PURE__ */ o.jsx(Ie, { styles: {
322
+ title: l?.title,
323
+ description: l?.description
324
324
  }, classNames: {
325
- title: d?.title,
326
- description: d?.description
327
- }, graphTitle: P, graphDescription: f, width: l, graphDownload: x ? re : void 0, dataDownload: it ? r.map(Qe).filter(Je).length > 0 ? r.map(Ze).filter(Ke) : r.filter(Ye) : null }) : null, t[14] = d?.description, t[15] = d?.title, t[16] = r, t[17] = it, t[18] = f, t[19] = x, t[20] = P, t[21] = c?.description, t[22] = c?.title, t[23] = l, t[24] = st) : st = t[24];
325
+ title: s?.title,
326
+ description: s?.description
327
+ }, graphTitle: L, graphDescription: h, width: u, graphDownload: v ? re : void 0, dataDownload: it ? r.map(Qe).filter(Je).length > 0 ? r.map(Ze).filter(Ke) : r.filter(Ye) : null }) : null, t[14] = s?.description, t[15] = s?.title, t[16] = r, t[17] = it, t[18] = h, t[19] = v, t[20] = L, t[21] = l?.description, t[22] = l?.title, t[23] = u, t[24] = st) : st = t[24];
328
328
  let ct;
329
- t[25] !== R || t[26] !== Ht || t[27] !== G || t[28] !== Mt || t[29] !== Jt || t[30] !== h.enabled || t[31] !== u ? (ct = h.enabled && u.length > 0 && Ht ? /* @__PURE__ */ o.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
329
+ t[25] !== R || t[26] !== Ht || t[27] !== G || t[28] !== Mt || t[29] !== Jt || t[30] !== f.enabled || t[31] !== m ? (ct = f.enabled && m.length > 0 && Ht ? /* @__PURE__ */ o.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
330
330
  /* @__PURE__ */ o.jsx("button", { type: "button", onClick: () => {
331
331
  Jt(!G);
332
332
  }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": G ? "Click to pause animation" : "Click to play animation", children: G ? /* @__PURE__ */ o.jsx($e, {}) : /* @__PURE__ */ o.jsx(Ee, {}) }),
333
- /* @__PURE__ */ o.jsx(he, { min: u[0], max: u[u.length - 1], marks: Ht, step: null, defaultValue: u[u.length - 1], value: u[R], onChangeComplete: (p) => {
334
- Mt(u.indexOf(p));
335
- }, onChange: (p) => {
336
- Mt(u.indexOf(p));
333
+ /* @__PURE__ */ o.jsx(fe, { min: m[0], max: m[m.length - 1], marks: Ht, step: null, defaultValue: m[m.length - 1], value: m[R], onChangeComplete: (d) => {
334
+ Mt(m.indexOf(d));
335
+ }, onChange: (d) => {
336
+ Mt(m.indexOf(d));
337
337
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
338
- ] }) : null, t[25] = R, t[26] = Ht, t[27] = G, t[28] = Mt, t[29] = Jt, t[30] = h.enabled, t[31] = u, t[32] = ct) : ct = t[32];
338
+ ] }) : null, t[25] = R, t[26] = Ht, t[27] = G, t[28] = Mt, t[29] = Jt, t[30] = f.enabled, t[31] = m, t[32] = ct) : ct = t[32];
339
339
  let mt;
340
- t[33] !== zt || t[34] !== Y || t[35] !== d || t[36] !== B || t[37] !== ut || t[38] !== X || t[39] !== w || t[40] !== Zt || t[41] !== r || t[42] !== et || t[43] !== Kt || t[44] !== m || t[45] !== v || t[46] !== R || t[47] !== g || t[48] !== e || t[49] !== St || t[50] !== E || t[51] !== F || t[52] !== lt || t[53] !== H || t[54] !== b || t[55] !== vt || t[56] !== yt || t[57] !== Ct || t[58] !== s || t[59] !== Xt || t[60] !== Nt || t[61] !== T || t[62] !== i || t[63] !== at || t[64] !== c || t[65] !== Ot || t[66] !== S || t[67] !== nt || t[68] !== h.dateFormat || t[69] !== h.enabled || t[70] !== gt || t[71] !== u || t[72] !== l || t[73] !== Yt || t[74] !== n || t[75] !== j ? (mt = /* @__PURE__ */ o.jsx(Te, { ref: Qt, children: S && Ot && lt ? /* @__PURE__ */ o.jsx(He, { data: r.filter((p) => h.enabled ? p.date === ue(new Date(u[R]), h.dateFormat || "yyyy") : p), mapData: T ? lt : {
340
+ t[33] !== zt || t[34] !== Y || t[35] !== s || t[36] !== I || t[37] !== ut || t[38] !== X || t[39] !== b || t[40] !== Zt || t[41] !== r || t[42] !== et || t[43] !== Kt || t[44] !== c || t[45] !== x || t[46] !== R || t[47] !== g || t[48] !== e || t[49] !== St || t[50] !== M || t[51] !== A || t[52] !== lt || t[53] !== F || t[54] !== $ || t[55] !== xt || t[56] !== yt || t[57] !== Ct || t[58] !== p || t[59] !== Xt || t[60] !== Nt || t[61] !== W || t[62] !== i || t[63] !== at || t[64] !== l || t[65] !== Ot || t[66] !== H || t[67] !== nt || t[68] !== f.dateFormat || t[69] !== f.enabled || t[70] !== gt || t[71] !== m || t[72] !== u || t[73] !== Yt || t[74] !== n || t[75] !== w ? (mt = /* @__PURE__ */ o.jsx(Te, { ref: Qt, children: H && Ot && lt ? /* @__PURE__ */ o.jsx(He, { data: r.filter((d) => f.enabled ? d.date === ue(new Date(m[R]), f.dateFormat || "yyyy") : d), mapData: W ? lt : {
341
341
  ...lt,
342
342
  features: lt.features.filter(Xe)
343
- }, colorDomain: r.filter(qe).length === 0 ? [] : ut || ae(r, "color", !0), width: l || S, height: Math.max(b, m || (s ? b ? (l || S) * s > b ? (l || S) * s : b : (l || S) * s : Ot)), scale: Nt, centerPoint: Y, colors: r.filter(Ue).length === 0 ? w ? [w] : [L.primaryColors["blue-600"]] : w || L[nt].categoricalColors.colors, colorLegendTitle: X, radius: Ct, mapBorderWidth: St, mapNoDataColor: E, mapBorderColor: e, tooltip: gt, onSeriesMouseOver: yt, showLabels: at, isWorldMap: g, showColorScale: i, zoomScaleExtend: n, zoomTranslateExtend: j, onSeriesMouseClick: vt, highlightedDataPoints: v, resetSelectionOnDoubleClick: Xt, styles: c, classNames: d, zoomInteraction: Yt, detailsOnClick: et, mapProjection: F || (g ? "naturalEarth" : "mercator"), animate: zt === !0 ? {
343
+ }, colorDomain: r.filter(qe).length === 0 ? [] : ut || ae(r, "color", !0), width: H, height: Ot, scale: Nt, centerPoint: Y, colors: r.filter(Ue).length === 0 ? b ? [b] : [E.primaryColors["blue-600"]] : b || E[nt].categoricalColors.colors, colorLegendTitle: X, radius: Ct, mapBorderWidth: St, mapNoDataColor: M, mapBorderColor: e, tooltip: gt, onSeriesMouseOver: yt, showLabels: at, isWorldMap: g, showColorScale: i, zoomScaleExtend: n, zoomTranslateExtend: w, onSeriesMouseClick: xt, highlightedDataPoints: x, resetSelectionOnDoubleClick: Xt, styles: l, classNames: s, zoomInteraction: Yt, detailsOnClick: et, mapProjection: A || (g ? "naturalEarth" : "mercator"), animate: zt === !0 ? {
344
344
  duration: 0.5,
345
345
  once: !0,
346
346
  amount: 0.5
@@ -348,24 +348,24 @@ function Mo(a) {
348
348
  duration: 0,
349
349
  once: !0,
350
350
  amount: 0
351
- }, dimmedOpacity: Kt, customLayers: Zt, maxRadiusValue: We(H) ? Math.max(...r.map(Re).filter(Ge)) : H, collapseColorScaleByDefault: B }) : /* @__PURE__ */ o.jsx("div", { style: {
352
- height: `${Math.max(b, m || (s ? b ? (l || S) * s > b ? (l || S) * s : b : (l || S) * s : Ot))}px`
353
- }, className: "flex items-center justify-center", children: /* @__PURE__ */ o.jsx(fe, { "aria-label": "Loading graph" }) }) }), t[33] = zt, t[34] = Y, t[35] = d, t[36] = B, t[37] = ut, t[38] = X, t[39] = w, t[40] = Zt, t[41] = r, t[42] = et, t[43] = Kt, t[44] = m, t[45] = v, t[46] = R, t[47] = g, t[48] = e, t[49] = St, t[50] = E, t[51] = F, t[52] = lt, t[53] = H, t[54] = b, t[55] = vt, t[56] = yt, t[57] = Ct, t[58] = s, t[59] = Xt, t[60] = Nt, t[61] = T, t[62] = i, t[63] = at, t[64] = c, t[65] = Ot, t[66] = S, t[67] = nt, t[68] = h.dateFormat, t[69] = h.enabled, t[70] = gt, t[71] = u, t[72] = l, t[73] = Yt, t[74] = n, t[75] = j, t[76] = mt) : mt = t[76];
351
+ }, dimmedOpacity: Kt, customLayers: Zt, maxRadiusValue: We(F) ? Math.max(...r.map(Re).filter(Ge)) : F, collapseColorScaleByDefault: I }) : /* @__PURE__ */ o.jsx("div", { style: {
352
+ height: `${Math.max($, c || (p ? $ ? (u || H) * p > $ ? (u || H) * p : $ : (u || H) * p : Ot))}px`
353
+ }, className: "flex items-center justify-center", children: /* @__PURE__ */ o.jsx(he, { "aria-label": "Loading graph" }) }) }), t[33] = zt, t[34] = Y, t[35] = s, t[36] = I, t[37] = ut, t[38] = X, t[39] = b, t[40] = Zt, t[41] = r, t[42] = et, t[43] = Kt, t[44] = c, t[45] = x, t[46] = R, t[47] = g, t[48] = e, t[49] = St, t[50] = M, t[51] = A, t[52] = lt, t[53] = F, t[54] = $, t[55] = xt, t[56] = yt, t[57] = Ct, t[58] = p, t[59] = Xt, t[60] = Nt, t[61] = W, t[62] = i, t[63] = at, t[64] = l, t[65] = Ot, t[66] = H, t[67] = nt, t[68] = f.dateFormat, t[69] = f.enabled, t[70] = gt, t[71] = m, t[72] = u, t[73] = Yt, t[74] = n, t[75] = w, t[76] = mt) : mt = t[76];
354
354
  let dt;
355
- t[77] !== d?.footnote || t[78] !== d?.source || t[79] !== rt || t[80] !== O || t[81] !== c?.footnote || t[82] !== c?.source || t[83] !== l ? (dt = O || rt ? /* @__PURE__ */ o.jsx(ze, { styles: {
356
- footnote: c?.footnote,
357
- source: c?.source
355
+ t[77] !== s?.footnote || t[78] !== s?.source || t[79] !== rt || t[80] !== N || t[81] !== l?.footnote || t[82] !== l?.source || t[83] !== u ? (dt = N || rt ? /* @__PURE__ */ o.jsx(ze, { styles: {
356
+ footnote: l?.footnote,
357
+ source: l?.source
358
358
  }, classNames: {
359
- footnote: d?.footnote,
360
- source: d?.source
361
- }, sources: O, footNote: rt, width: l }) : null, t[77] = d?.footnote, t[78] = d?.source, t[79] = rt, t[80] = O, t[81] = c?.footnote, t[82] = c?.source, t[83] = l, t[84] = dt) : dt = t[84];
359
+ footnote: s?.footnote,
360
+ source: s?.source
361
+ }, sources: N, footNote: rt, width: u }) : null, t[77] = s?.footnote, t[78] = s?.source, t[79] = rt, t[80] = N, t[81] = l?.footnote, t[82] = l?.source, t[83] = u, t[84] = dt) : dt = t[84];
362
362
  let Gt;
363
- return t[85] !== M || t[86] !== W || t[87] !== J || t[88] !== m || t[89] !== qt || t[90] !== b || t[91] !== K || t[92] !== s || t[93] !== te || t[94] !== ee || t[95] !== st || t[96] !== ct || t[97] !== mt || t[98] !== dt || t[99] !== nt || t[100] !== l ? (Gt = /* @__PURE__ */ o.jsxs(Ve, { className: te, style: ee, id: J, ref: re, "aria-label": M, backgroundColor: W, theme: nt, language: qt, minHeight: b, width: l, height: m, relativeHeight: s, padding: K, children: [
363
+ return t[85] !== S || t[86] !== B || t[87] !== J || t[88] !== c || t[89] !== qt || t[90] !== $ || t[91] !== K || t[92] !== p || t[93] !== te || t[94] !== ee || t[95] !== st || t[96] !== ct || t[97] !== mt || t[98] !== dt || t[99] !== nt || t[100] !== u ? (Gt = /* @__PURE__ */ o.jsxs(Ve, { className: te, style: ee, id: J, ref: re, "aria-label": S, backgroundColor: B, theme: nt, language: qt, minHeight: $, width: u, height: c, relativeHeight: p, padding: K, children: [
364
364
  st,
365
365
  ct,
366
366
  mt,
367
367
  dt
368
- ] }), t[85] = M, t[86] = W, t[87] = J, t[88] = m, t[89] = qt, t[90] = b, t[91] = K, t[92] = s, t[93] = te, t[94] = ee, t[95] = st, t[96] = ct, t[97] = mt, t[98] = dt, t[99] = nt, t[100] = l, t[101] = Gt) : Gt = t[101], Gt;
368
+ ] }), t[85] = S, t[86] = B, t[87] = J, t[88] = c, t[89] = qt, t[90] = $, t[91] = K, t[92] = p, t[93] = te, t[94] = ee, t[95] = st, t[96] = ct, t[97] = mt, t[98] = dt, t[99] = nt, t[100] = u, t[101] = Gt) : Gt = t[101], Gt;
369
369
  }
370
370
  function Ge(a) {
371
371
  return a != null;