@undp/data-viz 2.4.1 → 2.5.0

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