@undp/data-viz 2.1.2 → 2.1.4

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 (162) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.js +281 -274
  4. package/dist/AreaChart.js.map +1 -1
  5. package/dist/BarGraph.cjs +1 -1
  6. package/dist/BarGraph.cjs.map +1 -1
  7. package/dist/BarGraph.d.ts +2 -0
  8. package/dist/BarGraph.js +1795 -1724
  9. package/dist/BarGraph.js.map +1 -1
  10. package/dist/BeeSwarmChart.cjs +1 -1
  11. package/dist/BeeSwarmChart.cjs.map +1 -1
  12. package/dist/BeeSwarmChart.js +312 -305
  13. package/dist/BeeSwarmChart.js.map +1 -1
  14. package/dist/BulletChart.cjs +1 -1
  15. package/dist/BulletChart.cjs.map +1 -1
  16. package/dist/BulletChart.js +367 -356
  17. package/dist/BulletChart.js.map +1 -1
  18. package/dist/ButterflyChart.cjs +1 -1
  19. package/dist/ButterflyChart.cjs.map +1 -1
  20. package/dist/ButterflyChart.js +224 -217
  21. package/dist/ButterflyChart.js.map +1 -1
  22. package/dist/CirclePackingGraph.cjs +1 -1
  23. package/dist/CirclePackingGraph.js +2 -2
  24. package/dist/DifferenceLineChart.cjs +1 -1
  25. package/dist/DifferenceLineChart.cjs.map +1 -1
  26. package/dist/DifferenceLineChart.js +406 -399
  27. package/dist/DifferenceLineChart.js.map +1 -1
  28. package/dist/DonutChart.cjs +1 -1
  29. package/dist/DonutChart.cjs.map +1 -1
  30. package/dist/DonutChart.d.ts +10 -0
  31. package/dist/DonutChart.js +232 -263
  32. package/dist/DonutChart.js.map +1 -1
  33. package/dist/DualAxisLineChart.cjs +1 -1
  34. package/dist/DualAxisLineChart.cjs.map +1 -1
  35. package/dist/DualAxisLineChart.js +320 -313
  36. package/dist/DualAxisLineChart.js.map +1 -1
  37. package/dist/DumbbellChart.cjs +1 -1
  38. package/dist/DumbbellChart.cjs.map +1 -1
  39. package/dist/DumbbellChart.js +298 -291
  40. package/dist/DumbbellChart.js.map +1 -1
  41. package/dist/{EmptyState-BZo1BbAn.js → EmptyState-C7ZXkZWd.js} +4 -4
  42. package/dist/EmptyState-C7ZXkZWd.js.map +1 -0
  43. package/dist/EmptyState-gLDRXBHm.cjs +2 -0
  44. package/dist/EmptyState-gLDRXBHm.cjs.map +1 -0
  45. package/dist/GraphEl-C2Fgg8PA.cjs +2 -0
  46. package/dist/GraphEl-C2Fgg8PA.cjs.map +1 -0
  47. package/dist/{GraphEl-sVZvlyWe.js → GraphEl-oZwZiTHI.js} +6 -3
  48. package/dist/GraphEl-oZwZiTHI.js.map +1 -0
  49. package/dist/GriddedGraphs.cjs +1 -1
  50. package/dist/GriddedGraphs.d.ts +1 -0
  51. package/dist/GriddedGraphs.js +1 -1
  52. package/dist/GriddedGraphsFromConfig.d.ts +1 -0
  53. package/dist/HeatMap.cjs +1 -1
  54. package/dist/HeatMap.cjs.map +1 -1
  55. package/dist/HeatMap.js +179 -172
  56. package/dist/HeatMap.js.map +1 -1
  57. package/dist/Histogram.cjs +1 -1
  58. package/dist/Histogram.js +1 -1
  59. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  60. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  61. package/dist/LineChartWithConfidenceInterval.js +370 -363
  62. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  63. package/dist/MultiGraphDashboard.d.ts +1 -0
  64. package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
  65. package/dist/MultiLineAltChart.cjs +1 -1
  66. package/dist/MultiLineAltChart.cjs.map +1 -1
  67. package/dist/MultiLineAltChart.js +328 -321
  68. package/dist/MultiLineAltChart.js.map +1 -1
  69. package/dist/MultiLineChart.cjs +1 -1
  70. package/dist/MultiLineChart.cjs.map +1 -1
  71. package/dist/MultiLineChart.js +375 -368
  72. package/dist/MultiLineChart.js.map +1 -1
  73. package/dist/ParetoChart.cjs +1 -1
  74. package/dist/ParetoChart.cjs.map +1 -1
  75. package/dist/ParetoChart.js +385 -378
  76. package/dist/ParetoChart.js.map +1 -1
  77. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
  78. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
  79. package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
  80. package/dist/RadarChart.cjs +1 -1
  81. package/dist/RadarChart.cjs.map +1 -1
  82. package/dist/RadarChart.js +35 -34
  83. package/dist/RadarChart.js.map +1 -1
  84. package/dist/SankeyChart.cjs +1 -1
  85. package/dist/SankeyChart.cjs.map +1 -1
  86. package/dist/SankeyChart.js +176 -169
  87. package/dist/SankeyChart.js.map +1 -1
  88. package/dist/ScatterPlot.cjs +1 -1
  89. package/dist/ScatterPlot.cjs.map +1 -1
  90. package/dist/ScatterPlot.js +367 -360
  91. package/dist/ScatterPlot.js.map +1 -1
  92. package/dist/ScrollStory.d.ts +1 -0
  93. package/dist/SimpleLineChart.cjs +1 -1
  94. package/dist/SimpleLineChart.cjs.map +1 -1
  95. package/dist/SimpleLineChart.js +286 -279
  96. package/dist/SimpleLineChart.js.map +1 -1
  97. package/dist/SingleGraphDashboard.cjs +1 -1
  98. package/dist/SingleGraphDashboard.d.ts +1 -0
  99. package/dist/SingleGraphDashboard.js +1 -1
  100. package/dist/SingleGraphDashboardFromConfig.d.ts +1 -0
  101. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
  102. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
  103. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
  104. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
  105. package/dist/SlopeChart.cjs +1 -1
  106. package/dist/SlopeChart.cjs.map +1 -1
  107. package/dist/SlopeChart.js +243 -236
  108. package/dist/SlopeChart.js.map +1 -1
  109. package/dist/SparkLine.cjs +1 -1
  110. package/dist/SparkLine.js +2 -2
  111. package/dist/StripChart.cjs +1 -1
  112. package/dist/StripChart.cjs.map +1 -1
  113. package/dist/StripChart.js +293 -286
  114. package/dist/StripChart.js.map +1 -1
  115. package/dist/TreeMapGraph.cjs +1 -1
  116. package/dist/TreeMapGraph.cjs.map +1 -1
  117. package/dist/TreeMapGraph.js +222 -215
  118. package/dist/TreeMapGraph.js.map +1 -1
  119. package/dist/Types.d.ts +1 -0
  120. package/dist/{area-BE2wo7fv.js → area-B6r7cv2o.js} +5 -5
  121. package/dist/{area-BE2wo7fv.js.map → area-B6r7cv2o.js.map} +1 -1
  122. package/dist/area-C1gxfNGD.cjs +2 -0
  123. package/dist/{area-D3Qx7k7K.cjs.map → area-C1gxfNGD.cjs.map} +1 -1
  124. package/dist/array-DMyR1sql.cjs +2 -0
  125. package/dist/array-DMyR1sql.cjs.map +1 -0
  126. package/dist/array-USo-Szhp.js +13 -0
  127. package/dist/array-USo-Szhp.js.map +1 -0
  128. package/dist/{ensureCompleteData-DS7gCvVd.js → ensureCompleteData-DH5c52Ub.js} +6 -6
  129. package/dist/{ensureCompleteData-DS7gCvVd.js.map → ensureCompleteData-DH5c52Ub.js.map} +1 -1
  130. package/dist/{ensureCompleteData-Oib-vGb0.cjs → ensureCompleteData-pZ9QO6kB.cjs} +2 -2
  131. package/dist/{ensureCompleteData-Oib-vGb0.cjs.map → ensureCompleteData-pZ9QO6kB.cjs.map} +1 -1
  132. package/dist/index-Blvf-Q3U.cjs +2 -0
  133. package/dist/{index-CF5hnGvG.cjs.map → index-Blvf-Q3U.cjs.map} +1 -1
  134. package/dist/index-D1RrKgK6.js +337 -0
  135. package/dist/index-D1RrKgK6.js.map +1 -0
  136. package/dist/index.cjs +1 -1
  137. package/dist/index.d.ts +7 -0
  138. package/dist/index.js +1 -1
  139. package/dist/line-DFlZsxI1.js +144 -0
  140. package/dist/line-DFlZsxI1.js.map +1 -0
  141. package/dist/line-DaEMhXmx.cjs +2 -0
  142. package/dist/line-DaEMhXmx.cjs.map +1 -0
  143. package/dist/style.css +1 -1
  144. package/package.json +1 -1
  145. package/dist/EmptyState-BZo1BbAn.js.map +0 -1
  146. package/dist/EmptyState-sAEZ_5rU.cjs +0 -2
  147. package/dist/EmptyState-sAEZ_5rU.cjs.map +0 -1
  148. package/dist/GraphEl-YKUlz-37.cjs +0 -2
  149. package/dist/GraphEl-YKUlz-37.cjs.map +0 -1
  150. package/dist/GraphEl-sVZvlyWe.js.map +0 -1
  151. package/dist/area-D3Qx7k7K.cjs +0 -2
  152. package/dist/array-B7TkkRH0.js +0 -89
  153. package/dist/array-B7TkkRH0.js.map +0 -1
  154. package/dist/array-DKbXV8lR.cjs +0 -2
  155. package/dist/array-DKbXV8lR.cjs.map +0 -1
  156. package/dist/index-CF5hnGvG.cjs +0 -2
  157. package/dist/index-DPGq3eIL.js +0 -330
  158. package/dist/index-DPGq3eIL.js.map +0 -1
  159. package/dist/line-CPfhohvF.js +0 -68
  160. package/dist/line-CPfhohvF.js.map +0 -1
  161. package/dist/line-DHV4JwCR.cjs +0 -2
  162. package/dist/line-DHV4JwCR.cjs.map +0 -1
@@ -1,10 +1,10 @@
1
- import { c as si, m as fe, j as a } from "./index-CHPV5EwG-Curnpaqc.js";
2
- import { useRef as Ye, useState as ie, useEffect as ni } from "react";
3
- import { p as V, f as ui } from "./parse-DlCRUFh_.js";
1
+ import { c as si, m as de, j as s } from "./index-CHPV5EwG-Curnpaqc.js";
2
+ import { useRef as Ee, useState as ne, useEffect as ni } from "react";
3
+ import { p as D, f as ui } from "./parse-DlCRUFh_.js";
4
4
  import { o as di } from "./index-BZQYSqar.js";
5
5
  import { n as ii } from "./numberFormattingFunction-14YCbkN2.js";
6
6
  import { T as hi } from "./Tooltip-Dj5eVppQ.js";
