@undp/data-viz 2.2.2 → 2.3.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 (123) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.js +1 -1
  3. package/dist/Axis-D56Gy0se.js +31 -0
  4. package/dist/Axis-D56Gy0se.js.map +1 -0
  5. package/dist/Axis-Jt_tmhxS.cjs +2 -0
  6. package/dist/Axis-Jt_tmhxS.cjs.map +1 -0
  7. package/dist/BarGraph.cjs +1 -1
  8. package/dist/BarGraph.cjs.map +1 -1
  9. package/dist/BarGraph.d.ts +6 -0
  10. package/dist/BarGraph.js +1759 -1750
  11. package/dist/BarGraph.js.map +1 -1
  12. package/dist/BeeSwarmChart.cjs +1 -1
  13. package/dist/BeeSwarmChart.cjs.map +1 -1
  14. package/dist/BeeSwarmChart.d.ts +2 -0
  15. package/dist/BeeSwarmChart.js +270 -267
  16. package/dist/BeeSwarmChart.js.map +1 -1
  17. package/dist/BiVariateChoroplethMap.cjs +1 -1
  18. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  19. package/dist/BiVariateChoroplethMap.d.ts +4 -0
  20. package/dist/BiVariateChoroplethMap.js +328 -401
  21. package/dist/BiVariateChoroplethMap.js.map +1 -1
  22. package/dist/BulletChart.cjs +1 -1
  23. package/dist/BulletChart.cjs.map +1 -1
  24. package/dist/BulletChart.d.ts +2 -0
  25. package/dist/BulletChart.js +544 -542
  26. package/dist/BulletChart.js.map +1 -1
  27. package/dist/ButterflyChart.cjs +1 -1
  28. package/dist/ButterflyChart.cjs.map +1 -1
  29. package/dist/ButterflyChart.d.ts +2 -0
  30. package/dist/ButterflyChart.js +332 -330
  31. package/dist/ButterflyChart.js.map +1 -1
  32. package/dist/ChoroplethMap.cjs +1 -1
  33. package/dist/ChoroplethMap.cjs.map +1 -1
  34. package/dist/ChoroplethMap.d.ts +4 -0
  35. package/dist/ChoroplethMap.js +341 -416
  36. package/dist/ChoroplethMap.js.map +1 -1
  37. package/dist/Data/01.json +4042 -0
  38. package/dist/Data/mapData.json +4543 -0
  39. package/dist/Data/testMap.json +361 -0
  40. package/dist/DifferenceLineChart.cjs +1 -1
  41. package/dist/DifferenceLineChart.js +1 -1
  42. package/dist/DotDensityMap.cjs +1 -1
  43. package/dist/DotDensityMap.cjs.map +1 -1
  44. package/dist/DotDensityMap.d.ts +4 -0
  45. package/dist/DotDensityMap.js +297 -311
  46. package/dist/DotDensityMap.js.map +1 -1
  47. package/dist/DualAxisLineChart.cjs +1 -1
  48. package/dist/DualAxisLineChart.js +1 -1
  49. package/dist/DumbbellChart.cjs +1 -1
  50. package/dist/DumbbellChart.cjs.map +1 -1
  51. package/dist/DumbbellChart.d.ts +2 -0
  52. package/dist/DumbbellChart.js +537 -536
  53. package/dist/DumbbellChart.js.map +1 -1
  54. package/dist/{GraphEl-DcNr5JzH.js → GraphEl-L5hNe7wJ.js} +84 -67
  55. package/dist/GraphEl-L5hNe7wJ.js.map +1 -0
  56. package/dist/GraphEl-ic8C5Ksc.cjs +2 -0
  57. package/dist/GraphEl-ic8C5Ksc.cjs.map +1 -0
  58. package/dist/GriddedGraphs.cjs +1 -1
  59. package/dist/GriddedGraphs.d.ts +3 -0
  60. package/dist/GriddedGraphs.js +1 -1
  61. package/dist/GriddedGraphsFromConfig.d.ts +3 -0
  62. package/dist/Histogram.cjs +1 -1
  63. package/dist/Histogram.cjs.map +1 -1
  64. package/dist/Histogram.d.ts +2 -0
  65. package/dist/Histogram.js +50 -49
  66. package/dist/Histogram.js.map +1 -1
  67. package/dist/HybridMap.cjs +1 -1
  68. package/dist/HybridMap.cjs.map +1 -1
  69. package/dist/HybridMap.d.ts +4 -0
  70. package/dist/HybridMap.js +368 -418
  71. package/dist/HybridMap.js.map +1 -1
  72. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  73. package/dist/LineChartWithConfidenceInterval.js +1 -1
  74. package/dist/MultiGraphDashboard.d.ts +3 -0
  75. package/dist/MultiGraphDashboardFromConfig.d.ts +3 -0
  76. package/dist/MultiLineAltChart.cjs +1 -1
  77. package/dist/MultiLineAltChart.js +1 -1
  78. package/dist/MultiLineChart.cjs +1 -1
  79. package/dist/MultiLineChart.js +1 -1
  80. package/dist/ParetoChart.cjs +1 -1
  81. package/dist/ParetoChart.js +1 -1
  82. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +3 -0
  83. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +3 -0
  84. package/dist/PerformanceIntensiveScrollStory.d.ts +3 -0
  85. package/dist/ScatterPlot.cjs +1 -1
  86. package/dist/ScatterPlot.js +1 -1
  87. package/dist/ScrollStory.d.ts +3 -0
  88. package/dist/SimpleLineChart.cjs +1 -1
  89. package/dist/SimpleLineChart.js +1 -1
  90. package/dist/SingleGraphDashboard.cjs +1 -1
  91. package/dist/SingleGraphDashboard.d.ts +3 -0
  92. package/dist/SingleGraphDashboard.js +1 -1
  93. package/dist/SingleGraphDashboardFromConfig.d.ts +3 -0
  94. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +3 -0
  95. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +3 -0
  96. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +3 -0
  97. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +3 -0
  98. package/dist/SlopeChart.cjs +1 -1
  99. package/dist/SlopeChart.js +1 -1
  100. package/dist/Types.d.ts +3 -0
  101. package/dist/WaterfallChart.cjs +1 -1
  102. package/dist/WaterfallChart.cjs.map +1 -1
  103. package/dist/WaterfallChart.d.ts +2 -0
  104. package/dist/WaterfallChart.js +263 -261
  105. package/dist/WaterfallChart.js.map +1 -1
  106. package/dist/index-DLFt97gy.cjs +2 -0
  107. package/dist/index-DLFt97gy.cjs.map +1 -0
  108. package/dist/index-Dp_SfsUA.js +2344 -0
  109. package/dist/index-Dp_SfsUA.js.map +1 -0
  110. package/dist/index.d.ts +37 -0
  111. package/package.json +2 -1
  112. package/readme.md +0 -7
  113. package/dist/Axis-DoOqnt6g.js +0 -32
  114. package/dist/Axis-DoOqnt6g.js.map +0 -1
  115. package/dist/Axis-Dtjn-EgM.cjs +0 -2
  116. package/dist/Axis-Dtjn-EgM.cjs.map +0 -1
  117. package/dist/GraphEl-CAjJLOGk.cjs +0 -2
  118. package/dist/GraphEl-CAjJLOGk.cjs.map +0 -1
  119. package/dist/GraphEl-DcNr5JzH.js.map +0 -1
  120. package/dist/zoom-5AkJSuWO.js +0 -1864
  121. package/dist/zoom-5AkJSuWO.js.map +0 -1
  122. package/dist/zoom-ChcvXFIz.cjs +0 -2
  123. package/dist/zoom-ChcvXFIz.cjs.map +0 -1
