@undp/data-viz 2.0.0 → 2.0.2

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 (140) hide show
  1. package/dist/BarGraph.cjs +1 -1
  2. package/dist/BarGraph.cjs.map +1 -1
  3. package/dist/BarGraph.js +959 -959
  4. package/dist/BarGraph.js.map +1 -1
  5. package/dist/BasicStatCard.cjs +1 -1
  6. package/dist/BasicStatCard.cjs.map +1 -1
  7. package/dist/BasicStatCard.js +45 -47
  8. package/dist/BasicStatCard.js.map +1 -1
  9. package/dist/BeeSwarmChart.cjs +1 -1
  10. package/dist/BeeSwarmChart.cjs.map +1 -1
  11. package/dist/BeeSwarmChart.js +76 -56
  12. package/dist/BeeSwarmChart.js.map +1 -1
  13. package/dist/BiVariateChoroplethMap.cjs +1 -1
  14. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  15. package/dist/BiVariateChoroplethMap.js +157 -157
  16. package/dist/BiVariateChoroplethMap.js.map +1 -1
  17. package/dist/BulletChart.cjs +1 -1
  18. package/dist/BulletChart.js +2 -2
  19. package/dist/ButterflyChart.cjs +1 -1
  20. package/dist/ButterflyChart.js +1 -1
  21. package/dist/ChoroplethMap.cjs +1 -1
  22. package/dist/ChoroplethMap.cjs.map +1 -1
  23. package/dist/ChoroplethMap.js +185 -185
  24. package/dist/ChoroplethMap.js.map +1 -1
  25. package/dist/CirclePackingGraph.cjs +1 -1
  26. package/dist/CirclePackingGraph.js +2 -4
  27. package/dist/CirclePackingGraph.js.map +1 -1
  28. package/dist/Data/barChart.json +70 -0
  29. package/dist/Data/basic.csv +20 -0
  30. package/dist/DifferenceLineChart.cjs +1 -1
  31. package/dist/DifferenceLineChart.cjs.map +1 -1
  32. package/dist/DifferenceLineChart.js +224 -223
  33. package/dist/DifferenceLineChart.js.map +1 -1
  34. package/dist/DonutChart.cjs +1 -1
  35. package/dist/DonutChart.cjs.map +1 -1
  36. package/dist/DonutChart.js +32 -24
  37. package/dist/DonutChart.js.map +1 -1
  38. package/dist/DotDensityMap.cjs +1 -1
  39. package/dist/DotDensityMap.cjs.map +1 -1
  40. package/dist/DotDensityMap.js +156 -156
  41. package/dist/DotDensityMap.js.map +1 -1
  42. package/dist/DualAxisLineChart.cjs +1 -1
  43. package/dist/DualAxisLineChart.cjs.map +1 -1
  44. package/dist/DualAxisLineChart.js +326 -325
  45. package/dist/DualAxisLineChart.js.map +1 -1
  46. package/dist/DumbbellChart.cjs +1 -1
  47. package/dist/DumbbellChart.js +2 -2
  48. package/dist/GeoHubCompareMaps.cjs +1 -1
  49. package/dist/GeoHubCompareMaps.cjs.map +1 -1
  50. package/dist/GeoHubCompareMaps.js +183 -183
  51. package/dist/GeoHubCompareMaps.js.map +1 -1
  52. package/dist/{GraphEl-DzRon4cb.js → GraphEl-BZne2JIx.js} +3 -3
  53. package/dist/{GraphEl-DzRon4cb.js.map → GraphEl-BZne2JIx.js.map} +1 -1
  54. package/dist/{GraphEl-BkyLYXG5.cjs → GraphEl-D5MUfp45.cjs} +2 -2
  55. package/dist/{GraphEl-BkyLYXG5.cjs.map → GraphEl-D5MUfp45.cjs.map} +1 -1
  56. package/dist/GriddedGraphs.cjs +1 -1
  57. package/dist/GriddedGraphs.js +1 -1
  58. package/dist/HeatMap.cjs +1 -1
  59. package/dist/HeatMap.js +2 -2
  60. package/dist/Histogram.cjs +1 -1
  61. package/dist/Histogram.js +1 -1
  62. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  63. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  64. package/dist/LineChartWithConfidenceInterval.js +133 -132
  65. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  66. package/dist/MultiGraphDashboard.cjs +1 -1
  67. package/dist/MultiGraphDashboard.cjs.map +1 -1
  68. package/dist/MultiGraphDashboard.js +52 -50
  69. package/dist/MultiGraphDashboard.js.map +1 -1
  70. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  71. package/dist/MultiGraphDashboardWideToLongFormat.cjs.map +1 -1
  72. package/dist/MultiGraphDashboardWideToLongFormat.js +11 -9
  73. package/dist/MultiGraphDashboardWideToLongFormat.js.map +1 -1
  74. package/dist/MultiLineAltChart.cjs +1 -1
  75. package/dist/MultiLineAltChart.cjs.map +1 -1
  76. package/dist/MultiLineAltChart.js +149 -148
  77. package/dist/MultiLineAltChart.js.map +1 -1
  78. package/dist/MultiLineChart.cjs +1 -1
  79. package/dist/MultiLineChart.cjs.map +1 -1
  80. package/dist/MultiLineChart.js +182 -181
  81. package/dist/MultiLineChart.js.map +1 -1
  82. package/dist/ParetoChart.cjs +1 -1
  83. package/dist/ParetoChart.js +1 -1
  84. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  85. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
  86. package/dist/PerformanceIntensiveMultiGraphDashboard.js +14 -12
  87. package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
  88. package/dist/SimpleLineChart.cjs +1 -1
  89. package/dist/SimpleLineChart.cjs.map +1 -1
  90. package/dist/SimpleLineChart.js +123 -122
  91. package/dist/SimpleLineChart.js.map +1 -1
  92. package/dist/SingleGraphDashboard.cjs +1 -1
  93. package/dist/SingleGraphDashboard.cjs.map +1 -1
  94. package/dist/SingleGraphDashboard.js +83 -79
  95. package/dist/SingleGraphDashboard.js.map +1 -1
  96. package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
  97. package/dist/SingleGraphDashboardGeoHubMaps.cjs.map +1 -1
  98. package/dist/SingleGraphDashboardGeoHubMaps.js +49 -45
  99. package/dist/SingleGraphDashboardGeoHubMaps.js.map +1 -1
  100. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  101. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  102. package/dist/SingleGraphDashboardThreeDGraphs.js +56 -52
  103. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  104. package/dist/StatCardFromData.cjs +1 -1
  105. package/dist/StatCardFromData.cjs.map +1 -1
  106. package/dist/StatCardFromData.js +44 -46
  107. package/dist/StatCardFromData.js.map +1 -1
  108. package/dist/ThreeDGlobe.cjs +1 -1
  109. package/dist/ThreeDGlobe.cjs.map +1 -1
  110. package/dist/ThreeDGlobe.js +134 -134
  111. package/dist/ThreeDGlobe.js.map +1 -1
  112. package/dist/{XAxesLabels-D5X8jngD.cjs → XAxesLabels-C1XSXoWG.cjs} +2 -2
  113. package/dist/XAxesLabels-C1XSXoWG.cjs.map +1 -0
  114. package/dist/{XAxesLabels-DNO0KmjL.js → XAxesLabels-Dmbk50u4.js} +18 -16
  115. package/dist/XAxesLabels-Dmbk50u4.js.map +1 -0
  116. package/dist/YAxesLabels-1XTb-D0_.js +72 -0
  117. package/dist/YAxesLabels-1XTb-D0_.js.map +1 -0
  118. package/dist/YAxesLabels-pjdsVwIM.cjs +2 -0
  119. package/dist/YAxesLabels-pjdsVwIM.cjs.map +1 -0
  120. package/dist/getNoOfTicks-C_1CFXv_.cjs +2 -0
  121. package/dist/getNoOfTicks-C_1CFXv_.cjs.map +1 -0
  122. package/dist/getNoOfTicks-CpmRjcRF.js +7 -0
  123. package/dist/getNoOfTicks-CpmRjcRF.js.map +1 -0
  124. package/dist/index-C6LorfZ-.cjs +2 -0
  125. package/dist/index-C6LorfZ-.cjs.map +1 -0
  126. package/dist/index-Ceppbd8C.js +342 -0
  127. package/dist/index-Ceppbd8C.js.map +1 -0
  128. package/dist/index.cjs +1 -1
  129. package/dist/index.js +1 -1
  130. package/package.json +1 -1
  131. package/dist/XAxesLabels-D5X8jngD.cjs.map +0 -1
  132. package/dist/XAxesLabels-DNO0KmjL.js.map +0 -1
  133. package/dist/YAxesLabels-DcS85Beo.cjs +0 -2
  134. package/dist/YAxesLabels-DcS85Beo.cjs.map +0 -1
  135. package/dist/YAxesLabels-Dnnng49-.js +0 -70
  136. package/dist/YAxesLabels-Dnnng49-.js.map +0 -1
  137. package/dist/index-DoY3Ga3W.cjs +0 -2
  138. package/dist/index-DoY3Ga3W.cjs.map +0 -1
  139. package/dist/index-leTnKT2q.js +0 -329
  140. package/dist/index-leTnKT2q.js.map +0 -1
package/dist/BarGraph.js CHANGED
@@ -10,13 +10,13 @@ import { n as ue } from "./numberFormattingFunction-14YCbkN2.js";
10
10
  import { T as Oe } from "./Tooltip-CwWUegPB.js";
11
11
  import { c as _t } from "./checkIfNullOrUndefined-DmfiKkNw.js";
12
12
  import { s as Me } from "./string2HTML-DhG75NqA.js";
13
- import { Y as Pe } from "./YAxesLabels-Dnnng49-.js";
13
+ import { Y as Pe } from "./YAxesLabels-1XTb-D0_.js";
14
14
  import { A as ke } from "./Axis-CRyfcLjc.js";
15
15
  import { A as Ce } from "./AxisTitle-jeI7am8o.js";
16
16
  import { X as Fe } from "./XTicksAndGridLines-CObVFSm4.js";
17
17
  import { R as He, a as Xe } from "./ReferenceLine-2XCwHXQ4.js";
18
18
  import { Y as Ye } from "./YTicksAndGridLines-Blepl7XF.js";
19
- import { X as Ee } from "./XAxesLabels-DNO0KmjL.js";
19
+ import { X as Ee } from "./XAxesLabels-Dmbk50u4.js";
20
20
  import { u as Ve } from "./use-in-view-Cxa7y1TH.js";
21
21
  import { a as Le } from "./linear-BwnDd9KF.js";
22
22
  import { b as ge } from "./band-CyHaVft5.js";
@@ -37,81 +37,81 @@ import { g as Te } from "./getTextColorBasedOnBgColor-CDY808zi.js";
37
37
  function ei(e) {
38
38
  const t = xe.c(122), {
39
39
  data: m,
40
- leftMargin: z,
40
+ leftMargin: D,
41
41
  rightMargin: Xt,
42
42
  topMargin: St,
43
43
  bottomMargin: gt,
44
- barColors: et,
45
- barPadding: dt,
46
- showTicks: V,
47
- truncateBy: N,
48
- width: f,
49
- height: H,
50
- suffix: zt,
51
- prefix: ct,
52
- showValues: Nt,
53
- showLabels: X,
54
- tooltip: it,
55
- onSeriesMouseOver: xt,
56
- refValues: mt,
44
+ barColors: tt,
45
+ barPadding: ut,
46
+ showTicks: C,
47
+ truncateBy: T,
48
+ width: y,
49
+ height: P,
50
+ suffix: Dt,
51
+ prefix: rt,
52
+ showValues: zt,
53
+ showLabels: F,
54
+ tooltip: et,
55
+ onSeriesMouseOver: dt,
56
+ refValues: xt,
57
57
  maxValue: Tt,
58
58
  minValue: w,
59
- onSeriesMouseClick: st,
60
- selectedColor: q,
61
- rtl: G,
62
- labelOrder: Q,
63
- maxBarThickness: O,
64
- resetSelectionOnDoubleClick: Y,
65
- detailsOnClick: M,
66
- barAxisTitle: U,
67
- valueColor: S,
59
+ onSeriesMouseClick: it,
60
+ selectedColor: W,
61
+ rtl: Y,
62
+ labelOrder: K,
63
+ maxBarThickness: R,
64
+ resetSelectionOnDoubleClick: H,
65
+ detailsOnClick: O,
66
+ barAxisTitle: q,
67
+ valueColor: I,
68
68
  noOfTicks: a,
69
69
  styles: s,
70
70
  classNames: n,
71
71
  animate: u,
72
72
  colorDomain: d,
73
- precision: p,
73
+ precision: f,
74
74
  customLayers: x,
75
75
  naLabel: $
76
- } = e, Z = z === void 0 ? 100 : z, J = Xt === void 0 ? 40 : Xt, ut = St === void 0 ? 25 : St, Ft = gt === void 0 ? 10 : gt, Yt = de(null);
77
- let W;
78
- t[0] !== u.amount || t[1] !== u.once ? (W = {
76
+ } = e, Q = D === void 0 ? 100 : D, U = Xt === void 0 ? 40 : Xt, ct = St === void 0 ? 25 : St, Ft = gt === void 0 ? 10 : gt, Yt = de(null);
77
+ let E;
78
+ t[0] !== u.amount || t[1] !== u.once ? (E = {
79
79
  once: u.once,
80
80
  amount: u.amount
81
- }, t[0] = u.amount, t[1] = u.once, t[2] = W) : W = t[2];
82
- const yt = Ve(Yt, W), Bt = U ? ut + 25 : ut;
81
+ }, t[0] = u.amount, t[1] = u.once, t[2] = E) : E = t[2];
82
+ const yt = Ve(Yt, E), Bt = q ? ct + 25 : ct;
83
83
  let r;