7
- import { c as Tt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
7
+ import { c as Nt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
8
8
  import { C as pi, g as xi, A as yi } from "./customArea-BUhPiPT6.js";
9
9
  import { A as gi } from "./AxisTitle-jeI7am8o.js";
10
10
  import { A as vi } from "./Axis-CRyfcLjc.js";
@@ -14,292 +14,292 @@ import { Y as ji } from "./YTicksAndGridLines-Blepl7XF.js";
14
14
  import { H as Ai } from "./index-SKgJALZg.js";
15
15
  import { t as Oi } from "./time-BUL-dwnK.js";
16
16
  import { a as Ci } from "./linear-BqltdMeF.js";
17
- import { l as ai, c as Vi } from "./line-CPfhohvF.js";
18
- import { c as Di, s as Li, a as Si, m as ki } from "./step-BrDul-H4.js";
19
- import { a as oi } from "./area-BE2wo7fv.js";
17
+ import { l as ai, c as Vi } from "./line-DFlZsxI1.js";
18
+ import { c as Li, s as Di, a as Si, m as ki } from "./step-BrDul-H4.js";
19
+ import { a as oi } from "./area-B6r7cv2o.js";
20
20
  import { s as $i } from "./select-DKy99ogv.js";
21
21
  import { a as Ti } from "./init-BhZylTFx.js";
22
22
  import { p as Ii } from "./pointer-CWRWOsrb.js";
23
23
  import { u as Mi } from "./use-in-view-Cxa7y1TH.js";
24
- import { m as S } from "./proxy-BxkFHwUw.js";
24
+ import { m as $ } from "./proxy-BxkFHwUw.js";
25
25
  import { GraphFooter as Ni } from "./GraphFooter.js";
26
26
  import { GraphHeader as Pi } from "./GraphHeader.js";
27
27
  import { ColorLegend as Hi } from "./ColorLegend.js";
28
- import { Colors as We } from "./Colors.js";
29
- import { g as Fi } from "./generateRandomString-za3IQGfQ.js";
30
- import { E as Gi } from "./EmptyState-BZo1BbAn.js";
31
- import { a as Ri, G as Wi } from "./GraphContainer-CRqzdKu2.js";
28
+ import { Colors as Xe } from "./Colors.js";
29
+ import { g as Gi } from "./generateRandomString-za3IQGfQ.js";
30
+ import { E as Ri } from "./EmptyState-C7ZXkZWd.js";
31
+ import { a as Fi, G as Wi } from "./GraphContainer-CRqzdKu2.js";
32
32
  import { g as Yi } from "./getNoOfTicks-CpmRjcRF.js";
33
33
  function Xi(r) {
34
34
  const t = si.c(217), {
35
- data: k,
36
- width: ot,
37
- height: It,
35
+ data: v,
36
+ width: st,
37
+ height: Pt,
38
38
  lineColors: c,
39
- suffix: O,
40
- prefix: w,
39
+ suffix: C,
40
+ prefix: b,
41
41
  dateFormat: f,
42
- showValues: b,
43
- noOfXTicks: Mt,
44
- rightMargin: Nt,
45
- leftMargin: D,
46
- topMargin: Pt,
47
- bottomMargin: yt,
48
- tooltip: W,
49
- highlightAreaSettings: Ht,
50
- onSeriesMouseOver: Ft,
42
+ showValues: j,
43
+ noOfXTicks: Ht,
44
+ rightMargin: Gt,
45
+ leftMargin: S,
46
+ topMargin: Rt,
47
+ bottomMargin: wt,
48
+ tooltip: z,
49
+ highlightAreaSettings: Ft,
50
+ onSeriesMouseOver: Wt,
51
51
  animate: i,
52
- rtl: Y,
53
- showColorLegendAtTop: Gt,
54
- colorDomain: I,
55
- diffAreaColors: $,
56
- idSuffix: nt,
57
- strokeWidth: M,
58
- showDots: N,
59
- refValues: gt,
60
- minValue: T,
61
- maxValue: vt,
62
- annotations: Rt,
63
- customHighlightAreaSettings: Wt,
64
- yAxisTitle: X,
65
- noOfYTicks: ue,
66
- minDate: Yt,
67
- maxDate: wt,
68
- curveType: bt,
69
- styles: p,
52
+ rtl: U,
53
+ showColorLegendAtTop: Yt,
54
+ colorDomain: P,
55
+ diffAreaColors: T,
56
+ idSuffix: rt,
57
+ strokeWidth: H,
58
+ showDots: G,
59
+ refValues: bt,
60
+ minValue: I,
61
+ maxValue: jt,
62
+ annotations: Xt,
63
+ customHighlightAreaSettings: Et,
64
+ yAxisTitle: M,
65
+ noOfYTicks: he,
66
+ minDate: Bt,
67
+ maxDate: At,
68
+ curveType: Ot,
69
+ styles: x,
70
70
  classNames: d,
71
- precision: A,
72
- customLayers: P
73
- } = r, jt = Ye(null);
74
- let E;
75
- t[0] !== i.amount || t[1] !== i.once ? (E = {
71
+ precision: O,
72
+ customLayers: R
73
+ } = r, Ct = Ee(null);
74
+ let q;
75
+ t[0] !== i.amount || t[1] !== i.once ? (q = {
76
76
  once: i.once,
77
77
  amount: i.amount
78
- }, t[0] = i.amount, t[1] = i.once, t[2] = E) : E = t[2];
79
- const m = Mi(jt, E), [h, oe] = ie(!1);
80
- let At, at;
81
- t[3] !== i.duration || t[4] !== h || t[5] !== m ? (At = () => {
78
+ }, t[0] = i.amount, t[1] = i.once, t[2] = q) : q = t[2];
79
+ const m = Mi(Ct, q), [h, ae] = ne(!1);
80
+ let Vt, lt;
81
+ t[3] !== i.duration || t[4] !== h || t[5] !== m ? (Vt = () => {
82
82
  if (m && !h) {
83
83
  const n = setTimeout(() => {
84
- oe(!0);
84
+ ae(!0);
85
85
  }, (i.duration + 0.5) * 1e3);
86
86
  return () => clearTimeout(n);
87
87
  }
88
- }, at = [m, h, i.duration], t[3] = i.duration, t[4] = h, t[5] = m, t[6] = At, t[7] = at) : (At = t[6], at = t[7]), ni(At, at);
89
- const B = bt === "linear" ? Vi : bt === "step" ? Di : bt === "stepAfter" ? Li : bt === "stepBefore" ? Si : ki, [L, g] = ie(void 0), [x, ne] = ie(void 0), [z, Xt] = ie(void 0), Ot = X ? D + 30 : D;
90
- let st;
91
- t[8] !== yt || t[9] !== Nt || t[10] !== Ot || t[11] !== Pt ? (st = {
92
- top: Pt,
93
- bottom: yt,
94
- left: Ot,
95
- right: Nt
96
- }, t[8] = yt, t[9] = Nt, t[10] = Ot, t[11] = Pt, t[12] = st) : st = t[12];
97
- const y = st, rt = Ye(null);
98
- let U;
99
- t[13] !== f ? (U = (n) => ({
88
+ }, lt = [m, h, i.duration], t[3] = i.duration, t[4] = h, t[5] = m, t[6] = Vt, t[7] = lt) : (Vt = t[6], lt = t[7]), ni(Vt, lt);
89
+ const J = Ot === "linear" ? Vi : Ot === "step" ? Li : Ot === "stepAfter" ? Di : Ot === "stepBefore" ? Si : ki, [k, g] = ne(void 0), [p, se] = ne(void 0), [K, zt] = ne(void 0), Lt = M ? S + 30 : S;
90
+ let ct;
91
+ t[8] !== wt || t[9] !== Gt || t[10] !== Lt || t[11] !== Rt ? (ct = {
92
+ top: Rt,
93
+ bottom: wt,
94
+ left: Lt,
95
+ right: Gt
96
+ }, t[8] = wt, t[9] = Gt, t[10] = Lt, t[11] = Rt, t[12] = ct) : ct = t[12];
97
+ const y = ct, mt = Ee(null);
98
+ let Q;
99
+ t[13] !== f ? (Q = (n) => ({
100
100
  ...n,
101
- date: V(`${n.date}`, f, /* @__PURE__ */ new Date())
102
- }), t[13] = f, t[14] = U) : U = t[14];
103
- const o = di(k.map(U), ["date"], ["asc"]);
104
- let lt;
105
- if (t[15] !== f || t[16] !== Ht) {
101
+ date: D(`${n.date}`, f, /* @__PURE__ */ new Date())
102
+ }), t[13] = f, t[14] = Q) : Q = t[14];
103
+ const o = di(v.map(Q), ["date"], ["asc"]);
104
+ let ft;
105
+ if (t[15] !== f || t[16] !== Ft) {
106
106
  let n;
107
107
  t[18] !== f ? (n = (e) => ({
108
108
  ...e,
109
- coordinates: [e.coordinates[0] === null ? null : V(`${e.coordinates[0]}`, f, /* @__PURE__ */ new Date()), e.coordinates[1] === null ? null : V(`${e.coordinates[1]}`, f, /* @__PURE__ */ new Date())]
110
- }), t[18] = f, t[19] = n) : n = t[19], lt = Ht.map(n), t[15] = f, t[16] = Ht, t[17] = lt;
109
+ coordinates: [e.coordinates[0] === null ? null : D(`${e.coordinates[0]}`, f, /* @__PURE__ */ new Date()), e.coordinates[1] === null ? null : D(`${e.coordinates[1]}`, f, /* @__PURE__ */ new Date())]
110
+ }), t[18] = f, t[19] = n) : n = t[19], ft = Ft.map(n), t[15] = f, t[16] = Ft, t[17] = ft;
111
111
  } else
112
- lt = t[17];
113
- const Ct = lt;
114
- let ct;
115
- if (t[20] !== Wt || t[21] !== f) {
112
+ ft = t[17];
113
+ const Dt = ft;
114
+ let ut;
115
+ if (t[20] !== Et || t[21] !== f) {
116
116
  let n;
117
117
  t[23] !== f ? (n = (e) => ({
118
118
  ...e,
119
- coordinates: e.coordinates.map((R, $t) => $t % 2 === 0 ? V(`${R}`, f, /* @__PURE__ */ new Date()) : R)
120
- }), t[23] = f, t[24] = n) : n = t[24], ct = Wt.map(n), t[20] = Wt, t[21] = f, t[22] = ct;
119
+ coordinates: e.coordinates.map((B, Mt) => Mt % 2 === 0 ? D(`${B}`, f, /* @__PURE__ */ new Date()) : B)
120
+ }), t[23] = f, t[24] = n) : n = t[24], ut = Et.map(n), t[20] = Et, t[21] = f, t[22] = ut;
121
121
  } else