@@ -1,168 +1,168 @@
1
- import { c as Le, j as i, m as we } from "./index-CHPV5EwG-DecW7_qr.js";
2
- import { o as Ve } from "./index-BZQYSqar.js";
3
- import { f as je, p as Ee } from "./parse-Dv4of-PN.js";
4
- import { useRef as Ae, useState as It, useEffect as Ne } from "react";
5
- import { g as Ge, N as He } from "./getSliderMarks-Cvg8zHBU.js";
6
- import { i as De } from "./index-Bwrro8-q.js";
7
- import { n as Ie } from "./numberFormattingFunction-14YCbkN2.js";
8
- import { T as Te } from "./Tooltip-BRnAz2Gv.js";
9
- import { c as Wt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
10
- import { A as Se } from "./AxisTitle-VFq89Olw.js";
11
- import { A as Re } from "./Axis-DoOqnt6g.js";
12
- import { X as ze } from "./XAxesLabels-rhK7lRjO.js";
13
- import { Y as Fe } from "./YTicksAndGridLines-GnXnSRF2.js";
14
- import { R as qe, a as Ue } from "./ReferenceLine-DgtoRgw0.js";
15
- import { X as Je } from "./XTicksAndGridLines-CVZkZkpS.js";
16
- import { Y as Ke } from "./YAxesLabels-QICWVsHf.js";
17
- import { D as Pe } from "./DetailsModal-BMCTgVsk.js";
18
- import { a as We } from "./linear-CalFSAaO.js";
19
- import { b as Be } from "./band-DYty33LD.js";
20
- import { m as Pt } from "./proxy-DRuSUlPL.js";
21
- import { u as Xe } from "./use-in-view-Dl5L8LtP.js";
22
- import { A as Ye } from "./index-CtMBjvtq.js";
23
- import { e as $e } from "./ensureCompleteData-CDIukSG6.js";
24
- import { a as Qe, G as Ze } from "./GraphContainer-CF6ws3pd.js";
25
- import { GraphHeader as _e } from "./GraphHeader.js";
26
- import { P as ti, e as ei } from "./index-BQYOuXdl.js";
27
- import { GraphFooter as ii } from "./GraphFooter.js";
28
- import { ColorLegendWithMouseOver as ni } from "./ColorLegendWithMouseOver.js";
29
- import { E as ai } from "./EmptyState-tZBErBKF.js";
30
- import { Colors as oi } from "./Colors.js";
31
- function si(e) {
32
- const t = Le.c(146), {
33
- data: d,
34
- leftMargin: Jt,
1
+ import { c as Ie, j as i, m as be } from "./index-CHPV5EwG-DecW7_qr.js";
2
+ import { o as je } from "./index-BZQYSqar.js";
3
+ import { f as Ne, p as He } from "./parse-Dv4of-PN.js";
4
+ import { useRef as ve, useState as Ot, useEffect as De } from "react";
5
+ import { g as Re, N as ze } from "./getSliderMarks-Cvg8zHBU.js";
6
+ import { i as Te } from "./index-Bwrro8-q.js";
7
+ import { n as $e } from "./numberFormattingFunction-14YCbkN2.js";
8
+ import { T as Se } from "./Tooltip-BRnAz2Gv.js";
9
+ import { c as Bt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
10
+ import { A as Fe } from "./AxisTitle-VFq89Olw.js";
11
+ import { A as qe } from "./Axis-D56Gy0se.js";
12
+ import { X as Ue } from "./XAxesLabels-rhK7lRjO.js";
13
+ import { Y as Pe } from "./YTicksAndGridLines-GnXnSRF2.js";
14
+ import { R as Je, a as Ke } from "./ReferenceLine-DgtoRgw0.js";
15
+ import { X as Qe } from "./XTicksAndGridLines-CVZkZkpS.js";
16
+ import { Y as Ze } from "./YAxesLabels-QICWVsHf.js";
17
+ import { D as We } from "./DetailsModal-BMCTgVsk.js";
18
+ import { a as Be } from "./linear-CalFSAaO.js";
19
+ import { b as Xe } from "./band-DYty33LD.js";
20
+ import { m as Wt } from "./proxy-DRuSUlPL.js";
21
+ import { u as Ye } from "./use-in-view-Dl5L8LtP.js";
22
+ import { A as Ee } from "./index-CtMBjvtq.js";
23
+ import { e as Le } from "./ensureCompleteData-CDIukSG6.js";
24
+ import { a as _e, G as ti } from "./GraphContainer-CF6ws3pd.js";
25
+ import { GraphHeader as ei } from "./GraphHeader.js";
26
+ import { P as ii, e as ni } from "./index-BQYOuXdl.js";
27
+ import { GraphFooter as ai } from "./GraphFooter.js";
28
+ import { ColorLegendWithMouseOver as oi } from "./ColorLegendWithMouseOver.js";
29
+ import { E as si } from "./EmptyState-tZBErBKF.js";
30
+ import { Colors as li } from "./Colors.js";
31
+ function ri(e) {
32
+ const t = Ie.c(148), {
33
+ data: c,
34
+ leftMargin: qt,
35
35
  rightMargin: ae,
36
- topMargin: Kt,
37
- bottomMargin: Qt,
38
- dotColors: C,
39
- barPadding: Bt,
40
- showTicks: Lt,
41
- truncateBy: Vt,
42
- width: vt,
43
- height: wt,
44
- radius: ft,
45
- showLabels: At,
46
- tooltip: g,
47
- onSeriesMouseOver: ot,
48
- maxValue: jt,
49
- minValue: O,
50
- onSeriesMouseClick: rt,
51
- showValues: Zt,
52
- suffix: pt,
36
+ topMargin: Ut,
37
+ bottomMargin: Jt,
38
+ dotColors: I,
39
+ barPadding: Xt,
40
+ showTicks: ct,
41
+ truncateBy: Lt,
42
+ width: gt,
43
+ height: bt,
44
+ radius: xt,
45
+ showLabels: vt,
46
+ tooltip: b,
47
+ onSeriesMouseOver: st,
48
+ maxValue: $t,
49
+ minValue: k,
50
+ onSeriesMouseClick: dt,
51
+ showValues: Kt,
52
+ suffix: ft,
53
53
  prefix: P,
54
54
  selectedColor: W,
55
- arrowConnector: N,
56
- connectorStrokeWidth: Xt,
57
- maxBarThickness: kt,
58
- minBarThickness: Nt,
59
- resetSelectionOnDoubleClick: _t,
60
- detailsOnClick: $,
55
+ arrowConnector: j,
56
+ connectorStrokeWidth: Yt,
57
+ maxBarThickness: wt,
58
+ minBarThickness: It,
59
+ resetSelectionOnDoubleClick: Qt,
60
+ detailsOnClick: V,
61
61
  axisTitle: B,
62
- noOfTicks: Yt,
63
- valueColor: Dt,
64
- styles: a,
62
+ noOfTicks: Et,
63
+ valueColor: Vt,
64
+ styles: o,
65
65
  classNames: n,
66
66
  labelOrder: y,
67
- refValues: Tt,
67
+ refValues: jt,
68
68
  animate: f,
69
69
  precision: x,
70
70
  customLayers: H,
71
71
  highlightedDataPoints: X,
72
- dimmedOpacity: ct
73
- } = e, b = Jt === void 0 ? 20 : Jt, Et = ae === void 0 ? 20 : ae, Gt = Kt === void 0 ? 20 : Kt, St = Qt === void 0 ? 25 : Qt, te = Ae(null);
74
- let Ht;
75
- t[0] !== f.amount || t[1] !== f.once ? (Ht = {
72
+ dimmedOpacity: mt,
73
+ hideAxisLine: R
74
+ } = e, z = qt === void 0 ? 20 : qt, Gt = ae === void 0 ? 20 : ae, Nt = Ut === void 0 ? 20 : Ut, Ht = Jt === void 0 ? 25 : Jt, ie = ve(null);
75
+ let Dt;
76
+ t[0] !== f.amount || t[1] !== f.once ? (Dt = {
76
77
  once: f.once,
77
78
  amount: f.amount
78
- }, t[0] = f.amount, t[1] = f.once, t[2] = Ht) : Ht = t[2];
79
- const R = Xe(te, Ht), z = B ? b + 30 : b;
80
- let Rt;
81
- t[3] !== St || t[4] !== Et || t[5] !== z || t[6] !== Gt ? (Rt = {
82
- top: Gt,
83
- bottom: St,
84
- left: z,
85
- right: Et
86
- }, t[3] = St, t[4] = Et, t[5] = z, t[6] = Gt, t[7] = Rt) : Rt = t[7];
87
- const r = Rt, o = vt - r.left - r.right, st = wt - r.top - r.bottom, [lt, zt] = It(void 0), [ht, yt] = It(void 0), [qt, Mt] = It(void 0), [Ct, Ut] = It(void 0);
88
- let Ot;
89
- if (t[8] !== d || t[9] !== y) {
90
- const h = /* @__PURE__ */ new Set(), p = d.map((v, w) => {
91
- const s = y ? `${v.label}` : `${w}`;
92
- return h.add(s), {
93
- ...v,
79
+ }, t[0] = f.amount, t[1] = f.once, t[2] = Dt) : Dt = t[2];
80
+ const v = Ye(ie, Dt), Zt = B ? z + 30 : z;
81
+ let p;
82
+ t[3] !== Ht || t[4] !== Gt || t[5] !== Zt || t[6] !== Nt ? (p = {
83
+ top: Nt,
84
+ bottom: Ht,
85
+ left: Zt,
86
+ right: Gt
87
+ }, t[3] = Ht, t[4] = Gt, t[5] = Zt, t[6] = Nt, t[7] = p) : p = t[7];
88
+ const a = p, N = gt - a.left - a.right, q = bt - a.top - a.bottom, [Tt, _t] = Ot(void 0), [Y, te] = Ot(void 0), [ht, St] = Ot(void 0), [Ft, Pt] = Ot(void 0);
89
+ let pt;
90
+ if (t[8] !== c || t[9] !== y) {
91
+ const m = /* @__PURE__ */ new Set(), w = c.map((h, rt) => {
92
+ const s = y ? `${h.label}` : `${rt}`;
93
+ return m.add(s), {
94
+ ...h,
94
95
  id: s
95
96
  };
96
- }), V = y ? y.filter((v) => !h.has(v)) : [];
97
- let ut;
98
- t[11] !== d[0] ? (ut = (v) => ({
99
- id: v,
100
- label: v,
101
- x: Array(d[0].x.length).fill(null)
102
- }), t[11] = d[0], t[12] = ut) : ut = t[12], Ot = [...p, ...V.map(ut)], t[8] = d, t[9] = y, t[10] = Ot;
97
+ }), yt = y ? y.filter((h) => !m.has(h)) : [];
98
+ let C;
99
+ t[11] !== c[0] ? (C = (h) => ({
100
+ id: h,
101
+ label: h,
102
+ x: Array(c[0].x.length).fill(null)
103
+ }), t[11] = c[0], t[12] = C) : C = t[12], pt = [...w, ...yt.map(C)], t[8] = c, t[9] = y, t[10] = pt;
103
104
  } else
104
- Ot = t[10];
105
- const Y = Ot;
106
- let A;
107
- t[13] !== Y || t[14] !== y ? (A = y ?? Y.map(yi), t[13] = Y, t[14] = y, t[15] = A) : A = t[15];
108
- const Ft = A;
109
- let gt, q, U, J, K, Q, k, I, L, Z, _, tt, M, D, T;
110
- if (t[16] !== f || t[17] !== N || t[18] !== B || t[19] !== Ft || t[20] !== Bt || t[21] !== n?.dataConnectors || t[22] !== n?.graphObjectValues || t[23] !== n?.xAxis?.axis || t[24] !== n?.xAxis?.labels || t[25] !== n?.yAxis?.gridLines || t[26] !== n?.yAxis?.labels || t[27] !== n?.yAxis?.title || t[28] !== Xt || t[29] !== H || t[30] !== Y || t[31] !== $ || t[32] !== ct || t[33] !== C || t[34] !== st || t[35] !== o || t[36] !== wt || t[37] !== X || t[38] !== R || t[39] !== b || t[40] !== r.bottom || t[41] !== r.left || t[42] !== r.right || t[43] !== r.top || t[44] !== kt || t[45] !== jt || t[46] !== Nt || t[47] !== O || t[48] !== ht || t[49] !== Yt || t[50] !== rt || t[51] !== ot || t[52] !== x || t[53] !== P || t[54] !== ft || t[55] !== Tt || t[56] !== _t || t[57] !== W || t[58] !== At || t[59] !== Lt || t[60] !== Zt || t[61] !== a?.dataConnectors || t[62] !== a?.graphObjectValues || t[63] !== a?.xAxis?.axis || t[64] !== a?.xAxis?.labels || t[65] !== a?.yAxis?.gridLines || t[66] !== a?.yAxis?.labels || t[67] !== a?.yAxis?.title || t[68] !== pt || t[69] !== Vt || t[70] !== Dt || t[71] !== vt) {
111
- const h = We().domain([O, jt]).range([st, 0]).nice(), p = Be().domain(Ft).range([0, Nt ? Math.max(o, Nt * Y.length) : kt ? Math.min(o, kt * Y.length) : o]).paddingInner(Bt), V = h.ticks(Yt);
112
- q = Pt.svg, L = `${vt}px`, Z = `${wt}px`, _ = `0 0 ${vt} ${wt}`, tt = "ltr", M = te, t[87] !== N ? (D = N ? /* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("marker", { id: "arrow", viewBox: "0 0 10 10", refX: "10", refY: "5", markerWidth: "6", markerHeight: "6", orient: "auto-start-reverse", children: /* @__PURE__ */ i.jsx("path", { d: "M 0 0 L 10 5 L 0 10 z", className: "fill-primary-gray-600 dark:fill-primary-gray-300" }) }) }) : null, t[87] = N, t[88] = D) : D = t[88], J = `translate(${r.left},${r.top})`;
113
- const ut = h(O < 0 ? 0 : O), v = h(O < 0 ? 0 : O), w = O < 0 ? 0 : O;
105
+ pt = t[10];
106
+ const O = pt;
107
+ let lt;
108
+ t[13] !== O || t[14] !== y ? (lt = y ?? O.map(bi), t[13] = O, t[14] = y, t[15] = lt) : lt = t[15];
109
+ const Rt = lt;
110
+ let U, J, K, Q, Z, D, T, M, E, _, tt, et, L, $, it;
111
+ if (t[16] !== f || t[17] !== j || t[18] !== B || t[19] !== Rt || t[20] !== Xt || t[21] !== n?.dataConnectors || t[22] !== n?.graphObjectValues || t[23] !== n?.xAxis?.axis || t[24] !== n?.xAxis?.labels || t[25] !== n?.yAxis?.gridLines || t[26] !== n?.yAxis?.labels || t[27] !== n?.yAxis?.title || t[28] !== Yt || t[29] !== H || t[30] !== O || t[31] !== V || t[32] !== mt || t[33] !== I || t[34] !== q || t[35] !== N || t[36] !== bt || t[37] !== R || t[38] !== X || t[39] !== v || t[40] !== z || t[41] !== a.bottom || t[42] !== a.left || t[43] !== a.right || t[44] !== a.top || t[45] !== wt || t[46] !== $t || t[47] !== It || t[48] !== k || t[49] !== Y || t[50] !== Et || t[51] !== dt || t[52] !== st || t[53] !== x || t[54] !== P || t[55] !== xt || t[56] !== jt || t[57] !== Qt || t[58] !== W || t[59] !== vt || t[60] !== ct || t[61] !== Kt || t[62] !== o?.dataConnectors || t[63] !== o?.graphObjectValues || t[64] !== o?.xAxis?.axis || t[65] !== o?.xAxis?.labels || t[66] !== o?.yAxis?.gridLines || t[67] !== o?.yAxis?.labels || t[68] !== o?.yAxis?.title || t[69] !== ft || t[70] !== Lt || t[71] !== Vt || t[72] !== gt) {
112
+ const m = Be().domain([k, $t]).range([q, 0]).nice(), w = Xe().domain(Rt).range([0, It ? Math.max(N, It * O.length) : wt ? Math.min(N, wt * O.length) : N]).paddingInner(Xt), yt = m.ticks(Et);
113
+ J = Wt.svg, E = `${gt}px`, _ = `${bt}px`, tt = `0 0 ${gt} ${bt}`, et = "ltr", L = ie, t[88] !== j ? ($ = j ? /* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("marker", { id: "arrow", viewBox: "0 0 10 10", refX: "10", refY: "5", markerWidth: "6", markerHeight: "6", orient: "auto-start-reverse", children: /* @__PURE__ */ i.jsx("path", { d: "M 0 0 L 10 5 L 0 10 z", className: "fill-primary-gray-600 dark:fill-primary-gray-300" }) }) }) : null, t[88] = j, t[89] = $) : $ = t[89], Q = `translate(${a.left},${a.top})`;
114
+ let C;
115
+ t[90] !== k || t[91] !== x || t[92] !== P || t[93] !== ct || t[94] !== ft ? (C = ct ? $e(k < 0 ? 0 : k, "NA", x, P, ft) : void 0, t[90] = k, t[91] = x, t[92] = P, t[93] = ct, t[94] = ft, t[95] = C) : C = t[95];
116
+ const h = n?.xAxis?.axis, rt = n?.yAxis?.labels;
114
117
  let s;
