@undp/data-viz 2.2.2 → 2.2.3

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