84
- t[3] !== Ft || t[4] !== Z || t[5] !== J || t[6] !== Bt ? (r = {
84
+ t[3] !== Ft || t[4] !== Q || t[5] !== U || t[6] !== Bt ? (r = {
85
85
  top: Bt,
86
86
  bottom: Ft,
87
- left: Z,
88
- right: J
89
- }, t[3] = Ft, t[4] = Z, t[5] = J, t[6] = Bt, t[7] = r) : r = t[7];
90
- const c = r, [F, h] = Wt(void 0), [L, B] = Wt(void 0), [A, jt] = Wt(void 0), [bt, ot] = Wt(void 0), ht = f - c.left - c.right, j = H - c.top - c.bottom;
91
- let y, _, tt, K, D, ft, Ct, nt, Vt, R, lt, E, P, pt;
92
- if (t[8] !== u || t[9] !== U || t[10] !== et || t[11] !== dt || t[12] !== n?.graphObjectValues || t[13] !== n?.xAxis?.gridLines || t[14] !== n?.xAxis?.labels || t[15] !== n?.xAxis?.title || t[16] !== n?.yAxis?.axis || t[17] !== n?.yAxis?.labels || t[18] !== d || t[19] !== x || t[20] !== m || t[21] !== M || t[22] !== j || t[23] !== ht || t[24] !== H || t[25] !== yt || t[26] !== Q || t[27] !== c.bottom || t[28] !== c.left || t[29] !== c.top || t[30] !== O || t[31] !== Tt || t[32] !== w || t[33] !== L || t[34] !== $ || t[35] !== a || t[36] !== st || t[37] !== xt || t[38] !== p || t[39] !== ct || t[40] !== mt || t[41] !== Y || t[42] !== G || t[43] !== q || t[44] !== X || t[45] !== V || t[46] !== Nt || t[47] !== s?.graphObjectValues || t[48] !== s?.xAxis?.gridLines || t[49] !== s?.xAxis?.labels || t[50] !== s?.xAxis?.title || t[51] !== s?.yAxis?.axis || t[52] !== s?.yAxis?.labels || t[53] !== zt || t[54] !== ut || t[55] !== N || t[56] !== S || t[57] !== f) {
93
- let rt;
94
- t[72] !== Q ? (rt = (v, C) => ({
87
+ left: Q,
88
+ right: U
89
+ }, t[3] = Ft, t[4] = Q, t[5] = U, t[6] = Bt, t[7] = r) : r = t[7];
90
+ const c = r, [B, h] = Wt(void 0), [V, S] = Wt(void 0), [A, Lt] = Wt(void 0), [bt, st] = Wt(void 0), mt = y - c.left - c.right, L = P - c.top - c.bottom;
91
+ let g, Z, _, J, j, ht, kt, ot, Ct, G, nt, X, ft, pt;
92
+ if (t[8] !== u || t[9] !== q || t[10] !== tt || t[11] !== ut || t[12] !== n?.graphObjectValues || t[13] !== n?.xAxis?.gridLines || t[14] !== n?.xAxis?.labels || t[15] !== n?.xAxis?.title || t[16] !== n?.yAxis?.axis || t[17] !== n?.yAxis?.labels || t[18] !== d || t[19] !== x || t[20] !== m || t[21] !== O || t[22] !== L || t[23] !== mt || t[24] !== P || t[25] !== yt || t[26] !== K || t[27] !== c.bottom || t[28] !== c.left || t[29] !== c.top || t[30] !== R || t[31] !== Tt || t[32] !== w || t[33] !== V || t[34] !== $ || t[35] !== a || t[36] !== it || t[37] !== dt || t[38] !== f || t[39] !== rt || t[40] !== xt || t[41] !== H || t[42] !== Y || t[43] !== W || t[44] !== F || t[45] !== C || t[46] !== zt || t[47] !== s?.graphObjectValues || t[48] !== s?.xAxis?.gridLines || t[49] !== s?.xAxis?.labels || t[50] !== s?.xAxis?.title || t[51] !== s?.yAxis?.axis || t[52] !== s?.yAxis?.labels || t[53] !== Dt || t[54] !== ct || t[55] !== T || t[56] !== I || t[57] !== y) {
93
+ let at;
94
+ t[72] !== K ? (at = (v, k) => ({
95
95
  ...v,
96
- id: Q ? `${v.label}` : `${C}`
97
- }), t[72] = Q, t[73] = rt) : rt = t[73];
98
- const It = m.map(rt), Et = Q || It.map(ci), k = Le().domain([w, Tt]).range([0, ht]).nice(), Rt = ge().domain(Et).range([0, O ? Math.min(j, O * Et.length) : j]).paddingInner(dt), Mt = ge().domain(m[0].size.map(ri)).range([0, Rt.bandwidth()]).paddingInner(0.1), Kt = k.ticks(a);
99
- _ = Zt.svg, Ct = Yt, nt = `${f}px`, Vt = `${H}px`, R = `0 0 ${f} ${H}`, lt = "ltr", tt = `translate(${c.left},${c.top})`, K = V ? /* @__PURE__ */ i.jsx(Fe, { values: Kt.filter(ai), x: Kt.filter(li).map((v) => k(v)), y1: 0 - ut, y2: j + c.bottom, styles: {
96
+ id: K ? `${v.label}` : `${k}`
97
+ }), t[72] = K, t[73] = at) : at = t[73];
98
+ const It = m.map(at), Et = K || It.map(ci), M = Le().domain([w, Tt]).range([0, mt]).nice(), qt = ge().domain(Et).range([0, R ? Math.min(L, R * Et.length) : L]).paddingInner(ut), Nt = ge().domain(m[0].size.map(ri)).range([0, qt.bandwidth()]).paddingInner(0.1), Kt = M.ticks(a);
99
+ Z = Zt.svg, kt = Yt, ot = `${y}px`, Ct = `${P}px`, G = `0 0 ${y} ${P}`, nt = "ltr", _ = `translate(${c.left},${c.top})`, J = C ? /* @__PURE__ */ i.jsx(Fe, { values: Kt.filter(ai), x: Kt.filter(li).map((v) => M(v)), y1: 0 - ct, y2: L + c.bottom, styles: {
100
100
  gridLines: s?.xAxis?.gridLines,
101
101
  labels: s?.xAxis?.labels
102
102
  }, classNames: {
103
103
  gridLines: n?.xAxis?.gridLines,
104
104
  labels: n?.xAxis?.labels
105
- }, suffix: zt, prefix: ct, labelType: "secondary", showGridLines: !0, precision: p }) : null;
106
- const Dt = ht / 2, Qt = 0 - c.top + 15, Ut = s?.xAxis?.title, Ht = n?.xAxis?.title;
107
- t[74] !== U || t[75] !== Dt || t[76] !== Qt || t[77] !== Ut || t[78] !== Ht ? (D = /* @__PURE__ */ i.jsx(Ce, { x: Dt, y: Qt, style: Ut, className: Ht, text: U }), t[74] = U, t[75] = Dt, t[76] = Qt, t[77] = Ut, t[78] = Ht, t[79] = D) : D = t[79], t[80] !== x ? (ft = x.filter(ni).map(oi), t[80] = x, t[81] = ft) : ft = t[81], y = je, E = It.map((v) => _t(Rt(v.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { variants: {
105
+ }, suffix: Dt, prefix: rt, labelType: "secondary", showGridLines: !0, precision: f }) : null;
106
+ const jt = mt / 2, Qt = 0 - c.top + 15, Ut = s?.xAxis?.title, Ht = n?.xAxis?.title;
107
+ t[74] !== q || t[75] !== jt || t[76] !== Qt || t[77] !== Ut || t[78] !== Ht ? (j = /* @__PURE__ */ i.jsx(Ce, { x: jt, y: Qt, style: Ut, className: Ht, text: q }), t[74] = q, t[75] = jt, t[76] = Qt, t[77] = Ut, t[78] = Ht, t[79] = j) : j = t[79], t[80] !== x ? (ht = x.filter(ni).map(oi), t[80] = x, t[81] = ht) : ht = t[81], g = je, X = It.map((v) => _t(qt(v.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { variants: {
108
108
  initial: {
109
109
  x: 0,
110
- y: Rt(`${v.id}`)
110
+ y: qt(`${v.id}`)
111
111
  },
112
112
  whileInView: {
113
113
  x: 0,
114
- y: Rt(`${v.id}`),
114
+ y: qt(`${v.id}`),
115
115
  transition: {
116
116
  duration: u.duration
117
117
  }
@@ -122,67 +122,67 @@ function ei(e) {
122
122
  duration: u.duration
123
123
  }
124
124
  }, children: [
125
- v.size.map((C, o) => /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-g-with-hover", opacity: q ? et[o] === q ? 1 : 0.3 : 0.85, onMouseEnter: (g) => {
125
+ v.size.map((k, o) => /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-g-with-hover", opacity: W ? tt[o] === W ? 1 : 0.3 : 0.85, onMouseEnter: (p) => {
126
126
  h({
127
127
  ...v,
128
128
  sizeIndex: o
129
- }), ot(g.clientY), jt(g.clientX), xt?.({
129
+ }), st(p.clientY), Lt(p.clientX), dt?.({
130
130
  ...v,
131
131
  sizeIndex: o
132
132
  });
133
- }, onMouseMove: (g) => {
133
+ }, onMouseMove: (p) => {
134
134
  h({
135
135
  ...v,
136
136
  sizeIndex: o
137
- }), ot(g.clientY), jt(g.clientX);
137
+ }), st(p.clientY), Lt(p.clientX);
138
138
  }, onMouseLeave: () => {
139
- h(void 0), jt(void 0), ot(void 0), xt?.(void 0);
139
+ h(void 0), Lt(void 0), st(void 0), dt?.(void 0);
140
140
  }, onClick: () => {
141
- (st || M) && (Ae(L, {
141
+ (it || O) && (Ae(V, {
142
142
  ...v,
143
143
  sizeIndex: o
144
- }) && Y ? (B(void 0), st?.(void 0)) : (B({
144
+ }) && H ? (S(void 0), it?.(void 0)) : (S({
145
145
  ...v,
146
146
  sizeIndex: o
147
- }), st && st({
147
+ }), it && it({
148
148
  ...v,
149
149
  sizeIndex: o
150
150
  })));
151
151
  }, children: [
152
- _t(C) ? null : /* @__PURE__ */ i.jsx(Zt.rect, { y: Mt(`${o}`), variants: {
152
+ _t(k) ? null : /* @__PURE__ */ i.jsx(Zt.rect, { y: Nt(`${o}`), variants: {
153
153
  initial: {
154
154
  width: 0,
155
- x: k(0),
156
- fill: et[o]
155
+ x: M(0),
156
+ fill: tt[o]
157
157
  },
158
158
  whileInView: {
159
- width: _t(C) ? 0 : C >= 0 ? k(C) - k(0) : k(0) - k(C),
160
- x: C >= 0 ? k(0) : k(C),
161
- fill: et[o],
159
+ width: _t(k) ? 0 : k >= 0 ? M(k) - M(0) : M(0) - M(k),
160
+ x: k >= 0 ? M(0) : M(k),
161
+ fill: tt[o],
162
162
  transition: {
163
163
  duration: u.duration
164
164
  }
165
165
  }
166
166
  }, exit: {
167
167
  width: 0,
168
- x: k(0),
168
+ x: M(0),
169
169
  transition: {
170
170
  duration: u.duration
171
171
  }
172
- }, height: Mt.bandwidth(), initial: "initial", animate: yt ? "whileInView" : "initial" }),
173
- Nt ? /* @__PURE__ */ i.jsx(Zt.text, { y: Mt(`${o}`) + Mt.bandwidth() / 2, style: {
174
- textAnchor: C && C < 0 ? "end" : "start",
172
+ }, height: Nt.bandwidth(), initial: "initial", animate: yt ? "whileInView" : "initial" }),
173
+ zt ? /* @__PURE__ */ i.jsx(Zt.text, { y: Nt(`${o}`) + Nt.bandwidth() / 2, style: {
174
+ textAnchor: k && k < 0 ? "end" : "start",
175
175
  ...s?.graphObjectValues || {}
176
- }, className: pe("graph-value text-sm", n?.graphObjectValues), dx: C && C < 0 ? -5 : 5, dy: "0.33em", variants: {
176
+ }, className: pe("graph-value text-sm", n?.graphObjectValues), dx: k && k < 0 ? -5 : 5, dy: "0.33em", variants: {
177
177
  initial: {
178
- x: k(0),
178
+ x: M(0),
179
179
  opacity: 0,
180
- fill: S || et[o]
180
+ fill: I || tt[o]
181
181
  },
182
182
  whileInView: {
183
- x: k(C || 0),
183
+ x: M(k || 0),
184
184
  opacity: 1,
185
- fill: S || et[o],
185
+ fill: I || tt[o],
186
186
  transition: {
187
187
  duration: u.duration
188
188
  }
@@ -192,48 +192,48 @@ function ei(e) {
192
192
  transition: {
193
193
  duration: u.duration
194
194
  }
195
- }, children: ue(C, $, p, ct, zt) }) : null
195
+ }, children: ue(k, $, f, rt, Dt) }) : null
196
196
  ] }, `${v.label}-${d[o] || o}`)),
197
- X ? /* @__PURE__ */ i.jsx(Pe, { value: `${v.label}`.length < N ? `${v.label}` : `${`${v.label}`.substring(0, N)}...`, y: 0, x: 0 - c.left, width: k(w < 0 ? 0 : w) + c.left, height: Rt.bandwidth(), style: s?.yAxis?.labels, className: n?.yAxis?.labels, animate: u, isInView: yt }) : null
197
+ F ? /* @__PURE__ */ i.jsx(Pe, { value: `${v.label}`.length < T ? `${v.label}` : `${`${v.label}`.substring(0, T)}...`, y: 0, x: 0 - c.left, width: M(w < 0 ? 0 : w) + c.left, height: qt.bandwidth(), style: s?.yAxis?.labels, className: n?.yAxis?.labels, animate: u, isInView: yt }) : null
198
198
  ] }, v.label));
199
- const kt = n?.yAxis?.axis;
200
- let qt;
201
- t[82] !== kt ? (qt = {
202
- axis: kt
203
- }, t[82] = kt, t[83] = qt) : qt = t[83];
199
+ const Mt = n?.yAxis?.axis;
200
+ let Rt;
201
+ t[82] !== Mt ? (Rt = {
202
+ axis: Mt
203
+ }, t[82] = Mt, t[83] = Rt) : Rt = t[83];
204
204
  const Jt = s?.yAxis?.axis;
205
- let I;
206
- t[84] !== Jt ? (I = {
205
+ let N;
206
+ t[84] !== Jt ? (N = {
207
207
  axis: Jt
208
- }, t[84] = Jt, t[85] = I) : I = t[85], P = /* @__PURE__ */ i.jsx(ke, { x1: k(w < 0 ? 0 : w), x2: k(w < 0 ? 0 : w), y1: -2.5, y2: j + c.bottom, classNames: qt, styles: I }), pt = mt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: mt.map((v, C) => /* @__PURE__ */ i.jsx(He, { text: v.text, color: v.color, x: k(v.value), y1: 0 - c.top, y2: j + c.bottom, textSide: k(v.value) > ht * 0.75 || G ? "left" : "right", classNames: v.classNames, styles: v.styles, animate: u, isInView: yt }, C)) }) : null, t[8] = u, t[9] = U, t[10] = et, t[11] = dt, t[12] = n?.graphObjectValues, t[13] = n?.xAxis?.gridLines, t[14] = n?.xAxis?.labels, t[15] = n?.xAxis?.title, t[16] = n?.yAxis?.axis, t[17] = n?.yAxis?.labels, t[18] = d, t[19] = x, t[20] = m, t[21] = M, t[22] = j, t[23] = ht, t[24] = H, t[25] = yt, t[26] = Q, t[27] = c.bottom, t[28] = c.left, t[29] = c.top, t[30] = O, t[31] = Tt, t[32] = w, t[33] = L, t[34] = $, t[35] = a, t[36] = st, t[37] = xt, t[38] = p, t[39] = ct, t[40] = mt, t[41] = Y, t[42] = G, t[43] = q, t[44] = X, t[45] = V, t[46] = Nt, t[47] = s?.graphObjectValues, t[48] = s?.xAxis?.gridLines, t[49] = s?.xAxis?.labels, t[50] = s?.xAxis?.title, t[51] = s?.yAxis?.axis, t[52] = s?.yAxis?.labels, t[53] = zt, t[54] = ut, t[55] = N, t[56] = S, t[57] = f, t[58] = y, t[59] = _, t[60] = tt, t[61] = K, t[62] = D, t[63] = ft, t[64] = Ct, t[65] = nt, t[66] = Vt, t[67] = R, t[68] = lt, t[69] = E, t[70] = P, t[71] = pt;
208
+ }, t[84] = Jt, t[85] = N) : N = t[85], ft = /* @__PURE__ */ i.jsx(ke, { x1: M(w < 0 ? 0 : w), x2: M(w < 0 ? 0 : w), y1: -2.5, y2: L + c.bottom, classNames: Rt, styles: N }), pt = xt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: xt.map((v, k) => /* @__PURE__ */ i.jsx(He, { text: v.text, color: v.color, x: M(v.value), y1: 0 - c.top, y2: L + c.bottom, textSide: M(v.value) > mt * 0.75 || Y ? "left" : "right", classNames: v.classNames, styles: v.styles, animate: u, isInView: yt }, k)) }) : null, t[8] = u, t[9] = q, t[10] = tt, t[11] = ut, t[12] = n?.graphObjectValues, t[13] = n?.xAxis?.gridLines, t[14] = n?.xAxis?.labels, t[15] = n?.xAxis?.title, t[16] = n?.yAxis?.axis, t[17] = n?.yAxis?.labels, t[18] = d, t[19] = x, t[20] = m, t[21] = O, t[22] = L, t[23] = mt, t[24] = P, t[25] = yt, t[26] = K, t[27] = c.bottom, t[28] = c.left, t[29] = c.top, t[30] = R, t[31] = Tt, t[32] = w, t[33] = V, t[34] = $, t[35] = a, t[36] = it, t[37] = dt, t[38] = f, t[39] = rt, t[40] = xt, t[41] = H, t[42] = Y, t[43] = W, t[44] = F, t[45] = C, t[46] = zt, t[47] = s?.graphObjectValues, t[48] = s?.xAxis?.gridLines, t[49] = s?.xAxis?.labels, t[50] = s?.xAxis?.title, t[51] = s?.yAxis?.axis, t[52] = s?.yAxis?.labels, t[53] = Dt, t[54] = ct, t[55] = T, t[56] = I, t[57] = y, t[58] = g, t[59] = Z, t[60] = _, t[61] = J, t[62] = j, t[63] = ht, t[64] = kt, t[65] = ot, t[66] = Ct, t[67] = G, t[68] = nt, t[69] = X, t[70] = ft, t[71] = pt;
209
209
  } else
210
- y = t[58], _ = t[59], tt = t[60], K = t[61], D = t[62], ft = t[63], Ct = t[64], nt = t[65], Vt = t[66], R = t[67], lt = t[68], E = t[69], P = t[70], pt = t[71];
210
+ g = t[58], Z = t[59], _ = t[60], J = t[61], j = t[62], ht = t[63], kt = t[64], ot = t[65], Ct = t[66], G = t[67], nt = t[68], X = t[69], ft = t[70], pt = t[71];
211
211
  let vt;
212
- t[86] !== y || t[87] !== E || t[88] !== P || t[89] !== pt ? (vt = /* @__PURE__ */ i.jsxs(y, { children: [
213
- E,
214
- P,
212
+ t[86] !== g || t[87] !== X || t[88] !== ft || t[89] !== pt ? (vt = /* @__PURE__ */ i.jsxs(g, { children: [
213
+ X,
214
+ ft,
215
215
  pt
216
- ] }), t[86] = y, t[87] = E, t[88] = P, t[89] = pt, t[90] = vt) : vt = t[90];
216
+ ] }), t[86] = g, t[87] = X, t[88] = ft, t[89] = pt, t[90] = vt) : vt = t[90];
217
217
  let wt;
218
218
  t[91] !== x ? (wt = x.filter(si).map(ii), t[91] = x, t[92] = wt) : wt = t[92];
219
- let at;
220
- t[93] !== tt || t[94] !== K || t[95] !== D || t[96] !== ft || t[97] !== vt || t[98] !== wt ? (at = /* @__PURE__ */ i.jsxs("g", { transform: tt, children: [
221
- K,
222
- D,
223
- ft,
219
+ let lt;
220
+ t[93] !== _ || t[94] !== J || t[95] !== j || t[96] !== ht || t[97] !== vt || t[98] !== wt ? (lt = /* @__PURE__ */ i.jsxs("g", { transform: _, children: [
221
+ J,
222
+ j,
223
+ ht,
224
224
  vt,
225
225
  wt
226
- ] }), t[93] = tt, t[94] = K, t[95] = D, t[96] = ft, t[97] = vt, t[98] = wt, t[99] = at) : at = t[99];
226
+ ] }), t[93] = _, t[94] = J, t[95] = j, t[96] = ht, t[97] = vt, t[98] = wt, t[99] = lt) : lt = t[99];
227
227
  let At;
228
- t[100] !== _ || t[101] !== Ct || t[102] !== nt || t[103] !== Vt || t[104] !== R || t[105] !== lt || t[106] !== at ? (At = /* @__PURE__ */ i.jsx(_, { ref: Ct, width: nt, height: Vt, viewBox: R, direction: lt, children: at }), t[100] = _, t[101] = Ct, t[102] = nt, t[103] = Vt, t[104] = R, t[105] = lt, t[106] = at, t[107] = At) : At = t[107];
228
+ t[100] !== Z || t[101] !== kt || t[102] !== ot || t[103] !== Ct || t[104] !== G || t[105] !== nt || t[106] !== lt ? (At = /* @__PURE__ */ i.jsx(Z, { ref: kt, width: ot, height: Ct, viewBox: G, direction: nt, children: lt }), t[100] = Z, t[101] = kt, t[102] = ot, t[103] = Ct, t[104] = G, t[105] = nt, t[106] = lt, t[107] = At) : At = t[107];
229
229
  let $t;
230
- t[108] !== n?.tooltip || t[109] !== A || t[110] !== bt || t[111] !== F || t[112] !== s?.tooltip || t[113] !== it ? ($t = F && it && A && bt ? /* @__PURE__ */ i.jsx(Oe, { data: F, body: it, xPos: A, yPos: bt, backgroundStyle: s?.tooltip, className: n?.tooltip }) : null, t[108] = n?.tooltip, t[109] = A, t[110] = bt, t[111] = F, t[112] = s?.tooltip, t[113] = it, t[114] = $t) : $t = t[114];
230
+ t[108] !== n?.tooltip || t[109] !== A || t[110] !== bt || t[111] !== B || t[112] !== s?.tooltip || t[113] !== et ? ($t = B && et && A && bt ? /* @__PURE__ */ i.jsx(Oe, { data: B, body: et, xPos: A, yPos: bt, backgroundStyle: s?.tooltip, className: n?.tooltip }) : null, t[108] = n?.tooltip, t[109] = A, t[110] = bt, t[111] = B, t[112] = s?.tooltip, t[113] = et, t[114] = $t) : $t = t[114];
231
231
  let Ot;
232
- t[115] !== M || t[116] !== L ? (Ot = M && L !== void 0 ? /* @__PURE__ */ i.jsx($e, { open: L !== void 0, onClose: () => {
233
- B(void 0);
234
- }, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof M == "string" ? {
235
- __html: Me(M, L)
236
- } : void 0, children: typeof M == "function" ? M(L) : null }) }) : null, t[115] = M, t[116] = L, t[117] = Ot) : Ot = t[117];
232
+ t[115] !== O || t[116] !== V ? (Ot = O && V !== void 0 ? /* @__PURE__ */ i.jsx($e, { open: V !== void 0, onClose: () => {
233
+ S(void 0);
234
+ }, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof O == "string" ? {
235
+ __html: Me(O, V)
236
+ } : void 0, children: typeof O == "function" ? O(V) : null }) }) : null, t[115] = O, t[116] = V, t[117] = Ot) : Ot = t[117];
237
237
  let b;
238
238
  return t[118] !== At || t[119] !== $t || t[120] !== Ot ? (b = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
239
239
  At,
@@ -268,148 +268,148 @@ function ci(e) {
268
268
  function ui(e) {
269
269
  const t = xe.c(130), {
270
270
  data: m,
271
- leftMargin: z,
271
+ leftMargin: D,
272
272
  rightMargin: Xt,
273
273
  topMargin: St,
274
274
  bottomMargin: gt,
275
- width: et,
276
- height: dt,
277
- barColors: V,
278
- suffix: N,
279
- prefix: f,
280
- barPadding: H,
281
- showLabels: zt,
282
- showValues: ct,
283
- showTicks: Nt,
284
- truncateBy: X,
285
- tooltip: it,
286
- onSeriesMouseOver: xt,
287
- refValues: mt,
275
+ width: tt,
276
+ height: ut,
277
+ barColors: C,
278
+ suffix: T,
279
+ prefix: y,
280
+ barPadding: P,
281
+ showLabels: Dt,
282
+ showValues: rt,
283
+ showTicks: zt,
284
+ truncateBy: F,
285
+ tooltip: et,
286
+ onSeriesMouseOver: dt,
287
+ refValues: xt,
288
288
  maxValue: Tt,
289
289
  minValue: w,
290
- onSeriesMouseClick: st,
291
- selectedColor: q,
292
- labelOrder: G,
293
- maxBarThickness: Q,
294
- resetSelectionOnDoubleClick: O,
295
- detailsOnClick: Y,
296
- barAxisTitle: M,
297
- valueColor: U,
298
- noOfTicks: S,
290
+ onSeriesMouseClick: it,
291
+ selectedColor: W,
292
+ labelOrder: Y,
293
+ maxBarThickness: K,
294
+ resetSelectionOnDoubleClick: R,
295
+ detailsOnClick: H,
296
+ barAxisTitle: O,
297
+ valueColor: q,
298
+ noOfTicks: I,
299
299
  styles: a,
300
300
  classNames: s,
301
301
  animate: n,
302
302
  colorDomain: u,
303
303
  precision: d,
304
- customLayers: p,
304
+ customLayers: f,
305
305
  naLabel: x
306
- } = e, $ = z === void 0 ? 20 : z, Z = Xt === void 0 ? 20 : Xt, J = St === void 0 ? 20 : St, ut = gt === void 0 ? 25 : gt, Ft = de(null);
306
+ } = e, $ = D === void 0 ? 20 : D, Q = Xt === void 0 ? 20 : Xt, U = St === void 0 ? 20 : St, ct = gt === void 0 ? 25 : gt, Ft = de(null);
307
307
  let Yt;
308
308
  t[0] !== n.amount || t[1] !== n.once ? (Yt = {
309
309
  once: n.once,
310
310
  amount: n.amount
311
311
  }, t[0] = n.amount, t[1] = n.once, t[2] = Yt) : Yt = t[2];
312
- const W = Ve(Ft, Yt), yt = M ? $ + 30 : $;
312
+ const E = Ve(Ft, Yt), yt = O ? $ + 30 : $;
313
313
  let Bt;
314
- t[3] !== ut || t[4] !== Z || t[5] !== yt || t[6] !== J ? (Bt = {
315
- top: J,
316
- bottom: ut,
314
+ t[3] !== ct || t[4] !== Q || t[5] !== yt || t[6] !== U ? (Bt = {
315
+ top: U,
316
+ bottom: ct,
317
317
  left: yt,
318
- right: Z
319
- }, t[3] = ut, t[4] = Z, t[5] = yt, t[6] = J, t[7] = Bt) : Bt = t[7];
320
- const r = Bt, [c, F] = Wt(void 0), [h, L] = Wt(void 0), [B, A] = Wt(void 0), [jt, bt] = Wt(void 0), ot = et - r.left - r.right, ht = dt - r.top - r.bottom;
321
- let j, y, _, tt, K, D, ft, Ct, nt, Vt, R, lt, E, P;
322
- if (t[8] !== n || t[9] !== M || t[10] !== V || t[11] !== H || t[12] !== s?.graphObjectValues || t[13] !== s?.xAxis?.axis || t[14] !== s?.xAxis?.labels || t[15] !== s?.yAxis?.gridLines || t[16] !== s?.yAxis?.labels || t[17] !== s?.yAxis?.title || t[18] !== u || t[19] !== p || t[20] !== m || t[21] !== Y || t[22] !== ht || t[23] !== ot || t[24] !== dt || t[25] !== W || t[26] !== G || t[27] !== $ || t[28] !== r.bottom || t[29] !== r.left || t[30] !== r.right || t[31] !== r.top || t[32] !== Q || t[33] !== Tt || t[34] !== w || t[35] !== h || t[36] !== x || t[37] !== S || t[38] !== st || t[39] !== xt || t[40] !== d || t[41] !== f || t[42] !== mt || t[43] !== O || t[44] !== q || t[45] !== zt || t[46] !== Nt || t[47] !== ct || t[48] !== a?.graphObjectValues || t[49] !== a?.xAxis?.axis || t[50] !== a?.xAxis?.labels || t[51] !== a?.yAxis?.gridLines || t[52] !== a?.yAxis?.labels || t[53] !== a?.yAxis?.title || t[54] !== N || t[55] !== X || t[56] !== U || t[57] !== et) {
323
- const b = Le().domain([w, Tt]).range([ht, 0]).nice();
324
- let rt;
325
- t[72] !== G ? (rt = (T, Lt) => ({
326
- ...T,
327
- id: G ? `${T.label}` : `${Lt}`
328
- }), t[72] = G, t[73] = rt) : rt = t[73];
329
- const It = m.map(rt), Et = G || It.map(yi), k = ge().domain(Et).range([0, Q ? Math.min(ot, Q * Et.length) : ot]).paddingInner(H), Rt = ge().domain(m[0].size.map(gi)).range([0, k.bandwidth()]).paddingInner(0.1), Mt = b.ticks(S);
330
- y = Zt.svg, ft = `${et}px`, Ct = `${dt}px`, nt = `0 0 ${et} ${dt}`, Vt = "ltr", R = Ft, P = `translate(${r.left},${r.top})`;
331
- const Kt = b(w < 0 ? 0 : w), Dt = b(w < 0 ? 0 : w), Qt = w < 0 ? 0 : w;
318
+ right: Q
319
+ }, t[3] = ct, t[4] = Q, t[5] = yt, t[6] = U, t[7] = Bt) : Bt = t[7];
320
+ const r = Bt, [c, B] = Wt(void 0), [h, V] = Wt(void 0), [S, A] = Wt(void 0), [Lt, bt] = Wt(void 0), st = tt - r.left - r.right, mt = ut - r.top - r.bottom;
321
+ let L, g, Z, _, J, j, ht, kt, ot, Ct, G, nt, X, ft;
322
+ if (t[8] !== n || t[9] !== O || t[10] !== C || t[11] !== P || t[12] !== s?.graphObjectValues || t[13] !== s?.xAxis?.axis || t[14] !== s?.xAxis?.labels || t[15] !== s?.yAxis?.gridLines || t[16] !== s?.yAxis?.labels || t[17] !== s?.yAxis?.title || t[18] !== u || t[19] !== f || t[20] !== m || t[21] !== H || t[22] !== mt || t[23] !== st || t[24] !== ut || t[25] !== E || t[26] !== Y || t[27] !== $ || t[28] !== r.bottom || t[29] !== r.left || t[30] !== r.right || t[31] !== r.top || t[32] !== K || t[33] !== Tt || t[34] !== w || t[35] !== h || t[36] !== x || t[37] !== I || t[38] !== it || t[39] !== dt || t[40] !== d || t[41] !== y || t[42] !== xt || t[43] !== R || t[44] !== W || t[45] !== Dt || t[46] !== zt || t[47] !== rt || t[48] !== a?.graphObjectValues || t[49] !== a?.xAxis?.axis || t[50] !== a?.xAxis?.labels || t[51] !== a?.yAxis?.gridLines || t[52] !== a?.yAxis?.labels || t[53] !== a?.yAxis?.title || t[54] !== T || t[55] !== F || t[56] !== q || t[57] !== tt) {
323
+ const b = Le().domain([w, Tt]).range([mt, 0]).nice();
324
+ let at;
325
+ t[72] !== Y ? (at = (z, Vt) => ({
326
+ ...z,
327
+ id: Y ? `${z.label}` : `${Vt}`
328
+ }), t[72] = Y, t[73] = at) : at = t[73];
329
+ const It = m.map(at), Et = Y || It.map(yi), M = ge().domain(Et).range([0, K ? Math.min(st, K * Et.length) : st]).paddingInner(P), qt = ge().domain(m[0].size.map(gi)).range([0, M.bandwidth()]).paddingInner(0.1), Nt = b.ticks(I);
330
+ g = Zt.svg, ht = `${tt}px`, kt = `${ut}px`, ot = `0 0 ${tt} ${ut}`, Ct = "ltr", G = Ft, ft = `translate(${r.left},${r.top})`;
331
+ const Kt = b(w < 0 ? 0 : w), jt = b(w < 0 ? 0 : w), Qt = w < 0 ? 0 : w;
332
332
  let Ut;
333
- t[74] !== x || t[75] !== d || t[76] !== f || t[77] !== N || t[78] !== Qt ? (Ut = ue(Qt, x, d, f, N), t[74] = x, t[75] = d, t[76] = f, t[77] = N, t[78] = Qt, t[79] = Ut) : Ut = t[79];
334
- const Ht = s?.xAxis?.axis, kt = s?.yAxis?.labels;
335
- let qt;
336
- t[80] !== Ht || t[81] !== kt ? (qt = {
333
+ t[74] !== x || t[75] !== d || t[76] !== y || t[77] !== T || t[78] !== Qt ? (Ut = ue(Qt, x, d, y, T), t[74] = x, t[75] = d, t[76] = y, t[77] = T, t[78] = Qt, t[79] = Ut) : Ut = t[79];
334
+ const Ht = s?.xAxis?.axis, Mt = s?.yAxis?.labels;
335
+ let Rt;
336
+ t[80] !== Ht || t[81] !== Mt ? (Rt = {
337
337
  axis: Ht,
338
- label: kt
339
- }, t[80] = Ht, t[81] = kt, t[82] = qt) : qt = t[82];
340
- const Jt = a?.xAxis?.axis, I = a?.yAxis?.labels;
338
+ label: Mt
339
+ }, t[80] = Ht, t[81] = Mt, t[82] = Rt) : Rt = t[82];
340
+ const Jt = a?.xAxis?.axis, N = a?.yAxis?.labels;
341
341
  let v;
342
- t[83] !== Jt || t[84] !== I ? (v = {
342
+ t[83] !== Jt || t[84] !== N ? (v = {
343
343
  axis: Jt,
344
- label: I
345
- }, t[83] = Jt, t[84] = I, t[85] = v) : v = t[85], _ = /* @__PURE__ */ i.jsx(ke, { y1: Kt, y2: Dt, x1: 0 - $, x2: ot + r.right, label: Ut, labelPos: {
344
+ label: N
345
+ }, t[83] = Jt, t[84] = N, t[85] = v) : v = t[85], Z = /* @__PURE__ */ i.jsx(ke, { y1: Kt, y2: jt, x1: 0 - $, x2: st + r.right, label: Ut, labelPos: {
346
346
  x: 0 - $,
347
347
  dx: 0,
348
348
  dy: Tt < 0 ? "1em" : -5,
349
349
  y: b(w < 0 ? 0 : w)
350
- }, classNames: qt, styles: v }), tt = Nt ? /* @__PURE__ */ i.jsx(Ye, { values: Mt.filter(pi), y: Mt.filter(fi).map((T) => b(T)), x1: 0 - $, x2: ot + r.right, styles: {
350
+ }, classNames: Rt, styles: v }), _ = zt ? /* @__PURE__ */ i.jsx(Ye, { values: Nt.filter(pi), y: Nt.filter(fi).map((z) => b(z)), x1: 0 - $, x2: st + r.right, styles: {
351
351
  gridLines: a?.yAxis?.gridLines,
352
352
  labels: a?.yAxis?.labels
353
353
  }, classNames: {
354
354
  gridLines: s?.yAxis?.gridLines,
355
355
  labels: s?.yAxis?.labels
356
- }, suffix: N, prefix: f, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: d }) : null;
357
- const C = 0 - $ - 15, o = ht / 2, g = a?.yAxis?.title, ee = s?.yAxis?.title;
358
- t[86] !== M || t[87] !== C || t[88] !== o || t[89] !== g || t[90] !== ee ? (K = /* @__PURE__ */ i.jsx(Ce, { x: C, y: o, style: g, className: ee, text: M, rotate90: !0 }), t[86] = M, t[87] = C, t[88] = o, t[89] = g, t[90] = ee, t[91] = K) : K = t[91], t[92] !== p ? (D = p.filter(hi).map(mi), t[92] = p, t[93] = D) : D = t[93], j = je, lt = It.map((T) => _t(k(T.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { variants: {
356
+ }, suffix: T, prefix: y, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: d }) : null;
357
+ const k = 0 - $ - 15, o = mt / 2, p = a?.yAxis?.title, ee = s?.yAxis?.title;
358
+ t[86] !== O || t[87] !== k || t[88] !== o || t[89] !== p || t[90] !== ee ? (J = /* @__PURE__ */ i.jsx(Ce, { x: k, y: o, style: p, className: ee, text: O, rotate90: !0 }), t[86] = O, t[87] = k, t[88] = o, t[89] = p, t[90] = ee, t[91] = J) : J = t[91], t[92] !== f ? (j = f.filter(hi).map(mi), t[92] = f, t[93] = j) : j = t[93], L = je, nt = It.map((z) => _t(M(z.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { variants: {
359
359
  initial: {
360
- x: k(`${T.id}`),
360
+ x: M(`${z.id}`),
361
361
  y: 0
362
362
  },
363
363
  whileInView: {
364
- x: k(`${T.id}`),
364
+ x: M(`${z.id}`),
365
365
  y: 0,
366
366
  transition: {
367
367
  duration: n.duration
368
368
  }
369
369
  }
370
- }, initial: "initial", animate: W ? "whileInView" : "initial", exit: {
370
+ }, initial: "initial", animate: E ? "whileInView" : "initial", exit: {
371
371
  opacity: 0,
372
372
  transition: {
373
373
  duration: n.duration
374
374
  }
375
375
  }, children: [
376
- T.size.map((Lt, l) => /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-g-with-hover", opacity: q ? V[l] === q ? 1 : 0.3 : 0.85, onMouseEnter: (ie) => {
377
- F({
378
- ...T,
376
+ z.size.map((Vt, l) => /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-g-with-hover", opacity: W ? C[l] === W ? 1 : 0.3 : 0.85, onMouseEnter: (ie) => {
377
+ B({
378
+ ...z,
379
379
  sizeIndex: l
380
- }), bt(ie.clientY), A(ie.clientX), xt?.({
381
- ...T,
380
+ }), bt(ie.clientY), A(ie.clientX), dt?.({
381
+ ...z,
382
382
  sizeIndex: l
383
383
  });
384
384
  }, onMouseMove: (ie) => {
385
- F({
386
- ...T,
385
+ B({
386
+ ...z,
387
387
  sizeIndex: l
388
388
  }), bt(ie.clientY), A(ie.clientX);
389
389
  }, onMouseLeave: () => {
390
- F(void 0), A(void 0), bt(void 0), xt?.(void 0);
390
+ B(void 0), A(void 0), bt(void 0), dt?.(void 0);
391
391
  }, onClick: () => {
392
- (st || Y) && (Ae(h, {
393
- ...T,
392
+ (it || H) && (Ae(h, {
393
+ ...z,
394
394
  sizeIndex: l
395
- }) && O ? (L(void 0), st?.(void 0)) : (L({
396
- ...T,
395
+ }) && R ? (V(void 0), it?.(void 0)) : (V({
396
+ ...z,
397
397
  sizeIndex: l
398
- }), st && st({
399
- ...T,
398
+ }), it && it({
399
+ ...z,
400
400
  sizeIndex: l
401
401
  })));
402
402
  }, children: [
403
- /* @__PURE__ */ i.jsx(Zt.rect, { x: Rt(`${l}`), width: Rt.bandwidth(), variants: {
403
+ /* @__PURE__ */ i.jsx(Zt.rect, { x: qt(`${l}`), width: qt.bandwidth(), variants: {
404
404
  initial: {
405
405
  height: 0,
406
406
  y: b(0),
407
- fill: V[l]
407
+ fill: C[l]
408
408
  },
409
409
  whileInView: {
410
- height: _t(Lt) ? 0 : Math.abs(b(Lt) - b(0)),
411
- y: _t(Lt) ? b(0) : Lt > 0 ? b(Lt) : b(0),
412
- fill: V[l],
410
+ height: _t(Vt) ? 0 : Math.abs(b(Vt) - b(0)),
411
+ y: _t(Vt) ? b(0) : Vt > 0 ? b(Vt) : b(0),
412
+ fill: C[l],
413
413
  transition: {
414
414
  duration: n.duration
415
415
  }
@@ -420,67 +420,67 @@ function ui(e) {
420
420
  transition: {
421
421
  duration: n.duration
422
422
  }
423
- }, initial: "initial", animate: W ? "whileInView" : "initial" }),
424
- ct ? /* @__PURE__ */ i.jsx(Zt.text, { x: Rt(`${l}`) + Rt.bandwidth() / 2, style: {
423
+ }, initial: "initial", animate: E ? "whileInView" : "initial" }),
424
+ rt ? /* @__PURE__ */ i.jsx(Zt.text, { x: qt(`${l}`) + qt.bandwidth() / 2, style: {
425
425
  textAnchor: "middle",
426
426
  ...a?.graphObjectValues || {}
427
- }, className: pe("graph-value text-sm", s?.graphObjectValues), dy: Lt ? Lt >= 0 ? "-5px" : "1em" : "-5px", variants: {
427
+ }, className: pe("graph-value text-sm", s?.graphObjectValues), dy: Vt ? Vt >= 0 ? "-5px" : "1em" : "-5px", variants: {
428
428
  initial: {
429
429
  y: b(0),
430
430
  opacity: 0,
431
- fill: U || V[l]
431
+ fill: q || C[l]
432
432
  },
433
433
  whileInView: {
434
- y: b(Lt || 0),
434
+ y: b(Vt || 0),
435
435
  opacity: 1,
436
- fill: U || V[l],
436
+ fill: q || C[l],
437
437
  transition: {
438
438
  duration: n.duration
439
439
  }
440
440
  }
441
- }, initial: "initial", animate: W ? "whileInView" : "initial", exit: {
441
+ }, initial: "initial", animate: E ? "whileInView" : "initial", exit: {
442
442
  opacity: 0,
443
443
  transition: {
444
444
  duration: n.duration
445
445
  }
446
- }, children: ue(Lt, x, d, f, N) }) : null
447
- ] }, `${T.label}-${u[l] || l}`)),
448
- zt ? /* @__PURE__ */ i.jsx(Ee, { value: `${T.label}`.length < X ? `${T.label}` : `${`${T.label}`.substring(0, X)}...`, y: b(0) + 5, x: 0, width: k.bandwidth(), height: r.bottom, style: a?.xAxis?.labels, className: s?.xAxis?.labels, alignment: "top", animate: n, isInView: W }) : null
449
- ] }, T.label)), E = mt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: mt.map((T, Lt) => /* @__PURE__ */ i.jsx(Xe, { text: T.text, color: T.color, y: b(T.value), x1: 0 - $, x2: ot + r.right, classNames: T.classNames, styles: T.styles, animate: n, isInView: W }, Lt)) }) : null, t[8] = n, t[9] = M, t[10] = V, t[11] = H, t[12] = s?.graphObjectValues, t[13] = s?.xAxis?.axis, t[14] = s?.xAxis?.labels, t[15] = s?.yAxis?.gridLines, t[16] = s?.yAxis?.labels, t[17] = s?.yAxis?.title, t[18] = u, t[19] = p, t[20] = m, t[21] = Y, t[22] = ht, t[23] = ot, t[24] = dt, t[25] = W, t[26] = G, t[27] = $, t[28] = r.bottom, t[29] = r.left, t[30] = r.right, t[31] = r.top, t[32] = Q, t[33] = Tt, t[34] = w, t[35] = h, t[36] = x, t[37] = S, t[38] = st, t[39] = xt, t[40] = d, t[41] = f, t[42] = mt, t[43] = O, t[44] = q, t[45] = zt, t[46] = Nt, t[47] = ct, t[48] = a?.graphObjectValues, t[49] = a?.xAxis?.axis, t[50] = a?.xAxis?.labels, t[51] = a?.yAxis?.gridLines, t[52] = a?.yAxis?.labels, t[53] = a?.yAxis?.title, t[54] = N, t[55] = X, t[56] = U, t[57] = et, t[58] = j, t[59] = y, t[60] = _, t[61] = tt, t[62] = K, t[63] = D, t[64] = ft, t[65] = Ct, t[66] = nt, t[67] = Vt, t[68] = R, t[69] = lt, t[70] = E, t[71] = P;
446
+ }, children: ue(Vt, x, d, y, T) }) : null
447
+ ] }, `${z.label}-${u[l] || l}`)),
448
+ Dt ? /* @__PURE__ */ i.jsx(Ee, { value: `${z.label}`.length < F ? `${z.label}` : `${`${z.label}`.substring(0, F)}...`, y: b(0) + 5, x: 0, width: M.bandwidth(), height: r.bottom, style: a?.xAxis?.labels, className: s?.xAxis?.labels, alignment: "top", animate: n, isInView: E }) : null
449
+ ] }, z.label)), X = xt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: xt.map((z, Vt) => /* @__PURE__ */ i.jsx(Xe, { text: z.text, color: z.color, y: b(z.value), x1: 0 - $, x2: st + r.right, classNames: z.classNames, styles: z.styles, animate: n, isInView: E }, Vt)) }) : null, t[8] = n, t[9] = O, t[10] = C, t[11] = P, t[12] = s?.graphObjectValues, t[13] = s?.xAxis?.axis, t[14] = s?.xAxis?.labels, t[15] = s?.yAxis?.gridLines, t[16] = s?.yAxis?.labels, t[17] = s?.yAxis?.title, t[18] = u, t[19] = f, t[20] = m, t[21] = H, t[22] = mt, t[23] = st, t[24] = ut, t[25] = E, t[26] = Y, t[27] = $, t[28] = r.bottom, t[29] = r.left, t[30] = r.right, t[31] = r.top, t[32] = K, t[33] = Tt, t[34] = w, t[35] = h, t[36] = x, t[37] = I, t[38] = it, t[39] = dt, t[40] = d, t[41] = y, t[42] = xt, t[43] = R, t[44] = W, t[45] = Dt, t[46] = zt, t[47] = rt, t[48] = a?.graphObjectValues, t[49] = a?.xAxis?.axis, t[50] = a?.xAxis?.labels, t[51] = a?.yAxis?.gridLines, t[52] = a?.yAxis?.labels, t[53] = a?.yAxis?.title, t[54] = T, t[55] = F, t[56] = q, t[57] = tt, t[58] = L, t[59] = g, t[60] = Z, t[61] = _, t[62] = J, t[63] = j, t[64] = ht, t[65] = kt, t[66] = ot, t[67] = Ct, t[68] = G, t[69] = nt, t[70] = X, t[71] = ft;
450
450
  } else
451
- j = t[58], y = t[59], _ = t[60], tt = t[61], K = t[62], D = t[63], ft = t[64], Ct = t[65], nt = t[66], Vt = t[67], R = t[68], lt = t[69], E = t[70], P = t[71];
451
+ L = t[58], g = t[59], Z = t[60], _ = t[61], J = t[62], j = t[63], ht = t[64], kt = t[65], ot = t[66], Ct = t[67], G = t[68], nt = t[69], X = t[70], ft = t[71];
452
452
  let pt;
453
- t[94] !== j || t[95] !== lt || t[96] !== E ? (pt = /* @__PURE__ */ i.jsxs(j, { children: [
454
- lt,
455
- E
456
- ] }), t[94] = j, t[95] = lt, t[96] = E, t[97] = pt) : pt = t[97];
453
+ t[94] !== L || t[95] !== nt || t[96] !== X ? (pt = /* @__PURE__ */ i.jsxs(L, { children: [
454
+ nt,
455
+ X
456
+ ] }), t[94] = L, t[95] = nt, t[96] = X, t[97] = pt) : pt = t[97];
457
457
  let vt;
458
- t[98] !== p ? (vt = p.filter(xi).map(di), t[98] = p, t[99] = vt) : vt = t[99];
458
+ t[98] !== f ? (vt = f.filter(xi).map(di), t[98] = f, t[99] = vt) : vt = t[99];
459
459
  let wt;
460
- t[100] !== _ || t[101] !== tt || t[102] !== K || t[103] !== D || t[104] !== pt || t[105] !== vt || t[106] !== P ? (wt = /* @__PURE__ */ i.jsxs("g", { transform: P, children: [
460
+ t[100] !== Z || t[101] !== _ || t[102] !== J || t[103] !== j || t[104] !== pt || t[105] !== vt || t[106] !== ft ? (wt = /* @__PURE__ */ i.jsxs("g", { transform: ft, children: [
461
+ Z,
461
462
  _,
462
- tt,
463
- K,
464
- D,
463
+ J,
464
+ j,
465
465
  pt,
466
466
  vt
467
- ] }), t[100] = _, t[101] = tt, t[102] = K, t[103] = D, t[104] = pt, t[105] = vt, t[106] = P, t[107] = wt) : wt = t[107];
468
- let at;
469
- t[108] !== y || t[109] !== ft || t[110] !== Ct || t[111] !== nt || t[112] !== Vt || t[113] !== R || t[114] !== wt ? (at = /* @__PURE__ */ i.jsx(y, { width: ft, height: Ct, viewBox: nt, direction: Vt, ref: R, children: wt }), t[108] = y, t[109] = ft, t[110] = Ct, t[111] = nt, t[112] = Vt, t[113] = R, t[114] = wt, t[115] = at) : at = t[115];
467
+ ] }), t[100] = Z, t[101] = _, t[102] = J, t[103] = j, t[104] = pt, t[105] = vt, t[106] = ft, t[107] = wt) : wt = t[107];
468
+ let lt;
469
+ t[108] !== g || t[109] !== ht || t[110] !== kt || t[111] !== ot || t[112] !== Ct || t[113] !== G || t[114] !== wt ? (lt = /* @__PURE__ */ i.jsx(g, { width: ht, height: kt, viewBox: ot, direction: Ct, ref: G, children: wt }), t[108] = g, t[109] = ht, t[110] = kt, t[111] = ot, t[112] = Ct, t[113] = G, t[114] = wt, t[115] = lt) : lt = t[115];
470
470
  let At;
471
- t[116] !== s?.tooltip || t[117] !== B || t[118] !== jt || t[119] !== c || t[120] !== a?.tooltip || t[121] !== it ? (At = c && it && B && jt ? /* @__PURE__ */ i.jsx(Oe, { data: c, body: it, xPos: B, yPos: jt, backgroundStyle: a?.tooltip, className: s?.tooltip }) : null, t[116] = s?.tooltip, t[117] = B, t[118] = jt, t[119] = c, t[120] = a?.tooltip, t[121] = it, t[122] = At) : At = t[122];
471
+ t[116] !== s?.tooltip || t[117] !== S || t[118] !== Lt || t[119] !== c || t[120] !== a?.tooltip || t[121] !== et ? (At = c && et && S && Lt ? /* @__PURE__ */ i.jsx(Oe, { data: c, body: et, xPos: S, yPos: Lt, backgroundStyle: a?.tooltip, className: s?.tooltip }) : null, t[116] = s?.tooltip, t[117] = S, t[118] = Lt, t[119] = c, t[120] = a?.tooltip, t[121] = et, t[122] = At) : At = t[122];
472
472
  let $t;
473
- t[123] !== Y || t[124] !== h ? ($t = Y && h !== void 0 ? /* @__PURE__ */ i.jsx($e, { open: h !== void 0, onClose: () => {
474
- L(void 0);
475
- }, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof Y == "string" ? {
476
- __html: Me(Y, h)
477
- } : void 0, children: typeof Y == "function" ? Y(h) : null }) }) : null, t[123] = Y, t[124] = h, t[125] = $t) : $t = t[125];
473
+ t[123] !== H || t[124] !== h ? ($t = H && h !== void 0 ? /* @__PURE__ */ i.jsx($e, { open: h !== void 0, onClose: () => {
474
+ V(void 0);
475
+ }, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof H == "string" ? {
476
+ __html: Me(H, h)
477
+ } : void 0, children: typeof H == "function" ? H(h) : null }) }) : null, t[123] = H, t[124] = h, t[125] = $t) : $t = t[125];
478
478
  let Ot;
479
- return t[126] !== at || t[127] !== At || t[128] !== $t ? (Ot = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
480
- at,
479
+ return t[126] !== lt || t[127] !== At || t[128] !== $t ? (Ot = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
480
+ lt,
481
481
  At,
482
482
  $t
483
- ] }), t[126] = at, t[127] = At, t[128] = $t, t[129] = Ot) : Ot = t[129], Ot;
483
+ ] }), t[126] = lt, t[127] = At, t[128] = $t, t[129] = Ot) : Ot = t[129], Ot;
484
484
  }
