@undp/data-viz 2.3.19 → 2.4.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 (95) hide show
  1. package/dist/BarGraph.cjs +1 -1
  2. package/dist/BarGraph.cjs.map +1 -1
  3. package/dist/BarGraph.js +1360 -1363
  4. package/dist/BarGraph.js.map +1 -1
  5. package/dist/BeeSwarmChart.cjs +1 -1
  6. package/dist/BeeSwarmChart.cjs.map +1 -1
  7. package/dist/BeeSwarmChart.js +302 -305
  8. package/dist/BeeSwarmChart.js.map +1 -1
  9. package/dist/BiVariateChoroplethMap.cjs +1 -1
  10. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  11. package/dist/BiVariateChoroplethMap.js +245 -248
  12. package/dist/BiVariateChoroplethMap.js.map +1 -1
  13. package/dist/BulletChart.cjs +1 -1
  14. package/dist/BulletChart.cjs.map +1 -1
  15. package/dist/BulletChart.js +591 -594
  16. package/dist/BulletChart.js.map +1 -1
  17. package/dist/ChoroplethMap.cjs +1 -1
  18. package/dist/ChoroplethMap.cjs.map +1 -1
  19. package/dist/ChoroplethMap.js +283 -286
  20. package/dist/ChoroplethMap.js.map +1 -1
  21. package/dist/CirclePackingGraph.cjs +1 -1
  22. package/dist/CirclePackingGraph.js +1 -1
  23. package/dist/DotDensityMap.cjs +1 -1
  24. package/dist/DotDensityMap.cjs.map +1 -1
  25. package/dist/DotDensityMap.js +255 -258
  26. package/dist/DotDensityMap.js.map +1 -1
  27. package/dist/DumbbellChart.cjs +1 -1
  28. package/dist/DumbbellChart.cjs.map +1 -1
  29. package/dist/DumbbellChart.js +553 -556
  30. package/dist/DumbbellChart.js.map +1 -1
  31. package/dist/{GraphEl-Dorm_qQE.js → GraphEl-B73N4RIA.js} +2 -2
  32. package/dist/{GraphEl-Dorm_qQE.js.map → GraphEl-B73N4RIA.js.map} +1 -1
  33. package/dist/{GraphEl-D8WRC8-j.cjs → GraphEl-Lt1og0C-.cjs} +2 -2
  34. package/dist/{GraphEl-D8WRC8-j.cjs.map → GraphEl-Lt1og0C-.cjs.map} +1 -1
  35. package/dist/GriddedGraphs.cjs +1 -1
  36. package/dist/GriddedGraphs.js +1 -1
  37. package/dist/Histogram.cjs +1 -1
  38. package/dist/Histogram.js +1 -1
  39. package/dist/HybridMap.cjs +1 -1
  40. package/dist/HybridMap.cjs.map +1 -1
  41. package/dist/HybridMap.js +317 -323
  42. package/dist/HybridMap.js.map +1 -1
  43. package/dist/MultiLineAltChart.cjs +1 -1
  44. package/dist/MultiLineAltChart.cjs.map +1 -1
  45. package/dist/MultiLineAltChart.js +269 -272
  46. package/dist/MultiLineAltChart.js.map +1 -1
  47. package/dist/MultiLineChart.cjs +1 -1
  48. package/dist/MultiLineChart.cjs.map +1 -1
  49. package/dist/MultiLineChart.js +319 -322
  50. package/dist/MultiLineChart.js.map +1 -1
  51. package/dist/RadarChart.cjs +1 -1
  52. package/dist/RadarChart.cjs.map +1 -1
  53. package/dist/RadarChart.js +3 -3
  54. package/dist/RadarChart.js.map +1 -1
  55. package/dist/SankeyChart.cjs +1 -1
  56. package/dist/SankeyChart.cjs.map +1 -1
  57. package/dist/SankeyChart.js +274 -280
  58. package/dist/SankeyChart.js.map +1 -1
  59. package/dist/ScatterPlot.cjs +1 -1
  60. package/dist/ScatterPlot.cjs.map +1 -1
  61. package/dist/ScatterPlot.js +341 -344
  62. package/dist/ScatterPlot.js.map +1 -1
  63. package/dist/SingleGraphDashboard.cjs +1 -1
  64. package/dist/SingleGraphDashboard.js +1 -1
  65. package/dist/SlopeChart.cjs +1 -1
  66. package/dist/SlopeChart.cjs.map +1 -1
  67. package/dist/SlopeChart.js +251 -254
  68. package/dist/SlopeChart.js.map +1 -1
  69. package/dist/StripChart.cjs +1 -1
  70. package/dist/StripChart.cjs.map +1 -1
  71. package/dist/StripChart.js +292 -295
  72. package/dist/StripChart.js.map +1 -1
  73. package/dist/ThreeDGlobe.cjs +1 -1
  74. package/dist/ThreeDGlobe.cjs.map +1 -1
  75. package/dist/ThreeDGlobe.js +116 -119
  76. package/dist/ThreeDGlobe.js.map +1 -1
  77. package/dist/TreeMapGraph.cjs +1 -1
  78. package/dist/TreeMapGraph.cjs.map +1 -1
  79. package/dist/TreeMapGraph.js +196 -199
  80. package/dist/TreeMapGraph.js.map +1 -1
  81. package/dist/WaterfallChart.cjs +1 -1
  82. package/dist/WaterfallChart.cjs.map +1 -1
  83. package/dist/WaterfallChart.js +274 -277
  84. package/dist/WaterfallChart.js.map +1 -1
  85. package/dist/index-B0Awa_de.js +377 -0
  86. package/dist/index-B0Awa_de.js.map +1 -0
  87. package/dist/index-CP8cmNzt.cjs +2 -0
  88. package/dist/index-CP8cmNzt.cjs.map +1 -0
  89. package/dist/index.cjs +1 -1
  90. package/dist/index.js +1 -1
  91. package/package.json +1 -1
  92. package/dist/index-Bdo_HXb_.cjs +0 -2
  93. package/dist/index-Bdo_HXb_.cjs.map +0 -1
  94. package/dist/index-CGrBpeUa.js +0 -380
  95. package/dist/index-CGrBpeUa.js.map +0 -1
@@ -1,44 +1,44 @@
1
- import { c as Kt, j as M, m as Wt } from "./index-CHPV5EwG-BzibaIRc.js";
2
- import { useRef as zt, useState as at, useEffect as ee } from "react";
3
- import { _ as qt } from "./Typography-BO0gQDIT.js";
4
- import { T as ne } from "./Tooltip-Bj-s__cI.js";
5
- import { n as ie } from "./numberFormattingFunction-DqMf_v1m.js";
6
- import { g as Et } from "./getTextColorBasedOnBgColor-CDY808zi.js";
7
- import { Colors as Q } from "./Colors.js";
8
- import { D as oe } from "./DetailsModal-B2XBWR7w.js";
1
+ import { c as Xt, j as M, m as Pt } from "./index-CHPV5EwG-BzibaIRc.js";
2
+ import { useRef as Lt, useState as at, useEffect as _t } from "react";
3
+ import { _ as Gt } from "./Typography-BO0gQDIT.js";
4
+ import { T as te } from "./Tooltip-Bj-s__cI.js";
5
+ import { n as ee } from "./numberFormattingFunction-DqMf_v1m.js";
6
+ import { g as $t } from "./getTextColorBasedOnBgColor-CDY808zi.js";
7
+ import { Colors as J } from "./Colors.js";
8
+ import { D as ne } from "./DetailsModal-B2XBWR7w.js";
9
9
  import { m as kt } from "./proxy-BsxtcZKa.js";
