@konstructio/ui 0.1.2-alpha.3 → 0.1.2-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/dist/{Modal-V67Uz78z.js → Modal-D-NOEWMX.js} +3 -3
  2. package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
  3. package/dist/{chevron-down-BLZPftpV.js → chevron-down-MZvQoT2F.js} +2 -2
  4. package/dist/chevron-right-VYBOBhRt.js +19 -0
  5. package/dist/components/Alert/Alert.js +2 -2
  6. package/dist/components/AlertDialog/AlertDialog.js +1 -1
  7. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  8. package/dist/components/AlertDialog/components/index.js +1 -1
  9. package/dist/components/Badge/Badge.js +2 -2
  10. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  11. package/dist/components/Breadcrumb/components/Item/Item.js +16 -15
  12. package/dist/components/Checkbox/Checkbox.js +5 -4
  13. package/dist/components/Command/Command.js +2 -2
  14. package/dist/components/Command/components/Command.js +1 -1
  15. package/dist/components/Command/components/CommandEmpty.js +1 -1
  16. package/dist/components/Command/components/CommandGroup.js +1 -1
  17. package/dist/components/Command/components/CommandInput.js +2 -2
  18. package/dist/components/Command/components/CommandItem.js +1 -1
  19. package/dist/components/Command/components/CommandList.js +1 -1
  20. package/dist/components/Command/components/CommandSeparator.js +1 -1
  21. package/dist/components/Command/components/DialogContent.js +2 -2
  22. package/dist/components/Command/components/DialogOverlay.js +1 -1
  23. package/dist/components/Datepicker/DatePicker.js +545 -543
  24. package/dist/components/Dropdown/Dropdown.js +36 -24
  25. package/dist/components/Dropdown/Dropdown.variants.js +25 -7
  26. package/dist/components/Dropdown/components/List/List.js +59 -44
  27. package/dist/components/Dropdown/components/List/List.variants.js +9 -7
  28. package/dist/components/Dropdown/components/ListItem/ListItem.js +48 -24
  29. package/dist/components/Dropdown/components/ListItem/ListItem.variants.js +9 -7
  30. package/dist/components/Dropdown/components/Wrapper.js +141 -106
  31. package/dist/components/Dropdown/contexts/dropdown.context.js +9 -8
  32. package/dist/components/Dropdown/contexts/dropdown.provider.js +20 -19
  33. package/dist/components/Dropdown/hooks/useDropdown.js +26 -27
  34. package/dist/components/Dropdown/hooks/useNavigationList.js +32 -28
  35. package/dist/components/DropdownButton/DropdownButton.js +1 -1
  36. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
  37. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +1 -1
  38. package/dist/components/Input/Input.js +1 -1
  39. package/dist/components/Loading/Loading.js +2 -2
  40. package/dist/components/Modal/Modal.js +2 -2
  41. package/dist/components/Modal/components/Wrapper/Wrapper.js +3 -3
  42. package/dist/components/Modal/components/index.js +1 -1
  43. package/dist/components/NumberInput/NumberInput.js +2 -2
  44. package/dist/components/PieChart/PieChart.js +217 -215
  45. package/dist/components/Range/Range.js +1 -1
  46. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +29 -28
  47. package/dist/components/Slider/Slider.js +1 -1
  48. package/dist/components/Switch/Switch.js +6 -5
  49. package/dist/components/Tabs/Tabs.js +1 -1
  50. package/dist/components/Tabs/Tabs.variants.js +45 -24
  51. package/dist/components/Tabs/components/Content.js +1 -1
  52. package/dist/components/Tabs/components/List.js +1 -1
  53. package/dist/components/Tabs/components/Trigger.js +9 -8
  54. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +98 -49
  55. package/dist/components/TimePicker/components/Wrapper/Wrapper.js +1 -1
  56. package/dist/components/Toast/Toast.js +8 -7
  57. package/dist/components/VirtualizedTable/VirtualizedTable.js +99 -0
  58. package/dist/components/VirtualizedTable/VirtualizedTable.variants.js +5 -0
  59. package/dist/components/VirtualizedTable/assets/chevron-down.js +25 -0
  60. package/dist/components/VirtualizedTable/assets/chevron-up.js +25 -0
  61. package/dist/components/VirtualizedTable/assets/index.js +6 -0
  62. package/dist/components/VirtualizedTable/components/Actions/Actions.js +46 -0
  63. package/dist/components/VirtualizedTable/components/Body/Body.js +25 -0
  64. package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +165 -0
  65. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +34 -0
  66. package/dist/components/VirtualizedTable/components/Filter/Filter.js +73 -0
  67. package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +48 -0
  68. package/dist/components/VirtualizedTable/components/Header/Header.js +82 -0
  69. package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +45 -0
  70. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1870 -0
  71. package/dist/components/VirtualizedTable/components/index.js +14 -0
  72. package/dist/components/VirtualizedTable/constants/index.js +5 -0
  73. package/dist/components/VirtualizedTable/constants/pagination.js +5 -0
  74. package/dist/components/VirtualizedTable/contexts/index.js +8 -0
  75. package/dist/components/VirtualizedTable/contexts/table.context.js +31 -0
  76. package/dist/components/VirtualizedTable/contexts/table.hook.js +11 -0
  77. package/dist/components/VirtualizedTable/contexts/table.provider.js +778 -0
  78. package/dist/components/index.js +44 -40
  79. package/dist/{createLucideIcon-DbC6TvM5.js → createLucideIcon-D2CN7Ma9.js} +4 -4
  80. package/dist/debounce-BFejQm9P.js +200 -0
  81. package/dist/{index-D3xzCzcO.js → index-B7t8D14s.js} +2 -2
  82. package/dist/index-BAEWsOG1.js +27 -0
  83. package/dist/{index-C9T9HQaa.js → index-BITvcJAz.js} +1 -1
  84. package/dist/index-BZPx6jYI.js +8 -0
  85. package/dist/{index-BAraV3ai.js → index-Bnb0ezr3.js} +1 -1
  86. package/dist/{index-DB2XhXHn.js → index-C84F4YyO.js} +11 -10
  87. package/dist/index-Cd2vhaop.js +137 -0
  88. package/dist/{index-iXyXtdgP.js → index-DBbEcSUG.js} +1 -1
  89. package/dist/index-Dx2grAuN.js +1742 -0
  90. package/dist/{index-BXuxPoz7.js → index-DzIBBMjs.js} +18 -17
  91. package/dist/{index-h-Ul0anl.js → index-N2OStZoU.js} +1 -1
  92. package/dist/{index-Oq5GlCHP.js → index-os7vysFS.js} +1 -1
  93. package/dist/index-ti1b9kqV.js +14 -0
  94. package/dist/index.d.ts +94 -5
  95. package/dist/index.js +41 -37
  96. package/dist/package.json +26 -22
  97. package/dist/styles.css +1 -1
  98. package/dist/{x-BPcqkRZd.js → x-4F_5p77m.js} +1 -1
  99. package/package.json +26 -22
  100. package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
  101. package/dist/chevron-up-RLP4nX7V.js +0 -54
  102. package/dist/index-CZnD2QxM.js +0 -32
  103. package/dist/index-CrBonFvu.js +0 -144
@@ -1,28 +1,28 @@
1
1
  import { jsx as ci } from "react/jsx-runtime";
2
- import Ds, { forwardRef as Cs, useRef as Re, useEffect as ht, useMemo as re } from "react";
2
+ import Ds, { forwardRef as Cs, useRef as Re, useEffect as dt, useMemo as re } from "react";
3
3
  /*!
4
4
  * @kurkle/color v0.3.4
5
5
  * https://github.com/kurkle/color#readme
6
6
  * (c) 2024 Jukka Kurkela
7
7
  * Released under the MIT License
8
8
  */