485
485
  function di(e) {
486
486
  return e.layer;
@@ -509,102 +509,102 @@ function yi(e) {
509
509
  function bi(e) {
510
510
  const t = xe.c(43), {
511
511
  data: m,
512
- graphTitle: z,
512
+ graphTitle: D,
513
513
  colors: Xt,
514
514
  sources: St,
515
515
  graphDescription: gt,
516
- barPadding: et,
517
- showTicks: dt,
518
- truncateBy: V,
519
- height: N,
520
- width: f,
521
- footNote: H,
522
- colorDomain: zt,
523
- colorLegendTitle: ct,
524
- suffix: Nt,
525
- prefix: X,
526
- showValues: it,
527
- showColorScale: xt,
528
- padding: mt,
516
+ barPadding: tt,
517
+ showTicks: ut,
518
+ truncateBy: C,
519
+ height: T,
520
+ width: y,
521
+ footNote: P,
522
+ colorDomain: Dt,
523
+ colorLegendTitle: rt,
524
+ suffix: zt,
525
+ prefix: F,
526
+ showValues: et,
527
+ showColorScale: dt,
528
+ padding: xt,
529
529
  backgroundColor: Tt,
530
530
  leftMargin: w,
531
- rightMargin: st,
532
- topMargin: q,
533
- bottomMargin: G,
534
- showLabels: Q,
535
- relativeHeight: O,
536
- tooltip: Y,
537
- onSeriesMouseOver: M,
538
- refValues: U,
539
- graphID: S,
531
+ rightMargin: it,
532
+ topMargin: W,
533
+ bottomMargin: Y,
534
+ showLabels: K,
535
+ relativeHeight: R,
536
+ tooltip: H,
537
+ onSeriesMouseOver: O,
538
+ refValues: q,
539
+ graphID: I,
540
540
  maxValue: a,
541
541
  minValue: s,
542
542
  onSeriesMouseClick: n,
543
543
  graphDownload: u,
544
544
  dataDownload: d,
545
- language: p,
545
+ language: f,
546
546
  labelOrder: x,
547
547
  minHeight: $,
548
- theme: Z,
549
- maxBarThickness: J,
550
- ariaLabel: ut,
548
+ theme: Q,
549
+ maxBarThickness: U,
550
+ ariaLabel: ct,
551
551
  resetSelectionOnDoubleClick: Ft,
552
552
  detailsOnClick: Yt,
553
- barAxisTitle: W,
553
+ barAxisTitle: E,
554
554
  noOfTicks: yt,
555
555
  valueColor: Bt,
556
556
  styles: r,
557
557
  classNames: c,
558
- filterNA: F,
558
+ filterNA: B,
559
559
  animate: h,
560
- precision: L,
561
- customLayers: B,
560
+ precision: V,
561
+ customLayers: S,
562
562
  timeline: A,
563
- naLabel: jt,
563
+ naLabel: Lt,
564
564
  sortParameter: bt,
565
- sortData: ot,
566
- orientation: ht
567
- } = e, j = Xt === void 0 ? ce.light.categoricalColors.colors : Xt, y = et === void 0 ? 0.25 : et, _ = dt === void 0 ? !0 : dt, tt = V === void 0 ? 999 : V, K = Nt === void 0 ? "" : Nt, D = X === void 0 ? "" : X, ft = it === void 0 ? !0 : it, Ct = xt === void 0 ? !0 : xt, nt = Tt === void 0 ? !1 : Tt, Vt = Q === void 0 ? !0 : Q, R = u === void 0 ? !1 : u, lt = d === void 0 ? !1 : d, E = p === void 0 ? "en" : p, P = $ === void 0 ? 0 : $, pt = Z === void 0 ? "light" : Z, vt = Ft === void 0 ? !0 : Ft, wt = yt === void 0 ? 5 : yt, at = F === void 0 ? !0 : F, At = h === void 0 ? !1 : h, $t = L === void 0 ? 2 : L;
565
+ sortData: st,
566
+ orientation: mt
567
+ } = e, L = Xt === void 0 ? ce.light.categoricalColors.colors : Xt, g = tt === void 0 ? 0.25 : tt, Z = ut === void 0 ? !0 : ut, _ = C === void 0 ? 999 : C, J = zt === void 0 ? "" : zt, j = F === void 0 ? "" : F, ht = et === void 0 ? !0 : et, kt = dt === void 0 ? !0 : dt, ot = Tt === void 0 ? !1 : Tt, Ct = K === void 0 ? !0 : K, G = u === void 0 ? !1 : u, nt = d === void 0 ? !1 : d, X = f === void 0 ? "en" : f, ft = $ === void 0 ? 0 : $, pt = Q === void 0 ? "light" : Q, vt = Ft === void 0 ? !0 : Ft, wt = yt === void 0 ? 5 : yt, lt = B === void 0 ? !0 : B, At = h === void 0 ? !1 : h, $t = V === void 0 ? 2 : V;
568
568
  let Ot;
569
- t[0] !== B ? (Ot = B === void 0 ? [] : B, t[0] = B, t[1] = Ot) : Ot = t[1];
570
- const b = Ot, rt = A === void 0 ? {
569
+ t[0] !== S ? (Ot = S === void 0 ? [] : S, t[0] = S, t[1] = Ot) : Ot = t[1];
570
+ const b = Ot, at = A === void 0 ? {
571
571
  enabled: !1,
572
572
  autoplay: !1,
573
573
  showOnlyActiveDate: !0
574
- } : A, It = jt === void 0 ? "NA" : jt, k = (ht === void 0 ? "vertical" : ht) === "horizontal" ? ei : ui, [Rt, Mt] = Wt(0), [Kt, Dt] = Wt(0), [Qt, Ut] = Wt(rt.autoplay), Ht = Ze(De(m, "date", !0).map((Gt) => Be(`${Gt}`, rt.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), Pi), [kt, qt] = Wt(rt.autoplay ? 0 : Ht.length - 1), [Jt, I] = Wt(void 0), v = de(null), C = de(null);
575
- let o, g;
574
+ } : A, It = Lt === void 0 ? "NA" : Lt, M = (mt === void 0 ? "vertical" : mt) === "horizontal" ? ei : ui, [qt, Nt] = Wt(0), [Kt, jt] = Wt(0), [Qt, Ut] = Wt(at.autoplay), Ht = Ze(De(m, "date", !0).map((Gt) => Be(`${Gt}`, at.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), Pi), [Mt, Rt] = Wt(at.autoplay ? 0 : Ht.length - 1), [Jt, N] = Wt(void 0), v = de(null), k = de(null);
575
+ let o, p;
576
576
  t[2] === Symbol.for("react.memo_cache_sentinel") ? (o = () => {
577
577
  const Gt = new ResizeObserver((Pt) => {
578
- Mt(Pt[0].target.clientWidth || 620), Dt(Pt[0].target.clientHeight || 480);
578
+ Nt(Pt[0].target.clientWidth || 620), jt(Pt[0].target.clientHeight || 480);
579
579
  });
580
580
  return v.current && Gt.observe(v.current), () => Gt.disconnect();
581
- }, g = [], t[2] = o, t[3] = g) : (o = t[2], g = t[3]), we(o, g), we(() => {
581
+ }, p = [], t[2] = o, t[3] = p) : (o = t[2], p = t[3]), we(o, p), we(() => {
582
582
  const Gt = setInterval(() => {
583
- qt((Pt) => Pt < Ht.length - 1 ? Pt + 1 : 0);
584
- }, (rt.speed || 2) * 1e3);
583
+ Rt((Pt) => Pt < Ht.length - 1 ? Pt + 1 : 0);
584
+ }, (at.speed || 2) * 1e3);
585
585
  return Qt || clearInterval(Gt), () => clearInterval(Gt);
586
- }, [Ht, Qt, rt.speed]);
587
- const ee = Ie(Ht, kt, rt.showOnlyActiveDate, rt.dateFormat || "yyyy"), T = Qe, Lt = c?.graphContainer, l = r?.graphContainer;
586
+ }, [Ht, Qt, at.speed]);
587
+ const ee = Ie(Ht, Mt, at.showOnlyActiveDate, at.dateFormat || "yyyy"), z = Qe, Vt = c?.graphContainer, l = r?.graphContainer;
588
588
  let ie;
589
- t[4] !== c?.description || t[5] !== c?.title || t[6] !== m || t[7] !== lt || t[8] !== gt || t[9] !== R || t[10] !== z || t[11] !== r?.description || t[12] !== r?.title || t[13] !== f ? (ie = z || gt || R || lt ? /* @__PURE__ */ i.jsx(Ge, { styles: {
589
+ t[4] !== c?.description || t[5] !== c?.title || t[6] !== m || t[7] !== nt || t[8] !== gt || t[9] !== G || t[10] !== D || t[11] !== r?.description || t[12] !== r?.title || t[13] !== y ? (ie = D || gt || G || nt ? /* @__PURE__ */ i.jsx(Ge, { styles: {
590
590
  title: r?.title,
591
591
  description: r?.description
592
592
  }, classNames: {
593
593
  title: c?.title,
594
594
  description: c?.description
595
- }, graphTitle: z, graphDescription: gt, width: f, graphDownload: R ? C : void 0, dataDownload: lt ? m.map(Bi).filter(Si).length > 0 ? m.map(Ii).filter(Ti) : m.filter(Ni) : null }) : null, t[4] = c?.description, t[5] = c?.title, t[6] = m, t[7] = lt, t[8] = gt, t[9] = R, t[10] = z, t[11] = r?.description, t[12] = r?.title, t[13] = f, t[14] = ie) : ie = t[14];
596
- const se = rt.enabled && Ht.length > 0 && ee ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
595
+ }, graphTitle: D, graphDescription: gt, width: y, graphDownload: G ? k : void 0, dataDownload: nt ? m.map(Bi).filter(Si).length > 0 ? m.map(Ii).filter(Ti) : m.filter(Ni) : null }) : null, t[4] = c?.description, t[5] = c?.title, t[6] = m, t[7] = nt, t[8] = gt, t[9] = G, t[10] = D, t[11] = r?.description, t[12] = r?.title, t[13] = y, t[14] = ie) : ie = t[14];
596
+ const se = at.enabled && Ht.length > 0 && ee ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
597
597
  /* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
598
598
  Ut(!Qt);
599
599
  }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Qt ? "Click to pause animation" : "Click to play animation", children: Qt ? /* @__PURE__ */ i.jsx(Ue, {}) : /* @__PURE__ */ i.jsx(Je, {}) }),