115
- t[89] !== x || t[90] !== P || t[91] !== pt || t[92] !== w ? (s = Ie(w, "NA", x, P, pt), t[89] = x, t[90] = P, t[91] = pt, t[92] = w, t[93] = s) : s = t[93];
116
- const xt = n?.xAxis?.axis, ie = n?.yAxis?.labels;
117
- let bt;
118
- t[94] !== xt || t[95] !== ie ? (bt = {
119
- axis: xt,
120
- label: ie
121
- }, t[94] = xt, t[95] = ie, t[96] = bt) : bt = t[96];
122
- const ne = a?.xAxis?.axis, G = a?.yAxis?.labels;
123
- let c;
124
- t[97] !== ne || t[98] !== G ? (c = {
125
- axis: ne,
126
- label: G
127
- }, t[97] = ne, t[98] = G, t[99] = c) : c = t[99], K = /* @__PURE__ */ i.jsx(Re, { y1: ut, y2: v, x1: 0 - b, x2: o + r.right, label: s, labelPos: {
128
- x: 0 - b,
118
+ t[96] !== h || t[97] !== rt ? (s = {
119
+ axis: h,
120
+ label: rt
121
+ }, t[96] = h, t[97] = rt, t[98] = s) : s = t[98];
122
+ const zt = o?.xAxis?.axis, kt = o?.yAxis?.labels;
123
+ let ee;
124
+ t[99] !== zt || t[100] !== kt ? (ee = {
125
+ axis: zt,
126
+ label: kt
127
+ }, t[99] = zt, t[100] = kt, t[101] = ee) : ee = t[101], Z = /* @__PURE__ */ i.jsx(qe, { hideAxisLine: R, y1: m(k < 0 ? 0 : k), y2: m(k < 0 ? 0 : k), x1: 0 - z, x2: N + a.right, label: C, labelPos: {
128
+ x: 0 - z,
129
129
  dx: 0,
130
- dy: jt < 0 ? "1em" : -5,
131
- y: h(O < 0 ? 0 : O)
132
- }, classNames: bt, styles: c }), Q = Lt ? /* @__PURE__ */ i.jsx(Fe, { values: V.filter(hi), y: V.filter(pi).map((u) => h(u)), x1: 0 - b, x2: o + r.right, styles: {
133
- gridLines: a?.yAxis?.gridLines,
134
- labels: a?.yAxis?.labels
130
+ dy: $t < 0 ? "1em" : -5,
131
+ y: m(k < 0 ? 0 : k)
132
+ }, classNames: s, styles: ee }), D = ct ? /* @__PURE__ */ i.jsx(Pe, { values: yt.filter(gi), y: yt.filter(yi).map((l) => m(l)), x1: 0 - z, x2: N + a.right, styles: {
133
+ gridLines: o?.yAxis?.gridLines,
134
+ labels: o?.yAxis?.labels
135
135
  }, classNames: {
136
136
  gridLines: n?.yAxis?.gridLines,
137
137
  labels: n?.yAxis?.labels
138
- }, suffix: pt, prefix: P, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: x }) : null;
139
- const F = 0 - b - 15, l = st / 2, j = a?.yAxis?.title, se = n?.yAxis?.title;
140
- t[100] !== B || t[101] !== F || t[102] !== l || t[103] !== j || t[104] !== se ? (k = /* @__PURE__ */ i.jsx(Se, { x: F, y: l, style: j, className: se, text: B, rotate90: !0 }), t[100] = B, t[101] = F, t[102] = l, t[103] = j, t[104] = se, t[105] = k) : k = t[105], t[106] !== H ? (I = H.filter(fi).map(xi), t[106] = H, t[107] = I) : I = t[107], gt = Ye, T = Y.map((u) => /* @__PURE__ */ i.jsxs(Pt.g, { className: "undp-viz-g-with-hover", variants: {
138
+ }, suffix: ft, prefix: P, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: x }) : null;
139
+ const Mt = 0 - z - 15, r = q / 2, A = o?.yAxis?.title, F = n?.yAxis?.title;
140
+ t[102] !== B || t[103] !== Mt || t[104] !== r || t[105] !== A || t[106] !== F ? (T = /* @__PURE__ */ i.jsx(Fe, { x: Mt, y: r, style: A, className: F, text: B, rotate90: !0 }), t[102] = B, t[103] = Mt, t[104] = r, t[105] = A, t[106] = F, t[107] = T) : T = t[107], t[108] !== H ? (M = H.filter(pi).map(hi), t[108] = H, t[109] = M) : M = t[109], U = Ee, it = O.map((l) => /* @__PURE__ */ i.jsxs(Wt.g, { className: "undp-viz-g-with-hover", variants: {
141
141
  initial: {
142
- x: p(`${u.id}`) + p.bandwidth() / 2,
142
+ x: w(`${l.id}`) + w.bandwidth() / 2,
143
143
  y: 0,
144
- opacity: X.length !== 0 ? X.indexOf(u.label) !== -1 ? 0.85 : ct : 0.85
144
+ opacity: X.length !== 0 ? X.indexOf(l.label) !== -1 ? 0.85 : mt : 0.85
145
145
  },
146
146
  whileInView: {
147
- x: p(`${u.id}`) + p.bandwidth() / 2,
147
+ x: w(`${l.id}`) + w.bandwidth() / 2,
148
148
  y: 0,
149
- opacity: X.length !== 0 ? X.indexOf(u.label) !== -1 ? 0.85 : ct : 0.85,
149
+ opacity: X.length !== 0 ? X.indexOf(l.label) !== -1 ? 0.85 : mt : 0.85,
150
150
  transition: {
151
151
  duration: f.duration
152
152
  }
153
153
  }
154
- }, initial: "initial", animate: R ? "whileInView" : "initial", exit: {
154
+ }, initial: "initial", animate: v ? "whileInView" : "initial", exit: {
155
155
  opacity: 0,
156
156
  transition: {
157
157
  duration: f.duration
158
158
  }
159
159
  }, children: [
160
- At ? /* @__PURE__ */ i.jsx(ze, { value: `${u.label}`.length < Vt ? `${u.label}` : `${`${u.label}`.substring(0, Vt)}...`, y: st + 5, x: 0 - p.bandwidth() / 2, width: p.bandwidth(), height: r.bottom, style: a?.xAxis?.labels, className: n?.xAxis?.labels, alignment: "top", animate: f, isInView: R }) : null,
161
- /* @__PURE__ */ i.jsx(Pt.line, { x1: 0, x2: 0, style: {
162
- strokeWidth: Xt,
163
- ...a?.dataConnectors || {},
160
+ vt ? /* @__PURE__ */ i.jsx(Ue, { value: `${l.label}`.length < Lt ? `${l.label}` : `${`${l.label}`.substring(0, Lt)}...`, y: q + 5, x: 0 - w.bandwidth() / 2, width: w.bandwidth(), height: a.bottom, style: o?.xAxis?.labels, className: n?.xAxis?.labels, alignment: "top", animate: f, isInView: v }) : null,
161
+ /* @__PURE__ */ i.jsx(Wt.line, { x1: 0, x2: 0, style: {
162
+ strokeWidth: Yt,
163
+ ...o?.dataConnectors || {},
164
164
  opacity: W ? 0.3 : 1
165
- }, className: we("stroke-primary-gray-600 dark:stroke-primary-gray-300", n?.dataConnectors), markerEnd: N && u.x.indexOf(Math.min(...u.x.filter(ui))) === 0 ? "url(#arrow)" : "", markerStart: N && u.x.indexOf(Math.min(...u.x.filter(mi))) === u.x.length - 1 ? "url(#arrow)" : "", exit: {
165
+ }, className: be("stroke-primary-gray-600 dark:stroke-primary-gray-300", n?.dataConnectors), markerEnd: j && l.x.indexOf(Math.min(...l.x.filter(fi))) === 0 ? "url(#arrow)" : "", markerStart: j && l.x.indexOf(Math.min(...l.x.filter(xi))) === l.x.length - 1 ? "url(#arrow)" : "", exit: {
166
166
  opacity: 0,
167
167
  transition: {
168
168
  duration: f.duration
@@ -173,39 +173,39 @@ function si(e) {
173
173
  y2: 0
174
174
  },
175
175
  whileInView: {
176
- y1: h(Math.min(...u.x.filter(di))) + ft,
177
- y2: h(Math.max(...u.x.filter(ci))) - ft,
176
+ y1: m(Math.min(...l.x.filter(ui))) + xt,
177
+ y2: m(Math.max(...l.x.filter(mi))) - xt,
178
178
  transition: {
179
179
  duration: f.duration
180
180
  }
181
181
  }
182
- }, initial: "initial", animate: R ? "whileInView" : "initial" }),
183
- u.x.map((ee, at) => /* @__PURE__ */ i.jsx(Pt.g, { onMouseEnter: (oe) => {
184
- zt({
185
- ...u,
186
- xIndex: at
187
- }), Ut(oe.clientY), Mt(oe.clientX), ot?.({
188
- ...u,
189
- xIndex: at
182
+ }, initial: "initial", animate: v ? "whileInView" : "initial" }),
183
+ l.x.map((u, g) => /* @__PURE__ */ i.jsx(Wt.g, { onMouseEnter: (ne) => {
184
+ _t({
185
+ ...l,
186
+ xIndex: g
187
+ }), Pt(ne.clientY), St(ne.clientX), st?.({
188
+ ...l,
189
+ xIndex: g
190
190
  });
191
191
  }, onClick: () => {
192
- (rt || $) && (De(ht, {
193
- ...u,
194
- xIndex: at
195
- }) && _t ? (yt(void 0), rt?.(void 0)) : (yt({
196
- ...u,
197
- xIndex: at
198
- }), rt && rt({
199
- ...u,
200
- xIndex: at
192
+ (dt || V) && (Te(Y, {
193
+ ...l,
194
+ xIndex: g
195
+ }) && Qt ? (te(void 0), dt?.(void 0)) : (te({
196
+ ...l,
197
+ xIndex: g
198
+ }), dt && dt({
199
+ ...l,
200
+ xIndex: g
201
201
  })));
202
- }, onMouseMove: (oe) => {
203
- zt({
204
- ...u,
205
- xIndex: at
206
- }), Ut(oe.clientY), Mt(oe.clientX);
202
+ }, onMouseMove: (ne) => {
203
+ _t({
204
+ ...l,
205
+ xIndex: g
206
+ }), Pt(ne.clientY), St(ne.clientX);
207
207
  }, onMouseLeave: () => {
208
- zt(void 0), Mt(void 0), Ut(void 0), ot?.(void 0);
208
+ _t(void 0), St(void 0), Pt(void 0), st?.(void 0);
209
209
  }, exit: {
210
210
  opacity: 0,
211
211
  transition: {
@@ -213,19 +213,19 @@ function si(e) {
213
213
  }
214
214
  }, variants: {
215
215
  initial: {
216
- opacity: W ? C[at] === W ? 1 : 0.3 : 1
216
+ opacity: W ? I[g] === W ? 1 : 0.3 : 1
217
217
  },
218
218
  whileInView: {
219
- opacity: W ? C[at] === W ? 1 : 0.3 : 1,
219
+ opacity: W ? I[g] === W ? 1 : 0.3 : 1,
220
220
  transition: {
221
221
  duration: f.duration
222
222
  }
223
223
  }
224
- }, initial: "initial", animate: R ? "whileInView" : "initial", children: Wt(ee) ? null : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
225
- /* @__PURE__ */ i.jsx(Pt.circle, { cx: 0, r: ft, style: {
226
- fill: C[at],
224
+ }, initial: "initial", animate: v ? "whileInView" : "initial", children: Bt(u) ? null : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
225
+ /* @__PURE__ */ i.jsx(Wt.circle, { cx: 0, r: xt, style: {
226
+ fill: I[g],
227
227
  fillOpacity: 0.85,
228
- stroke: C[at],
228
+ stroke: I[g],
229
229
  strokeWidth: 1
230
230
  }, exit: {
231
231
  opacity: 0,
@@ -234,235 +234,235 @@ function si(e) {
234
234
  }
235
235
  }, variants: {
236
236
  initial: {
237
- cy: h(0),
237
+ cy: m(0),
238
238
  opacity: 0
239
239
  },
240
240
  whileInView: {
241
- cy: h(ee || 0),
242
- opacity: Wt(ee) ? 0 : 1,
241
+ cy: m(u || 0),
242
+ opacity: Bt(u) ? 0 : 1,
243
243
  transition: {
244
244
  duration: f.duration
245
245
  }
246
246
  }
247
- }, initial: "initial", animate: R ? "whileInView" : "initial" }),
248
- Zt ? /* @__PURE__ */ i.jsx(Pt.text, { x: 0, style: {
247
+ }, initial: "initial", animate: v ? "whileInView" : "initial" }),
248
+ Kt ? /* @__PURE__ */ i.jsx(Wt.text, { x: 0, style: {
249
249
  textAnchor: "start",
250
- ...a?.graphObjectValues || {}
251
- }, className: we("graph-value text-sm font-bold", Wt(ee) ? "opacity-0" : "opacity-100", n?.graphObjectValues), dx: ft + 3, dy: "0.33em", exit: {
250
+ ...o?.graphObjectValues || {}
251
+ }, className: be("graph-value text-sm font-bold", Bt(u) ? "opacity-0" : "opacity-100", n?.graphObjectValues), dx: xt + 3, dy: "0.33em", exit: {
252
252
  opacity: 0,
253
253
  transition: {
254
254
  duration: f.duration
255
255
  }
256
256
  }, variants: {
257
257
  initial: {
258
- y: h(0),
258
+ y: m(0),
259
259
  opacity: 0,
260
- fill: Dt || C[at]
260
+ fill: Vt || I[g]
261
261
  },
262
262
  whileInView: {
263
- y: h(ee || 0),
264
- fill: Dt || C[at],
263
+ y: m(u || 0),
264
+ fill: Vt || I[g],
265
265
  opacity: 1,
266
266
  transition: {
267
267
  duration: f.duration
268
268
  }
269
269
  }
270
- }, initial: "initial", animate: R ? "whileInView" : "initial", children: Ie(ee, "NA", x, P, pt) }) : null
271
- ] }) }, at))
272
- ] }, u.label)), U = Tt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Tt.map((u, ee) => /* @__PURE__ */ i.jsx(Ue, { text: u.text, color: u.color, y: h(u.value), x1: 0 - b, x2: o + r.right, classNames: u.classNames, styles: u.styles, animate: f, isInView: R }, ee)) }) : null, t[16] = f, t[17] = N, t[18] = B, t[19] = Ft, t[20] = Bt, t[21] = n?.dataConnectors, t[22] = n?.graphObjectValues, t[23] = n?.xAxis?.axis, t[24] = n?.xAxis?.labels, t[25] = n?.yAxis?.gridLines, t[26] = n?.yAxis?.labels, t[27] = n?.yAxis?.title, t[28] = Xt, t[29] = H, t[30] = Y, t[31] = $, t[32] = ct, t[33] = C, t[34] = st, t[35] = o, t[36] = wt, t[37] = X, t[38] = R, t[39] = b, t[40] = r.bottom, t[41] = r.left, t[42] = r.right, t[43] = r.top, t[44] = kt, t[45] = jt, t[46] = Nt, t[47] = O, t[48] = ht, t[49] = Yt, t[50] = rt, t[51] = ot, t[52] = x, t[53] = P, t[54] = ft, t[55] = Tt, t[56] = _t, t[57] = W, t[58] = At, t[59] = Lt, t[60] = Zt, t[61] = a?.dataConnectors, t[62] = a?.graphObjectValues, t[63] = a?.xAxis?.axis, t[64] = a?.xAxis?.labels, t[65] = a?.yAxis?.gridLines, t[66] = a?.yAxis?.labels, t[67] = a?.yAxis?.title, t[68] = pt, t[69] = Vt, t[70] = Dt, t[71] = vt, t[72] = gt, t[73] = q, t[74] = U, t[75] = J, t[76] = K, t[77] = Q, t[78] = k, t[79] = I, t[80] = L, t[81] = Z, t[82] = _, t[83] = tt, t[84] = M, t[85] = D, t[86] = T;
270
+ }, initial: "initial", animate: v ? "whileInView" : "initial", children: $e(u, "NA", x, P, ft) }) : null
271
+ ] }) }, g))
272
+ ] }, l.label)), K = jt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: jt.map((l, u) => /* @__PURE__ */ i.jsx(Ke, { text: l.text, color: l.color, y: m(l.value), x1: 0 - z, x2: N + a.right, classNames: l.classNames, styles: l.styles, animate: f, isInView: v }, u)) }) : null, t[16] = f, t[17] = j, t[18] = B, t[19] = Rt, t[20] = Xt, t[21] = n?.dataConnectors, t[22] = n?.graphObjectValues, t[23] = n?.xAxis?.axis, t[24] = n?.xAxis?.labels, t[25] = n?.yAxis?.gridLines, t[26] = n?.yAxis?.labels, t[27] = n?.yAxis?.title, t[28] = Yt, t[29] = H, t[30] = O, t[31] = V, t[32] = mt, t[33] = I, t[34] = q, t[35] = N, t[36] = bt, t[37] = R, t[38] = X, t[39] = v, t[40] = z, t[41] = a.bottom, t[42] = a.left, t[43] = a.right, t[44] = a.top, t[45] = wt, t[46] = $t, t[47] = It, t[48] = k, t[49] = Y, t[50] = Et, t[51] = dt, t[52] = st, t[53] = x, t[54] = P, t[55] = xt, t[56] = jt, t[57] = Qt, t[58] = W, t[59] = vt, t[60] = ct, t[61] = Kt, t[62] = o?.dataConnectors, t[63] = o?.graphObjectValues, t[64] = o?.xAxis?.axis, t[65] = o?.xAxis?.labels, t[66] = o?.yAxis?.gridLines, t[67] = o?.yAxis?.labels, t[68] = o?.yAxis?.title, t[69] = ft, t[70] = Lt, t[71] = Vt, t[72] = gt, t[73] = U, t[74] = J, t[75] = K, t[76] = Q, t[77] = Z, t[78] = D, t[79] = T, t[80] = M, t[81] = E, t[82] = _, t[83] = tt, t[84] = et, t[85] = L, t[86] = $, t[87] = it;
273
273
  } else
274
- gt = t[72], q = t[73], U = t[74], J = t[75], K = t[76], Q = t[77], k = t[78], I = t[79], L = t[80], Z = t[81], _ = t[82], tt = t[83], M = t[84], D = t[85], T = t[86];
275
- let et;
276
- t[108] !== gt || t[109] !== U || t[110] !== T ? (et = /* @__PURE__ */ i.jsxs(gt, { children: [
274
+ U = t[73], J = t[74], K = t[75], Q = t[76], Z = t[77], D = t[78], T = t[79], M = t[80], E = t[81], _ = t[82], tt = t[83], et = t[84], L = t[85], $ = t[86], it = t[87];
275
+ let nt;
276
+ t[110] !== U || t[111] !== K || t[112] !== it ? (nt = /* @__PURE__ */ i.jsxs(U, { children: [
277
+ it,
278
+ K
279
+ ] }), t[110] = U, t[111] = K, t[112] = it, t[113] = nt) : nt = t[113];
280
+ let at;
281
+ t[114] !== H ? (at = H.filter(di).map(ci), t[114] = H, t[115] = at) : at = t[115];
282
+ let ut;
283
+ t[116] !== Q || t[117] !== Z || t[118] !== D || t[119] !== T || t[120] !== M || t[121] !== nt || t[122] !== at ? (ut = /* @__PURE__ */ i.jsxs("g", { transform: Q, children: [
284
+ Z,
285
+ D,
277
286
  T,
278
- U
279
- ] }), t[108] = gt, t[109] = U, t[110] = T, t[111] = et) : et = t[111];
280
- let it;
281
- t[112] !== H ? (it = H.filter(ri).map(li), t[112] = H, t[113] = it) : it = t[113];
282
- let dt;
283
- t[114] !== J || t[115] !== K || t[116] !== Q || t[117] !== k || t[118] !== I || t[119] !== et || t[120] !== it ? (dt = /* @__PURE__ */ i.jsxs("g", { transform: J, children: [
284
- K,
285
- Q,
286
- k,
287
- I,
288
- et,
289
- it
290
- ] }), t[114] = J, t[115] = K, t[116] = Q, t[117] = k, t[118] = I, t[119] = et, t[120] = it, t[121] = dt) : dt = t[121];
287
+ M,
288
+ nt,
289
+ at
290
+ ] }), t[116] = Q, t[117] = Z, t[118] = D, t[119] = T, t[120] = M, t[121] = nt, t[122] = at, t[123] = ut) : ut = t[123];
291
291
  let S;
