@undp/data-viz 1.5.7 → 1.5.8

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 (74) hide show
  1. package/dist/BarGraph.cjs +1 -1
  2. package/dist/BarGraph.cjs.map +1 -1
  3. package/dist/BarGraph.js +650 -648
  4. package/dist/BarGraph.js.map +1 -1
  5. package/dist/BulletChart.cjs +1 -1
  6. package/dist/BulletChart.cjs.map +1 -1
  7. package/dist/BulletChart.js +210 -208
  8. package/dist/BulletChart.js.map +1 -1
  9. package/dist/ButterflyChart.cjs +1 -1
  10. package/dist/ButterflyChart.cjs.map +1 -1
  11. package/dist/ButterflyChart.js +42 -40
  12. package/dist/ButterflyChart.js.map +1 -1
  13. package/dist/DifferenceLineChart.cjs +1 -1
  14. package/dist/DifferenceLineChart.cjs.map +1 -1
  15. package/dist/DifferenceLineChart.js +122 -120
  16. package/dist/DifferenceLineChart.js.map +1 -1
  17. package/dist/DualAxisLineChart.cjs +1 -1
  18. package/dist/DualAxisLineChart.cjs.map +1 -1
  19. package/dist/DualAxisLineChart.js +133 -113
  20. package/dist/DualAxisLineChart.js.map +1 -1
  21. package/dist/DumbbellChart.cjs +1 -1
  22. package/dist/DumbbellChart.cjs.map +1 -1
  23. package/dist/DumbbellChart.js +274 -274
  24. package/dist/DumbbellChart.js.map +1 -1
  25. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  26. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  27. package/dist/LineChartWithConfidenceInterval.js +194 -174
  28. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  29. package/dist/MultiLineAltChart.cjs +1 -1
  30. package/dist/MultiLineAltChart.cjs.map +1 -1
  31. package/dist/MultiLineAltChart.js +160 -161
  32. package/dist/MultiLineAltChart.js.map +1 -1
  33. package/dist/MultiLineChart.cjs +1 -1
  34. package/dist/MultiLineChart.cjs.map +1 -1
  35. package/dist/MultiLineChart.js +77 -66
  36. package/dist/MultiLineChart.js.map +1 -1
  37. package/dist/ParetoChart.cjs +1 -1
  38. package/dist/ParetoChart.cjs.map +1 -1
  39. package/dist/ParetoChart.js +166 -161
  40. package/dist/ParetoChart.js.map +1 -1
  41. package/dist/RadarChart.cjs +1 -1
  42. package/dist/RadarChart.cjs.map +1 -1
  43. package/dist/RadarChart.js +253 -241
  44. package/dist/RadarChart.js.map +1 -1
  45. package/dist/{RegressionLine-mH7UKOPi.js → RegressionLine-C2--oMQq.js} +10 -9
  46. package/dist/RegressionLine-C2--oMQq.js.map +1 -0
  47. package/dist/RegressionLine-Dj0GSiAp.cjs +2 -0
  48. package/dist/RegressionLine-Dj0GSiAp.cjs.map +1 -0
  49. package/dist/ScatterPlot.cjs +1 -1
  50. package/dist/ScatterPlot.cjs.map +1 -1
  51. package/dist/ScatterPlot.js +130 -129
  52. package/dist/ScatterPlot.js.map +1 -1
  53. package/dist/SimpleLineChart.cjs +1 -1
  54. package/dist/SimpleLineChart.cjs.map +1 -1
  55. package/dist/SimpleLineChart.js +43 -38
  56. package/dist/SimpleLineChart.js.map +1 -1
  57. package/dist/SlopeChart.cjs +1 -1
  58. package/dist/SlopeChart.cjs.map +1 -1
  59. package/dist/SlopeChart.js +113 -109
  60. package/dist/SlopeChart.js.map +1 -1
  61. package/dist/StripChart.cjs +1 -1
  62. package/dist/StripChart.cjs.map +1 -1
  63. package/dist/StripChart.js +282 -270
  64. package/dist/StripChart.js.map +1 -1
  65. package/dist/UnitChart.cjs +1 -1
  66. package/dist/UnitChart.cjs.map +1 -1
  67. package/dist/UnitChart.js +20 -21
  68. package/dist/UnitChart.js.map +1 -1
  69. package/dist/getCentroidCoordinates-Dfk6IqEG.js.map +1 -1
  70. package/dist/getCentroidCoordinates-DxTBqzp2.cjs.map +1 -1
  71. package/package.json +1 -1
  72. package/dist/RegressionLine-mH7UKOPi.js.map +0 -1
  73. package/dist/RegressionLine-xKdiJ8sw.cjs +0 -2
  74. package/dist/RegressionLine-xKdiJ8sw.cjs.map +0 -1
package/dist/BarGraph.js CHANGED
@@ -25,12 +25,12 @@ import { GraphHeader as Ue } from "./GraphHeader.js";
25
25
  import { ColorLegendWithMouseOver as Je } from "./ColorLegendWithMouseOver.js";
26
26
  import { E as Ke } from "./EmptyState-DdTp-Mdn.js";
27
27
  import { P as Qe, f as Ze } from "./index-BmCqpO1B.js";
28
- import { c as lt, d as Te } from "./ensureCompleteData-DlmibgaI.js";
28
+ import { c as at, d as Te } from "./ensureCompleteData-DlmibgaI.js";
29
29
  import { u as Ae } from "./uniqBy-BHy4I8PK.js";
30
30
  import { s as et } from "./sort-DfK1b0F5.js";
31
31
  import { c as tt } from "./init-BhZylTFx.js";
32
32
  import { s as ke } from "./index-CeVNqhMO.js";
33
- import { g as at } from "./getTextColorBasedOnBgColor-B6Nk2WBf.js";
33
+ import { g as lt } from "./getTextColorBasedOnBgColor-B6Nk2WBf.js";
34
34
  import { X as ct } from "./XAxesLabels-loO78vUO.js";
35
35
  import { Y as dt } from "./YTicksAndGridLines-B6ah7CRf.js";