600
- /* @__PURE__ */ i.jsx(Se, { min: Ht[0], max: Ht[Ht.length - 1], marks: ee, step: null, defaultValue: Ht[Ht.length - 1], value: Ht[kt], onChangeComplete: (Gt) => {
601
- qt(Ht.indexOf(Gt));
600
+ /* @__PURE__ */ i.jsx(Se, { min: Ht[0], max: Ht[Ht.length - 1], marks: ee, step: null, defaultValue: Ht[Ht.length - 1], value: Ht[Mt], onChangeComplete: (Gt) => {
601
+ Rt(Ht.indexOf(Gt));
602
602
  }, onChange: (Gt) => {
603
- qt(Ht.indexOf(Gt));
603
+ Rt(Ht.indexOf(Gt));
604
604
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
605
605
  ] }) : null, me = "grow flex flex-col justify-center gap-3 w-full", fe = m.length === 0 ? /* @__PURE__ */ i.jsx(qe, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
606
- Ct ? /* @__PURE__ */ i.jsx(Re, { width: f, colorDomain: zt, colors: j, colorLegendTitle: ct, setSelectedColor: I, showNAColor: !1, className: c?.colorLegend }) : null,
607
- /* @__PURE__ */ i.jsx(Ke, { ref: v, children: Rt && Kt ? /* @__PURE__ */ i.jsx(k, { data: bt !== void 0 ? bt === "total" ? ze(ve(m, rt.dateFormat || "yyyy").filter((Gt) => rt.enabled ? Gt.date === ye(new Date(Ht[kt]), rt.dateFormat || "yyyy") : Gt).filter((Gt) => at ? !Gt.size.every(zi) : Gt), ji, [ot || "asc"]) : ze(ve(m, rt.dateFormat || "yyyy").filter((Gt) => rt.enabled ? Gt.date === ye(new Date(Ht[kt]), rt.dateFormat || "yyyy") : Gt).filter((Gt) => at ? !Gt.size.every(Li) : Gt), (Gt) => _t(Gt.size[bt]) ? -1 / 0 : Gt.size[bt], [ot || "asc"]) : ve(m, rt.dateFormat || "yyyy").filter((Gt) => at ? !Gt.size.every(Vi) : Gt), barColors: j, width: f || Rt, height: Math.max(P, N || (O ? P ? (f || Rt) * O > P ? (f || Rt) * O : P : (f || Rt) * O : Kt)), suffix: K, prefix: D, showValues: ft, barPadding: y, showTicks: _, leftMargin: w, rightMargin: st, topMargin: q, bottomMargin: G, truncateBy: tt, showLabels: Vt, tooltip: Y, onSeriesMouseOver: M, refValues: U, maxValue: _t(a) ? Math.max(...m.map(ki)) < 0 ? 0 : Math.max(...m.map(Oi)) : a, minValue: _t(s) ? Math.min(...m.map(Ai)) >= 0 ? 0 : Math.min(...m.map(vi)) : s, onSeriesMouseClick: n, selectedColor: Jt, labelOrder: x, rtl: E === "he" || E === "ar", maxBarThickness: J, resetSelectionOnDoubleClick: vt, detailsOnClick: Yt, barAxisTitle: W, noOfTicks: wt, valueColor: Bt, styles: r, classNames: c, colorDomain: zt, animate: At === !0 ? {
606
+ kt ? /* @__PURE__ */ i.jsx(Re, { width: y, colorDomain: Dt, colors: L, colorLegendTitle: rt, setSelectedColor: N, showNAColor: !1, className: c?.colorLegend }) : null,
607
+ /* @__PURE__ */ i.jsx(Ke, { ref: v, children: qt && Kt ? /* @__PURE__ */ i.jsx(M, { data: bt !== void 0 ? bt === "total" ? ze(ve(m, at.dateFormat || "yyyy").filter((Gt) => at.enabled ? Gt.date === ye(new Date(Ht[Mt]), at.dateFormat || "yyyy") : Gt).filter((Gt) => lt ? !Gt.size.every(zi) : Gt), ji, [st || "asc"]) : ze(ve(m, at.dateFormat || "yyyy").filter((Gt) => at.enabled ? Gt.date === ye(new Date(Ht[Mt]), at.dateFormat || "yyyy") : Gt).filter((Gt) => lt ? !Gt.size.every(Li) : Gt), (Gt) => _t(Gt.size[bt]) ? -1 / 0 : Gt.size[bt], [st || "asc"]) : ve(m, at.dateFormat || "yyyy").filter((Gt) => lt ? !Gt.size.every(Vi) : Gt), barColors: L, width: qt, height: Kt, suffix: J, prefix: j, showValues: ht, barPadding: g, showTicks: Z, leftMargin: w, rightMargin: it, topMargin: W, bottomMargin: Y, truncateBy: _, showLabels: Ct, tooltip: H, onSeriesMouseOver: O, refValues: q, maxValue: _t(a) ? Math.max(...m.map(ki)) < 0 ? 0 : Math.max(...m.map(Oi)) : a, minValue: _t(s) ? Math.min(...m.map(Ai)) >= 0 ? 0 : Math.min(...m.map(vi)) : s, onSeriesMouseClick: n, selectedColor: Jt, labelOrder: x, rtl: X === "he" || X === "ar", maxBarThickness: U, resetSelectionOnDoubleClick: vt, detailsOnClick: Yt, barAxisTitle: E, noOfTicks: wt, valueColor: Bt, styles: r, classNames: c, colorDomain: Dt, animate: At === !0 ? {
608
608
  duration: 0.5,
609
609
  once: !0,
610
610
  amount: 0.5
@@ -617,20 +617,20 @@ function bi(e) {
617
617
  let re;
618
618
  t[15] !== fe ? (re = /* @__PURE__ */ i.jsx("div", { className: me, children: fe }), t[15] = fe, t[16] = re) : re = t[16];
619
619
  let oe;
620
- t[17] !== c?.footnote || t[18] !== c?.source || t[19] !== H || t[20] !== St || t[21] !== r?.footnote || t[22] !== r?.source || t[23] !== f ? (oe = St || H ? /* @__PURE__ */ i.jsx(We, { styles: {
620
+ t[17] !== c?.footnote || t[18] !== c?.source || t[19] !== P || t[20] !== St || t[21] !== r?.footnote || t[22] !== r?.source || t[23] !== y ? (oe = St || P ? /* @__PURE__ */ i.jsx(We, { styles: {
621
621
  footnote: r?.footnote,
622
622
  source: r?.source
623
623
  }, classNames: {
624
624
  footnote: c?.footnote,
625
625
  source: c?.source
626
- }, sources: St, footNote: H, width: f }) : null, t[17] = c?.footnote, t[18] = c?.source, t[19] = H, t[20] = St, t[21] = r?.footnote, t[22] = r?.source, t[23] = f, t[24] = oe) : oe = t[24];
626
+ }, sources: St, footNote: P, width: y }) : null, t[17] = c?.footnote, t[18] = c?.source, t[19] = P, t[20] = St, t[21] = r?.footnote, t[22] = r?.source, t[23] = y, t[24] = oe) : oe = t[24];
627
627
  let le;
628
- return t[25] !== T || t[26] !== ut || t[27] !== nt || t[28] !== S || t[29] !== N || t[30] !== E || t[31] !== P || t[32] !== mt || t[33] !== O || t[34] !== Lt || t[35] !== l || t[36] !== ie || t[37] !== se || t[38] !== re || t[39] !== oe || t[40] !== pt || t[41] !== f ? (le = /* @__PURE__ */ i.jsxs(T, { className: Lt, style: l, id: S, ref: C, "aria-label": ut, backgroundColor: nt, theme: pt, language: E, minHeight: P, width: f, height: N, relativeHeight: O, padding: mt, children: [
628
+ return t[25] !== z || t[26] !== ct || t[27] !== ot || t[28] !== I || t[29] !== T || t[30] !== X || t[31] !== ft || t[32] !== xt || t[33] !== R || t[34] !== Vt || t[35] !== l || t[36] !== ie || t[37] !== se || t[38] !== re || t[39] !== oe || t[40] !== pt || t[41] !== y ? (le = /* @__PURE__ */ i.jsxs(z, { className: Vt, style: l, id: I, ref: k, "aria-label": ct, backgroundColor: ot, theme: pt, language: X, minHeight: ft, width: y, height: T, relativeHeight: R, padding: xt, children: [
629
629
  ie,
630
630
  se,
631
631
  re,
632
632
  oe
633
- ] }), t[25] = T, t[26] = ut, t[27] = nt, t[28] = S, t[29] = N, t[30] = E, t[31] = P, t[32] = mt, t[33] = O, t[34] = Lt, t[35] = l, t[36] = ie, t[37] = se, t[38] = re, t[39] = oe, t[40] = pt, t[41] = f, t[42] = le) : le = t[42], le;
633
+ ] }), t[25] = z, t[26] = ct, t[27] = ot, t[28] = I, t[29] = T, t[30] = X, t[31] = ft, t[32] = xt, t[33] = R, t[34] = Vt, t[35] = l, t[36] = ie, t[37] = se, t[38] = re, t[39] = oe, t[40] = pt, t[41] = y, t[42] = le) : le = t[42], le;
634
634
  }
635
635
  function vi(e) {
636
636
  return Math.min(...e.size.filter(wi));
@@ -692,82 +692,82 @@ function Pi(e, t) {
692
692
  function Fi(e) {
693
693
  const t = xe.c(125), {
694
694
  data: m,
695
- barColor: z,
695
+ barColor: D,
696
696
  suffix: Xt,
697
697
  prefix: St,
698
698
  barPadding: gt,
699
- showValues: et,
700
- showTicks: dt,
701
- truncateBy: V,
702
- width: N,
703
- height: f,
704
- colorDomain: H,
705
- topMargin: zt,
706
- bottomMargin: ct,
707
- leftMargin: Nt,
708
- rightMargin: X,
709
- showLabels: it,
710
- tooltip: xt,
711
- onSeriesMouseOver: mt,
699
+ showValues: tt,
700
+ showTicks: ut,
701
+ truncateBy: C,
702
+ width: T,
703
+ height: y,
704
+ colorDomain: P,
705
+ topMargin: Dt,
706
+ bottomMargin: rt,
707
+ leftMargin: zt,
708
+ rightMargin: F,
709
+ showLabels: et,
710
+ tooltip: dt,
711
+ onSeriesMouseOver: xt,
712
712
  refValues: Tt,
713
713
  selectedColor: w,
714
- highlightedDataPoints: st,
715
- maxValue: q,
716
- minValue: G,
717
- onSeriesMouseClick: Q,
718
- labelOrder: O,
719
- rtl: Y,
720
- maxBarThickness: M,
721
- minBarThickness: U,
722
- resetSelectionOnDoubleClick: S,
714
+ highlightedDataPoints: it,
715
+ maxValue: W,
716
+ minValue: Y,
717
+ onSeriesMouseClick: K,
718
+ labelOrder: R,
719
+ rtl: H,
720
+ maxBarThickness: O,
721
+ minBarThickness: q,
722
+ resetSelectionOnDoubleClick: I,
723
723
  detailsOnClick: a,
724
724
  barAxisTitle: s,
725
725
  valueColor: n,
726
726
  noOfTicks: u,
727
727
  styles: d,
728
- classNames: p,
728
+ classNames: f,
729
729
  animate: x,
730
730
  dimmedOpacity: $,
731
- precision: Z,
732
- customLayers: J,
733
- naLabel: ut
734
- } = e, Ft = zt === void 0 ? 25 : zt, Yt = ct === void 0 ? 10 : ct, W = Nt === void 0 ? 100 : Nt, yt = X === void 0 ? 40 : X, Bt = de(null);
731
+ precision: Q,
732
+ customLayers: U,
733
+ naLabel: ct
734
+ } = e, Ft = Dt === void 0 ? 25 : Dt, Yt = rt === void 0 ? 10 : rt, E = zt === void 0 ? 100 : zt, yt = F === void 0 ? 40 : F, Bt = de(null);
735
735
  let r;
736
736
  t[0] !== x.amount || t[1] !== x.once ? (r = {
737
737
  once: x.once,
738
738
  amount: x.amount
739
739
  }, t[0] = x.amount, t[1] = x.once, t[2] = r) : r = t[2];
740
- const c = Ve(Bt, r), [F, h] = Wt(void 0), [L, B] = Wt(void 0), [A, jt] = Wt(void 0), [bt, ot] = Wt(void 0), ht = s ? Ft + 25 : Ft;
741
- let j;
742
- t[3] !== Yt || t[4] !== W || t[5] !== yt || t[6] !== ht ? (j = {
743
- top: ht,
740
+ const c = Ve(Bt, r), [B, h] = Wt(void 0), [V, S] = Wt(void 0), [A, Lt] = Wt(void 0), [bt, st] = Wt(void 0), mt = s ? Ft + 25 : Ft;
741
+ let L;
742
+ t[3] !== Yt || t[4] !== E || t[5] !== yt || t[6] !== mt ? (L = {
743
+ top: mt,
744
744
  bottom: Yt,
745
- left: W,
745
+ left: E,
746
746
  right: yt
747
- }, t[3] = Yt, t[4] = W, t[5] = yt, t[6] = ht, t[7] = j) : j = t[7];
748
- const y = j, _ = N - y.left - y.right, tt = f - y.top - y.bottom;
749
- let K, D, ft, Ct, nt, Vt, R, lt, E, P, pt, vt, wt, at;
750
- if (t[8] !== x || t[9] !== s || t[10] !== z || t[11] !== gt || t[12] !== p?.graphObjectValues || t[13] !== p?.xAxis?.gridLines || t[14] !== p?.xAxis?.labels || t[15] !== p?.xAxis?.title || t[16] !== p?.yAxis?.axis || t[17] !== p?.yAxis?.labels || t[18] !== H || t[19] !== J || t[20] !== m || t[21] !== a || t[22] !== $ || t[23] !== tt || t[24] !== _ || t[25] !== f || t[26] !== st || t[27] !== c || t[28] !== O || t[29] !== y.bottom || t[30] !== y.left || t[31] !== y.top || t[32] !== M || t[33] !== q || t[34] !== U || t[35] !== G || t[36] !== L || t[37] !== ut || t[38] !== u || t[39] !== Q || t[40] !== mt || t[41] !== Z || t[42] !== St || t[43] !== Tt || t[44] !== S || t[45] !== Y || t[46] !== w || t[47] !== it || t[48] !== dt || t[49] !== et || t[50] !== d?.graphObjectValues || t[51] !== d?.xAxis?.gridLines || t[52] !== d?.xAxis?.labels || t[53] !== d?.xAxis?.title || t[54] !== d?.yAxis?.axis || t[55] !== d?.yAxis?.labels || t[56] !== Xt || t[57] !== Ft || t[58] !== V || t[59] !== n || t[60] !== N) {
751
- let k;
752
- t[75] !== O ? (k = (o, g) => ({
747
+ }, t[3] = Yt, t[4] = E, t[5] = yt, t[6] = mt, t[7] = L) : L = t[7];
748
+ const g = L, Z = T - g.left - g.right, _ = y - g.top - g.bottom;
749
+ let J, j, ht, kt, ot, Ct, G, nt, X, ft, pt, vt, wt, lt;
750
+ if (t[8] !== x || t[9] !== s || t[10] !== D || t[11] !== gt || t[12] !== f?.graphObjectValues || t[13] !== f?.xAxis?.gridLines || t[14] !== f?.xAxis?.labels || t[15] !== f?.xAxis?.title || t[16] !== f?.yAxis?.axis || t[17] !== f?.yAxis?.labels || t[18] !== P || t[19] !== U || t[20] !== m || t[21] !== a || t[22] !== $ || t[23] !== _ || t[24] !== Z || t[25] !== y || t[26] !== it || t[27] !== c || t[28] !== R || t[29] !== g.bottom || t[30] !== g.left || t[31] !== g.top || t[32] !== O || t[33] !== W || t[34] !== q || t[35] !== Y || t[36] !== V || t[37] !== ct || t[38] !== u || t[39] !== K || t[40] !== xt || t[41] !== Q || t[42] !== St || t[43] !== Tt || t[44] !== I || t[45] !== H || t[46] !== w || t[47] !== et || t[48] !== ut || t[49] !== tt || t[50] !== d?.graphObjectValues || t[51] !== d?.xAxis?.gridLines || t[52] !== d?.xAxis?.labels || t[53] !== d?.xAxis?.title || t[54] !== d?.yAxis?.axis || t[55] !== d?.yAxis?.labels || t[56] !== Xt || t[57] !== Ft || t[58] !== C || t[59] !== n || t[60] !== T) {
751
+ let M;
752
+ t[75] !== R ? (M = (o, p) => ({
753
753
  ...o,
754
- id: O ? `${o.label}` : `${g}`
755
- }), t[75] = O, t[76] = k) : k = t[76];
756
- const Rt = m.map(k), Mt = Le().domain([G, q]).range([0, _]).nice(), Kt = O || Rt.map(Ki), Dt = ge().domain(Kt).range([0, U ? Math.max(tt, U * Kt.length) : M ? Math.min(tt, M * Kt.length) : tt]).paddingInner(gt), Qt = Mt.ticks(u);
757
- D = Zt.svg, R = Bt, lt = `${N}px`, E = `${f}px`, P = `0 0 ${N} ${f}`, pt = "ltr", ft = `translate(${y.left},${y.top})`, Ct = dt ? /* @__PURE__ */ i.jsx(Fe, { values: Qt.filter(Ji), x: Qt.filter(Ui).map((o) => Mt(o)), y1: 0 - Ft, y2: tt + y.bottom, styles: {
754
+ id: R ? `${o.label}` : `${p}`
755
+ }), t[75] = R, t[76] = M) : M = t[76];
756
+ const qt = m.map(M), Nt = Le().domain([Y, W]).range([0, Z]).nice(), Kt = R || qt.map(Ki), jt = ge().domain(Kt).range([0, q ? Math.max(_, q * Kt.length) : O ? Math.min(_, O * Kt.length) : _]).paddingInner(gt), Qt = Nt.ticks(u);
757
+ j = Zt.svg, G = Bt, nt = `${T}px`, X = `${y}px`, ft = `0 0 ${T} ${y}`, pt = "ltr", ht = `translate(${g.left},${g.top})`, kt = ut ? /* @__PURE__ */ i.jsx(Fe, { values: Qt.filter(Ji), x: Qt.filter(Ui).map((o) => Nt(o)), y1: 0 - Ft, y2: _ + g.bottom, styles: {
758
758
  gridLines: d?.xAxis?.gridLines,
759
759
  labels: d?.xAxis?.labels
760
760
  }, classNames: {
761
- gridLines: p?.xAxis?.gridLines,
762
- labels: p?.xAxis?.labels
763
- }, suffix: Xt, prefix: St, labelType: "secondary", showGridLines: !0, precision: Z }) : null;
764
- const Ut = _ / 2, Ht = 0 - y.top + 15, kt = d?.xAxis?.title, qt = p?.xAxis?.title;
765
- t[77] !== s || t[78] !== Ut || t[79] !== Ht || t[80] !== kt || t[81] !== qt ? (nt = /* @__PURE__ */ i.jsx(Ce, { x: Ut, y: Ht, style: kt, className: qt, text: s }), t[77] = s, t[78] = Ut, t[79] = Ht, t[80] = kt, t[81] = qt, t[82] = nt) : nt = t[82], t[83] !== J ? (Vt = J.filter(qi).map(Ri), t[83] = J, t[84] = Vt) : Vt = t[84], K = je, vt = Rt.map((o) => _t(Dt(o.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-g-with-hover", variants: {
761
+ gridLines: f?.xAxis?.gridLines,
762
+ labels: f?.xAxis?.labels
763
+ }, suffix: Xt, prefix: St, labelType: "secondary", showGridLines: !0, precision: Q }) : null;
764
+ const Ut = Z / 2, Ht = 0 - g.top + 15, Mt = d?.xAxis?.title, Rt = f?.xAxis?.title;
765
+ t[77] !== s || t[78] !== Ut || t[79] !== Ht || t[80] !== Mt || t[81] !== Rt ? (ot = /* @__PURE__ */ i.jsx(Ce, { x: Ut, y: Ht, style: Mt, className: Rt, text: s }), t[77] = s, t[78] = Ut, t[79] = Ht, t[80] = Mt, t[81] = Rt, t[82] = ot) : ot = t[82], t[83] !== U ? (Ct = U.filter(qi).map(Ri), t[83] = U, t[84] = Ct) : Ct = t[84], J = je, vt = qt.map((o) => _t(jt(o.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-g-with-hover", variants: {
766
766
  initial: {
767
- opacity: w ? o.color && z[H.indexOf(o.color)] === w ? 1 : $ : st.length !== 0 ? st.indexOf(o.label) !== -1 ? 0.85 : $ : 0.85
767
+ opacity: w ? o.color && D[P.indexOf(o.color)] === w ? 1 : $ : it.length !== 0 ? it.indexOf(o.label) !== -1 ? 0.85 : $ : 0.85
768
768
  },
769
769
  whileInView: {
770
- opacity: w ? o.color && z[H.indexOf(o.color)] === w ? 1 : $ : st.length !== 0 ? st.indexOf(o.label) !== -1 ? 0.85 : $ : 0.85,
770
+ opacity: w ? o.color && D[P.indexOf(o.color)] === w ? 1 : $ : it.length !== 0 ? it.indexOf(o.label) !== -1 ? 0.85 : $ : 0.85,
771
771
  transition: {
772
772
  duration: x.duration
773
773
  }
@@ -777,54 +777,54 @@ function Fi(e) {
777
777
  transition: {
778
778
  duration: x.duration
779
779
  }
780
- }, onMouseEnter: (g) => {
781
- h(o), ot(g.clientY), jt(g.clientX), mt?.(o);
780
+ }, onMouseEnter: (p) => {
781
+ h(o), st(p.clientY), Lt(p.clientX), xt?.(o);
782
782
  }, onClick: () => {
783
- (Q || a) && (Ae(L, o) && S ? (B(void 0), Q?.(void 0)) : (B(o), Q?.(o)));
784
- }, onMouseMove: (g) => {
785
- h(o), ot(g.clientY), jt(g.clientX);
783
+ (K || a) && (Ae(V, o) && I ? (S(void 0), K?.(void 0)) : (S(o), K?.(o)));
784
+ }, onMouseMove: (p) => {
785
+ h(o), st(p.clientY), Lt(p.clientX);
786
786
  }, onMouseLeave: () => {
787
- h(void 0), jt(void 0), ot(void 0), mt?.(void 0);
787
+ h(void 0), Lt(void 0), st(void 0), xt?.(void 0);
788
788
  }, children: [
789
789
  o.size ? /* @__PURE__ */ i.jsx(Zt.rect, { variants: {
790
790
  initial: {
791
791
  width: 0,
792
- x: Mt(0),
793
- y: Dt(`${o.id}`),
794
- fill: m.filter(Wi).length === 0 ? z[0] : o.color ? z[H.indexOf(o.color)] : ce.gray
792
+ x: Nt(0),
793
+ y: jt(`${o.id}`),
794
+ fill: m.filter(Wi).length === 0 ? D[0] : o.color ? D[P.indexOf(o.color)] : ce.gray
795
795
  },
796
796
  whileInView: {
797
- width: o.size >= 0 ? Mt(o.size) - Mt(0) : Mt(0) - Mt(o.size),
798
- x: o.size >= 0 ? Mt(0) : Mt(o.size),
799
- y: Dt(`${o.id}`),
800
- fill: m.filter(Gi).length === 0 ? z[0] : o.color ? z[H.indexOf(o.color)] : ce.gray,
797
+ width: o.size >= 0 ? Nt(o.size) - Nt(0) : Nt(0) - Nt(o.size),
798
+ x: o.size >= 0 ? Nt(0) : Nt(o.size),
799
+ y: jt(`${o.id}`),
800
+ fill: m.filter(Gi).length === 0 ? D[0] : o.color ? D[P.indexOf(o.color)] : ce.gray,
801
801
  transition: {
802
802
  duration: x.duration
803
803
  }
804
804
  }
805
805
  }, initial: "initial", animate: c ? "whileInView" : "initial", exit: {
806
806
  width: 0,
807
- x: Mt(0),
807
+ x: Nt(0),
808
808
  transition: {
809
809
  duration: x.duration
810
810
  }
811
- }, height: Dt.bandwidth() }) : null,
812
- it ? /* @__PURE__ */ i.jsx(Pe, { value: `${o.label}`.length < V ? `${o.label}` : `${`${o.label}`.substring(0, V)}...`, y: Dt(o.id) || 0, x: (o.size || 0) < 0 ? Mt(0) : 0 - y.left, width: (o.size || 0) < 0 ? N - Mt(0) : Mt(0) + y.left, height: Dt.bandwidth(), alignment: o.size && o.size < 0 ? "left" : "right", style: d?.yAxis?.labels, className: p?.yAxis?.labels, animate: x, isInView: c }) : null,
813
- et ? /* @__PURE__ */ i.jsx(Zt.text, { style: {
811
+ }, height: jt.bandwidth() }) : null,
812
+ et ? /* @__PURE__ */ i.jsx(Pe, { value: `${o.label}`.length < C ? `${o.label}` : `${`${o.label}`.substring(0, C)}...`, y: jt(o.id) || 0, x: (o.size || 0) < 0 ? Nt(0) : 0 - g.left, width: (o.size || 0) < 0 ? T - Nt(0) : Nt(0) + g.left, height: jt.bandwidth(), alignment: o.size && o.size < 0 ? "left" : "right", style: d?.yAxis?.labels, className: f?.yAxis?.labels, animate: x, isInView: c }) : null,
813
+ tt ? /* @__PURE__ */ i.jsx(Zt.text, { style: {
814
814
  textAnchor: o.size && o.size < 0 ? "end" : "start",
815
815
  ...d?.graphObjectValues || {}
816
- }, className: pe("graph-value text-sm", !n && z.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", p?.graphObjectValues), dx: o.size && o.size < 0 ? -5 : 5, dy: "0.33em", variants: {
816
+ }, className: pe("graph-value text-sm", !n && D.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", f?.graphObjectValues), dx: o.size && o.size < 0 ? -5 : 5, dy: "0.33em", variants: {
817
817
  initial: {
818
- x: Mt(0),
819
- y: Dt(`${o.id}`) + Dt.bandwidth() / 2,
818
+ x: Nt(0),
819
+ y: jt(`${o.id}`) + jt.bandwidth() / 2,
820
820
  opacity: 0,
821
- fill: n || (m.filter(Ei).length === 0 ? z[0] : o.color ? z[H.indexOf(o.color)] : ce.gray)
821
+ fill: n || (m.filter(Ei).length === 0 ? D[0] : o.color ? D[P.indexOf(o.color)] : ce.gray)
822
822
  },
823
823
  whileInView: {
824
- x: o.size ? Mt(o.size) : Mt(0),
824
+ x: o.size ? Nt(o.size) : Nt(0),
825
825
  opacity: 1,
826
- y: Dt(`${o.id}`) + Dt.bandwidth() / 2,
827
- fill: n || (m.filter(Yi).length === 0 ? z[0] : o.color ? z[H.indexOf(o.color)] : ce.gray),
826
+ y: jt(`${o.id}`) + jt.bandwidth() / 2,
827
+ fill: n || (m.filter(Yi).length === 0 ? D[0] : o.color ? D[P.indexOf(o.color)] : ce.gray),
828
828
  transition: {
829
829
  duration: x.duration
830
830
  }
@@ -834,52 +834,52 @@ function Fi(e) {
834
834
  transition: {
835
835
  duration: x.duration
836
836
  }
837
- }, children: ue(o.size, ut, Z, St, Xt) }) : null
837
+ }, children: ue(o.size, ct, Q, St, Xt) }) : null
838
838
  ] }, o.label));
839
- const Jt = p?.yAxis?.axis;
840
- let I;
841
- t[85] !== Jt ? (I = {
839
+ const Jt = f?.yAxis?.axis;
840
+ let N;
841
+ t[85] !== Jt ? (N = {
842
842
  axis: Jt
843
- }, t[85] = Jt, t[86] = I) : I = t[86];
843
+ }, t[85] = Jt, t[86] = N) : N = t[86];
844
844
  const v = d?.yAxis?.axis;
845
- let C;
846
- t[87] !== v ? (C = {
845
+ let k;
846
+ t[87] !== v ? (k = {
847
847
  axis: v
848
- }, t[87] = v, t[88] = C) : C = t[88], wt = /* @__PURE__ */ i.jsx(ke, { x1: Mt(G < 0 ? 0 : G), x2: Mt(G < 0 ? 0 : G), y1: -2.5, y2: tt + y.bottom, classNames: I, styles: C }), at = Tt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Tt.map((o, g) => /* @__PURE__ */ i.jsx(He, { text: o.text, color: o.color, x: Mt(o.value), y1: 0 - y.top, y2: tt + y.bottom, textSide: Mt(o.value) > _ * 0.75 || Y ? "left" : "right", classNames: o.classNames, styles: o.styles, animate: x, isInView: c }, g)) }) : null, t[8] = x, t[9] = s, t[10] = z, t[11] = gt, t[12] = p?.graphObjectValues, t[13] = p?.xAxis?.gridLines, t[14] = p?.xAxis?.labels, t[15] = p?.xAxis?.title, t[16] = p?.yAxis?.axis, t[17] = p?.yAxis?.labels, t[18] = H, t[19] = J, t[20] = m, t[21] = a, t[22] = $, t[23] = tt, t[24] = _, t[25] = f, t[26] = st, t[27] = c, t[28] = O, t[29] = y.bottom, t[30] = y.left, t[31] = y.top, t[32] = M, t[33] = q, t[34] = U, t[35] = G, t[36] = L, t[37] = ut, t[38] = u, t[39] = Q, t[40] = mt, t[41] = Z, t[42] = St, t[43] = Tt, t[44] = S, t[45] = Y, t[46] = w, t[47] = it, t[48] = dt, t[49] = et, t[50] = d?.graphObjectValues, t[51] = d?.xAxis?.gridLines, t[52] = d?.xAxis?.labels, t[53] = d?.xAxis?.title, t[54] = d?.yAxis?.axis, t[55] = d?.yAxis?.labels, t[56] = Xt, t[57] = Ft, t[58] = V, t[59] = n, t[60] = N, t[61] = K, t[62] = D, t[63] = ft, t[64] = Ct, t[65] = nt, t[66] = Vt, t[67] = R, t[68] = lt, t[69] = E, t[70] = P, t[71] = pt, t[72] = vt, t[73] = wt, t[74] = at;
848
+ }, t[87] = v, t[88] = k) : k = t[88], wt = /* @__PURE__ */ i.jsx(ke, { x1: Nt(Y < 0 ? 0 : Y), x2: Nt(Y < 0 ? 0 : Y), y1: -2.5, y2: _ + g.bottom, classNames: N, styles: k }), lt = Tt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Tt.map((o, p) => /* @__PURE__ */ i.jsx(He, { text: o.text, color: o.color, x: Nt(o.value), y1: 0 - g.top, y2: _ + g.bottom, textSide: Nt(o.value) > Z * 0.75 || H ? "left" : "right", classNames: o.classNames, styles: o.styles, animate: x, isInView: c }, p)) }) : null, t[8] = x, t[9] = s, t[10] = D, t[11] = gt, t[12] = f?.graphObjectValues, t[13] = f?.xAxis?.gridLines, t[14] = f?.xAxis?.labels, t[15] = f?.xAxis?.title, t[16] = f?.yAxis?.axis, t[17] = f?.yAxis?.labels, t[18] = P, t[19] = U, t[20] = m, t[21] = a, t[22] = $, t[23] = _, t[24] = Z, t[25] = y, t[26] = it, t[27] = c, t[28] = R, t[29] = g.bottom, t[30] = g.left, t[31] = g.top, t[32] = O, t[33] = W, t[34] = q, t[35] = Y, t[36] = V, t[37] = ct, t[38] = u, t[39] = K, t[40] = xt, t[41] = Q, t[42] = St, t[43] = Tt, t[44] = I, t[45] = H, t[46] = w, t[47] = et, t[48] = ut, t[49] = tt, t[50] = d?.graphObjectValues, t[51] = d?.xAxis?.gridLines, t[52] = d?.xAxis?.labels, t[53] = d?.xAxis?.title, t[54] = d?.yAxis?.axis, t[55] = d?.yAxis?.labels, t[56] = Xt, t[57] = Ft, t[58] = C, t[59] = n, t[60] = T, t[61] = J, t[62] = j, t[63] = ht, t[64] = kt, t[65] = ot, t[66] = Ct, t[67] = G, t[68] = nt, t[69] = X, t[70] = ft, t[71] = pt, t[72] = vt, t[73] = wt, t[74] = lt;
849
849
  } else
850
- K = t[61], D = t[62], ft = t[63], Ct = t[64], nt = t[65], Vt = t[66], R = t[67], lt = t[68], E = t[69], P = t[70], pt = t[71], vt = t[72], wt = t[73], at = t[74];
850
+ J = t[61], j = t[62], ht = t[63], kt = t[64], ot = t[65], Ct = t[66], G = t[67], nt = t[68], X = t[69], ft = t[70], pt = t[71], vt = t[72], wt = t[73], lt = t[74];
851
851
  let At;
852
- t[89] !== K || t[90] !== vt || t[91] !== wt || t[92] !== at ? (At = /* @__PURE__ */ i.jsxs(K, { children: [
852
+ t[89] !== J || t[90] !== vt || t[91] !== wt || t[92] !== lt ? (At = /* @__PURE__ */ i.jsxs(J, { children: [
853
853
  vt,
854
854
  wt,
855
- at
856
- ] }), t[89] = K, t[90] = vt, t[91] = wt, t[92] = at, t[93] = At) : At = t[93];
855
+ lt
856
+ ] }), t[89] = J, t[90] = vt, t[91] = wt, t[92] = lt, t[93] = At) : At = t[93];
857
857
  let $t;
858
- t[94] !== J ? ($t = J.filter(Xi).map(Hi), t[94] = J, t[95] = $t) : $t = t[95];
858
+ t[94] !== U ? ($t = U.filter(Xi).map(Hi), t[94] = U, t[95] = $t) : $t = t[95];
859
859
  let Ot;
860
- t[96] !== ft || t[97] !== Ct || t[98] !== nt || t[99] !== Vt || t[100] !== At || t[101] !== $t ? (Ot = /* @__PURE__ */ i.jsxs("g", { transform: ft, children: [
860
+ t[96] !== ht || t[97] !== kt || t[98] !== ot || t[99] !== Ct || t[100] !== At || t[101] !== $t ? (Ot = /* @__PURE__ */ i.jsxs("g", { transform: ht, children: [
861
+ kt,
862
+ ot,
861
863
  Ct,
862
- nt,
863
- Vt,
864
864
  At,
865
865
  $t
866
- ] }), t[96] = ft, t[97] = Ct, t[98] = nt, t[99] = Vt, t[100] = At, t[101] = $t, t[102] = Ot) : Ot = t[102];
866
+ ] }), t[96] = ht, t[97] = kt, t[98] = ot, t[99] = Ct, t[100] = At, t[101] = $t, t[102] = Ot) : Ot = t[102];
867
867
  let b;
868
- t[103] !== D || t[104] !== R || t[105] !== lt || t[106] !== E || t[107] !== P || t[108] !== pt || t[109] !== Ot ? (b = /* @__PURE__ */ i.jsx(D, { ref: R, width: lt, height: E, viewBox: P, direction: pt, children: Ot }), t[103] = D, t[104] = R, t[105] = lt, t[106] = E, t[107] = P, t[108] = pt, t[109] = Ot, t[110] = b) : b = t[110];
869
- let rt;
870
- t[111] !== p?.tooltip || t[112] !== A || t[113] !== bt || t[114] !== F || t[115] !== d?.tooltip || t[116] !== xt ? (rt = F && xt && A && bt ? /* @__PURE__ */ i.jsx(Oe, { data: F, body: xt, xPos: A, yPos: bt, backgroundStyle: d?.tooltip, className: p?.tooltip }) : null, t[111] = p?.tooltip, t[112] = A, t[113] = bt, t[114] = F, t[115] = d?.tooltip, t[116] = xt, t[117] = rt) : rt = t[117];
868
+ t[103] !== j || t[104] !== G || t[105] !== nt || t[106] !== X || t[107] !== ft || t[108] !== pt || t[109] !== Ot ? (b = /* @__PURE__ */ i.jsx(j, { ref: G, width: nt, height: X, viewBox: ft, direction: pt, children: Ot }), t[103] = j, t[104] = G, t[105] = nt, t[106] = X, t[107] = ft, t[108] = pt, t[109] = Ot, t[110] = b) : b = t[110];
869
+ let at;
870
+ t[111] !== f?.tooltip || t[112] !== A || t[113] !== bt || t[114] !== B || t[115] !== d?.tooltip || t[116] !== dt ? (at = B && dt && A && bt ? /* @__PURE__ */ i.jsx(Oe, { data: B, body: dt, xPos: A, yPos: bt, backgroundStyle: d?.tooltip, className: f?.tooltip }) : null, t[111] = f?.tooltip, t[112] = A, t[113] = bt, t[114] = B, t[115] = d?.tooltip, t[116] = dt, t[117] = at) : at = t[117];
871
871
  let It;
872
- t[118] !== a || t[119] !== L ? (It = a && L !== void 0 ? /* @__PURE__ */ i.jsx($e, { open: L !== void 0, onClose: () => {
873
- B(void 0);
872
+ t[118] !== a || t[119] !== V ? (It = a && V !== void 0 ? /* @__PURE__ */ i.jsx($e, { open: V !== void 0, onClose: () => {
873
+ S(void 0);
874
874
  }, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof a == "string" ? {
875
- __html: Me(a, L)
876
- } : void 0, children: typeof a == "function" ? a(L) : null }) }) : null, t[118] = a, t[119] = L, t[120] = It) : It = t[120];
875
+ __html: Me(a, V)
876
+ } : void 0, children: typeof a == "function" ? a(V) : null }) }) : null, t[118] = a, t[119] = V, t[120] = It) : It = t[120];
877
877
  let Et;
878
- return t[121] !== b || t[122] !== rt || t[123] !== It ? (Et = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
878
+ return t[121] !== b || t[122] !== at || t[123] !== It ? (Et = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
879
879
  b,
880
- rt,
880
+ at,
881
881
  It
882
- ] }), t[121] = b, t[122] = rt, t[123] = It, t[124] = Et) : Et = t[124], Et;
882
+ ] }), t[121] = b, t[122] = at, t[123] = It, t[124] = Et) : Et = t[124], Et;
883
883
  }
884
884
  function Hi(e) {
885
885
  return e.layer;
@@ -917,102 +917,102 @@ function Ki(e) {
917
917
  function Qi(e) {
918
918
  const t = xe.c(133), {
919
919
  leftMargin: m,
920
- rightMargin: z,
920
+ rightMargin: D,
921
921
  topMargin: Xt,
922
922
  bottomMargin: St,
923
923
  data: gt,
924
- width: et,
925
- height: dt,
926
- barColor: V,
927
- suffix: N,
928
- prefix: f,
929
- barPadding: H,
930
- showLabels: zt,
931
- showValues: ct,
932
- showTicks: Nt,
933
- colorDomain: X,
934
- truncateBy: it,
935
- tooltip: xt,
936
- onSeriesMouseOver: mt,
924
+ width: tt,
925
+ height: ut,
926
+ barColor: C,
927
+ suffix: T,
928
+ prefix: y,
929
+ barPadding: P,
930
+ showLabels: Dt,
931
+ showValues: rt,
932
+ showTicks: zt,
933
+ colorDomain: F,
934
+ truncateBy: et,
935
+ tooltip: dt,
936
+ onSeriesMouseOver: xt,
937
937
  refValues: Tt,
938
938
  selectedColor: w,
939
- maxValue: st,
940
- minValue: q,
941
- highlightedDataPoints: G,
942
- onSeriesMouseClick: Q,
943
- labelOrder: O,
944
- maxBarThickness: Y,
945
- minBarThickness: M,
946
- resetSelectionOnDoubleClick: U,
947
- detailsOnClick: S,
939
+ maxValue: it,
940
+ minValue: W,
941
+ highlightedDataPoints: Y,
942
+ onSeriesMouseClick: K,
943
+ labelOrder: R,
944
+ maxBarThickness: H,
945
+ minBarThickness: O,
946
+ resetSelectionOnDoubleClick: q,
947
+ detailsOnClick: I,
948
948
  barAxisTitle: a,
949
949
  valueColor: s,
950
950
  noOfTicks: n,
951
951
  styles: u,
952
952
  classNames: d,
953
- dimmedOpacity: p,
953
+ dimmedOpacity: f,
954
954
  animate: x,
955
955
  precision: $,
956
- customLayers: Z,
957
- naLabel: J
958
- } = e, ut = m === void 0 ? 20 : m, Ft = z === void 0 ? 20 : z, Yt = Xt === void 0 ? 20 : Xt, W = St === void 0 ? 25 : St, yt = de(null);
956
+ customLayers: Q,
957
+ naLabel: U
958
+ } = e, ct = m === void 0 ? 20 : m, Ft = D === void 0 ? 20 : D, Yt = Xt === void 0 ? 20 : Xt, E = St === void 0 ? 25 : St, yt = de(null);
959
959
  let Bt;
960
960
  t[0] !== x.amount || t[1] !== x.once ? (Bt = {
961
961
  once: x.once,
962
962
  amount: x.amount
963
963
  }, t[0] = x.amount, t[1] = x.once, t[2] = Bt) : Bt = t[2];
964
- const r = Ve(yt, Bt), c = a ? ut + 30 : ut;
965
- let F;
966
- t[3] !== W || t[4] !== Ft || t[5] !== c || t[6] !== Yt ? (F = {
964
+ const r = Ve(yt, Bt), c = a ? ct + 30 : ct;
965
+ let B;
966
+ t[3] !== E || t[4] !== Ft || t[5] !== c || t[6] !== Yt ? (B = {
967
967
  top: Yt,
968
- bottom: W,
968
+ bottom: E,
969
969
  left: c,
970
970
  right: Ft
971
- }, t[3] = W, t[4] = Ft, t[5] = c, t[6] = Yt, t[7] = F) : F = t[7];
972
- const h = F, [L, B] = Wt(void 0), [A, jt] = Wt(void 0), [bt, ot] = Wt(void 0), [ht, j] = Wt(void 0), y = et - h.left - h.right, _ = dt - h.top - h.bottom;
973
- let tt, K, D, ft, Ct, nt, Vt, R, lt, E, P, pt, vt, wt;
974
- if (t[8] !== x || t[9] !== a || t[10] !== V || t[11] !== H || t[12] !== d?.graphObjectValues || t[13] !== d?.xAxis?.axis || t[14] !== d?.xAxis?.labels || t[15] !== d?.yAxis?.gridLines || t[16] !== d?.yAxis?.labels || t[17] !== d?.yAxis?.title || t[18] !== X || t[19] !== Z || t[20] !== gt || t[21] !== S || t[22] !== p || t[23] !== _ || t[24] !== y || t[25] !== dt || t[26] !== G || t[27] !== r || t[28] !== O || t[29] !== ut || t[30] !== h.bottom || t[31] !== h.left || t[32] !== h.right || t[33] !== h.top || t[34] !== Y || t[35] !== st || t[36] !== M || t[37] !== q || t[38] !== A || t[39] !== J || t[40] !== n || t[41] !== Q || t[42] !== mt || t[43] !== $ || t[44] !== f || t[45] !== Tt || t[46] !== U || t[47] !== w || t[48] !== zt || t[49] !== Nt || t[50] !== ct || t[51] !== u?.graphObjectValues || t[52] !== u?.xAxis?.axis || t[53] !== u?.xAxis?.labels || t[54] !== u?.yAxis?.gridLines || t[55] !== u?.yAxis?.labels || t[56] !== u?.yAxis?.title || t[57] !== N || t[58] !== it || t[59] !== s || t[60] !== et) {
975
- const Et = Le().domain([q, st]).range([_, 0]).nice();
976
- let k;
977
- t[75] !== O ? (k = (l, ie) => ({
971
+ }, t[3] = E, t[4] = Ft, t[5] = c, t[6] = Yt, t[7] = B) : B = t[7];
972
+ const h = B, [V, S] = Wt(void 0), [A, Lt] = Wt(void 0), [bt, st] = Wt(void 0), [mt, L] = Wt(void 0), g = tt - h.left - h.right, Z = ut - h.top - h.bottom;
973
+ let _, J, j, ht, kt, ot, Ct, G, nt, X, ft, pt, vt, wt;
974
+ if (t[8] !== x || t[9] !== a || t[10] !== C || t[11] !== P || t[12] !== d?.graphObjectValues || t[13] !== d?.xAxis?.axis || t[14] !== d?.xAxis?.labels || t[15] !== d?.yAxis?.gridLines || t[16] !== d?.yAxis?.labels || t[17] !== d?.yAxis?.title || t[18] !== F || t[19] !== Q || t[20] !== gt || t[21] !== I || t[22] !== f || t[23] !== Z || t[24] !== g || t[25] !== ut || t[26] !== Y || t[27] !== r || t[28] !== R || t[29] !== ct || t[30] !== h.bottom || t[31] !== h.left || t[32] !== h.right || t[33] !== h.top || t[34] !== H || t[35] !== it || t[36] !== O || t[37] !== W || t[38] !== A || t[39] !== U || t[40] !== n || t[41] !== K || t[42] !== xt || t[43] !== $ || t[44] !== y || t[45] !== Tt || t[46] !== q || t[47] !== w || t[48] !== Dt || t[49] !== zt || t[50] !== rt || t[51] !== u?.graphObjectValues || t[52] !== u?.xAxis?.axis || t[53] !== u?.xAxis?.labels || t[54] !== u?.yAxis?.gridLines || t[55] !== u?.yAxis?.labels || t[56] !== u?.yAxis?.title || t[57] !== T || t[58] !== et || t[59] !== s || t[60] !== tt) {
975
+ const Et = Le().domain([W, it]).range([Z, 0]).nice();
976
+ let M;
977
+ t[75] !== R ? (M = (l, ie) => ({
978
978
  ...l,
979
- id: O ? `${l.label}` : `${ie}`
980
- }), t[75] = O, t[76] = k) : k = t[76];
981
- const Rt = gt.map(k), Mt = O || Rt.map(rs), Kt = ge().domain(Mt).range([0, M ? Math.max(y, M * Mt.length) : Y ? Math.min(y, Y * Mt.length) : y]).paddingInner(H), Dt = Et.ticks(n);
982
- K = Zt.svg, Vt = yt, R = `${et}px`, lt = `${dt}px`, E = `0 0 ${et} ${dt}`, P = "ltr", wt = `translate(${h.left},${h.top})`;
983
- const Qt = Et(q < 0 ? 0 : q), Ut = Et(q < 0 ? 0 : q), Ht = q < 0 ? 0 : q;
984
- let kt;
985
- t[77] !== J || t[78] !== $ || t[79] !== f || t[80] !== N || t[81] !== Ht ? (kt = ue(Ht, J, $, f, N), t[77] = J, t[78] = $, t[79] = f, t[80] = N, t[81] = Ht, t[82] = kt) : kt = t[82];
986
- const qt = d?.xAxis?.axis, Jt = d?.yAxis?.labels;
987
- let I;
988
- t[83] !== qt || t[84] !== Jt ? (I = {
989
- axis: qt,
979
+ id: R ? `${l.label}` : `${ie}`
980
+ }), t[75] = R, t[76] = M) : M = t[76];
981
+ const qt = gt.map(M), Nt = R || qt.map(rs), Kt = ge().domain(Nt).range([0, O ? Math.max(g, O * Nt.length) : H ? Math.min(g, H * Nt.length) : g]).paddingInner(P), jt = Et.ticks(n);
982
+ J = Zt.svg, Ct = yt, G = `${tt}px`, nt = `${ut}px`, X = `0 0 ${tt} ${ut}`, ft = "ltr", wt = `translate(${h.left},${h.top})`;
983
+ const Qt = Et(W < 0 ? 0 : W), Ut = Et(W < 0 ? 0 : W), Ht = W < 0 ? 0 : W;
984
+ let Mt;
985
+ t[77] !== U || t[78] !== $ || t[79] !== y || t[80] !== T || t[81] !== Ht ? (Mt = ue(Ht, U, $, y, T), t[77] = U, t[78] = $, t[79] = y, t[80] = T, t[81] = Ht, t[82] = Mt) : Mt = t[82];
986
+ const Rt = d?.xAxis?.axis, Jt = d?.yAxis?.labels;
987
+ let N;
988
+ t[83] !== Rt || t[84] !== Jt ? (N = {
989
+ axis: Rt,
990
990
  label: Jt
991
- }, t[83] = qt, t[84] = Jt, t[85] = I) : I = t[85];
992
- const v = u?.xAxis?.axis, C = u?.yAxis?.labels;
991
+ }, t[83] = Rt, t[84] = Jt, t[85] = N) : N = t[85];
992
+ const v = u?.xAxis?.axis, k = u?.yAxis?.labels;
993
993
  let o;
994
- t[86] !== v || t[87] !== C ? (o = {
994
+ t[86] !== v || t[87] !== k ? (o = {
995
995
  axis: v,
996
- label: C
997
- }, t[86] = v, t[87] = C, t[88] = o) : o = t[88], D = /* @__PURE__ */ i.jsx(ke, { y1: Qt, y2: Ut, x1: 0 - ut, x2: y + h.right, label: kt, labelPos: {
998
- x: 0 - ut,
996
+ label: k
997
+ }, t[86] = v, t[87] = k, t[88] = o) : o = t[88], j = /* @__PURE__ */ i.jsx(ke, { y1: Qt, y2: Ut, x1: 0 - ct, x2: g + h.right, label: Mt, labelPos: {
998
+ x: 0 - ct,
999
999
  dx: 0,
1000
- dy: st < 0 ? "1em" : -5,
1001
- y: Et(q < 0 ? 0 : q)
1002
- }, classNames: I, styles: o }), ft = Nt ? /* @__PURE__ */ i.jsx(Ye, { values: Dt.filter(as), y: Dt.filter(ls).map((l) => Et(l)), x1: 0 - ut, x2: y + h.right, styles: {
1000
+ dy: it < 0 ? "1em" : -5,
1001
+ y: Et(W < 0 ? 0 : W)
1002
+ }, classNames: N, styles: o }), ht = zt ? /* @__PURE__ */ i.jsx(Ye, { values: jt.filter(as), y: jt.filter(ls).map((l) => Et(l)), x1: 0 - ct, x2: g + h.right, styles: {
1003
1003
  gridLines: u?.yAxis?.gridLines,
1004
1004
  labels: u?.yAxis?.labels
1005
1005
  }, classNames: {
1006
1006
  gridLines: d?.yAxis?.gridLines,
1007
1007
  labels: d?.yAxis?.labels
1008
- }, suffix: N, prefix: f, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: $ }) : null;
1009
- const g = 0 - ut - 15, ee = _ / 2, T = u?.yAxis?.title, Lt = d?.yAxis?.title;
1010
- t[89] !== a || t[90] !== g || t[91] !== ee || t[92] !== T || t[93] !== Lt ? (Ct = /* @__PURE__ */ i.jsx(Ce, { x: g, y: ee, style: T, className: Lt, text: a, rotate90: !0 }), t[89] = a, t[90] = g, t[91] = ee, t[92] = T, t[93] = Lt, t[94] = Ct) : Ct = t[94], t[95] !== Z ? (nt = Z.filter(ns).map(os), t[95] = Z, t[96] = nt) : nt = t[96], tt = je, pt = Rt.map((l, ie) => _t(Kt(l.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-g-with-hover", initial: "initial", animate: r ? "whileInView" : "initial", variants: {
1008
+ }, suffix: T, prefix: y, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: $ }) : null;
1009
+ const p = 0 - ct - 15, ee = Z / 2, z = u?.yAxis?.title, Vt = d?.yAxis?.title;
1010
+ t[89] !== a || t[90] !== p || t[91] !== ee || t[92] !== z || t[93] !== Vt ? (kt = /* @__PURE__ */ i.jsx(Ce, { x: p, y: ee, style: z, className: Vt, text: a, rotate90: !0 }), t[89] = a, t[90] = p, t[91] = ee, t[92] = z, t[93] = Vt, t[94] = kt) : kt = t[94], t[95] !== Q ? (ot = Q.filter(ns).map(os), t[95] = Q, t[96] = ot) : ot = t[96], _ = je, pt = qt.map((l, ie) => _t(Kt(l.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-g-with-hover", initial: "initial", animate: r ? "whileInView" : "initial", variants: {
1011
1011
  initial: {
1012
- opacity: w ? l.color && V[X.indexOf(l.color)] === w ? 1 : p : G.length !== 0 ? G.indexOf(l.label) !== -1 ? 0.85 : p : 0.85
1012
+ opacity: w ? l.color && C[F.indexOf(l.color)] === w ? 1 : f : Y.length !== 0 ? Y.indexOf(l.label) !== -1 ? 0.85 : f : 0.85
1013
1013
  },
1014
1014
  whileInView: {
1015
- opacity: w ? l.color && V[X.indexOf(l.color)] === w ? 1 : p : G.length !== 0 ? G.indexOf(l.label) !== -1 ? 0.85 : p : 0.85,
1015
+ opacity: w ? l.color && C[F.indexOf(l.color)] === w ? 1 : f : Y.length !== 0 ? Y.indexOf(l.label) !== -1 ? 0.85 : f : 0.85,
1016
1016
  transition: {
1017
1017
  duration: x.duration
1018
1018
  }
@@ -1023,26 +1023,26 @@ function Qi(e) {
1023
1023
  duration: x.duration
1024
1024
  }
1025
1025
  }, onMouseEnter: (se) => {
1026
- B(l), j(se.clientY), ot(se.clientX), mt?.(l);
1026
+ S(l), L(se.clientY), st(se.clientX), xt?.(l);
1027
1027
  }, onClick: () => {
1028
- (Q || S) && (Ae(A, l) && U ? (jt(void 0), Q?.(void 0)) : (jt(l), Q?.(l)));
1028
+ (K || I) && (Ae(A, l) && q ? (Lt(void 0), K?.(void 0)) : (Lt(l), K?.(l)));
1029
1029
  }, onMouseMove: (se) => {
1030
- B(l), j(se.clientY), ot(se.clientX);
1030
+ S(l), L(se.clientY), st(se.clientX);
1031
1031
  }, onMouseLeave: () => {
1032
- B(void 0), ot(void 0), j(void 0), mt?.(void 0);
1032
+ S(void 0), st(void 0), L(void 0), xt?.(void 0);
1033
1033
  }, children: [
1034
1034
  l.size ? /* @__PURE__ */ i.jsx(Zt.rect, { width: Kt.bandwidth(), initial: "initial", animate: r ? "whileInView" : "initial", variants: {
1035
1035
  initial: {
1036
1036
  height: 0,
1037
1037
  x: Kt(`${l.id}`),
1038
1038
  y: Et(0),
1039
- fill: gt.filter(ss).length === 0 ? V[0] : l.color ? V[X.indexOf(l.color)] : ce.gray
1039
+ fill: gt.filter(ss).length === 0 ? C[0] : l.color ? C[F.indexOf(l.color)] : ce.gray
1040
1040
  },
1041
1041
  whileInView: {
1042
1042
  height: l.size ? Math.abs(Et(l.size) - Et(0)) : 0,
1043
1043
  y: l.size && l.size > 0 ? Et(l.size) : Et(0),
1044
1044
  x: Kt(`${l.id}`),
1045
- fill: gt.filter(is).length === 0 ? V[0] : l.color ? V[X.indexOf(l.color)] : ce.gray,
1045
+ fill: gt.filter(is).length === 0 ? C[0] : l.color ? C[F.indexOf(l.color)] : ce.gray,
1046
1046
  transition: {
1047
1047
  duration: x.duration
1048
1048
  }
@@ -1054,21 +1054,21 @@ function Qi(e) {
1054
1054
  duration: x.duration
1055
1055
  }
1056
1056
  } }) : null,
1057
- zt ? /* @__PURE__ */ i.jsx(Ee, { value: `${l.label}`.length < it ? `${l.label}` : `${`${l.label}`.substring(0, it)}...`, y: (l.size || 0) < 0 ? 0 : Et(0) + 5, x: Kt(`${l.id}`), width: Kt.bandwidth(), height: (l.size || 0) < 0 ? Et(0) - 5 : h.bottom, style: u?.xAxis?.labels, className: d?.xAxis?.labels, alignment: (l.size || 0) < 0 ? "bottom" : "top", animate: x, isInView: r }) : null,
1058
- ct ? /* @__PURE__ */ i.jsx(Zt.text, { style: {
1057
+ Dt ? /* @__PURE__ */ i.jsx(Ee, { value: `${l.label}`.length < et ? `${l.label}` : `${`${l.label}`.substring(0, et)}...`, y: (l.size || 0) < 0 ? 0 : Et(0) + 5, x: Kt(`${l.id}`), width: Kt.bandwidth(), height: (l.size || 0) < 0 ? Et(0) - 5 : h.bottom, style: u?.xAxis?.labels, className: d?.xAxis?.labels, alignment: (l.size || 0) < 0 ? "bottom" : "top", animate: x, isInView: r }) : null,
1058
+ rt ? /* @__PURE__ */ i.jsx(Zt.text, { style: {
1059
1059
  textAnchor: "middle",
1060
1060
  ...u?.graphObjectValues || {}
1061
- }, className: pe("graph-value text-sm", !s && V.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", d?.graphObjectValues), dy: l.size ? l.size >= 0 ? "-5px" : "1em" : "-5px", variants: {
1061
+ }, className: pe("graph-value text-sm", !s && C.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", d?.graphObjectValues), dy: l.size ? l.size >= 0 ? "-5px" : "1em" : "-5px", variants: {
1062
1062
  initial: {
1063
1063
  x: Kt(`${l.id}`) + Kt.bandwidth() / 2,
1064
1064
  y: Et(0),
1065
1065
  opacity: 0,
1066
- fill: s || (gt.filter(es).length === 0 ? V[0] : l.color ? V[X.indexOf(l.color)] : ce.gray)
1066
+ fill: s || (gt.filter(es).length === 0 ? C[0] : l.color ? C[F.indexOf(l.color)] : ce.gray)
1067
1067
  },
1068
1068
  whileInView: {
1069
1069
  x: Kt(`${l.id}`) + Kt.bandwidth() / 2,
1070
1070
  y: Et(l.size || 0),
1071
- fill: s || (gt.filter(ts).length === 0 ? V[0] : l.color ? V[X.indexOf(l.color)] : ce.gray),
1071
+ fill: s || (gt.filter(ts).length === 0 ? C[0] : l.color ? C[F.indexOf(l.color)] : ce.gray),
1072
1072
  opacity: 1,
1073
1073
  transition: {
1074
1074
  duration: x.duration
@@ -1079,42 +1079,42 @@ function Qi(e) {
1079
1079
  transition: {
1080
1080
  duration: x.duration
1081
1081
  }
1082
- }, children: ue(l.size, J, $, f, N) }) : null
1083
- ] }, l.label)), vt = Tt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Tt.map((l, ie) => /* @__PURE__ */ i.jsx(Xe, { text: l.text, color: l.color, y: Et(l.value), x1: 0 - ut, x2: y + h.right, classNames: l.classNames, styles: l.styles, animate: x, isInView: r }, ie)) }) : null, t[8] = x, t[9] = a, t[10] = V, t[11] = H, t[12] = d?.graphObjectValues, t[13] = d?.xAxis?.axis, t[14] = d?.xAxis?.labels, t[15] = d?.yAxis?.gridLines, t[16] = d?.yAxis?.labels, t[17] = d?.yAxis?.title, t[18] = X, t[19] = Z, t[20] = gt, t[21] = S, t[22] = p, t[23] = _, t[24] = y, t[25] = dt, t[26] = G, t[27] = r, t[28] = O, t[29] = ut, t[30] = h.bottom, t[31] = h.left, t[32] = h.right, t[33] = h.top, t[34] = Y, t[35] = st, t[36] = M, t[37] = q, t[38] = A, t[39] = J, t[40] = n, t[41] = Q, t[42] = mt, t[43] = $, t[44] = f, t[45] = Tt, t[46] = U, t[47] = w, t[48] = zt, t[49] = Nt, t[50] = ct, t[51] = u?.graphObjectValues, t[52] = u?.xAxis?.axis, t[53] = u?.xAxis?.labels, t[54] = u?.yAxis?.gridLines, t[55] = u?.yAxis?.labels, t[56] = u?.yAxis?.title, t[57] = N, t[58] = it, t[59] = s, t[60] = et, t[61] = tt, t[62] = K, t[63] = D, t[64] = ft, t[65] = Ct, t[66] = nt, t[67] = Vt, t[68] = R, t[69] = lt, t[70] = E, t[71] = P, t[72] = pt, t[73] = vt, t[74] = wt;
1082
+ }, children: ue(l.size, U, $, y, T) }) : null
1083
+ ] }, l.label)), vt = Tt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Tt.map((l, ie) => /* @__PURE__ */ i.jsx(Xe, { text: l.text, color: l.color, y: Et(l.value), x1: 0 - ct, x2: g + h.right, classNames: l.classNames, styles: l.styles, animate: x, isInView: r }, ie)) }) : null, t[8] = x, t[9] = a, t[10] = C, t[11] = P, t[12] = d?.graphObjectValues, t[13] = d?.xAxis?.axis, t[14] = d?.xAxis?.labels, t[15] = d?.yAxis?.gridLines, t[16] = d?.yAxis?.labels, t[17] = d?.yAxis?.title, t[18] = F, t[19] = Q, t[20] = gt, t[21] = I, t[22] = f, t[23] = Z, t[24] = g, t[25] = ut, t[26] = Y, t[27] = r, t[28] = R, t[29] = ct, t[30] = h.bottom, t[31] = h.left, t[32] = h.right, t[33] = h.top, t[34] = H, t[35] = it, t[36] = O, t[37] = W, t[38] = A, t[39] = U, t[40] = n, t[41] = K, t[42] = xt, t[43] = $, t[44] = y, t[45] = Tt, t[46] = q, t[47] = w, t[48] = Dt, t[49] = zt, t[50] = rt, t[51] = u?.graphObjectValues, t[52] = u?.xAxis?.axis, t[53] = u?.xAxis?.labels, t[54] = u?.yAxis?.gridLines, t[55] = u?.yAxis?.labels, t[56] = u?.yAxis?.title, t[57] = T, t[58] = et, t[59] = s, t[60] = tt, t[61] = _, t[62] = J, t[63] = j, t[64] = ht, t[65] = kt, t[66] = ot, t[67] = Ct, t[68] = G, t[69] = nt, t[70] = X, t[71] = ft, t[72] = pt, t[73] = vt, t[74] = wt;
1084
1084
  } else
1085
- tt = t[61], K = t[62], D = t[63], ft = t[64], Ct = t[65], nt = t[66], Vt = t[67], R = t[68], lt = t[69], E = t[70], P = t[71], pt = t[72], vt = t[73], wt = t[74];
1086
- let at;
1087
- t[97] !== tt || t[98] !== pt || t[99] !== vt ? (at = /* @__PURE__ */ i.jsxs(tt, { children: [
1085
+ _ = t[61], J = t[62], j = t[63], ht = t[64], kt = t[65], ot = t[66], Ct = t[67], G = t[68], nt = t[69], X = t[70], ft = t[71], pt = t[72], vt = t[73], wt = t[74];
1086
+ let lt;
1087
+ t[97] !== _ || t[98] !== pt || t[99] !== vt ? (lt = /* @__PURE__ */ i.jsxs(_, { children: [
1088
1088
  pt,
1089
1089
  vt
1090
- ] }), t[97] = tt, t[98] = pt, t[99] = vt, t[100] = at) : at = t[100];
1090
+ ] }), t[97] = _, t[98] = pt, t[99] = vt, t[100] = lt) : lt = t[100];
1091
1091
  let At;
1092
- t[101] !== Z ? (At = Z.filter(_i).map(Zi), t[101] = Z, t[102] = At) : At = t[102];
1092
+ t[101] !== Q ? (At = Q.filter(_i).map(Zi), t[101] = Q, t[102] = At) : At = t[102];
1093
1093
  let $t;
1094
- t[103] !== D || t[104] !== ft || t[105] !== Ct || t[106] !== nt || t[107] !== at || t[108] !== At || t[109] !== wt ? ($t = /* @__PURE__ */ i.jsxs("g", { transform: wt, children: [
1095
- D,
1096
- ft,
1097
- Ct,
1098
- nt,
1099
- at,
1094
+ t[103] !== j || t[104] !== ht || t[105] !== kt || t[106] !== ot || t[107] !== lt || t[108] !== At || t[109] !== wt ? ($t = /* @__PURE__ */ i.jsxs("g", { transform: wt, children: [
1095
+ j,
1096
+ ht,
1097
+ kt,
1098
+ ot,
1099
+ lt,
1100
1100
  At
1101
- ] }), t[103] = D, t[104] = ft, t[105] = Ct, t[106] = nt, t[107] = at, t[108] = At, t[109] = wt, t[110] = $t) : $t = t[110];
1101
+ ] }), t[103] = j, t[104] = ht, t[105] = kt, t[106] = ot, t[107] = lt, t[108] = At, t[109] = wt, t[110] = $t) : $t = t[110];
1102
1102
  let Ot;
1103
- t[111] !== K || t[112] !== Vt || t[113] !== R || t[114] !== lt || t[115] !== E || t[116] !== P || t[117] !== $t ? (Ot = /* @__PURE__ */ i.jsx(K, { ref: Vt, width: R, height: lt, viewBox: E, direction: P, children: $t }), t[111] = K, t[112] = Vt, t[113] = R, t[114] = lt, t[115] = E, t[116] = P, t[117] = $t, t[118] = Ot) : Ot = t[118];
1103
+ t[111] !== J || t[112] !== Ct || t[113] !== G || t[114] !== nt || t[115] !== X || t[116] !== ft || t[117] !== $t ? (Ot = /* @__PURE__ */ i.jsx(J, { ref: Ct, width: G, height: nt, viewBox: X, direction: ft, children: $t }), t[111] = J, t[112] = Ct, t[113] = G, t[114] = nt, t[115] = X, t[116] = ft, t[117] = $t, t[118] = Ot) : Ot = t[118];
1104
1104
  let b;
1105
- t[119] !== d?.tooltip || t[120] !== bt || t[121] !== ht || t[122] !== L || t[123] !== u?.tooltip || t[124] !== xt ? (b = L && xt && bt && ht ? /* @__PURE__ */ i.jsx(Oe, { data: L, body: xt, xPos: bt, yPos: ht, backgroundStyle: u?.tooltip, className: d?.tooltip }) : null, t[119] = d?.tooltip, t[120] = bt, t[121] = ht, t[122] = L, t[123] = u?.tooltip, t[124] = xt, t[125] = b) : b = t[125];
1106
- let rt;
1107
- t[126] !== S || t[127] !== A ? (rt = S && A !== void 0 ? /* @__PURE__ */ i.jsx($e, { open: A !== void 0, onClose: () => {
1108
- jt(void 0);
1109
- }, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof S == "string" ? {
1110
- __html: Me(S, A)
1111
- } : void 0, children: typeof S == "function" ? S(A) : null }) }) : null, t[126] = S, t[127] = A, t[128] = rt) : rt = t[128];
1105
+ t[119] !== d?.tooltip || t[120] !== bt || t[121] !== mt || t[122] !== V || t[123] !== u?.tooltip || t[124] !== dt ? (b = V && dt && bt && mt ? /* @__PURE__ */ i.jsx(Oe, { data: V, body: dt, xPos: bt, yPos: mt, backgroundStyle: u?.tooltip, className: d?.tooltip }) : null, t[119] = d?.tooltip, t[120] = bt, t[121] = mt, t[122] = V, t[123] = u?.tooltip, t[124] = dt, t[125] = b) : b = t[125];
1106
+ let at;
1107
+ t[126] !== I || t[127] !== A ? (at = I && A !== void 0 ? /* @__PURE__ */ i.jsx($e, { open: A !== void 0, onClose: () => {
1108
+ Lt(void 0);
1109
+ }, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof I == "string" ? {
1110
+ __html: Me(I, A)
1111
+ } : void 0, children: typeof I == "function" ? I(A) : null }) }) : null, t[126] = I, t[127] = A, t[128] = at) : at = t[128];
1112
1112
  let It;
1113
- return t[129] !== Ot || t[130] !== b || t[131] !== rt ? (It = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1113
+ return t[129] !== Ot || t[130] !== b || t[131] !== at ? (It = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1114
1114
  Ot,
1115
1115
  b,
1116
- rt
1117
- ] }), t[129] = Ot, t[130] = b, t[131] = rt, t[132] = It) : It = t[132], It;
1116
+ at
1117
+ ] }), t[129] = Ot, t[130] = b, t[131] = at, t[132] = It) : It = t[132], It;
1118
1118
  }
