@undp/data-viz 2.0.9 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.d.ts +2 -0
  3. package/dist/AreaChart.js +4 -4
  4. package/dist/BarGraph.cjs +1 -1
  5. package/dist/BarGraph.cjs.map +1 -1
  6. package/dist/BarGraph.d.ts +2 -0
  7. package/dist/BarGraph.js +1699 -1577
  8. package/dist/BarGraph.js.map +1 -1
  9. package/dist/BasicStatCard.d.ts +2 -0
  10. package/dist/BeeSwarmChart.cjs +1 -1
  11. package/dist/BeeSwarmChart.cjs.map +1 -1
  12. package/dist/BeeSwarmChart.d.ts +2 -0
  13. package/dist/BeeSwarmChart.js +258 -267
  14. package/dist/BeeSwarmChart.js.map +1 -1
  15. package/dist/BiVariateChoroplethMap.cjs +1 -1
  16. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  17. package/dist/BiVariateChoroplethMap.d.ts +2 -0
  18. package/dist/BiVariateChoroplethMap.js +252 -245
  19. package/dist/BiVariateChoroplethMap.js.map +1 -1
  20. package/dist/BulletChart.cjs +1 -1
  21. package/dist/BulletChart.cjs.map +1 -1
  22. package/dist/BulletChart.d.ts +2 -0
  23. package/dist/BulletChart.js +566 -536
  24. package/dist/BulletChart.js.map +1 -1
  25. package/dist/ButterflyChart.cjs +1 -1
  26. package/dist/ButterflyChart.cjs.map +1 -1
  27. package/dist/ButterflyChart.d.ts +2 -0
  28. package/dist/ButterflyChart.js +388 -378
  29. package/dist/ButterflyChart.js.map +1 -1
  30. package/dist/ChoroplethMap.cjs +1 -1
  31. package/dist/ChoroplethMap.cjs.map +1 -1
  32. package/dist/ChoroplethMap.d.ts +2 -0
  33. package/dist/ChoroplethMap.js +297 -291
  34. package/dist/ChoroplethMap.js.map +1 -1
  35. package/dist/CirclePackingGraph.cjs +1 -1
  36. package/dist/CirclePackingGraph.d.ts +2 -0
  37. package/dist/CirclePackingGraph.js +1 -1
  38. package/dist/DataCards.d.ts +2 -0
  39. package/dist/DataCards.js +1 -1
  40. package/dist/DataTable.d.ts +2 -0
  41. package/dist/DetailsModal-0Ry5nXiC.js +32 -0
  42. package/dist/DetailsModal-0Ry5nXiC.js.map +1 -0
  43. package/dist/DetailsModal-BN0HDFlV.cjs +2 -0
  44. package/dist/DetailsModal-BN0HDFlV.cjs.map +1 -0
  45. package/dist/DifferenceLineChart.cjs +1 -1
  46. package/dist/DifferenceLineChart.d.ts +2 -0
  47. package/dist/DifferenceLineChart.js +4 -4
  48. package/dist/DonutChart.cjs +1 -1
  49. package/dist/DonutChart.cjs.map +1 -1
  50. package/dist/DonutChart.d.ts +2 -0
  51. package/dist/DonutChart.js +185 -190
  52. package/dist/DonutChart.js.map +1 -1
  53. package/dist/DotDensityMap.cjs +1 -1
  54. package/dist/DotDensityMap.cjs.map +1 -1
  55. package/dist/DotDensityMap.d.ts +2 -0
  56. package/dist/DotDensityMap.js +252 -244
  57. package/dist/DotDensityMap.js.map +1 -1
  58. package/dist/DualAxisLineChart.cjs +1 -1
  59. package/dist/DualAxisLineChart.d.ts +2 -0
  60. package/dist/DualAxisLineChart.js +4 -4
  61. package/dist/DumbbellChart.cjs +1 -1
  62. package/dist/DumbbellChart.cjs.map +1 -1
  63. package/dist/DumbbellChart.d.ts +2 -0
  64. package/dist/DumbbellChart.js +563 -525
  65. package/dist/DumbbellChart.js.map +1 -1
  66. package/dist/GeoHubCompareMaps.d.ts +2 -0
  67. package/dist/GeoHubMap.d.ts +2 -0
  68. package/dist/GeoHubMapWithLayerSelection.d.ts +2 -0
  69. package/dist/{GraphEl-BcKU0bG1.cjs → GraphEl-B16EYkko.cjs} +2 -2
  70. package/dist/{GraphEl-BcKU0bG1.cjs.map → GraphEl-B16EYkko.cjs.map} +1 -1
  71. package/dist/{GraphEl-CGq1EWRn.js → GraphEl-DEzobeOM.js} +3 -3
  72. package/dist/{GraphEl-CGq1EWRn.js.map → GraphEl-DEzobeOM.js.map} +1 -1
  73. package/dist/GriddedGraphs.cjs +1 -1
  74. package/dist/GriddedGraphs.cjs.map +1 -1
  75. package/dist/GriddedGraphs.d.ts +2 -0
  76. package/dist/GriddedGraphs.js +19 -19
  77. package/dist/GriddedGraphs.js.map +1 -1
  78. package/dist/GriddedGraphsFromConfig.d.ts +2 -0
  79. package/dist/HeatMap.cjs +1 -1
  80. package/dist/HeatMap.cjs.map +1 -1
  81. package/dist/HeatMap.d.ts +2 -0
  82. package/dist/HeatMap.js +112 -117
  83. package/dist/HeatMap.js.map +1 -1
  84. package/dist/Histogram.cjs +1 -1
  85. package/dist/Histogram.d.ts +2 -0
  86. package/dist/Histogram.js +3 -3
  87. package/dist/HybridMap.cjs +1 -1
  88. package/dist/HybridMap.cjs.map +1 -1
  89. package/dist/HybridMap.d.ts +2 -0
  90. package/dist/HybridMap.js +366 -359
  91. package/dist/HybridMap.js.map +1 -1
  92. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  93. package/dist/LineChartWithConfidenceInterval.d.ts +2 -0
  94. package/dist/LineChartWithConfidenceInterval.js +4 -4
  95. package/dist/{Modal-DGcuAHyK.js → Modal-bMQA6bL_.js} +5 -5
  96. package/dist/{Modal-DGcuAHyK.js.map → Modal-bMQA6bL_.js.map} +1 -1
  97. package/dist/MultiGraphDashboard.cjs +1 -1
  98. package/dist/MultiGraphDashboard.cjs.map +1 -1
  99. package/dist/MultiGraphDashboard.d.ts +2 -0
  100. package/dist/MultiGraphDashboard.js +10 -10
  101. package/dist/MultiGraphDashboard.js.map +1 -1
  102. package/dist/MultiGraphDashboardFromConfig.d.ts +2 -0
  103. package/dist/MultiGraphDashboardWideToLongFormat.d.ts +2 -0
  104. package/dist/MultiGraphDashboardWideToLongFormat.js +1 -1
  105. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +2 -0
  106. package/dist/MultiLineAltChart.cjs +1 -1
  107. package/dist/MultiLineAltChart.cjs.map +1 -1
  108. package/dist/MultiLineAltChart.d.ts +2 -0
  109. package/dist/MultiLineAltChart.js +453 -425
  110. package/dist/MultiLineAltChart.js.map +1 -1
  111. package/dist/MultiLineChart.cjs +1 -1
  112. package/dist/MultiLineChart.d.ts +2 -0
  113. package/dist/MultiLineChart.js +4 -4
  114. package/dist/ParetoChart.cjs +1 -1
  115. package/dist/ParetoChart.cjs.map +1 -1
  116. package/dist/ParetoChart.d.ts +2 -0
  117. package/dist/ParetoChart.js +188 -193
  118. package/dist/ParetoChart.js.map +1 -1
  119. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  120. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
  121. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +2 -0
  122. package/dist/PerformanceIntensiveMultiGraphDashboard.js +16 -16
  123. package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
  124. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +2 -0
  125. package/dist/PerformanceIntensiveScrollStory.d.ts +2 -0
  126. package/dist/RadarChart.cjs +1 -1
  127. package/dist/RadarChart.cjs.map +1 -1
  128. package/dist/RadarChart.d.ts +2 -0
  129. package/dist/RadarChart.js +158 -163
  130. package/dist/RadarChart.js.map +1 -1
  131. package/dist/SankeyChart.cjs +1 -1
  132. package/dist/SankeyChart.cjs.map +1 -1
  133. package/dist/SankeyChart.d.ts +2 -0
  134. package/dist/SankeyChart.js +172 -177
  135. package/dist/SankeyChart.js.map +1 -1
  136. package/dist/ScatterPlot.cjs +1 -1
  137. package/dist/ScatterPlot.cjs.map +1 -1
  138. package/dist/ScatterPlot.d.ts +2 -0
  139. package/dist/ScatterPlot.js +494 -483
  140. package/dist/ScatterPlot.js.map +1 -1
  141. package/dist/ScrollStory.d.ts +2 -0
  142. package/dist/SimpleLineChart.cjs +1 -1
  143. package/dist/SimpleLineChart.d.ts +2 -0
  144. package/dist/SimpleLineChart.js +4 -4
  145. package/dist/SingleGraphDashboard.cjs +1 -1
  146. package/dist/SingleGraphDashboard.cjs.map +1 -1
  147. package/dist/SingleGraphDashboard.d.ts +2 -0
  148. package/dist/SingleGraphDashboard.js +24 -24
  149. package/dist/SingleGraphDashboard.js.map +1 -1
  150. package/dist/SingleGraphDashboardFromConfig.d.ts +2 -0
  151. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +2 -0
  152. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +2 -0
  153. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  154. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  155. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +2 -0
  156. package/dist/SingleGraphDashboardThreeDGraphs.js +46 -46
  157. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  158. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +2 -0
  159. package/dist/SlopeChart.cjs +1 -1
  160. package/dist/SlopeChart.cjs.map +1 -1
  161. package/dist/SlopeChart.d.ts +2 -0
  162. package/dist/SlopeChart.js +182 -187
  163. package/dist/SlopeChart.js.map +1 -1
  164. package/dist/SparkLine.cjs +1 -1
  165. package/dist/SparkLine.d.ts +2 -0
  166. package/dist/SparkLine.js +4 -4
  167. package/dist/StatCardFromData.d.ts +2 -0
  168. package/dist/StripChart.cjs +1 -1
  169. package/dist/StripChart.cjs.map +1 -1
  170. package/dist/StripChart.d.ts +2 -0
  171. package/dist/StripChart.js +249 -258
  172. package/dist/StripChart.js.map +1 -1
  173. package/dist/ThreeDGlobe.cjs +1 -1
  174. package/dist/ThreeDGlobe.cjs.map +1 -1
  175. package/dist/ThreeDGlobe.d.ts +2 -0
  176. package/dist/ThreeDGlobe.js +142 -147
  177. package/dist/ThreeDGlobe.js.map +1 -1
  178. package/dist/Tooltip-Dj5eVppQ.js +45 -0
  179. package/dist/Tooltip-Dj5eVppQ.js.map +1 -0
  180. package/dist/Tooltip-uUdw6wJL.cjs +2 -0
  181. package/dist/Tooltip-uUdw6wJL.cjs.map +1 -0
  182. package/dist/TreeMapGraph.cjs +1 -1
  183. package/dist/TreeMapGraph.cjs.map +1 -1
  184. package/dist/TreeMapGraph.d.ts +2 -0
  185. package/dist/TreeMapGraph.js +159 -164
  186. package/dist/TreeMapGraph.js.map +1 -1
  187. package/dist/Types.d.ts +2 -0
  188. package/dist/UnitChart.d.ts +2 -0
  189. package/dist/{band-CyHaVft5.js → band-DHUZ2X7J.js} +3 -3
  190. package/dist/{band-CyHaVft5.js.map → band-DHUZ2X7J.js.map} +1 -1
  191. package/dist/{checkIfMultiple-Y9iKaV_u.js → checkIfMultiple-CIRtG0KE.js} +2 -2
  192. package/dist/{checkIfMultiple-Y9iKaV_u.js.map → checkIfMultiple-CIRtG0KE.js.map} +1 -1
  193. package/dist/index-CF5hnGvG.cjs +2 -0
  194. package/dist/index-CF5hnGvG.cjs.map +1 -0
  195. package/dist/index-DPGq3eIL.js +330 -0
  196. package/dist/index-DPGq3eIL.js.map +1 -0
  197. package/dist/index.cjs +1 -1
  198. package/dist/index.d.ts +2 -0
  199. package/dist/index.js +1 -1
  200. package/dist/{init-BJFW6EwE.js → init-BhZylTFx.js} +3 -3
  201. package/dist/{init-BJFW6EwE.js.map → init-BhZylTFx.js.map} +1 -1
  202. package/dist/{linear-BwnDd9KF.js → linear-BqltdMeF.js} +2 -2
  203. package/dist/{linear-BwnDd9KF.js.map → linear-BqltdMeF.js.map} +1 -1
  204. package/dist/{ordinal-P77xw8aL.js → ordinal-BJ6O_LC5.js} +2 -2
  205. package/dist/{ordinal-P77xw8aL.js.map → ordinal-BJ6O_LC5.js.map} +1 -1
  206. package/dist/{pow-DE4c7dbW.js → pow-CM2aze4M.js} +3 -3
  207. package/dist/{pow-DE4c7dbW.js.map → pow-CM2aze4M.js.map} +1 -1
  208. package/dist/{threshold-Bgr20hik.js → threshold-DFfqcDMa.js} +2 -2
  209. package/dist/{threshold-Bgr20hik.js.map → threshold-DFfqcDMa.js.map} +1 -1
  210. package/dist/{time-DCCfQk3V.js → time-BUL-dwnK.js} +3 -3
  211. package/dist/{time-DCCfQk3V.js.map → time-BUL-dwnK.js.map} +1 -1
  212. package/package.json +4 -4
  213. package/dist/Tooltip-4dJo4_AF.cjs +0 -2
  214. package/dist/Tooltip-4dJo4_AF.cjs.map +0 -1
  215. package/dist/Tooltip-CwWUegPB.js +0 -43
  216. package/dist/Tooltip-CwWUegPB.js.map +0 -1
  217. package/dist/index-B2LQV7Tk.js +0 -335
  218. package/dist/index-B2LQV7Tk.js.map +0 -1
  219. package/dist/index-xRHRLDIp.cjs +0 -2
  220. package/dist/index-xRHRLDIp.cjs.map +0 -1
  221. package/dist/sort-BIvMlUH1.js +0 -34
  222. package/dist/sort-BIvMlUH1.js.map +0 -1
  223. package/dist/sort-O96oMZLb.cjs +0 -2
  224. package/dist/sort-O96oMZLb.cjs.map +0 -1
