@undp/data-viz 2.3.19 → 2.4.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 (95) hide show
  1. package/dist/BarGraph.cjs +1 -1
  2. package/dist/BarGraph.cjs.map +1 -1
  3. package/dist/BarGraph.js +1360 -1363
  4. package/dist/BarGraph.js.map +1 -1
  5. package/dist/BeeSwarmChart.cjs +1 -1
  6. package/dist/BeeSwarmChart.cjs.map +1 -1
  7. package/dist/BeeSwarmChart.js +302 -305
  8. package/dist/BeeSwarmChart.js.map +1 -1
  9. package/dist/BiVariateChoroplethMap.cjs +1 -1
  10. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  11. package/dist/BiVariateChoroplethMap.js +4 -4
  12. package/dist/BiVariateChoroplethMap.js.map +1 -1
  13. package/dist/BulletChart.cjs +1 -1
  14. package/dist/BulletChart.cjs.map +1 -1
  15. package/dist/BulletChart.js +591 -594
  16. package/dist/BulletChart.js.map +1 -1
  17. package/dist/ChoroplethMap.cjs +1 -1
  18. package/dist/ChoroplethMap.cjs.map +1 -1
  19. package/dist/ChoroplethMap.js +4 -4
  20. package/dist/ChoroplethMap.js.map +1 -1
  21. package/dist/CirclePackingGraph.cjs +1 -1
  22. package/dist/CirclePackingGraph.js +1 -1
  23. package/dist/DotDensityMap.cjs +1 -1
  24. package/dist/DotDensityMap.cjs.map +1 -1
  25. package/dist/DotDensityMap.js +255 -258
  26. package/dist/DotDensityMap.js.map +1 -1
  27. package/dist/DumbbellChart.cjs +1 -1
  28. package/dist/DumbbellChart.cjs.map +1 -1
  29. package/dist/DumbbellChart.js +553 -556
  30. package/dist/DumbbellChart.js.map +1 -1
  31. package/dist/{GraphEl-Dorm_qQE.js → GraphEl-B73N4RIA.js} +2 -2
  32. package/dist/{GraphEl-Dorm_qQE.js.map → GraphEl-B73N4RIA.js.map} +1 -1
  33. package/dist/{GraphEl-D8WRC8-j.cjs → GraphEl-Lt1og0C-.cjs} +2 -2
  34. package/dist/{GraphEl-D8WRC8-j.cjs.map → GraphEl-Lt1og0C-.cjs.map} +1 -1
  35. package/dist/GriddedGraphs.cjs +1 -1
  36. package/dist/GriddedGraphs.js +1 -1
  37. package/dist/Histogram.cjs +1 -1
  38. package/dist/Histogram.js +1 -1
  39. package/dist/HybridMap.cjs +1 -1
  40. package/dist/HybridMap.cjs.map +1 -1
  41. package/dist/HybridMap.js +310 -313
  42. package/dist/HybridMap.js.map +1 -1
  43. package/dist/MultiLineAltChart.cjs +1 -1
  44. package/dist/MultiLineAltChart.cjs.map +1 -1
  45. package/dist/MultiLineAltChart.js +269 -272
  46. package/dist/MultiLineAltChart.js.map +1 -1
  47. package/dist/MultiLineChart.cjs +1 -1
  48. package/dist/MultiLineChart.cjs.map +1 -1
  49. package/dist/MultiLineChart.js +319 -322
  50. package/dist/MultiLineChart.js.map +1 -1
  51. package/dist/RadarChart.cjs +1 -1
  52. package/dist/RadarChart.cjs.map +1 -1
  53. package/dist/RadarChart.js +3 -3
  54. package/dist/RadarChart.js.map +1 -1
  55. package/dist/SankeyChart.cjs +1 -1
  56. package/dist/SankeyChart.cjs.map +1 -1
  57. package/dist/SankeyChart.js +274 -280
  58. package/dist/SankeyChart.js.map +1 -1
  59. package/dist/ScatterPlot.cjs +1 -1
  60. package/dist/ScatterPlot.cjs.map +1 -1
  61. package/dist/ScatterPlot.js +341 -344
  62. package/dist/ScatterPlot.js.map +1 -1
  63. package/dist/SingleGraphDashboard.cjs +1 -1
  64. package/dist/SingleGraphDashboard.js +1 -1
  65. package/dist/SlopeChart.cjs +1 -1
  66. package/dist/SlopeChart.cjs.map +1 -1
  67. package/dist/SlopeChart.js +251 -254
  68. package/dist/SlopeChart.js.map +1 -1
  69. package/dist/StripChart.cjs +1 -1
  70. package/dist/StripChart.cjs.map +1 -1
  71. package/dist/StripChart.js +292 -295
  72. package/dist/StripChart.js.map +1 -1
  73. package/dist/ThreeDGlobe.cjs +1 -1
  74. package/dist/ThreeDGlobe.cjs.map +1 -1
  75. package/dist/ThreeDGlobe.js +3 -3
  76. package/dist/ThreeDGlobe.js.map +1 -1
  77. package/dist/TreeMapGraph.cjs +1 -1
  78. package/dist/TreeMapGraph.cjs.map +1 -1
  79. package/dist/TreeMapGraph.js +196 -199
  80. package/dist/TreeMapGraph.js.map +1 -1
  81. package/dist/WaterfallChart.cjs +1 -1
  82. package/dist/WaterfallChart.cjs.map +1 -1
  83. package/dist/WaterfallChart.js +274 -277
  84. package/dist/WaterfallChart.js.map +1 -1
  85. package/dist/index-B0Awa_de.js +377 -0
  86. package/dist/index-B0Awa_de.js.map +1 -0
  87. package/dist/index-CP8cmNzt.cjs +2 -0
  88. package/dist/index-CP8cmNzt.cjs.map +1 -0
  89. package/dist/index.cjs +1 -1
  90. package/dist/index.js +1 -1
  91. package/package.json +1 -1
  92. package/dist/index-Bdo_HXb_.cjs +0 -2
  93. package/dist/index-Bdo_HXb_.cjs.map +0 -1
  94. package/dist/index-CGrBpeUa.js +0 -380
  95. package/dist/index-CGrBpeUa.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { c as mi, j as l, m as oi } from "./index-CHPV5EwG-BzibaIRc.js";
2
2
  import { f as pi, p as gi } from "./parse-Dv4of-PN.js";
3
- import { useRef as ii, useState as qt, useEffect as si } from "react";
3
+ import { useRef as ii, useState as Et, useEffect as si } from "react";
4
4
  import { g as hi, N as yi } from "./getSliderMarks-X-_goqH9.js";
5
5
  import { i as ni } from "./index-Bwrro8-q.js";
6
6
  import { o as vi } from "./index-BZQYSqar.js";
@@ -14,15 +14,15 @@ import { A as ri } from "./Axis-CNZYWzH0.js";
14
14
  import { A as ai } from "./AxisTitle-CyLCqpW6.js";
15
15
  import { X as ji } from "./XTicksAndGridLines-gdbGX2rm.js";
16
16
  import { R as Vi, a as $i } from "./ReferenceLine-D41VuUhE.js";
17
- import { R as Di } from "./RegressionLine-CuwB42I6.js";
18
- import { Y as ki } from "./YTicksAndGridLines-CsNSq9W9.js";
17
+ import { R as ki } from "./RegressionLine-CuwB42I6.js";
18
+ import { Y as Di } from "./YTicksAndGridLines-CsNSq9W9.js";
19
19
  import { a as Si } from "./index-DHVGV8Df.js";
20
20
  import { D as Mi } from "./DetailsModal-B2XBWR7w.js";
21
21
  import { s as Ni } from "./pow-BXYLJHCq.js";
22
22
  import { a as ci } from "./linear-DNXM5Pdl.js";
23
- import { D as Pi } from "./delaunay-C1uAf38t.js";
24
- import { m as Ue } from "./proxy-BsxtcZKa.js";
25
- import { u as Ti } from "./use-in-view-KOXq5Kmc.js";
23
+ import { D as Ti } from "./delaunay-C1uAf38t.js";
24
+ import { m as ze } from "./proxy-BsxtcZKa.js";
25
+ import { u as Pi } from "./use-in-view-KOXq5Kmc.js";
26
26
  import { A as fi } from "./index-Cv_5q6Rb.js";
27
27
  import { GraphFooter as Xi } from "./GraphFooter.js";
28
28
  import { GraphHeader as Yi } from "./GraphHeader.js";