1119
1119
  function Zi(e) {
1120
1120
  return e.layer;
@@ -1152,109 +1152,109 @@ function rs(e) {
1152
1152
  function cs(e) {
1153
1153
  const t = xe.c(43), {
1154
1154
  data: m,
1155
- graphTitle: z,
1155
+ graphTitle: D,
1156
1156
  colors: Xt,
1157
1157
  suffix: St,
1158
1158
  sources: gt,
1159
- prefix: et,
1160
- graphDescription: dt,
1161
- barPadding: V,
1162
- showValues: N,
1163
- showTicks: f,
1164
- truncateBy: H,
1165
- height: zt,
1166
- width: ct,
1167
- footNote: Nt,
1168
- colorDomain: X,
1169
- colorLegendTitle: it,
1170
- highlightedDataPoints: xt,
1171
- padding: mt,
1159
+ prefix: tt,
1160
+ graphDescription: ut,
1161
+ barPadding: C,
1162
+ showValues: T,
1163
+ showTicks: y,
1164
+ truncateBy: P,
1165
+ height: Dt,
1166
+ width: rt,
1167
+ footNote: zt,
1168
+ colorDomain: F,
1169
+ colorLegendTitle: et,
1170
+ highlightedDataPoints: dt,
1171
+ padding: xt,
1172
1172
  backgroundColor: Tt,
1173
1173
  topMargin: w,
1174
- bottomMargin: st,
1175
- leftMargin: q,
1176
- rightMargin: G,
1177
- showLabels: Q,
1178
- relativeHeight: O,
1179
- tooltip: Y,
1180
- onSeriesMouseOver: M,
1181
- refValues: U,
1182
- showColorScale: S,
1174
+ bottomMargin: it,
1175
+ leftMargin: W,
1176
+ rightMargin: Y,
1177
+ showLabels: K,
1178
+ relativeHeight: R,
1179
+ tooltip: H,
1180
+ onSeriesMouseOver: O,
1181
+ refValues: q,
1182
+ showColorScale: I,
1183
1183
  graphID: a,
1184
1184
  maxValue: s,
1185
1185
  minValue: n,
1186
1186
  onSeriesMouseClick: u,
1187
1187
  graphDownload: d,
1188
- dataDownload: p,
1188
+ dataDownload: f,
1189
1189
  sortData: x,
1190
1190
  labelOrder: $,
1191
- language: Z,
1192
- showNAColor: J,
1193
- minHeight: ut,
1191
+ language: Q,
1192
+ showNAColor: U,
1193
+ minHeight: ct,
1194
1194
  theme: Ft,
1195
1195
  maxBarThickness: Yt,
1196
- maxNumberOfBars: W,
1196
+ maxNumberOfBars: E,
1197
1197
  minBarThickness: yt,
1198
1198
  ariaLabel: Bt,
1199
1199
  resetSelectionOnDoubleClick: r,
1200
1200
  detailsOnClick: c,
1201
- barAxisTitle: F,
1201
+ barAxisTitle: B,
1202
1202
  noOfTicks: h,
1203
- valueColor: L,
1204
- styles: B,
1203
+ valueColor: V,
1204
+ styles: S,
1205
1205
  classNames: A,
1206
- filterNA: jt,
1206
+ filterNA: Lt,
1207
1207
  animate: bt,
1208
- dimmedOpacity: ot,
1209
- precision: ht,
1210
- customLayers: j,
1211
- timeline: y,
1212
- naLabel: _,
1213
- orientation: tt
1214
- } = e, K = St === void 0 ? "" : St, D = et === void 0 ? "" : et, ft = V === void 0 ? 0.25 : V, Ct = N === void 0 ? !0 : N, nt = f === void 0 ? !0 : f, Vt = H === void 0 ? 999 : H;
1215
- let R;
1216
- t[0] !== xt ? (R = xt === void 0 ? [] : xt, t[0] = xt, t[1] = R) : R = t[1];
1217
- const lt = R, E = Tt === void 0 ? !1 : Tt, P = Q === void 0 ? !0 : Q, pt = S === void 0 ? !0 : S, vt = d === void 0 ? !1 : d, wt = p === void 0 ? !1 : p, at = Z === void 0 ? "en" : Z, At = J === void 0 ? !0 : J, $t = ut === void 0 ? 0 : ut, Ot = Ft === void 0 ? "light" : Ft, b = r === void 0 ? !0 : r, rt = h === void 0 ? 5 : h, It = jt === void 0 ? !0 : jt, Et = bt === void 0 ? !1 : bt, k = ot === void 0 ? 0.3 : ot, Rt = ht === void 0 ? 2 : ht;
1218
- let Mt;
1219
- t[2] !== j ? (Mt = j === void 0 ? [] : j, t[2] = j, t[3] = Mt) : Mt = t[3];
1220
- const Kt = Mt, Dt = y === void 0 ? {
1208
+ dimmedOpacity: st,
1209
+ precision: mt,
1210
+ customLayers: L,
1211
+ timeline: g,
1212
+ naLabel: Z,
1213
+ orientation: _
1214
+ } = e, J = St === void 0 ? "" : St, j = tt === void 0 ? "" : tt, ht = C === void 0 ? 0.25 : C, kt = T === void 0 ? !0 : T, ot = y === void 0 ? !0 : y, Ct = P === void 0 ? 999 : P;
1215
+ let G;
1216
+ t[0] !== dt ? (G = dt === void 0 ? [] : dt, t[0] = dt, t[1] = G) : G = t[1];
1217
+ const nt = G, X = Tt === void 0 ? !1 : Tt, ft = K === void 0 ? !0 : K, pt = I === void 0 ? !0 : I, vt = d === void 0 ? !1 : d, wt = f === void 0 ? !1 : f, lt = Q === void 0 ? "en" : Q, At = U === void 0 ? !0 : U, $t = ct === void 0 ? 0 : ct, Ot = Ft === void 0 ? "light" : Ft, b = r === void 0 ? !0 : r, at = h === void 0 ? 5 : h, It = Lt === void 0 ? !0 : Lt, Et = bt === void 0 ? !1 : bt, M = st === void 0 ? 0.3 : st, qt = mt === void 0 ? 2 : mt;
1218
+ let Nt;
1219
+ t[2] !== L ? (Nt = L === void 0 ? [] : L, t[2] = L, t[3] = Nt) : Nt = t[3];
1220
+ const Kt = Nt, jt = g === void 0 ? {
1221
1221
  enabled: !1,
1222
1222
  autoplay: !1,
1223
1223
  showOnlyActiveDate: !0
1224
- } : y, Qt = _ === void 0 ? "NA" : _, Ut = tt === void 0 ? "vertical" : tt, Ht = Ut === "horizontal" ? Fi : Qi, [kt, qt] = Wt(0), [Jt, I] = Wt(0), [v, C] = Wt(Dt.autoplay), o = Ze(De(m, "date", !0).map((te) => Be(`${te}`, Dt.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), ks), [g, ee] = Wt(Dt.autoplay ? 0 : o.length - 1), [T, Lt] = Wt(void 0), l = de(null), ie = de(null);
1224
+ } : g, Qt = Z === void 0 ? "NA" : Z, Ut = _ === void 0 ? "vertical" : _, Ht = Ut === "horizontal" ? Fi : Qi, [Mt, Rt] = Wt(0), [Jt, N] = Wt(0), [v, k] = Wt(jt.autoplay), o = Ze(De(m, "date", !0).map((te) => Be(`${te}`, jt.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), ks), [p, ee] = Wt(jt.autoplay ? 0 : o.length - 1), [z, Vt] = Wt(void 0), l = de(null), ie = de(null);
1225
1225
  let se, me;
1226
1226
  t[4] === Symbol.for("react.memo_cache_sentinel") ? (se = () => {
1227
1227
  const te = new ResizeObserver((he) => {
1228
- qt(he[0].target.clientWidth || 620), I(he[0].target.clientHeight || 480);
1228
+ Rt(he[0].target.clientWidth || 620), N(he[0].target.clientHeight || 480);
1229
1229
  });
1230
1230
  return l.current && te.observe(l.current), () => te.disconnect();
1231
1231
  }, me = [], t[4] = se, t[5] = me) : (se = t[4], me = t[5]), we(se, me), we(() => {
1232
1232
  const te = setInterval(() => {
1233
1233
  ee((he) => he < o.length - 1 ? he + 1 : 0);
1234
- }, (Dt.speed || 2) * 1e3);
1234
+ }, (jt.speed || 2) * 1e3);
1235
1235
  return v || clearInterval(te), () => clearInterval(te);
1236
- }, [o, v, Dt.speed]);
1237
- const fe = Ie(o, g, Dt.showOnlyActiveDate, Dt.dateFormat || "yyyy"), re = Qe, oe = A?.graphContainer, le = B?.graphContainer;
1236
+ }, [o, v, jt.speed]);
1237
+ const fe = Ie(o, p, jt.showOnlyActiveDate, jt.dateFormat || "yyyy"), re = Qe, oe = A?.graphContainer, le = S?.graphContainer;
1238
1238
  let Gt;
1239
- t[6] !== A?.description || t[7] !== A?.title || t[8] !== m || t[9] !== wt || t[10] !== dt || t[11] !== vt || t[12] !== z || t[13] !== B?.description || t[14] !== B?.title || t[15] !== ct ? (Gt = z || dt || vt || wt ? /* @__PURE__ */ i.jsx(Ge, { styles: {
1240
- title: B?.title,
1241
- description: B?.description
1239
+ t[6] !== A?.description || t[7] !== A?.title || t[8] !== m || t[9] !== wt || t[10] !== ut || t[11] !== vt || t[12] !== D || t[13] !== S?.description || t[14] !== S?.title || t[15] !== rt ? (Gt = D || ut || vt || wt ? /* @__PURE__ */ i.jsx(Ge, { styles: {
1240
+ title: S?.title,
1241
+ description: S?.description
1242
1242
  }, classNames: {
1243
1243
  title: A?.title,
1244
1244
  description: A?.description
1245
- }, graphTitle: z, graphDescription: dt, width: ct, graphDownload: vt ? ie : void 0, dataDownload: wt ? m.map(Ms).filter(Os).length > 0 ? m.map($s).filter(As) : m.filter(ws) : null }) : null, t[6] = A?.description, t[7] = A?.title, t[8] = m, t[9] = wt, t[10] = dt, t[11] = vt, t[12] = z, t[13] = B?.description, t[14] = B?.title, t[15] = ct, t[16] = Gt) : Gt = t[16];
1246
- const Pt = Dt.enabled && o.length > 0 && fe ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center pb-4", dir: "ltr", children: [
1245
+ }, graphTitle: D, graphDescription: ut, width: rt, graphDownload: vt ? ie : void 0, dataDownload: wt ? m.map(Ms).filter(Os).length > 0 ? m.map($s).filter(As) : m.filter(ws) : null }) : null, t[6] = A?.description, t[7] = A?.title, t[8] = m, t[9] = wt, t[10] = ut, t[11] = vt, t[12] = D, t[13] = S?.description, t[14] = S?.title, t[15] = rt, t[16] = Gt) : Gt = t[16];
1246
+ const Pt = jt.enabled && o.length > 0 && fe ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center pb-4", dir: "ltr", children: [
1247
1247
  /* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
1248
- C(!v);
1248
+ k(!v);
1249
1249
  }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": v ? "Click to pause animation" : "Click to play animation", children: v ? /* @__PURE__ */ i.jsx(Ue, {}) : /* @__PURE__ */ i.jsx(Je, {}) }),