9
- function Rt(e) {
9
+ function It(e) {
10
10
  return e + 0.5 | 0;
11
11
  }
12
12
  const Q = (e, t, s) => Math.max(Math.min(e, s), t);
13
- function Mt(e) {
14
- return Q(Rt(e * 2.55), 0, 255);
13
+ function kt(e) {
14
+ return Q(It(e * 2.55), 0, 255);
15
15
  }
16
- function tt(e) {
17
- return Q(Rt(e * 255), 0, 255);
16
+ function et(e) {
17
+ return Q(It(e * 255), 0, 255);
18
18
  }
19
19
  function G(e) {
20
- return Q(Rt(e / 2.55) / 100, 0, 1);
20
+ return Q(It(e / 2.55) / 100, 0, 1);
21
21
  }
22
22
  function Ie(e) {
23
- return Q(Rt(e * 100), 0, 100);
23
+ return Q(It(e * 100), 0, 100);
24
24
  }
25
- const N = { 0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, A: 10, B: 11, C: 12, D: 13, E: 14, F: 15, a: 10, b: 11, c: 12, d: 13, e: 14, f: 15 }, me = [..."0123456789ABCDEF"], li = (e) => me[e & 15], hi = (e) => me[(e & 240) >> 4] + me[e & 15], Lt = (e) => (e & 240) >> 4 === (e & 15), di = (e) => Lt(e.r) && Lt(e.g) && Lt(e.b) && Lt(e.a);
25
+ const N = { 0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, A: 10, B: 11, C: 12, D: 13, E: 14, F: 15, a: 10, b: 11, c: 12, d: 13, e: 14, f: 15 }, me = [..."0123456789ABCDEF"], li = (e) => me[e & 15], hi = (e) => me[(e & 240) >> 4] + me[e & 15], zt = (e) => (e & 240) >> 4 === (e & 15), di = (e) => zt(e.r) && zt(e.g) && zt(e.b) && zt(e.a);
26
26
  function fi(e) {
27
27
  var t = e.length, s;
28
28
  return e[0] === "#" && (t === 4 || t === 5 ? s = {
@@ -67,7 +67,7 @@ function ve(e) {
67
67
  return o !== r && (h = o - r, l = a > 0.5 ? h / (2 - o - r) : h / (o + r), c = bi(s, i, n, h, o), c = c * 60 + 0.5), [c | 0, l || 0, a];
68
68
  }
69
69
  function we(e, t, s, i) {
70
- return (Array.isArray(t) ? e(t[0], t[1], t[2]) : e(t, s, i)).map(tt);
70
+ return (Array.isArray(t) ? e(t[0], t[1], t[2]) : e(t, s, i)).map(et);
71
71
  }
72
72
  function Me(e, t, s) {
73
73
  return we(As, e, t, s);
@@ -86,7 +86,7 @@ function vi(e) {
86
86
  let s = 255, i;
87
87
  if (!t)
88
88
  return;
89
- t[5] !== i && (s = t[6] ? Mt(+t[5]) : tt(+t[5]));
89
+ t[5] !== i && (s = t[6] ? kt(+t[5]) : et(+t[5]));
90
90
  const n = Ps(+t[2]), o = +t[3] / 100, r = +t[4] / 100;
91
91
  return t[1] === "hwb" ? i = xi(n, o, r) : t[1] === "hsv" ? i = yi(n, o, r) : i = Me(n, o, r), {
92
92
  r: i[0],
@@ -293,10 +293,10 @@ function ki() {
293
293
  }
294
294
  return e;
295
295
  }
296
- let zt;
296
+ let Ft;
297
297
  function Si(e) {
298
- zt || (zt = ki(), zt.transparent = [0, 0, 0, 0]);
299
- const t = zt[e.toLowerCase()];
298
+ Ft || (Ft = ki(), Ft.transparent = [0, 0, 0, 0]);
299
+ const t = Ft[e.toLowerCase()];
300
300
  return t && {
301
301
  r: t[0],
302
302
  g: t[1],
@@ -311,9 +311,9 @@ function Di(e) {
311
311
  if (t) {
312
312
  if (t[7] !== i) {
313
313
  const r = +t[7];
314
- s = t[8] ? Mt(r) : Q(r * 255, 0, 255);
314
+ s = t[8] ? kt(r) : Q(r * 255, 0, 255);
315
315
  }
316
- return i = +t[1], n = +t[3], o = +t[5], i = 255 & (t[2] ? Mt(i) : Q(i, 0, 255)), n = 255 & (t[4] ? Mt(n) : Q(n, 0, 255)), o = 255 & (t[6] ? Mt(o) : Q(o, 0, 255)), {
316
+ return i = +t[1], n = +t[3], o = +t[5], i = 255 & (t[2] ? kt(i) : Q(i, 0, 255)), n = 255 & (t[4] ? kt(n) : Q(n, 0, 255)), o = 255 & (t[6] ? kt(o) : Q(o, 0, 255)), {
317
317
  r: i,
318
318
  g: n,
319
319
  b: o,
@@ -324,17 +324,17 @@ function Di(e) {
324
324
  function Ci(e) {
325
325
  return e && (e.a < 255 ? `rgba(${e.r}, ${e.g}, ${e.b}, ${G(e.a)})` : `rgb(${e.r}, ${e.g}, ${e.b})`);
326
326
  }
327
- const ae = (e) => e <= 31308e-7 ? e * 12.92 : Math.pow(e, 1 / 2.4) * 1.055 - 0.055, dt = (e) => e <= 0.04045 ? e / 12.92 : Math.pow((e + 0.055) / 1.055, 2.4);
327
+ const ae = (e) => e <= 31308e-7 ? e * 12.92 : Math.pow(e, 1 / 2.4) * 1.055 - 0.055, ft = (e) => e <= 0.04045 ? e / 12.92 : Math.pow((e + 0.055) / 1.055, 2.4);
328
328
  function Ai(e, t, s) {
329
- const i = dt(G(e.r)), n = dt(G(e.g)), o = dt(G(e.b));
329
+ const i = ft(G(e.r)), n = ft(G(e.g)), o = ft(G(e.b));
330
330
  return {
331
- r: tt(ae(i + s * (dt(G(t.r)) - i))),
332
- g: tt(ae(n + s * (dt(G(t.g)) - n))),
333
- b: tt(ae(o + s * (dt(G(t.b)) - o))),
331
+ r: et(ae(i + s * (ft(G(t.r)) - i))),
332
+ g: et(ae(n + s * (ft(G(t.g)) - n))),
333
+ b: et(ae(o + s * (ft(G(t.b)) - o))),
334
334
  a: e.a + s * (t.a - e.a)
335
335
  };
336
336
  }
337
- function Ft(e, t, s) {
337
+ function jt(e, t, s) {
338
338
  if (e) {
339
339
  let i = ve(e);
340
340
  i[t] = Math.max(0, Math.min(i[t] + i[t] * s, t === 0 ? 360 : 1)), i = Me(i), e.r = i[0], e.g = i[1], e.b = i[2];
@@ -345,14 +345,14 @@ function Es(e, t) {
345
345
  }
346
346
  function ze(e) {
347
347
  var t = { r: 0, g: 0, b: 0, a: 255 };
348
- return Array.isArray(e) ? e.length >= 3 && (t = { r: e[0], g: e[1], b: e[2], a: 255 }, e.length > 3 && (t.a = tt(e[3]))) : (t = Es(e, { r: 0, g: 0, b: 0, a: 1 }), t.a = tt(t.a)), t;
348
+ return Array.isArray(e) ? e.length >= 3 && (t = { r: e[0], g: e[1], b: e[2], a: 255 }, e.length > 3 && (t.a = et(e[3]))) : (t = Es(e, { r: 0, g: 0, b: 0, a: 1 }), t.a = et(t.a)), t;
349
349
  }
350
350
  function Pi(e) {
351
351
  return e.charAt(0) === "r" ? Di(e) : vi(e);
352
352
  }
353
- class Dt {
353
+ class Ct {
354
354
  constructor(t) {
355
- if (t instanceof Dt)
355
+ if (t instanceof Ct)
356
356
  return t;
357
357
  const s = typeof t;
358
358
  let i;
@@ -390,17 +390,17 @@ class Dt {
390
390
  return t && (this._rgb = Ai(this._rgb, t._rgb, s)), this;
391
391
  }
392
392
  clone() {
393
- return new Dt(this.rgb);
393
+ return new Ct(this.rgb);
394
394
  }
395
395
  alpha(t) {
396
- return this._rgb.a = tt(t), this;
396
+ return this._rgb.a = et(t), this;
397
397
  }
398
398
  clearer(t) {
399
399
  const s = this._rgb;
400
400
  return s.a *= 1 - t, this;
401
401
  }
402
402
  greyscale() {
403
- const t = this._rgb, s = Rt(t.r * 0.3 + t.g * 0.59 + t.b * 0.11);
403
+ const t = this._rgb, s = It(t.r * 0.3 + t.g * 0.59 + t.b * 0.11);
404
404
  return t.r = t.g = t.b = s, this;
405
405
  }
406
406
  opaquer(t) {
@@ -412,23 +412,23 @@ class Dt {
412
412
  return t.r = 255 - t.r, t.g = 255 - t.g, t.b = 255 - t.b, this;
413
413
  }
414
414
  lighten(t) {
415
- return Ft(this._rgb, 2, t), this;
415
+ return jt(this._rgb, 2, t), this;
416
416
  }
417
417
  darken(t) {
418
- return Ft(this._rgb, 2, -t), this;
418
+ return jt(this._rgb, 2, -t), this;
419
419
  }
420
420
  saturate(t) {
421
- return Ft(this._rgb, 1, t), this;
421
+ return jt(this._rgb, 1, t), this;
422
422
  }
423
423
  desaturate(t) {
424
- return Ft(this._rgb, 1, -t), this;
424
+ return jt(this._rgb, 1, -t), this;
425
425
  }
426
426
  rotate(t) {
427
427
  return wi(this._rgb, t), this;
428
428
  }
429
429
  }
430
430
  /*!
431
- * Chart.js v4.5.0
431
+ * Chart.js v4.5.1
432
432
  * https://www.chartjs.org
433
433
  * (c) 2025 Chart.js Contributors
434
434
  * Released under the MIT License
@@ -449,11 +449,11 @@ function B(e) {
449
449
  function w(e) {
450
450
  return e !== null && Object.prototype.toString.call(e) === "[object Object]";
451
451
  }
452
- function gt(e) {
452
+ function pt(e) {
453
453
  return (typeof e == "number" || e instanceof Number) && isFinite(+e);
454
454
  }
455
455
  function K(e, t) {
456
- return gt(e) ? e : t;
456
+ return pt(e) ? e : t;
457
457
  }
458
458
  function A(e, t) {
459
459
  return typeof e > "u" ? t : e;
@@ -504,9 +504,9 @@ function Ii(e, t, s, i) {
504
504
  if (!Is(e))
505
505
  return;
506
506
  const n = t[e], o = s[e];
507
- w(n) && w(o) ? Ct(n, o, i) : t[e] = Zt(o);
507
+ w(n) && w(o) ? At(n, o, i) : t[e] = Zt(o);
508
508
  }
509
- function Ct(e, t, s) {
509
+ function At(e, t, s) {
510
510
  const i = B(t) ? t : [
511
511
  t
512
512
  ], n = i.length;
@@ -525,7 +525,7 @@ function Ct(e, t, s) {
525
525
  return e;
526
526
  }
527
527
  function Kt(e, t) {
528
- return Ct(e, t, {
528
+ return At(e, t, {
529
529
  merger: Ti
530
530
  });
531
531
  }
@@ -560,13 +560,13 @@ function zi(e) {
560
560
  return s;
561
561
  };
562
562
  }
563
- function At(e, t) {
563
+ function Pt(e, t) {
564
564
  return (je[t] || (je[t] = zi(t)))(e);
565
565
  }
566
566
  function ke(e) {
567
567
  return e.charAt(0).toUpperCase() + e.slice(1);
568
568
  }
569
- const Gt = (e) => typeof e < "u", et = (e) => typeof e == "function", Be = (e, t) => {
569
+ const Gt = (e) => typeof e < "u", st = (e) => typeof e == "function", Be = (e, t) => {
570
570
  if (e.size !== t.size)
571
571
  return !1;
572
572
  for (const s of e)
@@ -591,7 +591,7 @@ function Bi(e) {
591
591
  function We(e) {
592
592
  return !Bi(e) && !isNaN(parseFloat(e)) && isFinite(e);
593
593
  }
594
- function ut(e) {
594
+ function gt(e) {
595
595
  return e * (z / 180);
596
596
  }
597
597
  function Hi(e) {
@@ -696,7 +696,7 @@ function Xi(e, t) {
696
696
  return t ? (clearTimeout(s), s = setTimeout(e, t, i)) : e.apply(this, i), t;
697
697
  };
698
698
  }
699
- const Ki = (e) => e === "start" ? "left" : e === "end" ? "right" : "center", Ne = (e, t, s) => e === "start" ? t : e === "end" ? s : (t + s) / 2, jt = (e) => e === 0 || e === 1, $e = (e, t, s) => -(Math.pow(2, 10 * (e -= 1)) * Math.sin((e - t) * T / s)), Ye = (e, t, s) => Math.pow(2, -10 * e) * Math.sin((e - t) * T / s) + 1, St = {
699
+ const Ki = (e) => e === "start" ? "left" : e === "end" ? "right" : "center", Ne = (e, t, s) => e === "start" ? t : e === "end" ? s : (t + s) / 2, Bt = (e) => e === 0 || e === 1, $e = (e, t, s) => -(Math.pow(2, 10 * (e -= 1)) * Math.sin((e - t) * T / s)), Ye = (e, t, s) => Math.pow(2, -10 * e) * Math.sin((e - t) * T / s) + 1, Ot = {
700
700
  linear: (e) => e,
701
701
  easeInQuad: (e) => e * e,
702
702
  easeOutQuad: (e) => -e * (e - 2),
@@ -715,14 +715,14 @@ const Ki = (e) => e === "start" ? "left" : e === "end" ? "right" : "center", Ne
715
715
  easeInOutSine: (e) => -0.5 * (Math.cos(z * e) - 1),
716
716
  easeInExpo: (e) => e === 0 ? 0 : Math.pow(2, 10 * (e - 1)),
717
717
  easeOutExpo: (e) => e === 1 ? 1 : -Math.pow(2, -10 * e) + 1,
718
- easeInOutExpo: (e) => jt(e) ? e : e < 0.5 ? 0.5 * Math.pow(2, 10 * (e * 2 - 1)) : 0.5 * (-Math.pow(2, -10 * (e * 2 - 1)) + 2),
718
+ easeInOutExpo: (e) => Bt(e) ? e : e < 0.5 ? 0.5 * Math.pow(2, 10 * (e * 2 - 1)) : 0.5 * (-Math.pow(2, -10 * (e * 2 - 1)) + 2),
719
719
  easeInCirc: (e) => e >= 1 ? e : -(Math.sqrt(1 - e * e) - 1),
720
720
  easeOutCirc: (e) => Math.sqrt(1 - (e -= 1) * e),
721
721
  easeInOutCirc: (e) => (e /= 0.5) < 1 ? -0.5 * (Math.sqrt(1 - e * e) - 1) : 0.5 * (Math.sqrt(1 - (e -= 2) * e) + 1),
722
- easeInElastic: (e) => jt(e) ? e : $e(e, 0.075, 0.3),
723
- easeOutElastic: (e) => jt(e) ? e : Ye(e, 0.075, 0.3),
722
+ easeInElastic: (e) => Bt(e) ? e : $e(e, 0.075, 0.3),
723
+ easeOutElastic: (e) => Bt(e) ? e : Ye(e, 0.075, 0.3),
724
724
  easeInOutElastic(e) {
725
- return jt(e) ? e : e < 0.5 ? 0.5 * $e(e * 2, 0.1125, 0.45) : 0.5 + 0.5 * Ye(e * 2 - 1, 0.1125, 0.45);
725
+ return Bt(e) ? e : e < 0.5 ? 0.5 * $e(e * 2, 0.1125, 0.45) : 0.5 + 0.5 * Ye(e * 2 - 1, 0.1125, 0.45);
726
726
  },
727
727
  easeInBack(e) {
728
728
  return e * e * ((1.70158 + 1) * e - 1.70158);
@@ -734,11 +734,11 @@ const Ki = (e) => e === "start" ? "left" : e === "end" ? "right" : "center", Ne
734
734
  let t = 1.70158;
735
735
  return (e /= 0.5) < 1 ? 0.5 * (e * e * (((t *= 1.525) + 1) * e - t)) : 0.5 * ((e -= 2) * e * (((t *= 1.525) + 1) * e + t) + 2);
736
736
  },
737
- easeInBounce: (e) => 1 - St.easeOutBounce(1 - e),
737
+ easeInBounce: (e) => 1 - Ot.easeOutBounce(1 - e),
738
738
  easeOutBounce(e) {
739
739
  return e < 1 / 2.75 ? 7.5625 * e * e : e < 2 / 2.75 ? 7.5625 * (e -= 1.5 / 2.75) * e + 0.75 : e < 2.5 / 2.75 ? 7.5625 * (e -= 2.25 / 2.75) * e + 0.9375 : 7.5625 * (e -= 2.625 / 2.75) * e + 0.984375;
740
740
  },
741
- easeInOutBounce: (e) => e < 0.5 ? St.easeInBounce(e * 2) * 0.5 : St.easeOutBounce(e * 2 - 1) * 0.5 + 0.5
741
+ easeInOutBounce: (e) => e < 0.5 ? Ot.easeInBounce(e * 2) * 0.5 : Ot.easeOutBounce(e * 2 - 1) * 0.5 + 0.5
742
742
  };
743
743
  function Bs(e) {
744
744
  if (e && typeof e == "object") {
@@ -748,10 +748,10 @@ function Bs(e) {
748
748
  return !1;
749
749
  }
750
750
  function Xe(e) {
751
- return Bs(e) ? e : new Dt(e);
751
+ return Bs(e) ? e : new Ct(e);
752
752
  }
753
753
  function ce(e) {
754
- return Bs(e) ? e : new Dt(e).saturate(0.5).darken(0.1).hexString();
754
+ return Bs(e) ? e : new Ct(e).saturate(0.5).darken(0.1).hexString();
755
755
  }
756
756
  const Ui = [
757
757
  "x",
@@ -918,8 +918,8 @@ function sn(e) {
918
918
  _indexable: (t) => t !== "backdropPadding"
919
919
  });
920
920
  }
921
- const at = /* @__PURE__ */ Object.create(null), _e = /* @__PURE__ */ Object.create(null);
922
- function Ot(e, t) {
921
+ const ct = /* @__PURE__ */ Object.create(null), _e = /* @__PURE__ */ Object.create(null);
922
+ function Dt(e, t) {
923
923
  if (!t)
924
924
  return e;
925
925
  const s = t.split(".");
@@ -930,7 +930,7 @@ function Ot(e, t) {
930
930
  return e;
931
931
  }
932
932
  function le(e, t, s) {
933
- return typeof t == "string" ? Ct(Ot(e, t), s) : Ct(Ot(e, ""), t);
933
+ return typeof t == "string" ? At(Dt(e, t), s) : At(Dt(e, ""), t);
934
934
  }
935
935
  class nn {
936
936
  constructor(t, s) {
@@ -956,16 +956,16 @@ class nn {
956
956
  return le(this, t, s);
957
957
  }
958
958
  get(t) {
959
- return Ot(this, t);
959
+ return Dt(this, t);
960
960
  }
961
961
  describe(t, s) {
962
962
  return le(_e, t, s);
963
963
  }
964
964
  override(t, s) {
965
- return le(at, t, s);
965
+ return le(ct, t, s);
966
966
  }
967
967
  route(t, s, i, n) {
968
- const o = Ot(this, t), r = Ot(this, i), a = "_" + s;
968
+ const o = Dt(this, t), r = Dt(this, i), a = "_" + s;
969
969
  Object.defineProperties(o, {
970
970
  [a]: {
971
971
  value: o[s],
@@ -1009,7 +1009,7 @@ function Ue(e, t, s, i, n) {
1009
1009
  let o = t[n];
1010
1010
  return o || (o = t[n] = e.measureText(n).width, s.push(n)), o > i && (i = o), i;
1011
1011
  }
1012
- function nt(e, t, s) {
1012
+ function ot(e, t, s) {
1013
1013
  const i = e.currentDevicePixelRatio, n = s !== 0 ? Math.max(s / 2, 0.5) : 0;
1014
1014
  return Math.round((t - n) * i) / i + n;
1015
1015
  }
@@ -1076,7 +1076,7 @@ function un(e) {
1076
1076
  left: "x"
1077
1077
  });
1078
1078
  }
1079
- function Pt(e) {
1079
+ function Et(e) {
1080
1080
  const t = un(e);
1081
1081
  return t.width = t.left + t.right, t.height = t.top + t.bottom, t;
1082
1082
  }
@@ -1096,7 +1096,7 @@ function be(e, t) {
1096
1096
  };
1097
1097
  return n.string = on(n), n;
1098
1098
  }
1099
- function Bt(e, t, s, i) {
1099
+ function Ht(e, t, s, i) {
1100
1100
  let n, o, r;
1101
1101
  for (n = 0, o = e.length; n < o; ++n)
1102
1102
  if (r = e[n], r !== void 0 && r !== void 0)
@@ -1109,7 +1109,7 @@ function gn(e, t, s) {
1109
1109
  max: r(n, o)
1110
1110
  };
1111
1111
  }
1112
- function It(e, t) {
1112
+ function Tt(e, t) {
1113
1113
  return Object.assign(Object.create(e), t);
1114
1114
  }
1115
1115
  function Se(e, t = [
@@ -1176,7 +1176,7 @@ function Se(e, t = [
1176
1176
  }
1177
1177
  });
1178
1178
  }
1179
- function pt(e, t, s, i) {
1179
+ function mt(e, t, s, i) {
1180
1180
  const n = {
1181
1181
  _cacheable: !1,
1182
1182
  _proxy: e,
@@ -1184,8 +1184,8 @@ function pt(e, t, s, i) {
1184
1184
  _subProxy: s,
1185
1185
  _stack: /* @__PURE__ */ new Set(),
1186
1186
  _descriptors: $s(e, i),
1187
- setContext: (o) => pt(e, o, s, i),
1188
- override: (o) => pt(e.override(o), t, s, i)
1187
+ setContext: (o) => mt(e, o, s, i),
1188
+ override: (o) => mt(e.override(o), t, s, i)
1189
1189
  };
1190
1190
  return new Proxy(n, {
1191
1191
  /**
@@ -1245,8 +1245,8 @@ function $s(e, t = {
1245
1245
  allKeys: n,
1246
1246
  scriptable: s,
1247
1247
  indexable: i,
1248
- isScriptable: et(s) ? s : () => s,
1249
- isIndexable: et(i) ? i : () => i
1248
+ isScriptable: st(s) ? s : () => s,
1249
+ isIndexable: st(i) ? i : () => i
1250
1250
  };
1251
1251
  }
1252
1252
  const pn = (e, t) => e ? e + ke(t) : t, Oe = (e, t) => w(t) && e !== "adapters" && (Object.getPrototypeOf(t) === null || t.constructor === Object);
@@ -1259,7 +1259,7 @@ function Ys(e, t, s) {
1259
1259
  function mn(e, t, s) {
1260
1260
  const { _proxy: i, _context: n, _subProxy: o, _descriptors: r } = e;
1261
1261
  let a = i[t];
1262
- return et(a) && r.isScriptable(t) && (a = _n(t, a, e, s)), B(a) && a.length && (a = bn(t, a, e, r.isIndexable)), Oe(t, a) && (a = pt(a, n, o && o[t], r)), a;
1262
+ return st(a) && r.isScriptable(t) && (a = _n(t, a, e, s)), B(a) && a.length && (a = bn(t, a, e, r.isIndexable)), Oe(t, a) && (a = mt(a, n, o && o[t], r)), a;
1263
1263
  }
1264
1264
  function _n(e, t, s, i) {
1265
1265
  const { _proxy: n, _context: o, _subProxy: r, _stack: a } = s;
@@ -1278,15 +1278,15 @@ function bn(e, t, s, i) {
1278
1278
  t = [];
1279
1279
  for (const h of c) {
1280
1280
  const d = De(l, n, e, h);
1281
- t.push(pt(d, o, r && r[e], a));
1281
+ t.push(mt(d, o, r && r[e], a));
1282
1282
  }
1283
1283
  }
1284
1284
  return t;
1285
1285
  }
1286
1286
  function Xs(e, t, s) {
1287
- return et(e) ? e(t, s) : e;
1287
+ return st(e) ? e(t, s) : e;
1288
1288
  }
1289
- const xn = (e, t) => e === !0 ? t : typeof e == "string" ? At(t, e) : void 0;
1289
+ const xn = (e, t) => e === !0 ? t : typeof e == "string" ? Pt(t, e) : void 0;
1290
1290
  function yn(e, t, s, i, n) {
1291
1291
  for (const o of t) {
1292
1292
  const r = xn(s, o);
@@ -1369,7 +1369,7 @@ const Sn = [
1369
1369
  "bottom",
1370
1370
  "left"
1371
1371
  ];
1372
- function rt(e, t, s) {
1372
+ function at(e, t, s) {
1373
1373
  const i = {};
1374
1374
  s = s ? "-" + s : "";
1375
1375
  for (let n = 0; n < 4; n++) {
@@ -1394,10 +1394,10 @@ function Dn(e, t) {
1394
1394
  box: r
1395
1395
  };
1396
1396
  }
1397
- function ot(e, t) {
1397
+ function rt(e, t) {
1398
1398
  if ("native" in e)
1399
1399
  return e;
1400
- const { canvas: s, currentDevicePixelRatio: i } = t, n = ie(s), o = n.boxSizing === "border-box", r = rt(n, "padding"), a = rt(n, "border", "width"), { x: c, y: l, box: h } = Dn(e, s), d = r.left + (h && a.left), f = r.top + (h && a.top);
1400
+ const { canvas: s, currentDevicePixelRatio: i } = t, n = ie(s), o = n.boxSizing === "border-box", r = at(n, "padding"), a = at(n, "border", "width"), { x: c, y: l, box: h } = Dn(e, s), d = r.left + (h && a.left), f = r.top + (h && a.top);
1401
1401
  let { width: u, height: g } = t;
1402
1402
  return o && (u -= r.width + a.width, g -= r.height + a.height), {
1403
1403
  x: Math.round((c - d) / u * s.width / i),
@@ -1411,7 +1411,7 @@ function Cn(e, t, s) {
1411
1411
  if (!o)
1412
1412
  t = e.clientWidth, s = e.clientHeight;
1413
1413
  else {
1414
- const r = o.getBoundingClientRect(), a = ie(o), c = rt(a, "border", "width"), l = rt(a, "padding");
1414
+ const r = o.getBoundingClientRect(), a = ie(o), c = at(a, "border", "width"), l = at(a, "padding");
1415
1415
  t = r.width - l.width - c.width, s = r.height - l.height - c.height, i = te(a.maxWidth, o, "clientWidth"), n = te(a.maxHeight, o, "clientHeight");
1416
1416
  }
1417
1417
  }
@@ -1422,22 +1422,22 @@ function Cn(e, t, s) {
1422
1422
  maxHeight: n || Qt
1423
1423
  };
1424
1424
  }
1425
- const Ht = (e) => Math.round(e * 10) / 10;
1425
+ const tt = (e) => Math.round(e * 10) / 10;
1426
1426
  function An(e, t, s, i) {
1427
- const n = ie(e), o = rt(n, "margin"), r = te(n.maxWidth, e, "clientWidth") || Qt, a = te(n.maxHeight, e, "clientHeight") || Qt, c = Cn(e, t, s);
1427
+ const n = ie(e), o = at(n, "margin"), r = te(n.maxWidth, e, "clientWidth") || Qt, a = te(n.maxHeight, e, "clientHeight") || Qt, c = Cn(e, t, s);
1428
1428
  let { width: l, height: h } = c;
1429
1429
  if (n.boxSizing === "content-box") {
1430
- const f = rt(n, "border", "width"), u = rt(n, "padding");
1430
+ const f = at(n, "border", "width"), u = at(n, "padding");
1431
1431
  l -= u.width + f.width, h -= u.height + f.height;
1432
1432
  }
1433
- return l = Math.max(0, l - o.width), h = Math.max(0, i ? l / i : h - o.height), l = Ht(Math.min(l, r, c.maxWidth)), h = Ht(Math.min(h, a, c.maxHeight)), l && !h && (h = Ht(l / 2)), (t !== void 0 || s !== void 0) && i && c.height && h > c.height && (h = c.height, l = Ht(Math.floor(h * i))), {
1433
+ return l = Math.max(0, l - o.width), h = Math.max(0, i ? l / i : h - o.height), l = tt(Math.min(l, r, c.maxWidth)), h = tt(Math.min(h, a, c.maxHeight)), l && !h && (h = tt(l / 2)), (t !== void 0 || s !== void 0) && i && c.height && h > c.height && (h = c.height, l = tt(Math.floor(h * i))), {
1434
1434
  width: l,
1435
1435
  height: h
1436
1436
  };
1437
1437
  }
1438
1438
  function Je(e, t, s) {
1439
- const i = t || 1, n = Math.floor(e.height * i), o = Math.floor(e.width * i);
1440
- e.height = Math.floor(e.height), e.width = Math.floor(e.width);
1439
+ const i = t || 1, n = tt(e.height * i), o = tt(e.width * i);
1440
+ e.height = tt(e.height), e.width = tt(e.width);
1441
1441
  const r = e.canvas;
1442
1442
  return r.style && (s || !r.style.height && !r.style.width) && (r.style.height = `${e.height}px`, r.style.width = `${e.width}px`), e.currentDevicePixelRatio !== i || r.height !== n || r.width !== o ? (e.currentDevicePixelRatio = i, r.height = n, r.width = o, e.ctx.setTransform(i, 0, 0, i, 0, 0), !0) : !1;
1443
1443
  }
@@ -1483,7 +1483,7 @@ function Rn(e, t) {
1483
1483
  };
1484
1484
  }
1485
1485
  /*!
1486
- * Chart.js v4.5.0
1486
+ * Chart.js v4.5.1
1487
1487
  * https://www.chartjs.org
1488
1488
  * (c) 2025 Chart.js Contributors
1489
1489
  * Released under the MIT License
@@ -1580,18 +1580,18 @@ const es = "transparent", Tn = {
1580
1580
  class Ln {
1581
1581
  constructor(t, s, i, n) {
1582
1582
  const o = s[i];
1583
- n = Bt([
1583
+ n = Ht([
1584
1584
  t.to,
1585
1585
  n,
1586
1586
  o,
1587
1587
  t.from
1588
1588
  ]);
1589
- const r = Bt([
1589
+ const r = Ht([
1590
1590
  t.from,
1591
1591
  o,
1592
1592
  n
1593
1593
  ]);
1594
- this._active = !0, this._fn = t.fn || Tn[t.type || typeof r], this._easing = St[t.easing] || St.linear, this._start = Math.floor(Date.now() + (t.delay || 0)), this._duration = this._total = Math.floor(t.duration), this._loop = !!t.loop, this._target = s, this._prop = i, this._from = r, this._to = n, this._promises = void 0;
1594
+ this._active = !0, this._fn = t.fn || Tn[t.type || typeof r], this._easing = Ot[t.easing] || Ot.linear, this._start = Math.floor(Date.now() + (t.delay || 0)), this._duration = this._total = Math.floor(t.duration), this._loop = !!t.loop, this._target = s, this._prop = i, this._from = r, this._to = n, this._promises = void 0;
1595
1595
  }
1596
1596
  active() {
1597
1597
  return this._active;
@@ -1600,12 +1600,12 @@ class Ln {
1600
1600
  if (this._active) {
1601
1601
  this._notify(!1);
1602
1602
  const n = this._target[this._prop], o = i - this._start, r = this._duration - o;
1603
- this._start = i, this._duration = Math.floor(Math.max(r, t.duration)), this._total += o, this._loop = !!t.loop, this._to = Bt([
1603
+ this._start = i, this._duration = Math.floor(Math.max(r, t.duration)), this._total += o, this._loop = !!t.loop, this._to = Ht([
1604
1604
  t.to,
1605
1605
  s,
1606
1606
  n,
1607
1607
  t.from
1608
- ]), this._from = Bt([
1608
+ ]), this._from = Ht([
1609
1609
  t.from,
1610
1610
  n,
1611
1611
  s
@@ -1781,7 +1781,7 @@ function is(e, t, s, i = {}) {
1781
1781
  continue;
1782
1782
  break;
1783
1783
  }
1784
- l = e.values[c], gt(l) && (o || t === 0 || He(t) === He(l)) && (t += l);
1784
+ l = e.values[c], pt(l) && (o || t === 0 || He(t) === He(l)) && (t += l);
1785
1785
  }
1786
1786
  return !h && !i.all ? 0 : t;
1787
1787
  }
@@ -1836,7 +1836,7 @@ function de(e, t) {
1836
1836
  return Object.keys(s).filter((i) => s[i].axis === t).shift();
1837
1837
  }
1838
1838
  function Yn(e, t) {
1839
- return It(e, {
1839
+ return Tt(e, {
1840
1840
  active: !1,
1841
1841
  dataset: void 0,
1842
1842
  datasetIndex: t,
@@ -1846,7 +1846,7 @@ function Yn(e, t) {
1846
1846
  });
1847
1847
  }
1848
1848
  function Xn(e, t, s) {
1849
- return It(e, {
1849
+ return Tt(e, {
1850
1850
  active: !1,
1851
1851
  dataIndex: t,
1852
1852
  parsed: void 0,
@@ -1857,7 +1857,7 @@ function Xn(e, t, s) {
1857
1857
  type: "data"
1858
1858
  });
1859
1859
  }
1860
- function bt(e, t) {
1860
+ function xt(e, t) {
1861
1861
  const s = e.controller.index, i = e.vScale && e.vScale.axis;
1862
1862
  if (i) {
1863
1863
  t = t || e._parsed;
@@ -1885,7 +1885,7 @@ class qs {
1885
1885
  this.configure(), this.linkScales(), t._stacked = he(t.vScale, t), this.addElements(), this.options.fill && !this.chart.isPluginEnabled("filler") && console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options");
1886
1886
  }
1887
1887
  updateIndex(t) {
1888
- this.index !== t && bt(this._cachedMeta), this.index = t;
1888
+ this.index !== t && xt(this._cachedMeta), this.index = t;
1889
1889
  }
1890
1890
  linkScales() {
1891
1891
  const t = this.chart, s = this._cachedMeta, i = this.getDataset(), n = (d, f, u, g) => d === "x" ? f : d === "r" ? g : u, o = s.xAxisID = A(i.xAxisID, de(t, "x")), r = s.yAxisID = A(i.yAxisID, de(t, "y")), a = s.rAxisID = A(i.rAxisID, de(t, "r")), c = s.indexAxis, l = s.iAxisID = n(c, o, r, a), h = s.vAxisID = n(c, r, o, a);
@@ -1909,7 +1909,7 @@ class qs {
1909
1909
  }
1910
1910
  _destroy() {
1911
1911
  const t = this._cachedMeta;
1912
- this._data && Ve(this._data, this), t._stacked && bt(t);
1912
+ this._data && Ve(this._data, this), t._stacked && xt(t);
1913
1913
  }
1914
1914
  _dataCheck() {
1915
1915
  const t = this.getDataset(), s = t.data || (t.data = []), i = this._data;
@@ -1920,7 +1920,7 @@ class qs {
1920
1920
  if (i) {
1921
1921
  Ve(i, this);
1922
1922
  const n = this._cachedMeta;
1923
- bt(n), n._parsed = [];
1923
+ xt(n), n._parsed = [];
1924
1924
  }
1925
1925
  s && Object.isExtensible(s) && Yi(s, this), this._syncList = [], this._data = s;
1926
1926
  }
@@ -1934,7 +1934,7 @@ class qs {
1934
1934
  let n = !1;
1935
1935
  this._dataCheck();
1936
1936
  const o = s._stacked;
1937
- s._stacked = he(s.vScale, s), s.stack !== i.stack && (n = !0, bt(s), s.stack = i.stack), this._resyncElements(t), (n || o !== s._stacked) && (os(this, s._parsed), s._stacked = he(s.vScale, s));
1937
+ s._stacked = he(s.vScale, s), s.stack !== i.stack && (n = !0, xt(s), s.stack = i.stack), this._resyncElements(t), (n || o !== s._stacked) && (os(this, s._parsed), s._stacked = he(s.vScale, s));
1938
1938
  }
1939
1939
  configure() {
1940
1940
  const t = this.chart.config, s = t.datasetScopeKeys(this._type), i = t.getOptionScopes(this.getDataset(), s, !0);
@@ -1979,8 +1979,8 @@ class qs {
1979
1979
  let h, d, f, u;
1980
1980
  for (h = 0, d = n; h < d; ++h)
1981
1981
  f = h + i, u = s[f], l[h] = {
1982
- x: o.parse(At(u, a), f),
1983
- y: r.parse(At(u, c), f)
1982
+ x: o.parse(Pt(u, a), f),
1983
+ y: r.parse(Pt(u, c), f)
1984
1984
  };
1985
1985
  return l;
1986
1986
  }
@@ -2014,7 +2014,7 @@ class qs {
2014
2014
  function g() {
2015
2015
  u = n[f];
2016
2016
  const m = u[a.axis];
2017
- return !gt(u[t.axis]) || h > m || d < m;
2017
+ return !pt(u[t.axis]) || h > m || d < m;
2018
2018
  }
2019
2019
  for (f = 0; f < r && !(!g() && (this.updateRangeFromParsed(l, t, u, c), o)); ++f)
2020
2020
  ;
@@ -2031,7 +2031,7 @@ class qs {
2031
2031
  const s = this._cachedMeta._parsed, i = [];
2032
2032
  let n, o, r;
2033
2033
  for (n = 0, o = s.length; n < o; ++n)
2034
- r = s[n][t.axis], gt(r) && i.push(r);
2034
+ r = s[n][t.axis], pt(r) && i.push(r);
2035
2035
  return i;
2036
2036
  }
2037
2037
  getMaxOverflow() {
@@ -2173,7 +2173,7 @@ class qs {
2173
2173
  const i = this._cachedMeta;
2174
2174
  if (this._parsing) {
2175
2175
  const n = i._parsed.splice(t, s);
2176
- i._stacked && bt(i, n);
2176
+ i._stacked && xt(i, n);
2177
2177
  }
2178
2178
  i.data.splice(t, s);
2179
2179
  }
@@ -2288,24 +2288,25 @@ class qn extends qs {
2288
2288
  legend: {
2289
2289
  labels: {
2290
2290
  generateLabels(t) {
2291
- const s = t.data;
2292
- if (s.labels.length && s.datasets.length) {
2293
- const { labels: { pointStyle: i, color: n } } = t.legend.options;
2294
- return s.labels.map((o, r) => {
2295
- const c = t.getDatasetMeta(0).controller.getStyle(r);
2296
- return {
2297
- text: o,
2298
- fillStyle: c.backgroundColor,
2299
- strokeStyle: c.borderColor,
2300
- fontColor: n,
2301
- lineWidth: c.borderWidth,
2302
- pointStyle: i,
2303
- hidden: !t.getDataVisibility(r),
2304
- index: r
2305
- };
2306
- });
2307
- }
2308
- return [];
2291
+ const s = t.data, { labels: { pointStyle: i, textAlign: n, color: o, useBorderRadius: r, borderRadius: a } } = t.legend.options;
2292
+ return s.labels.length && s.datasets.length ? s.labels.map((c, l) => {
2293
+ const d = t.getDatasetMeta(0).controller.getStyle(l);
2294
+ return {
2295
+ text: c,
2296
+ fillStyle: d.backgroundColor,
2297
+ fontColor: o,
2298
+ hidden: !t.getDataVisibility(l),
2299
+ lineDash: d.borderDash,
2300
+ lineDashOffset: d.borderDashOffset,
2301
+ lineJoin: d.borderJoinStyle,
2302
+ lineWidth: d.borderWidth,
2303
+ strokeStyle: d.borderColor,
2304
+ textAlign: n,
2305
+ pointStyle: i,
2306
+ borderRadius: r && (a || d.borderRadius),
2307
+ index: l
2308
+ };
2309
+ }) : [];
2309
2310
  }
2310
2311
  },
2311
2312
  onClick(t, s, i) {
@@ -2327,7 +2328,7 @@ class qn extends qs {
2327
2328
  let o = (c) => +i[c];
2328
2329
  if (w(i[t])) {
2329
2330
  const { key: c = "value" } = this._parsing;
2330
- o = (l) => +At(i[l], c);
2331
+ o = (l) => +Pt(i[l], c);
2331
2332
  }
2332
2333
  let r, a;
2333
2334
  for (r = t, a = t + s; r < a; ++r)
@@ -2335,10 +2336,10 @@ class qn extends qs {
2335
2336
  }
2336
2337
  }
2337
2338
  _getRotation() {
2338
- return ut(this.options.rotation - 90);
2339
+ return gt(this.options.rotation - 90);
2339
2340
  }
2340
2341
  _getCircumference() {
2341
- return ut(this.options.circumference);
2342
+ return gt(this.options.circumference);
2342
2343
  }
2343
2344
  _getRotationExtents() {
2344
2345
  let t = T, s = -T;
@@ -2555,7 +2556,7 @@ function as(e, t, s, i, n) {
2555
2556
  var to = {
2556
2557
  modes: {
2557
2558
  index(e, t, s, i) {
2558
- const n = ot(t, e), o = s.axis || "x", r = s.includeInvisible || !1, a = s.intersect ? ue(e, n, o, i, r) : ge(e, n, o, !1, i, r), c = [];
2559
+ const n = rt(t, e), o = s.axis || "x", r = s.includeInvisible || !1, a = s.intersect ? ue(e, n, o, i, r) : ge(e, n, o, !1, i, r), c = [];
2559
2560
  return a.length ? (e.getSortedVisibleDatasetMetas().forEach((l) => {
2560
2561
  const h = a[0].index, d = l.data[h];
2561
2562
  d && !d.skip && c.push({
@@ -2566,7 +2567,7 @@ var to = {
2566
2567
  }), c) : [];
2567
2568
  },
2568
2569
  dataset(e, t, s, i) {
2569
- const n = ot(t, e), o = s.axis || "xy", r = s.includeInvisible || !1;
2570
+ const n = rt(t, e), o = s.axis || "xy", r = s.includeInvisible || !1;
2570
2571
  let a = s.intersect ? ue(e, n, o, i, r) : ge(e, n, o, !1, i, r);
2571
2572
  if (a.length > 0) {
2572
2573
  const c = a[0].datasetIndex, l = e.getDatasetMeta(c).data;
@@ -2581,19 +2582,19 @@ var to = {
2581
2582
  return a;
2582
2583
  },
2583
2584
  point(e, t, s, i) {
2584
- const n = ot(t, e), o = s.axis || "xy", r = s.includeInvisible || !1;
2585
+ const n = rt(t, e), o = s.axis || "xy", r = s.includeInvisible || !1;
2585
2586
  return ue(e, n, o, i, r);
2586
2587
  },
2587
2588
  nearest(e, t, s, i) {
2588
- const n = ot(t, e), o = s.axis || "xy", r = s.includeInvisible || !1;
2589
+ const n = rt(t, e), o = s.axis || "xy", r = s.includeInvisible || !1;
2589
2590
  return ge(e, n, o, s.intersect, i, r);
2590
2591
  },
2591
2592
  x(e, t, s, i) {
2592
- const n = ot(t, e);
2593
+ const n = rt(t, e);
2593
2594
  return as(e, n, "x", s.intersect, i);
2594
2595
  },
2595
2596
  y(e, t, s, i) {
2596
- const n = ot(t, e);
2597
+ const n = rt(t, e);
2597
2598
  return as(e, n, "y", s.intersect, i);
2598
2599
  }
2599
2600
  }
@@ -2604,13 +2605,13 @@ const Zs = [
2604
2605
  "right",
2605
2606
  "bottom"
2606
2607
  ];
2607
- function xt(e, t) {
2608
+ function yt(e, t) {
2608
2609
  return e.filter((s) => s.pos === t);
2609
2610
  }
2610
2611
  function cs(e, t) {
2611
2612
  return e.filter((s) => Zs.indexOf(s.pos) === -1 && s.box.axis === t);
2612
2613
  }
2613
- function yt(e, t) {
2614
+ function vt(e, t) {
2614
2615
  return e.sort((s, i) => {
2615
2616
  const n = t ? i : s, o = t ? s : i;
2616
2617
  return n.weight === o.weight ? n.index - o.index : n.weight - o.weight;
@@ -2658,12 +2659,12 @@ function io(e, t) {
2658
2659
  return s;
2659
2660
  }
2660
2661
  function no(e) {
2661
- const t = eo(e), s = yt(t.filter((l) => l.box.fullSize), !0), i = yt(xt(t, "left"), !0), n = yt(xt(t, "right")), o = yt(xt(t, "top"), !0), r = yt(xt(t, "bottom")), a = cs(t, "x"), c = cs(t, "y");
2662
+ const t = eo(e), s = vt(t.filter((l) => l.box.fullSize), !0), i = vt(yt(t, "left"), !0), n = vt(yt(t, "right")), o = vt(yt(t, "top"), !0), r = vt(yt(t, "bottom")), a = cs(t, "x"), c = cs(t, "y");
2662
2663
  return {
2663
2664
  fullSize: s,
2664
2665
  leftAndTop: i.concat(o),
2665
2666
  rightAndBottom: n.concat(c).concat(r).concat(a),
2666
- chartArea: xt(t, "chartArea"),
2667
+ chartArea: yt(t, "chartArea"),
2667
2668
  vertical: i.concat(n).concat(c),
2668
2669
  horizontal: o.concat(r).concat(a)
2669
2670
  };
@@ -2723,7 +2724,7 @@ function ao(e, t) {
2723
2724
  "bottom"
2724
2725
  ]);
2725
2726
  }
2726
- function kt(e, t, s, i) {
2727
+ function St(e, t, s, i) {
2727
2728
  const n = [];
2728
2729
  let o, r, a, c, l, h;
2729
2730
  for (o = 0, r = e.length, l = 0; o < r; ++o) {
@@ -2731,7 +2732,7 @@ function kt(e, t, s, i) {
2731
2732
  const { same: d, other: f } = oo(t, s, a, i);
2732
2733
  l |= d && n.length, h = h || f, c.fullSize || n.push(a);
2733
2734
  }
2734
- return l && kt(n, t, s, i) || h;
2735
+ return l && St(n, t, s, i) || h;
2735
2736
  }
2736
2737
  function Vt(e, t, s, i, n) {
2737
2738
  e.top = s, e.left = t, e.right = t + i, e.bottom = s + n, e.width = i, e.height = n;
@@ -2777,7 +2778,7 @@ var Nt = {
2777
2778
  update(e, t, s, i) {
2778
2779
  if (!e)
2779
2780
  return;
2780
- const n = Pt(e.options.layout.padding), o = Math.max(t - n.width, 0), r = Math.max(s - n.height, 0), a = no(e.boxes), c = a.vertical, l = a.horizontal;
2781
+ const n = Et(e.options.layout.padding), o = Math.max(t - n.width, 0), r = Math.max(s - n.height, 0), a = no(e.boxes), c = a.vertical, l = a.horizontal;
2781
2782
  j(e.boxes, (m) => {
2782
2783
  typeof m.beforeLayout == "function" && m.beforeLayout();
2783
2784
  });
@@ -2790,7 +2791,7 @@ var Nt = {
2790
2791
  vBoxMaxWidth: o / 2 / h,
2791
2792
  hBoxMaxHeight: r / 2
2792
2793
  }), f = Object.assign({}, n);
2793
- Gs(f, Pt(i));
2794
+ Gs(f, Et(i));
2794
2795
  const u = Object.assign({
2795
2796
  maxPadding: f,
2796
2797
  w: o,
@@ -2798,7 +2799,7 @@ var Nt = {
2798
2799
  x: n.left,
2799
2800
  y: n.top
2800
2801
  }, n), g = io(c.concat(l), d);
2801
- kt(a.fullSize, u, d, g), kt(c, u, d, g), kt(l, u, d, g) && kt(c, u, d, g), ro(u), hs(a.leftAndTop, u, d, g), u.x += u.w, u.y += u.h, hs(a.rightAndBottom, u, d, g), e.chartArea = {
2802
+ St(a.fullSize, u, d, g), St(c, u, d, g), St(l, u, d, g) && St(c, u, d, g), ro(u), hs(a.leftAndTop, u, d, g), u.x += u.w, u.y += u.h, hs(a.rightAndBottom, u, d, g), e.chartArea = {
2802
2803
  left: u.left,
2803
2804
  top: u.top,
2804
2805
  right: u.left + u.w,
@@ -2895,7 +2896,7 @@ function uo(e, t, s) {
2895
2896
  e && e.canvas && e.canvas.removeEventListener(t, s, Js);
2896
2897
  }
2897
2898
  function go(e, t) {
2898
- const s = lo[e.type] || e.type, { x: i, y: n } = ot(e, t);
2899
+ const s = lo[e.type] || e.type, { x: i, y: n } = rt(e, t);
2899
2900
  return {
2900
2901
  type: s,
2901
2902
  chart: t,
@@ -2933,19 +2934,19 @@ function mo(e, t, s) {
2933
2934
  subtree: !0
2934
2935
  }), n;
2935
2936
  }
2936
- const Et = /* @__PURE__ */ new Map();
2937
+ const Rt = /* @__PURE__ */ new Map();
2937
2938
  let fs = 0;
2938
2939
  function ti() {
2939
2940
  const e = window.devicePixelRatio;
2940
- e !== fs && (fs = e, Et.forEach((t, s) => {
2941
+ e !== fs && (fs = e, Rt.forEach((t, s) => {
2941
2942
  s.currentDevicePixelRatio !== e && t();
2942
2943
  }));
2943
2944
  }
2944
2945
  function _o(e, t) {
2945
- Et.size || window.addEventListener("resize", ti), Et.set(e, t);
2946
+ Rt.size || window.addEventListener("resize", ti), Rt.set(e, t);
2946
2947
  }
2947
2948
  function bo(e) {
2948
- Et.delete(e), Et.size || window.removeEventListener("resize", ti);
2949
+ Rt.delete(e), Rt.size || window.removeEventListener("resize", ti);
2949
2950
  }
2950
2951
  function xo(e, t, s) {
2951
2952
  const i = e.canvas, n = i && Ae(i);
@@ -3140,23 +3141,23 @@ function Eo(e, t) {
3140
3141
  }
3141
3142
  });
3142
3143
  }
3143
- function vt(e) {
3144
+ function wt(e) {
3144
3145
  return e.drawTicks ? e.tickLength : 0;
3145
3146
  }
3146
3147
  function ms(e, t) {
3147
3148
  if (!e.display)
3148
3149
  return 0;
3149
- const s = be(e.font, t), i = Pt(e.padding);
3150
+ const s = be(e.font, t), i = Et(e.padding);
3150
3151
  return (B(e.text) ? e.text.length : 1) * s.lineHeight + i.height;
3151
3152
  }
3152
3153
  function Ro(e, t) {
3153
- return It(e, {
3154
+ return Tt(e, {
3154
3155
  scale: t,
3155
3156
  type: "scale"
3156
3157
  });
3157
3158
  }
3158
3159
  function Io(e, t, s) {
3159
- return It(e, {
3160
+ return Tt(e, {
3160
3161
  tick: s,
3161
3162
  index: t,
3162
3163
  type: "tick"
@@ -3210,8 +3211,8 @@ class Ee extends Pe {
3210
3211
  return t = K(t, Number.POSITIVE_INFINITY), s = K(s, Number.NEGATIVE_INFINITY), i = K(i, Number.POSITIVE_INFINITY), n = K(n, Number.NEGATIVE_INFINITY), {
3211
3212
  min: K(t, i),
3212
3213
  max: K(s, n),
3213
- minDefined: gt(t),
3214
- maxDefined: gt(s)
3214
+ minDefined: pt(t),
3215
+ maxDefined: pt(s)
3215
3216
  };
3216
3217
  }
3217
3218
  getMinMax(t) {
@@ -3343,7 +3344,7 @@ class Ee extends Pe {
3343
3344
  return;
3344
3345
  }
3345
3346
  const h = this._getLabelSizes(), d = h.widest.width, f = h.highest.height, u = J(this.chart.width - d, 0, this.maxWidth);
3346
- a = t.offset ? this.maxWidth / i : u / (i - 1), d + 6 > a && (a = u / (i - (t.offset ? 0.5 : 1)), c = this.maxHeight - vt(t.grid) - s.padding - ms(t.title, this.chart.options.font), l = Math.sqrt(d * d + f * f), r = Hi(Math.min(Math.asin(J((h.highest.height + 6) / a, -1, 1)), Math.asin(J(c / l, -1, 1)) - Math.asin(J(f / l, -1, 1)))), r = Math.max(n, Math.min(o, r))), this.labelRotation = r;
3347
+ a = t.offset ? this.maxWidth / i : u / (i - 1), d + 6 > a && (a = u / (i - (t.offset ? 0.5 : 1)), c = this.maxHeight - wt(t.grid) - s.padding - ms(t.title, this.chart.options.font), l = Math.sqrt(d * d + f * f), r = Hi(Math.min(Math.asin(J((h.highest.height + 6) / a, -1, 1)), Math.asin(J(c / l, -1, 1)) - Math.asin(J(f / l, -1, 1)))), r = Math.max(n, Math.min(o, r))), this.labelRotation = r;
3347
3348
  }
3348
3349
  afterCalculateLabelRotation() {
3349
3350
  E(this.options.afterCalculateLabelRotation, [
@@ -3364,8 +3365,8 @@ class Ee extends Pe {
3364
3365
  }, { chart: s, options: { ticks: i, title: n, grid: o } } = this, r = this._isVisible(), a = this.isHorizontal();
3365
3366
  if (r) {
3366
3367
  const c = ms(n, s.options.font);
3367
- if (a ? (t.width = this.maxWidth, t.height = vt(o) + c) : (t.height = this.maxHeight, t.width = vt(o) + c), i.display && this.ticks.length) {
3368
- const { first: l, last: h, widest: d, highest: f } = this._getLabelSizes(), u = i.padding * 2, g = ut(this.labelRotation), m = Math.cos(g), b = Math.sin(g);
3368
+ if (a ? (t.width = this.maxWidth, t.height = wt(o) + c) : (t.height = this.maxHeight, t.width = wt(o) + c), i.display && this.ticks.length) {
3369
+ const { first: l, last: h, widest: d, highest: f } = this._getLabelSizes(), u = i.padding * 2, g = gt(this.labelRotation), m = Math.cos(g), b = Math.sin(g);
3369
3370
  if (a) {
3370
3371
  const p = i.mirror ? 0 : b * d.width + m * f.height;
3371
3372
  t.height = Math.min(this.maxHeight, t.height + p + u);
@@ -3463,7 +3464,7 @@ class Ee extends Pe {
3463
3464
  getPixelForDecimal(t) {
3464
3465
  this._reversePixels && (t = 1 - t);
3465
3466
  const s = this._startPixel + t * this._length;
3466
- return Wi(this._alignToPixels ? nt(this.chart, s, 0) : s);
3467
+ return Wi(this._alignToPixels ? ot(this.chart, s, 0) : s);
3467
3468
  }
3468
3469
  getDecimalForPixel(t) {
3469
3470
  const s = (t - this._startPixel) / this._length;
@@ -3485,7 +3486,7 @@ class Ee extends Pe {
3485
3486
  return this.$context || (this.$context = Ro(this.chart.getContext(), this));
3486
3487
  }
3487
3488
  _tickSize() {
3488
- const t = this.options.ticks, s = ut(this.labelRotation), i = Math.abs(Math.cos(s)), n = Math.abs(Math.sin(s)), o = this._getLabelSizes(), r = t.autoSkipPadding || 0, a = o ? o.widest.width + r : 0, c = o ? o.highest.height + r : 0;
3489
+ const t = this.options.ticks, s = gt(this.labelRotation), i = Math.abs(Math.cos(s)), n = Math.abs(Math.sin(s)), o = this._getLabelSizes(), r = t.autoSkipPadding || 0, a = o ? o.widest.width + r : 0, c = o ? o.highest.height + r : 0;
3489
3490
  return this.isHorizontal() ? c * i > a * n ? a / i : c / n : c * n < a * i ? c / i : a / n;
3490
3491
  }
3491
3492
  _isVisible() {
@@ -3493,8 +3494,8 @@ class Ee extends Pe {
3493
3494
  return t !== "auto" ? !!t : this.getMatchingVisibleMetas().length > 0;
3494
3495
  }
3495
3496
  _computeGridLineItems(t) {
3496
- const s = this.axis, i = this.chart, n = this.options, { grid: o, position: r, border: a } = n, c = o.offset, l = this.isHorizontal(), d = this.ticks.length + (c ? 1 : 0), f = vt(o), u = [], g = a.setContext(this.getContext()), m = g.display ? g.width : 0, b = m / 2, p = function(S) {
3497
- return nt(i, S, m);
3497
+ const s = this.axis, i = this.chart, n = this.options, { grid: o, position: r, border: a } = n, c = o.offset, l = this.isHorizontal(), d = this.ticks.length + (c ? 1 : 0), f = wt(o), u = [], g = a.setContext(this.getContext()), m = g.display ? g.width : 0, b = m / 2, p = function(S) {
3498
+ return ot(i, S, m);
3498
3499
  };
3499
3500
  let _, x, v, y, O, D, L, I, k, H, P, V;
3500
3501
  if (r === "top")
@@ -3524,8 +3525,8 @@ class Ee extends Pe {
3524
3525
  }
3525
3526
  const Y = A(n.ticks.maxTicksLimit, d), M = Math.max(1, Math.ceil(d / Y));
3526
3527
  for (x = 0; x < d; x += M) {
3527
- const S = this.getContext(x), C = o.setContext(S), X = a.setContext(S), F = C.lineWidth, ct = C.color, Tt = X.dash || [], lt = X.dashOffset, mt = C.tickWidth, st = C.tickColor, _t = C.tickBorderDash || [], it = C.tickBorderDashOffset;
3528
- v = Po(this, x, c), v !== void 0 && (y = nt(i, v, F), l ? O = L = k = P = y : D = I = H = V = y, u.push({
3528
+ const S = this.getContext(x), C = o.setContext(S), X = a.setContext(S), F = C.lineWidth, lt = C.color, Lt = X.dash || [], ht = X.dashOffset, _t = C.tickWidth, it = C.tickColor, bt = C.tickBorderDash || [], nt = C.tickBorderDashOffset;
3529
+ v = Po(this, x, c), v !== void 0 && (y = ot(i, v, F), l ? O = L = k = P = y : D = I = H = V = y, u.push({
3529
3530
  tx1: O,
3530
3531
  ty1: D,
3531
3532
  tx2: L,
@@ -3535,19 +3536,19 @@ class Ee extends Pe {
3535
3536
  x2: P,
3536
3537
  y2: V,
3537
3538
  width: F,
3538
- color: ct,
3539
- borderDash: Tt,
3540
- borderDashOffset: lt,
3541
- tickWidth: mt,
3542
- tickColor: st,
3543
- tickBorderDash: _t,
3544
- tickBorderDashOffset: it
3539
+ color: lt,
3540
+ borderDash: Lt,
3541
+ borderDashOffset: ht,
3542
+ tickWidth: _t,
3543
+ tickColor: it,
3544
+ tickBorderDash: bt,
3545
+ tickBorderDashOffset: nt
3545
3546
  }));
3546
3547
  }
3547
3548
  return this._ticksLength = d, this._borderValue = _, u;
3548
3549
  }
3549
3550
  _computeLabelItems(t) {
3550
- const s = this.axis, i = this.options, { position: n, ticks: o } = i, r = this.isHorizontal(), a = this.ticks, { align: c, crossAlign: l, padding: h, mirror: d } = o, f = vt(i.grid), u = f + h, g = d ? -h : u, m = -ut(this.labelRotation), b = [];
3551
+ const s = this.axis, i = this.options, { position: n, ticks: o } = i, r = this.isHorizontal(), a = this.ticks, { align: c, crossAlign: l, padding: h, mirror: d } = o, f = wt(i.grid), u = f + h, g = d ? -h : u, m = -gt(this.labelRotation), b = [];
3551
3552
  let p, _, x, v, y, O, D, L, I, k, H, P, V = "middle";
3552
3553
  if (n === "top")
3553
3554
  O = this.bottom - g, D = this._getXAxisLabelAlignment();
@@ -3583,36 +3584,36 @@ class Ee extends Pe {
3583
3584
  const M = o.setContext(this.getContext(p));
3584
3585
  L = this.getPixelForTick(p) + o.labelOffset, I = this._resolveTickFontOptions(p), k = I.lineHeight, H = B(v) ? v.length : 1;
3585
3586
  const S = H / 2, C = M.color, X = M.textStrokeColor, F = M.textStrokeWidth;
3586
- let ct = D;
3587
- r ? (y = L, D === "inner" && (p === _ - 1 ? ct = this.options.reverse ? "left" : "right" : p === 0 ? ct = this.options.reverse ? "right" : "left" : ct = "center"), n === "top" ? l === "near" || m !== 0 ? P = -H * k + k / 2 : l === "center" ? P = -Y.highest.height / 2 - S * k + k : P = -Y.highest.height + k / 2 : l === "near" || m !== 0 ? P = k / 2 : l === "center" ? P = Y.highest.height / 2 - S * k : P = Y.highest.height - H * k, d && (P *= -1), m !== 0 && !M.showLabelBackdrop && (y += k / 2 * Math.sin(m))) : (O = L, P = (1 - H) * k / 2);
3588
- let Tt;
3587
+ let lt = D;
3588
+ r ? (y = L, D === "inner" && (p === _ - 1 ? lt = this.options.reverse ? "left" : "right" : p === 0 ? lt = this.options.reverse ? "right" : "left" : lt = "center"), n === "top" ? l === "near" || m !== 0 ? P = -H * k + k / 2 : l === "center" ? P = -Y.highest.height / 2 - S * k + k : P = -Y.highest.height + k / 2 : l === "near" || m !== 0 ? P = k / 2 : l === "center" ? P = Y.highest.height / 2 - S * k : P = Y.highest.height - H * k, d && (P *= -1), m !== 0 && !M.showLabelBackdrop && (y += k / 2 * Math.sin(m))) : (O = L, P = (1 - H) * k / 2);
3589
+ let Lt;
3589
3590
  if (M.showLabelBackdrop) {
3590
- const lt = Pt(M.backdropPadding), mt = Y.heights[p], st = Y.widths[p];
3591
- let _t = P - lt.top, it = 0 - lt.left;
3591
+ const ht = Et(M.backdropPadding), _t = Y.heights[p], it = Y.widths[p];
3592
+ let bt = P - ht.top, nt = 0 - ht.left;
3592
3593
  switch (V) {
3593
3594
  case "middle":
3594
- _t -= mt / 2;
3595
+ bt -= _t / 2;
3595
3596
  break;
3596
3597
  case "bottom":
3597
- _t -= mt;
3598
+ bt -= _t;
3598
3599
  break;
3599
3600
  }
3600
3601
  switch (D) {
3601
3602
  case "center":
3602
- it -= st / 2;
3603
+ nt -= it / 2;
3603
3604
  break;
3604
3605
  case "right":
3605
- it -= st;
3606
+ nt -= it;
3606
3607
  break;
3607
3608
  case "inner":
3608
- p === _ - 1 ? it -= st : p > 0 && (it -= st / 2);
3609
+ p === _ - 1 ? nt -= it : p > 0 && (nt -= it / 2);
3609
3610
  break;
3610
3611
  }
3611
- Tt = {
3612
- left: it,
3613
- top: _t,
3614
- width: st + lt.width,
3615
- height: mt + lt.height,
3612
+ Lt = {
3613
+ left: nt,
3614
+ top: bt,
3615
+ width: it + ht.width,
3616
+ height: _t + ht.height,
3616
3617
  color: M.backdropColor
3617
3618
  };
3618
3619
  }
@@ -3625,13 +3626,13 @@ class Ee extends Pe {
3625
3626
  color: C,
3626
3627
  strokeColor: X,
3627
3628
  strokeWidth: F,
3628
- textAlign: ct,
3629
+ textAlign: lt,
3629
3630
  textBaseline: V,
3630
3631
  translation: [
3631
3632
  y,
3632
3633
  O
3633
3634
  ],
3634
- backdrop: Tt
3635
+ backdrop: Lt
3635
3636
  }
3636
3637
  });
3637
3638
  }
@@ -3639,7 +3640,7 @@ class Ee extends Pe {
3639
3640
  }
3640
3641
  _getXAxisLabelAlignment() {
3641
3642
  const { position: t, ticks: s } = this.options;
3642
- if (-ut(this.labelRotation))
3643
+ if (-gt(this.labelRotation))
3643
3644
  return t === "top" ? "left" : "right";
3644
3645
  let n = "center";
3645
3646
  return s.align === "start" ? n = "left" : s.align === "end" ? n = "right" : s.align === "inner" && (n = "inner"), n;
@@ -3717,7 +3718,7 @@ class Ee extends Pe {
3717
3718
  return;
3718
3719
  const a = n.setContext(this.getContext(0)).lineWidth, c = this._borderValue;
3719
3720
  let l, h, d, f;
3720
- this.isHorizontal() ? (l = nt(t, this.left, r) - r / 2, h = nt(t, this.right, a) + a / 2, d = f = c) : (d = nt(t, this.top, r) - r / 2, f = nt(t, this.bottom, a) + a / 2, l = h = c), s.save(), s.lineWidth = o.width, s.strokeStyle = o.color, s.beginPath(), s.moveTo(l, d), s.lineTo(h, f), s.stroke(), s.restore();
3721
+ this.isHorizontal() ? (l = ot(t, this.left, r) - r / 2, h = ot(t, this.right, a) + a / 2, d = f = c) : (d = ot(t, this.top, r) - r / 2, f = ot(t, this.bottom, a) + a / 2, l = h = c), s.save(), s.lineWidth = o.width, s.strokeStyle = o.color, s.beginPath(), s.moveTo(l, d), s.lineTo(h, f), s.stroke(), s.restore();
3721
3722
  }
3722
3723
  drawLabels(t) {
3723
3724
  if (!this.options.ticks.display)
@@ -3735,7 +3736,7 @@ class Ee extends Pe {
3735
3736
  const { ctx: t, options: { position: s, title: i, reverse: n } } = this;
3736
3737
  if (!i.display)
3737
3738
  return;
3738
- const o = be(i.font), r = Pt(i.padding), a = i.align;
3739
+ const o = be(i.font), r = Et(i.padding), a = i.align;
3739
3740
  let c = o.lineHeight / 2;
3740
3741
  s === "bottom" || s === "center" || w(s) ? (c += r.bottom, B(i.text) && (c += o.lineHeight * (i.text.length - 1))) : c += r.top;
3741
3742
  const { titleX: l, titleY: h, maxWidth: d, rotation: f } = Lo(this, c, s, a);
@@ -3823,11 +3824,11 @@ class Yt {
3823
3824
  }
3824
3825
  unregister(t) {
3825
3826
  const s = this.items, i = t.id, n = this.scope;
3826
- i in s && delete s[i], n && i in R[n] && (delete R[n][i], this.override && delete at[i]);
3827
+ i in s && delete s[i], n && i in R[n] && (delete R[n][i], this.override && delete ct[i]);
3827
3828
  }
3828
3829
  }
3829
3830
  function zo(e, t, s) {
3830
- const i = Ct(/* @__PURE__ */ Object.create(null), [
3831
+ const i = At(/* @__PURE__ */ Object.create(null), [
3831
3832
  s ? R.get(s) : {},
3832
3833
  R.get(t),
3833
3834
  e.defaults
@@ -3928,12 +3929,13 @@ class Bo {
3928
3929
  var U = /* @__PURE__ */ new Bo();
3929
3930
  class Ho {
3930
3931
  constructor() {
3931
- this._init = [];
3932
+ this._init = void 0;
3932
3933
  }
3933
3934
  notify(t, s, i, n) {
3934
- s === "beforeInit" && (this._init = this._createDescriptors(t, !0), this._notify(this._init, t, "install"));
3935
+ if (s === "beforeInit" && (this._init = this._createDescriptors(t, !0), this._notify(this._init, t, "install")), this._init === void 0)
3936
+ return;
3935
3937
  const o = n ? this._descriptors(t).filter(n) : this._descriptors(t), r = this._notify(o, t, s, i);
3936
- return s === "afterDestroy" && (this._notify(o, t, "stop"), this._notify(this._init, t, "uninstall")), r;
3938
+ return s === "afterDestroy" && (this._notify(o, t, "stop"), this._notify(this._init, t, "uninstall"), this._init = void 0), r;
3937
3939
  }
3938
3940
  _notify(t, s, i, n) {
3939
3941
  n = n || {};
@@ -4053,7 +4055,7 @@ function Uo(e, t) {
4053
4055
  return {};
4054
4056
  }
4055
4057
  function qo(e, t) {
4056
- const s = at[e.type] || {
4058
+ const s = ct[e.type] || {
4057
4059
  scales: {}
4058
4060
  }, i = t.scales || {}, n = xe(e.type, t), o = /* @__PURE__ */ Object.create(null);
4059
4061
  return Object.keys(i).forEach((r) => {
@@ -4072,7 +4074,7 @@ function qo(e, t) {
4072
4074
  h[l]
4073
4075
  ]);
4074
4076
  }), e.data.datasets.forEach((r) => {
4075
- const a = r.type || e.type, c = r.indexAxis || xe(a, t), h = (at[a] || {}).scales || {};
4077
+ const a = r.type || e.type, c = r.indexAxis || xe(a, t), h = (ct[a] || {}).scales || {};
4076
4078
  Object.keys(h).forEach((d) => {
4077
4079
  const f = Yo(d, c), u = r[f + "AxisID"] || f;
4078
4080
  o[u] = o[u] || /* @__PURE__ */ Object.create(null), Kt(o[u], [
@@ -4106,8 +4108,8 @@ function Xt(e, t) {
4106
4108
  let s = xs.get(e);
4107
4109
  return s || (s = t(), xs.set(e, s), ii.add(s)), s;
4108
4110
  }
4109
- const wt = (e, t, s) => {
4110
- const i = At(t, s);
4111
+ const Mt = (e, t, s) => {
4112
+ const i = Pt(t, s);
4111
4113
  i !== void 0 && e.add(i);
4112
4114
  };
4113
4115
  class Go {
@@ -4195,7 +4197,7 @@ class Go {
4195
4197
  return a;
4196
4198
  const c = /* @__PURE__ */ new Set();
4197
4199
  s.forEach((h) => {
4198
- t && (c.add(t), h.forEach((d) => wt(c, t, d))), h.forEach((d) => wt(c, n, d)), h.forEach((d) => wt(c, at[o] || {}, d)), h.forEach((d) => wt(c, R, d)), h.forEach((d) => wt(c, _e, d));
4200
+ t && (c.add(t), h.forEach((d) => Mt(c, t, d))), h.forEach((d) => Mt(c, n, d)), h.forEach((d) => Mt(c, ct[o] || {}, d)), h.forEach((d) => Mt(c, R, d)), h.forEach((d) => Mt(c, _e, d));
4199
4201
  });
4200
4202
  const l = Array.from(c);
4201
4203
  return l.length === 0 && l.push(/* @__PURE__ */ Object.create(null)), ii.has(s) && r.set(s, l), l;
@@ -4204,7 +4206,7 @@ class Go {
4204
4206
  const { options: t, type: s } = this;
4205
4207
  return [
4206
4208
  t,
4207
- at[s] || {},
4209
+ ct[s] || {},
4208
4210
  R.datasets[s] || {},
4209
4211
  {
4210
4212
  type: s
@@ -4221,9 +4223,9 @@ class Go {
4221
4223
  }, { resolver: r, subPrefixes: a } = ys(this._resolverCache, t, n);
4222
4224
  let c = r;
4223
4225
  if (Jo(r, s)) {
4224
- o.$shared = !1, i = et(i) ? i() : i;
4226
+ o.$shared = !1, i = st(i) ? i() : i;
4225
4227
  const l = this.createResolver(t, i, a);
4226
- c = pt(r, i, l);
4228
+ c = mt(r, i, l);
4227
4229
  }
4228
4230
  for (const l of s)
4229
4231
  o[l] = c[l];
@@ -4233,7 +4235,7 @@ class Go {
4233
4235
  ""
4234
4236
  ], n) {
4235
4237
  const { resolver: o } = ys(this._resolverCache, t, i);
4236
- return w(s) ? pt(o, s, void 0, n) : o;
4238
+ return w(s) ? mt(o, s, void 0, n) : o;
4237
4239
  }
4238
4240
  }
4239
4241
  function ys(e, t, s) {
@@ -4246,17 +4248,17 @@ function ys(e, t, s) {
4246
4248
  subPrefixes: s.filter((a) => !a.toLowerCase().includes("hover"))
4247
4249
  }, i.set(n, o)), o;
4248
4250
  }
4249
- const Qo = (e) => w(e) && Object.getOwnPropertyNames(e).some((t) => et(e[t]));
4251
+ const Qo = (e) => w(e) && Object.getOwnPropertyNames(e).some((t) => st(e[t]));
4250
4252
  function Jo(e, t) {
4251
4253
  const { isScriptable: s, isIndexable: i } = $s(e);
4252
4254
  for (const n of t) {
4253
4255
  const o = s(n), r = i(n), a = (r || o) && e[n];
4254
- if (o && (et(a) || Qo(a)) || r && B(a))
4256
+ if (o && (st(a) || Qo(a)) || r && B(a))
4255
4257
  return !0;
4256
4258
  }
4257
4259
  return !1;
4258
4260
  }
4259
- var tr = "4.5.0";
4261
+ var tr = "4.5.1";
4260
4262
  const er = [
4261
4263
  "top",
4262
4264
  "bottom",
@@ -4307,7 +4309,7 @@ function nr(e, t, s, i) {
4307
4309
  let oe = class {
4308
4310
  static defaults = R;
4309
4311
  static instances = qt;
4310
- static overrides = at;
4312
+ static overrides = ct;
4311
4313
  static registry = U;
4312
4314
  static version = tr;
4313
4315
  static getChart = ks;
@@ -4529,7 +4531,7 @@ let oe = class {
4529
4531
  for (let s = 0, i = this.data.datasets.length; s < i; ++s)
4530
4532
  this.getDatasetMeta(s).controller.configure();
4531
4533
  for (let s = 0, i = this.data.datasets.length; s < i; ++s)
4532
- this._updateDataset(s, et(t) ? t({
4534
+ this._updateDataset(s, st(t) ? t({
4533
4535
  datasetIndex: s
4534
4536
  }) : t);
4535
4537
  this.notifyPlugins("afterDatasetsUpdate", {
@@ -4626,7 +4628,7 @@ let oe = class {
4626
4628
  }, i.push(n)), n;
4627
4629
  }
4628
4630
  getContext() {
4629
- return this.$context || (this.$context = It(null, {
4631
+ return this.$context || (this.$context = Tt(null, {
4630
4632
  chart: this,
4631
4633
  type: "chart"
4632
4634
  }));
@@ -4829,7 +4831,7 @@ function cr(e, t, s, i) {
4829
4831
  innerEnd: J(n.innerEnd, 0, r)
4830
4832
  };
4831
4833
  }
4832
- function ft(e, t, s, i) {
4834
+ function ut(e, t, s, i) {
4833
4835
  return {
4834
4836
  x: s + e * Math.cos(t),
4835
4837
  y: i + e * Math.sin(t)
@@ -4847,22 +4849,22 @@ function se(e, t, s, i, n, o) {
4847
4849
  if (e.beginPath(), o) {
4848
4850
  const M = (I + k) / 2;
4849
4851
  if (e.arc(r, a, d, I, M), e.arc(r, a, d, M, k), v > 0) {
4850
- const F = ft(L, k, r, a);
4852
+ const F = ut(L, k, r, a);
4851
4853
  e.arc(F.x, F.y, v, k, _ + $);
4852
4854
  }
4853
- const S = ft(P, _, r, a);
4855
+ const S = ut(P, _, r, a);
4854
4856
  if (e.lineTo(S.x, S.y), O > 0) {
4855
- const F = ft(P, Y, r, a);
4857
+ const F = ut(P, Y, r, a);
4856
4858
  e.arc(F.x, F.y, O, _ + $, Y + Math.PI);
4857
4859
  }
4858
4860
  const C = (_ - O / f + (p + y / f)) / 2;
4859
4861
  if (e.arc(r, a, f, _ - O / f, C, !0), e.arc(r, a, f, C, p + y / f, !0), y > 0) {
4860
- const F = ft(H, V, r, a);
4862
+ const F = ut(H, V, r, a);
4861
4863
  e.arc(F.x, F.y, y, V + Math.PI, p - $);
4862
4864
  }
4863
- const X = ft(D, p, r, a);
4865
+ const X = ut(D, p, r, a);
4864
4866
  if (e.lineTo(X.x, X.y), x > 0) {
4865
- const F = ft(D, I, r, a);
4867
+ const F = ut(D, I, r, a);
4866
4868
  e.arc(F.x, F.y, x, p - $, I);
4867
4869
  }
4868
4870
  } else {
@@ -5018,22 +5020,22 @@ function gr(e, t) {
5018
5020
  }, b = () => {
5019
5021
  Os(t, null), g.current && (g.current.destroy(), g.current = null);
5020
5022
  };
5021
- return ht(() => {
5023
+ return dt(() => {
5022
5024
  !n && g.current && c && fr(g.current, c);
5023
5025
  }, [
5024
5026
  n,
5025
5027
  c
5026
- ]), ht(() => {
5028
+ ]), dt(() => {
5027
5029
  !n && g.current && ri(g.current.config.data, a.labels);
5028
5030
  }, [
5029
5031
  n,
5030
5032
  a.labels
5031
- ]), ht(() => {
5033
+ ]), dt(() => {
5032
5034
  !n && g.current && a.datasets && ai(g.current.config.data, a.datasets, o);
5033
5035
  }, [
5034
5036
  n,
5035
5037
  a.datasets
5036
- ]), ht(() => {
5038
+ ]), dt(() => {
5037
5039
  g.current && (n ? (b(), setTimeout(m)) : g.current.update(d));
5038
5040
  }, [
5039
5041
  n,
@@ -5041,11 +5043,11 @@ function gr(e, t) {
5041
5043
  a.labels,
5042
5044
  a.datasets,
5043
5045
  d
5044
- ]), ht(() => {
5046
+ ]), dt(() => {
5045
5047
  g.current && (b(), setTimeout(m));
5046
5048
  }, [
5047
5049
  r
5048
- ]), ht(() => (m(), () => b()), []), /* @__PURE__ */ Ds.createElement("canvas", {
5050
+ ]), dt(() => (m(), () => b()), []), /* @__PURE__ */ Ds.createElement("canvas", {
5049
5051
  ref: u,
5050
5052
  role: "img",
5051
5053
  height: s,