36
36
  function ht(ye) {
@@ -40,30 +40,30 @@ function ht(ye) {
40
40
  suffix: Y,
41
41
  prefix: V,
42
42
  barPadding: _,
43
- showValues: me,
44
- showTicks: ue,
45
- leftMargin: ge,
46
- truncateBy: Z,
43
+ showValues: ge,
44
+ showTicks: me,
45
+ leftMargin: xe,
46
+ truncateBy: ee,
47
47
  width: G,
48
- height: ie,
48
+ height: ae,
49
49
  colorDomain: N,
50
- rightMargin: re,
51
- topMargin: de,
50
+ rightMargin: oe,
51
+ topMargin: he,
52
52
  bottomMargin: j,
53
53
  showLabels: E,
54
54
  tooltip: J,
55
- onSeriesMouseOver: ee,
55
+ onSeriesMouseOver: te,
56
56
  refValues: v,
57
57
  selectedColor: p,
58
58
  highlightedDataPoints: B,
59
- maxValue: ae,
60
- minValue: le,
59
+ maxValue: le,
60
+ minValue: se,
61
61
  onSeriesMouseClick: K,
62
- labelOrder: te,
63
- rtl: se,
62
+ labelOrder: ie,
63
+ rtl: re,
64
64
  maxBarThickness: R,
65
- minBarThickness: xe,
66
- resetSelectionOnDoubleClick: ne,
65
+ minBarThickness: de,
66
+ resetSelectionOnDoubleClick: Q,
67
67
  detailsOnClick: $,
68
68
  barAxisTitle: y,
69
69
  valueColor: x,
@@ -78,17 +78,17 @@ function ht(ye) {
78
78
  } = ye, q = Me(null), T = _e(q, {
79
79
  once: O.once,
80
80
  amount: O.amount
81
- }), [F, oe] = L(void 0), [W, P] = L(void 0), [Q, M] = L(void 0), [H, u] = L(void 0), k = {
82
- top: y ? de + 25 : de,
81
+ }), [F, ne] = L(void 0), [W, P] = L(void 0), [Z, M] = L(void 0), [H, u] = L(void 0), k = {
82
+ top: y ? he + 25 : he,
83
83
  bottom: j,
84
- left: ge,
85
- right: re
86
- }, m = G - k.left - k.right, d = ie - k.top - k.bottom, h = n.map((l, f) => ({
84
+ left: xe,
85
+ right: oe
86
+ }, m = G - k.left - k.right, d = ae - k.top - k.bottom, h = n.map((l, f) => ({
87
87
  ...l,
88
- id: te ? `${l.label}` : `${f}`
89
- })), c = Ee().domain([le, ae]).range([0, m]).nice(), a = te || h.map((l) => `${l.id}`), s = Le().domain(a).range([
88
+ id: ie ? `${l.label}` : `${f}`
89
+ })), c = Ee().domain([se, le]).range([0, m]).nice(), a = ie || h.map((l) => `${l.id}`), s = Le().domain(a).range([
90
90
  0,
91
- xe ? Math.max(d, xe * a.length) : R ? Math.min(d, R * a.length) : d
91
+ de ? Math.max(d, de * a.length) : R ? Math.min(d, R * a.length) : d
92
92
  ]).paddingInner(_), t = c.ticks(C);
93
93
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
94
94
  /* @__PURE__ */ e.jsx(
@@ -96,16 +96,16 @@ function ht(ye) {
96
96
  {
97
97
  ref: q,
98
98
  width: `${G}px`,
99
- height: `${ie}px`,
100
- viewBox: `0 0 ${G} ${ie}`,
99
+ height: `${ae}px`,
100
+ viewBox: `0 0 ${G} ${ae}`,
101
101
  direction: "ltr",
102
102
  children: /* @__PURE__ */ e.jsxs("g", { transform: `translate(${k.left},${k.top})`, children: [
103
- ue ? /* @__PURE__ */ e.jsx(
103
+ me ? /* @__PURE__ */ e.jsx(
104
104
  st,
105
105
  {
106
106
  values: t.filter((l) => l !== 0),
107
107
  x: t.filter((l) => l !== 0).map((l) => c(l)),
108
- y1: 0 - de,
108
+ y1: 0 - he,
109
109
  y2: d + k.bottom,
110
110
  styles: {
111
111
  gridLines: z?.xAxis?.gridLines,
@@ -152,16 +152,16 @@ function ht(ye) {
152
152
  animate: T ? "whileInView" : "initial",
153
153
  exit: { opacity: 0, transition: { duration: O.duration } },
154
154
  onMouseEnter: (f) => {
155
- oe(l), u(f.clientY), M(f.clientX), ee?.(l);
155
+ ne(l), u(f.clientY), M(f.clientX), te?.(l);
156
156
  },
157
157
  onClick: () => {
158
- (K || $) && (Pe(W, l) && ne ? (P(void 0), K?.(void 0)) : (P(l), K?.(l)));
158
+ (K || $) && (Pe(W, l) && Q ? (P(void 0), K?.(void 0)) : (P(l), K?.(l)));
159
159
  },
160
160
  onMouseMove: (f) => {
161
- oe(l), u(f.clientY), M(f.clientX);
161
+ ne(l), u(f.clientY), M(f.clientX);
162
162
  },
163
163
  onMouseLeave: () => {
164
- oe(void 0), M(void 0), u(void 0), ee?.(void 0);
164
+ ne(void 0), M(void 0), u(void 0), te?.(void 0);
165
165
  },
166
166
  children: [
167
167
  l.size ? /* @__PURE__ */ e.jsx(
@@ -195,7 +195,7 @@ function ht(ye) {
195
195
  E ? /* @__PURE__ */ e.jsx(
196
196
  rt,
197
197
  {
198
- value: `${l.label}`.length < Z ? `${l.label}` : `${`${l.label}`.substring(0, Z)}...`,
198
+ value: `${l.label}`.length < ee ? `${l.label}` : `${`${l.label}`.substring(0, ee)}...`,
199
199
  y: s(l.id) || 0,
200
200
  x: (l.size || 0) < 0 ? c(0) : 0 - k.left,
201
201
  width: (l.size || 0) < 0 ? G - c(0) : c(0) + k.left,
@@ -207,7 +207,7 @@ function ht(ye) {
207
207
  isInView: T
208
208
  }
209
209
  ) : null,
210
- me ? /* @__PURE__ */ e.jsx(
210
+ ge ? /* @__PURE__ */ e.jsx(
211
211
  pe.text,
212
212
  {
213
213
  style: {
@@ -253,8 +253,8 @@ function ht(ye) {
253
253
  /* @__PURE__ */ e.jsx(
254
254
  Ye,
255
255
  {
256
- x1: c(le < 0 ? 0 : le),
257
- x2: c(le < 0 ? 0 : le),
256
+ x1: c(se < 0 ? 0 : se),
257
+ x2: c(se < 0 ? 0 : se),
258
258
  y1: -2.5,
259
259
  y2: d + k.bottom,
260
260
  classNames: { axis: D?.yAxis?.axis },
@@ -269,7 +269,7 @@ function ht(ye) {
269
269
  x: c(l.value),
270
270
  y1: 0 - k.top,
271
271
  y2: d + k.bottom,
272
- textSide: c(l.value) > m * 0.75 || se ? "left" : "right",
272
+ textSide: c(l.value) > m * 0.75 || re ? "left" : "right",
273
273
  classNames: l.classNames,
274
274
  styles: l.styles,
275
275
  animate: O,
@@ -282,12 +282,12 @@ function ht(ye) {
282
282
  ] })
283
283
  }
284
284
  ),
285
- F && J && Q && H ? /* @__PURE__ */ e.jsx(
285
+ F && J && Z && H ? /* @__PURE__ */ e.jsx(
286
286
  We,
287
287
  {
288
288
  data: F,
289
289
  body: J,
290
- xPos: Q,
290
+ xPos: Z,
291
291
  yPos: H,
292
292
  backgroundStyle: z?.tooltip,
293
293
  className: D?.tooltip
@@ -319,30 +319,30 @@ function ut(ye) {
319
319
  colors: Y,
320
320
  suffix: V = "",
321
321
  sources: _,
322
- prefix: me = "",
323
- graphDescription: ue,
324
- barPadding: ge = 0.25,
325
- showValues: Z = !0,
322
+ prefix: ge = "",
323
+ graphDescription: me,
324
+ barPadding: xe = 0.25,
325
+ showValues: ee = !0,
326
326
  showTicks: G = !0,
327
- leftMargin: ie = 100,
327
+ leftMargin: ae = 100,
328
328
  rightMargin: N = 40,
329
- truncateBy: re = 999,
330
- height: de,
329
+ truncateBy: oe = 999,
330
+ height: he,
331
331
  width: j,
332
332
  footNote: E,
333
333
  colorDomain: J,
334
- colorLegendTitle: ee,
334
+ colorLegendTitle: te,
335
335
  highlightedDataPoints: v = [],
336
336
  padding: p,
337
337
  backgroundColor: B = !1,
338
- topMargin: ae = 25,
339
- bottomMargin: le = 10,
338
+ topMargin: le = 25,
339
+ bottomMargin: se = 10,
340
340
  showLabels: K = !0,
341
- relativeHeight: te,
342
- tooltip: se,
341
+ relativeHeight: ie,
342
+ tooltip: re,
343
343
  onSeriesMouseOver: R,
344
- refValues: xe,
345
- showColorScale: ne = !0,
344
+ refValues: de,
345
+ showColorScale: Q = !0,
346
346
  graphID: $,
347
347
  maxValue: y,
348
348
  minValue: x,
@@ -357,10 +357,10 @@ function ut(ye) {
357
357
  theme: q = "light",
358
358
  maxBarThickness: T,
359
359
  maxNumberOfBars: F,
360
- minBarThickness: oe,
360
+ minBarThickness: ne,
361
361
  ariaLabel: W,
362
362
  resetSelectionOnDoubleClick: P = !0,
363
- detailsOnClick: Q,
363
+ detailsOnClick: Z,
364
364
  barAxisTitle: M,
365
365
  noOfTicks: H = 5,
366
366
  valueColor: u,
@@ -373,28 +373,28 @@ function ut(ye) {
373
373
  customLayers: s = [],
374
374
  timeline: t = { enabled: !1, autoplay: !1, showOnlyActiveDate: !0 },
375
375
  naLabel: l = "NA"
376
- } = ye, [f, Ce] = L(0), [ce, U] = L(0), [fe, Oe] = L(t.autoplay), he = et(
376
+ } = ye, [f, Ce] = L(0), [ce, U] = L(0), [fe, Oe] = L(t.autoplay), ue = et(
377
377
  Ae(n, "date", !0).map(
378
378
  (r) => Se(`${r}`, t.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()
379
379
  ),
380
380
  (r, we) => tt(r, we)
381
- ), [be, ve] = L(t.autoplay ? 0 : he.length - 1), [Ne, o] = L(void 0), i = Me(null), S = Me(null);
381
+ ), [be, ve] = L(t.autoplay ? 0 : ue.length - 1), [Ne, o] = L(void 0), i = Me(null), S = Me(null);
382
382
  Ve(() => {
383
383
  const r = new ResizeObserver((we) => {
384
- Ce(j || we[0].target.clientWidth || 620), U(de || we[0].target.clientHeight || 480);
384
+ Ce(j || we[0].target.clientWidth || 620), U(he || we[0].target.clientHeight || 480);
385
385
  });
386
386
  return i.current && (U(i.current.clientHeight || 480), Ce(i.current.clientWidth || 620), j || r.observe(i.current)), () => r.disconnect();
387
- }, [j, de]), Ve(() => {
387
+ }, [j, he]), Ve(() => {
388
388
  const r = setInterval(
389
389
  () => {
390
- ve((we) => we < he.length - 1 ? we + 1 : 0);
390
+ ve((we) => we < ue.length - 1 ? we + 1 : 0);
391
391
  },
392
392
  (t.speed || 2) * 1e3
393
393
  );
394
394
  return fe || clearInterval(r), () => clearInterval(r);
395
- }, [he, fe, t.speed]);
395
+ }, [ue, fe, t.speed]);
396
396
  const it = Be(
397
- he,
397
+ ue,
398
398
  be,
399
399
  t.showOnlyActiveDate,
400
400
  t.dateFormat || "yyyy"
@@ -418,14 +418,14 @@ function ut(ye) {
418
418
  },
419
419
  id: $,
420
420
  ref: S,
421
- "aria-label": W || `${g ? `The graph shows ${g}. ` : ""}This is a bar chart. ${ue ? ` ${ue}` : ""}`,
421
+ "aria-label": W || `${g ? `The graph shows ${g}. ` : ""}This is a bar chart. ${me ? ` ${me}` : ""}`,
422
422
  children: /* @__PURE__ */ e.jsx(
423
423
  "div",
424
424
  {
425
425
  className: "flex grow",
426
426
  style: { padding: B ? p || "1rem" : p || 0 },
427
427
  children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
428
- g || ue || z || D ? /* @__PURE__ */ e.jsx(
428
+ g || me || z || D ? /* @__PURE__ */ e.jsx(
429
429
  Ue,
430
430
  {
431
431
  styles: {
@@ -437,13 +437,13 @@ function ut(ye) {
437
437
  description: m?.description
438
438
  },
439
439
  graphTitle: g,
440
- graphDescription: ue,
440
+ graphDescription: me,
441
441
  width: j,
442
442
  graphDownload: z ? S.current : void 0,
443
443
  dataDownload: D ? n.map((r) => r.data).filter((r) => r !== void 0).length > 0 ? n.map((r) => r.data).filter((r) => r !== void 0) : n.filter((r) => r !== void 0) : null
444
444
  }
445
445
  ) : null,
446
- t.enabled && he.length > 0 && it ? /* @__PURE__ */ e.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
446
+ t.enabled && ue.length > 0 && it ? /* @__PURE__ */ e.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
447
447
  /* @__PURE__ */ e.jsx(
448
448
  "button",
449
449
  {
@@ -459,28 +459,28 @@ function ut(ye) {
459
459
  /* @__PURE__ */ e.jsx(
460
460
  Fe,
461
461
  {
462
- min: he[0],
463
- max: he[he.length - 1],
462
+ min: ue[0],
463
+ max: ue[ue.length - 1],
464
464
  marks: it,
465
465
  step: null,
466
- defaultValue: he[he.length - 1],
467
- value: he[be],
466
+ defaultValue: ue[ue.length - 1],
467
+ value: ue[be],
468
468
  onChangeComplete: (r) => {
469
- ve(he.indexOf(r));
469
+ ve(ue.indexOf(r));
470
470
  },
471
471
  onChange: (r) => {
472
- ve(he.indexOf(r));
472
+ ve(ue.indexOf(r));
473
473
  },
474
474
  "aria-label": "Time slider. Use arrow keys to adjust selected time period."
475
475
  }
476
476
  )
477
477
  ] }) : null,
478
478
  /* @__PURE__ */ e.jsx("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: n.length === 0 ? /* @__PURE__ */ e.jsx(Ke, {}) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
479
- ne && n.filter((r) => r.color).length !== 0 ? /* @__PURE__ */ e.jsx(
479
+ Q && n.filter((r) => r.color).length !== 0 ? /* @__PURE__ */ e.jsx(
480
480
  Je,
481
481
  {
482
482
  width: j,
483
- colorLegendTitle: ee,
483
+ colorLegendTitle: te,
484
484
  colors: Y || je[q].categoricalColors.colors,
485
485
  colorDomain: J || Ae(n, "color", !0),
486
486
  setSelectedColor: o,
@@ -493,13 +493,13 @@ function ut(ye) {
493
493
  className: "flex grow flex-col justify-center w-full leading-0",
494
494
  ref: i,
495
495
  "aria-label": "Graph area",
496
- children: (j || f) && (de || ce) ? /* @__PURE__ */ e.jsx(
496
+ children: (j || f) && (he || ce) ? /* @__PURE__ */ e.jsx(
497
497
  ht,
498
498
  {
499
499
  data: O ? Ie(
500
- lt(n, t.dateFormat || "yyyy").filter(
500
+ at(n, t.dateFormat || "yyyy").filter(
501
501
  (r) => t.enabled ? r.date === $e(
502
- new Date(he[be]),
502
+ new Date(ue[be]),
503
503
  t.dateFormat || "yyyy"
504
504
  ) : r
505
505
  ).filter((r) => d ? !X(r.size) : r),
@@ -507,9 +507,9 @@ function ut(ye) {
507
507
  (r) => r.size === void 0 ? O === "asc" ? 1 / 0 : -1 / 0 : r.size
508
508
  ],
509
509
  [O]
510
- ).filter((r, we) => F ? we < F : !0) : lt(n, t.dateFormat || "yyyy").filter(
510
+ ).filter((r, we) => F ? we < F : !0) : at(n, t.dateFormat || "yyyy").filter(
511
511
  (r) => t.enabled ? r.date === $e(
512
- new Date(he[be]),
512
+ new Date(ue[be]),
513
513
  t.dateFormat || "yyyy"
514
514
  ) : r
515
515
  ).filter((r) => d ? !X(r.size) : r).filter((r, we) => F ? we < F : !0),
@@ -519,22 +519,22 @@ function ut(ye) {
519
519
  selectedColor: Ne,
520
520
  height: Math.max(
521
521
  w,
522
- de || (te ? w ? (j || f) * te > w ? (j || f) * te : w : (j || f) * te : ce)
522
+ he || (ie ? w ? (j || f) * ie > w ? (j || f) * ie : w : (j || f) * ie : ce)
523
523
  ),
524
524
  suffix: V,
525
- prefix: me,
526
- barPadding: ge,
527
- showValues: Z,
525
+ prefix: ge,
526
+ barPadding: xe,
527
+ showValues: ee,
528
528
  showTicks: G,
529
- leftMargin: ie,
529
+ leftMargin: ae,
530
530
  rightMargin: N,
531
- topMargin: ae,
532
- bottomMargin: le,
533
- truncateBy: re,
531
+ topMargin: le,
532
+ bottomMargin: se,
533
+ truncateBy: oe,
534
534
  showLabels: K,
535
- tooltip: se,
535
+ tooltip: re,
536
536
  onSeriesMouseOver: R,
537
- refValues: xe,
537
+ refValues: de,
538
538
  maxValue: X(y) ? Math.max(
539
539
  ...n.filter((r) => !X(r.size)).map((r) => r.size)
540
540
  ) < 0 ? 0 : Math.max(
@@ -550,9 +550,9 @@ function ut(ye) {
550
550
  labelOrder: A,
551
551
  rtl: I === "he" || I === "ar",
552
552
  maxBarThickness: T,
553
- minBarThickness: oe,
553
+ minBarThickness: ne,
554
554
  resetSelectionOnDoubleClick: P,
555
- detailsOnClick: Q,
555
+ detailsOnClick: Z,
556
556
  barAxisTitle: M,
557
557
  noOfTicks: H,
558
558
  valueColor: u,
@@ -596,30 +596,30 @@ function mt(ye) {
596
596
  barPadding: Y,
597
597
  showTicks: V,
598
598
  leftMargin: _,
599
- truncateBy: me,
600
- width: ue,
601
- height: ge,
602
- suffix: Z,
599
+ truncateBy: ge,
600
+ width: me,
601
+ height: xe,
602
+ suffix: ee,
603
603
  prefix: G,
604
- showValues: ie,
604
+ showValues: ae,
605
605
  rightMargin: N,
606
- topMargin: re,
607
- bottomMargin: de,
606
+ topMargin: oe,
607
+ bottomMargin: he,
608
608
  showLabels: j,
609
609
  tooltip: E,
610
610
  onSeriesMouseOver: J,
611
- refValues: ee,
611
+ refValues: te,
612
612
  maxValue: v,
613
613
  minValue: p,
614
614
  onSeriesMouseClick: B,
615
- selectedColor: ae,
616
- rtl: le,
615
+ selectedColor: le,
616
+ rtl: se,
617
617
  labelOrder: K,
618
- maxBarThickness: te,
619
- resetSelectionOnDoubleClick: se,
618
+ maxBarThickness: ie,
619
+ resetSelectionOnDoubleClick: re,
620
620
  detailsOnClick: R,
621
- barAxisTitle: xe,
622
- valueColor: ne,
621
+ barAxisTitle: de,
622
+ valueColor: Q,
623
623
  noOfTicks: $,
624
624
  styles: y,
625
625
  classNames: x,
@@ -632,25 +632,25 @@ function mt(ye) {
632
632
  once: C.once,
633
633
  amount: C.amount
634
634
  }), w = {
635
- top: xe ? re + 25 : re,
636
- bottom: de,
635
+ top: de ? oe + 25 : oe,
636
+ bottom: he,
637
637
  left: _,
638
638
  right: N
639
- }, [q, T] = L(void 0), [F, oe] = L(void 0), [W, P] = L(void 0), [Q, M] = L(void 0), H = ue - w.left - w.right, u = ge - w.top - w.bottom, k = n.map((s, t) => ({
639
+ }, [q, T] = L(void 0), [F, ne] = L(void 0), [W, P] = L(void 0), [Z, M] = L(void 0), H = me - w.left - w.right, u = xe - w.top - w.bottom, k = n.map((s, t) => ({
640
640
  ...s,
641
641
  id: K ? `${s.label}` : `${t}`
642
642
  })), m = K || k.map((s) => `${s.id}`), d = Ee().domain([p, v]).range([0, H]).nice(), h = Le().domain(m).range([
643
643
  0,
644
- te ? Math.min(u, te * m.length) : u
644
+ ie ? Math.min(u, ie * m.length) : u
645
645
  ]).paddingInner(Y), c = Le().domain(n[0].size.map((s, t) => `${t}`)).range([0, h.bandwidth()]).paddingInner(0.1), a = d.ticks($);
646
646
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
647
647
  /* @__PURE__ */ e.jsx(
648
648
  pe.svg,
649
649
  {
650
650
  ref: I,
651
- width: `${ue}px`,
652
- height: `${ge}px`,
653
- viewBox: `0 0 ${ue} ${ge}`,
651
+ width: `${me}px`,
652
+ height: `${xe}px`,
653
+ viewBox: `0 0 ${me} ${xe}`,
654
654
  direction: "ltr",
655
655
  children: /* @__PURE__ */ e.jsxs("g", { transform: `translate(${w.left},${w.top})`, children: [
656
656
  V ? /* @__PURE__ */ e.jsx(
@@ -658,7 +658,7 @@ function mt(ye) {
658
658
  {
659
659
  values: a.filter((s) => s !== 0),
660
660
  x: a.filter((s) => s !== 0).map((s) => d(s)),
661
- y1: 0 - re,
661
+ y1: 0 - oe,
662
662
  y2: u + w.bottom,
663
663
  styles: {
664
664
  gridLines: y?.xAxis?.gridLines,
@@ -668,7 +668,7 @@ function mt(ye) {
668
668
  gridLines: x?.xAxis?.gridLines,
669
669
  labels: x?.xAxis?.labels
670
670
  },
671
- suffix: Z,
671
+ suffix: ee,
672
672
  prefix: G,
673
673
  labelType: "secondary",
674
674
  showGridLines: !0,
@@ -682,7 +682,7 @@ function mt(ye) {
682
682
  y: 0 - w.top + 15,
683
683
  style: y?.xAxis?.title,
684
684
  className: x?.xAxis?.title,
685
- text: xe
685
+ text: de
686
686
  }
687
687
  ),
688
688
  O.filter((s) => s.position === "before").map((s) => s.layer),
@@ -710,7 +710,7 @@ function mt(ye) {
710
710
  pe.g,
711
711
  {
712
712
  className: "undp-viz-g-with-hover",
713
- opacity: ae ? g[l] === ae ? 1 : 0.3 : 0.85,
713
+ opacity: le ? g[l] === le ? 1 : 0.3 : 0.85,
714
714
  onMouseEnter: (f) => {
715
715
  T({ ...s, sizeIndex: l }), M(f.clientY), P(f.clientX), J?.({ ...s, sizeIndex: l });
716
716
  },
@@ -721,7 +721,7 @@ function mt(ye) {
721
721
  T(void 0), P(void 0), M(void 0), J?.(void 0);
722
722
  },
723
723
  onClick: () => {
724
- (B || R) && (Pe(F, { ...s, sizeIndex: l }) && se ? (oe(void 0), B?.(void 0)) : (oe({ ...s, sizeIndex: l }), B && B({ ...s, sizeIndex: l })));
724
+ (B || R) && (Pe(F, { ...s, sizeIndex: l }) && re ? (ne(void 0), B?.(void 0)) : (ne({ ...s, sizeIndex: l }), B && B({ ...s, sizeIndex: l })));
725
725
  },
726
726
  children: [
727
727
  X(t) ? null : /* @__PURE__ */ e.jsx(
@@ -751,12 +751,11 @@ function mt(ye) {
751
751
  animate: b ? "whileInView" : "initial"
752
752
  }
753
753
  ),
754
- ie ? /* @__PURE__ */ e.jsx(
754
+ ae ? /* @__PURE__ */ e.jsx(
755
755
  pe.text,
756
756
  {
757
757
  y: c(`${l}`) + c.bandwidth() / 2,
758
758
  style: {
759
- fill: ne || g[l],
760
759
  textAnchor: t && t < 0 ? "end" : "start",
761
760
  ...y?.graphObjectValues || {}
762
761
  },
@@ -764,10 +763,11 @@ function mt(ye) {
764
763
  dx: t && t < 0 ? -5 : 5,
765
764
  dy: "0.33em",
766
765
  variants: {
767
- initial: { x: d(0), opacity: 0 },
766
+ initial: { x: d(0), opacity: 0, fill: Q || g[l] },
768
767
  whileInView: {
769
768
  x: d(t || 0),
770
769
  opacity: 1,
770
+ fill: Q || g[l],
771
771
  transition: { duration: C.duration }
772
772
  }
773
773
  },
@@ -777,7 +777,7 @@ function mt(ye) {
777
777
  opacity: 0,
778
778
  transition: { duration: C.duration }
779
779
  },
780
- children: ze(t, A, D, G, Z)
780
+ children: ze(t, A, D, G, ee)
781
781
  }
782
782
  ) : null
783
783
  ]
@@ -787,7 +787,7 @@ function mt(ye) {
787
787
  j ? /* @__PURE__ */ e.jsx(
788
788
  rt,
789
789
  {
790
- value: `${s.label}`.length < me ? `${s.label}` : `${`${s.label}`.substring(0, me)}...`,
790
+ value: `${s.label}`.length < ge ? `${s.label}` : `${`${s.label}`.substring(0, ge)}...`,
791
791
  y: 0,
792
792
  x: 0 - w.left,
793
793
  width: d(p < 0 ? 0 : p) + w.left,
@@ -814,7 +814,7 @@ function mt(ye) {
814
814
  styles: { axis: y?.yAxis?.axis }
815
815
  }
816
816
  ),
817
- ee ? /* @__PURE__ */ e.jsx(e.Fragment, { children: ee.map((s, t) => /* @__PURE__ */ e.jsx(
817
+ te ? /* @__PURE__ */ e.jsx(e.Fragment, { children: te.map((s, t) => /* @__PURE__ */ e.jsx(
818
818
  ot,
819
819
  {
820
820
  text: s.text,
@@ -822,7 +822,7 @@ function mt(ye) {
822
822
  x: d(s.value),
823
823
  y1: 0 - w.top,
824
824
  y2: u + w.bottom,
825
- textSide: d(s.value) > H * 0.75 || le ? "left" : "right",
825
+ textSide: d(s.value) > H * 0.75 || se ? "left" : "right",
826
826
  classNames: s.classNames,
827
827
  styles: s.styles,
828
828
  animate: C,
@@ -835,13 +835,13 @@ function mt(ye) {
835
835
  ] })
836
836
  }
837
837
  ),
838
- q && E && W && Q ? /* @__PURE__ */ e.jsx(
838
+ q && E && W && Z ? /* @__PURE__ */ e.jsx(
839
839
  We,
840
840
  {
841
841
  data: q,
842
842
  body: E,
843
843
  xPos: W,
844
- yPos: Q,
844
+ yPos: Z,
845
845
  backgroundStyle: y?.tooltip,
846
846
  className: x?.tooltip
847
847
  }
@@ -851,7 +851,7 @@ function mt(ye) {
851
851
  {
852
852
  open: F !== void 0,
853
853
  onClose: () => {
854
- oe(void 0);
854
+ ne(void 0);
855
855
  },
856
856
  children: /* @__PURE__ */ e.jsx(
857
857
  "div",
@@ -872,30 +872,30 @@ function gt(ye) {
872
872
  colors: Y = je.light.categoricalColors.colors,
873
873
  sources: V,
874
874
  graphDescription: _,
875
- barPadding: me = 0.25,
876
- showTicks: ue = !0,
877
- truncateBy: ge = 999,
878
- height: Z,
875
+ barPadding: ge = 0.25,
876
+ showTicks: me = !0,
877
+ truncateBy: xe = 999,
878
+ height: ee,
879
879
  width: G,
880
- footNote: ie,
880
+ footNote: ae,
881
881
  colorDomain: N,
882
- colorLegendTitle: re,
883
- suffix: de = "",
882
+ colorLegendTitle: oe,
883
+ suffix: he = "",
884
884
  prefix: j = "",
885
885
  showValues: E = !0,
886
886
  showColorScale: J = !0,
887
- padding: ee,
887
+ padding: te,
888
888
  backgroundColor: v = !1,
889
889
  leftMargin: p = 100,
890
890
  rightMargin: B = 40,
891
- topMargin: ae = 25,
892
- bottomMargin: le = 10,
891
+ topMargin: le = 25,
892
+ bottomMargin: se = 10,
893
893
  showLabels: K = !0,
894
- relativeHeight: te,
895
- tooltip: se,
894
+ relativeHeight: ie,
895
+ tooltip: re,
896
896
  onSeriesMouseOver: R,
897
- refValues: xe,
898
- graphID: ne,
897
+ refValues: de,
898
+ graphID: Q,
899
899
  maxValue: $,
900
900
  minValue: y,
901
901
  onSeriesMouseClick: x,
@@ -910,10 +910,10 @@ function gt(ye) {
910
910
  resetSelectionOnDoubleClick: q = !0,
911
911
  detailsOnClick: T,
912
912
  barAxisTitle: F,
913
- noOfTicks: oe = 5,
913
+ noOfTicks: ne = 5,
914
914
  valueColor: W,
915
915
  styles: P,
916
- classNames: Q,
916
+ classNames: Z,
917
917
  filterNA: M = !0,
918
918
  animate: H = !1,
919
919
  precision: u = 2,
@@ -927,13 +927,13 @@ function gt(ye) {
927
927
  (o) => Se(`${o}`, m.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()
928
928
  ),
929
929
  (o, i) => tt(o, i)
930
- ), [U, fe] = L(m.autoplay ? 0 : ce.length - 1), [Oe, he] = L(void 0), be = Me(null), ve = Me(null);
930
+ ), [U, fe] = L(m.autoplay ? 0 : ce.length - 1), [Oe, ue] = L(void 0), be = Me(null), ve = Me(null);
931
931
  Ve(() => {
932
932
  const o = new ResizeObserver((i) => {
933
- s(G || i[0].target.clientWidth || 620), l(Z || i[0].target.clientHeight || 480);
933
+ s(G || i[0].target.clientWidth || 620), l(ee || i[0].target.clientHeight || 480);
934
934
  });
935
935
  return be.current && (l(be.current.clientHeight || 480), s(be.current.clientWidth || 620), G || o.observe(be.current)), () => o.disconnect();
936
- }, [G, Z]), Ve(() => {
936
+ }, [G, ee]), Ve(() => {
937
937
  const o = setInterval(
938
938
  () => {
939
939
  fe((i) => i < ce.length - 1 ? i + 1 : 0);
@@ -959,20 +959,20 @@ function gt(ye) {
959
959
  className: De(
960
960
  `${v ? v === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${D || "en"}`,
961
961
  G ? "w-fit" : "w-full",
962
- Q?.graphContainer
962
+ Z?.graphContainer
963
963
  ),
964
964
  style: {
965
965
  ...P?.graphContainer || {},
966
966
  ...v && v !== !0 ? { backgroundColor: v } : {}
967
967
  },
968
- id: ne,
968
+ id: Q,
969
969
  ref: ve,
970
970
  "aria-label": w || `${g ? `The graph shows ${g}. ` : ""}This is a grouped bar chart. ${_ ? ` ${_}` : ""}`,
971
971
  children: /* @__PURE__ */ e.jsx(
972
972
  "div",
973
973
  {
974
974
  className: "flex grow",
975
- style: { padding: v ? ee || "1rem" : ee || 0 },
975
+ style: { padding: v ? te || "1rem" : te || 0 },
976
976
  children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 w-full grow justify-between", children: [
977
977
  g || _ || C || z ? /* @__PURE__ */ e.jsx(
978
978
  Ue,
@@ -982,8 +982,8 @@ function gt(ye) {
982
982
  description: P?.description
983
983
  },
984
984
  classNames: {
985
- title: Q?.title,
986
- description: Q?.description
985
+ title: Z?.title,
986
+ description: Z?.description
987
987
  },
988
988
  graphTitle: g,
989
989
  graphDescription: _,
@@ -1031,12 +1031,12 @@ function gt(ye) {
1031
1031
  width: G,
1032
1032
  colorDomain: N,
1033
1033
  colors: Y,
1034
- colorLegendTitle: re,
1035
- setSelectedColor: he,
1034
+ colorLegendTitle: oe,
1035
+ setSelectedColor: ue,
1036
1036
  showNAColor: !1
1037
1037
  }
1038
1038
  ) : null,
1039
- /* @__PURE__ */ e.jsx("div", { className: "w-full grow leading-0", ref: be, "aria-label": "Graph area", children: (G || a) && (Z || t) ? /* @__PURE__ */ e.jsx(
1039
+ /* @__PURE__ */ e.jsx("div", { className: "w-full grow leading-0", ref: be, "aria-label": "Graph area", children: (G || a) && (ee || t) ? /* @__PURE__ */ e.jsx(
1040
1040
  mt,
1041
1041
  {
1042
1042
  data: h !== void 0 ? h === "total" ? Ie(
@@ -1075,22 +1075,22 @@ function gt(ye) {
1075
1075
  width: G || a,
1076
1076
  height: Math.max(
1077
1077
  A,
1078
- Z || (te ? A ? (G || a) * te > A ? (G || a) * te : A : (G || a) * te : t)
1078
+ ee || (ie ? A ? (G || a) * ie > A ? (G || a) * ie : A : (G || a) * ie : t)
1079
1079
  ),
1080
- suffix: de,
1080
+ suffix: he,
1081
1081
  prefix: j,
1082
1082
  showValues: E,
1083
- barPadding: me,
1084
- showTicks: ue,
1083
+ barPadding: ge,
1084
+ showTicks: me,
1085
1085
  leftMargin: p,
1086
1086
  rightMargin: B,
1087
- topMargin: ae,
1088
- bottomMargin: le,
1089
- truncateBy: ge,
1087
+ topMargin: le,
1088
+ bottomMargin: se,
1089
+ truncateBy: xe,
1090
1090
  showLabels: K,
1091
- tooltip: se,
1091
+ tooltip: re,
1092
1092
  onSeriesMouseOver: R,
1093
- refValues: xe,
1093
+ refValues: de,
1094
1094
  maxValue: X($) ? Math.max(
1095
1095
  ...n.map(
1096
1096
  (o) => Math.max(
@@ -1133,10 +1133,10 @@ function gt(ye) {
1133
1133
  resetSelectionOnDoubleClick: q,
1134
1134
  detailsOnClick: T,
1135
1135
  barAxisTitle: F,
1136
- noOfTicks: oe,
1136
+ noOfTicks: ne,
1137
1137
  valueColor: W,
1138
1138
  styles: P,
1139
- classNames: Q,
1139
+ classNames: Z,
1140
1140
  colorDomain: N,
1141
1141
  animate: H === !0 ? { duration: 0.5, once: !0, amount: 0.5 } : H || { duration: 0, once: !0, amount: 0 },
1142
1142
  precision: u,
@@ -1145,16 +1145,16 @@ function gt(ye) {
1145
1145
  }
1146
1146
  ) : null })
1147
1147
  ] }) }),
1148
- V || ie ? /* @__PURE__ */ e.jsx(
1148
+ V || ae ? /* @__PURE__ */ e.jsx(
1149
1149
  qe,
1150
1150
  {
1151
1151
  styles: { footnote: P?.footnote, source: P?.source },
1152
1152
  classNames: {
1153
- footnote: Q?.footnote,
1154
- source: Q?.source
1153
+ footnote: Z?.footnote,
1154
+ source: Z?.source
1155
1155
  },
1156
1156
  sources: V,
1157
- footNote: ie,
1157
+ footNote: ae,
1158
1158
  width: G
1159
1159
  }
1160
1160
  ) : null
@@ -1173,30 +1173,30 @@ function xt(ye) {
1173
1173
  barPadding: Y,
1174
1174
  showTicks: V,
1175
1175
  leftMargin: _,
1176
- rightMargin: me,
1177
- truncateBy: ue,
1178
- width: ge,
1179
- height: Z,
1176
+ rightMargin: ge,
1177
+ truncateBy: me,
1178
+ width: xe,
1179
+ height: ee,
1180
1180
  topMargin: G,
1181
- bottomMargin: ie,
1181
+ bottomMargin: ae,
1182
1182
  tooltip: N,
1183
- onSeriesMouseOver: re,
1184
- showLabels: de,
1183
+ onSeriesMouseOver: oe,
1184
+ showLabels: he,
1185
1185
  suffix: j,
1186
1186
  prefix: E,
1187
1187
  showValues: J,
1188
- refValues: ee,
1188
+ refValues: te,
1189
1189
  maxValue: v,
1190
1190
  onSeriesMouseClick: p,
1191
1191
  selectedColor: B,
1192
- rtl: ae,
1193
- labelOrder: le,
1192
+ rtl: le,
1193
+ labelOrder: se,
1194
1194
  maxBarThickness: K,
1195
- minBarThickness: te,
1196
- resetSelectionOnDoubleClick: se,
1195
+ minBarThickness: ie,
1196
+ resetSelectionOnDoubleClick: re,
1197
1197
  detailsOnClick: R,
1198
- barAxisTitle: xe,
1199
- valueColor: ne,
1198
+ barAxisTitle: de,
1199
+ valueColor: Q,
1200
1200
  noOfTicks: $,
1201
1201
  styles: y,
1202
1202
  classNames: x,
@@ -1209,25 +1209,25 @@ function xt(ye) {
1209
1209
  once: C.once,
1210
1210
  amount: C.amount
1211
1211
  }), w = {
1212
- top: xe ? G + 25 : G,
1213
- bottom: ie,
1212
+ top: de ? G + 25 : G,
1213
+ bottom: ae,
1214
1214
  left: _,
1215
- right: me
1216
- }, [q, T] = L(void 0), [F, oe] = L(void 0), [W, P] = L(void 0), [Q, M] = L(void 0), H = ge - w.left - w.right, u = Z - w.top - w.bottom, k = n.map((a, s) => ({
1215
+ right: ge
1216
+ }, [q, T] = L(void 0), [F, ne] = L(void 0), [W, P] = L(void 0), [Z, M] = L(void 0), H = xe - w.left - w.right, u = ee - w.top - w.bottom, k = n.map((a, s) => ({
1217
1217
  ...a,
1218
- id: le ? `${a.label}` : `${s}`
1219
- })), m = le || k.map((a) => `${a.id}`), d = Ee().domain([0, v]).range([0, H]).nice(), h = Le().domain(m).range([
1218
+ id: se ? `${a.label}` : `${s}`
1219
+ })), m = se || k.map((a) => `${a.id}`), d = Ee().domain([0, v]).range([0, H]).nice(), h = Le().domain(m).range([
1220
1220
  0,
1221
- te ? Math.max(u, te * m.length) : K ? Math.min(u, K * m.length) : u
1221
+ ie ? Math.max(u, ie * m.length) : K ? Math.min(u, K * m.length) : u
1222
1222
  ]).paddingInner(Y), c = d.ticks($);
1223
1223
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1224
1224
  /* @__PURE__ */ e.jsx(
1225
1225
  pe.svg,
1226
1226
  {
1227
1227
  ref: I,
1228
- width: `${ge}px`,
1229
- height: `${Z}px`,
1230
- viewBox: `0 0 ${ge} ${Z}`,
1228
+ width: `${xe}px`,
1229
+ height: `${ee}px`,
1230
+ viewBox: `0 0 ${xe} ${ee}`,
1231
1231
  direction: "ltr",
1232
1232
  children: /* @__PURE__ */ e.jsxs("g", { transform: `translate(${w.left},${w.top})`, children: [
1233
1233
  V ? /* @__PURE__ */ e.jsx(
@@ -1259,7 +1259,7 @@ function xt(ye) {
1259
1259
  y: 0 - w.top + 15,
1260
1260
  style: y?.xAxis?.title,
1261
1261
  className: x?.xAxis?.title,
1262
- text: xe
1262
+ text: de
1263
1263
  }
1264
1264
  ),
1265
1265
  O.filter((a) => a.position === "before").map((a) => a.layer),
@@ -1286,16 +1286,16 @@ function xt(ye) {
1286
1286
  {
1287
1287
  opacity: B ? g[t] === B ? 1 : 0.3 : 1,
1288
1288
  onMouseEnter: (l) => {
1289
- T({ ...a, sizeIndex: t }), M(l.clientY), P(l.clientX), re?.({ ...a, sizeIndex: t });
1289
+ T({ ...a, sizeIndex: t }), M(l.clientY), P(l.clientX), oe?.({ ...a, sizeIndex: t });
1290
1290
  },
1291
1291
  onMouseMove: (l) => {
1292
1292
  T({ ...a, sizeIndex: t }), M(l.clientY), P(l.clientX);
1293
1293
  },
1294
1294
  onMouseLeave: () => {
1295
- T(void 0), P(void 0), M(void 0), re?.(void 0);
1295
+ T(void 0), P(void 0), M(void 0), oe?.(void 0);
1296
1296
  },
1297
1297
  onClick: () => {
1298
- (p || R) && (Pe(F, { ...a, sizeIndex: t }) && se ? (oe(void 0), p?.(void 0)) : (oe({ ...a, sizeIndex: t }), p && p({ ...a, sizeIndex: t })));
1298
+ (p || R) && (Pe(F, { ...a, sizeIndex: t }) && re ? (ne(void 0), p?.(void 0)) : (ne({ ...a, sizeIndex: t }), p && p({ ...a, sizeIndex: t })));
1299
1299
  },
1300
1300
  children: [
1301
1301
  s ? /* @__PURE__ */ e.jsx(
@@ -1347,14 +1347,14 @@ function xt(ye) {
1347
1347
  initial: {
1348
1348
  x: d(0),
1349
1349
  opacity: 0,
1350
- fill: at(g[t])
1350
+ fill: lt(g[t])
1351
1351
  },
1352
1352
  whileInView: {
1353
1353
  x: d(
1354
1354
  t === 0 ? 0 : ke(a.size.filter((l, f) => f < t && l))
1355
1355
  ) + d(s || 0) / 2,
1356
1356
  opacity: s && d(s) / ze(s, A, D, E, j).length > 12 ? 1 : 0,
1357
- fill: at(g[t]),
1357
+ fill: lt(g[t]),
1358
1358
  transition: { duration: C.duration }
1359
1359
  }
1360
1360
  },
@@ -1367,10 +1367,10 @@ function xt(ye) {
1367
1367
  },
1368
1368
  `${a.label}-${z[t] || t}`
1369
1369
  )),
1370
- de ? /* @__PURE__ */ e.jsx(
1370
+ he ? /* @__PURE__ */ e.jsx(
1371
1371
  rt,
1372
1372
  {
1373
- value: `${a.label}`.length < ue ? `${a.label}` : `${`${a.label}`.substring(0, ue)}...`,
1373
+ value: `${a.label}`.length < me ? `${a.label}` : `${`${a.label}`.substring(0, me)}...`,
1374
1374
  y: 0,
1375
1375
  x: 0 - w.left,
1376
1376
  width: 0 + w.left,
@@ -1386,11 +1386,11 @@ function xt(ye) {
1386
1386
  {
1387
1387
  className: De(
1388
1388
  "graph-value graph-value-total text-sm",
1389
- ne ? "" : " fill-primary-gray-700 dark:fill-primary-gray-300",
1389
+ Q ? "" : " fill-primary-gray-700 dark:fill-primary-gray-300",
1390
1390
  x?.graphObjectValues
1391
1391
  ),
1392
1392
  style: {
1393
- ...ne ? { fill: ne } : {},
1393
+ ...Q ? { fill: Q } : {},
1394
1394
  textAnchor: "start",
1395
1395
  ...y?.graphObjectValues || {}
1396
1396
  },
@@ -1400,11 +1400,13 @@ function xt(ye) {
1400
1400
  variants: {
1401
1401
  initial: {
1402
1402
  x: d(0),
1403
- opacity: 0
1403
+ opacity: 0,
1404
+ ...Q ? { fill: Q } : {}
1404
1405
  },
1405
1406
  whileInView: {
1406
1407
  x: d(ke(a.size.map((s) => s || 0))),
1407
1408
  opacity: 1,
1409
+ ...Q ? { fill: Q } : {},
1408
1410
  transition: { duration: C.duration }
1409
1411
  }
1410
1412
  },
@@ -1439,7 +1441,7 @@ function xt(ye) {
1439
1441
  styles: { axis: y?.yAxis?.axis }
1440
1442
  }
1441
1443
  ),
1442
- ee ? /* @__PURE__ */ e.jsx(e.Fragment, { children: ee.map((a, s) => /* @__PURE__ */ e.jsx(
1444
+ te ? /* @__PURE__ */ e.jsx(e.Fragment, { children: te.map((a, s) => /* @__PURE__ */ e.jsx(
1443
1445
  ot,
1444
1446
  {
1445
1447
  text: a.text,
@@ -1447,7 +1449,7 @@ function xt(ye) {
1447
1449
  x: d(a.value),
1448
1450
  y1: 0 - w.top,
1449
1451
  y2: u + w.bottom,
1450
- textSide: d(a.value) > H * 0.75 || ae ? "left" : "right",
1452
+ textSide: d(a.value) > H * 0.75 || le ? "left" : "right",
1451
1453
  classNames: a.classNames,
1452
1454
  styles: a.styles,
1453
1455
  animate: C,
@@ -1460,13 +1462,13 @@ function xt(ye) {
1460
1462
  ] })
1461
1463
  }
1462
1464
  ),
1463
- q && N && W && Q ? /* @__PURE__ */ e.jsx(
1465
+ q && N && W && Z ? /* @__PURE__ */ e.jsx(
1464
1466
  We,
1465
1467
  {
1466
1468
  data: q,
1467
1469
  body: N,
1468
1470
  xPos: W,
1469
- yPos: Q,
1471
+ yPos: Z,
1470
1472
  backgroundStyle: y?.tooltip,
1471
1473
  className: x?.tooltip
1472
1474
  }
@@ -1476,7 +1478,7 @@ function xt(ye) {
1476
1478
  {
1477
1479
  open: F !== void 0,
1478
1480
  onClose: () => {
1479
- oe(void 0);
1481
+ ne(void 0);
1480
1482
  },
1481
1483
  children: /* @__PURE__ */ e.jsx(
1482
1484
  "div",
@@ -1497,30 +1499,30 @@ function ft(ye) {
1497
1499
  colors: Y = je.light.categoricalColors.colors,
1498
1500
  sources: V,
1499
1501
  graphDescription: _,
1500
- barPadding: me = 0.25,
1501
- showTicks: ue = !0,
1502
- leftMargin: ge = 100,
1503
- rightMargin: Z = 40,
1502
+ barPadding: ge = 0.25,
1503
+ showTicks: me = !0,
1504
+ leftMargin: xe = 100,
1505
+ rightMargin: ee = 40,
1504
1506
  truncateBy: G = 999,
1505
- height: ie,
1507
+ height: ae,
1506
1508
  width: N,
1507
- footNote: re,
1508
- colorDomain: de,
1509
+ footNote: oe,
1510
+ colorDomain: he,
1509
1511
  colorLegendTitle: j,
1510
1512
  padding: E,
1511
1513
  backgroundColor: J = !1,
1512
- topMargin: ee = 25,
1514
+ topMargin: te = 25,
1513
1515
  bottomMargin: v = 10,
1514
1516
  tooltip: p,
1515
1517
  onSeriesMouseOver: B,
1516
- suffix: ae = "",
1517
- prefix: le = "",
1518
+ suffix: le = "",
1519
+ prefix: se = "",
1518
1520
  showLabels: K = !0,
1519
- relativeHeight: te,
1520
- showValues: se = !0,
1521
+ relativeHeight: ie,
1522
+ showValues: re = !0,
1521
1523
  refValues: R,
1522
- graphID: xe,
1523
- maxValue: ne,
1524
+ graphID: de,
1525
+ maxValue: Q,
1524
1526
  onSeriesMouseClick: $,
1525
1527
  graphDownload: y = !1,
1526
1528
  dataDownload: x = !1,
@@ -1535,10 +1537,10 @@ function ft(ye) {
1535
1537
  showColorScale: q = !0,
1536
1538
  ariaLabel: T,
1537
1539
  resetSelectionOnDoubleClick: F = !0,
1538
- detailsOnClick: oe,
1540
+ detailsOnClick: ne,
1539
1541
  barAxisTitle: W,
1540
1542
  noOfTicks: P = 5,
1541
- valueColor: Q,
1543
+ valueColor: Z,
1542
1544
  styles: M,
1543
1545
  classNames: H,
1544
1546
  filterNA: u = !0,
@@ -1553,13 +1555,13 @@ function ft(ye) {
1553
1555
  (i) => Se(`${i}`, h.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()
1554
1556
  ),
1555
1557
  (i, S) => tt(i, S)
1556
- ), [fe, Oe] = L(h.autoplay ? 0 : U.length - 1), [he, be] = L(void 0), ve = Me(null), Ne = Me(null);
1558
+ ), [fe, Oe] = L(h.autoplay ? 0 : U.length - 1), [ue, be] = L(void 0), ve = Me(null), Ne = Me(null);
1557
1559
  Ve(() => {
1558
1560
  const i = new ResizeObserver((S) => {
1559
- t(N || S[0].target.clientWidth || 620), f(ie || S[0].target.clientHeight || 480);
1561
+ t(N || S[0].target.clientWidth || 620), f(ae || S[0].target.clientHeight || 480);
1560
1562
  });
1561
1563
  return ve.current && (f(ve.current.clientHeight || 480), t(ve.current.clientWidth || 620), N || i.observe(ve.current)), () => i.disconnect();
1562
- }, [N, ie]), Ve(() => {
1564
+ }, [N, ae]), Ve(() => {
1563
1565
  const i = setInterval(
1564
1566
  () => {
1565
1567
  Oe((S) => S < U.length - 1 ? S + 1 : 0);
@@ -1591,7 +1593,7 @@ function ft(ye) {
1591
1593
  ...M?.graphContainer || {},
1592
1594
  ...J && J !== !0 ? { backgroundColor: J } : {}
1593
1595
  },
1594
- id: xe,
1596
+ id: de,
1595
1597
  ref: Ne,
1596
1598
  "aria-label": T || `${g ? `The graph shows ${g}. ` : ""}This is a stacked bar chart. ${_ ? ` ${_}` : ""}`,
1597
1599
  children: /* @__PURE__ */ e.jsx(
@@ -1655,14 +1657,14 @@ function ft(ye) {
1655
1657
  Je,
1656
1658
  {
1657
1659
  width: N,
1658
- colorDomain: de,
1660
+ colorDomain: he,
1659
1661
  colors: Y,
1660
1662
  colorLegendTitle: j,
1661
1663
  setSelectedColor: be,
1662
1664
  showNAColor: !1
1663
1665
  }
1664
1666
  ) : null,
1665
- /* @__PURE__ */ e.jsx("div", { className: "w-full grow leading-0", ref: ve, "aria-label": "Graph area", children: (N || s) && (ie || l) ? /* @__PURE__ */ e.jsx(
1667
+ /* @__PURE__ */ e.jsx("div", { className: "w-full grow leading-0", ref: ve, "aria-label": "Graph area", children: (N || s) && (ae || l) ? /* @__PURE__ */ e.jsx(
1666
1668
  xt,
1667
1669
  {
1668
1670
  data: I !== void 0 ? I === "total" ? Ie(
@@ -1706,49 +1708,49 @@ function ft(ye) {
1706
1708
  width: N || s,
1707
1709
  height: Math.max(
1708
1710
  D,
1709
- ie || (te ? D ? (N || s) * te > D ? (N || s) * te : D : (N || s) * te : l)
1711
+ ae || (ie ? D ? (N || s) * ie > D ? (N || s) * ie : D : (N || s) * ie : l)
1710
1712
  ),
1711
- barPadding: me,
1712
- showTicks: ue,
1713
- leftMargin: ge,
1714
- rightMargin: Z,
1715
- topMargin: ee,
1713
+ barPadding: ge,
1714
+ showTicks: me,
1715
+ leftMargin: xe,
1716
+ rightMargin: ee,
1717
+ topMargin: te,
1716
1718
  bottomMargin: v,
1717
1719
  truncateBy: G,
1718
1720
  showLabels: K,
1719
1721
  tooltip: p,
1720
1722
  onSeriesMouseOver: B,
1721
- showValues: se,
1722
- suffix: ae,
1723
- prefix: le,
1723
+ showValues: re,
1724
+ suffix: le,
1725
+ prefix: se,
1724
1726
  refValues: R,
1725
- maxValue: X(ne) ? Math.max(
1727
+ maxValue: X(Q) ? Math.max(
1726
1728
  ...n.map(
1727
1729
  (i) => ke(i.size.filter((S) => !X(S))) || 0
1728
1730
  )
1729
- ) : ne,
1731
+ ) : Q,
1730
1732
  onSeriesMouseClick: $,
1731
- selectedColor: he,
1733
+ selectedColor: ue,
1732
1734
  rtl: C === "he" || C === "ar",
1733
1735
  labelOrder: z,
1734
1736
  maxBarThickness: A,
1735
1737
  minBarThickness: w,
1736
1738
  resetSelectionOnDoubleClick: F,
1737
- detailsOnClick: oe,
1739
+ detailsOnClick: ne,
1738
1740
  barAxisTitle: W,
1739
1741
  noOfTicks: P,
1740
- valueColor: Q,
1742
+ valueColor: Z,
1741
1743
  classNames: H,
1742
1744
  styles: M,
1743
1745
  animate: k === !0 ? { duration: 0.5, once: !0, amount: 0.5 } : k || { duration: 0, once: !0, amount: 0 },
1744
- colorDomain: de,
1746
+ colorDomain: he,
1745
1747
  precision: m,
1746
1748
  customLayers: d,
1747
1749
  naLabel: c
1748
1750
  }
1749
1751
  ) : null })
1750
1752
  ] }) }),
1751
- V || re ? /* @__PURE__ */ e.jsx(
1753
+ V || oe ? /* @__PURE__ */ e.jsx(
1752
1754
  qe,
1753
1755
  {
1754
1756
  styles: { footnote: M?.footnote, source: M?.source },
@@ -1757,7 +1759,7 @@ function ft(ye) {
1757
1759
  source: H?.source
1758
1760
  },
1759
1761
  sources: V,
1760
- footNote: re,
1762
+ footNote: oe,
1761
1763
  width: N
1762
1764
  }
1763
1765
  ) : null
@@ -1776,30 +1778,30 @@ function pt(ye) {
1776
1778
  height: Y,
1777
1779
  barColor: V,
1778
1780
  suffix: _,
1779
- prefix: me,
1780
- barPadding: ue,
1781
- showLabels: ge,
1782
- showValues: Z,
1781
+ prefix: ge,
1782
+ barPadding: me,
1783
+ showLabels: xe,
1784
+ showValues: ee,
1783
1785
  showTicks: G,
1784
- colorDomain: ie,
1786
+ colorDomain: ae,
1785
1787
  truncateBy: N,
1786
- rightMargin: re,
1787
- topMargin: de,
1788
+ rightMargin: oe,
1789
+ topMargin: he,
1788
1790
  bottomMargin: j,
1789
1791
  leftMargin: E,
1790
1792
  tooltip: J,
1791
- onSeriesMouseOver: ee,
1793
+ onSeriesMouseOver: te,
1792
1794
  refValues: v,
1793
1795
  selectedColor: p,
1794
1796
  maxValue: B,
1795
- minValue: ae,
1796
- highlightedDataPoints: le,
1797
+ minValue: le,
1798
+ highlightedDataPoints: se,
1797
1799
  onSeriesMouseClick: K,
1798
- labelOrder: te,
1799
- maxBarThickness: se,
1800
+ labelOrder: ie,
1801
+ maxBarThickness: re,
1800
1802
  minBarThickness: R,
1801
- resetSelectionOnDoubleClick: xe,
1802
- detailsOnClick: ne,
1803
+ resetSelectionOnDoubleClick: de,
1804
+ detailsOnClick: Q,
1803
1805
  barAxisTitle: $,
1804
1806
  valueColor: y,
1805
1807
  noOfTicks: x,
@@ -1814,17 +1816,17 @@ function pt(ye) {
1814
1816
  once: O.once,
1815
1817
  amount: O.amount
1816
1818
  }), T = {
1817
- top: de,
1819
+ top: he,
1818
1820
  bottom: j,
1819
1821
  left: $ ? E + 30 : E,
1820
- right: re
1821
- }, [F, oe] = L(void 0), [W, P] = L(void 0), [Q, M] = L(void 0), [H, u] = L(void 0), k = g - T.left - T.right, m = Y - T.top - T.bottom, d = Ee().domain([ae, B]).range([m, 0]).nice(), h = n.map((t, l) => ({
1822
+ right: oe
1823
+ }, [F, ne] = L(void 0), [W, P] = L(void 0), [Z, M] = L(void 0), [H, u] = L(void 0), k = g - T.left - T.right, m = Y - T.top - T.bottom, d = Ee().domain([le, B]).range([m, 0]).nice(), h = n.map((t, l) => ({
1822
1824
  ...t,
1823
- id: te ? `${t.label}` : `${l}`
1824
- })), c = te || h.map((t) => `${t.id}`), a = Le().domain(c).range([
1825
+ id: ie ? `${t.label}` : `${l}`
1826
+ })), c = ie || h.map((t) => `${t.id}`), a = Le().domain(c).range([
1825
1827
  0,
1826
- R ? Math.max(k, R * c.length) : se ? Math.min(k, se * c.length) : k
1827
- ]).paddingInner(ue), s = d.ticks(x);
1828
+ R ? Math.max(k, R * c.length) : re ? Math.min(k, re * c.length) : k
1829
+ ]).paddingInner(me), s = d.ticks(x);
1828
1830
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1829
1831
  /* @__PURE__ */ e.jsx(
1830
1832
  pe.svg,
@@ -1838,22 +1840,22 @@ function pt(ye) {
1838
1840
  /* @__PURE__ */ e.jsx(
1839
1841
  Ye,
1840
1842
  {
1841
- y1: d(ae < 0 ? 0 : ae),
1842
- y2: d(ae < 0 ? 0 : ae),
1843
+ y1: d(le < 0 ? 0 : le),
1844
+ y2: d(le < 0 ? 0 : le),
1843
1845
  x1: 0 - E,
1844
1846
  x2: k + T.right,
1845
1847
  label: ze(
1846
- ae < 0 ? 0 : ae,
1848
+ le < 0 ? 0 : le,
1847
1849
  b,
1848
1850
  A,
1849
- me,
1851
+ ge,
1850
1852
  _
1851
1853
  ),
1852
1854
  labelPos: {
1853
1855
  x: 0 - E,
1854
1856
  dx: 0,
1855
1857
  dy: B < 0 ? "1em" : -5,
1856
- y: d(ae < 0 ? 0 : ae)
1858
+ y: d(le < 0 ? 0 : le)
1857
1859
  },
1858
1860
  classNames: {
1859
1861
  axis: z?.xAxis?.axis,
@@ -1878,7 +1880,7 @@ function pt(ye) {
1878
1880
  labels: z?.yAxis?.labels
1879
1881
  },
1880
1882
  suffix: _,
1881
- prefix: me,
1883
+ prefix: ge,
1882
1884
  labelType: "secondary",
1883
1885
  showGridLines: !0,
1884
1886
  labelPos: "vertical",
@@ -1907,25 +1909,25 @@ function pt(ye) {
1907
1909
  animate: q ? "whileInView" : "initial",
1908
1910
  variants: {
1909
1911
  initial: {
1910
- opacity: p ? t.color && V[ie.indexOf(t.color)] === p ? 1 : D : le.length !== 0 ? le.indexOf(t.label) !== -1 ? 0.85 : D : 0.85
1912
+ opacity: p ? t.color && V[ae.indexOf(t.color)] === p ? 1 : D : se.length !== 0 ? se.indexOf(t.label) !== -1 ? 0.85 : D : 0.85
1911
1913
  },
1912
1914
  whileInView: {
1913
- opacity: p ? t.color && V[ie.indexOf(t.color)] === p ? 1 : D : le.length !== 0 ? le.indexOf(t.label) !== -1 ? 0.85 : D : 0.85,
1915
+ opacity: p ? t.color && V[ae.indexOf(t.color)] === p ? 1 : D : se.length !== 0 ? se.indexOf(t.label) !== -1 ? 0.85 : D : 0.85,
1914
1916
  transition: { duration: O.duration }
1915
1917
  }
1916
1918
  },
1917
1919
  exit: { opacity: 0, transition: { duration: O.duration } },
1918
1920
  onMouseEnter: (f) => {
1919
- oe(t), u(f.clientY), M(f.clientX), ee?.(t);
1921
+ ne(t), u(f.clientY), M(f.clientX), te?.(t);
1920
1922
  },
1921
1923
  onClick: () => {
1922
- (K || ne) && (Pe(W, t) && xe ? (P(void 0), K?.(void 0)) : (P(t), K?.(t)));
1924
+ (K || Q) && (Pe(W, t) && de ? (P(void 0), K?.(void 0)) : (P(t), K?.(t)));
1923
1925
  },
1924
1926
  onMouseMove: (f) => {
1925
- oe(t), u(f.clientY), M(f.clientX);
1927
+ ne(t), u(f.clientY), M(f.clientX);
1926
1928
  },
1927
1929
  onMouseLeave: () => {
1928
- oe(void 0), M(void 0), u(void 0), ee?.(void 0);
1930
+ ne(void 0), M(void 0), u(void 0), te?.(void 0);
1929
1931
  },
1930
1932
  children: [
1931
1933
  t.size ? /* @__PURE__ */ e.jsx(
@@ -1939,13 +1941,13 @@ function pt(ye) {
1939
1941
  height: 0,
1940
1942
  x: a(`${t.id}`),
1941
1943
  y: d(0),
1942
- fill: n.filter((f) => f.color).length === 0 ? V[0] : t.color ? V[ie.indexOf(t.color)] : je.gray
1944
+ fill: n.filter((f) => f.color).length === 0 ? V[0] : t.color ? V[ae.indexOf(t.color)] : je.gray
1943
1945
  },
1944
1946
  whileInView: {
1945
1947
  height: t.size ? Math.abs(d(t.size) - d(0)) : 0,
1946
1948
  y: t.size && t.size > 0 ? d(t.size) : d(0),
1947
1949
  x: a(`${t.id}`),
1948
- fill: n.filter((f) => f.color).length === 0 ? V[0] : t.color ? V[ie.indexOf(t.color)] : je.gray,
1950
+ fill: n.filter((f) => f.color).length === 0 ? V[0] : t.color ? V[ae.indexOf(t.color)] : je.gray,
1949
1951
  transition: { duration: O.duration }
1950
1952
  }
1951
1953
  },
@@ -1956,7 +1958,7 @@ function pt(ye) {
1956
1958
  }
1957
1959
  }
1958
1960
  ) : null,
1959
- ge ? /* @__PURE__ */ e.jsx(
1961
+ xe ? /* @__PURE__ */ e.jsx(
1960
1962
  ct,
1961
1963
  {
1962
1964
  value: `${t.label}`.length < N ? `${t.label}` : `${`${t.label}`.substring(0, N)}...`,
@@ -1971,7 +1973,7 @@ function pt(ye) {
1971
1973
  isInView: q
1972
1974
  }
1973
1975
  ) : null,
1974
- Z ? /* @__PURE__ */ e.jsx(
1976
+ ee ? /* @__PURE__ */ e.jsx(
1975
1977
  pe.text,
1976
1978
  {
1977
1979
  style: {
@@ -1989,12 +1991,12 @@ function pt(ye) {
1989
1991
  x: a(`${t.id}`) + a.bandwidth() / 2,
1990
1992
  y: d(0),
1991
1993
  opacity: 0,
1992
- fill: y || (n.filter((f) => f.color).length === 0 ? V[0] : t.color ? V[ie.indexOf(t.color)] : je.gray)
1994
+ fill: y || (n.filter((f) => f.color).length === 0 ? V[0] : t.color ? V[ae.indexOf(t.color)] : je.gray)
1993
1995
  },
1994
1996
  whileInView: {
1995
1997
  x: a(`${t.id}`) + a.bandwidth() / 2,
1996
1998
  y: d(t.size || 0),
1997
- fill: y || (n.filter((f) => f.color).length === 0 ? V[0] : t.color ? V[ie.indexOf(t.color)] : je.gray),
1999
+ fill: y || (n.filter((f) => f.color).length === 0 ? V[0] : t.color ? V[ae.indexOf(t.color)] : je.gray),
1998
2000
  opacity: 1,
1999
2001
  transition: { duration: O.duration }
2000
2002
  }
@@ -2005,7 +2007,7 @@ function pt(ye) {
2005
2007
  opacity: 0,
2006
2008
  transition: { duration: O.duration }
2007
2009
  },
2008
- children: ze(t.size, b, A, me, _)
2010
+ children: ze(t.size, b, A, ge, _)
2009
2011
  }
2010
2012
  ) : null
2011
2013
  ]
@@ -2033,18 +2035,18 @@ function pt(ye) {
2033
2035
  ] })
2034
2036
  }
2035
2037
  ),
2036
- F && J && Q && H ? /* @__PURE__ */ e.jsx(
2038
+ F && J && Z && H ? /* @__PURE__ */ e.jsx(
2037
2039
  We,
2038
2040
  {
2039
2041
  data: F,
2040
2042
  body: J,
2041
- xPos: Q,
2043
+ xPos: Z,
2042
2044
  yPos: H,
2043
2045
  backgroundStyle: C?.tooltip,
2044
2046
  className: z?.tooltip
2045
2047
  }
2046
2048
  ) : null,
2047
- ne && W !== void 0 ? /* @__PURE__ */ e.jsx(
2049
+ Q && W !== void 0 ? /* @__PURE__ */ e.jsx(
2048
2050
  He,
2049
2051
  {
2050
2052
  open: W !== void 0,
@@ -2055,8 +2057,8 @@ function pt(ye) {
2055
2057
  "div",
2056
2058
  {
2057
2059
  className: "graph-modal-content m-0",
2058
- dangerouslySetInnerHTML: typeof ne == "string" ? { __html: Ge(ne, W) } : void 0,
2059
- children: typeof ne == "function" ? ne(W) : null
2060
+ dangerouslySetInnerHTML: typeof Q == "string" ? { __html: Ge(Q, W) } : void 0,
2061
+ children: typeof Q == "function" ? Q(W) : null
2060
2062
  }
2061
2063
  )
2062
2064
  }
@@ -2070,30 +2072,30 @@ function yt(ye) {
2070
2072
  colors: Y,
2071
2073
  barPadding: V = 0.25,
2072
2074
  showTicks: _ = !0,
2073
- leftMargin: me = 20,
2074
- rightMargin: ue = 20,
2075
- topMargin: ge = 20,
2076
- bottomMargin: Z = 25,
2075
+ leftMargin: ge = 20,
2076
+ rightMargin: me = 20,
2077
+ topMargin: xe = 20,
2078
+ bottomMargin: ee = 25,
2077
2079
  truncateBy: G = 999,
2078
- showLabels: ie = !0,
2080
+ showLabels: ae = !0,
2079
2081
  showValues: N = !0,
2080
- backgroundColor: re = !1,
2081
- suffix: de = "",
2082
+ backgroundColor: oe = !1,
2083
+ suffix: he = "",
2082
2084
  prefix: j = "",
2083
2085
  sources: E,
2084
2086
  graphDescription: J,
2085
- height: ee,
2087
+ height: te,
2086
2088
  width: v,
2087
2089
  footNote: p,
2088
2090
  colorDomain: B,
2089
- colorLegendTitle: ae,
2090
- padding: le,
2091
+ colorLegendTitle: le,
2092
+ padding: se,
2091
2093
  relativeHeight: K,
2092
- tooltip: te,
2093
- onSeriesMouseOver: se,
2094
+ tooltip: ie,
2095
+ onSeriesMouseOver: re,
2094
2096
  refValues: R,
2095
- showColorScale: xe = !0,
2096
- graphID: ne,
2097
+ showColorScale: de = !0,
2098
+ graphID: Q,
2097
2099
  maxValue: $,
2098
2100
  minValue: y,
2099
2101
  highlightedDataPoints: x = [],
@@ -2108,10 +2110,10 @@ function yt(ye) {
2108
2110
  minHeight: q = 0,
2109
2111
  maxBarThickness: T,
2110
2112
  maxNumberOfBars: F,
2111
- minBarThickness: oe,
2113
+ minBarThickness: ne,
2112
2114
  ariaLabel: W,
2113
2115
  resetSelectionOnDoubleClick: P = !0,
2114
- detailsOnClick: Q,
2116
+ detailsOnClick: Z,
2115
2117
  barAxisTitle: M,
2116
2118
  noOfTicks: H = 5,
2117
2119
  valueColor: u,
@@ -2124,28 +2126,28 @@ function yt(ye) {
2124
2126
  customLayers: s = [],
2125
2127
  timeline: t = { enabled: !1, autoplay: !1, showOnlyActiveDate: !0 },
2126
2128
  naLabel: l = "NA"
2127
- } = ye, [f, Ce] = L(0), [ce, U] = L(0), [fe, Oe] = L(t.autoplay), he = et(
2129
+ } = ye, [f, Ce] = L(0), [ce, U] = L(0), [fe, Oe] = L(t.autoplay), ue = et(
2128
2130
  Ae(n, "date", !0).map(
2129
2131
  (r) => Se(`${r}`, t.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()
2130
2132
  ),
2131
2133
  (r, we) => tt(r, we)
2132
- ), [be, ve] = L(t.autoplay ? 0 : he.length - 1), [Ne, o] = L(void 0), i = Me(null), S = Me(null);
2134
+ ), [be, ve] = L(t.autoplay ? 0 : ue.length - 1), [Ne, o] = L(void 0), i = Me(null), S = Me(null);
2133
2135
  Ve(() => {
2134
2136
  const r = new ResizeObserver((we) => {
2135
- Ce(v || we[0].target.clientWidth || 620), U(ee || we[0].target.clientHeight || 480);
2137
+ Ce(v || we[0].target.clientWidth || 620), U(te || we[0].target.clientHeight || 480);
2136
2138
  });
2137
2139
  return i.current && (U(i.current.clientHeight || 480), Ce(i.current.clientWidth || 620), v || r.observe(i.current)), () => r.disconnect();
2138
- }, [v, ee]), Ve(() => {
2140
+ }, [v, te]), Ve(() => {
2139
2141
  const r = setInterval(
2140
2142
  () => {
2141
- ve((we) => we < he.length - 1 ? we + 1 : 0);
2143
+ ve((we) => we < ue.length - 1 ? we + 1 : 0);
2142
2144
  },
2143
2145
  (t.speed || 2) * 1e3
2144
2146
  );
2145
2147
  return fe || clearInterval(r), () => clearInterval(r);
2146
- }, [he, fe, t.speed]);
2148
+ }, [ue, fe, t.speed]);
2147
2149
  const it = Be(
2148
- he,
2150
+ ue,
2149
2151
  be,
2150
2152
  t.showOnlyActiveDate,
2151
2153
  t.dateFormat || "yyyy"
@@ -2159,22 +2161,22 @@ function yt(ye) {
2159
2161
  "div",
2160
2162
  {
2161
2163
  className: De(
2162
- `${re ? re === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${O || "en"}`,
2164
+ `${oe ? oe === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${O || "en"}`,
2163
2165
  v ? "w-fit" : "w-full",
2164
2166
  m?.graphContainer
2165
2167
  ),
2166
2168
  style: {
2167
2169
  ...k?.graphContainer || {},
2168
- ...re && re !== !0 ? { backgroundColor: re } : {}
2170
+ ...oe && oe !== !0 ? { backgroundColor: oe } : {}
2169
2171
  },
2170
- id: ne,
2172
+ id: Q,
2171
2173
  ref: S,
2172
2174
  "aria-label": W || `${g ? `The graph shows ${g}. ` : ""}This is a grouped bar chart. ${J ? ` ${J}` : ""}`,
2173
2175
  children: /* @__PURE__ */ e.jsx(
2174
2176
  "div",
2175
2177
  {
2176
2178
  className: "flex grow",
2177
- style: { padding: re ? le || "1rem" : le || 0 },
2179
+ style: { padding: oe ? se || "1rem" : se || 0 },
2178
2180
  children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
2179
2181
  g || J || z || D ? /* @__PURE__ */ e.jsx(
2180
2182
  Ue,
@@ -2194,7 +2196,7 @@ function yt(ye) {
2194
2196
  dataDownload: D ? n.map((r) => r.data).filter((r) => r !== void 0).length > 0 ? n.map((r) => r.data).filter((r) => r !== void 0) : n.filter((r) => r !== void 0) : null
2195
2197
  }
2196
2198
  ) : null,
2197
- t.enabled && he.length > 0 && it ? /* @__PURE__ */ e.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
2199
+ t.enabled && ue.length > 0 && it ? /* @__PURE__ */ e.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
2198
2200
  /* @__PURE__ */ e.jsx(
2199
2201
  "button",
2200
2202
  {
@@ -2210,28 +2212,28 @@ function yt(ye) {
2210
2212
  /* @__PURE__ */ e.jsx(
2211
2213
  Fe,
2212
2214
  {
2213
- min: he[0],
2214
- max: he[he.length - 1],
2215
+ min: ue[0],
2216
+ max: ue[ue.length - 1],
2215
2217
  marks: it,
2216
2218
  step: null,
2217
- defaultValue: he[he.length - 1],
2218
- value: he[be],
2219
+ defaultValue: ue[ue.length - 1],
2220
+ value: ue[be],
2219
2221
  onChangeComplete: (r) => {
2220
- ve(he.indexOf(r));
2222
+ ve(ue.indexOf(r));
2221
2223
  },
2222
2224
  onChange: (r) => {
2223
- ve(he.indexOf(r));
2225
+ ve(ue.indexOf(r));
2224
2226
  },
2225
2227
  "aria-label": "Time slider. Use arrow keys to adjust selected time period."
2226
2228
  }
2227
2229
  )
2228
2230
  ] }) : null,
2229
2231
  /* @__PURE__ */ e.jsx("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: n.length === 0 ? /* @__PURE__ */ e.jsx(Ke, {}) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2230
- xe && n.filter((r) => r.color).length !== 0 ? /* @__PURE__ */ e.jsx(
2232
+ de && n.filter((r) => r.color).length !== 0 ? /* @__PURE__ */ e.jsx(
2231
2233
  Je,
2232
2234
  {
2233
2235
  width: v,
2234
- colorLegendTitle: ae,
2236
+ colorLegendTitle: le,
2235
2237
  colors: Y || je[A].categoricalColors.colors,
2236
2238
  colorDomain: B || Ae(n, "color", !0),
2237
2239
  setSelectedColor: o,
@@ -2244,13 +2246,13 @@ function yt(ye) {
2244
2246
  className: "flex grow flex-col justify-center w-full leading-0",
2245
2247
  ref: i,
2246
2248
  "aria-label": "Graph area",
2247
- children: (v || f) && (ee || ce) ? /* @__PURE__ */ e.jsx(
2249
+ children: (v || f) && (te || ce) ? /* @__PURE__ */ e.jsx(
2248
2250
  pt,
2249
2251
  {
2250
2252
  data: I ? Ie(
2251
- lt(n, t.dateFormat || "yyyy").filter(
2253
+ at(n, t.dateFormat || "yyyy").filter(
2252
2254
  (r) => t.enabled ? r.date === $e(
2253
- new Date(he[be]),
2255
+ new Date(ue[be]),
2254
2256
  t.dateFormat || "yyyy"
2255
2257
  ) : r
2256
2258
  ).filter((r) => d ? !X(r.size) : r),
@@ -2258,9 +2260,9 @@ function yt(ye) {
2258
2260
  (r) => r.size === void 0 ? I === "asc" ? -1 / 0 : 1 / 0 : r.size
2259
2261
  ],
2260
2262
  [I]
2261
- ).filter((r, we) => F ? we < F : !0) : lt(n, t.dateFormat || "yyyy").filter(
2263
+ ).filter((r, we) => F ? we < F : !0) : at(n, t.dateFormat || "yyyy").filter(
2262
2264
  (r) => t.enabled ? r.date === $e(
2263
- new Date(he[be]),
2265
+ new Date(ue[be]),
2264
2266
  t.dateFormat || "yyyy"
2265
2267
  ) : r
2266
2268
  ).filter((r) => d ? !X(r.size) : r).filter((r, we) => F ? we < F : !0),
@@ -2270,22 +2272,22 @@ function yt(ye) {
2270
2272
  refValues: R,
2271
2273
  height: Math.max(
2272
2274
  q,
2273
- ee || (K ? q ? (v || f) * K > q ? (v || f) * K : q : (v || f) * K : ce)
2275
+ te || (K ? q ? (v || f) * K > q ? (v || f) * K : q : (v || f) * K : ce)
2274
2276
  ),
2275
- suffix: de,
2277
+ suffix: he,
2276
2278
  prefix: j,
2277
2279
  barPadding: V,
2278
- showLabels: ie,
2280
+ showLabels: ae,
2279
2281
  showValues: N,
2280
2282
  showTicks: _,
2281
2283
  truncateBy: G,
2282
- leftMargin: me,
2283
- rightMargin: ue,
2284
+ leftMargin: ge,
2285
+ rightMargin: me,
2284
2286
  selectedColor: Ne,
2285
- topMargin: ge,
2286
- bottomMargin: Z,
2287
- tooltip: te,
2288
- onSeriesMouseOver: se,
2287
+ topMargin: xe,
2288
+ bottomMargin: ee,
2289
+ tooltip: ie,
2290
+ onSeriesMouseOver: re,
2289
2291
  maxValue: X($) ? Math.max(
2290
2292
  ...n.filter((r) => !X(r.size)).map((r) => r.size)
2291
2293
  ) < 0 ? 0 : Math.max(
@@ -2300,9 +2302,9 @@ function yt(ye) {
2300
2302
  onSeriesMouseClick: C,
2301
2303
  labelOrder: b,
2302
2304
  maxBarThickness: T,
2303
- minBarThickness: oe,
2305
+ minBarThickness: ne,
2304
2306
  resetSelectionOnDoubleClick: P,
2305
- detailsOnClick: Q,
2307
+ detailsOnClick: Z,
2306
2308
  barAxisTitle: M,
2307
2309
  noOfTicks: H,
2308
2310
  valueColor: u,
@@ -2346,30 +2348,30 @@ function bt(ye) {
2346
2348
  height: Y,
2347
2349
  barColors: V,
2348
2350
  suffix: _,
2349
- prefix: me,
2350
- barPadding: ue,
2351
- showLabels: ge,
2352
- showValues: Z,
2351
+ prefix: ge,
2352
+ barPadding: me,
2353
+ showLabels: xe,
2354
+ showValues: ee,
2353
2355
  showTicks: G,
2354
- truncateBy: ie,
2356
+ truncateBy: ae,
2355
2357
  leftMargin: N,
2356
- rightMargin: re,
2357
- topMargin: de,
2358
+ rightMargin: oe,
2359
+ topMargin: he,
2358
2360
  bottomMargin: j,
2359
2361
  tooltip: E,
2360
2362
  onSeriesMouseOver: J,
2361
- refValues: ee,
2363
+ refValues: te,
2362
2364
  maxValue: v,
2363
2365
  minValue: p,
2364
2366
  onSeriesMouseClick: B,
2365
- selectedColor: ae,
2366
- labelOrder: le,
2367
+ selectedColor: le,
2368
+ labelOrder: se,
2367
2369
  maxBarThickness: K,
2368
- resetSelectionOnDoubleClick: te,
2369
- detailsOnClick: se,
2370
+ resetSelectionOnDoubleClick: ie,
2371
+ detailsOnClick: re,
2370
2372
  barAxisTitle: R,
2371
- valueColor: xe,
2372
- noOfTicks: ne,
2373
+ valueColor: de,
2374
+ noOfTicks: Q,
2373
2375
  styles: $,
2374
2376
  classNames: y,
2375
2377
  animate: x,
@@ -2381,17 +2383,17 @@ function bt(ye) {
2381
2383
  once: x.once,
2382
2384
  amount: x.amount
2383
2385
  }), b = {
2384
- top: de,
2386
+ top: he,
2385
2387
  bottom: j,
2386
2388
  left: R ? N + 30 : N,
2387
- right: re
2388
- }, [w, q] = L(void 0), [T, F] = L(void 0), [oe, W] = L(void 0), [P, Q] = L(void 0), M = g - b.left - b.right, H = Y - b.top - b.bottom, u = Ee().domain([p, v]).range([H, 0]).nice(), k = n.map((a, s) => ({
2389
+ right: oe
2390
+ }, [w, q] = L(void 0), [T, F] = L(void 0), [ne, W] = L(void 0), [P, Z] = L(void 0), M = g - b.left - b.right, H = Y - b.top - b.bottom, u = Ee().domain([p, v]).range([H, 0]).nice(), k = n.map((a, s) => ({
2389
2391
  ...a,
2390
- id: le ? `${a.label}` : `${s}`
2391
- })), m = le || k.map((a) => `${a.id}`), d = Le().domain(m).range([
2392
+ id: se ? `${a.label}` : `${s}`
2393
+ })), m = se || k.map((a) => `${a.id}`), d = Le().domain(m).range([
2392
2394
  0,
2393
2395
  K ? Math.min(M, K * m.length) : M
2394
- ]).paddingInner(ue), h = Le().domain(n[0].size.map((a, s) => `${s}`)).range([0, d.bandwidth()]).paddingInner(0.1), c = u.ticks(ne);
2396
+ ]).paddingInner(me), h = Le().domain(n[0].size.map((a, s) => `${s}`)).range([0, d.bandwidth()]).paddingInner(0.1), c = u.ticks(Q);
2395
2397
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2396
2398
  /* @__PURE__ */ e.jsx(
2397
2399
  pe.svg,
@@ -2413,7 +2415,7 @@ function bt(ye) {
2413
2415
  p < 0 ? 0 : p,
2414
2416
  O,
2415
2417
  z,
2416
- me,
2418
+ ge,
2417
2419
  _
2418
2420
  ),
2419
2421
  labelPos: {
@@ -2445,7 +2447,7 @@ function bt(ye) {
2445
2447
  labels: y?.yAxis?.labels
2446
2448
  },
2447
2449
  suffix: _,
2448
- prefix: me,
2450
+ prefix: ge,
2449
2451
  labelType: "secondary",
2450
2452
  showGridLines: !0,
2451
2453
  labelPos: "vertical",
@@ -2488,18 +2490,18 @@ function bt(ye) {
2488
2490
  pe.g,
2489
2491
  {
2490
2492
  className: "undp-viz-g-with-hover",
2491
- opacity: ae ? V[t] === ae ? 1 : 0.3 : 0.85,
2493
+ opacity: le ? V[t] === le ? 1 : 0.3 : 0.85,
2492
2494
  onMouseEnter: (l) => {
2493
- q({ ...a, sizeIndex: t }), Q(l.clientY), W(l.clientX), J?.({ ...a, sizeIndex: t });
2495
+ q({ ...a, sizeIndex: t }), Z(l.clientY), W(l.clientX), J?.({ ...a, sizeIndex: t });
2494
2496
  },
2495
2497
  onMouseMove: (l) => {
2496
- q({ ...a, sizeIndex: t }), Q(l.clientY), W(l.clientX);
2498
+ q({ ...a, sizeIndex: t }), Z(l.clientY), W(l.clientX);
2497
2499
  },
2498
2500
  onMouseLeave: () => {
2499
- q(void 0), W(void 0), Q(void 0), J?.(void 0);
2501
+ q(void 0), W(void 0), Z(void 0), J?.(void 0);
2500
2502
  },
2501
2503
  onClick: () => {
2502
- (B || se) && (Pe(T, { ...a, sizeIndex: t }) && te ? (F(void 0), B?.(void 0)) : (F({ ...a, sizeIndex: t }), B && B({ ...a, sizeIndex: t })));
2504
+ (B || re) && (Pe(T, { ...a, sizeIndex: t }) && ie ? (F(void 0), B?.(void 0)) : (F({ ...a, sizeIndex: t }), B && B({ ...a, sizeIndex: t })));
2503
2505
  },
2504
2506
  children: [
2505
2507
  /* @__PURE__ */ e.jsx(
@@ -2529,22 +2531,22 @@ function bt(ye) {
2529
2531
  animate: I ? "whileInView" : "initial"
2530
2532
  }
2531
2533
  ),
2532
- Z ? /* @__PURE__ */ e.jsx(
2534
+ ee ? /* @__PURE__ */ e.jsx(
2533
2535
  pe.text,
2534
2536
  {
2535
2537
  x: h(`${t}`) + h.bandwidth() / 2,
2536
2538
  style: {
2537
- fill: xe || V[t],
2538
2539
  textAnchor: "middle",
2539
2540
  ...$?.graphObjectValues || {}
2540
2541
  },
2541
2542
  className: De("graph-value text-sm", y?.graphObjectValues),
2542
2543
  dy: s ? s >= 0 ? "-5px" : "1em" : "-5px",
2543
2544
  variants: {
2544
- initial: { y: u(0), opacity: 0 },
2545
+ initial: { y: u(0), opacity: 0, fill: de || V[t] },
2545
2546
  whileInView: {
2546
2547
  y: u(s || 0),
2547
2548
  opacity: 1,
2549
+ fill: de || V[t],
2548
2550
  transition: { duration: x.duration }
2549
2551
  }
2550
2552
  },
@@ -2554,17 +2556,17 @@ function bt(ye) {
2554
2556
  opacity: 0,
2555
2557
  transition: { duration: x.duration }
2556
2558
  },
2557
- children: ze(s, O, z, me, _)
2559
+ children: ze(s, O, z, ge, _)
2558
2560
  }
2559
2561
  ) : null
2560
2562
  ]
2561
2563
  },
2562
2564
  `${a.label}-${C[t] || t}`
2563
2565
  )),
2564
- ge ? /* @__PURE__ */ e.jsx(
2566
+ xe ? /* @__PURE__ */ e.jsx(
2565
2567
  ct,
2566
2568
  {
2567
- value: `${a.label}`.length < ie ? `${a.label}` : `${`${a.label}`.substring(0, ie)}...`,
2569
+ value: `${a.label}`.length < ae ? `${a.label}` : `${`${a.label}`.substring(0, ae)}...`,
2568
2570
  y: u(0) + 5,
2569
2571
  x: 0,
2570
2572
  width: d.bandwidth(),
@@ -2581,7 +2583,7 @@ function bt(ye) {
2581
2583
  a.label
2582
2584
  )
2583
2585
  ),
2584
- ee ? /* @__PURE__ */ e.jsx(e.Fragment, { children: ee.map((a, s) => /* @__PURE__ */ e.jsx(
2586
+ te ? /* @__PURE__ */ e.jsx(e.Fragment, { children: te.map((a, s) => /* @__PURE__ */ e.jsx(
2585
2587
  nt,
2586
2588
  {
2587
2589
  text: a.text,
@@ -2601,18 +2603,18 @@ function bt(ye) {
2601
2603
  ] })
2602
2604
  }
2603
2605
  ),
2604
- w && E && oe && P ? /* @__PURE__ */ e.jsx(
2606
+ w && E && ne && P ? /* @__PURE__ */ e.jsx(
2605
2607
  We,
2606
2608
  {
2607
2609
  data: w,
2608
2610
  body: E,
2609
- xPos: oe,
2611
+ xPos: ne,
2610
2612
  yPos: P,
2611
2613
  backgroundStyle: $?.tooltip,
2612
2614
  className: y?.tooltip
2613
2615
  }
2614
2616
  ) : null,
2615
- se && T !== void 0 ? /* @__PURE__ */ e.jsx(
2617
+ re && T !== void 0 ? /* @__PURE__ */ e.jsx(
2616
2618
  He,
2617
2619
  {
2618
2620
  open: T !== void 0,
@@ -2623,8 +2625,8 @@ function bt(ye) {
2623
2625
  "div",
2624
2626
  {
2625
2627
  className: "graph-modal-content m-0",
2626
- dangerouslySetInnerHTML: typeof se == "string" ? { __html: Ge(se, T) } : void 0,
2627
- children: typeof se == "function" ? se(T) : null
2628
+ dangerouslySetInnerHTML: typeof re == "string" ? { __html: Ge(re, T) } : void 0,
2629
+ children: typeof re == "function" ? re(T) : null
2628
2630
  }
2629
2631
  )
2630
2632
  }
@@ -2638,30 +2640,30 @@ function vt(ye) {
2638
2640
  colors: Y = je.light.categoricalColors.colors,
2639
2641
  sources: V,
2640
2642
  graphDescription: _,
2641
- barPadding: me = 0.25,
2642
- showTicks: ue = !0,
2643
- leftMargin: ge = 20,
2644
- rightMargin: Z = 20,
2643
+ barPadding: ge = 0.25,
2644
+ showTicks: me = !0,
2645
+ leftMargin: xe = 20,
2646
+ rightMargin: ee = 20,
2645
2647
  topMargin: G = 20,
2646
- bottomMargin: ie = 25,
2648
+ bottomMargin: ae = 25,
2647
2649
  truncateBy: N = 999,
2648
- showLabels: re = !0,
2649
- showValues: de = !0,
2650
+ showLabels: oe = !0,
2651
+ showValues: he = !0,
2650
2652
  backgroundColor: j = !1,
2651
2653
  suffix: E = "",
2652
2654
  prefix: J = "",
2653
- height: ee,
2655
+ height: te,
2654
2656
  width: v,
2655
2657
  footNote: p,
2656
2658
  colorDomain: B,
2657
- colorLegendTitle: ae,
2658
- padding: le,
2659
+ colorLegendTitle: le,
2660
+ padding: se,
2659
2661
  relativeHeight: K,
2660
- tooltip: te,
2661
- onSeriesMouseOver: se,
2662
+ tooltip: ie,
2663
+ onSeriesMouseOver: re,
2662
2664
  refValues: R,
2663
- graphID: xe,
2664
- maxValue: ne,
2665
+ graphID: de,
2666
+ maxValue: Q,
2665
2667
  minValue: $,
2666
2668
  onSeriesMouseClick: y,
2667
2669
  graphDownload: x = !1,
@@ -2676,10 +2678,10 @@ function vt(ye) {
2676
2678
  detailsOnClick: q,
2677
2679
  barAxisTitle: T,
2678
2680
  noOfTicks: F = 5,
2679
- valueColor: oe,
2681
+ valueColor: ne,
2680
2682
  styles: W,
2681
2683
  classNames: P,
2682
- filterNA: Q = !0,
2684
+ filterNA: Z = !0,
2683
2685
  showColorScale: M = !0,
2684
2686
  animate: H = !1,
2685
2687
  precision: u = 2,
@@ -2693,13 +2695,13 @@ function vt(ye) {
2693
2695
  (o) => Se(`${o}`, m.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()
2694
2696
  ),
2695
2697
  (o, i) => tt(o, i)
2696
- ), [U, fe] = L(m.autoplay ? 0 : ce.length - 1), [Oe, he] = L(void 0), be = Me(null), ve = Me(null);
2698
+ ), [U, fe] = L(m.autoplay ? 0 : ce.length - 1), [Oe, ue] = L(void 0), be = Me(null), ve = Me(null);
2697
2699
  Ve(() => {
2698
2700
  const o = new ResizeObserver((i) => {
2699
- s(v || i[0].target.clientWidth || 620), l(ee || i[0].target.clientHeight || 480);
2701
+ s(v || i[0].target.clientWidth || 620), l(te || i[0].target.clientHeight || 480);
2700
2702
  });
2701
2703
  return be.current && (l(be.current.clientHeight || 480), s(be.current.clientWidth || 620), v || o.observe(be.current)), () => o.disconnect();
2702
- }, [v, ee]), Ve(() => {
2704
+ }, [v, te]), Ve(() => {
2703
2705
  const o = setInterval(
2704
2706
  () => {
2705
2707
  fe((i) => i < ce.length - 1 ? i + 1 : 0);
@@ -2731,14 +2733,14 @@ function vt(ye) {
2731
2733
  ...W?.graphContainer || {},
2732
2734
  ...j && j !== !0 ? { backgroundColor: j } : {}
2733
2735
  },
2734
- id: xe,
2736
+ id: de,
2735
2737
  ref: ve,
2736
2738
  "aria-label": b || `${g ? `The graph shows ${g}. ` : ""}This is a grouped bar chart. ${_ ? ` ${_}` : ""}`,
2737
2739
  children: /* @__PURE__ */ e.jsx(
2738
2740
  "div",
2739
2741
  {
2740
2742
  className: "flex grow",
2741
- style: { padding: j ? le || "1rem" : le || 0 },
2743
+ style: { padding: j ? se || "1rem" : se || 0 },
2742
2744
  children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
2743
2745
  g || _ || x || C ? /* @__PURE__ */ e.jsx(
2744
2746
  Ue,
@@ -2797,12 +2799,12 @@ function vt(ye) {
2797
2799
  width: v,
2798
2800
  colorDomain: B,
2799
2801
  colors: Y,
2800
- colorLegendTitle: ae,
2801
- setSelectedColor: he,
2802
+ colorLegendTitle: le,
2803
+ setSelectedColor: ue,
2802
2804
  showNAColor: !1
2803
2805
  }
2804
2806
  ) : null,
2805
- /* @__PURE__ */ e.jsx("div", { className: "w-full grow leading-0", ref: be, "aria-label": "Graph area", children: (v || a) && (ee || t) ? /* @__PURE__ */ e.jsx(
2807
+ /* @__PURE__ */ e.jsx("div", { className: "w-full grow leading-0", ref: be, "aria-label": "Graph area", children: (v || a) && (te || t) ? /* @__PURE__ */ e.jsx(
2806
2808
  bt,
2807
2809
  {
2808
2810
  data: h !== void 0 ? h === "total" ? Ie(
@@ -2815,7 +2817,7 @@ function vt(ye) {
2815
2817
  m.dateFormat || "yyyy"
2816
2818
  ) : o
2817
2819
  ).filter(
2818
- (o) => Q ? !o.size.every((i) => i == null) : o
2820
+ (o) => Z ? !o.size.every((i) => i == null) : o
2819
2821
  ),
2820
2822
  (o) => ke(o.size.filter((i) => !X(i))),
2821
2823
  [c || "asc"]
@@ -2829,35 +2831,35 @@ function vt(ye) {
2829
2831
  m.dateFormat || "yyyy"
2830
2832
  ) : o
2831
2833
  ).filter(
2832
- (o) => Q ? !o.size.every((i) => i == null) : o
2834
+ (o) => Z ? !o.size.every((i) => i == null) : o
2833
2835
  ),
2834
2836
  (o) => X(o.size[h]) ? -1 / 0 : o.size[h],
2835
2837
  [c || "asc"]
2836
2838
  ) : Te(
2837
2839
  n,
2838
2840
  m.dateFormat || "yyyy"
2839
- ).filter((o) => Q ? !o.size.every((i) => i == null) : o),
2841
+ ).filter((o) => Z ? !o.size.every((i) => i == null) : o),
2840
2842
  barColors: Y,
2841
2843
  width: v || a,
2842
2844
  height: Math.max(
2843
2845
  A,
2844
- ee || (K ? A ? (v || a) * K > A ? (v || a) * K : A : (v || a) * K : t)
2846
+ te || (K ? A ? (v || a) * K > A ? (v || a) * K : A : (v || a) * K : t)
2845
2847
  ),
2846
2848
  suffix: E,
2847
2849
  prefix: J,
2848
- barPadding: me,
2849
- showLabels: re,
2850
- showValues: de,
2851
- showTicks: ue,
2850
+ barPadding: ge,
2851
+ showLabels: oe,
2852
+ showValues: he,
2853
+ showTicks: me,
2852
2854
  truncateBy: N,
2853
- leftMargin: ge,
2854
- rightMargin: Z,
2855
+ leftMargin: xe,
2856
+ rightMargin: ee,
2855
2857
  topMargin: G,
2856
- bottomMargin: ie,
2857
- tooltip: te,
2858
- onSeriesMouseOver: se,
2858
+ bottomMargin: ae,
2859
+ tooltip: ie,
2860
+ onSeriesMouseOver: re,
2859
2861
  refValues: R,
2860
- maxValue: X(ne) ? Math.max(
2862
+ maxValue: X(Q) ? Math.max(
2861
2863
  ...n.map(
2862
2864
  (o) => Math.max(
2863
2865
  ...o.size.filter(
@@ -2873,7 +2875,7 @@ function vt(ye) {
2873
2875
  )
2874
2876
  )
2875
2877
  )
2876
- ) : ne,
2878
+ ) : Q,
2877
2879
  minValue: X($) ? Math.min(
2878
2880
  ...n.map(
2879
2881
  (o) => Math.min(
@@ -2899,7 +2901,7 @@ function vt(ye) {
2899
2901
  detailsOnClick: q,
2900
2902
  barAxisTitle: T,
2901
2903
  noOfTicks: F,
2902
- valueColor: oe,
2904
+ valueColor: ne,
2903
2905
  styles: W,
2904
2906
  classNames: P,
2905
2907
  animate: H === !0 ? { duration: 0.5, once: !0, amount: 0.5 } : H || { duration: 0, once: !0, amount: 0 },
@@ -2938,30 +2940,30 @@ function wt(ye) {
2938
2940
  height: Y,
2939
2941
  barColors: V,
2940
2942
  barPadding: _,
2941
- showLabels: me,
2942
- showTicks: ue,
2943
- truncateBy: ge,
2944
- leftMargin: Z,
2943
+ showLabels: ge,
2944
+ showTicks: me,
2945
+ truncateBy: xe,
2946
+ leftMargin: ee,
2945
2947
  topMargin: G,
2946
- bottomMargin: ie,
2948
+ bottomMargin: ae,
2947
2949
  rightMargin: N,
2948
- tooltip: re,
2949
- onSeriesMouseOver: de,
2950
+ tooltip: oe,
2951
+ onSeriesMouseOver: he,
2950
2952
  suffix: j,
2951
2953
  prefix: E,
2952
2954
  showValues: J,
2953
- refValues: ee,
2955
+ refValues: te,
2954
2956
  maxValue: v,
2955
2957
  onSeriesMouseClick: p,
2956
2958
  selectedColor: B,
2957
- labelOrder: ae,
2958
- maxBarThickness: le,
2959
+ labelOrder: le,
2960
+ maxBarThickness: se,
2959
2961
  minBarThickness: K,
2960
- resetSelectionOnDoubleClick: te,
2961
- detailsOnClick: se,
2962
+ resetSelectionOnDoubleClick: ie,
2963
+ detailsOnClick: re,
2962
2964
  barAxisTitle: R,
2963
- valueColor: xe,
2964
- noOfTicks: ne,
2965
+ valueColor: de,
2966
+ noOfTicks: Q,
2965
2967
  styles: $,
2966
2968
  classNames: y,
2967
2969
  animate: x,
@@ -2974,16 +2976,16 @@ function wt(ye) {
2974
2976
  amount: x.amount
2975
2977
  }), b = {
2976
2978
  top: G,
2977
- bottom: ie,
2978
- left: R ? Z + 30 : Z,
2979
+ bottom: ae,
2980
+ left: R ? ee + 30 : ee,
2979
2981
  right: N
2980
- }, [w, q] = L(void 0), [T, F] = L(void 0), [oe, W] = L(void 0), [P, Q] = L(void 0), M = g - b.left - b.right, H = Y - b.top - b.bottom, u = Ee().domain([0, v]).range([H, 0]).nice(), k = n.map((c, a) => ({
2982
+ }, [w, q] = L(void 0), [T, F] = L(void 0), [ne, W] = L(void 0), [P, Z] = L(void 0), M = g - b.left - b.right, H = Y - b.top - b.bottom, u = Ee().domain([0, v]).range([H, 0]).nice(), k = n.map((c, a) => ({
2981
2983
  ...c,
2982
- id: ae ? `${c.label}` : `${a}`
2983
- })), m = ae || k.map((c) => `${c.id}`), d = Le().domain(m).range([
2984
+ id: le ? `${c.label}` : `${a}`
2985
+ })), m = le || k.map((c) => `${c.id}`), d = Le().domain(m).range([
2984
2986
  0,
2985
- K ? Math.max(M, K * m.length) : le ? Math.min(M, le * m.length) : M
2986
- ]).paddingInner(_), h = u.ticks(ne);
2987
+ K ? Math.max(M, K * m.length) : se ? Math.min(M, se * m.length) : M
2988
+ ]).paddingInner(_), h = u.ticks(Q);
2987
2989
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2988
2990
  /* @__PURE__ */ e.jsx(
2989
2991
  pe.svg,
@@ -2999,11 +3001,11 @@ function wt(ye) {
2999
3001
  {
3000
3002
  y1: u(0),
3001
3003
  y2: u(0),
3002
- x1: 0 - Z,
3004
+ x1: 0 - ee,
3003
3005
  x2: M + b.right,
3004
3006
  label: ze(0, O, z, E, j),
3005
3007
  labelPos: {
3006
- x: 0 - Z,
3008
+ x: 0 - ee,
3007
3009
  y: u(0),
3008
3010
  dx: 0,
3009
3011
  dy: -5
@@ -3015,12 +3017,12 @@ function wt(ye) {
3015
3017
  styles: { axis: $?.xAxis?.axis, label: $?.yAxis?.labels }
3016
3018
  }
3017
3019
  ),
3018
- ue ? /* @__PURE__ */ e.jsx(
3020
+ me ? /* @__PURE__ */ e.jsx(
3019
3021
  dt,
3020
3022
  {
3021
3023
  values: h.filter((c) => c !== 0),
3022
3024
  y: h.filter((c) => c !== 0).map((c) => u(c)),
3023
- x1: 0 - Z,
3025
+ x1: 0 - ee,
3024
3026
  x2: M + b.right,
3025
3027
  styles: {
3026
3028
  gridLines: $?.yAxis?.gridLines,
@@ -3041,7 +3043,7 @@ function wt(ye) {
3041
3043
  /* @__PURE__ */ e.jsx(
3042
3044
  Xe,
3043
3045
  {
3044
- x: 0 - Z - 15,
3046
+ x: 0 - ee - 15,
3045
3047
  y: H / 2,
3046
3048
  style: $?.yAxis?.title,
3047
3049
  className: y?.yAxis?.title,
@@ -3074,16 +3076,16 @@ function wt(ye) {
3074
3076
  {
3075
3077
  opacity: B ? V[s] === B ? 1 : 0.3 : 1,
3076
3078
  onMouseEnter: (t) => {
3077
- q({ ...c, sizeIndex: s }), Q(t.clientY), W(t.clientX), de?.({ ...c, sizeIndex: s });
3079
+ q({ ...c, sizeIndex: s }), Z(t.clientY), W(t.clientX), he?.({ ...c, sizeIndex: s });
3078
3080
  },
3079
3081
  onMouseMove: (t) => {
3080
- q({ ...c, sizeIndex: s }), Q(t.clientY), W(t.clientX);
3082
+ q({ ...c, sizeIndex: s }), Z(t.clientY), W(t.clientX);
3081
3083
  },
3082
3084
  onMouseLeave: () => {
3083
- q(void 0), W(void 0), Q(void 0), de?.(void 0);
3085
+ q(void 0), W(void 0), Z(void 0), he?.(void 0);
3084
3086
  },
3085
3087
  onClick: () => {
3086
- (p || se) && (Pe(T, { ...c, sizeIndex: s }) && te ? (F(void 0), p?.(void 0)) : (F({ ...c, sizeIndex: s }), p && p({ ...c, sizeIndex: s })));
3088
+ (p || re) && (Pe(T, { ...c, sizeIndex: s }) && ie ? (F(void 0), p?.(void 0)) : (F({ ...c, sizeIndex: s }), p && p({ ...c, sizeIndex: s })));
3087
3089
  },
3088
3090
  children: [
3089
3091
  /* @__PURE__ */ e.jsx(
@@ -3120,7 +3122,6 @@ function wt(ye) {
3120
3122
  {
3121
3123
  x: d.bandwidth() / 2,
3122
3124
  style: {
3123
- fill: at(V[s]),
3124
3125
  textAnchor: "middle",
3125
3126
  ...$?.graphObjectValues || {}
3126
3127
  },
@@ -3130,7 +3131,7 @@ function wt(ye) {
3130
3131
  initial: {
3131
3132
  y: u(0),
3132
3133
  opacity: 0,
3133
- fill: at(V[s])
3134
+ fill: lt(V[s])
3134
3135
  },
3135
3136
  whileInView: {
3136
3137
  y: u(ke(c.size.filter((t, l) => l <= s && t))) + Math.abs(
@@ -3139,7 +3140,7 @@ function wt(ye) {
3139
3140
  opacity: a && Math.abs(
3140
3141
  u(ke(c.size.filter((t, l) => l <= s && t))) - u(ke(c.size.filter((t, l) => l < s && t)))
3141
3142
  ) > 20 ? 1 : 0,
3142
- fill: at(V[s]),
3143
+ fill: lt(V[s]),
3143
3144
  transition: { duration: x.duration }
3144
3145
  }
3145
3146
  },
@@ -3153,10 +3154,10 @@ function wt(ye) {
3153
3154
  },
3154
3155
  `${c.label}-${C[s] || s}`
3155
3156
  )),
3156
- me ? /* @__PURE__ */ e.jsx(
3157
+ ge ? /* @__PURE__ */ e.jsx(
3157
3158
  ct,
3158
3159
  {
3159
- value: `${c.label}`.length < ge ? `${c.label}` : `${`${c.label}`.substring(0, ge)}...`,
3160
+ value: `${c.label}`.length < xe ? `${c.label}` : `${`${c.label}`.substring(0, xe)}...`,
3160
3161
  y: u(0) + 5,
3161
3162
  x: 0,
3162
3163
  width: d.bandwidth(),
@@ -3172,7 +3173,6 @@ function wt(ye) {
3172
3173
  pe.text,
3173
3174
  {
3174
3175
  style: {
3175
- ...xe && { fill: xe },
3176
3176
  textAnchor: "middle",
3177
3177
  ...$?.graphObjectValues || {}
3178
3178
  },
@@ -3180,17 +3180,19 @@ function wt(ye) {
3180
3180
  dy: -10,
3181
3181
  className: De(
3182
3182
  "graph-value graph-value-total",
3183
- xe ? "text-sm" : "fill-primary-gray-700 dark:fill-primary-gray-300 text-sm",
3183
+ de ? "text-sm" : "fill-primary-gray-700 dark:fill-primary-gray-300 text-sm",
3184
3184
  y?.graphObjectValues
3185
3185
  ),
3186
3186
  variants: {
3187
3187
  initial: {
3188
3188
  y: u(0),
3189
- opacity: 0
3189
+ opacity: 0,
3190
+ ...de && { fill: de }
3190
3191
  },
3191
3192
  whileInView: {
3192
3193
  y: u(ke(c.size.map((a) => a || 0))),
3193
3194
  opacity: 1,
3195
+ ...de && { fill: de },
3194
3196
  transition: { duration: x.duration }
3195
3197
  }
3196
3198
  },
@@ -3214,13 +3216,13 @@ function wt(ye) {
3214
3216
  c.label
3215
3217
  )
3216
3218
  ),
3217
- ee ? /* @__PURE__ */ e.jsx(e.Fragment, { children: ee.map((c, a) => /* @__PURE__ */ e.jsx(
3219
+ te ? /* @__PURE__ */ e.jsx(e.Fragment, { children: te.map((c, a) => /* @__PURE__ */ e.jsx(
3218
3220
  nt,
3219
3221
  {
3220
3222
  text: c.text,
3221
3223
  color: c.color,
3222
3224
  y: u(c.value),
3223
- x1: 0 - Z,
3225
+ x1: 0 - ee,
3224
3226
  x2: M + b.right,
3225
3227
  classNames: c.classNames,
3226
3228
  styles: c.styles,
@@ -3234,18 +3236,18 @@ function wt(ye) {
3234
3236
  ] })
3235
3237
  }
3236
3238
  ),
3237
- w && re && oe && P ? /* @__PURE__ */ e.jsx(
3239
+ w && oe && ne && P ? /* @__PURE__ */ e.jsx(
3238
3240
  We,
3239
3241
  {
3240
3242
  data: w,
3241
- body: re,
3242
- xPos: oe,
3243
+ body: oe,
3244
+ xPos: ne,
3243
3245
  yPos: P,
3244
3246
  backgroundStyle: $?.tooltip,
3245
3247
  className: y?.tooltip
3246
3248
  }
3247
3249
  ) : null,
3248
- se && T !== void 0 ? /* @__PURE__ */ e.jsx(
3250
+ re && T !== void 0 ? /* @__PURE__ */ e.jsx(
3249
3251
  He,
3250
3252
  {
3251
3253
  open: T !== void 0,
@@ -3256,8 +3258,8 @@ function wt(ye) {
3256
3258
  "div",
3257
3259
  {
3258
3260
  className: "graph-modal-content m-0",
3259
- dangerouslySetInnerHTML: typeof se == "string" ? { __html: Ge(se, T) } : void 0,
3260
- children: typeof se == "function" ? se(T) : null
3261
+ dangerouslySetInnerHTML: typeof re == "string" ? { __html: Ge(re, T) } : void 0,
3262
+ children: typeof re == "function" ? re(T) : null
3261
3263
  }
3262
3264
  )
3263
3265
  }
@@ -3271,30 +3273,30 @@ function Ct(ye) {
3271
3273
  colors: Y = je.light.categoricalColors.colors,
3272
3274
  sources: V,
3273
3275
  graphDescription: _,
3274
- barPadding: me = 0.25,
3275
- showTicks: ue = !0,
3276
- leftMargin: ge = 20,
3277
- rightMargin: Z = 20,
3276
+ barPadding: ge = 0.25,
3277
+ showTicks: me = !0,
3278
+ leftMargin: xe = 20,
3279
+ rightMargin: ee = 20,
3278
3280
  topMargin: G = 20,
3279
- bottomMargin: ie = 25,
3281
+ bottomMargin: ae = 25,
3280
3282
  truncateBy: N = 999,
3281
- showLabels: re = !0,
3282
- showValues: de = !0,
3283
+ showLabels: oe = !0,
3284
+ showValues: he = !0,
3283
3285
  backgroundColor: j = !1,
3284
3286
  showColorScale: E = !0,
3285
3287
  suffix: J = "",
3286
- prefix: ee = "",
3288
+ prefix: te = "",
3287
3289
  height: v,
3288
3290
  width: p,
3289
3291
  footNote: B,
3290
- colorDomain: ae,
3291
- colorLegendTitle: le,
3292
+ colorDomain: le,
3293
+ colorLegendTitle: se,
3292
3294
  padding: K,
3293
- tooltip: te,
3294
- onSeriesMouseOver: se,
3295
+ tooltip: ie,
3296
+ onSeriesMouseOver: re,
3295
3297
  relativeHeight: R,
3296
- refValues: xe,
3297
- graphID: ne,
3298
+ refValues: de,
3299
+ graphID: Q,
3298
3300
  maxValue: $,
3299
3301
  onSeriesMouseClick: y,
3300
3302
  graphDownload: x = !1,
@@ -3309,10 +3311,10 @@ function Ct(ye) {
3309
3311
  minBarThickness: q,
3310
3312
  ariaLabel: T,
3311
3313
  resetSelectionOnDoubleClick: F = !0,
3312
- detailsOnClick: oe,
3314
+ detailsOnClick: ne,
3313
3315
  barAxisTitle: W,
3314
3316
  noOfTicks: P = 5,
3315
- valueColor: Q,
3317
+ valueColor: Z,
3316
3318
  styles: M,
3317
3319
  classNames: H,
3318
3320
  filterNA: u = !0,
@@ -3327,7 +3329,7 @@ function Ct(ye) {
3327
3329
  (i) => Se(`${i}`, h.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()
3328
3330
  ),
3329
3331
  (i, S) => tt(i, S)
3330
- ), [fe, Oe] = L(h.autoplay ? 0 : U.length - 1), [he, be] = L(void 0), ve = Me(null), Ne = Me(null);
3332
+ ), [fe, Oe] = L(h.autoplay ? 0 : U.length - 1), [ue, be] = L(void 0), ve = Me(null), Ne = Me(null);
3331
3333
  Ve(() => {
3332
3334
  const i = new ResizeObserver((S) => {
3333
3335
  t(p || S[0].target.clientWidth || 620), f(v || S[0].target.clientHeight || 480);
@@ -3365,7 +3367,7 @@ function Ct(ye) {
3365
3367
  ...M?.graphContainer || {},
3366
3368
  ...j && j !== !0 ? { backgroundColor: j } : {}
3367
3369
  },
3368
- id: ne,
3370
+ id: Q,
3369
3371
  ref: Ne,
3370
3372
  "aria-label": T || `${g ? `The graph shows ${g}. ` : ""}This is a stacked bar chart. ${_ ? ` ${_}` : ""}`,
3371
3373
  children: /* @__PURE__ */ e.jsx("div", { style: { padding: j ? K || "1rem" : K || 0 }, children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
@@ -3424,9 +3426,9 @@ function Ct(ye) {
3424
3426
  Je,
3425
3427
  {
3426
3428
  width: p,
3427
- colorDomain: ae,
3429
+ colorDomain: le,
3428
3430
  colors: Y,
3429
- colorLegendTitle: le,
3431
+ colorLegendTitle: se,
3430
3432
  setSelectedColor: be,
3431
3433
  showNAColor: !1
3432
3434
  }
@@ -3472,39 +3474,39 @@ function Ct(ye) {
3472
3474
  A,
3473
3475
  v || (R ? A ? (p || s) * R > A ? (p || s) * R : A : (p || s) * R : l)
3474
3476
  ),
3475
- barPadding: me,
3476
- showLabels: re,
3477
- showTicks: ue,
3477
+ barPadding: ge,
3478
+ showLabels: oe,
3479
+ showTicks: me,
3478
3480
  truncateBy: N,
3479
- leftMargin: ge,
3480
- rightMargin: Z,
3481
+ leftMargin: xe,
3482
+ rightMargin: ee,
3481
3483
  topMargin: G,
3482
- bottomMargin: ie,
3483
- tooltip: te,
3484
- onSeriesMouseOver: se,
3485
- showValues: de,
3484
+ bottomMargin: ae,
3485
+ tooltip: ie,
3486
+ onSeriesMouseOver: re,
3487
+ showValues: he,
3486
3488
  suffix: J,
3487
- prefix: ee,
3488
- refValues: xe,
3489
+ prefix: te,
3490
+ refValues: de,
3489
3491
  maxValue: X($) ? Math.max(
3490
3492
  ...n.map(
3491
3493
  (i) => ke(i.size.filter((S) => !X(S))) || 0
3492
3494
  )
3493
3495
  ) : $,
3494
3496
  onSeriesMouseClick: y,
3495
- selectedColor: he,
3497
+ selectedColor: ue,
3496
3498
  labelOrder: O,
3497
3499
  maxBarThickness: I,
3498
3500
  minBarThickness: q,
3499
3501
  resetSelectionOnDoubleClick: F,
3500
- detailsOnClick: oe,
3502
+ detailsOnClick: ne,
3501
3503
  barAxisTitle: W,
3502
3504
  noOfTicks: P,
3503
- valueColor: Q,
3505
+ valueColor: Z,
3504
3506
  styles: M,
3505
3507
  classNames: H,
3506
3508
  animate: k === !0 ? { duration: 0.5, once: !0, amount: 0.5 } : k || { duration: 0, once: !0, amount: 0 },
3507
- colorDomain: ae,
3509
+ colorDomain: le,
3508
3510
  precision: m,
3509
3511
  customLayers: d,
3510
3512
  naLabel: c
@@ -3537,30 +3539,30 @@ function li(ye) {
3537
3539
  colors: Y,
3538
3540
  barPadding: V,
3539
3541
  showTicks: _,
3540
- leftMargin: me,
3541
- rightMargin: ue,
3542
- topMargin: ge,
3543
- bottomMargin: Z,
3542
+ leftMargin: ge,
3543
+ rightMargin: me,
3544
+ topMargin: xe,
3545
+ bottomMargin: ee,
3544
3546
  truncateBy: G,
3545
- showLabels: ie,
3547
+ showLabels: ae,
3546
3548
  showValues: N,
3547
- backgroundColor: re,
3548
- suffix: de,
3549
+ backgroundColor: oe,
3550
+ suffix: he,
3549
3551
  prefix: j,
3550
3552
  sources: E,
3551
3553
  graphDescription: J,
3552
- height: ee,
3554
+ height: te,
3553
3555
  width: v,
3554
3556
  footNote: p,
3555
3557
  colorDomain: B,
3556
- colorLegendTitle: ae,
3557
- padding: le,
3558
+ colorLegendTitle: le,
3559
+ padding: se,
3558
3560
  relativeHeight: K,
3559
- tooltip: te,
3560
- onSeriesMouseOver: se,
3561
+ tooltip: ie,
3562
+ onSeriesMouseOver: re,
3561
3563
  refValues: R,
3562
- showColorScale: xe,
3563
- graphID: ne,
3564
+ showColorScale: de,
3565
+ graphID: Q,
3564
3566
  maxValue: $,
3565
3567
  minValue: y,
3566
3568
  highlightedDataPoints: x,
@@ -3575,10 +3577,10 @@ function li(ye) {
3575
3577
  minHeight: q,
3576
3578
  maxBarThickness: T,
3577
3579
  maxNumberOfBars: F,
3578
- minBarThickness: oe,
3580
+ minBarThickness: ne,
3579
3581
  ariaLabel: W,
3580
3582
  resetSelectionOnDoubleClick: P,
3581
- detailsOnClick: Q,
3583
+ detailsOnClick: Z,
3582
3584
  barAxisTitle: M,
3583
3585
  noOfTicks: H,
3584
3586
  valueColor: u,
@@ -3601,30 +3603,30 @@ function li(ye) {
3601
3603
  colors: Y,
3602
3604
  barPadding: V,
3603
3605
  showTicks: _,
3604
- leftMargin: me,
3605
- rightMargin: ue,
3606
- topMargin: ge,
3607
- bottomMargin: Z,
3606
+ leftMargin: ge,
3607
+ rightMargin: me,
3608
+ topMargin: xe,
3609
+ bottomMargin: ee,
3608
3610
  truncateBy: G,
3609
- showLabels: ie,
3611
+ showLabels: ae,
3610
3612
  showValues: N,
3611
- backgroundColor: re,
3612
- suffix: de,
3613
+ backgroundColor: oe,
3614
+ suffix: he,
3613
3615
  prefix: j,
3614
3616
  sources: E,
3615
3617
  graphDescription: J,
3616
- height: ee,
3618
+ height: te,
3617
3619
  width: v,
3618
3620
  footNote: p,
3619
3621
  colorDomain: B,
3620
- colorLegendTitle: ae,
3621
- padding: le,
3622
+ colorLegendTitle: le,
3623
+ padding: se,
3622
3624
  relativeHeight: K,
3623
- tooltip: te,
3624
- onSeriesMouseOver: se,
3625
+ tooltip: ie,
3626
+ onSeriesMouseOver: re,
3625
3627
  refValues: R,
3626
- showColorScale: xe,
3627
- graphID: ne,
3628
+ showColorScale: de,
3629
+ graphID: Q,
3628
3630
  maxValue: $,
3629
3631
  minValue: y,
3630
3632
  highlightedDataPoints: x,
@@ -3639,11 +3641,11 @@ function li(ye) {
3639
3641
  minHeight: q,
3640
3642
  maxBarThickness: T,
3641
3643
  maxNumberOfBars: F,
3642
- minBarThickness: oe,
3644
+ minBarThickness: ne,
3643
3645
  ariaLabel: W,
3644
3646
  resetSelectionOnDoubleClick: P,
3645
3647
  styles: m,
3646
- detailsOnClick: Q,
3648
+ detailsOnClick: Z,
3647
3649
  barAxisTitle: M,
3648
3650
  noOfTicks: H,
3649
3651
  valueColor: u,
@@ -3664,30 +3666,30 @@ function li(ye) {
3664
3666
  colors: Y,
3665
3667
  barPadding: V,
3666
3668
  showTicks: _,
3667
- leftMargin: me,
3668
- rightMargin: ue,
3669
- topMargin: ge,
3670
- bottomMargin: Z,
3669
+ leftMargin: ge,
3670
+ rightMargin: me,
3671
+ topMargin: xe,
3672
+ bottomMargin: ee,
3671
3673
  truncateBy: G,
3672
- showLabels: ie,
3674
+ showLabels: ae,
3673
3675
  showValues: N,
3674
- backgroundColor: re,
3675
- suffix: de,
3676
+ backgroundColor: oe,
3677
+ suffix: he,
3676
3678
  prefix: j,
3677
3679
  sources: E,
3678
3680
  graphDescription: J,
3679
- height: ee,
3681
+ height: te,
3680
3682
  width: v,
3681
3683
  footNote: p,
3682
3684
  colorDomain: B,
3683
- colorLegendTitle: ae,
3684
- padding: le,
3685
+ colorLegendTitle: le,
3686
+ padding: se,
3685
3687
  relativeHeight: K,
3686
- tooltip: te,
3687
- onSeriesMouseOver: se,
3688
+ tooltip: ie,
3689
+ onSeriesMouseOver: re,
3688
3690
  refValues: R,
3689
- showColorScale: xe,
3690
- graphID: ne,
3691
+ showColorScale: de,
3692
+ graphID: Q,
3691
3693
  maxValue: $,
3692
3694
  minValue: y,
3693
3695
  highlightedDataPoints: x,
@@ -3702,11 +3704,11 @@ function li(ye) {
3702
3704
  minHeight: q,
3703
3705
  maxBarThickness: T,
3704
3706
  maxNumberOfBars: F,
3705
- minBarThickness: oe,
3707
+ minBarThickness: ne,
3706
3708
  ariaLabel: W,
3707
3709
  resetSelectionOnDoubleClick: P,
3708
3710
  styles: m,
3709
- detailsOnClick: Q,
3711
+ detailsOnClick: Z,
3710
3712
  barAxisTitle: M,
3711
3713
  noOfTicks: H,
3712
3714
  valueColor: u,
@@ -3728,30 +3730,30 @@ function si(ye) {
3728
3730
  colors: Y,
3729
3731
  sources: V,
3730
3732
  graphDescription: _,
3731
- barPadding: me,
3732
- showTicks: ue,
3733
- truncateBy: ge,
3734
- height: Z,
3733
+ barPadding: ge,
3734
+ showTicks: me,
3735
+ truncateBy: xe,
3736
+ height: ee,
3735
3737
  width: G,
3736
- footNote: ie,
3738
+ footNote: ae,
3737
3739
  colorDomain: N,
3738
- colorLegendTitle: re,
3739
- suffix: de,
3740
+ colorLegendTitle: oe,
3741
+ suffix: he,
3740
3742
  prefix: j,
3741
3743
  showValues: E,
3742
3744
  padding: J,
3743
- backgroundColor: ee,
3745
+ backgroundColor: te,
3744
3746
  leftMargin: v,
3745
3747
  rightMargin: p,
3746
3748
  topMargin: B,
3747
- bottomMargin: ae,
3748
- showLabels: le,
3749
+ bottomMargin: le,
3750
+ showLabels: se,
3749
3751
  relativeHeight: K,
3750
- tooltip: te,
3751
- onSeriesMouseOver: se,
3752
+ tooltip: ie,
3753
+ onSeriesMouseOver: re,
3752
3754
  refValues: R,
3753
- graphID: xe,
3754
- maxValue: ne,
3755
+ graphID: de,
3756
+ maxValue: Q,
3755
3757
  minValue: $,
3756
3758
  onSeriesMouseClick: y,
3757
3759
  graphDownload: x,
@@ -3766,10 +3768,10 @@ function si(ye) {
3766
3768
  ariaLabel: q,
3767
3769
  resetSelectionOnDoubleClick: T,
3768
3770
  detailsOnClick: F,
3769
- barAxisTitle: oe,
3771
+ barAxisTitle: ne,
3770
3772
  noOfTicks: W,
3771
3773
  valueColor: P,
3772
- orientation: Q = "vertical",
3774
+ orientation: Z = "vertical",
3773
3775
  styles: M,
3774
3776
  classNames: H,
3775
3777
  filterNA: u,
@@ -3780,7 +3782,7 @@ function si(ye) {
3780
3782
  timeline: c,
3781
3783
  naLabel: a
3782
3784
  } = ye;
3783
- return Q === "vertical" ? /* @__PURE__ */ e.jsx(
3785
+ return Z === "vertical" ? /* @__PURE__ */ e.jsx(
3784
3786
  vt,
3785
3787
  {
3786
3788
  data: n,
@@ -3788,32 +3790,32 @@ function si(ye) {
3788
3790
  colors: Y,
3789
3791
  sources: V,
3790
3792
  graphDescription: _,
3791
- barPadding: me,
3792
- showTicks: ue,
3793
- truncateBy: ge,
3794
- height: Z,
3793
+ barPadding: ge,
3794
+ showTicks: me,
3795
+ truncateBy: xe,
3796
+ height: ee,
3795
3797
  width: G,
3796
- footNote: ie,
3798
+ footNote: ae,
3797
3799
  colorDomain: N,
3798
- colorLegendTitle: re,
3799
- suffix: de,
3800
+ colorLegendTitle: oe,
3801
+ suffix: he,
3800
3802
  prefix: j,
3801
3803
  showValues: E,
3802
3804
  padding: J,
3803
- backgroundColor: ee,
3805
+ backgroundColor: te,
3804
3806
  leftMargin: v,
3805
3807
  rightMargin: p,
3806
3808
  sortParameter: I,
3807
3809
  sortData: b,
3808
3810
  topMargin: B,
3809
- bottomMargin: ae,
3810
- showLabels: le,
3811
+ bottomMargin: le,
3812
+ showLabels: se,
3811
3813
  relativeHeight: K,
3812
- tooltip: te,
3813
- onSeriesMouseOver: se,
3814
+ tooltip: ie,
3815
+ onSeriesMouseOver: re,
3814
3816
  refValues: R,
3815
- graphID: xe,
3816
- maxValue: ne,
3817
+ graphID: de,
3818
+ maxValue: Q,
3817
3819
  minValue: $,
3818
3820
  onSeriesMouseClick: y,
3819
3821
  graphDownload: x,
@@ -3827,7 +3829,7 @@ function si(ye) {
3827
3829
  resetSelectionOnDoubleClick: T,
3828
3830
  styles: M,
3829
3831
  detailsOnClick: F,
3830
- barAxisTitle: oe,
3832
+ barAxisTitle: ne,
3831
3833
  noOfTicks: W,
3832
3834
  valueColor: P,
3833
3835
  classNames: H,
@@ -3849,30 +3851,30 @@ function si(ye) {
3849
3851
  sortData: b,
3850
3852
  sources: V,
3851
3853
  graphDescription: _,
3852
- barPadding: me,
3853
- showTicks: ue,
3854
- truncateBy: ge,
3855
- height: Z,
3854
+ barPadding: ge,
3855
+ showTicks: me,
3856
+ truncateBy: xe,
3857
+ height: ee,
3856
3858
  width: G,
3857
- footNote: ie,
3859
+ footNote: ae,
3858
3860
  colorDomain: N,
3859
- colorLegendTitle: re,
3860
- suffix: de,
3861
+ colorLegendTitle: oe,
3862
+ suffix: he,
3861
3863
  prefix: j,
3862
3864
  showValues: E,
3863
3865
  padding: J,
3864
- backgroundColor: ee,
3866
+ backgroundColor: te,
3865
3867
  leftMargin: v,
3866
3868
  rightMargin: p,
3867
3869
  topMargin: B,
3868
- bottomMargin: ae,
3869
- showLabels: le,
3870
+ bottomMargin: le,
3871
+ showLabels: se,
3870
3872
  relativeHeight: K,
3871
- tooltip: te,
3872
- onSeriesMouseOver: se,
3873
+ tooltip: ie,
3874
+ onSeriesMouseOver: re,
3873
3875
  refValues: R,
3874
- graphID: xe,
3875
- maxValue: ne,
3876
+ graphID: de,
3877
+ maxValue: Q,
3876
3878
  minValue: $,
3877
3879
  onSeriesMouseClick: y,
3878
3880
  graphDownload: x,
@@ -3886,7 +3888,7 @@ function si(ye) {
3886
3888
  resetSelectionOnDoubleClick: T,
3887
3889
  styles: M,
3888
3890
  detailsOnClick: F,
3889
- barAxisTitle: oe,
3891
+ barAxisTitle: ne,
3890
3892
  noOfTicks: W,
3891
3893
  valueColor: P,
3892
3894
  classNames: H,
@@ -3907,30 +3909,30 @@ function ri(ye) {
3907
3909
  colors: Y,
3908
3910
  sources: V,
3909
3911
  graphDescription: _,
3910
- barPadding: me,
3911
- showTicks: ue,
3912
- leftMargin: ge,
3913
- rightMargin: Z,
3912
+ barPadding: ge,
3913
+ showTicks: me,
3914
+ leftMargin: xe,
3915
+ rightMargin: ee,
3914
3916
  topMargin: G,
3915
- bottomMargin: ie,
3917
+ bottomMargin: ae,
3916
3918
  truncateBy: N,
3917
- showLabels: re,
3918
- showValues: de,
3919
+ showLabels: oe,
3920
+ showValues: he,
3919
3921
  backgroundColor: j,
3920
3922
  suffix: E,
3921
3923
  prefix: J,
3922
- height: ee,
3924
+ height: te,
3923
3925
  width: v,
3924
3926
  footNote: p,
3925
3927
  colorDomain: B,
3926
- colorLegendTitle: ae,
3927
- padding: le,
3928
+ colorLegendTitle: le,
3929
+ padding: se,
3928
3930
  tooltip: K,
3929
- onSeriesMouseOver: te,
3930
- relativeHeight: se,
3931
+ onSeriesMouseOver: ie,
3932
+ relativeHeight: re,
3931
3933
  refValues: R,
3932
- graphID: xe,
3933
- maxValue: ne,
3934
+ graphID: de,
3935
+ maxValue: Q,
3934
3936
  onSeriesMouseClick: $,
3935
3937
  graphDownload: y,
3936
3938
  dataDownload: x,
@@ -3945,10 +3947,10 @@ function ri(ye) {
3945
3947
  minBarThickness: q,
3946
3948
  ariaLabel: T,
3947
3949
  resetSelectionOnDoubleClick: F,
3948
- detailsOnClick: oe,
3950
+ detailsOnClick: ne,
3949
3951
  barAxisTitle: W,
3950
3952
  noOfTicks: P,
3951
- valueColor: Q,
3953
+ valueColor: Z,
3952
3954
  orientation: M = "vertical",
3953
3955
  styles: H,
3954
3956
  classNames: u,
@@ -3968,30 +3970,30 @@ function ri(ye) {
3968
3970
  colors: Y,
3969
3971
  sources: V,
3970
3972
  graphDescription: _,
3971
- barPadding: me,
3972
- showTicks: ue,
3973
- leftMargin: ge,
3974
- rightMargin: Z,
3973
+ barPadding: ge,
3974
+ showTicks: me,
3975
+ leftMargin: xe,
3976
+ rightMargin: ee,
3975
3977
  topMargin: G,
3976
- bottomMargin: ie,
3978
+ bottomMargin: ae,
3977
3979
  truncateBy: N,
3978
- showLabels: re,
3979
- showValues: de,
3980
+ showLabels: oe,
3981
+ showValues: he,
3980
3982
  backgroundColor: j,
3981
3983
  suffix: E,
3982
3984
  prefix: J,
3983
- height: ee,
3985
+ height: te,
3984
3986
  width: v,
3985
3987
  footNote: p,
3986
3988
  colorDomain: B,
3987
- colorLegendTitle: ae,
3988
- padding: le,
3989
+ colorLegendTitle: le,
3990
+ padding: se,
3989
3991
  tooltip: K,
3990
- onSeriesMouseOver: te,
3991
- relativeHeight: se,
3992
+ onSeriesMouseOver: ie,
3993
+ relativeHeight: re,
3992
3994
  refValues: R,
3993
- graphID: xe,
3994
- maxValue: ne,
3995
+ graphID: de,
3996
+ maxValue: Q,
3995
3997
  onSeriesMouseClick: $,
3996
3998
  graphDownload: y,
3997
3999
  dataDownload: x,
@@ -4007,10 +4009,10 @@ function ri(ye) {
4007
4009
  ariaLabel: T,
4008
4010
  resetSelectionOnDoubleClick: F,
4009
4011
  styles: H,
4010
- detailsOnClick: oe,
4012
+ detailsOnClick: ne,
4011
4013
  barAxisTitle: W,
4012
4014
  noOfTicks: P,
4013
- valueColor: Q,
4015
+ valueColor: Z,
4014
4016
  classNames: u,
4015
4017
  filterNA: k,
4016
4018
  animate: m,
@@ -4028,30 +4030,30 @@ function ri(ye) {
4028
4030
  colors: Y,
4029
4031
  sources: V,
4030
4032
  graphDescription: _,
4031
- barPadding: me,
4032
- showTicks: ue,
4033
- leftMargin: ge,
4034
- rightMargin: Z,
4033
+ barPadding: ge,
4034
+ showTicks: me,
4035
+ leftMargin: xe,
4036
+ rightMargin: ee,
4035
4037
  topMargin: G,
4036
- bottomMargin: ie,
4038
+ bottomMargin: ae,
4037
4039
  truncateBy: N,
4038
- showLabels: re,
4039
- showValues: de,
4040
+ showLabels: oe,
4041
+ showValues: he,
4040
4042
  backgroundColor: j,
4041
4043
  suffix: E,
4042
4044
  prefix: J,
4043
- height: ee,
4045
+ height: te,
4044
4046
  width: v,
4045
4047
  footNote: p,
4046
4048
  colorDomain: B,
4047
- colorLegendTitle: ae,
4048
- padding: le,
4049
+ colorLegendTitle: le,
4050
+ padding: se,
4049
4051
  tooltip: K,
4050
- onSeriesMouseOver: te,
4051
- relativeHeight: se,
4052
+ onSeriesMouseOver: ie,
4053
+ relativeHeight: re,
4052
4054
  refValues: R,
4053
- graphID: xe,
4054
- maxValue: ne,
4055
+ graphID: de,
4056
+ maxValue: Q,
4055
4057
  onSeriesMouseClick: $,
4056
4058
  graphDownload: y,
4057
4059
  dataDownload: x,
@@ -4067,10 +4069,10 @@ function ri(ye) {
4067
4069
  ariaLabel: T,
4068
4070
  resetSelectionOnDoubleClick: F,
4069
4071
  styles: H,
4070
- detailsOnClick: oe,
4072
+ detailsOnClick: ne,
4071
4073
  barAxisTitle: W,
4072
4074
  noOfTicks: P,
4073
- valueColor: Q,
4075
+ valueColor: Z,
4074
4076
  classNames: u,
4075
4077
  filterNA: k,
4076
4078
  animate: m,