1250
- /* @__PURE__ */ i.jsx(Se, { min: o[0], max: o[o.length - 1], marks: fe, step: null, defaultValue: o[o.length - 1], value: o[g], onChangeComplete: (te) => {
1250
+ /* @__PURE__ */ i.jsx(Se, { min: o[0], max: o[o.length - 1], marks: fe, step: null, defaultValue: o[o.length - 1], value: o[p], onChangeComplete: (te) => {
1251
1251
  ee(o.indexOf(te));
1252
1252
  }, onChange: (te) => {
1253
1253
  ee(o.indexOf(te));
1254
1254
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
1255
1255
  ] }) : null, ae = m.length === 0 ? /* @__PURE__ */ i.jsx(qe, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1256
- pt && m.filter(vs).length !== 0 ? /* @__PURE__ */ i.jsx(Re, { width: ct, colorLegendTitle: it, colors: Xt || ce[Ot].categoricalColors.colors, colorDomain: X || De(m, "color", !0), setSelectedColor: Lt, showNAColor: At, className: A?.colorLegend }) : null,
1257
- /* @__PURE__ */ i.jsx(Ke, { ref: l, children: kt && Jt ? /* @__PURE__ */ i.jsx(Ht, { data: x ? ze(ti(m, Dt.dateFormat || "yyyy").filter((te) => Dt.enabled ? te.date === ye(new Date(o[g]), Dt.dateFormat || "yyyy") : te).filter((te) => It ? !_t(te.size) : te), [(te) => te.size === void 0 ? x === "asc" ? (Ut === "horizontal" ? 1 : -1) * (1 / 0) : (Ut === "horizontal" ? -1 : 1) * (1 / 0) : te.size], [x]).filter((te, he) => W ? he < W : !0) : ti(m, Dt.dateFormat || "yyyy").filter((te) => Dt.enabled ? te.date === ye(new Date(o[g]), Dt.dateFormat || "yyyy") : te).filter((te) => It ? !_t(te.size) : te).filter((te, he) => W ? he < W : !0), barColor: m.filter(bs).length === 0 ? Xt ? [Xt] : [ce.primaryColors["blue-600"]] : Xt || ce[Ot].categoricalColors.colors, colorDomain: m.filter(ys).length === 0 ? [] : X || De(m, "color", !0), selectedColor: T, width: kt, height: Jt, suffix: K, prefix: D, barPadding: ft, showValues: Ct, showTicks: nt, leftMargin: q, rightMargin: G, topMargin: w, bottomMargin: st, truncateBy: Vt, showLabels: P, tooltip: Y, onSeriesMouseOver: M, refValues: U, maxValue: _t(s) ? Math.max(...m.filter(gs).map(ps)) < 0 ? 0 : Math.max(...m.filter(fs).map(hs)) : s, minValue: _t(n) ? Math.min(...m.filter(ms).map(xs)) >= 0 ? 0 : Math.min(...m.filter(ds).map(us)) : n, highlightedDataPoints: lt, onSeriesMouseClick: u, labelOrder: $, rtl: at === "he" || at === "ar", maxBarThickness: Yt, minBarThickness: yt, resetSelectionOnDoubleClick: b, detailsOnClick: c, barAxisTitle: F, noOfTicks: rt, valueColor: L, classNames: A, styles: B, animate: Et === !0 ? {
1256
+ pt && m.filter(vs).length !== 0 ? /* @__PURE__ */ i.jsx(Re, { width: rt, colorLegendTitle: et, colors: Xt || ce[Ot].categoricalColors.colors, colorDomain: F || De(m, "color", !0), setSelectedColor: Vt, showNAColor: At, className: A?.colorLegend }) : null,
1257
+ /* @__PURE__ */ i.jsx(Ke, { ref: l, children: Mt && Jt ? /* @__PURE__ */ i.jsx(Ht, { data: x ? ze(ti(m, jt.dateFormat || "yyyy").filter((te) => jt.enabled ? te.date === ye(new Date(o[p]), jt.dateFormat || "yyyy") : te).filter((te) => It ? !_t(te.size) : te), [(te) => te.size === void 0 ? x === "asc" ? (Ut === "horizontal" ? 1 : -1) * (1 / 0) : (Ut === "horizontal" ? -1 : 1) * (1 / 0) : te.size], [x]).filter((te, he) => E ? he < E : !0) : ti(m, jt.dateFormat || "yyyy").filter((te) => jt.enabled ? te.date === ye(new Date(o[p]), jt.dateFormat || "yyyy") : te).filter((te) => It ? !_t(te.size) : te).filter((te, he) => E ? he < E : !0), barColor: m.filter(bs).length === 0 ? Xt ? [Xt] : [ce.primaryColors["blue-600"]] : Xt || ce[Ot].categoricalColors.colors, colorDomain: m.filter(ys).length === 0 ? [] : F || De(m, "color", !0), selectedColor: z, width: Mt, height: Jt, suffix: J, prefix: j, barPadding: ht, showValues: kt, showTicks: ot, leftMargin: W, rightMargin: Y, topMargin: w, bottomMargin: it, truncateBy: Ct, showLabels: ft, tooltip: H, onSeriesMouseOver: O, refValues: q, maxValue: _t(s) ? Math.max(...m.filter(gs).map(ps)) < 0 ? 0 : Math.max(...m.filter(fs).map(hs)) : s, minValue: _t(n) ? Math.min(...m.filter(ms).map(xs)) >= 0 ? 0 : Math.min(...m.filter(ds).map(us)) : n, highlightedDataPoints: nt, onSeriesMouseClick: u, labelOrder: $, rtl: lt === "he" || lt === "ar", maxBarThickness: Yt, minBarThickness: yt, resetSelectionOnDoubleClick: b, detailsOnClick: c, barAxisTitle: B, noOfTicks: at, valueColor: V, classNames: A, styles: S, animate: Et === !0 ? {
1258
1258
  duration: 0.5,
1259
1259
  once: !0,
1260
1260
  amount: 0.5
@@ -1262,23 +1262,23 @@ function cs(e) {
1262
1262
  duration: 0,
1263
1263
  once: !0,
1264
1264
  amount: 0
1265
- }, dimmedOpacity: k, precision: Rt, customLayers: Kt, naLabel: Qt }) : null })
1265
+ }, dimmedOpacity: M, precision: qt, customLayers: Kt, naLabel: Qt }) : null })
1266
1266
  ] });
1267
1267
  let be;
1268
- t[17] !== A?.footnote || t[18] !== A?.source || t[19] !== Nt || t[20] !== gt || t[21] !== B?.footnote || t[22] !== B?.source || t[23] !== ct ? (be = gt || Nt ? /* @__PURE__ */ i.jsx(We, { sources: gt, footNote: Nt, width: ct, styles: {
1269
- footnote: B?.footnote,
1270
- source: B?.source
1268
+ t[17] !== A?.footnote || t[18] !== A?.source || t[19] !== zt || t[20] !== gt || t[21] !== S?.footnote || t[22] !== S?.source || t[23] !== rt ? (be = gt || zt ? /* @__PURE__ */ i.jsx(We, { sources: gt, footNote: zt, width: rt, styles: {
1269
+ footnote: S?.footnote,
1270
+ source: S?.source
1271
1271
  }, classNames: {
1272
1272
  footnote: A?.footnote,
1273
1273
  source: A?.source
1274
- } }) : null, t[17] = A?.footnote, t[18] = A?.source, t[19] = Nt, t[20] = gt, t[21] = B?.footnote, t[22] = B?.source, t[23] = ct, t[24] = be) : be = t[24];
1274
+ } }) : null, t[17] = A?.footnote, t[18] = A?.source, t[19] = zt, t[20] = gt, t[21] = S?.footnote, t[22] = S?.source, t[23] = rt, t[24] = be) : be = t[24];
1275
1275
  let Ne;
1276
- return t[25] !== re || t[26] !== Bt || t[27] !== E || t[28] !== a || t[29] !== zt || t[30] !== at || t[31] !== $t || t[32] !== mt || t[33] !== O || t[34] !== oe || t[35] !== le || t[36] !== Gt || t[37] !== Pt || t[38] !== ae || t[39] !== be || t[40] !== Ot || t[41] !== ct ? (Ne = /* @__PURE__ */ i.jsxs(re, { className: oe, style: le, id: a, ref: ie, "aria-label": Bt, backgroundColor: E, theme: Ot, language: at, minHeight: $t, width: ct, height: zt, relativeHeight: O, padding: mt, children: [
1276
+ return t[25] !== re || t[26] !== Bt || t[27] !== X || t[28] !== a || t[29] !== Dt || t[30] !== lt || t[31] !== $t || t[32] !== xt || t[33] !== R || t[34] !== oe || t[35] !== le || t[36] !== Gt || t[37] !== Pt || t[38] !== ae || t[39] !== be || t[40] !== Ot || t[41] !== rt ? (Ne = /* @__PURE__ */ i.jsxs(re, { className: oe, style: le, id: a, ref: ie, "aria-label": Bt, backgroundColor: X, theme: Ot, language: lt, minHeight: $t, width: rt, height: Dt, relativeHeight: R, padding: xt, children: [
1277
1277
  Gt,
1278
1278
  Pt,
1279
1279
  ae,
1280
1280
  be
1281
- ] }), t[25] = re, t[26] = Bt, t[27] = E, t[28] = a, t[29] = zt, t[30] = at, t[31] = $t, t[32] = mt, t[33] = O, t[34] = oe, t[35] = le, t[36] = Gt, t[37] = Pt, t[38] = ae, t[39] = be, t[40] = Ot, t[41] = ct, t[42] = Ne) : Ne = t[42], Ne;
1281
+ ] }), t[25] = re, t[26] = Bt, t[27] = X, t[28] = a, t[29] = Dt, t[30] = lt, t[31] = $t, t[32] = xt, t[33] = R, t[34] = oe, t[35] = le, t[36] = Gt, t[37] = Pt, t[38] = ae, t[39] = be, t[40] = Ot, t[41] = rt, t[42] = Ne) : Ne = t[42], Ne;
1282
1282
  }
1283
1283
  function us(e) {
1284
1284
  return e.size;
@@ -1334,81 +1334,81 @@ function ks(e, t) {
1334
1334
  function Cs(e) {
1335
1335
  const t = xe.c(122), {
1336
1336
  data: m,
1337
- barColors: z,
1337
+ barColors: D,
1338
1338
  barPadding: Xt,
1339
1339
  showTicks: St,
1340
1340
  topMargin: gt,
1341
- bottomMargin: et,
1342
- leftMargin: dt,
1343
- rightMargin: V,
1344
- truncateBy: N,
1345
- width: f,
1346
- height: H,
1347
- tooltip: zt,
1348
- onSeriesMouseOver: ct,
1349
- showLabels: Nt,
1350
- suffix: X,
1351
- prefix: it,
1352
- showValues: xt,
1353
- refValues: mt,
1341
+ bottomMargin: tt,
1342
+ leftMargin: ut,
1343
+ rightMargin: C,
1344
+ truncateBy: T,
1345
+ width: y,
1346
+ height: P,
1347
+ tooltip: Dt,
1348
+ onSeriesMouseOver: rt,
1349
+ showLabels: zt,
1350
+ suffix: F,
1351
+ prefix: et,
1352
+ showValues: dt,
1353
+ refValues: xt,
1354
1354
  maxValue: Tt,
1355
1355
  onSeriesMouseClick: w,
1356
- selectedColor: st,
1357
- rtl: q,
1358
- labelOrder: G,
1359
- maxBarThickness: Q,
1360
- minBarThickness: O,
1361
- resetSelectionOnDoubleClick: Y,
1362
- detailsOnClick: M,
1363
- barAxisTitle: U,
1364
- valueColor: S,
1356
+ selectedColor: it,
1357
+ rtl: W,
1358
+ labelOrder: Y,
1359
+ maxBarThickness: K,
1360
+ minBarThickness: R,
1361
+ resetSelectionOnDoubleClick: H,
1362
+ detailsOnClick: O,
1363
+ barAxisTitle: q,
1364
+ valueColor: I,
1365
1365
  noOfTicks: a,
1366
1366
  styles: s,
1367
1367
  classNames: n,
1368
1368
  animate: u,
1369
1369
  colorDomain: d,
1370
- precision: p,
1370
+ precision: f,
1371
1371
  customLayers: x,
1372
1372
  naLabel: $
1373
- } = e, Z = gt === void 0 ? 25 : gt, J = et === void 0 ? 10 : et, ut = dt === void 0 ? 100 : dt, Ft = V === void 0 ? 40 : V, Yt = de(null);
1374
- let W;
1375
- t[0] !== u.amount || t[1] !== u.once ? (W = {
1373
+ } = e, Q = gt === void 0 ? 25 : gt, U = tt === void 0 ? 10 : tt, ct = ut === void 0 ? 100 : ut, Ft = C === void 0 ? 40 : C, Yt = de(null);
1374
+ let E;
1375
+ t[0] !== u.amount || t[1] !== u.once ? (E = {
1376
1376
  once: u.once,
1377
1377
  amount: u.amount
1378
- }, t[0] = u.amount, t[1] = u.once, t[2] = W) : W = t[2];
1379
- const yt = Ve(Yt, W), Bt = U ? Z + 25 : Z;
1378
+ }, t[0] = u.amount, t[1] = u.once, t[2] = E) : E = t[2];
1379
+ const yt = Ve(Yt, E), Bt = q ? Q + 25 : Q;
1380
1380
  let r;
1381
- t[3] !== J || t[4] !== ut || t[5] !== Ft || t[6] !== Bt ? (r = {
1381
+ t[3] !== U || t[4] !== ct || t[5] !== Ft || t[6] !== Bt ? (r = {
1382
1382
  top: Bt,
1383
- bottom: J,
1384
- left: ut,
1383
+ bottom: U,
1384
+ left: ct,
1385
1385
  right: Ft
1386
- }, t[3] = J, t[4] = ut, t[5] = Ft, t[6] = Bt, t[7] = r) : r = t[7];
1387
- const c = r, [F, h] = Wt(void 0), [L, B] = Wt(void 0), [A, jt] = Wt(void 0), [bt, ot] = Wt(void 0), ht = f - c.left - c.right, j = H - c.top - c.bottom;
1388
- let y, _, tt, K, D, ft, Ct, nt, Vt, R, lt, E, P, pt;
1389
- if (t[8] !== u || t[9] !== U || t[10] !== z || t[11] !== Xt || t[12] !== n?.graphObjectValues || t[13] !== n?.xAxis?.gridLines || t[14] !== n?.xAxis?.labels || t[15] !== n?.xAxis?.title || t[16] !== n?.yAxis?.axis || t[17] !== n?.yAxis?.labels || t[18] !== d || t[19] !== x || t[20] !== m || t[21] !== M || t[22] !== j || t[23] !== ht || t[24] !== H || t[25] !== yt || t[26] !== G || t[27] !== c.bottom || t[28] !== c.left || t[29] !== c.top || t[30] !== Q || t[31] !== Tt || t[32] !== O || t[33] !== L || t[34] !== $ || t[35] !== a || t[36] !== w || t[37] !== ct || t[38] !== p || t[39] !== it || t[40] !== mt || t[41] !== Y || t[42] !== q || t[43] !== st || t[44] !== Nt || t[45] !== St || t[46] !== xt || t[47] !== s?.graphObjectValues || t[48] !== s?.xAxis?.gridLines || t[49] !== s?.xAxis?.labels || t[50] !== s?.xAxis?.title || t[51] !== s?.yAxis?.axis || t[52] !== s?.yAxis?.labels || t[53] !== X || t[54] !== Z || t[55] !== N || t[56] !== S || t[57] !== f) {
1390
- let rt;
1391
- t[72] !== G ? (rt = (I, v) => ({
1392
- ...I,
1393
- id: G ? `${I.label}` : `${v}`
1394
- }), t[72] = G, t[73] = rt) : rt = t[73];
1395
- const It = m.map(rt), Et = G || It.map(Ss), k = Le().domain([0, Tt]).range([0, ht]).nice(), Rt = ge().domain(Et).range([0, O ? Math.max(j, O * Et.length) : Q ? Math.min(j, Q * Et.length) : j]).paddingInner(Xt), Mt = k.ticks(a);
1396
- _ = Zt.svg, Ct = Yt, nt = `${f}px`, Vt = `${H}px`, R = `0 0 ${f} ${H}`, lt = "ltr", tt = `translate(${c.left},${c.top})`, K = St ? /* @__PURE__ */ i.jsx(Fe, { values: Mt.filter(Is), x: Mt.filter(Ts).map((I) => k(I)), y1: 0 - Z, y2: j + c.bottom, styles: {
1386
+ }, t[3] = U, t[4] = ct, t[5] = Ft, t[6] = Bt, t[7] = r) : r = t[7];
1387
+ const c = r, [B, h] = Wt(void 0), [V, S] = Wt(void 0), [A, Lt] = Wt(void 0), [bt, st] = Wt(void 0), mt = y - c.left - c.right, L = P - c.top - c.bottom;
1388
+ let g, Z, _, J, j, ht, kt, ot, Ct, G, nt, X, ft, pt;
1389
+ if (t[8] !== u || t[9] !== q || t[10] !== D || t[11] !== Xt || t[12] !== n?.graphObjectValues || t[13] !== n?.xAxis?.gridLines || t[14] !== n?.xAxis?.labels || t[15] !== n?.xAxis?.title || t[16] !== n?.yAxis?.axis || t[17] !== n?.yAxis?.labels || t[18] !== d || t[19] !== x || t[20] !== m || t[21] !== O || t[22] !== L || t[23] !== mt || t[24] !== P || t[25] !== yt || t[26] !== Y || t[27] !== c.bottom || t[28] !== c.left || t[29] !== c.top || t[30] !== K || t[31] !== Tt || t[32] !== R || t[33] !== V || t[34] !== $ || t[35] !== a || t[36] !== w || t[37] !== rt || t[38] !== f || t[39] !== et || t[40] !== xt || t[41] !== H || t[42] !== W || t[43] !== it || t[44] !== zt || t[45] !== St || t[46] !== dt || t[47] !== s?.graphObjectValues || t[48] !== s?.xAxis?.gridLines || t[49] !== s?.xAxis?.labels || t[50] !== s?.xAxis?.title || t[51] !== s?.yAxis?.axis || t[52] !== s?.yAxis?.labels || t[53] !== F || t[54] !== Q || t[55] !== T || t[56] !== I || t[57] !== y) {
1390
+ let at;
1391
+ t[72] !== Y ? (at = (N, v) => ({
1392
+ ...N,
1393
+ id: Y ? `${N.label}` : `${v}`
1394
+ }), t[72] = Y, t[73] = at) : at = t[73];
1395
+ const It = m.map(at), Et = Y || It.map(Ss), M = Le().domain([0, Tt]).range([0, mt]).nice(), qt = ge().domain(Et).range([0, R ? Math.max(L, R * Et.length) : K ? Math.min(L, K * Et.length) : L]).paddingInner(Xt), Nt = M.ticks(a);
1396
+ Z = Zt.svg, kt = Yt, ot = `${y}px`, Ct = `${P}px`, G = `0 0 ${y} ${P}`, nt = "ltr", _ = `translate(${c.left},${c.top})`, J = St ? /* @__PURE__ */ i.jsx(Fe, { values: Nt.filter(Is), x: Nt.filter(Ts).map((N) => M(N)), y1: 0 - Q, y2: L + c.bottom, styles: {
1397
1397
  gridLines: s?.xAxis?.gridLines,
1398
1398
  labels: s?.xAxis?.labels
1399
1399
  }, classNames: {
1400
1400
  gridLines: n?.xAxis?.gridLines,
1401
1401
  labels: n?.xAxis?.labels
1402
- }, suffix: X, prefix: it, labelType: "secondary", showGridLines: !0, precision: p }) : null;
1403
- const Kt = ht / 2, Dt = 0 - c.top + 15, Qt = s?.xAxis?.title, Ut = n?.xAxis?.title;
1404
- t[74] !== U || t[75] !== Kt || t[76] !== Dt || t[77] !== Qt || t[78] !== Ut ? (D = /* @__PURE__ */ i.jsx(Ce, { x: Kt, y: Dt, style: Qt, className: Ut, text: U }), t[74] = U, t[75] = Kt, t[76] = Dt, t[77] = Qt, t[78] = Ut, t[79] = D) : D = t[79], t[80] !== x ? (ft = x.filter(Ns).map(zs), t[80] = x, t[81] = ft) : ft = t[81], y = je, E = It.map((I) => _t(Rt(I.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
1402
+ }, suffix: F, prefix: et, labelType: "secondary", showGridLines: !0, precision: f }) : null;
1403
+ const Kt = mt / 2, jt = 0 - c.top + 15, Qt = s?.xAxis?.title, Ut = n?.xAxis?.title;
1404
+ t[74] !== q || t[75] !== Kt || t[76] !== jt || t[77] !== Qt || t[78] !== Ut ? (j = /* @__PURE__ */ i.jsx(Ce, { x: Kt, y: jt, style: Qt, className: Ut, text: q }), t[74] = q, t[75] = Kt, t[76] = jt, t[77] = Qt, t[78] = Ut, t[79] = j) : j = t[79], t[80] !== x ? (ht = x.filter(Ns).map(zs), t[80] = x, t[81] = ht) : ht = t[81], g = je, X = It.map((N) => _t(qt(N.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
1405
1405
  initial: {
1406
1406
  x: 0,
1407
- y: Rt(`${I.id}`)
1407
+ y: qt(`${N.id}`)
1408
1408
  },
1409
1409
  whileInView: {
1410
1410
  x: 0,
1411
- y: Rt(`${I.id}`),
1411
+ y: qt(`${N.id}`),
1412
1412
  transition: {
1413
1413
  duration: u.duration
1414
1414
  }
@@ -1419,57 +1419,57 @@ function Cs(e) {
1419
1419
  duration: u.duration
1420
1420
  }
1421
1421
  }, children: [
1422
- I.size.map((v, C) => /* @__PURE__ */ i.jsxs(Zt.g, { opacity: st ? z[C] === st ? 1 : 0.3 : 1, onMouseEnter: (o) => {
1422
+ N.size.map((v, k) => /* @__PURE__ */ i.jsxs(Zt.g, { opacity: it ? D[k] === it ? 1 : 0.3 : 1, onMouseEnter: (o) => {
1423
1423
  h({
1424
- ...I,
1425
- sizeIndex: C
1426
- }), ot(o.clientY), jt(o.clientX), ct?.({
1427
- ...I,
1428
- sizeIndex: C
1424
+ ...N,
1425
+ sizeIndex: k
1426
+ }), st(o.clientY), Lt(o.clientX), rt?.({
1427
+ ...N,
1428
+ sizeIndex: k
1429
1429
  });
1430
1430
  }, onMouseMove: (o) => {
1431
1431
  h({
1432
- ...I,
1433
- sizeIndex: C
1434
- }), ot(o.clientY), jt(o.clientX);
1432
+ ...N,
1433
+ sizeIndex: k
1434
+ }), st(o.clientY), Lt(o.clientX);
1435
1435
  }, onMouseLeave: () => {
1436
- h(void 0), jt(void 0), ot(void 0), ct?.(void 0);
1436
+ h(void 0), Lt(void 0), st(void 0), rt?.(void 0);
1437
1437
  }, onClick: () => {
1438
- (w || M) && (Ae(L, {
1439
- ...I,
1440
- sizeIndex: C
1441
- }) && Y ? (B(void 0), w?.(void 0)) : (B({
1442
- ...I,
1443
- sizeIndex: C
1438
+ (w || O) && (Ae(V, {
1439
+ ...N,
1440
+ sizeIndex: k
1441
+ }) && H ? (S(void 0), w?.(void 0)) : (S({
1442
+ ...N,
1443
+ sizeIndex: k
1444
1444
  }), w && w({
1445
- ...I,
1446
- sizeIndex: C
1445
+ ...N,
1446
+ sizeIndex: k
1447
1447
  })));
1448
1448
  }, children: [
1449
1449
  v ? /* @__PURE__ */ i.jsx(Zt.rect, { y: 0, style: {
1450
- fill: z[C]
1451
- }, height: Rt.bandwidth(), exit: {
1450
+ fill: D[k]
1451
+ }, height: qt.bandwidth(), exit: {
1452
1452
  width: 0,
1453
- x: k(0),
1453
+ x: M(0),
1454
1454
  transition: {
1455
1455
  duration: u.duration
1456
1456
  }
1457
1457
  }, variants: {
1458
1458
  initial: {
1459
1459
  width: 0,
1460
- x: k(0),
1461
- fill: z[C]
1460
+ x: M(0),
1461
+ fill: D[k]
1462
1462
  },
1463
1463
  whileInView: {
1464
- width: k(v || 0),
1465
- x: k(C === 0 ? 0 : ne(I.size.filter((o, g) => g < C && o))),
1466
- fill: z[C],
1464
+ width: M(v || 0),
1465
+ x: M(k === 0 ? 0 : ne(N.size.filter((o, p) => p < k && o))),
1466
+ fill: D[k],
1467
1467
  transition: {
1468
1468
  duration: u.duration
1469
1469
  }
1470
1470
  }
1471
- }, initial: "initial", animate: yt ? "whileInView" : "initial" }, C) : null,
1472
- xt ? /* @__PURE__ */ i.jsx(Zt.text, { y: Rt.bandwidth() / 2, style: {
1471
+ }, initial: "initial", animate: yt ? "whileInView" : "initial" }, k) : null,
1472
+ dt ? /* @__PURE__ */ i.jsx(Zt.text, { y: qt.bandwidth() / 2, style: {
1473
1473
  textAnchor: "middle",
1474
1474
  ...s?.graphObjectValues || {}
1475
1475
  }, dy: "0.33em", className: pe("graph-value text-sm", n?.graphObjectValues), exit: {
@@ -1479,40 +1479,40 @@ function Cs(e) {
1479
1479
  }
1480
1480
  }, variants: {
1481
1481
  initial: {
1482
- x: k(0),
1482
+ x: M(0),
1483
1483
  opacity: 0,
1484
- fill: Te(z[C])
1484
+ fill: Te(D[k])
1485
1485
  },
1486
1486
  whileInView: {
1487
- x: k(C === 0 ? 0 : ne(I.size.filter((o, g) => g < C && o))) + k(v || 0) / 2,
1488
- opacity: v && k(v) / ue(v, $, p, it, X).length > 12 ? 1 : 0,
1489
- fill: Te(z[C]),
1487
+ x: M(k === 0 ? 0 : ne(N.size.filter((o, p) => p < k && o))) + M(v || 0) / 2,
1488
+ opacity: v && M(v) / ue(v, $, f, et, F).length > 12 ? 1 : 0,
1489
+ fill: Te(D[k]),
1490
1490
  transition: {
1491
1491
  duration: u.duration
1492
1492
  }
1493
1493
  }
1494
- }, initial: "initial", animate: yt ? "whileInView" : "initial", children: ue(v, $, p, it, X) }) : null
1495
- ] }, `${I.label}-${d[C] || C}`)),
1496
- Nt ? /* @__PURE__ */ i.jsx(Pe, { value: `${I.label}`.length < N ? `${I.label}` : `${`${I.label}`.substring(0, N)}...`, y: 0, x: 0 - c.left, width: 0 + c.left, height: Rt.bandwidth(), style: s?.yAxis?.labels, className: n?.yAxis?.labels, animate: u, isInView: yt }) : null,
1497
- xt ? /* @__PURE__ */ i.jsx(Zt.text, { className: pe("graph-value graph-value-total text-sm", S ? "" : " fill-primary-gray-700 dark:fill-primary-gray-300", n?.graphObjectValues), style: {
1498
- ...S ? {
1499
- fill: S
1494
+ }, initial: "initial", animate: yt ? "whileInView" : "initial", children: ue(v, $, f, et, F) }) : null
1495
+ ] }, `${N.label}-${d[k] || k}`)),
1496
+ zt ? /* @__PURE__ */ i.jsx(Pe, { value: `${N.label}`.length < T ? `${N.label}` : `${`${N.label}`.substring(0, T)}...`, y: 0, x: 0 - c.left, width: 0 + c.left, height: qt.bandwidth(), style: s?.yAxis?.labels, className: n?.yAxis?.labels, animate: u, isInView: yt }) : null,
1497
+ dt ? /* @__PURE__ */ i.jsx(Zt.text, { className: pe("graph-value graph-value-total text-sm", I ? "" : " fill-primary-gray-700 dark:fill-primary-gray-300", n?.graphObjectValues), style: {
1498
+ ...I ? {
1499
+ fill: I
1500
1500
  } : {},
1501
1501
  textAnchor: "start",
1502
1502
  ...s?.graphObjectValues || {}
1503
- }, y: Rt.bandwidth() / 2, dx: 5, dy: "0.33em", variants: {
1503
+ }, y: qt.bandwidth() / 2, dx: 5, dy: "0.33em", variants: {
1504
1504
  initial: {
1505
- x: k(0),
1505
+ x: M(0),
1506
1506
  opacity: 0,
1507
- ...S ? {
1508
- fill: S
1507
+ ...I ? {
1508
+ fill: I
1509
1509
  } : {}
1510
1510
  },
1511
1511
  whileInView: {
1512
- x: k(ne(I.size.map(Ds))),
1512
+ x: M(ne(N.size.map(Ds))),
1513
1513
  opacity: 1,
1514
- ...S ? {
1515
- fill: S
1514
+ ...I ? {
1515
+ fill: I
1516
1516
  } : {},
1517
1517
  transition: {
1518
1518
  duration: u.duration
@@ -1523,46 +1523,46 @@ function Cs(e) {
1523
1523
  transition: {
1524
1524
  duration: u.duration
1525
1525
  }
1526
- }, initial: "initial", animate: yt ? "whileInView" : "initial", children: ue(ne(I.size.filter(js)), $, p, it, X) }) : null
1527
- ] }, I.label));
1526
+ }, initial: "initial", animate: yt ? "whileInView" : "initial", children: ue(ne(N.size.filter(js)), $, f, et, F) }) : null
1527
+ ] }, N.label));
1528
1528
  const Ht = n?.yAxis?.axis;
1529
- let kt;
1530
- t[82] !== Ht ? (kt = {
1529
+ let Mt;
1530
+ t[82] !== Ht ? (Mt = {
1531
1531
  axis: Ht
1532
- }, t[82] = Ht, t[83] = kt) : kt = t[83];
1533
- const qt = s?.yAxis?.axis;
1532
+ }, t[82] = Ht, t[83] = Mt) : Mt = t[83];
1533
+ const Rt = s?.yAxis?.axis;
1534
1534
  let Jt;
1535
- t[84] !== qt ? (Jt = {
1536
- axis: qt
1537
- }, t[84] = qt, t[85] = Jt) : Jt = t[85], P = /* @__PURE__ */ i.jsx(ke, { x1: k(0), x2: k(0), y1: -2.5, y2: j + c.bottom, classNames: kt, styles: Jt }), pt = mt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: mt.map((I, v) => /* @__PURE__ */ i.jsx(He, { text: I.text, color: I.color, x: k(I.value), y1: 0 - c.top, y2: j + c.bottom, textSide: k(I.value) > ht * 0.75 || q ? "left" : "right", classNames: I.classNames, styles: I.styles, animate: u, isInView: yt }, v)) }) : null, t[8] = u, t[9] = U, t[10] = z, t[11] = Xt, t[12] = n?.graphObjectValues, t[13] = n?.xAxis?.gridLines, t[14] = n?.xAxis?.labels, t[15] = n?.xAxis?.title, t[16] = n?.yAxis?.axis, t[17] = n?.yAxis?.labels, t[18] = d, t[19] = x, t[20] = m, t[21] = M, t[22] = j, t[23] = ht, t[24] = H, t[25] = yt, t[26] = G, t[27] = c.bottom, t[28] = c.left, t[29] = c.top, t[30] = Q, t[31] = Tt, t[32] = O, t[33] = L, t[34] = $, t[35] = a, t[36] = w, t[37] = ct, t[38] = p, t[39] = it, t[40] = mt, t[41] = Y, t[42] = q, t[43] = st, t[44] = Nt, t[45] = St, t[46] = xt, t[47] = s?.graphObjectValues, t[48] = s?.xAxis?.gridLines, t[49] = s?.xAxis?.labels, t[50] = s?.xAxis?.title, t[51] = s?.yAxis?.axis, t[52] = s?.yAxis?.labels, t[53] = X, t[54] = Z, t[55] = N, t[56] = S, t[57] = f, t[58] = y, t[59] = _, t[60] = tt, t[61] = K, t[62] = D, t[63] = ft, t[64] = Ct, t[65] = nt, t[66] = Vt, t[67] = R, t[68] = lt, t[69] = E, t[70] = P, t[71] = pt;
1535
+ t[84] !== Rt ? (Jt = {
1536
+ axis: Rt
1537
+ }, t[84] = Rt, t[85] = Jt) : Jt = t[85], ft = /* @__PURE__ */ i.jsx(ke, { x1: M(0), x2: M(0), y1: -2.5, y2: L + c.bottom, classNames: Mt, styles: Jt }), pt = xt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: xt.map((N, v) => /* @__PURE__ */ i.jsx(He, { text: N.text, color: N.color, x: M(N.value), y1: 0 - c.top, y2: L + c.bottom, textSide: M(N.value) > mt * 0.75 || W ? "left" : "right", classNames: N.classNames, styles: N.styles, animate: u, isInView: yt }, v)) }) : null, t[8] = u, t[9] = q, t[10] = D, t[11] = Xt, t[12] = n?.graphObjectValues, t[13] = n?.xAxis?.gridLines, t[14] = n?.xAxis?.labels, t[15] = n?.xAxis?.title, t[16] = n?.yAxis?.axis, t[17] = n?.yAxis?.labels, t[18] = d, t[19] = x, t[20] = m, t[21] = O, t[22] = L, t[23] = mt, t[24] = P, t[25] = yt, t[26] = Y, t[27] = c.bottom, t[28] = c.left, t[29] = c.top, t[30] = K, t[31] = Tt, t[32] = R, t[33] = V, t[34] = $, t[35] = a, t[36] = w, t[37] = rt, t[38] = f, t[39] = et, t[40] = xt, t[41] = H, t[42] = W, t[43] = it, t[44] = zt, t[45] = St, t[46] = dt, t[47] = s?.graphObjectValues, t[48] = s?.xAxis?.gridLines, t[49] = s?.xAxis?.labels, t[50] = s?.xAxis?.title, t[51] = s?.yAxis?.axis, t[52] = s?.yAxis?.labels, t[53] = F, t[54] = Q, t[55] = T, t[56] = I, t[57] = y, t[58] = g, t[59] = Z, t[60] = _, t[61] = J, t[62] = j, t[63] = ht, t[64] = kt, t[65] = ot, t[66] = Ct, t[67] = G, t[68] = nt, t[69] = X, t[70] = ft, t[71] = pt;
1538
1538
  } else
1539
- y = t[58], _ = t[59], tt = t[60], K = t[61], D = t[62], ft = t[63], Ct = t[64], nt = t[65], Vt = t[66], R = t[67], lt = t[68], E = t[69], P = t[70], pt = t[71];
1539
+ g = t[58], Z = t[59], _ = t[60], J = t[61], j = t[62], ht = t[63], kt = t[64], ot = t[65], Ct = t[66], G = t[67], nt = t[68], X = t[69], ft = t[70], pt = t[71];
1540
1540
  let vt;
1541
- t[86] !== y || t[87] !== E || t[88] !== P || t[89] !== pt ? (vt = /* @__PURE__ */ i.jsxs(y, { children: [
1542
- E,
1543
- P,
1541
+ t[86] !== g || t[87] !== X || t[88] !== ft || t[89] !== pt ? (vt = /* @__PURE__ */ i.jsxs(g, { children: [
1542
+ X,
1543
+ ft,
1544
1544
  pt
1545
- ] }), t[86] = y, t[87] = E, t[88] = P, t[89] = pt, t[90] = vt) : vt = t[90];
1545
+ ] }), t[86] = g, t[87] = X, t[88] = ft, t[89] = pt, t[90] = vt) : vt = t[90];
1546
1546
  let wt;
1547
1547
  t[91] !== x ? (wt = x.filter(Ls).map(Vs), t[91] = x, t[92] = wt) : wt = t[92];
1548
- let at;
1549
- t[93] !== tt || t[94] !== K || t[95] !== D || t[96] !== ft || t[97] !== vt || t[98] !== wt ? (at = /* @__PURE__ */ i.jsxs("g", { transform: tt, children: [
1550
- K,
1551
- D,
1552
- ft,
1548
+ let lt;
1549
+ t[93] !== _ || t[94] !== J || t[95] !== j || t[96] !== ht || t[97] !== vt || t[98] !== wt ? (lt = /* @__PURE__ */ i.jsxs("g", { transform: _, children: [
1550
+ J,
1551
+ j,
1552
+ ht,
1553
1553
  vt,
1554
1554
  wt
1555
- ] }), t[93] = tt, t[94] = K, t[95] = D, t[96] = ft, t[97] = vt, t[98] = wt, t[99] = at) : at = t[99];
1555
+ ] }), t[93] = _, t[94] = J, t[95] = j, t[96] = ht, t[97] = vt, t[98] = wt, t[99] = lt) : lt = t[99];
1556
1556
  let At;
1557
- t[100] !== _ || t[101] !== Ct || t[102] !== nt || t[103] !== Vt || t[104] !== R || t[105] !== lt || t[106] !== at ? (At = /* @__PURE__ */ i.jsx(_, { ref: Ct, width: nt, height: Vt, viewBox: R, direction: lt, children: at }), t[100] = _, t[101] = Ct, t[102] = nt, t[103] = Vt, t[104] = R, t[105] = lt, t[106] = at, t[107] = At) : At = t[107];
1557
+ t[100] !== Z || t[101] !== kt || t[102] !== ot || t[103] !== Ct || t[104] !== G || t[105] !== nt || t[106] !== lt ? (At = /* @__PURE__ */ i.jsx(Z, { ref: kt, width: ot, height: Ct, viewBox: G, direction: nt, children: lt }), t[100] = Z, t[101] = kt, t[102] = ot, t[103] = Ct, t[104] = G, t[105] = nt, t[106] = lt, t[107] = At) : At = t[107];
1558
1558
  let $t;
1559
- t[108] !== n?.tooltip || t[109] !== A || t[110] !== bt || t[111] !== F || t[112] !== s?.tooltip || t[113] !== zt ? ($t = F && zt && A && bt ? /* @__PURE__ */ i.jsx(Oe, { data: F, body: zt, xPos: A, yPos: bt, backgroundStyle: s?.tooltip, className: n?.tooltip }) : null, t[108] = n?.tooltip, t[109] = A, t[110] = bt, t[111] = F, t[112] = s?.tooltip, t[113] = zt, t[114] = $t) : $t = t[114];
1559
+ t[108] !== n?.tooltip || t[109] !== A || t[110] !== bt || t[111] !== B || t[112] !== s?.tooltip || t[113] !== Dt ? ($t = B && Dt && A && bt ? /* @__PURE__ */ i.jsx(Oe, { data: B, body: Dt, xPos: A, yPos: bt, backgroundStyle: s?.tooltip, className: n?.tooltip }) : null, t[108] = n?.tooltip, t[109] = A, t[110] = bt, t[111] = B, t[112] = s?.tooltip, t[113] = Dt, t[114] = $t) : $t = t[114];
1560
1560
  let Ot;
1561
- t[115] !== M || t[116] !== L ? (Ot = M && L !== void 0 ? /* @__PURE__ */ i.jsx($e, { open: L !== void 0, onClose: () => {
1562
- B(void 0);
1563
- }, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof M == "string" ? {
1564
- __html: Me(M, L)
1565
- } : void 0, children: typeof M == "function" ? M(L) : null }) }) : null, t[115] = M, t[116] = L, t[117] = Ot) : Ot = t[117];
1561
+ t[115] !== O || t[116] !== V ? (Ot = O && V !== void 0 ? /* @__PURE__ */ i.jsx($e, { open: V !== void 0, onClose: () => {
1562
+ S(void 0);
1563
+ }, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof O == "string" ? {
1564
+ __html: Me(O, V)
1565
+ } : void 0, children: typeof O == "function" ? O(V) : null }) }) : null, t[115] = O, t[116] = V, t[117] = Ot) : Ot = t[117];
1566
1566
  let b;