292
- t[122] !== q || t[123] !== L || t[124] !== Z || t[125] !== _ || t[126] !== tt || t[127] !== M || t[128] !== D || t[129] !== dt ? (S = /* @__PURE__ */ i.jsxs(q, { width: L, height: Z, viewBox: _, direction: tt, ref: M, children: [
293
- D,
294
- dt
295
- ] }), t[122] = q, t[123] = L, t[124] = Z, t[125] = _, t[126] = tt, t[127] = M, t[128] = D, t[129] = dt, t[130] = S) : S = t[130];
296
- let E;
297
- t[131] !== n?.tooltip || t[132] !== qt || t[133] !== Ct || t[134] !== lt || t[135] !== a?.tooltip || t[136] !== g ? (E = lt && g && qt && Ct ? /* @__PURE__ */ i.jsx(Te, { data: lt, body: g, xPos: qt, yPos: Ct, backgroundStyle: a?.tooltip, className: n?.tooltip }) : null, t[131] = n?.tooltip, t[132] = qt, t[133] = Ct, t[134] = lt, t[135] = a?.tooltip, t[136] = g, t[137] = E) : E = t[137];
298
- let nt;
299
- t[138] !== n?.modal || t[139] !== $ || t[140] !== ht ? (nt = $ && ht !== void 0 ? /* @__PURE__ */ i.jsx(Pe, { body: $, data: ht, setData: yt, className: n?.modal }) : null, t[138] = n?.modal, t[139] = $, t[140] = ht, t[141] = nt) : nt = t[141];
300
- let mt;
301
- return t[142] !== S || t[143] !== E || t[144] !== nt ? (mt = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
292
+ t[124] !== J || t[125] !== E || t[126] !== _ || t[127] !== tt || t[128] !== et || t[129] !== L || t[130] !== $ || t[131] !== ut ? (S = /* @__PURE__ */ i.jsxs(J, { width: E, height: _, viewBox: tt, direction: et, ref: L, children: [
293
+ $,
294
+ ut
295
+ ] }), t[124] = J, t[125] = E, t[126] = _, t[127] = tt, t[128] = et, t[129] = L, t[130] = $, t[131] = ut, t[132] = S) : S = t[132];
296
+ let G;
297
+ t[133] !== n?.tooltip || t[134] !== ht || t[135] !== Ft || t[136] !== Tt || t[137] !== o?.tooltip || t[138] !== b ? (G = Tt && b && ht && Ft ? /* @__PURE__ */ i.jsx(Se, { data: Tt, body: b, xPos: ht, yPos: Ft, backgroundStyle: o?.tooltip, className: n?.tooltip }) : null, t[133] = n?.tooltip, t[134] = ht, t[135] = Ft, t[136] = Tt, t[137] = o?.tooltip, t[138] = b, t[139] = G) : G = t[139];
298
+ let ot;
299
+ t[140] !== n?.modal || t[141] !== V || t[142] !== Y ? (ot = V && Y !== void 0 ? /* @__PURE__ */ i.jsx(We, { body: V, data: Y, setData: te, className: n?.modal }) : null, t[140] = n?.modal, t[141] = V, t[142] = Y, t[143] = ot) : ot = t[143];
300
+ let At;
301
+ return t[144] !== S || t[145] !== G || t[146] !== ot ? (At = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
302
302
  S,
303
- E,
304
- nt
305
- ] }), t[142] = S, t[143] = E, t[144] = nt, t[145] = mt) : mt = t[145], mt;
303
+ G,
304
+ ot
305
+ ] }), t[144] = S, t[145] = G, t[146] = ot, t[147] = At) : At = t[147], At;
306
306
  }