@@ -1,45 +1,44 @@
1
- import { c as Wt, j as x, m as zt } from "./index-CHPV5EwG-Curnpaqc.js";
1
+ import { c as Wt, j as w, m as zt } from "./index-CHPV5EwG-Curnpaqc.js";
2
2
  import { useRef as $t, useState as it, useEffect as Zt } from "react";
3
- import { j as Ht } from "./Typography-PxtFcnJb.js";
4
- import { l as Jt } from "./Modal-DGcuAHyK.js";
5
- import { T as Qt } from "./Tooltip-CwWUegPB.js";
6
- import { n as _t } from "./numberFormattingFunction-14YCbkN2.js";
3
+ import { j as Rt } from "./Typography-PxtFcnJb.js";
4
+ import { T as Jt } from "./Tooltip-Dj5eVppQ.js";
5
+ import { n as Qt } from "./numberFormattingFunction-14YCbkN2.js";
7
6
  import { g as Nt } from "./getTextColorBasedOnBgColor-CDY808zi.js";
8
7
  import { Colors as tt } from "./Colors.js";
9
- import { s as te } from "./string2HTML-DhG75NqA.js";
10
- import { u as ee } from "./use-in-view-Cxa7y1TH.js";
8
+ import { D as _t } from "./DetailsModal-0Ry5nXiC.js";
9
+ import { u as te } from "./use-in-view-Cxa7y1TH.js";
11
10
  import { m as Ot } from "./proxy-BxkFHwUw.js";