1567
1567
  return t[118] !== At || t[119] !== $t || t[120] !== Ot ? (b = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1568
1568
  At,
@@ -1600,100 +1600,100 @@ function Ss(e) {
1600
1600
  function Bs(e) {
1601
1601
  const t = xe.c(129), {
1602
1602
  data: m,
1603
- leftMargin: z,
1603
+ leftMargin: D,
1604
1604
  rightMargin: Xt,
1605
1605
  topMargin: St,
1606
1606
  bottomMargin: gt,
1607
- width: et,
1608
- height: dt,
1609
- barColors: V,
1610
- barPadding: N,
1611
- showLabels: f,
1612
- showTicks: H,
1613
- truncateBy: zt,
1614
- tooltip: ct,
1615
- onSeriesMouseOver: Nt,
1616
- suffix: X,
1617
- prefix: it,
1618
- showValues: xt,
1619
- refValues: mt,
1607
+ width: tt,
1608
+ height: ut,
1609
+ barColors: C,
1610
+ barPadding: T,
1611
+ showLabels: y,
1612
+ showTicks: P,
1613
+ truncateBy: Dt,
1614
+ tooltip: rt,
1615
+ onSeriesMouseOver: zt,
1616
+ suffix: F,
1617
+ prefix: et,
1618
+ showValues: dt,
1619
+ refValues: xt,
1620
1620
  maxValue: Tt,
1621
1621
  onSeriesMouseClick: w,
1622
- selectedColor: st,
1623
- labelOrder: q,
1624
- maxBarThickness: G,
1625
- minBarThickness: Q,
1626
- resetSelectionOnDoubleClick: O,
1627
- detailsOnClick: Y,
1628
- barAxisTitle: M,
1629
- valueColor: U,
1630
- noOfTicks: S,
1622
+ selectedColor: it,
1623
+ labelOrder: W,
1624
+ maxBarThickness: Y,
1625
+ minBarThickness: K,
1626
+ resetSelectionOnDoubleClick: R,
1627
+ detailsOnClick: H,
1628
+ barAxisTitle: O,
1629
+ valueColor: q,
1630
+ noOfTicks: I,
1631
1631
  styles: a,
1632
1632
  classNames: s,
1633
1633
  animate: n,
1634
1634
  colorDomain: u,
1635
1635
  precision: d,
1636
- customLayers: p,
1636
+ customLayers: f,
1637
1637
  naLabel: x
1638
- } = e, $ = z === void 0 ? 20 : z, Z = Xt === void 0 ? 20 : Xt, J = St === void 0 ? 20 : St, ut = gt === void 0 ? 25 : gt, Ft = de(null);
1638
+ } = e, $ = D === void 0 ? 20 : D, Q = Xt === void 0 ? 20 : Xt, U = St === void 0 ? 20 : St, ct = gt === void 0 ? 25 : gt, Ft = de(null);
1639
1639
  let Yt;
1640
1640
  t[0] !== n.amount || t[1] !== n.once ? (Yt = {
1641
1641
  once: n.once,
1642
1642
  amount: n.amount
1643
1643
  }, t[0] = n.amount, t[1] = n.once, t[2] = Yt) : Yt = t[2];
1644
- const W = Ve(Ft, Yt), yt = M ? $ + 30 : $;
1644
+ const E = Ve(Ft, Yt), yt = O ? $ + 30 : $;
1645
1645
  let Bt;
1646
- t[3] !== ut || t[4] !== Z || t[5] !== yt || t[6] !== J ? (Bt = {
1647
- top: J,
1648
- bottom: ut,
1646
+ t[3] !== ct || t[4] !== Q || t[5] !== yt || t[6] !== U ? (Bt = {
1647
+ top: U,
1648
+ bottom: ct,
1649
1649
  left: yt,
1650
- right: Z
1651
- }, t[3] = ut, t[4] = Z, t[5] = yt, t[6] = J, t[7] = Bt) : Bt = t[7];
1652
- const r = Bt, [c, F] = Wt(void 0), [h, L] = Wt(void 0), [B, A] = Wt(void 0), [jt, bt] = Wt(void 0), ot = et - r.left - r.right, ht = dt - r.top - r.bottom;
1653
- let j, y, _, tt, K, D, ft, Ct, nt, Vt, R, lt, E, P;
1654
- if (t[8] !== n || t[9] !== M || t[10] !== V || t[11] !== N || t[12] !== s?.graphObjectValues || t[13] !== s?.xAxis?.axis || t[14] !== s?.xAxis?.labels || t[15] !== s?.yAxis?.gridLines || t[16] !== s?.yAxis?.labels || t[17] !== s?.yAxis?.title || t[18] !== u || t[19] !== p || t[20] !== m || t[21] !== Y || t[22] !== ht || t[23] !== ot || t[24] !== dt || t[25] !== W || t[26] !== q || t[27] !== $ || t[28] !== r.bottom || t[29] !== r.left || t[30] !== r.right || t[31] !== r.top || t[32] !== G || t[33] !== Tt || t[34] !== Q || t[35] !== h || t[36] !== x || t[37] !== S || t[38] !== w || t[39] !== Nt || t[40] !== d || t[41] !== it || t[42] !== mt || t[43] !== O || t[44] !== st || t[45] !== f || t[46] !== H || t[47] !== xt || t[48] !== a?.graphObjectValues || t[49] !== a?.xAxis?.axis || t[50] !== a?.xAxis?.labels || t[51] !== a?.yAxis?.gridLines || t[52] !== a?.yAxis?.labels || t[53] !== a?.yAxis?.title || t[54] !== X || t[55] !== zt || t[56] !== U || t[57] !== et) {
1655
- const b = Le().domain([0, Tt]).range([ht, 0]).nice();
1656
- let rt;
1657
- t[72] !== q ? (rt = (g, ee) => ({
1658
- ...g,
1659
- id: q ? `${g.label}` : `${ee}`
1660
- }), t[72] = q, t[73] = rt) : rt = t[73];
1661
- const It = m.map(rt), Et = q || It.map(Rs), k = ge().domain(Et).range([0, Q ? Math.max(ot, Q * Et.length) : G ? Math.min(ot, G * Et.length) : ot]).paddingInner(N), Rt = b.ticks(S);
1662
- y = Zt.svg, ft = `${et}px`, Ct = `${dt}px`, nt = `0 0 ${et} ${dt}`, Vt = "ltr", R = Ft, P = `translate(${r.left},${r.top})`;
1663
- const Mt = b(0), Kt = b(0);
1664
- let Dt;
1665
- t[74] !== x || t[75] !== d || t[76] !== it || t[77] !== X ? (Dt = ue(0, x, d, it, X), t[74] = x, t[75] = d, t[76] = it, t[77] = X, t[78] = Dt) : Dt = t[78];
1650
+ right: Q
1651
+ }, t[3] = ct, t[4] = Q, t[5] = yt, t[6] = U, t[7] = Bt) : Bt = t[7];
1652
+ const r = Bt, [c, B] = Wt(void 0), [h, V] = Wt(void 0), [S, A] = Wt(void 0), [Lt, bt] = Wt(void 0), st = tt - r.left - r.right, mt = ut - r.top - r.bottom;
1653
+ let L, g, Z, _, J, j, ht, kt, ot, Ct, G, nt, X, ft;
1654
+ if (t[8] !== n || t[9] !== O || t[10] !== C || t[11] !== T || t[12] !== s?.graphObjectValues || t[13] !== s?.xAxis?.axis || t[14] !== s?.xAxis?.labels || t[15] !== s?.yAxis?.gridLines || t[16] !== s?.yAxis?.labels || t[17] !== s?.yAxis?.title || t[18] !== u || t[19] !== f || t[20] !== m || t[21] !== H || t[22] !== mt || t[23] !== st || t[24] !== ut || t[25] !== E || t[26] !== W || t[27] !== $ || t[28] !== r.bottom || t[29] !== r.left || t[30] !== r.right || t[31] !== r.top || t[32] !== Y || t[33] !== Tt || t[34] !== K || t[35] !== h || t[36] !== x || t[37] !== I || t[38] !== w || t[39] !== zt || t[40] !== d || t[41] !== et || t[42] !== xt || t[43] !== R || t[44] !== it || t[45] !== y || t[46] !== P || t[47] !== dt || t[48] !== a?.graphObjectValues || t[49] !== a?.xAxis?.axis || t[50] !== a?.xAxis?.labels || t[51] !== a?.yAxis?.gridLines || t[52] !== a?.yAxis?.labels || t[53] !== a?.yAxis?.title || t[54] !== F || t[55] !== Dt || t[56] !== q || t[57] !== tt) {
1655
+ const b = Le().domain([0, Tt]).range([mt, 0]).nice();
1656
+ let at;
1657
+ t[72] !== W ? (at = (p, ee) => ({
1658
+ ...p,
1659
+ id: W ? `${p.label}` : `${ee}`
1660
+ }), t[72] = W, t[73] = at) : at = t[73];
1661
+ const It = m.map(at), Et = W || It.map(Rs), M = ge().domain(Et).range([0, K ? Math.max(st, K * Et.length) : Y ? Math.min(st, Y * Et.length) : st]).paddingInner(T), qt = b.ticks(I);
1662
+ g = Zt.svg, ht = `${tt}px`, kt = `${ut}px`, ot = `0 0 ${tt} ${ut}`, Ct = "ltr", G = Ft, ft = `translate(${r.left},${r.top})`;
1663
+ const Nt = b(0), Kt = b(0);
1664
+ let jt;
1665
+ t[74] !== x || t[75] !== d || t[76] !== et || t[77] !== F ? (jt = ue(0, x, d, et, F), t[74] = x, t[75] = d, t[76] = et, t[77] = F, t[78] = jt) : jt = t[78];
1666
1666
  const Qt = s?.xAxis?.axis, Ut = s?.yAxis?.labels;
1667
1667
  let Ht;
1668
1668
  t[79] !== Qt || t[80] !== Ut ? (Ht = {
1669
1669
  axis: Qt,
1670
1670
  label: Ut
1671
1671
  }, t[79] = Qt, t[80] = Ut, t[81] = Ht) : Ht = t[81];
1672
- const kt = a?.xAxis?.axis, qt = a?.yAxis?.labels;
1672
+ const Mt = a?.xAxis?.axis, Rt = a?.yAxis?.labels;
1673
1673
  let Jt;
1674
- t[82] !== kt || t[83] !== qt ? (Jt = {
1675
- axis: kt,
1676
- label: qt
1677
- }, t[82] = kt, t[83] = qt, t[84] = Jt) : Jt = t[84], _ = /* @__PURE__ */ i.jsx(ke, { y1: Mt, y2: Kt, x1: 0 - $, x2: ot + r.right, label: Dt, labelPos: {
1674
+ t[82] !== Mt || t[83] !== Rt ? (Jt = {
1675
+ axis: Mt,
1676
+ label: Rt
1677
+ }, t[82] = Mt, t[83] = Rt, t[84] = Jt) : Jt = t[84], Z = /* @__PURE__ */ i.jsx(ke, { y1: Nt, y2: Kt, x1: 0 - $, x2: st + r.right, label: jt, labelPos: {
1678
1678
  x: 0 - $,
1679
1679
  y: b(0),
1680
1680
  dx: 0,
1681
1681
  dy: -5
1682
- }, classNames: Ht, styles: Jt }), tt = H ? /* @__PURE__ */ i.jsx(Ye, { values: Rt.filter(Ws), y: Rt.filter(Gs).map((g) => b(g)), x1: 0 - $, x2: ot + r.right, styles: {
1682
+ }, classNames: Ht, styles: Jt }), _ = P ? /* @__PURE__ */ i.jsx(Ye, { values: qt.filter(Ws), y: qt.filter(Gs).map((p) => b(p)), x1: 0 - $, x2: st + r.right, styles: {
1683
1683
  gridLines: a?.yAxis?.gridLines,
1684
1684
  labels: a?.yAxis?.labels
1685
1685
  }, classNames: {
1686
1686
  gridLines: s?.yAxis?.gridLines,
1687
1687
  labels: s?.yAxis?.labels
1688
- }, suffix: X, prefix: it, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: d }) : null;
1689
- const I = 0 - $ - 15, v = ht / 2, C = a?.yAxis?.title, o = s?.yAxis?.title;
1690
- t[85] !== M || t[86] !== I || t[87] !== v || t[88] !== C || t[89] !== o ? (K = /* @__PURE__ */ i.jsx(Ce, { x: I, y: v, style: C, className: o, text: M, rotate90: !0 }), t[85] = M, t[86] = I, t[87] = v, t[88] = C, t[89] = o, t[90] = K) : K = t[90], t[91] !== p ? (D = p.filter(Es).map(Ys), t[91] = p, t[92] = D) : D = t[92], j = je, lt = It.map((g) => _t(k(g.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
1688
+ }, suffix: F, prefix: et, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: d }) : null;
1689
+ const N = 0 - $ - 15, v = mt / 2, k = a?.yAxis?.title, o = s?.yAxis?.title;
1690
+ t[85] !== O || t[86] !== N || t[87] !== v || t[88] !== k || t[89] !== o ? (J = /* @__PURE__ */ i.jsx(Ce, { x: N, y: v, style: k, className: o, text: O, rotate90: !0 }), t[85] = O, t[86] = N, t[87] = v, t[88] = k, t[89] = o, t[90] = J) : J = t[90], t[91] !== f ? (j = f.filter(Es).map(Ys), t[91] = f, t[92] = j) : j = t[92], L = je, nt = It.map((p) => _t(M(p.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
1691
1691
  initial: {
1692
- x: k(`${g.id}`),
1692
+ x: M(`${p.id}`),
1693
1693
  y: 0
1694
1694
  },
1695
1695
  whileInView: {
1696
- x: k(`${g.id}`),
1696
+ x: M(`${p.id}`),
1697
1697
  y: 0,
1698
1698
  transition: {
1699
1699
  duration: n.duration
@@ -1701,101 +1701,101 @@ function Bs(e) {
1701
1701
  }
1702
1702
  }, transition: {
1703
1703
  duration: n.duration
1704
- }, initial: "initial", animate: W ? "whileInView" : "initial", exit: {
1704
+ }, initial: "initial", animate: E ? "whileInView" : "initial", exit: {
1705
1705
  opacity: 0,
1706
1706
  transition: {
1707
1707
  duration: n.duration
1708
1708
  }
1709
1709
  }, children: [
1710
- g.size.map((ee, T) => /* @__PURE__ */ i.jsxs(Zt.g, { opacity: st ? V[T] === st ? 1 : 0.3 : 1, onMouseEnter: (Lt) => {
1711
- F({
1712
- ...g,
1713
- sizeIndex: T
1714
- }), bt(Lt.clientY), A(Lt.clientX), Nt?.({
1715
- ...g,
1716
- sizeIndex: T
1710
+ p.size.map((ee, z) => /* @__PURE__ */ i.jsxs(Zt.g, { opacity: it ? C[z] === it ? 1 : 0.3 : 1, onMouseEnter: (Vt) => {
1711
+ B({
1712
+ ...p,
1713
+ sizeIndex: z
1714
+ }), bt(Vt.clientY), A(Vt.clientX), zt?.({
1715
+ ...p,
1716
+ sizeIndex: z
1717
1717
  });
1718
- }, onMouseMove: (Lt) => {
1719
- F({
1720
- ...g,
1721
- sizeIndex: T
1722
- }), bt(Lt.clientY), A(Lt.clientX);
1718
+ }, onMouseMove: (Vt) => {
1719
+ B({
1720
+ ...p,
1721
+ sizeIndex: z
1722
+ }), bt(Vt.clientY), A(Vt.clientX);
1723
1723
  }, onMouseLeave: () => {
1724
- F(void 0), A(void 0), bt(void 0), Nt?.(void 0);
1724
+ B(void 0), A(void 0), bt(void 0), zt?.(void 0);
1725
1725
  }, onClick: () => {
1726
- (w || Y) && (Ae(h, {
1727
- ...g,
1728
- sizeIndex: T
1729
- }) && O ? (L(void 0), w?.(void 0)) : (L({
1730
- ...g,
1731
- sizeIndex: T
1726
+ (w || H) && (Ae(h, {
1727
+ ...p,
1728
+ sizeIndex: z
1729
+ }) && R ? (V(void 0), w?.(void 0)) : (V({
1730
+ ...p,
1731
+ sizeIndex: z
1732
1732
  }), w && w({
1733
- ...g,
1734
- sizeIndex: T
1733
+ ...p,
1734
+ sizeIndex: z
1735
1735
  })));
1736
1736
  }, children: [
1737
- /* @__PURE__ */ i.jsx(Zt.rect, { x: 0, width: k.bandwidth(), variants: {
1737
+ /* @__PURE__ */ i.jsx(Zt.rect, { x: 0, width: M.bandwidth(), variants: {
1738
1738
  initial: {
1739
1739
  height: 0,
1740
- fill: V[T],
1740
+ fill: C[z],
1741
1741
  y: b(0)
1742
1742
  },
1743
1743
  whileInView: {
1744
- height: Math.abs(b(ne(g.size.filter((Lt, l) => l <= T && Lt))) - b(ne(g.size.filter((Lt, l) => l < T && Lt)))),
1745
- y: b(ne(g.size.filter((Lt, l) => l <= T && Lt))),
1746
- fill: V[T],
1744
+ height: Math.abs(b(ne(p.size.filter((Vt, l) => l <= z && Vt))) - b(ne(p.size.filter((Vt, l) => l < z && Vt)))),
1745
+ y: b(ne(p.size.filter((Vt, l) => l <= z && Vt))),
1746
+ fill: C[z],
1747
1747
  transition: {
1748
1748
  duration: n.duration
1749
1749
  }
1750
1750
  }
1751
- }, initial: "initial", animate: W ? "whileInView" : "initial", exit: {
1751
+ }, initial: "initial", animate: E ? "whileInView" : "initial", exit: {
1752
1752
  height: 0,
1753
1753
  y: b(0),
1754
1754
  transition: {
1755
1755
  duration: n.duration
1756
1756
  }
1757
1757
  } }),
1758
- xt ? /* @__PURE__ */ i.jsx(Zt.text, { x: k.bandwidth() / 2, style: {
1758
+ dt ? /* @__PURE__ */ i.jsx(Zt.text, { x: M.bandwidth() / 2, style: {
1759
1759
  textAnchor: "middle",
1760
1760
  ...a?.graphObjectValues || {}
1761
1761
  }, className: pe("graph-value text-sm", s?.graphObjectValues), dy: "0.33em", variants: {
1762
1762
  initial: {
1763
1763
  y: b(0),
1764
1764
  opacity: 0,
1765
- fill: Te(V[T])
1765
+ fill: Te(C[z])
1766
1766
  },
1767
1767
  whileInView: {
1768
- y: b(ne(g.size.filter((Lt, l) => l <= T && Lt))) + Math.abs(b(ne(g.size.filter((Lt, l) => l <= T && Lt))) - b(ne(g.size.filter((Lt, l) => l < T && Lt)))) / 2,
1769
- opacity: ee && Math.abs(b(ne(g.size.filter((Lt, l) => l <= T && Lt))) - b(ne(g.size.filter((Lt, l) => l < T && Lt)))) > 20 ? 1 : 0,
1770
- fill: Te(V[T]),
1768
+ y: b(ne(p.size.filter((Vt, l) => l <= z && Vt))) + Math.abs(b(ne(p.size.filter((Vt, l) => l <= z && Vt))) - b(ne(p.size.filter((Vt, l) => l < z && Vt)))) / 2,
1769
+ opacity: ee && Math.abs(b(ne(p.size.filter((Vt, l) => l <= z && Vt))) - b(ne(p.size.filter((Vt, l) => l < z && Vt)))) > 20 ? 1 : 0,
1770
+ fill: Te(C[z]),
1771
1771
  transition: {
1772
1772
  duration: n.duration
1773
1773
  }
1774
1774
  }
1775
- }, initial: "initial", animate: W ? "whileInView" : "initial", exit: {
1775
+ }, initial: "initial", animate: E ? "whileInView" : "initial", exit: {
1776
1776
  opacity: 0,
1777
1777
  transition: {
1778
1778
  duration: n.duration
1779
1779
  }
1780
- }, children: ue(ee, x, d, it, X) }) : null
1781
- ] }, `${g.label}-${u[T] || T}`)),
1782
- f ? /* @__PURE__ */ i.jsx(Ee, { value: `${g.label}`.length < zt ? `${g.label}` : `${`${g.label}`.substring(0, zt)}...`, y: b(0) + 5, x: 0, width: k.bandwidth(), height: r.bottom, style: a?.xAxis?.labels, className: s?.xAxis?.labels, alignment: "top", animate: n, isInView: W }) : null,
1783
- xt ? /* @__PURE__ */ i.jsx(Zt.text, { style: {
1780
+ }, children: ue(ee, x, d, et, F) }) : null
1781
+ ] }, `${p.label}-${u[z] || z}`)),
1782
+ y ? /* @__PURE__ */ i.jsx(Ee, { value: `${p.label}`.length < Dt ? `${p.label}` : `${`${p.label}`.substring(0, Dt)}...`, y: b(0) + 5, x: 0, width: M.bandwidth(), height: r.bottom, style: a?.xAxis?.labels, className: s?.xAxis?.labels, alignment: "top", animate: n, isInView: E }) : null,
1783
+ dt ? /* @__PURE__ */ i.jsx(Zt.text, { style: {
1784
1784
  textAnchor: "middle",
1785
1785
  ...a?.graphObjectValues || {}
1786
- }, x: k.bandwidth() / 2, dy: -10, className: pe("graph-value graph-value-total", U ? "text-sm" : "fill-primary-gray-700 dark:fill-primary-gray-300 text-sm", s?.graphObjectValues), variants: {
1786
+ }, x: M.bandwidth() / 2, dy: -10, className: pe("graph-value graph-value-total", q ? "text-sm" : "fill-primary-gray-700 dark:fill-primary-gray-300 text-sm", s?.graphObjectValues), variants: {
1787
1787
  initial: {
1788
1788
  y: b(0),
1789
1789
  opacity: 0,
1790
- ...U && {
1791
- fill: U
1790
+ ...q && {
1791
+ fill: q
1792
1792
  }
1793
1793
  },
1794
1794
  whileInView: {
1795
- y: b(ne(g.size.map(Xs))),
1795
+ y: b(ne(p.size.map(Xs))),
1796
1796
  opacity: 1,
1797
- ...U && {
1798
- fill: U
1797
+ ...q && {
1798
+ fill: q
1799
1799
  },
1800
1800
  transition: {
1801
1801
  duration: n.duration
@@ -1806,42 +1806,42 @@ function Bs(e) {
1806
1806
  transition: {
1807
1807
  duration: n.duration
1808
1808
  }
1809
- }, initial: "initial", animate: W ? "whileInView" : "initial", children: ue(ne(g.size.filter(Hs)), x, d, it, X) }) : null
1810
- ] }, g.label)), E = mt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: mt.map((g, ee) => /* @__PURE__ */ i.jsx(Xe, { text: g.text, color: g.color, y: b(g.value), x1: 0 - $, x2: ot + r.right, classNames: g.classNames, styles: g.styles, animate: n, isInView: W }, ee)) }) : null, t[8] = n, t[9] = M, t[10] = V, t[11] = N, t[12] = s?.graphObjectValues, t[13] = s?.xAxis?.axis, t[14] = s?.xAxis?.labels, t[15] = s?.yAxis?.gridLines, t[16] = s?.yAxis?.labels, t[17] = s?.yAxis?.title, t[18] = u, t[19] = p, t[20] = m, t[21] = Y, t[22] = ht, t[23] = ot, t[24] = dt, t[25] = W, t[26] = q, t[27] = $, t[28] = r.bottom, t[29] = r.left, t[30] = r.right, t[31] = r.top, t[32] = G, t[33] = Tt, t[34] = Q, t[35] = h, t[36] = x, t[37] = S, t[38] = w, t[39] = Nt, t[40] = d, t[41] = it, t[42] = mt, t[43] = O, t[44] = st, t[45] = f, t[46] = H, t[47] = xt, t[48] = a?.graphObjectValues, t[49] = a?.xAxis?.axis, t[50] = a?.xAxis?.labels, t[51] = a?.yAxis?.gridLines, t[52] = a?.yAxis?.labels, t[53] = a?.yAxis?.title, t[54] = X, t[55] = zt, t[56] = U, t[57] = et, t[58] = j, t[59] = y, t[60] = _, t[61] = tt, t[62] = K, t[63] = D, t[64] = ft, t[65] = Ct, t[66] = nt, t[67] = Vt, t[68] = R, t[69] = lt, t[70] = E, t[71] = P;
1809
+ }, initial: "initial", animate: E ? "whileInView" : "initial", children: ue(ne(p.size.filter(Hs)), x, d, et, F) }) : null
1810
+ ] }, p.label)), X = xt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: xt.map((p, ee) => /* @__PURE__ */ i.jsx(Xe, { text: p.text, color: p.color, y: b(p.value), x1: 0 - $, x2: st + r.right, classNames: p.classNames, styles: p.styles, animate: n, isInView: E }, ee)) }) : null, t[8] = n, t[9] = O, t[10] = C, t[11] = T, t[12] = s?.graphObjectValues, t[13] = s?.xAxis?.axis, t[14] = s?.xAxis?.labels, t[15] = s?.yAxis?.gridLines, t[16] = s?.yAxis?.labels, t[17] = s?.yAxis?.title, t[18] = u, t[19] = f, t[20] = m, t[21] = H, t[22] = mt, t[23] = st, t[24] = ut, t[25] = E, t[26] = W, t[27] = $, t[28] = r.bottom, t[29] = r.left, t[30] = r.right, t[31] = r.top, t[32] = Y, t[33] = Tt, t[34] = K, t[35] = h, t[36] = x, t[37] = I, t[38] = w, t[39] = zt, t[40] = d, t[41] = et, t[42] = xt, t[43] = R, t[44] = it, t[45] = y, t[46] = P, t[47] = dt, t[48] = a?.graphObjectValues, t[49] = a?.xAxis?.axis, t[50] = a?.xAxis?.labels, t[51] = a?.yAxis?.gridLines, t[52] = a?.yAxis?.labels, t[53] = a?.yAxis?.title, t[54] = F, t[55] = Dt, t[56] = q, t[57] = tt, t[58] = L, t[59] = g, t[60] = Z, t[61] = _, t[62] = J, t[63] = j, t[64] = ht, t[65] = kt, t[66] = ot, t[67] = Ct, t[68] = G, t[69] = nt, t[70] = X, t[71] = ft;
1811
1811
  } else
1812
- j = t[58], y = t[59], _ = t[60], tt = t[61], K = t[62], D = t[63], ft = t[64], Ct = t[65], nt = t[66], Vt = t[67], R = t[68], lt = t[69], E = t[70], P = t[71];
1812
+ L = t[58], g = t[59], Z = t[60], _ = t[61], J = t[62], j = t[63], ht = t[64], kt = t[65], ot = t[66], Ct = t[67], G = t[68], nt = t[69], X = t[70], ft = t[71];
1813
1813
  let pt;
1814
- t[93] !== j || t[94] !== lt || t[95] !== E ? (pt = /* @__PURE__ */ i.jsxs(j, { children: [
1815
- lt,
1816
- E
1817
- ] }), t[93] = j, t[94] = lt, t[95] = E, t[96] = pt) : pt = t[96];
1814
+ t[93] !== L || t[94] !== nt || t[95] !== X ? (pt = /* @__PURE__ */ i.jsxs(L, { children: [
1815
+ nt,
1816
+ X
1817
+ ] }), t[93] = L, t[94] = nt, t[95] = X, t[96] = pt) : pt = t[96];
1818
1818
  let vt;
1819
- t[97] !== p ? (vt = p.filter(Fs).map(Ps), t[97] = p, t[98] = vt) : vt = t[98];
1819
+ t[97] !== f ? (vt = f.filter(Fs).map(Ps), t[97] = f, t[98] = vt) : vt = t[98];
1820
1820
  let wt;
1821
- t[99] !== _ || t[100] !== tt || t[101] !== K || t[102] !== D || t[103] !== pt || t[104] !== vt || t[105] !== P ? (wt = /* @__PURE__ */ i.jsxs("g", { transform: P, children: [
1821
+ t[99] !== Z || t[100] !== _ || t[101] !== J || t[102] !== j || t[103] !== pt || t[104] !== vt || t[105] !== ft ? (wt = /* @__PURE__ */ i.jsxs("g", { transform: ft, children: [
1822
+ Z,
1822
1823
  _,
1823
- tt,
1824
- K,
1825
- D,
1824
+ J,
1825
+ j,
1826
1826
  pt,
1827
1827
  vt
1828
- ] }), t[99] = _, t[100] = tt, t[101] = K, t[102] = D, t[103] = pt, t[104] = vt, t[105] = P, t[106] = wt) : wt = t[106];
1829
- let at;
1830
- t[107] !== y || t[108] !== ft || t[109] !== Ct || t[110] !== nt || t[111] !== Vt || t[112] !== R || t[113] !== wt ? (at = /* @__PURE__ */ i.jsx(y, { width: ft, height: Ct, viewBox: nt, direction: Vt, ref: R, children: wt }), t[107] = y, t[108] = ft, t[109] = Ct, t[110] = nt, t[111] = Vt, t[112] = R, t[113] = wt, t[114] = at) : at = t[114];
1828
+ ] }), t[99] = Z, t[100] = _, t[101] = J, t[102] = j, t[103] = pt, t[104] = vt, t[105] = ft, t[106] = wt) : wt = t[106];
1829
+ let lt;
1830
+ t[107] !== g || t[108] !== ht || t[109] !== kt || t[110] !== ot || t[111] !== Ct || t[112] !== G || t[113] !== wt ? (lt = /* @__PURE__ */ i.jsx(g, { width: ht, height: kt, viewBox: ot, direction: Ct, ref: G, children: wt }), t[107] = g, t[108] = ht, t[109] = kt, t[110] = ot, t[111] = Ct, t[112] = G, t[113] = wt, t[114] = lt) : lt = t[114];
1831
1831
  let At;
1832
- t[115] !== s?.tooltip || t[116] !== B || t[117] !== jt || t[118] !== c || t[119] !== a?.tooltip || t[120] !== ct ? (At = c && ct && B && jt ? /* @__PURE__ */ i.jsx(Oe, { data: c, body: ct, xPos: B, yPos: jt, backgroundStyle: a?.tooltip, className: s?.tooltip }) : null, t[115] = s?.tooltip, t[116] = B, t[117] = jt, t[118] = c, t[119] = a?.tooltip, t[120] = ct, t[121] = At) : At = t[121];
1832
+ t[115] !== s?.tooltip || t[116] !== S || t[117] !== Lt || t[118] !== c || t[119] !== a?.tooltip || t[120] !== rt ? (At = c && rt && S && Lt ? /* @__PURE__ */ i.jsx(Oe, { data: c, body: rt, xPos: S, yPos: Lt, backgroundStyle: a?.tooltip, className: s?.tooltip }) : null, t[115] = s?.tooltip, t[116] = S, t[117] = Lt, t[118] = c, t[119] = a?.tooltip, t[120] = rt, t[121] = At) : At = t[121];
1833
1833
  let $t;
1834
- t[122] !== Y || t[123] !== h ? ($t = Y && h !== void 0 ? /* @__PURE__ */ i.jsx($e, { open: h !== void 0, onClose: () => {
1835
- L(void 0);
1836
- }, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof Y == "string" ? {
1837
- __html: Me(Y, h)
1838
- } : void 0, children: typeof Y == "function" ? Y(h) : null }) }) : null, t[122] = Y, t[123] = h, t[124] = $t) : $t = t[124];
1834
+ t[122] !== H || t[123] !== h ? ($t = H && h !== void 0 ? /* @__PURE__ */ i.jsx($e, { open: h !== void 0, onClose: () => {
1835
+ V(void 0);
1836
+ }, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof H == "string" ? {
1837
+ __html: Me(H, h)
1838
+ } : void 0, children: typeof H == "function" ? H(h) : null }) }) : null, t[122] = H, t[123] = h, t[124] = $t) : $t = t[124];
1839
1839
  let Ot;
1840
- return t[125] !== at || t[126] !== At || t[127] !== $t ? (Ot = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1841
- at,
1840
+ return t[125] !== lt || t[126] !== At || t[127] !== $t ? (Ot = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1841
+ lt,
1842
1842
  At,
1843
1843
  $t
1844
- ] }), t[125] = at, t[126] = At, t[127] = $t, t[128] = Ot) : Ot = t[128], Ot;
1844
+ ] }), t[125] = lt, t[126] = At, t[127] = $t, t[128] = Ot) : Ot = t[128], Ot;
1845
1845
  }
1846
1846
  function Ps(e) {
1847
1847
  return e.layer;
@@ -1873,103 +1873,103 @@ function Rs(e) {
1873
1873
  function qs(e) {
1874
1874
  const t = xe.c(43), {
1875
1875
  data: m,
1876
- graphTitle: z,
1876
+ graphTitle: D,
1877
1877
  colors: Xt,
1878
1878
  sources: St,
1879
1879
  graphDescription: gt,
1880
- barPadding: et,
1881
- showTicks: dt,
1882
- truncateBy: V,
1883
- height: N,
1884
- width: f,
1885
- footNote: H,
1886
- colorDomain: zt,
1887
- colorLegendTitle: ct,
1888
- padding: Nt,
1889
- backgroundColor: X,
1890
- topMargin: it,
1891
- bottomMargin: xt,
1892
- leftMargin: mt,
1880
+ barPadding: tt,
1881
+ showTicks: ut,
1882
+ truncateBy: C,
1883
+ height: T,
1884
+ width: y,
1885
+ footNote: P,
1886
+ colorDomain: Dt,
1887
+ colorLegendTitle: rt,
1888
+ padding: zt,
1889
+ backgroundColor: F,
1890
+ topMargin: et,
1891
+ bottomMargin: dt,
1892
+ leftMargin: xt,
1893
1893
  rightMargin: Tt,
1894
1894
  tooltip: w,
1895
- onSeriesMouseOver: st,
1896
- suffix: q,
1897
- prefix: G,
1898
- showLabels: Q,
1899
- relativeHeight: O,
1900
- showValues: Y,
1901
- refValues: M,
1902
- graphID: U,
1903
- maxValue: S,
1895
+ onSeriesMouseOver: it,
1896
+ suffix: W,
1897
+ prefix: Y,
1898
+ showLabels: K,
1899
+ relativeHeight: R,
1900
+ showValues: H,
1901
+ refValues: O,
1902
+ graphID: q,
1903
+ maxValue: I,
1904
1904
  onSeriesMouseClick: a,
1905
1905
  graphDownload: s,
1906
1906
  dataDownload: n,
1907
1907
  language: u,
1908
1908
  labelOrder: d,
1909
- minHeight: p,
1909
+ minHeight: f,
1910
1910
  theme: x,
1911
1911
  maxBarThickness: $,
1912
- sortParameter: Z,
1913
- maxNumberOfBars: J,
1914
- minBarThickness: ut,
1912
+ sortParameter: Q,
1913
+ maxNumberOfBars: U,
1914
+ minBarThickness: ct,
1915
1915
  showColorScale: Ft,
1916
1916
  ariaLabel: Yt,
1917
- resetSelectionOnDoubleClick: W,
1917
+ resetSelectionOnDoubleClick: E,
1918
1918
  detailsOnClick: yt,
1919
1919
  barAxisTitle: Bt,
1920
1920
  noOfTicks: r,
1921
1921
  valueColor: c,
1922
- styles: F,
1922
+ styles: B,
1923
1923
  classNames: h,
1924
- filterNA: L,
1925
- animate: B,
1924
+ filterNA: V,
1925
+ animate: S,
1926
1926
  precision: A,
1927
- customLayers: jt,
1927
+ customLayers: Lt,
1928
1928
  timeline: bt,
1929
- naLabel: ot,
1930
- sortData: ht,
1931
- orientation: j
1932
- } = e, y = Xt === void 0 ? ce.light.categoricalColors.colors : Xt, _ = et === void 0 ? 0.25 : et, tt = dt === void 0 ? !0 : dt, K = V === void 0 ? 999 : V, D = X === void 0 ? !1 : X, ft = q === void 0 ? "" : q, Ct = G === void 0 ? "" : G, nt = Q === void 0 ? !0 : Q, Vt = Y === void 0 ? !0 : Y, R = s === void 0 ? !1 : s, lt = n === void 0 ? !1 : n, E = u === void 0 ? "en" : u, P = p === void 0 ? 0 : p, pt = x === void 0 ? "light" : x, vt = Ft === void 0 ? !0 : Ft, wt = W === void 0 ? !0 : W, at = r === void 0 ? 5 : r, At = L === void 0 ? !0 : L, $t = B === void 0 ? !1 : B, Ot = A === void 0 ? 2 : A;
1929
+ naLabel: st,
1930
+ sortData: mt,
1931
+ orientation: L
1932
+ } = e, g = Xt === void 0 ? ce.light.categoricalColors.colors : Xt, Z = tt === void 0 ? 0.25 : tt, _ = ut === void 0 ? !0 : ut, J = C === void 0 ? 999 : C, j = F === void 0 ? !1 : F, ht = W === void 0 ? "" : W, kt = Y === void 0 ? "" : Y, ot = K === void 0 ? !0 : K, Ct = H === void 0 ? !0 : H, G = s === void 0 ? !1 : s, nt = n === void 0 ? !1 : n, X = u === void 0 ? "en" : u, ft = f === void 0 ? 0 : f, pt = x === void 0 ? "light" : x, vt = Ft === void 0 ? !0 : Ft, wt = E === void 0 ? !0 : E, lt = r === void 0 ? 5 : r, At = V === void 0 ? !0 : V, $t = S === void 0 ? !1 : S, Ot = A === void 0 ? 2 : A;
1933
1933
  let b;
1934
- t[0] !== jt ? (b = jt === void 0 ? [] : jt, t[0] = jt, t[1] = b) : b = t[1];
1935
- const rt = b, It = bt === void 0 ? {
1934
+ t[0] !== Lt ? (b = Lt === void 0 ? [] : Lt, t[0] = Lt, t[1] = b) : b = t[1];
1935
+ const at = b, It = bt === void 0 ? {
1936
1936
  enabled: !1,
1937
1937
  autoplay: !1,
1938
1938
  showOnlyActiveDate: !0
1939
- } : bt, Et = ot === void 0 ? "NA" : ot, Rt = (j === void 0 ? "vertical" : j) === "horizontal" ? Cs : Bs, [Mt, Kt] = Wt(0), [Dt, Qt] = Wt(0), [Ut, Ht] = Wt(It.autoplay), kt = Ze(De(m, "date", !0).map((Pt) => Be(`${Pt}`, It.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), lo), [qt, Jt] = Wt(It.autoplay ? 0 : kt.length - 1), [I, v] = Wt(void 0), C = de(null), o = de(null);
1940
- let g, ee;
1941
- t[2] === Symbol.for("react.memo_cache_sentinel") ? (g = () => {
1939
+ } : bt, Et = st === void 0 ? "NA" : st, qt = (L === void 0 ? "vertical" : L) === "horizontal" ? Cs : Bs, [Nt, Kt] = Wt(0), [jt, Qt] = Wt(0), [Ut, Ht] = Wt(It.autoplay), Mt = Ze(De(m, "date", !0).map((Pt) => Be(`${Pt}`, It.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), lo), [Rt, Jt] = Wt(It.autoplay ? 0 : Mt.length - 1), [N, v] = Wt(void 0), k = de(null), o = de(null);
1940
+ let p, ee;
1941
+ t[2] === Symbol.for("react.memo_cache_sentinel") ? (p = () => {
1942
1942
  const Pt = new ResizeObserver((ae) => {
1943
1943
  Kt(ae[0].target.clientWidth || 620), Qt(ae[0].target.clientHeight || 480);
1944
1944
  });
1945
- return C.current && Pt.observe(C.current), () => Pt.disconnect();
1946
- }, ee = [], t[2] = g, t[3] = ee) : (g = t[2], ee = t[3]), we(g, ee), we(() => {
1945
+ return k.current && Pt.observe(k.current), () => Pt.disconnect();
1946
+ }, ee = [], t[2] = p, t[3] = ee) : (p = t[2], ee = t[3]), we(p, ee), we(() => {
1947
1947
  const Pt = setInterval(() => {
1948
- Jt((ae) => ae < kt.length - 1 ? ae + 1 : 0);
1948
+ Jt((ae) => ae < Mt.length - 1 ? ae + 1 : 0);
1949
1949
  }, (It.speed || 2) * 1e3);
1950
1950
  return Ut || clearInterval(Pt), () => clearInterval(Pt);
1951
- }, [kt, Ut, It.speed]);
1952
- const T = Ie(kt, qt, It.showOnlyActiveDate, It.dateFormat || "yyyy"), Lt = Qe, l = h?.graphContainer, ie = F?.graphContainer;
1951
+ }, [Mt, Ut, It.speed]);
1952
+ const z = Ie(Mt, Rt, It.showOnlyActiveDate, It.dateFormat || "yyyy"), Vt = Qe, l = h?.graphContainer, ie = B?.graphContainer;
1953
1953
  let se;
1954
- t[4] !== h?.description || t[5] !== h?.title || t[6] !== m || t[7] !== lt || t[8] !== gt || t[9] !== R || t[10] !== z || t[11] !== F?.description || t[12] !== F?.title || t[13] !== f ? (se = z || gt || R || lt ? /* @__PURE__ */ i.jsx(Ge, { styles: {
1955
- title: F?.title,
1956
- description: F?.description
1954
+ t[4] !== h?.description || t[5] !== h?.title || t[6] !== m || t[7] !== nt || t[8] !== gt || t[9] !== G || t[10] !== D || t[11] !== B?.description || t[12] !== B?.title || t[13] !== y ? (se = D || gt || G || nt ? /* @__PURE__ */ i.jsx(Ge, { styles: {
1955
+ title: B?.title,
1956
+ description: B?.description
1957
1957
  }, classNames: {
1958
1958
  title: h?.title,
1959
1959
  description: h?.description
1960
- }, graphTitle: z, graphDescription: gt, width: f, graphDownload: R ? o : void 0, dataDownload: lt ? m.map(no).filter(oo).length > 0 ? m.map(so).filter(io) : m.filter(eo) : null }) : null, t[4] = h?.description, t[5] = h?.title, t[6] = m, t[7] = lt, t[8] = gt, t[9] = R, t[10] = z, t[11] = F?.description, t[12] = F?.title, t[13] = f, t[14] = se) : se = t[14];
1961
- const me = It.enabled && kt.length > 0 && T ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
1960
+ }, graphTitle: D, graphDescription: gt, width: y, graphDownload: G ? o : void 0, dataDownload: nt ? m.map(no).filter(oo).length > 0 ? m.map(so).filter(io) : m.filter(eo) : null }) : null, t[4] = h?.description, t[5] = h?.title, t[6] = m, t[7] = nt, t[8] = gt, t[9] = G, t[10] = D, t[11] = B?.description, t[12] = B?.title, t[13] = y, t[14] = se) : se = t[14];
1961
+ const me = It.enabled && Mt.length > 0 && z ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
1962
1962
  /* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
1963
1963
  Ht(!Ut);
1964
1964
  }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Ut ? "Click to pause animation" : "Click to play animation", children: Ut ? /* @__PURE__ */ i.jsx(Ue, {}) : /* @__PURE__ */ i.jsx(Je, {}) }),
1965
- /* @__PURE__ */ i.jsx(Se, { min: kt[0], max: kt[kt.length - 1], marks: T, step: null, defaultValue: kt[kt.length - 1], value: kt[qt], onChangeComplete: (Pt) => {
1966
- Jt(kt.indexOf(Pt));
1965
+ /* @__PURE__ */ i.jsx(Se, { min: Mt[0], max: Mt[Mt.length - 1], marks: z, step: null, defaultValue: Mt[Mt.length - 1], value: Mt[Rt], onChangeComplete: (Pt) => {
1966
+ Jt(Mt.indexOf(Pt));
1967
1967
  }, onChange: (Pt) => {
1968
- Jt(kt.indexOf(Pt));
1968
+ Jt(Mt.indexOf(Pt));
1969
1969
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
1970
1970
  ] }) : null, fe = "grow flex flex-col justify-center gap-3 w-full", re = m.length === 0 ? /* @__PURE__ */ i.jsx(qe, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1971
- vt ? /* @__PURE__ */ i.jsx(Re, { width: f, colorDomain: zt, colors: y, colorLegendTitle: ct, setSelectedColor: v, showNAColor: !1, className: h?.colorLegend }) : null,
1972
- /* @__PURE__ */ i.jsx(Ke, { ref: C, children: Mt && Dt ? /* @__PURE__ */ i.jsx(Rt, { data: Z !== void 0 ? Z === "total" ? ze(ve(m, It.dateFormat || "yyyy").filter((Pt) => It.enabled ? Pt.date === ye(new Date(kt[qt]), It.dateFormat || "yyyy") : Pt).filter((Pt) => At ? !Pt.size.every(to) : Pt), Zs, [ht || "asc"]).filter((Pt, ae) => J ? ae < J : !0) : ze(ve(m, It.dateFormat || "yyyy").filter((Pt) => It.enabled ? Pt.date === ye(new Date(kt[qt]), It.dateFormat || "yyyy") : Pt).filter((Pt) => At ? !Pt.size.every(Qs) : Pt), (Pt) => _t(Pt.size[Z]) ? -1 / 0 : Pt.size[Z], [ht || "asc"]).filter((Pt, ae) => J ? ae < J : !0) : ve(m, It.dateFormat || "yyyy").filter((Pt) => It.enabled ? Pt.date === ye(new Date(kt[qt]), It.dateFormat || "yyyy") : Pt).filter((Pt) => At ? !Pt.size.every(Ks) : Pt).filter((Pt, ae) => J ? ae < J : !0), barColors: y, width: f || Mt, height: Math.max(P, N || (O ? P ? (f || Mt) * O > P ? (f || Mt) * O : P : (f || Mt) * O : Dt)), barPadding: _, showTicks: tt, leftMargin: mt, rightMargin: Tt, topMargin: it, bottomMargin: xt, truncateBy: K, showLabels: nt, tooltip: w, onSeriesMouseOver: st, showValues: Vt, suffix: ft, prefix: Ct, refValues: M, maxValue: _t(S) ? Math.max(...m.map(Us)) : S, onSeriesMouseClick: a, selectedColor: I, rtl: E === "he" || E === "ar", labelOrder: d, maxBarThickness: $, minBarThickness: ut, resetSelectionOnDoubleClick: wt, detailsOnClick: yt, barAxisTitle: Bt, noOfTicks: at, valueColor: c, classNames: h, styles: F, animate: $t === !0 ? {
1971
+ vt ? /* @__PURE__ */ i.jsx(Re, { width: y, colorDomain: Dt, colors: g, colorLegendTitle: rt, setSelectedColor: v, showNAColor: !1, className: h?.colorLegend }) : null,
1972
+ /* @__PURE__ */ i.jsx(Ke, { ref: k, children: Nt && jt ? /* @__PURE__ */ i.jsx(qt, { data: Q !== void 0 ? Q === "total" ? ze(ve(m, It.dateFormat || "yyyy").filter((Pt) => It.enabled ? Pt.date === ye(new Date(Mt[Rt]), It.dateFormat || "yyyy") : Pt).filter((Pt) => At ? !Pt.size.every(to) : Pt), Zs, [mt || "asc"]).filter((Pt, ae) => U ? ae < U : !0) : ze(ve(m, It.dateFormat || "yyyy").filter((Pt) => It.enabled ? Pt.date === ye(new Date(Mt[Rt]), It.dateFormat || "yyyy") : Pt).filter((Pt) => At ? !Pt.size.every(Qs) : Pt), (Pt) => _t(Pt.size[Q]) ? -1 / 0 : Pt.size[Q], [mt || "asc"]).filter((Pt, ae) => U ? ae < U : !0) : ve(m, It.dateFormat || "yyyy").filter((Pt) => It.enabled ? Pt.date === ye(new Date(Mt[Rt]), It.dateFormat || "yyyy") : Pt).filter((Pt) => At ? !Pt.size.every(Ks) : Pt).filter((Pt, ae) => U ? ae < U : !0), barColors: g, width: Nt, height: jt, barPadding: Z, showTicks: _, leftMargin: xt, rightMargin: Tt, topMargin: et, bottomMargin: dt, truncateBy: J, showLabels: ot, tooltip: w, onSeriesMouseOver: it, showValues: Ct, suffix: ht, prefix: kt, refValues: O, maxValue: _t(I) ? Math.max(...m.map(Us)) : I, onSeriesMouseClick: a, selectedColor: N, rtl: X === "he" || X === "ar", labelOrder: d, maxBarThickness: $, minBarThickness: ct, resetSelectionOnDoubleClick: wt, detailsOnClick: yt, barAxisTitle: Bt, noOfTicks: lt, valueColor: c, classNames: h, styles: B, animate: $t === !0 ? {
1973
1973
  duration: 0.5,
1974
1974
  once: !0,
1975
1975
  amount: 0.5
@@ -1977,25 +1977,25 @@ function qs(e) {
1977
1977
  duration: 0,
1978
1978
  once: !0,
1979
1979
  amount: 0
1980
- }, colorDomain: zt, precision: Ot, customLayers: rt, naLabel: Et }) : null })
1980
+ }, colorDomain: Dt, precision: Ot, customLayers: at, naLabel: Et }) : null })
1981
1981
  ] });
1982
1982
  let oe;
1983
1983
  t[15] !== re ? (oe = /* @__PURE__ */ i.jsx("div", { className: fe, children: re }), t[15] = re, t[16] = oe) : oe = t[16];
1984
1984
  let le;
1985
- t[17] !== h?.footnote || t[18] !== h?.source || t[19] !== H || t[20] !== St || t[21] !== F?.footnote || t[22] !== F?.source || t[23] !== f ? (le = St || H ? /* @__PURE__ */ i.jsx(We, { styles: {
1986
- footnote: F?.footnote,
1987
- source: F?.source
1985
+ t[17] !== h?.footnote || t[18] !== h?.source || t[19] !== P || t[20] !== St || t[21] !== B?.footnote || t[22] !== B?.source || t[23] !== y ? (le = St || P ? /* @__PURE__ */ i.jsx(We, { styles: {
1986
+ footnote: B?.footnote,
1987
+ source: B?.source
1988
1988
  }, classNames: {
1989
1989
  footnote: h?.footnote,
1990
1990
  source: h?.source
1991
- }, sources: St, footNote: H, width: f }) : null, t[17] = h?.footnote, t[18] = h?.source, t[19] = H, t[20] = St, t[21] = F?.footnote, t[22] = F?.source, t[23] = f, t[24] = le) : le = t[24];
1991
+ }, sources: St, footNote: P, width: y }) : null, t[17] = h?.footnote, t[18] = h?.source, t[19] = P, t[20] = St, t[21] = B?.footnote, t[22] = B?.source, t[23] = y, t[24] = le) : le = t[24];
1992
1992
  let Gt;
1993
- return t[25] !== Lt || t[26] !== Yt || t[27] !== D || t[28] !== U || t[29] !== N || t[30] !== E || t[31] !== P || t[32] !== Nt || t[33] !== O || t[34] !== l || t[35] !== ie || t[36] !== se || t[37] !== me || t[38] !== oe || t[39] !== le || t[40] !== pt || t[41] !== f ? (Gt = /* @__PURE__ */ i.jsxs(Lt, { className: l, style: ie, id: U, ref: o, "aria-label": Yt, backgroundColor: D, theme: pt, language: E, minHeight: P, width: f, height: N, relativeHeight: O, padding: Nt, children: [
1993
+ return t[25] !== Vt || t[26] !== Yt || t[27] !== j || t[28] !== q || t[29] !== T || t[30] !== X || t[31] !== ft || t[32] !== zt || t[33] !== R || t[34] !== l || t[35] !== ie || t[36] !== se || t[37] !== me || t[38] !== oe || t[39] !== le || t[40] !== pt || t[41] !== y ? (Gt = /* @__PURE__ */ i.jsxs(Vt, { className: l, style: ie, id: q, ref: o, "aria-label": Yt, backgroundColor: j, theme: pt, language: X, minHeight: ft, width: y, height: T, relativeHeight: R, padding: zt, children: [
1994
1994
  se,
1995
1995
  me,
1996
1996
  oe,
1997
1997
  le
1998
- ] }), t[25] = Lt, t[26] = Yt, t[27] = D, t[28] = U, t[29] = N, t[30] = E, t[31] = P, t[32] = Nt, t[33] = O, t[34] = l, t[35] = ie, t[36] = se, t[37] = me, t[38] = oe, t[39] = le, t[40] = pt, t[41] = f, t[42] = Gt) : Gt = t[42], Gt;
1998
+ ] }), t[25] = Vt, t[26] = Yt, t[27] = j, t[28] = q, t[29] = T, t[30] = X, t[31] = ft, t[32] = zt, t[33] = R, t[34] = l, t[35] = ie, t[36] = se, t[37] = me, t[38] = oe, t[39] = le, t[40] = pt, t[41] = y, t[42] = Gt) : Gt = t[42], Gt;
1999
1999
  }
2000
2000
  function Us(e) {
2001
2001
  return ne(e.size.filter(Js)) || 0;
@@ -2039,193 +2039,193 @@ function lo(e, t) {
2039
2039
  function Go(e) {
2040
2040
  const t = xe.c(61), {
2041
2041
  data: m,
2042
- graphTitle: z,
2042
+ graphTitle: D,
2043
2043
  colors: Xt,
2044
2044
  barPadding: St,
2045
2045
  showTicks: gt,
2046
- leftMargin: et,
2047
- rightMargin: dt,
2048
- topMargin: V,
2049
- bottomMargin: N,
2050
- truncateBy: f,
2051
- showLabels: H,
2052
- showValues: zt,
2053
- backgroundColor: ct,
2054
- suffix: Nt,
2055
- prefix: X,
2056
- sources: it,
2057
- graphDescription: xt,
2058
- height: mt,
2046
+ leftMargin: tt,
2047
+ rightMargin: ut,
2048
+ topMargin: C,
2049
+ bottomMargin: T,
2050
+ truncateBy: y,
2051
+ showLabels: P,
2052
+ showValues: Dt,
2053
+ backgroundColor: rt,
2054
+ suffix: zt,
2055
+ prefix: F,
2056
+ sources: et,
2057
+ graphDescription: dt,
2058
+ height: xt,
2059
2059
  width: Tt,
2060
2060
  footNote: w,
2061
- colorDomain: st,
2062
- colorLegendTitle: q,
2063
- padding: G,
2064
- relativeHeight: Q,
2065
- tooltip: O,
2066
- onSeriesMouseOver: Y,
2067
- refValues: M,
2068
- showColorScale: U,
2069
- graphID: S,
2061
+ colorDomain: it,
2062
+ colorLegendTitle: W,
2063
+ padding: Y,
2064
+ relativeHeight: K,
2065
+ tooltip: R,
2066
+ onSeriesMouseOver: H,
2067
+ refValues: O,
2068
+ showColorScale: q,
2069
+ graphID: I,
2070
2070
  maxValue: a,
2071
2071
  minValue: s,
2072
2072
  highlightedDataPoints: n,
2073
2073
  onSeriesMouseClick: u,
2074
2074
  graphDownload: d,
2075
- dataDownload: p,
2075
+ dataDownload: f,
2076
2076
  language: x,
2077
2077
  theme: $,
2078
- sortData: Z,
2079
- labelOrder: J,
2080
- showNAColor: ut,
2078
+ sortData: Q,
2079
+ labelOrder: U,
2080
+ showNAColor: ct,
2081
2081
  minHeight: Ft,
2082
2082
  maxBarThickness: Yt,
2083
- maxNumberOfBars: W,
2083
+ maxNumberOfBars: E,
2084
2084
  minBarThickness: yt,
2085
2085
  ariaLabel: Bt,
2086
2086
  resetSelectionOnDoubleClick: r,
2087
2087
  detailsOnClick: c,
2088
- barAxisTitle: F,
2088
+ barAxisTitle: B,
2089
2089
  noOfTicks: h,
2090
- valueColor: L,
2091
- orientation: B,
2090
+ valueColor: V,
2091
+ orientation: S,
2092
2092
  styles: A,
2093
- classNames: jt,
2093
+ classNames: Lt,
2094
2094
  filterNA: bt,
2095
- animate: ot,
2096
- dimmedOpacity: ht,
2097
- precision: j,
2098
- customLayers: y,
2099
- timeline: _,
2100
- naLabel: tt
2101
- } = e, K = B === void 0 ? "vertical" : B;
2102
- let D;
2103
- return t[0] !== ot || t[1] !== Bt || t[2] !== ct || t[3] !== F || t[4] !== St || t[5] !== N || t[6] !== jt || t[7] !== st || t[8] !== q || t[9] !== Xt || t[10] !== y || t[11] !== m || t[12] !== p || t[13] !== c || t[14] !== ht || t[15] !== bt || t[16] !== w || t[17] !== xt || t[18] !== d || t[19] !== S || t[20] !== z || t[21] !== mt || t[22] !== n || t[23] !== J || t[24] !== x || t[25] !== et || t[26] !== Yt || t[27] !== W || t[28] !== a || t[29] !== yt || t[30] !== Ft || t[31] !== s || t[32] !== tt || t[33] !== h || t[34] !== u || t[35] !== Y || t[36] !== K || t[37] !== G || t[38] !== j || t[39] !== X || t[40] !== M || t[41] !== Q || t[42] !== r || t[43] !== dt || t[44] !== U || t[45] !== H || t[46] !== ut || t[47] !== gt || t[48] !== zt || t[49] !== Z || t[50] !== it || t[51] !== A || t[52] !== Nt || t[53] !== $ || t[54] !== _ || t[55] !== O || t[56] !== V || t[57] !== f || t[58] !== L || t[59] !== Tt ? (D = /* @__PURE__ */ i.jsx(cs, { data: m, graphTitle: z, colors: Xt, barPadding: St, showTicks: gt, leftMargin: et, rightMargin: dt, topMargin: V, bottomMargin: N, truncateBy: f, showLabels: H, showValues: zt, backgroundColor: ct, suffix: Nt, prefix: X, sources: it, graphDescription: xt, height: mt, width: Tt, footNote: w, colorDomain: st, colorLegendTitle: q, padding: G, relativeHeight: Q, tooltip: O, onSeriesMouseOver: Y, refValues: M, showColorScale: U, graphID: S, maxValue: a, minValue: s, highlightedDataPoints: n, onSeriesMouseClick: u, graphDownload: d, dataDownload: p, language: x, theme: $, sortData: Z, labelOrder: J, showNAColor: ut, minHeight: Ft, maxBarThickness: Yt, maxNumberOfBars: W, minBarThickness: yt, ariaLabel: Bt, resetSelectionOnDoubleClick: r, styles: A, detailsOnClick: c, barAxisTitle: F, noOfTicks: h, valueColor: L, classNames: jt, filterNA: bt, animate: ot, dimmedOpacity: ht, precision: j, customLayers: y, timeline: _, naLabel: tt, orientation: K }), t[0] = ot, t[1] = Bt, t[2] = ct, t[3] = F, t[4] = St, t[5] = N, t[6] = jt, t[7] = st, t[8] = q, t[9] = Xt, t[10] = y, t[11] = m, t[12] = p, t[13] = c, t[14] = ht, t[15] = bt, t[16] = w, t[17] = xt, t[18] = d, t[19] = S, t[20] = z, t[21] = mt, t[22] = n, t[23] = J, t[24] = x, t[25] = et, t[26] = Yt, t[27] = W, t[28] = a, t[29] = yt, t[30] = Ft, t[31] = s, t[32] = tt, t[33] = h, t[34] = u, t[35] = Y, t[36] = K, t[37] = G, t[38] = j, t[39] = X, t[40] = M, t[41] = Q, t[42] = r, t[43] = dt, t[44] = U, t[45] = H, t[46] = ut, t[47] = gt, t[48] = zt, t[49] = Z, t[50] = it, t[51] = A, t[52] = Nt, t[53] = $, t[54] = _, t[55] = O, t[56] = V, t[57] = f, t[58] = L, t[59] = Tt, t[60] = D) : D = t[60], D;
2095
+ animate: st,
2096
+ dimmedOpacity: mt,
2097
+ precision: L,
2098
+ customLayers: g,
2099
+ timeline: Z,
2100
+ naLabel: _
2101
+ } = e, J = S === void 0 ? "vertical" : S;
2102
+ let j;
2103
+ return t[0] !== st || t[1] !== Bt || t[2] !== rt || t[3] !== B || t[4] !== St || t[5] !== T || t[6] !== Lt || t[7] !== it || t[8] !== W || t[9] !== Xt || t[10] !== g || t[11] !== m || t[12] !== f || t[13] !== c || t[14] !== mt || t[15] !== bt || t[16] !== w || t[17] !== dt || t[18] !== d || t[19] !== I || t[20] !== D || t[21] !== xt || t[22] !== n || t[23] !== U || t[24] !== x || t[25] !== tt || t[26] !== Yt || t[27] !== E || t[28] !== a || t[29] !== yt || t[30] !== Ft || t[31] !== s || t[32] !== _ || t[33] !== h || t[34] !== u || t[35] !== H || t[36] !== J || t[37] !== Y || t[38] !== L || t[39] !== F || t[40] !== O || t[41] !== K || t[42] !== r || t[43] !== ut || t[44] !== q || t[45] !== P || t[46] !== ct || t[47] !== gt || t[48] !== Dt || t[49] !== Q || t[50] !== et || t[51] !== A || t[52] !== zt || t[53] !== $ || t[54] !== Z || t[55] !== R || t[56] !== C || t[57] !== y || t[58] !== V || t[59] !== Tt ? (j = /* @__PURE__ */ i.jsx(cs, { data: m, graphTitle: D, colors: Xt, barPadding: St, showTicks: gt, leftMargin: tt, rightMargin: ut, topMargin: C, bottomMargin: T, truncateBy: y, showLabels: P, showValues: Dt, backgroundColor: rt, suffix: zt, prefix: F, sources: et, graphDescription: dt, height: xt, width: Tt, footNote: w, colorDomain: it, colorLegendTitle: W, padding: Y, relativeHeight: K, tooltip: R, onSeriesMouseOver: H, refValues: O, showColorScale: q, graphID: I, maxValue: a, minValue: s, highlightedDataPoints: n, onSeriesMouseClick: u, graphDownload: d, dataDownload: f, language: x, theme: $, sortData: Q, labelOrder: U, showNAColor: ct, minHeight: Ft, maxBarThickness: Yt, maxNumberOfBars: E, minBarThickness: yt, ariaLabel: Bt, resetSelectionOnDoubleClick: r, styles: A, detailsOnClick: c, barAxisTitle: B, noOfTicks: h, valueColor: V, classNames: Lt, filterNA: bt, animate: st, dimmedOpacity: mt, precision: L, customLayers: g, timeline: Z, naLabel: _, orientation: J }), t[0] = st, t[1] = Bt, t[2] = rt, t[3] = B, t[4] = St, t[5] = T, t[6] = Lt, t[7] = it, t[8] = W, t[9] = Xt, t[10] = g, t[11] = m, t[12] = f, t[13] = c, t[14] = mt, t[15] = bt, t[16] = w, t[17] = dt, t[18] = d, t[19] = I, t[20] = D, t[21] = xt, t[22] = n, t[23] = U, t[24] = x, t[25] = tt, t[26] = Yt, t[27] = E, t[28] = a, t[29] = yt, t[30] = Ft, t[31] = s, t[32] = _, t[33] = h, t[34] = u, t[35] = H, t[36] = J, t[37] = Y, t[38] = L, t[39] = F, t[40] = O, t[41] = K, t[42] = r, t[43] = ut, t[44] = q, t[45] = P, t[46] = ct, t[47] = gt, t[48] = Dt, t[49] = Q, t[50] = et, t[51] = A, t[52] = zt, t[53] = $, t[54] = Z, t[55] = R, t[56] = C, t[57] = y, t[58] = V, t[59] = Tt, t[60] = j) : j = t[60], j;
2104
2104
  }
2105
2105
  function Wo(e) {
2106
2106
  const t = xe.c(57), {
2107
2107
  data: m,
2108
- graphTitle: z,
2108
+ graphTitle: D,
2109
2109
  colors: Xt,
2110
2110
  sources: St,
2111
2111
  graphDescription: gt,
2112
- barPadding: et,
2113
- showTicks: dt,
2114
- truncateBy: V,
2115
- height: N,
2116
- width: f,
2117
- footNote: H,
2118
- colorDomain: zt,
2119
- colorLegendTitle: ct,
2120
- suffix: Nt,
2121
- prefix: X,
2122
- showValues: it,
2123
- padding: xt,
2124
- backgroundColor: mt,
2112
+ barPadding: tt,
2113
+ showTicks: ut,
2114
+ truncateBy: C,
2115
+ height: T,
2116
+ width: y,
2117
+ footNote: P,
2118
+ colorDomain: Dt,
2119
+ colorLegendTitle: rt,
2120
+ suffix: zt,
2121
+ prefix: F,
2122
+ showValues: et,
2123
+ padding: dt,
2124
+ backgroundColor: xt,
2125
2125
  leftMargin: Tt,
2126
2126
  rightMargin: w,
2127
- topMargin: st,
2128
- bottomMargin: q,
2129
- showLabels: G,
2130
- relativeHeight: Q,
2131
- tooltip: O,
2132
- onSeriesMouseOver: Y,
2133
- refValues: M,
2134
- graphID: U,
2135
- maxValue: S,
2127
+ topMargin: it,
2128
+ bottomMargin: W,
2129
+ showLabels: Y,
2130
+ relativeHeight: K,
2131
+ tooltip: R,
2132
+ onSeriesMouseOver: H,
2133
+ refValues: O,
2134
+ graphID: q,
2135
+ maxValue: I,
2136
2136
  minValue: a,
2137
2137
  onSeriesMouseClick: s,
2138
2138
  graphDownload: n,
2139
2139
  dataDownload: u,
2140
2140
  language: d,
2141
- labelOrder: p,
2141
+ labelOrder: f,
2142
2142
  minHeight: x,
2143
2143
  theme: $,
2144
- sortParameter: Z,
2145
- sortData: J,
2146
- maxBarThickness: ut,
2144
+ sortParameter: Q,
2145
+ sortData: U,
2146
+ maxBarThickness: ct,
2147
2147
  ariaLabel: Ft,
2148
2148
  resetSelectionOnDoubleClick: Yt,
2149
- detailsOnClick: W,
2149
+ detailsOnClick: E,
2150
2150
  barAxisTitle: yt,
2151
2151
  noOfTicks: Bt,
2152
2152
  valueColor: r,
2153
2153
  orientation: c,
2154
- styles: F,
2154
+ styles: B,
2155
2155
  classNames: h,
2156
- filterNA: L,
2157
- animate: B,
2156
+ filterNA: V,
2157
+ animate: S,
2158
2158
  precision: A,
2159
- customLayers: jt,
2159
+ customLayers: Lt,
2160
2160
  showColorScale: bt,
2161
- timeline: ot,
2162
- naLabel: ht
2163
- } = e, j = c === void 0 ? "vertical" : c;
2164
- let y;
2165
- return t[0] !== B || t[1] !== Ft || t[2] !== mt || t[3] !== yt || t[4] !== et || t[5] !== q || t[6] !== h || t[7] !== zt || t[8] !== ct || t[9] !== Xt || t[10] !== jt || t[11] !== m || t[12] !== u || t[13] !== W || t[14] !== L || t[15] !== H || t[16] !== gt || t[17] !== n || t[18] !== U || t[19] !== z || t[20] !== N || t[21] !== p || t[22] !== d || t[23] !== Tt || t[24] !== ut || t[25] !== S || t[26] !== x || t[27] !== a || t[28] !== ht || t[29] !== Bt || t[30] !== s || t[31] !== Y || t[32] !== j || t[33] !== xt || t[34] !== A || t[35] !== X || t[36] !== M || t[37] !== Q || t[38] !== Yt || t[39] !== w || t[40] !== bt || t[41] !== G || t[42] !== dt || t[43] !== it || t[44] !== J || t[45] !== Z || t[46] !== St || t[47] !== F || t[48] !== Nt || t[49] !== $ || t[50] !== ot || t[51] !== O || t[52] !== st || t[53] !== V || t[54] !== r || t[55] !== f ? (y = /* @__PURE__ */ i.jsx(bi, { orientation: j, data: m, graphTitle: z, colors: Xt, sources: St, graphDescription: gt, barPadding: et, showTicks: dt, truncateBy: V, height: N, width: f, footNote: H, colorDomain: zt, colorLegendTitle: ct, suffix: Nt, prefix: X, showValues: it, padding: xt, backgroundColor: mt, leftMargin: Tt, rightMargin: w, sortParameter: Z, sortData: J, topMargin: st, bottomMargin: q, showLabels: G, relativeHeight: Q, tooltip: O, onSeriesMouseOver: Y, refValues: M, graphID: U, maxValue: S, minValue: a, onSeriesMouseClick: s, graphDownload: n, dataDownload: u, language: d, labelOrder: p, minHeight: x, theme: $, maxBarThickness: ut, ariaLabel: Ft, resetSelectionOnDoubleClick: Yt, styles: F, detailsOnClick: W, barAxisTitle: yt, noOfTicks: Bt, valueColor: r, classNames: h, filterNA: L, animate: B, precision: A, customLayers: jt, showColorScale: bt, timeline: ot, naLabel: ht }), t[0] = B, t[1] = Ft, t[2] = mt, t[3] = yt, t[4] = et, t[5] = q, t[6] = h, t[7] = zt, t[8] = ct, t[9] = Xt, t[10] = jt, t[11] = m, t[12] = u, t[13] = W, t[14] = L, t[15] = H, t[16] = gt, t[17] = n, t[18] = U, t[19] = z, t[20] = N, t[21] = p, t[22] = d, t[23] = Tt, t[24] = ut, t[25] = S, t[26] = x, t[27] = a, t[28] = ht, t[29] = Bt, t[30] = s, t[31] = Y, t[32] = j, t[33] = xt, t[34] = A, t[35] = X, t[36] = M, t[37] = Q, t[38] = Yt, t[39] = w, t[40] = bt, t[41] = G, t[42] = dt, t[43] = it, t[44] = J, t[45] = Z, t[46] = St, t[47] = F, t[48] = Nt, t[49] = $, t[50] = ot, t[51] = O, t[52] = st, t[53] = V, t[54] = r, t[55] = f, t[56] = y) : y = t[56], y;
2161
+ timeline: st,
2162
+ naLabel: mt
2163
+ } = e, L = c === void 0 ? "vertical" : c;
2164
+ let g;
2165
+ return t[0] !== S || t[1] !== Ft || t[2] !== xt || t[3] !== yt || t[4] !== tt || t[5] !== W || t[6] !== h || t[7] !== Dt || t[8] !== rt || t[9] !== Xt || t[10] !== Lt || t[11] !== m || t[12] !== u || t[13] !== E || t[14] !== V || t[15] !== P || t[16] !== gt || t[17] !== n || t[18] !== q || t[19] !== D || t[20] !== T || t[21] !== f || t[22] !== d || t[23] !== Tt || t[24] !== ct || t[25] !== I || t[26] !== x || t[27] !== a || t[28] !== mt || t[29] !== Bt || t[30] !== s || t[31] !== H || t[32] !== L || t[33] !== dt || t[34] !== A || t[35] !== F || t[36] !== O || t[37] !== K || t[38] !== Yt || t[39] !== w || t[40] !== bt || t[41] !== Y || t[42] !== ut || t[43] !== et || t[44] !== U || t[45] !== Q || t[46] !== St || t[47] !== B || t[48] !== zt || t[49] !== $ || t[50] !== st || t[51] !== R || t[52] !== it || t[53] !== C || t[54] !== r || t[55] !== y ? (g = /* @__PURE__ */ i.jsx(bi, { orientation: L, data: m, graphTitle: D, colors: Xt, sources: St, graphDescription: gt, barPadding: tt, showTicks: ut, truncateBy: C, height: T, width: y, footNote: P, colorDomain: Dt, colorLegendTitle: rt, suffix: zt, prefix: F, showValues: et, padding: dt, backgroundColor: xt, leftMargin: Tt, rightMargin: w, sortParameter: Q, sortData: U, topMargin: it, bottomMargin: W, showLabels: Y, relativeHeight: K, tooltip: R, onSeriesMouseOver: H, refValues: O, graphID: q, maxValue: I, minValue: a, onSeriesMouseClick: s, graphDownload: n, dataDownload: u, language: d, labelOrder: f, minHeight: x, theme: $, maxBarThickness: ct, ariaLabel: Ft, resetSelectionOnDoubleClick: Yt, styles: B, detailsOnClick: E, barAxisTitle: yt, noOfTicks: Bt, valueColor: r, classNames: h, filterNA: V, animate: S, precision: A, customLayers: Lt, showColorScale: bt, timeline: st, naLabel: mt }), t[0] = S, t[1] = Ft, t[2] = xt, t[3] = yt, t[4] = tt, t[5] = W, t[6] = h, t[7] = Dt, t[8] = rt, t[9] = Xt, t[10] = Lt, t[11] = m, t[12] = u, t[13] = E, t[14] = V, t[15] = P, t[16] = gt, t[17] = n, t[18] = q, t[19] = D, t[20] = T, t[21] = f, t[22] = d, t[23] = Tt, t[24] = ct, t[25] = I, t[26] = x, t[27] = a, t[28] = mt, t[29] = Bt, t[30] = s, t[31] = H, t[32] = L, t[33] = dt, t[34] = A, t[35] = F, t[36] = O, t[37] = K, t[38] = Yt, t[39] = w, t[40] = bt, t[41] = Y, t[42] = ut, t[43] = et, t[44] = U, t[45] = Q, t[46] = St, t[47] = B, t[48] = zt, t[49] = $, t[50] = st, t[51] = R, t[52] = it, t[53] = C, t[54] = r, t[55] = y, t[56] = g) : g = t[56], g;
2166
2166
  }
2167
2167
  function Ro(e) {
2168
2168
  const t = xe.c(58), {
2169
2169
  data: m,
2170
- graphTitle: z,
2170
+ graphTitle: D,
2171
2171
  colors: Xt,
2172
2172
  sources: St,
2173
2173
  graphDescription: gt,
2174
- barPadding: et,
2175
- showTicks: dt,
2176
- leftMargin: V,
2177
- rightMargin: N,
2178
- topMargin: f,
2179
- bottomMargin: H,
2180
- truncateBy: zt,
2181
- showLabels: ct,
2182
- showValues: Nt,
2183
- backgroundColor: X,
2184
- suffix: it,
2185
- prefix: xt,
2186
- height: mt,
2174
+ barPadding: tt,
2175
+ showTicks: ut,
2176
+ leftMargin: C,
2177
+ rightMargin: T,
2178
+ topMargin: y,
2179
+ bottomMargin: P,
2180
+ truncateBy: Dt,
2181
+ showLabels: rt,
2182
+ showValues: zt,
2183
+ backgroundColor: F,
2184
+ suffix: et,
2185
+ prefix: dt,
2186
+ height: xt,
2187
2187
  width: Tt,
2188
2188
  footNote: w,
2189
- colorDomain: st,
2190
- colorLegendTitle: q,
2191
- padding: G,
2192
- tooltip: Q,
2193
- onSeriesMouseOver: O,
2194
- relativeHeight: Y,
2195
- refValues: M,
2196
- graphID: U,
2197
- maxValue: S,
2189
+ colorDomain: it,
2190
+ colorLegendTitle: W,
2191
+ padding: Y,
2192
+ tooltip: K,
2193
+ onSeriesMouseOver: R,
2194
+ relativeHeight: H,
2195
+ refValues: O,
2196
+ graphID: q,
2197
+ maxValue: I,
2198
2198
  onSeriesMouseClick: a,
2199
2199
  graphDownload: s,
2200
2200
  dataDownload: n,
2201
2201
  language: u,
2202
2202
  theme: d,
2203
- labelOrder: p,
2203
+ labelOrder: f,
2204
2204
  minHeight: x,
2205
2205
  maxBarThickness: $,
2206
- sortParameter: Z,
2207
- sortData: J,
2208
- maxNumberOfBars: ut,
2206
+ sortParameter: Q,
2207
+ sortData: U,
2208
+ maxNumberOfBars: ct,
2209
2209
  minBarThickness: Ft,
2210
2210
  ariaLabel: Yt,
2211
- resetSelectionOnDoubleClick: W,
2211
+ resetSelectionOnDoubleClick: E,
2212
2212
  detailsOnClick: yt,
2213
2213
  barAxisTitle: Bt,
2214
2214
  noOfTicks: r,
2215
2215
  valueColor: c,
2216
- orientation: F,
2216
+ orientation: B,
2217
2217
  styles: h,
2218
- classNames: L,
2219
- filterNA: B,
2218
+ classNames: V,
2219
+ filterNA: S,
2220
2220
  animate: A,
2221
- precision: jt,
2221
+ precision: Lt,
2222
2222
  customLayers: bt,
2223
- showColorScale: ot,
2224
- timeline: ht,
2225
- naLabel: j
2226
- } = e, y = F === void 0 ? "vertical" : F;
2227
- let _;
2228
- return t[0] !== A || t[1] !== Yt || t[2] !== X || t[3] !== Bt || t[4] !== et || t[5] !== H || t[6] !== L || t[7] !== st || t[8] !== q || t[9] !== Xt || t[10] !== bt || t[11] !== m || t[12] !== n || t[13] !== yt || t[14] !== B || t[15] !== w || t[16] !== gt || t[17] !== s || t[18] !== U || t[19] !== z || t[20] !== mt || t[21] !== p || t[22] !== u || t[23] !== V || t[24] !== $ || t[25] !== ut || t[26] !== S || t[27] !== Ft || t[28] !== x || t[29] !== j || t[30] !== r || t[31] !== a || t[32] !== O || t[33] !== y || t[34] !== G || t[35] !== jt || t[36] !== xt || t[37] !== M || t[38] !== Y || t[39] !== W || t[40] !== N || t[41] !== ot || t[42] !== ct || t[43] !== dt || t[44] !== Nt || t[45] !== J || t[46] !== Z || t[47] !== St || t[48] !== h || t[49] !== it || t[50] !== d || t[51] !== ht || t[52] !== Q || t[53] !== f || t[54] !== zt || t[55] !== c || t[56] !== Tt ? (_ = /* @__PURE__ */ i.jsx(qs, { data: m, graphTitle: z, colors: Xt, sources: St, graphDescription: gt, barPadding: et, showTicks: dt, leftMargin: V, rightMargin: N, topMargin: f, bottomMargin: H, truncateBy: zt, showLabels: ct, showValues: Nt, backgroundColor: X, suffix: it, prefix: xt, height: mt, width: Tt, footNote: w, colorDomain: st, colorLegendTitle: q, padding: G, tooltip: Q, onSeriesMouseOver: O, relativeHeight: Y, refValues: M, graphID: U, maxValue: S, onSeriesMouseClick: a, graphDownload: s, dataDownload: n, language: u, theme: d, labelOrder: p, minHeight: x, maxBarThickness: $, sortParameter: Z, sortData: J, maxNumberOfBars: ut, minBarThickness: Ft, ariaLabel: Yt, resetSelectionOnDoubleClick: W, styles: h, detailsOnClick: yt, barAxisTitle: Bt, noOfTicks: r, valueColor: c, classNames: L, filterNA: B, animate: A, precision: jt, customLayers: bt, showColorScale: ot, timeline: ht, naLabel: j, orientation: y }), t[0] = A, t[1] = Yt, t[2] = X, t[3] = Bt, t[4] = et, t[5] = H, t[6] = L, t[7] = st, t[8] = q, t[9] = Xt, t[10] = bt, t[11] = m, t[12] = n, t[13] = yt, t[14] = B, t[15] = w, t[16] = gt, t[17] = s, t[18] = U, t[19] = z, t[20] = mt, t[21] = p, t[22] = u, t[23] = V, t[24] = $, t[25] = ut, t[26] = S, t[27] = Ft, t[28] = x, t[29] = j, t[30] = r, t[31] = a, t[32] = O, t[33] = y, t[34] = G, t[35] = jt, t[36] = xt, t[37] = M, t[38] = Y, t[39] = W, t[40] = N, t[41] = ot, t[42] = ct, t[43] = dt, t[44] = Nt, t[45] = J, t[46] = Z, t[47] = St, t[48] = h, t[49] = it, t[50] = d, t[51] = ht, t[52] = Q, t[53] = f, t[54] = zt, t[55] = c, t[56] = Tt, t[57] = _) : _ = t[57], _;
2223
+ showColorScale: st,
2224
+ timeline: mt,
2225
+ naLabel: L
2226
+ } = e, g = B === void 0 ? "vertical" : B;
2227
+ let Z;
2228
+ return t[0] !== A || t[1] !== Yt || t[2] !== F || t[3] !== Bt || t[4] !== tt || t[5] !== P || t[6] !== V || t[7] !== it || t[8] !== W || t[9] !== Xt || t[10] !== bt || t[11] !== m || t[12] !== n || t[13] !== yt || t[14] !== S || t[15] !== w || t[16] !== gt || t[17] !== s || t[18] !== q || t[19] !== D || t[20] !== xt || t[21] !== f || t[22] !== u || t[23] !== C || t[24] !== $ || t[25] !== ct || t[26] !== I || t[27] !== Ft || t[28] !== x || t[29] !== L || t[30] !== r || t[31] !== a || t[32] !== R || t[33] !== g || t[34] !== Y || t[35] !== Lt || t[36] !== dt || t[37] !== O || t[38] !== H || t[39] !== E || t[40] !== T || t[41] !== st || t[42] !== rt || t[43] !== ut || t[44] !== zt || t[45] !== U || t[46] !== Q || t[47] !== St || t[48] !== h || t[49] !== et || t[50] !== d || t[51] !== mt || t[52] !== K || t[53] !== y || t[54] !== Dt || t[55] !== c || t[56] !== Tt ? (Z = /* @__PURE__ */ i.jsx(qs, { data: m, graphTitle: D, colors: Xt, sources: St, graphDescription: gt, barPadding: tt, showTicks: ut, leftMargin: C, rightMargin: T, topMargin: y, bottomMargin: P, truncateBy: Dt, showLabels: rt, showValues: zt, backgroundColor: F, suffix: et, prefix: dt, height: xt, width: Tt, footNote: w, colorDomain: it, colorLegendTitle: W, padding: Y, tooltip: K, onSeriesMouseOver: R, relativeHeight: H, refValues: O, graphID: q, maxValue: I, onSeriesMouseClick: a, graphDownload: s, dataDownload: n, language: u, theme: d, labelOrder: f, minHeight: x, maxBarThickness: $, sortParameter: Q, sortData: U, maxNumberOfBars: ct, minBarThickness: Ft, ariaLabel: Yt, resetSelectionOnDoubleClick: E, styles: h, detailsOnClick: yt, barAxisTitle: Bt, noOfTicks: r, valueColor: c, classNames: V, filterNA: S, animate: A, precision: Lt, customLayers: bt, showColorScale: st, timeline: mt, naLabel: L, orientation: g }), t[0] = A, t[1] = Yt, t[2] = F, t[3] = Bt, t[4] = tt, t[5] = P, t[6] = V, t[7] = it, t[8] = W, t[9] = Xt, t[10] = bt, t[11] = m, t[12] = n, t[13] = yt, t[14] = S, t[15] = w, t[16] = gt, t[17] = s, t[18] = q, t[19] = D, t[20] = xt, t[21] = f, t[22] = u, t[23] = C, t[24] = $, t[25] = ct, t[26] = I, t[27] = Ft, t[28] = x, t[29] = L, t[30] = r, t[31] = a, t[32] = R, t[33] = g, t[34] = Y, t[35] = Lt, t[36] = dt, t[37] = O, t[38] = H, t[39] = E, t[40] = T, t[41] = st, t[42] = rt, t[43] = ut, t[44] = zt, t[45] = U, t[46] = Q, t[47] = St, t[48] = h, t[49] = et, t[50] = d, t[51] = mt, t[52] = K, t[53] = y, t[54] = Dt, t[55] = c, t[56] = Tt, t[57] = Z) : Z = t[57], Z;
2229
2229
  }
2230
2230
  export {
2231
2231
  Wo as GroupedBarGraph,