307
- function li(e) {
307
+ function ci(e) {
308
308
  return e.layer;
309
309
  }
310
- function ri(e) {
310
+ function di(e) {
311
311
  return e.position === "after";
312
312
  }
313
- function ci(e) {
313
+ function mi(e) {
314
314
  return e !== null;
315
315
  }
316
- function di(e) {
316
+ function ui(e) {
317
317
  return e !== null;
318
318
  }
319
- function mi(e) {
319
+ function xi(e) {
320
320
  return e !== null;
321
321
  }
322
- function ui(e) {
322
+ function fi(e) {
323
323
  return e !== null;
324
324
  }
325
- function xi(e) {
325
+ function hi(e) {
326
326
  return e.layer;
327
327
  }
328
- function fi(e) {
328
+ function pi(e) {
329
329
  return e.position === "before";
330
330
  }
331
- function pi(e) {
331
+ function yi(e) {
332
332
  return e !== 0;
333
333
  }
334
- function hi(e) {
334
+ function gi(e) {
335
335
  return e !== 0;
336
336
  }
337
- function yi(e) {
337
+ function bi(e) {
338
338
  return `${e.id}`;
339
339
  }
340
- function gi(e) {
341
- const t = Le.c(139), {
342
- data: d,
343
- leftMargin: Jt,
340
+ function vi(e) {
341
+ const t = Ie.c(139), {
342
+ data: c,
343
+ leftMargin: qt,
344
344
  rightMargin: ae,
345
- topMargin: Kt,
346
- bottomMargin: Qt,
347
- dotColors: C,
348
- suffix: Bt,
349
- prefix: Lt,
350
- barPadding: Vt,
351
- showValues: vt,
352
- showTicks: wt,
353
- truncateBy: ft,
354
- width: At,
355
- height: g,
356
- radius: ot,
357
- showLabels: jt,
358
- tooltip: O,
359
- onSeriesMouseOver: rt,
360
- maxValue: Zt,
361
- minValue: pt,
345
+ topMargin: Ut,
346
+ bottomMargin: Jt,
347
+ dotColors: I,
348
+ suffix: Xt,
349
+ prefix: ct,
350
+ barPadding: Lt,
351
+ showValues: gt,
352
+ showTicks: bt,
353
+ truncateBy: xt,
354
+ width: vt,
355
+ height: b,
356
+ radius: st,
357
+ showLabels: $t,
358
+ tooltip: k,
359
+ onSeriesMouseOver: dt,
360
+ maxValue: Kt,
361
+ minValue: ft,
362
362
  onSeriesMouseClick: P,
363
363
  selectedColor: W,
364
- arrowConnector: N,
365
- connectorStrokeWidth: Xt,
366
- maxBarThickness: kt,
367
- minBarThickness: Nt,
368
- resetSelectionOnDoubleClick: _t,
369
- detailsOnClick: $,
364
+ arrowConnector: j,
365
+ connectorStrokeWidth: Yt,
366
+ maxBarThickness: wt,
367
+ minBarThickness: It,
368
+ resetSelectionOnDoubleClick: Qt,
369
+ detailsOnClick: V,
370
370
  axisTitle: B,
371
- noOfTicks: Yt,
372
- valueColor: Dt,
373
- styles: a,
371
+ noOfTicks: Et,
372
+ valueColor: Vt,
373
+ styles: o,
374
374
  classNames: n,
375
375
  labelOrder: y,
376
- refValues: Tt,
376
+ refValues: jt,
377
377
  rtl: f,
378
378
  animate: x,
379
379
  precision: H,
380
380
  customLayers: X,
381
- highlightedDataPoints: ct,
382
- dimmedOpacity: b
383
- } = e, Et = Jt === void 0 ? 100 : Jt, Gt = ae === void 0 ? 40 : ae, St = Kt === void 0 ? 20 : Kt, te = Qt === void 0 ? 10 : Qt, Ht = Ae(null);
384
- let R;
385
- t[0] !== x.amount || t[1] !== x.once ? (R = {
381
+ highlightedDataPoints: mt,
382
+ dimmedOpacity: R
383
+ } = e, z = qt === void 0 ? 100 : qt, Gt = ae === void 0 ? 40 : ae, Nt = Ut === void 0 ? 20 : Ut, Ht = Jt === void 0 ? 10 : Jt, ie = ve(null);
384
+ let Dt;
385
+ t[0] !== x.amount || t[1] !== x.once ? (Dt = {
386
386
  once: x.once,
387
387
  amount: x.amount
388
- }, t[0] = x.amount, t[1] = x.once, t[2] = R) : R = t[2];
389
- const z = Xe(Ht, R), Rt = B ? St + 25 : St;
390
- let r;
391
- t[3] !== te || t[4] !== Et || t[5] !== Gt || t[6] !== Rt ? (r = {
392
- top: Rt,
393
- bottom: te,
394
- left: Et,
388
+ }, t[0] = x.amount, t[1] = x.once, t[2] = Dt) : Dt = t[2];
389
+ const v = Ye(ie, Dt), Zt = B ? Nt + 25 : Nt;
390
+ let p;
391
+ t[3] !== Ht || t[4] !== z || t[5] !== Gt || t[6] !== Zt ? (p = {
392
+ top: Zt,
393
+ bottom: Ht,
394
+ left: z,
395
395
  right: Gt
396
- }, t[3] = te, t[4] = Et, t[5] = Gt, t[6] = Rt, t[7] = r) : r = t[7];
397
- const o = r, st = At - o.left - o.right, lt = g - o.top - o.bottom, [zt, ht] = It(void 0), [yt, qt] = It(void 0), [Mt, Ct] = It(void 0), [Ut, Ot] = It(void 0);
398
- let Y;
399
- if (t[8] !== d || t[9] !== y) {
400
- const p = /* @__PURE__ */ new Set(), V = d.map((w, s) => {
401
- const xt = y ? `${w.label}` : `${s}`;
402
- return p.add(xt), {
403
- ...w,
404
- id: xt
396
+ }, t[3] = Ht, t[4] = z, t[5] = Gt, t[6] = Zt, t[7] = p) : p = t[7];
397
+ const a = p, N = vt - a.left - a.right, q = b - a.top - a.bottom, [Tt, _t] = Ot(void 0), [Y, te] = Ot(void 0), [ht, St] = Ot(void 0), [Ft, Pt] = Ot(void 0);
398
+ let pt;
399
+ if (t[8] !== c || t[9] !== y) {
400
+ const m = /* @__PURE__ */ new Set(), w = c.map((h, rt) => {
401
+ const s = y ? `${h.label}` : `${rt}`;
402
+ return m.add(s), {
403
+ ...h,
404
+ id: s
405
405
  };
406
- }), ut = y ? y.filter((w) => !p.has(w)) : [];
407
- let v;
408
- t[11] !== d[0] ? (v = (w) => ({
409
- id: w,
410
- label: w,
411
- x: Array(d[0].x.length).fill(null)
412
- }), t[11] = d[0], t[12] = v) : v = t[12], Y = [...V, ...ut.map(v)], t[8] = d, t[9] = y, t[10] = Y;
406
+ }), yt = y ? y.filter((h) => !m.has(h)) : [];
407
+ let C;
408
+ t[11] !== c[0] ? (C = (h) => ({
409
+ id: h,
410
+ label: h,
411
+ x: Array(c[0].x.length).fill(null)
412
+ }), t[11] = c[0], t[12] = C) : C = t[12], pt = [...w, ...yt.map(C)], t[8] = c, t[9] = y, t[10] = pt;
413
413
  } else
414
- Y = t[10];
415
- const A = Y;
416
- let Ft;
417
- t[13] !== A || t[14] !== y ? (Ft = y ?? A.map(Li), t[13] = A, t[14] = y, t[15] = Ft) : Ft = t[15];
418
- const gt = Ft;
419
- let q, U, J, K, Q, k, I, L, Z, _, tt, M, D, T, et;
420
- if (t[16] !== x || t[17] !== N || t[18] !== B || t[19] !== gt || t[20] !== Vt || t[21] !== n?.dataConnectors || t[22] !== n?.graphObjectValues || t[23] !== n?.xAxis?.gridLines || t[24] !== n?.xAxis?.labels || t[25] !== n?.xAxis?.title || t[26] !== n?.yAxis?.gridLines || t[27] !== n?.yAxis?.labels || t[28] !== Xt || t[29] !== X || t[30] !== A || t[31] !== $ || t[32] !== b || t[33] !== C || t[34] !== lt || t[35] !== st || t[36] !== g || t[37] !== ct || t[38] !== z || t[39] !== o.bottom || t[40] !== o.left || t[41] !== o.top || t[42] !== kt || t[43] !== Zt || t[44] !== Nt || t[45] !== pt || t[46] !== yt || t[47] !== Yt || t[48] !== P || t[49] !== rt || t[50] !== H || t[51] !== Lt || t[52] !== ot || t[53] !== Tt || t[54] !== _t || t[55] !== f || t[56] !== W || t[57] !== jt || t[58] !== wt || t[59] !== vt || t[60] !== a?.dataConnectors || t[61] !== a?.graphObjectValues || t[62] !== a?.xAxis?.gridLines || t[63] !== a?.xAxis?.labels || t[64] !== a?.xAxis?.title || t[65] !== a?.yAxis?.gridLines || t[66] !== a?.yAxis?.labels || t[67] !== Bt || t[68] !== St || t[69] !== ft || t[70] !== Dt || t[71] !== At) {
421
- const p = We().domain([pt, Zt]).range([0, st]).nice(), V = Be().domain(gt).range([0, Nt ? Math.max(lt, Nt * A.length) : kt ? Math.min(lt, kt * A.length) : lt]).paddingInner(Vt), ut = p.ticks(Yt);
422
- U = Pt.svg, Z = `${At}px`, _ = `${g}px`, tt = `0 0 ${At} ${g}`, M = "ltr", D = Ht, t[87] !== N ? (T = N ? /* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("marker", { id: "arrow", viewBox: "0 0 10 10", refX: "10", refY: "5", markerWidth: "6", markerHeight: "6", orient: "auto-start-reverse", children: /* @__PURE__ */ i.jsx("path", { d: "M 0 0 L 10 5 L 0 10 z", className: "fill-primary-gray-600 dark:fill-primary-gray-300" }) }) }) : null, t[87] = N, t[88] = T) : T = t[88], K = `translate(${o.left},${o.top})`, Q = wt ? /* @__PURE__ */ i.jsx(Je, { values: ut.filter(Ii), x: ut.filter($i).map((c) => p(c)), y1: 0 - St, y2: lt + o.bottom, styles: {
423
- gridLines: a?.xAxis?.gridLines,
424
- labels: a?.xAxis?.labels
414
+ pt = t[10];
415
+ const O = pt;
416
+ let lt;
417
+ t[13] !== O || t[14] !== y ? (lt = y ?? O.map(ji), t[13] = O, t[14] = y, t[15] = lt) : lt = t[15];
418
+ const Rt = lt;
419
+ let U, J, K, Q, Z, D, T, M, E, _, tt, et, L, $, it;
420
+ if (t[16] !== x || t[17] !== j || t[18] !== B || t[19] !== Rt || t[20] !== Lt || t[21] !== n?.dataConnectors || t[22] !== n?.graphObjectValues || t[23] !== n?.xAxis?.gridLines || t[24] !== n?.xAxis?.labels || t[25] !== n?.xAxis?.title || t[26] !== n?.yAxis?.gridLines || t[27] !== n?.yAxis?.labels || t[28] !== Yt || t[29] !== X || t[30] !== O || t[31] !== V || t[32] !== R || t[33] !== I || t[34] !== q || t[35] !== N || t[36] !== b || t[37] !== mt || t[38] !== v || t[39] !== a.bottom || t[40] !== a.left || t[41] !== a.top || t[42] !== wt || t[43] !== Kt || t[44] !== It || t[45] !== ft || t[46] !== Y || t[47] !== Et || t[48] !== P || t[49] !== dt || t[50] !== H || t[51] !== ct || t[52] !== st || t[53] !== jt || t[54] !== Qt || t[55] !== f || t[56] !== W || t[57] !== $t || t[58] !== bt || t[59] !== gt || t[60] !== o?.dataConnectors || t[61] !== o?.graphObjectValues || t[62] !== o?.xAxis?.gridLines || t[63] !== o?.xAxis?.labels || t[64] !== o?.xAxis?.title || t[65] !== o?.yAxis?.gridLines || t[66] !== o?.yAxis?.labels || t[67] !== Xt || t[68] !== Nt || t[69] !== xt || t[70] !== Vt || t[71] !== vt) {
421
+ const m = Be().domain([ft, Kt]).range([0, N]).nice(), w = Xe().domain(Rt).range([0, It ? Math.max(q, It * O.length) : wt ? Math.min(q, wt * O.length) : q]).paddingInner(Lt), yt = m.ticks(Et);
422
+ J = Wt.svg, E = `${vt}px`, _ = `${b}px`, tt = `0 0 ${vt} ${b}`, et = "ltr", L = ie, t[87] !== j ? ($ = j ? /* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("marker", { id: "arrow", viewBox: "0 0 10 10", refX: "10", refY: "5", markerWidth: "6", markerHeight: "6", orient: "auto-start-reverse", children: /* @__PURE__ */ i.jsx("path", { d: "M 0 0 L 10 5 L 0 10 z", className: "fill-primary-gray-600 dark:fill-primary-gray-300" }) }) }) : null, t[87] = j, t[88] = $) : $ = t[88], Q = `translate(${a.left},${a.top})`, Z = bt ? /* @__PURE__ */ i.jsx(Qe, { values: yt.filter(Vi), x: yt.filter(Ii).map((r) => m(r)), y1: 0 - Nt, y2: q + a.bottom, styles: {
423
+ gridLines: o?.xAxis?.gridLines,
424
+ labels: o?.xAxis?.labels
425
425
  }, classNames: {
426
426
  gridLines: n?.xAxis?.gridLines,
427
427
  labels: n?.xAxis?.labels
428
- }, suffix: Bt, prefix: Lt, labelType: "secondary", showGridLines: !0, precision: H }) : null;
429
- const v = st / 2, w = 0 - o.top + 15, s = a?.xAxis?.title, xt = n?.xAxis?.title;
430
- t[89] !== B || t[90] !== v || t[91] !== w || t[92] !== s || t[93] !== xt ? (k = /* @__PURE__ */ i.jsx(Se, { x: v, y: w, style: s, className: xt, text: B }), t[89] = B, t[90] = v, t[91] = w, t[92] = s, t[93] = xt, t[94] = k) : k = t[94];
431
- const ie = a?.yAxis?.gridLines;
432
- let bt;
433
- t[95] !== ie ? (bt = {
434
- gridLines: ie
435
- }, t[95] = ie, t[96] = bt) : bt = t[96];
436
- const ne = n?.yAxis?.gridLines;
437
- let G;
438
- t[97] !== ne ? (G = {
439
- gridLines: ne
440
- }, t[97] = ne, t[98] = G) : G = t[98], I = /* @__PURE__ */ i.jsx(Fe, { y: A.map((c) => V(`${c.id}`) + V.bandwidth() / 2), x1: 0, x2: st, styles: bt, classNames: G, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: H }), t[99] !== X ? (L = X.filter(Oi).map(Ci), t[99] = X, t[100] = L) : L = t[100], q = Ye, et = A.map((c) => /* @__PURE__ */ i.jsxs(Pt.g, { className: "undp-viz-g-with-hover", variants: {
428
+ }, suffix: Xt, prefix: ct, labelType: "secondary", showGridLines: !0, precision: H }) : null;
429
+ const C = N / 2, h = 0 - a.top + 15, rt = o?.xAxis?.title, s = n?.xAxis?.title;
430
+ t[89] !== B || t[90] !== C || t[91] !== h || t[92] !== rt || t[93] !== s ? (D = /* @__PURE__ */ i.jsx(Fe, { x: C, y: h, style: rt, className: s, text: B }), t[89] = B, t[90] = C, t[91] = h, t[92] = rt, t[93] = s, t[94] = D) : D = t[94];
431
+ const zt = o?.yAxis?.gridLines;
432
+ let kt;
433
+ t[95] !== zt ? (kt = {
434
+ gridLines: zt
435
+ }, t[95] = zt, t[96] = kt) : kt = t[96];
436
+ const ee = n?.yAxis?.gridLines;
437
+ let Mt;
438
+ t[97] !== ee ? (Mt = {
439
+ gridLines: ee
440
+ }, t[97] = ee, t[98] = Mt) : Mt = t[98], T = /* @__PURE__ */ i.jsx(Pe, { y: O.map((r) => w(`${r.id}`) + w.bandwidth() / 2), x1: 0, x2: N, styles: kt, classNames: Mt, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: H }), t[99] !== X ? (M = X.filter($i).map(Li), t[99] = X, t[100] = M) : M = t[100], U = Ee, it = O.map((r) => /* @__PURE__ */ i.jsxs(Wt.g, { className: "undp-viz-g-with-hover", variants: {
441
441
  initial: {
442
442
  x: 0,
443
- y: V(`${c.id}`) + V.bandwidth() / 2,
444
- opacity: ct.length !== 0 ? ct.indexOf(c.label) !== -1 ? 0.85 : b : 0.85
443
+ y: w(`${r.id}`) + w.bandwidth() / 2,
444
+ opacity: mt.length !== 0 ? mt.indexOf(r.label) !== -1 ? 0.85 : R : 0.85
445
445
  },
446
446
  whileInView: {
447
447
  x: 0,
448
- y: V(`${c.id}`) + V.bandwidth() / 2,
449
- opacity: ct.length !== 0 ? ct.indexOf(c.label) !== -1 ? 0.85 : b : 0.85,
448
+ y: w(`${r.id}`) + w.bandwidth() / 2,
449
+ opacity: mt.length !== 0 ? mt.indexOf(r.label) !== -1 ? 0.85 : R : 0.85,
450
450
  transition: {
451
451
  duration: x.duration
452
452
  }
453
453
  }
454
- }, initial: "initial", animate: z ? "whileInView" : "initial", exit: {
454
+ }, initial: "initial", animate: v ? "whileInView" : "initial", exit: {
455
455
  opacity: 0,
456
456
  transition: {
457
457
  duration: x.duration
458
458
  }
459
459
  }, children: [
460
- jt ? /* @__PURE__ */ i.jsx(Ke, { value: `${c.label}`.length < ft ? `${c.label}` : `${`${c.label}`.substring(0, ft)}...`, y: 0 - V.bandwidth() / 2, x: 0 - o.left, width: o.left, height: V.bandwidth(), alignment: "right", style: a?.yAxis?.labels, className: n?.yAxis?.labels, animate: x, isInView: z }) : null,
461
- /* @__PURE__ */ i.jsx(Pt.line, { y1: 0, y2: 0, style: {
462
- strokeWidth: Xt,
463
- ...a?.dataConnectors || {},
460
+ $t ? /* @__PURE__ */ i.jsx(Ze, { value: `${r.label}`.length < xt ? `${r.label}` : `${`${r.label}`.substring(0, xt)}...`, y: 0 - w.bandwidth() / 2, x: 0 - a.left, width: a.left, height: w.bandwidth(), alignment: "right", style: o?.yAxis?.labels, className: n?.yAxis?.labels, animate: x, isInView: v }) : null,
461
+ /* @__PURE__ */ i.jsx(Wt.line, { y1: 0, y2: 0, style: {
462
+ strokeWidth: Yt,
463
+ ...o?.dataConnectors || {},
464
464
  opacity: W ? 0.3 : 1
465
- }, className: we("stroke-primary-gray-600 dark:stroke-primary-gray-300", n?.dataConnectors), markerEnd: N && c.x.indexOf(Math.min(...c.x.filter(Mi))) === 0 ? "url(#arrow)" : "", markerStart: N && c.x.indexOf(Math.min(...c.x.filter(ki))) === c.x.length - 1 ? "url(#arrow)" : "", exit: {
465
+ }, className: be("stroke-primary-gray-600 dark:stroke-primary-gray-300", n?.dataConnectors), markerEnd: j && r.x.indexOf(Math.min(...r.x.filter(Oi))) === 0 ? "url(#arrow)" : "", markerStart: j && r.x.indexOf(Math.min(...r.x.filter(Ci))) === r.x.length - 1 ? "url(#arrow)" : "", exit: {
466
466
  opacity: 0,
467
467
  transition: {
468
468
  duration: x.duration
@@ -473,39 +473,39 @@ function gi(e) {
473
473
  x2: 0
474
474
  },
475
475
  whileInView: {
476
- x1: p(Math.min(...c.x.filter(Ai))) + ot,
477
- x2: p(Math.max(...c.x.filter(wi))) - ot,
476
+ x1: m(Math.min(...r.x.filter(Mi))) + st,
477
+ x2: m(Math.max(...r.x.filter(ki))) - st,
478
478
  transition: {
479
479
  duration: x.duration
480
480
  }
481
481
  }
482
- }, initial: "initial", animate: z ? "whileInView" : "initial" }),
483
- c.x.map((F, l) => /* @__PURE__ */ i.jsx(Pt.g, { onMouseEnter: (j) => {
484
- ht({
485
- ...c,
486
- xIndex: l
487
- }), Ot(j.clientY), Ct(j.clientX), rt?.({
488
- ...c,
489
- xIndex: l
482
+ }, initial: "initial", animate: v ? "whileInView" : "initial" }),
483
+ r.x.map((A, F) => /* @__PURE__ */ i.jsx(Wt.g, { onMouseEnter: (l) => {
484
+ _t({
485
+ ...r,
486
+ xIndex: F
487
+ }), Pt(l.clientY), St(l.clientX), dt?.({
488
+ ...r,
489
+ xIndex: F
490
490
  });
491
491
  }, onClick: () => {
492
- (P || $) && (De(yt, {
493
- ...c,
494
- xIndex: l
495
- }) && _t ? (qt(void 0), P?.(void 0)) : (qt({
496
- ...c,
497
- xIndex: l
492
+ (P || V) && (Te(Y, {
493
+ ...r,
494
+ xIndex: F
495
+ }) && Qt ? (te(void 0), P?.(void 0)) : (te({
496
+ ...r,
497
+ xIndex: F
498
498
  }), P && P({
499
- ...c,
500
- xIndex: l
499
+ ...r,
500
+ xIndex: F
501
501
  })));
502
- }, onMouseMove: (j) => {
503
- ht({
504
- ...c,
505
- xIndex: l
506
- }), Ot(j.clientY), Ct(j.clientX);
502
+ }, onMouseMove: (l) => {
503
+ _t({
504
+ ...r,
505
+ xIndex: F
506
+ }), Pt(l.clientY), St(l.clientX);
507
507
  }, onMouseLeave: () => {
508
- ht(void 0), Ct(void 0), Ot(void 0), rt?.(void 0);
508
+ _t(void 0), St(void 0), Pt(void 0), dt?.(void 0);
509
509
  }, exit: {
510
510
  opacity: 0,
511
511
  transition: {
@@ -513,21 +513,21 @@ function gi(e) {
513
513
  }
514
514
  }, variants: {
515
515
  initial: {
516
- opacity: W ? C[l] === W ? 1 : 0.3 : 1
516
+ opacity: W ? I[F] === W ? 1 : 0.3 : 1
517
517
  },
518
518
  whileInView: {
519
- opacity: W ? C[l] === W ? 1 : 0.3 : 1,
519
+ opacity: W ? I[F] === W ? 1 : 0.3 : 1,
520
520
  transition: {
521
521
  duration: x.duration
522
522
  }
523
523
  }
524
- }, initial: "initial", animate: z ? "whileInView" : "initial", children: Wt(F) ? null : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
525
- /* @__PURE__ */ i.jsx(Pt.circle, { cy: 0, r: ot, style: {
526
- fill: C[l],
524
+ }, initial: "initial", animate: v ? "whileInView" : "initial", children: Bt(A) ? null : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
525
+ /* @__PURE__ */ i.jsx(Wt.circle, { cy: 0, r: st, style: {
526
+ fill: I[F],
527
527
  fillOpacity: 0.85,
528
- stroke: C[l],
528
+ stroke: I[F],
529
529
  strokeWidth: 1,
530
- opacity: Wt(F) ? 0 : 1
530
+ opacity: Bt(A) ? 0 : 1
531
531
  }, exit: {
532
532
  opacity: 0,
533
533
  transition: {
@@ -535,272 +535,267 @@ function gi(e) {
535
535
  }
536
536
  }, variants: {
537
537
  initial: {
538
- cx: p(0),
538
+ cx: m(0),
539
539
  opacity: 0
540
540
  },
541
541
  whileInView: {
542
- cx: p(F || 0),
543
- opacity: Wt(F) ? 0 : 1,
542
+ cx: m(A || 0),
543
+ opacity: Bt(A) ? 0 : 1,
544
544
  transition: {
545
545
  duration: x.duration
546
546
  }
547
547
  }
548
- }, initial: "initial", animate: z ? "whileInView" : "initial" }),
549
- vt ? /* @__PURE__ */ i.jsx(Pt.text, { y: 0, style: {
548
+ }, initial: "initial", animate: v ? "whileInView" : "initial" }),
549
+ gt ? /* @__PURE__ */ i.jsx(Wt.text, { y: 0, style: {
550
550
  textAnchor: "middle",
551
- ...a?.graphObjectValues || {}
552
- }, dx: 0, dy: 0 - ot - 3, className: we("graph-value text-sm font-bold", Wt(F) ? "0opacity-0" : "opacity-100", n?.graphObjectValues), exit: {
551
+ ...o?.graphObjectValues || {}
552
+ }, dx: 0, dy: 0 - st - 3, className: be("graph-value text-sm font-bold", Bt(A) ? "0opacity-0" : "opacity-100", n?.graphObjectValues), exit: {
553
553
  opacity: 0,
554
554
  transition: {
555
555
  duration: x.duration
556
556
  }
557
557
  }, variants: {
558
558
  initial: {
559
- x: p(0),
559
+ x: m(0),
560
560
  opacity: 0,
561
- fill: Dt || C[l]
561
+ fill: Vt || I[F]
562
562
  },
563
563
  whileInView: {
564
- x: p(F || 0),
565
- fill: Dt || C[l],
564
+ x: m(A || 0),
565
+ fill: Vt || I[F],
566
566
  opacity: 1,
567
567
  transition: {
568
568
  duration: x.duration
569
569
  }
570
570
  }
571
- }, initial: "initial", animate: z ? "whileInView" : "initial", children: Ie(F, "NA", H, Lt, Bt) }) : null
572
- ] }) }, l))
573
- ] }, c.label)), J = Tt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Tt.map((c, F) => /* @__PURE__ */ i.jsx(qe, { text: c.text, color: c.color, x: p(c.value), y1: 0 - o.top, y2: lt + o.bottom, textSide: p(c.value) > st * 0.75 || f ? "left" : "right", classNames: c.classNames, styles: c.styles, animate: x, isInView: z }, F)) }) : null, t[16] = x, t[17] = N, t[18] = B, t[19] = gt, t[20] = Vt, t[21] = n?.dataConnectors, t[22] = n?.graphObjectValues, t[23] = n?.xAxis?.gridLines, t[24] = n?.xAxis?.labels, t[25] = n?.xAxis?.title, t[26] = n?.yAxis?.gridLines, t[27] = n?.yAxis?.labels, t[28] = Xt, t[29] = X, t[30] = A, t[31] = $, t[32] = b, t[33] = C, t[34] = lt, t[35] = st, t[36] = g, t[37] = ct, t[38] = z, t[39] = o.bottom, t[40] = o.left, t[41] = o.top, t[42] = kt, t[43] = Zt, t[44] = Nt, t[45] = pt, t[46] = yt, t[47] = Yt, t[48] = P, t[49] = rt, t[50] = H, t[51] = Lt, t[52] = ot, t[53] = Tt, t[54] = _t, t[55] = f, t[56] = W, t[57] = jt, t[58] = wt, t[59] = vt, t[60] = a?.dataConnectors, t[61] = a?.graphObjectValues, t[62] = a?.xAxis?.gridLines, t[63] = a?.xAxis?.labels, t[64] = a?.xAxis?.title, t[65] = a?.yAxis?.gridLines, t[66] = a?.yAxis?.labels, t[67] = Bt, t[68] = St, t[69] = ft, t[70] = Dt, t[71] = At, t[72] = q, t[73] = U, t[74] = J, t[75] = K, t[76] = Q, t[77] = k, t[78] = I, t[79] = L, t[80] = Z, t[81] = _, t[82] = tt, t[83] = M, t[84] = D, t[85] = T, t[86] = et;
571
+ }, initial: "initial", animate: v ? "whileInView" : "initial", children: $e(A, "NA", H, ct, Xt) }) : null
572
+ ] }) }, F))
573
+ ] }, r.label)), K = jt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: jt.map((r, A) => /* @__PURE__ */ i.jsx(Je, { text: r.text, color: r.color, x: m(r.value), y1: 0 - a.top, y2: q + a.bottom, textSide: m(r.value) > N * 0.75 || f ? "left" : "right", classNames: r.classNames, styles: r.styles, animate: x, isInView: v }, A)) }) : null, t[16] = x, t[17] = j, t[18] = B, t[19] = Rt, t[20] = Lt, t[21] = n?.dataConnectors, t[22] = n?.graphObjectValues, t[23] = n?.xAxis?.gridLines, t[24] = n?.xAxis?.labels, t[25] = n?.xAxis?.title, t[26] = n?.yAxis?.gridLines, t[27] = n?.yAxis?.labels, t[28] = Yt, t[29] = X, t[30] = O, t[31] = V, t[32] = R, t[33] = I, t[34] = q, t[35] = N, t[36] = b, t[37] = mt, t[38] = v, t[39] = a.bottom, t[40] = a.left, t[41] = a.top, t[42] = wt, t[43] = Kt, t[44] = It, t[45] = ft, t[46] = Y, t[47] = Et, t[48] = P, t[49] = dt, t[50] = H, t[51] = ct, t[52] = st, t[53] = jt, t[54] = Qt, t[55] = f, t[56] = W, t[57] = $t, t[58] = bt, t[59] = gt, t[60] = o?.dataConnectors, t[61] = o?.graphObjectValues, t[62] = o?.xAxis?.gridLines, t[63] = o?.xAxis?.labels, t[64] = o?.xAxis?.title, t[65] = o?.yAxis?.gridLines, t[66] = o?.yAxis?.labels, t[67] = Xt, t[68] = Nt, t[69] = xt, t[70] = Vt, t[71] = vt, t[72] = U, t[73] = J, t[74] = K, t[75] = Q, t[76] = Z, t[77] = D, t[78] = T, t[79] = M, t[80] = E, t[81] = _, t[82] = tt, t[83] = et, t[84] = L, t[85] = $, t[86] = it;
574
574
  } else
575
- q = t[72], U = t[73], J = t[74], K = t[75], Q = t[76], k = t[77], I = t[78], L = t[79], Z = t[80], _ = t[81], tt = t[82], M = t[83], D = t[84], T = t[85], et = t[86];
576
- let it;
577
- t[101] !== q || t[102] !== J || t[103] !== et ? (it = /* @__PURE__ */ i.jsxs(q, { children: [
578
- et,
579
- J
580
- ] }), t[101] = q, t[102] = J, t[103] = et, t[104] = it) : it = t[104];
581
- let dt;
582
- t[105] !== X ? (dt = X.filter(vi).map(bi), t[105] = X, t[106] = dt) : dt = t[106];
583
- let S;
584
- t[107] !== K || t[108] !== Q || t[109] !== k || t[110] !== I || t[111] !== L || t[112] !== it || t[113] !== dt ? (S = /* @__PURE__ */ i.jsxs("g", { transform: K, children: [
585
- Q,
586
- k,
587
- I,
588
- L,
575
+ U = t[72], J = t[73], K = t[74], Q = t[75], Z = t[76], D = t[77], T = t[78], M = t[79], E = t[80], _ = t[81], tt = t[82], et = t[83], L = t[84], $ = t[85], it = t[86];
576
+ let nt;
577
+ t[101] !== U || t[102] !== K || t[103] !== it ? (nt = /* @__PURE__ */ i.jsxs(U, { children: [
589
578
  it,
590
- dt
591
- ] }), t[107] = K, t[108] = Q, t[109] = k, t[110] = I, t[111] = L, t[112] = it, t[113] = dt, t[114] = S) : S = t[114];
592
- let E;
593
- t[115] !== U || t[116] !== Z || t[117] !== _ || t[118] !== tt || t[119] !== M || t[120] !== D || t[121] !== T || t[122] !== S ? (E = /* @__PURE__ */ i.jsxs(U, { width: Z, height: _, viewBox: tt, direction: M, ref: D, children: [
579
+ K
580
+ ] }), t[101] = U, t[102] = K, t[103] = it, t[104] = nt) : nt = t[104];
581
+ let at;
582
+ t[105] !== X ? (at = X.filter(Ai).map(wi), t[105] = X, t[106] = at) : at = t[106];
583
+ let ut;
584
+ t[107] !== Q || t[108] !== Z || t[109] !== D || t[110] !== T || t[111] !== M || t[112] !== nt || t[113] !== at ? (ut = /* @__PURE__ */ i.jsxs("g", { transform: Q, children: [
585
+ Z,
586
+ D,
594
587
  T,
595
- S
596
- ] }), t[115] = U, t[116] = Z, t[117] = _, t[118] = tt, t[119] = M, t[120] = D, t[121] = T, t[122] = S, t[123] = E) : E = t[123];
597
- let nt;
598
- t[124] !== n?.tooltip || t[125] !== Mt || t[126] !== Ut || t[127] !== zt || t[128] !== a?.tooltip || t[129] !== O ? (nt = zt && O && Mt && Ut ? /* @__PURE__ */ i.jsx(Te, { data: zt, body: O, xPos: Mt, yPos: Ut, backgroundStyle: a?.tooltip, className: n?.tooltip }) : null, t[124] = n?.tooltip, t[125] = Mt, t[126] = Ut, t[127] = zt, t[128] = a?.tooltip, t[129] = O, t[130] = nt) : nt = t[130];
599
- let mt;
600
- t[131] !== n?.modal || t[132] !== $ || t[133] !== yt ? (mt = $ && yt !== void 0 ? /* @__PURE__ */ i.jsx(Pe, { body: $, data: yt, setData: qt, className: n?.modal }) : null, t[131] = n?.modal, t[132] = $, t[133] = yt, t[134] = mt) : mt = t[134];
601
- let h;
602
- return t[135] !== E || t[136] !== nt || t[137] !== mt ? (h = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
603
- E,
588
+ M,
604
589
  nt,
605
- mt
606
- ] }), t[135] = E, t[136] = nt, t[137] = mt, t[138] = h) : h = t[138], h;
590
+ at
591
+ ] }), t[107] = Q, t[108] = Z, t[109] = D, t[110] = T, t[111] = M, t[112] = nt, t[113] = at, t[114] = ut) : ut = t[114];
592
+ let S;
593
+ t[115] !== J || t[116] !== E || t[117] !== _ || t[118] !== tt || t[119] !== et || t[120] !== L || t[121] !== $ || t[122] !== ut ? (S = /* @__PURE__ */ i.jsxs(J, { width: E, height: _, viewBox: tt, direction: et, ref: L, children: [
594
+ $,
595
+ ut
596
+ ] }), t[115] = J, t[116] = E, t[117] = _, t[118] = tt, t[119] = et, t[120] = L, t[121] = $, t[122] = ut, t[123] = S) : S = t[123];
597
+ let G;
598
+ t[124] !== n?.tooltip || t[125] !== ht || t[126] !== Ft || t[127] !== Tt || t[128] !== o?.tooltip || t[129] !== k ? (G = Tt && k && ht && Ft ? /* @__PURE__ */ i.jsx(Se, { data: Tt, body: k, xPos: ht, yPos: Ft, backgroundStyle: o?.tooltip, className: n?.tooltip }) : null, t[124] = n?.tooltip, t[125] = ht, t[126] = Ft, t[127] = Tt, t[128] = o?.tooltip, t[129] = k, t[130] = G) : G = t[130];
599
+ let ot;
600
+ t[131] !== n?.modal || t[132] !== V || t[133] !== Y ? (ot = V && Y !== void 0 ? /* @__PURE__ */ i.jsx(We, { body: V, data: Y, setData: te, className: n?.modal }) : null, t[131] = n?.modal, t[132] = V, t[133] = Y, t[134] = ot) : ot = t[134];
601
+ let At;
602
+ return t[135] !== S || t[136] !== G || t[137] !== ot ? (At = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
603
+ S,
604
+ G,
605
+ ot
606
+ ] }), t[135] = S, t[136] = G, t[137] = ot, t[138] = At) : At = t[138], At;
607
607
  }