@@ -37,343 +37,343 @@ function qi(i) {
37
37
  data: o,
38
38
  width: ot,
39
39
  height: V,
40
- showLabels: Bt,
41
- colors: u,
40
+ showLabels: Gt,
41
+ colors: m,
42
42
  colorDomain: L,
43
43
  radius: F,
44
44
  xAxisTitle: y,
45
45
  yAxisTitle: B,
46
46
  leftMargin: H,
47
- rightMargin: ge,
48
- topMargin: ke,
49
- bottomMargin: We,
50
- tooltip: he,
47
+ rightMargin: me,
48
+ topMargin: $e,
49
+ bottomMargin: He,
50
+ tooltip: xe,
51
51
  onSeriesMouseOver: st,
52
- refXValues: Se,
53
- refYValues: Me,
54
- highlightAreaSettings: Ne,
55
- selectedColor: $t,
52
+ refXValues: ke,
53
+ refYValues: De,
54
+ highlightAreaSettings: Se,
55
+ selectedColor: Vt,
56
56
  highlightedDataPoints: z,
57
- maxRadiusValue: ye,
58
- maxXValue: ve,
57
+ maxRadiusValue: de,
58
+ maxXValue: pe,
59
59
  minXValue: j,
60
- maxYValue: zt,
60
+ maxYValue: qt,
61
61
  minYValue: O,
62
- onSeriesMouseClick: k,
63
- rtl: Ut,
64
- annotations: Jt,
65
- customHighlightAreaSettings: Kt,
66
- regressionLine: Dt,
62
+ onSeriesMouseClick: D,
63
+ rtl: Bt,
64
+ annotations: ge,
65
+ customHighlightAreaSettings: zt,
66
+ regressionLine: $t,
67
67
  resetSelectionOnDoubleClick: kt,
68
68
  detailsOnClick: S,
69
- noOfXTicks: Qt,
70
- noOfYTicks: Zt,
69
+ noOfXTicks: Ut,
70
+ noOfYTicks: Jt,
71
71
  labelColor: U,
72
- xSuffix: St,
73
- ySuffix: Mt,
74
- xPrefix: Nt,
75
- yPrefix: Pt,
72
+ xSuffix: Dt,
73
+ ySuffix: St,
74
+ xPrefix: Mt,
75
+ yPrefix: Nt,
76
76
  styles: s,
77
77
  classNames: n,
78
- animate: c,
78
+ animate: f,
79
79
  dimmedOpacity: M,
80
80
  precision: N,
81
- showHighlightedDataPointsLabels: Pe,
82
- customLayers: P,
83
- showVoronoiTesselation: _t,
84
- useVoronoiInteraction: Te,
85
- locale: T
86
- } = i, Xe = ii(null);
87
- let be;
88
- t[0] !== c.amount || t[1] !== c.once ? (be = {
89
- once: c.once,
90
- amount: c.amount
91
- }, t[0] = c.amount, t[1] = c.once, t[2] = be) : be = t[2];
92
- const b = Ti(Xe, be), [X, Tt] = qt(void 0), [W, d] = qt(void 0), [m, Xt] = qt(void 0), [Ae, Yt] = qt(void 0), te = y ? We + 50 : We, ee = B ? H + 30 : H;
93
- let Oe;
94
- t[3] !== ge || t[4] !== te || t[5] !== ee || t[6] !== ke ? (Oe = {
95
- top: ke,
96
- bottom: te,
97
- left: ee,
98
- right: ge
99
- }, t[3] = ge, t[4] = te, t[5] = ee, t[6] = ke, t[7] = Oe) : Oe = t[7];
100
- const h = Oe;
101
- let It, nt, lt, rt, at, ct, E, ft, ut, mt, J, xt, K, dt, Q, pt, G, Z;
102
- if (t[8] !== c || t[9] !== Jt || t[10] !== n?.graphObjectValues || t[11] !== n?.regLine || t[12] !== n?.xAxis?.axis || t[13] !== n?.xAxis?.gridLines || t[14] !== n?.xAxis?.labels || t[15] !== n?.xAxis?.title || t[16] !== n?.yAxis?.gridLines || t[17] !== n?.yAxis?.labels || t[18] !== n?.yAxis?.title || t[19] !== L || t[20] !== u || t[21] !== Kt || t[22] !== P || t[23] !== o || t[24] !== S || t[25] !== M || t[26] !== V || t[27] !== Ne || t[28] !== z || t[29] !== b || t[30] !== U || t[31] !== H || t[32] !== T || t[33] !== h.bottom || t[34] !== h.left || t[35] !== h.right || t[36] !== h.top || t[37] !== ye || t[38] !== ve || t[39] !== zt || t[40] !== j || t[41] !== O || t[42] !== W || t[43] !== X || t[44] !== Qt || t[45] !== Zt || t[46] !== k || t[47] !== st || t[48] !== N || t[49] !== F || t[50] !== Se || t[51] !== Me || t[52] !== Dt || t[53] !== kt || t[54] !== Ut || t[55] !== $t || t[56] !== Pe || t[57] !== Bt || t[58] !== _t || t[59] !== s?.graphObjectValues || t[60] !== s?.regLine || t[61] !== s?.xAxis?.axis || t[62] !== s?.xAxis?.gridLines || t[63] !== s?.xAxis?.labels || t[64] !== s?.xAxis?.title || t[65] !== s?.yAxis?.gridLines || t[66] !== s?.yAxis?.labels || t[67] !== s?.yAxis?.title || t[68] !== Te || t[69] !== ot || t[70] !== y || t[71] !== Nt || t[72] !== St || t[73] !== B || t[74] !== Pt || t[75] !== Mt) {
103
- const ie = o.map(xo), p = ot - h.left - h.right, v = V - h.top - h.bottom, $ = o.filter(mo).length !== o.length ? Ni().domain([0, ye]).range([0.25, F]).nice() : void 0, Ft = ie.filter(uo).length === 0 ? ie.filter(fo) : vi(ie.filter(co), "radius", "desc"), f = ci().domain([j, ve]).range([0, p]).nice(), x = ci().domain([O, zt]).range([v, 0]).nice(), Ye = f.ticks(Qt), q = x.ticks(Zt), Ee = Pi.from(Ft, (e) => f(e.x), (e) => x(e.y)).voronoi([0, 0, p < 0 ? 0 : p, v < 0 ? 0 : v]), Ge = bi(o.filter(ao).map((e) => [f(e.x), x(e.y)])), Ie = Ai(Ge);
104
- nt = Ue.svg, ft = `${ot}px`, ut = `${V}px`, mt = `0 0 ${ot} ${V}`, J = "ltr", xt = Xe, lt = `translate(${h.left},${h.top})`;
105
- let oe;
106
- t[94] !== c || t[95] !== Kt || t[96] !== b || t[97] !== f || t[98] !== x ? (oe = /* @__PURE__ */ l.jsx(Li, { areaSettings: Kt, scaleX: f, scaleY: x, animate: c, isInView: b }, "custom-area"), t[94] = c, t[95] = Kt, t[96] = b, t[97] = f, t[98] = x, t[99] = oe) : oe = t[99], rt = /* @__PURE__ */ l.jsxs(fi, { children: [
107
- /* @__PURE__ */ l.jsx(Si, { areaSettings: Ne, width: p, height: v, scaleX: f, scaleY: x, animate: c, isInView: b }, "highlight-area"),
108
- oe
81
+ showHighlightedDataPointsLabels: Me,
82
+ customLayers: T,
83
+ showVoronoiTesselation: Kt,
84
+ useVoronoiInteraction: Ne,
85
+ locale: P
86
+ } = i, Te = ii(null);
87
+ let he;
88
+ t[0] !== f.amount || t[1] !== f.once ? (he = {
89
+ once: f.once,
90
+ amount: f.amount
91
+ }, t[0] = f.amount, t[1] = f.once, t[2] = he) : he = t[2];
92
+ const v = Pi(Te, he), [X, Tt] = Et(void 0), [W, d] = Et(void 0), [x, Pt] = Et(void 0), [ye, Xt] = Et(void 0), Qt = y ? He + 50 : He, Zt = B ? H + 30 : H;
93
+ let ve;
94
+ t[3] !== me || t[4] !== Qt || t[5] !== Zt || t[6] !== $e ? (ve = {
95
+ top: $e,
96
+ bottom: Qt,
97
+ left: Zt,
98
+ right: me
99
+ }, t[3] = me, t[4] = Qt, t[5] = Zt, t[6] = $e, t[7] = ve) : ve = t[7];
100
+ const g = ve;
101
+ let Yt, nt, lt, rt, at, ct, E, ft, ut, mt, J, xt, K, dt, Q, pt, G, gt;
102
+ if (t[8] !== f || t[9] !== ge || t[10] !== n?.graphObjectValues || t[11] !== n?.regLine || t[12] !== n?.xAxis?.axis || t[13] !== n?.xAxis?.gridLines || t[14] !== n?.xAxis?.labels || t[15] !== n?.xAxis?.title || t[16] !== n?.yAxis?.gridLines || t[17] !== n?.yAxis?.labels || t[18] !== n?.yAxis?.title || t[19] !== L || t[20] !== m || t[21] !== zt || t[22] !== T || t[23] !== o || t[24] !== S || t[25] !== M || t[26] !== V || t[27] !== Se || t[28] !== z || t[29] !== v || t[30] !== U || t[31] !== H || t[32] !== P || t[33] !== g.bottom || t[34] !== g.left || t[35] !== g.right || t[36] !== g.top || t[37] !== de || t[38] !== pe || t[39] !== qt || t[40] !== j || t[41] !== O || t[42] !== W || t[43] !== X || t[44] !== Ut || t[45] !== Jt || t[46] !== D || t[47] !== st || t[48] !== N || t[49] !== F || t[50] !== ke || t[51] !== De || t[52] !== $t || t[53] !== kt || t[54] !== Bt || t[55] !== Vt || t[56] !== Me || t[57] !== Gt || t[58] !== Kt || t[59] !== s?.graphObjectValues || t[60] !== s?.regLine || t[61] !== s?.xAxis?.axis || t[62] !== s?.xAxis?.gridLines || t[63] !== s?.xAxis?.labels || t[64] !== s?.xAxis?.title || t[65] !== s?.yAxis?.gridLines || t[66] !== s?.yAxis?.labels || t[67] !== s?.yAxis?.title || t[68] !== Ne || t[69] !== ot || t[70] !== y || t[71] !== Mt || t[72] !== Dt || t[73] !== B || t[74] !== Nt || t[75] !== St) {
103
+ const be = o.map(xo), b = ot - g.left - g.right, h = V - g.top - g.bottom, $ = o.filter(mo).length !== o.length ? Ni().domain([0, de]).range([0.25, F]).nice() : void 0, It = be.filter(uo).length === 0 ? be.filter(fo) : vi(be.filter(co), "radius", "desc"), u = ci().domain([j, pe]).range([0, b]).nice(), r = ci().domain([O, qt]).range([h, 0]).nice(), Pe = u.ticks(Ut), Xe = r.ticks(Jt), We = Ti.from(It, (e) => u(e.x), (e) => r(e.y)).voronoi([0, 0, b < 0 ? 0 : b, h < 0 ? 0 : h]), Ee = bi(o.filter(ao).map((e) => [u(e.x), r(e.y)])), Ae = Ai(Ee);
104
+ nt = ze.svg, ft = `${ot}px`, ut = `${V}px`, mt = `0 0 ${ot} ${V}`, J = "ltr", xt = Te, lt = `translate(${g.left},${g.top})`;
105
+ let _t;
106
+ t[94] !== f || t[95] !== zt || t[96] !== v || t[97] !== u || t[98] !== r ? (_t = /* @__PURE__ */ l.jsx(Li, { areaSettings: zt, scaleX: u, scaleY: r, animate: f, isInView: v }, "custom-area"), t[94] = f, t[95] = zt, t[96] = v, t[97] = u, t[98] = r, t[99] = _t) : _t = t[99], rt = /* @__PURE__ */ l.jsxs(fi, { children: [
107
+ /* @__PURE__ */ l.jsx(Si, { areaSettings: Se, width: b, height: h, scaleX: u, scaleY: r, animate: f, isInView: v }, "highlight-area"),
108
+ _t
109
109
  ] });
110
- const se = s?.yAxis?.gridLines, Ce = s?.yAxis?.labels;
111
- let ne;
112
- t[100] !== se || t[101] !== Ce ? (ne = {
113
- gridLines: se,
114
- labels: Ce
115
- }, t[100] = se, t[101] = Ce, t[102] = ne) : ne = t[102];
116
- const le = n?.yAxis?.gridLines, we = n?.yAxis?.labels;
117
- let Ht;
118
- t[103] !== le || t[104] !== we ? (Ht = {
119
- gridLines: le,
120
- labels: we
121
- }, t[103] = le, t[104] = we, t[105] = Ht) : Ht = t[105];
122
- const r = x(O < 0 ? 0 : O), Le = x(O < 0 ? 0 : O), je = p + h.right, Ve = O < 0 ? 0 : O;
123
- let _;
124
- t[106] !== T || t[107] !== N || t[108] !== Ve || t[109] !== Pt || t[110] !== Mt ? (_ = li(Ve, void 0, N, Pt, Mt, T), t[106] = T, t[107] = N, t[108] = Ve, t[109] = Pt, t[110] = Mt, t[111] = _) : _ = t[111];
125
- const qe = x(O < 0 ? 0 : O);
110
+ const Oe = s?.yAxis?.gridLines, te = s?.yAxis?.labels;
111
+ let ee;
112
+ t[100] !== Oe || t[101] !== te ? (ee = {
113
+ gridLines: Oe,
114
+ labels: te
115
+ }, t[100] = Oe, t[101] = te, t[102] = ee) : ee = t[102];
116
+ const ie = n?.yAxis?.gridLines, a = n?.yAxis?.labels;
117
+ let oe;
118
+ t[103] !== ie || t[104] !== a ? (oe = {
119
+ gridLines: ie,
120
+ labels: a
121
+ }, t[103] = ie, t[104] = a, t[105] = oe) : oe = t[105];
122
+ const Ce = r(O < 0 ? 0 : O), we = r(O < 0 ? 0 : O), se = b + g.right, Ge = O < 0 ? 0 : O;
126
123
  let tt;
127
- t[112] !== qe ? (tt = {
124
+ t[106] !== P || t[107] !== N || t[108] !== Ge || t[109] !== Nt || t[110] !== St ? (tt = li(Ge, void 0, N, Nt, St, P), t[106] = P, t[107] = N, t[108] = Ge, t[109] = Nt, t[110] = St, t[111] = tt) : tt = t[111];
125
+ const qe = r(O < 0 ? 0 : O);
126
+ let C;
127
+ t[112] !== qe ? (C = {
128
128
  x: 0,
129
129
  y: qe,
130
130
  dy: "0.33em",
131
131
  dx: -4
132
- }, t[112] = qe, t[113] = tt) : tt = t[113];
133
- const Be = n?.xAxis?.axis, Y = n?.yAxis?.labels;
134
- let re;
135
- t[114] !== Be || t[115] !== Y ? (re = {
132
+ }, t[112] = qe, t[113] = C) : C = t[113];
133
+ const Be = n?.xAxis?.axis, Rt = n?.yAxis?.labels;
134
+ let c;
135
+ t[114] !== Be || t[115] !== Rt ? (c = {
136
136
  axis: Be,
137
- label: Y
138
- }, t[114] = Be, t[115] = Y, t[116] = re) : re = t[116];
139
- const Wt = s?.xAxis?.axis;
140
- let a;
141
- t[117] !== s?.yAxis?.labels ? (a = s?.yAxis?.labels || {}, t[117] = s?.yAxis?.labels, t[118] = a) : a = t[118];
142
- let C;
143
- t[119] !== a ? (C = {
144
- textAnchor: "end",
145
- ...a
146
- }, t[119] = a, t[120] = C) : C = t[120];
137
+ label: Rt
138
+ }, t[114] = Be, t[115] = Rt, t[116] = c) : c = t[116];
139
+ const Y = s?.xAxis?.axis;
140
+ let At;
141
+ t[117] !== s?.yAxis?.labels ? (At = s?.yAxis?.labels || {}, t[117] = s?.yAxis?.labels, t[118] = At) : At = t[118];
147
142
  let Ot;
148
- t[121] !== Wt || t[122] !== C ? (Ot = {
149
- axis: Wt,
150
- label: C
151
- }, t[121] = Wt, t[122] = C, t[123] = Ot) : Ot = t[123];
152
- let ae;
153
- t[124] !== r || t[125] !== Le || t[126] !== je || t[127] !== _ || t[128] !== tt || t[129] !== re || t[130] !== Ot ? (ae = /* @__PURE__ */ l.jsx(ri, { y1: r, y2: Le, x1: 0, x2: je, label: _, labelPos: tt, classNames: re, styles: Ot }), t[124] = r, t[125] = Le, t[126] = je, t[127] = _, t[128] = tt, t[129] = re, t[130] = Ot, t[131] = ae) : ae = t[131];
154
- const ze = 0 - H - 15, $e = v / 2, Re = s?.yAxis?.title, ce = n?.yAxis?.title;
155
- let Et;
156
- t[132] !== ze || t[133] !== $e || t[134] !== Re || t[135] !== ce || t[136] !== B ? (Et = /* @__PURE__ */ l.jsx(ai, { x: ze, y: $e, style: Re, className: ce, text: B, rotate90: !0 }), t[132] = ze, t[133] = $e, t[134] = Re, t[135] = ce, t[136] = B, t[137] = Et) : Et = t[137], at = /* @__PURE__ */ l.jsxs("g", { children: [
157
- /* @__PURE__ */ l.jsx(ki, { values: q.filter(ro), y: q.filter(lo).map((e) => x(e)), x1: 0, x2: p + h.right, styles: ne, classNames: Ht, suffix: Mt, prefix: Pt, labelType: "secondary", showGridLines: !0, labelPos: "side", precision: N, locale: T }),
158
- ae,
159
- Et
143
+ t[119] !== At ? (Ot = {
144
+ textAnchor: "end",
145
+ ...At
146
+ }, t[119] = At, t[120] = Ot) : Ot = t[120];
147
+ let ne;
148
+ t[121] !== Y || t[122] !== Ot ? (ne = {
149
+ axis: Y,
150
+ label: Ot
151
+ }, t[121] = Y, t[122] = Ot, t[123] = ne) : ne = t[123];
152
+ let le;
153
+ t[124] !== Ce || t[125] !== we || t[126] !== se || t[127] !== tt || t[128] !== C || t[129] !== c || t[130] !== ne ? (le = /* @__PURE__ */ l.jsx(ri, { y1: Ce, y2: we, x1: 0, x2: se, label: tt, labelPos: C, classNames: c, styles: ne }), t[124] = Ce, t[125] = we, t[126] = se, t[127] = tt, t[128] = C, t[129] = c, t[130] = ne, t[131] = le) : le = t[131];
154
+ const Ye = 0 - H - 15, re = h / 2, ae = s?.yAxis?.title, ce = n?.yAxis?.title;
155
+ let Ft;
156
+ t[132] !== Ye || t[133] !== re || t[134] !== ae || t[135] !== ce || t[136] !== B ? (Ft = /* @__PURE__ */ l.jsx(ai, { x: Ye, y: re, style: ae, className: ce, text: B, rotate90: !0 }), t[132] = Ye, t[133] = re, t[134] = ae, t[135] = ce, t[136] = B, t[137] = Ft) : Ft = t[137], at = /* @__PURE__ */ l.jsxs("g", { children: [
157
+ /* @__PURE__ */ l.jsx(Di, { values: Xe.filter(ro), y: Xe.filter(lo).map((e) => r(e)), x1: 0, x2: b + g.right, styles: ee, classNames: oe, suffix: St, prefix: Nt, labelType: "secondary", showGridLines: !0, labelPos: "side", precision: N, locale: P }),
158
+ le,
159
+ Ft
160
160
  ] });
161
- const fe = s?.xAxis?.gridLines, ue = s?.xAxis?.labels;
162
- let me;
163
- t[138] !== fe || t[139] !== ue ? (me = {
164
- gridLines: fe,
165
- labels: ue
166
- }, t[138] = fe, t[139] = ue, t[140] = me) : me = t[140];
167
- const xe = n?.xAxis?.gridLines, de = n?.xAxis?.labels;
168
- let pe;
169
- t[141] !== xe || t[142] !== de ? (pe = {
170
- gridLines: xe,
171
- labels: de
172
- }, t[141] = xe, t[142] = de, t[143] = pe) : pe = t[143];
173
- const De = f(j < 0 ? 0 : j), Ct = f(j < 0 ? 0 : j), wt = j < 0 ? 0 : j;
161
+ const Le = s?.xAxis?.gridLines, fe = s?.xAxis?.labels;
162
+ let Ht;
163
+ t[138] !== Le || t[139] !== fe ? (Ht = {
164
+ gridLines: Le,
165
+ labels: fe
166
+ }, t[138] = Le, t[139] = fe, t[140] = Ht) : Ht = t[140];
167
+ const je = n?.xAxis?.gridLines, Ve = n?.xAxis?.labels;
168
+ let et;
169
+ t[141] !== je || t[142] !== Ve ? (et = {
170
+ gridLines: je,
171
+ labels: Ve
172
+ }, t[141] = je, t[142] = Ve, t[143] = et) : et = t[143];
173
+ const Ct = u(j < 0 ? 0 : j), wt = u(j < 0 ? 0 : j), Lt = j < 0 ? 0 : j;
174
174
  let I;
175
- t[144] !== T || t[145] !== N || t[146] !== wt || t[147] !== Nt || t[148] !== St ? (I = li(wt, void 0, N, Nt, St, T), t[144] = T, t[145] = N, t[146] = wt, t[147] = Nt, t[148] = St, t[149] = I) : I = t[149];
176
- const Lt = f(j < 0 ? 0 : j);
175
+ t[144] !== P || t[145] !== N || t[146] !== Lt || t[147] !== Mt || t[148] !== Dt ? (I = li(Lt, void 0, N, Mt, Dt, P), t[144] = P, t[145] = N, t[146] = Lt, t[147] = Mt, t[148] = Dt, t[149] = I) : I = t[149];
176
+ const jt = u(j < 0 ? 0 : j);
177
177
  let R;
178
- t[150] !== v || t[151] !== Lt ? (R = {
179
- x: Lt,
180
- y: v,
178
+ t[150] !== h || t[151] !== jt ? (R = {
179
+ x: jt,
180
+ y: h,
181
181
  dy: "1em",
182
182
  dx: 0
183
- }, t[150] = v, t[151] = Lt, t[152] = R) : R = t[152];
184
- const jt = n?.xAxis?.axis, Vt = n?.yAxis?.labels;
185
- let et;
186
- t[153] !== jt || t[154] !== Vt ? (et = {
187
- axis: jt,
188
- label: Vt
189
- }, t[153] = jt, t[154] = Vt, t[155] = et) : et = t[155];
190
- const g = s?.xAxis?.axis;
191
- let D;
192
- t[156] !== s?.yAxis?.labels ? (D = s?.yAxis?.labels || {}, t[156] = s?.yAxis?.labels, t[157] = D) : D = t[157];
193
- let Fe;
194
- t[158] !== D ? (Fe = {
183
+ }, t[150] = h, t[151] = jt, t[152] = R) : R = t[152];
184
+ const ue = n?.xAxis?.axis, p = n?.yAxis?.labels;
185
+ let k;
186
+ t[153] !== ue || t[154] !== p ? (k = {
187
+ axis: ue,
188
+ label: p
189
+ }, t[153] = ue, t[154] = p, t[155] = k) : k = t[155];
190
+ const Ke = s?.xAxis?.axis;
191
+ let Ie;
192
+ t[156] !== s?.yAxis?.labels ? (Ie = s?.yAxis?.labels || {}, t[156] = s?.yAxis?.labels, t[157] = Ie) : Ie = t[157];
193
+ let Re;
194
+ t[158] !== Ie ? (Re = {
195
195
  textAnchor: "middle",
196
- ...D
197
- }, t[158] = D, t[159] = Fe) : Fe = t[159];
198
- let He;
199
- t[160] !== g || t[161] !== Fe ? (He = {
200
- axis: g,
201
- label: Fe
202
- }, t[160] = g, t[161] = Fe, t[162] = He) : He = t[162];
196
+ ...Ie
197
+ }, t[158] = Ie, t[159] = Re) : Re = t[159];
198
+ let Fe;
199
+ t[160] !== Ke || t[161] !== Re ? (Fe = {
200
+ axis: Ke,
201
+ label: Re
202
+ }, t[160] = Ke, t[161] = Re, t[162] = Fe) : Fe = t[162];
203
+ let Ue;
204
+ t[163] !== h || t[164] !== Ct || t[165] !== wt || t[166] !== I || t[167] !== R || t[168] !== k || t[169] !== Fe ? (Ue = /* @__PURE__ */ l.jsx(ri, { x1: Ct, x2: wt, y1: 0, y2: h, label: I, labelPos: R, classNames: k, styles: Fe }), t[163] = h, t[164] = Ct, t[165] = wt, t[166] = I, t[167] = R, t[168] = k, t[169] = Fe, t[170] = Ue) : Ue = t[170];
205
+ const Qe = b / 2, Ze = h + 30, _e = s?.xAxis?.title, ti = n?.xAxis?.title;
203
206
  let Je;
204
- t[163] !== v || t[164] !== De || t[165] !== Ct || t[166] !== I || t[167] !== R || t[168] !== et || t[169] !== He ? (Je = /* @__PURE__ */ l.jsx(ri, { x1: De, x2: Ct, y1: 0, y2: v, label: I, labelPos: R, classNames: et, styles: He }), t[163] = v, t[164] = De, t[165] = Ct, t[166] = I, t[167] = R, t[168] = et, t[169] = He, t[170] = Je) : Je = t[170];
205
- const Qe = p / 2, Ze = v + 30, _e = s?.xAxis?.title, ti = n?.xAxis?.title;
206
- let Ke;
207
- t[171] !== Qe || t[172] !== Ze || t[173] !== _e || t[174] !== ti || t[175] !== y ? (Ke = /* @__PURE__ */ l.jsx(ai, { x: Qe, y: Ze, style: _e, className: ti, text: y }), t[171] = Qe, t[172] = Ze, t[173] = _e, t[174] = ti, t[175] = y, t[176] = Ke) : Ke = t[176], ct = /* @__PURE__ */ l.jsxs("g", { children: [
208
- /* @__PURE__ */ l.jsx(ji, { values: Ye.filter(no), x: Ye.filter(so).map((e) => f(e)), y1: 0, y2: v, styles: me, classNames: pe, suffix: St, prefix: Nt, labelType: "primary", showGridLines: !0, precision: N, locale: T }),
209
- Je,
210
- Ke
211
- ] }), t[177] !== P ? (E = P.filter(oo).map(io), t[177] = P, t[178] = E) : E = t[178], It = fi, K = Te && Ft.map((e, Gt) => /* @__PURE__ */ l.jsx("path", { d: Ee.renderCell(Ft.findIndex((w) => w.id === e.id)), opacity: _t ? 1 : 0, className: "stroke-primary-gray-700 dark:stroke-primary-gray-300", style: {
207
+ t[171] !== Qe || t[172] !== Ze || t[173] !== _e || t[174] !== ti || t[175] !== y ? (Je = /* @__PURE__ */ l.jsx(ai, { x: Qe, y: Ze, style: _e, className: ti, text: y }), t[171] = Qe, t[172] = Ze, t[173] = _e, t[174] = ti, t[175] = y, t[176] = Je) : Je = t[176], ct = /* @__PURE__ */ l.jsxs("g", { children: [
208
+ /* @__PURE__ */ l.jsx(ji, { values: Pe.filter(no), x: Pe.filter(so).map((e) => u(e)), y1: 0, y2: h, styles: Ht, classNames: et, suffix: Dt, prefix: Mt, labelType: "primary", showGridLines: !0, precision: N, locale: P }),
209
+ Ue,
210
+ Je
211
+ ] }), t[177] !== T ? (E = T.filter(oo).map(io), t[177] = T, t[178] = E) : E = t[178], Yt = fi, K = Ne && It.map((e, Wt) => /* @__PURE__ */ l.jsx("path", { d: We.renderCell(It.findIndex((w) => w.id === e.id)), opacity: Kt ? 1 : 0, className: "stroke-primary-gray-700 dark:stroke-primary-gray-300", style: {
212
212
  fillOpacity: 0,
213
213
  strokeWidth: 1
214
214
  }, onMouseEnter: (w) => {
215
- Tt(e), Yt(w.clientY), Xt(w.clientX), st?.(e);
215
+ Tt(e), Xt(w.clientY), Pt(w.clientX), st?.(e);
216
216
  }, onMouseMove: (w) => {
217
- Tt(e), Yt(w.clientY), Xt(w.clientX);
217
+ Tt(e), Xt(w.clientY), Pt(w.clientX);
218
218
  }, onMouseLeave: () => {
219
- Tt(void 0), Xt(void 0), Yt(void 0), st?.(void 0);
219
+ Tt(void 0), Pt(void 0), Xt(void 0), st?.(void 0);
220
220
  }, onClick: () => {
221
- (k || S) && (ni(W, e) && kt ? (d(void 0), k?.(void 0)) : (d(e), k?.(e)));
222
- } }, `tesselation_${e.label || Gt}`)), dt = Ft.map((e, Gt) => /* @__PURE__ */ l.jsxs(Ue.g, { variants: {
221
+ (D || S) && (ni(W, e) && kt ? (d(void 0), D?.(void 0)) : (d(e), D?.(e)));
222
+ } }, `tesselation_${e.label || Wt}`)), dt = It.map((e, Wt) => /* @__PURE__ */ l.jsxs(ze.g, { variants: {
223
223
  initial: {
224
- x: f(e.x),
225
- y: x(e.y),
226
- opacity: $t ? e.color && u[L.indexOf(`${e.color}`)] === $t ? 1 : M : X ? X.id === e.id ? 1 : M : z.length !== 0 ? z.indexOf(e.label || "") !== -1 ? 1 : M : 1
224
+ x: u(e.x),
225
+ y: r(e.y),
226
+ opacity: Vt ? e.color && m[L.indexOf(`${e.color}`)] === Vt ? 1 : M : X ? X.id === e.id ? 1 : M : z ? z.indexOf(e.label || "") !== -1 ? 1 : M : 1
227
227
  },
228
228
  whileInView: {
229
- x: f(e.x),
230
- y: x(e.y),
231
- opacity: $t ? e.color && u[L.indexOf(`${e.color}`)] === $t ? 1 : M : X ? X.id === e.id ? 1 : M : z.length !== 0 ? z.indexOf(e.label || "") !== -1 ? 1 : M : 1,
229
+ x: u(e.x),
230
+ y: r(e.y),
231
+ opacity: Vt ? e.color && m[L.indexOf(`${e.color}`)] === Vt ? 1 : M : X ? X.id === e.id ? 1 : M : z ? z.indexOf(e.label || "") !== -1 ? 1 : M : 1,
232
232
  transition: {
233
- duration: c.duration
233
+ duration: f.duration
234
234
  }
235
235
  }
236
- }, initial: "initial", animate: b ? "whileInView" : "initial", exit: {
236
+ }, initial: "initial", animate: v ? "whileInView" : "initial", exit: {
237
237
  opacity: 0,
238
238
  transition: {
239
- duration: c.duration
239
+ duration: f.duration
240
240
  }
241
241
  }, onMouseEnter: (w) => {
242
- Tt(e), Yt(w.clientY), Xt(w.clientX), st?.(e);
242
+ Tt(e), Xt(w.clientY), Pt(w.clientX), st?.(e);
243
243
  }, onMouseMove: (w) => {
244
- Tt(e), Yt(w.clientY), Xt(w.clientX);
244
+ Tt(e), Xt(w.clientY), Pt(w.clientX);
245
245
  }, onMouseLeave: () => {
246
- Tt(void 0), Xt(void 0), Yt(void 0), st?.(void 0);
246
+ Tt(void 0), Pt(void 0), Xt(void 0), st?.(void 0);
247
247
  }, onClick: () => {
248
- (k || S) && (ni(W, e) && kt ? (d(void 0), k?.(void 0)) : (d(e), k?.(e)));
248
+ (D || S) && (ni(W, e) && kt ? (d(void 0), D?.(void 0)) : (d(e), D?.(e)));
249
249
  }, children: [
250
- /* @__PURE__ */ l.jsx(Ue.circle, { cx: 0, cy: 0, exit: {
250
+ /* @__PURE__ */ l.jsx(ze.circle, { cx: 0, cy: 0, exit: {
251
251
  r: 0,
252
252
  transition: {
253
- duration: c.duration
253
+ duration: f.duration
254
254
  }
255
255
  }, variants: {
256
256
  initial: {
257
257
  r: 0,
258
- fill: o.filter(eo).length === 0 ? u[0] : e.color ? u[L.indexOf(`${e.color}`)] : it.gray,
259
- stroke: o.filter(to).length === 0 ? u[0] : e.color ? u[L.indexOf(`${e.color}`)] : it.gray
258
+ fill: o.filter(eo).length === 0 ? m[0] : e.color ? m[L.indexOf(`${e.color}`)] : it.gray,
259
+ stroke: o.filter(to).length === 0 ? m[0] : e.color ? m[L.indexOf(`${e.color}`)] : it.gray
260
260
  },
261
261
  whileInView: {
262
262
  r: $ ? $(e.radius || 0) : F,
263
- fill: o.filter(_i).length === 0 ? u[0] : e.color ? u[L.indexOf(`${e.color}`)] : it.gray,
264
- stroke: o.filter(Zi).length === 0 ? u[0] : e.color ? u[L.indexOf(`${e.color}`)] : it.gray,
263
+ fill: o.filter(_i).length === 0 ? m[0] : e.color ? m[L.indexOf(`${e.color}`)] : it.gray,
264
+ stroke: o.filter(Zi).length === 0 ? m[0] : e.color ? m[L.indexOf(`${e.color}`)] : it.gray,
265
265
  transition: {
266
- duration: c.duration
266
+ duration: f.duration
267
267
  }
268
268
  }
269
- }, initial: "initial", animate: b ? "whileInView" : "initial", style: {
269
+ }, initial: "initial", animate: v ? "whileInView" : "initial", style: {
270
270
  fillOpacity: 0.6
271
271
  } }),
272
- Bt && !A(e.label) ? /* @__PURE__ */ l.jsx(Ue.text, { style: {
272
+ Gt && !A(e.label) ? /* @__PURE__ */ l.jsx(ze.text, { style: {
273
273
  ...s?.graphObjectValues || {}
274
274
  }, className: oi("graph-value text-sm", n?.graphObjectValues), y: 0, exit: {
275
275
  opacity: 0,
276
276
  transition: {
277
- duration: c.duration
277
+ duration: f.duration
278
278
  }
279
279
  }, variants: {
280
280
  initial: {
281
281
  x: $ ? $(e.radius || 0) : F,
282
282
  opacity: 0,
283
- fill: U || (o.filter(Qi).length === 0 ? u[0] : e.color ? u[L.indexOf(`${e.color}`)] : it.gray)
283
+ fill: U || (o.filter(Qi).length === 0 ? m[0] : e.color ? m[L.indexOf(`${e.color}`)] : it.gray)
284
284
  },
285
285
  whileInView: {
286
286
  x: $ ? $(e.radius || 0) : F,
287
287
  opacity: 1,
288
- fill: U || (o.filter(Ki).length === 0 ? u[0] : e.color ? u[L.indexOf(`${e.color}`)] : it.gray),
288
+ fill: U || (o.filter(Ki).length === 0 ? m[0] : e.color ? m[L.indexOf(`${e.color}`)] : it.gray),
289
289
  transition: {
290
- duration: c.duration
290
+ duration: f.duration
291
291
  }
292
292
  }
293
- }, initial: "initial", animate: b ? "whileInView" : "initial", dy: "0.33em", dx: 3, children: e.label }) : z.length !== 0 && !A(e.label) && Pe && z.indexOf(e.label) !== -1 ? /* @__PURE__ */ l.jsx(Ue.text, { style: {
293
+ }, initial: "initial", animate: v ? "whileInView" : "initial", dy: "0.33em", dx: 3, children: e.label }) : z && !A(e.label) && Me && z.indexOf(e.label) !== -1 ? /* @__PURE__ */ l.jsx(ze.text, { style: {
294
294
  ...s?.graphObjectValues || {}
295
295
  }, className: oi("graph-value text-sm", n?.graphObjectValues), y: 0, exit: {
296
296
  opacity: 0,
297
297
  transition: {
298
- duration: c.duration
298
+ duration: f.duration
299
299
  }
300
300
  }, variants: {
301
301
  initial: {
302
302
  x: $ ? $(e.radius || 0) : F,
303
303
  opacity: 0,
304
- fill: U || (o.filter(Ji).length === 0 ? u[0] : e.color ? u[L.indexOf(`${e.color}`)] : it.gray)
304
+ fill: U || (o.filter(Ji).length === 0 ? m[0] : e.color ? m[L.indexOf(`${e.color}`)] : it.gray)
305
305
  },
306
306
  whileInView: {
307
307
  x: $ ? $(e.radius || 0) : F,
308
308
  opacity: 1,
309
- fill: U || (o.filter(Ui).length === 0 ? u[0] : e.color ? u[L.indexOf(`${e.color}`)] : it.gray),
309
+ fill: U || (o.filter(Ui).length === 0 ? m[0] : e.color ? m[L.indexOf(`${e.color}`)] : it.gray),
310
310
  transition: {
311
- duration: c.duration
311
+ duration: f.duration
312
312
  }
313
313
  }
314
- }, initial: "initial", animate: b ? "whileInView" : "initial", dy: "0.33em", dx: 3, children: e.label }) : null
315
- ] }, `${e.label || Gt}`)), Q = Se.map((e, Gt) => /* @__PURE__ */ l.jsx(Vi, { text: e.text, color: e.color, x: f(e.value), y1: 0, y2: v, textSide: f(e.value) > p * 0.75 || Ut ? "left" : "right", classNames: e.classNames, styles: e.styles, animate: c, isInView: b }, Gt)), pt = Me.map((e, Gt) => /* @__PURE__ */ l.jsx($i, { text: e.text, color: e.color, y: x(e.value), x1: 0, x2: p, classNames: e.classNames, styles: e.styles, animate: c, isInView: b }, Gt));
316
- const ei = Jt.map((e, Gt) => {
314
+ }, initial: "initial", animate: v ? "whileInView" : "initial", dy: "0.33em", dx: 3, children: e.label }) : null
315
+ ] }, `${e.label || Wt}`)), Q = ke.map((e, Wt) => /* @__PURE__ */ l.jsx(Vi, { text: e.text, color: e.color, x: u(e.value), y1: 0, y2: h, textSide: u(e.value) > b * 0.75 || Bt ? "left" : "right", classNames: e.classNames, styles: e.styles, animate: f, isInView: v }, Wt)), pt = De.map((e, Wt) => /* @__PURE__ */ l.jsx($i, { text: e.text, color: e.color, y: r(e.value), x1: 0, x2: b, classNames: e.classNames, styles: e.styles, animate: f, isInView: v }, Wt));
316
+ const ei = ge.map((e, Wt) => {
317
317
  const w = Ci({
318
- x: e.xCoordinate ? f(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
319
- y: e.yCoordinate ? x(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8
318
+ x: e.xCoordinate ? u(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
319
+ y: e.yCoordinate ? r(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8
320
320
  }, {
321
- x: e.xCoordinate ? f(e.xCoordinate) : 0,
322
- y: e.yCoordinate ? x(e.yCoordinate) : 0
321
+ x: e.xCoordinate ? u(e.xCoordinate) : 0,
322
+ y: e.yCoordinate ? r(e.yCoordinate) : 0
323
323
  }, A(e.connectorRadius) ? 3.5 : e.connectorRadius), xi = e.showConnector ? {
324
324
  y1: w.y,
325
325
  x1: w.x,
326
- y2: e.yCoordinate ? x(e.yCoordinate) + (e.yOffset || 0) : 0 + (e.yOffset || 0),
327
- x2: e.xCoordinate ? f(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
328
- cy: e.yCoordinate ? x(e.yCoordinate) : 0,
329
- cx: e.xCoordinate ? f(e.xCoordinate) : 0,
326
+ y2: e.yCoordinate ? r(e.yCoordinate) + (e.yOffset || 0) : 0 + (e.yOffset || 0),
327
+ x2: e.xCoordinate ? u(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
328
+ cy: e.yCoordinate ? r(e.yCoordinate) : 0,
329
+ cx: e.xCoordinate ? u(e.xCoordinate) : 0,
330
330
  circleRadius: A(e.connectorRadius) ? 3.5 : e.connectorRadius,
331
331
  strokeWidth: e.showConnector === !0 ? 2 : Math.min(e.showConnector || 0, 1)
332
332
  } : void 0, di = {
333
- y: e.yCoordinate ? x(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8,
334
- x: Ut ? 0 : e.xCoordinate ? f(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
335
- width: Ut ? e.xCoordinate ? f(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0) : p + h.right - (e.xCoordinate ? f(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0)),
333
+ y: e.yCoordinate ? r(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8,
334
+ x: Bt ? 0 : e.xCoordinate ? u(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
335
+ width: Bt ? e.xCoordinate ? u(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0) : b + g.right - (e.xCoordinate ? u(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0)),
336
336
  maxWidth: e.maxWidth,
337
337
  fontWeight: e.fontWeight,
338
338
  align: e.align
339
339
  };
340
- return /* @__PURE__ */ l.jsx(wi, { color: e.color, connectorsSettings: xi, labelSettings: di, text: e.text, classNames: e.classNames, styles: e.styles, animate: c, isInView: b }, Gt);
340
+ return /* @__PURE__ */ l.jsx(wi, { color: e.color, connectorsSettings: xi, labelSettings: di, text: e.text, classNames: e.classNames, styles: e.styles, animate: f, isInView: v }, Wt);
341
341
  });
342
- t[179] !== ei ? (G = /* @__PURE__ */ l.jsx("g", { children: ei }), t[179] = ei, t[180] = G) : G = t[180], Z = Dt ? /* @__PURE__ */ l.jsx(Di, { x1: 0, x2: p, y1: Ie(0), y2: Ie(p), graphHeight: v, graphWidth: p, className: n?.regLine, style: s?.regLine, color: typeof Dt == "string" ? Dt : void 0, animate: c, isInView: b }) : null, t[8] = c, t[9] = Jt, t[10] = n?.graphObjectValues, t[11] = n?.regLine, t[12] = n?.xAxis?.axis, t[13] = n?.xAxis?.gridLines, t[14] = n?.xAxis?.labels, t[15] = n?.xAxis?.title, t[16] = n?.yAxis?.gridLines, t[17] = n?.yAxis?.labels, t[18] = n?.yAxis?.title, t[19] = L, t[20] = u, t[21] = Kt, t[22] = P, t[23] = o, t[24] = S, t[25] = M, t[26] = V, t[27] = Ne, t[28] = z, t[29] = b, t[30] = U, t[31] = H, t[32] = T, t[33] = h.bottom, t[34] = h.left, t[35] = h.right, t[36] = h.top, t[37] = ye, t[38] = ve, t[39] = zt, t[40] = j, t[41] = O, t[42] = W, t[43] = X, t[44] = Qt, t[45] = Zt, t[46] = k, t[47] = st, t[48] = N, t[49] = F, t[50] = Se, t[51] = Me, t[52] = Dt, t[53] = kt, t[54] = Ut, t[55] = $t, t[56] = Pe, t[57] = Bt, t[58] = _t, t[59] = s?.graphObjectValues, t[60] = s?.regLine, t[61] = s?.xAxis?.axis, t[62] = s?.xAxis?.gridLines, t[63] = s?.xAxis?.labels, t[64] = s?.xAxis?.title, t[65] = s?.yAxis?.gridLines, t[66] = s?.yAxis?.labels, t[67] = s?.yAxis?.title, t[68] = Te, t[69] = ot, t[70] = y, t[71] = Nt, t[72] = St, t[73] = B, t[74] = Pt, t[75] = Mt, t[76] = It, t[77] = nt, t[78] = lt, t[79] = rt, t[80] = at, t[81] = ct, t[82] = E, t[83] = ft, t[84] = ut, t[85] = mt, t[86] = J, t[87] = xt, t[88] = K, t[89] = dt, t[90] = Q, t[91] = pt, t[92] = G, t[93] = Z;
342
+ t[179] !== ei ? (G = /* @__PURE__ */ l.jsx("g", { children: ei }), t[179] = ei, t[180] = G) : G = t[180], gt = $t ? /* @__PURE__ */ l.jsx(ki, { x1: 0, x2: b, y1: Ae(0), y2: Ae(b), graphHeight: h, graphWidth: b, className: n?.regLine, style: s?.regLine, color: typeof $t == "string" ? $t : void 0, animate: f, isInView: v }) : null, t[8] = f, t[9] = ge, t[10] = n?.graphObjectValues, t[11] = n?.regLine, t[12] = n?.xAxis?.axis, t[13] = n?.xAxis?.gridLines, t[14] = n?.xAxis?.labels, t[15] = n?.xAxis?.title, t[16] = n?.yAxis?.gridLines, t[17] = n?.yAxis?.labels, t[18] = n?.yAxis?.title, t[19] = L, t[20] = m, t[21] = zt, t[22] = T, t[23] = o, t[24] = S, t[25] = M, t[26] = V, t[27] = Se, t[28] = z, t[29] = v, t[30] = U, t[31] = H, t[32] = P, t[33] = g.bottom, t[34] = g.left, t[35] = g.right, t[36] = g.top, t[37] = de, t[38] = pe, t[39] = qt, t[40] = j, t[41] = O, t[42] = W, t[43] = X, t[44] = Ut, t[45] = Jt, t[46] = D, t[47] = st, t[48] = N, t[49] = F, t[50] = ke, t[51] = De, t[52] = $t, t[53] = kt, t[54] = Bt, t[55] = Vt, t[56] = Me, t[57] = Gt, t[58] = Kt, t[59] = s?.graphObjectValues, t[60] = s?.regLine, t[61] = s?.xAxis?.axis, t[62] = s?.xAxis?.gridLines, t[63] = s?.xAxis?.labels, t[64] = s?.xAxis?.title, t[65] = s?.yAxis?.gridLines, t[66] = s?.yAxis?.labels, t[67] = s?.yAxis?.title, t[68] = Ne, t[69] = ot, t[70] = y, t[71] = Mt, t[72] = Dt, t[73] = B, t[74] = Nt, t[75] = St, t[76] = Yt, t[77] = nt, t[78] = lt, t[79] = rt, t[80] = at, t[81] = ct, t[82] = E, t[83] = ft, t[84] = ut, t[85] = mt, t[86] = J, t[87] = xt, t[88] = K, t[89] = dt, t[90] = Q, t[91] = pt, t[92] = G, t[93] = gt;
343
343
  } else
344
- It = t[76], nt = t[77], lt = t[78], rt = t[79], at = t[80], ct = t[81], E = t[82], ft = t[83], ut = t[84], mt = t[85], J = t[86], xt = t[87], K = t[88], dt = t[89], Q = t[90], pt = t[91], G = t[92], Z = t[93];
345
- let gt;
346
- t[181] !== It || t[182] !== K || t[183] !== dt || t[184] !== Q || t[185] !== pt || t[186] !== G || t[187] !== Z ? (gt = /* @__PURE__ */ l.jsxs(It, { children: [
344
+ Yt = t[76], nt = t[77], lt = t[78], rt = t[79], at = t[80], ct = t[81], E = t[82], ft = t[83], ut = t[84], mt = t[85], J = t[86], xt = t[87], K = t[88], dt = t[89], Q = t[90], pt = t[91], G = t[92], gt = t[93];
345
+ let ht;
346
+ t[181] !== Yt || t[182] !== K || t[183] !== dt || t[184] !== Q || t[185] !== pt || t[186] !== G || t[187] !== gt ? (ht = /* @__PURE__ */ l.jsxs(Yt, { children: [
347
347
  K,
348
348
  dt,
349
349
  Q,
350
350
  pt,
351
351
  G,
352
- Z
353
- ] }), t[181] = It, t[182] = K, t[183] = dt, t[184] = Q, t[185] = pt, t[186] = G, t[187] = Z, t[188] = gt) : gt = t[188];
354
- let ht;
355
- t[189] !== P ? (ht = P.filter(zi).map(Bi), t[189] = P, t[190] = ht) : ht = t[190];
352
+ gt
353
+ ] }), t[181] = Yt, t[182] = K, t[183] = dt, t[184] = Q, t[185] = pt, t[186] = G, t[187] = gt, t[188] = ht) : ht = t[188];
356
354
  let yt;
357
- t[191] !== lt || t[192] !== rt || t[193] !== at || t[194] !== ct || t[195] !== E || t[196] !== gt || t[197] !== ht ? (yt = /* @__PURE__ */ l.jsxs("g", { transform: lt, children: [
355
+ t[189] !== T ? (yt = T.filter(zi).map(Bi), t[189] = T, t[190] = yt) : yt = t[190];
356
+ let vt;
357
+ t[191] !== lt || t[192] !== rt || t[193] !== at || t[194] !== ct || t[195] !== E || t[196] !== ht || t[197] !== yt ? (vt = /* @__PURE__ */ l.jsxs("g", { transform: lt, children: [
358
358
  rt,
359
359
  at,
360
360
  ct,
361
361
  E,
362
- gt,
363
- ht
364
- ] }), t[191] = lt, t[192] = rt, t[193] = at, t[194] = ct, t[195] = E, t[196] = gt, t[197] = ht, t[198] = yt) : yt = t[198];
365
- let vt;
366
- t[199] !== nt || t[200] !== ft || t[201] !== ut || t[202] !== mt || t[203] !== J || t[204] !== xt || t[205] !== yt ? (vt = /* @__PURE__ */ l.jsx(nt, { width: ft, height: ut, viewBox: mt, direction: J, ref: xt, children: yt }), t[199] = nt, t[200] = ft, t[201] = ut, t[202] = mt, t[203] = J, t[204] = xt, t[205] = yt, t[206] = vt) : vt = t[206];
362
+ ht,
363
+ yt
364
+ ] }), t[191] = lt, t[192] = rt, t[193] = at, t[194] = ct, t[195] = E, t[196] = ht, t[197] = yt, t[198] = vt) : vt = t[198];
367
365
  let bt;
368
- t[207] !== n?.tooltip || t[208] !== m || t[209] !== Ae || t[210] !== X || t[211] !== s?.tooltip || t[212] !== he ? (bt = X && he && m && Ae ? /* @__PURE__ */ l.jsx(Oi, { data: X, body: he, xPos: m, yPos: Ae, backgroundStyle: s?.tooltip, className: n?.tooltip }) : null, t[207] = n?.tooltip, t[208] = m, t[209] = Ae, t[210] = X, t[211] = s?.tooltip, t[212] = he, t[213] = bt) : bt = t[213];
369
- let At;
370
- t[214] !== n?.modal || t[215] !== S || t[216] !== W ? (At = S && W !== void 0 ? /* @__PURE__ */ l.jsx(Mi, { body: S, data: W, setData: d, className: n?.modal }) : null, t[214] = n?.modal, t[215] = S, t[216] = W, t[217] = At) : At = t[217];
371
- let Rt;
372
- return t[218] !== vt || t[219] !== bt || t[220] !== At ? (Rt = /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
373
- vt,
366
+ t[199] !== nt || t[200] !== ft || t[201] !== ut || t[202] !== mt || t[203] !== J || t[204] !== xt || t[205] !== vt ? (bt = /* @__PURE__ */ l.jsx(nt, { width: ft, height: ut, viewBox: mt, direction: J, ref: xt, children: vt }), t[199] = nt, t[200] = ft, t[201] = ut, t[202] = mt, t[203] = J, t[204] = xt, t[205] = vt, t[206] = bt) : bt = t[206];
367
+ let Z;
368
+ t[207] !== n?.tooltip || t[208] !== x || t[209] !== ye || t[210] !== X || t[211] !== s?.tooltip || t[212] !== xe ? (Z = X && xe && x && ye ? /* @__PURE__ */ l.jsx(Oi, { data: X, body: xe, xPos: x, yPos: ye, backgroundStyle: s?.tooltip, className: n?.tooltip }) : null, t[207] = n?.tooltip, t[208] = x, t[209] = ye, t[210] = X, t[211] = s?.tooltip, t[212] = xe, t[213] = Z) : Z = t[213];
369
+ let _;
370
+ t[214] !== n?.modal || t[215] !== S || t[216] !== W ? (_ = S && W !== void 0 ? /* @__PURE__ */ l.jsx(Mi, { body: S, data: W, setData: d, className: n?.modal }) : null, t[214] = n?.modal, t[215] = S, t[216] = W, t[217] = _) : _ = t[217];
371
+ let q;
372
+ return t[218] !== bt || t[219] !== Z || t[220] !== _ ? (q = /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
374
373
  bt,
375
- At
376
- ] }), t[218] = vt, t[219] = bt, t[220] = At, t[221] = Rt) : Rt = t[221], Rt;
374
+ Z,
375
+ _
376
+ ] }), t[218] = bt, t[219] = Z, t[220] = _, t[221] = q) : q = t[221], q;
377
377
  }
378
378
  function Bi(i) {
379
379
  return i.layer;
@@ -445,180 +445,177 @@ function xo(i, t) {
445
445
  };
446
446
  }
447
447
  function ws(i) {
448
- const t = mi.c(146), {
448
+ const t = mi.c(144), {
449
449
  data: o,
450
450
  graphTitle: ot,
451
451
  colors: V,
452
- sources: Bt,
453
- graphDescription: u,
452
+ sources: Gt,
453
+ graphDescription: m,
454
454
  showLabels: L,
455
455
  height: F,
456
456
  width: y,
457
457
  footNote: B,
458
458
  colorDomain: H,
459
- colorLegendTitle: ge,
460
- radius: ke,
461
- xAxisTitle: We,
462
- yAxisTitle: he,
459
+ colorLegendTitle: me,
460
+ radius: $e,
461
+ xAxisTitle: He,
462
+ yAxisTitle: xe,
463
463
  padding: st,
464
- backgroundColor: Se,
465
- leftMargin: Me,
466
- rightMargin: Ne,
467
- topMargin: $t,
464
+ backgroundColor: ke,
465
+ leftMargin: De,
466
+ rightMargin: Se,
467
+ topMargin: Vt,
468
468
  bottomMargin: z,
469
- tooltip: ye,
470
- relativeHeight: ve,
469
+ tooltip: de,
470
+ relativeHeight: pe,
471
471
  onSeriesMouseOver: j,
472
- refXValues: zt,
472
+ refXValues: qt,
473
473
  refYValues: O,
474
- highlightAreaSettings: k,
475
- showColorScale: Ut,
476
- highlightedDataPoints: Jt,
477
- showHighlightedDataPointsLabels: Kt,
478
- graphID: Dt,
474
+ highlightAreaSettings: D,
475
+ showColorScale: Bt,
476
+ highlightedDataPoints: ge,
477
+ showHighlightedDataPointsLabels: zt,
478
+ graphID: $t,
479
479
  maxRadiusValue: kt,
480
480
  maxXValue: S,
481
- minXValue: Qt,
482
- maxYValue: Zt,
481
+ minXValue: Ut,
482
+ maxYValue: Jt,
483
483
  minYValue: U,
484
- xSuffix: St,
485
- ySuffix: Mt,
486
- xPrefix: Nt,
487
- yPrefix: Pt,
484
+ xSuffix: Dt,
485
+ ySuffix: St,
486
+ xPrefix: Mt,
487
+ yPrefix: Nt,
488
488
  onSeriesMouseClick: s,
489
489
  graphDownload: n,
490
- dataDownload: c,
490
+ dataDownload: f,
491
491
  language: M,
492
492
  showNAColor: N,
493
- minHeight: Pe,
494
- annotations: P,
495
- customHighlightAreaSettings: _t,
496
- theme: Te,
497
- regressionLine: T,
498
- ariaLabel: Xe,
499
- resetSelectionOnDoubleClick: be,
500
- detailsOnClick: b,
493
+ minHeight: Me,
494
+ annotations: T,
495
+ customHighlightAreaSettings: Kt,
496
+ theme: Ne,
497
+ regressionLine: P,
498
+ ariaLabel: Te,
499
+ resetSelectionOnDoubleClick: he,
500
+ detailsOnClick: v,
501
501
  noOfXTicks: X,
502
502
  noOfYTicks: Tt,
503
503
  labelColor: W,
504
504
  styles: d,
505
- classNames: m,
506
- animate: Xt,
507
- dimmedOpacity: Ae,
508
- precision: Yt,
509
- customLayers: te,
510
- timeline: ee,
511
- showVoronoiTesselation: Oe,
512
- useVoronoiInteraction: h,
513
- locale: It
514
- } = i, nt = L === void 0 ? !1 : L, lt = ke === void 0 ? 5 : ke, rt = We === void 0 ? "X Axis" : We, at = he === void 0 ? "Y Axis" : he, ct = Se === void 0 ? !1 : Se, E = Me === void 0 ? 0 : Me, ft = Ne === void 0 ? 10 : Ne, ut = $t === void 0 ? 20 : $t, mt = z === void 0 ? 50 : z;
505
+ classNames: x,
506
+ animate: Pt,
507
+ dimmedOpacity: ye,
508
+ precision: Xt,
509
+ customLayers: Qt,
510
+ timeline: Zt,
511
+ showVoronoiTesselation: ve,
512
+ useVoronoiInteraction: g,
513
+ locale: Yt
514
+ } = i, nt = L === void 0 ? !1 : L, lt = $e === void 0 ? 5 : $e, rt = He === void 0 ? "X Axis" : He, at = xe === void 0 ? "Y Axis" : xe, ct = ke === void 0 ? !1 : ke, E = De === void 0 ? 0 : De, ft = Se === void 0 ? 10 : Se, ut = Vt === void 0 ? 20 : Vt, mt = z === void 0 ? 50 : z;
515
515
  let J;
516
- t[0] !== zt ? (J = zt === void 0 ? [] : zt, t[0] = zt, t[1] = J) : J = t[1];
516
+ t[0] !== qt ? (J = qt === void 0 ? [] : qt, t[0] = qt, t[1] = J) : J = t[1];
517
517
  const xt = J;
518
518
  let K;
519
519
  t[2] !== O ? (K = O === void 0 ? [] : O, t[2] = O, t[3] = K) : K = t[3];
520
520
  const dt = K;
521
521
  let Q;
522
- t[4] !== k ? (Q = k === void 0 ? [] : k, t[4] = k, t[5] = Q) : Q = t[5];
523
- const pt = Q, G = Ut === void 0 ? !0 : Ut;
524
- let Z;
525
- t[6] !== Jt ? (Z = Jt === void 0 ? [] : Jt, t[6] = Jt, t[7] = Z) : Z = t[7];
526
- const gt = Z, ht = Kt === void 0 ? !1 : Kt, yt = St === void 0 ? "" : St, vt = Mt === void 0 ? "" : Mt, bt = Nt === void 0 ? "" : Nt, At = Pt === void 0 ? "" : Pt, Rt = n === void 0 ? !1 : n, ie = c === void 0 ? !1 : c, p = M === void 0 ? "en" : M, v = N === void 0 ? !0 : N, $ = Pe === void 0 ? 0 : Pe;
527
- let Ft;
528
- t[8] !== P ? (Ft = P === void 0 ? [] : P, t[8] = P, t[9] = Ft) : Ft = t[9];
529
- const f = Ft;
530
- let x;
531
- t[10] !== _t ? (x = _t === void 0 ? [] : _t, t[10] = _t, t[11] = x) : x = t[11];
532
- const Ye = x, q = Te === void 0 ? "light" : Te, Ee = T === void 0 ? !1 : T, Ge = be === void 0 ? !0 : be, Ie = X === void 0 ? 5 : X, oe = Tt === void 0 ? 5 : Tt, se = Xt === void 0 ? !1 : Xt, Ce = Ae === void 0 ? 0.3 : Ae, ne = Yt === void 0 ? 2 : Yt;
533
- let le;
534
- t[12] !== te ? (le = te === void 0 ? [] : te, t[12] = te, t[13] = le) : le = t[13];
535
- const we = le;
536
- let Ht;
537
- t[14] !== ee ? (Ht = ee === void 0 ? {
522
+ t[4] !== D ? (Q = D === void 0 ? [] : D, t[4] = D, t[5] = Q) : Q = t[5];
523
+ const pt = Q, G = Bt === void 0 ? !0 : Bt, gt = zt === void 0 ? !1 : zt, ht = Dt === void 0 ? "" : Dt, yt = St === void 0 ? "" : St, vt = Mt === void 0 ? "" : Mt, bt = Nt === void 0 ? "" : Nt, Z = n === void 0 ? !1 : n, _ = f === void 0 ? !1 : f, q = M === void 0 ? "en" : M, be = N === void 0 ? !0 : N, b = Me === void 0 ? 0 : Me;
524
+ let h;
525
+ t[6] !== T ? (h = T === void 0 ? [] : T, t[6] = T, t[7] = h) : h = t[7];
526
+ const $ = h;
527
+ let It;
528
+ t[8] !== Kt ? (It = Kt === void 0 ? [] : Kt, t[8] = Kt, t[9] = It) : It = t[9];
529
+ const u = It, r = Ne === void 0 ? "light" : Ne, Pe = P === void 0 ? !1 : P, Xe = he === void 0 ? !0 : he, We = X === void 0 ? 5 : X, Ee = Tt === void 0 ? 5 : Tt, Ae = Pt === void 0 ? !1 : Pt, _t = ye === void 0 ? 0.3 : ye, Oe = Xt === void 0 ? 2 : Xt;
530
+ let te;
531
+ t[10] !== Qt ? (te = Qt === void 0 ? [] : Qt, t[10] = Qt, t[11] = te) : te = t[11];
532
+ const ee = te;
533
+ let ie;
534
+ t[12] !== Zt ? (ie = Zt === void 0 ? {
538
535
  enabled: !1,
539
536
  autoplay: !1,
540
537
  showOnlyActiveDate: !0
541
- } : ee, t[14] = ee, t[15] = Ht) : Ht = t[15];
542
- const r = Ht, Le = Oe === void 0 ? !1 : Oe, je = h === void 0 ? !0 : h, Ve = It === void 0 ? "en" : It, [_, qe] = qt(0), [tt, Be] = qt(0), [Y, re] = qt(r.autoplay);
543
- let Wt;
544
- if (t[16] !== o || t[17] !== r.dateFormat) {
545
- let g;
546
- t[19] !== r.dateFormat ? (g = (D) => gi(`${D.date}`, r.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[19] = r.dateFormat, t[20] = g) : g = t[20], Wt = [...new Set(o.filter(Eo).map(g))], Wt.sort(Wo), t[16] = o, t[17] = r.dateFormat, t[18] = Wt;
538
+ } : Zt, t[12] = Zt, t[13] = ie) : ie = t[13];
539
+ const a = ie, oe = ve === void 0 ? !1 : ve, Ce = g === void 0 ? !0 : g, we = Yt === void 0 ? "en" : Yt, [se, Ge] = Et(0), [tt, qe] = Et(0), [C, Be] = Et(a.autoplay);
540
+ let Rt;
541
+ if (t[14] !== o || t[15] !== a.dateFormat) {
542
+ let p;
543
+ t[17] !== a.dateFormat ? (p = (k) => gi(`${k.date}`, a.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[17] = a.dateFormat, t[18] = p) : p = t[18], Rt = [...new Set(o.filter(Eo).map(p))], Rt.sort(Wo), t[14] = o, t[15] = a.dateFormat, t[16] = Rt;
547
544
  } else
548
- Wt = t[18];
549
- const a = Wt, [C, Ot] = qt(r.autoplay ? 0 : a.length - 1), [ae, ze] = qt(void 0), $e = ii(null), Re = ii(null);
550
- let ce, Et;
551
- t[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ce = () => {
552
- const g = new ResizeObserver((D) => {
553
- qe(D[0].target.clientWidth || 620), Be(D[0].target.clientHeight || 480);
545
+ Rt = t[16];
546
+ const c = Rt, [Y, At] = Et(a.autoplay ? 0 : c.length - 1), [Ot, ne] = Et(void 0), le = ii(null), Ye = ii(null);
547
+ let re, ae;
548
+ t[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = () => {
549
+ const p = new ResizeObserver((k) => {
550
+ Ge(k[0].target.clientWidth || 620), qe(k[0].target.clientHeight || 480);
554
551
  });
555
- return $e.current && g.observe($e.current), () => g.disconnect();
556
- }, Et = [], t[21] = ce, t[22] = Et) : (ce = t[21], Et = t[22]), si(ce, Et);
557
- let fe, ue;
558
- t[23] !== Y || t[24] !== r.speed || t[25] !== a ? (fe = () => {
559
- const g = setInterval(() => {
560
- Ot((D) => D < a.length - 1 ? D + 1 : 0);
561
- }, (r.speed || 2) * 1e3);
562
- return Y || clearInterval(g), () => clearInterval(g);
563
- }, ue = [a, Y, r.speed], t[23] = Y, t[24] = r.speed, t[25] = a, t[26] = fe, t[27] = ue) : (fe = t[26], ue = t[27]), si(fe, ue);
564
- const me = r.dateFormat || "yyyy";
565
- let xe;
566
- t[28] !== C || t[29] !== me || t[30] !== r.showOnlyActiveDate || t[31] !== a ? (xe = hi(a, C, r.showOnlyActiveDate, me), t[28] = C, t[29] = me, t[30] = r.showOnlyActiveDate, t[31] = a, t[32] = xe) : xe = t[32];
567
- const de = xe, pe = m?.graphContainer, De = d?.graphContainer;
568
- let Ct;
569
- t[33] !== m?.description || t[34] !== m?.title || t[35] !== o || t[36] !== ie || t[37] !== u || t[38] !== Rt || t[39] !== ot || t[40] !== d?.description || t[41] !== d?.title || t[42] !== y ? (Ct = ot || u || Rt || ie ? /* @__PURE__ */ l.jsx(Yi, { styles: {
552
+ return le.current && p.observe(le.current), () => p.disconnect();
553
+ }, ae = [], t[19] = re, t[20] = ae) : (re = t[19], ae = t[20]), si(re, ae);
554
+ let ce, Ft;
555
+ t[21] !== C || t[22] !== a.speed || t[23] !== c ? (ce = () => {
556
+ const p = setInterval(() => {
557
+ At((k) => k < c.length - 1 ? k + 1 : 0);
558
+ }, (a.speed || 2) * 1e3);
559
+ return C || clearInterval(p), () => clearInterval(p);
560
+ }, Ft = [c, C, a.speed], t[21] = C, t[22] = a.speed, t[23] = c, t[24] = ce, t[25] = Ft) : (ce = t[24], Ft = t[25]), si(ce, Ft);
561
+ const Le = a.dateFormat || "yyyy";
562
+ let fe;
563
+ t[26] !== Y || t[27] !== Le || t[28] !== a.showOnlyActiveDate || t[29] !== c ? (fe = hi(c, Y, a.showOnlyActiveDate, Le), t[26] = Y, t[27] = Le, t[28] = a.showOnlyActiveDate, t[29] = c, t[30] = fe) : fe = t[30];
564
+ const Ht = fe, je = x?.graphContainer, Ve = d?.graphContainer;
565
+ let et;
566
+ t[31] !== x?.description || t[32] !== x?.title || t[33] !== o || t[34] !== _ || t[35] !== m || t[36] !== Z || t[37] !== ot || t[38] !== d?.description || t[39] !== d?.title || t[40] !== y ? (et = ot || m || Z || _ ? /* @__PURE__ */ l.jsx(Yi, { styles: {
570
567
  title: d?.title,
571
568
  description: d?.description
572
569
  }, classNames: {
573
- title: m?.title,
574
- description: m?.description
575
- }, graphTitle: ot, graphDescription: u, width: y, graphDownload: Rt ? Re : void 0, dataDownload: ie ? o.map(Ho).filter(Fo).length > 0 ? o.map(Ro).filter(Io) : o.filter(Yo) : null }) : null, t[33] = m?.description, t[34] = m?.title, t[35] = o, t[36] = ie, t[37] = u, t[38] = Rt, t[39] = ot, t[40] = d?.description, t[41] = d?.title, t[42] = y, t[43] = Ct) : Ct = t[43];
576
- let wt;
577
- t[44] !== C || t[45] !== de || t[46] !== Y || t[47] !== r.enabled || t[48] !== a ? (wt = r.enabled && a.length > 0 && de ? /* @__PURE__ */ l.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
570
+ title: x?.title,
571
+ description: x?.description
572
+ }, graphTitle: ot, graphDescription: m, width: y, graphDownload: Z ? Ye : void 0, dataDownload: _ ? o.map(Ho).filter(Fo).length > 0 ? o.map(Ro).filter(Io) : o.filter(Yo) : null }) : null, t[31] = x?.description, t[32] = x?.title, t[33] = o, t[34] = _, t[35] = m, t[36] = Z, t[37] = ot, t[38] = d?.description, t[39] = d?.title, t[40] = y, t[41] = et) : et = t[41];
573
+ let Ct;
574
+ t[42] !== Y || t[43] !== Ht || t[44] !== C || t[45] !== a.enabled || t[46] !== c ? (Ct = a.enabled && c.length > 0 && Ht ? /* @__PURE__ */ l.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
578
575
  /* @__PURE__ */ l.jsx("button", { type: "button", onClick: () => {
579
- re(!Y);
580
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Y ? "Click to pause animation" : "Click to play animation", children: Y ? /* @__PURE__ */ l.jsx(Fi, {}) : /* @__PURE__ */ l.jsx(Hi, {}) }),
581
- /* @__PURE__ */ l.jsx(yi, { min: a[0], max: a[a.length - 1], marks: de, step: null, defaultValue: a[a.length - 1], value: a[C], onChangeComplete: (g) => {
582
- Ot(a.indexOf(g));
583
- }, onChange: (g) => {
584
- Ot(a.indexOf(g));
576
+ Be(!C);
577
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": C ? "Click to pause animation" : "Click to play animation", children: C ? /* @__PURE__ */ l.jsx(Fi, {}) : /* @__PURE__ */ l.jsx(Hi, {}) }),
578
+ /* @__PURE__ */ l.jsx(yi, { min: c[0], max: c[c.length - 1], marks: Ht, step: null, defaultValue: c[c.length - 1], value: c[Y], onChangeComplete: (p) => {
579
+ At(c.indexOf(p));
580
+ }, onChange: (p) => {
581
+ At(c.indexOf(p));
585
582
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
586
- ] }) : null, t[44] = C, t[45] = de, t[46] = Y, t[47] = r.enabled, t[48] = a, t[49] = wt) : wt = t[49];
587
- let I;
588
- t[50] !== m?.colorLegend || t[51] !== H || t[52] !== ge || t[53] !== V || t[54] !== o || t[55] !== G || t[56] !== v || t[57] !== q || t[58] !== y ? (I = G && o.filter(Xo).length !== 0 && o.length > 0 ? /* @__PURE__ */ l.jsx(Ii, { width: y, colorLegendTitle: ge, colors: V || it[q].categoricalColors.colors, colorDomain: H || ui(o, "color", !0), setSelectedColor: ze, showNAColor: v, className: m?.colorLegend }) : null, t[50] = m?.colorLegend, t[51] = H, t[52] = ge, t[53] = V, t[54] = o, t[55] = G, t[56] = v, t[57] = q, t[58] = y, t[59] = I) : I = t[59];
583
+ ] }) : null, t[42] = Y, t[43] = Ht, t[44] = C, t[45] = a.enabled, t[46] = c, t[47] = Ct) : Ct = t[47];
584
+ let wt;
585
+ t[48] !== x?.colorLegend || t[49] !== H || t[50] !== me || t[51] !== V || t[52] !== o || t[53] !== G || t[54] !== be || t[55] !== r || t[56] !== y ? (wt = G && o.filter(Xo).length !== 0 && o.length > 0 ? /* @__PURE__ */ l.jsx(Ii, { width: y, colorLegendTitle: me, colors: V || it[r].categoricalColors.colors, colorDomain: H || ui(o, "color", !0), setSelectedColor: ne, showNAColor: be, className: x?.colorLegend }) : null, t[48] = x?.colorLegend, t[49] = H, t[50] = me, t[51] = V, t[52] = o, t[53] = G, t[54] = be, t[55] = r, t[56] = y, t[57] = wt) : wt = t[57];
589
586
  let Lt;
590
- t[60] !== o.length ? (Lt = o.length === 0 && /* @__PURE__ */ l.jsx(Ri, {}), t[60] = o.length, t[61] = Lt) : Lt = t[61];
591
- let R;
592
- t[62] !== se || t[63] !== f || t[64] !== mt || t[65] !== m || t[66] !== H || t[67] !== V || t[68] !== Ye || t[69] !== we || t[70] !== o || t[71] !== b || t[72] !== Ce || t[73] !== pt || t[74] !== gt || t[75] !== C || t[76] !== W || t[77] !== p || t[78] !== E || t[79] !== Ve || t[80] !== kt || t[81] !== S || t[82] !== Zt || t[83] !== Qt || t[84] !== U || t[85] !== Ie || t[86] !== oe || t[87] !== s || t[88] !== j || t[89] !== ne || t[90] !== lt || t[91] !== xt || t[92] !== dt || t[93] !== Ee || t[94] !== Ge || t[95] !== ft || t[96] !== ae || t[97] !== ht || t[98] !== nt || t[99] !== Le || t[100] !== d || t[101] !== tt || t[102] !== _ || t[103] !== q || t[104] !== r.dateFormat || t[105] !== r.enabled || t[106] !== ye || t[107] !== ut || t[108] !== a || t[109] !== je || t[110] !== rt || t[111] !== bt || t[112] !== yt || t[113] !== at || t[114] !== At || t[115] !== vt ? (R = _ && tt && o.length > 0 ? /* @__PURE__ */ l.jsx(qi, { data: Wi(o, r.dateFormat || "yyyy").filter((g) => r.enabled ? `${g.date}` === pi(new Date(a[C]), r.dateFormat || "yyyy") : g), width: _, height: tt, colorDomain: o.filter(To).length === 0 ? [] : H || ui(o, "color", !0), colors: o.filter(Po).length === 0 ? V ? [V] : [it.primaryColors["blue-600"]] : V || it[q].categoricalColors.colors, xAxisTitle: rt, yAxisTitle: at, refXValues: xt, refYValues: dt, showLabels: nt, radius: lt, leftMargin: E, rightMargin: ft, topMargin: ut, bottomMargin: mt, tooltip: ye, onSeriesMouseOver: j, highlightAreaSettings: pt, showVoronoiTesselation: Le, highlightedDataPoints: o.filter(No).length === 0 ? [] : gt, showHighlightedDataPointsLabels: ht, selectedColor: ae, maxRadiusValue: A(kt) ? Math.max(...o.map(Mo).filter(So)) : kt, maxXValue: A(S) ? Math.max(...o.map(ko).filter(Do)) > 0 ? Math.max(...o.map($o).filter(Vo)) : 0 : S, minXValue: A(Qt) ? Math.min(...o.map(jo).filter(Lo)) > 0 ? 0 : Math.min(...o.map(wo).filter(Co)) : Qt, maxYValue: A(Zt) ? Math.max(...o.map(Oo).filter(Ao)) > 0 ? Math.max(...o.map(bo).filter(vo)) : 0 : Zt, minYValue: A(U) ? Math.min(...o.map(yo).filter(ho)) > 0 ? 0 : Math.min(...o.map(go).filter(po)) : U, onSeriesMouseClick: s, rtl: p === "he" || p === "ar", annotations: f, customHighlightAreaSettings: Ye, regressionLine: Ee, resetSelectionOnDoubleClick: Ge, detailsOnClick: b, noOfXTicks: Ie, noOfYTicks: oe, labelColor: W, xSuffix: yt, ySuffix: vt, xPrefix: bt, yPrefix: At, styles: d, classNames: m, animate: se === !0 ? {
587
+ t[58] !== o.length ? (Lt = o.length === 0 && /* @__PURE__ */ l.jsx(Ri, {}), t[58] = o.length, t[59] = Lt) : Lt = t[59];
588
+ let I;
589
+ t[60] !== Ae || t[61] !== $ || t[62] !== mt || t[63] !== x || t[64] !== H || t[65] !== V || t[66] !== u || t[67] !== ee || t[68] !== o || t[69] !== v || t[70] !== _t || t[71] !== pt || t[72] !== ge || t[73] !== Y || t[74] !== W || t[75] !== q || t[76] !== E || t[77] !== we || t[78] !== kt || t[79] !== S || t[80] !== Jt || t[81] !== Ut || t[82] !== U || t[83] !== We || t[84] !== Ee || t[85] !== s || t[86] !== j || t[87] !== Oe || t[88] !== lt || t[89] !== xt || t[90] !== dt || t[91] !== Pe || t[92] !== Xe || t[93] !== ft || t[94] !== Ot || t[95] !== gt || t[96] !== nt || t[97] !== oe || t[98] !== d || t[99] !== tt || t[100] !== se || t[101] !== r || t[102] !== a.dateFormat || t[103] !== a.enabled || t[104] !== de || t[105] !== ut || t[106] !== c || t[107] !== Ce || t[108] !== rt || t[109] !== vt || t[110] !== ht || t[111] !== at || t[112] !== bt || t[113] !== yt ? (I = se && tt && o.length > 0 ? /* @__PURE__ */ l.jsx(qi, { data: Wi(o, a.dateFormat || "yyyy").filter((p) => a.enabled ? `${p.date}` === pi(new Date(c[Y]), a.dateFormat || "yyyy") : p), width: se, height: tt, colorDomain: o.filter(Po).length === 0 ? [] : H || ui(o, "color", !0), colors: o.filter(To).length === 0 ? V ? [V] : [it.primaryColors["blue-600"]] : V || it[r].categoricalColors.colors, xAxisTitle: rt, yAxisTitle: at, refXValues: xt, refYValues: dt, showLabels: nt, radius: lt, leftMargin: E, rightMargin: ft, topMargin: ut, bottomMargin: mt, tooltip: de, onSeriesMouseOver: j, highlightAreaSettings: pt, showVoronoiTesselation: oe, highlightedDataPoints: o.filter(No).length === 0 ? [] : ge, showHighlightedDataPointsLabels: gt, selectedColor: Ot, maxRadiusValue: A(kt) ? Math.max(...o.map(Mo).filter(So)) : kt, maxXValue: A(S) ? Math.max(...o.map(Do).filter(ko)) > 0 ? Math.max(...o.map($o).filter(Vo)) : 0 : S, minXValue: A(Ut) ? Math.min(...o.map(jo).filter(Lo)) > 0 ? 0 : Math.min(...o.map(wo).filter(Co)) : Ut, maxYValue: A(Jt) ? Math.max(...o.map(Oo).filter(Ao)) > 0 ? Math.max(...o.map(bo).filter(vo)) : 0 : Jt, minYValue: A(U) ? Math.min(...o.map(yo).filter(ho)) > 0 ? 0 : Math.min(...o.map(go).filter(po)) : U, onSeriesMouseClick: s, rtl: q === "he" || q === "ar", annotations: $, customHighlightAreaSettings: u, regressionLine: Pe, resetSelectionOnDoubleClick: Xe, detailsOnClick: v, noOfXTicks: We, noOfYTicks: Ee, labelColor: W, xSuffix: ht, ySuffix: yt, xPrefix: vt, yPrefix: bt, styles: d, classNames: x, animate: Ae === !0 ? {
593
590
  duration: 0.5,
594
591
  once: !0,
595
592
  amount: 0.5
596
- } : se || {
593
+ } : Ae || {
597
594
  duration: 0,
598
595
  once: !0,
599
596
  amount: 0
600
- }, dimmedOpacity: Ce, precision: ne, customLayers: we, useVoronoiInteraction: je, locale: Ve }) : null, t[62] = se, t[63] = f, t[64] = mt, t[65] = m, t[66] = H, t[67] = V, t[68] = Ye, t[69] = we, t[70] = o, t[71] = b, t[72] = Ce, t[73] = pt, t[74] = gt, t[75] = C, t[76] = W, t[77] = p, t[78] = E, t[79] = Ve, t[80] = kt, t[81] = S, t[82] = Zt, t[83] = Qt, t[84] = U, t[85] = Ie, t[86] = oe, t[87] = s, t[88] = j, t[89] = ne, t[90] = lt, t[91] = xt, t[92] = dt, t[93] = Ee, t[94] = Ge, t[95] = ft, t[96] = ae, t[97] = ht, t[98] = nt, t[99] = Le, t[100] = d, t[101] = tt, t[102] = _, t[103] = q, t[104] = r.dateFormat, t[105] = r.enabled, t[106] = ye, t[107] = ut, t[108] = a, t[109] = je, t[110] = rt, t[111] = bt, t[112] = yt, t[113] = at, t[114] = At, t[115] = vt, t[116] = R) : R = t[116];
597
+ }, dimmedOpacity: _t, precision: Oe, customLayers: ee, useVoronoiInteraction: Ce, locale: we }) : null, t[60] = Ae, t[61] = $, t[62] = mt, t[63] = x, t[64] = H, t[65] = V, t[66] = u, t[67] = ee, t[68] = o, t[69] = v, t[70] = _t, t[71] = pt, t[72] = ge, t[73] = Y, t[74] = W, t[75] = q, t[76] = E, t[77] = we, t[78] = kt, t[79] = S, t[80] = Jt, t[81] = Ut, t[82] = U, t[83] = We, t[84] = Ee, t[85] = s, t[86] = j, t[87] = Oe, t[88] = lt, t[89] = xt, t[90] = dt, t[91] = Pe, t[92] = Xe, t[93] = ft, t[94] = Ot, t[95] = gt, t[96] = nt, t[97] = oe, t[98] = d, t[99] = tt, t[100] = se, t[101] = r, t[102] = a.dateFormat, t[103] = a.enabled, t[104] = de, t[105] = ut, t[106] = c, t[107] = Ce, t[108] = rt, t[109] = vt, t[110] = ht, t[111] = at, t[112] = bt, t[113] = yt, t[114] = I) : I = t[114];
601
598
  let jt;
602
- t[117] !== Lt || t[118] !== R ? (jt = /* @__PURE__ */ l.jsxs(Ei, { ref: $e, children: [
599
+ t[115] !== Lt || t[116] !== I ? (jt = /* @__PURE__ */ l.jsxs(Ei, { ref: le, children: [
603
600
  Lt,
604
- R
605
- ] }), t[117] = Lt, t[118] = R, t[119] = jt) : jt = t[119];
606
- let Vt;
607
- t[120] !== m?.footnote || t[121] !== m?.source || t[122] !== B || t[123] !== Bt || t[124] !== d?.footnote || t[125] !== d?.source || t[126] !== y ? (Vt = Bt || B ? /* @__PURE__ */ l.jsx(Xi, { styles: {
601
+ I
602
+ ] }), t[115] = Lt, t[116] = I, t[117] = jt) : jt = t[117];
603
+ let R;
604
+ t[118] !== x?.footnote || t[119] !== x?.source || t[120] !== B || t[121] !== Gt || t[122] !== d?.footnote || t[123] !== d?.source || t[124] !== y ? (R = Gt || B ? /* @__PURE__ */ l.jsx(Xi, { styles: {
608
605
  footnote: d?.footnote,
609
606
  source: d?.source
610
607
  }, classNames: {
611
- footnote: m?.footnote,
612
- source: m?.source
613
- }, sources: Bt, footNote: B, width: y }) : null, t[120] = m?.footnote, t[121] = m?.source, t[122] = B, t[123] = Bt, t[124] = d?.footnote, t[125] = d?.source, t[126] = y, t[127] = Vt) : Vt = t[127];
614
- let et;
615
- return t[128] !== Xe || t[129] !== ct || t[130] !== Dt || t[131] !== F || t[132] !== p || t[133] !== $ || t[134] !== st || t[135] !== ve || t[136] !== pe || t[137] !== De || t[138] !== Ct || t[139] !== wt || t[140] !== I || t[141] !== jt || t[142] !== Vt || t[143] !== q || t[144] !== y ? (et = /* @__PURE__ */ l.jsxs(Gi, { className: pe, style: De, id: Dt, ref: Re, "aria-label": Xe, backgroundColor: ct, theme: q, language: p, minHeight: $, width: y, height: F, relativeHeight: ve, padding: st, children: [
608
+ footnote: x?.footnote,
609
+ source: x?.source
610
+ }, sources: Gt, footNote: B, width: y }) : null, t[118] = x?.footnote, t[119] = x?.source, t[120] = B, t[121] = Gt, t[122] = d?.footnote, t[123] = d?.source, t[124] = y, t[125] = R) : R = t[125];
611
+ let ue;
612
+ return t[126] !== Te || t[127] !== ct || t[128] !== $t || t[129] !== F || t[130] !== q || t[131] !== b || t[132] !== st || t[133] !== pe || t[134] !== je || t[135] !== Ve || t[136] !== et || t[137] !== Ct || t[138] !== wt || t[139] !== jt || t[140] !== R || t[141] !== r || t[142] !== y ? (ue = /* @__PURE__ */ l.jsxs(Gi, { className: je, style: Ve, id: $t, ref: Ye, "aria-label": Te, backgroundColor: ct, theme: r, language: q, minHeight: b, width: y, height: F, relativeHeight: pe, padding: st, children: [
613
+ et,
616
614
  Ct,
617
615
  wt,
618
- I,
619
616
  jt,
620
- Vt
621
- ] }), t[128] = Xe, t[129] = ct, t[130] = Dt, t[131] = F, t[132] = p, t[133] = $, t[134] = st, t[135] = ve, t[136] = pe, t[137] = De, t[138] = Ct, t[139] = wt, t[140] = I, t[141] = jt, t[142] = Vt, t[143] = q, t[144] = y, t[145] = et) : et = t[145], et;
617
+ R
618
+ ] }), t[126] = Te, t[127] = ct, t[128] = $t, t[129] = F, t[130] = q, t[131] = b, t[132] = st, t[133] = pe, t[134] = je, t[135] = Ve, t[136] = et, t[137] = Ct, t[138] = wt, t[139] = jt, t[140] = R, t[141] = r, t[142] = y, t[143] = ue) : ue = t[143], ue;
622
619
  }
623
620
  function po(i) {
624
621
  return i != null;
@@ -662,10 +659,10 @@ function Vo(i) {
662
659
  function $o(i) {
663
660
  return i.x;
664
661
  }
665
- function Do(i) {
662
+ function ko(i) {
666
663
  return i != null;
667
664
  }
668
- function ko(i) {
665
+ function Do(i) {
669
666
  return i.x;
670
667
  }
671
668
  function So(i) {
@@ -677,10 +674,10 @@ function Mo(i) {
677
674
  function No(i) {
678
675
  return i.label;
679
676
  }
680
- function Po(i) {
677
+ function To(i) {
681
678
  return i.color;
682
679
  }
683
- function To(i) {
680
+ function Po(i) {
684
681
  return i.color;
685
682
  }
686
683
  function Xo(i) {