122
- ct = t[22];
123
- const ae = ct, u = ot - y.left - y.right, v = It - y.top - y.bottom, se = Yt ? V(`${Yt}`, f, /* @__PURE__ */ new Date()) : o[0].date, Et = wt ? V(`${wt}`, f, /* @__PURE__ */ new Date()) : o[o.length - 1].date, q = Math.min(...o.map(so)) !== 1 / 0 ? Math.min(...o.map(ao)) > 0 ? 0 : Math.min(...o.map(no)) : 0, J = Math.min(...o.map(oo)) !== 1 / 0 ? Math.min(...o.map(io)) > 0 ? 0 : Math.min(...o.map(eo)) : 0, H = Math.max(...o.map(to)) !== 1 / 0 ? Math.max(...o.map(_i)) : 0, Bt = Math.max(...o.map(Zi)) !== 1 / 0 ? Math.max(...o.map(Qi)) : 0;
124
- let K;
125
- t[25] !== q || t[26] !== J || t[27] !== T ? (K = Tt(T) ? q < J ? q : J : T, t[25] = q, t[26] = J, t[27] = T, t[28] = K) : K = t[28];
126
- const j = K, Q = H > Bt ? H : Bt, s = Oi().domain([se, Et]).range([0, u]);
127
- let mt;
128
- t[29] !== j || t[30] !== T ? (mt = Tt(T) ? j : T, t[29] = j, t[30] = T, t[31] = mt) : mt = t[31];
129
- let Z;
130
- t[32] !== Q || t[33] !== vt ? (Z = Tt(vt) ? Q > 0 ? Q : 0 : vt, t[32] = Q, t[33] = vt, t[34] = Z) : Z = t[34];
131
- const l = Ci().domain([mt, Z]).range([v, 0]).nice(), ft = ai().x((n) => s(n.date)).y((n) => l(n.y1)).curve(B), zt = ai().x((n) => s(n.date)).y((n) => l(n.y2)).curve(B), Vt = oi().x((n) => s(n.date)).y1((n) => l(n.y1)).y0((n) => l(n.y2)).curve(B), re = oi().x((n) => s(n.date)).y1((n) => l(n.y1)).y0(0).curve(B), le = oi().x((n) => s(n.date)).y1((n) => l(n.y2)).y0(0).curve(B), Ut = l.ticks(ue), qt = s.ticks(Mt);
122
+ ut = t[22];
123
+ const re = ut, u = st - y.left - y.right, w = Pt - y.top - y.bottom, le = Bt ? D(`${Bt}`, f, /* @__PURE__ */ new Date()) : o[0].date, Ut = At ? D(`${At}`, f, /* @__PURE__ */ new Date()) : o[o.length - 1].date, Z = Math.min(...o.map(so)) !== 1 / 0 ? Math.min(...o.map(ao)) > 0 ? 0 : Math.min(...o.map(no)) : 0, _ = Math.min(...o.map(oo)) !== 1 / 0 ? Math.min(...o.map(io)) > 0 ? 0 : Math.min(...o.map(eo)) : 0, F = Math.max(...o.map(to)) !== 1 / 0 ? Math.max(...o.map(_i)) : 0, qt = Math.max(...o.map(Zi)) !== 1 / 0 ? Math.max(...o.map(Qi)) : 0;
124
+ let N;
125
+ t[25] !== Z || t[26] !== _ || t[27] !== I ? (N = Nt(I) ? Z < _ ? Z : _ : I, t[25] = Z, t[26] = _, t[27] = I, t[28] = N) : N = t[28];
126
+ const A = N, tt = F > qt ? F : qt, a = Oi().domain([le, Ut]).range([0, u]);
127
+ let dt;
128
+ t[29] !== A || t[30] !== I ? (dt = Nt(I) ? A : I, t[29] = A, t[30] = I, t[31] = dt) : dt = t[31];
129
+ let et;
130
+ t[32] !== tt || t[33] !== jt ? (et = Nt(jt) ? tt > 0 ? tt : 0 : jt, t[32] = tt, t[33] = jt, t[34] = et) : et = t[34];
131
+ const l = Ci().domain([dt, et]).range([w, 0]).nice(), ht = ai().x((n) => a(n.date)).y((n) => l(n.y1)).curve(J), Jt = ai().x((n) => a(n.date)).y((n) => l(n.y2)).curve(J), St = oi().x((n) => a(n.date)).y1((n) => l(n.y1)).y0((n) => l(n.y2)).curve(J), ce = oi().x((n) => a(n.date)).y1((n) => l(n.y1)).y0(0).curve(J), me = oi().x((n) => a(n.date)).y1((n) => l(n.y2)).y0(0).curve(J), Kt = l.ticks(he), Qt = a.ticks(Ht);
132
132
  ni(() => {
133
- const n = (R) => {
134
- const $t = o[Ti(o.map(Ki), s.invert(Ii(R)[0]), 0)];
135
- g($t || o[o.length - 1]), Ft?.($t || o[o.length - 1]), Xt(R.clientY), ne(R.clientX);
133
+ const n = (B) => {
134
+ const Mt = o[Ti(o.map(Ki), a.invert(Ii(B)[0]), 0)];
135
+ g(Mt || o[o.length - 1]), Wt?.(Mt || o[o.length - 1]), zt(B.clientY), se(B.clientX);
136
136
  }, e = () => {
137
- g(void 0), ne(void 0), Xt(void 0), Ft?.(void 0);
137
+ g(void 0), se(void 0), zt(void 0), Wt?.(void 0);
138
138
  };
139
- $i(rt.current).on("mousemove", n).on("mouseout", e);
140
- }, [s, o, Ft]);
141
- let ut;
142
- t[35] === Symbol.for("react.memo_cache_sentinel") ? (ut = {
143
- fill: "none"
144
- }, t[35] = ut) : ut = t[35];
145
- let _;
146
- t[36] === Symbol.for("react.memo_cache_sentinel") ? (_ = {
139
+ $i(mt.current).on("mousemove", n).on("mouseout", e);
140
+ }, [a, o, Wt]);
141
+ let pt;
142
+ t[35] === Symbol.for("react.memo_cache_sentinel") ? (pt = {
147
143
  fill: "none"
148
- }, t[36] = _) : _ = t[36];
149
- let dt;
150
- t[37] !== i || t[38] !== v || t[39] !== u || t[40] !== Ct || t[41] !== m || t[42] !== s ? (dt = /* @__PURE__ */ a.jsx(Ai, { areaSettings: Ct, width: u, height: v, scale: s, animate: i, isInView: m }), t[37] = i, t[38] = v, t[39] = u, t[40] = Ct, t[41] = m, t[42] = s, t[43] = dt) : dt = t[43];
151
- const tt = p?.yAxis?.gridLines, ce = p?.yAxis?.labels;
152
- let et;
153
- t[44] !== tt || t[45] !== ce ? (et = {
154
- gridLines: tt,
155
- labels: ce
156
- }, t[44] = tt, t[45] = ce, t[46] = et) : et = t[46];
157
- const me = d?.yAxis?.gridLines, Dt = d?.yAxis?.labels;
158
- let Lt;
159
- t[47] !== me || t[48] !== Dt ? (Lt = {
160
- gridLines: me,
161
- labels: Dt
162
- }, t[47] = me, t[48] = Dt, t[49] = Lt) : Lt = t[49];
163
- const ht = l(j < 0 ? 0 : j), pt = l(j < 0 ? 0 : j), St = 0 - D, kt = u + y.right, F = j < 0 ? 0 : j;
164
- let C;
165
- t[50] !== A || t[51] !== w || t[52] !== O || t[53] !== F ? (C = ii(F, "NA", A, w, O), t[50] = A, t[51] = w, t[52] = O, t[53] = F, t[54] = C) : C = t[54];
166
- const G = 0 - D, xt = l(j < 0 ? 0 : j), Jt = Q < 0 ? "1rem" : -5;
144
+ }, t[35] = pt) : pt = t[35];
167
145
  let it;
168
- t[55] !== G || t[56] !== xt || t[57] !== Jt ? (it = {
169
- x: G,
170
- y: xt,
146
+ t[36] === Symbol.for("react.memo_cache_sentinel") ? (it = {
147
+ fill: "none"
148
+ }, t[36] = it) : it = t[36];
149
+ let xt;
150
+ t[37] !== i || t[38] !== w || t[39] !== u || t[40] !== Dt || t[41] !== m || t[42] !== a ? (xt = /* @__PURE__ */ s.jsx(Ai, { areaSettings: Dt, width: u, height: w, scale: a, animate: i, isInView: m }), t[37] = i, t[38] = w, t[39] = u, t[40] = Dt, t[41] = m, t[42] = a, t[43] = xt) : xt = t[43];
151
+ const ot = x?.yAxis?.gridLines, fe = x?.yAxis?.labels;
152
+ let nt;
153
+ t[44] !== ot || t[45] !== fe ? (nt = {
154
+ gridLines: ot,
155
+ labels: fe
156
+ }, t[44] = ot, t[45] = fe, t[46] = nt) : nt = t[46];
157
+ const ue = d?.yAxis?.gridLines, kt = d?.yAxis?.labels;
158
+ let $t;
159
+ t[47] !== ue || t[48] !== kt ? ($t = {
160
+ gridLines: ue,
161
+ labels: kt
162
+ }, t[47] = ue, t[48] = kt, t[49] = $t) : $t = t[49];
163
+ const yt = l(A < 0 ? 0 : A), gt = l(A < 0 ? 0 : A), Tt = 0 - S, It = u + y.right, W = A < 0 ? 0 : A;
164
+ let V;
165
+ t[50] !== O || t[51] !== b || t[52] !== C || t[53] !== W ? (V = ii(W, "NA", O, b, C), t[50] = O, t[51] = b, t[52] = C, t[53] = W, t[54] = V) : V = t[54];
166
+ const Y = 0 - S, X = l(A < 0 ? 0 : A), E = tt < 0 ? "1rem" : -5;
167
+ let L;
168
+ t[55] !== Y || t[56] !== X || t[57] !== E ? (L = {
169
+ x: Y,
170
+ y: X,
171
171
  dx: 0,
172
- dy: Jt
173
- }, t[55] = G, t[56] = xt, t[57] = Jt, t[58] = it) : it = t[58];
174
- const Xe = d?.xAxis?.axis, Ee = d?.yAxis?.labels;
175
- let Kt;
176
- t[59] !== Xe || t[60] !== Ee ? (Kt = {
177
- axis: Xe,
178
- label: Ee
179
- }, t[59] = Xe, t[60] = Ee, t[61] = Kt) : Kt = t[61];
180
- const Be = p?.xAxis?.axis, ze = p?.yAxis?.labels;
181
- let Qt;
182
- t[62] !== Be || t[63] !== ze ? (Qt = {
172
+ dy: E
173
+ }, t[55] = Y, t[56] = X, t[57] = E, t[58] = L) : L = t[58];
174
+ const vt = d?.xAxis?.axis, Zt = d?.yAxis?.labels;
175
+ let at;
176
+ t[59] !== vt || t[60] !== Zt ? (at = {
177
+ axis: vt,
178
+ label: Zt
179
+ }, t[59] = vt, t[60] = Zt, t[61] = at) : at = t[61];
180
+ const Be = x?.xAxis?.axis, ze = x?.yAxis?.labels;
181
+ let _t;
182
+ t[62] !== Be || t[63] !== ze ? (_t = {
183
183
  axis: Be,
184
184
  label: ze
185
- }, t[62] = Be, t[63] = ze, t[64] = Qt) : Qt = t[64];
186
- let de;
187
- t[65] !== ht || t[66] !== pt || t[67] !== St || t[68] !== kt || t[69] !== C || t[70] !== it || t[71] !== Kt || t[72] !== Qt ? (de = /* @__PURE__ */ a.jsx(vi, { y1: ht, y2: pt, x1: St, x2: kt, label: C, labelPos: it, classNames: Kt, styles: Qt }), t[65] = ht, t[66] = pt, t[67] = St, t[68] = kt, t[69] = C, t[70] = it, t[71] = Kt, t[72] = Qt, t[73] = de) : de = t[73];
188
- const Ue = 0 - D - 15, qe = v / 2, Je = p?.yAxis?.title, Ke = d?.yAxis?.title;
189
- let he;
190
- t[74] !== Ue || t[75] !== qe || t[76] !== Je || t[77] !== Ke || t[78] !== X ? (he = /* @__PURE__ */ a.jsx(gi, { x: Ue, y: qe, style: Je, className: Ke, text: X, rotate90: !0 }), t[74] = Ue, t[75] = qe, t[76] = Je, t[77] = Ke, t[78] = X, t[79] = he) : he = t[79];
185
+ }, t[62] = Be, t[63] = ze, t[64] = _t) : _t = t[64];
191
186
  let pe;
192
- t[80] !== f ? (pe = (n) => ui(n, f), t[80] = f, t[81] = pe) : pe = t[81];
193
- const ri = qt.map(pe), li = qt.map((n) => s(n)), Qe = p?.xAxis?.gridLines, Ze = p?.xAxis?.labels;
187
+ t[65] !== yt || t[66] !== gt || t[67] !== Tt || t[68] !== It || t[69] !== V || t[70] !== L || t[71] !== at || t[72] !== _t ? (pe = /* @__PURE__ */ s.jsx(vi, { y1: yt, y2: gt, x1: Tt, x2: It, label: V, labelPos: L, classNames: at, styles: _t }), t[65] = yt, t[66] = gt, t[67] = Tt, t[68] = It, t[69] = V, t[70] = L, t[71] = at, t[72] = _t, t[73] = pe) : pe = t[73];
188
+ const Ue = 0 - S - 15, qe = w / 2, Je = x?.yAxis?.title, Ke = d?.yAxis?.title;
194
189
  let xe;