608
- function bi(e) {
608
+ function wi(e) {
609
609
  return e.layer;
610
610
  }
611
- function vi(e) {
611
+ function Ai(e) {
612
612
  return e.position === "after";
613
613
  }
614
- function wi(e) {
614
+ function ki(e) {
615
615
  return e !== null;
616
616
  }
617
- function Ai(e) {
617
+ function Mi(e) {
618
618
  return e !== null;
619
619
  }
620
- function ki(e) {
620
+ function Ci(e) {
621
621
  return e !== null;
622
622
  }
623
- function Mi(e) {
623
+ function Oi(e) {
624
624
  return e !== null;
625
625
  }
626
- function Ci(e) {
626
+ function Li(e) {
627
627
  return e.layer;
628
628
  }
629
- function Oi(e) {
629
+ function $i(e) {
630
630
  return e.position === "before";
631
631
  }
632
- function $i(e, t) {
632
+ function Ii(e, t) {
633
633
  return t !== 0;
634
634
  }
635
- function Ii(e, t) {
635
+ function Vi(e, t) {
636
636
  return t !== 0;
637
637
  }
638
- function Li(e) {
638
+ function ji(e) {
639
639
  return `${e.id}`;
640
640
  }
641
- function On(e) {
642
- const t = Le.c(130), {
643
- data: d,
644
- graphTitle: Jt,
641
+ function $n(e) {
642
+ const t = Ie.c(131), {
643
+ data: c,
644
+ graphTitle: qt,
645
645
  colors: ae,
646
- sources: Kt,
647
- graphDescription: Qt,
648
- barPadding: C,
649
- showTicks: Bt,
650
- leftMargin: Lt,
651
- rightMargin: Vt,
652
- topMargin: vt,
653
- bottomMargin: wt,
654
- truncateBy: ft,
655
- height: At,
656
- width: g,
657
- footNote: ot,
658
- colorDomain: jt,
659
- colorLegendTitle: O,
660
- padding: rt,
661
- backgroundColor: Zt,
662
- radius: pt,
646
+ sources: Ut,
647
+ graphDescription: Jt,
648
+ barPadding: I,
649
+ showTicks: Xt,
650
+ leftMargin: ct,
651
+ rightMargin: Lt,
652
+ topMargin: gt,
653
+ bottomMargin: bt,
654
+ truncateBy: xt,
655
+ height: vt,
656
+ width: b,
657
+ footNote: st,
658
+ colorDomain: $t,
659
+ colorLegendTitle: k,
660
+ padding: dt,
661
+ backgroundColor: Kt,
662
+ radius: ft,
663
663
  tooltip: P,
664
664
  showLabels: W,
665
- relativeHeight: N,
666
- onSeriesMouseOver: Xt,
667
- graphID: kt,
668
- suffix: Nt,
669
- prefix: _t,
670
- maxValue: $,
665
+ relativeHeight: j,
666
+ onSeriesMouseOver: Yt,
667
+ graphID: wt,
668
+ suffix: It,
669
+ prefix: Qt,
670
+ maxValue: V,
671
671
  minValue: B,
672
- onSeriesMouseClick: Yt,
673
- graphDownload: Dt,
674
- dataDownload: a,
672
+ onSeriesMouseClick: Et,
673
+ graphDownload: Vt,
674
+ dataDownload: o,
675
675
  showValues: n,
676
676
  sortParameter: y,
677
- arrowConnector: Tt,
677
+ arrowConnector: jt,
678
678
  connectorStrokeWidth: f,
679
679
  language: x,
680
680
  minHeight: H,
681
681
  theme: X,
682
- maxBarThickness: ct,
683
- maxNumberOfBars: b,
684
- minBarThickness: Et,
682
+ maxBarThickness: mt,
683
+ maxNumberOfBars: R,
684
+ minBarThickness: z,
685
685
  ariaLabel: Gt,
686
- resetSelectionOnDoubleClick: St,
687
- detailsOnClick: te,
688
- axisTitle: Ht,
689
- noOfTicks: R,
690
- valueColor: z,
691
- orientation: Rt,
692
- styles: r,
693
- classNames: o,
694
- labelOrder: st,
695
- refValues: lt,
696
- filterNA: zt,
697
- animate: ht,
698
- precision: yt,
699
- showColorScale: qt,
700
- customLayers: Mt,
701
- highlightedDataPoints: Ct,
702
- dimmedOpacity: Ut,
703
- timeline: Ot,
704
- sortData: Y
705
- } = e, A = ae === void 0 ? oi.light.categoricalColors.colors : ae, Ft = C === void 0 ? 0.25 : C, gt = Bt === void 0 ? !0 : Bt, q = ft === void 0 ? 999 : ft, U = Zt === void 0 ? !0 : Zt, J = pt === void 0 ? 3 : pt, K = W === void 0 ? !0 : W, Q = Nt === void 0 ? "" : Nt, k = _t === void 0 ? "" : _t, I = Dt === void 0 ? !1 : Dt, L = a === void 0 ? !1 : a, Z = n === void 0 ? !0 : n, _ = Tt === void 0 ? !1 : Tt, tt = f === void 0 ? 2 : f, M = x === void 0 ? "en" : x, D = H === void 0 ? 0 : H, T = X === void 0 ? "light" : X, et = St === void 0 ? !0 : St, it = R === void 0 ? 5 : R, dt = Rt === void 0 ? "vertical" : Rt, S = zt === void 0 ? !0 : zt, E = ht === void 0 ? !1 : ht, nt = yt === void 0 ? 2 : yt, mt = qt === void 0 ? !0 : qt;
706
- let h;
707
- t[0] !== Mt ? (h = Mt === void 0 ? [] : Mt, t[0] = Mt, t[1] = h) : h = t[1];
708
- const p = h;
709
- let V;
710
- t[2] !== Ct ? (V = Ct === void 0 ? [] : Ct, t[2] = Ct, t[3] = V) : V = t[3];
711
- const ut = V, v = Ut === void 0 ? 0.3 : Ut;
712
- let w;
713
- t[4] !== Ot ? (w = Ot === void 0 ? {
686
+ resetSelectionOnDoubleClick: Nt,
687
+ detailsOnClick: Ht,
688
+ axisTitle: ie,
689
+ noOfTicks: Dt,
690
+ valueColor: v,
691
+ orientation: Zt,
692
+ styles: p,
693
+ classNames: a,
694
+ labelOrder: N,
695
+ refValues: q,
696
+ filterNA: Tt,
697
+ animate: _t,
698
+ precision: Y,
699
+ showColorScale: te,
700
+ customLayers: ht,
701
+ highlightedDataPoints: St,
702
+ dimmedOpacity: Ft,
703
+ timeline: Pt,
704
+ sortData: pt,
705
+ hideAxisLine: O
706
+ } = e, lt = ae === void 0 ? li.light.categoricalColors.colors : ae, Rt = I === void 0 ? 0.25 : I, U = Xt === void 0 ? !0 : Xt, J = xt === void 0 ? 999 : xt, K = Kt === void 0 ? !0 : Kt, Q = ft === void 0 ? 3 : ft, Z = W === void 0 ? !0 : W, D = It === void 0 ? "" : It, T = Qt === void 0 ? "" : Qt, M = Vt === void 0 ? !1 : Vt, E = o === void 0 ? !1 : o, _ = n === void 0 ? !0 : n, tt = jt === void 0 ? !1 : jt, et = f === void 0 ? 2 : f, L = x === void 0 ? "en" : x, $ = H === void 0 ? 0 : H, it = X === void 0 ? "light" : X, nt = Nt === void 0 ? !0 : Nt, at = Dt === void 0 ? 5 : Dt, ut = Zt === void 0 ? "vertical" : Zt, S = Tt === void 0 ? !0 : Tt, G = _t === void 0 ? !1 : _t, ot = Y === void 0 ? 2 : Y, At = te === void 0 ? !0 : te;
707
+ let m;
708
+ t[0] !== ht ? (m = ht === void 0 ? [] : ht, t[0] = ht, t[1] = m) : m = t[1];
709
+ const w = m;
710
+ let yt;
711
+ t[2] !== St ? (yt = St === void 0 ? [] : St, t[2] = St, t[3] = yt) : yt = t[3];
712
+ const C = yt, h = Ft === void 0 ? 0.3 : Ft;
713
+ let rt;
714
+ t[4] !== Pt ? (rt = Pt === void 0 ? {
714
715
  enabled: !1,
715
716
  autoplay: !1,
716
717
  showOnlyActiveDate: !0
717
- } : Ot, t[4] = Ot, t[5] = w) : w = t[5];
718
- const s = w, [xt, ie] = It(0), [bt, ne] = It(0), [G, c] = It(s.autoplay);
719
- let F;
720
- if (t[6] !== d || t[7] !== s.dateFormat) {
721
- let m;
722
- t[9] !== s.dateFormat ? (m = ($t) => Ee(`${$t.date}`, s.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[9] = s.dateFormat, t[10] = m) : m = t[10], F = [...new Set(d.filter(Ui).map(m))], F.sort(qi), t[6] = d, t[7] = s.dateFormat, t[8] = F;
718
+ } : Pt, t[4] = Pt, t[5] = rt) : rt = t[5];
719
+ const s = rt, zt = O === void 0 ? !1 : O, [kt, ee] = Ot(0), [Mt, r] = Ot(0), [A, F] = Ot(s.autoplay);
720
+ let l;
721
+ if (t[6] !== c || t[7] !== s.dateFormat) {
722
+ let d;
723
+ t[9] !== s.dateFormat ? (d = (Ct) => He(`${Ct.date}`, s.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[9] = s.dateFormat, t[10] = d) : d = t[10], l = [...new Set(c.filter(Ki).map(d))], l.sort(Ji), t[6] = c, t[7] = s.dateFormat, t[8] = l;
723
724
  } else
724
- F = t[8];
725
- const l = F, [j, se] = It(s.autoplay ? 0 : l.length - 1), [u, ee] = It(void 0), at = Ae(null), oe = Ae(null);
726
- let fe, pe;
727
- t[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (fe = () => {
728
- const m = new ResizeObserver(($t) => {
729
- ie($t[0].target.clientWidth || 620), ne($t[0].target.clientHeight || 480);
725
+ l = t[8];
726
+ const u = l, [g, ne] = Ot(s.autoplay ? 0 : u.length - 1), [we, Ge] = Ot(void 0), Ae = ve(null), Ve = ve(null);
727
+ let ue, xe;
728
+ t[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ue = () => {
729
+ const d = new ResizeObserver((Ct) => {
730
+ ee(Ct[0].target.clientWidth || 620), r(Ct[0].target.clientHeight || 480);
730
731
  });
731
- return at.current && m.observe(at.current), () => m.disconnect();
732
- }, pe = [], t[11] = fe, t[12] = pe) : (fe = t[11], pe = t[12]), Ne(fe, pe);
733
- let he, ye;
734
- t[13] !== G || t[14] !== s.speed || t[15] !== l ? (he = () => {
735
- const m = setInterval(() => {
736
- se(($t) => $t < l.length - 1 ? $t + 1 : 0);
732
+ return Ae.current && d.observe(Ae.current), () => d.disconnect();
733
+ }, xe = [], t[11] = ue, t[12] = xe) : (ue = t[11], xe = t[12]), De(ue, xe);
734
+ let fe, he;
735
+ t[13] !== A || t[14] !== s.speed || t[15] !== u ? (fe = () => {
736
+ const d = setInterval(() => {
737
+ ne((Ct) => Ct < u.length - 1 ? Ct + 1 : 0);
737
738
  }, (s.speed || 2) * 1e3);
738
- return G || clearInterval(m), () => clearInterval(m);
739
- }, ye = [l, G, s.speed], t[13] = G, t[14] = s.speed, t[15] = l, t[16] = he, t[17] = ye) : (he = t[16], ye = t[17]), Ne(he, ye);
739
+ return A || clearInterval(d), () => clearInterval(d);
740
+ }, he = [u, A, s.speed], t[13] = A, t[14] = s.speed, t[15] = u, t[16] = fe, t[17] = he) : (fe = t[16], he = t[17]), De(fe, he);
740
741
  const ke = s.dateFormat || "yyyy";
741
- let ge;
742
- t[18] !== j || t[19] !== ke || t[20] !== s.showOnlyActiveDate || t[21] !== l ? (ge = Ge(l, j, s.showOnlyActiveDate, ke), t[18] = j, t[19] = ke, t[20] = s.showOnlyActiveDate, t[21] = l, t[22] = ge) : ge = t[22];
743
- const be = ge, Me = dt === "horizontal" ? gi : si, Ce = o?.graphContainer, Oe = r?.graphContainer;
744
- let le;
745
- t[23] !== o?.description || t[24] !== o?.title || t[25] !== d || t[26] !== L || t[27] !== Qt || t[28] !== I || t[29] !== Jt || t[30] !== r?.description || t[31] !== r?.title || t[32] !== g ? (le = Jt || Qt || I || L ? /* @__PURE__ */ i.jsx(_e, { styles: {
746
- title: r?.title,
747
- description: r?.description
742
+ let pe;
743
+ t[18] !== g || t[19] !== ke || t[20] !== s.showOnlyActiveDate || t[21] !== u ? (pe = Re(u, g, s.showOnlyActiveDate, ke), t[18] = g, t[19] = ke, t[20] = s.showOnlyActiveDate, t[21] = u, t[22] = pe) : pe = t[22];
744
+ const ye = pe, Me = ut === "horizontal" ? vi : ri, Ce = a?.graphContainer, Oe = p?.graphContainer;
745
+ let oe;
746
+ t[23] !== a?.description || t[24] !== a?.title || t[25] !== c || t[26] !== E || t[27] !== Jt || t[28] !== M || t[29] !== qt || t[30] !== p?.description || t[31] !== p?.title || t[32] !== b ? (oe = qt || Jt || M || E ? /* @__PURE__ */ i.jsx(ei, { styles: {
747
+ title: p?.title,
748
+ description: p?.description
748
749
  }, classNames: {
749
- title: o?.title,
750
- description: o?.description
751
- }, graphTitle: Jt, graphDescription: Qt, width: g, graphDownload: I ? oe : void 0, dataDownload: L ? d.map(zi).filter(Ri).length > 0 ? d.map(Hi).filter(Gi) : d.filter(Ei) : null }) : null, t[23] = o?.description, t[24] = o?.title, t[25] = d, t[26] = L, t[27] = Qt, t[28] = I, t[29] = Jt, t[30] = r?.description, t[31] = r?.title, t[32] = g, t[33] = le) : le = t[33];
752
- let re;
753
- t[34] !== j || t[35] !== be || t[36] !== G || t[37] !== s.enabled || t[38] !== l ? (re = s.enabled && l.length > 0 && be ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
750
+ title: a?.title,
751
+ description: a?.description
752
+ }, graphTitle: qt, graphDescription: Jt, width: b, graphDownload: M ? Ve : void 0, dataDownload: E ? c.map(Ui).filter(qi).length > 0 ? c.map(zi).filter(Ri) : c.filter(Hi) : null }) : null, t[23] = a?.description, t[24] = a?.title, t[25] = c, t[26] = E, t[27] = Jt, t[28] = M, t[29] = qt, t[30] = p?.description, t[31] = p?.title, t[32] = b, t[33] = oe) : oe = t[33];
753
+ let se;
754
+ t[34] !== g || t[35] !== ye || t[36] !== A || t[37] !== s.enabled || t[38] !== u ? (se = s.enabled && u.length > 0 && ye ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
754
755
  /* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
755
- c(!G);
756
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": G ? "Click to pause animation" : "Click to play animation", children: G ? /* @__PURE__ */ i.jsx(ti, {}) : /* @__PURE__ */ i.jsx(ei, {}) }),
757
- /* @__PURE__ */ i.jsx(He, { min: l[0], max: l[l.length - 1], marks: be, step: null, defaultValue: l[l.length - 1], value: l[j], onChangeComplete: (m) => {
758
- se(l.indexOf(m));
759
- }, onChange: (m) => {
760
- se(l.indexOf(m));
756
+ F(!A);
757
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": A ? "Click to pause animation" : "Click to play animation", children: A ? /* @__PURE__ */ i.jsx(ii, {}) : /* @__PURE__ */ i.jsx(ni, {}) }),
758
+ /* @__PURE__ */ i.jsx(ze, { min: u[0], max: u[u.length - 1], marks: ye, step: null, defaultValue: u[u.length - 1], value: u[g], onChangeComplete: (d) => {
759
+ ne(u.indexOf(d));
760
+ }, onChange: (d) => {
761
+ ne(u.indexOf(d));
761
762
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
762
- ] }) : null, t[34] = j, t[35] = be, t[36] = G, t[37] = s.enabled, t[38] = l, t[39] = re) : re = t[39];
763
+ ] }) : null, t[34] = g, t[35] = ye, t[36] = A, t[37] = s.enabled, t[38] = u, t[39] = se) : se = t[39];
764
+ let le;
765
+ t[40] !== a?.colorLegend || t[41] !== $t || t[42] !== k || t[43] !== lt || t[44] !== c.length || t[45] !== At || t[46] !== b ? (le = At && c.length > 0 ? /* @__PURE__ */ i.jsx(oi, { width: b, colorDomain: $t, colors: lt, colorLegendTitle: k, setSelectedColor: Ge, showNAColor: !1, className: a?.colorLegend }) : null, t[40] = a?.colorLegend, t[41] = $t, t[42] = k, t[43] = lt, t[44] = c.length, t[45] = At, t[46] = b, t[47] = le) : le = t[47];
766
+ let re;
767
+ t[48] !== c.length ? (re = c.length === 0 && /* @__PURE__ */ i.jsx(si, {}), t[48] = c.length, t[49] = re) : re = t[49];
763
768
  let ce;
764
- t[40] !== o?.colorLegend || t[41] !== jt || t[42] !== O || t[43] !== A || t[44] !== d.length || t[45] !== mt || t[46] !== g ? (ce = mt && d.length > 0 ? /* @__PURE__ */ i.jsx(ni, { width: g, colorDomain: jt, colors: A, colorLegendTitle: O, setSelectedColor: ee, showNAColor: !1, className: o?.colorLegend }) : null, t[40] = o?.colorLegend, t[41] = jt, t[42] = O, t[43] = A, t[44] = d.length, t[45] = mt, t[46] = g, t[47] = ce) : ce = t[47];
765
- let de;
766
- t[48] !== d.length ? (de = d.length === 0 && /* @__PURE__ */ i.jsx(ai, {}), t[48] = d.length, t[49] = de) : de = t[49];
767
- let me;
768
- t[50] !== Me || t[51] !== E || t[52] !== _ || t[53] !== Ht || t[54] !== Ft || t[55] !== wt || t[56] !== o || t[57] !== A || t[58] !== tt || t[59] !== p || t[60] !== d || t[61] !== te || t[62] !== v || t[63] !== S || t[64] !== ut || t[65] !== j || t[66] !== st || t[67] !== M || t[68] !== Lt || t[69] !== ct || t[70] !== b || t[71] !== $ || t[72] !== Et || t[73] !== B || t[74] !== it || t[75] !== Yt || t[76] !== Xt || t[77] !== nt || t[78] !== k || t[79] !== J || t[80] !== lt || t[81] !== et || t[82] !== Vt || t[83] !== u || t[84] !== K || t[85] !== gt || t[86] !== Z || t[87] !== Y || t[88] !== y || t[89] !== r || t[90] !== Q || t[91] !== bt || t[92] !== xt || t[93] !== s.dateFormat || t[94] !== s.enabled || t[95] !== P || t[96] !== vt || t[97] !== q || t[98] !== l || t[99] !== z ? (me = xt && bt && d.length > 0 ? /* @__PURE__ */ i.jsx(Me, { data: y !== void 0 ? y === "diff" ? Ve($e(d, s.dateFormat || "yyyy").filter((m) => s.enabled ? m.date === je(new Date(l[j]), s.dateFormat || "yyyy") : m).filter((m) => S ? !m.x.every(Yi) : m), Xi, [Y || "asc"]).filter((m, $t) => b ? $t < b : !0) : Ve($e(d, s.dateFormat || "yyyy").filter((m) => s.enabled ? m.date === je(new Date(l[j]), s.dateFormat || "yyyy") : m).filter((m) => S ? !m.x.every(Bi) : m), (m) => Wt(m.x[y]) ? -1 / 0 : m.x[y], [Y || "asc"]).filter((m, $t) => b ? $t < b : !0) : $e(d, s.dateFormat || "yyyy").filter((m) => S ? !m.x.every(Wi) : m).filter((m, $t) => b ? $t < b : !0), dotColors: A, width: xt, height: bt, radius: J, barPadding: Ft, showTicks: gt, leftMargin: Lt, rightMargin: Vt, topMargin: vt, bottomMargin: wt, truncateBy: q, showLabels: K, showValues: Z, tooltip: P, suffix: Q, prefix: k, onSeriesMouseOver: Xt, maxValue: Wt($) ? Math.max(...d.map(Fi)) < 0 ? 0 : Math.max(...d.map(Ti)) : $, minValue: Wt(B) ? Math.min(...d.map(Ni)) > 0 ? 0 : Math.min(...d.map(Vi)) : B, onSeriesMouseClick: Yt, selectedColor: u, arrowConnector: _, connectorStrokeWidth: tt, maxBarThickness: ct, minBarThickness: Et, resetSelectionOnDoubleClick: et, detailsOnClick: te, axisTitle: Ht, noOfTicks: it, valueColor: z, styles: r, classNames: o, labelOrder: st, refValues: lt, animate: E === !0 ? {
769
+ t[50] !== Me || t[51] !== G || t[52] !== tt || t[53] !== ie || t[54] !== Rt || t[55] !== bt || t[56] !== a || t[57] !== lt || t[58] !== et || t[59] !== w || t[60] !== c || t[61] !== Ht || t[62] !== h || t[63] !== S || t[64] !== zt || t[65] !== C || t[66] !== g || t[67] !== N || t[68] !== L || t[69] !== ct || t[70] !== mt || t[71] !== R || t[72] !== V || t[73] !== z || t[74] !== B || t[75] !== at || t[76] !== Et || t[77] !== Yt || t[78] !== ot || t[79] !== T || t[80] !== Q || t[81] !== q || t[82] !== nt || t[83] !== Lt || t[84] !== we || t[85] !== Z || t[86] !== U || t[87] !== _ || t[88] !== pt || t[89] !== y || t[90] !== p || t[91] !== D || t[92] !== Mt || t[93] !== kt || t[94] !== s.dateFormat || t[95] !== s.enabled || t[96] !== P || t[97] !== gt || t[98] !== J || t[99] !== u || t[100] !== v ? (ce = kt && Mt && c.length > 0 ? /* @__PURE__ */ i.jsx(Me, { hideAxisLine: zt, data: y !== void 0 ? y === "diff" ? je(Le(c, s.dateFormat || "yyyy").filter((d) => s.enabled ? d.date === Ne(new Date(u[g]), s.dateFormat || "yyyy") : d).filter((d) => S ? !d.x.every(Gi) : d), Ei, [pt || "asc"]).filter((d, Ct) => R ? Ct < R : !0) : je(Le(c, s.dateFormat || "yyyy").filter((d) => s.enabled ? d.date === Ne(new Date(u[g]), s.dateFormat || "yyyy") : d).filter((d) => S ? !d.x.every(Yi) : d), (d) => Bt(d.x[y]) ? -1 / 0 : d.x[y], [pt || "asc"]).filter((d, Ct) => R ? Ct < R : !0) : Le(c, s.dateFormat || "yyyy").filter((d) => S ? !d.x.every(Xi) : d).filter((d, Ct) => R ? Ct < R : !0), dotColors: lt, width: kt, height: Mt, radius: Q, barPadding: Rt, showTicks: U, leftMargin: ct, rightMargin: Lt, topMargin: gt, bottomMargin: bt, truncateBy: J, showLabels: Z, showValues: _, tooltip: P, suffix: D, prefix: T, onSeriesMouseOver: Yt, maxValue: Bt(V) ? Math.max(...c.map(Wi)) < 0 ? 0 : Math.max(...c.map(Fi)) : V, minValue: Bt(B) ? Math.min(...c.map(Ti)) > 0 ? 0 : Math.min(...c.map(Ni)) : B, onSeriesMouseClick: Et, selectedColor: we, arrowConnector: tt, connectorStrokeWidth: et, maxBarThickness: mt, minBarThickness: z, resetSelectionOnDoubleClick: nt, detailsOnClick: Ht, axisTitle: ie, noOfTicks: at, valueColor: v, styles: p, classNames: a, labelOrder: N, refValues: q, animate: G === !0 ? {
769
770
  duration: 0.5,
770
771
  once: !0,
771
772
  amount: 0.5
772
- } : E || {
773
+ } : G || {
773
774
  duration: 0,
774
775
  once: !0,
775
776
  amount: 0
776
- }, precision: nt, customLayers: p, highlightedDataPoints: ut, dimmedOpacity: v, rtl: M === "ar" || M === "he" }) : null, t[50] = Me, t[51] = E, t[52] = _, t[53] = Ht, t[54] = Ft, t[55] = wt, t[56] = o, t[57] = A, t[58] = tt, t[59] = p, t[60] = d, t[61] = te, t[62] = v, t[63] = S, t[64] = ut, t[65] = j, t[66] = st, t[67] = M, t[68] = Lt, t[69] = ct, t[70] = b, t[71] = $, t[72] = Et, t[73] = B, t[74] = it, t[75] = Yt, t[76] = Xt, t[77] = nt, t[78] = k, t[79] = J, t[80] = lt, t[81] = et, t[82] = Vt, t[83] = u, t[84] = K, t[85] = gt, t[86] = Z, t[87] = Y, t[88] = y, t[89] = r, t[90] = Q, t[91] = bt, t[92] = xt, t[93] = s.dateFormat, t[94] = s.enabled, t[95] = P, t[96] = vt, t[97] = q, t[98] = l, t[99] = z, t[100] = me) : me = t[100];
777
- let ue;
778
- t[101] !== de || t[102] !== me ? (ue = /* @__PURE__ */ i.jsxs(Qe, { ref: at, children: [
779
- de,
780
- me
781
- ] }), t[101] = de, t[102] = me, t[103] = ue) : ue = t[103];
782
- let xe;
783
- t[104] !== o?.footnote || t[105] !== o?.source || t[106] !== ot || t[107] !== Kt || t[108] !== r?.footnote || t[109] !== r?.source || t[110] !== g ? (xe = Kt || ot ? /* @__PURE__ */ i.jsx(ii, { styles: {
784
- footnote: r?.footnote,
785
- source: r?.source
777
+ }, precision: ot, customLayers: w, highlightedDataPoints: C, dimmedOpacity: h, rtl: L === "ar" || L === "he" }) : null, t[50] = Me, t[51] = G, t[52] = tt, t[53] = ie, t[54] = Rt, t[55] = bt, t[56] = a, t[57] = lt, t[58] = et, t[59] = w, t[60] = c, t[61] = Ht, t[62] = h, t[63] = S, t[64] = zt, t[65] = C, t[66] = g, t[67] = N, t[68] = L, t[69] = ct, t[70] = mt, t[71] = R, t[72] = V, t[73] = z, t[74] = B, t[75] = at, t[76] = Et, t[77] = Yt, t[78] = ot, t[79] = T, t[80] = Q, t[81] = q, t[82] = nt, t[83] = Lt, t[84] = we, t[85] = Z, t[86] = U, t[87] = _, t[88] = pt, t[89] = y, t[90] = p, t[91] = D, t[92] = Mt, t[93] = kt, t[94] = s.dateFormat, t[95] = s.enabled, t[96] = P, t[97] = gt, t[98] = J, t[99] = u, t[100] = v, t[101] = ce) : ce = t[101];
778
+ let de;
779
+ t[102] !== re || t[103] !== ce ? (de = /* @__PURE__ */ i.jsxs(_e, { ref: Ae, children: [
780
+ re,
781
+ ce
782
+ ] }), t[102] = re, t[103] = ce, t[104] = de) : de = t[104];
783
+ let me;
784
+ t[105] !== a?.footnote || t[106] !== a?.source || t[107] !== st || t[108] !== Ut || t[109] !== p?.footnote || t[110] !== p?.source || t[111] !== b ? (me = Ut || st ? /* @__PURE__ */ i.jsx(ai, { styles: {
785
+ footnote: p?.footnote,
786
+ source: p?.source
786
787
  }, classNames: {
787
- footnote: o?.footnote,
788
- source: o?.source
789
- }, sources: Kt, footNote: ot, width: g }) : null, t[104] = o?.footnote, t[105] = o?.source, t[106] = ot, t[107] = Kt, t[108] = r?.footnote, t[109] = r?.source, t[110] = g, t[111] = xe) : xe = t[111];
790
- let ve;
791
- return t[112] !== Gt || t[113] !== U || t[114] !== kt || t[115] !== At || t[116] !== M || t[117] !== D || t[118] !== rt || t[119] !== N || t[120] !== Ce || t[121] !== Oe || t[122] !== le || t[123] !== re || t[124] !== ce || t[125] !== ue || t[126] !== xe || t[127] !== T || t[128] !== g ? (ve = /* @__PURE__ */ i.jsxs(Ze, { className: Ce, style: Oe, id: kt, ref: oe, "aria-label": Gt, backgroundColor: U, theme: T, language: M, minHeight: D, width: g, height: At, relativeHeight: N, padding: rt, children: [
788
+ footnote: a?.footnote,
789
+ source: a?.source
790
+ }, sources: Ut, footNote: st, width: b }) : null, t[105] = a?.footnote, t[106] = a?.source, t[107] = st, t[108] = Ut, t[109] = p?.footnote, t[110] = p?.source, t[111] = b, t[112] = me) : me = t[112];
791
+ let ge;
792
+ return t[113] !== Gt || t[114] !== K || t[115] !== wt || t[116] !== vt || t[117] !== L || t[118] !== $ || t[119] !== dt || t[120] !== j || t[121] !== Ce || t[122] !== Oe || t[123] !== oe || t[124] !== se || t[125] !== le || t[126] !== de || t[127] !== me || t[128] !== it || t[129] !== b ? (ge = /* @__PURE__ */ i.jsxs(ti, { className: Ce, style: Oe, id: wt, ref: Ve, "aria-label": Gt, backgroundColor: K, theme: it, language: L, minHeight: $, width: b, height: vt, relativeHeight: j, padding: dt, children: [
793
+ oe,
794
+ se,
792
795
  le,
793
- re,
794
- ce,
795
- ue,
796
- xe
797
- ] }), t[112] = Gt, t[113] = U, t[114] = kt, t[115] = At, t[116] = M, t[117] = D, t[118] = rt, t[119] = N, t[120] = Ce, t[121] = Oe, t[122] = le, t[123] = re, t[124] = ce, t[125] = ue, t[126] = xe, t[127] = T, t[128] = g, t[129] = ve) : ve = t[129], ve;
798
- }
799
- function Vi(e) {
800
- return Math.min(...e.x.filter(ji));
801
- }
802
- function ji(e) {
803
- return e !== null;
796
+ de,
797
+ me
798
+ ] }), t[113] = Gt, t[114] = K, t[115] = wt, t[116] = vt, t[117] = L, t[118] = $, t[119] = dt, t[120] = j, t[121] = Ce, t[122] = Oe, t[123] = oe, t[124] = se, t[125] = le, t[126] = de, t[127] = me, t[128] = it, t[129] = b, t[130] = ge) : ge = t[130], ge;
804
799
  }
805
800
  function Ni(e) {
806
801
  return Math.min(...e.x.filter(Di));
@@ -809,7 +804,7 @@ function Di(e) {
809
804
  return e !== null;
810
805
  }
811
806
  function Ti(e) {
812
- return Math.max(...e.x.filter(Si));
807
+ return Math.min(...e.x.filter(Si));
813
808
  }
814
809
  function Si(e) {
815
810
  return e !== null;
@@ -821,25 +816,25 @@ function Pi(e) {
821
816
  return e !== null;
822
817
  }
823
818
  function Wi(e) {
824
- return e == null;
819
+ return Math.max(...e.x.filter(Bi));
825
820
  }
826
821
  function Bi(e) {
827
- return e == null;
822
+ return e !== null;
828
823
  }
829
824
  function Xi(e) {
830
- return Wt(e.x[e.x.length - 1]) || Wt(e.x[0]) ? -1 / 0 : e.x[e.x.length - 1] - e.x[0];
825
+ return e == null;
831
826
  }
832
827
  function Yi(e) {
833
828
  return e == null;
834
829
  }
835
830
  function Ei(e) {
836
- return e !== void 0;
831
+ return Bt(e.x[e.x.length - 1]) || Bt(e.x[0]) ? -1 / 0 : e.x[e.x.length - 1] - e.x[0];
837
832
  }
838
833
  function Gi(e) {
839
- return e !== void 0;
834
+ return e == null;
840
835
  }
841
836
  function Hi(e) {
842
- return e.data;
837
+ return e !== void 0;
843
838
  }
844
839
  function Ri(e) {
845
840
  return e !== void 0;
@@ -847,13 +842,19 @@ function Ri(e) {
847
842
  function zi(e) {
848
843
  return e.data;
849
844
  }
850
- function qi(e, t) {
851
- return e - t;
845
+ function qi(e) {
846
+ return e !== void 0;
852
847
  }
853
848
  function Ui(e) {
849
+ return e.data;
850
+ }
851
+ function Ji(e, t) {
852
+ return e - t;
853
+ }
854
+ function Ki(e) {
854
855
  return e.date;
855
856
  }
856
857
  export {
857
- On as DumbbellChart
858
+ $n as DumbbellChart
858
859
  };
859
860
  //# sourceMappingURL=DumbbellChart.js.map