@undp/data-viz 2.1.3 → 2.1.5

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