195
- t[82] !== Qe || t[83] !== Ze ? (xe = {
190
+ t[74] !== Ue || t[75] !== qe || t[76] !== Je || t[77] !== Ke || t[78] !== M ? (xe = /* @__PURE__ */ s.jsx(gi, { x: Ue, y: qe, style: Je, className: Ke, text: M, rotate90: !0 }), t[74] = Ue, t[75] = qe, t[76] = Je, t[77] = Ke, t[78] = M, t[79] = xe) : xe = t[79];
191
+ let ye;
192
+ t[80] !== f ? (ye = (n) => ui(n, f), t[80] = f, t[81] = ye) : ye = t[81];
193
+ const ri = Qt.map(ye), li = Qt.map((n) => a(n)), Qe = x?.xAxis?.gridLines, Ze = x?.xAxis?.labels;
194
+ let ge;
195
+ t[82] !== Qe || t[83] !== Ze ? (ge = {
196
196
  gridLines: Qe,
197
197
  labels: Ze
198
- }, t[82] = Qe, t[83] = Ze, t[84] = xe) : xe = t[84];
198
+ }, t[82] = Qe, t[83] = Ze, t[84] = ge) : ge = t[84];
199
199
  const _e = d?.xAxis?.gridLines;
200
- let Zt;
201
- t[85] !== _e ? (Zt = fe("opacity-0", _e), t[85] = _e, t[86] = Zt) : Zt = t[86];
200
+ let te;
201
+ t[85] !== _e ? (te = de("opacity-0", _e), t[85] = _e, t[86] = te) : te = t[86];
202
202
  const ti = d?.xAxis?.labels;
203
- let _t;
204
- t[87] !== ti ? (_t = fe("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs", ti), t[87] = ti, t[88] = _t) : _t = t[88];
205
- let ye;
206
- t[89] !== Zt || t[90] !== _t ? (ye = {
207
- gridLines: Zt,
208
- labels: _t
209
- }, t[89] = Zt, t[90] = _t, t[91] = ye) : ye = t[91];
210
- let ge;
211
- t[92] !== P ? (ge = P.filter(Ui).map(zi), t[92] = P, t[93] = ge) : ge = t[93];
203
+ let ee;
204
+ t[87] !== ti ? (ee = de("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs", ti), t[87] = ti, t[88] = ee) : ee = t[88];
212
205
  let ve;
213
- t[94] !== $[1] ? (ve = {
214
- fill: $[1]
215
- }, t[94] = $[1], t[95] = ve) : ve = t[95];
206
+ t[89] !== te || t[90] !== ee ? (ve = {
207
+ gridLines: te,
208
+ labels: ee
209
+ }, t[89] = te, t[90] = ee, t[91] = ve) : ve = t[91];
216
210
  let we;