10
- import { u as re } from "./use-in-view-KOXq5Kmc.js";
11
- import { A as ae } from "./index-Cv_5q6Rb.js";
12
- import { c as le } from "./checkIfNullOrUndefined-DmfiKkNw.js";
13
- import { GraphFooter as se } from "./GraphFooter.js";
14
- import { GraphHeader as ce } from "./GraphHeader.js";
15
- import { ColorLegendWithMouseOver as ue } from "./ColorLegendWithMouseOver.js";
16
- import { E as de } from "./EmptyState-CaxXCkiN.js";
17
- import { u as Ft } from "./uniqBy-BHy4I8PK.js";
18
- import { a as fe, G as he } from "./GraphContainer-B8ZqOzKI.js";
19
- function pe(e) {
10
+ import { u as ie } from "./use-in-view-KOXq5Kmc.js";
11
+ import { A as oe } from "./index-Cv_5q6Rb.js";
12
+ import { c as re } from "./checkIfNullOrUndefined-DmfiKkNw.js";
13
+ import { GraphFooter as ae } from "./GraphFooter.js";
14
+ import { GraphHeader as le } from "./GraphHeader.js";
15
+ import { ColorLegendWithMouseOver as se } from "./ColorLegendWithMouseOver.js";
16
+ import { E as ce } from "./EmptyState-CaxXCkiN.js";
17
+ import { u as Wt } from "./uniqBy-BHy4I8PK.js";
18
+ import { a as ue, G as de } from "./GraphContainer-B8ZqOzKI.js";
19
+ function fe(e) {
20
20
  var t = 0, n = e.children, i = n && n.length;
21
21
  if (!i) t = 1;
22
22
  else for (; --i >= 0; ) t += n[i].value;
23
23
  e.value = t;
24
24
  }
25
- function ge() {
26
- return this.eachAfter(pe);
25
+ function he() {
26
+ return this.eachAfter(fe);
27
27
  }
28
- function me(e, t) {
28
+ function pe(e, t) {
29
29
  let n = -1;
30
30
  for (const i of this)
31
31
  e.call(t, i, ++n, this);
32
32
  return this;
33
33
  }
34
- function ve(e, t) {
34
+ function ge(e, t) {
35
35
  for (var n = this, i = [n], r, l, a = -1; n = i.pop(); )
36
36
  if (e.call(t, n, ++a, this), r = n.children)
37
37
  for (l = r.length - 1; l >= 0; --l)
38
38
  i.push(r[l]);
39
39
  return this;
40
40
  }
41
- function ye(e, t) {
41
+ function me(e, t) {
42
42
  for (var n = this, i = [n], r = [], l, a, d, g = -1; n = i.pop(); )
43
43
  if (r.push(n), l = n.children)
44
44
  for (a = 0, d = l.length; a < d; ++a)
@@ -47,58 +47,58 @@ function ye(e, t) {
47
47
  e.call(t, n, ++g, this);
48
48
  return this;
49
49
  }
50
- function we(e, t) {
50
+ function ve(e, t) {
51
51
  let n = -1;
52
52
  for (const i of this)
53
53
  if (e.call(t, i, ++n, this))
54
54
  return i;
55
55
  }
56
- function xe(e) {
56
+ function ye(e) {
57
57
  return this.eachAfter(function(t) {
58
58
  for (var n = +e(t.data) || 0, i = t.children, r = i && i.length; --r >= 0; ) n += i[r].value;
59
59
  t.value = n;
60
60
  });
61
61
  }
62
- function be(e) {
62
+ function we(e) {
63
63
  return this.eachBefore(function(t) {
64
64
  t.children && t.children.sort(e);
65
65
  });
66
66
  }
67
- function Me(e) {
68
- for (var t = this, n = Oe(t, e), i = [t]; t !== n; )
67
+ function xe(e) {
68
+ for (var t = this, n = be(t, e), i = [t]; t !== n; )
69
69
  t = t.parent, i.push(t);
70
70
  for (var r = i.length; e !== n; )
71
71
  i.splice(r, 0, e), e = e.parent;
72
72
  return i;
73
73
  }
74
- function Oe(e, t) {
74
+ function be(e, t) {
75
75
  if (e === t) return e;
76
76
  var n = e.ancestors(), i = t.ancestors(), r = null;
77
77
  for (e = n.pop(), t = i.pop(); e === t; )
78
78
  r = e, e = n.pop(), t = i.pop();
79
79
  return r;
80
80
  }
81
- function Ce() {
81
+ function Me() {
82
82
  for (var e = this, t = [e]; e = e.parent; )
83
83
  t.push(e);
84
84
  return t;
85
85
  }
86
- function je() {
86
+ function Oe() {
87
87
  return Array.from(this);
88
88
  }
89
- function De() {
89
+ function Ce() {
90
90
  var e = [];
91
91
  return this.eachBefore(function(t) {
92
92
  t.children || e.push(t);
93
93
  }), e;
94
94
  }
95
- function ke() {
95
+ function je() {
96
96
  var e = this, t = [];
97
97
  return e.each(function(n) {
98
98
  n !== e && t.push({ source: n.parent, target: n });
99
99
  }), t;
100
100
  }
101
- function* Ie() {
101
+ function* De() {
102
102
  var e = this, t, n = [e], i, r, l;
103
103
  do
104
104
  for (t = n.reverse(), n = []; e = t.pop(); )
@@ -107,27 +107,27 @@ function* Ie() {
107
107
  n.push(i[r]);
108
108
  while (n.length);
109
109
  }
110
- function Ut(e, t) {
111
- e instanceof Map ? (e = [void 0, e], t === void 0 && (t = Ne)) : t === void 0 && (t = Be);
110
+ function Yt(e, t) {
111
+ e instanceof Map ? (e = [void 0, e], t === void 0 && (t = Ve)) : t === void 0 && (t = Ie);
112
112
  for (var n = new bt(e), i, r = [n], l, a, d, g; i = r.pop(); )
113
113
  if ((a = t(i.data)) && (g = (a = Array.from(a)).length))
114
114
  for (i.children = a, d = g - 1; d >= 0; --d)
115
115
  r.push(l = a[d] = new bt(a[d])), l.parent = i, l.depth = i.depth + 1;
116
- return n.eachBefore(Zt);
116
+ return n.eachBefore(Kt);
117
117
  }
118
- function Ve() {
119
- return Ut(this).eachBefore(Se);
118
+ function ke() {
119
+ return Yt(this).eachBefore(Be);
120
120
  }
121
- function Be(e) {
121
+ function Ie(e) {
122
122
  return e.children;
123
123
  }
124
- function Ne(e) {
124
+ function Ve(e) {
125
125
  return Array.isArray(e) ? e[1] : null;
126
126
  }
127
- function Se(e) {
127
+ function Be(e) {
128
128
  e.data.value !== void 0 && (e.value = e.data.value), e.data = e.data.data;
129
129
  }
130
- function Zt(e) {
130
+ function Kt(e) {
131
131
  var t = 0;
132
132
  do
133
133
  e.height = t;
@@ -136,27 +136,27 @@ function Zt(e) {
136
136
  function bt(e) {
137
137
  this.data = e, this.depth = this.height = 0, this.parent = null;
138
138
  }
139
- bt.prototype = Ut.prototype = {
139
+ bt.prototype = Yt.prototype = {
140
140
  constructor: bt,
141
- count: ge,
142
- each: me,
143
- eachAfter: ye,
144
- eachBefore: ve,
145
- find: we,
146
- sum: xe,
147
- sort: be,
148
- path: Me,
149
- ancestors: Ce,
150
- descendants: je,
151
- leaves: De,
152
- links: ke,
153
- copy: Ve,
154
- [Symbol.iterator]: Ie
141
+ count: he,
142
+ each: pe,
143
+ eachAfter: me,
144
+ eachBefore: ge,
145
+ find: ve,
146
+ sum: ye,
147
+ sort: we,
148
+ path: xe,
149
+ ancestors: Me,
150
+ descendants: Oe,
151
+ leaves: Ce,
152
+ links: je,
153
+ copy: ke,
154
+ [Symbol.iterator]: De
155
155
  };
156
- function Lt(e) {
157
- return e == null ? null : Jt(e);
156
+ function At(e) {
157
+ return e == null ? null : Ut(e);
158
158
  }
159
- function Jt(e) {
159
+ function Ut(e) {
160
160
  if (typeof e != "function") throw new Error();
161
161
  return e;
162
162
  }
@@ -168,36 +168,36 @@ function xt(e) {
168
168
  return e;
169
169
  };
170
170
  }
171
- function $e(e) {
171
+ function Ne(e) {
172
172
  e.x0 = Math.round(e.x0), e.y0 = Math.round(e.y0), e.x1 = Math.round(e.x1), e.y1 = Math.round(e.y1);
173
173
  }
174
- function Ae(e, t, n, i, r) {
174
+ function Se(e, t, n, i, r) {
175
175
  for (var l = e.children, a, d = -1, g = l.length, y = e.value && (i - t) / e.value; ++d < g; )
176
176
  a = l[d], a.y0 = n, a.y1 = r, a.x0 = t, a.x1 = t += a.value * y;
177
177
  }
178
- var Ee = { depth: -1 }, Xt = {}, Tt = {};
179
- function Le(e) {
178
+ var $e = { depth: -1 }, qt = {}, Et = {};
179
+ function Ae(e) {
180
180
  return e.id;
181
181
  }
182
- function Te(e) {
182
+ function Ee(e) {
183
183
  return e.parentId;
184
184
  }
185
- function ze() {
186
- var e = Le, t = Te, n;
185
+ function Le() {
186
+ var e = Ae, t = Ee, n;
187
187
  function i(r) {
188
188
  var l = Array.from(r), a = e, d = t, g, y, c, v, o, f, u, m, h = /* @__PURE__ */ new Map();
189
189
  if (n != null) {
190
- const p = l.map((O, x) => Re(n(O, x, r))), C = p.map(Yt), k = new Set(p).add("");
190
+ const p = l.map((O, x) => Te(n(O, x, r))), C = p.map(Ft), k = new Set(p).add("");
191
191
  for (const O of C)
192
- k.has(O) || (k.add(O), p.push(O), C.push(Yt(O)), l.push(Tt));
192
+ k.has(O) || (k.add(O), p.push(O), C.push(Ft(O)), l.push(Et));
193
193
  a = (O, x) => p[x], d = (O, x) => C[x];
194
194
  }
195
195
  for (c = 0, g = l.length; c < g; ++c)
196
- y = l[c], f = l[c] = new bt(y), (u = a(y, c, r)) != null && (u += "") && (m = f.id = u, h.set(m, h.has(m) ? Xt : f)), (u = d(y, c, r)) != null && (u += "") && (f.parent = u);
196
+ y = l[c], f = l[c] = new bt(y), (u = a(y, c, r)) != null && (u += "") && (m = f.id = u, h.set(m, h.has(m) ? qt : f)), (u = d(y, c, r)) != null && (u += "") && (f.parent = u);
197
197
  for (c = 0; c < g; ++c)
198
198
  if (f = l[c], u = f.parent) {
199
199
  if (o = h.get(u), !o) throw new Error("missing: " + u);
200
- if (o === Xt) throw new Error("ambiguous: " + u);
200
+ if (o === qt) throw new Error("ambiguous: " + u);
201
201
  o.children ? o.children.push(f) : o.children = [f], f.parent = o;
202
202
  } else {
203
203
  if (v) throw new Error("multiple roots");
@@ -205,36 +205,36 @@ function ze() {
205
205
  }
206
206
  if (!v) throw new Error("no root");
207
207
  if (n != null) {
208
- for (; v.data === Tt && v.children.length === 1; )
208
+ for (; v.data === Et && v.children.length === 1; )
209
209
  v = v.children[0], --g;
210
- for (let p = l.length - 1; p >= 0 && (f = l[p], f.data === Tt); --p)
210
+ for (let p = l.length - 1; p >= 0 && (f = l[p], f.data === Et); --p)
211
211
  f.data = null;
212
212
  }
213
- if (v.parent = Ee, v.eachBefore(function(p) {
213
+ if (v.parent = $e, v.eachBefore(function(p) {
214
214
  p.depth = p.parent.depth + 1, --g;
215
- }).eachBefore(Zt), v.parent = null, g > 0) throw new Error("cycle");
215
+ }).eachBefore(Kt), v.parent = null, g > 0) throw new Error("cycle");
216
216
  return v;
217
217
  }
218
218
  return i.id = function(r) {
219
- return arguments.length ? (e = Lt(r), i) : e;
219
+ return arguments.length ? (e = At(r), i) : e;
220
220
  }, i.parentId = function(r) {
221
- return arguments.length ? (t = Lt(r), i) : t;
221
+ return arguments.length ? (t = At(r), i) : t;
222
222
  }, i.path = function(r) {
223
- return arguments.length ? (n = Lt(r), i) : n;
223
+ return arguments.length ? (n = At(r), i) : n;
224
224
  }, i;
225
225
  }
226
- function Re(e) {
226
+ function Te(e) {
227
227
  e = `${e}`;
228
228
  let t = e.length;
229
- return Rt(e, t - 1) && !Rt(e, t - 2) && (e = e.slice(0, -1)), e[0] === "/" ? e : `/${e}`;
229
+ return Tt(e, t - 1) && !Tt(e, t - 2) && (e = e.slice(0, -1)), e[0] === "/" ? e : `/${e}`;
230
230
  }
231
- function Yt(e) {
231
+ function Ft(e) {
232
232
  let t = e.length;
233
233
  if (t < 2) return "";
234
- for (; --t > 1 && !Rt(e, t); ) ;
234
+ for (; --t > 1 && !Tt(e, t); ) ;
235
235
  return e.slice(0, t);
236
236
  }
237
- function Rt(e, t) {
237
+ function Tt(e, t) {
238
238
  if (e[t] === "/") {
239
239
  let n = 0;
240
240
  for (; t > 0 && e[--t] === "\\"; ) ++n;
@@ -242,12 +242,12 @@ function Rt(e, t) {
242
242
  }
243
243
  return !1;
244
244
  }
245
- function Pe(e, t, n, i, r) {
245
+ function ze(e, t, n, i, r) {
246
246
  for (var l = e.children, a, d = -1, g = l.length, y = e.value && (r - n) / e.value; ++d < g; )
247
247
  a = l[d], a.x0 = t, a.x1 = i, a.y0 = n, a.y1 = n += a.value * y;
248
248
  }
249
- var He = (1 + Math.sqrt(5)) / 2;
250
- function Ge(e, t, n, i, r, l) {
249
+ var Re = (1 + Math.sqrt(5)) / 2;
250
+ function He(e, t, n, i, r, l) {
251
251
  for (var a = [], d = t.children, g, y, c = 0, v = 0, o = d.length, f, u, m = t.value, h, p, C, k, O, x, j; c < o; ) {
252
252
  f = r - n, u = l - i;
253
253
  do
@@ -260,22 +260,22 @@ function Ge(e, t, n, i, r, l) {
260
260
  }
261
261
  O = k;
262
262
  }
263
- a.push(g = { value: h, dice: f < u, children: d.slice(c, v) }), g.dice ? Ae(g, n, i, r, m ? i += u * h / m : l) : Pe(g, n, i, m ? n += f * h / m : r, l), m -= h, c = v;
263
+ a.push(g = { value: h, dice: f < u, children: d.slice(c, v) }), g.dice ? Se(g, n, i, r, m ? i += u * h / m : l) : ze(g, n, i, m ? n += f * h / m : r, l), m -= h, c = v;
264
264
  }
265
265
  return a;
266
266
  }
267
- const We = (function e(t) {
267
+ const Pe = (function e(t) {
268
268
  function n(i, r, l, a, d) {
269
- Ge(t, i, r, l, a, d);
269
+ He(t, i, r, l, a, d);
270
270
  }
271
271
  return n.ratio = function(i) {
272
272
  return e((i = +i) > 1 ? i : 1);
273
273
  }, n;
274
- })(He);
275
- function qe() {
276
- var e = We, t = !1, n = 1, i = 1, r = [0], l = wt, a = wt, d = wt, g = wt, y = wt;
274
+ })(Re);
275
+ function Ge() {
276
+ var e = Pe, t = !1, n = 1, i = 1, r = [0], l = wt, a = wt, d = wt, g = wt, y = wt;
277
277
  function c(o) {
278
- return o.x0 = o.y0 = 0, o.x1 = n, o.y1 = i, o.eachBefore(v), r = [0], t && o.eachBefore($e), o;
278
+ return o.x0 = o.y0 = 0, o.x1 = n, o.y1 = i, o.eachBefore(v), r = [0], t && o.eachBefore(Ne), o;
279
279
  }
280
280
  function v(o) {
281
281
  var f = r[o.depth], u = o.x0 + f, m = o.y0 + f, h = o.x1 - f, p = o.y1 - f;
@@ -286,7 +286,7 @@ function qe() {
286
286
  }, c.size = function(o) {
287
287
  return arguments.length ? (n = +o[0], i = +o[1], c) : [n, i];
288
288
  }, c.tile = function(o) {
289
- return arguments.length ? (e = Jt(o), c) : e;
289
+ return arguments.length ? (e = Ut(o), c) : e;
290
290
  }, c.padding = function(o) {
291
291
  return arguments.length ? c.paddingInner(o).paddingOuter(o) : c.paddingInner();
292
292
  }, c.paddingInner = function(o) {
@@ -303,8 +303,8 @@ function qe() {
303
303
  return arguments.length ? (y = typeof o == "function" ? o : xt(+o), c) : y;
304
304
  }, c;
305
305
  }
306
- function Fe(e) {
307
- const t = Kt.c(74), {
306
+ function We(e) {
307
+ const t = Xt.c(74), {
308
308
  data: n,
309
309
  colors: i,
310
310
  leftMargin: r,
@@ -326,19 +326,19 @@ function Fe(e) {
326
326
  resetSelectionOnDoubleClick: O,
327
327
  detailsOnClick: x,
328
328
  language: j,
329
- styles: B,
329
+ styles: N,
330
330
  classNames: I,
331
331
  animate: D,
332
- dimmedOpacity: U,
333
- precision: Z,
332
+ dimmedOpacity: Y,
333
+ precision: Q,
334
334
  locale: _
335
- } = e, vt = zt(null);
335
+ } = e, yt = Lt(null);
336
336
  let tt;
337
337
  t[0] !== D.amount || t[1] !== D.once ? (tt = {
338
338
  once: D.once,
339
339
  amount: D.amount
340
340
  }, t[0] = D.amount, t[1] = D.once, t[2] = tt) : tt = t[2];
341
- const J = re(vt, tt), [et, lt] = at(void 0), [L, nt] = at(void 0), [it, ot] = at(void 0), [b, w] = at(void 0);
341
+ const U = ie(yt, tt), [et, lt] = at(void 0), [E, nt] = at(void 0), [it, ot] = at(void 0), [b, w] = at(void 0);
342
342
  let rt;
343
343
  t[3] !== c || t[4] !== r || t[5] !== g || t[6] !== y ? (rt = {
344
344
  top: y,
@@ -347,31 +347,31 @@ function Fe(e) {
347
347
  right: g
348
348
  }, t[3] = c, t[4] = r, t[5] = g, t[6] = y, t[7] = rt) : rt = t[7];
349
349
  const V = rt, st = l - V.left - V.right, ct = a - V.top - V.bottom;
350
- let T, z, R, P, H, G, W, q, F;
351
- if (t[8] !== D.duration || t[9] !== I?.graphObjectValues || t[10] !== d || t[11] !== i || t[12] !== n || t[13] !== x || t[14] !== U || t[15] !== ct || t[16] !== st || t[17] !== a || t[18] !== C || t[19] !== J || t[20] !== j || t[21] !== _ || t[22] !== V.left || t[23] !== V.top || t[24] !== L || t[25] !== k || t[26] !== f || t[27] !== Z || t[28] !== p || t[29] !== O || t[30] !== u || t[31] !== v || t[32] !== m || t[33] !== B?.graphObjectValues || t[34] !== h || t[35] !== l) {
352
- const yt = [{
350
+ let L, T, z, R, H, P, G, W, q;
351
+ if (t[8] !== D.duration || t[9] !== I?.graphObjectValues || t[10] !== d || t[11] !== i || t[12] !== n || t[13] !== x || t[14] !== Y || t[15] !== ct || t[16] !== st || t[17] !== a || t[18] !== C || t[19] !== U || t[20] !== j || t[21] !== _ || t[22] !== V.left || t[23] !== V.top || t[24] !== E || t[25] !== k || t[26] !== f || t[27] !== Q || t[28] !== p || t[29] !== O || t[30] !== u || t[31] !== v || t[32] !== m || t[33] !== N?.graphObjectValues || t[34] !== h || t[35] !== l) {
352
+ const A = [{
353
353
  id: "root",
354
354
  parent: void 0,
355
355
  value: void 0,
356
356
  data: void 0
357
- }, ...n.map(tn)], ut = ze().id(_e).parentId(Qe)(yt);
358
- ut.sum(Je);
359
- const E = qe().size([st, ct]).padding(2)(ut);
360
- z = kt.svg, H = `${l}px`, G = `${a}px`, W = `0 0 ${l} ${a}`, q = "ltr", F = vt, P = `translate(${V.left},${V.top})`, T = ae, R = E.children?.map((s) => /* @__PURE__ */ M.jsxs(kt.g, { className: "undp-viz-g-with-hover", variants: {
357
+ }, ...n.map(Qe)], ut = Le().id(Je).parentId(Ze)(A);
358
+ ut.sum(Ue);
359
+ const dt = Ge().size([st, ct]).padding(2)(ut);
360
+ T = kt.svg, H = `${l}px`, P = `${a}px`, G = `0 0 ${l} ${a}`, W = "ltr", q = yt, R = `translate(${V.left},${V.top})`, L = oe, z = dt.children?.map((s) => /* @__PURE__ */ M.jsxs(kt.g, { className: "undp-viz-g-with-hover", variants: {
361
361
  initial: {
362
362
  opacity: 0,
363
363
  x: s.x0,
364
364
  y: s.y0
365
365
  },
366
366
  whileInView: {
367
- opacity: u ? s.data.data.color && i[d.indexOf(s.data.data.color)] === u ? 1 : U : C.length !== 0 ? C.indexOf(s.data.id) !== -1 ? 0.85 : U : 0.85,
367
+ opacity: u ? s.data.data.color && i[d.indexOf(s.data.data.color)] === u ? 1 : Y : C ? C.indexOf(s.data.id) !== -1 ? 0.85 : Y : 0.85,
368
368
  x: s.x0,
369
369
  y: s.y0,
370
370
  transition: {
371
371
  duration: D.duration
372
372
  }
373
373
  }
374
- }, initial: "initial", animate: J ? "whileInView" : "initial", exit: {
374
+ }, initial: "initial", animate: U ? "whileInView" : "initial", exit: {
375
375
  opacity: 0,
376
376
  transition: {
377
377
  duration: D.duration
@@ -379,7 +379,7 @@ function Fe(e) {
379
379
  }, onMouseEnter: (K) => {
380
380
  lt(s.data.data), w(K.clientY), ot(K.clientX), f?.(s.data.data);
381
381
  }, onClick: () => {
382
- (k || x) && (L === s.data.id && O ? (nt(void 0), k?.(void 0)) : (nt(s.data.id), k?.(s.data.data)));
382
+ (k || x) && (E === s.data.id && O ? (nt(void 0), k?.(void 0)) : (nt(s.data.id), k?.(s.data.data)));
383
383
  }, onMouseMove: (K) => {
384
384
  lt(s.data.data), w(K.clientY), ot(K.clientX);
385
385
  }, onMouseLeave: () => {
@@ -396,17 +396,17 @@ function Fe(e) {
396
396
  initial: {
397
397
  width: 0,
398
398
  height: 0,
399
- fill: n.filter(Ze).length === 0 ? i[0] : s.data.data.color ? i[d.indexOf(s.data.data.color)] : Q.gray
399
+ fill: n.filter(Ke).length === 0 ? i[0] : s.data.data.color ? i[d.indexOf(s.data.data.color)] : J.gray
400
400
  },
401
401
  whileInView: {
402
402
  width: s.x1 - s.x0,
403
403
  height: s.y1 - s.y0,
404
- fill: n.filter(Ue).length === 0 ? i[0] : s.data.data.color ? i[d.indexOf(s.data.data.color)] : Q.gray,
404
+ fill: n.filter(Ye).length === 0 ? i[0] : s.data.data.color ? i[d.indexOf(s.data.data.color)] : J.gray,
405
405
  transition: {
406
406
  duration: D.duration
407
407
  }
408
408
  }
409
- }, initial: "initial", animate: J ? "whileInView" : "initial" }),
409
+ }, initial: "initial", animate: U ? "whileInView" : "initial" }),
410
410
  s.x1 - s.x0 > 50 && s.y1 - s.y0 > 25 && (v || m) ? /* @__PURE__ */ M.jsx(kt.g, { variants: {
411
411
  initial: {
412
412
  opacity: 0
@@ -417,46 +417,52 @@ function Fe(e) {
417
417
  duration: D.duration
418
418
  }
419
419
  }
420
- }, initial: "initial", animate: J ? "whileInView" : "initial", exit: {
420
+ }, initial: "initial", animate: U ? "whileInView" : "initial", exit: {
421
421
  opacity: 0,
422
422
  transition: {
423
423
  duration: D.duration
424
424
  }
425
425
  }, children: /* @__PURE__ */ M.jsx("foreignObject", { y: 0, x: 0, width: s.x1 - s.x0, height: s.y1 - s.y0, children: /* @__PURE__ */ M.jsxs("div", { className: "flex flex-col gap-0.5 p-2 w-full", style: {
426
- color: Et(n.filter(Ke).length === 0 ? i[0] : s.data.data.color ? i[d.indexOf(s.data.data.color)] : Q.gray)
426
+ color: $t(n.filter(Xe).length === 0 ? i[0] : s.data.data.color ? i[d.indexOf(s.data.data.color)] : J.gray)
427
427
  }, children: [
428
- v ? /* @__PURE__ */ M.jsx(qt, { marginBottom: "none", size: "sm", leading: "none", className: Wt("w-full treemap-label", j === "ar" || j === "he" ? "text-right" : "text-left", I?.graphObjectValues), style: {
428
+ v ? /* @__PURE__ */ M.jsx(Gt, { marginBottom: "none", size: "sm", leading: "none", className: Pt("w-full treemap-label", j === "ar" || j === "he" ? "text-right" : "text-left", I?.graphObjectValues), style: {
429
429
  WebkitLineClamp: s.y1 - s.y0 > 50 ? s.y1 - s.y0 > 100 ? s.y1 - s.y0 > 150 ? void 0 : 3 : 2 : 1,
430
430
  display: "-webkit-box",
431
431
  WebkitBoxOrient: "vertical",
432
432
  overflow: "hidden",
433
- color: Et(n.filter(Ye).length === 0 ? i[0] : s.data.data.color ? i[d.indexOf(s.data.data.color)] : Q.gray),
434
- ...B?.graphObjectValues || {}
433
+ color: $t(n.filter(Fe).length === 0 ? i[0] : s.data.data.color ? i[d.indexOf(s.data.data.color)] : J.gray),
434
+ ...N?.graphObjectValues || {}
435
435
  }, children: s.data.id }) : null,
436
- m ? /* @__PURE__ */ M.jsx(qt, { marginBottom: "none", size: "sm", leading: "none", className: Wt("w-full font-bold treemap-value", j === "ar" || j === "he" ? "text-right" : "text-left", I?.graphObjectValues), style: {
437
- color: Et(n.filter(Xe).length === 0 ? i[0] : s.data.data.color ? i[d.indexOf(s.data.data.color)] : Q.gray),
438
- ...B?.graphObjectValues || {}
439
- }, children: ie(s.data.value, void 0, Z, p, h, _) }) : null
436
+ m ? /* @__PURE__ */ M.jsx(Gt, { marginBottom: "none", size: "sm", leading: "none", className: Pt("w-full font-bold treemap-value", j === "ar" || j === "he" ? "text-right" : "text-left", I?.graphObjectValues), style: {
437
+ color: $t(n.filter(qe).length === 0 ? i[0] : s.data.data.color ? i[d.indexOf(s.data.data.color)] : J.gray),
438
+ ...N?.graphObjectValues || {}
439
+ }, children: ee(s.data.value, void 0, Q, p, h, _) }) : null
440
440
  ] }) }) }) : null
441
- ] }, s.data.id)), t[8] = D.duration, t[9] = I?.graphObjectValues, t[10] = d, t[11] = i, t[12] = n, t[13] = x, t[14] = U, t[15] = ct, t[16] = st, t[17] = a, t[18] = C, t[19] = J, t[20] = j, t[21] = _, t[22] = V.left, t[23] = V.top, t[24] = L, t[25] = k, t[26] = f, t[27] = Z, t[28] = p, t[29] = O, t[30] = u, t[31] = v, t[32] = m, t[33] = B?.graphObjectValues, t[34] = h, t[35] = l, t[36] = T, t[37] = z, t[38] = R, t[39] = P, t[40] = H, t[41] = G, t[42] = W, t[43] = q, t[44] = F;
441
+ ] }, s.data.id)), t[8] = D.duration, t[9] = I?.graphObjectValues, t[10] = d, t[11] = i, t[12] = n, t[13] = x, t[14] = Y, t[15] = ct, t[16] = st, t[17] = a, t[18] = C, t[19] = U, t[20] = j, t[21] = _, t[22] = V.left, t[23] = V.top, t[24] = E, t[25] = k, t[26] = f, t[27] = Q, t[28] = p, t[29] = O, t[30] = u, t[31] = v, t[32] = m, t[33] = N?.graphObjectValues, t[34] = h, t[35] = l, t[36] = L, t[37] = T, t[38] = z, t[39] = R, t[40] = H, t[41] = P, t[42] = G, t[43] = W, t[44] = q;
442
442
  } else
443
- T = t[36], z = t[37], R = t[38], P = t[39], H = t[40], G = t[41], W = t[42], q = t[43], F = t[44];
444
- let X;
445
- t[45] !== T || t[46] !== R ? (X = /* @__PURE__ */ M.jsx(T, { children: R }), t[45] = T, t[46] = R, t[47] = X) : X = t[47];
446
- let N;
447
- t[48] !== P || t[49] !== X ? (N = /* @__PURE__ */ M.jsx("g", { transform: P, children: X }), t[48] = P, t[49] = X, t[50] = N) : N = t[50];
448
- let Y;
449
- t[51] !== z || t[52] !== N || t[53] !== H || t[54] !== G || t[55] !== W || t[56] !== q || t[57] !== F ? (Y = /* @__PURE__ */ M.jsx(z, { width: H, height: G, viewBox: W, direction: q, ref: F, children: N }), t[51] = z, t[52] = N, t[53] = H, t[54] = G, t[55] = W, t[56] = q, t[57] = F, t[58] = Y) : Y = t[58];
443
+ L = t[36], T = t[37], z = t[38], R = t[39], H = t[40], P = t[41], G = t[42], W = t[43], q = t[44];
444
+ let F;
445
+ t[45] !== L || t[46] !== z ? (F = /* @__PURE__ */ M.jsx(L, { children: z }), t[45] = L, t[46] = z, t[47] = F) : F = t[47];
450
446
  let S;
451
- t[59] !== I?.tooltip || t[60] !== it || t[61] !== b || t[62] !== et || t[63] !== B?.tooltip || t[64] !== o ? (S = et && o && it && b ? /* @__PURE__ */ M.jsx(ne, { data: et, body: o, xPos: it, yPos: b, backgroundStyle: B?.tooltip, className: I?.tooltip }) : null, t[59] = I?.tooltip, t[60] = it, t[61] = b, t[62] = et, t[63] = B?.tooltip, t[64] = o, t[65] = S) : S = t[65];
447
+ t[48] !== R || t[49] !== F ? (S = /* @__PURE__ */ M.jsx("g", { transform: R, children: F }), t[48] = R, t[49] = F, t[50] = S) : S = t[50];
452
448
  let $;
453
- t[66] !== I?.modal || t[67] !== x || t[68] !== L ? ($ = x && L !== void 0 ? /* @__PURE__ */ M.jsx(oe, { body: x, data: L, setData: nt, className: I?.modal }) : null, t[66] = I?.modal, t[67] = x, t[68] = L, t[69] = $) : $ = t[69];
454
- let A;
455
- return t[70] !== Y || t[71] !== S || t[72] !== $ ? (A = /* @__PURE__ */ M.jsxs(M.Fragment, { children: [
456
- Y,
457
- S,
458
- $
459
- ] }), t[70] = Y, t[71] = S, t[72] = $, t[73] = A) : A = t[73], A;
449
+ t[51] !== T || t[52] !== S || t[53] !== H || t[54] !== P || t[55] !== G || t[56] !== W || t[57] !== q ? ($ = /* @__PURE__ */ M.jsx(T, { width: H, height: P, viewBox: G, direction: W, ref: q, children: S }), t[51] = T, t[52] = S, t[53] = H, t[54] = P, t[55] = G, t[56] = W, t[57] = q, t[58] = $) : $ = t[58];
450
+ let B;
451
+ t[59] !== I?.tooltip || t[60] !== it || t[61] !== b || t[62] !== et || t[63] !== N?.tooltip || t[64] !== o ? (B = et && o && it && b ? /* @__PURE__ */ M.jsx(te, { data: et, body: o, xPos: it, yPos: b, backgroundStyle: N?.tooltip, className: I?.tooltip }) : null, t[59] = I?.tooltip, t[60] = it, t[61] = b, t[62] = et, t[63] = N?.tooltip, t[64] = o, t[65] = B) : B = t[65];
452
+ let X;
453
+ t[66] !== I?.modal || t[67] !== x || t[68] !== E ? (X = x && E !== void 0 ? /* @__PURE__ */ M.jsx(ne, { body: x, data: E, setData: nt, className: I?.modal }) : null, t[66] = I?.modal, t[67] = x, t[68] = E, t[69] = X) : X = t[69];
454
+ let Z;
455
+ return t[70] !== $ || t[71] !== B || t[72] !== X ? (Z = /* @__PURE__ */ M.jsxs(M.Fragment, { children: [
456
+ $,
457
+ B,
458
+ X
459
+ ] }), t[70] = $, t[71] = B, t[72] = X, t[73] = Z) : Z = t[73], Z;
460
+ }
461
+ function qe(e) {
462
+ return e.color;
463
+ }
464
+ function Fe(e) {
465
+ return e.color;
460
466
  }
461
467
  function Xe(e) {
462
468
  return e.color;
@@ -468,21 +474,15 @@ function Ke(e) {
468
474
  return e.color;
469
475
  }
470
476
  function Ue(e) {
471
- return e.color;
472
- }
473
- function Ze(e) {
474
- return e.color;
475
- }
476
- function Je(e) {
477
477
  return e.value;
478
478
  }
479
- function Qe(e) {
479
+ function Ze(e) {
480
480
  return e.parent;
481
481
  }
482
- function _e(e) {
482
+ function Je(e) {
483
483
  return e.id;
484
484
  }
485
- function tn(e) {
485
+ function Qe(e) {
486
486
  return {
487
487
  id: e.label,
488
488
  value: e.size,
@@ -490,8 +490,8 @@ function tn(e) {
490
490
  data: e
491
491
  };
492
492
  }
493
- function Vn(e) {
494
- const t = Kt.c(84), {
493
+ function kn(e) {
494
+ const t = Xt.c(82), {
495
495
  data: n,
496
496
  graphTitle: i,
497
497
  colors: r,
@@ -513,18 +513,18 @@ function Vn(e) {
513
513
  showLabels: O,
514
514
  relativeHeight: x,
515
515
  tooltip: j,
516
- onSeriesMouseOver: B,
516
+ onSeriesMouseOver: N,
517
517
  showColorScale: I,
518
518
  showValues: D,
519
- graphID: U,
520
- highlightedDataPoints: Z,
519
+ graphID: Y,
520
+ highlightedDataPoints: Q,
521
521
  onSeriesMouseClick: _,
522
- graphDownload: vt,
522
+ graphDownload: yt,
523
523
  dataDownload: tt,
524
- language: J,
524
+ language: U,
525
525
  showNAColor: et,
526
526
  minHeight: lt,
527
- theme: L,
527
+ theme: E,
528
528
  ariaLabel: nt,
529
529
  resetSelectionOnDoubleClick: it,
530
530
  detailsOnClick: ot,
@@ -534,89 +534,86 @@ function Vn(e) {
534
534
  dimmedOpacity: V,
535
535
  precision: st,
536
536
  locale: ct
537
- } = e, T = l === void 0 ? "" : l, z = d === void 0 ? "" : d, R = y === void 0 ? 0 : y, P = c === void 0 ? 0 : c, H = v === void 0 ? 0 : v, G = o === void 0 ? 0 : o, W = k === void 0 ? !1 : k, q = O === void 0 ? !0 : O, F = I === void 0 ? !0 : I, X = D === void 0 ? !0 : D;
538
- let N;
539
- t[0] !== Z ? (N = Z === void 0 ? [] : Z, t[0] = Z, t[1] = N) : N = t[1];
540
- const Y = N, S = vt === void 0 ? !1 : vt, $ = tt === void 0 ? !1 : tt, A = J === void 0 ? "en" : J, yt = et === void 0 ? !0 : et, ut = lt === void 0 ? 0 : lt, E = L === void 0 ? "light" : L, s = it === void 0 ? !0 : it, K = rt === void 0 ? !1 : rt, It = V === void 0 ? 0.3 : V, Vt = st === void 0 ? 2 : st, Bt = ct === void 0 ? "en" : ct, [Mt, Qt] = at(0), [Ot, _t] = at(0), [Nt, te] = at(void 0), St = zt(null), Pt = zt(null);
537
+ } = e, L = l === void 0 ? "" : l, T = d === void 0 ? "" : d, z = y === void 0 ? 0 : y, R = c === void 0 ? 0 : c, H = v === void 0 ? 0 : v, P = o === void 0 ? 0 : o, G = k === void 0 ? !1 : k, W = O === void 0 ? !0 : O, q = I === void 0 ? !0 : I, F = D === void 0 ? !0 : D, S = yt === void 0 ? !1 : yt, $ = tt === void 0 ? !1 : tt, B = U === void 0 ? "en" : U, X = et === void 0 ? !0 : et, Z = lt === void 0 ? 0 : lt, A = E === void 0 ? "light" : E, ut = it === void 0 ? !0 : it, dt = rt === void 0 ? !1 : rt, s = V === void 0 ? 0.3 : V, K = st === void 0 ? 2 : st, It = ct === void 0 ? "en" : ct, [Mt, Zt] = at(0), [Ot, Jt] = at(0), [Vt, Qt] = at(void 0), Bt = Lt(null), zt = Lt(null);
541
538
  let Ct, jt;
542
- t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ct = () => {
543
- const Ht = new ResizeObserver((Gt) => {
544
- Qt(Gt[0].target.clientWidth || 620), _t(Gt[0].target.clientHeight || 480);
539
+ t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ct = () => {
540
+ const Rt = new ResizeObserver((Ht) => {
541
+ Zt(Ht[0].target.clientWidth || 620), Jt(Ht[0].target.clientHeight || 480);
545
542
  });
546
- return St.current && Ht.observe(St.current), () => Ht.disconnect();
547
- }, jt = [], t[2] = Ct, t[3] = jt) : (Ct = t[2], jt = t[3]), ee(Ct, jt);
548
- const $t = w?.graphContainer, At = b?.graphContainer;
549
- let dt;
550
- t[4] !== w?.description || t[5] !== w?.title || t[6] !== n || t[7] !== $ || t[8] !== g || t[9] !== S || t[10] !== i || t[11] !== b?.description || t[12] !== b?.title || t[13] !== u ? (dt = i || g || S || $ ? /* @__PURE__ */ M.jsx(ce, { styles: {
543
+ return Bt.current && Rt.observe(Bt.current), () => Rt.disconnect();
544
+ }, jt = [], t[0] = Ct, t[1] = jt) : (Ct = t[0], jt = t[1]), _t(Ct, jt);
545
+ const Nt = w?.graphContainer, St = b?.graphContainer;
546
+ let ft;
547
+ t[2] !== w?.description || t[3] !== w?.title || t[4] !== n || t[5] !== $ || t[6] !== g || t[7] !== S || t[8] !== i || t[9] !== b?.description || t[10] !== b?.title || t[11] !== u ? (ft = i || g || S || $ ? /* @__PURE__ */ M.jsx(le, { styles: {
551
548
  title: b?.title,
552
549
  description: b?.description
553
550
  }, classNames: {
554
551
  title: w?.title,
555
552
  description: w?.description
556
- }, graphTitle: i, graphDescription: g, width: u, graphDownload: S ? Pt : void 0, dataDownload: $ ? n.map(un).filter(cn).length > 0 ? n.map(sn).filter(ln) : n.filter(an) : null }) : null, t[4] = w?.description, t[5] = w?.title, t[6] = n, t[7] = $, t[8] = g, t[9] = S, t[10] = i, t[11] = b?.description, t[12] = b?.title, t[13] = u, t[14] = dt) : dt = t[14];
557
- let ft;
558
- t[15] !== w?.colorLegend || t[16] !== h || t[17] !== p || t[18] !== r || t[19] !== n || t[20] !== F || t[21] !== yt || t[22] !== E || t[23] !== u ? (ft = F && n.filter(rn).length !== 0 && n.length > 0 ? /* @__PURE__ */ M.jsx(ue, { width: u, colorLegendTitle: p, colors: r || Q[E].categoricalColors.colors, colorDomain: h || Ft(n, "color", !0), setSelectedColor: te, showNAColor: yt, className: w?.colorLegend }) : null, t[15] = w?.colorLegend, t[16] = h, t[17] = p, t[18] = r, t[19] = n, t[20] = F, t[21] = yt, t[22] = E, t[23] = u, t[24] = ft) : ft = t[24];
553
+ }, graphTitle: i, graphDescription: g, width: u, graphDownload: S ? zt : void 0, dataDownload: $ ? n.map(sn).filter(ln).length > 0 ? n.map(an).filter(rn) : n.filter(on) : null }) : null, t[2] = w?.description, t[3] = w?.title, t[4] = n, t[5] = $, t[6] = g, t[7] = S, t[8] = i, t[9] = b?.description, t[10] = b?.title, t[11] = u, t[12] = ft) : ft = t[12];
559
554
  let ht;
560
- t[25] !== n.length ? (ht = n.length === 0 && /* @__PURE__ */ M.jsx(de, {}), t[25] = n.length, t[26] = ht) : ht = t[26];
555
+ t[13] !== w?.colorLegend || t[14] !== h || t[15] !== p || t[16] !== r || t[17] !== n || t[18] !== q || t[19] !== X || t[20] !== A || t[21] !== u ? (ht = q && n.filter(nn).length !== 0 && n.length > 0 ? /* @__PURE__ */ M.jsx(se, { width: u, colorLegendTitle: p, colors: r || J[A].categoricalColors.colors, colorDomain: h || Wt(n, "color", !0), setSelectedColor: Qt, showNAColor: X, className: w?.colorLegend }) : null, t[13] = w?.colorLegend, t[14] = h, t[15] = p, t[16] = r, t[17] = n, t[18] = q, t[19] = X, t[20] = A, t[21] = u, t[22] = ht) : ht = t[22];
561
556
  let pt;
562
- t[27] !== K || t[28] !== G || t[29] !== w || t[30] !== h || t[31] !== r || t[32] !== n || t[33] !== ot || t[34] !== It || t[35] !== Y || t[36] !== A || t[37] !== R || t[38] !== Bt || t[39] !== _ || t[40] !== B || t[41] !== Vt || t[42] !== z || t[43] !== s || t[44] !== P || t[45] !== Nt || t[46] !== q || t[47] !== X || t[48] !== b || t[49] !== T || t[50] !== Ot || t[51] !== Mt || t[52] !== E || t[53] !== j || t[54] !== H ? (pt = Mt && Ot && n.length > 0 ? /* @__PURE__ */ M.jsx(Fe, { data: n.filter(on), colors: n.filter(nn).length === 0 ? r ? [r] : [Q.primaryColors["blue-600"]] : r || Q[E].categoricalColors.colors, colorDomain: n.filter(en).length === 0 ? [] : h || Ft(n, "color", !0), width: Mt, height: Ot, leftMargin: R, rightMargin: P, topMargin: H, bottomMargin: G, showLabels: q, showValues: X, suffix: T, prefix: z, selectedColor: Nt, tooltip: j, onSeriesMouseOver: B, onSeriesMouseClick: _, highlightedDataPoints: Y, resetSelectionOnDoubleClick: s, detailsOnClick: ot, styles: b, classNames: w, language: A, animate: K === !0 ? {
557
+ t[23] !== n.length ? (pt = n.length === 0 && /* @__PURE__ */ M.jsx(ce, {}), t[23] = n.length, t[24] = pt) : pt = t[24];
558
+ let gt;
559
+ t[25] !== dt || t[26] !== P || t[27] !== w || t[28] !== h || t[29] !== r || t[30] !== n || t[31] !== ot || t[32] !== s || t[33] !== Q || t[34] !== B || t[35] !== z || t[36] !== It || t[37] !== _ || t[38] !== N || t[39] !== K || t[40] !== T || t[41] !== ut || t[42] !== R || t[43] !== Vt || t[44] !== W || t[45] !== F || t[46] !== b || t[47] !== L || t[48] !== Ot || t[49] !== Mt || t[50] !== A || t[51] !== j || t[52] !== H ? (gt = Mt && Ot && n.length > 0 ? /* @__PURE__ */ M.jsx(We, { data: n.filter(en), colors: n.filter(tn).length === 0 ? r ? [r] : [J.primaryColors["blue-600"]] : r || J[A].categoricalColors.colors, colorDomain: n.filter(_e).length === 0 ? [] : h || Wt(n, "color", !0), width: Mt, height: Ot, leftMargin: z, rightMargin: R, topMargin: H, bottomMargin: P, showLabels: W, showValues: F, suffix: L, prefix: T, selectedColor: Vt, tooltip: j, onSeriesMouseOver: N, onSeriesMouseClick: _, highlightedDataPoints: Q, resetSelectionOnDoubleClick: ut, detailsOnClick: ot, styles: b, classNames: w, language: B, animate: dt === !0 ? {
563
560
  duration: 0.5,
564
561
  once: !0,
565
562
  amount: 0.5
566
- } : K || {
563
+ } : dt || {
567
564
  duration: 0,
568
565
  once: !0,
569
566
  amount: 0
570
- }, dimmedOpacity: It, precision: Vt, locale: Bt }) : null, t[27] = K, t[28] = G, t[29] = w, t[30] = h, t[31] = r, t[32] = n, t[33] = ot, t[34] = It, t[35] = Y, t[36] = A, t[37] = R, t[38] = Bt, t[39] = _, t[40] = B, t[41] = Vt, t[42] = z, t[43] = s, t[44] = P, t[45] = Nt, t[46] = q, t[47] = X, t[48] = b, t[49] = T, t[50] = Ot, t[51] = Mt, t[52] = E, t[53] = j, t[54] = H, t[55] = pt) : pt = t[55];
571
- let gt;
572
- t[56] !== ht || t[57] !== pt ? (gt = /* @__PURE__ */ M.jsxs(fe, { ref: St, children: [
573
- ht,
574
- pt
575
- ] }), t[56] = ht, t[57] = pt, t[58] = gt) : gt = t[58];
567
+ }, dimmedOpacity: s, precision: K, locale: It }) : null, t[25] = dt, t[26] = P, t[27] = w, t[28] = h, t[29] = r, t[30] = n, t[31] = ot, t[32] = s, t[33] = Q, t[34] = B, t[35] = z, t[36] = It, t[37] = _, t[38] = N, t[39] = K, t[40] = T, t[41] = ut, t[42] = R, t[43] = Vt, t[44] = W, t[45] = F, t[46] = b, t[47] = L, t[48] = Ot, t[49] = Mt, t[50] = A, t[51] = j, t[52] = H, t[53] = gt) : gt = t[53];
576
568
  let mt;
577
- t[59] !== w?.footnote || t[60] !== w?.source || t[61] !== m || t[62] !== a || t[63] !== b?.footnote || t[64] !== b?.source || t[65] !== u ? (mt = a || m ? /* @__PURE__ */ M.jsx(se, { styles: {
569
+ t[54] !== pt || t[55] !== gt ? (mt = /* @__PURE__ */ M.jsxs(ue, { ref: Bt, children: [
570
+ pt,
571
+ gt
572
+ ] }), t[54] = pt, t[55] = gt, t[56] = mt) : mt = t[56];
573
+ let vt;
574
+ t[57] !== w?.footnote || t[58] !== w?.source || t[59] !== m || t[60] !== a || t[61] !== b?.footnote || t[62] !== b?.source || t[63] !== u ? (vt = a || m ? /* @__PURE__ */ M.jsx(ae, { styles: {
578
575
  footnote: b?.footnote,
579
576
  source: b?.source
580
577
  }, classNames: {
581
578
  footnote: w?.footnote,
582
579
  source: w?.source
583
- }, sources: a, footNote: m, width: u }) : null, t[59] = w?.footnote, t[60] = w?.source, t[61] = m, t[62] = a, t[63] = b?.footnote, t[64] = b?.source, t[65] = u, t[66] = mt) : mt = t[66];
580
+ }, sources: a, footNote: m, width: u }) : null, t[57] = w?.footnote, t[58] = w?.source, t[59] = m, t[60] = a, t[61] = b?.footnote, t[62] = b?.source, t[63] = u, t[64] = vt) : vt = t[64];
584
581
  let Dt;
585
- return t[67] !== nt || t[68] !== W || t[69] !== U || t[70] !== f || t[71] !== A || t[72] !== ut || t[73] !== C || t[74] !== x || t[75] !== $t || t[76] !== At || t[77] !== dt || t[78] !== ft || t[79] !== gt || t[80] !== mt || t[81] !== E || t[82] !== u ? (Dt = /* @__PURE__ */ M.jsxs(he, { className: $t, style: At, id: U, ref: Pt, "aria-label": nt, backgroundColor: W, theme: E, language: A, minHeight: ut, width: u, height: f, relativeHeight: x, padding: C, children: [
586
- dt,
582
+ return t[65] !== nt || t[66] !== G || t[67] !== Y || t[68] !== f || t[69] !== B || t[70] !== Z || t[71] !== C || t[72] !== x || t[73] !== Nt || t[74] !== St || t[75] !== ft || t[76] !== ht || t[77] !== mt || t[78] !== vt || t[79] !== A || t[80] !== u ? (Dt = /* @__PURE__ */ M.jsxs(de, { className: Nt, style: St, id: Y, ref: zt, "aria-label": nt, backgroundColor: G, theme: A, language: B, minHeight: Z, width: u, height: f, relativeHeight: x, padding: C, children: [
587
583
  ft,
588
- gt,
589
- mt
590
- ] }), t[67] = nt, t[68] = W, t[69] = U, t[70] = f, t[71] = A, t[72] = ut, t[73] = C, t[74] = x, t[75] = $t, t[76] = At, t[77] = dt, t[78] = ft, t[79] = gt, t[80] = mt, t[81] = E, t[82] = u, t[83] = Dt) : Dt = t[83], Dt;
584
+ ht,
585
+ mt,
586
+ vt
587
+ ] }), t[65] = nt, t[66] = G, t[67] = Y, t[68] = f, t[69] = B, t[70] = Z, t[71] = C, t[72] = x, t[73] = Nt, t[74] = St, t[75] = ft, t[76] = ht, t[77] = mt, t[78] = vt, t[79] = A, t[80] = u, t[81] = Dt) : Dt = t[81], Dt;
591
588
  }
592
- function en(e) {
589
+ function _e(e) {
593
590
  return e.color;
594
591
  }
595
- function nn(e) {
592
+ function tn(e) {
596
593
  return e.color;
597
594
  }
598
- function on(e) {
599
- return !le(e.size);
595
+ function en(e) {
596
+ return !re(e.size);
600
597
  }
601
- function rn(e) {
598
+ function nn(e) {
602
599
  return e.color;
603
600
  }
604
- function an(e) {
601
+ function on(e) {
605
602
  return e !== void 0;
606
603
  }
607
- function ln(e) {
604
+ function rn(e) {
608
605
  return e !== void 0;
609
606
  }
610
- function sn(e) {
607
+ function an(e) {
611
608
  return e.data;
612
609
  }
613
- function cn(e) {
610
+ function ln(e) {
614
611
  return e !== void 0;
615
612
  }
616
- function un(e) {
613
+ function sn(e) {
617
614
  return e.data;
618
615
  }
619
616
  export {
620
- Vn as TreeMapGraph
617
+ kn as TreeMapGraph
621
618
  };
622
619
  //# sourceMappingURL=TreeMapGraph.js.map