12
- import { A as ne } from "./index-BqfRwk1n.js";
13
- import { c as ie } from "./checkIfNullOrUndefined-DmfiKkNw.js";
14
- import { GraphFooter as oe } from "./GraphFooter.js";
15
- import { GraphHeader as re } from "./GraphHeader.js";
16
- import { ColorLegendWithMouseOver as ae } from "./ColorLegendWithMouseOver.js";
17
- import { E as le } from "./EmptyState-BZo1BbAn.js";
18
- import { u as Rt } from "./uniqBy-BHy4I8PK.js";
19
- import { a as se, G as ce } from "./GraphContainer-CRqzdKu2.js";
20
- function ue(e) {
11
+ import { A as ee } from "./index-BqfRwk1n.js";
12
+ import { c as ne } from "./checkIfNullOrUndefined-DmfiKkNw.js";
13
+ import { GraphFooter as ie } from "./GraphFooter.js";
14
+ import { GraphHeader as oe } from "./GraphHeader.js";
15
+ import { ColorLegendWithMouseOver as re } from "./ColorLegendWithMouseOver.js";
16
+ import { E as ae } from "./EmptyState-BZo1BbAn.js";
17
+ import { u as Pt } from "./uniqBy-BHy4I8PK.js";
18
+ import { a as le, G as se } from "./GraphContainer-CRqzdKu2.js";
19
+ function ce(e) {
21
20
  var t = 0, n = e.children, i = n && n.length;
22
21
  if (!i) t = 1;
23
22
  else for (; --i >= 0; ) t += n[i].value;
24
23
  e.value = t;
25
24
  }
26
- function de() {
27
- return this.eachAfter(ue);
25
+ function ue() {
26
+ return this.eachAfter(ce);
28
27
  }
29
- function fe(e, t) {
28
+ function de(e, t) {
30
29
  let n = -1;
31
30
  for (const i of this)
32
31
  e.call(t, i, ++n, this);
33
32
  return this;
34
33
  }
35
- function he(e, t) {
34
+ function fe(e, t) {
36
35
  for (var n = this, i = [n], r, l, a = -1; n = i.pop(); )
37
36
  if (e.call(t, n, ++a, this), r = n.children)
38
37
  for (l = r.length - 1; l >= 0; --l)
39
38
  i.push(r[l]);
40
39
  return this;
41
40
  }
42
- function pe(e, t) {
41
+ function he(e, t) {
43
42
  for (var n = this, i = [n], r = [], l, a, d, g = -1; n = i.pop(); )
44
43
  if (r.push(n), l = n.children)
45
44
  for (a = 0, d = l.length; a < d; ++a)
@@ -48,58 +47,58 @@ function pe(e, t) {
48
47
  e.call(t, n, ++g, this);
49
48
  return this;
50
49
  }
51
- function ge(e, t) {
50
+ function pe(e, t) {
52
51
  let n = -1;
53
52
  for (const i of this)
54
53
  if (e.call(t, i, ++n, this))
55
54
  return i;
56
55
  }
57
- function me(e) {
56
+ function ge(e) {
58
57
  return this.eachAfter(function(t) {
59
58
  for (var n = +e(t.data) || 0, i = t.children, r = i && i.length; --r >= 0; ) n += i[r].value;
60
59
  t.value = n;
61
60
  });
62
61
  }
63
- function ve(e) {
62
+ function me(e) {
64
63
  return this.eachBefore(function(t) {
65
64
  t.children && t.children.sort(e);
66
65
  });
67
66
  }
68
- function ye(e) {
69
- for (var t = this, n = we(t, e), i = [t]; t !== n; )
67
+ function ve(e) {
68
+ for (var t = this, n = ye(t, e), i = [t]; t !== n; )
70
69
  t = t.parent, i.push(t);
71
70
  for (var r = i.length; e !== n; )
72
71
  i.splice(r, 0, e), e = e.parent;
73
72
  return i;
74
73
  }
75
- function we(e, t) {
74
+ function ye(e, t) {
76
75
  if (e === t) return e;
77
76
  var n = e.ancestors(), i = t.ancestors(), r = null;
78
77
  for (e = n.pop(), t = i.pop(); e === t; )
79
78
  r = e, e = n.pop(), t = i.pop();
80
79
  return r;
81
80
  }
82
- function xe() {
81
+ function we() {
83
82
  for (var e = this, t = [e]; e = e.parent; )
84
83
  t.push(e);
85
84
  return t;
86
85
  }
87
- function be() {
86
+ function xe() {
88
87
  return Array.from(this);
89
88
  }
90
- function Me() {
89
+ function be() {
91
90
  var e = [];
92
91
  return this.eachBefore(function(t) {
93
92
  t.children || e.push(t);
94
93
  }), e;
95
94
  }
96
- function Oe() {
95
+ function Me() {
97
96
  var e = this, t = [];
98
97
  return e.each(function(n) {
99
98
  n !== e && t.push({ source: n.parent, target: n });
100
99
  }), t;
101
100
  }
102
- function* je() {
101
+ function* Oe() {
103
102
  var e = this, t, n = [e], i, r, l;
104
103
  do
105
104
  for (t = n.reverse(), n = []; e = t.pop(); )
@@ -109,23 +108,23 @@ function* je() {
109
108
  while (n.length);
110
109
  }
111
110
  function qt(e, t) {
112
- e instanceof Map ? (e = [void 0, e], t === void 0 && (t = ke)) : t === void 0 && (t = De);
111
+ e instanceof Map ? (e = [void 0, e], t === void 0 && (t = De)) : t === void 0 && (t = Ce);
113
112
  for (var n = new vt(e), i, r = [n], l, a, d, g; i = r.pop(); )
114
113
  if ((a = t(i.data)) && (g = (a = Array.from(a)).length))
115
114
  for (i.children = a, d = g - 1; d >= 0; --d)
116
115
  r.push(l = a[d] = new vt(a[d])), l.parent = i, l.depth = i.depth + 1;
117
116
  return n.eachBefore(Ft);
118
117
  }
119
- function Ce() {
120
- return qt(this).eachBefore(Ie);
118
+ function je() {
119
+ return qt(this).eachBefore(ke);
121
120
  }
122
- function De(e) {
121
+ function Ce(e) {
123
122
  return e.children;
124
123
  }
125
- function ke(e) {
124
+ function De(e) {
126
125
  return Array.isArray(e) ? e[1] : null;
127
126
  }
128
- function Ie(e) {
127
+ function ke(e) {
129
128
  e.data.value !== void 0 && (e.value = e.data.value), e.data = e.data.data;
130
129
  }
131
130
  function Ft(e) {
@@ -139,22 +138,22 @@ function vt(e) {
139
138
  }
140
139
  vt.prototype = qt.prototype = {
141
140
  constructor: vt,
142
- count: de,
143
- each: fe,
144
- eachAfter: pe,
145
- eachBefore: he,
146
- find: ge,
147
- sum: me,
148
- sort: ve,
149
- path: ye,
150
- ancestors: xe,
151
- descendants: be,
152
- leaves: Me,
153
- links: Oe,
154
- copy: Ce,
155
- [Symbol.iterator]: je
141
+ count: ue,
142
+ each: de,
143
+ eachAfter: he,
144
+ eachBefore: fe,
145
+ find: pe,
146
+ sum: ge,
147
+ sort: me,
148
+ path: ve,
149
+ ancestors: we,
150
+ descendants: xe,
151
+ leaves: be,
152
+ links: Me,
153
+ copy: je,
154
+ [Symbol.iterator]: Oe
156
155
  };
157
- function St(e) {
156
+ function Bt(e) {
158
157
  return e == null ? null : Xt(e);
159
158
  }
160
159
  function Xt(e) {
@@ -169,36 +168,36 @@ function mt(e) {
169
168
  return e;
170
169
  };
171
170
  }
172
- function Ve(e) {
171
+ function Ie(e) {
173
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);
174
173
  }
175
- function Ne(e, t, n, i, r) {
174
+ function Ve(e, t, n, i, r) {
176
175
  for (var l = e.children, a, d = -1, g = l.length, y = e.value && (i - t) / e.value; ++d < g; )
177
176
  a = l[d], a.y0 = n, a.y1 = r, a.x0 = t, a.x1 = t += a.value * y;
178
177
  }
179
- var Se = { depth: -1 }, Pt = {}, Bt = {};
178
+ var Ne = { depth: -1 }, Ht = {}, St = {};
180
179
  function Be(e) {
181
180
  return e.id;
182
181
  }
183
- function $e(e) {
182
+ function Se(e) {
184
183
  return e.parentId;
185
184
  }
186
- function Ae() {
187
- var e = Be, t = $e, n;
185
+ function $e() {
186
+ var e = Be, t = Se, n;
188
187
  function i(r) {
189
188
  var l = Array.from(r), a = e, d = t, g, y, c, v, o, f, u, m, h = /* @__PURE__ */ new Map();
190
189
  if (n != null) {
191
- const p = l.map((O, w) => Ee(n(O, w, r))), j = p.map(Gt), k = new Set(p).add("");
190
+ const p = l.map((O, b) => Ae(n(O, b, r))), j = p.map(Gt), k = new Set(p).add("");
192
191
  for (const O of j)
193
- k.has(O) || (k.add(O), p.push(O), j.push(Gt(O)), l.push(Bt));
194
- a = (O, w) => p[w], d = (O, w) => j[w];
192
+ k.has(O) || (k.add(O), p.push(O), j.push(Gt(O)), l.push(St));
193
+ a = (O, b) => p[b], d = (O, b) => j[b];
195
194
  }
196
195
  for (c = 0, g = l.length; c < g; ++c)
197
- y = l[c], f = l[c] = new vt(y), (u = a(y, c, r)) != null && (u += "") && (m = f.id = u, h.set(m, h.has(m) ? Pt : f)), (u = d(y, c, r)) != null && (u += "") && (f.parent = u);
196
+ y = l[c], f = l[c] = new vt(y), (u = a(y, c, r)) != null && (u += "") && (m = f.id = u, h.set(m, h.has(m) ? Ht : f)), (u = d(y, c, r)) != null && (u += "") && (f.parent = u);
198
197
  for (c = 0; c < g; ++c)
199
198
  if (f = l[c], u = f.parent) {
200
199
  if (o = h.get(u), !o) throw new Error("missing: " + u);
201
- if (o === Pt) throw new Error("ambiguous: " + u);
200
+ if (o === Ht) throw new Error("ambiguous: " + u);
202
201
  o.children ? o.children.push(f) : o.children = [f], f.parent = o;
203
202
  } else {
204
203
  if (v) throw new Error("multiple roots");
@@ -206,25 +205,25 @@ function Ae() {
206
205
  }
207
206
  if (!v) throw new Error("no root");
208
207
  if (n != null) {
209
- for (; v.data === Bt && v.children.length === 1; )
208
+ for (; v.data === St && v.children.length === 1; )
210
209
  v = v.children[0], --g;
211
- for (let p = l.length - 1; p >= 0 && (f = l[p], f.data === Bt); --p)
210
+ for (let p = l.length - 1; p >= 0 && (f = l[p], f.data === St); --p)
212
211
  f.data = null;
213
212
  }
214
- if (v.parent = Se, v.eachBefore(function(p) {
213
+ if (v.parent = Ne, v.eachBefore(function(p) {
215
214
  p.depth = p.parent.depth + 1, --g;
216
215
  }).eachBefore(Ft), v.parent = null, g > 0) throw new Error("cycle");
217
216
  return v;
218
217
  }
219
218
  return i.id = function(r) {
220
- return arguments.length ? (e = St(r), i) : e;
219
+ return arguments.length ? (e = Bt(r), i) : e;
221
220
  }, i.parentId = function(r) {
222
- return arguments.length ? (t = St(r), i) : t;
221
+ return arguments.length ? (t = Bt(r), i) : t;
223
222
  }, i.path = function(r) {
224
- return arguments.length ? (n = St(r), i) : n;
223
+ return arguments.length ? (n = Bt(r), i) : n;
225
224
  }, i;
226
225
  }
227
- function Ee(e) {
226
+ function Ae(e) {
228
227
  e = `${e}`;
229
228
  let t = e.length;
230
229
  return At(e, t - 1) && !At(e, t - 2) && (e = e.slice(0, -1)), e[0] === "/" ? e : `/${e}`;
@@ -243,40 +242,40 @@ function At(e, t) {
243
242
  }
244
243
  return !1;
245
244
  }
246
- function Le(e, t, n, i, r) {
245
+ function Ee(e, t, n, i, r) {
247
246
  for (var l = e.children, a, d = -1, g = l.length, y = e.value && (r - n) / e.value; ++d < g; )
248
247
  a = l[d], a.x0 = t, a.x1 = i, a.y0 = n, a.y1 = n += a.value * y;
249
248
  }
250
- var Te = (1 + Math.sqrt(5)) / 2;
251
- function ze(e, t, n, i, r, l) {
252
- for (var a = [], d = t.children, g, y, c = 0, v = 0, o = d.length, f, u, m = t.value, h, p, j, k, O, w, C; c < o; ) {
249
+ var Le = (1 + Math.sqrt(5)) / 2;
250
+ function Te(e, t, n, i, r, l) {
251
+ for (var a = [], d = t.children, g, y, c = 0, v = 0, o = d.length, f, u, m = t.value, h, p, j, k, O, b, C; c < o; ) {
253
252
  f = r - n, u = l - i;
254
253
  do
255
254
  h = d[v++].value;
256
255
  while (!h && v < o);
257
- for (p = j = h, w = Math.max(u / f, f / u) / (m * e), C = h * h * w, O = Math.max(j / C, C / p); v < o; ++v) {
258
- if (h += y = d[v].value, y < p && (p = y), y > j && (j = y), C = h * h * w, k = Math.max(j / C, C / p), k > O) {
256
+ for (p = j = h, b = Math.max(u / f, f / u) / (m * e), C = h * h * b, O = Math.max(j / C, C / p); v < o; ++v) {
257
+ if (h += y = d[v].value, y < p && (p = y), y > j && (j = y), C = h * h * b, k = Math.max(j / C, C / p), k > O) {
259
258
  h -= y;
260
259
  break;
261
260
  }
262
261
  O = k;
263
262
  }
264
- a.push(g = { value: h, dice: f < u, children: d.slice(c, v) }), g.dice ? Ne(g, n, i, r, m ? i += u * h / m : l) : Le(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 ? Ve(g, n, i, r, m ? i += u * h / m : l) : Ee(g, n, i, m ? n += f * h / m : r, l), m -= h, c = v;
265
264
  }
266
265
  return a;
267
266
  }
268
- const He = (function e(t) {
267
+ const ze = (function e(t) {
269
268
  function n(i, r, l, a, d) {
270
- ze(t, i, r, l, a, d);
269
+ Te(t, i, r, l, a, d);
271
270
  }
272
271
  return n.ratio = function(i) {
273
272
  return e((i = +i) > 1 ? i : 1);
274
273
  }, n;
275
- })(Te);
274
+ })(Le);
276
275
  function Re() {
277
- var e = He, t = !1, n = 1, i = 1, r = [0], l = gt, a = gt, d = gt, g = gt, y = gt;
276
+ var e = ze, t = !1, n = 1, i = 1, r = [0], l = gt, a = gt, d = gt, g = gt, y = gt;
278
277
  function c(o) {
279
- return o.x0 = o.y0 = 0, o.x1 = n, o.y1 = i, o.eachBefore(v), r = [0], t && o.eachBefore(Ve), o;
278
+ return o.x0 = o.y0 = 0, o.x1 = n, o.y1 = i, o.eachBefore(v), r = [0], t && o.eachBefore(Ie), o;
280
279
  }
281
280
  function v(o) {
282
281
  var f = r[o.depth], u = o.x0 + f, m = o.y0 + f, h = o.x1 - f, p = o.y1 - f;
@@ -305,7 +304,7 @@ function Re() {
305
304
  }, c;
306
305
  }
307
306
  function Pe(e) {
308
- const t = Wt.c(72), {
307
+ const t = Wt.c(73), {
309
308
  data: n,
310
309
  colors: i,
311
310
  leftMargin: r,
@@ -325,10 +324,10 @@ function Pe(e) {
325
324
  highlightedDataPoints: j,
326
325
  onSeriesMouseClick: k,
327
326
  resetSelectionOnDoubleClick: O,
328
- detailsOnClick: w,
327
+ detailsOnClick: b,
329
328
  language: C,
330
329
  styles: N,
331
- classNames: E,
330
+ classNames: I,
332
331
  animate: D,
333
332
  dimmedOpacity: K,
334
333
  precision: Z
@@ -338,26 +337,26 @@ function Pe(e) {
338
337
  once: D.once,
339
338
  amount: D.amount
340
339
  }, t[0] = D.amount, t[1] = D.once, t[2] = et) : et = t[2];
341
- const J = ee(ot, et), [nt, rt] = it(void 0), [V, at] = it(void 0), [Q, lt] = it(void 0), [_, M] = it(void 0);
342
- let b;
343
- t[3] !== c || t[4] !== r || t[5] !== g || t[6] !== y ? (b = {
340
+ const J = te(ot, et), [nt, rt] = it(void 0), [E, at] = it(void 0), [Q, lt] = it(void 0), [_, M] = it(void 0);
341
+ let x;
342
+ t[3] !== c || t[4] !== r || t[5] !== g || t[6] !== y ? (x = {
344
343
  top: y,
345
344
  bottom: c,
346
345
  left: r,
347
346
  right: g
348
- }, t[3] = c, t[4] = r, t[5] = g, t[6] = y, t[7] = b) : b = t[7];
349
- const I = b, st = l - I.left - I.right, ct = a - I.top - I.bottom;
350
- let L, T, z, H, R, P, G, W, q;
351
- if (t[8] !== D.duration || t[9] !== E?.graphObjectValues || t[10] !== d || t[11] !== i || t[12] !== n || t[13] !== w || t[14] !== K || t[15] !== ct || t[16] !== st || t[17] !== a || t[18] !== j || t[19] !== J || t[20] !== C || t[21] !== I.left || t[22] !== I.top || t[23] !== V || t[24] !== k || t[25] !== f || t[26] !== Z || t[27] !== p || t[28] !== O || t[29] !== u || t[30] !== v || t[31] !== m || t[32] !== N?.graphObjectValues || t[33] !== h || t[34] !== l) {
347
+ }, t[3] = c, t[4] = r, t[5] = g, t[6] = y, t[7] = x) : x = t[7];
348
+ const V = x, st = l - V.left - V.right, ct = a - V.top - V.bottom;
349
+ let L, T, z, R, P, H, G, W, q;
350
+ if (t[8] !== D.duration || t[9] !== I?.graphObjectValues || t[10] !== d || t[11] !== i || t[12] !== n || t[13] !== b || t[14] !== K || t[15] !== ct || t[16] !== st || t[17] !== a || t[18] !== j || t[19] !== J || t[20] !== C || t[21] !== V.left || t[22] !== V.top || t[23] !== E || t[24] !== k || t[25] !== f || t[26] !== Z || t[27] !== p || t[28] !== O || t[29] !== u || t[30] !== v || t[31] !== m || t[32] !== N?.graphObjectValues || t[33] !== h || t[34] !== l) {
352
351
  const pt = [{
353
352
  id: "root",
354
353
  parent: void 0,
355
354
  value: void 0,
356
355
  data: void 0
357
- }, ...n.map(Ze)], ut = Ae().id(Ue).parentId(Ke)(pt);
358
- ut.sum(Ye);
356
+ }, ...n.map(Ue)], ut = $e().id(Ke).parentId(Ye)(pt);
357
+ ut.sum(Xe);
359
358
  const U = Re().size([st, ct]).padding(2)(ut);
360
- T = Ot.svg, R = `${l}px`, P = `${a}px`, G = `0 0 ${l} ${a}`, W = "ltr", q = ot, H = `translate(${I.left},${I.top})`, L = ne, z = U.children?.map((s) => /* @__PURE__ */ x.jsxs(Ot.g, { className: "undp-viz-g-with-hover", variants: {
359
+ T = Ot.svg, P = `${l}px`, H = `${a}px`, G = `0 0 ${l} ${a}`, W = "ltr", q = ot, R = `translate(${V.left},${V.top})`, L = ee, z = U.children?.map((s) => /* @__PURE__ */ w.jsxs(Ot.g, { className: "undp-viz-g-with-hover", variants: {
361
360
  initial: {
362
361
  opacity: 0,
363
362
  x: s.x0,
@@ -379,13 +378,13 @@ function Pe(e) {
379
378
  }, onMouseEnter: (Y) => {
380
379
  rt(s.data.data), M(Y.clientY), lt(Y.clientX), f?.(s.data.data);
381
380
  }, onClick: () => {
382
- (k || w) && (V === s.data.id && O ? (at(void 0), k?.(void 0)) : (at(s.data.id), k?.(s.data.data)));
381
+ (k || b) && (E === s.data.id && O ? (at(void 0), k?.(void 0)) : (at(s.data.id), k?.(s.data.data)));
383
382
  }, onMouseMove: (Y) => {
384
383
  rt(s.data.data), M(Y.clientY), lt(Y.clientX);
385
384
  }, onMouseLeave: () => {
386
385
  rt(void 0), lt(void 0), M(void 0), f?.(void 0);
387
386
  }, children: [
388
- /* @__PURE__ */ x.jsx(Ot.rect, { x: 0, y: 0, exit: {
387
+ /* @__PURE__ */ w.jsx(Ot.rect, { x: 0, y: 0, exit: {
389
388
  width: 0,
390
389
  height: 0,
391
390
  opacity: 0,
@@ -396,18 +395,18 @@ function Pe(e) {
396
395
  initial: {
397
396
  width: 0,
398
397
  height: 0,
399
- fill: n.filter(Xe).length === 0 ? i[0] : s.data.data.color ? i[d.indexOf(s.data.data.color)] : tt.gray
398
+ fill: n.filter(Fe).length === 0 ? i[0] : s.data.data.color ? i[d.indexOf(s.data.data.color)] : tt.gray
400
399
  },
401
400
  whileInView: {
402
401
  width: s.x1 - s.x0,
403
402
  height: s.y1 - s.y0,
404
- fill: n.filter(Fe).length === 0 ? i[0] : s.data.data.color ? i[d.indexOf(s.data.data.color)] : tt.gray,
403
+ fill: n.filter(qe).length === 0 ? i[0] : s.data.data.color ? i[d.indexOf(s.data.data.color)] : tt.gray,
405
404
  transition: {
406
405
  duration: D.duration
407
406
  }
408
407
  }
409
408
  }, initial: "initial", animate: J ? "whileInView" : "initial" }),
410
- s.x1 - s.x0 > 50 && s.y1 - s.y0 > 25 && (v || m) ? /* @__PURE__ */ x.jsx(Ot.g, { variants: {
409
+ s.x1 - s.x0 > 50 && s.y1 - s.y0 > 25 && (v || m) ? /* @__PURE__ */ w.jsx(Ot.g, { variants: {
411
410
  initial: {
412
411
  opacity: 0
413
412
  },
@@ -422,45 +421,44 @@ function Pe(e) {
422
421
  transition: {
423
422
  duration: D.duration
424
423
  }
425
- }, children: /* @__PURE__ */ x.jsx("foreignObject", { y: 0, x: 0, width: s.x1 - s.x0, height: s.y1 - s.y0, children: /* @__PURE__ */ x.jsxs("div", { className: "flex flex-col gap-0.5 p-2 w-full", style: {
426
- color: Nt(n.filter(qe).length === 0 ? i[0] : s.data.data.color ? i[d.indexOf(s.data.data.color)] : tt.gray)
424
+ }, children: /* @__PURE__ */ w.jsx("foreignObject", { y: 0, x: 0, width: s.x1 - s.x0, height: s.y1 - s.y0, children: /* @__PURE__ */ w.jsxs("div", { className: "flex flex-col gap-0.5 p-2 w-full", style: {
425
+ color: Nt(n.filter(We).length === 0 ? i[0] : s.data.data.color ? i[d.indexOf(s.data.data.color)] : tt.gray)
427
426
  }, children: [
428
- v ? /* @__PURE__ */ x.jsx(Ht, { marginBottom: "none", size: "sm", leading: "none", className: zt("w-full treemap-label", C === "ar" || C === "he" ? "text-right" : "text-left", E?.graphObjectValues), style: {
427
+ v ? /* @__PURE__ */ w.jsx(Rt, { marginBottom: "none", size: "sm", leading: "none", className: zt("w-full treemap-label", C === "ar" || C === "he" ? "text-right" : "text-left", I?.graphObjectValues), style: {
429
428
  WebkitLineClamp: s.y1 - s.y0 > 50 ? s.y1 - s.y0 > 100 ? s.y1 - s.y0 > 150 ? void 0 : 3 : 2 : 1,
430
429
  display: "-webkit-box",
431
430
  WebkitBoxOrient: "vertical",
432
431
  overflow: "hidden",
433
- color: Nt(n.filter(We).length === 0 ? i[0] : s.data.data.color ? i[d.indexOf(s.data.data.color)] : tt.gray),
432
+ color: Nt(n.filter(Ge).length === 0 ? i[0] : s.data.data.color ? i[d.indexOf(s.data.data.color)] : tt.gray),
434
433
  ...N?.graphObjectValues || {}
435
434
  }, children: s.data.id }) : null,
436
- m ? /* @__PURE__ */ x.jsx(Ht, { marginBottom: "none", size: "sm", leading: "none", className: zt("w-full font-bold treemap-value", C === "ar" || C === "he" ? "text-right" : "text-left", E?.graphObjectValues), style: {
437
- color: Nt(n.filter(Ge).length === 0 ? i[0] : s.data.data.color ? i[d.indexOf(s.data.data.color)] : tt.gray),
435
+ m ? /* @__PURE__ */ w.jsx(Rt, { marginBottom: "none", size: "sm", leading: "none", className: zt("w-full font-bold treemap-value", C === "ar" || C === "he" ? "text-right" : "text-left", I?.graphObjectValues), style: {
436
+ color: Nt(n.filter(He).length === 0 ? i[0] : s.data.data.color ? i[d.indexOf(s.data.data.color)] : tt.gray),
438
437
  ...N?.graphObjectValues || {}
439
- }, children: _t(s.data.value, "NA", Z, p, h) }) : null
438
+ }, children: Qt(s.data.value, "NA", Z, p, h) }) : null
440
439
  ] }) }) }) : null
441
- ] }, s.data.id)), t[8] = D.duration, t[9] = E?.graphObjectValues, t[10] = d, t[11] = i, t[12] = n, t[13] = w, t[14] = K, t[15] = ct, t[16] = st, t[17] = a, t[18] = j, t[19] = J, t[20] = C, t[21] = I.left, t[22] = I.top, t[23] = V, t[24] = k, t[25] = f, t[26] = Z, t[27] = p, t[28] = O, t[29] = u, t[30] = v, t[31] = m, t[32] = N?.graphObjectValues, t[33] = h, t[34] = l, t[35] = L, t[36] = T, t[37] = z, t[38] = H, t[39] = R, t[40] = P, t[41] = G, t[42] = W, t[43] = q;
440
+ ] }, s.data.id)), t[8] = D.duration, t[9] = I?.graphObjectValues, t[10] = d, t[11] = i, t[12] = n, t[13] = b, t[14] = K, t[15] = ct, t[16] = st, t[17] = a, t[18] = j, t[19] = J, t[20] = C, t[21] = V.left, t[22] = V.top, t[23] = E, t[24] = k, t[25] = f, t[26] = Z, t[27] = p, t[28] = O, t[29] = u, t[30] = v, t[31] = m, t[32] = N?.graphObjectValues, t[33] = h, t[34] = l, 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;
442
441
  } else
443
- L = t[35], T = t[36], z = t[37], H = t[38], R = t[39], P = t[40], G = t[41], W = t[42], q = t[43];
442
+ L = t[35], T = t[36], z = t[37], R = t[38], P = t[39], H = t[40], G = t[41], W = t[42], q = t[43];
444
443
  let F;
445
- t[44] !== L || t[45] !== z ? (F = /* @__PURE__ */ x.jsx(L, { children: z }), t[44] = L, t[45] = z, t[46] = F) : F = t[46];
446
- let S;
447
- t[47] !== H || t[48] !== F ? (S = /* @__PURE__ */ x.jsx("g", { transform: H, children: F }), t[47] = H, t[48] = F, t[49] = S) : S = t[49];
448
- let X;
449
- t[50] !== T || t[51] !== S || t[52] !== R || t[53] !== P || t[54] !== G || t[55] !== W || t[56] !== q ? (X = /* @__PURE__ */ x.jsx(T, { width: R, height: P, viewBox: G, direction: W, ref: q, children: S }), t[50] = T, t[51] = S, t[52] = R, t[53] = P, t[54] = G, t[55] = W, t[56] = q, t[57] = X) : X = t[57];
444
+ t[44] !== L || t[45] !== z ? (F = /* @__PURE__ */ w.jsx(L, { children: z }), t[44] = L, t[45] = z, t[46] = F) : F = t[46];
450
445
  let B;
451
- t[58] !== E?.tooltip || t[59] !== Q || t[60] !== _ || t[61] !== nt || t[62] !== N?.tooltip || t[63] !== o ? (B = nt && o && Q && _ ? /* @__PURE__ */ x.jsx(Qt, { data: nt, body: o, xPos: Q, yPos: _, backgroundStyle: N?.tooltip, className: E?.tooltip }) : null, t[58] = E?.tooltip, t[59] = Q, t[60] = _, t[61] = nt, t[62] = N?.tooltip, t[63] = o, t[64] = B) : B = t[64];
446
+ t[47] !== R || t[48] !== F ? (B = /* @__PURE__ */ w.jsx("g", { transform: R, children: F }), t[47] = R, t[48] = F, t[49] = B) : B = t[49];
447
+ let X;
448
+ t[50] !== T || t[51] !== B || t[52] !== P || t[53] !== H || t[54] !== G || t[55] !== W || t[56] !== q ? (X = /* @__PURE__ */ w.jsx(T, { width: P, height: H, viewBox: G, direction: W, ref: q, children: B }), t[50] = T, t[51] = B, t[52] = P, t[53] = H, t[54] = G, t[55] = W, t[56] = q, t[57] = X) : X = t[57];
449
+ let S;
450
+ t[58] !== I?.tooltip || t[59] !== Q || t[60] !== _ || t[61] !== nt || t[62] !== N?.tooltip || t[63] !== o ? (S = nt && o && Q && _ ? /* @__PURE__ */ w.jsx(Jt, { data: nt, body: o, xPos: Q, yPos: _, backgroundStyle: N?.tooltip, className: I?.tooltip }) : null, t[58] = I?.tooltip, t[59] = Q, t[60] = _, t[61] = nt, t[62] = N?.tooltip, t[63] = o, t[64] = S) : S = t[64];
452
451
  let $;
453
- t[65] !== w || t[66] !== V ? ($ = w && V !== void 0 ? /* @__PURE__ */ x.jsx(Jt, { open: V !== void 0, onClose: () => {
454
- at(void 0);
455
- }, children: /* @__PURE__ */ x.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof w == "string" ? {
456
- __html: te(w, V)
457
- } : void 0, children: typeof w == "function" ? w(V) : null }) }) : null, t[65] = w, t[66] = V, t[67] = $) : $ = t[67];
452
+ t[65] !== I?.modal || t[66] !== b || t[67] !== E ? ($ = b && E !== void 0 ? /* @__PURE__ */ w.jsx(_t, { body: b, data: E, setData: at, className: I?.modal }) : null, t[65] = I?.modal, t[66] = b, t[67] = E, t[68] = $) : $ = t[68];
458
453
  let A;
459
- return t[68] !== X || t[69] !== B || t[70] !== $ ? (A = /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
454
+ return t[69] !== X || t[70] !== S || t[71] !== $ ? (A = /* @__PURE__ */ w.jsxs(w.Fragment, { children: [
460
455
  X,
461
- B,
456
+ S,
462
457
  $
463
- ] }), t[68] = X, t[69] = B, t[70] = $, t[71] = A) : A = t[71], A;
458
+ ] }), t[69] = X, t[70] = S, t[71] = $, t[72] = A) : A = t[72], A;
459
+ }
460
+ function He(e) {
461
+ return e.color;
464
462
  }
465
463
  function Ge(e) {
466
464
  return e.color;
@@ -475,18 +473,15 @@ function Fe(e) {
475
473
  return e.color;
476
474
  }
477
475
  function Xe(e) {
478
- return e.color;
479
- }
480
- function Ye(e) {
481
476
  return e.value;
482
477
  }
483
- function Ke(e) {
478
+ function Ye(e) {
484
479
  return e.parent;
485
480
  }
486
- function Ue(e) {
481
+ function Ke(e) {
487
482
  return e.id;
488
483
  }
489
- function Ze(e) {
484
+ function Ue(e) {
490
485
  return {
491
486
  id: e.label,
492
487
  value: e.size,
@@ -494,7 +489,7 @@ function Ze(e) {
494
489
  data: e
495
490
  };
496
491
  }
497
- function Dn(e) {
492
+ function jn(e) {
498
493
  const t = Wt.c(71), {
499
494
  data: n,
500
495
  graphTitle: i,
@@ -515,10 +510,10 @@ function Dn(e) {
515
510
  padding: j,
516
511
  backgroundColor: k,
517
512
  showLabels: O,
518
- relativeHeight: w,
513
+ relativeHeight: b,
519
514
  tooltip: C,
520
515
  onSeriesMouseOver: N,
521
- showColorScale: E,
516
+ showColorScale: I,
522
517
  showValues: D,
523
518
  graphID: K,
524
519
  highlightedDataPoints: Z,
@@ -527,20 +522,20 @@ function Dn(e) {
527
522
  dataDownload: J,
528
523
  language: nt,
529
524
  showNAColor: rt,
530
- minHeight: V,
525
+ minHeight: E,
531
526
  theme: at,
532
527
  ariaLabel: Q,
533
528
  resetSelectionOnDoubleClick: lt,
534
529
  detailsOnClick: _,
535
530
  styles: M,
536
- classNames: b,
537
- animate: I,
531
+ classNames: x,
532
+ animate: V,
538
533
  dimmedOpacity: st,
539
534
  precision: ct
540
- } = e, L = l === void 0 ? "" : l, T = d === void 0 ? "" : d, z = y === void 0 ? 0 : y, H = c === void 0 ? 0 : c, R = v === void 0 ? 0 : v, P = o === void 0 ? 0 : o, G = k === void 0 ? !1 : k, W = O === void 0 ? !0 : O, q = E === void 0 ? !0 : E, F = D === void 0 ? !0 : D;
541
- let S;
542
- t[0] !== Z ? (S = Z === void 0 ? [] : Z, t[0] = Z, t[1] = S) : S = t[1];
543
- const X = S, B = et === void 0 ? !1 : et, $ = J === void 0 ? !1 : J, A = nt === void 0 ? "en" : nt, pt = rt === void 0 ? !0 : rt, ut = V === void 0 ? 0 : V, U = at === void 0 ? "light" : at, s = lt === void 0 ? !0 : lt, Y = I === void 0 ? !1 : I, jt = st === void 0 ? 0.3 : st, Ct = ct === void 0 ? 2 : ct, [yt, Yt] = it(0), [wt, Kt] = it(0), [Dt, Ut] = it(void 0), kt = $t(null), Et = $t(null);
535
+ } = e, L = l === void 0 ? "" : l, T = d === void 0 ? "" : d, z = y === void 0 ? 0 : y, R = c === void 0 ? 0 : c, P = v === void 0 ? 0 : v, H = 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;
536
+ let B;
537
+ t[0] !== Z ? (B = Z === void 0 ? [] : Z, t[0] = Z, t[1] = B) : B = t[1];
538
+ const X = B, S = et === void 0 ? !1 : et, $ = J === void 0 ? !1 : J, A = nt === void 0 ? "en" : nt, pt = rt === void 0 ? !0 : rt, ut = E === void 0 ? 0 : E, U = at === void 0 ? "light" : at, s = lt === void 0 ? !0 : lt, Y = V === void 0 ? !1 : V, jt = st === void 0 ? 0.3 : st, Ct = ct === void 0 ? 2 : ct, [yt, Yt] = it(0), [wt, Kt] = it(0), [Dt, Ut] = it(void 0), kt = $t(null), Et = $t(null);
544
539
  let xt, bt;
545
540
  t[2] === Symbol.for("react.memo_cache_sentinel") ? (xt = () => {
546
541
  const Lt = new ResizeObserver((Tt) => {
@@ -548,19 +543,19 @@ function Dn(e) {
548
543
  });
549
544
  return kt.current && Lt.observe(kt.current), () => Lt.disconnect();
550
545
  }, bt = [], t[2] = xt, t[3] = bt) : (xt = t[2], bt = t[3]), Zt(xt, bt);
551
- const It = b?.graphContainer, Vt = M?.graphContainer;
546
+ const It = x?.graphContainer, Vt = M?.graphContainer;
552
547
  let dt;
553
- t[4] !== b?.description || t[5] !== b?.title || t[6] !== n || t[7] !== $ || t[8] !== g || t[9] !== B || t[10] !== i || t[11] !== M?.description || t[12] !== M?.title || t[13] !== u ? (dt = i || g || B || $ ? /* @__PURE__ */ x.jsx(re, { styles: {
548
+ t[4] !== x?.description || t[5] !== x?.title || t[6] !== n || t[7] !== $ || t[8] !== g || t[9] !== S || t[10] !== i || t[11] !== M?.description || t[12] !== M?.title || t[13] !== u ? (dt = i || g || S || $ ? /* @__PURE__ */ w.jsx(oe, { styles: {
554
549
  title: M?.title,
555
550
  description: M?.description
556
551
  }, classNames: {
557
- title: b?.title,
558
- description: b?.description
559
- }, graphTitle: i, graphDescription: g, width: u, graphDownload: B ? Et : void 0, dataDownload: $ ? n.map(an).filter(rn).length > 0 ? n.map(on).filter(nn) : n.filter(en) : null }) : null, t[4] = b?.description, t[5] = b?.title, t[6] = n, t[7] = $, t[8] = g, t[9] = B, t[10] = i, t[11] = M?.description, t[12] = M?.title, t[13] = u, t[14] = dt) : dt = t[14];
552
+ title: x?.title,
553
+ description: x?.description
554
+ }, graphTitle: i, graphDescription: g, width: u, graphDownload: S ? Et : void 0, dataDownload: $ ? n.map(rn).filter(on).length > 0 ? n.map(nn).filter(en) : n.filter(tn) : null }) : null, t[4] = x?.description, t[5] = x?.title, t[6] = n, t[7] = $, t[8] = g, t[9] = S, t[10] = i, t[11] = M?.description, t[12] = M?.title, t[13] = u, t[14] = dt) : dt = t[14];
560
555
  let ft;
561
- t[15] !== Y || t[16] !== P || t[17] !== b || t[18] !== h || t[19] !== p || t[20] !== r || t[21] !== n || t[22] !== _ || t[23] !== jt || t[24] !== X || t[25] !== A || t[26] !== z || t[27] !== ot || t[28] !== N || t[29] !== Ct || t[30] !== T || t[31] !== s || t[32] !== H || t[33] !== Dt || t[34] !== q || t[35] !== W || t[36] !== pt || t[37] !== F || t[38] !== M || t[39] !== L || t[40] !== wt || t[41] !== yt || t[42] !== U || t[43] !== C || t[44] !== R || t[45] !== u ? (ft = n.length === 0 ? /* @__PURE__ */ x.jsx(le, {}) : /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
562
- q && n.filter(tn).length !== 0 ? /* @__PURE__ */ x.jsx(ae, { width: u, colorLegendTitle: p, colors: r || tt[U].categoricalColors.colors, colorDomain: h || Rt(n, "color", !0), setSelectedColor: Ut, showNAColor: pt, className: b?.colorLegend }) : null,
563
- /* @__PURE__ */ x.jsx(se, { ref: kt, children: yt && wt ? /* @__PURE__ */ x.jsx(Pe, { data: n.filter(_e), colors: n.filter(Qe).length === 0 ? r ? [r] : [tt.primaryColors["blue-600"]] : r || tt[U].categoricalColors.colors, colorDomain: n.filter(Je).length === 0 ? [] : h || Rt(n, "color", !0), width: yt, height: wt, leftMargin: z, rightMargin: H, topMargin: R, bottomMargin: P, showLabels: W, showValues: F, suffix: L, prefix: T, selectedColor: Dt, tooltip: C, onSeriesMouseOver: N, onSeriesMouseClick: ot, highlightedDataPoints: X, resetSelectionOnDoubleClick: s, detailsOnClick: _, styles: M, classNames: b, language: A, animate: Y === !0 ? {
556
+ t[15] !== Y || t[16] !== H || t[17] !== x || t[18] !== h || t[19] !== p || t[20] !== r || t[21] !== n || t[22] !== _ || t[23] !== jt || t[24] !== X || t[25] !== A || t[26] !== z || t[27] !== ot || t[28] !== N || t[29] !== Ct || t[30] !== T || t[31] !== s || t[32] !== R || t[33] !== Dt || t[34] !== q || t[35] !== W || t[36] !== pt || t[37] !== F || t[38] !== M || t[39] !== L || t[40] !== wt || t[41] !== yt || t[42] !== U || t[43] !== C || t[44] !== P || t[45] !== u ? (ft = n.length === 0 ? /* @__PURE__ */ w.jsx(ae, {}) : /* @__PURE__ */ w.jsxs(w.Fragment, { children: [
557
+ q && n.filter(_e).length !== 0 ? /* @__PURE__ */ w.jsx(re, { width: u, colorLegendTitle: p, colors: r || tt[U].categoricalColors.colors, colorDomain: h || Pt(n, "color", !0), setSelectedColor: Ut, showNAColor: pt, className: x?.colorLegend }) : null,
558
+ /* @__PURE__ */ w.jsx(le, { ref: kt, children: yt && wt ? /* @__PURE__ */ w.jsx(Pe, { data: n.filter(Qe), colors: n.filter(Je).length === 0 ? r ? [r] : [tt.primaryColors["blue-600"]] : r || tt[U].categoricalColors.colors, colorDomain: n.filter(Ze).length === 0 ? [] : h || Pt(n, "color", !0), width: yt, height: wt, leftMargin: z, rightMargin: R, topMargin: P, bottomMargin: H, showLabels: W, showValues: F, suffix: L, prefix: T, selectedColor: Dt, tooltip: C, onSeriesMouseOver: N, onSeriesMouseClick: ot, highlightedDataPoints: X, resetSelectionOnDoubleClick: s, detailsOnClick: _, styles: M, classNames: x, language: A, animate: Y === !0 ? {
564
559
  duration: 0.5,
565
560
  once: !0,
566
561
  amount: 0.5
@@ -569,50 +564,50 @@ function Dn(e) {
569
564
  once: !0,
570
565
  amount: 0
571
566
  }, dimmedOpacity: jt, precision: Ct }) : null })
572
- ] }), t[15] = Y, t[16] = P, t[17] = b, t[18] = h, t[19] = p, t[20] = r, t[21] = n, t[22] = _, t[23] = jt, t[24] = X, t[25] = A, t[26] = z, t[27] = ot, t[28] = N, t[29] = Ct, t[30] = T, t[31] = s, t[32] = H, t[33] = Dt, t[34] = q, t[35] = W, t[36] = pt, t[37] = F, t[38] = M, t[39] = L, t[40] = wt, t[41] = yt, t[42] = U, t[43] = C, t[44] = R, t[45] = u, t[46] = ft) : ft = t[46];
567
+ ] }), t[15] = Y, t[16] = H, t[17] = x, t[18] = h, t[19] = p, t[20] = r, t[21] = n, t[22] = _, t[23] = jt, t[24] = X, t[25] = A, t[26] = z, t[27] = ot, t[28] = N, t[29] = Ct, t[30] = T, t[31] = s, t[32] = R, t[33] = Dt, t[34] = q, t[35] = W, t[36] = pt, t[37] = F, t[38] = M, t[39] = L, t[40] = wt, t[41] = yt, t[42] = U, t[43] = C, t[44] = P, t[45] = u, t[46] = ft) : ft = t[46];
573
568
  let ht;
574
- t[47] !== b?.footnote || t[48] !== b?.source || t[49] !== m || t[50] !== a || t[51] !== M?.footnote || t[52] !== M?.source || t[53] !== u ? (ht = a || m ? /* @__PURE__ */ x.jsx(oe, { styles: {
569
+ t[47] !== x?.footnote || t[48] !== x?.source || t[49] !== m || t[50] !== a || t[51] !== M?.footnote || t[52] !== M?.source || t[53] !== u ? (ht = a || m ? /* @__PURE__ */ w.jsx(ie, { styles: {
575
570
  footnote: M?.footnote,
576
571
  source: M?.source
577
572
  }, classNames: {
578
- footnote: b?.footnote,
579
- source: b?.source
580
- }, sources: a, footNote: m, width: u }) : null, t[47] = b?.footnote, t[48] = b?.source, t[49] = m, t[50] = a, t[51] = M?.footnote, t[52] = M?.source, t[53] = u, t[54] = ht) : ht = t[54];
573
+ footnote: x?.footnote,
574
+ source: x?.source
575
+ }, sources: a, footNote: m, width: u }) : null, t[47] = x?.footnote, t[48] = x?.source, t[49] = m, t[50] = a, t[51] = M?.footnote, t[52] = M?.source, t[53] = u, t[54] = ht) : ht = t[54];
581
576
  let Mt;
582
- return t[55] !== Q || t[56] !== G || t[57] !== K || t[58] !== f || t[59] !== A || t[60] !== ut || t[61] !== j || t[62] !== w || t[63] !== It || t[64] !== Vt || t[65] !== dt || t[66] !== ft || t[67] !== ht || t[68] !== U || t[69] !== u ? (Mt = /* @__PURE__ */ x.jsxs(ce, { className: It, style: Vt, id: K, ref: Et, "aria-label": Q, backgroundColor: G, theme: U, language: A, minHeight: ut, width: u, height: f, relativeHeight: w, padding: j, children: [
577
+ return t[55] !== Q || t[56] !== G || t[57] !== K || t[58] !== f || t[59] !== A || t[60] !== ut || t[61] !== j || t[62] !== b || t[63] !== It || t[64] !== Vt || t[65] !== dt || t[66] !== ft || t[67] !== ht || t[68] !== U || t[69] !== u ? (Mt = /* @__PURE__ */ w.jsxs(se, { className: It, style: Vt, id: K, ref: Et, "aria-label": Q, backgroundColor: G, theme: U, language: A, minHeight: ut, width: u, height: f, relativeHeight: b, padding: j, children: [
583
578
  dt,
584
579
  ft,
585
580
  ht
586
- ] }), t[55] = Q, t[56] = G, t[57] = K, t[58] = f, t[59] = A, t[60] = ut, t[61] = j, t[62] = w, t[63] = It, t[64] = Vt, t[65] = dt, t[66] = ft, t[67] = ht, t[68] = U, t[69] = u, t[70] = Mt) : Mt = t[70], Mt;
581
+ ] }), t[55] = Q, t[56] = G, t[57] = K, t[58] = f, t[59] = A, t[60] = ut, t[61] = j, t[62] = b, t[63] = It, t[64] = Vt, t[65] = dt, t[66] = ft, t[67] = ht, t[68] = U, t[69] = u, t[70] = Mt) : Mt = t[70], Mt;
582
+ }
583
+ function Ze(e) {
584
+ return e.color;
587
585
  }
588
586
  function Je(e) {
589
587
  return e.color;
590
588
  }
591
589
  function Qe(e) {
592
- return e.color;
590
+ return !ne(e.size);
593
591
  }
594
592
  function _e(e) {
595
- return !ie(e.size);
593
+ return e.color;
596
594
  }
597
595
  function tn(e) {
598
- return e.color;
596
+ return e !== void 0;
599
597
  }
600
598
  function en(e) {
601
599
  return e !== void 0;
602
600
  }
603
601
  function nn(e) {
604
- return e !== void 0;
605
- }
606
- function on(e) {
607
602
  return e.data;
608
603
  }
609
- function rn(e) {
604
+ function on(e) {
610
605
  return e !== void 0;
611
606
  }
612
- function an(e) {
607
+ function rn(e) {
613
608
  return e.data;
614
609
  }
615
610
  export {
616
- Dn as TreeMapGraph
611
+ jn as TreeMapGraph
617
612
  };
618
613
  //# sourceMappingURL=TreeMapGraph.js.map