217
- t[96] !== i.duration ? (we = {
211
+ t[92] !== R ? (we = R.filter(Ui).map(zi), t[92] = R, t[93] = we) : we = t[93];
212
+ let be;
213
+ t[94] !== T[1] ? (be = {
214
+ fill: T[1]
215
+ }, t[94] = T[1], t[95] = be) : be = t[95];
216
+ let je;
217
+ t[96] !== i.duration ? (je = {
218
218
  opacity: 0,
219
219
  transition: {
220
220
  duration: i.duration
221
221
  }
222
- }, t[96] = i.duration, t[97] = we) : we = t[97];
223
- let be;
224
- t[98] === Symbol.for("react.memo_cache_sentinel") ? (be = {
222
+ }, t[96] = i.duration, t[97] = je) : je = t[97];
223
+ let Ae;
224
+ t[98] === Symbol.for("react.memo_cache_sentinel") ? (Ae = {
225
225
  opacity: 1
226
- }, t[98] = be) : be = t[98];
227
- let je;
228
- t[99] !== i.duration ? (je = {
229
- initial: be,
226
+ }, t[98] = Ae) : Ae = t[98];
227
+ let Oe;
228
+ t[99] !== i.duration ? (Oe = {
229
+ initial: Ae,
230
230
  whileInView: {
231
231
  opacity: 1,
232
232
  transition: {
233
233
  duration: i.duration
234
234
  }
235
235
  }
236
- }, t[99] = i.duration, t[100] = je) : je = t[100];
237
- let Ae;
238
- t[101] !== $[0] ? (Ae = {
239
- fill: $[0]
240
- }, t[101] = $[0], t[102] = Ae) : Ae = t[102];
241
- let Oe;
242
- t[103] !== i.duration ? (Oe = {
236
+ }, t[99] = i.duration, t[100] = Oe) : Oe = t[100];
237
+ let Ce;
238
+ t[101] !== T[0] ? (Ce = {
239
+ fill: T[0]
240
+ }, t[101] = T[0], t[102] = Ce) : Ce = t[102];
241
+ let Ve;
242
+ t[103] !== i.duration ? (Ve = {
243
243
  opacity: 0,
244
244
  transition: {
245
245
  duration: i.duration
246
246
  }
247
- }, t[103] = i.duration, t[104] = Oe) : Oe = t[104];
248
- let Ce;
249
- t[105] === Symbol.for("react.memo_cache_sentinel") ? (Ce = {
247
+ }, t[103] = i.duration, t[104] = Ve) : Ve = t[104];
248
+ let Le;
249
+ t[105] === Symbol.for("react.memo_cache_sentinel") ? (Le = {
250
250
  opacity: 0
251
- }, t[105] = Ce) : Ce = t[105];
252
- let Ve;
253
- t[106] !== i.duration ? (Ve = {
254
- initial: Ce,
251
+ }, t[105] = Le) : Le = t[105];
252
+ let De;
253
+ t[106] !== i.duration ? (De = {
254
+ initial: Le,
255
255
  whileInView: {
256
256
  opacity: 1,
257
257
  transition: {
258
258
  duration: i.duration
259
259
  }
260
260
  }
261
- }, t[106] = i.duration, t[107] = Ve) : Ve = t[107];
262
- let De;
263
- t[108] !== c[0] || t[109] !== M ? (De = {
261
+ }, t[106] = i.duration, t[107] = De) : De = t[107];
262
+ let Se;
263
+ t[108] !== c[0] || t[109] !== H ? (Se = {
264
264
  fill: "none",
265
265
  stroke: c[0],
266
- strokeWidth: M
267
- }, t[108] = c[0], t[109] = M, t[110] = De) : De = t[110];
268
- let Le;
269
- t[111] !== i.duration ? (Le = {
266
+ strokeWidth: H
267
+ }, t[108] = c[0], t[109] = H, t[110] = Se) : Se = t[110];
268
+ let ke;
269
+ t[111] !== i.duration ? (ke = {
270
270
  opacity: 0,
271
271
  transition: {
272
272
  duration: i.duration
273
273
  }
274
- }, t[111] = i.duration, t[112] = Le) : Le = t[112];
275
- let Se;
276
- t[113] !== c[1] || t[114] !== M ? (Se = {
274
+ }, t[111] = i.duration, t[112] = ke) : ke = t[112];
275
+ let $e;
276
+ t[113] !== c[1] || t[114] !== H ? ($e = {
277
277
  fill: "none",
278
278
  stroke: c[1],
279
- strokeWidth: M
280
- }, t[113] = c[1], t[114] = M, t[115] = Se) : Se = t[115];
281
- let ke;
282
- t[116] !== i.duration ? (ke = {
279
+ strokeWidth: H
280
+ }, t[113] = c[1], t[114] = H, t[115] = $e) : $e = t[115];
281
+ let Te;
282
+ t[116] !== i.duration ? (Te = {
283
283
  opacity: 0,
284
284
  transition: {
285
285
  duration: i.duration
286
286
  }
287
- }, t[116] = i.duration, t[117] = ke) : ke = t[117];
288
- const ci = 1, ei = zt(o) || "";
289
- let te;
290
- t[118] !== i.duration ? (te = {
287
+ }, t[116] = i.duration, t[117] = Te) : Te = t[117];
288
+ const ci = 1, ei = Jt(o) || "";
289
+ let ie;
290
+ t[118] !== i.duration ? (ie = {
291
291
  duration: i.duration
292
- }, t[118] = i.duration, t[119] = te) : te = t[119];
293
- let $e;
294
- t[120] !== ei || t[121] !== te ? ($e = {
292
+ }, t[118] = i.duration, t[119] = ie) : ie = t[119];
293
+ let Ie;
294
+ t[120] !== ei || t[121] !== ie ? (Ie = {
295
295
  pathLength: ci,
296
296
  d: ei,
297
297
  opacity: 1,
298
- transition: te
299
- }, t[120] = ei, t[121] = te, t[122] = $e) : $e = t[122];
300
- let Te;
301
- t[123] !== i.duration || t[124] !== I || t[125] !== o || t[126] !== h || t[127] !== m || t[128] !== c[0] || t[129] !== c[1] || t[130] !== Gt || t[131] !== s || t[132] !== l ? (Te = Gt ? null : /* @__PURE__ */ a.jsxs("g", { children: [
302
- /* @__PURE__ */ a.jsx(S.text, { className: "text-xs", dx: 5, dy: 4, exit: {
298
+ transition: ie
299
+ }, t[120] = ei, t[121] = ie, t[122] = Ie) : Ie = t[122];
300
+ let Me;
301
+ t[123] !== i.duration || t[124] !== P || t[125] !== o || t[126] !== h || t[127] !== m || t[128] !== c[0] || t[129] !== c[1] || t[130] !== Yt || t[131] !== a || t[132] !== l ? (Me = Yt ? null : /* @__PURE__ */ s.jsxs("g", { children: [
302
+ /* @__PURE__ */ s.jsx($.text, { className: "text-xs", dx: 5, dy: 4, exit: {
303
303
  opacity: 0,
304
304
  transition: {
305
305
  duration: i.duration
@@ -307,13 +307,13 @@ function Xi(r) {
307
307
  }, variants: {
308
308
  initial: {
309
309
  opacity: 0,
310
- x: s(o[o.length - 1].date),
310
+ x: a(o[o.length - 1].date),
311
311
  y: l(o[o.length - 1].y1),
312
312
  fill: c[0]
313
313
  },
314
314
  whileInView: {
315
315
  opacity: 1,
316
- x: s(o[o.length - 1].date),
316
+ x: a(o[o.length - 1].date),
317
317
  y: l(o[o.length - 1].y1),
318
318
  fill: c[0],
319
319
  transition: {
@@ -321,8 +321,8 @@ function Xi(r) {
321
321
  delay: h ? 0 : i.duration
322
322
  }
323
323
  }
324
- }, initial: "initial", animate: m ? "whileInView" : "initial", children: I[0] }, I[0]),
325
- /* @__PURE__ */ a.jsx(S.text, { className: "text-xs", dx: 5, dy: 4, exit: {
324
+ }, initial: "initial", animate: m ? "whileInView" : "initial", children: P[0] }, P[0]),
325
+ /* @__PURE__ */ s.jsx($.text, { className: "text-xs", dx: 5, dy: 4, exit: {
326
326
  opacity: 0,
327
327
  transition: {
328
328
  duration: i.duration
@@ -330,13 +330,13 @@ function Xi(r) {
330
330
  }, variants: {
331
331
  initial: {
332
332
  opacity: 0,
333
- x: s(o[o.length - 1].date),
333
+ x: a(o[o.length - 1].date),
334
334
  y: l(o[o.length - 1].y2),
335
335
  fill: c[1]
336
336
  },
337
337
  whileInView: {
338
338
  opacity: 1,
339
- x: s(o[o.length - 1].date),
339
+ x: a(o[o.length - 1].date),
340
340
  y: l(o[o.length - 1].y2),
341
341
  fill: c[1],
342
342
  transition: {
@@ -344,16 +344,16 @@ function Xi(r) {
344
344
  delay: h ? 0 : i.duration
345
345
  }
346
346
  }
347
- }, initial: "initial", animate: m ? "whileInView" : "initial", children: I[1] }, I[1])
348
- ] }), t[123] = i.duration, t[124] = I, t[125] = o, t[126] = h, t[127] = m, t[128] = c[0], t[129] = c[1], t[130] = Gt, t[131] = s, t[132] = l, t[133] = Te) : Te = t[133];
349
- let Ie;
350
- t[134] !== d?.mouseOverLine || t[135] !== v || t[136] !== L || t[137] !== p?.mouseOverLine || t[138] !== s ? (Ie = L ? /* @__PURE__ */ a.jsx("line", { y1: 0, y2: v, x1: s(L.date), x2: s(L.date), className: fe("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100", d?.mouseOverLine), style: p?.mouseOverLine }) : null, t[134] = d?.mouseOverLine, t[135] = v, t[136] = L, t[137] = p?.mouseOverLine, t[138] = s, t[139] = Ie) : Ie = t[139];
351
- let Me;
352
- if (t[140] !== i.duration || t[141] !== d?.graphObjectValues || t[142] !== o || t[143] !== u || t[144] !== h || t[145] !== m || t[146] !== c[0] || t[147] !== c[1] || t[148] !== A || t[149] !== w || t[150] !== N || t[151] !== b || t[152] !== p?.graphObjectValues || t[153] !== O || t[154] !== s || t[155] !== l) {
347
+ }, initial: "initial", animate: m ? "whileInView" : "initial", children: P[1] }, P[1])
348
+ ] }), t[123] = i.duration, t[124] = P, t[125] = o, t[126] = h, t[127] = m, t[128] = c[0], t[129] = c[1], t[130] = Yt, t[131] = a, t[132] = l, t[133] = Me) : Me = t[133];
349
+ let Ne;
350
+ t[134] !== d?.mouseOverLine || t[135] !== w || t[136] !== k || t[137] !== x?.mouseOverLine || t[138] !== a ? (Ne = k ? /* @__PURE__ */ s.jsx("line", { y1: 0, y2: w, x1: a(k.date), x2: a(k.date), className: de("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100", d?.mouseOverLine), style: x?.mouseOverLine }) : null, t[134] = d?.mouseOverLine, t[135] = w, t[136] = k, t[137] = x?.mouseOverLine, t[138] = a, t[139] = Ne) : Ne = t[139];
351
+ let Pe;
352
+ if (t[140] !== i.duration || t[141] !== d?.graphObjectValues || t[142] !== o || t[143] !== u || t[144] !== h || t[145] !== m || t[146] !== c[0] || t[147] !== c[1] || t[148] !== O || t[149] !== b || t[150] !== G || t[151] !== j || t[152] !== x?.graphObjectValues || t[153] !== C || t[154] !== a || t[155] !== l) {
353
353
  let n;
354
- t[157] !== i.duration || t[158] !== d?.graphObjectValues || t[159] !== o.length || t[160] !== u || t[161] !== h || t[162] !== m || t[163] !== c[0] || t[164] !== c[1] || t[165] !== A || t[166] !== w || t[167] !== N || t[168] !== b || t[169] !== p?.graphObjectValues || t[170] !== O || t[171] !== s || t[172] !== l ? (n = (e, R) => /* @__PURE__ */ a.jsxs(S.g, { children: [
355
- Tt(e.y1) ? null : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
356
- N ? /* @__PURE__ */ a.jsx(S.circle, { r: u / o.length < 5 ? 0 : u / o.length < 20 ? 2 : 4, exit: {
354
+ t[157] !== i.duration || t[158] !== d?.graphObjectValues || t[159] !== o.length || t[160] !== u || t[161] !== h || t[162] !== m || t[163] !== c[0] || t[164] !== c[1] || t[165] !== O || t[166] !== b || t[167] !== G || t[168] !== j || t[169] !== x?.graphObjectValues || t[170] !== C || t[171] !== a || t[172] !== l ? (n = (e, B) => /* @__PURE__ */ s.jsxs($.g, { children: [
355
+ Nt(e.y1) ? null : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
356
+ G ? /* @__PURE__ */ s.jsx($.circle, { r: u / o.length < 5 ? 0 : u / o.length < 20 ? 2 : 4, exit: {
357
357
  opacity: 0,
358
358
  transition: {
359
359
  duration: i.duration
@@ -361,7 +361,7 @@ function Xi(r) {
361
361
  }, variants: {
362
362
  initial: {
363
363
  opacity: 0,
364
- cx: s(e.date),
364
+ cx: a(e.date),
365
365
  cy: l(e.y1),
366
366
  fill: c[0]
367
367
  },
@@ -372,14 +372,14 @@ function Xi(r) {
372
372
  duration: 0.5,
373
373
  delay: i.duration
374
374
  },
375
- cx: s(e.date),
375
+ cx: a(e.date),
376
376
  cy: l(e.y1)
377
377
  }
378
378
  }, initial: "initial", animate: m ? "whileInView" : "initial" }) : null,
379
- b ? /* @__PURE__ */ a.jsx(S.text, { dy: e.y2 < e.y1 ? -8 : "1em", style: {
379
+ j ? /* @__PURE__ */ s.jsx($.text, { dy: e.y2 < e.y1 ? -8 : "1em", style: {
380
380
  textAnchor: "middle",
381
- ...p?.graphObjectValues || {}
382
- }, className: fe("graph-value graph-value-line-1 text-xs font-bold", d?.graphObjectValues), exit: {
381
+ ...x?.graphObjectValues || {}
382
+ }, className: de("graph-value graph-value-line-1 text-xs font-bold", d?.graphObjectValues), exit: {
383
383
  opacity: 0,
384
384
  transition: {
385
385
  duration: i.duration
@@ -387,24 +387,24 @@ function Xi(r) {
387
387
  }, variants: {
388
388
  initial: {
389
389
  opacity: 0,
390
- x: s(e.date),
390
+ x: a(e.date),
391
391
  y: l(e.y1),
392
392
  fill: c[0]
393
393
  },
394
394
  whileInView: {
395
395
  opacity: 1,
396
396
  fill: c[0],
397
- x: s(e.date),
397
+ x: a(e.date),
398
398
  y: l(e.y1),
399
399
  transition: {
400
400
  duration: h ? i.duration : 0.5,
401
401
  delay: h ? 0 : i.duration
402
402
  }
403
403
  }
404
- }, initial: "initial", animate: m ? "whileInView" : "initial", children: ii(e.y1, "NA", A, w, O) }) : null
404
+ }, initial: "initial", animate: m ? "whileInView" : "initial", children: ii(e.y1, "NA", O, b, C) }) : null
405
405
  ] }),
406
- Tt(e.y2) ? null : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
407
- N ? /* @__PURE__ */ a.jsx(S.circle, { r: u / o.length < 5 ? 0 : u / o.length < 20 ? 2 : 4, exit: {
406
+ Nt(e.y2) ? null : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
407
+ G ? /* @__PURE__ */ s.jsx($.circle, { r: u / o.length < 5 ? 0 : u / o.length < 20 ? 2 : 4, exit: {
408
408
  opacity: 0,
409
409
  transition: {
410
410
  duration: i.duration
@@ -412,7 +412,7 @@ function Xi(r) {
412
412
  }, variants: {
413
413
  initial: {
414
414
  opacity: 0,
415
- cx: s(e.date),
415
+ cx: a(e.date),
416
416
  cy: l(e.y2),
417
417
  fill: c[1]
418
418
  },
@@ -423,14 +423,14 @@ function Xi(r) {
423
423
  duration: h ? i.duration : 0.5,
424
424
  delay: h ? 0 : i.duration
425
425
  },
426
- cx: s(e.date),
426
+ cx: a(e.date),
427
427
  cy: l(e.y2)
428
428
  }
429
429
  }, initial: "initial", animate: m ? "whileInView" : "initial" }) : null,
430
- b ? /* @__PURE__ */ a.jsx(S.text, { dy: e.y2 > e.y1 ? -8 : "1em", style: {
430
+ j ? /* @__PURE__ */ s.jsx($.text, { dy: e.y2 > e.y1 ? -8 : "1em", style: {
431
431
  textAnchor: "middle",
432
- ...p?.graphObjectValues || {}
433
- }, className: fe("graph-value graph-value-line-2 text-xs font-bold", d?.graphObjectValues), exit: {
432
+ ...x?.graphObjectValues || {}
433
+ }, className: de("graph-value graph-value-line-2 text-xs font-bold", d?.graphObjectValues), exit: {
434
434
  opacity: 0,
435
435
  transition: {
436
436
  duration: i.duration
@@ -438,13 +438,13 @@ function Xi(r) {
438
438
  }, variants: {
439
439
  initial: {
440
440
  opacity: 0,
441
- x: s(e.date),
441
+ x: a(e.date),
442
442
  y: l(e.y2),
443
443
  fill: c[1]
444
444
  },
445
445
  whileInView: {
446
446
  opacity: 1,
447
- x: s(e.date),
447
+ x: a(e.date),
448
448
  y: l(e.y2),
449
449
  fill: c[1],
450
450
  transition: {
@@ -452,107 +452,107 @@ function Xi(r) {
452
452
  delay: h ? 0 : i.duration
453
453
  }
454
454
  }
455
- }, initial: "initial", animate: m ? "whileInView" : "initial", children: ii(e.y2, "NA", A, w, O) }) : null
455
+ }, initial: "initial", animate: m ? "whileInView" : "initial", children: ii(e.y2, "NA", O, b, C) }) : null
456
456
  ] })
457
- ] }, R), t[157] = i.duration, t[158] = d?.graphObjectValues, t[159] = o.length, t[160] = u, t[161] = h, t[162] = m, t[163] = c[0], t[164] = c[1], t[165] = A, t[166] = w, t[167] = N, t[168] = b, t[169] = p?.graphObjectValues, t[170] = O, t[171] = s, t[172] = l, t[173] = n) : n = t[173], Me = o.map(n), t[140] = i.duration, t[141] = d?.graphObjectValues, t[142] = o, t[143] = u, t[144] = h, t[145] = m, t[146] = c[0], t[147] = c[1], t[148] = A, t[149] = w, t[150] = N, t[151] = b, t[152] = p?.graphObjectValues, t[153] = O, t[154] = s, t[155] = l, t[156] = Me;
457
+ ] }, B), t[157] = i.duration, t[158] = d?.graphObjectValues, t[159] = o.length, t[160] = u, t[161] = h, t[162] = m, t[163] = c[0], t[164] = c[1], t[165] = O, t[166] = b, t[167] = G, t[168] = j, t[169] = x?.graphObjectValues, t[170] = C, t[171] = a, t[172] = l, t[173] = n) : n = t[173], Pe = o.map(n), t[140] = i.duration, t[141] = d?.graphObjectValues, t[142] = o, t[143] = u, t[144] = h, t[145] = m, t[146] = c[0], t[147] = c[1], t[148] = O, t[149] = b, t[150] = G, t[151] = j, t[152] = x?.graphObjectValues, t[153] = C, t[154] = a, t[155] = l, t[156] = Pe;
458
458
  } else
459
- Me = t[156];
460
- let Ne;
461
- t[174] !== i || t[175] !== u || t[176] !== m || t[177] !== D || t[178] !== y.right || t[179] !== gt || t[180] !== l ? (Ne = gt ? /* @__PURE__ */ a.jsx(a.Fragment, { children: gt.map((n, e) => /* @__PURE__ */ a.jsx(bi, { text: n.text, color: n.color, y: l(n.value), x1: 0 - D, x2: u + y.right, classNames: n.classNames, styles: n.styles, animate: i, isInView: m }, e)) }) : null, t[174] = i, t[175] = u, t[176] = m, t[177] = D, t[178] = y.right, t[179] = gt, t[180] = l, t[181] = Ne) : Ne = t[181];
462
- let ee;
463
- if (t[182] !== i || t[183] !== Rt || t[184] !== f || t[185] !== u || t[186] !== m || t[187] !== y.right || t[188] !== Y || t[189] !== s || t[190] !== l) {
459
+ Pe = t[156];
460
+ let He;
461
+ t[174] !== i || t[175] !== u || t[176] !== m || t[177] !== S || t[178] !== y.right || t[179] !== bt || t[180] !== l ? (He = bt ? /* @__PURE__ */ s.jsx(s.Fragment, { children: bt.map((n, e) => /* @__PURE__ */ s.jsx(bi, { text: n.text, color: n.color, y: l(n.value), x1: 0 - S, x2: u + y.right, classNames: n.classNames, styles: n.styles, animate: i, isInView: m }, e)) }) : null, t[174] = i, t[175] = u, t[176] = m, t[177] = S, t[178] = y.right, t[179] = bt, t[180] = l, t[181] = He) : He = t[181];
462
+ let oe;
463
+ if (t[182] !== i || t[183] !== Xt || t[184] !== f || t[185] !== u || t[186] !== m || t[187] !== y.right || t[188] !== U || t[189] !== a || t[190] !== l) {
464
464
  let n;
465
- t[192] !== i || t[193] !== f || t[194] !== u || t[195] !== m || t[196] !== y.right || t[197] !== Y || t[198] !== s || t[199] !== l ? (n = (e, R) => {
466
- const $t = xi({
467
- x: e.xCoordinate ? s(V(`${e.xCoordinate}`, f, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
465
+ t[192] !== i || t[193] !== f || t[194] !== u || t[195] !== m || t[196] !== y.right || t[197] !== U || t[198] !== a || t[199] !== l ? (n = (e, B) => {
466
+ const Mt = xi({
467
+ x: e.xCoordinate ? a(D(`${e.xCoordinate}`, f, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
468
468
  y: e.yCoordinate ? l(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8
469
469
  }, {
470
- x: e.xCoordinate ? s(V(`${e.xCoordinate}`, f, /* @__PURE__ */ new Date())) : 0,
470
+ x: e.xCoordinate ? a(D(`${e.xCoordinate}`, f, /* @__PURE__ */ new Date())) : 0,
471
471
  y: e.yCoordinate ? l(e.yCoordinate) : 0
472
- }, Tt(e.connectorRadius) ? 3.5 : e.connectorRadius), mi = e.showConnector ? {
473
- y1: $t.y,
474
- x1: $t.x,
472
+ }, Nt(e.connectorRadius) ? 3.5 : e.connectorRadius), mi = e.showConnector ? {
473
+ y1: Mt.y,
474
+ x1: Mt.x,
475
475
  y2: e.yCoordinate ? l(e.yCoordinate) + (e.yOffset || 0) : 0 + (e.yOffset || 0),
476
- x2: e.xCoordinate ? s(V(`${e.xCoordinate}`, f, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
476
+ x2: e.xCoordinate ? a(D(`${e.xCoordinate}`, f, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
477
477
  cy: e.yCoordinate ? l(e.yCoordinate) : 0,
478
- cx: e.xCoordinate ? s(V(`${e.xCoordinate}`, f, /* @__PURE__ */ new Date())) : 0,
479
- circleRadius: Tt(e.connectorRadius) ? 3.5 : e.connectorRadius,
478
+ cx: e.xCoordinate ? a(D(`${e.xCoordinate}`, f, /* @__PURE__ */ new Date())) : 0,
479
+ circleRadius: Nt(e.connectorRadius) ? 3.5 : e.connectorRadius,
480
480
  strokeWidth: e.showConnector === !0 ? 2 : Math.min(e.showConnector || 0, 1)
481
481
  } : void 0, fi = {
482
482
  y: e.yCoordinate ? l(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8,
483
- x: Y ? 0 : e.xCoordinate ? s(V(`${e.xCoordinate}`, f, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
484
- width: Y ? e.xCoordinate ? s(V(`${e.xCoordinate}`, f, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0) : u + y.right - (e.xCoordinate ? s(V(`${e.xCoordinate}`, f, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0)),
483
+ x: U ? 0 : e.xCoordinate ? a(D(`${e.xCoordinate}`, f, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
484
+ width: U ? e.xCoordinate ? a(D(`${e.xCoordinate}`, f, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0) : u + y.right - (e.xCoordinate ? a(D(`${e.xCoordinate}`, f, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0)),
485
485
  maxWidth: e.maxWidth,
486
486
  fontWeight: e.fontWeight,
487
487
  align: e.align
488
488
  };
489
- return /* @__PURE__ */ a.jsx(yi, { color: e.color, connectorsSettings: mi, labelSettings: fi, text: e.text, classNames: e.classNames, styles: e.styles, animate: i, isInView: m }, R);
490
- }, t[192] = i, t[193] = f, t[194] = u, t[195] = m, t[196] = y.right, t[197] = Y, t[198] = s, t[199] = l, t[200] = n) : n = t[200], ee = Rt.map(n), t[182] = i, t[183] = Rt, t[184] = f, t[185] = u, t[186] = m, t[187] = y.right, t[188] = Y, t[189] = s, t[190] = l, t[191] = ee;
489
+ return /* @__PURE__ */ s.jsx(yi, { color: e.color, connectorsSettings: mi, labelSettings: fi, text: e.text, classNames: e.classNames, styles: e.styles, animate: i, isInView: m }, B);
490
+ }, t[192] = i, t[193] = f, t[194] = u, t[195] = m, t[196] = y.right, t[197] = U, t[198] = a, t[199] = l, t[200] = n) : n = t[200], oe = Xt.map(n), t[182] = i, t[183] = Xt, t[184] = f, t[185] = u, t[186] = m, t[187] = y.right, t[188] = U, t[189] = a, t[190] = l, t[191] = oe;
491
491
  } else
492
- ee = t[191];
493
- let Pe;
494
- t[201] !== ee ? (Pe = /* @__PURE__ */ a.jsx("g", { children: ee }), t[201] = ee, t[202] = Pe) : Pe = t[202];
495
- let He;
496
- t[203] !== P ? (He = P.filter(Bi).map(Ei), t[203] = P, t[204] = He) : He = t[204];
492
+ oe = t[191];
493
+ let Ge;
494
+ t[201] !== oe ? (Ge = /* @__PURE__ */ s.jsx("g", { children: oe }), t[201] = oe, t[202] = Ge) : Ge = t[202];
495
+ let Re;
496
+ t[203] !== R ? (Re = R.filter(Bi).map(Ei), t[203] = R, t[204] = Re) : Re = t[204];
497
497
  let Fe;
498
498
  t[205] === Symbol.for("react.memo_cache_sentinel") ? (Fe = {
499
499
  fill: "none",
500
500
  pointerEvents: "all"
501
501
  }, t[205] = Fe) : Fe = t[205];
502
- let Ge;
503
- t[206] !== rt || t[207] !== v || t[208] !== u ? (Ge = /* @__PURE__ */ a.jsx("rect", { ref: rt, style: Fe, width: u, height: v }), t[206] = rt, t[207] = v, t[208] = u, t[209] = Ge) : Ge = t[209];
504
- let Re;
505
- return t[210] !== d?.tooltip || t[211] !== x || t[212] !== z || t[213] !== L || t[214] !== p?.tooltip || t[215] !== W ? (Re = L && W && x && z ? /* @__PURE__ */ a.jsx(hi, { data: L, body: W, xPos: x, yPos: z, backgroundStyle: p?.tooltip, className: d?.tooltip }) : null, t[210] = d?.tooltip, t[211] = x, t[212] = z, t[213] = L, t[214] = p?.tooltip, t[215] = W, t[216] = Re) : Re = t[216], /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
506
- /* @__PURE__ */ a.jsx(S.svg, { width: `${ot}px`, height: `${It}px`, viewBox: `0 0 ${ot} ${It}`, direction: "ltr", ref: jt, children: /* @__PURE__ */ a.jsxs("g", { transform: `translate(${y.left},${y.top})`, children: [
507
- /* @__PURE__ */ a.jsx("clipPath", { id: `above${nt}`, children: /* @__PURE__ */ a.jsx("path", { d: le(o), style: ut }) }),
508
- /* @__PURE__ */ a.jsx("clipPath", { id: `below${nt}`, children: /* @__PURE__ */ a.jsx("path", { d: re(o), style: _ }) }),
509
- dt,
510
- /* @__PURE__ */ a.jsx(pi, { areaSettings: ae, scaleX: s, scaleY: l, animate: i, isInView: m }),
511
- /* @__PURE__ */ a.jsx("g", { children: /* @__PURE__ */ a.jsxs("g", { children: [
512
- /* @__PURE__ */ a.jsx(ji, { values: Ut.filter(Ji), y: Ut.filter(qi).map((n) => l(n)), x1: 0 - D, x2: u + y.right, styles: et, classNames: Lt, suffix: O, prefix: w, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: A }),
513
- de,
514
- he
502
+ let We;
503
+ t[206] !== mt || t[207] !== w || t[208] !== u ? (We = /* @__PURE__ */ s.jsx("rect", { ref: mt, style: Fe, width: u, height: w }), t[206] = mt, t[207] = w, t[208] = u, t[209] = We) : We = t[209];
504
+ let Ye;
505
+ return t[210] !== d?.tooltip || t[211] !== p || t[212] !== K || t[213] !== k || t[214] !== x?.tooltip || t[215] !== z ? (Ye = k && z && p && K ? /* @__PURE__ */ s.jsx(hi, { data: k, body: z, xPos: p, yPos: K, backgroundStyle: x?.tooltip, className: d?.tooltip }) : null, t[210] = d?.tooltip, t[211] = p, t[212] = K, t[213] = k, t[214] = x?.tooltip, t[215] = z, t[216] = Ye) : Ye = t[216], /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
506
+ /* @__PURE__ */ s.jsx($.svg, { width: `${st}px`, height: `${Pt}px`, viewBox: `0 0 ${st} ${Pt}`, direction: "ltr", ref: Ct, children: /* @__PURE__ */ s.jsxs("g", { transform: `translate(${y.left},${y.top})`, children: [
507
+ /* @__PURE__ */ s.jsx("clipPath", { id: `above${rt}`, children: /* @__PURE__ */ s.jsx("path", { d: me(o), style: pt }) }),
508
+ /* @__PURE__ */ s.jsx("clipPath", { id: `below${rt}`, children: /* @__PURE__ */ s.jsx("path", { d: ce(o), style: it }) }),
509
+ xt,
510
+ /* @__PURE__ */ s.jsx(pi, { areaSettings: re, scaleX: a, scaleY: l, animate: i, isInView: m }),
511
+ /* @__PURE__ */ s.jsx("g", { children: /* @__PURE__ */ s.jsxs("g", { children: [
512
+ /* @__PURE__ */ s.jsx(ji, { values: Kt.filter(Ji), y: Kt.filter(qi).map((n) => l(n)), x1: 0 - S, x2: u + y.right, styles: nt, classNames: $t, suffix: C, prefix: b, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: O }),
513
+ pe,
514
+ xe
515
515
  ] }) }),
516
- /* @__PURE__ */ a.jsx(wi, { values: ri, x: li, y1: 0, y2: v, styles: xe, classNames: ye, suffix: O, prefix: w, labelType: "primary", showGridLines: !0, precision: A }),
517
- ge,
518
- /* @__PURE__ */ a.jsxs("g", { children: [
519
- /* @__PURE__ */ a.jsx(S.path, { clipPath: `url(#below${nt})`, d: Vt(o) || "", style: ve, exit: we, variants: je, initial: "initial", animate: m ? "whileInView" : "initial" }),
520
- /* @__PURE__ */ a.jsx(S.path, { clipPath: `url(#above${nt})`, d: Vt(o) || "", style: Ae, exit: Oe, variants: Ve, initial: "initial", animate: m ? "whileInView" : "initial" })
516
+ /* @__PURE__ */ s.jsx(wi, { values: ri, x: li, y1: 0, y2: w, styles: ge, classNames: ve, suffix: C, prefix: b, labelType: "primary", showGridLines: !0, precision: O }),
517
+ we,
518
+ /* @__PURE__ */ s.jsxs("g", { children: [
519
+ /* @__PURE__ */ s.jsx($.path, { clipPath: `url(#below${rt})`, d: St(o) || "", style: be, exit: je, variants: Oe, initial: "initial", animate: m ? "whileInView" : "initial" }),
520
+ /* @__PURE__ */ s.jsx($.path, { clipPath: `url(#above${rt})`, d: St(o) || "", style: Ce, exit: Ve, variants: De, initial: "initial", animate: m ? "whileInView" : "initial" })
521
521
  ] }),
522
- /* @__PURE__ */ a.jsxs("g", { children: [
523
- /* @__PURE__ */ a.jsx(S.path, { d: ft(o) || "", style: De, exit: Le, variants: {
522
+ /* @__PURE__ */ s.jsxs("g", { children: [
523
+ /* @__PURE__ */ s.jsx($.path, { d: ht(o) || "", style: Se, exit: ke, variants: {
524
524
  initial: {
525
525
  pathLength: 0,
526
- d: ft(o) || "",
526
+ d: ht(o) || "",
527
527
  opacity: 1
528
528
  },
529
529
  whileInView: {
530
530
  pathLength: 1,
531
- d: ft(o) || "",
531
+ d: ht(o) || "",
532
532
  opacity: 1,
533
533
  transition: {
534
534
  duration: i.duration
535
535
  }
536
536
  }
537
537
  }, initial: "initial", animate: m ? "whileInView" : "initial" }),
538
- /* @__PURE__ */ a.jsx(S.path, { style: Se, exit: ke, variants: {
538
+ /* @__PURE__ */ s.jsx($.path, { style: $e, exit: Te, variants: {
539
539
  initial: {
540
540
  pathLength: 0,
541
- d: zt(o) || "",
541
+ d: Jt(o) || "",
542
542
  opacity: 1
543
543
  },
544
- whileInView: $e
544
+ whileInView: Ie
545
545
  }, initial: "initial", animate: m ? "whileInView" : "initial" }),
546
- Te,
547
- Ie,
548
- Me
546
+ Me,
547
+ Ne,
548
+ Pe
549
549
  ] }),
550
- Ne,
551
- Pe,
552
550
  He,
553
- Ge
551
+ Ge,
552
+ Re,
553
+ We
554
554
  ] }) }),
555
- Re
555
+ Ye
556
556
  ] });
557
557
  }
558
558
  function Ei(r) {
@@ -607,123 +607,130 @@ function so(r) {
607
607
  return r.y1;
608
608
  }
609
609
  function Bo(r) {
610
- const t = si.c(90), {
611
- data: k,
612
- graphTitle: ot,
613
- suffix: It,
610
+ const t = si.c(102), {
611
+ data: v,
612
+ graphTitle: st,
613
+ suffix: Pt,
614
614
  sources: c,
615
- prefix: O,
616
- graphDescription: w,
615
+ prefix: C,
616
+ graphDescription: b,
617
617
  height: f,
618
- width: b,
619
- footNote: Mt,
620
- noOfXTicks: Nt,
621
- dateFormat: D,
622
- showValues: Pt,
623
- padding: yt,
624
- lineColors: W,
625
- backgroundColor: Ht,
626
- leftMargin: Ft,
618
+ width: j,
619
+ footNote: Ht,
620
+ noOfXTicks: Gt,
621
+ dateFormat: S,
622
+ showValues: Rt,
623
+ padding: wt,
624
+ lineColors: z,
625
+ backgroundColor: Ft,
626
+ leftMargin: Wt,
627
627
  rightMargin: i,
628
- topMargin: Y,
629
- bottomMargin: Gt,
630
- tooltip: I,
631
- highlightAreaSettings: $,
632
- relativeHeight: nt,
633
- onSeriesMouseOver: M,
634
- graphID: N,
635
- graphDownload: gt,
636
- dataDownload: T,
637
- animate: vt,
638
- language: Rt,
639
- minHeight: Wt,
640
- labels: X,
641
- showColorLegendAtTop: ue,
642
- colorLegendTitle: Yt,
643
- diffAreaColors: wt,
644
- strokeWidth: bt,
645
- showDots: p,
628
+ topMargin: U,
629
+ bottomMargin: Yt,
630
+ tooltip: P,
631
+ highlightAreaSettings: T,
632
+ relativeHeight: rt,
633
+ onSeriesMouseOver: H,
634
+ graphID: G,
635
+ graphDownload: bt,
636
+ dataDownload: I,
637
+ animate: jt,
638
+ language: Xt,
639
+ minHeight: Et,
640
+ labels: M,
641
+ showColorLegendAtTop: he,
642
+ colorLegendTitle: Bt,
643
+ diffAreaColors: At,
644
+ strokeWidth: Ot,
645
+ showDots: x,
646
646
  refValues: d,
647
- minValue: A,
648
- maxValue: P,
649
- annotations: jt,
650
- customHighlightAreaSettings: E,
647
+ minValue: O,
648
+ maxValue: R,
649
+ annotations: Ct,
650
+ customHighlightAreaSettings: q,
651
651
  theme: m,
652
652
  ariaLabel: h,
653
- yAxisTitle: oe,
654
- noOfYTicks: At,
655
- minDate: at,
656
- maxDate: B,
657
- curveType: L,
653
+ yAxisTitle: ae,
654
+ noOfYTicks: Vt,
655
+ minDate: lt,
656
+ maxDate: J,
657
+ curveType: k,
658
658
  styles: g,
659
- classNames: x,
660
- precision: ne,
661
- customLayers: z
662
- } = r, Xt = It === void 0 ? "" : It, Ot = O === void 0 ? "" : O, st = Nt === void 0 ? 10 : Nt, y = D === void 0 ? "yyyy" : D, rt = Pt === void 0 ? !1 : Pt;
663
- let U;
664
- t[0] !== W ? (U = W === void 0 ? [We.light.categoricalColors.colors[0], We.light.categoricalColors.colors[1]] : W, t[0] = W, t[1] = U) : U = t[1];
665
- const o = U, lt = Ht === void 0 ? !1 : Ht, Ct = Ft === void 0 ? 30 : Ft, ct = i === void 0 ? 50 : i, ae = Y === void 0 ? 20 : Y, u = Gt === void 0 ? 25 : Gt;
666
- let v;
667
- t[2] !== $ ? (v = $ === void 0 ? [] : $, t[2] = $, t[3] = v) : v = t[3];
668
- const se = v, Et = gt === void 0 ? !1 : gt, q = T === void 0 ? !1 : T, J = vt === void 0 ? !1 : vt, H = Rt === void 0 ? "en" : Rt, Bt = Wt === void 0 ? 0 : Wt, K = ue === void 0 ? !1 : ue;
669
- let j;
670
- t[4] !== wt ? (j = wt === void 0 ? [We.alerts.red, We.alerts.darkGreen] : wt, t[4] = wt, t[5] = j) : j = t[5];
671
- const Q = j, s = bt === void 0 ? 2 : bt, mt = p === void 0 ? !0 : p;
672
- let Z;
673
- t[6] !== d ? (Z = d === void 0 ? [] : d, t[6] = d, t[7] = Z) : Z = t[7];
674
- const l = Z;
675
- let ft;
676
- t[8] !== jt ? (ft = jt === void 0 ? [] : jt, t[8] = jt, t[9] = ft) : ft = t[9];
677
- const zt = ft;
678
- let Vt;
679
- t[10] !== E ? (Vt = E === void 0 ? [] : E, t[10] = E, t[11] = Vt) : Vt = t[11];
680
- const re = Vt, le = m === void 0 ? "light" : m, Ut = At === void 0 ? 5 : At, qt = L === void 0 ? "curve" : L, ut = ne === void 0 ? 2 : ne;
681
- let _;
682
- t[12] !== z ? (_ = z === void 0 ? [] : z, t[12] = z, t[13] = _) : _ = t[13];
683
- const dt = _, [tt, ce] = ie(0), [et, me] = ie(0), Dt = Ye(null), Lt = Ye(null);
684
- let ht, pt;
685
- t[14] === Symbol.for("react.memo_cache_sentinel") ? (ht = () => {
686
- const Jt = new ResizeObserver((it) => {
687
- ce(it[0].target.clientWidth || 620), me(it[0].target.clientHeight || 480);
659
+ classNames: p,
660
+ precision: se,
661
+ customLayers: K
662
+ } = r, zt = Pt === void 0 ? "" : Pt, Lt = C === void 0 ? "" : C, ct = Gt === void 0 ? 10 : Gt, y = S === void 0 ? "yyyy" : S, mt = Rt === void 0 ? !1 : Rt;
663
+ let Q;
664
+ t[0] !== z ? (Q = z === void 0 ? [Xe.light.categoricalColors.colors[0], Xe.light.categoricalColors.colors[1]] : z, t[0] = z, t[1] = Q) : Q = t[1];
665
+ const o = Q, ft = Ft === void 0 ? !1 : Ft, Dt = Wt === void 0 ? 30 : Wt, ut = i === void 0 ? 50 : i, re = U === void 0 ? 20 : U, u = Yt === void 0 ? 25 : Yt;
666
+ let w;
667
+ t[2] !== T ? (w = T === void 0 ? [] : T, t[2] = T, t[3] = w) : w = t[3];
668
+ const le = w, Ut = bt === void 0 ? !1 : bt, Z = I === void 0 ? !1 : I, _ = jt === void 0 ? !1 : jt, F = Xt === void 0 ? "en" : Xt, qt = Et === void 0 ? 0 : Et, N = he === void 0 ? !1 : he;
669
+ let A;
670
+ t[4] !== At ? (A = At === void 0 ? [Xe.alerts.red, Xe.alerts.darkGreen] : At, t[4] = At, t[5] = A) : A = t[5];
671
+ const tt = A, a = Ot === void 0 ? 2 : Ot, dt = x === void 0 ? !0 : x;
672
+ let et;
673
+ t[6] !== d ? (et = d === void 0 ? [] : d, t[6] = d, t[7] = et) : et = t[7];
674
+ const l = et;
675
+ let ht;
676
+ t[8] !== Ct ? (ht = Ct === void 0 ? [] : Ct, t[8] = Ct, t[9] = ht) : ht = t[9];
677
+ const Jt = ht;
678
+ let St;
679
+ t[10] !== q ? (St = q === void 0 ? [] : q, t[10] = q, t[11] = St) : St = t[11];
680
+ const ce = St, me = m === void 0 ? "light" : m, Kt = Vt === void 0 ? 5 : Vt, Qt = k === void 0 ? "curve" : k, pt = se === void 0 ? 2 : se;
681
+ let it;
682
+ t[12] !== K ? (it = K === void 0 ? [] : K, t[12] = K, t[13] = it) : it = t[13];
683
+ const xt = it, [ot, fe] = ne(0), [nt, ue] = ne(0), kt = Ee(null), $t = Ee(null);
684
+ let yt, gt;
685
+ t[14] === Symbol.for("react.memo_cache_sentinel") ? (yt = () => {
686
+ const Zt = new ResizeObserver((at) => {
687
+ fe(at[0].target.clientWidth || 620), ue(at[0].target.clientHeight || 480);
688
688
  });
689
- return Dt.current && Jt.observe(Dt.current), () => Jt.disconnect();
690
- }, pt = [], t[14] = ht, t[15] = pt) : (ht = t[14], pt = t[15]), ni(ht, pt);
691
- const St = x?.graphContainer, kt = g?.graphContainer;
692
- let F;
693
- t[16] !== x?.description || t[17] !== x?.title || t[18] !== k || t[19] !== q || t[20] !== w || t[21] !== Et || t[22] !== ot || t[23] !== g?.description || t[24] !== g?.title || t[25] !== b ? (F = ot || w || Et || q ? /* @__PURE__ */ a.jsx(Pi, { styles: {
689
+ return kt.current && Zt.observe(kt.current), () => Zt.disconnect();
690
+ }, gt = [], t[14] = yt, t[15] = gt) : (yt = t[14], gt = t[15]), ni(yt, gt);
691
+ const Tt = p?.graphContainer, It = g?.graphContainer;
692
+ let W;
693
+ t[16] !== p?.description || t[17] !== p?.title || t[18] !== v || t[19] !== Z || t[20] !== b || t[21] !== Ut || t[22] !== st || t[23] !== g?.description || t[24] !== g?.title || t[25] !== j ? (W = st || b || Ut || Z ? /* @__PURE__ */ s.jsx(Pi, { styles: {
694
694
  title: g?.title,
695
695
  description: g?.description
696
696
  }, classNames: {
697
- title: x?.title,
698
- description: x?.description
699
- }, graphTitle: ot, graphDescription: w, width: b, graphDownload: Et ? Lt : void 0, dataDownload: q ? k.map(fo).filter(mo).length > 0 ? k.map(co).filter(lo) : k.filter(ro) : null }) : null, t[16] = x?.description, t[17] = x?.title, t[18] = k, t[19] = q, t[20] = w, t[21] = Et, t[22] = ot, t[23] = g?.description, t[24] = g?.title, t[25] = b, t[26] = F) : F = t[26];
700
- let C;
701
- t[27] !== J || t[28] !== zt || t[29] !== u || t[30] !== x || t[31] !== Yt || t[32] !== qt || t[33] !== re || t[34] !== dt || t[35] !== k || t[36] !== y || t[37] !== Q || t[38] !== se || t[39] !== X || t[40] !== H || t[41] !== Ct || t[42] !== o || t[43] !== B || t[44] !== P || t[45] !== at || t[46] !== A || t[47] !== st || t[48] !== Ut || t[49] !== M || t[50] !== ut || t[51] !== Ot || t[52] !== l || t[53] !== ct || t[54] !== K || t[55] !== mt || t[56] !== rt || t[57] !== s || t[58] !== g || t[59] !== Xt || t[60] !== et || t[61] !== tt || t[62] !== I || t[63] !== ae || t[64] !== oe ? (C = k.length === 0 ? /* @__PURE__ */ a.jsx(Gi, {}) : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
702
- K ? /* @__PURE__ */ a.jsx(Hi, { colorDomain: X, colorLegendTitle: Yt, colors: o, showNAColor: !1, className: x?.colorLegend }) : null,
703
- /* @__PURE__ */ a.jsx(Ri, { ref: Dt, children: tt && et ? /* @__PURE__ */ a.jsx(Xi, { data: k, lineColors: o, colorDomain: X, width: tt, height: et, suffix: Xt, prefix: Ot, dateFormat: y, showValues: rt, noOfXTicks: st ?? Yi(tt), leftMargin: Ct, rightMargin: ct, topMargin: ae, bottomMargin: u, highlightAreaSettings: se, tooltip: I, onSeriesMouseOver: M, showColorLegendAtTop: K, animate: J === !0 ? {
704
- duration: 0.5,
705
- once: !0,
706
- amount: 0.5
707
- } : J || {
708
- duration: 0,
709
- once: !0,
710
- amount: 0
711
- }, rtl: H === "he" || H === "ar", diffAreaColors: Q, idSuffix: Fi(8), strokeWidth: s, showDots: mt, refValues: l, minValue: A, maxValue: P, annotations: zt, customHighlightAreaSettings: re, yAxisTitle: oe, noOfYTicks: Ut, minDate: at, maxDate: B, curveType: qt, styles: g, classNames: x, precision: ut, customLayers: dt }) : null })
712
- ] }), t[27] = J, t[28] = zt, t[29] = u, t[30] = x, t[31] = Yt, t[32] = qt, t[33] = re, t[34] = dt, t[35] = k, t[36] = y, t[37] = Q, t[38] = se, t[39] = X, t[40] = H, t[41] = Ct, t[42] = o, t[43] = B, t[44] = P, t[45] = at, t[46] = A, t[47] = st, t[48] = Ut, t[49] = M, t[50] = ut, t[51] = Ot, t[52] = l, t[53] = ct, t[54] = K, t[55] = mt, t[56] = rt, t[57] = s, t[58] = g, t[59] = Xt, t[60] = et, t[61] = tt, t[62] = I, t[63] = ae, t[64] = oe, t[65] = C) : C = t[65];
713
- let G;
714
- t[66] !== x?.footnote || t[67] !== x?.source || t[68] !== Mt || t[69] !== c || t[70] !== g?.footnote || t[71] !== g?.source || t[72] !== b ? (G = c || Mt ? /* @__PURE__ */ a.jsx(Ni, { styles: {
697
+ title: p?.title,
698
+ description: p?.description
699
+ }, graphTitle: st, graphDescription: b, width: j, graphDownload: Ut ? $t : void 0, dataDownload: Z ? v.map(fo).filter(mo).length > 0 ? v.map(co).filter(lo) : v.filter(ro) : null }) : null, t[16] = p?.description, t[17] = p?.title, t[18] = v, t[19] = Z, t[20] = b, t[21] = Ut, t[22] = st, t[23] = g?.description, t[24] = g?.title, t[25] = j, t[26] = W) : W = t[26];
700
+ let V;
701
+ t[27] !== p?.colorLegend || t[28] !== Bt || t[29] !== v.length || t[30] !== M || t[31] !== o || t[32] !== N ? (V = N && v.length > 0 ? /* @__PURE__ */ s.jsx(Hi, { colorDomain: M, colorLegendTitle: Bt, colors: o, showNAColor: !1, className: p?.colorLegend }) : null, t[27] = p?.colorLegend, t[28] = Bt, t[29] = v.length, t[30] = M, t[31] = o, t[32] = N, t[33] = V) : V = t[33];
702
+ let Y;
703
+ t[34] !== v.length ? (Y = v.length === 0 && /* @__PURE__ */ s.jsx(Ri, {}), t[34] = v.length, t[35] = Y) : Y = t[35];
704
+ let X;
705
+ t[36] !== _ || t[37] !== Jt || t[38] !== u || t[39] !== p || t[40] !== Qt || t[41] !== ce || t[42] !== xt || t[43] !== v || t[44] !== y || t[45] !== tt || t[46] !== le || t[47] !== M || t[48] !== F || t[49] !== Dt || t[50] !== o || t[51] !== J || t[52] !== R || t[53] !== lt || t[54] !== O || t[55] !== ct || t[56] !== Kt || t[57] !== H || t[58] !== pt || t[59] !== Lt || t[60] !== l || t[61] !== ut || t[62] !== N || t[63] !== dt || t[64] !== mt || t[65] !== a || t[66] !== g || t[67] !== zt || t[68] !== nt || t[69] !== ot || t[70] !== P || t[71] !== re || t[72] !== ae ? (X = ot && nt && v.length > 0 ? /* @__PURE__ */ s.jsx(Xi, { data: v, lineColors: o, colorDomain: M, width: ot, height: nt, suffix: zt, prefix: Lt, dateFormat: y, showValues: mt, noOfXTicks: ct ?? Yi(ot), leftMargin: Dt, rightMargin: ut, topMargin: re, bottomMargin: u, highlightAreaSettings: le, tooltip: P, onSeriesMouseOver: H, showColorLegendAtTop: N, animate: _ === !0 ? {
706
+ duration: 0.5,
707
+ once: !0,
708
+ amount: 0.5
709
+ } : _ || {
710
+ duration: 0,
711
+ once: !0,
712
+ amount: 0
713
+ }, rtl: F === "he" || F === "ar", diffAreaColors: tt, idSuffix: Gi(8), strokeWidth: a, showDots: dt, refValues: l, minValue: O, maxValue: R, annotations: Jt, customHighlightAreaSettings: ce, yAxisTitle: ae, noOfYTicks: Kt, minDate: lt, maxDate: J, curveType: Qt, styles: g, classNames: p, precision: pt, customLayers: xt }) : null, t[36] = _, t[37] = Jt, t[38] = u, t[39] = p, t[40] = Qt, t[41] = ce, t[42] = xt, t[43] = v, t[44] = y, t[45] = tt, t[46] = le, t[47] = M, t[48] = F, t[49] = Dt, t[50] = o, t[51] = J, t[52] = R, t[53] = lt, t[54] = O, t[55] = ct, t[56] = Kt, t[57] = H, t[58] = pt, t[59] = Lt, t[60] = l, t[61] = ut, t[62] = N, t[63] = dt, t[64] = mt, t[65] = a, t[66] = g, t[67] = zt, t[68] = nt, t[69] = ot, t[70] = P, t[71] = re, t[72] = ae, t[73] = X) : X = t[73];
714
+ let E;
715
+ t[74] !== Y || t[75] !== X ? (E = /* @__PURE__ */ s.jsxs(Fi, { ref: kt, children: [
716
+ Y,
717
+ X
718
+ ] }), t[74] = Y, t[75] = X, t[76] = E) : E = t[76];
719
+ let L;
720
+ t[77] !== p?.footnote || t[78] !== p?.source || t[79] !== Ht || t[80] !== c || t[81] !== g?.footnote || t[82] !== g?.source || t[83] !== j ? (L = c || Ht ? /* @__PURE__ */ s.jsx(Ni, { styles: {
715
721
  footnote: g?.footnote,
716
722
  source: g?.source
717
723
  }, classNames: {
718
- footnote: x?.footnote,
719
- source: x?.source
720
- }, sources: c, footNote: Mt, width: b }) : null, t[66] = x?.footnote, t[67] = x?.source, t[68] = Mt, t[69] = c, t[70] = g?.footnote, t[71] = g?.source, t[72] = b, t[73] = G) : G = t[73];
721
- let xt;
722
- return t[74] !== h || t[75] !== lt || t[76] !== N || t[77] !== f || t[78] !== H || t[79] !== Bt || t[80] !== yt || t[81] !== nt || t[82] !== St || t[83] !== kt || t[84] !== F || t[85] !== C || t[86] !== G || t[87] !== le || t[88] !== b ? (xt = /* @__PURE__ */ a.jsxs(Wi, { className: St, style: kt, id: N, ref: Lt, "aria-label": h, backgroundColor: lt, theme: le, language: H, minHeight: Bt, width: b, height: f, relativeHeight: nt, padding: yt, children: [
723
- F,
724
- C,
725
- G
726
- ] }), t[74] = h, t[75] = lt, t[76] = N, t[77] = f, t[78] = H, t[79] = Bt, t[80] = yt, t[81] = nt, t[82] = St, t[83] = kt, t[84] = F, t[85] = C, t[86] = G, t[87] = le, t[88] = b, t[89] = xt) : xt = t[89], xt;
724
+ footnote: p?.footnote,
725
+ source: p?.source
726
+ }, sources: c, footNote: Ht, width: j }) : null, t[77] = p?.footnote, t[78] = p?.source, t[79] = Ht, t[80] = c, t[81] = g?.footnote, t[82] = g?.source, t[83] = j, t[84] = L) : L = t[84];
727
+ let vt;
728
+ return t[85] !== h || t[86] !== ft || t[87] !== G || t[88] !== f || t[89] !== F || t[90] !== qt || t[91] !== wt || t[92] !== rt || t[93] !== Tt || t[94] !== It || t[95] !== W || t[96] !== V || t[97] !== E || t[98] !== L || t[99] !== me || t[100] !== j ? (vt = /* @__PURE__ */ s.jsxs(Wi, { className: Tt, style: It, id: G, ref: $t, "aria-label": h, backgroundColor: ft, theme: me, language: F, minHeight: qt, width: j, height: f, relativeHeight: rt, padding: wt, children: [
729
+ W,
730
+ V,
731
+ E,
732
+ L
733
+ ] }), t[85] = h, t[86] = ft, t[87] = G, t[88] = f, t[89] = F, t[90] = qt, t[91] = wt, t[92] = rt, t[93] = Tt, t[94] = It, t[95] = W, t[96] = V, t[97] = E, t[98] = L, t[99] = me, t[100] = j, t[101] = vt) : vt = t[101], vt;
727
734
  }
728
735
  function ro(r) {
729
736
  return r !== void 0;